Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/70kOIgjKhbA/70kOIgjKhbA.md +276 -0
- parse/train/70kOIgjKhbA/70kOIgjKhbA_content_list.json +1128 -0
- parse/train/70kOIgjKhbA/70kOIgjKhbA_middle.json +0 -0
- parse/train/70kOIgjKhbA/70kOIgjKhbA_model.json +0 -0
- parse/train/BJlAzTEKwS/BJlAzTEKwS.md +383 -0
- parse/train/BJlAzTEKwS/BJlAzTEKwS_content_list.json +1823 -0
- parse/train/BJlAzTEKwS/BJlAzTEKwS_middle.json +0 -0
- parse/train/BJlAzTEKwS/BJlAzTEKwS_model.json +0 -0
- parse/train/BkxtNaEYDr/BkxtNaEYDr.md +0 -0
- parse/train/BkxtNaEYDr/BkxtNaEYDr_content_list.json +0 -0
- parse/train/BkxtNaEYDr/BkxtNaEYDr_middle.json +0 -0
- parse/train/BkxtNaEYDr/BkxtNaEYDr_model.json +0 -0
- parse/train/H1bM1fZCW/H1bM1fZCW.md +205 -0
- parse/train/H1bM1fZCW/H1bM1fZCW_content_list.json +1157 -0
- parse/train/H1bM1fZCW/H1bM1fZCW_middle.json +0 -0
- parse/train/H1bM1fZCW/H1bM1fZCW_model.json +0 -0
- parse/train/H1gEP6NFwr/H1gEP6NFwr.md +371 -0
- parse/train/H1gEP6NFwr/H1gEP6NFwr_content_list.json +1915 -0
- parse/train/H1gEP6NFwr/H1gEP6NFwr_middle.json +0 -0
- parse/train/H1gEP6NFwr/H1gEP6NFwr_model.json +0 -0
- parse/train/HJGkisCcKm/HJGkisCcKm.md +260 -0
- parse/train/HJGkisCcKm/HJGkisCcKm_content_list.json +1347 -0
- parse/train/HJGkisCcKm/HJGkisCcKm_middle.json +0 -0
- parse/train/HJGkisCcKm/HJGkisCcKm_model.json +0 -0
- parse/train/MIDckA56aD/MIDckA56aD.md +0 -0
- parse/train/MIDckA56aD/MIDckA56aD_content_list.json +0 -0
- parse/train/MIDckA56aD/MIDckA56aD_middle.json +0 -0
- parse/train/MIDckA56aD/MIDckA56aD_model.json +0 -0
- parse/train/foNTMJHXHXC/foNTMJHXHXC.md +0 -0
- parse/train/foNTMJHXHXC/foNTMJHXHXC_content_list.json +0 -0
- parse/train/foNTMJHXHXC/foNTMJHXHXC_middle.json +0 -0
- parse/train/foNTMJHXHXC/foNTMJHXHXC_model.json +0 -0
- parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ.md +244 -0
- parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ_content_list.json +977 -0
- parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ_middle.json +0 -0
- parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ_model.json +0 -0
- parse/train/r1eIiCNYwS/r1eIiCNYwS.md +421 -0
- parse/train/r1eIiCNYwS/r1eIiCNYwS_content_list.json +0 -0
- parse/train/r1eIiCNYwS/r1eIiCNYwS_middle.json +0 -0
- parse/train/r1eIiCNYwS/r1eIiCNYwS_model.json +0 -0
- vlm/train/1ODSsnoMBav/0.png +3 -0
- vlm/train/1ODSsnoMBav/1.png +3 -0
- vlm/train/1ODSsnoMBav/10.png +3 -0
- vlm/train/1ODSsnoMBav/11.png +3 -0
- vlm/train/1ODSsnoMBav/12.png +3 -0
- vlm/train/1ODSsnoMBav/2.png +3 -0
- vlm/train/1ODSsnoMBav/3.png +3 -0
- vlm/train/1ODSsnoMBav/4.png +3 -0
- vlm/train/1ODSsnoMBav/5.png +3 -0
- vlm/train/1ODSsnoMBav/6.png +3 -0
parse/train/70kOIgjKhbA/70kOIgjKhbA.md
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning?
|
| 2 |
+
|
| 3 |
+
Lijie Fan1, Sijia $\mathbf { L i u ^ { 2 , 3 } }$ , Pin-Yu Chen3, Gaoyuan Zhang3, Chuang Gan3
|
| 4 |
+
|
| 5 |
+
1 Massachusetts Institute of Technology, 2 Michigan State University, 3 MIT-IBM Watson AI Lab, IBM Research lijiefan@mit.edu, liusiji5@msu.edu, {pin-yu.chen,gaoyuan.zhang,chuangg}@ibm.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Contrastive learning (CL) can learn generalizable feature representations and achieve state-of-the-art performance of downstream tasks by finetuning a linear classifier on top of it. However, as adversarial robustness becomes vital in image classification, it remains unclear whether or not CL is able to preserve robustness to downstream tasks. The main challenge is that in the ‘self-supervised pretraining $^ +$ supervised finetuning’ paradigm, adversarial robustness is easily forgotten due to a learning task mismatch from pretraining to finetuning. We call such challenge ‘cross-task robustness transferability’. To address the above problem, in this paper we revisit and advance CL principles through the lens of robustness enhancement. We show that (1) the design of contrastive views matters: High-frequency components of images are beneficial to improving model robustness; (2) Augmenting CL with pseudo-supervision stimulus (e.g., resorting to feature clustering) helps preserve robustness without forgetting. Equipped with our new designs, we propose ADVCL, a novel adversarial contrastive pretraining framework. We show that ADVCL is able to enhance cross-task robustness transferability without loss of model accuracy and finetuning efficiency. With a thorough experimental study, we demonstrate that ADVCL outperforms the state-of-the-art self-supervised robust learning methods across multiple datasets (CIFAR-10, CIFAR-100 and STL-10) and finetuning schemes (linear evaluation and full model finetuning). Code is available at https://github.com/LijieFan/AdvCL.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Image classification has been revolutionized by convolutional neural networks (CNNs). In spite of CNNs’ generalization power, the lack of adversarial robustness has shown to be a main weakness that gives rise to security concerns in high-stakes applications when CNNs are applied, e.g., face recognition, medical image classification, surveillance, and autonomous driving [1–5]. The brittleness of CNNs can be easily manifested by generating tiny input perturbations to completely alter the models’ decision. Such input perturbations and corresponding perturbed inputs are referred to as adversarial perturbations and adversarial examples (or attacks), respectively [6–10].
|
| 14 |
+
|
| 15 |
+
One of the most powerful defensive schemes against adversarial attacks is adversarial training (AT) [11], built upon a two-player game in which an ‘attacker’ crafts input perturbations to maximize the training objective for worst-case robustness, and a ‘defender’ minimizes the maximum loss for an improved robust model against these attacks. However, AT and its many variants using min-max optimization [12–21] were restricted to supervised learning as true labels of training data are required for both supervised classifier and attack generator (that ensures misclassification). The recent work [22–24] demonstrated that with a properly-designed attacker’s objective, AT-type defenses can be generalized to the semi-supervised setting, and showed that the incorporation of additional unlabeled data could further improve adversarial robustness in image classification. Such an extension from supervised to semi-supervised defenses further inspires us to ask whether there exist unsupervised defenses that can eliminate the prerequisite of labeled data but improve model robustness.
|
| 16 |
+
|
| 17 |
+
Some very recent literature [25–29] started tackling the problem of adversarial defense through the lens of self-supervised learning. Examples include augmenting a supervised task with an unsupervised ‘pretext’ task for which ground-truth label is available for ‘free’ [25, 26], or robustifying unsupervised representation learning based only on a pretext task and then finetuning the learned representations over downstream supervised tasks [27–29]. The latter scenario is of primary interest to us as a defense can then be performed at the pretraining stage without needing any label information. Meanwhile, selfsupervised contrastive learning (CL) has been outstandingly successful in the field of representation learning: It can surpass a supervised learning counterpart on downstream image classification tasks in standard accuracy [30–34]. Different from conventional self-supervised learning methods [35], CL, e.g., SimCLR [30], enforces instance discrimination by exploring multiple views of the same data and treating every instance under a specific view as a class of its own [36].
|
| 18 |
+
|
| 19 |
+
The most relevant work to ours is [27, 28], which integrated adversarial training with CL. However, the achieved adversarial robustness at downstream tasks largely relies on the use of advanced finetuning techniques, either adversarial full finetuning [27] or adversarial linear finetuning [28]. Different from [27, 28], we ask:
|
| 20 |
+
|
| 21 |
+
# $( Q )$ How to accomplish robustness enhancement using CL without losing its finetuning efficiency, e.g., via a standard linear finetuner?
|
| 22 |
+
|
| 23 |
+
Our work attempts to make a rigorous and comprehensive study on addressing the above question. We find that self-supervised learning (including the state-of-the-art CL) suffers a new robustness challenge that we call ‘crosstask robustness transferability’, which was largely overlooked in the previous work. That is, there exists a task mismatch from pretraining to finetuning (e.g., from CL to supervised classification) so that adversarial robustness is not able to transfer across tasks even if pretraining datasets and finetuning datasets are drawn from the same distribution. Different from supervised/semi-supervised learning, this is a characteristic behavior of selfsupervision when being adapted to robust
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Summary of performance for various robust pretraining methods on CIFAR-10. The covered baseline methods include AP-DPE [26], RoCL [28], ACL [27] and supervised adversarial training (AT) [11]. Upper-right indicates better performance with respect to (w.r.t.) standard accuracy and robust accuracy (under PGD attack with 20 steps and $8 / 2 5 5 \ell _ { \infty }$ -norm perturbation strength). Different colors represent different pretraining methods, and different shapes represent different finetuning settings. Circles $\mathbf { \eta } ^ { ( \bullet ) }$ indicates Standard Linear Finetuning (SLF), and Diamonds $( \bullet )$ indicates Adversarial Full Finetuning (AFF). Our method (ADVCL, red circle/diamond) has the best performance across finetuning settings. Similar improvement could be observed under Auto-Attacks, and we provide the visualization in the appendix.
|
| 27 |
+
|
| 28 |
+
learning. As shown in Figure 1, our work advances CL in the adversarial context and the proposed method outperforms all state-of-the-art baseline methods, leading to a substantial improvement in both robust accuracy and standard accuracy using either the lightweight standard linear finetuning or end-to-end adversarial full finetuning.
|
| 29 |
+
|
| 30 |
+
Contributions Our main contributions are summarized below.
|
| 31 |
+
|
| 32 |
+
$\bullet$ We propose ADVCL, a unified adversarial CL framework, and propose to use original adversarial examples and high-frequency data components to create robustness-aware and generalization-aware views of unlabeled data.
|
| 33 |
+
|
| 34 |
+
$\pmb { \varrho }$ We propose to generate proper pseudo-supervision stimulus for ADVCL to improve cross-task robustness transferability. Different from existing self-supervised defenses aided with labeled data [27], we generate pseudo-labels of unlabeled data based on their clustering information.
|
| 35 |
+
|
| 36 |
+
$\otimes$ We conduct a thorough experimental study and show that ADVCL achieves state-of-the-art robust accuracies under both PGD attacks [11] and Auto-Attacks [37] using only standard linear finetuning. For example, in the case of Auto-Attack (the most powerful threat model) with $8 / 2 5 5 ~ \ell _ { \infty }$ -norm perturbation strength under ResNet-18, we achieve $3 . 4 4 \%$ and $3 . 4 5 \%$ robustness improvement on CIFAR-10 and CIFAR-100 over existing self-supervised methods. We also justify the effectiveness of ADVCL in different attack setups, dataset transferring, model explanation, and loss landscape smoothness.
|
| 37 |
+
|
| 38 |
+
# 2 Background & Related Work
|
| 39 |
+
|
| 40 |
+
Self-Supervised Learning Early approaches for unsupervised representation learning leverages handcrafted tasks, like prediction rotation [38] and solving the Jigsaw puzzle [39, 40], geometry prediction [41] and Selfie [42]. Recently contrastive learning (CL) [30, 33, 34, 43–45] and its variants [31, 32, 36, 46] have demonstrated superior abilities in learning generalizable features in an unsupervised manner. The main idea behind $\mathrm { C L }$ is to self-create positive samples of the same image from aggressive viewpoints, and then acquire data representations by maximizing agreement between positives while contrasts with negatives.
|
| 41 |
+
|
| 42 |
+
In what follows, we elaborate on the formulation of SimCLR [30], one of the most commonly-used CL frameworks, which this paper will focus on. To be concrete, let $\mathcal { X } = \{ x _ { 1 } , x _ { 2 } , . . . , x _ { n } \}$ denote an unlabeled source dataset, SimCLR offers a learned feature encoder $f _ { \theta }$ to generate expressive deep representations of the data. To train $f _ { \theta }$ , each input $x \in \mathcal { X }$ will be transformed into two views $( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) )$ and labels them as a positive pair. Here transformation operations $\tau _ { 1 }$ and $\tau _ { 2 }$ are randomly sampled from a pre-defined transformation set $\tau$ , which includes, e.g., random cropping and resizing, color jittering, rotation, and cutout. The positive pair is then fed in the feature encoder $f _ { \theta }$ with a projection head $g$ to acquire projected features, i.e., $z _ { i } = g \circ f _ { \theta } ( \tau _ { i } ( x ) )$ for $j \in \{ 1 , 2 \}$ . NT-Xent loss (i.e., the normalized temperature-scaled cross-entropy loss) is then applied to optimizing $f _ { \theta }$ , where the distance of projected positive features $( z _ { 1 } , z _ { 2 } )$ is minimized for each input $x$ . SimCLR follows the ‘self-supervised pretraining $^ +$ supervised finetuning’ paradigm. That is, once $f _ { \theta }$ is trained, a downstream supervised classification task can be handled by just finetuning a linear classifier $\phi$ over the fixed encoder $f _ { \theta }$ , leading to the eventual classification network $\phi \circ f _ { \theta }$ .
|
| 43 |
+
|
| 44 |
+
Adversarial Training (AT) Deep neural networks are vulnerable to adversarial attacks. Various approaches have been proposed to enhance the model robustness. Given a classification model $\theta$ , AT [11] is one of the most powerful robust training methods against adversarial attacks. Different from standard training over normal data $( x , y ) \in \mathcal { D }$ (with feature $x$ and label $y$ in dataset $\mathcal { D }$ ), AT adopts a min-max training recipe, where the worst-case training loss is minimized over the adversarially perturbed data $( x + \delta , y )$ . Here $\delta$ denotes the input perturbation variable to be maximized for the worst-case training objective. The supervised $A T$ is then formally given by
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
\operatorname* { m i n } _ { \theta } \mathbb { E } _ { ( x , y ) \in D } \ \operatorname* { m a x } _ { \| \delta \| _ { \infty } \leq \epsilon } \ell ( x + \delta , y ; \theta ) ,
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
where $\ell$ denotes the supervised training objective, e.g., cross-entropy (CE) loss. There have been many variants of AT [19–21, 47–50, 22–25] established for supervised/semi-supervised learning.
|
| 51 |
+
|
| 52 |
+
Self-supervision enabled AT Several recent works [26–29] started to study how to improve model robustness using self-supervised AT. Their idea is to apply AT (1) to a self-supervised pretraining task, e.g., SimCLR in [27, 28], such that the learned feature encoder $f _ { \theta }$ renders robust data representations. However, different from our work, the existing ones lack a systematic study on when and how self-supervised robust pretraining can preserve robustness to downstream tasks without sacrificing the efficiency of lightweight finetuning. For example, the prior work [26, 27] suggested adversarial full finetuning, where pretrained model is used as a weight initialization in finetuning downstream tasks. Yet, it requests the finetuner to update all of the weights of the pretrained model, and thus makes the advantage of self-supervised robust pretraining less significant. A more practical scenario is linear finetuning: One freezes the pretrained feature encoder for the downstream task and only partially finetunes a linear prediction head. The work [28] evaluated the performance of linear fintuning but observed a relatively large performance gap between the standard linear finetuning and adversarial linear finetuning; see more comparisons in Figure 1. Therefore, the problem–how to enhance robustness transferability from pretraining to linear finetuning–remains unexplored.
|
| 53 |
+
|
| 54 |
+
# 3 Problem Statement
|
| 55 |
+
|
| 56 |
+
In this section, we present the problem of our interest, together with its setup.
|
| 57 |
+
|
| 58 |
+
Robust pretraining $^ +$ linear finetuning. We aim to develop robustness enhancement solutions by fully exploiting and exploring the power of CL at the pretraining phase, so that the resulting robust feature representations can seamlessly be used to generate robust predictions of downstream tasks using just a lightweight finetuning scheme. With the aid of AT (1), we formulate the ‘robust pretraining $^ +$ linear finetuning’ problem below:
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
\begin{array} { r l } & { \mathrm { P r e t r a i n i n g : ~ } \operatorname* { m i n } _ { \theta } \mathbb { E } _ { x \in \mathcal { X } } \underset { \| \delta \| _ { \infty } \leq \epsilon } { \operatorname* { m a x } } \ell _ { \mathrm { p r e } } ( x + \delta , x ; \theta ) } \\ & { \mathrm { F i n e t u n i n g : ~ } \operatorname* { m i n } _ { \theta _ { \mathrm { c } } } \mathbb { E } _ { ( x , y ) \in \mathcal { D } } \ell _ { \mathrm { C E } } ( \phi _ { \theta _ { \mathrm { c } } } \circ f _ { \theta } ( x ) , y ) , } \end{array}
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
where $\ell _ { \mathrm { p r e } }$ denotes a properly-designed robustness- and generalization-aware CL loss (see Sec. 4) given as a function of the adversarial example $( x + \delta )$ , original example $x$ and feature encoder parameters $\theta$ . In (2), $\phi _ { \theta _ { \mathrm { c } } } \circ f _ { \theta }$ denotes the classifier by equipping the linear prediction head $\phi _ { \theta _ { \mathrm { c } } }$ (with parameters $\theta _ { \mathrm { c } }$ to be designed) on top of the fixed feature encoder $f _ { \theta }$ , and $\ell _ { \mathrm { C E } }$ denotes the supervised CE loss over the target dataset $\mathcal { D }$ . Note that besides the standard linear finetuning (3), one can also modify (3) using the worst-case CE loss for adversarial linear/full finetuning [27, 28]. We do not consider standard full finetuning in the paper since tuning the full network weights with standard cross-entropy loss is not possible for the model to preserve robustness [26].
|
| 65 |
+
|
| 66 |
+
Cross-task robustness transferability. Different from supervised/semi-supervised learning, selfsupervision enables robust pretraining over unlabeled source data. In the meantime, it also imposes a new challenge that we call ‘cross-task robustness transferability’: At the pretraining stage, a feature encoder is learned over a ‘pretext’ task for which ground-truth is available for free, while finetuning is typically carried out on a new downstream task. Spurred by the above, we ask the following questions:
|
| 67 |
+
|
| 68 |
+
• Will CL improve adversarial robustness using just standard linear finetuning? • What are the principles that CL should follow to preserve robustness across tasks? • What are the insights can we acquire from self-supervised robust representation learnin
|
| 69 |
+
|
| 70 |
+
# 4 Proposed Approach: Adversarial Contrastive Learning (ADVCL)
|
| 71 |
+
|
| 72 |
+
In this section, we develop a new adversarial CL framework, ADVCL, which includes two main components, robustnessaware view selection and pseudosupervision stimulus generation. In particular, we advance the view selection mechanism by taking into account proper frequencybased data transformations that are beneficial to robust representation learning and pretraining generalization ability. Furthermore, we propose to design and integrate proper supervision stimulus into ADVCL so as to improve the cross-task robustness transferability since robust representations learned from self
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 2: The overall pipeline of ADVCL. It mainly has two ingredients: robustness-aware view selection (orange box) and pseudo-supervision stimulus generation (blue box). The view selection mechanism is advanced by high frequency components, and the supervision stimulus is created by generating pseudo labels for each image through CLUSTERFIT. The pseudo label (in yellow color) can be created in an offline manner and will not increase the computation overhead.
|
| 76 |
+
|
| 77 |
+
supervision may lack the class-discriminative ability required for robust predictions on downstream tasks. We provide an overview of ADVCL in Figure 2.
|
| 78 |
+
|
| 79 |
+
# 4.1 View selection mechanism
|
| 80 |
+
|
| 81 |
+
In contrast to standard CL, we propose two additional contrastive views: the adversarial view and the frequency view, respectively.
|
| 82 |
+
|
| 83 |
+
Multi-view CL loss Prior to defining new views, we first review the NT-Xent loss and its multiview version used in CL. Following notations defined in Sec. 2, the contrastive loss with respect to (w.r.t.) a positive pair $( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) \bar { ) }$ of each (unlabeled) data $x$ is given by
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\ell _ { \mathrm { C L } } ( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) ) = - \sum _ { i = 1 } ^ { 2 } \sum _ { j \in \mathcal { P } ( i ) } \log \frac { \exp { \left( \sin ( z _ { i } , z _ { j } ) / t \right) } } { \sum _ { k \in \mathcal { N } ( i ) } \exp { \left( \sin ( z _ { i } , z _ { k } ) / t \right) } } ,
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where recall that $z _ { i } = g \circ f ( \tau _ { i } ( x ) )$ is the projected feature under the ith view, $\mathcal { P } ( i )$ is the set of positive views except $i$ (e.g., $\mathcal { P } ( i ) = \{ 2 \}$ if $i = 1$ ), $\mathcal { N } ( i )$ denotes the set of augmented batch data except the point $\tau _ { i } ( x )$ , the cardinality of $\mathcal { N } ( i )$ is $( 2 b - 1 )$ (for a data batch of size $b$ under 2 views), $\sin ( z _ { i 1 } , z _ { i 2 } )$ denotes the cosine similarity between representations from two views of the same data, exp denotes exponential function, $\mathrm { s i m } ( \cdot , \cdot )$ is the cosine similarity between two points, and $t > 0$ is a temperature parameter. The two-view CL objective can be further extend to the multi-view contrastive loss [51]
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\ell _ { \mathrm { C L } } ( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) , \dots , \tau _ { m } ( x ) ) = - \sum _ { i = 1 } ^ { m } \sum _ { j \in \mathcal { P } ( i ) } \log \frac { \exp { \left( \sin ( z _ { i } , z _ { j } ) / t \right) } } { \displaystyle \sum _ { k \in \mathcal { N } ( i ) } \exp { \left( \sin ( z _ { i } , z _ { k } ) / t \right) } } ,
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
where $\mathcal { P } ( i ) ~ = ~ [ m ] / \{ i \}$ denotes the $m$ positive views except $i$ , $[ m ]$ denotes the integer set $\{ 1 , 2 , \ldots , { \dot { m } } \}$ , and $\mathcal { N } ( i )$ , with cardinality $( b m - 1 )$ , denotes the set of $m$ -view augmented $b$ batch samples except the point $\tau _ { i } ( x )$ .
|
| 96 |
+
|
| 97 |
+
Contrastive view from adversarial example Existing methods proposed in [27–29] can be explained based on (4): An adversarial perturbation $\delta$ w.r.t. each view of a sample $x$ is generated by maximizing the contrastive loss:
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\delta _ { 1 } ^ { * } , \delta _ { 2 } ^ { * } = \underset { \| \delta _ { i } \| _ { \infty } \leq \epsilon } { \mathrm { a r g m a x } } \ell _ { \mathrm { C L } } ( \tau _ { 1 } ( x ) + \delta _ { 1 } , \tau _ { 2 } ( x ) + \delta _ { 2 } ) .
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
A solution to problem (6) eventually yields a paired perturbation view $( \tau _ { 1 } ( x ) + \delta _ { 1 } ^ { * } , \tau _ { 2 } ( x ) + \delta _ { 2 } ^ { * } )$ . However, the definition of adversarial view (6) used in [27–29] may not be proper. First, standard CL commonly uses aggressive data transformation that treats small portions of images as positive samples of the full image [36]. Despite its benefit to promoting generalization, crafting perturbations over such aggressive data transformations may not be suitable for defending adversarial attacks applied to full images in the adversarial context. Thus, a new adversarial view built upon $x$ rather than $\tau _ { i } ( x )$ is desired. Second, the contrastive loss (4) is only restricted to two views of the same data. As will be evident later, the multi-view contrastive loss is also needed when taking into account multiple robustness-promoting views. Spurred by above, we define the adversarial view over $x$ , without modifying the existing data augmentations $( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) )$ . This leads to the following adversarial perturbation generator by maximizing a 3-view contrastive loss
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\delta ^ { * } = \underset { \| \delta \| \leq \epsilon } { \mathrm { a r g m a x } } \ell _ { \mathrm { C L } } ( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) , x + \delta ) ,
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where $x + \delta ^ { * }$ is regarded as the third view of $x$
|
| 110 |
+
|
| 111 |
+
Contrastive view from high-frequency component Next, we use the high-frequency component (HFC) of data as another additional contrastive view. The rationale arises from the facts that 1) learning over HFC of data is a main cause of achieving superior generalization ability [52] and 2) an adversary typically concentrates on HFC when manipulating an example to fool model’s decision [53]. Let $\mathcal { F }$ and $\scriptstyle { \dot { \mathcal { F } } } ^ { - 1 }$ denote Fourier transformation and its inverse. An input image $x$ can then be decomposed into its HFC $x _ { \mathrm { h } }$ and low-frequency component (LFC) $x _ { \mathrm { l } }$ :
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
x _ { \mathrm { h } } = \mathcal { F } ^ { - 1 } ( q _ { \mathrm { h } } ) , \quad x _ { \mathrm { l } } = \mathcal { F } ^ { - 1 } ( q _ { \mathrm { l } } ) , \quad [ q _ { \mathrm { h } } , q _ { \mathrm { l } } ] = \mathcal { F } ( x ) .
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
In (8), the distinction between $q _ { \mathrm { h } }$ and $q _ { \mathrm { l } }$ is made by a hard thresholding operation. Let $q ( i , j )$ denote the $( i , j )$ th element of $\mathcal { F } ( x )$ , and $c = ( c _ { 1 } , c _ { 2 } )$ denote the centriod of the frequency spectrum. The components $q _ { \mathrm { l } }$ and $q _ { \mathrm { h } }$ in (8) are then generated by filtering out values according to the distance from c: $q _ { h } ( i , j ) = \mathbb { 1 } _ { [ d ( ( i , j ) , ( c _ { 1 } , c _ { 2 } ) ) \geq r ] } \cdot q ( i , j )$ , and $q _ { l } ( i , j ) = \mathbb { 1 } _ { [ d ( ( i , j ) , ( c _ { 1 } , c _ { 2 } ) ) \leq r ] } \cdot q ( i , j )$ , where $d ( \cdot , \cdot )$ is the Euclidian distance between two spatial coordinates, $r$ is a pre-defined distance threshold $r = 8$ in all our experiments), and $\mathbb { 1 } _ { [ . ] } \in \{ 0 , 1 \}$ is an indicator function which equals to 1 if the condition within $[ \cdot ]$ is met and 0 otherwise.
|
| 118 |
+
|
| 119 |
+
Robustness-aware contrastive learning objective By incorporating the adversarial perturbation $\delta$ and disentangling HFC $x _ { \mathrm { h } }$ from the original data $x$ , we obtain a four-view contrastive loss (5) defined over $( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) , x + \delta , x _ { \mathrm { h } } )$ ,
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\ell _ { \mathrm { C L } } ^ { \mathrm { a d v } } ( \theta ; \mathcal { X } ) : = \mathbb { E } _ { x \in \mathcal { X } } \operatorname* { m a x } _ { \| \delta \| _ { \infty } \leq \epsilon } \ell _ { \mathrm { C L } } ( \tau _ { 1 } ( x ) , \tau _ { 2 } ( x ) , x + \delta , x _ { \mathrm { h } } ; \theta ) ,
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
where recall that $\mathcal { X }$ denotes the unlabeled dataset, $\epsilon > 0$ is a perturbation tolerance during training, and for clarity, the four-view contrastive loss (5) is explicitly expressed as a function of model parameters $\theta$ . As will be evident latter, the eventual learning objective ADVCL will be built upon (9).
|
| 126 |
+
|
| 127 |
+
# 4.2 Supervision stimulus generation: ADVCL empowered by CLUSTERFIT
|
| 128 |
+
|
| 129 |
+
On top of (9), we further improve the robustness transferability of learned representations by generating a proper supervision stimulus. Our rationale is that robust representation could lack the class-discriminative power required by robust classification as the former is acquired by optimizing an unsupervised contrastive loss while the latter is achieved by a supervised cross-entropy CE loss. However, there is no knowledge about supervised data during pretraining. In order to improve crosstask robustness transferability but without calling for supervision, we take advantage of CLUSTERFIT [54], a pseudo-label generation method used in representation learning.
|
| 130 |
+
|
| 131 |
+
To be more concrete, let $f _ { \mathrm { p r e } }$ denote a pretrained representation network that can generate latent features of unlabeled data. Note that $f _ { \mathrm { p r e } }$ can be set available beforehand and trained over either supervised or unsupervised dataset $\mathcal { D } _ { \mathrm { p r e } }$ , e.g., ImageNet using using CL in experiments. Given (normalized) pretrained data representations $\{ f _ { \mathrm { p r e } } ( x ) \} _ { x \in \mathcal { X } }$ , CLUSTERFIT uses $K$ -means clustering to find $K$ data clusters of $\mathcal { X }$ , and maps a cluster index $c$ to a pseudo-label, resulting in the pseudolabeled dataset $\{ ( x , c ) \in \hat { \mathcal { X } } \}$ . By integrating CLUSTERFIT with (9), the eventual training objective of ADVCL is then formed by
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\operatorname* { m i n } _ { \theta } \ \ell _ { \mathrm { { C L } } } ^ { \mathrm { a d v } } ( \theta ; \mathcal { X } ) + \lambda \operatorname* { m i n } _ { \theta , \theta _ { \mathrm { c } } } \ \mathbb { E } _ { ( x , c ) \in \hat { \mathcal { X } } } \operatorname* { m a x } _ { \| \delta _ { c e } \| _ { \infty } \leq \epsilon } \ell _ { \mathrm { C E } } ( \phi _ { \theta _ { \mathrm { c } } } \circ f _ { \theta } ( x + \delta _ { c e } ) , c ) ,
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
Pseudo-classification enabled AT regularization
|
| 138 |
+
|
| 139 |
+
where $\hat { \mathcal X }$ denotes the pseudo-labeled dataset of $\mathcal { X }$ , $\phi _ { \theta _ { \mathrm { c } } }$ denotes a prediction head over $f _ { \theta }$ , and $\lambda > 0$ is a regularization parameter that strikes a balance between adversarial contrastive training and pseudo-label stimulated AT. When the number of clusters $K$ is not known a priori, we extend (10) to an ensemble version over $n$ choices of cluster numbers $\{ K _ { 1 } , \ldots , K _ { n } \}$ . Here each cluster number $K _ { i }$ is paired with a unique linear classifier $\phi _ { i }$ to obtain the supervised prediction $\phi _ { i } \circ f$ (using cluster labels). The ensemble CE loss, given by the average of $n$ individual losses, is then used in (10). Our experiments show that the ensemble version usually leads to better generalization ability.
|
| 140 |
+
|
| 141 |
+
# 5 Experiments
|
| 142 |
+
|
| 143 |
+
In this section, we demonstrate the effectiveness of our proposed ADVCL from the following aspects: (1) Quantitative results, including cross-task robustness transferability, cross-dataset robustness transferability, and robustness against PGD attacks [11] and Auto-Attacks [37]; (2) Qualitative results, including representation t-SNE [55], feature inversion map visualization, and geometry of loss landscape; (3) Ablation studies of ADVCL, including finetuning schemes, view selection choices, and supervision stimulus variations.
|
| 144 |
+
|
| 145 |
+
Experiment setup We consider three robustness evaluation metrics: (1) Auto-attack accuracy (AA), namely, classification accuracy over adversarially perturbed images via Auto-Attacks; (2) Robust accuracy (RA), namely, classification accuracy over adversarially perturbed images via PGD attacks; and (3) Standard accuracy (SA), namely, standard classification accuracy over benign images without perturbations. We use ResNet-18 for the encoder architecture of $f _ { \theta }$ in CL. Unless specified otherwise, we use 5-step $\ell _ { \infty }$ projected gradient descent (PGD) with $\epsilon = 8 / 2 5 5$ to generate perturbations during pretraining, and use Auto-Attack and 20-step $\ell _ { \infty }$ PGD with $\epsilon = 8 / 2 5 5$ to generate perturbations in computing AA and RA at test time. We will compare ADVCL with the CL-based adversarial pretraining baselines , ACL [27], RoCL [28], (non-CL) self-supervised adversarial learning baseline AP-DPE [26] and the supervised AT baseline [11].
|
| 146 |
+
|
| 147 |
+
# 5.1 Quantitative Results
|
| 148 |
+
|
| 149 |
+
Overall performance from pretraining to finetuning (across tasks) In Table 1, we evaluate the robustness of a classifier (ResNet-18) finetuned over robust representations learned by different supervised/self-supervised pretraining approaches over CIFAR-10 and CIFAR-100. We focus on two representative finetuning schemes: the simplest standard linear finetuning (SLF) and the end-to-end adversarial full finetuning (AFF). As we can see, the proposed ADVCL method yields a substantial improvement over almost all baseline methods. Moreover, ADVCL improves robustness and standard accuracy simultaneously.
|
| 150 |
+
|
| 151 |
+
Table 1: Cross-task performance of ADVCL (in dark gray color), compared with supervised (in white color) and self-supervised (in light gray color) baselines, in terms of AA, RA and SA on CIFAR-10 with ResNet-18. The pretrained models are evaluated under the standard linear finetuning (SLF) setting and the adversarial full finetuning (AFF) setting. The top performance is highlighted in bold.
|
| 152 |
+
|
| 153 |
+
<table><tr><td rowspan="2">Pretraining Method</td><td rowspan="2">Finetuning Method</td><td colspan="3">CIFAR-10</td><td colspan="3">CIFAR-100</td></tr><tr><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td></tr><tr><td>Supervised AP-DPE[26]</td><td rowspan="4">Standard linear finetuning</td><td>42.22</td><td>44.4</td><td>79.77</td><td>19.53</td><td>23.41</td><td>50.53</td></tr><tr><td>RoCL[28]</td><td>16.07</td><td>18.22</td><td>78.30</td><td>4.17</td><td>6.23</td><td>47.91</td></tr><tr><td></td><td>28.38</td><td>39.54</td><td>79.90</td><td>8.66</td><td>18.79</td><td>49.53</td></tr><tr><td>ACL[27] AdvCL (ours)</td><td>39.13</td><td>42.87</td><td>77.88</td><td>16.33</td><td>20.97</td><td>47.51</td></tr><tr><td></td><td rowspan="4">Adversarial full</td><td> 42.57</td><td> 50.45</td><td>80.85</td><td>19.78</td><td>27.67</td><td>48.34</td></tr><tr><td>Supervised</td><td>46.19</td><td>49.89</td><td>79.86</td><td>21.61</td><td>25.86</td><td>52.22</td></tr><tr><td>AP-DPE[26]</td><td>48.13</td><td>51.52</td><td>81.19</td><td>22.53</td><td>26.89</td><td>55.27</td></tr><tr><td>RoCL[28]</td><td>47.88</td><td>51.35</td><td>81.01</td><td>22.38</td><td>27.49</td><td>55.10</td></tr><tr><td>ACL[27]</td><td rowspan="3">finetuning (AFF)</td><td>49.27</td><td> 52.82</td><td>82.19</td><td>23.63</td><td>29.38</td><td>56.61</td></tr><tr><td> ADvCL (ours)</td><td>49.77</td><td> 52.77</td><td>83.62</td><td>24.72</td><td>28.73</td><td>56.77</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 154 |
+
|
| 155 |
+
Robustness transferability across datasets In Table 2, we next evaluate the robustness transferability across different datasets, where $A $ $B$ denotes the transferability from pretraining on dataset $A$ to finetuning on another dataset $B \left( \neq A \right)$ of representations learned by ADVCL. Here the pretraining setup is consistent with Table 1. We observe that ADVCL yields
|
| 156 |
+
|
| 157 |
+
Table 2: Cross-dataset performance of ADVCL (dark gray color), compared with supervised (white color) and self-supervised (light gray) baselines, in AA, RA, SA, on STL-10 with ResNet-18.
|
| 158 |
+
|
| 159 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">一 Fine- tuning</td><td colspan="3">CIFAR-10→STL-10</td><td colspan="3">CIFAR-100→STL-10</td></tr><tr><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td></tr><tr><td>Supervised</td><td rowspan="4">SLF</td><td>22.26</td><td>30.45</td><td>54.70</td><td>19.54</td><td>23.63</td><td>51.11</td></tr><tr><td>RoCL[28]</td><td>18.65</td><td>28.18</td><td>54.56</td><td>12.39</td><td>21.93</td><td>47.86</td></tr><tr><td>ACL[27]</td><td>25.29</td><td>31.80</td><td>55.81</td><td>21.75</td><td>26.32</td><td>45.91</td></tr><tr><td> ADvCL (ours)</td><td>25.74</td><td>35.80</td><td>63.73</td><td>20.86</td><td>30.35</td><td>50.71</td></tr><tr><td>Supervised</td><td rowspan="4">AFF</td><td>33.10</td><td>36.7</td><td>62.78</td><td>29.18</td><td>32.43</td><td>55.85</td></tr><tr><td>RoCL[28]</td><td>29.40</td><td>34.65</td><td>61.75</td><td>27.55</td><td>31.38</td><td>57.83</td></tr><tr><td>ACL[27]</td><td>32.50</td><td>35.93</td><td>62.65</td><td>28.68</td><td>32.41</td><td>57.16</td></tr><tr><td>ADvCL (ours)</td><td>34.70</td><td>37.78</td><td>63.52</td><td>30.51</td><td>33.70</td><td>61.56</td></tr></table>
|
| 160 |
+
|
| 161 |
+
better robustness as well as standard accuracy than almost all baseline approaches under both SLF and AFF finetuning settings. In the case of CIFAR- $1 0 0 \mathrm { S T L } \mathrm { - } 1 0$ , although ADVCL yields $0 . 8 9 \%$ AA drop compared to ACL [27], it yields a much better SA with $4 . 8 \%$ improvement.
|
| 162 |
+
|
| 163 |
+
Robustness evaluation vs. attack strength It was shown in [56] that an adversarial defense that causes obfuscated gradients results in a false sense of model robustness. The issue of obfuscated gradients typically comes with two ‘side effects’: (a) The success rate of PGD attack ceases to be improved as the $\ell _ { \infty }$ -norm perturbation radius $\epsilon$ increases; (b) A larger number of PGD steps fails to generate stronger adversarial examples. Spurred by
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
Figure 3: RA of ADVCL and baseline approaches under various PGD attacks. SLF is applied to the pretrained model.
|
| 167 |
+
|
| 168 |
+
the above, Figure 3 shows the finetuning performance of ADVCL (using SLF) as a function of the perturbation size $\epsilon$ and the PGD step number. As we can see, ADVCL is consistently more robust than the baselines at all different PGD settings for a significant margin.
|
| 169 |
+
|
| 170 |
+
# 5.2 Qualitative Results
|
| 171 |
+
|
| 172 |
+
Class discrimination of learned representations To further demonstrate the efficacy of ADVCL, Figure 4 visualizes the representations learned by self-supervision using t-SNE [55] on CIFAR-10. We color each point using its ground-truth label. The results show representations learned by ADVCL have a much clearer class boundary than those learned with baselines. This indicates that ADVCL makes an adversary difficult to successfully perturb an image, leading to a more robust prediction.
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 4: t-SNE visualization of representations learned with different self-supervised pretraining approaches. Our ADVCL gives a much clearer separation among classes than baseline approaches.
|
| 176 |
+
|
| 177 |
+
Visual interpretability of learned representations Furthermore, we demonstrate the advantage of our proposals from the perspective of model explanation, characterized by feature inversion map (FIM) [57] of internal neurons’ response. The work [18, 58, 59] showed that model robustness offered by supervised AT and its variants enforces hidden neurons to learn perceptuallyaligned data features through the lens of FIM. However, it remains unclear whether or not selfsupervised robust pretraining is able to render explainable internal response. Following [57, 58], we acquire FIM of the ith component of representation vector by solving the optimization problem $\begin{array} { r } { x _ { \mathrm { F I M } } = \operatorname* { m i n } _ { \Delta } [ f _ { \theta } ( x _ { 0 } + \Delta ) ] _ { i } } \end{array}$ , where $x _ { 0 }$ is a randomly selected seed image, and $[ \cdot ] _ { i }$ denotes the ith coordinate of a vector. Figure 5 shows that
|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
Figure 5: FIM visualization of neuron 502 under CIFAR-10 using different robust training methods. Column 1 contains different seed images to generate FIM. Columns 2-5 are FIMs using models trained with different approaches.
|
| 181 |
+
|
| 182 |
+
compared to other approaches, more similar texture-aligned features can be acquired from a neuron’s feature representation of the network trained with our method regardless of the choice of seed images.
|
| 183 |
+
|
| 184 |
+
Flatter loss landscape implies better transferability It has been shown in [60] that the flatness of loss landscape is a good indicator for superb transferability in the pretraining $^ +$ finetuning paradigm. Motivated by that, Figure 6 presents the adversarial loss landscape of ADVCL and other self-supervised pretraining approaches under SLF, where the loss landscape is drawn using the method in [61]. Note that instead of standard CE loss, we visualize the adversarial loss w.r.t. model weights. As we can see, the loss for ADVCL has a much flatter landscape around the local optima, whereas the losses for the other approaches change more rapidly. This justifies that our proposal has a better robustness transferability than baseline approaches.
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 6: Visualization of adversarial loss landscape w.r.t. model weights using different self-supervised pretraining methods. ADVCL gives a much flatter landscape than the other baselines.
|
| 188 |
+
|
| 189 |
+
Table 3: Performance (RA and SA) of ADVCL (in dark gray color) and baseline approaches on CIFAR-10, under different linear finetuning strategies: SLF and adversarial linear finetuning (ALF).
|
| 190 |
+
|
| 191 |
+
<table><tr><td rowspan=3 colspan=3>SLFMethodRA(%) SA(%)</td><td></td><td></td></tr><tr><td rowspan=1 colspan=2>SLF</td><td rowspan=1 colspan=2>ALF</td></tr><tr><td rowspan=1 colspan=1>RA(%)</td><td rowspan=1 colspan=1>SA(%)</td><td rowspan=1 colspan=1>RA(%)</td><td rowspan=1 colspan=1>SA(%)</td></tr><tr><td rowspan=1 colspan=1>Supervised</td><td rowspan=1 colspan=1>44.40</td><td rowspan=1 colspan=1>79.77</td><td rowspan=1 colspan=1>46.75</td><td rowspan=1 colspan=1>79.06</td></tr><tr><td rowspan=1 colspan=1>RoCL[28]ACL[27]</td><td rowspan=1 colspan=1>39.5442.87</td><td rowspan=1 colspan=1>79.9077.88</td><td rowspan=1 colspan=1>43.1145.40</td><td rowspan=1 colspan=1>77.3377.71</td></tr><tr><td rowspan=1 colspan=1>ADvCL(ours)</td><td rowspan=1 colspan=1>50.45</td><td rowspan=1 colspan=1>80.85</td><td rowspan=1 colspan=1>52.01</td><td rowspan=1 colspan=1>79.39</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Table 4: Performance (RA and SA) of ADVCL using different contrastive views setups. ResNet-18 is the backbone network, CIFAR-10 is the dataset, and SLF is used for classification.
|
| 194 |
+
|
| 195 |
+
<table><tr><td>Contrastive Views</td><td>RA(%)</td><td>SA(%)</td></tr><tr><td>T1(x)+01,T2(x) T1(x)+δ1,T2(x)+δ2</td><td>42.12 42.48</td><td>77.07 73.12</td></tr><tr><td>T1(x)+δ1,T2(x)+δ,T1(x),T2(x)</td><td>43.51</td><td>74.22</td></tr><tr><td>x+δ,T1(x),T2(x)</td><td>50.19</td><td>80.17</td></tr><tr><td>x +δ,T1(x),2(x),x1</td><td>49.51</td><td>79.83</td></tr><tr><td>x+δ,T1(x),T2(x),x1,xh</td><td>50.03</td><td>80.14</td></tr><tr><td>x +δ,T1(x),T2(x),xh</td><td> 50.45</td><td>80.85</td></tr></table>
|
| 196 |
+
|
| 197 |
+
Table 5: Performance (RA and SA) of ADVCL using various pretrained models $f _ { \mathrm { p r e } }$ and cluster numbers $K$ in CLUSTERFIT, as well as the baseline w/o using CLUSTERFIT. The setup of $f _ { \mathrm { p r e } }$ is specified by the training method (supervised training or SimCLR) and training dataset (ImageNet or CIFAR-10). ADVCL is implemented using unlabeled data from CIFAR-10 under ResNet-18, together with SLF over the acquired feature encoder for supervised CIFAR-10 classification.
|
| 198 |
+
|
| 199 |
+
<table><tr><td rowspan="2">fpre setup: (dataset, training)</td><td rowspan="2">Cluster number K</td><td rowspan="2">RA(%)</td><td rowspan="2">SA (%)</td></tr><tr><td></td></tr><tr><td>N/A</td><td>W/o CLUSTERFIT</td><td>48.89</td><td>77.73 80.34</td></tr><tr><td rowspan="2">(CIFAR-10, SimCLR)</td><td>10 100</td><td>50.10 49.21</td><td>79.52</td></tr><tr><td></td><td></td><td></td></tr><tr><td rowspan="2">(ImageNet,supervised)</td><td>10 100</td><td>50.16 49.27</td><td>78.27 78.08</td></tr><tr><td></td><td></td><td></td></tr><tr><td rowspan="6">(ImageNet, SimCLR)</td><td>2</td><td>50.09</td><td>79.72</td></tr><tr><td>10</td><td>50.12</td><td>79.93</td></tr><tr><td>50</td><td>49.27</td><td>79.55</td></tr><tr><td>100</td><td>49.16</td><td>79.07</td></tr><tr><td>500</td><td>49.03</td><td>78.96</td></tr><tr><td>Ensemble</td><td>50.45</td><td>80.85</td></tr></table>
|
| 200 |
+
|
| 201 |
+
# 5.3 Ablation studies
|
| 202 |
+
|
| 203 |
+
Linear finetuning types We first study the robustness difference when different linear finetuning strategies: Standard linear finetuning (SLF) and Adversarial linear finetuning (ALF) are applied. Table 3 shows the performance of models trained with different pretraining methods. As we can see, our ADVCL achieves the best performance under both linear finetuning settings and outperforms baseline approaches in a large margin. We also note the performance gap between SLF and ALF induced by our proposal ADVCL is much smaller than other approaches, and ADVCL with SLF achieves much better performance than baseline approaches with ALF. This indicates that the representations learned by ADVCL is already sufficient to yield satisfactory robustness.
|
| 204 |
+
|
| 205 |
+
View selection setup We illustrate how different choices of contrastive views influence the robustness performance of ADVCL in Table 4. The first 4 rows study the effect of different types of adversarial examples in contrastive views, and our proposed 3-view contrastive loss (7) significantly outperforms the other baselines, as shown in row 4. The rows in gray show the performance of further exploring different image frequency components (8) as different contrastive views. It is clear that the use of HFC leads to the best overall performance, as shown in the last row.
|
| 206 |
+
|
| 207 |
+
Supervision stimulus setup We further study the performance of ADVCL using different supervision stimulus. Specifically, we vary the pretrained model for $f _ { \mathrm { p r e } }$ and pseudo cluster number $K$ when training ADVCL and summarize the results in Table 5. The results demonstrate that adding the supervision stimulus could boost the performance of ADVCL. We also observe that the best result comes from $f _ { \mathrm { p r e } }$ pretrained on Imagenet using SimCLR. This is because such representations could generalize better. Moreover, the ensemble scheme over pseudo label categories $K \in \{ 2 , 1 0 , 5 0 , 1 0 \bar { 0 } , 5 0 0 \}$ yields better results than using a single number of clusters. The ensemble scheme also makes ADVCL less sensitive to the actual number of labels for the training dataset.
|
| 208 |
+
|
| 209 |
+
# 6 Conclusion
|
| 210 |
+
|
| 211 |
+
In this paper, we study the good practices in making contrastive learning robust to adversarial examples. We show that adding perturbations to original images and high-frequency components are two beneficial factors. We further show that proper supervision stimulus could improve model robustness. Our proposed approaches can achieve state-of-the-art robust accuracy as well as standard accuracy using just standard linear finetuning. Extensive experiments involving quantitative and qualitative analysis have also been made not only to demonstrate the effectiveness of our proposals but also to rationalize why it yields superior performance. Future works could be done to improve the scalability of our proposed self-supervised pretraining approach to very large datasets and models to further boost robust transferabilty across datasets.
|
| 212 |
+
|
| 213 |
+
References
|
| 214 |
+
[1] Fatemeh Vakhshiteh, Raghavendra Ramachandra, and Ahmad Nickabadi, “Threat of adversarial attacks on face recognition: A comprehensive survey,” arXiv preprint arXiv:2007.11709, 2020.
|
| 215 |
+
[2] Xingjun Ma, Yuhao Niu, Lin Gu, Yisen Wang, Yitian Zhao, James Bailey, and Feng Lu, “Understanding adversarial attacks on deep learning based medical image analysis systems,” Pattern Recognition, vol. 110, pp. 107332, 2021.
|
| 216 |
+
[3] Kaidi Xu, Gaoyuan Zhang, Sijia Liu, Quanfu Fan, Mengshu Sun, Hongge Chen, Pin-Yu Chen, Yanzhi Wang, and Xue Lin, “Adversarial t-shirt! evading person detectors in a physical world,” in European Conference on Computer Vision. Springer, 2020, pp. 665–681.
|
| 217 |
+
[4] Ji Lin, Chuang Gan, and Song Han, “Defensive quantization: When efficiency meets robustness,” ICLR, 2019.
|
| 218 |
+
[5] Yulong Cao, Chaowei Xiao, Dawei Yang, Jing Fang, Ruigang Yang, Mingyan Liu, and Bo Li, “Adversarial objects against lidar-based autonomous driving systems,” arXiv preprint arXiv:1907.05418, 2019.
|
| 219 |
+
[6] Ian Goodfellow, Jonathon Shlens, and Christian Szegedy, “Explaining and harnessing adversarial examples,” International Conference on Learning Representations, vol. arXiv preprint arXiv:1412.6572, 2015.
|
| 220 |
+
[7] Nicholas Carlini and David Wagner, “Towards evaluating the robustness of neural networks,” in Security and Privacy (SP), 2017 IEEE Symposium on. IEEE, 2017, pp. 39–57.
|
| 221 |
+
[8] Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami, “The limitations of deep learning in adversarial settings,” in Security and Privacy (EuroS&P), 2016 IEEE European Symposium on. IEEE, 2016, pp. 372–387.
|
| 222 |
+
[9] Pin-Yu Chen, Yash Sharma, Huan Zhang, Jinfeng Yi, and Cho-Jui Hsieh, “EAD: elasticnet attacks to deep neural networks via adversarial examples,” in Proceedings of the AAAI Conference on Artificial Intelligence, 2018, pp. 10–17.
|
| 223 |
+
[10] Kaidi Xu, Sijia Liu, Pu Zhao, Pin-Yu Chen, Huan Zhang, Quanfu Fan, Deniz Erdogmus, Yanzhi Wang, and Xue Lin, “Structured adversarial attack: Towards general implementation and better interpretability,” in International Conference on Learning Representations, 2019.
|
| 224 |
+
[11] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu, “Towards deep learning models resistant to adversarial attacks,” 2018 ICLR, vol. arXiv preprint arXiv:1706.06083, 2018.
|
| 225 |
+
[12] Harini Kannan, Alexey Kurakin, and Ian Goodfellow, “Adversarial logit pairing,” 2018.
|
| 226 |
+
[13] Andrew Slavin Ross and Finale Doshi-Velez, “Improving the adversarial robustness and interpretability of deep neural networks by regularizing their input gradients,” in Thirty-second AAAI conference on artificial intelligence, 2018.
|
| 227 |
+
[14] Jingkang Wang, Tianyun Zhang, Sijia Liu, Pin-Yu Chen, Jiacen Xu, Makan Fardad, and Bo Li, “Towards a unified min-max framework for adversarial exploration and robustness,” arXiv preprint arXiv:1906.03563, 2019.
|
| 228 |
+
[15] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Jonathan Uesato, and Pascal Frossard, “Robustness via curvature regularization, and vice versa,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019, pp. 9078–9086.
|
| 229 |
+
[16] Yisen Wang, Xingjun Ma, James Bailey, Jinfeng Yi, Bowen Zhou, and Quanquan Gu, “On the convergence and robustness of adversarial training,” in International Conference on Machine Learning, 2019, pp. 6586–6595.
|
| 230 |
+
[17] Jiefeng Chen, Xi Wu, Vaibhav Rastogi, Yingyu Liang, and Somesh Jha, “Robust attribution regularization,” in Advances in Neural Information Processing Systems, 2019, pp. 14300–14310.
|
| 231 |
+
[18] Akhilan Boopathy, Sijia Liu, Gaoyuan Zhang, Cynthia Liu, Pin-Yu Chen, Shiyu Chang, and Luca Daniel, “Proper network interpretability helps adversarial robustness in classification,” in ICML, 2020.
|
| 232 |
+
[19] Ali Shafahi, Mahyar Najibi, Mohammad Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein, “Adversarial training for free!,” in Advances in Neural Information Processing Systems, 2019, pp. 3353–3364.
|
| 233 |
+
[20] Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong, “You only propagate once: Accelerating adversarial training via maximal principle,” arXiv preprint arXiv:1905.00877, 2019.
|
| 234 |
+
[21] Eric Wong, Leslie Rice, and J. Zico Kolter, “Fast is better than free: Revisiting adversarial training,” in International Conference on Learning Representations, 2020.
|
| 235 |
+
[22] Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P Xing, Laurent El Ghaoui, and Michael I Jordan, “Theoretically principled trade-off between robustness and accuracy,” International Conference on Machine Learning, 2019.
|
| 236 |
+
[23] Yair Carmon, Aditi Raghunathan, Ludwig Schmidt, Percy Liang, and John C Duchi, “Unlabeled data improves adversarial robustness,” arXiv preprint arXiv:1905.13736, 2019.
|
| 237 |
+
[24] Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John Hopcroft, and Liwei Wang, “Adversarially robust generalization just requires more unlabeled data,” arXiv preprint arXiv:1906.00555, 2019.
|
| 238 |
+
[25] Dan Hendrycks, Mantas Mazeika, Saurav Kadavath, and Dawn Song, “Using self-supervised learning can improve model robustness and uncertainty,” arXiv preprint arXiv:1906.12340, 2019.
|
| 239 |
+
[26] Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, and Zhangyang Wang, “Adversarial robustness: From self-supervised pre-training to fine-tuning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 699–708.
|
| 240 |
+
[27] Ziyu Jiang, Tianlong Chen, Ting Chen, and Zhangyang Wang, “Robust pre-training by adversarial contrastive learning,” arXiv preprint arXiv:2010.13337, 2020.
|
| 241 |
+
[28] Minseon Kim, Jihoon Tack, and Sung Ju Hwang, “Adversarial self-supervised contrastive learning,” arXiv preprint arXiv:2006.07589, 2020.
|
| 242 |
+
[29] Sven Gowal, Po-Sen Huang, Aaron van den Oord, Timothy Mann, and Pushmeet Kohli, “Self-supervised adversarial robustness for the low-label, high-data regime,” in International Conference on Learning Representations, 2021.
|
| 243 |
+
[30] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton, “A simple framework for contrastive learning of visual representations,” in International conference on machine learning. PMLR, 2020, pp. 1597–1607.
|
| 244 |
+
[31] Jean-Bastien Grill, Florian Strub, Florent Altche, 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,” arXiv preprint arXiv:2006.07733, 2020.
|
| 245 |
+
[32] Yonglong Tian, Chen Sun, Ben Poole, Dilip Krishnan, Cordelia Schmid, and Phillip Isola, “What makes for good views for contrastive learning,” arXiv preprint arXiv:2005.10243, 2020.
|
| 246 |
+
[33] Tongzhou Wang and Phillip Isola, “Understanding contrastive representation learning through alignment and uniformity on the hypersphere,” in International Conference on Machine Learning. PMLR, 2020, pp. 9929–9939.
|
| 247 |
+
[34] Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He, “Improved baselines with momentum contrastive learning,” arXiv preprint arXiv:2003.04297, 2020.
|
| 248 |
+
[35] Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra, “Scaling and benchmarking self-supervised visual representation learning,” in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019, pp. 6391–6400.
|
| 249 |
+
[36] Senthil Purushwalkam and Abhinav Gupta, “Demystifying contrastive self-supervised learning: Invariances, augmentations and dataset biases,” arXiv preprint arXiv:2007.13916, 2020.
|
| 250 |
+
[37] Francesco Croce and Matthias Hein, “Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks,” in International Conference on Machine Learning. PMLR, 2020, pp. 2206–2216.
|
| 251 |
+
[38] Spyros Gidaris, Praveer Singh, and Nikos Komodakis, “Unsupervised representation learning by predicting image rotations,” arXiv preprint arXiv:1803.07728, 2018.
|
| 252 |
+
[39] Mehdi Noroozi and Paolo Favaro, “Unsupervised learning of visual representations by solving jigsaw puzzles,” in European Conference on Computer Vision. Springer, 2016, pp. 69–84.
|
| 253 |
+
[40] Fabio M Carlucci, Antonio D’Innocente, Silvia Bucci, Barbara Caputo, and Tatiana Tommasi, “Domain generalization by solving jigsaw puzzles,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019, pp. 2229–2238.
|
| 254 |
+
[41] Chuang Gan, Boqing Gong, Kun Liu, Hao Su, and Leonidas J Guibas, “Geometry guided convolutional neural networks for self-supervised video representation learning,” in CVPR, 2018, pp. 5589–5597.
|
| 255 |
+
[42] Trieu H Trinh, Minh-Thang Luong, and Quoc V Le, “Selfie: Self-supervised pretraining for image embedding,” arXiv preprint arXiv:1906.02940, 2019.
|
| 256 |
+
[43] Aaron van den Oord, Yazhe Li, and Oriol Vinyals, “Representation learning with contrastive predictive coding,” arXiv preprint arXiv:1807.03748, 2018.
|
| 257 |
+
[44] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick, “Momentum contrast for unsupervised visual representation learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 9729–9738.
|
| 258 |
+
[45] Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton, “Big self-supervised models are strong semi-supervised learners,” arXiv preprint arXiv:2006.10029, 2020.
|
| 259 |
+
[46] Xinlei Chen and Kaiming He, “Exploring simple siamese representation learning,” arXiv preprint arXiv:2011.10566, 2020.
|
| 260 |
+
[47] Eric Wong and J Zico Kolter, “Provable defenses against adversarial examples via the convex outer adversarial polytope,” arXiv preprint arXiv:1711.00851, 2017.
|
| 261 |
+
[48] Krishnamurthy Dvijotham, Sven Gowal, Robert Stanforth, Relja Arandjelovic, Brendan O’Donoghue, Jonathan Uesato, and Pushmeet Kohli, “Training verified learners with learned verifiers,” arXiv preprint arXiv:1805.10265, 2018.
|
| 262 |
+
[49] Chuang Gan, Ting Yao, Kuiyuan Yang, Yi Yang, and Tao Mei, “You lead, we exceed: Laborfree video concept learning by jointly exploiting web videos and images,” in CVPR, 2016, pp. 923–932.
|
| 263 |
+
[50] Chuang Gan, Chen Sun, Lixin Duan, and Boqing Gong, “Webly-supervised video recognition by mutually voting for relevant web images and web video frames,” in ECCV, 2016, pp. 849–866.
|
| 264 |
+
[51] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan, “Supervised contrastive learning,” arXiv preprint arXiv:2004.11362, 2020.
|
| 265 |
+
[52] Haohan Wang, Xindi Wu, Zeyi Huang, and Eric P Xing, “High-frequency component helps explain the generalization of convolutional neural networks,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 8684–8694.
|
| 266 |
+
[53] Zifan Wang, Yilin Yang, Ankit Shrivastava, Varun Rawal, and Zihao Ding, “Towards frequencybased explanation for robust cnn,” arXiv preprint arXiv:2005.03141, 2020.
|
| 267 |
+
[54] Xueting Yan, Ishan Misra, Abhinav Gupta, Deepti Ghadiyaram, and Dhruv Mahajan, “Clusterfit: Improving generalization of visual representations,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 6509–6518.
|
| 268 |
+
[55] Laurens Van der Maaten and Geoffrey Hinton, “Visualizing data using t-sne.,” Journal of machine learning research, vol. 9, no. 11, 2008.
|
| 269 |
+
[56] Anish Athalye, Nicholas Carlini, and David Wagner, “Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples,” arXiv preprint arXiv:1802.00420, 2018.
|
| 270 |
+
[57] Aravindh Mahendran and Andrea Vedaldi, “Visualizing deep convolutional neural networks using natural pre-images,” International Journal of Computer Vision, vol. 120, no. 3, pp. 233–255, 2016.
|
| 271 |
+
[58] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Brandon Tran, and Aleksander Madry, “Adversarial robustness as a prior for learned representations,” arXiv preprint arXiv:1906.00945, 2019.
|
| 272 |
+
[59] Simran Kaur, Jeremy Cohen, and Zachary C Lipton, “Are perceptually-aligned gradients a general property of robust classifiers?,” arXiv preprint arXiv:1910.08640, 2019.
|
| 273 |
+
[60] Hong Liu, Mingsheng Long, Jianmin Wang, and Michael I Jordan, “Towards understanding the transferability of deep representations,” arXiv preprint arXiv:1909.12031, 2019.
|
| 274 |
+
[61] Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein, “Visualizing the loss landscape of neural nets,” arXiv preprint arXiv:1712.09913, 2017.
|
| 275 |
+
[62] Angus Galloway, Anna Golubeva, Thomas Tanay, Medhat Moussa, and Graham W Taylor, “Batch normalization is a cause of adversarial vulnerability,” arXiv preprint arXiv:1905.02161, 2019.
|
| 276 |
+
[63] Tianyu Pang, Xiao Yang, Yinpeng Dong, Hang Su, and Jun Zhu, “Bag of tricks for adversarial training,” arXiv preprint arXiv:2010.00467, 2020.
|
parse/train/70kOIgjKhbA/70kOIgjKhbA_content_list.json
ADDED
|
@@ -0,0 +1,1128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning? ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
240,
|
| 8 |
+
122,
|
| 9 |
+
754,
|
| 10 |
+
198
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Lijie Fan1, Sijia $\\mathbf { L i u ^ { 2 , 3 } }$ , Pin-Yu Chen3, Gaoyuan Zhang3, Chuang Gan3 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
251,
|
| 19 |
+
250,
|
| 20 |
+
746,
|
| 21 |
+
266
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1 Massachusetts Institute of Technology, 2 Michigan State University, 3 MIT-IBM Watson AI Lab, IBM Research lijiefan@mit.edu, liusiji5@msu.edu, {pin-yu.chen,gaoyuan.zhang,chuangg}@ibm.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
274,
|
| 30 |
+
266,
|
| 31 |
+
722,
|
| 32 |
+
321
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
357,
|
| 43 |
+
535,
|
| 44 |
+
375
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Contrastive learning (CL) can learn generalizable feature representations and achieve state-of-the-art performance of downstream tasks by finetuning a linear classifier on top of it. However, as adversarial robustness becomes vital in image classification, it remains unclear whether or not CL is able to preserve robustness to downstream tasks. The main challenge is that in the ‘self-supervised pretraining $^ +$ supervised finetuning’ paradigm, adversarial robustness is easily forgotten due to a learning task mismatch from pretraining to finetuning. We call such challenge ‘cross-task robustness transferability’. To address the above problem, in this paper we revisit and advance CL principles through the lens of robustness enhancement. We show that (1) the design of contrastive views matters: High-frequency components of images are beneficial to improving model robustness; (2) Augmenting CL with pseudo-supervision stimulus (e.g., resorting to feature clustering) helps preserve robustness without forgetting. Equipped with our new designs, we propose ADVCL, a novel adversarial contrastive pretraining framework. We show that ADVCL is able to enhance cross-task robustness transferability without loss of model accuracy and finetuning efficiency. With a thorough experimental study, we demonstrate that ADVCL outperforms the state-of-the-art self-supervised robust learning methods across multiple datasets (CIFAR-10, CIFAR-100 and STL-10) and finetuning schemes (linear evaluation and full model finetuning). Code is available at https://github.com/LijieFan/AdvCL. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
232,
|
| 53 |
+
388,
|
| 54 |
+
766,
|
| 55 |
+
666
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
694,
|
| 66 |
+
310,
|
| 67 |
+
710
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Image classification has been revolutionized by convolutional neural networks (CNNs). In spite of CNNs’ generalization power, the lack of adversarial robustness has shown to be a main weakness that gives rise to security concerns in high-stakes applications when CNNs are applied, e.g., face recognition, medical image classification, surveillance, and autonomous driving [1–5]. The brittleness of CNNs can be easily manifested by generating tiny input perturbations to completely alter the models’ decision. Such input perturbations and corresponding perturbed inputs are referred to as adversarial perturbations and adversarial examples (or attacks), respectively [6–10]. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
726,
|
| 77 |
+
825,
|
| 78 |
+
824
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "One of the most powerful defensive schemes against adversarial attacks is adversarial training (AT) [11], built upon a two-player game in which an ‘attacker’ crafts input perturbations to maximize the training objective for worst-case robustness, and a ‘defender’ minimizes the maximum loss for an improved robust model against these attacks. However, AT and its many variants using min-max optimization [12–21] were restricted to supervised learning as true labels of training data are required for both supervised classifier and attack generator (that ensures misclassification). The recent work [22–24] demonstrated that with a properly-designed attacker’s objective, AT-type defenses can be generalized to the semi-supervised setting, and showed that the incorporation of additional unlabeled data could further improve adversarial robustness in image classification. Such an extension from supervised to semi-supervised defenses further inspires us to ask whether there exist unsupervised defenses that can eliminate the prerequisite of labeled data but improve model robustness. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
830,
|
| 88 |
+
823,
|
| 89 |
+
900
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
92,
|
| 99 |
+
825,
|
| 100 |
+
174
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Some very recent literature [25–29] started tackling the problem of adversarial defense through the lens of self-supervised learning. Examples include augmenting a supervised task with an unsupervised ‘pretext’ task for which ground-truth label is available for ‘free’ [25, 26], or robustifying unsupervised representation learning based only on a pretext task and then finetuning the learned representations over downstream supervised tasks [27–29]. The latter scenario is of primary interest to us as a defense can then be performed at the pretraining stage without needing any label information. Meanwhile, selfsupervised contrastive learning (CL) has been outstandingly successful in the field of representation learning: It can surpass a supervised learning counterpart on downstream image classification tasks in standard accuracy [30–34]. Different from conventional self-supervised learning methods [35], CL, e.g., SimCLR [30], enforces instance discrimination by exploring multiple views of the same data and treating every instance under a specific view as a class of its own [36]. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
181,
|
| 110 |
+
825,
|
| 111 |
+
333
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The most relevant work to ours is [27, 28], which integrated adversarial training with CL. However, the achieved adversarial robustness at downstream tasks largely relies on the use of advanced finetuning techniques, either adversarial full finetuning [27] or adversarial linear finetuning [28]. Different from [27, 28], we ask: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
173,
|
| 120 |
+
339,
|
| 121 |
+
470,
|
| 122 |
+
449
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "$( Q )$ How to accomplish robustness enhancement using CL without losing its finetuning efficiency, e.g., via a standard linear finetuner? ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
457,
|
| 133 |
+
472,
|
| 134 |
+
498
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Our work attempts to make a rigorous and comprehensive study on addressing the above question. We find that self-supervised learning (including the state-of-the-art CL) suffers a new robustness challenge that we call ‘crosstask robustness transferability’, which was largely overlooked in the previous work. That is, there exists a task mismatch from pretraining to finetuning (e.g., from CL to supervised classification) so that adversarial robustness is not able to transfer across tasks even if pretraining datasets and finetuning datasets are drawn from the same distribution. Different from supervised/semi-supervised learning, this is a characteristic behavior of selfsupervision when being adapted to robust ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
506,
|
| 144 |
+
470,
|
| 145 |
+
724
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "image",
|
| 151 |
+
"img_path": "images/7f2ea9a79a438faed069f2c9db9cf64dabc61ba859861ba7da0ab921e88b9765.jpg",
|
| 152 |
+
"image_caption": [
|
| 153 |
+
"Figure 1: Summary of performance for various robust pretraining methods on CIFAR-10. The covered baseline methods include AP-DPE [26], RoCL [28], ACL [27] and supervised adversarial training (AT) [11]. Upper-right indicates better performance with respect to (w.r.t.) standard accuracy and robust accuracy (under PGD attack with 20 steps and $8 / 2 5 5 \\ell _ { \\infty }$ -norm perturbation strength). Different colors represent different pretraining methods, and different shapes represent different finetuning settings. Circles $\\mathbf { \\eta } ^ { ( \\bullet ) }$ indicates Standard Linear Finetuning (SLF), and Diamonds $( \\bullet )$ indicates Adversarial Full Finetuning (AFF). Our method (ADVCL, red circle/diamond) has the best performance across finetuning settings. Similar improvement could be observed under Auto-Attacks, and we provide the visualization in the appendix. "
|
| 154 |
+
],
|
| 155 |
+
"image_footnote": [],
|
| 156 |
+
"bbox": [
|
| 157 |
+
488,
|
| 158 |
+
344,
|
| 159 |
+
823,
|
| 160 |
+
529
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "learning. As shown in Figure 1, our work advances CL in the adversarial context and the proposed method outperforms all state-of-the-art baseline methods, leading to a substantial improvement in both robust accuracy and standard accuracy using either the lightweight standard linear finetuning or end-to-end adversarial full finetuning. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
726,
|
| 170 |
+
825,
|
| 171 |
+
780
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Contributions Our main contributions are summarized below. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
800,
|
| 181 |
+
594,
|
| 182 |
+
814
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "$\\bullet$ We propose ADVCL, a unified adversarial CL framework, and propose to use original adversarial examples and high-frequency data components to create robustness-aware and generalization-aware views of unlabeled data. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
176,
|
| 191 |
+
820,
|
| 192 |
+
825,
|
| 193 |
+
863
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "$\\pmb { \\varrho }$ We propose to generate proper pseudo-supervision stimulus for ADVCL to improve cross-task robustness transferability. Different from existing self-supervised defenses aided with labeled data [27], we generate pseudo-labels of unlabeled data based on their clustering information. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
176,
|
| 202 |
+
869,
|
| 203 |
+
823,
|
| 204 |
+
911
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "$\\otimes$ We conduct a thorough experimental study and show that ADVCL achieves state-of-the-art robust accuracies under both PGD attacks [11] and Auto-Attacks [37] using only standard linear finetuning. For example, in the case of Auto-Attack (the most powerful threat model) with $8 / 2 5 5 ~ \\ell _ { \\infty }$ -norm perturbation strength under ResNet-18, we achieve $3 . 4 4 \\%$ and $3 . 4 5 \\%$ robustness improvement on CIFAR-10 and CIFAR-100 over existing self-supervised methods. We also justify the effectiveness of ADVCL in different attack setups, dataset transferring, model explanation, and loss landscape smoothness. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
173,
|
| 213 |
+
90,
|
| 214 |
+
825,
|
| 215 |
+
189
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "2 Background & Related Work ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
176,
|
| 225 |
+
212,
|
| 226 |
+
449,
|
| 227 |
+
228
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Self-Supervised Learning Early approaches for unsupervised representation learning leverages handcrafted tasks, like prediction rotation [38] and solving the Jigsaw puzzle [39, 40], geometry prediction [41] and Selfie [42]. Recently contrastive learning (CL) [30, 33, 34, 43–45] and its variants [31, 32, 36, 46] have demonstrated superior abilities in learning generalizable features in an unsupervised manner. The main idea behind $\\mathrm { C L }$ is to self-create positive samples of the same image from aggressive viewpoints, and then acquire data representations by maximizing agreement between positives while contrasts with negatives. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
173,
|
| 236 |
+
244,
|
| 237 |
+
825,
|
| 238 |
+
342
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "In what follows, we elaborate on the formulation of SimCLR [30], one of the most commonly-used CL frameworks, which this paper will focus on. To be concrete, let $\\mathcal { X } = \\{ x _ { 1 } , x _ { 2 } , . . . , x _ { n } \\}$ denote an unlabeled source dataset, SimCLR offers a learned feature encoder $f _ { \\theta }$ to generate expressive deep representations of the data. To train $f _ { \\theta }$ , each input $x \\in \\mathcal { X }$ will be transformed into two views $( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) )$ and labels them as a positive pair. Here transformation operations $\\tau _ { 1 }$ and $\\tau _ { 2 }$ are randomly sampled from a pre-defined transformation set $\\tau$ , which includes, e.g., random cropping and resizing, color jittering, rotation, and cutout. The positive pair is then fed in the feature encoder $f _ { \\theta }$ with a projection head $g$ to acquire projected features, i.e., $z _ { i } = g \\circ f _ { \\theta } ( \\tau _ { i } ( x ) )$ for $j \\in \\{ 1 , 2 \\}$ . NT-Xent loss (i.e., the normalized temperature-scaled cross-entropy loss) is then applied to optimizing $f _ { \\theta }$ , where the distance of projected positive features $( z _ { 1 } , z _ { 2 } )$ is minimized for each input $x$ . SimCLR follows the ‘self-supervised pretraining $^ +$ supervised finetuning’ paradigm. That is, once $f _ { \\theta }$ is trained, a downstream supervised classification task can be handled by just finetuning a linear classifier $\\phi$ over the fixed encoder $f _ { \\theta }$ , leading to the eventual classification network $\\phi \\circ f _ { \\theta }$ . ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
348,
|
| 248 |
+
825,
|
| 249 |
+
529
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Adversarial Training (AT) Deep neural networks are vulnerable to adversarial attacks. Various approaches have been proposed to enhance the model robustness. Given a classification model $\\theta$ , AT [11] is one of the most powerful robust training methods against adversarial attacks. Different from standard training over normal data $( x , y ) \\in \\mathcal { D }$ (with feature $x$ and label $y$ in dataset $\\mathcal { D }$ ), AT adopts a min-max training recipe, where the worst-case training loss is minimized over the adversarially perturbed data $( x + \\delta , y )$ . Here $\\delta$ denotes the input perturbation variable to be maximized for the worst-case training objective. The supervised $A T$ is then formally given by ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
534,
|
| 259 |
+
825,
|
| 260 |
+
632
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "equation",
|
| 266 |
+
"img_path": "images/a64571ebefabc77b78096506cade79891e283492bd8f01ac41ba7a2d2f237a92.jpg",
|
| 267 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\theta } \\mathbb { E } _ { ( x , y ) \\in D } \\ \\operatorname* { m a x } _ { \\| \\delta \\| _ { \\infty } \\leq \\epsilon } \\ell ( x + \\delta , y ; \\theta ) ,\n$$",
|
| 268 |
+
"text_format": "latex",
|
| 269 |
+
"bbox": [
|
| 270 |
+
380,
|
| 271 |
+
641,
|
| 272 |
+
619,
|
| 273 |
+
666
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "where $\\ell$ denotes the supervised training objective, e.g., cross-entropy (CE) loss. There have been many variants of AT [19–21, 47–50, 22–25] established for supervised/semi-supervised learning. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
173,
|
| 282 |
+
678,
|
| 283 |
+
825,
|
| 284 |
+
705
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Self-supervision enabled AT Several recent works [26–29] started to study how to improve model robustness using self-supervised AT. Their idea is to apply AT (1) to a self-supervised pretraining task, e.g., SimCLR in [27, 28], such that the learned feature encoder $f _ { \\theta }$ renders robust data representations. However, different from our work, the existing ones lack a systematic study on when and how self-supervised robust pretraining can preserve robustness to downstream tasks without sacrificing the efficiency of lightweight finetuning. For example, the prior work [26, 27] suggested adversarial full finetuning, where pretrained model is used as a weight initialization in finetuning downstream tasks. Yet, it requests the finetuner to update all of the weights of the pretrained model, and thus makes the advantage of self-supervised robust pretraining less significant. A more practical scenario is linear finetuning: One freezes the pretrained feature encoder for the downstream task and only partially finetunes a linear prediction head. The work [28] evaluated the performance of linear fintuning but observed a relatively large performance gap between the standard linear finetuning and adversarial linear finetuning; see more comparisons in Figure 1. Therefore, the problem–how to enhance robustness transferability from pretraining to linear finetuning–remains unexplored. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
173,
|
| 293 |
+
717,
|
| 294 |
+
825,
|
| 295 |
+
911
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "3 Problem Statement ",
|
| 302 |
+
"text_level": 1,
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
89,
|
| 306 |
+
366,
|
| 307 |
+
106
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 3
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "In this section, we present the problem of our interest, together with its setup. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
119,
|
| 317 |
+
679,
|
| 318 |
+
135
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 3
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "Robust pretraining $^ +$ linear finetuning. We aim to develop robustness enhancement solutions by fully exploiting and exploring the power of CL at the pretraining phase, so that the resulting robust feature representations can seamlessly be used to generate robust predictions of downstream tasks using just a lightweight finetuning scheme. With the aid of AT (1), we formulate the ‘robust pretraining $^ +$ linear finetuning’ problem below: ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
141,
|
| 328 |
+
825,
|
| 329 |
+
212
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "equation",
|
| 335 |
+
"img_path": "images/2fe5a144e9853353e2cc9c7d534853d5f1c0eaa42464bd14006a2fec4657ec99.jpg",
|
| 336 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathrm { P r e t r a i n i n g : ~ } \\operatorname* { m i n } _ { \\theta } \\mathbb { E } _ { x \\in \\mathcal { X } } \\underset { \\| \\delta \\| _ { \\infty } \\leq \\epsilon } { \\operatorname* { m a x } } \\ell _ { \\mathrm { p r e } } ( x + \\delta , x ; \\theta ) } \\\\ & { \\mathrm { F i n e t u n i n g : ~ } \\operatorname* { m i n } _ { \\theta _ { \\mathrm { c } } } \\mathbb { E } _ { ( x , y ) \\in \\mathcal { D } } \\ell _ { \\mathrm { C E } } ( \\phi _ { \\theta _ { \\mathrm { c } } } \\circ f _ { \\theta } ( x ) , y ) , } \\end{array}\n$$",
|
| 337 |
+
"text_format": "latex",
|
| 338 |
+
"bbox": [
|
| 339 |
+
339,
|
| 340 |
+
213,
|
| 341 |
+
656,
|
| 342 |
+
266
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "where $\\ell _ { \\mathrm { p r e } }$ denotes a properly-designed robustness- and generalization-aware CL loss (see Sec. 4) given as a function of the adversarial example $( x + \\delta )$ , original example $x$ and feature encoder parameters $\\theta$ . In (2), $\\phi _ { \\theta _ { \\mathrm { c } } } \\circ f _ { \\theta }$ denotes the classifier by equipping the linear prediction head $\\phi _ { \\theta _ { \\mathrm { c } } }$ (with parameters $\\theta _ { \\mathrm { c } }$ to be designed) on top of the fixed feature encoder $f _ { \\theta }$ , and $\\ell _ { \\mathrm { C E } }$ denotes the supervised CE loss over the target dataset $\\mathcal { D }$ . Note that besides the standard linear finetuning (3), one can also modify (3) using the worst-case CE loss for adversarial linear/full finetuning [27, 28]. We do not consider standard full finetuning in the paper since tuning the full network weights with standard cross-entropy loss is not possible for the model to preserve robustness [26]. ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
268,
|
| 352 |
+
825,
|
| 353 |
+
380
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "Cross-task robustness transferability. Different from supervised/semi-supervised learning, selfsupervision enables robust pretraining over unlabeled source data. In the meantime, it also imposes a new challenge that we call ‘cross-task robustness transferability’: At the pretraining stage, a feature encoder is learned over a ‘pretext’ task for which ground-truth is available for free, while finetuning is typically carried out on a new downstream task. Spurred by the above, we ask the following questions: ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
174,
|
| 362 |
+
387,
|
| 363 |
+
825,
|
| 364 |
+
470
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "• Will CL improve adversarial robustness using just standard linear finetuning? • What are the principles that CL should follow to preserve robustness across tasks? • What are the insights can we acquire from self-supervised robust representation learnin ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
173,
|
| 373 |
+
477,
|
| 374 |
+
754,
|
| 375 |
+
520
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "4 Proposed Approach: Adversarial Contrastive Learning (ADVCL) ",
|
| 382 |
+
"text_level": 1,
|
| 383 |
+
"bbox": [
|
| 384 |
+
171,
|
| 385 |
+
531,
|
| 386 |
+
753,
|
| 387 |
+
549
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 3
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "In this section, we develop a new adversarial CL framework, ADVCL, which includes two main components, robustnessaware view selection and pseudosupervision stimulus generation. In particular, we advance the view selection mechanism by taking into account proper frequencybased data transformations that are beneficial to robust representation learning and pretraining generalization ability. Furthermore, we propose to design and integrate proper supervision stimulus into ADVCL so as to improve the cross-task robustness transferability since robust representations learned from self",
|
| 394 |
+
"bbox": [
|
| 395 |
+
174,
|
| 396 |
+
556,
|
| 397 |
+
392,
|
| 398 |
+
818
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 3
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "image",
|
| 404 |
+
"img_path": "images/64439f7f468608e7582a2cfebf1a4bda02c24138dbb68096c8644d0018589fe2.jpg",
|
| 405 |
+
"image_caption": [
|
| 406 |
+
"Figure 2: The overall pipeline of ADVCL. It mainly has two ingredients: robustness-aware view selection (orange box) and pseudo-supervision stimulus generation (blue box). The view selection mechanism is advanced by high frequency components, and the supervision stimulus is created by generating pseudo labels for each image through CLUSTERFIT. The pseudo label (in yellow color) can be created in an offline manner and will not increase the computation overhead. "
|
| 407 |
+
],
|
| 408 |
+
"image_footnote": [],
|
| 409 |
+
"bbox": [
|
| 410 |
+
405,
|
| 411 |
+
554,
|
| 412 |
+
823,
|
| 413 |
+
723
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "supervision may lack the class-discriminative ability required for robust predictions on downstream tasks. We provide an overview of ADVCL in Figure 2. ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
174,
|
| 422 |
+
818,
|
| 423 |
+
823,
|
| 424 |
+
847
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "4.1 View selection mechanism ",
|
| 431 |
+
"text_level": 1,
|
| 432 |
+
"bbox": [
|
| 433 |
+
174,
|
| 434 |
+
861,
|
| 435 |
+
393,
|
| 436 |
+
876
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "In contrast to standard CL, we propose two additional contrastive views: the adversarial view and the frequency view, respectively. ",
|
| 443 |
+
"bbox": [
|
| 444 |
+
174,
|
| 445 |
+
887,
|
| 446 |
+
823,
|
| 447 |
+
915
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "Multi-view CL loss Prior to defining new views, we first review the NT-Xent loss and its multiview version used in CL. Following notations defined in Sec. 2, the contrastive loss with respect to (w.r.t.) a positive pair $( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) \\bar { ) }$ of each (unlabeled) data $x$ is given by ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
173,
|
| 456 |
+
90,
|
| 457 |
+
825,
|
| 458 |
+
133
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 4
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "equation",
|
| 464 |
+
"img_path": "images/20d1dee8b46d86c567946021ed37b2f20f0588580be5010312c16f95c7cc423f.jpg",
|
| 465 |
+
"text": "$$\n\\ell _ { \\mathrm { C L } } ( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) ) = - \\sum _ { i = 1 } ^ { 2 } \\sum _ { j \\in \\mathcal { P } ( i ) } \\log \\frac { \\exp { \\left( \\sin ( z _ { i } , z _ { j } ) / t \\right) } } { \\sum _ { k \\in \\mathcal { N } ( i ) } \\exp { \\left( \\sin ( z _ { i } , z _ { k } ) / t \\right) } } ,\n$$",
|
| 466 |
+
"text_format": "latex",
|
| 467 |
+
"bbox": [
|
| 468 |
+
281,
|
| 469 |
+
137,
|
| 470 |
+
715,
|
| 471 |
+
195
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 4
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "where recall that $z _ { i } = g \\circ f ( \\tau _ { i } ( x ) )$ is the projected feature under the ith view, $\\mathcal { P } ( i )$ is the set of positive views except $i$ (e.g., $\\mathcal { P } ( i ) = \\{ 2 \\}$ if $i = 1$ ), $\\mathcal { N } ( i )$ denotes the set of augmented batch data except the point $\\tau _ { i } ( x )$ , the cardinality of $\\mathcal { N } ( i )$ is $( 2 b - 1 )$ (for a data batch of size $b$ under 2 views), $\\sin ( z _ { i 1 } , z _ { i 2 } )$ denotes the cosine similarity between representations from two views of the same data, exp denotes exponential function, $\\mathrm { s i m } ( \\cdot , \\cdot )$ is the cosine similarity between two points, and $t > 0$ is a temperature parameter. The two-view CL objective can be further extend to the multi-view contrastive loss [51] ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
173,
|
| 480 |
+
200,
|
| 481 |
+
826,
|
| 482 |
+
299
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 4
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "equation",
|
| 488 |
+
"img_path": "images/7a1f63b4907caaf241f984653165a3696f48ca152f3a2946d815336c3f329614.jpg",
|
| 489 |
+
"text": "$$\n\\ell _ { \\mathrm { C L } } ( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) , \\dots , \\tau _ { m } ( x ) ) = - \\sum _ { i = 1 } ^ { m } \\sum _ { j \\in \\mathcal { P } ( i ) } \\log \\frac { \\exp { \\left( \\sin ( z _ { i } , z _ { j } ) / t \\right) } } { \\displaystyle \\sum _ { k \\in \\mathcal { N } ( i ) } \\exp { \\left( \\sin ( z _ { i } , z _ { k } ) / t \\right) } } ,\n$$",
|
| 490 |
+
"text_format": "latex",
|
| 491 |
+
"bbox": [
|
| 492 |
+
241,
|
| 493 |
+
301,
|
| 494 |
+
754,
|
| 495 |
+
358
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "where $\\mathcal { P } ( i ) ~ = ~ [ m ] / \\{ i \\}$ denotes the $m$ positive views except $i$ , $[ m ]$ denotes the integer set $\\{ 1 , 2 , \\ldots , { \\dot { m } } \\}$ , and $\\mathcal { N } ( i )$ , with cardinality $( b m - 1 )$ , denotes the set of $m$ -view augmented $b$ batch samples except the point $\\tau _ { i } ( x )$ . ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
174,
|
| 504 |
+
363,
|
| 505 |
+
823,
|
| 506 |
+
406
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "Contrastive view from adversarial example Existing methods proposed in [27–29] can be explained based on (4): An adversarial perturbation $\\delta$ w.r.t. each view of a sample $x$ is generated by maximizing the contrastive loss: ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
412,
|
| 516 |
+
825,
|
| 517 |
+
455
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "equation",
|
| 523 |
+
"img_path": "images/fa43e63fb672a71675044f7fbbc89eaedb892d928a5483203a4f55bdaa73453d.jpg",
|
| 524 |
+
"text": "$$\n\\delta _ { 1 } ^ { * } , \\delta _ { 2 } ^ { * } = \\underset { \\| \\delta _ { i } \\| _ { \\infty } \\leq \\epsilon } { \\mathrm { a r g m a x } } \\ell _ { \\mathrm { C L } } ( \\tau _ { 1 } ( x ) + \\delta _ { 1 } , \\tau _ { 2 } ( x ) + \\delta _ { 2 } ) .\n$$",
|
| 525 |
+
"text_format": "latex",
|
| 526 |
+
"bbox": [
|
| 527 |
+
343,
|
| 528 |
+
459,
|
| 529 |
+
653,
|
| 530 |
+
488
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 4
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "A solution to problem (6) eventually yields a paired perturbation view $( \\tau _ { 1 } ( x ) + \\delta _ { 1 } ^ { * } , \\tau _ { 2 } ( x ) + \\delta _ { 2 } ^ { * } )$ . However, the definition of adversarial view (6) used in [27–29] may not be proper. First, standard CL commonly uses aggressive data transformation that treats small portions of images as positive samples of the full image [36]. Despite its benefit to promoting generalization, crafting perturbations over such aggressive data transformations may not be suitable for defending adversarial attacks applied to full images in the adversarial context. Thus, a new adversarial view built upon $x$ rather than $\\tau _ { i } ( x )$ is desired. Second, the contrastive loss (4) is only restricted to two views of the same data. As will be evident later, the multi-view contrastive loss is also needed when taking into account multiple robustness-promoting views. Spurred by above, we define the adversarial view over $x$ , without modifying the existing data augmentations $( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) )$ . This leads to the following adversarial perturbation generator by maximizing a 3-view contrastive loss ",
|
| 537 |
+
"bbox": [
|
| 538 |
+
173,
|
| 539 |
+
492,
|
| 540 |
+
826,
|
| 541 |
+
646
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 4
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "equation",
|
| 547 |
+
"img_path": "images/fbe8e89e235f2d02abb0d739d454286969d78a3e2c732c93fac04180feff3648.jpg",
|
| 548 |
+
"text": "$$\n\\delta ^ { * } = \\underset { \\| \\delta \\| \\leq \\epsilon } { \\mathrm { a r g m a x } } \\ell _ { \\mathrm { C L } } ( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) , x + \\delta ) ,\n$$",
|
| 549 |
+
"text_format": "latex",
|
| 550 |
+
"bbox": [
|
| 551 |
+
367,
|
| 552 |
+
650,
|
| 553 |
+
629,
|
| 554 |
+
679
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "where $x + \\delta ^ { * }$ is regarded as the third view of $x$ ",
|
| 561 |
+
"bbox": [
|
| 562 |
+
174,
|
| 563 |
+
683,
|
| 564 |
+
485,
|
| 565 |
+
698
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "Contrastive view from high-frequency component Next, we use the high-frequency component (HFC) of data as another additional contrastive view. The rationale arises from the facts that 1) learning over HFC of data is a main cause of achieving superior generalization ability [52] and 2) an adversary typically concentrates on HFC when manipulating an example to fool model’s decision [53]. Let $\\mathcal { F }$ and $\\scriptstyle { \\dot { \\mathcal { F } } } ^ { - 1 }$ denote Fourier transformation and its inverse. An input image $x$ can then be decomposed into its HFC $x _ { \\mathrm { h } }$ and low-frequency component (LFC) $x _ { \\mathrm { l } }$ : ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
173,
|
| 574 |
+
705,
|
| 575 |
+
825,
|
| 576 |
+
790
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 4
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "equation",
|
| 582 |
+
"img_path": "images/60a1864cb53c0792c047356dde3cf478ee8b2d3ce4c09918285db4697d8952f4.jpg",
|
| 583 |
+
"text": "$$\nx _ { \\mathrm { h } } = \\mathcal { F } ^ { - 1 } ( q _ { \\mathrm { h } } ) , \\quad x _ { \\mathrm { l } } = \\mathcal { F } ^ { - 1 } ( q _ { \\mathrm { l } } ) , \\quad [ q _ { \\mathrm { h } } , q _ { \\mathrm { l } } ] = \\mathcal { F } ( x ) .\n$$",
|
| 584 |
+
"text_format": "latex",
|
| 585 |
+
"bbox": [
|
| 586 |
+
326,
|
| 587 |
+
792,
|
| 588 |
+
671,
|
| 589 |
+
811
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 4
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "In (8), the distinction between $q _ { \\mathrm { h } }$ and $q _ { \\mathrm { l } }$ is made by a hard thresholding operation. Let $q ( i , j )$ denote the $( i , j )$ th element of $\\mathcal { F } ( x )$ , and $c = ( c _ { 1 } , c _ { 2 } )$ denote the centriod of the frequency spectrum. The components $q _ { \\mathrm { l } }$ and $q _ { \\mathrm { h } }$ in (8) are then generated by filtering out values according to the distance from c: $q _ { h } ( i , j ) = \\mathbb { 1 } _ { [ d ( ( i , j ) , ( c _ { 1 } , c _ { 2 } ) ) \\geq r ] } \\cdot q ( i , j )$ , and $q _ { l } ( i , j ) = \\mathbb { 1 } _ { [ d ( ( i , j ) , ( c _ { 1 } , c _ { 2 } ) ) \\leq r ] } \\cdot q ( i , j )$ , where $d ( \\cdot , \\cdot )$ is the Euclidian distance between two spatial coordinates, $r$ is a pre-defined distance threshold $r = 8$ in all our experiments), and $\\mathbb { 1 } _ { [ . ] } \\in \\{ 0 , 1 \\}$ is an indicator function which equals to 1 if the condition within $[ \\cdot ]$ is met and 0 otherwise. ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
815,
|
| 599 |
+
825,
|
| 600 |
+
915
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Robustness-aware contrastive learning objective By incorporating the adversarial perturbation $\\delta$ and disentangling HFC $x _ { \\mathrm { h } }$ from the original data $x$ , we obtain a four-view contrastive loss (5) defined over $( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) , x + \\delta , x _ { \\mathrm { h } } )$ , ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
90,
|
| 610 |
+
825,
|
| 611 |
+
133
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "equation",
|
| 617 |
+
"img_path": "images/6b4aa42ccf8d8f672c098d47d9b0ab2782eb9db01831952eb5176e2aa70c1313.jpg",
|
| 618 |
+
"text": "$$\n\\ell _ { \\mathrm { C L } } ^ { \\mathrm { a d v } } ( \\theta ; \\mathcal { X } ) : = \\mathbb { E } _ { x \\in \\mathcal { X } } \\operatorname* { m a x } _ { \\| \\delta \\| _ { \\infty } \\leq \\epsilon } \\ell _ { \\mathrm { C L } } ( \\tau _ { 1 } ( x ) , \\tau _ { 2 } ( x ) , x + \\delta , x _ { \\mathrm { h } } ; \\theta ) ,\n$$",
|
| 619 |
+
"text_format": "latex",
|
| 620 |
+
"bbox": [
|
| 621 |
+
299,
|
| 622 |
+
136,
|
| 623 |
+
696,
|
| 624 |
+
161
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 5
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "where recall that $\\mathcal { X }$ denotes the unlabeled dataset, $\\epsilon > 0$ is a perturbation tolerance during training, and for clarity, the four-view contrastive loss (5) is explicitly expressed as a function of model parameters $\\theta$ . As will be evident latter, the eventual learning objective ADVCL will be built upon (9). ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
162,
|
| 634 |
+
825,
|
| 635 |
+
204
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "4.2 Supervision stimulus generation: ADVCL empowered by CLUSTERFIT ",
|
| 642 |
+
"text_level": 1,
|
| 643 |
+
"bbox": [
|
| 644 |
+
174,
|
| 645 |
+
212,
|
| 646 |
+
709,
|
| 647 |
+
228
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "On top of (9), we further improve the robustness transferability of learned representations by generating a proper supervision stimulus. Our rationale is that robust representation could lack the class-discriminative power required by robust classification as the former is acquired by optimizing an unsupervised contrastive loss while the latter is achieved by a supervised cross-entropy CE loss. However, there is no knowledge about supervised data during pretraining. In order to improve crosstask robustness transferability but without calling for supervision, we take advantage of CLUSTERFIT [54], a pseudo-label generation method used in representation learning. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
232,
|
| 657 |
+
826,
|
| 658 |
+
329
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "To be more concrete, let $f _ { \\mathrm { p r e } }$ denote a pretrained representation network that can generate latent features of unlabeled data. Note that $f _ { \\mathrm { p r e } }$ can be set available beforehand and trained over either supervised or unsupervised dataset $\\mathcal { D } _ { \\mathrm { p r e } }$ , e.g., ImageNet using using CL in experiments. Given (normalized) pretrained data representations $\\{ f _ { \\mathrm { p r e } } ( x ) \\} _ { x \\in \\mathcal { X } }$ , CLUSTERFIT uses $K$ -means clustering to find $K$ data clusters of $\\mathcal { X }$ , and maps a cluster index $c$ to a pseudo-label, resulting in the pseudolabeled dataset $\\{ ( x , c ) \\in \\hat { \\mathcal { X } } \\}$ . By integrating CLUSTERFIT with (9), the eventual training objective of ADVCL is then formed by ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
173,
|
| 667 |
+
335,
|
| 668 |
+
826,
|
| 669 |
+
434
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 5
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "equation",
|
| 675 |
+
"img_path": "images/dd364900f0f501c0d32b19fe01e5ad6eb3d60e62daae7a75d0347bfba52e8c65.jpg",
|
| 676 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\theta } \\ \\ell _ { \\mathrm { { C L } } } ^ { \\mathrm { a d v } } ( \\theta ; \\mathcal { X } ) + \\lambda \\operatorname* { m i n } _ { \\theta , \\theta _ { \\mathrm { c } } } \\ \\mathbb { E } _ { ( x , c ) \\in \\hat { \\mathcal { X } } } \\operatorname* { m a x } _ { \\| \\delta _ { c e } \\| _ { \\infty } \\leq \\epsilon } \\ell _ { \\mathrm { C E } } ( \\phi _ { \\theta _ { \\mathrm { c } } } \\circ f _ { \\theta } ( x + \\delta _ { c e } ) , c ) ,\n$$",
|
| 677 |
+
"text_format": "latex",
|
| 678 |
+
"bbox": [
|
| 679 |
+
267,
|
| 680 |
+
436,
|
| 681 |
+
740,
|
| 682 |
+
462
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "Pseudo-classification enabled AT regularization ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
478,
|
| 691 |
+
470,
|
| 692 |
+
700,
|
| 693 |
+
482
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "where $\\hat { \\mathcal X }$ denotes the pseudo-labeled dataset of $\\mathcal { X }$ , $\\phi _ { \\theta _ { \\mathrm { c } } }$ denotes a prediction head over $f _ { \\theta }$ , and $\\lambda > 0$ is a regularization parameter that strikes a balance between adversarial contrastive training and pseudo-label stimulated AT. When the number of clusters $K$ is not known a priori, we extend (10) to an ensemble version over $n$ choices of cluster numbers $\\{ K _ { 1 } , \\ldots , K _ { n } \\}$ . Here each cluster number $K _ { i }$ is paired with a unique linear classifier $\\phi _ { i }$ to obtain the supervised prediction $\\phi _ { i } \\circ f$ (using cluster labels). The ensemble CE loss, given by the average of $n$ individual losses, is then used in (10). Our experiments show that the ensemble version usually leads to better generalization ability. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
173,
|
| 702 |
+
486,
|
| 703 |
+
826,
|
| 704 |
+
584
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "5 Experiments ",
|
| 711 |
+
"text_level": 1,
|
| 712 |
+
"bbox": [
|
| 713 |
+
173,
|
| 714 |
+
595,
|
| 715 |
+
313,
|
| 716 |
+
613
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 5
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "In this section, we demonstrate the effectiveness of our proposed ADVCL from the following aspects: (1) Quantitative results, including cross-task robustness transferability, cross-dataset robustness transferability, and robustness against PGD attacks [11] and Auto-Attacks [37]; (2) Qualitative results, including representation t-SNE [55], feature inversion map visualization, and geometry of loss landscape; (3) Ablation studies of ADVCL, including finetuning schemes, view selection choices, and supervision stimulus variations. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
173,
|
| 725 |
+
619,
|
| 726 |
+
826,
|
| 727 |
+
703
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 5
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "Experiment setup We consider three robustness evaluation metrics: (1) Auto-attack accuracy (AA), namely, classification accuracy over adversarially perturbed images via Auto-Attacks; (2) Robust accuracy (RA), namely, classification accuracy over adversarially perturbed images via PGD attacks; and (3) Standard accuracy (SA), namely, standard classification accuracy over benign images without perturbations. We use ResNet-18 for the encoder architecture of $f _ { \\theta }$ in CL. Unless specified otherwise, we use 5-step $\\ell _ { \\infty }$ projected gradient descent (PGD) with $\\epsilon = 8 / 2 5 5$ to generate perturbations during pretraining, and use Auto-Attack and 20-step $\\ell _ { \\infty }$ PGD with $\\epsilon = 8 / 2 5 5$ to generate perturbations in computing AA and RA at test time. We will compare ADVCL with the CL-based adversarial pretraining baselines , ACL [27], RoCL [28], (non-CL) self-supervised adversarial learning baseline AP-DPE [26] and the supervised AT baseline [11]. ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
173,
|
| 736 |
+
710,
|
| 737 |
+
826,
|
| 738 |
+
849
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 5
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "5.1 Quantitative Results ",
|
| 745 |
+
"text_level": 1,
|
| 746 |
+
"bbox": [
|
| 747 |
+
174,
|
| 748 |
+
864,
|
| 749 |
+
356,
|
| 750 |
+
878
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 5
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "Overall performance from pretraining to finetuning (across tasks) In Table 1, we evaluate the robustness of a classifier (ResNet-18) finetuned over robust representations learned by different supervised/self-supervised pretraining approaches over CIFAR-10 and CIFAR-100. We focus on two representative finetuning schemes: the simplest standard linear finetuning (SLF) and the end-to-end adversarial full finetuning (AFF). As we can see, the proposed ADVCL method yields a substantial improvement over almost all baseline methods. Moreover, ADVCL improves robustness and standard accuracy simultaneously. ",
|
| 757 |
+
"bbox": [
|
| 758 |
+
173,
|
| 759 |
+
883,
|
| 760 |
+
821,
|
| 761 |
+
911
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 5
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "table",
|
| 767 |
+
"img_path": "images/1e0451dacbdc1fe4fa73974be61b2d6197817679f46f22c918b373eb70381e92.jpg",
|
| 768 |
+
"table_caption": [
|
| 769 |
+
"Table 1: Cross-task performance of ADVCL (in dark gray color), compared with supervised (in white color) and self-supervised (in light gray color) baselines, in terms of AA, RA and SA on CIFAR-10 with ResNet-18. The pretrained models are evaluated under the standard linear finetuning (SLF) setting and the adversarial full finetuning (AFF) setting. The top performance is highlighted in bold. "
|
| 770 |
+
],
|
| 771 |
+
"table_footnote": [],
|
| 772 |
+
"table_body": "<table><tr><td rowspan=\"2\">Pretraining Method</td><td rowspan=\"2\">Finetuning Method</td><td colspan=\"3\">CIFAR-10</td><td colspan=\"3\">CIFAR-100</td></tr><tr><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td></tr><tr><td>Supervised AP-DPE[26]</td><td rowspan=\"4\">Standard linear finetuning</td><td>42.22</td><td>44.4</td><td>79.77</td><td>19.53</td><td>23.41</td><td>50.53</td></tr><tr><td>RoCL[28]</td><td>16.07</td><td>18.22</td><td>78.30</td><td>4.17</td><td>6.23</td><td>47.91</td></tr><tr><td></td><td>28.38</td><td>39.54</td><td>79.90</td><td>8.66</td><td>18.79</td><td>49.53</td></tr><tr><td>ACL[27] AdvCL (ours)</td><td>39.13</td><td>42.87</td><td>77.88</td><td>16.33</td><td>20.97</td><td>47.51</td></tr><tr><td></td><td rowspan=\"4\">Adversarial full</td><td> 42.57</td><td> 50.45</td><td>80.85</td><td>19.78</td><td>27.67</td><td>48.34</td></tr><tr><td>Supervised</td><td>46.19</td><td>49.89</td><td>79.86</td><td>21.61</td><td>25.86</td><td>52.22</td></tr><tr><td>AP-DPE[26]</td><td>48.13</td><td>51.52</td><td>81.19</td><td>22.53</td><td>26.89</td><td>55.27</td></tr><tr><td>RoCL[28]</td><td>47.88</td><td>51.35</td><td>81.01</td><td>22.38</td><td>27.49</td><td>55.10</td></tr><tr><td>ACL[27]</td><td rowspan=\"3\">finetuning (AFF)</td><td>49.27</td><td> 52.82</td><td>82.19</td><td>23.63</td><td>29.38</td><td>56.61</td></tr><tr><td> ADvCL (ours)</td><td>49.77</td><td> 52.77</td><td>83.62</td><td>24.72</td><td>28.73</td><td>56.77</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 773 |
+
"bbox": [
|
| 774 |
+
209,
|
| 775 |
+
154,
|
| 776 |
+
792,
|
| 777 |
+
340
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 6
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "",
|
| 784 |
+
"bbox": [
|
| 785 |
+
173,
|
| 786 |
+
366,
|
| 787 |
+
825,
|
| 788 |
+
435
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 6
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "Robustness transferability across datasets In Table 2, we next evaluate the robustness transferability across different datasets, where $A $ $B$ denotes the transferability from pretraining on dataset $A$ to finetuning on another dataset $B \\left( \\neq A \\right)$ of representations learned by ADVCL. Here the pretraining setup is consistent with Table 1. We observe that ADVCL yields ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
173,
|
| 797 |
+
453,
|
| 798 |
+
369,
|
| 799 |
+
632
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 6
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "table",
|
| 805 |
+
"img_path": "images/10fcb34127e5aa5e0f1a6217554e78818df8c8afa4b3a70b7808328917cefc9a.jpg",
|
| 806 |
+
"table_caption": [
|
| 807 |
+
"Table 2: Cross-dataset performance of ADVCL (dark gray color), compared with supervised (white color) and self-supervised (light gray) baselines, in AA, RA, SA, on STL-10 with ResNet-18. "
|
| 808 |
+
],
|
| 809 |
+
"table_footnote": [],
|
| 810 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">一 Fine- tuning</td><td colspan=\"3\">CIFAR-10→STL-10</td><td colspan=\"3\">CIFAR-100→STL-10</td></tr><tr><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td><td>AA(%)</td><td>RA(%)</td><td>SA(%)</td></tr><tr><td>Supervised</td><td rowspan=\"4\">SLF</td><td>22.26</td><td>30.45</td><td>54.70</td><td>19.54</td><td>23.63</td><td>51.11</td></tr><tr><td>RoCL[28]</td><td>18.65</td><td>28.18</td><td>54.56</td><td>12.39</td><td>21.93</td><td>47.86</td></tr><tr><td>ACL[27]</td><td>25.29</td><td>31.80</td><td>55.81</td><td>21.75</td><td>26.32</td><td>45.91</td></tr><tr><td> ADvCL (ours)</td><td>25.74</td><td>35.80</td><td>63.73</td><td>20.86</td><td>30.35</td><td>50.71</td></tr><tr><td>Supervised</td><td rowspan=\"4\">AFF</td><td>33.10</td><td>36.7</td><td>62.78</td><td>29.18</td><td>32.43</td><td>55.85</td></tr><tr><td>RoCL[28]</td><td>29.40</td><td>34.65</td><td>61.75</td><td>27.55</td><td>31.38</td><td>57.83</td></tr><tr><td>ACL[27]</td><td>32.50</td><td>35.93</td><td>62.65</td><td>28.68</td><td>32.41</td><td>57.16</td></tr><tr><td>ADvCL (ours)</td><td>34.70</td><td>37.78</td><td>63.52</td><td>30.51</td><td>33.70</td><td>61.56</td></tr></table>",
|
| 811 |
+
"bbox": [
|
| 812 |
+
383,
|
| 813 |
+
501,
|
| 814 |
+
823,
|
| 815 |
+
627
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "better robustness as well as standard accuracy than almost all baseline approaches under both SLF and AFF finetuning settings. In the case of CIFAR- $1 0 0 \\mathrm { S T L } \\mathrm { - } 1 0$ , although ADVCL yields $0 . 8 9 \\%$ AA drop compared to ACL [27], it yields a much better SA with $4 . 8 \\%$ improvement. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
174,
|
| 824 |
+
632,
|
| 825 |
+
826,
|
| 826 |
+
674
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Robustness evaluation vs. attack strength It was shown in [56] that an adversarial defense that causes obfuscated gradients results in a false sense of model robustness. The issue of obfuscated gradients typically comes with two ‘side effects’: (a) The success rate of PGD attack ceases to be improved as the $\\ell _ { \\infty }$ -norm perturbation radius $\\epsilon$ increases; (b) A larger number of PGD steps fails to generate stronger adversarial examples. Spurred by ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
173,
|
| 835 |
+
690,
|
| 836 |
+
406,
|
| 837 |
+
869
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 6
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "image",
|
| 843 |
+
"img_path": "images/e5c730efe89813d6c102565477e6e1db11a1164beb2b8f69559cd73497434098.jpg",
|
| 844 |
+
"image_caption": [
|
| 845 |
+
"Figure 3: RA of ADVCL and baseline approaches under various PGD attacks. SLF is applied to the pretrained model. "
|
| 846 |
+
],
|
| 847 |
+
"image_footnote": [],
|
| 848 |
+
"bbox": [
|
| 849 |
+
416,
|
| 850 |
+
684,
|
| 851 |
+
821,
|
| 852 |
+
825
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 6
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "the above, Figure 3 shows the finetuning performance of ADVCL (using SLF) as a function of the perturbation size $\\epsilon$ and the PGD step number. As we can see, ADVCL is consistently more robust than the baselines at all different PGD settings for a significant margin. ",
|
| 859 |
+
"bbox": [
|
| 860 |
+
174,
|
| 861 |
+
869,
|
| 862 |
+
825,
|
| 863 |
+
911
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 6
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "5.2 Qualitative Results ",
|
| 870 |
+
"text_level": 1,
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
92,
|
| 874 |
+
346,
|
| 875 |
+
106
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 7
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "Class discrimination of learned representations To further demonstrate the efficacy of ADVCL, Figure 4 visualizes the representations learned by self-supervision using t-SNE [55] on CIFAR-10. We color each point using its ground-truth label. The results show representations learned by ADVCL have a much clearer class boundary than those learned with baselines. This indicates that ADVCL makes an adversary difficult to successfully perturb an image, leading to a more robust prediction. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
174,
|
| 884 |
+
111,
|
| 885 |
+
826,
|
| 886 |
+
180
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 7
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "image",
|
| 892 |
+
"img_path": "images/97479d92663cb4be02ac05f5e83a4f2103ad791e90a19e12758e106fa172e23b.jpg",
|
| 893 |
+
"image_caption": [
|
| 894 |
+
"Figure 4: t-SNE visualization of representations learned with different self-supervised pretraining approaches. Our ADVCL gives a much clearer separation among classes than baseline approaches. "
|
| 895 |
+
],
|
| 896 |
+
"image_footnote": [],
|
| 897 |
+
"bbox": [
|
| 898 |
+
200,
|
| 899 |
+
188,
|
| 900 |
+
799,
|
| 901 |
+
318
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 7
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Visual interpretability of learned representations Furthermore, we demonstrate the advantage of our proposals from the perspective of model explanation, characterized by feature inversion map (FIM) [57] of internal neurons’ response. The work [18, 58, 59] showed that model robustness offered by supervised AT and its variants enforces hidden neurons to learn perceptuallyaligned data features through the lens of FIM. However, it remains unclear whether or not selfsupervised robust pretraining is able to render explainable internal response. Following [57, 58], we acquire FIM of the ith component of representation vector by solving the optimization problem $\\begin{array} { r } { x _ { \\mathrm { F I M } } = \\operatorname* { m i n } _ { \\Delta } [ f _ { \\theta } ( x _ { 0 } + \\Delta ) ] _ { i } } \\end{array}$ , where $x _ { 0 }$ is a randomly selected seed image, and $[ \\cdot ] _ { i }$ denotes the ith coordinate of a vector. Figure 5 shows that ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
368,
|
| 911 |
+
498,
|
| 912 |
+
602
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 7
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "image",
|
| 918 |
+
"img_path": "images/06c1fcc48298d40c5d015a0f22906b096d3dcce5827655f6dd67e88353ac4d6a.jpg",
|
| 919 |
+
"image_caption": [
|
| 920 |
+
"Figure 5: FIM visualization of neuron 502 under CIFAR-10 using different robust training methods. Column 1 contains different seed images to generate FIM. Columns 2-5 are FIMs using models trained with different approaches. "
|
| 921 |
+
],
|
| 922 |
+
"image_footnote": [],
|
| 923 |
+
"bbox": [
|
| 924 |
+
535,
|
| 925 |
+
359,
|
| 926 |
+
794,
|
| 927 |
+
527
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 7
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "compared to other approaches, more similar texture-aligned features can be acquired from a neuron’s feature representation of the network trained with our method regardless of the choice of seed images. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
174,
|
| 936 |
+
603,
|
| 937 |
+
825,
|
| 938 |
+
631
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 7
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Flatter loss landscape implies better transferability It has been shown in [60] that the flatness of loss landscape is a good indicator for superb transferability in the pretraining $^ +$ finetuning paradigm. Motivated by that, Figure 6 presents the adversarial loss landscape of ADVCL and other self-supervised pretraining approaches under SLF, where the loss landscape is drawn using the method in [61]. Note that instead of standard CE loss, we visualize the adversarial loss w.r.t. model weights. As we can see, the loss for ADVCL has a much flatter landscape around the local optima, whereas the losses for the other approaches change more rapidly. This justifies that our proposal has a better robustness transferability than baseline approaches. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
173,
|
| 947 |
+
638,
|
| 948 |
+
826,
|
| 949 |
+
750
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 7
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "image",
|
| 955 |
+
"img_path": "images/d0c6b500d5ca6e86fad66f9d6e7d503ff4fdba67230a3e948a63d4ef8b39f6a5.jpg",
|
| 956 |
+
"image_caption": [
|
| 957 |
+
"Figure 6: Visualization of adversarial loss landscape w.r.t. model weights using different self-supervised pretraining methods. ADVCL gives a much flatter landscape than the other baselines. "
|
| 958 |
+
],
|
| 959 |
+
"image_footnote": [],
|
| 960 |
+
"bbox": [
|
| 961 |
+
199,
|
| 962 |
+
757,
|
| 963 |
+
797,
|
| 964 |
+
882
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 7
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "table",
|
| 970 |
+
"img_path": "images/2270ee83ea9b22dae59c045461805c97618f71c6f7c22e1c196cca9457ac6f12.jpg",
|
| 971 |
+
"table_caption": [
|
| 972 |
+
"Table 3: Performance (RA and SA) of ADVCL (in dark gray color) and baseline approaches on CIFAR-10, under different linear finetuning strategies: SLF and adversarial linear finetuning (ALF). "
|
| 973 |
+
],
|
| 974 |
+
"table_footnote": [],
|
| 975 |
+
"table_body": "<table><tr><td rowspan=3 colspan=3>SLFMethodRA(%) SA(%)</td><td></td><td></td></tr><tr><td rowspan=1 colspan=2>SLF</td><td rowspan=1 colspan=2>ALF</td></tr><tr><td rowspan=1 colspan=1>RA(%)</td><td rowspan=1 colspan=1>SA(%)</td><td rowspan=1 colspan=1>RA(%)</td><td rowspan=1 colspan=1>SA(%)</td></tr><tr><td rowspan=1 colspan=1>Supervised</td><td rowspan=1 colspan=1>44.40</td><td rowspan=1 colspan=1>79.77</td><td rowspan=1 colspan=1>46.75</td><td rowspan=1 colspan=1>79.06</td></tr><tr><td rowspan=1 colspan=1>RoCL[28]ACL[27]</td><td rowspan=1 colspan=1>39.5442.87</td><td rowspan=1 colspan=1>79.9077.88</td><td rowspan=1 colspan=1>43.1145.40</td><td rowspan=1 colspan=1>77.3377.71</td></tr><tr><td rowspan=1 colspan=1>ADvCL(ours)</td><td rowspan=1 colspan=1>50.45</td><td rowspan=1 colspan=1>80.85</td><td rowspan=1 colspan=1>52.01</td><td rowspan=1 colspan=1>79.39</td></tr></table>",
|
| 976 |
+
"bbox": [
|
| 977 |
+
184,
|
| 978 |
+
151,
|
| 979 |
+
477,
|
| 980 |
+
226
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 8
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "table",
|
| 986 |
+
"img_path": "images/b5340723d71473527bf9fba21691e20020aeee56769382788b6693ff41823eed.jpg",
|
| 987 |
+
"table_caption": [
|
| 988 |
+
"Table 4: Performance (RA and SA) of ADVCL using different contrastive views setups. ResNet-18 is the backbone network, CIFAR-10 is the dataset, and SLF is used for classification. "
|
| 989 |
+
],
|
| 990 |
+
"table_footnote": [],
|
| 991 |
+
"table_body": "<table><tr><td>Contrastive Views</td><td>RA(%)</td><td>SA(%)</td></tr><tr><td>T1(x)+01,T2(x) T1(x)+δ1,T2(x)+δ2</td><td>42.12 42.48</td><td>77.07 73.12</td></tr><tr><td>T1(x)+δ1,T2(x)+δ,T1(x),T2(x)</td><td>43.51</td><td>74.22</td></tr><tr><td>x+δ,T1(x),T2(x)</td><td>50.19</td><td>80.17</td></tr><tr><td>x +δ,T1(x),2(x),x1</td><td>49.51</td><td>79.83</td></tr><tr><td>x+δ,T1(x),T2(x),x1,xh</td><td>50.03</td><td>80.14</td></tr><tr><td>x +δ,T1(x),T2(x),xh</td><td> 50.45</td><td>80.85</td></tr></table>",
|
| 992 |
+
"bbox": [
|
| 993 |
+
186,
|
| 994 |
+
284,
|
| 995 |
+
477,
|
| 996 |
+
381
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 8
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "table",
|
| 1002 |
+
"img_path": "images/7d53aa71d5304b6153a77db5a28dbc362569a873ed58025f364e9ac9a5b5c9f3.jpg",
|
| 1003 |
+
"table_caption": [
|
| 1004 |
+
"Table 5: Performance (RA and SA) of ADVCL using various pretrained models $f _ { \\mathrm { p r e } }$ and cluster numbers $K$ in CLUSTERFIT, as well as the baseline w/o using CLUSTERFIT. The setup of $f _ { \\mathrm { p r e } }$ is specified by the training method (supervised training or SimCLR) and training dataset (ImageNet or CIFAR-10). ADVCL is implemented using unlabeled data from CIFAR-10 under ResNet-18, together with SLF over the acquired feature encoder for supervised CIFAR-10 classification. "
|
| 1005 |
+
],
|
| 1006 |
+
"table_footnote": [],
|
| 1007 |
+
"table_body": "<table><tr><td rowspan=\"2\">fpre setup: (dataset, training)</td><td rowspan=\"2\">Cluster number K</td><td rowspan=\"2\">RA(%)</td><td rowspan=\"2\">SA (%)</td></tr><tr><td></td></tr><tr><td>N/A</td><td>W/o CLUSTERFIT</td><td>48.89</td><td>77.73 80.34</td></tr><tr><td rowspan=\"2\">(CIFAR-10, SimCLR)</td><td>10 100</td><td>50.10 49.21</td><td>79.52</td></tr><tr><td></td><td></td><td></td></tr><tr><td rowspan=\"2\">(ImageNet,supervised)</td><td>10 100</td><td>50.16 49.27</td><td>78.27 78.08</td></tr><tr><td></td><td></td><td></td></tr><tr><td rowspan=\"6\">(ImageNet, SimCLR)</td><td>2</td><td>50.09</td><td>79.72</td></tr><tr><td>10</td><td>50.12</td><td>79.93</td></tr><tr><td>50</td><td>49.27</td><td>79.55</td></tr><tr><td>100</td><td>49.16</td><td>79.07</td></tr><tr><td>500</td><td>49.03</td><td>78.96</td></tr><tr><td>Ensemble</td><td>50.45</td><td>80.85</td></tr></table>",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
496,
|
| 1010 |
+
223,
|
| 1011 |
+
813,
|
| 1012 |
+
380
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 8
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "5.3 Ablation studies ",
|
| 1019 |
+
"text_level": 1,
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
173,
|
| 1022 |
+
406,
|
| 1023 |
+
326,
|
| 1024 |
+
420
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 8
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Linear finetuning types We first study the robustness difference when different linear finetuning strategies: Standard linear finetuning (SLF) and Adversarial linear finetuning (ALF) are applied. Table 3 shows the performance of models trained with different pretraining methods. As we can see, our ADVCL achieves the best performance under both linear finetuning settings and outperforms baseline approaches in a large margin. We also note the performance gap between SLF and ALF induced by our proposal ADVCL is much smaller than other approaches, and ADVCL with SLF achieves much better performance than baseline approaches with ALF. This indicates that the representations learned by ADVCL is already sufficient to yield satisfactory robustness. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
424,
|
| 1034 |
+
825,
|
| 1035 |
+
535
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 8
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "View selection setup We illustrate how different choices of contrastive views influence the robustness performance of ADVCL in Table 4. The first 4 rows study the effect of different types of adversarial examples in contrastive views, and our proposed 3-view contrastive loss (7) significantly outperforms the other baselines, as shown in row 4. The rows in gray show the performance of further exploring different image frequency components (8) as different contrastive views. It is clear that the use of HFC leads to the best overall performance, as shown in the last row. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
544,
|
| 1045 |
+
825,
|
| 1046 |
+
627
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 8
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Supervision stimulus setup We further study the performance of ADVCL using different supervision stimulus. Specifically, we vary the pretrained model for $f _ { \\mathrm { p r e } }$ and pseudo cluster number $K$ when training ADVCL and summarize the results in Table 5. The results demonstrate that adding the supervision stimulus could boost the performance of ADVCL. We also observe that the best result comes from $f _ { \\mathrm { p r e } }$ pretrained on Imagenet using SimCLR. This is because such representations could generalize better. Moreover, the ensemble scheme over pseudo label categories $K \\in \\{ 2 , 1 0 , 5 0 , 1 0 \\bar { 0 } , 5 0 0 \\}$ yields better results than using a single number of clusters. The ensemble scheme also makes ADVCL less sensitive to the actual number of labels for the training dataset. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
635,
|
| 1056 |
+
826,
|
| 1057 |
+
746
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 8
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "6 Conclusion ",
|
| 1064 |
+
"text_level": 1,
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
174,
|
| 1067 |
+
757,
|
| 1068 |
+
299,
|
| 1069 |
+
773
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 8
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "In this paper, we study the good practices in making contrastive learning robust to adversarial examples. We show that adding perturbations to original images and high-frequency components are two beneficial factors. We further show that proper supervision stimulus could improve model robustness. Our proposed approaches can achieve state-of-the-art robust accuracy as well as standard accuracy using just standard linear finetuning. Extensive experiments involving quantitative and qualitative analysis have also been made not only to demonstrate the effectiveness of our proposals but also to rationalize why it yields superior performance. Future works could be done to improve the scalability of our proposed self-supervised pretraining approach to very large datasets and models to further boost robust transferabilty across datasets. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
174,
|
| 1078 |
+
786,
|
| 1079 |
+
825,
|
| 1080 |
+
911
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 8
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "References \n[1] Fatemeh Vakhshiteh, Raghavendra Ramachandra, and Ahmad Nickabadi, “Threat of adversarial attacks on face recognition: A comprehensive survey,” arXiv preprint arXiv:2007.11709, 2020. \n[2] Xingjun Ma, Yuhao Niu, Lin Gu, Yisen Wang, Yitian Zhao, James Bailey, and Feng Lu, “Understanding adversarial attacks on deep learning based medical image analysis systems,” Pattern Recognition, vol. 110, pp. 107332, 2021. \n[3] Kaidi Xu, Gaoyuan Zhang, Sijia Liu, Quanfu Fan, Mengshu Sun, Hongge Chen, Pin-Yu Chen, Yanzhi Wang, and Xue Lin, “Adversarial t-shirt! evading person detectors in a physical world,” in European Conference on Computer Vision. Springer, 2020, pp. 665–681. \n[4] Ji Lin, Chuang Gan, and Song Han, “Defensive quantization: When efficiency meets robustness,” ICLR, 2019. \n[5] Yulong Cao, Chaowei Xiao, Dawei Yang, Jing Fang, Ruigang Yang, Mingyan Liu, and Bo Li, “Adversarial objects against lidar-based autonomous driving systems,” arXiv preprint arXiv:1907.05418, 2019. \n[6] Ian Goodfellow, Jonathon Shlens, and Christian Szegedy, “Explaining and harnessing adversarial examples,” International Conference on Learning Representations, vol. arXiv preprint arXiv:1412.6572, 2015. \n[7] Nicholas Carlini and David Wagner, “Towards evaluating the robustness of neural networks,” in Security and Privacy (SP), 2017 IEEE Symposium on. IEEE, 2017, pp. 39–57. \n[8] Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami, “The limitations of deep learning in adversarial settings,” in Security and Privacy (EuroS&P), 2016 IEEE European Symposium on. IEEE, 2016, pp. 372–387. \n[9] Pin-Yu Chen, Yash Sharma, Huan Zhang, Jinfeng Yi, and Cho-Jui Hsieh, “EAD: elasticnet attacks to deep neural networks via adversarial examples,” in Proceedings of the AAAI Conference on Artificial Intelligence, 2018, pp. 10–17. \n[10] Kaidi Xu, Sijia Liu, Pu Zhao, Pin-Yu Chen, Huan Zhang, Quanfu Fan, Deniz Erdogmus, Yanzhi Wang, and Xue Lin, “Structured adversarial attack: Towards general implementation and better interpretability,” in International Conference on Learning Representations, 2019. \n[11] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu, “Towards deep learning models resistant to adversarial attacks,” 2018 ICLR, vol. arXiv preprint arXiv:1706.06083, 2018. \n[12] Harini Kannan, Alexey Kurakin, and Ian Goodfellow, “Adversarial logit pairing,” 2018. \n[13] Andrew Slavin Ross and Finale Doshi-Velez, “Improving the adversarial robustness and interpretability of deep neural networks by regularizing their input gradients,” in Thirty-second AAAI conference on artificial intelligence, 2018. \n[14] Jingkang Wang, Tianyun Zhang, Sijia Liu, Pin-Yu Chen, Jiacen Xu, Makan Fardad, and Bo Li, “Towards a unified min-max framework for adversarial exploration and robustness,” arXiv preprint arXiv:1906.03563, 2019. \n[15] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Jonathan Uesato, and Pascal Frossard, “Robustness via curvature regularization, and vice versa,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019, pp. 9078–9086. \n[16] Yisen Wang, Xingjun Ma, James Bailey, Jinfeng Yi, Bowen Zhou, and Quanquan Gu, “On the convergence and robustness of adversarial training,” in International Conference on Machine Learning, 2019, pp. 6586–6595. \n[17] Jiefeng Chen, Xi Wu, Vaibhav Rastogi, Yingyu Liang, and Somesh Jha, “Robust attribution regularization,” in Advances in Neural Information Processing Systems, 2019, pp. 14300–14310. \n[18] Akhilan Boopathy, Sijia Liu, Gaoyuan Zhang, Cynthia Liu, Pin-Yu Chen, Shiyu Chang, and Luca Daniel, “Proper network interpretability helps adversarial robustness in classification,” in ICML, 2020. \n[19] Ali Shafahi, Mahyar Najibi, Mohammad Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein, “Adversarial training for free!,” in Advances in Neural Information Processing Systems, 2019, pp. 3353–3364. \n[20] Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong, “You only propagate once: Accelerating adversarial training via maximal principle,” arXiv preprint arXiv:1905.00877, 2019. \n[21] Eric Wong, Leslie Rice, and J. Zico Kolter, “Fast is better than free: Revisiting adversarial training,” in International Conference on Learning Representations, 2020. \n[22] Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P Xing, Laurent El Ghaoui, and Michael I Jordan, “Theoretically principled trade-off between robustness and accuracy,” International Conference on Machine Learning, 2019. \n[23] Yair Carmon, Aditi Raghunathan, Ludwig Schmidt, Percy Liang, and John C Duchi, “Unlabeled data improves adversarial robustness,” arXiv preprint arXiv:1905.13736, 2019. \n[24] Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John Hopcroft, and Liwei Wang, “Adversarially robust generalization just requires more unlabeled data,” arXiv preprint arXiv:1906.00555, 2019. \n[25] Dan Hendrycks, Mantas Mazeika, Saurav Kadavath, and Dawn Song, “Using self-supervised learning can improve model robustness and uncertainty,” arXiv preprint arXiv:1906.12340, 2019. \n[26] Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, and Zhangyang Wang, “Adversarial robustness: From self-supervised pre-training to fine-tuning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 699–708. \n[27] Ziyu Jiang, Tianlong Chen, Ting Chen, and Zhangyang Wang, “Robust pre-training by adversarial contrastive learning,” arXiv preprint arXiv:2010.13337, 2020. \n[28] Minseon Kim, Jihoon Tack, and Sung Ju Hwang, “Adversarial self-supervised contrastive learning,” arXiv preprint arXiv:2006.07589, 2020. \n[29] Sven Gowal, Po-Sen Huang, Aaron van den Oord, Timothy Mann, and Pushmeet Kohli, “Self-supervised adversarial robustness for the low-label, high-data regime,” in International Conference on Learning Representations, 2021. \n[30] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton, “A simple framework for contrastive learning of visual representations,” in International conference on machine learning. PMLR, 2020, pp. 1597–1607. \n[31] Jean-Bastien Grill, Florian Strub, Florent Altche, 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,” arXiv preprint arXiv:2006.07733, 2020. \n[32] Yonglong Tian, Chen Sun, Ben Poole, Dilip Krishnan, Cordelia Schmid, and Phillip Isola, “What makes for good views for contrastive learning,” arXiv preprint arXiv:2005.10243, 2020. \n[33] Tongzhou Wang and Phillip Isola, “Understanding contrastive representation learning through alignment and uniformity on the hypersphere,” in International Conference on Machine Learning. PMLR, 2020, pp. 9929–9939. \n[34] Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He, “Improved baselines with momentum contrastive learning,” arXiv preprint arXiv:2003.04297, 2020. \n[35] Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra, “Scaling and benchmarking self-supervised visual representation learning,” in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019, pp. 6391–6400. \n[36] Senthil Purushwalkam and Abhinav Gupta, “Demystifying contrastive self-supervised learning: Invariances, augmentations and dataset biases,” arXiv preprint arXiv:2007.13916, 2020. \n[37] Francesco Croce and Matthias Hein, “Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks,” in International Conference on Machine Learning. PMLR, 2020, pp. 2206–2216. \n[38] Spyros Gidaris, Praveer Singh, and Nikos Komodakis, “Unsupervised representation learning by predicting image rotations,” arXiv preprint arXiv:1803.07728, 2018. \n[39] Mehdi Noroozi and Paolo Favaro, “Unsupervised learning of visual representations by solving jigsaw puzzles,” in European Conference on Computer Vision. Springer, 2016, pp. 69–84. \n[40] Fabio M Carlucci, Antonio D’Innocente, Silvia Bucci, Barbara Caputo, and Tatiana Tommasi, “Domain generalization by solving jigsaw puzzles,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019, pp. 2229–2238. \n[41] Chuang Gan, Boqing Gong, Kun Liu, Hao Su, and Leonidas J Guibas, “Geometry guided convolutional neural networks for self-supervised video representation learning,” in CVPR, 2018, pp. 5589–5597. \n[42] Trieu H Trinh, Minh-Thang Luong, and Quoc V Le, “Selfie: Self-supervised pretraining for image embedding,” arXiv preprint arXiv:1906.02940, 2019. \n[43] Aaron van den Oord, Yazhe Li, and Oriol Vinyals, “Representation learning with contrastive predictive coding,” arXiv preprint arXiv:1807.03748, 2018. \n[44] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick, “Momentum contrast for unsupervised visual representation learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 9729–9738. \n[45] Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton, “Big self-supervised models are strong semi-supervised learners,” arXiv preprint arXiv:2006.10029, 2020. \n[46] Xinlei Chen and Kaiming He, “Exploring simple siamese representation learning,” arXiv preprint arXiv:2011.10566, 2020. \n[47] Eric Wong and J Zico Kolter, “Provable defenses against adversarial examples via the convex outer adversarial polytope,” arXiv preprint arXiv:1711.00851, 2017. \n[48] Krishnamurthy Dvijotham, Sven Gowal, Robert Stanforth, Relja Arandjelovic, Brendan O’Donoghue, Jonathan Uesato, and Pushmeet Kohli, “Training verified learners with learned verifiers,” arXiv preprint arXiv:1805.10265, 2018. \n[49] Chuang Gan, Ting Yao, Kuiyuan Yang, Yi Yang, and Tao Mei, “You lead, we exceed: Laborfree video concept learning by jointly exploiting web videos and images,” in CVPR, 2016, pp. 923–932. \n[50] Chuang Gan, Chen Sun, Lixin Duan, and Boqing Gong, “Webly-supervised video recognition by mutually voting for relevant web images and web video frames,” in ECCV, 2016, pp. 849–866. \n[51] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan, “Supervised contrastive learning,” arXiv preprint arXiv:2004.11362, 2020. \n[52] Haohan Wang, Xindi Wu, Zeyi Huang, and Eric P Xing, “High-frequency component helps explain the generalization of convolutional neural networks,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 8684–8694. \n[53] Zifan Wang, Yilin Yang, Ankit Shrivastava, Varun Rawal, and Zihao Ding, “Towards frequencybased explanation for robust cnn,” arXiv preprint arXiv:2005.03141, 2020. \n[54] Xueting Yan, Ishan Misra, Abhinav Gupta, Deepti Ghadiyaram, and Dhruv Mahajan, “Clusterfit: Improving generalization of visual representations,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 6509–6518. \n[55] Laurens Van der Maaten and Geoffrey Hinton, “Visualizing data using t-sne.,” Journal of machine learning research, vol. 9, no. 11, 2008. \n[56] Anish Athalye, Nicholas Carlini, and David Wagner, “Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples,” arXiv preprint arXiv:1802.00420, 2018. \n[57] Aravindh Mahendran and Andrea Vedaldi, “Visualizing deep convolutional neural networks using natural pre-images,” International Journal of Computer Vision, vol. 120, no. 3, pp. 233–255, 2016. \n[58] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Brandon Tran, and Aleksander Madry, “Adversarial robustness as a prior for learned representations,” arXiv preprint arXiv:1906.00945, 2019. \n[59] Simran Kaur, Jeremy Cohen, and Zachary C Lipton, “Are perceptually-aligned gradients a general property of robust classifiers?,” arXiv preprint arXiv:1910.08640, 2019. \n[60] Hong Liu, Mingsheng Long, Jianmin Wang, and Michael I Jordan, “Towards understanding the transferability of deep representations,” arXiv preprint arXiv:1909.12031, 2019. \n[61] Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein, “Visualizing the loss landscape of neural nets,” arXiv preprint arXiv:1712.09913, 2017. \n[62] Angus Galloway, Anna Golubeva, Thomas Tanay, Medhat Moussa, and Graham W Taylor, “Batch normalization is a cause of adversarial vulnerability,” arXiv preprint arXiv:1905.02161, 2019. \n[63] Tianyu Pang, Xiao Yang, Yinpeng Dong, Hang Su, and Jun Zhu, “Bag of tricks for adversarial training,” arXiv preprint arXiv:2010.00467, 2020. ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
171,
|
| 1089 |
+
71,
|
| 1090 |
+
828,
|
| 1091 |
+
920
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 9
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
169,
|
| 1100 |
+
64,
|
| 1101 |
+
828,
|
| 1102 |
+
919
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 10
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
171,
|
| 1111 |
+
49,
|
| 1112 |
+
828,
|
| 1113 |
+
917
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 11
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
171,
|
| 1122 |
+
82,
|
| 1123 |
+
828,
|
| 1124 |
+
571
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 12
|
| 1127 |
+
}
|
| 1128 |
+
]
|
parse/train/70kOIgjKhbA/70kOIgjKhbA_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/70kOIgjKhbA/70kOIgjKhbA_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJlAzTEKwS/BJlAzTEKwS.md
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ATTRACTION-REPULSION ACTOR-CRITIC FOR CONTINUOUS CONTROL REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In reinforcement learning, robotic control tasks are often useful for understanding how agents perform in environments with deceptive rewards where the agent can easily become trapped into suboptimal solutions. One way to avoid these local optima is to use a population of agents to ensure coverage of the policy space (a form of exploration), yet learning a population with the “best” coverage is still an open problem. In this work, we present a novel approach to population-based RL in continuous control that leverages properties of normalizing flows to perform attractive and repulsive operations between current members of the population and previously observed policies. Empirical results on the MuJoCo suite demonstrate a high performance gain for our algorithm compared to prior work, including Soft-Actor Critic (SAC).
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Many important reinforcement learning (RL) tasks, such as those in robotics and self-driving cars, are challenging due to large action and state spaces (Lee et al., 2018). In particular, environments with large continuous action spaces are prone to deceptive rewards, i.e. fall into local optima in learning (Conti et al., 2018). Applying traditional policy optimization algorithms to these domains often leads to locally optimal, yet globally sub-optimal policies. The agent should then explore the reward landscape more thoroughly in order to avoid falling into these local optima.
|
| 12 |
+
|
| 13 |
+
Not all RL domains that require exploration are suitable for understanding how to train agents that are robust to deceptive rewards. For example, Montezuma’s Revenge, a game in the Atari Learning Environment (Bellemare et al., 2013), has sparse rewards; algorithms that perform the best on this task encourage exploration by providing a denser intrinsic reward to the agent to encourage exploration (Tang et al., 2017). On the other hand, many robotic control problems, such as those found in MuJoCo (Todorov et al., 2012), provide the agent with a dense reward signal, yet their high-dimensional action spaces induce a multimodal, often deceptive, reward landscape. For example, in the biped environments, coordinating both arms and legs is crucial for performing well on even simple tasks such as forward motion. However, simply learning to maximize the reward can be detrimental across training: agents will tend to run and fall further away from the start point rather than discovering stable and efficient walking motion. In this setting, exploration serves to provide a more reliable learning signal for the agent by covering more different types of actions during learning.
|
| 14 |
+
|
| 15 |
+
One way to maximize action space coverage is the maximum entropy RL framework (Ziebart, 2010), which prevents variance collapse by adding a policy entropy auxiliary objective. One such prominent algorithm, Soft Actor-Critic (SAC,Haarnoja et al. (2018)), has been shown to excel in large continuous action spaces. To further improve on exploration properties of SAC, one can maintain a population of agents that cover non-identical sections of the policy space. To prevent premature convergence, a diversity-preserving mechanism is typically put in place; balancing the objective and the diversity term becomes key to converging to a global optimum (Hong et al., 2018). This paper studies a particular family of population-based exploration methods, which conduct coordinated local search in the policy space. Prior work on population-based strategies improves performance on robotic control domains through stochastic perturbation on a single actor’s parameter (Pourchot & Sigaud, 2019) or a set of actor’s parameters (Conti et al., 2018; Khadka & Tumer, 2018; Liu et al., 2017). We hypothesize that exploring directly in the policy space will be more effective than perturbing the parameters of the policy, as the latter does not guarantee diversity (i.e., different neural network parameterizations can approximately represent the same function).
|
| 16 |
+
|
| 17 |
+
Given a population of RL agents, we enforce local exploration using an Attraction-Repulsion (AR) mechanism. The later consists in adding an auxiliary loss to encourage pairwise attraction or repulsion between members of a population, as measured by a divergence term. We make use of the KullbackLeibler (KL) divergence because of its desirable statistical properties and its easiness of computation. However, naively maximizing the KL term between two Gaussian policies can be detrimental (e.g. drives both means apart). Because of this, we parametrize the policy with a general family of distributions called Normalizing Flows (NFs, Rezende & Mohamed, 2015); this modification allows to improve upon $\mathrm { \bf A R + }$ Gaussian (see Appendix Figure 6). NFs are shown to improve the expressivity of the policies using invertible mappings while maintaining entropy guarantees (Mazoure et al., 2019; Tang & Agrawal, 2018). Nonlinear density estimators have also been previously used for deep RL problems in contexts of distributional RL (Doan et al., 2018) and reward shaping (Tang et al., 2017). The AR objective blends particularly well with SAC, since computing the KL requires stochastic policies with tractable densities for each agent.
|
| 18 |
+
|
| 19 |
+
# 2 PRELIMINARIES
|
| 20 |
+
|
| 21 |
+
We first formalize the RL setting in a Markov decision process (MDP). A discrete-time, finite-horizon, MDP (Bellman, 1957; Puterman, 2014) is described by a state space $s$ , an action space $\mathcal { A }$ , a transition function $\mathcal { P } : \mathcal { S } \times \mathcal { A } \times \mathcal { S } \mapsto \mathbb { R } ^ { + }$ , and a reward function $r : S \times \mathcal { A } \mapsto \mathbb { R }$ .1 On each round $t$ , an agent interacting with this MDP observes the current state $s _ { t } \in S$ , selects an action $a _ { t } \in \mathcal A$ , and observes a reward $r ( s _ { t } , a _ { t } ) \in \mathbb { R }$ upon transitioning to a new state $s _ { t + 1 } \sim \mathcal { P } ( s _ { t } , a _ { t } )$ . Let $\gamma \in [ 0 , 1 ]$ be a discount factor. The goal of an agent evolving in a discounted MDP is to learn a policy $\Dot { \pi } : \Dot { S \times A } \mapsto [ 0 , 1 ]$ such as taking action $a _ { t } \sim \pi ( \cdot | s _ { t } )$ would maximize the expected sum of discounted returns,
|
| 22 |
+
|
| 23 |
+
$$
|
| 24 |
+
V ^ { \pi } ( s ) = \mathbb { E } _ { \pi } \bigg [ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } r ( s _ { t } , a _ { t } ) | s _ { 0 } = s \bigg ] .
|
| 25 |
+
$$
|
| 26 |
+
|
| 27 |
+
In the following, we use $\rho _ { \pi }$ to denote the trajectory distribution induced by following policy $\pi$ . If $s$ or $\mathcal { A }$ are vector spaces, action and space vectors are respectively denoted by a and s.
|
| 28 |
+
|
| 29 |
+
# 2.1 DISCOVERING NEW SOLUTIONS THROUGH POPULATION-BASED ATTRACTION-REPULSION
|
| 30 |
+
|
| 31 |
+
Consider evolving a population of $M$ agents, also called individuals, $\lbrace \pi _ { \theta _ { m } } \rbrace _ { m = 1 } ^ { M }$ , each agent corresponding to a policy with its own parameters. In order to discover new solutions, we aim to generate agents that can mimic some target policy while following a path different from those of other policies.
|
| 32 |
+
|
| 33 |
+
Let $\mathcal { G }$ denote an archive of policies encountered in previous generations of the population. A natural way of enforcing $\pi$ to be different from or similar to the policies contained in $\mathcal { G }$ is by augmenting the loss of the agent with an Attraction-Repulsion (AR) term:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { A R } } = - \underset { \pi ^ { \prime } \sim \mathcal { G } } { \mathbb { E } } \big [ \beta _ { \pi ^ { \prime } } \mathrm { D } _ { \mathrm { K L } } [ \pi | | \pi ^ { \prime } ] \big ] , } \end{array}
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
where $\pi ^ { \prime }$ is an archived policy and $\beta _ { \pi ^ { \prime } }$ is a coefficient weighting the relative importance of the Kullback-Leibler (KL) divergence between $\pi$ and $\pi ^ { \prime }$ , which we will choose to be a function of the average reward (see Sec. 3.2 below). Intuitively, Eq. 1 adds to the agent objective a weighted average distance between the current and the archived policies. For $\beta _ { \pi ^ { \prime } } \geq 0$ , the agent tends to move away from the archived policy’s behavior (i.e. repulsion, see Figure 1) a). On the other hand, $\beta _ { \pi ^ { \prime } } < 0$ encourages the agent $\pi$ to imitate $\pi ^ { \prime }$ (i.e. attraction).
|
| 40 |
+
|
| 41 |
+
Requirements for AR In order for agents within a population to be trained using the proposed AR-based loss (Eq. 1), we have the following requirements:
|
| 42 |
+
|
| 43 |
+
1. Their policies should be stochastic, so that the KL-divergence between two policies is well-defined.
|
| 44 |
+
|
| 45 |
+
2. Their policies should have tractable distributions, so that the KL-divergence can be computed easily, either with closed-form solution or Monte Carlo estimation.
|
| 46 |
+
|
| 47 |
+
Several RL algorithms enjoy such properties (Haarnoja et al., 2018; Schulman et al., 2015; 2017). In particular, the soft actor-critic (SAC, Haarnoja et al., 2018) is a straightforward choice, as it currently outperforms other candidates and is off-policy, thus maintains a single critic shared among all agents (instead of one critic per agent), which reduces computation costs.
|
| 48 |
+
|
| 49 |
+
# 2.2 SOFT ACTOR-CRITIC
|
| 50 |
+
|
| 51 |
+
SAC (Haarnoja et al., 2018) is an off-policy learning algorithm which finds the information projection of the Boltzmann Q-function onto the set of diagonal Gaussian policies $\Pi$ :
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\pi = \underset { \pi ^ { \prime } \in \Pi } { \arg \operatorname* { m i n } } \mathrm { D } _ { \mathrm { K L } } \bigg ( \pi ^ { \prime } ( . | \mathbf { s } _ { t } ) \bigg | \bigg | \frac { \exp \big ( \frac { 1 } { \alpha } Q ^ { \pi _ { \mathrm { o l d } } } \big ( \mathbf { s } _ { t } , . \big ) \big ) } { Z ^ { \pi _ { \mathrm { o l d } } } \big ( \mathbf { s } _ { t } \big ) } \bigg ) ,
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where $\alpha \in ( 0 , 1 )$ controls the temperature, i.e. the peakedness of the distribution. The policy $\pi$ , critic $Q$ , and value function $V$ are optimized according to the following loss functions:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\begin{array} { r l } & { \mathcal { L } _ { \pi , \mathrm { S A C } } = \mathbb { E } _ { \mathbf { s } _ { t } \sim \mathcal { B } } [ \mathbb { E } _ { \mathbf { a } _ { t } \sim \pi } [ \alpha \log \pi ( \mathbf { a } _ { t } | \mathbf { s } _ { t } ) - Q ( \mathbf { s } _ { t } , \mathbf { a } _ { t } ) ] ] } \\ & { \qquad \mathcal { L } _ { Q } = \underset { ( s , a , r , s ^ { \prime } ) \sim \mathcal { B } } { \mathbb { E } } [ \{ Q ( s , a ) - ( r + \gamma V _ { \nu } ^ { \pi } ( s ^ { \prime } ) ) \} ^ { 2 } ] } \\ & { \qquad \mathcal { L } _ { V } = \mathbb { E } _ { \mathbf { s } _ { t } \sim \mathcal { D } } \bigg [ \frac { 1 } { 2 } \big \{ V _ { \nu } ^ { \pi } ( \mathbf { s } _ { t } ) - \mathbb { E } _ { \mathbf { a } _ { t } \sim \pi } [ Q ( \mathbf { s } _ { t } , \mathbf { a } _ { t } ) - \alpha \log \pi ( \mathbf { a } _ { t } | \mathbf { s } _ { t } ) ] \big \} ^ { 2 } \bigg ] , } \end{array}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where $\boldsymbol { B }$ is the replay buffer. The policy used in SAC as introduced in Haarnoja et al. (2018) is Gaussian, which is both stochastic and tractable, thus compatible with our AR loss function in Eq. 1. Together with the AR loss in Eq. 1, the final policy loss becomes:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\mathcal { L } _ { \pi } = \mathcal { L } _ { \pi , \mathrm { S A C } } + \mathcal { L } _ { \mathrm { A R } }
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
However, Gaussian policies are arguably of limited expressibility; we can improve on the family of policy distributions without sacrificing qualities necessary for AR or SAC by using Normalizing Flows (NFs, Rezende & Mohamed, 2015).
|
| 70 |
+
|
| 71 |
+
# 2.3 NORMALIZING FLOWS
|
| 72 |
+
|
| 73 |
+
NFs (Rezende & Mohamed, 2015) were introduced as a means of transforming simple distributions into more complex distributions using learnable and invertible functions. Given a random variable $\mathbf { z } _ { 0 }$ sequence of with density $q _ { 0 }$ $d$ 0-dimensional random variables, , they define a set of differentiable and invertible functions, $\{ { \mathbf { z } } _ { i } \} _ { i = 1 } ^ { N }$ . $\{ f _ { i } \} _ { i = 1 } ^ { N }$ , which generate a
|
| 74 |
+
|
| 75 |
+
Because SAC uses explicit, yet simple parametric policies, NFs can be used to transform the SAC policy into a richer one (e.g., multimodal) without risk loss of information. For example, Mazoure et al. (2019) enhanced SAC using a family of radial contractions around a point $\mathbf { z } _ { 0 } \in \bar { \mathbb { R } } ^ { d }$ ,
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
f ( \mathbf { z } ) = \mathbf { z } + { \frac { \beta } { \alpha + | | \mathbf { z } - \mathbf { z } _ { 0 } | | _ { 2 } } } ( \mathbf { z } - \mathbf { z } _ { 0 } )
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
for $\alpha \in \mathbb { R } ^ { + }$ and $\beta \in \mathbb { R }$ . This results in a rich set of policies comprised of an initial noise sample ${ \bf a } _ { 0 }$ , a state-noise embedding $h _ { \theta } ( \mathbf { a } _ { 0 } , \mathbf { s } _ { t } )$ , and a flow $\{ \dot { f } _ { \phi _ { i } } \} _ { i = 1 } ^ { N }$ of arbitrary length $N$ , parameterized by $\phi = \{ \phi _ { i } \} _ { i = 1 } ^ { N }$ . Sampling from the policy $\pi _ { \phi , \theta } ( \mathbf { a } _ { t } | \mathbf { s } _ { t } )$ can be described by the following set of equations:
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
\begin{array} { r l } & { \mathbf { a } _ { 0 } \sim \mathcal { N } ( 0 , \mathbf { I } ) ; } \\ & { \mathbf { \Phi } \mathbf { z } = h _ { \theta } ( \mathbf { a } _ { 0 } , \mathbf { s } _ { t } ) ; } \\ & { \mathbf { a } _ { t } = f _ { \phi _ { N } } \circ f _ { \phi _ { N - 1 } } \circ \dots \circ f _ { \phi _ { 1 } } ( \mathbf { z } ) , } \end{array}
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
where $h _ { \theta } = \mathbf { a } _ { 0 } \sigma \mathbf { I } + \mu ( \mathbf { s } _ { t } )$ depends on the state and the noise variance $\sigma > 0$ . Different SAC policies can thus be crafted by parameterizing their NFs layers.
|
| 88 |
+
|
| 89 |
+

|
| 90 |
+
Figure 1: a) Augmenting the loss function with AR constraints allows an agent to reach a target policy by following different paths. Attractive and Repulsive policies represent any other agent’s policy. b) General flow of the proposed ARAC strategy.
|
| 91 |
+
|
| 92 |
+
# 3 ARAC: ATTRACTION-REPULSION ACTOR-CRITIC
|
| 93 |
+
|
| 94 |
+
We now detail the general procedure for training a population of agents using the proposed diversityseeking AR mechanism. More specifically, we consider here SAC agents enhanced with NFs (Mazoure et al., 2019). Figure 1 displays the general flow of the procedure. Algorithm 1 (Appendix) provides the pseudo-code of the proposed ARAC strategy, where sub-procedures for rollout and archive update can be found in the Appendix.
|
| 95 |
+
|
| 96 |
+
Overview ARAC works by evolving a population of $M$ SAC agents $\{ \pi _ { \phi , \theta } ^ { m } \} _ { m = 1 } ^ { M }$ with radial NFs policies (Eq. 7) and shared critic , and by maintaining an archive of policies encountered in previous generations of the population. After performing $T$ steps per agent on the environment (Alg. 1 L8-12), individuals are evaluated by performing $R$ rollouts2 on the environment (Alg. 1 L26-28). This allows to identify the top- $K$ best agents (Alg. 1 L29), also called elites, which will be used to update the critic as they provide the most meaningful feedback (Alg. 1 L13-17). The archive is finally updated in a diversity-seeking fashion using the current population (Alg. 1 L30).
|
| 97 |
+
|
| 98 |
+
The core component of the proposed approach lies within the update of the agents (Alg. 1 L18-25). During this phase, elite individuals are updated using AR operations w.r.t. policies sampled from the archive (Eq. 5), whereas non-elites are updated regularly (Eq. 2).
|
| 99 |
+
|
| 100 |
+
# 3.1 ENHANCING DIVERSITY IN THE ARCHIVE
|
| 101 |
+
|
| 102 |
+
Throughout the training process, we maintain an archive $\mathcal { G }$ of maximum capacity $G$ , which contains some previously encountered policies. The process goes as follow: until reaching full capacity, the archive saves a copy of the parameters of every individual in the population after the evaluation step. However, by naively adding all individuals as if the archive were just a heap, the archive could end up filled with policies leading to similar rewards, which would result in a loss of diversity (Mauldin, 1984). We mitigate this issue by keeping track of two fitness clusters (low and high) using the partition formed by running a $k$ -means algorithm on the fitness value. Hence, when $| { \mathcal { G } } | = G$ is reached and a new individual is added to the archive, it randomly replaces an archived policy from its respective cluster. This approach, also known as niching, has proved itself effective at maintaining high diversity levels (Gupta & Ghafir, 2012; Mahfoud, 1995).
|
| 103 |
+
|
| 104 |
+
# 3.2 DISCOVERING NEW POLICIES THROUGH ATTRACTION-REPULSION
|
| 105 |
+
|
| 106 |
+
The crux of this work lies in the explicit search for diversity in the policy space achieved using the AR mechanism. Since the KL between two base policies (i.e. input of the first flow layer) can be trivially maximized by driving their means apart, we apply attraction-repulsion only on the flow layers, while holding the mean of the base policy constant. This ensures that the KL term doesn’t depend on the difference in means and hence controls the magnitude of the AR mechanism. Every time the AR operator is applied (Alg. 1 L20-21), $n$ policies are sampled from the archive and are used for estimating the AR loss (Eq. 1). As in Hong et al. (2018), we consider two possible strategies to dictate the value of $\beta _ { \pi ^ { \prime } }$ coefficients for policies $\pi ^ { \prime } \sim \mathcal { G }$ :
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\begin{array} { l } { \displaystyle \beta _ { \pi ^ { \prime } } = - \biggl [ 2 \biggl ( \frac { f \bigl ( \pi ^ { \prime } \bigr ) - f _ { m i n } } { f _ { m a x } - f _ { m i n } } - 1 \biggr ) \biggr ] } \\ { \displaystyle \beta _ { \pi ^ { \prime } } = 1 - \frac { f \bigl ( \pi ^ { \prime } \bigr ) - f _ { m i n } } { f _ { m a x } - f _ { m i n } } } \end{array}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
where $f ( \pi ) ^ { 3 }$ represents the fitness function of policy $\pi$ (average reward in our case), and $f _ { m i n }$ and $f _ { m a x }$ are estimated based on the $n$ sampled archived policies. The proactive strategy aims to mimic high reward archived policies, while the reactive strategy is more cautious, only repulsing away the current policy from low fitness archived policies. Using this approach, the current agent policy will be attracted to some sampled policies $( \beta _ { \pi ^ { \prime } } < 0 )$ ) and will be repulsed from others $\beta _ { \pi ^ { \prime } } \geq 0 )$ ) in a more or less aggressive way, depending on the strategy.
|
| 113 |
+
|
| 114 |
+
Unlike Hong et al. (2018) who applied proactive and reactive strategies on policies up to 5 timesteps back, we maintain an archive consisting of two clusters seen so far: policies with low and high fitness, respectively. Having this cluster allows to attract/repulse from a set of diverse agents, replacing high-reward policies by policies with similar performance. Indeed, without this process, elements of the archive would collapse on the most frequent policy, from which all agents would attract/repulse. To avoid performing AR against a single "average policy" , we separate low-reward and high-reward agents via clustering.
|
| 115 |
+
|
| 116 |
+
# 4 RELATED WORK
|
| 117 |
+
|
| 118 |
+
The challenges of exploration are well studied in the RL literature. Previously proposed approaches for overcoming hard exploration domains tend to either increase the capacity of the state-action value function (Gal & Ghahramani, 2016; Henderson et al., 2017) or the policy expressivity (Mazoure et al., 2019; Tang & Agrawal, 2018; Touati et al., 2018). This work rather tackles exploration from a diverse multi-agent perspective. Unlike prior population-based approaches for exploration (Conti et al., 2018; Khadka & Tumer, 2018; Pourchot & Sigaud, 2019), which seek diversity through the parameters space, we directly promote diversity in the policy space.
|
| 119 |
+
|
| 120 |
+
The current work was inspired by Hong et al. (2018), who relied on the KL divergence to attract/repulse from a set of previous policies to discover new solutions. However, in their work, the archive is time-based (they restrict themselves to the 5 most recent policies), while our archive is built following a diversity-seeking strategy (i.e., niching and policies come from multiple agents). Notably, ARAC is different of previously discussed works in that it explores the action space in multiple regions simultaneously, a property enforced through the AR mechanism.
|
| 121 |
+
|
| 122 |
+
The proposed approach bears some resemblance with Liu et al. (2017), who took advantage of a multi-agent framework in order to perform repulsion operations among agents using of similarity kernels between parameters of the agents. The AR mechanism gives rise to exploration through structured policy rather than randomized policy. This strategy has also been employed in multi-task learning (Gupta et al., 2018), where experience on previous tasks was used to explore on new tasks.
|
| 123 |
+
|
| 124 |
+
# 5 EXPERIMENTS
|
| 125 |
+
|
| 126 |
+
# 5.1 DIDACTIC EXAMPLE
|
| 127 |
+
|
| 128 |
+
Consider a 2-dimensional multi-armed bandit problem where the actions lie in the real square $[ - 6 , 6 ] ^ { 2 }$ . We illustrate the example of using a proactive strategy where a SAC agent with radial flows policy imitates a desirable (expert) policy while simultaneously repelling from a less desirable policy. The task consists in matching the expert’s policy (blue density) while avoiding taking actions from a repulsive policy $\pi ^ { \prime }$ (red). We illustrate the properties of radial flows in Figure 2 by increasing the number of flows (where 0 flow corresponds to a Gaussian distribution).
|
| 129 |
+
|
| 130 |
+
We observe that increasing the number of flows (bottom to top) leads to more complex policy’s shapes and multimodality unlike the Gaussian policy which has its variance shrinked (the KL divergence is proportional to the ratio of the two variances, hence maximizing it can lead to a reduction in the variance which can be detrimental for exploration purpose). Details are provided in Appendix.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 2: Agent trained to imitate a target while avoiding a repulsive policy using a proactive strategy. Increasing the number of flows leads to more complex policy’s shape.
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 3: Average return and one standard deviation on 5 random seeds across 7 MuJoCo tasks for ARAC against single SAC agents (with and without NFs). Curves are smoothed using Savitzky-Golay filtering with window size of 7.
|
| 137 |
+
|
| 138 |
+
# 5.2 MUJOCO LOCOMOTION BENCHMARKS
|
| 139 |
+
|
| 140 |
+
We now compare ARAC against the CEM-TD3 (Pourchot & Sigaud, 2019), ERL (Khadka & Tumer, 2018) and CERL (Khadka et al., 2019) multi-agent baselines on seven continuous control tasks from the MuJoco suite (Duan et al., 2016): Ant-v2, HalfCheetah-v2, Humanoid-v2, HumanoidStandup-v2, Hopper-v2, Walker2d-v2 and Humanoid (rllab). We also designed a sparse reward environment SparseHumanoid-v2. All algorithms are run over 1M time steps on each environment, except Humanoid (rllab) which gets 2M time steps and SparseHumanoid-v2 on $0 . 6 { \bf M }$ time steps. We also include comparison against single-agent baselines.
|
| 141 |
+
|
| 142 |
+
ARAC performs $R = 1 0$ rollouts for evaluation steps every 10, 000 interaction steps with the environment. We consider a small population of $N = 5$ individuals with $K = 2$ as elites. Every SAC agent has one feedforward hidden layer of 256 units acting as state embedding, followed by a radial flow of length $\in \{ 3 , 4 \}$ . A temperature of $\alpha = 0 . 0 5$ or 0.2 is used across all the environments (See appendix for more details). AR operations are carried out by sampling uniformly $n = 5$ archived policies from $\mathcal { G }$ . Parameters details are provided in the Appendix (Table 4). All networks are trained with Adam optimizer (Kingma & Ba, 2015) using a learning rate of $\mathrm { 3 E ^ { - 4 } }$ . Baselines CEM-TD34, $\mathrm { E R L } ^ { 5 }$ , CERL6 use the code contained in their respective repositories.
|
| 143 |
+
|
| 144 |
+
<table><tr><td></td><td>ARAC</td><td>CEM-TD3</td><td>CERL</td><td>ERL</td><td>SAC-NF</td><td>SAC</td><td>TD3</td></tr><tr><td>Ant</td><td>6044</td><td>4239</td><td>1639</td><td>1442</td><td>4912</td><td>4370</td><td>4372</td></tr><tr><td>HC</td><td>10264</td><td>10659</td><td>5703</td><td>6746</td><td>8429</td><td>11 900</td><td>9543</td></tr><tr><td>Hopper</td><td>3587</td><td>3655</td><td>2970</td><td>1149</td><td>3538</td><td>2794</td><td>3564</td></tr><tr><td>Hu</td><td>5965</td><td>212</td><td>4756</td><td>551</td><td>5506</td><td>5504</td><td>71</td></tr><tr><td>Standup</td><td>175 000</td><td>29 000</td><td>117000</td><td>12 900</td><td>116 000</td><td>149 000</td><td>54000</td></tr><tr><td>Hu (rllab)</td><td>14 230</td><td>1334</td><td>3340</td><td>57</td><td>5531</td><td>1963</td><td>286</td></tr><tr><td>Walker2d</td><td>4704</td><td>4710</td><td>4386</td><td>1107</td><td>5196</td><td>3783</td><td>4682</td></tr><tr><td>Hu (Sparse)</td><td>816</td><td>0</td><td>1.32</td><td>8.65</td><td>547</td><td>88</td><td>0</td></tr></table>
|
| 145 |
+
|
| 146 |
+
Table 1: Maximum average return after 1M (2M for Humanoid (rllab) and 600k for SparseHumanoid-v2) time steps 5 random seeds. Bold: best methods when the gap is less than 100 units. See appendix for average return with standard deviation. Environment short names: HC: HalfCheetah-v2, Hu: Humanoid-v2, Standup: HumanoidStandup-v2
|
| 147 |
+
|
| 148 |
+
Figure 4 displays the performance of all algorithms on three environments over time steps (see Appendix Figure 7 for all environments). Results are averaged over 5 random seeds. Table 1 reports the best observed reward for each method.
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 4: Average return and one standard deviation on 5 random seeds across 8 MuJoCo tasks. Curves are smoothed using Savitzky-Golay filtering with window size of 7.
|
| 152 |
+
|
| 153 |
+
Small state space environments HalfCheetah-v2, Hopper-v2, and Walker2d-v2 are low-dimensional state space environments $( d \leq 1 7 )$ . Except for HalfCheetah-v2, the proposed approach shows comparable results with its concurrent. Those results match the findings of (Plappert et al., 2018) that some environments with well-structured dynamics require little exploration. Full learning curves can be found in the Appendix.
|
| 154 |
+
|
| 155 |
+
Deceptive reward and Large state space environments Humanoid-v2, HumanoidStandup-v2 and Humanoid (rllab) belong to bipedal environments with high-dimensional state space $( d = 3 7 6$ and $d = 1 4 7$ ), and are known to trap algorithms into suboptimal solutions. In addition to the legs, the agent also needs to control the arms, which may influence the walking way and hence induce deceptive rewards (Conti et al., 2018). Figure 4 shows the learning curves on MuJoCo tasks. We observe that ARAC beats both baselines in performance as well as in convergence rate.
|
| 156 |
+
|
| 157 |
+
Ant-v2 is another high-dimensional state space environment $\mathit { l } \geq 1 0 0 )$ . In an unstable setup, a naive algorithm implementing an unbalanced fast walk could still generate high reward, the reward taking into account the distance from start, instead of learning to stand, stabilize, and walk (as expected).
|
| 158 |
+
|
| 159 |
+
Sparse reward environment To test ARAC in a sparse reward environment, we created SparseHumanoid-v2. The dynamic is the same as Humanoid-v2 but rewards of $+ 1$ is granted only given is the center of mass of the agent is above a threshold (set to 0.6 unit in our case). The challenge not only lies in the sparse reward property but also on the complex body dynamic that can make the agent falling down and terminating the episode. As shown in Figure 4, ARAC is the only method that can achieve non zero performance. A comparison against single agent methods in the Appendix also shows better performance for ARAC.
|
| 160 |
+
|
| 161 |
+
Sample efficiency compared with single agent methods Figure 3 (in Appendix) also shows that the sample efficiency of the population-based ARAC compares to a single SAC agent (with and without NFs) and other baselines methods (SAC, TD3). On Humanoid-v2 and Ant-v2 ARAC converges faster, reaching the 6k (4k, respectively) milestone performance after only 1M steps, while a single SAC agent requires 4M (3M, respectively) steps according to (Haarnoja et al., 2018). In general, ARAC achieves competitive results (no flat curves) and makes the most difference (faster convergence and better performance) in the biped environments.
|
| 162 |
+
|
| 163 |
+
Attraction-repulsion ablation study To illustrate the impact of repulsive forces, we introduce a hyperparameter $\lambda$ in the overall loss (Eq. 5):
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
\mathcal { L } _ { \theta , \phi , \lambda } = \mathcal { L } _ { \theta , \phi , \mathrm { S A C } } + \lambda \mathcal { L } _ { \phi , \mathrm { A R } }
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
We ran an ablation analysis on Humanoid-v2 by varying that coefficient. For two random states, we sampled 500 actions from all agents and mapped these actions onto a two-dimensional space (via t-SNE). Appendix Figure 5 shows that without repulsion $\lambda = 0$ ), actions from all agents are entangled, while repulsion $( \lambda > 0$ ) forces agents to behave differently and hence explore different regions of the action space.
|
| 170 |
+
|
| 171 |
+
The second ablation study is dedicated to highlight the differences between a Gaussian policy (similar to Hong et al. (2018) and an NF policy under AR operators. As one can observe in Figure 6, using a Gaussian policy deteriorates the solution as the repulsive KL term drives apart the means of agents and blows up/ shrinks the variance of the Gaussian policy. On the other hand, applying the AR term on the NF layers maximizes the KL conditioned on the mean and variance of both base policies, resulting in a solution which allows sufficient exploration. More details are provided in the Appendix.
|
| 172 |
+
|
| 173 |
+
Finally, through a toy example subject to AR, we characterize the policy’s shape when increasing the number of the radial flow policy in Figure 2 (experimental setup in Appendix). Unlike the diagonal Gaussian policy (SAC) that has symmetry constraints, increasing the number of flows allows the radial policy to adopt more complex shapes (from bottom to top).
|
| 174 |
+
|
| 175 |
+
# 6 CONCLUSION
|
| 176 |
+
|
| 177 |
+
In this paper, we addressed the issue of RL domains with deceptive rewards by introducing a population-based search model for optimal policies using attraction-repulsion operators. Our method relies on powerful density estimators (normalizing flows), to let policies exploit the reward landscape under AR constraints. Our ablation studies showed that (1) the strength of AR and (2) the number of flows are the two factors which predominantly affect the shape of the policy. Selecting the correct AR coefficient is therefore important to obtain good performance, while at the same time preventing premature convergence.
|
| 178 |
+
|
| 179 |
+
Empirical results on the MuJoCo suite demonstrate high performance of the proposed method in most settings, including with sparse rewards. Moreover, in biped environments that are known to trap algorithms into suboptimal solutions, ARAC enjoys higher sample efficiency and better performance compared to its competitors which confirms our intuitions on using AR with normalizing flows. As future steps, borrowing from multi-objective optimization literature methods could allow one to combine other diversity metrics with the performance objective, to in turn improve the coverage of the solution space among the individuals by working with the corresponding Pareto front (Horn et al., 1994).
|
| 180 |
+
|
| 181 |
+
# REFERENCES
|
| 182 |
+
|
| 183 |
+
Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47: 253–279, 2013.
|
| 184 |
+
|
| 185 |
+
Richard Bellman. A markovian decision process. Journal of Mathematics and Mechanics, pp. 679–684, 1957.
|
| 186 |
+
|
| 187 |
+
Edoardo Conti, Vashisht Madhavan, Felipe Petroski Such, Joel Lehman, Kenneth Stanley, and Jeff Clune. Improving exploration in evolution strategies for deep reinforcement learning via a population of novelty-seeking agents. In Advances in Neural Information Processing Systems (NeurIPS), pp. 5027–5038, 2018.
|
| 188 |
+
|
| 189 |
+
Thang Doan, Bogdan Mazoure, and Clare Lyle. Gan q-learning. arXiv preprint arXiv:1805.04874, 2018.
|
| 190 |
+
|
| 191 |
+
Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. In International Conference on Machine Learning (ICML), pp. 1329–1338, 2016.
|
| 192 |
+
|
| 193 |
+
Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In International conference on machine learning (ICML), pp. 1050– 1059, 2016.
|
| 194 |
+
|
| 195 |
+
Abhishek Gupta, Russell Mendonca, YuXuan Liu, Pieter Abbeel, and Sergey Levine. Metareinforcement learning of structured exploration strategies. In Advances in Neural Information Processing Systems (NeurIPS), pp. 5302–5311, 2018.
|
| 196 |
+
|
| 197 |
+
Deepti Gupta and Shabina Ghafir. An overview of methods maintaining diversity in genetic algorithms. International journal of emerging technology and advanced engineering, 2(5):56–60, 2012.
|
| 198 |
+
|
| 199 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft Actor-Critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning (ICML), pp. 1856–1865, 2018.
|
| 200 |
+
|
| 201 |
+
Peter Henderson, Thang Doan, Riashat Islam, and David Meger. Bayesian policy gradients via alpha divergence dropout inference. NIPS Bayesian Deep Learning Workshop, 2017.
|
| 202 |
+
|
| 203 |
+
Zhang-Wei Hong, Tzu-Yun Shann, Shih-Yang Su, Yi-Hsiang Chang, Tsu-Jui Fu, and Chun-Yi Lee. Diversity-driven exploration strategy for deep reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), pp. 10489–10500, 2018.
|
| 204 |
+
|
| 205 |
+
Jeffrey Horn, Nicholas Nafpliotis, and David E. Goldberg. A niched pareto genetic algorithm for multiobjective optimization. In Proceedings of the 1st IEEE Conference on Evolutionary Computation, IEEE World Congress on Computational Intelligence, pp. 82–87, 1994.
|
| 206 |
+
|
| 207 |
+
Shauharda Khadka and Kagan Tumer. Evolution-guided policy gradient in reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), pp. 1188–1200, 2018.
|
| 208 |
+
|
| 209 |
+
Shauharda Khadka, Somdeb Majumdar, Tarek Nassar, Zach Dwiel, Evren Tumer, Santiago Miret, Yinyin Liu, and Kagan Tumer. Collaborative evolutionary reinforcement learning. CoRR, abs/1905.00976, 2019. URL http://arxiv.org/abs/1905.00976.
|
| 210 |
+
|
| 211 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
|
| 212 |
+
|
| 213 |
+
Kyowoon Lee, Sol-A Kim, Jaesik Choi, and Seong-Whan Lee. Deep reinforcement learning in continuous action spaces: a case study in the game of simulated curling. In International Conference on Machine Learning, pp. 2943–2952, 2018.
|
| 214 |
+
|
| 215 |
+
Yang Liu, Prajit Ramachandran, Qiang Liu, and Jian Peng. Stein variational policy gradient. In Conference on Uncertainty in Artificla Intelligence (UAI), 2017.
|
| 216 |
+
|
| 217 |
+
Samir W Mahfoud. Niching methods for genetic algorithms. PhD thesis, University of Illinois at Urbana-Champaign Champaign, USA, 1995.
|
| 218 |
+
|
| 219 |
+
Michael L Mauldin. Maintaining diversity in genetic search. In AAAI Conference on Artificial Intelligence (AAAI), pp. 247–250, 1984.
|
| 220 |
+
|
| 221 |
+
Bogdan Mazoure, Thang Doan, Audrey Durand, R Devon Hjelm, and Joelle Pineau. Leveraging exploration in off-policy algorithms via normalizing flows. Proceedings of the 3rd Conference on Robot Learning (CoRL 2019), 2019.
|
| 222 |
+
|
| 223 |
+
Joelle Pineau. The machine learning reproducibility checklist. 2018.
|
| 224 |
+
|
| 225 |
+
Matthias Plappert, Rein Houthooft, Prafulla Dhariwal, Szymon Sidor, Richard Y Chen, Xi Chen, Tamim Asfour, Pieter Abbeel, and Marcin Andrychowicz. Parameter space noise for exploration. arXiv preprint arXiv:1706.01905, 2017.
|
| 226 |
+
|
| 227 |
+
Matthias Plappert, Rein Houthooft, Prafulla Dhariwal, Szymon Sidor, Richard Y. Chen, Xi Chen, Tamim Asfour, Pieter Abbeel, and Marcin Andrychowicz. Parameter space noise for exploration. In International Conference on Learning Representations (ICLR), 2018.
|
| 228 |
+
|
| 229 |
+
Aloïs Pourchot and Olivier Sigaud. CEM-RL: Combining evolutionary and gradient-based methods for policy search. In International Conference on Learning Representations (ICLR), 2019.
|
| 230 |
+
|
| 231 |
+
Martin L Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014.
|
| 232 |
+
|
| 233 |
+
Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International Conference on Machine Learning (ICML), pp. 1530–1538, 2015.
|
| 234 |
+
|
| 235 |
+
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning (ICML), pp. 1889–1897, 2015.
|
| 236 |
+
|
| 237 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint: 1707.06347, 2017.
|
| 238 |
+
|
| 239 |
+
Haoran Tang, Rein Houthooft, Davis Foote, Adam Stooke, OpenAI Xi Chen, Yan Duan, John Schulman, Filip DeTurck, and Pieter Abbeel. # Exploration: A study of count-based exploration for deep reinforcement learning. In Advances in neural information processing systems (NeurIPS), pp. 2753–2762, 2017.
|
| 240 |
+
|
| 241 |
+
Yunhao Tang and Shipra Agrawal. Boosting trust region policy optimization by normalizing flows policy. arXiv preprint: 1809.10326, 2018.
|
| 242 |
+
|
| 243 |
+
Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 5026–5033. IEEE, 2012.
|
| 244 |
+
|
| 245 |
+
Ahmed Touati, Harsh Satija, Joshua Romoff, Joelle Pineau, and Pascal Vincent. Randomized value functions via multiplicative normalizing flows. arXiv preprint: 1806.02315, 2018.
|
| 246 |
+
|
| 247 |
+
Brian D Ziebart. Modeling purposeful adaptive behavior with the principle of maximum causal entropy. PhD thesis, figshare, 2010.
|
| 248 |
+
|
| 249 |
+
# APPENDIX
|
| 250 |
+
|
| 251 |
+
REPRODUCIBILITY CHECKLIST
|
| 252 |
+
|
| 253 |
+
We follow the reproducibility checklist (Pineau, 2018) and point to relevant sections explaining them here.
|
| 254 |
+
|
| 255 |
+
For all algorithms presented, check if you include:
|
| 256 |
+
|
| 257 |
+
• A clear description of the algorithm, see main paper and included codebase. The proposed approach is completely described by Alg. 1 (main paper), 2 (Appendix), and 3 (Appendix). The proposed population-based method uses attraction-repulsion operators in order to enforce a better policy space coverage by different agents. An analysis of the complexity (time, space, sample size) of the algorithm. See Appendix Figure 7 and 3. Experimentally, we demonstrate improvement in sample complexity as discussed in our main paper. In term of computation time, the proposed method scales linearly with the population size if agents are evaluated sequentially (as presented in Alg. 1 for clarity). However, this as mentioned in the paper, can be parallelized. All our results are obtained using $M$ small network architectures with $1 \times 2 5 6$ -units hidden layer followed by $f$ layers of $| A | + 2$ units each $f$ being the number of radial flows and $| A |$ being the action space dimension). A link to a downloadable source code, including all dependencies. The code is included with the Appendix as a zip file; all dependencies can be installed using Python’s package manager. Upon publication, the code would be available on Github.
|
| 258 |
+
|
| 259 |
+
For all figures and tables that present empirical results, check if you include:
|
| 260 |
+
|
| 261 |
+
• A complete description of the data collection process, including sample size. We use standard benchmarks provided in OpenAI Gym (Brockman et al., 2016).
|
| 262 |
+
• A link to downloadable version of the dataset or simulation environment. See: https://github.com/
|
| 263 |
+
• An explanation of how samples were allocated for training / validation / testing. We do not use a training-validation-test split, but instead report the mean performance (and one standard deviation) of the policy at evaluation time, openai/gym for OpenAI Gym benchmarks and https://www.roboti.us/index.html for MuJoCo suite. obtained with 5 random seeds. An explanation of any data that were excluded. We did not compare on easy environments (e.g. Reacher-v2) because all existing methods perform well on them. In that case, the improvement of our method upon baselines is incremental and not worth mentioning.
|
| 264 |
+
• The exact number of evaluation runs. 5 seeds for MuJoCo experiments, 1M, 2M or 3M environment steps depending on the domain.
|
| 265 |
+
• A description of how experiments were run. See Section 5 in the main paper and didactic example details in Appendix. A clear definition of the specific measure or statistics used to report results. Undiscounted returns across the whole episode are reported, and in turn averaged across 5 seeds. Clearly defined error bars. Confidence intervals and table values are always mean± 1 standard deviation over 5 seeds.
|
| 266 |
+
• A description of results with central tendency (e.g. mean) and variation (e.g. stddev). All results use the mean and standard deviation.
|
| 267 |
+
• A description of the computing infrastructure used. All runs used 1 CPU for all experiments (toy and MuJoCo) with 8Gb of memory.
|
| 268 |
+
|
| 269 |
+

|
| 270 |
+
Figure 5: Mapping in two-dimension space (t-SNE) of agents’ actions for two arbitrary states. Each color represents a different agent.
|
| 271 |
+
|
| 272 |
+
To illustrate the impact of the repulsive force coefficient $\lambda$ , we ran an ablation analysis by varying that coefficient (recall that the overall loss function is $\mathcal { L } _ { \pi } = \mathcal { L } _ { \pi , \mathrm { S A C } } + \lambda \mathcal { L } _ { \mathrm { A R } }$ where $\lambda = 1$ in our experiment).
|
| 273 |
+
|
| 274 |
+
For two random states, we sampled 500 actions from all agents and mapped theses actions in a common 2-dimensional space (t-SNE).
|
| 275 |
+
|
| 276 |
+
As shown in the Figure above, policies trained without AR $\lambda = 0$ ) result in entangled actions, while increasing the repulsive coefficient $\lambda$ forces agents to have different actions and hence explore different regions of the policy space. Note that due to the specific nature of t-SNE , the policies are shown as Gaussians in a lower-dimensional embedding, while it is not necessarily the case in the true space.
|
| 277 |
+
|
| 278 |
+
# STABILIZING ATTRACTION-REPULSION WITH NORMALIZING FLOW
|
| 279 |
+
|
| 280 |
+
In this section, we illustrate the consequence of the AR operators with a Gaussian policy (as in Hong et al. (2018)) and our Normalizing flow policy for Ant-v2, Humanoid-v2 and HalfCheetah-v2. As shown in the figure below, AR with Gaussian policies yield worse results. One reason is that the KL term drives apart the mean and variance of the Gaussian policy which deteriorates the main objective of maximizing the reward. On the other side, our method applies the AR only on the NF layers allows enough exploration by deviating sufficiently from the main objective function.
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 6: Comparison of ARAC agents using (1) AR with radial flows, (2) AR with only the base (Gaussian) policy and (3) no AR with radial flows.
|
| 284 |
+
|
| 285 |
+
# COMPARING ARAC AGAINST BASELINES ON MUJOCO TASKS
|
| 286 |
+
|
| 287 |
+
Figure 7 shows the performance of ARAC and baselines (CEM-TD3, CERL and ERL) over time steps. Learning curves are averaged over 5 random seeds and displayed with one standard deviation. Evaluation is done every 10, 000 environment steps using 10 rollouts per agent. Overall, ARAC has reasonable performance on all tasks (no flat curves) and demonstrates high performance, especially in humanoid tasks.
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
Figure 7: Average return and one standard deviation on 5 random seeds across 7 MuJoCo tasks for ARAC against baselines. Curves are smoothed using Savitzky-Golay filtering with window size of 7.
|
| 291 |
+
|
| 292 |
+
BENEFITS OF POPULATION-BASED STRATEGIES: ARAC AGAINST SINGLE AGENTS
|
| 293 |
+
|
| 294 |
+
In this section, we highlight the benefits of the proposed population-based strategy by comparing with single agents. Figure 3 shows the performance of ARAC against a single SAC agent (with and without normalizing flows). Learning curves are averaged over 5 random seeds and displayed with one standard deviation. Evaluation is done every 10, 000 environment steps using 10 rollouts per agent. We observe a high beneficial impact on the convergence rate as well as on the performance. ARAC outperforms single agents in almost all tasks (except for HalfCheetah-v2 and Walker-v2) with large improvement. Note the high sample efficiency on humanoid environments (Humanoid-v2 and Humanoid (rllab)), where it shows faster convergence in addition to better performance. Indeed, on Humanoid (rllab) a single SAC agent reaches the 4k milestone after 4M steps (Haarnoja et al., 2018) while ARAC achieves this performance in less than 2M steps. Also, in SparseHumanoid-v2, due to its better coordinated exploration, ARAC could find a good solution faster than SAC-NF.
|
| 295 |
+
|
| 296 |
+
OVERALL PERFORMANCES ON MUJOCO TASKS
|
| 297 |
+
|
| 298 |
+
<table><tr><td rowspan="2">Ant-v2</td><td rowspan="2">ARAC 6,044 ± 216</td><td rowspan="2">CEM-TD3 4,239 ± 1,048</td><td rowspan="2">CERL</td><td rowspan="2">ERL</td><td rowspan="2">SAC - NF</td><td rowspan="2">SAC</td><td rowspan="2">TD3 4,372 ± 900</td></tr><tr><td>1,639± 564 1,442±819</td></tr><tr><td>HalfCheetah-v2</td><td>10,264± 271</td><td>10,659 ± 1,473</td><td>5,703 ± 831</td><td>6,746± 295</td><td>4,912 ± 954 8,429 ±818</td><td>4,370 ± 173 11,896 ± 574</td><td>9,543 ± 978</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Hopper-v2</td><td>3,587 ± 65</td><td>3,655 ± 82</td><td>2,970 ± 341</td><td>1,149 ±3</td><td>3,538 ± 108</td><td>2,794 ± 729</td><td>3,564 ± 114</td></tr><tr><td>Humanoid-v2 HumanoidStandup-v2</td><td>5,965 ± 51 175k±38k</td><td>212±1</td><td>4,756± 454</td><td>551± 60</td><td>5,506± 147</td><td>5,504± 116</td><td>71±10</td></tr><tr><td>Humanoid (rllab)</td><td>14,234 ± 7251</td><td>29k±4k 1,334 ± 551</td><td>117k ± 8k</td><td>129k ± 4k</td><td>116k ± 9k</td><td>149k ±7k</td><td>54k ± 24k</td></tr><tr><td>Walker2d-v2</td><td>4,704 ± 261</td><td>4,710 ± 320</td><td>3,340 ± 3,340 4,3860 ± 615</td><td>57±17 1,107 ± 60</td><td>5,531 ± 4,435</td><td>1,963 ± 1,384</td><td>286 ± 151 4,682 ± 539</td></tr><tr><td>SparseHumanoid-v2</td><td>816 ± 20</td><td>0±0</td><td>1.32 ± 2.64</td><td>8.65 ± 15.90</td><td>5,196 ± 527 547 ± 268</td><td>3,783 ± 366 88±159</td><td>0±0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 299 |
+
|
| 300 |
+
Table 2: Maximum average return after 1M (2M for Humanoid (rllab) and 600k for SparseHumanoid-v2) time steps $\pm$ one standard deviation on 5 random seeds. Bold: best methods when the gap is less than 100 units.
|
| 301 |
+
|
| 302 |
+
<table><tr><td></td><td>ARAC</td><td>TRPO</td><td>PPO</td><td>Trust-PCL</td><td>Plappert et al. (2017)</td><td>Touati et al. (2018)</td><td>Hong et al. (2018)</td></tr><tr><td>HalfCheetah-v2</td><td>10,264</td><td>-15</td><td>2,600</td><td>2,200</td><td>5,000</td><td>7,700</td><td>4,200</td></tr><tr><td>Walker-v2</td><td>4,764</td><td>2,400</td><td>4,050</td><td>400</td><td>850</td><td>500</td><td>N/A</td></tr><tr><td>Hopper-v2</td><td>3,588</td><td>600</td><td>3,150</td><td>280</td><td>2,500</td><td>400</td><td>N/A</td></tr><tr><td>Ant-v2</td><td>6,044</td><td>-76</td><td>1,000</td><td>1,500</td><td>N/A</td><td>N/A</td><td>N/A</td></tr><tr><td>Humanoid-v2</td><td>5,939</td><td>400</td><td>400</td><td>N/A</td><td>N/A</td><td>N/A</td><td>1,250</td></tr><tr><td>HumanoidStandup-v2</td><td>163,884</td><td>80,000</td><td>N/A</td><td>N/A</td><td>N/A</td><td>N/A</td><td>N/A</td></tr><tr><td>Humanoid (rllab)</td><td>4,117</td><td>23</td><td>200</td><td>N/A</td><td>N/A</td><td>N/A</td><td>N/A</td></tr></table>
|
| 303 |
+
|
| 304 |
+
Table 3: Performance after 1M (except for rllab which is 2M) timesteps on 5 seeds. Values taken from their corresponding papers. N/A means the values were not available in the original paper.
|
| 305 |
+
|
| 306 |
+
# EXPERIMENTAL PARAMETERS
|
| 307 |
+
|
| 308 |
+
Table 4 provides the hyperparameters of ARAC used to obtain results in the MuJoCo domains. The noise input for normalizing flows in SAC policies (see Sec. 2.3) is sampled from $\mathcal { N } ( 0 , \sigma )$ , where the variance $\sigma$ is a function of the state (either fixed at a given value or learned).
|
| 309 |
+
|
| 310 |
+
Table 4: ARAC parameters.
|
| 311 |
+
|
| 312 |
+
<table><tr><td colspan="7">ARAC parameters</td></tr><tr><td></td><td>#flows</td><td>0</td><td>G</td><td>p</td><td>alpha</td><td>strategy</td></tr><tr><td>Ant-v2</td><td>3</td><td>0.2</td><td>10</td><td>1</td><td>0.2</td><td>proactive</td></tr><tr><td>HalfCheetah-v2</td><td>4</td><td>0.4</td><td>20</td><td></td><td>0.2</td><td>proactive</td></tr><tr><td>Hopper-v2</td><td>4</td><td>0.8</td><td>20</td><td></td><td>0.05</td><td>proactive</td></tr><tr><td>Walker2d-v2</td><td>4</td><td>0.6</td><td>10</td><td></td><td>0.05</td><td>proactive</td></tr><tr><td>Humanoid-v2</td><td>3</td><td>0.6</td><td>10</td><td></td><td>0.05</td><td>reactive</td></tr><tr><td>HumanoidStandup-v2</td><td>3</td><td>0</td><td>20</td><td></td><td>0.2</td><td>reactive</td></tr><tr><td>Humanoid (rllab)</td><td>3</td><td>9</td><td>10</td><td></td><td>0.05</td><td>proactive</td></tr><tr><td>SparseHumanoid-v2</td><td>2</td><td>0.6</td><td>20</td><td>2131111</td><td>0.2</td><td>proactive</td></tr><tr><td colspan="7">Adam Optimizer parameters</td></tr><tr><td>αq</td><td colspan="7">3.10-4</td></tr><tr><td>αw</td><td colspan="7">3.10-4</td></tr><tr><td>α</td><td colspan="7">3.10-4</td></tr><tr><td>a</td><td colspan="7">3.10-4</td></tr><tr><td colspan="3">Algorithmparameters</td><td colspan="4"></td></tr><tr><td>Batch size m</td><td colspan="7">256</td></tr><tr><td colspan="2">Buffer size B</td><td colspan="7">106</td></tr><tr><td colspan="2">Archive sample size n</td><td colspan="7">5</td></tr></table>
|
| 313 |
+
|
| 314 |
+
# IMPACT OF NUMBER OF FLOWS ON THE POLICY SHAPE
|
| 315 |
+
|
| 316 |
+
We used a single SAC agent with different radial flows numbers and randomly initialized weights, starting with actions centered at $( 0 , 0 )$ . All flow parameters are $\ell _ { 1 }$ regularized with hyperparameter 2. The agent is trained with the classical evidence lower bound (ELBO) objective augmented with the AR loss (Eq. 1), where the coefficient of the repulsive policy $\pi ^ { \prime }$ is given by $\begin{array} { r } { \beta _ { t } \stackrel { \smile } { = } \frac { 1 0 } { t + 1 } } \end{array}$ . Fig. 8 shows how both the NF and learned variance Gaussian policies manage to recover the target policy. We see that NF takes advantage of its flexible parametrization to adjust its density and can show asymmetric properties unlike the Gaussian distribution. This indeed can have advantage in some non symmetric environment where the Gaussian policy would be trapped into a suboptimal behavior. Finally, increasing the number of flows (from bottom to top) can lead to more complex policy’s shape.
|
| 317 |
+
|
| 318 |
+

|
| 319 |
+
Figure 8: Single state didactic illustration of attraction-repulsion operators. Comparing behavior of NF policy against Gaussian policy with learned variance under a repulsive constraint.
|
| 320 |
+
|
| 321 |
+
# 6.1 VARIANCE OF FITNESS IN THE ARCHIVE
|
| 322 |
+
|
| 323 |
+
Due to the high computation time for behavioral-diversity baselines such as DIYAN, we propose to use the agent’s fitness (i.e. undiscounted returns) as a candidate to repulse/attract from.
|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
Figure ?? shows the variance of the archive across three MuJoCo domains: Ant, Humanoid and HumanoidStandup. As training progresses, the clustering approach allows to maintain a high variance in the archive, preventing mode collapse to a single, "average" fitness.
|
| 327 |
+
|
| 328 |
+
# 6.2 PSEUDO-CODE FOR ARAC
|
| 329 |
+
|
| 330 |
+
# Algorithm 1 ARAC: Attraction-Repulsion Actor-Critic
|
| 331 |
+
|
| 332 |
+
1: Input: population size $M$ ; number of elites $K$ ; maximum archive capacity $G$ ; archive samp
|
| 333 |
+
size $n$ ; number of evaluation rollouts $R$ ; actor coefficient $p$ ; strategy (either proactive or reactiv
|
| 334 |
+
2: Initialize value function network $V _ { \nu }$ and critic network $Q _ { \omega }$
|
| 335 |
+
3: Initialize population of policy networks $\{ \pi _ { \phi , \theta } ^ { m } \} _ { m = 1 } ^ { M }$
|
| 336 |
+
4: Initialize empty archive $\mathcal { G }$ and randomly assign $K$ individuals to top- $K$
|
| 337 |
+
5: total_step $ 0$
|
| 338 |
+
6: while total_step $\leq$ max_step do
|
| 339 |
+
7: step $\gets 0$
|
| 340 |
+
8: for agent $m = 1 \ldots M$ do
|
| 341 |
+
9: $( \_ , \mathsf { s t e p } s ) \gets \mathtt { r o l l o u t } ( \pi ^ { m }$ , with noise, over 1 episode)
|
| 342 |
+
10: $\mathrm { s t e p } \gets \mathrm { s t e p } + s$ Collect samples
|
| 343 |
+
11: total_step total_step + s
|
| 344 |
+
12: end for
|
| 345 |
+
13: $C = { \mathsf { s t e p } } / { K }$
|
| 346 |
+
14: for policy $\pi ^ { e }$ in top- $K$ do
|
| 347 |
+
15: Update critic with $\pi ^ { e }$ for $C$ mini-batches (Eq. 3) Update critic
|
| 348 |
+
16: Update value function (Eq. 4)
|
| 349 |
+
17: end for
|
| 350 |
+
18: for agent $m = 1 \ldots M$ do
|
| 351 |
+
19: if policy $\pi ^ { m }$ is in top- $K$ then
|
| 352 |
+
20: Sample $n$ archived policies uniformly from $\mathcal { G }$
|
| 353 |
+
21: Update actor $\pi ^ { m }$ for ${ \frac { \mathrm { s t e p } } { M } } \cdot p$ mini-batches (Eq. 5 and 8 or 9) Update actors
|
| 354 |
+
22: else
|
| 355 |
+
23: Update actor $\pi ^ { m }$ for ${ \frac { \mathrm { s t e p } } { M } } \cdot p$ mini-batches (Eq. 2)
|
| 356 |
+
24: end if
|
| 357 |
+
25: end for
|
| 358 |
+
26: for agent $m = 1 \ldots M$ do
|
| 359 |
+
27: $( \mathrm { F i t n e s s } _ { m } , \ l _ { - } ) \gets \mathtt { r o l l o u t } ( \pi ^ { m } ,$ , without noise, over $R$ episodes) Evaluate actors
|
| 360 |
+
28: end for
|
| 361 |
+
29: Rank population $\{ \pi _ { \phi , \theta } ^ { m } \} _ { m = 1 } ^ { M }$ and identify top- $K$
|
| 362 |
+
30: update_archiv $\mathsf { a } ( \mathcal { G } , \{ \pi _ { \phi , \theta } ^ { m } \} _ { m = 1 } ^ { M } , G )$
|
| 363 |
+
31: end while
|
| 364 |
+
|
| 365 |
+
# COMPLEMENTARY PSEUDO-CODE FOR ARAC
|
| 366 |
+
|
| 367 |
+
Algorithms 2 and 3 respectively provide the pseudo-code of functions rollout and update_archive used in Algorithm 1.
|
| 368 |
+
|
| 369 |
+
# Algorithm 2 rollout
|
| 370 |
+
|
| 371 |
+
Input: actor $\pi$ ; noise status; number of episodes $E$ ; replay buffer $\boldsymbol { B }$ ;
|
| 372 |
+
Fitness $ 0$
|
| 373 |
+
for episode $= 1 , \ldots , E$ do $\mathbf { s } \gets$ Initial state ${ \bf s } _ { 0 }$ from the environment for step $t = 0 \dots$ termination do if with noise then Sample noise $z$ else Set $z \gets 0$ end if $\mathbf { a } _ { t } \sim \pi ( . | \mathbf { s } _ { t } , z )$ Observe $\mathbf { s } _ { t + 1 } \sim P ( \cdot | \mathbf { s } _ { t } , \mathbf { a } _ { t } )$ and obtain reward $r _ { t }$ Fitness $\gets$ Fitness + rt Store transition $( \mathbf { s } _ { t } , \mathbf { a } _ { t } , r _ { t } , \mathbf { s } _ { t + 1 } )$ in $\boldsymbol { B }$ end for
|
| 374 |
+
end for
|
| 375 |
+
Fitness Fitness/ $E$
|
| 376 |
+
return Average fitness per episode and number of steps performed
|
| 377 |
+
Input: archive $\mathcal { G }$ ; population of size $M$ ; maximal archive capacity $G$ .
|
| 378 |
+
if $| { \mathcal { G } } | < G$ then Add all agents of current population to $\mathcal { G }$
|
| 379 |
+
else $c _ { 1 } , c _ { 2 } \gets 2$ -means(fitness of individuals in $\mathcal { G }$ ) for agent $m = 1 , \ldots , M$ do Assign agent $m$ to closest cluster $c \in \{ c _ { 1 } , c _ { 2 } \}$ based on its fitness Sample an archived agent $j \sim \mathrm { U n i f o r m } ( c )$ Replace archived individual $j$ by $m$ end for
|
| 380 |
+
end if
|
| 381 |
+
return Updated archive $\mathcal { G }$
|
| 382 |
+
|
| 383 |
+
<table><tr><td>Algorithm archive</td></tr></table>
|
parse/train/BJlAzTEKwS/BJlAzTEKwS_content_list.json
ADDED
|
@@ -0,0 +1,1823 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ATTRACTION-REPULSION ACTOR-CRITIC FOR CONTINUOUS CONTROL REINFORCEMENT LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
826,
|
| 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 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "In reinforcement learning, robotic control tasks are often useful for understanding how agents perform in environments with deceptive rewards where the agent can easily become trapped into suboptimal solutions. One way to avoid these local optima is to use a population of agents to ensure coverage of the policy space (a form of exploration), yet learning a population with the “best” coverage is still an open problem. In this work, we present a novel approach to population-based RL in continuous control that leverages properties of normalizing flows to perform attractive and repulsive operations between current members of the population and previously observed policies. Empirical results on the MuJoCo suite demonstrate a high performance gain for our algorithm compared to prior work, including Soft-Actor Critic (SAC). ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
270,
|
| 43 |
+
766,
|
| 44 |
+
422
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
458,
|
| 55 |
+
336,
|
| 56 |
+
474
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Many important reinforcement learning (RL) tasks, such as those in robotics and self-driving cars, are challenging due to large action and state spaces (Lee et al., 2018). In particular, environments with large continuous action spaces are prone to deceptive rewards, i.e. fall into local optima in learning (Conti et al., 2018). Applying traditional policy optimization algorithms to these domains often leads to locally optimal, yet globally sub-optimal policies. The agent should then explore the reward landscape more thoroughly in order to avoid falling into these local optima. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
492,
|
| 66 |
+
825,
|
| 67 |
+
577
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Not all RL domains that require exploration are suitable for understanding how to train agents that are robust to deceptive rewards. For example, Montezuma’s Revenge, a game in the Atari Learning Environment (Bellemare et al., 2013), has sparse rewards; algorithms that perform the best on this task encourage exploration by providing a denser intrinsic reward to the agent to encourage exploration (Tang et al., 2017). On the other hand, many robotic control problems, such as those found in MuJoCo (Todorov et al., 2012), provide the agent with a dense reward signal, yet their high-dimensional action spaces induce a multimodal, often deceptive, reward landscape. For example, in the biped environments, coordinating both arms and legs is crucial for performing well on even simple tasks such as forward motion. However, simply learning to maximize the reward can be detrimental across training: agents will tend to run and fall further away from the start point rather than discovering stable and efficient walking motion. In this setting, exploration serves to provide a more reliable learning signal for the agent by covering more different types of actions during learning. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
583,
|
| 77 |
+
825,
|
| 78 |
+
750
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "One way to maximize action space coverage is the maximum entropy RL framework (Ziebart, 2010), which prevents variance collapse by adding a policy entropy auxiliary objective. One such prominent algorithm, Soft Actor-Critic (SAC,Haarnoja et al. (2018)), has been shown to excel in large continuous action spaces. To further improve on exploration properties of SAC, one can maintain a population of agents that cover non-identical sections of the policy space. To prevent premature convergence, a diversity-preserving mechanism is typically put in place; balancing the objective and the diversity term becomes key to converging to a global optimum (Hong et al., 2018). This paper studies a particular family of population-based exploration methods, which conduct coordinated local search in the policy space. Prior work on population-based strategies improves performance on robotic control domains through stochastic perturbation on a single actor’s parameter (Pourchot & Sigaud, 2019) or a set of actor’s parameters (Conti et al., 2018; Khadka & Tumer, 2018; Liu et al., 2017). We hypothesize that exploring directly in the policy space will be more effective than perturbing the parameters of the policy, as the latter does not guarantee diversity (i.e., different neural network parameterizations can approximately represent the same function). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
757,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
171,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Given a population of RL agents, we enforce local exploration using an Attraction-Repulsion (AR) mechanism. The later consists in adding an auxiliary loss to encourage pairwise attraction or repulsion between members of a population, as measured by a divergence term. We make use of the KullbackLeibler (KL) divergence because of its desirable statistical properties and its easiness of computation. However, naively maximizing the KL term between two Gaussian policies can be detrimental (e.g. drives both means apart). Because of this, we parametrize the policy with a general family of distributions called Normalizing Flows (NFs, Rezende & Mohamed, 2015); this modification allows to improve upon $\\mathrm { \\bf A R + }$ Gaussian (see Appendix Figure 6). NFs are shown to improve the expressivity of the policies using invertible mappings while maintaining entropy guarantees (Mazoure et al., 2019; Tang & Agrawal, 2018). Nonlinear density estimators have also been previously used for deep RL problems in contexts of distributional RL (Doan et al., 2018) and reward shaping (Tang et al., 2017). The AR objective blends particularly well with SAC, since computing the KL requires stochastic policies with tractable densities for each agent. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
138,
|
| 110 |
+
826,
|
| 111 |
+
319
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 PRELIMINARIES ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
340,
|
| 122 |
+
339,
|
| 123 |
+
357
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "We first formalize the RL setting in a Markov decision process (MDP). A discrete-time, finite-horizon, MDP (Bellman, 1957; Puterman, 2014) is described by a state space $s$ , an action space $\\mathcal { A }$ , a transition function $\\mathcal { P } : \\mathcal { S } \\times \\mathcal { A } \\times \\mathcal { S } \\mapsto \\mathbb { R } ^ { + }$ , and a reward function $r : S \\times \\mathcal { A } \\mapsto \\mathbb { R }$ .1 On each round $t$ , an agent interacting with this MDP observes the current state $s _ { t } \\in S$ , selects an action $a _ { t } \\in \\mathcal A$ , and observes a reward $r ( s _ { t } , a _ { t } ) \\in \\mathbb { R }$ upon transitioning to a new state $s _ { t + 1 } \\sim \\mathcal { P } ( s _ { t } , a _ { t } )$ . Let $\\gamma \\in [ 0 , 1 ]$ be a discount factor. The goal of an agent evolving in a discounted MDP is to learn a policy $\\Dot { \\pi } : \\Dot { S \\times A } \\mapsto [ 0 , 1 ]$ such as taking action $a _ { t } \\sim \\pi ( \\cdot | s _ { t } )$ would maximize the expected sum of discounted returns, ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
372,
|
| 133 |
+
825,
|
| 134 |
+
472
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "equation",
|
| 140 |
+
"img_path": "images/2394701c30f961480407f719c1c3e2b0e8cd54caabd3407bb1e1ffc8ce2e257d.jpg",
|
| 141 |
+
"text": "$$\nV ^ { \\pi } ( s ) = \\mathbb { E } _ { \\pi } \\bigg [ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } r ( s _ { t } , a _ { t } ) | s _ { 0 } = s \\bigg ] .\n$$",
|
| 142 |
+
"text_format": "latex",
|
| 143 |
+
"bbox": [
|
| 144 |
+
369,
|
| 145 |
+
478,
|
| 146 |
+
627,
|
| 147 |
+
520
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "In the following, we use $\\rho _ { \\pi }$ to denote the trajectory distribution induced by following policy $\\pi$ . If $s$ or $\\mathcal { A }$ are vector spaces, action and space vectors are respectively denoted by a and s. ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
171,
|
| 156 |
+
526,
|
| 157 |
+
823,
|
| 158 |
+
555
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "2.1 DISCOVERING NEW SOLUTIONS THROUGH POPULATION-BASED ATTRACTION-REPULSION ",
|
| 165 |
+
"text_level": 1,
|
| 166 |
+
"bbox": [
|
| 167 |
+
171,
|
| 168 |
+
574,
|
| 169 |
+
821,
|
| 170 |
+
588
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Consider evolving a population of $M$ agents, also called individuals, $\\lbrace \\pi _ { \\theta _ { m } } \\rbrace _ { m = 1 } ^ { M }$ , each agent corresponding to a policy with its own parameters. In order to discover new solutions, we aim to generate agents that can mimic some target policy while following a path different from those of other policies. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
598,
|
| 180 |
+
826,
|
| 181 |
+
642
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "Let $\\mathcal { G }$ denote an archive of policies encountered in previous generations of the population. A natural way of enforcing $\\pi$ to be different from or similar to the policies contained in $\\mathcal { G }$ is by augmenting the loss of the agent with an Attraction-Repulsion (AR) term: ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
648,
|
| 191 |
+
825,
|
| 192 |
+
690
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "equation",
|
| 198 |
+
"img_path": "images/7af757c8ab405b8f1c79612bffc1612b211ea6df9a17755c8defe490526b179c.jpg",
|
| 199 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { A R } } = - \\underset { \\pi ^ { \\prime } \\sim \\mathcal { G } } { \\mathbb { E } } \\big [ \\beta _ { \\pi ^ { \\prime } } \\mathrm { D } _ { \\mathrm { K L } } [ \\pi | | \\pi ^ { \\prime } ] \\big ] , } \\end{array}\n$$",
|
| 200 |
+
"text_format": "latex",
|
| 201 |
+
"bbox": [
|
| 202 |
+
393,
|
| 203 |
+
698,
|
| 204 |
+
602,
|
| 205 |
+
722
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "where $\\pi ^ { \\prime }$ is an archived policy and $\\beta _ { \\pi ^ { \\prime } }$ is a coefficient weighting the relative importance of the Kullback-Leibler (KL) divergence between $\\pi$ and $\\pi ^ { \\prime }$ , which we will choose to be a function of the average reward (see Sec. 3.2 below). Intuitively, Eq. 1 adds to the agent objective a weighted average distance between the current and the archived policies. For $\\beta _ { \\pi ^ { \\prime } } \\geq 0$ , the agent tends to move away from the archived policy’s behavior (i.e. repulsion, see Figure 1) a). On the other hand, $\\beta _ { \\pi ^ { \\prime } } < 0$ encourages the agent $\\pi$ to imitate $\\pi ^ { \\prime }$ (i.e. attraction). ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
729,
|
| 215 |
+
825,
|
| 216 |
+
815
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Requirements for AR In order for agents within a population to be trained using the proposed AR-based loss (Eq. 1), we have the following requirements: ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
171,
|
| 225 |
+
830,
|
| 226 |
+
823,
|
| 227 |
+
859
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "1. Their policies should be stochastic, so that the KL-divergence between two policies is well-defined. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
209,
|
| 236 |
+
871,
|
| 237 |
+
825,
|
| 238 |
+
900
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "2. Their policies should have tractable distributions, so that the KL-divergence can be computed easily, either with closed-form solution or Monte Carlo estimation. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
204,
|
| 247 |
+
103,
|
| 248 |
+
825,
|
| 249 |
+
132
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Several RL algorithms enjoy such properties (Haarnoja et al., 2018; Schulman et al., 2015; 2017). In particular, the soft actor-critic (SAC, Haarnoja et al., 2018) is a straightforward choice, as it currently outperforms other candidates and is off-policy, thus maintains a single critic shared among all agents (instead of one critic per agent), which reduces computation costs. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
173,
|
| 258 |
+
143,
|
| 259 |
+
825,
|
| 260 |
+
200
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "2.2 SOFT ACTOR-CRITIC ",
|
| 267 |
+
"text_level": 1,
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
217,
|
| 271 |
+
357,
|
| 272 |
+
232
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "SAC (Haarnoja et al., 2018) is an off-policy learning algorithm which finds the information projection of the Boltzmann Q-function onto the set of diagonal Gaussian policies $\\Pi$ : ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
171,
|
| 281 |
+
243,
|
| 282 |
+
823,
|
| 283 |
+
272
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "equation",
|
| 289 |
+
"img_path": "images/2f126db3046e7080aa205ca5a5625209e7e4cdaa5b94d5c905d1fab1d2d456a8.jpg",
|
| 290 |
+
"text": "$$\n\\pi = \\underset { \\pi ^ { \\prime } \\in \\Pi } { \\arg \\operatorname* { m i n } } \\mathrm { D } _ { \\mathrm { K L } } \\bigg ( \\pi ^ { \\prime } ( . | \\mathbf { s } _ { t } ) \\bigg | \\bigg | \\frac { \\exp \\big ( \\frac { 1 } { \\alpha } Q ^ { \\pi _ { \\mathrm { o l d } } } \\big ( \\mathbf { s } _ { t } , . \\big ) \\big ) } { Z ^ { \\pi _ { \\mathrm { o l d } } } \\big ( \\mathbf { s } _ { t } \\big ) } \\bigg ) ,\n$$",
|
| 291 |
+
"text_format": "latex",
|
| 292 |
+
"bbox": [
|
| 293 |
+
331,
|
| 294 |
+
279,
|
| 295 |
+
665,
|
| 296 |
+
316
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "where $\\alpha \\in ( 0 , 1 )$ controls the temperature, i.e. the peakedness of the distribution. The policy $\\pi$ , critic $Q$ , and value function $V$ are optimized according to the following loss functions: ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
324,
|
| 306 |
+
825,
|
| 307 |
+
352
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "equation",
|
| 313 |
+
"img_path": "images/5d58c2c8ca0800127c9bb9bb19e622f912ca3ac0272cc1f5482402a6c745458e.jpg",
|
| 314 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\pi , \\mathrm { S A C } } = \\mathbb { E } _ { \\mathbf { s } _ { t } \\sim \\mathcal { B } } [ \\mathbb { E } _ { \\mathbf { a } _ { t } \\sim \\pi } [ \\alpha \\log \\pi ( \\mathbf { a } _ { t } | \\mathbf { s } _ { t } ) - Q ( \\mathbf { s } _ { t } , \\mathbf { a } _ { t } ) ] ] } \\\\ & { \\qquad \\mathcal { L } _ { Q } = \\underset { ( s , a , r , s ^ { \\prime } ) \\sim \\mathcal { B } } { \\mathbb { E } } [ \\{ Q ( s , a ) - ( r + \\gamma V _ { \\nu } ^ { \\pi } ( s ^ { \\prime } ) ) \\} ^ { 2 } ] } \\\\ & { \\qquad \\mathcal { L } _ { V } = \\mathbb { E } _ { \\mathbf { s } _ { t } \\sim \\mathcal { D } } \\bigg [ \\frac { 1 } { 2 } \\big \\{ V _ { \\nu } ^ { \\pi } ( \\mathbf { s } _ { t } ) - \\mathbb { E } _ { \\mathbf { a } _ { t } \\sim \\pi } [ Q ( \\mathbf { s } _ { t } , \\mathbf { a } _ { t } ) - \\alpha \\log \\pi ( \\mathbf { a } _ { t } | \\mathbf { s } _ { t } ) ] \\big \\} ^ { 2 } \\bigg ] , } \\end{array}\n$$",
|
| 315 |
+
"text_format": "latex",
|
| 316 |
+
"bbox": [
|
| 317 |
+
264,
|
| 318 |
+
358,
|
| 319 |
+
733,
|
| 320 |
+
443
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "where $\\boldsymbol { B }$ is the replay buffer. The policy used in SAC as introduced in Haarnoja et al. (2018) is Gaussian, which is both stochastic and tractable, thus compatible with our AR loss function in Eq. 1. Together with the AR loss in Eq. 1, the final policy loss becomes: ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
176,
|
| 329 |
+
446,
|
| 330 |
+
826,
|
| 331 |
+
489
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "equation",
|
| 337 |
+
"img_path": "images/963a0767e1202559f840210ad31010f34ea07345530e65569ae7e34e868801c9.jpg",
|
| 338 |
+
"text": "$$\n\\mathcal { L } _ { \\pi } = \\mathcal { L } _ { \\pi , \\mathrm { S A C } } + \\mathcal { L } _ { \\mathrm { A R } }\n$$",
|
| 339 |
+
"text_format": "latex",
|
| 340 |
+
"bbox": [
|
| 341 |
+
429,
|
| 342 |
+
497,
|
| 343 |
+
568,
|
| 344 |
+
513
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "However, Gaussian policies are arguably of limited expressibility; we can improve on the family of policy distributions without sacrificing qualities necessary for AR or SAC by using Normalizing Flows (NFs, Rezende & Mohamed, 2015). ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
176,
|
| 353 |
+
529,
|
| 354 |
+
825,
|
| 355 |
+
571
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "2.3 NORMALIZING FLOWS ",
|
| 362 |
+
"text_level": 1,
|
| 363 |
+
"bbox": [
|
| 364 |
+
176,
|
| 365 |
+
588,
|
| 366 |
+
369,
|
| 367 |
+
603
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 2
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "NFs (Rezende & Mohamed, 2015) were introduced as a means of transforming simple distributions into more complex distributions using learnable and invertible functions. Given a random variable $\\mathbf { z } _ { 0 }$ sequence of with density $q _ { 0 }$ $d$ 0-dimensional random variables, , they define a set of differentiable and invertible functions, $\\{ { \\mathbf { z } } _ { i } \\} _ { i = 1 } ^ { N }$ . $\\{ f _ { i } \\} _ { i = 1 } ^ { N }$ , which generate a ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
173,
|
| 376 |
+
614,
|
| 377 |
+
825,
|
| 378 |
+
674
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 2
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "Because SAC uses explicit, yet simple parametric policies, NFs can be used to transform the SAC policy into a richer one (e.g., multimodal) without risk loss of information. For example, Mazoure et al. (2019) enhanced SAC using a family of radial contractions around a point $\\mathbf { z } _ { 0 } \\in \\bar { \\mathbb { R } } ^ { d }$ , ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
174,
|
| 387 |
+
679,
|
| 388 |
+
825,
|
| 389 |
+
722
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 2
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "equation",
|
| 395 |
+
"img_path": "images/78f2d2023950a3fe8d9701cea3fc796fb41b571029efcfd053ead74ff8577ae1.jpg",
|
| 396 |
+
"text": "$$\nf ( \\mathbf { z } ) = \\mathbf { z } + { \\frac { \\beta } { \\alpha + | | \\mathbf { z } - \\mathbf { z } _ { 0 } | | _ { 2 } } } ( \\mathbf { z } - \\mathbf { z } _ { 0 } )\n$$",
|
| 397 |
+
"text_format": "latex",
|
| 398 |
+
"bbox": [
|
| 399 |
+
377,
|
| 400 |
+
728,
|
| 401 |
+
622,
|
| 402 |
+
762
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 2
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "for $\\alpha \\in \\mathbb { R } ^ { + }$ and $\\beta \\in \\mathbb { R }$ . This results in a rich set of policies comprised of an initial noise sample ${ \\bf a } _ { 0 }$ , a state-noise embedding $h _ { \\theta } ( \\mathbf { a } _ { 0 } , \\mathbf { s } _ { t } )$ , and a flow $\\{ \\dot { f } _ { \\phi _ { i } } \\} _ { i = 1 } ^ { N }$ of arbitrary length $N$ , parameterized by $\\phi = \\{ \\phi _ { i } \\} _ { i = 1 } ^ { N }$ . Sampling from the policy $\\pi _ { \\phi , \\theta } ( \\mathbf { a } _ { t } | \\mathbf { s } _ { t } )$ can be described by the following set of equations: ",
|
| 409 |
+
"bbox": [
|
| 410 |
+
173,
|
| 411 |
+
768,
|
| 412 |
+
825,
|
| 413 |
+
827
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 2
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "equation",
|
| 419 |
+
"img_path": "images/e123e5b27c6bf17fbfdf1d2e5cde202f996e672b333f249afa2aca8287252565.jpg",
|
| 420 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbf { a } _ { 0 } \\sim \\mathcal { N } ( 0 , \\mathbf { I } ) ; } \\\\ & { \\mathbf { \\Phi } \\mathbf { z } = h _ { \\theta } ( \\mathbf { a } _ { 0 } , \\mathbf { s } _ { t } ) ; } \\\\ & { \\mathbf { a } _ { t } = f _ { \\phi _ { N } } \\circ f _ { \\phi _ { N - 1 } } \\circ \\dots \\circ f _ { \\phi _ { 1 } } ( \\mathbf { z } ) , } \\end{array}\n$$",
|
| 421 |
+
"text_format": "latex",
|
| 422 |
+
"bbox": [
|
| 423 |
+
388,
|
| 424 |
+
833,
|
| 425 |
+
607,
|
| 426 |
+
890
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 2
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "where $h _ { \\theta } = \\mathbf { a } _ { 0 } \\sigma \\mathbf { I } + \\mu ( \\mathbf { s } _ { t } )$ depends on the state and the noise variance $\\sigma > 0$ . Different SAC policies can thus be crafted by parameterizing their NFs layers. ",
|
| 433 |
+
"bbox": [
|
| 434 |
+
173,
|
| 435 |
+
895,
|
| 436 |
+
823,
|
| 437 |
+
924
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 2
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "image",
|
| 443 |
+
"img_path": "images/5f1e484c07b4d6aae050dd38be514b6f5d99e8200b908a2090a82327bc3e358f.jpg",
|
| 444 |
+
"image_caption": [
|
| 445 |
+
"Figure 1: a) Augmenting the loss function with AR constraints allows an agent to reach a target policy by following different paths. Attractive and Repulsive policies represent any other agent’s policy. b) General flow of the proposed ARAC strategy. "
|
| 446 |
+
],
|
| 447 |
+
"image_footnote": [],
|
| 448 |
+
"bbox": [
|
| 449 |
+
290,
|
| 450 |
+
99,
|
| 451 |
+
709,
|
| 452 |
+
227
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 3
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "3 ARAC: ATTRACTION-REPULSION ACTOR-CRITIC ",
|
| 459 |
+
"text_level": 1,
|
| 460 |
+
"bbox": [
|
| 461 |
+
176,
|
| 462 |
+
308,
|
| 463 |
+
620,
|
| 464 |
+
323
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 3
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "We now detail the general procedure for training a population of agents using the proposed diversityseeking AR mechanism. More specifically, we consider here SAC agents enhanced with NFs (Mazoure et al., 2019). Figure 1 displays the general flow of the procedure. Algorithm 1 (Appendix) provides the pseudo-code of the proposed ARAC strategy, where sub-procedures for rollout and archive update can be found in the Appendix. ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
174,
|
| 473 |
+
339,
|
| 474 |
+
826,
|
| 475 |
+
409
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 3
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "Overview ARAC works by evolving a population of $M$ SAC agents $\\{ \\pi _ { \\phi , \\theta } ^ { m } \\} _ { m = 1 } ^ { M }$ with radial NFs policies (Eq. 7) and shared critic , and by maintaining an archive of policies encountered in previous generations of the population. After performing $T$ steps per agent on the environment (Alg. 1 L8-12), individuals are evaluated by performing $R$ rollouts2 on the environment (Alg. 1 L26-28). This allows to identify the top- $K$ best agents (Alg. 1 L29), also called elites, which will be used to update the critic as they provide the most meaningful feedback (Alg. 1 L13-17). The archive is finally updated in a diversity-seeking fashion using the current population (Alg. 1 L30). ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
424,
|
| 485 |
+
825,
|
| 486 |
+
525
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 3
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "The core component of the proposed approach lies within the update of the agents (Alg. 1 L18-25). During this phase, elite individuals are updated using AR operations w.r.t. policies sampled from the archive (Eq. 5), whereas non-elites are updated regularly (Eq. 2). ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
176,
|
| 495 |
+
531,
|
| 496 |
+
825,
|
| 497 |
+
573
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 3
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "3.1 ENHANCING DIVERSITY IN THE ARCHIVE ",
|
| 504 |
+
"text_level": 1,
|
| 505 |
+
"bbox": [
|
| 506 |
+
176,
|
| 507 |
+
592,
|
| 508 |
+
500,
|
| 509 |
+
604
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "Throughout the training process, we maintain an archive $\\mathcal { G }$ of maximum capacity $G$ , which contains some previously encountered policies. The process goes as follow: until reaching full capacity, the archive saves a copy of the parameters of every individual in the population after the evaluation step. However, by naively adding all individuals as if the archive were just a heap, the archive could end up filled with policies leading to similar rewards, which would result in a loss of diversity (Mauldin, 1984). We mitigate this issue by keeping track of two fitness clusters (low and high) using the partition formed by running a $k$ -means algorithm on the fitness value. Hence, when $| { \\mathcal { G } } | = G$ is reached and a new individual is added to the archive, it randomly replaces an archived policy from its respective cluster. This approach, also known as niching, has proved itself effective at maintaining high diversity levels (Gupta & Ghafir, 2012; Mahfoud, 1995). ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
174,
|
| 518 |
+
617,
|
| 519 |
+
825,
|
| 520 |
+
756
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "3.2 DISCOVERING NEW POLICIES THROUGH ATTRACTION-REPULSION ",
|
| 527 |
+
"text_level": 1,
|
| 528 |
+
"bbox": [
|
| 529 |
+
176,
|
| 530 |
+
775,
|
| 531 |
+
673,
|
| 532 |
+
789
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 3
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "The crux of this work lies in the explicit search for diversity in the policy space achieved using the AR mechanism. Since the KL between two base policies (i.e. input of the first flow layer) can be trivially maximized by driving their means apart, we apply attraction-repulsion only on the flow layers, while holding the mean of the base policy constant. This ensures that the KL term doesn’t depend on the difference in means and hence controls the magnitude of the AR mechanism. Every time the AR operator is applied (Alg. 1 L20-21), $n$ policies are sampled from the archive and are used for estimating the AR loss (Eq. 1). As in Hong et al. (2018), we consider two possible strategies to dictate the value of $\\beta _ { \\pi ^ { \\prime } }$ coefficients for policies $\\pi ^ { \\prime } \\sim \\mathcal { G }$ : ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
174,
|
| 541 |
+
800,
|
| 542 |
+
825,
|
| 543 |
+
898
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 3
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "",
|
| 550 |
+
"bbox": [
|
| 551 |
+
173,
|
| 552 |
+
103,
|
| 553 |
+
555,
|
| 554 |
+
118
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "equation",
|
| 560 |
+
"img_path": "images/9bbbc002711d0542bb426d686a74f0370c6fb28d2354159cf46231659c3b84d4.jpg",
|
| 561 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\beta _ { \\pi ^ { \\prime } } = - \\biggl [ 2 \\biggl ( \\frac { f \\bigl ( \\pi ^ { \\prime } \\bigr ) - f _ { m i n } } { f _ { m a x } - f _ { m i n } } - 1 \\biggr ) \\biggr ] } \\\\ { \\displaystyle \\beta _ { \\pi ^ { \\prime } } = 1 - \\frac { f \\bigl ( \\pi ^ { \\prime } \\bigr ) - f _ { m i n } } { f _ { m a x } - f _ { m i n } } } \\end{array}\n$$",
|
| 562 |
+
"text_format": "latex",
|
| 563 |
+
"bbox": [
|
| 564 |
+
282,
|
| 565 |
+
123,
|
| 566 |
+
514,
|
| 567 |
+
195
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "where $f ( \\pi ) ^ { 3 }$ represents the fitness function of policy $\\pi$ (average reward in our case), and $f _ { m i n }$ and $f _ { m a x }$ are estimated based on the $n$ sampled archived policies. The proactive strategy aims to mimic high reward archived policies, while the reactive strategy is more cautious, only repulsing away the current policy from low fitness archived policies. Using this approach, the current agent policy will be attracted to some sampled policies $( \\beta _ { \\pi ^ { \\prime } } < 0 )$ ) and will be repulsed from others $\\beta _ { \\pi ^ { \\prime } } \\geq 0 )$ ) in a more or less aggressive way, depending on the strategy. ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
174,
|
| 576 |
+
199,
|
| 577 |
+
825,
|
| 578 |
+
284
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 4
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "Unlike Hong et al. (2018) who applied proactive and reactive strategies on policies up to 5 timesteps back, we maintain an archive consisting of two clusters seen so far: policies with low and high fitness, respectively. Having this cluster allows to attract/repulse from a set of diverse agents, replacing high-reward policies by policies with similar performance. Indeed, without this process, elements of the archive would collapse on the most frequent policy, from which all agents would attract/repulse. To avoid performing AR against a single \"average policy\" , we separate low-reward and high-reward agents via clustering. ",
|
| 585 |
+
"bbox": [
|
| 586 |
+
174,
|
| 587 |
+
290,
|
| 588 |
+
826,
|
| 589 |
+
388
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 4
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "4 RELATED WORK ",
|
| 596 |
+
"text_level": 1,
|
| 597 |
+
"bbox": [
|
| 598 |
+
176,
|
| 599 |
+
406,
|
| 600 |
+
344,
|
| 601 |
+
422
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 4
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "The challenges of exploration are well studied in the RL literature. Previously proposed approaches for overcoming hard exploration domains tend to either increase the capacity of the state-action value function (Gal & Ghahramani, 2016; Henderson et al., 2017) or the policy expressivity (Mazoure et al., 2019; Tang & Agrawal, 2018; Touati et al., 2018). This work rather tackles exploration from a diverse multi-agent perspective. Unlike prior population-based approaches for exploration (Conti et al., 2018; Khadka & Tumer, 2018; Pourchot & Sigaud, 2019), which seek diversity through the parameters space, we directly promote diversity in the policy space. ",
|
| 608 |
+
"bbox": [
|
| 609 |
+
174,
|
| 610 |
+
439,
|
| 611 |
+
825,
|
| 612 |
+
536
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 4
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "The current work was inspired by Hong et al. (2018), who relied on the KL divergence to attract/repulse from a set of previous policies to discover new solutions. However, in their work, the archive is time-based (they restrict themselves to the 5 most recent policies), while our archive is built following a diversity-seeking strategy (i.e., niching and policies come from multiple agents). Notably, ARAC is different of previously discussed works in that it explores the action space in multiple regions simultaneously, a property enforced through the AR mechanism. ",
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
542,
|
| 622 |
+
825,
|
| 623 |
+
627
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 4
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "text",
|
| 629 |
+
"text": "The proposed approach bears some resemblance with Liu et al. (2017), who took advantage of a multi-agent framework in order to perform repulsion operations among agents using of similarity kernels between parameters of the agents. The AR mechanism gives rise to exploration through structured policy rather than randomized policy. This strategy has also been employed in multi-task learning (Gupta et al., 2018), where experience on previous tasks was used to explore on new tasks. ",
|
| 630 |
+
"bbox": [
|
| 631 |
+
174,
|
| 632 |
+
633,
|
| 633 |
+
825,
|
| 634 |
+
704
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 4
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "5 EXPERIMENTS ",
|
| 641 |
+
"text_level": 1,
|
| 642 |
+
"bbox": [
|
| 643 |
+
176,
|
| 644 |
+
723,
|
| 645 |
+
326,
|
| 646 |
+
739
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 4
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "5.1 DIDACTIC EXAMPLE ",
|
| 653 |
+
"text_level": 1,
|
| 654 |
+
"bbox": [
|
| 655 |
+
176,
|
| 656 |
+
755,
|
| 657 |
+
356,
|
| 658 |
+
770
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 4
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "Consider a 2-dimensional multi-armed bandit problem where the actions lie in the real square $[ - 6 , 6 ] ^ { 2 }$ . We illustrate the example of using a proactive strategy where a SAC agent with radial flows policy imitates a desirable (expert) policy while simultaneously repelling from a less desirable policy. The task consists in matching the expert’s policy (blue density) while avoiding taking actions from a repulsive policy $\\pi ^ { \\prime }$ (red). We illustrate the properties of radial flows in Figure 2 by increasing the number of flows (where 0 flow corresponds to a Gaussian distribution). ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
174,
|
| 667 |
+
781,
|
| 668 |
+
825,
|
| 669 |
+
864
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 4
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "We observe that increasing the number of flows (bottom to top) leads to more complex policy’s shapes and multimodality unlike the Gaussian policy which has its variance shrinked (the KL divergence is proportional to the ratio of the two variances, hence maximizing it can lead to a reduction in the variance which can be detrimental for exploration purpose). Details are provided in Appendix. ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
176,
|
| 678 |
+
872,
|
| 679 |
+
825,
|
| 680 |
+
900
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 4
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "image",
|
| 686 |
+
"img_path": "images/1036cd057f37e814ff6f335c0a03dd0dd10f946762eb28661267361a0bedc134.jpg",
|
| 687 |
+
"image_caption": [
|
| 688 |
+
"Figure 2: Agent trained to imitate a target while avoiding a repulsive policy using a proactive strategy. Increasing the number of flows leads to more complex policy’s shape. "
|
| 689 |
+
],
|
| 690 |
+
"image_footnote": [],
|
| 691 |
+
"bbox": [
|
| 692 |
+
339,
|
| 693 |
+
99,
|
| 694 |
+
658,
|
| 695 |
+
314
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 5
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "",
|
| 702 |
+
"bbox": [
|
| 703 |
+
171,
|
| 704 |
+
381,
|
| 705 |
+
825,
|
| 706 |
+
410
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "image",
|
| 712 |
+
"img_path": "images/85f6af52b9f366799b350719614483ad9e8170c22dac51befe8f4baebf61470b.jpg",
|
| 713 |
+
"image_caption": [
|
| 714 |
+
"Figure 3: Average return and one standard deviation on 5 random seeds across 7 MuJoCo tasks for ARAC against single SAC agents (with and without NFs). Curves are smoothed using Savitzky-Golay filtering with window size of 7. "
|
| 715 |
+
],
|
| 716 |
+
"image_footnote": [],
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
425,
|
| 720 |
+
821,
|
| 721 |
+
631
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 5
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "5.2 MUJOCO LOCOMOTION BENCHMARKS ",
|
| 728 |
+
"text_level": 1,
|
| 729 |
+
"bbox": [
|
| 730 |
+
176,
|
| 731 |
+
709,
|
| 732 |
+
480,
|
| 733 |
+
723
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 5
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "We now compare ARAC against the CEM-TD3 (Pourchot & Sigaud, 2019), ERL (Khadka & Tumer, 2018) and CERL (Khadka et al., 2019) multi-agent baselines on seven continuous control tasks from the MuJoco suite (Duan et al., 2016): Ant-v2, HalfCheetah-v2, Humanoid-v2, HumanoidStandup-v2, Hopper-v2, Walker2d-v2 and Humanoid (rllab). We also designed a sparse reward environment SparseHumanoid-v2. All algorithms are run over 1M time steps on each environment, except Humanoid (rllab) which gets 2M time steps and SparseHumanoid-v2 on $0 . 6 { \\bf M }$ time steps. We also include comparison against single-agent baselines. ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
173,
|
| 742 |
+
734,
|
| 743 |
+
825,
|
| 744 |
+
847
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 5
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "ARAC performs $R = 1 0$ rollouts for evaluation steps every 10, 000 interaction steps with the environment. We consider a small population of $N = 5$ individuals with $K = 2$ as elites. Every SAC agent has one feedforward hidden layer of 256 units acting as state embedding, followed by a radial flow of length $\\in \\{ 3 , 4 \\}$ . A temperature of $\\alpha = 0 . 0 5$ or 0.2 is used across all the environments (See appendix for more details). AR operations are carried out by sampling uniformly $n = 5$ archived policies from $\\mathcal { G }$ . Parameters details are provided in the Appendix (Table 4). All networks are trained with Adam optimizer (Kingma & Ba, 2015) using a learning rate of $\\mathrm { 3 E ^ { - 4 } }$ . Baselines CEM-TD34, $\\mathrm { E R L } ^ { 5 }$ , CERL6 use the code contained in their respective repositories. ",
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
854,
|
| 754 |
+
823,
|
| 755 |
+
924
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 5
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "",
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
103,
|
| 765 |
+
825,
|
| 766 |
+
146
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 6
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "table",
|
| 772 |
+
"img_path": "images/cd403724e9d9b23ce7ef79acd2a040c4516392414a5778735c01ea245d7324cd.jpg",
|
| 773 |
+
"table_caption": [],
|
| 774 |
+
"table_footnote": [
|
| 775 |
+
"Table 1: Maximum average return after 1M (2M for Humanoid (rllab) and 600k for SparseHumanoid-v2) time steps 5 random seeds. Bold: best methods when the gap is less than 100 units. See appendix for average return with standard deviation. Environment short names: HC: HalfCheetah-v2, Hu: Humanoid-v2, Standup: HumanoidStandup-v2 "
|
| 776 |
+
],
|
| 777 |
+
"table_body": "<table><tr><td></td><td>ARAC</td><td>CEM-TD3</td><td>CERL</td><td>ERL</td><td>SAC-NF</td><td>SAC</td><td>TD3</td></tr><tr><td>Ant</td><td>6044</td><td>4239</td><td>1639</td><td>1442</td><td>4912</td><td>4370</td><td>4372</td></tr><tr><td>HC</td><td>10264</td><td>10659</td><td>5703</td><td>6746</td><td>8429</td><td>11 900</td><td>9543</td></tr><tr><td>Hopper</td><td>3587</td><td>3655</td><td>2970</td><td>1149</td><td>3538</td><td>2794</td><td>3564</td></tr><tr><td>Hu</td><td>5965</td><td>212</td><td>4756</td><td>551</td><td>5506</td><td>5504</td><td>71</td></tr><tr><td>Standup</td><td>175 000</td><td>29 000</td><td>117000</td><td>12 900</td><td>116 000</td><td>149 000</td><td>54000</td></tr><tr><td>Hu (rllab)</td><td>14 230</td><td>1334</td><td>3340</td><td>57</td><td>5531</td><td>1963</td><td>286</td></tr><tr><td>Walker2d</td><td>4704</td><td>4710</td><td>4386</td><td>1107</td><td>5196</td><td>3783</td><td>4682</td></tr><tr><td>Hu (Sparse)</td><td>816</td><td>0</td><td>1.32</td><td>8.65</td><td>547</td><td>88</td><td>0</td></tr></table>",
|
| 778 |
+
"bbox": [
|
| 779 |
+
205,
|
| 780 |
+
157,
|
| 781 |
+
795,
|
| 782 |
+
275
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 6
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "Figure 4 displays the performance of all algorithms on three environments over time steps (see Appendix Figure 7 for all environments). Results are averaged over 5 random seeds. Table 1 reports the best observed reward for each method. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
174,
|
| 791 |
+
356,
|
| 792 |
+
825,
|
| 793 |
+
398
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 6
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "image",
|
| 799 |
+
"img_path": "images/7c61fe7d139129b6333acea8071a346e8a481d71ecd2da64dcd95580615568ae.jpg",
|
| 800 |
+
"image_caption": [
|
| 801 |
+
"Figure 4: Average return and one standard deviation on 5 random seeds across 8 MuJoCo tasks. Curves are smoothed using Savitzky-Golay filtering with window size of 7. "
|
| 802 |
+
],
|
| 803 |
+
"image_footnote": [],
|
| 804 |
+
"bbox": [
|
| 805 |
+
207,
|
| 806 |
+
410,
|
| 807 |
+
790,
|
| 808 |
+
592
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 6
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "Small state space environments HalfCheetah-v2, Hopper-v2, and Walker2d-v2 are low-dimensional state space environments $( d \\leq 1 7 )$ . Except for HalfCheetah-v2, the proposed approach shows comparable results with its concurrent. Those results match the findings of (Plappert et al., 2018) that some environments with well-structured dynamics require little exploration. Full learning curves can be found in the Appendix. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
656,
|
| 818 |
+
825,
|
| 819 |
+
727
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 6
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "Deceptive reward and Large state space environments Humanoid-v2, HumanoidStandup-v2 and Humanoid (rllab) belong to bipedal environments with high-dimensional state space $( d = 3 7 6$ and $d = 1 4 7$ ), and are known to trap algorithms into suboptimal solutions. In addition to the legs, the agent also needs to control the arms, which may influence the walking way and hence induce deceptive rewards (Conti et al., 2018). Figure 4 shows the learning curves on MuJoCo tasks. We observe that ARAC beats both baselines in performance as well as in convergence rate. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
741,
|
| 829 |
+
825,
|
| 830 |
+
838
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 6
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "Ant-v2 is another high-dimensional state space environment $\\mathit { l } \\geq 1 0 0 )$ . In an unstable setup, a naive algorithm implementing an unbalanced fast walk could still generate high reward, the reward taking into account the distance from start, instead of learning to stand, stabilize, and walk (as expected). ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
844,
|
| 840 |
+
823,
|
| 841 |
+
875
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 6
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "",
|
| 848 |
+
"bbox": [
|
| 849 |
+
173,
|
| 850 |
+
103,
|
| 851 |
+
823,
|
| 852 |
+
132
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 7
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "Sparse reward environment To test ARAC in a sparse reward environment, we created SparseHumanoid-v2. The dynamic is the same as Humanoid-v2 but rewards of $+ 1$ is granted only given is the center of mass of the agent is above a threshold (set to 0.6 unit in our case). The challenge not only lies in the sparse reward property but also on the complex body dynamic that can make the agent falling down and terminating the episode. As shown in Figure 4, ARAC is the only method that can achieve non zero performance. A comparison against single agent methods in the Appendix also shows better performance for ARAC. ",
|
| 859 |
+
"bbox": [
|
| 860 |
+
174,
|
| 861 |
+
146,
|
| 862 |
+
825,
|
| 863 |
+
244
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 7
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "Sample efficiency compared with single agent methods Figure 3 (in Appendix) also shows that the sample efficiency of the population-based ARAC compares to a single SAC agent (with and without NFs) and other baselines methods (SAC, TD3). On Humanoid-v2 and Ant-v2 ARAC converges faster, reaching the 6k (4k, respectively) milestone performance after only 1M steps, while a single SAC agent requires 4M (3M, respectively) steps according to (Haarnoja et al., 2018). In general, ARAC achieves competitive results (no flat curves) and makes the most difference (faster convergence and better performance) in the biped environments. ",
|
| 870 |
+
"bbox": [
|
| 871 |
+
174,
|
| 872 |
+
258,
|
| 873 |
+
825,
|
| 874 |
+
357
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 7
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "Attraction-repulsion ablation study To illustrate the impact of repulsive forces, we introduce a hyperparameter $\\lambda$ in the overall loss (Eq. 5): ",
|
| 881 |
+
"bbox": [
|
| 882 |
+
174,
|
| 883 |
+
371,
|
| 884 |
+
823,
|
| 885 |
+
400
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 7
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "equation",
|
| 891 |
+
"img_path": "images/f80d9d80506653ff593addd9c7bbb73258da29ea05f7d263e85c75031bf12940.jpg",
|
| 892 |
+
"text": "$$\n\\mathcal { L } _ { \\theta , \\phi , \\lambda } = \\mathcal { L } _ { \\theta , \\phi , \\mathrm { S A C } } + \\lambda \\mathcal { L } _ { \\phi , \\mathrm { A R } }\n$$",
|
| 893 |
+
"text_format": "latex",
|
| 894 |
+
"bbox": [
|
| 895 |
+
401,
|
| 896 |
+
405,
|
| 897 |
+
594,
|
| 898 |
+
422
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 7
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "We ran an ablation analysis on Humanoid-v2 by varying that coefficient. For two random states, we sampled 500 actions from all agents and mapped these actions onto a two-dimensional space (via t-SNE). Appendix Figure 5 shows that without repulsion $\\lambda = 0$ ), actions from all agents are entangled, while repulsion $( \\lambda > 0$ ) forces agents to behave differently and hence explore different regions of the action space. ",
|
| 905 |
+
"bbox": [
|
| 906 |
+
173,
|
| 907 |
+
433,
|
| 908 |
+
825,
|
| 909 |
+
503
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 7
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "The second ablation study is dedicated to highlight the differences between a Gaussian policy (similar to Hong et al. (2018) and an NF policy under AR operators. As one can observe in Figure 6, using a Gaussian policy deteriorates the solution as the repulsive KL term drives apart the means of agents and blows up/ shrinks the variance of the Gaussian policy. On the other hand, applying the AR term on the NF layers maximizes the KL conditioned on the mean and variance of both base policies, resulting in a solution which allows sufficient exploration. More details are provided in the Appendix. ",
|
| 916 |
+
"bbox": [
|
| 917 |
+
174,
|
| 918 |
+
510,
|
| 919 |
+
825,
|
| 920 |
+
594
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 7
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "Finally, through a toy example subject to AR, we characterize the policy’s shape when increasing the number of the radial flow policy in Figure 2 (experimental setup in Appendix). Unlike the diagonal Gaussian policy (SAC) that has symmetry constraints, increasing the number of flows allows the radial policy to adopt more complex shapes (from bottom to top). ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
601,
|
| 930 |
+
825,
|
| 931 |
+
657
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 7
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "6 CONCLUSION ",
|
| 938 |
+
"text_level": 1,
|
| 939 |
+
"bbox": [
|
| 940 |
+
174,
|
| 941 |
+
676,
|
| 942 |
+
318,
|
| 943 |
+
693
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 7
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "In this paper, we addressed the issue of RL domains with deceptive rewards by introducing a population-based search model for optimal policies using attraction-repulsion operators. Our method relies on powerful density estimators (normalizing flows), to let policies exploit the reward landscape under AR constraints. Our ablation studies showed that (1) the strength of AR and (2) the number of flows are the two factors which predominantly affect the shape of the policy. Selecting the correct AR coefficient is therefore important to obtain good performance, while at the same time preventing premature convergence. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
174,
|
| 952 |
+
708,
|
| 953 |
+
825,
|
| 954 |
+
805
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 7
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Empirical results on the MuJoCo suite demonstrate high performance of the proposed method in most settings, including with sparse rewards. Moreover, in biped environments that are known to trap algorithms into suboptimal solutions, ARAC enjoys higher sample efficiency and better performance compared to its competitors which confirms our intuitions on using AR with normalizing flows. As future steps, borrowing from multi-objective optimization literature methods could allow one to combine other diversity metrics with the performance objective, to in turn improve the coverage of the solution space among the individuals by working with the corresponding Pareto front (Horn et al., 1994). ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
811,
|
| 964 |
+
825,
|
| 965 |
+
924
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 7
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "REFERENCES ",
|
| 972 |
+
"text_level": 1,
|
| 973 |
+
"bbox": [
|
| 974 |
+
176,
|
| 975 |
+
103,
|
| 976 |
+
287,
|
| 977 |
+
117
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 8
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47: 253–279, 2013. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
173,
|
| 986 |
+
126,
|
| 987 |
+
825,
|
| 988 |
+
167
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 8
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "Richard Bellman. A markovian decision process. Journal of Mathematics and Mechanics, pp. 679–684, 1957. ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
171,
|
| 997 |
+
178,
|
| 998 |
+
825,
|
| 999 |
+
207
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 8
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "Edoardo Conti, Vashisht Madhavan, Felipe Petroski Such, Joel Lehman, Kenneth Stanley, and Jeff Clune. Improving exploration in evolution strategies for deep reinforcement learning via a population of novelty-seeking agents. In Advances in Neural Information Processing Systems (NeurIPS), pp. 5027–5038, 2018. ",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
173,
|
| 1008 |
+
217,
|
| 1009 |
+
826,
|
| 1010 |
+
273
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 8
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "Thang Doan, Bogdan Mazoure, and Clare Lyle. Gan q-learning. arXiv preprint arXiv:1805.04874, 2018. ",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
174,
|
| 1019 |
+
284,
|
| 1020 |
+
823,
|
| 1021 |
+
311
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 8
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. In International Conference on Machine Learning (ICML), pp. 1329–1338, 2016. ",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
174,
|
| 1030 |
+
320,
|
| 1031 |
+
826,
|
| 1032 |
+
364
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 8
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In International conference on machine learning (ICML), pp. 1050– 1059, 2016. ",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
174,
|
| 1041 |
+
375,
|
| 1042 |
+
826,
|
| 1043 |
+
416
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 8
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "Abhishek Gupta, Russell Mendonca, YuXuan Liu, Pieter Abbeel, and Sergey Levine. Metareinforcement learning of structured exploration strategies. In Advances in Neural Information Processing Systems (NeurIPS), pp. 5302–5311, 2018. ",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
173,
|
| 1052 |
+
426,
|
| 1053 |
+
823,
|
| 1054 |
+
469
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 8
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "Deepti Gupta and Shabina Ghafir. An overview of methods maintaining diversity in genetic algorithms. International journal of emerging technology and advanced engineering, 2(5):56–60, 2012. ",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
169,
|
| 1063 |
+
478,
|
| 1064 |
+
825,
|
| 1065 |
+
508
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 8
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft Actor-Critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning (ICML), pp. 1856–1865, 2018. ",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
174,
|
| 1074 |
+
517,
|
| 1075 |
+
823,
|
| 1076 |
+
560
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 8
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "text",
|
| 1082 |
+
"text": "Peter Henderson, Thang Doan, Riashat Islam, and David Meger. Bayesian policy gradients via alpha divergence dropout inference. NIPS Bayesian Deep Learning Workshop, 2017. ",
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
173,
|
| 1085 |
+
569,
|
| 1086 |
+
821,
|
| 1087 |
+
599
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 8
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "Zhang-Wei Hong, Tzu-Yun Shann, Shih-Yang Su, Yi-Hsiang Chang, Tsu-Jui Fu, and Chun-Yi Lee. Diversity-driven exploration strategy for deep reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), pp. 10489–10500, 2018. ",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
174,
|
| 1096 |
+
608,
|
| 1097 |
+
826,
|
| 1098 |
+
651
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 8
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "Jeffrey Horn, Nicholas Nafpliotis, and David E. Goldberg. A niched pareto genetic algorithm for multiobjective optimization. In Proceedings of the 1st IEEE Conference on Evolutionary Computation, IEEE World Congress on Computational Intelligence, pp. 82–87, 1994. ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
173,
|
| 1107 |
+
660,
|
| 1108 |
+
826,
|
| 1109 |
+
704
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 8
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "Shauharda Khadka and Kagan Tumer. Evolution-guided policy gradient in reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), pp. 1188–1200, 2018. ",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
173,
|
| 1118 |
+
713,
|
| 1119 |
+
825,
|
| 1120 |
+
742
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 8
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "Shauharda Khadka, Somdeb Majumdar, Tarek Nassar, Zach Dwiel, Evren Tumer, Santiago Miret, Yinyin Liu, and Kagan Tumer. Collaborative evolutionary reinforcement learning. CoRR, abs/1905.00976, 2019. URL http://arxiv.org/abs/1905.00976. ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
176,
|
| 1129 |
+
751,
|
| 1130 |
+
825,
|
| 1131 |
+
795
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 8
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
171,
|
| 1140 |
+
804,
|
| 1141 |
+
825,
|
| 1142 |
+
833
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 8
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Kyowoon Lee, Sol-A Kim, Jaesik Choi, and Seong-Whan Lee. Deep reinforcement learning in continuous action spaces: a case study in the game of simulated curling. In International Conference on Machine Learning, pp. 2943–2952, 2018. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
173,
|
| 1151 |
+
843,
|
| 1152 |
+
823,
|
| 1153 |
+
886
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 8
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Yang Liu, Prajit Ramachandran, Qiang Liu, and Jian Peng. Stein variational policy gradient. In Conference on Uncertainty in Artificla Intelligence (UAI), 2017. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
176,
|
| 1162 |
+
895,
|
| 1163 |
+
821,
|
| 1164 |
+
924
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 8
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "Samir W Mahfoud. Niching methods for genetic algorithms. PhD thesis, University of Illinois at Urbana-Champaign Champaign, USA, 1995. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
171,
|
| 1173 |
+
103,
|
| 1174 |
+
825,
|
| 1175 |
+
132
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 9
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "Michael L Mauldin. Maintaining diversity in genetic search. In AAAI Conference on Artificial Intelligence (AAAI), pp. 247–250, 1984. ",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
171,
|
| 1184 |
+
141,
|
| 1185 |
+
823,
|
| 1186 |
+
170
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 9
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "Bogdan Mazoure, Thang Doan, Audrey Durand, R Devon Hjelm, and Joelle Pineau. Leveraging exploration in off-policy algorithms via normalizing flows. Proceedings of the 3rd Conference on Robot Learning (CoRL 2019), 2019. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
176,
|
| 1195 |
+
178,
|
| 1196 |
+
823,
|
| 1197 |
+
222
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 9
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "Joelle Pineau. The machine learning reproducibility checklist. 2018. ",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
173,
|
| 1206 |
+
231,
|
| 1207 |
+
624,
|
| 1208 |
+
246
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 9
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Matthias Plappert, Rein Houthooft, Prafulla Dhariwal, Szymon Sidor, Richard Y Chen, Xi Chen, Tamim Asfour, Pieter Abbeel, and Marcin Andrychowicz. Parameter space noise for exploration. arXiv preprint arXiv:1706.01905, 2017. ",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
176,
|
| 1217 |
+
253,
|
| 1218 |
+
826,
|
| 1219 |
+
296
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 9
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "Matthias Plappert, Rein Houthooft, Prafulla Dhariwal, Szymon Sidor, Richard Y. Chen, Xi Chen, Tamim Asfour, Pieter Abbeel, and Marcin Andrychowicz. Parameter space noise for exploration. In International Conference on Learning Representations (ICLR), 2018. ",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
174,
|
| 1228 |
+
305,
|
| 1229 |
+
826,
|
| 1230 |
+
349
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 9
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "text",
|
| 1236 |
+
"text": "Aloïs Pourchot and Olivier Sigaud. CEM-RL: Combining evolutionary and gradient-based methods for policy search. In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
173,
|
| 1239 |
+
357,
|
| 1240 |
+
821,
|
| 1241 |
+
387
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 9
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "Martin L Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014. ",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
173,
|
| 1250 |
+
395,
|
| 1251 |
+
823,
|
| 1252 |
+
424
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 9
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International Conference on Machine Learning (ICML), pp. 1530–1538, 2015. ",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
174,
|
| 1261 |
+
433,
|
| 1262 |
+
821,
|
| 1263 |
+
463
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 9
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning (ICML), pp. 1889–1897, 2015. ",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
174,
|
| 1272 |
+
469,
|
| 1273 |
+
826,
|
| 1274 |
+
513
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 9
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint: 1707.06347, 2017. ",
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
173,
|
| 1283 |
+
522,
|
| 1284 |
+
823,
|
| 1285 |
+
551
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 9
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "Haoran Tang, Rein Houthooft, Davis Foote, Adam Stooke, OpenAI Xi Chen, Yan Duan, John Schulman, Filip DeTurck, and Pieter Abbeel. # Exploration: A study of count-based exploration for deep reinforcement learning. In Advances in neural information processing systems (NeurIPS), pp. 2753–2762, 2017. ",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
174,
|
| 1294 |
+
559,
|
| 1295 |
+
826,
|
| 1296 |
+
616
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 9
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "Yunhao Tang and Shipra Agrawal. Boosting trust region policy optimization by normalizing flows policy. arXiv preprint: 1809.10326, 2018. ",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
173,
|
| 1305 |
+
626,
|
| 1306 |
+
823,
|
| 1307 |
+
655
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 9
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 5026–5033. IEEE, 2012. ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
173,
|
| 1316 |
+
662,
|
| 1317 |
+
826,
|
| 1318 |
+
705
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 9
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "Ahmed Touati, Harsh Satija, Joshua Romoff, Joelle Pineau, and Pascal Vincent. Randomized value functions via multiplicative normalizing flows. arXiv preprint: 1806.02315, 2018. ",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
169,
|
| 1327 |
+
714,
|
| 1328 |
+
823,
|
| 1329 |
+
744
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 9
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "Brian D Ziebart. Modeling purposeful adaptive behavior with the principle of maximum causal entropy. PhD thesis, figshare, 2010. ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
173,
|
| 1338 |
+
752,
|
| 1339 |
+
823,
|
| 1340 |
+
781
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 9
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "APPENDIX ",
|
| 1347 |
+
"text_level": 1,
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
176,
|
| 1350 |
+
103,
|
| 1351 |
+
263,
|
| 1352 |
+
117
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "REPRODUCIBILITY CHECKLIST ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
176,
|
| 1361 |
+
133,
|
| 1362 |
+
392,
|
| 1363 |
+
148
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 10
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "We follow the reproducibility checklist (Pineau, 2018) and point to relevant sections explaining them here. ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
176,
|
| 1372 |
+
160,
|
| 1373 |
+
823,
|
| 1374 |
+
186
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 10
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "For all algorithms presented, check if you include: ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
174,
|
| 1383 |
+
188,
|
| 1384 |
+
503,
|
| 1385 |
+
202
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 10
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "• A clear description of the algorithm, see main paper and included codebase. The proposed approach is completely described by Alg. 1 (main paper), 2 (Appendix), and 3 (Appendix). The proposed population-based method uses attraction-repulsion operators in order to enforce a better policy space coverage by different agents. An analysis of the complexity (time, space, sample size) of the algorithm. See Appendix Figure 7 and 3. Experimentally, we demonstrate improvement in sample complexity as discussed in our main paper. In term of computation time, the proposed method scales linearly with the population size if agents are evaluated sequentially (as presented in Alg. 1 for clarity). However, this as mentioned in the paper, can be parallelized. All our results are obtained using $M$ small network architectures with $1 \\times 2 5 6$ -units hidden layer followed by $f$ layers of $| A | + 2$ units each $f$ being the number of radial flows and $| A |$ being the action space dimension). A link to a downloadable source code, including all dependencies. The code is included with the Appendix as a zip file; all dependencies can be installed using Python’s package manager. Upon publication, the code would be available on Github. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
215,
|
| 1394 |
+
228,
|
| 1395 |
+
826,
|
| 1396 |
+
445
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 10
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "For all figures and tables that present empirical results, check if you include: ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
174,
|
| 1405 |
+
458,
|
| 1406 |
+
673,
|
| 1407 |
+
472
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 10
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "• A complete description of the data collection process, including sample size. We use standard benchmarks provided in OpenAI Gym (Brockman et al., 2016). \n• A link to downloadable version of the dataset or simulation environment. See: https://github.com/ \n• An explanation of how samples were allocated for training / validation / testing. We do not use a training-validation-test split, but instead report the mean performance (and one standard deviation) of the policy at evaluation time, openai/gym for OpenAI Gym benchmarks and https://www.roboti.us/index.html for MuJoCo suite. obtained with 5 random seeds. An explanation of any data that were excluded. We did not compare on easy environments (e.g. Reacher-v2) because all existing methods perform well on them. In that case, the improvement of our method upon baselines is incremental and not worth mentioning. \n• The exact number of evaluation runs. 5 seeds for MuJoCo experiments, 1M, 2M or 3M environment steps depending on the domain. \n• A description of how experiments were run. See Section 5 in the main paper and didactic example details in Appendix. A clear definition of the specific measure or statistics used to report results. Undiscounted returns across the whole episode are reported, and in turn averaged across 5 seeds. Clearly defined error bars. Confidence intervals and table values are always mean± 1 standard deviation over 5 seeds. \n• A description of results with central tendency (e.g. mean) and variation (e.g. stddev). All results use the mean and standard deviation. \n• A description of the computing infrastructure used. All runs used 1 CPU for all experiments (toy and MuJoCo) with 8Gb of memory. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
214,
|
| 1416 |
+
483,
|
| 1417 |
+
826,
|
| 1418 |
+
862
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 10
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "image",
|
| 1424 |
+
"img_path": "images/75d01fa4c6a294b396d495cb49a01703a056ee642fb7fd10e4b064ef53d861d8.jpg",
|
| 1425 |
+
"image_caption": [
|
| 1426 |
+
"Figure 5: Mapping in two-dimension space (t-SNE) of agents’ actions for two arbitrary states. Each color represents a different agent. "
|
| 1427 |
+
],
|
| 1428 |
+
"image_footnote": [],
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
173,
|
| 1431 |
+
132,
|
| 1432 |
+
815,
|
| 1433 |
+
381
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 11
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "To illustrate the impact of the repulsive force coefficient $\\lambda$ , we ran an ablation analysis by varying that coefficient (recall that the overall loss function is $\\mathcal { L } _ { \\pi } = \\mathcal { L } _ { \\pi , \\mathrm { S A C } } + \\lambda \\mathcal { L } _ { \\mathrm { A R } }$ where $\\lambda = 1$ in our experiment). ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
174,
|
| 1442 |
+
444,
|
| 1443 |
+
825,
|
| 1444 |
+
486
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 11
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "For two random states, we sampled 500 actions from all agents and mapped theses actions in a common 2-dimensional space (t-SNE). ",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
173,
|
| 1453 |
+
493,
|
| 1454 |
+
823,
|
| 1455 |
+
522
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 11
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "As shown in the Figure above, policies trained without AR $\\lambda = 0$ ) result in entangled actions, while increasing the repulsive coefficient $\\lambda$ forces agents to have different actions and hence explore different regions of the policy space. Note that due to the specific nature of t-SNE , the policies are shown as Gaussians in a lower-dimensional embedding, while it is not necessarily the case in the true space. ",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
174,
|
| 1464 |
+
529,
|
| 1465 |
+
825,
|
| 1466 |
+
598
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 11
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "STABILIZING ATTRACTION-REPULSION WITH NORMALIZING FLOW ",
|
| 1473 |
+
"text_level": 1,
|
| 1474 |
+
"bbox": [
|
| 1475 |
+
174,
|
| 1476 |
+
103,
|
| 1477 |
+
642,
|
| 1478 |
+
117
|
| 1479 |
+
],
|
| 1480 |
+
"page_idx": 12
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "text",
|
| 1484 |
+
"text": "In this section, we illustrate the consequence of the AR operators with a Gaussian policy (as in Hong et al. (2018)) and our Normalizing flow policy for Ant-v2, Humanoid-v2 and HalfCheetah-v2. As shown in the figure below, AR with Gaussian policies yield worse results. One reason is that the KL term drives apart the mean and variance of the Gaussian policy which deteriorates the main objective of maximizing the reward. On the other side, our method applies the AR only on the NF layers allows enough exploration by deviating sufficiently from the main objective function. ",
|
| 1485 |
+
"bbox": [
|
| 1486 |
+
173,
|
| 1487 |
+
128,
|
| 1488 |
+
826,
|
| 1489 |
+
227
|
| 1490 |
+
],
|
| 1491 |
+
"page_idx": 12
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "image",
|
| 1495 |
+
"img_path": "images/4efc27a07944874b7749b830b2f1aa73e9d64a0e975cbc0492917b3be8aaf97e.jpg",
|
| 1496 |
+
"image_caption": [
|
| 1497 |
+
"Figure 6: Comparison of ARAC agents using (1) AR with radial flows, (2) AR with only the base (Gaussian) policy and (3) no AR with radial flows. "
|
| 1498 |
+
],
|
| 1499 |
+
"image_footnote": [],
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
207,
|
| 1502 |
+
243,
|
| 1503 |
+
789,
|
| 1504 |
+
369
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 12
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "COMPARING ARAC AGAINST BASELINES ON MUJOCO TASKS ",
|
| 1511 |
+
"text_level": 1,
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
174,
|
| 1514 |
+
435,
|
| 1515 |
+
599,
|
| 1516 |
+
450
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 12
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "Figure 7 shows the performance of ARAC and baselines (CEM-TD3, CERL and ERL) over time steps. Learning curves are averaged over 5 random seeds and displayed with one standard deviation. Evaluation is done every 10, 000 environment steps using 10 rollouts per agent. Overall, ARAC has reasonable performance on all tasks (no flat curves) and demonstrates high performance, especially in humanoid tasks. ",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
173,
|
| 1525 |
+
462,
|
| 1526 |
+
825,
|
| 1527 |
+
531
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 12
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"type": "image",
|
| 1533 |
+
"img_path": "images/266cfd9eb6a43128f2757b9c1b4521aa722e61184330dc539ad0fcf16fbe9337.jpg",
|
| 1534 |
+
"image_caption": [
|
| 1535 |
+
"Figure 7: Average return and one standard deviation on 5 random seeds across 7 MuJoCo tasks for ARAC against baselines. Curves are smoothed using Savitzky-Golay filtering with window size of 7. "
|
| 1536 |
+
],
|
| 1537 |
+
"image_footnote": [],
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
176,
|
| 1540 |
+
545,
|
| 1541 |
+
821,
|
| 1542 |
+
747
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 12
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "BENEFITS OF POPULATION-BASED STRATEGIES: ARAC AGAINST SINGLE AGENTS",
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
174,
|
| 1551 |
+
103,
|
| 1552 |
+
738,
|
| 1553 |
+
117
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 13
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"text": "In this section, we highlight the benefits of the proposed population-based strategy by comparing with single agents. Figure 3 shows the performance of ARAC against a single SAC agent (with and without normalizing flows). Learning curves are averaged over 5 random seeds and displayed with one standard deviation. Evaluation is done every 10, 000 environment steps using 10 rollouts per agent. We observe a high beneficial impact on the convergence rate as well as on the performance. ARAC outperforms single agents in almost all tasks (except for HalfCheetah-v2 and Walker-v2) with large improvement. Note the high sample efficiency on humanoid environments (Humanoid-v2 and Humanoid (rllab)), where it shows faster convergence in addition to better performance. Indeed, on Humanoid (rllab) a single SAC agent reaches the 4k milestone after 4M steps (Haarnoja et al., 2018) while ARAC achieves this performance in less than 2M steps. Also, in SparseHumanoid-v2, due to its better coordinated exploration, ARAC could find a good solution faster than SAC-NF. ",
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
173,
|
| 1562 |
+
130,
|
| 1563 |
+
825,
|
| 1564 |
+
295
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 13
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"type": "table",
|
| 1570 |
+
"img_path": "images/e15e937fc86e4c1e07597e86a9f67ea299a575c9ca6a0ea4022b6c7457ca5589.jpg",
|
| 1571 |
+
"table_caption": [
|
| 1572 |
+
"OVERALL PERFORMANCES ON MUJOCO TASKS "
|
| 1573 |
+
],
|
| 1574 |
+
"table_footnote": [
|
| 1575 |
+
"Table 2: Maximum average return after 1M (2M for Humanoid (rllab) and 600k for SparseHumanoid-v2) time steps $\\pm$ one standard deviation on 5 random seeds. Bold: best methods when the gap is less than 100 units. "
|
| 1576 |
+
],
|
| 1577 |
+
"table_body": "<table><tr><td rowspan=\"2\">Ant-v2</td><td rowspan=\"2\">ARAC 6,044 ± 216</td><td rowspan=\"2\">CEM-TD3 4,239 ± 1,048</td><td rowspan=\"2\">CERL</td><td rowspan=\"2\">ERL</td><td rowspan=\"2\">SAC - NF</td><td rowspan=\"2\">SAC</td><td rowspan=\"2\">TD3 4,372 ± 900</td></tr><tr><td>1,639± 564 1,442±819</td></tr><tr><td>HalfCheetah-v2</td><td>10,264± 271</td><td>10,659 ± 1,473</td><td>5,703 ± 831</td><td>6,746± 295</td><td>4,912 ± 954 8,429 ±818</td><td>4,370 ± 173 11,896 ± 574</td><td>9,543 ± 978</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Hopper-v2</td><td>3,587 ± 65</td><td>3,655 ± 82</td><td>2,970 ± 341</td><td>1,149 ±3</td><td>3,538 ± 108</td><td>2,794 ± 729</td><td>3,564 ± 114</td></tr><tr><td>Humanoid-v2 HumanoidStandup-v2</td><td>5,965 ± 51 175k±38k</td><td>212±1</td><td>4,756± 454</td><td>551± 60</td><td>5,506± 147</td><td>5,504± 116</td><td>71±10</td></tr><tr><td>Humanoid (rllab)</td><td>14,234 ± 7251</td><td>29k±4k 1,334 ± 551</td><td>117k ± 8k</td><td>129k ± 4k</td><td>116k ± 9k</td><td>149k ±7k</td><td>54k ± 24k</td></tr><tr><td>Walker2d-v2</td><td>4,704 ± 261</td><td>4,710 ± 320</td><td>3,340 ± 3,340 4,3860 ± 615</td><td>57±17 1,107 ± 60</td><td>5,531 ± 4,435</td><td>1,963 ± 1,384</td><td>286 ± 151 4,682 ± 539</td></tr><tr><td>SparseHumanoid-v2</td><td>816 ± 20</td><td>0±0</td><td>1.32 ± 2.64</td><td>8.65 ± 15.90</td><td>5,196 ± 527 547 ± 268</td><td>3,783 ± 366 88±159</td><td>0±0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 1578 |
+
"bbox": [
|
| 1579 |
+
47,
|
| 1580 |
+
132,
|
| 1581 |
+
957,
|
| 1582 |
+
251
|
| 1583 |
+
],
|
| 1584 |
+
"page_idx": 14
|
| 1585 |
+
},
|
| 1586 |
+
{
|
| 1587 |
+
"type": "table",
|
| 1588 |
+
"img_path": "images/c626fd53e2858bf1b5a5c707eecee55372e4e55ddfc6fa96e18630afa2598053.jpg",
|
| 1589 |
+
"table_caption": [],
|
| 1590 |
+
"table_footnote": [
|
| 1591 |
+
"Table 3: Performance after 1M (except for rllab which is 2M) timesteps on 5 seeds. Values taken from their corresponding papers. N/A means the values were not available in the original paper. "
|
| 1592 |
+
],
|
| 1593 |
+
"table_body": "<table><tr><td></td><td>ARAC</td><td>TRPO</td><td>PPO</td><td>Trust-PCL</td><td>Plappert et al. (2017)</td><td>Touati et al. (2018)</td><td>Hong et al. (2018)</td></tr><tr><td>HalfCheetah-v2</td><td>10,264</td><td>-15</td><td>2,600</td><td>2,200</td><td>5,000</td><td>7,700</td><td>4,200</td></tr><tr><td>Walker-v2</td><td>4,764</td><td>2,400</td><td>4,050</td><td>400</td><td>850</td><td>500</td><td>N/A</td></tr><tr><td>Hopper-v2</td><td>3,588</td><td>600</td><td>3,150</td><td>280</td><td>2,500</td><td>400</td><td>N/A</td></tr><tr><td>Ant-v2</td><td>6,044</td><td>-76</td><td>1,000</td><td>1,500</td><td>N/A</td><td>N/A</td><td>N/A</td></tr><tr><td>Humanoid-v2</td><td>5,939</td><td>400</td><td>400</td><td>N/A</td><td>N/A</td><td>N/A</td><td>1,250</td></tr><tr><td>HumanoidStandup-v2</td><td>163,884</td><td>80,000</td><td>N/A</td><td>N/A</td><td>N/A</td><td>N/A</td><td>N/A</td></tr><tr><td>Humanoid (rllab)</td><td>4,117</td><td>23</td><td>200</td><td>N/A</td><td>N/A</td><td>N/A</td><td>N/A</td></tr></table>",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
84,
|
| 1596 |
+
324,
|
| 1597 |
+
921,
|
| 1598 |
+
429
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 14
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "EXPERIMENTAL PARAMETERS ",
|
| 1605 |
+
"text_level": 1,
|
| 1606 |
+
"bbox": [
|
| 1607 |
+
176,
|
| 1608 |
+
104,
|
| 1609 |
+
383,
|
| 1610 |
+
117
|
| 1611 |
+
],
|
| 1612 |
+
"page_idx": 15
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"type": "text",
|
| 1616 |
+
"text": "Table 4 provides the hyperparameters of ARAC used to obtain results in the MuJoCo domains. The noise input for normalizing flows in SAC policies (see Sec. 2.3) is sampled from $\\mathcal { N } ( 0 , \\sigma )$ , where the variance $\\sigma$ is a function of the state (either fixed at a given value or learned). ",
|
| 1617 |
+
"bbox": [
|
| 1618 |
+
174,
|
| 1619 |
+
128,
|
| 1620 |
+
823,
|
| 1621 |
+
171
|
| 1622 |
+
],
|
| 1623 |
+
"page_idx": 15
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "table",
|
| 1627 |
+
"img_path": "images/b4fe49464be21355cd44fb57a2293cc9ef82075dadd8215f5f141ade5614269d.jpg",
|
| 1628 |
+
"table_caption": [
|
| 1629 |
+
"Table 4: ARAC parameters. "
|
| 1630 |
+
],
|
| 1631 |
+
"table_footnote": [],
|
| 1632 |
+
"table_body": "<table><tr><td colspan=\"7\">ARAC parameters</td></tr><tr><td></td><td>#flows</td><td>0</td><td>G</td><td>p</td><td>alpha</td><td>strategy</td></tr><tr><td>Ant-v2</td><td>3</td><td>0.2</td><td>10</td><td>1</td><td>0.2</td><td>proactive</td></tr><tr><td>HalfCheetah-v2</td><td>4</td><td>0.4</td><td>20</td><td></td><td>0.2</td><td>proactive</td></tr><tr><td>Hopper-v2</td><td>4</td><td>0.8</td><td>20</td><td></td><td>0.05</td><td>proactive</td></tr><tr><td>Walker2d-v2</td><td>4</td><td>0.6</td><td>10</td><td></td><td>0.05</td><td>proactive</td></tr><tr><td>Humanoid-v2</td><td>3</td><td>0.6</td><td>10</td><td></td><td>0.05</td><td>reactive</td></tr><tr><td>HumanoidStandup-v2</td><td>3</td><td>0</td><td>20</td><td></td><td>0.2</td><td>reactive</td></tr><tr><td>Humanoid (rllab)</td><td>3</td><td>9</td><td>10</td><td></td><td>0.05</td><td>proactive</td></tr><tr><td>SparseHumanoid-v2</td><td>2</td><td>0.6</td><td>20</td><td>2131111</td><td>0.2</td><td>proactive</td></tr><tr><td colspan=\"7\">Adam Optimizer parameters</td></tr><tr><td>αq</td><td colspan=\"7\">3.10-4</td></tr><tr><td>αw</td><td colspan=\"7\">3.10-4</td></tr><tr><td>α</td><td colspan=\"7\">3.10-4</td></tr><tr><td>a</td><td colspan=\"7\">3.10-4</td></tr><tr><td colspan=\"3\">Algorithmparameters</td><td colspan=\"4\"></td></tr><tr><td>Batch size m</td><td colspan=\"7\">256</td></tr><tr><td colspan=\"2\">Buffer size B</td><td colspan=\"7\">106</td></tr><tr><td colspan=\"2\">Archive sample size n</td><td colspan=\"7\">5</td></tr></table>",
|
| 1633 |
+
"bbox": [
|
| 1634 |
+
305,
|
| 1635 |
+
185,
|
| 1636 |
+
694,
|
| 1637 |
+
405
|
| 1638 |
+
],
|
| 1639 |
+
"page_idx": 15
|
| 1640 |
+
},
|
| 1641 |
+
{
|
| 1642 |
+
"type": "text",
|
| 1643 |
+
"text": "IMPACT OF NUMBER OF FLOWS ON THE POLICY SHAPE ",
|
| 1644 |
+
"text_level": 1,
|
| 1645 |
+
"bbox": [
|
| 1646 |
+
176,
|
| 1647 |
+
104,
|
| 1648 |
+
547,
|
| 1649 |
+
117
|
| 1650 |
+
],
|
| 1651 |
+
"page_idx": 16
|
| 1652 |
+
},
|
| 1653 |
+
{
|
| 1654 |
+
"type": "text",
|
| 1655 |
+
"text": "We used a single SAC agent with different radial flows numbers and randomly initialized weights, starting with actions centered at $( 0 , 0 )$ . All flow parameters are $\\ell _ { 1 }$ regularized with hyperparameter 2. The agent is trained with the classical evidence lower bound (ELBO) objective augmented with the AR loss (Eq. 1), where the coefficient of the repulsive policy $\\pi ^ { \\prime }$ is given by $\\begin{array} { r } { \\beta _ { t } \\stackrel { \\smile } { = } \\frac { 1 0 } { t + 1 } } \\end{array}$ . Fig. 8 shows how both the NF and learned variance Gaussian policies manage to recover the target policy. We see that NF takes advantage of its flexible parametrization to adjust its density and can show asymmetric properties unlike the Gaussian distribution. This indeed can have advantage in some non symmetric environment where the Gaussian policy would be trapped into a suboptimal behavior. Finally, increasing the number of flows (from bottom to top) can lead to more complex policy’s shape. ",
|
| 1656 |
+
"bbox": [
|
| 1657 |
+
173,
|
| 1658 |
+
128,
|
| 1659 |
+
826,
|
| 1660 |
+
257
|
| 1661 |
+
],
|
| 1662 |
+
"page_idx": 16
|
| 1663 |
+
},
|
| 1664 |
+
{
|
| 1665 |
+
"type": "image",
|
| 1666 |
+
"img_path": "images/068a6a98b0db451a89cc30af3c2408532ae00760edf2494bd89935f5c4df961e.jpg",
|
| 1667 |
+
"image_caption": [
|
| 1668 |
+
"Figure 8: Single state didactic illustration of attraction-repulsion operators. Comparing behavior of NF policy against Gaussian policy with learned variance under a repulsive constraint. "
|
| 1669 |
+
],
|
| 1670 |
+
"image_footnote": [],
|
| 1671 |
+
"bbox": [
|
| 1672 |
+
181,
|
| 1673 |
+
272,
|
| 1674 |
+
818,
|
| 1675 |
+
691
|
| 1676 |
+
],
|
| 1677 |
+
"page_idx": 16
|
| 1678 |
+
},
|
| 1679 |
+
{
|
| 1680 |
+
"type": "text",
|
| 1681 |
+
"text": "6.1 VARIANCE OF FITNESS IN THE ARCHIVE ",
|
| 1682 |
+
"text_level": 1,
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
174,
|
| 1685 |
+
104,
|
| 1686 |
+
490,
|
| 1687 |
+
117
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 17
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "Due to the high computation time for behavioral-diversity baselines such as DIYAN, we propose to use the agent’s fitness (i.e. undiscounted returns) as a candidate to repulse/attract from. ",
|
| 1694 |
+
"bbox": [
|
| 1695 |
+
173,
|
| 1696 |
+
128,
|
| 1697 |
+
825,
|
| 1698 |
+
159
|
| 1699 |
+
],
|
| 1700 |
+
"page_idx": 17
|
| 1701 |
+
},
|
| 1702 |
+
{
|
| 1703 |
+
"type": "image",
|
| 1704 |
+
"img_path": "images/9a717f5760f116f2d1161c25e91738a390ee835da2d8bb22df1295ddab31373b.jpg",
|
| 1705 |
+
"image_caption": [
|
| 1706 |
+
"Figure ?? shows the variance of the archive across three MuJoCo domains: Ant, Humanoid and HumanoidStandup. As training progresses, the clustering approach allows to maintain a high variance in the archive, preventing mode collapse to a single, \"average\" fitness. "
|
| 1707 |
+
],
|
| 1708 |
+
"image_footnote": [],
|
| 1709 |
+
"bbox": [
|
| 1710 |
+
176,
|
| 1711 |
+
176,
|
| 1712 |
+
815,
|
| 1713 |
+
323
|
| 1714 |
+
],
|
| 1715 |
+
"page_idx": 17
|
| 1716 |
+
},
|
| 1717 |
+
{
|
| 1718 |
+
"type": "text",
|
| 1719 |
+
"text": "6.2 PSEUDO-CODE FOR ARAC ",
|
| 1720 |
+
"text_level": 1,
|
| 1721 |
+
"bbox": [
|
| 1722 |
+
174,
|
| 1723 |
+
103,
|
| 1724 |
+
401,
|
| 1725 |
+
117
|
| 1726 |
+
],
|
| 1727 |
+
"page_idx": 18
|
| 1728 |
+
},
|
| 1729 |
+
{
|
| 1730 |
+
"type": "text",
|
| 1731 |
+
"text": "Algorithm 1 ARAC: Attraction-Repulsion Actor-Critic ",
|
| 1732 |
+
"text_level": 1,
|
| 1733 |
+
"bbox": [
|
| 1734 |
+
174,
|
| 1735 |
+
135,
|
| 1736 |
+
539,
|
| 1737 |
+
150
|
| 1738 |
+
],
|
| 1739 |
+
"page_idx": 18
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"type": "text",
|
| 1743 |
+
"text": "1: Input: population size $M$ ; number of elites $K$ ; maximum archive capacity $G$ ; archive samp \nsize $n$ ; number of evaluation rollouts $R$ ; actor coefficient $p$ ; strategy (either proactive or reactiv \n2: Initialize value function network $V _ { \\nu }$ and critic network $Q _ { \\omega }$ \n3: Initialize population of policy networks $\\{ \\pi _ { \\phi , \\theta } ^ { m } \\} _ { m = 1 } ^ { M }$ \n4: Initialize empty archive $\\mathcal { G }$ and randomly assign $K$ individuals to top- $K$ \n5: total_step $ 0$ \n6: while total_step $\\leq$ max_step do \n7: step $\\gets 0$ \n8: for agent $m = 1 \\ldots M$ do \n9: $( \\_ , \\mathsf { s t e p } s ) \\gets \\mathtt { r o l l o u t } ( \\pi ^ { m }$ , with noise, over 1 episode) \n10: $\\mathrm { s t e p } \\gets \\mathrm { s t e p } + s$ Collect samples \n11: total_step total_step + s \n12: end for \n13: $C = { \\mathsf { s t e p } } / { K }$ \n14: for policy $\\pi ^ { e }$ in top- $K$ do \n15: Update critic with $\\pi ^ { e }$ for $C$ mini-batches (Eq. 3) Update critic \n16: Update value function (Eq. 4) \n17: end for \n18: for agent $m = 1 \\ldots M$ do \n19: if policy $\\pi ^ { m }$ is in top- $K$ then \n20: Sample $n$ archived policies uniformly from $\\mathcal { G }$ \n21: Update actor $\\pi ^ { m }$ for ${ \\frac { \\mathrm { s t e p } } { M } } \\cdot p$ mini-batches (Eq. 5 and 8 or 9) Update actors \n22: else \n23: Update actor $\\pi ^ { m }$ for ${ \\frac { \\mathrm { s t e p } } { M } } \\cdot p$ mini-batches (Eq. 2) \n24: end if \n25: end for \n26: for agent $m = 1 \\ldots M$ do \n27: $( \\mathrm { F i t n e s s } _ { m } , \\ l _ { - } ) \\gets \\mathtt { r o l l o u t } ( \\pi ^ { m } ,$ , without noise, over $R$ episodes) Evaluate actors \n28: end for \n29: Rank population $\\{ \\pi _ { \\phi , \\theta } ^ { m } \\} _ { m = 1 } ^ { M }$ and identify top- $K$ \n30: update_archiv $\\mathsf { a } ( \\mathcal { G } , \\{ \\pi _ { \\phi , \\theta } ^ { m } \\} _ { m = 1 } ^ { M } , G )$ \n31: end while ",
|
| 1744 |
+
"bbox": [
|
| 1745 |
+
173,
|
| 1746 |
+
147,
|
| 1747 |
+
803,
|
| 1748 |
+
683
|
| 1749 |
+
],
|
| 1750 |
+
"page_idx": 18
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"type": "text",
|
| 1754 |
+
"text": "COMPLEMENTARY PSEUDO-CODE FOR ARAC ",
|
| 1755 |
+
"text_level": 1,
|
| 1756 |
+
"bbox": [
|
| 1757 |
+
174,
|
| 1758 |
+
103,
|
| 1759 |
+
491,
|
| 1760 |
+
117
|
| 1761 |
+
],
|
| 1762 |
+
"page_idx": 19
|
| 1763 |
+
},
|
| 1764 |
+
{
|
| 1765 |
+
"type": "text",
|
| 1766 |
+
"text": "Algorithms 2 and 3 respectively provide the pseudo-code of functions rollout and update_archive used in Algorithm 1. ",
|
| 1767 |
+
"bbox": [
|
| 1768 |
+
174,
|
| 1769 |
+
128,
|
| 1770 |
+
823,
|
| 1771 |
+
159
|
| 1772 |
+
],
|
| 1773 |
+
"page_idx": 19
|
| 1774 |
+
},
|
| 1775 |
+
{
|
| 1776 |
+
"type": "text",
|
| 1777 |
+
"text": "Algorithm 2 rollout ",
|
| 1778 |
+
"text_level": 1,
|
| 1779 |
+
"bbox": [
|
| 1780 |
+
174,
|
| 1781 |
+
174,
|
| 1782 |
+
331,
|
| 1783 |
+
189
|
| 1784 |
+
],
|
| 1785 |
+
"page_idx": 19
|
| 1786 |
+
},
|
| 1787 |
+
{
|
| 1788 |
+
"type": "text",
|
| 1789 |
+
"text": "Input: actor $\\pi$ ; noise status; number of episodes $E$ ; replay buffer $\\boldsymbol { B }$ ; \nFitness $ 0$ \nfor episode $= 1 , \\ldots , E$ do $\\mathbf { s } \\gets$ Initial state ${ \\bf s } _ { 0 }$ from the environment for step $t = 0 \\dots$ termination do if with noise then Sample noise $z$ else Set $z \\gets 0$ end if $\\mathbf { a } _ { t } \\sim \\pi ( . | \\mathbf { s } _ { t } , z )$ Observe $\\mathbf { s } _ { t + 1 } \\sim P ( \\cdot | \\mathbf { s } _ { t } , \\mathbf { a } _ { t } )$ and obtain reward $r _ { t }$ Fitness $\\gets$ Fitness + rt Store transition $( \\mathbf { s } _ { t } , \\mathbf { a } _ { t } , r _ { t } , \\mathbf { s } _ { t + 1 } )$ in $\\boldsymbol { B }$ end for \nend for \nFitness Fitness/ $E$ \nreturn Average fitness per episode and number of steps performed \nInput: archive $\\mathcal { G }$ ; population of size $M$ ; maximal archive capacity $G$ . \nif $| { \\mathcal { G } } | < G$ then Add all agents of current population to $\\mathcal { G }$ \nelse $c _ { 1 } , c _ { 2 } \\gets 2$ -means(fitness of individuals in $\\mathcal { G }$ ) for agent $m = 1 , \\ldots , M$ do Assign agent $m$ to closest cluster $c \\in \\{ c _ { 1 } , c _ { 2 } \\}$ based on its fitness Sample an archived agent $j \\sim \\mathrm { U n i f o r m } ( c )$ Replace archived individual $j$ by $m$ end for \nend if \nreturn Updated archive $\\mathcal { G }$ ",
|
| 1790 |
+
"bbox": [
|
| 1791 |
+
179,
|
| 1792 |
+
194,
|
| 1793 |
+
638,
|
| 1794 |
+
445
|
| 1795 |
+
],
|
| 1796 |
+
"page_idx": 19
|
| 1797 |
+
},
|
| 1798 |
+
{
|
| 1799 |
+
"type": "table",
|
| 1800 |
+
"img_path": "images/2f153b688b5051609a7a9360c4e4c92197f48fd1ffc0763cf0fb6dbfbff1690e.jpg",
|
| 1801 |
+
"table_caption": [],
|
| 1802 |
+
"table_footnote": [],
|
| 1803 |
+
"table_body": "<table><tr><td>Algorithm archive</td></tr></table>",
|
| 1804 |
+
"bbox": [
|
| 1805 |
+
171,
|
| 1806 |
+
479,
|
| 1807 |
+
823,
|
| 1808 |
+
497
|
| 1809 |
+
],
|
| 1810 |
+
"page_idx": 19
|
| 1811 |
+
},
|
| 1812 |
+
{
|
| 1813 |
+
"type": "text",
|
| 1814 |
+
"text": "",
|
| 1815 |
+
"bbox": [
|
| 1816 |
+
183,
|
| 1817 |
+
501,
|
| 1818 |
+
651,
|
| 1819 |
+
672
|
| 1820 |
+
],
|
| 1821 |
+
"page_idx": 19
|
| 1822 |
+
}
|
| 1823 |
+
]
|
parse/train/BJlAzTEKwS/BJlAzTEKwS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJlAzTEKwS/BJlAzTEKwS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkxtNaEYDr/BkxtNaEYDr.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkxtNaEYDr/BkxtNaEYDr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkxtNaEYDr/BkxtNaEYDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkxtNaEYDr/BkxtNaEYDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1bM1fZCW/H1bM1fZCW.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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+
# GRADNORM: GRADIENT NORMALIZATION FOR ADAPTIVE LOSS BALANCING IN DEEP MULTITASK NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Deep multitask networks, in which one neural network produces multiple predictive outputs, are more scalable and often better regularized than their single-task counterparts. Such advantages can potentially lead to gains in both speed and performance, but multitask networks are also difficult to train without finding the right balance between tasks. We present a novel gradient normalization (GradNorm) technique which automatically balances the multitask loss function by directly tuning the gradients to equalize task training rates. We show that for various network architectures, for both regression and classification tasks, and on both synthetic and real datasets, GradNorm improves accuracy and reduces overfitting over single networks, static baselines, and other adaptive multitask loss balancing techniques. GradNorm also matches or surpasses the performance of exhaustive grid search methods, despite only involving a single asymmetry hyperparameter $\alpha$ . Thus, what was once a tedious search process which incurred exponentially more compute for each task added can now be accomplished within a few training runs, irrespective of the number of tasks. Ultimately, we hope to demonstrate that gradient manipulation affords us great control over the training dynamics of multitask networks and may be one of the keys to unlocking the potential of multitask learning.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Single-task learning in computer vision has enjoyed much success in deep learning, with many models now performing at or beyond human accuracies for a wide array of tasks. However, a system that strives for full scene understanding cannot focus on one problem, but needs to perform many diverse perceptual tasks simultaneously. Such systems must also be efficient, especially within the restrictions of limited compute environments in embedded systems such as smartphones, wearable devices, and robots/drones. Multitask learning most naturally lends itself to this problem by sharing weights amongst different tasks within the same model and producing multiple predictions in one forward pass. Such networks are not only scalable, but the shared features within these networks tend to be better regularized and boost performance as a result. In the ideal limit, we can thus have the best of both worlds with multitask networks: both more efficiency and higher performance.
|
| 12 |
+
|
| 13 |
+
The key difficulty in multitask learning lies in the balancing of tasks, and perhaps the simplest way to control this balance is to choose the correct joint loss function. In practice, the multitask loss function is often assumed to be linear in the single task losses, $\begin{array} { r } { L = \sum _ { i } ^ { - } w _ { i } L _ { i } } \end{array}$ , where the sum runs over $T$ tasks. The challenge is then to find the best value for each $w _ { i }$ that balances the contribution of each task for optimal model training. Our proposed method is furthermore an adaptive method, allowing $w _ { i }$ to vary with the training step $t$ , and so $w _ { i } = w _ { i } ( t )$ .
|
| 14 |
+
|
| 15 |
+
Our key insight lies in the observation that these $w _ { i } ( t )$ influence training only because they control the magnitude of the gradients generated from task $i$ . As such, manipulating the gradient norms themselves would be a more direct way to control the training dynamics. More specifically, we propose a simple heuristic that penalizes the network when backpropagated gradients from any task are too large or too small. The correct balance is struck when tasks are training at similar rates; if task $i$ is training relatively quickly, then its weight $w _ { i } ( t )$ should decrease relative to other task weights $w _ { j } ( t ) | _ { j \neq i }$ to allow other tasks more influence on the network. Our method can be said to be a form of batch normalization (Ioffe & Szegedy (2015)) for backpropagation, ensuring that gradients from each task per batch lie on a common statistical scale. We will show that, when implemented, gradient normalization leads to across-the-board improvements in accuracy and suppresses overfitting.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Gradient Normalization. Imbalanced gradient norms (left) result in suboptimal training within a multitask network, so we implement a novel gradient loss $L _ { \mathrm { g r a d } }$ (right) which detects such imbalances in gradient norms amongst tasks and tunes the weights in the loss function to compensate. We illustrate here a simplified case where such balancing results in equalized gradient norms, but in general some tasks may need higher or lower gradient norms relative to other tasks for optimal task balancing (discussed further in Section 3).
|
| 19 |
+
|
| 20 |
+
Our main contributions to the field of multitask learning are as follows:
|
| 21 |
+
|
| 22 |
+
1. An attractively simple heuristic for multitask loss balancing involving training rate equalization, which is implemented through a novel gradient loss function. 2. A simplification to exhaustive grid search (which has compute complexity $\mathcal { O } ( N ^ { T } )$ for $N$ grid points in one dimension) that only involves tuning one robust hyperparameter. 3. Demonstration that direct interaction with gradients provides a powerful way of reasoning about multitask learning.
|
| 23 |
+
|
| 24 |
+
# 2 RELATED WORK
|
| 25 |
+
|
| 26 |
+
Multitask learning has existed well before the advent of deep learning (Caruana (1998); Bakker & Heskes (2003)), but the robust learned features within deep networks have spurned renewed interest. Although our primary application area is computer vision, multitask learning has applications in multiple other fields, from natural language processing (Hashimoto et al. (2016); Collobert & Weston (2008); Søgaard & Goldberg (2016)) to speech synthesis (Wu et al. (2015); Seltzer & Droppo (2013)), from very domain-specific applications like traffic prediction (Huang et al. (2014)) to very general cross-domain work (Bilen & Vedaldi (2017)).
|
| 27 |
+
|
| 28 |
+
Multitask learning is very well-suited to the field of computer vision, where making multiple robust predictions is crucial for complete scene understanding. Deep networks have been used to solve various subsets of multiple vision tasks, from 3-task networks (Eigen & Fergus (2015); Teichmann et al. (2016)) to much larger subsets as in UberNet (Kokkinos (2016)). Often, single computer vision problems can even be framed as multitask problems, such as in Mask R-CNN for instance segmentation (He et al. (2017)) or YOLO-9000 for object detection (Redmon & Farhadi (2016)). Researchers often assume a fixed loss function or network architecture, but there has also been significant work on finding optimal ways to relate tasks to each other in a multitask model. Clustering methods have shown success beyond deep models (Kang et al. (2011); Jacob et al. (2009)), while constructs such as deep relationship networks (Long & Wang (2015)) and cross-stich networks (Misra et al. (2016)) search for meaningful relationships between tasks and learn which features to share between them. Work in Warde-Farley et al. (2014) and Lu et al. (2016) use groupings amongst labels to search through possible architectures for learning. Perhaps the most relevant to the current work, Kendall et al. (2017) uses a joint likelihood formulation to derive task weights based on the intrinsic uncertainty in each task.
|
| 29 |
+
|
| 30 |
+
# 3 METHODOLOGY
|
| 31 |
+
|
| 32 |
+
# 3.1 A GRADIENT LOSS FUNCTION BASED ON RATE BALANCING
|
| 33 |
+
|
| 34 |
+
We begin with the standard multitask loss function with time dependency, $\begin{array} { r } { L ( t ) = \sum w _ { i } ( t ) L _ { i } ( t ) } \end{array}$ , and our goal is to learn the functions $w _ { i } ( t )$ . We argued in Section 1 that $w _ { i } ( t )$ is intimately related to the norm of gradients from each task backpropagated into the network. We thus must motivate a set of desirable gradient magnitudes, and use those desired magnitudes to set the task weights $w _ { i } ( t )$ .
|
| 35 |
+
|
| 36 |
+
Consider the norms of gradients from task $i$ on some set of weights $W$ within the network, n $\mathsf { \Omega } ^ { \mathsf { \tiny { l o r m } } } ( \nabla _ { W } L _ { i } ( t ) )$ (specific choices for $W$ to be discussed later). Our method of gradient normalization (hereafter referred to as GradNorm) works in two steps: (1) We first scale all gradient norms to an equal value as a neutral starting point. This value is most naturally chosen to be the average gradient norm amongst tasks, $E _ { \mathrm { t a s k } } [ \mathrm { n o r m } ( \nabla _ { W } L _ { i } ( t ) ) ]$ , where we use $E _ { \mathrm { t a s k } } [ X ]$ to denote the average value of a task-dependent quantity $X$ across tasks. (2) We then modify gradient norms with a rate balancing term that ensures no task trains relatively too slowly. The gradient norms of task $i$ should grow when task $i$ trains relatively slowly, thereby boosting more sluggish tasks. Gradient norms thus should be an increasing function of the relative inverse training rate for each task.
|
| 37 |
+
|
| 38 |
+
To quantify training rates, we choose the loss ratio of task $i$ at training step $t$ , $L _ { i } ^ { \prime } ( t ) : = L _ { i } ( t ) / L _ { i } ( 0 )$ , as a measure of task $i$ ’s inverse training rate; smaller values of $L _ { i } ^ { \prime } ( t )$ would mean that task $i$ has trained more. If $L _ { i } ^ { \prime } ( t )$ denotes the inverse training rate of task $i$ , then the relative inverse training rate is just $L _ { i } ^ { \prime } ( t ) / \dot { E _ { \mathrm { t a s k } } } [ L _ { i } ^ { \prime } ( t ) ]$ . Using this simple loss ratio metric is valid for both regression squared loss and classification cross-entropy loss, as we will see in Section $5 . 2 ^ { 1 }$ .
|
| 39 |
+
|
| 40 |
+
Our desired gradient norms are therefore:
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
\begin{array} { r l } & { \mathrm { n o r m } ( \nabla _ { W } L _ { i } ( t ) ) \mapsto ( \mathrm { a v e r a g e \ : g r a d i e n t \ : n o r m } ) \times ( \mathrm { r e l a t i v e \ : i n v e r s e \ : t r a i n i n g \ : r a t e \ : o f \ : t a s k \ : } i ) ^ { \alpha } } \\ & { \qquad = E _ { \mathrm { t a s k } } [ \mathrm { n o r m } ( \nabla _ { W } L ( t ) ) ] \left( \frac { L _ { i } ^ { \prime } ( t ) } { E _ { \mathrm { t a s k } } [ L _ { i } ^ { \prime } ( t ) ] } \right) ^ { \alpha } } \end{array}
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
where $\alpha$ is an additional hyperparameter. $\alpha$ sets the strength of rate balancing in the multitask problem, and also is a measure of the asymmetry between tasks. In cases where tasks are very different in their complexity, leading to different learning dynamics, a higher value of $\alpha$ should be used to pull tasks back towards a common training rate more forcefully. When tasks are more symmetric (e.g. the synthetic examples in Section 4), a lower value of $\alpha$ is appropriate. Note that $\alpha = 0$ will always try to pin the norms of backpropped gradients from each task to be equal at $W$ .
|
| 47 |
+
|
| 48 |
+
Equation 1 sets a desired target for our gradient norms, and we want to update our loss weights $w _ { i } ( t )$ to move gradient norms towards this target. To accomplish this, GradNorm is implemented as a loss function $L _ { \mathrm { g r a d } }$ which is just the L1 distance between actual gradient norms and the targets in Equation 1:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
L _ { \mathrm { g r a d } } ^ { ( i ) } ( t ; W ) = \left| \mathrm { n o r m } ( \nabla _ { W } L _ { i } ( t ) ) - E _ { \mathrm { t a s k } } [ \mathrm { n o r m } ( \nabla _ { W } L ( t ) ) ] \left( \frac { L _ { i } ^ { \prime } ( t ) } { E _ { \mathrm { t a s k } } [ L ^ { \prime } ( t ) ] } \right) ^ { \alpha } | . \right.
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
The above loss is for one task; the full loss is just the mean of the individual task losses, $\begin{array} { r } { L _ { \mathrm { g r a d } } ( t ; W ) = ( 1 / T ) \sum _ { i } L _ { \mathrm { g r a d } } ^ { ( i ) } ( t ; W ) } \end{array}$ . $L _ { \mathrm { g r a d } }$ is then differentiated with respect to each $w _ { i } ( t )$ , and its gradients are applied via standard update rules to update these weights (see Figure 1 for a schematic view). In principle, it is also possible to update all network weights (not just $w _ { i } ( t ) )$ based on gradient of $L _ { \mathrm { g r a d } }$ , but in practice this adds undue complexity to the problem and often degrades performance.
|
| 55 |
+
|
| 56 |
+
We can choose $W$ , the weights upon which we rate balance gradient norms, to be any subset of weights within layers of our network. In practice, in order to save on compute overhead, we choose $W$ to be the weights in the last layer which is shared amongst all three tasks. This simplification greatly shortens the number of layers $L _ { \mathrm { g r a d } }$ must be backpropagated through, and with this choice of $W$ in our experiments GradNorm only adds $\sim 5 \%$ of additional compute time. After every update step, we also renormalize the weights $w _ { i } ( t )$ so that $\begin{array} { r } { \sum _ { i } w _ { i } ( t ) = T } \end{array}$ in order to decouple gradient normalization from the global learning rate.
|
| 57 |
+
|
| 58 |
+
# 4 A SIMPLE TOY EXAMPLE
|
| 59 |
+
|
| 60 |
+
To illustrate GradNorm on a simple system, we consider $T$ regression tasks onto the functions
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
f _ { i } ( { \bf x } ) = \sigma _ { i } \operatorname { t a n h } ( ( B + \epsilon _ { i } ) { \bf x } ) ,
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where tanh acts element-wise. We use squared loss to train each task. The matrices $B$ and $\epsilon _ { i }$ have elements generated IID from $\mathcal { N } ( 0 , 1 0 )$ and $\mathcal { N } ( 0 , 3 . 5 )$ , respectively. Our task is thus to perform regression on multiple tasks with shared information $B$ along with information specific to each task, $\epsilon _ { i }$ . The $\sigma _ { i }$ are fixed scalars which set the variance of the outputs $f _ { i }$ . Higher values of $\sigma _ { i }$ induce higher values of squared loss for that task. These tasks are harder to learn due to the higher variances in their response values, but they also backpropagate larger gradients. Classically, such a scenario can lead to suboptimal training dynamics as the higher $\sigma _ { i }$ tasks tend to dominate the training.
|
| 67 |
+
|
| 68 |
+
All toy problem runs use a 4-layer fully-connected ReLU-activated network with 100 neurons per layer as a common trunk. A final affine transformation per task gives $T$ final predictions. Inputs are in $\mathbb { R } ^ { 2 5 0 }$ , and outputs lie in $\mathbb { R } ^ { 1 0 0 }$ . To ensure consistency, we only compare models initialized to the same random values and fed data generated from a fixed random seed. The asymmetry $\alpha$ is set low to 0.12 for these experiments, as the output functions $f _ { i }$ are all of the same form.
|
| 69 |
+
|
| 70 |
+
In these toy problems, we measure the task-normalized test-time loss, which is the sum of the test loss ratios for each task, $\textstyle \sum _ { i } L _ { i } ^ { \prime } ( t )$ . A simple sum of losses is wholly inadequate to judge the overall performance of a multitask network, as it biases itself towards tasks with higher loss scales, and there exists no general metric by which to judge multitask performance in any setting. Luckily, our toy problem was designed with tasks which are statistically identical except for their loss scales $\sigma _ { i }$ . For this simple example, there is therefore a clear measure of overall network performance, which is the sum of losses with each loss normalized to its $\sigma _ { i }$ - precisely the sum of loss ratios.
|
| 71 |
+
|
| 72 |
+
In the case of $T = 2$ , we choose the values $( \sigma _ { 0 } , \sigma _ { 1 } ) = ( 1 . 0 , 1 0 0 . 0 )$ . Classically, task 1 can suppress task 0’s influence during training due to its higher loss scale. As shown in the top panels of Figure 2, gradient normalization remedies the issue by increasing $w _ { 0 } ( t )$ to counteract the larger gradients coming from $T _ { 1 }$ , and the improved task balance results in better test-time performance.
|
| 73 |
+
|
| 74 |
+
The possible benefits of gradient normalization become even clearer when the number of tasks increases. For $T = 1 0$ , we sample the $\sigma _ { i }$ from a normal distribution and plot the results in the bottom row of Figure 2. GradNorm significantly improves test time performance over naively weighting each task the same. Like $T = 2$ , for $T = 1 0$ the $w _ { i } ( t )$ grow larger for smaller $\sigma _ { i }$ tasks; GradNorm is giving tasks with smaller loss scales more breathing room.
|
| 75 |
+
|
| 76 |
+
For both $T = 2$ and $T = 1 0$ , GradNorm is more stable and outperforms the uncertainty weighting proposed by Kendall et al. (2017). Uncertainty weighting, which enforces that $w _ { i } ( t ) \ \tilde { \mathbf { \Omega } } \sim 1 / \bar { L } _ { i } ( t ) \mathbf { \dot { \Omega } }$ , tends to grow weights too large and too quickly as the loss for each task drops. Although such networks train quickly at the onset, the training soon crashes as the global learning rate grows too large. This issue is exacerbated as uncertainty weighting allows $w _ { i } ( t )$ to change unconstrained (compared to GradNorm which ensures $\sum w _ { i } ( t ) = \bar { T }$ always), which pushes global learning rate up even further.
|
| 77 |
+
|
| 78 |
+
Overall, the traces for each $w _ { i } ( t )$ during a single GradNorm run seem fairly stable and convergent. In fact, in Section 5.3 we will see how the time-averaged weights $E _ { t } [ w _ { i } ( t ) ]$ lie close to the optimal static weights, suggesting GradNorm can greatly simplify the tedious grid search procedure.
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Figure 2: Gradient Normalization on a toy 2-task (top) and 10-task (bottom) system. Diagrams of the network structure with loss scales are on the left, traces of $w _ { i } ( t )$ during training in the middle, and task-normalized test loss curves on the right. $\alpha = 0 . 1 2$ for all runs.
|
| 82 |
+
|
| 83 |
+
# 5 APPLICATION TO A LARGE REAL-WORLD DATASET
|
| 84 |
+
|
| 85 |
+
We primarily use NYUv2 as our dataset of choice. The standard NYUv2 dataset carries depth, surface normals, and semantic segmentation labels (which we cluster into 13 distinct classes). NYUv2 is quite small as a dataset, with a training split of ${ \sim } 8 0 0$ examples, but contains both regression and classification labels, making it a good choice to test the robustness of GradNorm.
|
| 86 |
+
|
| 87 |
+
To show GradNorm in action on a more large-scale multitask dataset, we also expand NYUv2 to 40,000 images complete with pixel-wise depth, surface normals, and room keypoint labels. Keypoint labels are obtained through professional human labeling services, while surface normals are generated from camera parameters and the depth maps through standard methods.
|
| 88 |
+
|
| 89 |
+
Following Lee et al. (2017), the state-of-the-art in room layout prediction, all inputs are downsampled to $3 2 0 \times 3 2 0$ pixels and outputs to $8 0 \mathrm { ~ x ~ } 8 0$ pixels. These resolutions also speed up training without compromising complexity in the inputs or labels.
|
| 90 |
+
|
| 91 |
+
# 5.1 MODEL AND INDIVIDUAL TASK LOSSES
|
| 92 |
+
|
| 93 |
+
We try two different models: (1) a SegNet (Badrinarayanan et al. (2015); Lee et al. (2017)) network with a symmetric VGG16 (Simonyan & Zisserman (2014)) encoder/decoder, and (2) an FCN (Long et al. (2015)) network with a modified ResNet-50 (He et al. (2016)) encoder and shallow ResNet decoder. The VGG SegNet reuses maxpool indices to perform upsampling, while the ResNet FCN learns all upsampling filters. The ResNet architecture is further thinned (both in its filters and activations) to contrast with the heavier, more complex VGG SegNet: stride-2 layers are moved earlier and all 2048-filter layers are replaced by 1024-filter layers. Ultimately, the VGG SegNet has 29M parameters versus 15M for the thin ResNet. Although we will focus on the VGG SegNet in our more in-depth analysis, by designing and testing on two extremely different network topologies we will further demonstrate that GradNorm is very robust to the choice of base model.
|
| 94 |
+
|
| 95 |
+
We use standard pixel-wise loss functions for each task: cross entropy for segmentation, squared loss for depth, and cosine similarity for normals. As in Lee et al. (2017), for room layout we generate Gaussian heatmaps for each of 48 room keypoint types and predict these heatmaps with a pixel-wise squared loss. Note that all regression tasks are quadratic losses (our surface normal prediction uses a cosine loss which is quadratic to leading order), allowing us to use the loss ratio $L _ { i } ^ { \prime } ( t )$ of each task as a direct proxy for each task’s inverse training rate.
|
| 96 |
+
|
| 97 |
+
Table 1: Test error, 320x320 NYUv2 for GradNorm and various baselines.
|
| 98 |
+
|
| 99 |
+
<table><tr><td>Model Type and Weighting Method</td><td>Depth Error (m)</td><td>Segmentation 100-mloU (%)</td><td>Normals Error (1-|cosl)</td></tr><tr><td>VGG SegNet, Depth Only</td><td>1.038</td><td>=</td><td></td></tr><tr><td>VGG SegNet, Segmentation Only</td><td>-</td><td>70.0</td><td>=</td></tr><tr><td>VGG SegNet, Normals Only</td><td>=</td><td>=</td><td>0.169</td></tr><tr><td>VGG SegNet, Equal Weights</td><td>0.944</td><td>70.1</td><td>0.192</td></tr><tr><td>VGG SegNet, GradNorm Converged Weights</td><td>0.939</td><td>67.5</td><td>0.171</td></tr><tr><td>VGG SegNet, GradNorm α = 1.5</td><td>0.925</td><td>67.8</td><td>0.174</td></tr></table>
|
| 100 |
+
|
| 101 |
+
# 5.2 NETWORK PERFORMANCE
|
| 102 |
+
|
| 103 |
+
In Table 1 we display the performance of GradNorm on the NYUv2 dataset (with input/output resolutions as described in Section 5). Specific training schemes for all NYUv2 models are detailed in Appendix A. We see that GradNorm improves the performance of all three tasks with respect to the equal-weights baseline (where $w _ { i } ( t ) = 1$ for all $^ { t , i }$ ), and that GradNorm either surpasses or matches (within statistical noise) the best performance of single networks for each task. The GradNorm Converged Weights network is derived by calculating the GradNorm time-averaged weights $E _ { t } [ w _ { i } ( t ) ]$ for each task (e.g. by averaging curves like those found in Appendix B), and retraining a network with weights fixed to those values. GradNorm thus can also be used to extract good values for static weights. We pursue this idea further in Section 5.3 and show that these weights lie very close to the optimal weights extracted from exhaustive grid search.
|
| 104 |
+
|
| 105 |
+
<table><tr><td>Model Type and Weighting Method</td><td>Depth Error (m)</td><td>Keypoint Error (%)</td><td>Normals Error (1-|cos|)</td></tr><tr><td>Thin ResNet FCN, Depth Only</td><td>0.725</td><td>-</td><td>1</td></tr><tr><td>Thin ResNet FCN,Keypoint Only</td><td>1</td><td>7.90</td><td>=</td></tr><tr><td>Thin ResNet FCN, Normals Only</td><td>1</td><td>-</td><td>0.155</td></tr><tr><td>Thin ResNet FCN,Equal Weights</td><td>0.697</td><td>7.80</td><td>0.172</td></tr><tr><td>Thin ResNet FCN, Unc. Weighting (Kendall et al. (2017))</td><td>0.702</td><td>7.96</td><td>0.182</td></tr><tr><td>Thin ResNetFCN,GradNorm Converged Weights</td><td>0.695</td><td>7.63</td><td>0.156</td></tr><tr><td>Thin ResNet FCN, GradNorm α = 1.5</td><td>0.663</td><td>7.32</td><td>0.155</td></tr><tr><td>VGG SegNet, Depth Only</td><td>0.689</td><td>-</td><td>-</td></tr><tr><td>VGG SegNet, Keypoint Only</td><td>1</td><td>8.39</td><td>1</td></tr><tr><td>VGG SegNet, Normals Only</td><td>-</td><td>1</td><td>0.142</td></tr><tr><td>VGG SegNet, Equal Weights</td><td>0.658</td><td>8.39</td><td>0.155</td></tr><tr><td>VGG SegNet, Unc.Weighting (Kendall et al. (2017))</td><td>0.649</td><td>8.00</td><td>0.158</td></tr><tr><td>VGG SegNet, GradNorm Converged Weights</td><td>0.638</td><td>7.69</td><td>0.137</td></tr><tr><td>VGG SegNet, GradNorm α = 1.5</td><td>0.629</td><td>7.73</td><td>0.139</td></tr></table>
|
| 106 |
+
|
| 107 |
+
# Table 2: Test error, expanded 320x320 NYUv2 for GradNorm and various baselines.
|
| 108 |
+
|
| 109 |
+
To show how GradNorm can perform in the presence of a much larger dataset, we also perform extensive experiments on the expanded NYUv2 dataset, which carries a factor of $5 0 \mathrm { x }$ more data. The results are shown in Table 2. As with the standard NYUv2 runs, GradNorm networks outperform other multitask methods, and either matches (within noise) or surpasses the performance of singletask networks.
|
| 110 |
+
|
| 111 |
+
Figure 3 shows test and training loss curves for GradNorm ( $\alpha = 1 . 5$ ) and baselines on the expanded NYUv2 dataset for our VGG SegNet models. GradNorm improves test-time depth error by $\sim 5 \%$ , despite ending with much higher training loss. GradNorm achieves this by aggressively rate balancing the network (enforced by a high asymmetry $\alpha = 1 . 5$ ), and ultimately suppresses the depth weight $w _ { \mathrm { d e p t h } } ( t )$ to lower than 0.10 (see Appendix B for more details). The same trend exists for keypoint regression, and is a clear signal of network regularization. In contrast, the uncertainty weighting technique (Kendall et al. (2017)) causes both test and training error to move in lockstep, and thus is not a good regularizer. Only results for the VGG SegNet are shown here, but the Thin ResNet FCN produces consistent results.
|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
Figure 3: Test and training loss curves for all tasks in expanded NYUv2, VGG16 backbone. GradNorm versus an equal weights baseline and uncertainty weighting (Kendall et al. (2017)).
|
| 115 |
+
|
| 116 |
+
5.3 GRADIENT NORMALIZATION FINDS OPTIMAL GRID-SEARCH WEIGHTS IN ONE PASS
|
| 117 |
+
|
| 118 |
+
For our VGG SegNet, we train 100 networks from scratch with random task weights on expanded NYUv2. Weights are sampled from a uniform distribution and renormalized to sum to $T = 3$ . For computational efficiency, we only train for 15000 iterations out of the normal 80000, and then compare the performance of that network to our GradNorm $\alpha = 1 . 5$ VGG SegNet network at the same 15000 steps. The results are shown in Figure 4.
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 4: Gridsearch performance for random task weights, expanded NYUv2. Average change in performance across three tasks for a static network with weights $w _ { i } ^ { \mathrm { s t a t i c } }$ is plotted against the $L _ { 2 }$ distance between $w _ { i } ^ { \mathrm { s t a t i c } }$ and our GradNorm network’s time-averaged weights, $E _ { t } [ w _ { i } ( t ) ]$ . All comparisons are made at 15000 steps of training.
|
| 122 |
+
|
| 123 |
+
Even after 100 networks trained, grid search still falls short of our GradNorm network. But even more remarkably, there is a strong, negative correlation between network performance and task weight distance to our time-averaged GradNorm weights. At an $L _ { 2 }$ distance of $\sim 3$ , grid search networks on average have almost double the errors per task compared to our GradNorm network. GradNorm has effectively allowed us to “cheat” and immediately find the optimal grid search weights without actually performing grid search, simplifying a process that is usually notoriously laborious.
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 5: Visualizations at inference time. Expanded NYUv2 with room layout labels is shown on the left, while downsampled NYUv2 with semantic segmentation labels is shown on the right.
|
| 127 |
+
|
| 128 |
+
# 5.4 QUALITATIVE RESULTS
|
| 129 |
+
|
| 130 |
+
Figure 5 shows visualizations of the VGG SegNet outputs on test set images along with the ground truth, for both the expanded and downsampled NYUv2 datasets. Ground truth labels are juxtaposed with outputs from the equal weights network, 3 single networks, and our best GradNorm network. The qualitative improvements are incremental, but we find the GradNorm network tends to output smoother, more detailed pixel map predictions when compared to the other two baselines.
|
| 131 |
+
|
| 132 |
+
# 6 CONCLUSIONS
|
| 133 |
+
|
| 134 |
+
Gradient normalization acts as a good model regularizer and leads to superb performance in multitask networks by operating directly on the gradients in the network. GradNorm is driven by the attractively simple heuristic of rate balancing, and can accommodate problems of varying complexities within the same unified model using a single hyperparameter representing task asymmetry. A GradNorm network can also be used to quickly extract optimal fixed task weights, removing the need for exhaustive grid search methods that become exponentially more expensive with the number of tasks. We hope that our work has not only introduced a new methodology for quickly balancing multitask networks, but also has shown how direct gradient manipulation can be a powerful way to reason about task relationships within a multitask framework.
|
| 135 |
+
|
| 136 |
+
# REFERENCES
|
| 137 |
+
|
| 138 |
+
Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. arXiv preprint arXiv:1511.00561, 2015.
|
| 139 |
+
|
| 140 |
+
Bart Bakker and Tom Heskes. Task clustering and gating for bayesian multitask learning. Journal of Machine Learning Research, 4(May):83–99, 2003.
|
| 141 |
+
|
| 142 |
+
Hakan Bilen and Andrea Vedaldi. Universal representations: The missing link between faces, text, planktons, and cat breeds. arXiv preprint arXiv:1701.07275, 2017.
|
| 143 |
+
|
| 144 |
+
Rich Caruana. Multitask learning. In Learning to learn, pp. 95–133. Springer, 1998.
|
| 145 |
+
|
| 146 |
+
Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pp. 160–167. ACM, 2008.
|
| 147 |
+
|
| 148 |
+
David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2650–2658, 2015.
|
| 149 |
+
|
| 150 |
+
Kazuma Hashimoto, Caiming Xiong, Yoshimasa Tsuruoka, and Richard Socher. A joint many-task model: Growing a neural network for multiple nlp tasks. arXiv preprint arXiv:1611.01587, 2016.
|
| 151 |
+
|
| 152 |
+
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.
|
| 153 |
+
|
| 154 |
+
Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. ´ arXiv preprint arXiv:1703.06870, 2017.
|
| 155 |
+
|
| 156 |
+
Wenhao Huang, Guojie Song, Haikun Hong, and Kunqing Xie. Deep architecture for traffic flow prediction: deep belief networks with multitask learning. IEEE Transactions on Intelligent Transportation Systems, 15 (5):2191–2201, 2014.
|
| 157 |
+
|
| 158 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015.
|
| 159 |
+
|
| 160 |
+
Laurent Jacob, Jean-philippe Vert, and Francis R Bach. Clustered multi-task learning: A convex formulation. In Advances in neural information processing systems, pp. 745–752, 2009.
|
| 161 |
+
|
| 162 |
+
Zhuoliang Kang, Kristen Grauman, and Fei Sha. Learning with whom to share in multi-task feature learning. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 521–528, 2011.
|
| 163 |
+
|
| 164 |
+
Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. arXiv preprint arXiv:1705.07115, 2017.
|
| 165 |
+
|
| 166 |
+
Iasonas Kokkinos. Ubernet: Training a universal convolutional neural network for low-, mid-, and high-level vision using diverse datasets and limited memory. arXiv preprint arXiv:1609.02132, 2016.
|
| 167 |
+
|
| 168 |
+
Chen-Yu Lee, Vijay Badrinarayanan, Tomasz Malisiewicz, and Andrew Rabinovich. Roomnet: End-to-end room layout estimation. arXiv preprint arXiv:1703.06241, 2017.
|
| 169 |
+
|
| 170 |
+
Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3431–3440, 2015.
|
| 171 |
+
|
| 172 |
+
Mingsheng Long and Jianmin Wang. Learning multiple tasks with deep relationship networks. arXiv preprint arXiv:1506.02117, 2015.
|
| 173 |
+
|
| 174 |
+
Yongxi Lu, Abhishek Kumar, Shuangfei Zhai, Yu Cheng, Tara Javidi, and Rogerio Feris. Fully-adaptive feature sharing in multi-task networks with applications in person attribute classification. arXiv preprint arXiv:1611.05377, 2016.
|
| 175 |
+
|
| 176 |
+
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, pp. 3994– 4003, 2016.
|
| 177 |
+
|
| 178 |
+
Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. arXiv preprint arXiv:1612.08242, 2016.
|
| 179 |
+
|
| 180 |
+
Michael L Seltzer and Jasha Droppo. Multi-task learning in deep neural networks for improved phoneme recognition. In Acoustics, Speech and Signal Processing (ICASSP), 2013 IEEE International Conference on, pp. 6965–6969. IEEE, 2013.
|
| 181 |
+
|
| 182 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 183 |
+
|
| 184 |
+
Anders Søgaard and Yoav Goldberg. Deep multi-task learning with low level tasks supervised at lower layers. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, volume 2, pp. 231–235, 2016.
|
| 185 |
+
|
| 186 |
+
Marvin Teichmann, Michael Weber, Marius Zoellner, Roberto Cipolla, and Raquel Urtasun. Multinet: Realtime joint semantic reasoning for autonomous driving. arXiv preprint arXiv:1612.07695, 2016.
|
| 187 |
+
|
| 188 |
+
David Warde-Farley, Andrew Rabinovich, and Dragomir Anguelov. Self-informed neural network structure learning. arXiv preprint arXiv:1412.6563, 2014.
|
| 189 |
+
|
| 190 |
+
Zhizheng Wu, Cassia Valentini-Botinhao, Oliver Watts, and Simon King. Deep neural networks employing multi-task learning and stacked bottleneck features for speech synthesis. In Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on, pp. 4460–4464. IEEE, 2015.
|
| 191 |
+
|
| 192 |
+
# Appendices
|
| 193 |
+
|
| 194 |
+
# A GENERAL TRAINING CHARACTERISTICS
|
| 195 |
+
|
| 196 |
+
All runs are trained at a batch size of 24 across 4 Titan X GTX 12GB GPUs and run at 30fps on a single GPU at inference. NYUv2 runs begin with a learning rate of 2e-5. Expanded NYUv2 runs last 80000 steps with a learning rate decay of 0.2 every 25000 steps. Downsampled NYUv2 runs last 20000 steps with a learning rate decay of 0.2 every 6000 steps. Updating $w _ { i } ( t )$ is performed at a learning rate of 0.025 for both GradNorm and the uncertainty weighting (Kendall et al. (2017)) baseline. All optimizers are Adam, although we find that GradNorm is insensitive to the optimizer chosen. We implement GradNorm using TensorFlow v1.2.1.
|
| 197 |
+
|
| 198 |
+
# B EFFECTS OF TUNING THE ASYMMETRY $\alpha$
|
| 199 |
+
|
| 200 |
+
The only hyperparameter in our technique is the asymmetry $\alpha$ . The optimal value of $\alpha$ for NYUv2 lies near $\alpha = 1 . 5$ , while in the highly symmetric toy example in Section 4 we used $\alpha = 0 . 1 2$ . This observation reinforces why we call $\alpha$ an asymmetry parameter.
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
Figure 6: Weights $w _ { i } ( t )$ during training, expanded NYUv2. Traces of how the task weights $w _ { i } ( t )$ change during training for two different values of $\alpha$ . A larger value of $\alpha$ pushes weights farther apart, leading to less symmetry between tasks.
|
| 204 |
+
|
| 205 |
+
Tuning $\alpha$ leads to performance gains, but we found that for NYUv2, almost any value of $0 < \alpha < 3$ will improve network performance over an equal weights baseline. Figure 6 shows that higher values of $\alpha$ tend to push the weights $w _ { i } ( t )$ further apart, which more aggressively reduces the influence of tasks which overfit or learn too quickly (in our case, depth). Remarkably, at $\alpha = 1 . 7 5$ (not shown) $w _ { \mathrm { d e p t h } } ( t )$ is suppressed to below 0.02 at no detriment to network performance on the depth task.
|
parse/train/H1bM1fZCW/H1bM1fZCW_content_list.json
ADDED
|
@@ -0,0 +1,1157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "GRADNORM: GRADIENT NORMALIZATION FOR ADAPTIVE LOSS BALANCING IN DEEP MULTITASK NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
398,
|
| 21 |
+
223
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
261,
|
| 32 |
+
544,
|
| 33 |
+
275
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Deep multitask networks, in which one neural network produces multiple predictive outputs, are more scalable and often better regularized than their single-task counterparts. Such advantages can potentially lead to gains in both speed and performance, but multitask networks are also difficult to train without finding the right balance between tasks. We present a novel gradient normalization (GradNorm) technique which automatically balances the multitask loss function by directly tuning the gradients to equalize task training rates. We show that for various network architectures, for both regression and classification tasks, and on both synthetic and real datasets, GradNorm improves accuracy and reduces overfitting over single networks, static baselines, and other adaptive multitask loss balancing techniques. GradNorm also matches or surpasses the performance of exhaustive grid search methods, despite only involving a single asymmetry hyperparameter $\\alpha$ . Thus, what was once a tedious search process which incurred exponentially more compute for each task added can now be accomplished within a few training runs, irrespective of the number of tasks. Ultimately, we hope to demonstrate that gradient manipulation affords us great control over the training dynamics of multitask networks and may be one of the keys to unlocking the potential of multitask learning. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
292,
|
| 43 |
+
764,
|
| 44 |
+
542
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
570,
|
| 55 |
+
336,
|
| 56 |
+
587
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Single-task learning in computer vision has enjoyed much success in deep learning, with many models now performing at or beyond human accuracies for a wide array of tasks. However, a system that strives for full scene understanding cannot focus on one problem, but needs to perform many diverse perceptual tasks simultaneously. Such systems must also be efficient, especially within the restrictions of limited compute environments in embedded systems such as smartphones, wearable devices, and robots/drones. Multitask learning most naturally lends itself to this problem by sharing weights amongst different tasks within the same model and producing multiple predictions in one forward pass. Such networks are not only scalable, but the shared features within these networks tend to be better regularized and boost performance as a result. In the ideal limit, we can thus have the best of both worlds with multitask networks: both more efficiency and higher performance. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
603,
|
| 66 |
+
825,
|
| 67 |
+
742
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The key difficulty in multitask learning lies in the balancing of tasks, and perhaps the simplest way to control this balance is to choose the correct joint loss function. In practice, the multitask loss function is often assumed to be linear in the single task losses, $\\begin{array} { r } { L = \\sum _ { i } ^ { - } w _ { i } L _ { i } } \\end{array}$ , where the sum runs over $T$ tasks. The challenge is then to find the best value for each $w _ { i }$ that balances the contribution of each task for optimal model training. Our proposed method is furthermore an adaptive method, allowing $w _ { i }$ to vary with the training step $t$ , and so $w _ { i } = w _ { i } ( t )$ . ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
750,
|
| 77 |
+
823,
|
| 78 |
+
834
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Our key insight lies in the observation that these $w _ { i } ( t )$ influence training only because they control the magnitude of the gradients generated from task $i$ . As such, manipulating the gradient norms themselves would be a more direct way to control the training dynamics. More specifically, we propose a simple heuristic that penalizes the network when backpropagated gradients from any task are too large or too small. The correct balance is struck when tasks are training at similar rates; if task $i$ is training relatively quickly, then its weight $w _ { i } ( t )$ should decrease relative to other task weights $w _ { j } ( t ) | _ { j \\neq i }$ to allow other tasks more influence on the network. Our method can be said to be a form of batch normalization (Ioffe & Szegedy (2015)) for backpropagation, ensuring that gradients from each task per batch lie on a common statistical scale. We will show that, when implemented, gradient normalization leads to across-the-board improvements in accuracy and suppresses overfitting. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
840,
|
| 88 |
+
823,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/b7967b2eaf87bf5beb740b4e32f43b0678734733e83b79b85bfeb7b4b8fb6e0f.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Gradient Normalization. Imbalanced gradient norms (left) result in suboptimal training within a multitask network, so we implement a novel gradient loss $L _ { \\mathrm { g r a d } }$ (right) which detects such imbalances in gradient norms amongst tasks and tunes the weights in the loss function to compensate. We illustrate here a simplified case where such balancing results in equalized gradient norms, but in general some tasks may need higher or lower gradient norms relative to other tasks for optimal task balancing (discussed further in Section 3). "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
246,
|
| 102 |
+
111,
|
| 103 |
+
748,
|
| 104 |
+
345
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
474,
|
| 114 |
+
825,
|
| 115 |
+
531
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Our main contributions to the field of multitask learning are as follows: ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
537,
|
| 125 |
+
640,
|
| 126 |
+
553
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "1. An attractively simple heuristic for multitask loss balancing involving training rate equalization, which is implemented through a novel gradient loss function. 2. A simplification to exhaustive grid search (which has compute complexity $\\mathcal { O } ( N ^ { T } )$ for $N$ grid points in one dimension) that only involves tuning one robust hyperparameter. 3. Demonstration that direct interaction with gradients provides a powerful way of reasoning about multitask learning. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
210,
|
| 135 |
+
564,
|
| 136 |
+
825,
|
| 137 |
+
657
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 RELATED WORK ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
176,
|
| 147 |
+
676,
|
| 148 |
+
344,
|
| 149 |
+
693
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Multitask learning has existed well before the advent of deep learning (Caruana (1998); Bakker & Heskes (2003)), but the robust learned features within deep networks have spurned renewed interest. Although our primary application area is computer vision, multitask learning has applications in multiple other fields, from natural language processing (Hashimoto et al. (2016); Collobert & Weston (2008); Søgaard & Goldberg (2016)) to speech synthesis (Wu et al. (2015); Seltzer & Droppo (2013)), from very domain-specific applications like traffic prediction (Huang et al. (2014)) to very general cross-domain work (Bilen & Vedaldi (2017)). ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
173,
|
| 158 |
+
708,
|
| 159 |
+
825,
|
| 160 |
+
805
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Multitask learning is very well-suited to the field of computer vision, where making multiple robust predictions is crucial for complete scene understanding. Deep networks have been used to solve various subsets of multiple vision tasks, from 3-task networks (Eigen & Fergus (2015); Teichmann et al. (2016)) to much larger subsets as in UberNet (Kokkinos (2016)). Often, single computer vision problems can even be framed as multitask problems, such as in Mask R-CNN for instance segmentation (He et al. (2017)) or YOLO-9000 for object detection (Redmon & Farhadi (2016)). Researchers often assume a fixed loss function or network architecture, but there has also been significant work on finding optimal ways to relate tasks to each other in a multitask model. Clustering methods have shown success beyond deep models (Kang et al. (2011); Jacob et al. (2009)), while constructs such as deep relationship networks (Long & Wang (2015)) and cross-stich networks (Misra et al. (2016)) search for meaningful relationships between tasks and learn which features to share between them. Work in Warde-Farley et al. (2014) and Lu et al. (2016) use groupings amongst labels to search through possible architectures for learning. Perhaps the most relevant to the current work, Kendall et al. (2017) uses a joint likelihood formulation to derive task weights based on the intrinsic uncertainty in each task. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
811,
|
| 170 |
+
825,
|
| 171 |
+
924
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "",
|
| 178 |
+
"bbox": [
|
| 179 |
+
173,
|
| 180 |
+
103,
|
| 181 |
+
825,
|
| 182 |
+
202
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "3 METHODOLOGY ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
176,
|
| 192 |
+
220,
|
| 193 |
+
341,
|
| 194 |
+
237
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "3.1 A GRADIENT LOSS FUNCTION BASED ON RATE BALANCING ",
|
| 201 |
+
"text_level": 1,
|
| 202 |
+
"bbox": [
|
| 203 |
+
176,
|
| 204 |
+
251,
|
| 205 |
+
635,
|
| 206 |
+
267
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "We begin with the standard multitask loss function with time dependency, $\\begin{array} { r } { L ( t ) = \\sum w _ { i } ( t ) L _ { i } ( t ) } \\end{array}$ , and our goal is to learn the functions $w _ { i } ( t )$ . We argued in Section 1 that $w _ { i } ( t )$ is intimately related to the norm of gradients from each task backpropagated into the network. We thus must motivate a set of desirable gradient magnitudes, and use those desired magnitudes to set the task weights $w _ { i } ( t )$ . ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
277,
|
| 216 |
+
825,
|
| 217 |
+
334
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "Consider the norms of gradients from task $i$ on some set of weights $W$ within the network, n $\\mathsf { \\Omega } ^ { \\mathsf { \\tiny { l o r m } } } ( \\nabla _ { W } L _ { i } ( t ) )$ (specific choices for $W$ to be discussed later). Our method of gradient normalization (hereafter referred to as GradNorm) works in two steps: (1) We first scale all gradient norms to an equal value as a neutral starting point. This value is most naturally chosen to be the average gradient norm amongst tasks, $E _ { \\mathrm { t a s k } } [ \\mathrm { n o r m } ( \\nabla _ { W } L _ { i } ( t ) ) ]$ , where we use $E _ { \\mathrm { t a s k } } [ X ]$ to denote the average value of a task-dependent quantity $X$ across tasks. (2) We then modify gradient norms with a rate balancing term that ensures no task trains relatively too slowly. The gradient norms of task $i$ should grow when task $i$ trains relatively slowly, thereby boosting more sluggish tasks. Gradient norms thus should be an increasing function of the relative inverse training rate for each task. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
340,
|
| 227 |
+
825,
|
| 228 |
+
467
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "To quantify training rates, we choose the loss ratio of task $i$ at training step $t$ , $L _ { i } ^ { \\prime } ( t ) : = L _ { i } ( t ) / L _ { i } ( 0 )$ , as a measure of task $i$ ’s inverse training rate; smaller values of $L _ { i } ^ { \\prime } ( t )$ would mean that task $i$ has trained more. If $L _ { i } ^ { \\prime } ( t )$ denotes the inverse training rate of task $i$ , then the relative inverse training rate is just $L _ { i } ^ { \\prime } ( t ) / \\dot { E _ { \\mathrm { t a s k } } } [ L _ { i } ^ { \\prime } ( t ) ]$ . Using this simple loss ratio metric is valid for both regression squared loss and classification cross-entropy loss, as we will see in Section $5 . 2 ^ { 1 }$ . ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
473,
|
| 238 |
+
825,
|
| 239 |
+
545
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "Our desired gradient norms are therefore: ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
551,
|
| 249 |
+
446,
|
| 250 |
+
565
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "equation",
|
| 256 |
+
"img_path": "images/015005484898f0f9cef818f83f9efddc0a54ed9e40fba86c239b552e2227d31f.jpg",
|
| 257 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathrm { n o r m } ( \\nabla _ { W } L _ { i } ( t ) ) \\mapsto ( \\mathrm { a v e r a g e \\ : g r a d i e n t \\ : n o r m } ) \\times ( \\mathrm { r e l a t i v e \\ : i n v e r s e \\ : t r a i n i n g \\ : r a t e \\ : o f \\ : t a s k \\ : } i ) ^ { \\alpha } } \\\\ & { \\qquad = E _ { \\mathrm { t a s k } } [ \\mathrm { n o r m } ( \\nabla _ { W } L ( t ) ) ] \\left( \\frac { L _ { i } ^ { \\prime } ( t ) } { E _ { \\mathrm { t a s k } } [ L _ { i } ^ { \\prime } ( t ) ] } \\right) ^ { \\alpha } } \\end{array}\n$$",
|
| 258 |
+
"text_format": "latex",
|
| 259 |
+
"bbox": [
|
| 260 |
+
199,
|
| 261 |
+
568,
|
| 262 |
+
777,
|
| 263 |
+
625
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "where $\\alpha$ is an additional hyperparameter. $\\alpha$ sets the strength of rate balancing in the multitask problem, and also is a measure of the asymmetry between tasks. In cases where tasks are very different in their complexity, leading to different learning dynamics, a higher value of $\\alpha$ should be used to pull tasks back towards a common training rate more forcefully. When tasks are more symmetric (e.g. the synthetic examples in Section 4), a lower value of $\\alpha$ is appropriate. Note that $\\alpha = 0$ will always try to pin the norms of backpropped gradients from each task to be equal at $W$ . ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
633,
|
| 273 |
+
825,
|
| 274 |
+
719
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "Equation 1 sets a desired target for our gradient norms, and we want to update our loss weights $w _ { i } ( t )$ to move gradient norms towards this target. To accomplish this, GradNorm is implemented as a loss function $L _ { \\mathrm { g r a d } }$ which is just the L1 distance between actual gradient norms and the targets in Equation 1: ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
173,
|
| 283 |
+
724,
|
| 284 |
+
825,
|
| 285 |
+
781
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "equation",
|
| 291 |
+
"img_path": "images/2b921ca01451995e4a5b3dbe96bb938214a0740340cc8c1738886bacd25c9dac.jpg",
|
| 292 |
+
"text": "$$\nL _ { \\mathrm { g r a d } } ^ { ( i ) } ( t ; W ) = \\left| \\mathrm { n o r m } ( \\nabla _ { W } L _ { i } ( t ) ) - E _ { \\mathrm { t a s k } } [ \\mathrm { n o r m } ( \\nabla _ { W } L ( t ) ) ] \\left( \\frac { L _ { i } ^ { \\prime } ( t ) } { E _ { \\mathrm { t a s k } } [ L ^ { \\prime } ( t ) ] } \\right) ^ { \\alpha } | . \\right.\n$$",
|
| 293 |
+
"text_format": "latex",
|
| 294 |
+
"bbox": [
|
| 295 |
+
245,
|
| 296 |
+
797,
|
| 297 |
+
753,
|
| 298 |
+
833
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "The above loss is for one task; the full loss is just the mean of the individual task losses, $\\begin{array} { r } { L _ { \\mathrm { g r a d } } ( t ; W ) = ( 1 / T ) \\sum _ { i } L _ { \\mathrm { g r a d } } ^ { ( i ) } ( t ; W ) } \\end{array}$ . $L _ { \\mathrm { g r a d } }$ is then differentiated with respect to each $w _ { i } ( t )$ , and its gradients are applied via standard update rules to update these weights (see Figure 1 for a schematic view). In principle, it is also possible to update all network weights (not just $w _ { i } ( t ) )$ based on gradient of $L _ { \\mathrm { g r a d } }$ , but in practice this adds undue complexity to the problem and often degrades performance. ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
176,
|
| 307 |
+
840,
|
| 308 |
+
826,
|
| 309 |
+
876
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "",
|
| 316 |
+
"bbox": [
|
| 317 |
+
174,
|
| 318 |
+
103,
|
| 319 |
+
823,
|
| 320 |
+
146
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "We can choose $W$ , the weights upon which we rate balance gradient norms, to be any subset of weights within layers of our network. In practice, in order to save on compute overhead, we choose $W$ to be the weights in the last layer which is shared amongst all three tasks. This simplification greatly shortens the number of layers $L _ { \\mathrm { g r a d } }$ must be backpropagated through, and with this choice of $W$ in our experiments GradNorm only adds $\\sim 5 \\%$ of additional compute time. After every update step, we also renormalize the weights $w _ { i } ( t )$ so that $\\begin{array} { r } { \\sum _ { i } w _ { i } ( t ) = T } \\end{array}$ in order to decouple gradient normalization from the global learning rate. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
174,
|
| 329 |
+
152,
|
| 330 |
+
825,
|
| 331 |
+
251
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "4 A SIMPLE TOY EXAMPLE ",
|
| 338 |
+
"text_level": 1,
|
| 339 |
+
"bbox": [
|
| 340 |
+
176,
|
| 341 |
+
271,
|
| 342 |
+
418,
|
| 343 |
+
287
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 3
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "To illustrate GradNorm on a simple system, we consider $T$ regression tasks onto the functions ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
169,
|
| 352 |
+
304,
|
| 353 |
+
790,
|
| 354 |
+
319
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "equation",
|
| 360 |
+
"img_path": "images/c7086989f33d3fb2215af655429503cbb89c362ec9cd842482a483014823a3ad.jpg",
|
| 361 |
+
"text": "$$\nf _ { i } ( { \\bf x } ) = \\sigma _ { i } \\operatorname { t a n h } ( ( B + \\epsilon _ { i } ) { \\bf x } ) ,\n$$",
|
| 362 |
+
"text_format": "latex",
|
| 363 |
+
"bbox": [
|
| 364 |
+
401,
|
| 365 |
+
327,
|
| 366 |
+
594,
|
| 367 |
+
344
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "where tanh acts element-wise. We use squared loss to train each task. The matrices $B$ and $\\epsilon _ { i }$ have elements generated IID from $\\mathcal { N } ( 0 , 1 0 )$ and $\\mathcal { N } ( 0 , 3 . 5 )$ , respectively. Our task is thus to perform regression on multiple tasks with shared information $B$ along with information specific to each task, $\\epsilon _ { i }$ . The $\\sigma _ { i }$ are fixed scalars which set the variance of the outputs $f _ { i }$ . Higher values of $\\sigma _ { i }$ induce higher values of squared loss for that task. These tasks are harder to learn due to the higher variances in their response values, but they also backpropagate larger gradients. Classically, such a scenario can lead to suboptimal training dynamics as the higher $\\sigma _ { i }$ tasks tend to dominate the training. ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
173,
|
| 376 |
+
352,
|
| 377 |
+
825,
|
| 378 |
+
450
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "All toy problem runs use a 4-layer fully-connected ReLU-activated network with 100 neurons per layer as a common trunk. A final affine transformation per task gives $T$ final predictions. Inputs are in $\\mathbb { R } ^ { 2 5 0 }$ , and outputs lie in $\\mathbb { R } ^ { 1 0 0 }$ . To ensure consistency, we only compare models initialized to the same random values and fed data generated from a fixed random seed. The asymmetry $\\alpha$ is set low to 0.12 for these experiments, as the output functions $f _ { i }$ are all of the same form. ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
174,
|
| 387 |
+
455,
|
| 388 |
+
825,
|
| 389 |
+
526
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "In these toy problems, we measure the task-normalized test-time loss, which is the sum of the test loss ratios for each task, $\\textstyle \\sum _ { i } L _ { i } ^ { \\prime } ( t )$ . A simple sum of losses is wholly inadequate to judge the overall performance of a multitask network, as it biases itself towards tasks with higher loss scales, and there exists no general metric by which to judge multitask performance in any setting. Luckily, our toy problem was designed with tasks which are statistically identical except for their loss scales $\\sigma _ { i }$ . For this simple example, there is therefore a clear measure of overall network performance, which is the sum of losses with each loss normalized to its $\\sigma _ { i }$ - precisely the sum of loss ratios. ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
173,
|
| 398 |
+
532,
|
| 399 |
+
825,
|
| 400 |
+
631
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "In the case of $T = 2$ , we choose the values $( \\sigma _ { 0 } , \\sigma _ { 1 } ) = ( 1 . 0 , 1 0 0 . 0 )$ . Classically, task 1 can suppress task 0’s influence during training due to its higher loss scale. As shown in the top panels of Figure 2, gradient normalization remedies the issue by increasing $w _ { 0 } ( t )$ to counteract the larger gradients coming from $T _ { 1 }$ , and the improved task balance results in better test-time performance. ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
174,
|
| 409 |
+
637,
|
| 410 |
+
825,
|
| 411 |
+
694
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "The possible benefits of gradient normalization become even clearer when the number of tasks increases. For $T = 1 0$ , we sample the $\\sigma _ { i }$ from a normal distribution and plot the results in the bottom row of Figure 2. GradNorm significantly improves test time performance over naively weighting each task the same. Like $T = 2$ , for $T = 1 0$ the $w _ { i } ( t )$ grow larger for smaller $\\sigma _ { i }$ tasks; GradNorm is giving tasks with smaller loss scales more breathing room. ",
|
| 418 |
+
"bbox": [
|
| 419 |
+
174,
|
| 420 |
+
700,
|
| 421 |
+
825,
|
| 422 |
+
770
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "For both $T = 2$ and $T = 1 0$ , GradNorm is more stable and outperforms the uncertainty weighting proposed by Kendall et al. (2017). Uncertainty weighting, which enforces that $w _ { i } ( t ) \\ \\tilde { \\mathbf { \\Omega } } \\sim 1 / \\bar { L } _ { i } ( t ) \\mathbf { \\dot { \\Omega } }$ , tends to grow weights too large and too quickly as the loss for each task drops. Although such networks train quickly at the onset, the training soon crashes as the global learning rate grows too large. This issue is exacerbated as uncertainty weighting allows $w _ { i } ( t )$ to change unconstrained (compared to GradNorm which ensures $\\sum w _ { i } ( t ) = \\bar { T }$ always), which pushes global learning rate up even further. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
776,
|
| 432 |
+
825,
|
| 433 |
+
875
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Overall, the traces for each $w _ { i } ( t )$ during a single GradNorm run seem fairly stable and convergent. In fact, in Section 5.3 we will see how the time-averaged weights $E _ { t } [ w _ { i } ( t ) ]$ lie close to the optimal static weights, suggesting GradNorm can greatly simplify the tedious grid search procedure. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
176,
|
| 442 |
+
881,
|
| 443 |
+
823,
|
| 444 |
+
924
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "image",
|
| 450 |
+
"img_path": "images/f3bd541a017b05f81881e8b42a036a9e5d43bbaf3d46522614762465c01e336a.jpg",
|
| 451 |
+
"image_caption": [
|
| 452 |
+
"Figure 2: Gradient Normalization on a toy 2-task (top) and 10-task (bottom) system. Diagrams of the network structure with loss scales are on the left, traces of $w _ { i } ( t )$ during training in the middle, and task-normalized test loss curves on the right. $\\alpha = 0 . 1 2$ for all runs. "
|
| 453 |
+
],
|
| 454 |
+
"image_footnote": [],
|
| 455 |
+
"bbox": [
|
| 456 |
+
184,
|
| 457 |
+
103,
|
| 458 |
+
810,
|
| 459 |
+
397
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "5 APPLICATION TO A LARGE REAL-WORLD DATASET ",
|
| 466 |
+
"text_level": 1,
|
| 467 |
+
"bbox": [
|
| 468 |
+
176,
|
| 469 |
+
479,
|
| 470 |
+
635,
|
| 471 |
+
494
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 4
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "We primarily use NYUv2 as our dataset of choice. The standard NYUv2 dataset carries depth, surface normals, and semantic segmentation labels (which we cluster into 13 distinct classes). NYUv2 is quite small as a dataset, with a training split of ${ \\sim } 8 0 0$ examples, but contains both regression and classification labels, making it a good choice to test the robustness of GradNorm. ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
174,
|
| 480 |
+
511,
|
| 481 |
+
825,
|
| 482 |
+
566
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 4
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "To show GradNorm in action on a more large-scale multitask dataset, we also expand NYUv2 to 40,000 images complete with pixel-wise depth, surface normals, and room keypoint labels. Keypoint labels are obtained through professional human labeling services, while surface normals are generated from camera parameters and the depth maps through standard methods. ",
|
| 489 |
+
"bbox": [
|
| 490 |
+
174,
|
| 491 |
+
574,
|
| 492 |
+
825,
|
| 493 |
+
630
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 4
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "Following Lee et al. (2017), the state-of-the-art in room layout prediction, all inputs are downsampled to $3 2 0 \\times 3 2 0$ pixels and outputs to $8 0 \\mathrm { ~ x ~ } 8 0$ pixels. These resolutions also speed up training without compromising complexity in the inputs or labels. ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
174,
|
| 502 |
+
637,
|
| 503 |
+
825,
|
| 504 |
+
679
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 4
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "5.1 MODEL AND INDIVIDUAL TASK LOSSES ",
|
| 511 |
+
"text_level": 1,
|
| 512 |
+
"bbox": [
|
| 513 |
+
174,
|
| 514 |
+
695,
|
| 515 |
+
493,
|
| 516 |
+
710
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 4
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "We try two different models: (1) a SegNet (Badrinarayanan et al. (2015); Lee et al. (2017)) network with a symmetric VGG16 (Simonyan & Zisserman (2014)) encoder/decoder, and (2) an FCN (Long et al. (2015)) network with a modified ResNet-50 (He et al. (2016)) encoder and shallow ResNet decoder. The VGG SegNet reuses maxpool indices to perform upsampling, while the ResNet FCN learns all upsampling filters. The ResNet architecture is further thinned (both in its filters and activations) to contrast with the heavier, more complex VGG SegNet: stride-2 layers are moved earlier and all 2048-filter layers are replaced by 1024-filter layers. Ultimately, the VGG SegNet has 29M parameters versus 15M for the thin ResNet. Although we will focus on the VGG SegNet in our more in-depth analysis, by designing and testing on two extremely different network topologies we will further demonstrate that GradNorm is very robust to the choice of base model. ",
|
| 523 |
+
"bbox": [
|
| 524 |
+
174,
|
| 525 |
+
722,
|
| 526 |
+
825,
|
| 527 |
+
861
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 4
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "We use standard pixel-wise loss functions for each task: cross entropy for segmentation, squared loss for depth, and cosine similarity for normals. As in Lee et al. (2017), for room layout we generate Gaussian heatmaps for each of 48 room keypoint types and predict these heatmaps with a pixel-wise squared loss. Note that all regression tasks are quadratic losses (our surface normal prediction uses a cosine loss which is quadratic to leading order), allowing us to use the loss ratio $L _ { i } ^ { \\prime } ( t )$ of each task as a direct proxy for each task’s inverse training rate. ",
|
| 534 |
+
"bbox": [
|
| 535 |
+
174,
|
| 536 |
+
868,
|
| 537 |
+
823,
|
| 538 |
+
924
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "table",
|
| 544 |
+
"img_path": "images/f8ff4b1cfeb832ed1d4cddf7121510cd4607408d3f44f002eec93e3ee9dcab78.jpg",
|
| 545 |
+
"table_caption": [
|
| 546 |
+
"Table 1: Test error, 320x320 NYUv2 for GradNorm and various baselines. "
|
| 547 |
+
],
|
| 548 |
+
"table_footnote": [],
|
| 549 |
+
"table_body": "<table><tr><td>Model Type and Weighting Method</td><td>Depth Error (m)</td><td>Segmentation 100-mloU (%)</td><td>Normals Error (1-|cosl)</td></tr><tr><td>VGG SegNet, Depth Only</td><td>1.038</td><td>=</td><td></td></tr><tr><td>VGG SegNet, Segmentation Only</td><td>-</td><td>70.0</td><td>=</td></tr><tr><td>VGG SegNet, Normals Only</td><td>=</td><td>=</td><td>0.169</td></tr><tr><td>VGG SegNet, Equal Weights</td><td>0.944</td><td>70.1</td><td>0.192</td></tr><tr><td>VGG SegNet, GradNorm Converged Weights</td><td>0.939</td><td>67.5</td><td>0.171</td></tr><tr><td>VGG SegNet, GradNorm α = 1.5</td><td>0.925</td><td>67.8</td><td>0.174</td></tr></table>",
|
| 550 |
+
"bbox": [
|
| 551 |
+
204,
|
| 552 |
+
99,
|
| 553 |
+
794,
|
| 554 |
+
205
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 5
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "",
|
| 561 |
+
"bbox": [
|
| 562 |
+
173,
|
| 563 |
+
255,
|
| 564 |
+
823,
|
| 565 |
+
284
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 5
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "5.2 NETWORK PERFORMANCE ",
|
| 572 |
+
"text_level": 1,
|
| 573 |
+
"bbox": [
|
| 574 |
+
176,
|
| 575 |
+
300,
|
| 576 |
+
398,
|
| 577 |
+
314
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 5
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "In Table 1 we display the performance of GradNorm on the NYUv2 dataset (with input/output resolutions as described in Section 5). Specific training schemes for all NYUv2 models are detailed in Appendix A. We see that GradNorm improves the performance of all three tasks with respect to the equal-weights baseline (where $w _ { i } ( t ) = 1$ for all $^ { t , i }$ ), and that GradNorm either surpasses or matches (within statistical noise) the best performance of single networks for each task. The GradNorm Converged Weights network is derived by calculating the GradNorm time-averaged weights $E _ { t } [ w _ { i } ( t ) ]$ for each task (e.g. by averaging curves like those found in Appendix B), and retraining a network with weights fixed to those values. GradNorm thus can also be used to extract good values for static weights. We pursue this idea further in Section 5.3 and show that these weights lie very close to the optimal weights extracted from exhaustive grid search. ",
|
| 584 |
+
"bbox": [
|
| 585 |
+
173,
|
| 586 |
+
325,
|
| 587 |
+
825,
|
| 588 |
+
465
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 5
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "table",
|
| 594 |
+
"img_path": "images/256fbe092f16d825129a4e3005d106ebd1da9598b014c61311e6c1bad6933283.jpg",
|
| 595 |
+
"table_caption": [],
|
| 596 |
+
"table_footnote": [],
|
| 597 |
+
"table_body": "<table><tr><td>Model Type and Weighting Method</td><td>Depth Error (m)</td><td>Keypoint Error (%)</td><td>Normals Error (1-|cos|)</td></tr><tr><td>Thin ResNet FCN, Depth Only</td><td>0.725</td><td>-</td><td>1</td></tr><tr><td>Thin ResNet FCN,Keypoint Only</td><td>1</td><td>7.90</td><td>=</td></tr><tr><td>Thin ResNet FCN, Normals Only</td><td>1</td><td>-</td><td>0.155</td></tr><tr><td>Thin ResNet FCN,Equal Weights</td><td>0.697</td><td>7.80</td><td>0.172</td></tr><tr><td>Thin ResNet FCN, Unc. Weighting (Kendall et al. (2017))</td><td>0.702</td><td>7.96</td><td>0.182</td></tr><tr><td>Thin ResNetFCN,GradNorm Converged Weights</td><td>0.695</td><td>7.63</td><td>0.156</td></tr><tr><td>Thin ResNet FCN, GradNorm α = 1.5</td><td>0.663</td><td>7.32</td><td>0.155</td></tr><tr><td>VGG SegNet, Depth Only</td><td>0.689</td><td>-</td><td>-</td></tr><tr><td>VGG SegNet, Keypoint Only</td><td>1</td><td>8.39</td><td>1</td></tr><tr><td>VGG SegNet, Normals Only</td><td>-</td><td>1</td><td>0.142</td></tr><tr><td>VGG SegNet, Equal Weights</td><td>0.658</td><td>8.39</td><td>0.155</td></tr><tr><td>VGG SegNet, Unc.Weighting (Kendall et al. (2017))</td><td>0.649</td><td>8.00</td><td>0.158</td></tr><tr><td>VGG SegNet, GradNorm Converged Weights</td><td>0.638</td><td>7.69</td><td>0.137</td></tr><tr><td>VGG SegNet, GradNorm α = 1.5</td><td>0.629</td><td>7.73</td><td>0.139</td></tr></table>",
|
| 598 |
+
"bbox": [
|
| 599 |
+
179,
|
| 600 |
+
476,
|
| 601 |
+
818,
|
| 602 |
+
683
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 5
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "Table 2: Test error, expanded 320x320 NYUv2 for GradNorm and various baselines. ",
|
| 609 |
+
"text_level": 1,
|
| 610 |
+
"bbox": [
|
| 611 |
+
205,
|
| 612 |
+
691,
|
| 613 |
+
790,
|
| 614 |
+
707
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 5
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "To show how GradNorm can perform in the presence of a much larger dataset, we also perform extensive experiments on the expanded NYUv2 dataset, which carries a factor of $5 0 \\mathrm { x }$ more data. The results are shown in Table 2. As with the standard NYUv2 runs, GradNorm networks outperform other multitask methods, and either matches (within noise) or surpasses the performance of singletask networks. ",
|
| 621 |
+
"bbox": [
|
| 622 |
+
174,
|
| 623 |
+
722,
|
| 624 |
+
825,
|
| 625 |
+
791
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 5
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "Figure 3 shows test and training loss curves for GradNorm ( $\\alpha = 1 . 5$ ) and baselines on the expanded NYUv2 dataset for our VGG SegNet models. GradNorm improves test-time depth error by $\\sim 5 \\%$ , despite ending with much higher training loss. GradNorm achieves this by aggressively rate balancing the network (enforced by a high asymmetry $\\alpha = 1 . 5$ ), and ultimately suppresses the depth weight $w _ { \\mathrm { d e p t h } } ( t )$ to lower than 0.10 (see Appendix B for more details). The same trend exists for keypoint regression, and is a clear signal of network regularization. In contrast, the uncertainty weighting technique (Kendall et al. (2017)) causes both test and training error to move in lockstep, and thus is not a good regularizer. Only results for the VGG SegNet are shown here, but the Thin ResNet FCN produces consistent results. ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
173,
|
| 634 |
+
797,
|
| 635 |
+
825,
|
| 636 |
+
924
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "image",
|
| 642 |
+
"img_path": "images/c183338d678f77c294cb134b4de7a34e7b41ed89c4c169bcdca0f31b44fa7e1b.jpg",
|
| 643 |
+
"image_caption": [
|
| 644 |
+
"Figure 3: Test and training loss curves for all tasks in expanded NYUv2, VGG16 backbone. GradNorm versus an equal weights baseline and uncertainty weighting (Kendall et al. (2017)). "
|
| 645 |
+
],
|
| 646 |
+
"image_footnote": [],
|
| 647 |
+
"bbox": [
|
| 648 |
+
181,
|
| 649 |
+
104,
|
| 650 |
+
812,
|
| 651 |
+
401
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 6
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "5.3 GRADIENT NORMALIZATION FINDS OPTIMAL GRID-SEARCH WEIGHTS IN ONE PASS",
|
| 658 |
+
"bbox": [
|
| 659 |
+
173,
|
| 660 |
+
486,
|
| 661 |
+
803,
|
| 662 |
+
501
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 6
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "For our VGG SegNet, we train 100 networks from scratch with random task weights on expanded NYUv2. Weights are sampled from a uniform distribution and renormalized to sum to $T = 3$ . For computational efficiency, we only train for 15000 iterations out of the normal 80000, and then compare the performance of that network to our GradNorm $\\alpha = 1 . 5$ VGG SegNet network at the same 15000 steps. The results are shown in Figure 4. ",
|
| 669 |
+
"bbox": [
|
| 670 |
+
174,
|
| 671 |
+
518,
|
| 672 |
+
825,
|
| 673 |
+
588
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 6
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "image",
|
| 679 |
+
"img_path": "images/f5e0772a1680020f60b2627b1c253d7c8279499f16e65c3819998884c4bdd881.jpg",
|
| 680 |
+
"image_caption": [
|
| 681 |
+
"Figure 4: Gridsearch performance for random task weights, expanded NYUv2. Average change in performance across three tasks for a static network with weights $w _ { i } ^ { \\mathrm { s t a t i c } }$ is plotted against the $L _ { 2 }$ distance between $w _ { i } ^ { \\mathrm { s t a t i c } }$ and our GradNorm network’s time-averaged weights, $E _ { t } [ w _ { i } ( t ) ]$ . All comparisons are made at 15000 steps of training. "
|
| 682 |
+
],
|
| 683 |
+
"image_footnote": [],
|
| 684 |
+
"bbox": [
|
| 685 |
+
320,
|
| 686 |
+
631,
|
| 687 |
+
643,
|
| 688 |
+
849
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Even after 100 networks trained, grid search still falls short of our GradNorm network. But even more remarkably, there is a strong, negative correlation between network performance and task weight distance to our time-averaged GradNorm weights. At an $L _ { 2 }$ distance of $\\sim 3$ , grid search networks on average have almost double the errors per task compared to our GradNorm network. GradNorm has effectively allowed us to “cheat” and immediately find the optimal grid search weights without actually performing grid search, simplifying a process that is usually notoriously laborious. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
103,
|
| 698 |
+
825,
|
| 699 |
+
188
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 7
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "image",
|
| 705 |
+
"img_path": "images/93d306774aebeed67a84e1822fd4c9509658329f17e414b9f956c84f6fabc148.jpg",
|
| 706 |
+
"image_caption": [
|
| 707 |
+
"Figure 5: Visualizations at inference time. Expanded NYUv2 with room layout labels is shown on the left, while downsampled NYUv2 with semantic segmentation labels is shown on the right. "
|
| 708 |
+
],
|
| 709 |
+
"image_footnote": [],
|
| 710 |
+
"bbox": [
|
| 711 |
+
245,
|
| 712 |
+
208,
|
| 713 |
+
753,
|
| 714 |
+
563
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 7
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "5.4 QUALITATIVE RESULTS ",
|
| 721 |
+
"text_level": 1,
|
| 722 |
+
"bbox": [
|
| 723 |
+
176,
|
| 724 |
+
648,
|
| 725 |
+
377,
|
| 726 |
+
662
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 7
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "Figure 5 shows visualizations of the VGG SegNet outputs on test set images along with the ground truth, for both the expanded and downsampled NYUv2 datasets. Ground truth labels are juxtaposed with outputs from the equal weights network, 3 single networks, and our best GradNorm network. The qualitative improvements are incremental, but we find the GradNorm network tends to output smoother, more detailed pixel map predictions when compared to the other two baselines. ",
|
| 733 |
+
"bbox": [
|
| 734 |
+
173,
|
| 735 |
+
676,
|
| 736 |
+
825,
|
| 737 |
+
747
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 7
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "6 CONCLUSIONS ",
|
| 744 |
+
"text_level": 1,
|
| 745 |
+
"bbox": [
|
| 746 |
+
176,
|
| 747 |
+
773,
|
| 748 |
+
328,
|
| 749 |
+
790
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 7
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "Gradient normalization acts as a good model regularizer and leads to superb performance in multitask networks by operating directly on the gradients in the network. GradNorm is driven by the attractively simple heuristic of rate balancing, and can accommodate problems of varying complexities within the same unified model using a single hyperparameter representing task asymmetry. A GradNorm network can also be used to quickly extract optimal fixed task weights, removing the need for exhaustive grid search methods that become exponentially more expensive with the number of tasks. We hope that our work has not only introduced a new methodology for quickly balancing multitask networks, but also has shown how direct gradient manipulation can be a powerful way to reason about task relationships within a multitask framework. ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
174,
|
| 758 |
+
809,
|
| 759 |
+
823,
|
| 760 |
+
924
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 7
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "REFERENCES ",
|
| 767 |
+
"text_level": 1,
|
| 768 |
+
"bbox": [
|
| 769 |
+
176,
|
| 770 |
+
103,
|
| 771 |
+
287,
|
| 772 |
+
117
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 8
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. arXiv preprint arXiv:1511.00561, 2015. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
176,
|
| 781 |
+
125,
|
| 782 |
+
823,
|
| 783 |
+
151
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 8
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "Bart Bakker and Tom Heskes. Task clustering and gating for bayesian multitask learning. Journal of Machine Learning Research, 4(May):83–99, 2003. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
173,
|
| 792 |
+
159,
|
| 793 |
+
823,
|
| 794 |
+
185
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 8
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "Hakan Bilen and Andrea Vedaldi. Universal representations: The missing link between faces, text, planktons, and cat breeds. arXiv preprint arXiv:1701.07275, 2017. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
173,
|
| 803 |
+
193,
|
| 804 |
+
823,
|
| 805 |
+
219
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 8
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Rich Caruana. Multitask learning. In Learning to learn, pp. 95–133. Springer, 1998. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
173,
|
| 814 |
+
227,
|
| 815 |
+
676,
|
| 816 |
+
242
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 8
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pp. 160–167. ACM, 2008. ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
173,
|
| 825 |
+
250,
|
| 826 |
+
826,
|
| 827 |
+
287
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 8
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2650–2658, 2015. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
174,
|
| 836 |
+
296,
|
| 837 |
+
823,
|
| 838 |
+
335
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 8
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Kazuma Hashimoto, Caiming Xiong, Yoshimasa Tsuruoka, and Richard Socher. A joint many-task model: Growing a neural network for multiple nlp tasks. arXiv preprint arXiv:1611.01587, 2016. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
173,
|
| 847 |
+
343,
|
| 848 |
+
821,
|
| 849 |
+
371
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"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. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
377,
|
| 859 |
+
823,
|
| 860 |
+
405
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. ´ arXiv preprint arXiv:1703.06870, 2017. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
174,
|
| 869 |
+
411,
|
| 870 |
+
823,
|
| 871 |
+
438
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 8
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Wenhao Huang, Guojie Song, Haikun Hong, and Kunqing Xie. Deep architecture for traffic flow prediction: deep belief networks with multitask learning. IEEE Transactions on Intelligent Transportation Systems, 15 (5):2191–2201, 2014. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
445,
|
| 881 |
+
823,
|
| 882 |
+
486
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 8
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
173,
|
| 891 |
+
493,
|
| 892 |
+
823,
|
| 893 |
+
521
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 8
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Laurent Jacob, Jean-philippe Vert, and Francis R Bach. Clustered multi-task learning: A convex formulation. In Advances in neural information processing systems, pp. 745–752, 2009. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
173,
|
| 902 |
+
527,
|
| 903 |
+
821,
|
| 904 |
+
555
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 8
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "Zhuoliang Kang, Kristen Grauman, and Fei Sha. Learning with whom to share in multi-task feature learning. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 521–528, 2011. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
174,
|
| 913 |
+
561,
|
| 914 |
+
823,
|
| 915 |
+
589
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 8
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. arXiv preprint arXiv:1705.07115, 2017. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
173,
|
| 924 |
+
597,
|
| 925 |
+
821,
|
| 926 |
+
623
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 8
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "Iasonas Kokkinos. Ubernet: Training a universal convolutional neural network for low-, mid-, and high-level vision using diverse datasets and limited memory. arXiv preprint arXiv:1609.02132, 2016. ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
173,
|
| 935 |
+
631,
|
| 936 |
+
823,
|
| 937 |
+
659
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 8
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "Chen-Yu Lee, Vijay Badrinarayanan, Tomasz Malisiewicz, and Andrew Rabinovich. Roomnet: End-to-end room layout estimation. arXiv preprint arXiv:1703.06241, 2017. ",
|
| 944 |
+
"bbox": [
|
| 945 |
+
173,
|
| 946 |
+
665,
|
| 947 |
+
823,
|
| 948 |
+
693
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 8
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3431–3440, 2015. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
173,
|
| 957 |
+
699,
|
| 958 |
+
823,
|
| 959 |
+
727
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 8
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Mingsheng Long and Jianmin Wang. Learning multiple tasks with deep relationship networks. arXiv preprint arXiv:1506.02117, 2015. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
173,
|
| 968 |
+
734,
|
| 969 |
+
823,
|
| 970 |
+
761
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 8
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Yongxi Lu, Abhishek Kumar, Shuangfei Zhai, Yu Cheng, Tara Javidi, and Rogerio Feris. Fully-adaptive feature sharing in multi-task networks with applications in person attribute classification. arXiv preprint arXiv:1611.05377, 2016. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
171,
|
| 979 |
+
768,
|
| 980 |
+
823,
|
| 981 |
+
808
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 8
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "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, pp. 3994– 4003, 2016. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
173,
|
| 990 |
+
815,
|
| 991 |
+
823,
|
| 992 |
+
854
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 8
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. arXiv preprint arXiv:1612.08242, 2016. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
171,
|
| 1001 |
+
862,
|
| 1002 |
+
808,
|
| 1003 |
+
877
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 8
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Michael L Seltzer and Jasha Droppo. Multi-task learning in deep neural networks for improved phoneme recognition. In Acoustics, Speech and Signal Processing (ICASSP), 2013 IEEE International Conference on, pp. 6965–6969. IEEE, 2013. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
174,
|
| 1012 |
+
885,
|
| 1013 |
+
823,
|
| 1014 |
+
924
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 8
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
171,
|
| 1023 |
+
104,
|
| 1024 |
+
821,
|
| 1025 |
+
131
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 9
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "Anders Søgaard and Yoav Goldberg. Deep multi-task learning with low level tasks supervised at lower layers. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, volume 2, pp. 231–235, 2016. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
173,
|
| 1034 |
+
140,
|
| 1035 |
+
821,
|
| 1036 |
+
178
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Marvin Teichmann, Michael Weber, Marius Zoellner, Roberto Cipolla, and Raquel Urtasun. Multinet: Realtime joint semantic reasoning for autonomous driving. arXiv preprint arXiv:1612.07695, 2016. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
173,
|
| 1045 |
+
188,
|
| 1046 |
+
825,
|
| 1047 |
+
213
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 9
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "David Warde-Farley, Andrew Rabinovich, and Dragomir Anguelov. Self-informed neural network structure learning. arXiv preprint arXiv:1412.6563, 2014. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
173,
|
| 1056 |
+
222,
|
| 1057 |
+
821,
|
| 1058 |
+
250
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 9
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "Zhizheng Wu, Cassia Valentini-Botinhao, Oliver Watts, and Simon King. Deep neural networks employing multi-task learning and stacked bottleneck features for speech synthesis. In Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on, pp. 4460–4464. IEEE, 2015. ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
174,
|
| 1067 |
+
257,
|
| 1068 |
+
823,
|
| 1069 |
+
296
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "Appendices ",
|
| 1076 |
+
"text_level": 1,
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
176,
|
| 1079 |
+
98,
|
| 1080 |
+
341,
|
| 1081 |
+
127
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 10
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "A GENERAL TRAINING CHARACTERISTICS ",
|
| 1088 |
+
"text_level": 1,
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
176,
|
| 1091 |
+
148,
|
| 1092 |
+
547,
|
| 1093 |
+
166
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 10
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "All runs are trained at a batch size of 24 across 4 Titan X GTX 12GB GPUs and run at 30fps on a single GPU at inference. NYUv2 runs begin with a learning rate of 2e-5. Expanded NYUv2 runs last 80000 steps with a learning rate decay of 0.2 every 25000 steps. Downsampled NYUv2 runs last 20000 steps with a learning rate decay of 0.2 every 6000 steps. Updating $w _ { i } ( t )$ is performed at a learning rate of 0.025 for both GradNorm and the uncertainty weighting (Kendall et al. (2017)) baseline. All optimizers are Adam, although we find that GradNorm is insensitive to the optimizer chosen. We implement GradNorm using TensorFlow v1.2.1. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
174,
|
| 1102 |
+
180,
|
| 1103 |
+
825,
|
| 1104 |
+
279
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 10
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "B EFFECTS OF TUNING THE ASYMMETRY $\\alpha$ ",
|
| 1111 |
+
"text_level": 1,
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
174,
|
| 1114 |
+
299,
|
| 1115 |
+
547,
|
| 1116 |
+
314
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 10
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "The only hyperparameter in our technique is the asymmetry $\\alpha$ . The optimal value of $\\alpha$ for NYUv2 lies near $\\alpha = 1 . 5$ , while in the highly symmetric toy example in Section 4 we used $\\alpha = 0 . 1 2$ . This observation reinforces why we call $\\alpha$ an asymmetry parameter. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
174,
|
| 1125 |
+
330,
|
| 1126 |
+
825,
|
| 1127 |
+
372
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 10
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "image",
|
| 1133 |
+
"img_path": "images/2d6e46168007d433a28a97f2d802d2041bfe626eed69baf2d7a02338bbc22b14.jpg",
|
| 1134 |
+
"image_caption": [
|
| 1135 |
+
"Figure 6: Weights $w _ { i } ( t )$ during training, expanded NYUv2. Traces of how the task weights $w _ { i } ( t )$ change during training for two different values of $\\alpha$ . A larger value of $\\alpha$ pushes weights farther apart, leading to less symmetry between tasks. "
|
| 1136 |
+
],
|
| 1137 |
+
"image_footnote": [],
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
179,
|
| 1140 |
+
387,
|
| 1141 |
+
808,
|
| 1142 |
+
553
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 10
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Tuning $\\alpha$ leads to performance gains, but we found that for NYUv2, almost any value of $0 < \\alpha < 3$ will improve network performance over an equal weights baseline. Figure 6 shows that higher values of $\\alpha$ tend to push the weights $w _ { i } ( t )$ further apart, which more aggressively reduces the influence of tasks which overfit or learn too quickly (in our case, depth). Remarkably, at $\\alpha = 1 . 7 5$ (not shown) $w _ { \\mathrm { d e p t h } } ( t )$ is suppressed to below 0.02 at no detriment to network performance on the depth task. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
174,
|
| 1151 |
+
623,
|
| 1152 |
+
825,
|
| 1153 |
+
693
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 10
|
| 1156 |
+
}
|
| 1157 |
+
]
|
parse/train/H1bM1fZCW/H1bM1fZCW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1bM1fZCW/H1bM1fZCW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1gEP6NFwr/H1gEP6NFwr.md
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ON THE TUNABILITY OF OPTIMIZERS IN DEEP LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
There is no consensus yet on the question whether adaptive gradient methods like Adam are easier to use than non-adaptive optimization methods like SGD. In this work, we fill in the important, yet ambiguous concept of ‘ease-of-use’ by defining an optimizer’s tunability: How easy is it to find good hyperparameter configurations using automatic random hyperparameter search? We propose a practical evaluation protocol for optimizer tunability that can form the basis for a fair optimizer benchmark. Evaluating a variety of optimizers on an extensive set of standard datasets and architectures, we find that Adam is the most tunable for the majority of problems, especially with a low budget for hyperparameter tuning.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
With the ubiquity of deep learning in various applications, a multitude of first-order stochastic optimizers (Robbins & Monro, 1951) have been in vogue. They have varying algorithmic components like momentum (Sutskever et al., 2013) and adaptive learning rates (Tieleman & Hinton, 2012; Duchi et al., 2011; Kingma & Ba, 2015). With all these choices, picking the optimizer is among the most important design decisions for machine learning practitioners. For this decision, the best possible generalization performance is certainly an important characteristic to be taken into account. However, we argue that in practice, an even more important characteristic is whether the best possible performance can be reached with the available resources.
|
| 12 |
+
|
| 13 |
+
The performance of optimizers strongly depends on the choice of hyperparameter values such as the learning rate. In the machine learning research community, the sensitivity of models to hyperparameters has been of great debate recently, where in multiple cases, reported model advances did not stand the test of time because they can be explained by better hyperparameter tuning (Lucic et al., 2018; Melis et al., 2018; Henderson et al., 2018). This has led to calls for using automatic hyperparameter optimization methods with a fixed budget for a fairer comparison of models (Sculley et al., 2018; Feurer & Hutter, 2019; Eggensperger et al., 2019). For industrial applications, automated machine learning (AutoML, Hutter et al., 2019), which has automatic hyperparameter optimization as one of its key concepts, is becoming increasingly more important. In both cases, an optimization algorithm that achieves good performances with relatively little tuning effort is arguably substantially more useful than an optimization algorithm that achieves top performances, but reaches it only with a lot of careful tuning effort. Hence, we advocate that the performance obtained by an optimizer is not only the best performance obtained when using that optimizer, but also has to account for the cost of tuning its hyperparameters to obtain that performance, thus being dichotomous. We term this concept tunability in this paper.
|
| 14 |
+
|
| 15 |
+
Despite the importance of this concept, there is no standard way of measuring tunability. Works that propose optimization techniques show their performance on various tasks as depicted in Table 1. It is apparent that the experimental settings, as well as the network architectures tested, widely vary, hindering a fair comparison. The introduction of benchmarking suites like DEEPOBS (Schneider et al., 2019) have standardized the tested architectures, however, this does not fix the problem of selecting the hyperparameters themselves, and the effort expended in doing so. Previous studies treat tunability to be the best performance obtained on varying a hyperparameter (Schneider et al., 2019) or by measuring the improvement in performance by tuning a hyperparameter (Probst et al., 2019), but do not take any cognizance to the intermediate performance during the tuning process.
|
| 16 |
+
|
| 17 |
+
Table 1: Experimental settings shown in the original papers of popular optimizers. The large differences in test problems and tuning methods make them difficult to compare. $\gamma$ denotes learning rate, $\mu$ denotes momentum, $\lambda$ is the weight decay coefficient.
|
| 18 |
+
|
| 19 |
+
<table><tr><td>Method</td><td>Datasets</td><td>Network architecture</td><td>Parameter tuning methods</td></tr><tr><td>SGD with momentum (Sutskever et al., 2013)</td><td>Artificial datasets MNIST</td><td>Fully-connected LSTM</td><td>μ = 0.9 for first 1000 updates then μ ∈ {0,0.9,0.98,0.995}. other schedules for μ are used & log1o(γ)∈{-3,-4,-5,-6}</td></tr><tr><td>Adagrad (Duchi et al., 2011)</td><td>ImageNet ranking Reuter RCV1 MNIST KDD Census</td><td>Single layer Handcrafted features Histogram features</td><td>Perfomance on dev-set</td></tr><tr><td>Adam (Kingma & Ba, 2015)</td><td>IMDb MNIST CIFAR10</td><td>Logistic regression Multi-layer perceptron Convolutional network</td><td>β1∈{0,0.9} β∈{0.99,0.999,0.9999} log10(γ)∈{-5,-4,-3,-2,-1}</td></tr><tr><td>AdamW (Loshchilov & Hutter,2019)</td><td>CIFAR 10 ImageNet 32×32</td><td>ResNet CNN</td><td>log2(γ) ∈{-11,-10.-1,0} log2(λ)∈ log2(10-3)+{-5,-4,...,4}</td></tr></table>
|
| 20 |
+
|
| 21 |
+
In this paper, we introduce a fair evaluation protocol for tunability based on automatic hyperparameter optimization, and simple evaluation measures that allow to compare the performance of optimizers under varying resource constraints. By evaluating on a wide range of 9 diverse tasks, we aim to contribute to the debate of adaptive vs. non-adaptive optimizers (Wilson et al., 2017; Shah et al., 2018; Chen & Gu, 2018) . To reach a fair comparison, we experiment with several SGD variants that are often needed to reach good performance. Although a well-tuned SGD variant is able to reach the top performance in some cases, our overall results clearly favor adaptive gradient methods. We therefore conclude that there is substantial value in adaptive gradient methods.
|
| 22 |
+
|
| 23 |
+
# 2 MEASURING TUNABILITY
|
| 24 |
+
|
| 25 |
+
Given the dichotomy of the problem of tunability, we argue that it needs to take into account
|
| 26 |
+
|
| 27 |
+
1. how difficult it is to find a good hyperparameter configuration for the optimizer,
|
| 28 |
+
2. the absolute performance of the optimizer.
|
| 29 |
+
|
| 30 |
+
To see why both are needed, consider Figure 1.a, which shows the performance in terms of loss of four different optimizers as a function of its only hyperparameter $\theta$ (by assumption). If we only consider requirement #1, optimizer C would be considered the best, since every hyperparameter value is the optimum. However, its absolute performance is poor, making it of low practical value. Moreover, due to the same shape, optimizers A and B would be considered equally good, although optimizer A clearly outperforms B. On the other hand, if we only consider requirement #2, optimizers B and D would be considered equally good, although optimizer D’s optimum is harder to find.
|
| 31 |
+
|
| 32 |
+
As we show in Section 5, no existing definition of tunability takes both requirements into account. In the following, we present a formulation that does so.
|
| 33 |
+
|
| 34 |
+
# 2.1 PRELIMINARIES: HYPERPARAMETER OPTIMIZATION
|
| 35 |
+
|
| 36 |
+
We define hyperparameter optimization (HPO) (Feurer & Hutter, 2019) as follows:
|
| 37 |
+
|
| 38 |
+
Definition. Let $\mathcal { M }$ be an optimization algorithm with $N$ hyperparameters $( \theta _ { 1 } , \ldots , \theta _ { N } ) \in \Theta$ . Let $a$ specific instantiation of $\mathcal { M }$ with $\pmb \theta \in \Theta$ be denoted by $\mathcal { M } _ { \theta }$ . Thus, given a dataset $D = D _ { t r a i n } \bigcup D _ { v a l }$ , the following objective is minimized
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
\pmb { \theta } ^ { \star } = \arg \operatorname* { m i n } _ { \pmb { \theta } \in \Theta } \mathcal { L } ( \mathcal { M } _ { \pmb { \theta } } , D _ { v a l } )
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
where $\mathcal { M } _ { \theta }$ is trained on $D _ { t r a i n }$ . In our work, we use $\mathcal { L }$ to be validation loss.
|
| 45 |
+
|
| 46 |
+
We use $\mathcal { L } ( \pmb { \theta } )$ to refer to $\mathcal { L } ( \mathcal { M } _ { \theta } , D _ { v a l } )$ for brevity. In our experiments, we use the time-tested Random Search (Bergstra & Bengio, 2012) algorithm for HPO for simplicity.
|
| 47 |
+
|
| 48 |
+
The ability to easily find good minima depends on the loss surface $\mathcal { L }$ itself. Thus, tunability is a characterization of the HPO’s loss function $\mathcal { L }$ . Here we present a quantification of this idea, which we illustrate with Figure 1.b.
|
| 49 |
+
|
| 50 |
+
Let us assume that there are two optimizers E & F, both with hyperparameter $\theta$ , both of them used to minimize a function (e.g. train a neural network). Let the loss functions of HPO be $\mathcal { L } _ { E }$ and $\mathcal { L } _ { F }$ respectively. As the figure shows, the minimum of $\mathcal { L } _ { E }$ is lower than that of $\mathcal { L } _ { F }$ (denoted by $\theta _ { E } ^ { \star }$ and $\theta _ { F } ^ { \star } .$ ) i.e. $\mathcal { L } _ { E } ( \theta _ { E } ^ { \star } ) < \mathcal { L } _ { F } ( \theta _ { F } ^ { \star } )$ . However, the minimum of $\mathcal { L } _ { E }$ is much sharper than that of $\mathcal { L } _ { F }$ , and in most regions of the parameter space F performs much better than E. This makes it easier to find configurations that already perform well. This makes optimizer F an attractive option when we have no prior knowledge of the good parameter settings.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
1.a: Illustration. It is important to consider both the absolute performance of optimizers as well as the tuning effort to get to good performances.
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
1.b: Illustration. While optimizer E can achieve the best performance after careful tuning, optimizer F is likely to provide better performance under a constrained HPO budget.
|
| 57 |
+
|
| 58 |
+
The key-difference between the two interpretations is whether one prefers a ‘good enough’ performance through fewer hyperparameter configuration searches (in the case of optimizer F), or whether one is willing to spend computational time to get the best possible performance $\left( \theta _ { E } ^ { \star } \right)$ in the case of optimizer E). In this work, we search for the hyperparameter through an HPO like Random Search. Thus, the difference of the two interpretations of tunability lies whether one values results from late stages of the HPO process (i.e. optimizer $\mathrm { E }$ is preferable due to better optimum) more than results from early stages of the HPO process (i.e. optimizer F is preferable).
|
| 59 |
+
|
| 60 |
+
Motivated by these observations, we propose the following metric for tunability.
|
| 61 |
+
|
| 62 |
+
$\omega$ -tunability’s Definition. Let $( \mathbf { \boldsymbol { \theta } } _ { t } , \mathbf { \mathcal { L } } ( \mathbf { \boldsymbol { \theta } } _ { t } ) )$ be the incumbents (best performance attained till $t$ ) of the HPO algorithm at iteration $t$ and $T$ be the hyperparameter tuning budget. For $w _ { t } > 0 \forall t$ and $\textstyle \sum _ { t } w _ { t } < \infty$ , we define $\omega$ -tunability as
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\omega \ – t u n a b i l i t y = \sum _ { t = 1 } ^ { T } \omega _ { t } \mathcal { L } _ { t }
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
i.e, $\omega$ -tunability is a weighted sum of the incumbents $\mathcal { L } ( \pmb { \theta } _ { t } )$ . In our experiments we use $\textstyle \sum _ { t } \omega _ { t } = 1$
|
| 69 |
+
|
| 70 |
+
By appropriately choosing the weights $\left\{ \omega _ { t } \right\}$ , we can interpolate between our two notions of tunability. In the extreme case where we are only interested in the peak performance of the optimizer, we can set $\omega _ { T } = 1$ and set the other weights to zero. In the opposite extreme case where we are interested in the "one-shot tunability" of the optimizer, we can set $\omega _ { 1 } = 1$ . In general, we can answer the question of "How well does the optimizer perform with a budget of $K$ iterations?" by setting $\omega _ { i } = { \bf 1 } _ { \mathrm { i = K } }$ .
|
| 71 |
+
|
| 72 |
+
While the above weighting scheme is intuitive, merely computing the performance after expending HPO budget of $K$ does not consider the performance obtained after the previous $K - 1$ iterations i.e. we would like to differentiate the cases where a requisite performance is attained by tuning an optimizer for $K$ iterations and another for $K _ { 1 }$ iterations, where $K _ { 1 } \gg K$ . Therefore, we employ three additional weighting schemes. By setting $\omega _ { i } \propto ( T - i )$ , our first one puts more emphasis on the earlier stages of the hyperparameter tuning process. We term this weighting scheme Cumulative Performance-Early $( C P E )$ . In contrast, the second weighting scheme, Cumulative Performance-Late $( C P L )$ puts more emphasis on late stages of tuning, and thus on obtaining a better performance at a higher tuning cost: $\omega _ { i } \propto i$ . As a intermediate of the two, we also report a uniform weighting Cumulative Performance-Uniform $( C P U ) : \omega _ { i } = 1 / T$ .
|
| 73 |
+
|
| 74 |
+
# 3 OPTIMIZERS AND THEIR HYPERPARAMETERS
|
| 75 |
+
|
| 76 |
+
# 3.1 PARAMETERS OF THE OPTIMIZERS
|
| 77 |
+
|
| 78 |
+
To compare the tunability of adaptive gradient methods to non-adaptive methods, we choose the most commonly used optimizers from both the strata; SGD and SGD with momentum for non-adaptive methods, and Adagrad and Adam for adaptive gradient methods. Since adaptive gradient methods are said to work well with their default hyperparameter values already, we additionally employ a default version of Adam where we only tune the initial learning rate and set the other hyperparameters to the values recommended in the original paper (Kingma & Ba, 2015) (termed AdamLR). Such a scheme has been used by Schneider et al. too. A similar argument can be made for SGD with momentum (termed SGDM): thus we experiment with a fixed momentum value of 0.9 (termed SGDMC).
|
| 79 |
+
|
| 80 |
+
In addition to standard parameters in all optimizers, we consider weight decay with SGD too. SGD with weight decay can be considered as an optimizer with two steps where the first step is to scale current weights with the decay value, followed by a normal descent step (Loshchilov & Hutter, 2019). Thus we devise two additional experiments for SGD with weight-decay where we tune weight-decay along with momentum (termed SGDMW), and one where we fix it to $1 0 ^ { - 5 }$ (termed $\mathbf { S G D M ^ { C } W } ^ { \dot { \mathbf { C } } } ,$ ) along with the momentum being fixed to 0.9, which is the value for weight decay we found to be consistently better through HPO. The full list of optimizers we consider is provided in Table 4
|
| 81 |
+
|
| 82 |
+
Manually defining a specific number of epochs can be biased towards one optimizer, as one optimizer may reach good performance in the early epochs of a single HPO iteration, whereas another may reach higher peaks more slowly. In order to alleviate this, it would be possible to add the number of training epochs as an additional hyperparameter to be searched. Since this would incur even higher computational cost, we instead use a validation set performance as stopping criterion. Thus we stop training when the validation loss plateaus for more than 2 epochs or if the number of epochs exceeds the predetermined maximum number as set in DEEPOBS.
|
| 83 |
+
|
| 84 |
+
# 3.2 CALIBRATION OF HYPERPARAMETER DISTRIBUTIONS
|
| 85 |
+
|
| 86 |
+
As mentioned previously, we use Random Search for optimizing the hyperparameters, which requires distributions of random variables to sample from. Choosing poor distributions to sample from impacts the performance, and may break requisite properties (e.g. learning rate is non-negative). For some of the parameters listed in Table 2, obvious bounds exist due their mathematical properties, or have been prescribed by the optimizer designers themselves. For example, Kingma & Ba (2015) bound $\beta _ { 1 } , \beta _ { 2 }$ to $[ 0 , 1 )$ and specify that they are close to 1. In the absence of such prior knowledge, we devise a simple method to determine the priors.
|
| 87 |
+
|
| 88 |
+
We train each task specified in the DEEPOBS with a large number of hyperparameter samplings and retain the hyperparameters which resulted in performance within $2 0 \%$ of the best performance obtained. For each of the hyperparameters in this set, we fit the distributions in the third column of Table 2 using maximum likelihood estimation. In doing so, we make a simplifying assumption that all the hyperparameters are independent of each other. We argue that these distributions are appropriate; the only condition on learning rate is non-negativity that is inherent to the log-normal distribution, momentum is non-negative with a usual upper bound of 1, $\beta \mathrm { { s } }$ in Adam have been prescribed to be less than 1 but close to it, $\epsilon$ is used to avoid divide-by-zero error and thus is a small positive value close to 0. We report the parameters of the distributions obtained after the fitting in Table 2. The calibration procedure’s performance is not included in the tunability computation.
|
| 89 |
+
|
| 90 |
+
Table 2: Optimizers evaluated. For each hyperparameter, we calibrated a ‘sampling distribution’ to give good results across tasks (Section 3.2). $\boldsymbol { \bar { \mathcal { U } } } [ \boldsymbol { a } , \boldsymbol { b } ]$ is the continuous uniform distribution on $[ a , b ]$ . Log-uniform $( a , b )$ is a distribution whose logarithm is $\mathcal { U } [ a , b ]$ . Log-normal $( \mu , \sigma )$ is a distribution whose logarithm is normally distributed with mean $\mu$ and standard deviation $\sigma$ .
|
| 91 |
+
|
| 92 |
+
<table><tr><td>Optimizer</td><td>Tunable parameters</td><td>Sampling distribution</td></tr><tr><td rowspan="3">Stochastic Gradient Descent</td><td>Learning rate</td><td>Log-normal(-2.09,1.312)</td></tr><tr><td>Momentum</td><td>u[0,1]</td></tr><tr><td>Weight decay</td><td>Log-uniform(-5,-1)</td></tr><tr><td>Adagrad</td><td>Learning rate</td><td>Log-normal(-2.004,1.20)</td></tr><tr><td rowspan="3">Adam</td><td>Learning rate</td><td>Log-normal(-2.69,1.42)</td></tr><tr><td>β1,β</td><td>Log-uniform(-5, -1)</td></tr><tr><td>E</td><td>Log-uniform(-8,0)</td></tr></table>
|
| 93 |
+
|
| 94 |
+
Table 3: Models and datasets used. We use the DeepOBS benchmark set (Schneider et al., 2019). Details are provided in Appendix A.
|
| 95 |
+
|
| 96 |
+
<table><tr><td>Architecture</td><td>Datasets</td></tr><tr><td>Convolutional net</td><td>FMNIST, CIFAR10/100</td></tr><tr><td>Variational autoencoder</td><td>FMNIST,I</td></tr><tr><td>Wide residual network</td><td>SVHN</td></tr><tr><td>CharacterRNN</td><td>Tolstoi's War and Peace</td></tr><tr><td>Quadratic function</td><td>Artificial datatset</td></tr><tr><td>LSTM</td><td>IMDb</td></tr></table>
|
| 97 |
+
|
| 98 |
+
Table 4: Optimizers and tunable parameters. $\gamma$ is learning rate, $\mu$ is momentum, $\lambda$ is the weight decay coefficient.
|
| 99 |
+
|
| 100 |
+
<table><tr><td>Optimizer</td><td>Tunable parameters</td></tr><tr><td>SGD</td><td>γ(μ=0,λ=0)</td></tr><tr><td>SGDM</td><td>Y,μ(入=0)</td></tr><tr><td>SGDMC SGDMCWC</td><td>γ (μ=0.9,λ=0) γ (μ=0.9,λ=10-5)</td></tr><tr><td>SGDMW</td><td>Y,μ,入</td></tr><tr><td>Adagrad</td><td>Y</td></tr><tr><td>AdamLR Adam</td><td>γ (β1=0.9,β2=0.999,∈=10-8) Y,β1,β2,E</td></tr></table>
|
| 101 |
+
|
| 102 |
+
# 4 EXPERIMENTS AND RESULTS
|
| 103 |
+
|
| 104 |
+
To assess the tunability of optimizers’ hyperparameters for the training of deep neural networks, we benchmark using the open-source suite DEEPOBS (Schneider et al., 2019). The architectures and datasets we experiment are given in Table 3. We refer the reader to Schneider et al. (2019) for specific details of the architectures. To obtain a better balance between vision and NLP applications, we added an LSTM network with the task of sentiment classification in the IMDB dataset (Maas et al., 2011), details for which are provided in Appendix A.
|
| 105 |
+
|
| 106 |
+
# 4.1 HYPERPARAMETERS AND IMPLEMENTATION
|
| 107 |
+
|
| 108 |
+
The performance of automatic hyperparameter search methods is dependent on its own hyperparameters, which play an important role in the outcome, e.g number of configurations to test. In our experiments, we evaluate 100 configurations with each of the hyperparameter optimization methods. As we use random search, we simulate multiple runs of these 100 configurations through shuffling. This gives us the variance of performance at each step.
|
| 109 |
+
|
| 110 |
+
# 4.2 ANALYSIS OF TUNABILITY
|
| 111 |
+
|
| 112 |
+
We analyze the tunability for the various weighting schemes proposed. For the weighting scheme $\omega _ { i } = { \bf 1 } _ { \mathrm { i = K } }$ , for increasing values of $K$ , we show the performance as well as its variance in Figure 3. For readability, we show only results for Adam, AdamLR, Adagrad and SGDMW, and the rest are given in Appendix C. It is quite apparent that in most of the tasks, a well tuned SGD with momentum and weight decay is as good as Adam (for large $K$ ). However, the gap in the performance is quite noticeable when AdamLR outperforms SGD in the VAE tasks and the IMDB task. In the case of image classification problems, SGD variants fare the best, as it has been reported before (Keskar & Socher, 2017). It is interesting to notice that for $K { = } 4$ , the decreasing order of variance is nearly always SGDMW, Adam, Adagrad, AdamLR (10 out of 11 cases), even if AdamLR marginally underperforms as it is in the case of Quadratic Deep. Given this formulation, we ask the following question: given an HPO budget of $K$ , what is the best choice for optimizer? We answer this in Appendix D.
|
| 113 |
+
|
| 114 |
+
For the other weighting schemes, tunability scores are reported in Table 5. We see that there is no one optimizer that is best across three schemes, and tasks presented. A similar trend of SGD doing better than the adaptive gradient methods on image classification tasks is evident. Considering CPE, we observe that AdamLR performs the best in 6 out 9 tasks, where as the other three times $\mathrm { \Delta S G D M ^ { C } W ^ { C } }$ performs the best. The trend is not very obvious for CPU and CPL. In the case of CPU, AdamLR wins 5 out of 9 tasks, $\mathbf { S G D M ^ { C } W ^ { C } }$ wins twice, and SGDM wins once. For CPL, AdamLR wins 4 out of 9, and the $\mathbf { S G D M ^ { C } W ^ { C } }$ wins once, and SGDM and $\mathbf { S G D M ^ { C } }$ win twice each. Summarizing, if peak-performance or even evolving to better performance at a larger hyperparameter search cost, SGD variants are better 5 out 9 times. However, if a good performance is expected in the earlier iterations of hyperparameter search, AdamLR is very competitive. Also, the default parameters of $\beta _ { 1 } , \beta _ { 2 } , \epsilon$ of Adam optimizer result in quite good performance, to the point that Adam is rarely the better alternative over AdamLR. A known exception is training Inception networks (Abadi et al., 2015), where $\epsilon$ is recommended to be set to 0.1.
|
| 115 |
+
|
| 116 |
+
For some of the cases, the tunablities reported are very similar for the AdamLR and SGD variants. However, tuning Adam is very different from tuning SGD from a wall-clock time measurement. For example, we find that for the case of CIFAR-10, AdamLR requires on average $39 \%$ fewer epochs to complete training than $\mathbf { S G D M ^ { C } }$ (the top perfomer); thus being that much faster than $\mathrm { S G D M ^ { C } }$ in wall-clock time. It can be argued that a more practical form of hyperparameter tuning budget is wall-clock time i.e. if a wall-clock time budget of $K$ minutes is given, how do our findings vary? In short, we find similar trends as we noticed before. We provide the details in Appendix E.
|
| 117 |
+
|
| 118 |
+
# 4.3 SUMMARIZING ACROSS DATASETS
|
| 119 |
+
|
| 120 |
+
To get a better understanding of an optimizer’s aggregate tunability across datasets compared to the rest, we compute summary statistics for an optimizer $o$ ’s performance after $k$ iterations in the following way:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
S ( o , k ) = \frac { 1 } { | \mathcal { P } | } \sum _ { p \in \mathcal { P } } \frac { o ( k , p ) } { \operatorname* { m a x } _ { o ^ { \prime } \in \mathcal { O } } o ^ { \prime } ( k , p ) } ,
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
where $o ( k , p )$ denotes the performance of optimizer $o \in \mathcal { O }$ on test problem $p \in \mathcal P$ after $k$ iterations of the HPO process (i.e. $\omega$ -tunability with $\omega _ { i } = \mathbf { 1 } _ { \mathrm { i = k } }$ ). In other words, we compute the average relative performance of an optimizer to the best performance of any optimizer over all tasks.
|
| 127 |
+
|
| 128 |
+

|
| 129 |
+
Figure 2: Aggregated relative tunability of each optimizer across datasets
|
| 130 |
+
|
| 131 |
+
The results are in Figure 2 and show that AdamLR performs very close to the best optimizer throughout the HPO process and is the best till about the $6 0 ^ { \mathrm { t h } }$ iteration. In early stages of HPO, the SGD variants perform $10 \mathrm { - } 2 0 \%$ worse than Adam, but improve as the HPO progresses.
|
| 132 |
+
|
| 133 |
+
# 5 RELATED WORK
|
| 134 |
+
|
| 135 |
+
There exist few works that have tried to define and investigate tunability formally. Assessing the impact of hyperparameter tuning for decision tree models, Mantovani et al. (2018) count the number of times the tuned hyperparameter values are (statistically significantly) better than the default values. Probst et al. (2019) define tunability of an ML algorithm as the performance difference between a reference configuration (e.g., the default hyperparameters of the algorithm) and the best possible configuration on each dataset. This metric is comparable across ML algorithms, but it disregards entirely the absolute performance of ML algorithms. Schneider et al. (2019) recently released a benchmark for optimizers that evaluates their peak performance and speed. Tunability is assessed as the sensitivity of the performance to changes of the learning rate. In all three aforementioned studies, the definitions of tunability would fail to identify the superiority of optimizer A over optimizer B in Figure 1.a.
|
| 136 |
+
|
| 137 |
+
The study by Wilson et al. (2017) finds SGD-based methods as easy to tune as adaptive gradient methods. However, their study lacks a clear definition of tunability and tunes the algorithms on manually selected, dataset dependent grid values. The study by Shah et al. (2018) applies a similar methodology and comes to similar conclusions regarding tunability. Since both studies only consider the best parameter configuration, their approach would be unable to identify the better optimizer among B and D in Figure 1.a. In contrast, the methodology in our study is able to distinguish all the cases depicted in Figure 1.a.
|
| 138 |
+
|
| 139 |
+
Table 5: Performance of various experiments.
|
| 140 |
+
|
| 141 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>91.3</td><td>91.4</td><td>91.6</td></tr><tr><td>Adam</td><td>91.3</td><td>91.5</td><td>91.8</td></tr><tr><td>AdamLR</td><td>91.3</td><td>91.6</td><td>91.9</td></tr><tr><td>SGD</td><td>90.4</td><td>90.8</td><td>91.2</td></tr><tr><td>SGDM</td><td>90.5</td><td>90.9</td><td>91.3</td></tr><tr><td>SGDMC</td><td>90.7</td><td>90.9</td><td>91.1</td></tr><tr><td>SGDMCWC</td><td>90.7</td><td>90.9</td><td>91.1</td></tr><tr><td>SGDMW</td><td>90.4</td><td>90.8</td><td>91.3</td></tr></table>
|
| 142 |
+
|
| 143 |
+
5.a: FMNIST 2C2D. Higher is better
|
| 144 |
+
|
| 145 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>76.4</td><td>77.1</td><td>77.9</td></tr><tr><td>Adam</td><td>77.2</td><td>78.4</td><td>79.5</td></tr><tr><td>AdamLR</td><td>78.8</td><td>79.4</td><td>80.0</td></tr><tr><td>SGD</td><td>77.0</td><td>77.8</td><td>78.6</td></tr><tr><td>SGDM</td><td>77.8</td><td>78.6</td><td>79.5</td></tr><tr><td>SGDMC</td><td>78.6</td><td>79.4</td><td>80.1</td></tr><tr><td>SGDMCWC</td><td>81.1</td><td>81.6</td><td>82.0</td></tr><tr><td>SGDMW</td><td>79.7</td><td>80.4</td><td>81.2</td></tr></table>
|
| 146 |
+
|
| 147 |
+
5.b: CIFAR 10. Higher is better
|
| 148 |
+
|
| 149 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>30.4</td><td>31.8</td><td>33.1</td></tr><tr><td>Adam</td><td>39.4</td><td>42.2</td><td>45.1</td></tr><tr><td>AdamLR</td><td>42.2</td><td>43.0</td><td>43.8</td></tr><tr><td>SGD</td><td>31.8</td><td>34.2</td><td>36.6</td></tr><tr><td>SGDM</td><td>40.6</td><td>43.3</td><td>46.0</td></tr><tr><td>SGDMC</td><td>42.1</td><td>43.3</td><td>44.5</td></tr><tr><td>SGDMCWC</td><td>39.2</td><td>40.3</td><td>41.5</td></tr><tr><td>SGDMW</td><td>33.5</td><td>37.2</td><td>41.0</td></tr></table>
|
| 150 |
+
|
| 151 |
+
5.c: CIFAR 100. Higher the better
|
| 152 |
+
|
| 153 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>84.3</td><td>84.8</td><td>85.3</td></tr><tr><td>Adam</td><td>83.6</td><td>84.5</td><td>85.5</td></tr><tr><td>AdamLR</td><td>85.8</td><td>86.0</td><td>86.3</td></tr><tr><td>SGD</td><td>68.1</td><td>69.3</td><td>70.5</td></tr><tr><td>SGDM</td><td>74.3</td><td>75.9</td><td>77.5</td></tr><tr><td>SGDMC</td><td>79.3</td><td>80.1</td><td>81.0</td></tr><tr><td>SGDMCWC</td><td>78.8</td><td>79.4</td><td>80.0</td></tr><tr><td>SGDMW</td><td>75.7</td><td>77.1</td><td>78.6</td></tr></table>
|
| 154 |
+
|
| 155 |
+
5.d: IMDB. Higher is better
|
| 156 |
+
|
| 157 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>94.8</td><td>94.9</td><td>95.0</td></tr><tr><td>Adam</td><td>94.5</td><td>94.8</td><td>95.2</td></tr><tr><td>AdamLR</td><td>95.1</td><td>95.3</td><td>95.4</td></tr><tr><td>SGD</td><td>94.6</td><td>94.9</td><td>95.2</td></tr><tr><td>SGDM</td><td>94.8</td><td>95.2</td><td>95.6</td></tr><tr><td>SGDMC</td><td>94.9</td><td>95.1</td><td>95.3</td></tr><tr><td>SGDMCWC</td><td>95.2</td><td>95.4</td><td>95.5</td></tr><tr><td>SGDMW</td><td>95.0</td><td>95.2</td><td>95.3</td></tr></table>
|
| 158 |
+
|
| 159 |
+
5.e: WRN-16(4). Higher is better
|
| 160 |
+
|
| 161 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>55.6</td><td>56.2</td><td>56.7</td></tr><tr><td>Adam</td><td>54.4</td><td>55.7</td><td>57.0</td></tr><tr><td>AdamLR</td><td>56.9</td><td>57.2</td><td>57.5</td></tr><tr><td>SGD</td><td>40.3</td><td>42.5</td><td>44.6</td></tr><tr><td>SGDM</td><td>51.4</td><td>54.0</td><td>56.5</td></tr><tr><td>SGDMC</td><td>55.6</td><td>57.0</td><td>58.3</td></tr><tr><td>SGDMCWC</td><td>54.2</td><td>55.6</td><td>57.0</td></tr><tr><td>SGDMW</td><td>45.1</td><td>48.2</td><td>51.2</td></tr></table>
|
| 162 |
+
|
| 163 |
+
5.f: Char-RNN. Higher is better
|
| 164 |
+
|
| 165 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>30.3</td><td>29.4</td><td>28.4</td></tr><tr><td>Adam</td><td>33.2</td><td>31.2</td><td>29.1</td></tr><tr><td>AdamLR</td><td>29.2</td><td>28.6</td><td>27.9</td></tr><tr><td>SGD</td><td>53.3</td><td>53.1</td><td>52.9</td></tr><tr><td>SGDM</td><td>36.0</td><td>32.9</td><td>29.9</td></tr><tr><td>SGDMC</td><td>54.1</td><td>53.5</td><td>53.0</td></tr><tr><td>SGDMCWC</td><td>54.0</td><td>53.5</td><td>53.0</td></tr><tr><td>SGDMW</td><td>34.6</td><td>32.2</td><td>29.8</td></tr></table>
|
| 166 |
+
|
| 167 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>25.5</td><td>24.7</td><td>24.0</td></tr><tr><td>Adam</td><td>26.0</td><td>24.8</td><td>23.7</td></tr><tr><td>AdamLR</td><td>24.6</td><td>24.0</td><td>23.5</td></tr><tr><td>SGD</td><td>26.2</td><td>25.5</td><td>24.8</td></tr><tr><td>SGDM</td><td>26.2</td><td>25.4</td><td>24.6</td></tr><tr><td>SGDMC</td><td>28.6</td><td>26.7</td><td>24.9</td></tr><tr><td>SGDMCWC</td><td>27.9</td><td>26.4</td><td>24.8</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>SGDMW</td><td>26.5</td><td>25.7</td><td>24.8</td></tr></table>
|
| 168 |
+
|
| 169 |
+
5.g: FMNIST-VAE. Lower is better. 5.h: MNIST-VAE. Lower is better
|
| 170 |
+
|
| 171 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>91.5</td><td>89.6</td><td>87.6</td></tr><tr><td>Adam</td><td>94.8</td><td>92.1</td><td>89.4</td></tr><tr><td>AdamLR</td><td>91.2</td><td>89.5</td><td>87.7</td></tr><tr><td>SGD</td><td>90.5</td><td>89.6</td><td>88.7</td></tr><tr><td>SGDM</td><td>89.5</td><td>88.7</td><td>87.9</td></tr><tr><td>SGDMC</td><td>89.6</td><td>88.6</td><td>87.5</td></tr><tr><td>SGDMCWC</td><td>88.6</td><td>88.4</td><td>88.1</td></tr><tr><td>SGDMW</td><td>89.3</td><td>88.9</td><td>88.4</td></tr></table>
|
| 172 |
+
|
| 173 |
+
5.i: Quadratic deep. Lower is better
|
| 174 |
+
|
| 175 |
+
In a concurrent study, Choi et al. (2019) show that there exist a hierarchy among optimizers that such some can be viewed as specific cases of others e.g. SGDM is shown to be a special case of Adam as its $\epsilon \to \infty$ , and thus Adam should never underperform SGDM with appropriate hyperparameter search). Like in our study, they suggest that the performance comparison of optimizers strongly depends on the hyperparameter tuning protocol. They also argue that the search space needs to be chosen optimizer specific. However, their focus is on the best possible performance achievable by an optimizer and does not take into account the tuning process. Moreover, while the authors claim their search protocol to be relevant for practitioners, the search spaces are manually chosen per dataset, constituting a significant difference to the AutoML scenario considered in our paper.
|
| 176 |
+
|
| 177 |
+
Tunability is related to measuring hyperparameter importance (Hutter et al., 2013), where van Rijn & Hutter (2018) have recently shown that learning the priors for hyperparameter distributions can yield to better HPO performance, akin to the calibration phase in our study.
|
| 178 |
+
|
| 179 |
+
There has been recent interest in building optimizers termed the APROX family (Asi & Duchi, 2019a;b) that are provably robust to hyperparameter choices. Asi & Duchi experimentally find that, training a Residual network (He et al., 2016) on CIFAR-10, SGD converges only for a small range of initial learning rate choices, whereas Adam exhibits better robustness to learning rate choices. This is inline with our findings of tunability.
|
| 180 |
+
|
| 181 |
+
# 6 CONCLUSION
|
| 182 |
+
|
| 183 |
+
Our work proposes a new notion of tunability for optimizers that takes into account the tuning efforts of an HPO. The results of our experiments support the hypothesis that adaptive gradient methods are easier to tune than non-adaptive methods: In a setting with low budget for hyperparameter tuning, tuning only Adam optimizer’s learning rate is likely to be a very good choice; it doesn’t guarantee the best possible performance, but it is evidently the easiest to find well-performing hyperparameter configurations for. While SGD yields the best performance in some cases, its best configuration is tedious to find, and Adam often performs close to it. We, thus, state that the substantial value of the adaptive gradient methods, specifically Adam, is its amenability to hyperparameter search. This is in contrast to the findings of Wilson et al. (2017) who observe no advantage in tunabilty for adaptive gradient methods, and thus deem them to be of ‘marginal value’. Unlike them, we base our experiments on a standard hyperparameter optimization method that allows for an arguably fairer comparison.
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
3.a: CIFAR 10
|
| 187 |
+
3.c: SVHN WRN-16-4
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
3.b: CIFAR 100
|
| 191 |
+
3.d: IMDb LSTM
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
3.e: FMNIST 2C2D CNN
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
3.f: Tolstoi Char-RNN
|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
3.g: MNIST VAE
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
3.h: F-MNIST VAE
|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
3.i: Quadratic Deep
|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 3: $\omega$ -tunability with $\omega _ { i } = { \bf 1 } _ { \mathrm { i = K } }$ for various experiments. We plot the on the $\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale. Figures a-f: higher is better and g-i: lower is better.
|
| 212 |
+
|
| 213 |
+
Our study is certainly not exhaustive: We do not study the effect of the inclusion of a learning rate schedule, or using a different HPO algorithm on the results. However, their inclusion would result in a large increase the number of experiments, and constitutes our future work.
|
| 214 |
+
|
| 215 |
+
We hope that this paper encourages other researchers to conduct future studies on the performance of optimizers from a more holistic perspective, where the cost of the hyperparameter search is included.
|
| 216 |
+
|
| 217 |
+
# REFERENCES
|
| 218 |
+
|
| 219 |
+
Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org.
|
| 220 |
+
|
| 221 |
+
Hilal Asi and John C. Duchi. The importance of better models in stochastic optimization. Proceedings of the National Academy of Sciences, 2019a. ISSN 0027-8424. doi: 10.1073/pnas.1908018116. URL https://www.pnas.org/content/early/2019/10/29/1908018116.
|
| 222 |
+
|
| 223 |
+
Hilal Asi and John C Duchi. Stochastic (approximate) proximal point methods: Convergence, optimality, and adaptivity. SIAM Journal on Optimization, 29(3):2257–2290, 2019b.
|
| 224 |
+
|
| 225 |
+
James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. Journal of Machine Learning Research, 13(Feb):281–305, 2012.
|
| 226 |
+
|
| 227 |
+
Jinghui Chen and Quanquan Gu. Closing the generalization gap of adaptive gradient methods in training deep neural networks. CoRR, abs/1806.06763, 2018. URL http://arxiv.org/ abs/1806.06763.
|
| 228 |
+
|
| 229 |
+
Dami Choi, Christopher J Shallue, Zachary Nado, Jaehoon Lee, Chris J Maddison, and George E Dahl. On empirical comparisons of optimizers for deep learning. arXiv preprint arXiv:1910.05446, 2019.
|
| 230 |
+
|
| 231 |
+
John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12(Jul):2121–2159, 2011.
|
| 232 |
+
|
| 233 |
+
Katharina Eggensperger, Marius Lindauer, and Frank Hutter. Pitfalls and best practices in algorithm configuration. Journal of Artificial Intelligence Research, 64:861–893, 2019.
|
| 234 |
+
|
| 235 |
+
Matthias Feurer and Frank Hutter. Hyperparameter Optimization, pp. 3–33. Springer International Publishing, Cham, 2019. ISBN 978-3-030-05318-5. doi: 10.1007/978-3-030-05318-5_1. URL https://doi.org/10.1007/978-3-030-05318-5_1.
|
| 236 |
+
|
| 237 |
+
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.
|
| 238 |
+
|
| 239 |
+
Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 240 |
+
|
| 241 |
+
Frank Hutter, Holger H Hoos, and Kevin Leyton-Brown. Identifying key algorithm parameters and instance features using forward selection. In International Conference on Learning and Intelligent Optimization, pp. 364–381. Springer, 2013.
|
| 242 |
+
|
| 243 |
+
Frank Hutter, Lars Kotthoff, and Joaquin Vanschoren. Automated machine learning-methods, systems, challenges, 2019.
|
| 244 |
+
|
| 245 |
+
Nitish Shirish Keskar and Richard Socher. Improving generalization performance by switching from adam to sgd. arXiv preprint arXiv:1712.07628, 2017.
|
| 246 |
+
|
| 247 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
|
| 248 |
+
|
| 249 |
+
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id= Bkg6RiCqY7.
|
| 250 |
+
|
| 251 |
+
Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are gans created equal? a large-scale study. In Advances in neural information processing systems, pp. 700–709, 2018.
|
| 252 |
+
|
| 253 |
+
Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pp. 142–150, Portland, Oregon, USA, June 2011. Association for Computational Linguistics. URL http: //www.aclweb.org/anthology/P11-1015.
|
| 254 |
+
|
| 255 |
+
Rafael Gomes Mantovani, Tomáš Horváth, Ricardo Cerri, Sylvio Barbon Junior, Joaquin Vanschoren, André Carlos Ponce de de Carvalho, and Leon Ferreira. An empirical study on hyperparameter tuning of decision trees. arXiv preprint arXiv:1812.02207, 2018.
|
| 256 |
+
|
| 257 |
+
Gábor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language models. In International Conference on Learning Representations, 2018. URL https:// openreview.net/forum?id $=$ ByJHuTgA-.
|
| 258 |
+
|
| 259 |
+
Philipp Probst, Anne-Laure Boulesteix, and Bernd Bischl. Tunability: Importance of hyperparameters of machine learning algorithms. Journal of Machine Learning Research, 20(53):1–32, 2019. URL http://jmlr.org/papers/v20/18-444.html.
|
| 260 |
+
|
| 261 |
+
Herbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pp. 400–407, 1951.
|
| 262 |
+
|
| 263 |
+
Frank Schneider, Lukas Balles, and Philipp Hennig. DeepOBS: A deep learning optimizer benchmark suite. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id ${ \underline { { \underline { { \mathbf { \Pi } } } } } } =$ rJg6ssC5Y7.
|
| 264 |
+
|
| 265 |
+
D. Sculley, Jasper Snoek, Alexander B. Wiltschko, and Ali Rahimi. Winner’s curse? on pace, progress, and empirical rigor. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Workshop Track Proceedings, 2018. URL https://openreview.net/forum?id ${ \underline { { \underline { { \mathbf { \Pi } } } } } } =$ rJWF0Fywf.
|
| 266 |
+
|
| 267 |
+
Vatsal Shah, Anastasios Kyrillidis, and Sujay Sanghavi. Minimum norm solutions do not always generalize well for over-parameterized problems. arXiv preprint arXiv:1811.07055, 2018.
|
| 268 |
+
|
| 269 |
+
Ilya Sutskever, James Martens, George Dahl, and Geoffrey Hinton. On the importance of initialization and momentum in deep learning. In Sanjoy Dasgupta and David McAllester (eds.), Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pp. 1139–1147, Atlanta, Georgia, USA, 17–19 Jun 2013. PMLR. URL http://proceedings.mlr.press/v28/sutskever13.html.
|
| 270 |
+
|
| 271 |
+
T. Tieleman and G. Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012.
|
| 272 |
+
|
| 273 |
+
Jan N van Rijn and Frank Hutter. Hyperparameter importance across datasets. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 2367–2376. ACM, 2018.
|
| 274 |
+
|
| 275 |
+
Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nati Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In Advances in Neural Information Processing Systems, pp. 4148–4158, 2017.
|
| 276 |
+
|
| 277 |
+
# A ARCHITECTURES OF THE MODELS USED IN EXPERIMENTS
|
| 278 |
+
|
| 279 |
+
Along with the architectures examined by Schneider et al. (2019), we experiment with an additional network and dataset. We included an additional network into our experimental setup, as DEEPOBS does not contain an word level LSTM model. Our model uses a 32-dimensional word embedding table and a single layer LSTM with memory cell size 128, the exact architecture is given in Table 6. We experiment with the IMDB sentiment classification dataset (Maas et al., 2011). The dataset contains 50, 000 movie reviews collected from movie rating website IMDB. The training set has 25, 000 reviews, each labeled as positive or negative. The rest 25, 000 form the test set. We split $2 0 \%$ of the training set to use as the development set. We refer the readers to DEEPOBS (Schneider et al., 2019) for the exact details of the other architectures used in this work.
|
| 280 |
+
|
| 281 |
+
Table 6: Architecture of the LSTM network used for IMDb experiments
|
| 282 |
+
|
| 283 |
+
<table><tr><td>Layer name</td><td>Description</td></tr><tr><td>Emb</td><td>Embedding Layer Vocabulary of 10000 [Embedding dimension: 32]</td></tr><tr><td>LSTM_1</td><td>LSTM Input size: 32 [Hidden dimension:128]</td></tr><tr><td>FC Layer</td><td>Linear(128 → 2)</td></tr><tr><td>Classifier</td><td>Softmax(2)</td></tr></table>
|
| 284 |
+
|
| 285 |
+
# B $\alpha$ - TUNABILITY
|
| 286 |
+
|
| 287 |
+
We provide additional methods to analyze tunability here. Let $p ( t )$ denote the best performance observed after using budget $t$ of hyperparameter optimization algorithm. We call an optimizer $\alpha$ -tunable $( \alpha \in [ 0 , 1 ] )$ at $t$ if $p ( t ) \geq \alpha \cdot p ( T )$ . Thus $\alpha$ −tunability is the ratio of number of times the neural network needs to be retrained with optimizer’s hyperparameters being provided by an automatic method, to the total budget $T$ (maximum number of configurations tested).
|
| 288 |
+
|
| 289 |
+
For each optimizer, we define its $\alpha$ -tunability $\zeta ( \alpha ) = \textstyle { \frac { t } { T } }$ for $\alpha \in \{ 0 . 9 , 0 . 9 5 , 0 . 9 9 \}$ . This metric provides an intuitive and simple quantification of how easy it is to tune an optimizer to reach requisite performance. We extend $\alpha$ –tunability to indicate the sharpness of the minima by computing the difference $\Delta = \zeta ( \alpha _ { 1 } ) - \zeta ( \alpha _ { 2 } )$ where $\alpha _ { 1 } > \alpha _ { 2 }$ and term it Sharpness. In our experiments, we choose $\alpha _ { 1 } = 0 . 9 9$ and $\alpha _ { 2 } = 0 . 9$ . Sharpness $( \Delta )$ is the relative time taken by the HPO to improve from $\alpha _ { 2 }$ to $\alpha _ { 1 }$ and thus quantifies the flatness of the minima in the space of hyperparameters. If the minima is sharper, then we expect random-search also takes a longer time to find it, thus the time required to go from $\alpha _ { 1 }$ and $\alpha _ { 2 }$ is higher. We provide Sharpness for our optimizers in table:7.
|
| 290 |
+
|
| 291 |
+
Table 7: Sharpness for various optimizers examined.
|
| 292 |
+
|
| 293 |
+
<table><tr><td></td><td>MNIST VAE</td><td>FMNIST2C2D</td><td>CIFAR100</td><td>CIFAR10</td><td>SVHN WRN</td><td>IMDBLSTM</td><td>FMNIST VAE</td><td>Quadratic Deep</td><td>Char RNN</td></tr><tr><td>Adagrad</td><td>92.0</td><td>99.0</td><td>63.0</td><td>95.0</td><td>10.0</td><td>97.0</td><td>91.0</td><td>66.0</td><td>95.0</td></tr><tr><td>Adam</td><td>80.0</td><td>98.0</td><td>40.0</td><td>91.0</td><td>71.0</td><td>93.0</td><td>90.0</td><td>75.0</td><td>87.0</td></tr><tr><td>Adam LR</td><td>83.0</td><td>96.0</td><td>71.0</td><td>94.0</td><td>98.0</td><td>70.0</td><td>95.0</td><td>93.0</td><td>97.0</td></tr><tr><td>SGD</td><td>98.0</td><td>95.0</td><td>35.0</td><td>93.0</td><td>98.0</td><td>81.0</td><td>94.0</td><td>6.0</td><td>47.0</td></tr><tr><td>SGDM</td><td>58.0</td><td>97.0</td><td>50.0</td><td>91.0</td><td>59.0</td><td>72.0</td><td>90.0</td><td>30.0</td><td>59.0</td></tr><tr><td>SGDMC</td><td>95.0</td><td>83.0</td><td>82.0</td><td>94.0</td><td>52.0</td><td>88.0</td><td>75.0</td><td>95.0</td><td>87.0</td></tr><tr><td>SGDMCWC</td><td>94.0</td><td>45.0</td><td>78.0</td><td>95.0</td><td>98.0</td><td>68.0</td><td>88.0</td><td>16.0</td><td>85.0</td></tr><tr><td>SGDMW</td><td>65.0</td><td>97.0</td><td>23.0</td><td>94.0</td><td>36.0</td><td>86.0</td><td>91.0</td><td>14.0</td><td>32.0</td></tr></table>
|
| 294 |
+
|
| 295 |
+
The above definition is not without faults. An optimizer’s $\alpha$ -tunability depends only on how fast it can get close to its own best performance, a pitfall it shares with Probst et al. (2019). That is, an optimizer that peaks at the performance of a random classifier may be considered well-tunable because it reaches its peak performance in the first iteration. It is apparent from tables 7 and 4 that the top performance does not imply lower sharpness. Take the case of IMDB Bi-LSTM, the lowest sharpness is for $\mathrm { S G D M ^ { C } W ^ { C } }$ , while the best performance is attained by AdamLR, implying that $\mathrm { S G D M ^ { C } W ^ { C } }$ settled to a minima faster which isn’t necessarily better than the one AdamLR found. In other terms, the flatness of the minima does not indicate how deep it is.
|
| 296 |
+
|
| 297 |
+
# C PERFORMANCE ANALYSIS
|
| 298 |
+
|
| 299 |
+
We show the full performance plots of all variants of SGD experimented with, in figures 5, 6, 7.
|
| 300 |
+
|
| 301 |
+
# D HOW LIKELY ARE WE TO FIND GOOD CONFIGURATIONS?
|
| 302 |
+
|
| 303 |
+
A natural question that arises is: given a budget $K$ , what is the best optimizer one can pick? In other words, for a given budget what is probability of each optimizer finding the best configuration? We answer this with a simple procedure. We repeat the runs of HPO for a budget $K$ , and collect the optimizer that gave the best result in each of those runs. Using the classical definition of probability, we compute the required quantity. We plot the computed probability in Figure 8. It is very evident for nearly all budgets, AdamLR is always the best option for 4 of the problems. SGD variants emerge to be better options for CIFAR-100 and Char-RNN at later stages of HPO. For some of the problems like VAEs, LSTM, it is very obvious that AdamLR is nearly always the best choice. Thus further strengthens our hypothesis that adaptive gradient methods are more tunable, especially in constrained HPO budget scenarios.
|
| 304 |
+
|
| 305 |
+
# E TUNABILITY BY COMPUTATION BUDGET
|
| 306 |
+
|
| 307 |
+
In our experiments so far, we defined tunability in terms of number of hyperparameter configurations. However, due to varying convergence speeds, different optimizers require varying amounts of time/epochs per configuration. We choose to work with number of epochs per configuration, as it is a hardware agnostic measure, but still indicates the relative time required. To incorporate epochs into our definition of tunability, we conduct the following analysis: For each dataset, we consider minimum total epochs for running all 100 trials across all optimizers, and consider it as the (virtual) maximum epoch budget $e _ { \mathrm { m a x } }$ , i.e., we disregard all trials after this point. We divide this maximum into $K = 1 0 0$ intervals $\begin{array} { r } { I _ { i } = \frac { e _ { \mathrm { m a x } } \cdot i } { K } , 1 \le i \le K } \end{array}$ . We modify the definition of $\omega$ -tunability from Section 2.2 as follows:
|
| 308 |
+
|
| 309 |
+
$\omega ^ { e p o c h }$ -tunability’s Definition. Let $( \mathbf { \boldsymbol { \theta } } _ { t } , \mathbf { \mathcal { L } } ( \mathbf { \boldsymbol { \theta } } _ { t } ) )$ be the incumbents (best performance attained till $t$ ) of the HPO algorithm at iteration $t$ , $e _ { t }$ be the total number of epochs required until iteration $t$ has finished. We define $\tilde { \mathcal { L } } _ { i } = \operatorname* { m a x } _ { e _ { t } \leq I _ { i } } \mathcal { L } _ { t }$ as the maximum performance among all configurations that have finished before interval $I _ { t }$ , where $\mathcal { L } _ { 0 } = e _ { 0 } = 0 .$ . For $w _ { i } > 0 \forall t$ and $\textstyle \sum _ { t } w _ { i } < \infty$ , we define $\omega ^ { e p o c h }$ -tunability as
|
| 310 |
+
|
| 311 |
+
$$
|
| 312 |
+
\omega ^ { e p o c h } \ – t u n a b i l i t y = \sum _ { i = 1 } ^ { K } \omega _ { i } \tilde { \mathcal { L } } _ { i }
|
| 313 |
+
$$
|
| 314 |
+
|
| 315 |
+
Please note that due to the case where no trial has finished before the first interval has concluded, we assign a performance of 0 for that task to that interval (bin). The above definition does not lend itself to VAE tasks, as an appropriate value there is $\infty$ . We, therefore, report the results for all classification problems in Table 8, where we use the same weighting schemes (CPE, CPU, and CPL) as before. To better understand the results, we also report the average number of epochs each configuration takes on average. Comparing the relative performances of optimizers to the results from Table 5, we can observe that considering $\omega ^ { e p o c h }$ yields to the same conclusions as before, and even amplifies Adam’s strengths: The performance gap to SGD variants widens in the cases where Adam(LR) was already better (FMNIST, IMDB, Char-RNN), and narrows considerably in the cases where an SGD variant was previously better (CIFAR-10, CIFAR-100, WRN-16). On CIFAR-100 and WRN-16, this even results in Adam outperforming the SGD variants slightly. Considering the average number of epochs, the results can easily be explained by the fact that the adaptive gradient methods tend to take less time to converge.
|
| 316 |
+
|
| 317 |
+
Table 8: $\omega ^ { e p o c h }$ -tunability performance of optimizers on the classification tasks for CPE, CPU, and CPL weighting schemes. We additionally provide the average number of epochs required by each optimizer for a single configuration.
|
| 318 |
+
|
| 319 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>89.2</td><td>90.3</td><td>91.4</td><td>33.0</td></tr><tr><td>Adam</td><td>90.2</td><td>91.0</td><td>91.8</td><td>24.1</td></tr><tr><td>AdamLR</td><td>90.4</td><td>91.1</td><td>91.9</td><td>19.5</td></tr><tr><td>SGD</td><td>87.4</td><td>89.2</td><td>90.9</td><td>34.5</td></tr><tr><td>SGDM</td><td>88.1</td><td>89.6</td><td>91.1</td><td>33.6</td></tr><tr><td>SGDMC</td><td>88.6</td><td>89.8</td><td>91.0</td><td>28.2</td></tr><tr><td>SGDMCWC</td><td>89.1</td><td>90.1</td><td>91.1</td><td>27.4</td></tr><tr><td>SGDMW</td><td>88.0</td><td>89.5</td><td>91.0</td><td>32.4</td></tr></table>
|
| 320 |
+
|
| 321 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>30.1</td><td>31.6</td><td>33.1</td><td>23.7</td></tr><tr><td>Adam</td><td>36.0</td><td>39.4</td><td>42.8</td><td>36.8</td></tr><tr><td>AdamLR</td><td>41.8</td><td>42.8</td><td>43.8</td><td>24.6</td></tr><tr><td>SGD</td><td>23.3</td><td>26.6</td><td>29.9</td><td>91.8</td></tr><tr><td>SGDM</td><td>30.5</td><td>34.7</td><td>39.0</td><td>80.6</td></tr><tr><td>SGDMC</td><td>36.9</td><td>39.8</td><td>42.7</td><td>68.7</td></tr><tr><td>SGDMCWC</td><td>34.1</td><td>36.8</td><td>39.4</td><td>71.7</td></tr><tr><td>SGDMW</td><td>21.5</td><td>25.6</td><td>29.7</td><td>102.3</td></tr></table>
|
| 322 |
+
|
| 323 |
+
8.c: CIFAR 100. Higher the better
|
| 324 |
+
|
| 325 |
+
8.a: FMNIST 2C2D. Higher is better
|
| 326 |
+
8.b: CIFAR 10. Higher is better
|
| 327 |
+
|
| 328 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>74.2</td><td>75.9</td><td>77.5</td><td>36.9</td></tr><tr><td>Adam</td><td>75.6</td><td>77.5</td><td>79.3</td><td>27.7</td></tr><tr><td>AdamLR</td><td>78.2</td><td>79.1</td><td>80.0</td><td>24.9</td></tr><tr><td>SGD</td><td>73.4</td><td>75.6</td><td>77.9</td><td>49.6</td></tr><tr><td>SGDM</td><td>74.3</td><td>76.5</td><td>78.8</td><td>46.9</td></tr><tr><td>SGDMC</td><td>75.6</td><td>77.6</td><td>79.6</td><td>44.4</td></tr><tr><td>SGDMCWC</td><td>78.2</td><td>79.9</td><td>81.7</td><td>47.6</td></tr><tr><td>SGDMW</td><td>75.5</td><td>78.1</td><td>80.6</td><td>52.4</td></tr></table>
|
| 329 |
+
|
| 330 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>83.1</td><td>84.1</td><td>85.2</td><td>34.4</td></tr><tr><td>Adam</td><td>82.1</td><td>83.7</td><td>85.2</td><td>31.2</td></tr><tr><td>AdamLR</td><td>84.8</td><td>85.5</td><td>86.2</td><td>28.6</td></tr><tr><td>SGD</td><td>65.8</td><td>67.7</td><td>69.6</td><td>42.2</td></tr><tr><td>SGDM</td><td>72.2</td><td>74.5</td><td>76.9</td><td>37.2</td></tr><tr><td>SGDMC</td><td>77.9</td><td>79.3</td><td>80.8</td><td>32.3</td></tr><tr><td>SGDMCWC</td><td>71.3</td><td>75.0</td><td>78.6</td><td>109.7</td></tr><tr><td>SGDMW</td><td>64.6</td><td>69.6</td><td>74.6</td><td>119.0</td></tr></table>
|
| 331 |
+
|
| 332 |
+
8.d: IMDB. Higher is better
|
| 333 |
+
|
| 334 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>93.8</td><td>94.4</td><td>95.0</td><td>19.7</td></tr><tr><td>Adam</td><td>92.0</td><td>93.5</td><td>95.1</td><td>24.3</td></tr><tr><td>AdamLR</td><td>94.5</td><td>95.0</td><td>95.4</td><td>17.2</td></tr><tr><td>SGD</td><td>92.6</td><td>93.8</td><td>95.1</td><td>29.9</td></tr><tr><td>SGDM</td><td>91.9</td><td>93.6</td><td>95.3</td><td>29.2</td></tr><tr><td>SGDMC</td><td>93.3</td><td>94.2</td><td>95.2</td><td>26.0</td></tr><tr><td>SGDMCWC</td><td>92.5</td><td>94.0</td><td>95.4</td><td>31.8</td></tr><tr><td>SGDMW</td><td>91.6</td><td>93.4</td><td>95.3</td><td>33.5</td></tr></table>
|
| 335 |
+
|
| 336 |
+
8.e: WRN-16(4). Higher is better
|
| 337 |
+
|
| 338 |
+
<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL Epochs</td></tr><tr><td>Adagrad</td><td>54.5</td><td>55.5</td><td>56.6 166.6</td></tr><tr><td>Adam</td><td>53.7</td><td>55.3</td><td>57.0 131.0</td></tr><tr><td>AdamLR</td><td>55.9</td><td>56.7</td><td>57.4 170.9</td></tr><tr><td>SGD</td><td>38.1</td><td>40.8</td><td>43.4 183.2</td></tr><tr><td>SGDM</td><td>48.5</td><td>51.8</td><td>55.2 188.3</td></tr><tr><td>SGDMC</td><td>53.3</td><td>55.6</td><td>58.0 194.5</td></tr><tr><td>SGDMCWC</td><td>51.7</td><td>54.2</td><td>56.6 197.3</td></tr><tr><td>SGDMW</td><td>42.2</td><td>45.6</td><td>49.1 184.0</td></tr></table>
|
| 339 |
+
|
| 340 |
+
8.f: Char-RNN. Higher is better
|
| 341 |
+
|
| 342 |
+

|
| 343 |
+
Figure 4: Performance analysis of various experiments. We plot the on the $\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance.
|
| 344 |
+
4.a: CIFAR-10 evolution
|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
4.b: CIFAR-100 evolution
|
| 348 |
+
|
| 349 |
+

|
| 350 |
+
Figure 5: Performance analysis of various experiments. We plot the on the $\mathbf { X } ^ { } -$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale
|
| 351 |
+
|
| 352 |
+

|
| 353 |
+
6.a: Bi-LSTM evolution
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
6.c: Tolstoi Char-RNN evolution
|
| 357 |
+
Figure 6: Performance analysis of various experiments. We plot the on the $\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale
|
| 358 |
+
|
| 359 |
+

|
| 360 |
+
|
| 361 |
+

|
| 362 |
+
7.a: MNIST-VAE evolution
|
| 363 |
+
|
| 364 |
+

|
| 365 |
+
7.b: MNIST-VAE evolution
|
| 366 |
+
7.c: Quadratic deep evolution
|
| 367 |
+
|
| 368 |
+
Figure 7: Performance analysis of various experiments. We plot the on the $\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale
|
| 369 |
+
|
| 370 |
+

|
| 371 |
+
Figure 8: Which optimizer for which budget? Given a tuning budget $K$ $\scriptstyle { \dot { x } }$ -axis), the stacked area plots above show how likely each optimizer (colored bands) is to yield the best result after $K$ steps of hyperparameter optimization. For example, for the IMDB LSTM problem, for a small budget, ‘AdamLR’ is the best choice (with $\sim 0 . 8$ probability), whereas for a larger search budget $> 5 0$ , tuning the additional parameters of ‘Adam’ is likely to pay off.
|
parse/train/H1gEP6NFwr/H1gEP6NFwr_content_list.json
ADDED
|
@@ -0,0 +1,1915 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ON THE TUNABILITY OF OPTIMIZERS IN DEEP LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
660,
|
| 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 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
250
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "There is no consensus yet on the question whether adaptive gradient methods like Adam are easier to use than non-adaptive optimization methods like SGD. In this work, we fill in the important, yet ambiguous concept of ‘ease-of-use’ by defining an optimizer’s tunability: How easy is it to find good hyperparameter configurations using automatic random hyperparameter search? We propose a practical evaluation protocol for optimizer tunability that can form the basis for a fair optimizer benchmark. Evaluating a variety of optimizers on an extensive set of standard datasets and architectures, we find that Adam is the most tunable for the majority of problems, especially with a low budget for hyperparameter tuning. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
270,
|
| 43 |
+
766,
|
| 44 |
+
395
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
430,
|
| 55 |
+
334,
|
| 56 |
+
446
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "With the ubiquity of deep learning in various applications, a multitude of first-order stochastic optimizers (Robbins & Monro, 1951) have been in vogue. They have varying algorithmic components like momentum (Sutskever et al., 2013) and adaptive learning rates (Tieleman & Hinton, 2012; Duchi et al., 2011; Kingma & Ba, 2015). With all these choices, picking the optimizer is among the most important design decisions for machine learning practitioners. For this decision, the best possible generalization performance is certainly an important characteristic to be taken into account. However, we argue that in practice, an even more important characteristic is whether the best possible performance can be reached with the available resources. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
465,
|
| 66 |
+
825,
|
| 67 |
+
577
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The performance of optimizers strongly depends on the choice of hyperparameter values such as the learning rate. In the machine learning research community, the sensitivity of models to hyperparameters has been of great debate recently, where in multiple cases, reported model advances did not stand the test of time because they can be explained by better hyperparameter tuning (Lucic et al., 2018; Melis et al., 2018; Henderson et al., 2018). This has led to calls for using automatic hyperparameter optimization methods with a fixed budget for a fairer comparison of models (Sculley et al., 2018; Feurer & Hutter, 2019; Eggensperger et al., 2019). For industrial applications, automated machine learning (AutoML, Hutter et al., 2019), which has automatic hyperparameter optimization as one of its key concepts, is becoming increasingly more important. In both cases, an optimization algorithm that achieves good performances with relatively little tuning effort is arguably substantially more useful than an optimization algorithm that achieves top performances, but reaches it only with a lot of careful tuning effort. Hence, we advocate that the performance obtained by an optimizer is not only the best performance obtained when using that optimizer, but also has to account for the cost of tuning its hyperparameters to obtain that performance, thus being dichotomous. We term this concept tunability in this paper. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
584,
|
| 77 |
+
825,
|
| 78 |
+
791
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Despite the importance of this concept, there is no standard way of measuring tunability. Works that propose optimization techniques show their performance on various tasks as depicted in Table 1. It is apparent that the experimental settings, as well as the network architectures tested, widely vary, hindering a fair comparison. The introduction of benchmarking suites like DEEPOBS (Schneider et al., 2019) have standardized the tested architectures, however, this does not fix the problem of selecting the hyperparameters themselves, and the effort expended in doing so. Previous studies treat tunability to be the best performance obtained on varying a hyperparameter (Schneider et al., 2019) or by measuring the improvement in performance by tuning a hyperparameter (Probst et al., 2019), but do not take any cognizance to the intermediate performance during the tuning process. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
799,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "table",
|
| 95 |
+
"img_path": "images/78e18d432f854cb11323e4b494d131dd4f5389378766531608d05da05189bf48.jpg",
|
| 96 |
+
"table_caption": [
|
| 97 |
+
"Table 1: Experimental settings shown in the original papers of popular optimizers. The large differences in test problems and tuning methods make them difficult to compare. $\\gamma$ denotes learning rate, $\\mu$ denotes momentum, $\\lambda$ is the weight decay coefficient. "
|
| 98 |
+
],
|
| 99 |
+
"table_footnote": [],
|
| 100 |
+
"table_body": "<table><tr><td>Method</td><td>Datasets</td><td>Network architecture</td><td>Parameter tuning methods</td></tr><tr><td>SGD with momentum (Sutskever et al., 2013)</td><td>Artificial datasets MNIST</td><td>Fully-connected LSTM</td><td>μ = 0.9 for first 1000 updates then μ ∈ {0,0.9,0.98,0.995}. other schedules for μ are used & log1o(γ)∈{-3,-4,-5,-6}</td></tr><tr><td>Adagrad (Duchi et al., 2011)</td><td>ImageNet ranking Reuter RCV1 MNIST KDD Census</td><td>Single layer Handcrafted features Histogram features</td><td>Perfomance on dev-set</td></tr><tr><td>Adam (Kingma & Ba, 2015)</td><td>IMDb MNIST CIFAR10</td><td>Logistic regression Multi-layer perceptron Convolutional network</td><td>β1∈{0,0.9} β∈{0.99,0.999,0.9999} log10(γ)∈{-5,-4,-3,-2,-1}</td></tr><tr><td>AdamW (Loshchilov & Hutter,2019)</td><td>CIFAR 10 ImageNet 32×32</td><td>ResNet CNN</td><td>log2(γ) ∈{-11,-10.-1,0} log2(λ)∈ log2(10-3)+{-5,-4,...,4}</td></tr></table>",
|
| 101 |
+
"bbox": [
|
| 102 |
+
173,
|
| 103 |
+
148,
|
| 104 |
+
821,
|
| 105 |
+
325
|
| 106 |
+
],
|
| 107 |
+
"page_idx": 1
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"type": "text",
|
| 111 |
+
"text": "In this paper, we introduce a fair evaluation protocol for tunability based on automatic hyperparameter optimization, and simple evaluation measures that allow to compare the performance of optimizers under varying resource constraints. By evaluating on a wide range of 9 diverse tasks, we aim to contribute to the debate of adaptive vs. non-adaptive optimizers (Wilson et al., 2017; Shah et al., 2018; Chen & Gu, 2018) . To reach a fair comparison, we experiment with several SGD variants that are often needed to reach good performance. Although a well-tuned SGD variant is able to reach the top performance in some cases, our overall results clearly favor adaptive gradient methods. We therefore conclude that there is substantial value in adaptive gradient methods. ",
|
| 112 |
+
"bbox": [
|
| 113 |
+
173,
|
| 114 |
+
351,
|
| 115 |
+
825,
|
| 116 |
+
463
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "2 MEASURING TUNABILITY ",
|
| 123 |
+
"text_level": 1,
|
| 124 |
+
"bbox": [
|
| 125 |
+
176,
|
| 126 |
+
484,
|
| 127 |
+
419,
|
| 128 |
+
501
|
| 129 |
+
],
|
| 130 |
+
"page_idx": 1
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"type": "text",
|
| 134 |
+
"text": "Given the dichotomy of the problem of tunability, we argue that it needs to take into account ",
|
| 135 |
+
"bbox": [
|
| 136 |
+
168,
|
| 137 |
+
515,
|
| 138 |
+
779,
|
| 139 |
+
531
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "1. how difficult it is to find a good hyperparameter configuration for the optimizer, \n2. the absolute performance of the optimizer. ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
207,
|
| 148 |
+
542,
|
| 149 |
+
756,
|
| 150 |
+
578
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "To see why both are needed, consider Figure 1.a, which shows the performance in terms of loss of four different optimizers as a function of its only hyperparameter $\\theta$ (by assumption). If we only consider requirement #1, optimizer C would be considered the best, since every hyperparameter value is the optimum. However, its absolute performance is poor, making it of low practical value. Moreover, due to the same shape, optimizers A and B would be considered equally good, although optimizer A clearly outperforms B. On the other hand, if we only consider requirement #2, optimizers B and D would be considered equally good, although optimizer D’s optimum is harder to find. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
173,
|
| 159 |
+
590,
|
| 160 |
+
825,
|
| 161 |
+
689
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "As we show in Section 5, no existing definition of tunability takes both requirements into account. In the following, we present a formulation that does so. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
174,
|
| 170 |
+
694,
|
| 171 |
+
823,
|
| 172 |
+
723
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "2.1 PRELIMINARIES: HYPERPARAMETER OPTIMIZATION ",
|
| 179 |
+
"text_level": 1,
|
| 180 |
+
"bbox": [
|
| 181 |
+
174,
|
| 182 |
+
742,
|
| 183 |
+
571,
|
| 184 |
+
756
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "We define hyperparameter optimization (HPO) (Feurer & Hutter, 2019) as follows: ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
176,
|
| 193 |
+
767,
|
| 194 |
+
715,
|
| 195 |
+
782
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "Definition. Let $\\mathcal { M }$ be an optimization algorithm with $N$ hyperparameters $( \\theta _ { 1 } , \\ldots , \\theta _ { N } ) \\in \\Theta$ . Let $a$ specific instantiation of $\\mathcal { M }$ with $\\pmb \\theta \\in \\Theta$ be denoted by $\\mathcal { M } _ { \\theta }$ . Thus, given a dataset $D = D _ { t r a i n } \\bigcup D _ { v a l }$ , the following objective is minimized ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
173,
|
| 204 |
+
787,
|
| 205 |
+
826,
|
| 206 |
+
829
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "equation",
|
| 212 |
+
"img_path": "images/f1d517e3861cea858ed50d3ec978cebf181fcc8b63e4b360e13506b861d99235.jpg",
|
| 213 |
+
"text": "$$\n\\pmb { \\theta } ^ { \\star } = \\arg \\operatorname* { m i n } _ { \\pmb { \\theta } \\in \\Theta } \\mathcal { L } ( \\mathcal { M } _ { \\pmb { \\theta } } , D _ { v a l } )\n$$",
|
| 214 |
+
"text_format": "latex",
|
| 215 |
+
"bbox": [
|
| 216 |
+
403,
|
| 217 |
+
837,
|
| 218 |
+
593,
|
| 219 |
+
861
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 1
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "where $\\mathcal { M } _ { \\theta }$ is trained on $D _ { t r a i n }$ . In our work, we use $\\mathcal { L }$ to be validation loss. ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
868,
|
| 229 |
+
676,
|
| 230 |
+
883
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 1
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "We use $\\mathcal { L } ( \\pmb { \\theta } )$ to refer to $\\mathcal { L } ( \\mathcal { M } _ { \\theta } , D _ { v a l } )$ for brevity. In our experiments, we use the time-tested Random Search (Bergstra & Bengio, 2012) algorithm for HPO for simplicity. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
173,
|
| 239 |
+
895,
|
| 240 |
+
821,
|
| 241 |
+
924
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 1
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "The ability to easily find good minima depends on the loss surface $\\mathcal { L }$ itself. Thus, tunability is a characterization of the HPO’s loss function $\\mathcal { L }$ . Here we present a quantification of this idea, which we illustrate with Figure 1.b. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
176,
|
| 250 |
+
130,
|
| 251 |
+
823,
|
| 252 |
+
171
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Let us assume that there are two optimizers E & F, both with hyperparameter $\\theta$ , both of them used to minimize a function (e.g. train a neural network). Let the loss functions of HPO be $\\mathcal { L } _ { E }$ and $\\mathcal { L } _ { F }$ respectively. As the figure shows, the minimum of $\\mathcal { L } _ { E }$ is lower than that of $\\mathcal { L } _ { F }$ (denoted by $\\theta _ { E } ^ { \\star }$ and $\\theta _ { F } ^ { \\star } .$ ) i.e. $\\mathcal { L } _ { E } ( \\theta _ { E } ^ { \\star } ) < \\mathcal { L } _ { F } ( \\theta _ { F } ^ { \\star } )$ . However, the minimum of $\\mathcal { L } _ { E }$ is much sharper than that of $\\mathcal { L } _ { F }$ , and in most regions of the parameter space F performs much better than E. This makes it easier to find configurations that already perform well. This makes optimizer F an attractive option when we have no prior knowledge of the good parameter settings. ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
173,
|
| 261 |
+
179,
|
| 262 |
+
825,
|
| 263 |
+
236
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "image",
|
| 269 |
+
"img_path": "images/e23b0ccbb293a18f6a1db6c084466c5253e59cc3b80bdd3822b44d9f98c145d2.jpg",
|
| 270 |
+
"image_caption": [
|
| 271 |
+
"1.a: Illustration. It is important to consider both the absolute performance of optimizers as well as the tuning effort to get to good performances. "
|
| 272 |
+
],
|
| 273 |
+
"image_footnote": [],
|
| 274 |
+
"bbox": [
|
| 275 |
+
220,
|
| 276 |
+
252,
|
| 277 |
+
467,
|
| 278 |
+
428
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "image",
|
| 284 |
+
"img_path": "images/1b5b7c856204f84cee6dd94985a20853400f67d375d9ac8122ea6d45cfa55388.jpg",
|
| 285 |
+
"image_caption": [
|
| 286 |
+
"1.b: Illustration. While optimizer E can achieve the best performance after careful tuning, optimizer F is likely to provide better performance under a constrained HPO budget. "
|
| 287 |
+
],
|
| 288 |
+
"image_footnote": [],
|
| 289 |
+
"bbox": [
|
| 290 |
+
529,
|
| 291 |
+
255,
|
| 292 |
+
781,
|
| 293 |
+
428
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
515,
|
| 303 |
+
825,
|
| 304 |
+
559
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "The key-difference between the two interpretations is whether one prefers a ‘good enough’ performance through fewer hyperparameter configuration searches (in the case of optimizer F), or whether one is willing to spend computational time to get the best possible performance $\\left( \\theta _ { E } ^ { \\star } \\right)$ in the case of optimizer E). In this work, we search for the hyperparameter through an HPO like Random Search. Thus, the difference of the two interpretations of tunability lies whether one values results from late stages of the HPO process (i.e. optimizer $\\mathrm { E }$ is preferable due to better optimum) more than results from early stages of the HPO process (i.e. optimizer F is preferable). ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
173,
|
| 313 |
+
565,
|
| 314 |
+
825,
|
| 315 |
+
662
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "Motivated by these observations, we propose the following metric for tunability. ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
174,
|
| 324 |
+
669,
|
| 325 |
+
697,
|
| 326 |
+
684
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "$\\omega$ -tunability’s Definition. Let $( \\mathbf { \\boldsymbol { \\theta } } _ { t } , \\mathbf { \\mathcal { L } } ( \\mathbf { \\boldsymbol { \\theta } } _ { t } ) )$ be the incumbents (best performance attained till $t$ ) of the HPO algorithm at iteration $t$ and $T$ be the hyperparameter tuning budget. For $w _ { t } > 0 \\forall t$ and $\\textstyle \\sum _ { t } w _ { t } < \\infty$ , we define $\\omega$ -tunability as ",
|
| 333 |
+
"bbox": [
|
| 334 |
+
173,
|
| 335 |
+
688,
|
| 336 |
+
825,
|
| 337 |
+
731
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "equation",
|
| 343 |
+
"img_path": "images/5a01001ac3cc9597dd73fde03b7f269dfc5bcf8b9770569e2ba032dc1cd391c2.jpg",
|
| 344 |
+
"text": "$$\n\\omega \\ – t u n a b i l i t y = \\sum _ { t = 1 } ^ { T } \\omega _ { t } \\mathcal { L } _ { t }\n$$",
|
| 345 |
+
"text_format": "latex",
|
| 346 |
+
"bbox": [
|
| 347 |
+
416,
|
| 348 |
+
739,
|
| 349 |
+
581,
|
| 350 |
+
782
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 2
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "i.e, $\\omega$ -tunability is a weighted sum of the incumbents $\\mathcal { L } ( \\pmb { \\theta } _ { t } )$ . In our experiments we use $\\textstyle \\sum _ { t } \\omega _ { t } = 1$ ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
169,
|
| 359 |
+
796,
|
| 360 |
+
823,
|
| 361 |
+
813
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "By appropriately choosing the weights $\\left\\{ \\omega _ { t } \\right\\}$ , we can interpolate between our two notions of tunability. In the extreme case where we are only interested in the peak performance of the optimizer, we can set $\\omega _ { T } = 1$ and set the other weights to zero. In the opposite extreme case where we are interested in the \"one-shot tunability\" of the optimizer, we can set $\\omega _ { 1 } = 1$ . In general, we can answer the question of \"How well does the optimizer perform with a budget of $K$ iterations?\" by setting $\\omega _ { i } = { \\bf 1 } _ { \\mathrm { i = K } }$ . ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
174,
|
| 370 |
+
818,
|
| 371 |
+
825,
|
| 372 |
+
888
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 2
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "While the above weighting scheme is intuitive, merely computing the performance after expending HPO budget of $K$ does not consider the performance obtained after the previous $K - 1$ iterations i.e. we would like to differentiate the cases where a requisite performance is attained by tuning an optimizer for $K$ iterations and another for $K _ { 1 }$ iterations, where $K _ { 1 } \\gg K$ . Therefore, we employ three additional weighting schemes. By setting $\\omega _ { i } \\propto ( T - i )$ , our first one puts more emphasis on the earlier stages of the hyperparameter tuning process. We term this weighting scheme Cumulative Performance-Early $( C P E )$ . In contrast, the second weighting scheme, Cumulative Performance-Late $( C P L )$ puts more emphasis on late stages of tuning, and thus on obtaining a better performance at a higher tuning cost: $\\omega _ { i } \\propto i$ . As a intermediate of the two, we also report a uniform weighting Cumulative Performance-Uniform $( C P U ) : \\omega _ { i } = 1 / T$ . ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
173,
|
| 381 |
+
895,
|
| 382 |
+
823,
|
| 383 |
+
924
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 2
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "",
|
| 390 |
+
"bbox": [
|
| 391 |
+
173,
|
| 392 |
+
103,
|
| 393 |
+
825,
|
| 394 |
+
215
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "3 OPTIMIZERS AND THEIR HYPERPARAMETERS ",
|
| 401 |
+
"text_level": 1,
|
| 402 |
+
"bbox": [
|
| 403 |
+
174,
|
| 404 |
+
243,
|
| 405 |
+
580,
|
| 406 |
+
258
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "3.1 PARAMETERS OF THE OPTIMIZERS ",
|
| 413 |
+
"text_level": 1,
|
| 414 |
+
"bbox": [
|
| 415 |
+
178,
|
| 416 |
+
279,
|
| 417 |
+
450,
|
| 418 |
+
291
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "To compare the tunability of adaptive gradient methods to non-adaptive methods, we choose the most commonly used optimizers from both the strata; SGD and SGD with momentum for non-adaptive methods, and Adagrad and Adam for adaptive gradient methods. Since adaptive gradient methods are said to work well with their default hyperparameter values already, we additionally employ a default version of Adam where we only tune the initial learning rate and set the other hyperparameters to the values recommended in the original paper (Kingma & Ba, 2015) (termed AdamLR). Such a scheme has been used by Schneider et al. too. A similar argument can be made for SGD with momentum (termed SGDM): thus we experiment with a fixed momentum value of 0.9 (termed SGDMC). ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
174,
|
| 427 |
+
308,
|
| 428 |
+
825,
|
| 429 |
+
417
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "In addition to standard parameters in all optimizers, we consider weight decay with SGD too. SGD with weight decay can be considered as an optimizer with two steps where the first step is to scale current weights with the decay value, followed by a normal descent step (Loshchilov & Hutter, 2019). Thus we devise two additional experiments for SGD with weight-decay where we tune weight-decay along with momentum (termed SGDMW), and one where we fix it to $1 0 ^ { - 5 }$ (termed $\\mathbf { S G D M ^ { C } W } ^ { \\dot { \\mathbf { C } } } ,$ ) along with the momentum being fixed to 0.9, which is the value for weight decay we found to be consistently better through HPO. The full list of optimizers we consider is provided in Table 4 ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
174,
|
| 438 |
+
425,
|
| 439 |
+
825,
|
| 440 |
+
522
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Manually defining a specific number of epochs can be biased towards one optimizer, as one optimizer may reach good performance in the early epochs of a single HPO iteration, whereas another may reach higher peaks more slowly. In order to alleviate this, it would be possible to add the number of training epochs as an additional hyperparameter to be searched. Since this would incur even higher computational cost, we instead use a validation set performance as stopping criterion. Thus we stop training when the validation loss plateaus for more than 2 epochs or if the number of epochs exceeds the predetermined maximum number as set in DEEPOBS. ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
174,
|
| 449 |
+
530,
|
| 450 |
+
825,
|
| 451 |
+
627
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "3.2 CALIBRATION OF HYPERPARAMETER DISTRIBUTIONS ",
|
| 458 |
+
"text_level": 1,
|
| 459 |
+
"bbox": [
|
| 460 |
+
174,
|
| 461 |
+
652,
|
| 462 |
+
583,
|
| 463 |
+
665
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 3
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "As mentioned previously, we use Random Search for optimizing the hyperparameters, which requires distributions of random variables to sample from. Choosing poor distributions to sample from impacts the performance, and may break requisite properties (e.g. learning rate is non-negative). For some of the parameters listed in Table 2, obvious bounds exist due their mathematical properties, or have been prescribed by the optimizer designers themselves. For example, Kingma & Ba (2015) bound $\\beta _ { 1 } , \\beta _ { 2 }$ to $[ 0 , 1 )$ and specify that they are close to 1. In the absence of such prior knowledge, we devise a simple method to determine the priors. ",
|
| 470 |
+
"bbox": [
|
| 471 |
+
174,
|
| 472 |
+
680,
|
| 473 |
+
825,
|
| 474 |
+
777
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 3
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "We train each task specified in the DEEPOBS with a large number of hyperparameter samplings and retain the hyperparameters which resulted in performance within $2 0 \\%$ of the best performance obtained. For each of the hyperparameters in this set, we fit the distributions in the third column of Table 2 using maximum likelihood estimation. In doing so, we make a simplifying assumption that all the hyperparameters are independent of each other. We argue that these distributions are appropriate; the only condition on learning rate is non-negativity that is inherent to the log-normal distribution, momentum is non-negative with a usual upper bound of 1, $\\beta \\mathrm { { s } }$ in Adam have been prescribed to be less than 1 but close to it, $\\epsilon$ is used to avoid divide-by-zero error and thus is a small positive value close to 0. We report the parameters of the distributions obtained after the fitting in Table 2. The calibration procedure’s performance is not included in the tunability computation. ",
|
| 481 |
+
"bbox": [
|
| 482 |
+
174,
|
| 483 |
+
785,
|
| 484 |
+
825,
|
| 485 |
+
924
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "table",
|
| 491 |
+
"img_path": "images/3134f4766ed1aa87bce7dc3b98966bf793782045a8591bc7036cf4ebd0969f4d.jpg",
|
| 492 |
+
"table_caption": [
|
| 493 |
+
"Table 2: Optimizers evaluated. For each hyperparameter, we calibrated a ‘sampling distribution’ to give good results across tasks (Section 3.2). $\\boldsymbol { \\bar { \\mathcal { U } } } [ \\boldsymbol { a } , \\boldsymbol { b } ]$ is the continuous uniform distribution on $[ a , b ]$ . Log-uniform $( a , b )$ is a distribution whose logarithm is $\\mathcal { U } [ a , b ]$ . Log-normal $( \\mu , \\sigma )$ is a distribution whose logarithm is normally distributed with mean $\\mu$ and standard deviation $\\sigma$ . "
|
| 494 |
+
],
|
| 495 |
+
"table_footnote": [],
|
| 496 |
+
"table_body": "<table><tr><td>Optimizer</td><td>Tunable parameters</td><td>Sampling distribution</td></tr><tr><td rowspan=\"3\">Stochastic Gradient Descent</td><td>Learning rate</td><td>Log-normal(-2.09,1.312)</td></tr><tr><td>Momentum</td><td>u[0,1]</td></tr><tr><td>Weight decay</td><td>Log-uniform(-5,-1)</td></tr><tr><td>Adagrad</td><td>Learning rate</td><td>Log-normal(-2.004,1.20)</td></tr><tr><td rowspan=\"3\">Adam</td><td>Learning rate</td><td>Log-normal(-2.69,1.42)</td></tr><tr><td>β1,β</td><td>Log-uniform(-5, -1)</td></tr><tr><td>E</td><td>Log-uniform(-8,0)</td></tr></table>",
|
| 497 |
+
"bbox": [
|
| 498 |
+
173,
|
| 499 |
+
161,
|
| 500 |
+
823,
|
| 501 |
+
291
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "table",
|
| 507 |
+
"img_path": "images/d3f247c1961e3318032b5df3e591818758d12d3c536b5064ea83275d253746df.jpg",
|
| 508 |
+
"table_caption": [
|
| 509 |
+
"Table 3: Models and datasets used. We use the DeepOBS benchmark set (Schneider et al., 2019). Details are provided in Appendix A. "
|
| 510 |
+
],
|
| 511 |
+
"table_footnote": [],
|
| 512 |
+
"table_body": "<table><tr><td>Architecture</td><td>Datasets</td></tr><tr><td>Convolutional net</td><td>FMNIST, CIFAR10/100</td></tr><tr><td>Variational autoencoder</td><td>FMNIST,I</td></tr><tr><td>Wide residual network</td><td>SVHN</td></tr><tr><td>CharacterRNN</td><td>Tolstoi's War and Peace</td></tr><tr><td>Quadratic function</td><td>Artificial datatset</td></tr><tr><td>LSTM</td><td>IMDb</td></tr></table>",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
351,
|
| 516 |
+
500,
|
| 517 |
+
455
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "table",
|
| 523 |
+
"img_path": "images/ce3aef04ceb65dcb44f13afa53f2a308bc52b2b52f90002beb335143ea3dbb10.jpg",
|
| 524 |
+
"table_caption": [
|
| 525 |
+
"Table 4: Optimizers and tunable parameters. $\\gamma$ is learning rate, $\\mu$ is momentum, $\\lambda$ is the weight decay coefficient. "
|
| 526 |
+
],
|
| 527 |
+
"table_footnote": [],
|
| 528 |
+
"table_body": "<table><tr><td>Optimizer</td><td>Tunable parameters</td></tr><tr><td>SGD</td><td>γ(μ=0,λ=0)</td></tr><tr><td>SGDM</td><td>Y,μ(入=0)</td></tr><tr><td>SGDMC SGDMCWC</td><td>γ (μ=0.9,λ=0) γ (μ=0.9,λ=10-5)</td></tr><tr><td>SGDMW</td><td>Y,μ,入</td></tr><tr><td>Adagrad</td><td>Y</td></tr><tr><td>AdamLR Adam</td><td>γ (β1=0.9,β2=0.999,∈=10-8) Y,β1,β2,E</td></tr></table>",
|
| 529 |
+
"bbox": [
|
| 530 |
+
516,
|
| 531 |
+
351,
|
| 532 |
+
823,
|
| 533 |
+
489
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "4 EXPERIMENTS AND RESULTS ",
|
| 540 |
+
"text_level": 1,
|
| 541 |
+
"bbox": [
|
| 542 |
+
176,
|
| 543 |
+
515,
|
| 544 |
+
446,
|
| 545 |
+
530
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 4
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "To assess the tunability of optimizers’ hyperparameters for the training of deep neural networks, we benchmark using the open-source suite DEEPOBS (Schneider et al., 2019). The architectures and datasets we experiment are given in Table 3. We refer the reader to Schneider et al. (2019) for specific details of the architectures. To obtain a better balance between vision and NLP applications, we added an LSTM network with the task of sentiment classification in the IMDB dataset (Maas et al., 2011), details for which are provided in Appendix A. ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
174,
|
| 554 |
+
545,
|
| 555 |
+
825,
|
| 556 |
+
628
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "4.1 HYPERPARAMETERS AND IMPLEMENTATION ",
|
| 563 |
+
"text_level": 1,
|
| 564 |
+
"bbox": [
|
| 565 |
+
174,
|
| 566 |
+
646,
|
| 567 |
+
521,
|
| 568 |
+
660
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "The performance of automatic hyperparameter search methods is dependent on its own hyperparameters, which play an important role in the outcome, e.g number of configurations to test. In our experiments, we evaluate 100 configurations with each of the hyperparameter optimization methods. As we use random search, we simulate multiple runs of these 100 configurations through shuffling. This gives us the variance of performance at each step. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
671,
|
| 578 |
+
826,
|
| 579 |
+
741
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "4.2 ANALYSIS OF TUNABILITY ",
|
| 586 |
+
"text_level": 1,
|
| 587 |
+
"bbox": [
|
| 588 |
+
176,
|
| 589 |
+
758,
|
| 590 |
+
398,
|
| 591 |
+
772
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "We analyze the tunability for the various weighting schemes proposed. For the weighting scheme $\\omega _ { i } = { \\bf 1 } _ { \\mathrm { i = K } }$ , for increasing values of $K$ , we show the performance as well as its variance in Figure 3. For readability, we show only results for Adam, AdamLR, Adagrad and SGDMW, and the rest are given in Appendix C. It is quite apparent that in most of the tasks, a well tuned SGD with momentum and weight decay is as good as Adam (for large $K$ ). However, the gap in the performance is quite noticeable when AdamLR outperforms SGD in the VAE tasks and the IMDB task. In the case of image classification problems, SGD variants fare the best, as it has been reported before (Keskar & Socher, 2017). It is interesting to notice that for $K { = } 4$ , the decreasing order of variance is nearly always SGDMW, Adam, Adagrad, AdamLR (10 out of 11 cases), even if AdamLR marginally underperforms as it is in the case of Quadratic Deep. Given this formulation, we ask the following question: given an HPO budget of $K$ , what is the best choice for optimizer? We answer this in Appendix D. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
173,
|
| 600 |
+
785,
|
| 601 |
+
825,
|
| 602 |
+
924
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 4
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "",
|
| 609 |
+
"bbox": [
|
| 610 |
+
171,
|
| 611 |
+
103,
|
| 612 |
+
823,
|
| 613 |
+
132
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 5
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "For the other weighting schemes, tunability scores are reported in Table 5. We see that there is no one optimizer that is best across three schemes, and tasks presented. A similar trend of SGD doing better than the adaptive gradient methods on image classification tasks is evident. Considering CPE, we observe that AdamLR performs the best in 6 out 9 tasks, where as the other three times $\\mathrm { \\Delta S G D M ^ { C } W ^ { C } }$ performs the best. The trend is not very obvious for CPU and CPL. In the case of CPU, AdamLR wins 5 out of 9 tasks, $\\mathbf { S G D M ^ { C } W ^ { C } }$ wins twice, and SGDM wins once. For CPL, AdamLR wins 4 out of 9, and the $\\mathbf { S G D M ^ { C } W ^ { C } }$ wins once, and SGDM and $\\mathbf { S G D M ^ { C } }$ win twice each. Summarizing, if peak-performance or even evolving to better performance at a larger hyperparameter search cost, SGD variants are better 5 out 9 times. However, if a good performance is expected in the earlier iterations of hyperparameter search, AdamLR is very competitive. Also, the default parameters of $\\beta _ { 1 } , \\beta _ { 2 } , \\epsilon$ of Adam optimizer result in quite good performance, to the point that Adam is rarely the better alternative over AdamLR. A known exception is training Inception networks (Abadi et al., 2015), where $\\epsilon$ is recommended to be set to 0.1. ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
173,
|
| 622 |
+
138,
|
| 623 |
+
825,
|
| 624 |
+
319
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 5
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "For some of the cases, the tunablities reported are very similar for the AdamLR and SGD variants. However, tuning Adam is very different from tuning SGD from a wall-clock time measurement. For example, we find that for the case of CIFAR-10, AdamLR requires on average $39 \\%$ fewer epochs to complete training than $\\mathbf { S G D M ^ { C } }$ (the top perfomer); thus being that much faster than $\\mathrm { S G D M ^ { C } }$ in wall-clock time. It can be argued that a more practical form of hyperparameter tuning budget is wall-clock time i.e. if a wall-clock time budget of $K$ minutes is given, how do our findings vary? In short, we find similar trends as we noticed before. We provide the details in Appendix E. ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
325,
|
| 634 |
+
825,
|
| 635 |
+
424
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "4.3 SUMMARIZING ACROSS DATASETS ",
|
| 642 |
+
"text_level": 1,
|
| 643 |
+
"bbox": [
|
| 644 |
+
176,
|
| 645 |
+
440,
|
| 646 |
+
450,
|
| 647 |
+
454
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "To get a better understanding of an optimizer’s aggregate tunability across datasets compared to the rest, we compute summary statistics for an optimizer $o$ ’s performance after $k$ iterations in the following way: ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
465,
|
| 657 |
+
549,
|
| 658 |
+
522
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "equation",
|
| 664 |
+
"img_path": "images/d30ddaf093016aa7078fb9f9f0a2553ba2e0f57dd8dd18a26ea8e9e7a419eeb3.jpg",
|
| 665 |
+
"text": "$$\nS ( o , k ) = \\frac { 1 } { | \\mathcal { P } | } \\sum _ { p \\in \\mathcal { P } } \\frac { o ( k , p ) } { \\operatorname* { m a x } _ { o ^ { \\prime } \\in \\mathcal { O } } o ^ { \\prime } ( k , p ) } ,\n$$",
|
| 666 |
+
"text_format": "latex",
|
| 667 |
+
"bbox": [
|
| 668 |
+
250,
|
| 669 |
+
523,
|
| 670 |
+
470,
|
| 671 |
+
564
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "where $o ( k , p )$ denotes the performance of optimizer $o \\in \\mathcal { O }$ on test problem $p \\in \\mathcal P$ after $k$ iterations of the HPO process (i.e. $\\omega$ -tunability with $\\omega _ { i } = \\mathbf { 1 } _ { \\mathrm { i = k } }$ ). In other words, we compute the average relative performance of an optimizer to the best performance of any optimizer over all tasks. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
174,
|
| 680 |
+
566,
|
| 681 |
+
550,
|
| 682 |
+
636
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "image",
|
| 688 |
+
"img_path": "images/49a91c72fa4f42bd73f6a4d510b838b41da14b1747ddb982287a49add13f2d19.jpg",
|
| 689 |
+
"image_caption": [
|
| 690 |
+
"Figure 2: Aggregated relative tunability of each optimizer across datasets "
|
| 691 |
+
],
|
| 692 |
+
"image_footnote": [],
|
| 693 |
+
"bbox": [
|
| 694 |
+
560,
|
| 695 |
+
468,
|
| 696 |
+
820,
|
| 697 |
+
594
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 5
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "The results are in Figure 2 and show that AdamLR performs very close to the best optimizer throughout the HPO process and is the best till about the $6 0 ^ { \\mathrm { t h } }$ iteration. In early stages of HPO, the SGD variants perform $10 \\mathrm { - } 2 0 \\%$ worse than Adam, but improve as the HPO progresses. ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
174,
|
| 706 |
+
643,
|
| 707 |
+
823,
|
| 708 |
+
685
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 5
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "5 RELATED WORK ",
|
| 715 |
+
"text_level": 1,
|
| 716 |
+
"bbox": [
|
| 717 |
+
176,
|
| 718 |
+
705,
|
| 719 |
+
339,
|
| 720 |
+
720
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 5
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "There exist few works that have tried to define and investigate tunability formally. Assessing the impact of hyperparameter tuning for decision tree models, Mantovani et al. (2018) count the number of times the tuned hyperparameter values are (statistically significantly) better than the default values. Probst et al. (2019) define tunability of an ML algorithm as the performance difference between a reference configuration (e.g., the default hyperparameters of the algorithm) and the best possible configuration on each dataset. This metric is comparable across ML algorithms, but it disregards entirely the absolute performance of ML algorithms. Schneider et al. (2019) recently released a benchmark for optimizers that evaluates their peak performance and speed. Tunability is assessed as the sensitivity of the performance to changes of the learning rate. In all three aforementioned studies, the definitions of tunability would fail to identify the superiority of optimizer A over optimizer B in Figure 1.a. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
734,
|
| 730 |
+
825,
|
| 731 |
+
888
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 5
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "The study by Wilson et al. (2017) finds SGD-based methods as easy to tune as adaptive gradient methods. However, their study lacks a clear definition of tunability and tunes the algorithms on manually selected, dataset dependent grid values. The study by Shah et al. (2018) applies a similar methodology and comes to similar conclusions regarding tunability. Since both studies only consider the best parameter configuration, their approach would be unable to identify the better optimizer among B and D in Figure 1.a. In contrast, the methodology in our study is able to distinguish all the cases depicted in Figure 1.a. ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
174,
|
| 740 |
+
895,
|
| 741 |
+
823,
|
| 742 |
+
924
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 5
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "table",
|
| 748 |
+
"img_path": "images/4299e710803323da6d2a6452267f075e1e7f49811fcaa2695768cb85e1791fb1.jpg",
|
| 749 |
+
"table_caption": [
|
| 750 |
+
"Table 5: Performance of various experiments. "
|
| 751 |
+
],
|
| 752 |
+
"table_footnote": [
|
| 753 |
+
"5.a: FMNIST 2C2D. Higher is better "
|
| 754 |
+
],
|
| 755 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>91.3</td><td>91.4</td><td>91.6</td></tr><tr><td>Adam</td><td>91.3</td><td>91.5</td><td>91.8</td></tr><tr><td>AdamLR</td><td>91.3</td><td>91.6</td><td>91.9</td></tr><tr><td>SGD</td><td>90.4</td><td>90.8</td><td>91.2</td></tr><tr><td>SGDM</td><td>90.5</td><td>90.9</td><td>91.3</td></tr><tr><td>SGDMC</td><td>90.7</td><td>90.9</td><td>91.1</td></tr><tr><td>SGDMCWC</td><td>90.7</td><td>90.9</td><td>91.1</td></tr><tr><td>SGDMW</td><td>90.4</td><td>90.8</td><td>91.3</td></tr></table>",
|
| 756 |
+
"bbox": [
|
| 757 |
+
176,
|
| 758 |
+
127,
|
| 759 |
+
387,
|
| 760 |
+
243
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 6
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "table",
|
| 766 |
+
"img_path": "images/0bcb9c856a2c279d086fc2134671dc731d425f55cb6ae2cadcd86553bbf0d43f.jpg",
|
| 767 |
+
"table_caption": [],
|
| 768 |
+
"table_footnote": [
|
| 769 |
+
"5.b: CIFAR 10. Higher is better "
|
| 770 |
+
],
|
| 771 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>76.4</td><td>77.1</td><td>77.9</td></tr><tr><td>Adam</td><td>77.2</td><td>78.4</td><td>79.5</td></tr><tr><td>AdamLR</td><td>78.8</td><td>79.4</td><td>80.0</td></tr><tr><td>SGD</td><td>77.0</td><td>77.8</td><td>78.6</td></tr><tr><td>SGDM</td><td>77.8</td><td>78.6</td><td>79.5</td></tr><tr><td>SGDMC</td><td>78.6</td><td>79.4</td><td>80.1</td></tr><tr><td>SGDMCWC</td><td>81.1</td><td>81.6</td><td>82.0</td></tr><tr><td>SGDMW</td><td>79.7</td><td>80.4</td><td>81.2</td></tr></table>",
|
| 772 |
+
"bbox": [
|
| 773 |
+
393,
|
| 774 |
+
126,
|
| 775 |
+
602,
|
| 776 |
+
243
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 6
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "table",
|
| 782 |
+
"img_path": "images/3506076fc88d5e46b9b1a97405f132150300155c1c006ef6054c3de11b91e66e.jpg",
|
| 783 |
+
"table_caption": [],
|
| 784 |
+
"table_footnote": [
|
| 785 |
+
"5.c: CIFAR 100. Higher the better "
|
| 786 |
+
],
|
| 787 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>30.4</td><td>31.8</td><td>33.1</td></tr><tr><td>Adam</td><td>39.4</td><td>42.2</td><td>45.1</td></tr><tr><td>AdamLR</td><td>42.2</td><td>43.0</td><td>43.8</td></tr><tr><td>SGD</td><td>31.8</td><td>34.2</td><td>36.6</td></tr><tr><td>SGDM</td><td>40.6</td><td>43.3</td><td>46.0</td></tr><tr><td>SGDMC</td><td>42.1</td><td>43.3</td><td>44.5</td></tr><tr><td>SGDMCWC</td><td>39.2</td><td>40.3</td><td>41.5</td></tr><tr><td>SGDMW</td><td>33.5</td><td>37.2</td><td>41.0</td></tr></table>",
|
| 788 |
+
"bbox": [
|
| 789 |
+
609,
|
| 790 |
+
127,
|
| 791 |
+
820,
|
| 792 |
+
243
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "table",
|
| 798 |
+
"img_path": "images/ddca109efdcc63d5a17b795d2cf3bfe161c9f9b5d7d1724a73c4c69949d877e7.jpg",
|
| 799 |
+
"table_caption": [],
|
| 800 |
+
"table_footnote": [
|
| 801 |
+
"5.d: IMDB. Higher is better "
|
| 802 |
+
],
|
| 803 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>84.3</td><td>84.8</td><td>85.3</td></tr><tr><td>Adam</td><td>83.6</td><td>84.5</td><td>85.5</td></tr><tr><td>AdamLR</td><td>85.8</td><td>86.0</td><td>86.3</td></tr><tr><td>SGD</td><td>68.1</td><td>69.3</td><td>70.5</td></tr><tr><td>SGDM</td><td>74.3</td><td>75.9</td><td>77.5</td></tr><tr><td>SGDMC</td><td>79.3</td><td>80.1</td><td>81.0</td></tr><tr><td>SGDMCWC</td><td>78.8</td><td>79.4</td><td>80.0</td></tr><tr><td>SGDMW</td><td>75.7</td><td>77.1</td><td>78.6</td></tr></table>",
|
| 804 |
+
"bbox": [
|
| 805 |
+
176,
|
| 806 |
+
267,
|
| 807 |
+
385,
|
| 808 |
+
382
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 6
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "table",
|
| 814 |
+
"img_path": "images/58c15fcf9fb495d19280d9f3f46e2ae5ae91424073959902b5ebe19fc06616fa.jpg",
|
| 815 |
+
"table_caption": [],
|
| 816 |
+
"table_footnote": [
|
| 817 |
+
"5.e: WRN-16(4). Higher is better "
|
| 818 |
+
],
|
| 819 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>94.8</td><td>94.9</td><td>95.0</td></tr><tr><td>Adam</td><td>94.5</td><td>94.8</td><td>95.2</td></tr><tr><td>AdamLR</td><td>95.1</td><td>95.3</td><td>95.4</td></tr><tr><td>SGD</td><td>94.6</td><td>94.9</td><td>95.2</td></tr><tr><td>SGDM</td><td>94.8</td><td>95.2</td><td>95.6</td></tr><tr><td>SGDMC</td><td>94.9</td><td>95.1</td><td>95.3</td></tr><tr><td>SGDMCWC</td><td>95.2</td><td>95.4</td><td>95.5</td></tr><tr><td>SGDMW</td><td>95.0</td><td>95.2</td><td>95.3</td></tr></table>",
|
| 820 |
+
"bbox": [
|
| 821 |
+
395,
|
| 822 |
+
267,
|
| 823 |
+
601,
|
| 824 |
+
381
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 6
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "table",
|
| 830 |
+
"img_path": "images/156ca9e88353671860efb2ac2cf18007519e13e4b6b6a41fe809ed9f39f6aefb.jpg",
|
| 831 |
+
"table_caption": [],
|
| 832 |
+
"table_footnote": [
|
| 833 |
+
"5.f: Char-RNN. Higher is better "
|
| 834 |
+
],
|
| 835 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>55.6</td><td>56.2</td><td>56.7</td></tr><tr><td>Adam</td><td>54.4</td><td>55.7</td><td>57.0</td></tr><tr><td>AdamLR</td><td>56.9</td><td>57.2</td><td>57.5</td></tr><tr><td>SGD</td><td>40.3</td><td>42.5</td><td>44.6</td></tr><tr><td>SGDM</td><td>51.4</td><td>54.0</td><td>56.5</td></tr><tr><td>SGDMC</td><td>55.6</td><td>57.0</td><td>58.3</td></tr><tr><td>SGDMCWC</td><td>54.2</td><td>55.6</td><td>57.0</td></tr><tr><td>SGDMW</td><td>45.1</td><td>48.2</td><td>51.2</td></tr></table>",
|
| 836 |
+
"bbox": [
|
| 837 |
+
611,
|
| 838 |
+
267,
|
| 839 |
+
820,
|
| 840 |
+
382
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 6
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "table",
|
| 846 |
+
"img_path": "images/5184c76a6e84d3b7509d8f16a25d680fc6c5e25a0515f0c20f71bd2e787e4319.jpg",
|
| 847 |
+
"table_caption": [],
|
| 848 |
+
"table_footnote": [],
|
| 849 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>30.3</td><td>29.4</td><td>28.4</td></tr><tr><td>Adam</td><td>33.2</td><td>31.2</td><td>29.1</td></tr><tr><td>AdamLR</td><td>29.2</td><td>28.6</td><td>27.9</td></tr><tr><td>SGD</td><td>53.3</td><td>53.1</td><td>52.9</td></tr><tr><td>SGDM</td><td>36.0</td><td>32.9</td><td>29.9</td></tr><tr><td>SGDMC</td><td>54.1</td><td>53.5</td><td>53.0</td></tr><tr><td>SGDMCWC</td><td>54.0</td><td>53.5</td><td>53.0</td></tr><tr><td>SGDMW</td><td>34.6</td><td>32.2</td><td>29.8</td></tr></table>",
|
| 850 |
+
"bbox": [
|
| 851 |
+
395,
|
| 852 |
+
406,
|
| 853 |
+
599,
|
| 854 |
+
522
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 6
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "table",
|
| 860 |
+
"img_path": "images/b3d31dc19ec1c07e54593e17ae930aa0586c9da9f4f14eb21306afba1d8aa35f.jpg",
|
| 861 |
+
"table_caption": [],
|
| 862 |
+
"table_footnote": [
|
| 863 |
+
"5.g: FMNIST-VAE. Lower is better. 5.h: MNIST-VAE. Lower is better "
|
| 864 |
+
],
|
| 865 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>25.5</td><td>24.7</td><td>24.0</td></tr><tr><td>Adam</td><td>26.0</td><td>24.8</td><td>23.7</td></tr><tr><td>AdamLR</td><td>24.6</td><td>24.0</td><td>23.5</td></tr><tr><td>SGD</td><td>26.2</td><td>25.5</td><td>24.8</td></tr><tr><td>SGDM</td><td>26.2</td><td>25.4</td><td>24.6</td></tr><tr><td>SGDMC</td><td>28.6</td><td>26.7</td><td>24.9</td></tr><tr><td>SGDMCWC</td><td>27.9</td><td>26.4</td><td>24.8</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>SGDMW</td><td>26.5</td><td>25.7</td><td>24.8</td></tr></table>",
|
| 866 |
+
"bbox": [
|
| 867 |
+
176,
|
| 868 |
+
406,
|
| 869 |
+
385,
|
| 870 |
+
522
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 6
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "table",
|
| 876 |
+
"img_path": "images/026c96190f4ca7b7e1d5788cd265b949b5630dfd9116158179bfbbdbd449f149.jpg",
|
| 877 |
+
"table_caption": [],
|
| 878 |
+
"table_footnote": [
|
| 879 |
+
"5.i: Quadratic deep. Lower is better "
|
| 880 |
+
],
|
| 881 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td></tr><tr><td>Adagrad</td><td>91.5</td><td>89.6</td><td>87.6</td></tr><tr><td>Adam</td><td>94.8</td><td>92.1</td><td>89.4</td></tr><tr><td>AdamLR</td><td>91.2</td><td>89.5</td><td>87.7</td></tr><tr><td>SGD</td><td>90.5</td><td>89.6</td><td>88.7</td></tr><tr><td>SGDM</td><td>89.5</td><td>88.7</td><td>87.9</td></tr><tr><td>SGDMC</td><td>89.6</td><td>88.6</td><td>87.5</td></tr><tr><td>SGDMCWC</td><td>88.6</td><td>88.4</td><td>88.1</td></tr><tr><td>SGDMW</td><td>89.3</td><td>88.9</td><td>88.4</td></tr></table>",
|
| 882 |
+
"bbox": [
|
| 883 |
+
611,
|
| 884 |
+
406,
|
| 885 |
+
820,
|
| 886 |
+
522
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 6
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "",
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
595,
|
| 896 |
+
825,
|
| 897 |
+
666
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 6
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "In a concurrent study, Choi et al. (2019) show that there exist a hierarchy among optimizers that such some can be viewed as specific cases of others e.g. SGDM is shown to be a special case of Adam as its $\\epsilon \\to \\infty$ , and thus Adam should never underperform SGDM with appropriate hyperparameter search). Like in our study, they suggest that the performance comparison of optimizers strongly depends on the hyperparameter tuning protocol. They also argue that the search space needs to be chosen optimizer specific. However, their focus is on the best possible performance achievable by an optimizer and does not take into account the tuning process. Moreover, while the authors claim their search protocol to be relevant for practitioners, the search spaces are manually chosen per dataset, constituting a significant difference to the AutoML scenario considered in our paper. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
174,
|
| 906 |
+
672,
|
| 907 |
+
825,
|
| 908 |
+
797
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 6
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Tunability is related to measuring hyperparameter importance (Hutter et al., 2013), where van Rijn & Hutter (2018) have recently shown that learning the priors for hyperparameter distributions can yield to better HPO performance, akin to the calibration phase in our study. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
176,
|
| 917 |
+
805,
|
| 918 |
+
820,
|
| 919 |
+
847
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 6
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "There has been recent interest in building optimizers termed the APROX family (Asi & Duchi, 2019a;b) that are provably robust to hyperparameter choices. Asi & Duchi experimentally find that, training a Residual network (He et al., 2016) on CIFAR-10, SGD converges only for a small range of initial learning rate choices, whereas Adam exhibits better robustness to learning rate choices. This is inline with our findings of tunability. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
854,
|
| 929 |
+
825,
|
| 930 |
+
924
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 6
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "6 CONCLUSION ",
|
| 937 |
+
"text_level": 1,
|
| 938 |
+
"bbox": [
|
| 939 |
+
174,
|
| 940 |
+
102,
|
| 941 |
+
318,
|
| 942 |
+
117
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 7
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Our work proposes a new notion of tunability for optimizers that takes into account the tuning efforts of an HPO. The results of our experiments support the hypothesis that adaptive gradient methods are easier to tune than non-adaptive methods: In a setting with low budget for hyperparameter tuning, tuning only Adam optimizer’s learning rate is likely to be a very good choice; it doesn’t guarantee the best possible performance, but it is evidently the easiest to find well-performing hyperparameter configurations for. While SGD yields the best performance in some cases, its best configuration is tedious to find, and Adam often performs close to it. We, thus, state that the substantial value of the adaptive gradient methods, specifically Adam, is its amenability to hyperparameter search. This is in contrast to the findings of Wilson et al. (2017) who observe no advantage in tunabilty for adaptive gradient methods, and thus deem them to be of ‘marginal value’. Unlike them, we base our experiments on a standard hyperparameter optimization method that allows for an arguably fairer comparison. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
173,
|
| 951 |
+
135,
|
| 952 |
+
826,
|
| 953 |
+
233
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 7
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "image",
|
| 959 |
+
"img_path": "images/a6a328ac8956d13a356ce3cd78118cadaef5aaeea2be8387efb7945b6d603628.jpg",
|
| 960 |
+
"image_caption": [
|
| 961 |
+
"3.a: CIFAR 10 ",
|
| 962 |
+
"3.c: SVHN WRN-16-4 "
|
| 963 |
+
],
|
| 964 |
+
"image_footnote": [],
|
| 965 |
+
"bbox": [
|
| 966 |
+
176,
|
| 967 |
+
272,
|
| 968 |
+
500,
|
| 969 |
+
377
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 7
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "image",
|
| 975 |
+
"img_path": "images/37fa782ff72d6c3cf69d86b7bd1bf2925155a46897c634641a8aafccf461ecb4.jpg",
|
| 976 |
+
"image_caption": [
|
| 977 |
+
"3.b: CIFAR 100 ",
|
| 978 |
+
"3.d: IMDb LSTM "
|
| 979 |
+
],
|
| 980 |
+
"image_footnote": [],
|
| 981 |
+
"bbox": [
|
| 982 |
+
504,
|
| 983 |
+
272,
|
| 984 |
+
825,
|
| 985 |
+
377
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 7
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "image",
|
| 991 |
+
"img_path": "images/e59c891fc2344e65b1e84273272d32d8febae7cc9a8d8a365967a1a77934fa9a.jpg",
|
| 992 |
+
"image_caption": [
|
| 993 |
+
"3.e: FMNIST 2C2D CNN "
|
| 994 |
+
],
|
| 995 |
+
"image_footnote": [],
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
393,
|
| 999 |
+
500,
|
| 1000 |
+
500
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 7
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "image",
|
| 1006 |
+
"img_path": "images/bb206c4e3b713dfa1b45b309a8f55d8dcbfc4dd9ea7cd3c6a4aac0182bda7c7d.jpg",
|
| 1007 |
+
"image_caption": [
|
| 1008 |
+
"3.f: Tolstoi Char-RNN "
|
| 1009 |
+
],
|
| 1010 |
+
"image_footnote": [],
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
504,
|
| 1013 |
+
393,
|
| 1014 |
+
826,
|
| 1015 |
+
501
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 7
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "image",
|
| 1021 |
+
"img_path": "images/6bdf6b9d68c3d0c673e056db52c9ba789a12343641b39d2f56bfc440064906ac.jpg",
|
| 1022 |
+
"image_caption": [
|
| 1023 |
+
"3.g: MNIST VAE "
|
| 1024 |
+
],
|
| 1025 |
+
"image_footnote": [],
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
176,
|
| 1028 |
+
517,
|
| 1029 |
+
500,
|
| 1030 |
+
622
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 7
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "image",
|
| 1036 |
+
"img_path": "images/fa18ce6d21356460daa8eb8cc9e764f75e8757afc08162235afa854744667933.jpg",
|
| 1037 |
+
"image_caption": [
|
| 1038 |
+
"3.h: F-MNIST VAE "
|
| 1039 |
+
],
|
| 1040 |
+
"image_footnote": [],
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
503,
|
| 1043 |
+
518,
|
| 1044 |
+
826,
|
| 1045 |
+
622
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 7
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "image",
|
| 1051 |
+
"img_path": "images/a078543749ba6f7edf8a8a44d7004986e18f4c4dea570d019b6e6567ab23eee0.jpg",
|
| 1052 |
+
"image_caption": [
|
| 1053 |
+
"3.i: Quadratic Deep "
|
| 1054 |
+
],
|
| 1055 |
+
"image_footnote": [],
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
176,
|
| 1058 |
+
638,
|
| 1059 |
+
500,
|
| 1060 |
+
743
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 7
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "image",
|
| 1066 |
+
"img_path": "images/05eab81f16ad917d949b166f6ff68db46a6643578bfd7be2228473acb6ff3bf1.jpg",
|
| 1067 |
+
"image_caption": [],
|
| 1068 |
+
"image_footnote": [],
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
506,
|
| 1071 |
+
637,
|
| 1072 |
+
825,
|
| 1073 |
+
746
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 7
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "image",
|
| 1079 |
+
"img_path": "images/72c08104c5d2ffc1ab91f210834a909ccc4020c306e77796c46c8c5d68c88a97.jpg",
|
| 1080 |
+
"image_caption": [
|
| 1081 |
+
"Figure 3: $\\omega$ -tunability with $\\omega _ { i } = { \\bf 1 } _ { \\mathrm { i = K } }$ for various experiments. We plot the on the $\\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale. Figures a-f: higher is better and g-i: lower is better. "
|
| 1082 |
+
],
|
| 1083 |
+
"image_footnote": [],
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
174,
|
| 1086 |
+
760,
|
| 1087 |
+
500,
|
| 1088 |
+
866
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 7
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
103,
|
| 1098 |
+
825,
|
| 1099 |
+
172
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 8
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Our study is certainly not exhaustive: We do not study the effect of the inclusion of a learning rate schedule, or using a different HPO algorithm on the results. However, their inclusion would result in a large increase the number of experiments, and constitutes our future work. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
176,
|
| 1108 |
+
180,
|
| 1109 |
+
821,
|
| 1110 |
+
222
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 8
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "We hope that this paper encourages other researchers to conduct future studies on the performance of optimizers from a more holistic perspective, where the cost of the hyperparameter search is included. ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
173,
|
| 1119 |
+
229,
|
| 1120 |
+
823,
|
| 1121 |
+
257
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 8
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "REFERENCES ",
|
| 1128 |
+
"text_level": 1,
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
174,
|
| 1131 |
+
279,
|
| 1132 |
+
285,
|
| 1133 |
+
292
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 8
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
176,
|
| 1142 |
+
301,
|
| 1143 |
+
826,
|
| 1144 |
+
426
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 8
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Hilal Asi and John C. Duchi. The importance of better models in stochastic optimization. Proceedings of the National Academy of Sciences, 2019a. ISSN 0027-8424. doi: 10.1073/pnas.1908018116. URL https://www.pnas.org/content/early/2019/10/29/1908018116. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
174,
|
| 1153 |
+
434,
|
| 1154 |
+
825,
|
| 1155 |
+
477
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 8
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Hilal Asi and John C Duchi. Stochastic (approximate) proximal point methods: Convergence, optimality, and adaptivity. SIAM Journal on Optimization, 29(3):2257–2290, 2019b. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
174,
|
| 1164 |
+
484,
|
| 1165 |
+
821,
|
| 1166 |
+
513
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 8
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. Journal of Machine Learning Research, 13(Feb):281–305, 2012. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
174,
|
| 1175 |
+
520,
|
| 1176 |
+
823,
|
| 1177 |
+
549
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 8
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Jinghui Chen and Quanquan Gu. Closing the generalization gap of adaptive gradient methods in training deep neural networks. CoRR, abs/1806.06763, 2018. URL http://arxiv.org/ abs/1806.06763. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
173,
|
| 1186 |
+
556,
|
| 1187 |
+
825,
|
| 1188 |
+
599
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 8
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Dami Choi, Christopher J Shallue, Zachary Nado, Jaehoon Lee, Chris J Maddison, and George E Dahl. On empirical comparisons of optimizers for deep learning. arXiv preprint arXiv:1910.05446, 2019. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
174,
|
| 1197 |
+
607,
|
| 1198 |
+
825,
|
| 1199 |
+
650
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 8
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12(Jul):2121–2159, 2011. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
657,
|
| 1209 |
+
821,
|
| 1210 |
+
686
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 8
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Katharina Eggensperger, Marius Lindauer, and Frank Hutter. Pitfalls and best practices in algorithm configuration. Journal of Artificial Intelligence Research, 64:861–893, 2019. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
174,
|
| 1219 |
+
694,
|
| 1220 |
+
823,
|
| 1221 |
+
723
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 8
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Matthias Feurer and Frank Hutter. Hyperparameter Optimization, pp. 3–33. Springer International Publishing, Cham, 2019. ISBN 978-3-030-05318-5. doi: 10.1007/978-3-030-05318-5_1. URL https://doi.org/10.1007/978-3-030-05318-5_1. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
176,
|
| 1230 |
+
731,
|
| 1231 |
+
823,
|
| 1232 |
+
773
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 8
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"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. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
780,
|
| 1242 |
+
825,
|
| 1243 |
+
823
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 8
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
173,
|
| 1252 |
+
830,
|
| 1253 |
+
825,
|
| 1254 |
+
873
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 8
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Frank Hutter, Holger H Hoos, and Kevin Leyton-Brown. Identifying key algorithm parameters and instance features using forward selection. In International Conference on Learning and Intelligent Optimization, pp. 364–381. Springer, 2013. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
176,
|
| 1263 |
+
882,
|
| 1264 |
+
825,
|
| 1265 |
+
924
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 8
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Frank Hutter, Lars Kotthoff, and Joaquin Vanschoren. Automated machine learning-methods, systems, challenges, 2019. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
173,
|
| 1274 |
+
103,
|
| 1275 |
+
825,
|
| 1276 |
+
132
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 9
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Nitish Shirish Keskar and Richard Socher. Improving generalization performance by switching from adam to sgd. arXiv preprint arXiv:1712.07628, 2017. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
174,
|
| 1285 |
+
138,
|
| 1286 |
+
825,
|
| 1287 |
+
167
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 9
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
174,
|
| 1296 |
+
174,
|
| 1297 |
+
823,
|
| 1298 |
+
203
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 9
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id= Bkg6RiCqY7. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
174,
|
| 1307 |
+
209,
|
| 1308 |
+
825,
|
| 1309 |
+
252
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 9
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are gans created equal? a large-scale study. In Advances in neural information processing systems, pp. 700–709, 2018. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
176,
|
| 1318 |
+
258,
|
| 1319 |
+
826,
|
| 1320 |
+
301
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 9
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pp. 142–150, Portland, Oregon, USA, June 2011. Association for Computational Linguistics. URL http: //www.aclweb.org/anthology/P11-1015. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
173,
|
| 1329 |
+
308,
|
| 1330 |
+
826,
|
| 1331 |
+
380
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 9
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Rafael Gomes Mantovani, Tomáš Horváth, Ricardo Cerri, Sylvio Barbon Junior, Joaquin Vanschoren, André Carlos Ponce de de Carvalho, and Leon Ferreira. An empirical study on hyperparameter tuning of decision trees. arXiv preprint arXiv:1812.02207, 2018. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
178,
|
| 1340 |
+
385,
|
| 1341 |
+
823,
|
| 1342 |
+
428
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 9
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Gábor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language models. In International Conference on Learning Representations, 2018. URL https:// openreview.net/forum?id $=$ ByJHuTgA-. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
176,
|
| 1351 |
+
434,
|
| 1352 |
+
823,
|
| 1353 |
+
477
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 9
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Philipp Probst, Anne-Laure Boulesteix, and Bernd Bischl. Tunability: Importance of hyperparameters of machine learning algorithms. Journal of Machine Learning Research, 20(53):1–32, 2019. URL http://jmlr.org/papers/v20/18-444.html. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
173,
|
| 1362 |
+
483,
|
| 1363 |
+
826,
|
| 1364 |
+
526
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 9
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Herbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pp. 400–407, 1951. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
173,
|
| 1373 |
+
532,
|
| 1374 |
+
823,
|
| 1375 |
+
563
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 9
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Frank Schneider, Lukas Balles, and Philipp Hennig. DeepOBS: A deep learning optimizer benchmark suite. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id ${ \\underline { { \\underline { { \\mathbf { \\Pi } } } } } } =$ rJg6ssC5Y7. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
176,
|
| 1384 |
+
568,
|
| 1385 |
+
821,
|
| 1386 |
+
611
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 9
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "D. Sculley, Jasper Snoek, Alexander B. Wiltschko, and Ali Rahimi. Winner’s curse? on pace, progress, and empirical rigor. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Workshop Track Proceedings, 2018. URL https://openreview.net/forum?id ${ \\underline { { \\underline { { \\mathbf { \\Pi } } } } } } =$ rJWF0Fywf. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
173,
|
| 1395 |
+
617,
|
| 1396 |
+
825,
|
| 1397 |
+
674
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 9
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Vatsal Shah, Anastasios Kyrillidis, and Sujay Sanghavi. Minimum norm solutions do not always generalize well for over-parameterized problems. arXiv preprint arXiv:1811.07055, 2018. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
171,
|
| 1406 |
+
680,
|
| 1407 |
+
823,
|
| 1408 |
+
710
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 9
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "Ilya Sutskever, James Martens, George Dahl, and Geoffrey Hinton. On the importance of initialization and momentum in deep learning. In Sanjoy Dasgupta and David McAllester (eds.), Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pp. 1139–1147, Atlanta, Georgia, USA, 17–19 Jun 2013. PMLR. URL http://proceedings.mlr.press/v28/sutskever13.html. ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
173,
|
| 1417 |
+
715,
|
| 1418 |
+
826,
|
| 1419 |
+
786
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 9
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "T. Tieleman and G. Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012. ",
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
169,
|
| 1428 |
+
792,
|
| 1429 |
+
825,
|
| 1430 |
+
821
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 9
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "Jan N van Rijn and Frank Hutter. Hyperparameter importance across datasets. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 2367–2376. ACM, 2018. ",
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
171,
|
| 1439 |
+
829,
|
| 1440 |
+
825,
|
| 1441 |
+
871
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 9
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nati Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In Advances in Neural Information Processing Systems, pp. 4148–4158, 2017. ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
174,
|
| 1450 |
+
877,
|
| 1451 |
+
825,
|
| 1452 |
+
921
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 9
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"text": "A ARCHITECTURES OF THE MODELS USED IN EXPERIMENTS ",
|
| 1459 |
+
"text_level": 1,
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
176,
|
| 1462 |
+
103,
|
| 1463 |
+
689,
|
| 1464 |
+
118
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 10
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "Along with the architectures examined by Schneider et al. (2019), we experiment with an additional network and dataset. We included an additional network into our experimental setup, as DEEPOBS does not contain an word level LSTM model. Our model uses a 32-dimensional word embedding table and a single layer LSTM with memory cell size 128, the exact architecture is given in Table 6. We experiment with the IMDB sentiment classification dataset (Maas et al., 2011). The dataset contains 50, 000 movie reviews collected from movie rating website IMDB. The training set has 25, 000 reviews, each labeled as positive or negative. The rest 25, 000 form the test set. We split $2 0 \\%$ of the training set to use as the development set. We refer the readers to DEEPOBS (Schneider et al., 2019) for the exact details of the other architectures used in this work. ",
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
173,
|
| 1473 |
+
132,
|
| 1474 |
+
826,
|
| 1475 |
+
258
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 10
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "table",
|
| 1481 |
+
"img_path": "images/0c7e44d06b38fb2b2803fbaa20cc41643df41397d559494ff942319fecaaa33d.jpg",
|
| 1482 |
+
"table_caption": [
|
| 1483 |
+
"Table 6: Architecture of the LSTM network used for IMDb experiments "
|
| 1484 |
+
],
|
| 1485 |
+
"table_footnote": [],
|
| 1486 |
+
"table_body": "<table><tr><td>Layer name</td><td>Description</td></tr><tr><td>Emb</td><td>Embedding Layer Vocabulary of 10000 [Embedding dimension: 32]</td></tr><tr><td>LSTM_1</td><td>LSTM Input size: 32 [Hidden dimension:128]</td></tr><tr><td>FC Layer</td><td>Linear(128 → 2)</td></tr><tr><td>Classifier</td><td>Softmax(2)</td></tr></table>",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
338,
|
| 1489 |
+
297,
|
| 1490 |
+
658,
|
| 1491 |
+
473
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 10
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "B $\\alpha$ - TUNABILITY ",
|
| 1498 |
+
"text_level": 1,
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
176,
|
| 1501 |
+
508,
|
| 1502 |
+
336,
|
| 1503 |
+
523
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 10
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "We provide additional methods to analyze tunability here. Let $p ( t )$ denote the best performance observed after using budget $t$ of hyperparameter optimization algorithm. We call an optimizer $\\alpha$ -tunable $( \\alpha \\in [ 0 , 1 ] )$ at $t$ if $p ( t ) \\geq \\alpha \\cdot p ( T )$ . Thus $\\alpha$ −tunability is the ratio of number of times the neural network needs to be retrained with optimizer’s hyperparameters being provided by an automatic method, to the total budget $T$ (maximum number of configurations tested). ",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
174,
|
| 1512 |
+
539,
|
| 1513 |
+
825,
|
| 1514 |
+
609
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 10
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "For each optimizer, we define its $\\alpha$ -tunability $\\zeta ( \\alpha ) = \\textstyle { \\frac { t } { T } }$ for $\\alpha \\in \\{ 0 . 9 , 0 . 9 5 , 0 . 9 9 \\}$ . This metric provides an intuitive and simple quantification of how easy it is to tune an optimizer to reach requisite performance. We extend $\\alpha$ –tunability to indicate the sharpness of the minima by computing the difference $\\Delta = \\zeta ( \\alpha _ { 1 } ) - \\zeta ( \\alpha _ { 2 } )$ where $\\alpha _ { 1 } > \\alpha _ { 2 }$ and term it Sharpness. In our experiments, we choose $\\alpha _ { 1 } = 0 . 9 9$ and $\\alpha _ { 2 } = 0 . 9$ . Sharpness $( \\Delta )$ is the relative time taken by the HPO to improve from $\\alpha _ { 2 }$ to $\\alpha _ { 1 }$ and thus quantifies the flatness of the minima in the space of hyperparameters. If the minima is sharper, then we expect random-search also takes a longer time to find it, thus the time required to go from $\\alpha _ { 1 }$ and $\\alpha _ { 2 }$ is higher. We provide Sharpness for our optimizers in table:7. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
173,
|
| 1523 |
+
616,
|
| 1524 |
+
825,
|
| 1525 |
+
728
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 10
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "table",
|
| 1531 |
+
"img_path": "images/a2bc9d68e6002bc7abd68cc4114b87e3b83f9edfb4213f4043faf628080e832b.jpg",
|
| 1532 |
+
"table_caption": [
|
| 1533 |
+
"Table 7: Sharpness for various optimizers examined. "
|
| 1534 |
+
],
|
| 1535 |
+
"table_footnote": [],
|
| 1536 |
+
"table_body": "<table><tr><td></td><td>MNIST VAE</td><td>FMNIST2C2D</td><td>CIFAR100</td><td>CIFAR10</td><td>SVHN WRN</td><td>IMDBLSTM</td><td>FMNIST VAE</td><td>Quadratic Deep</td><td>Char RNN</td></tr><tr><td>Adagrad</td><td>92.0</td><td>99.0</td><td>63.0</td><td>95.0</td><td>10.0</td><td>97.0</td><td>91.0</td><td>66.0</td><td>95.0</td></tr><tr><td>Adam</td><td>80.0</td><td>98.0</td><td>40.0</td><td>91.0</td><td>71.0</td><td>93.0</td><td>90.0</td><td>75.0</td><td>87.0</td></tr><tr><td>Adam LR</td><td>83.0</td><td>96.0</td><td>71.0</td><td>94.0</td><td>98.0</td><td>70.0</td><td>95.0</td><td>93.0</td><td>97.0</td></tr><tr><td>SGD</td><td>98.0</td><td>95.0</td><td>35.0</td><td>93.0</td><td>98.0</td><td>81.0</td><td>94.0</td><td>6.0</td><td>47.0</td></tr><tr><td>SGDM</td><td>58.0</td><td>97.0</td><td>50.0</td><td>91.0</td><td>59.0</td><td>72.0</td><td>90.0</td><td>30.0</td><td>59.0</td></tr><tr><td>SGDMC</td><td>95.0</td><td>83.0</td><td>82.0</td><td>94.0</td><td>52.0</td><td>88.0</td><td>75.0</td><td>95.0</td><td>87.0</td></tr><tr><td>SGDMCWC</td><td>94.0</td><td>45.0</td><td>78.0</td><td>95.0</td><td>98.0</td><td>68.0</td><td>88.0</td><td>16.0</td><td>85.0</td></tr><tr><td>SGDMW</td><td>65.0</td><td>97.0</td><td>23.0</td><td>94.0</td><td>36.0</td><td>86.0</td><td>91.0</td><td>14.0</td><td>32.0</td></tr></table>",
|
| 1537 |
+
"bbox": [
|
| 1538 |
+
176,
|
| 1539 |
+
741,
|
| 1540 |
+
823,
|
| 1541 |
+
827
|
| 1542 |
+
],
|
| 1543 |
+
"page_idx": 10
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"type": "text",
|
| 1547 |
+
"text": "The above definition is not without faults. An optimizer’s $\\alpha$ -tunability depends only on how fast it can get close to its own best performance, a pitfall it shares with Probst et al. (2019). That is, an optimizer that peaks at the performance of a random classifier may be considered well-tunable because it reaches its peak performance in the first iteration. It is apparent from tables 7 and 4 that the top performance does not imply lower sharpness. Take the case of IMDB Bi-LSTM, the lowest sharpness is for $\\mathrm { S G D M ^ { C } W ^ { C } }$ , while the best performance is attained by AdamLR, implying that $\\mathrm { S G D M ^ { C } W ^ { C } }$ settled to a minima faster which isn’t necessarily better than the one AdamLR found. In other terms, the flatness of the minima does not indicate how deep it is. ",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
174,
|
| 1550 |
+
867,
|
| 1551 |
+
825,
|
| 1552 |
+
924
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 10
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "text",
|
| 1558 |
+
"text": "",
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
174,
|
| 1561 |
+
103,
|
| 1562 |
+
825,
|
| 1563 |
+
159
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 11
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "C PERFORMANCE ANALYSIS ",
|
| 1570 |
+
"text_level": 1,
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
176,
|
| 1573 |
+
180,
|
| 1574 |
+
428,
|
| 1575 |
+
195
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 11
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "text",
|
| 1581 |
+
"text": "We show the full performance plots of all variants of SGD experimented with, in figures 5, 6, 7. ",
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
174,
|
| 1584 |
+
210,
|
| 1585 |
+
797,
|
| 1586 |
+
226
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 11
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"type": "text",
|
| 1592 |
+
"text": "D HOW LIKELY ARE WE TO FIND GOOD CONFIGURATIONS? ",
|
| 1593 |
+
"text_level": 1,
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
176,
|
| 1596 |
+
247,
|
| 1597 |
+
676,
|
| 1598 |
+
262
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 11
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "A natural question that arises is: given a budget $K$ , what is the best optimizer one can pick? In other words, for a given budget what is probability of each optimizer finding the best configuration? We answer this with a simple procedure. We repeat the runs of HPO for a budget $K$ , and collect the optimizer that gave the best result in each of those runs. Using the classical definition of probability, we compute the required quantity. We plot the computed probability in Figure 8. It is very evident for nearly all budgets, AdamLR is always the best option for 4 of the problems. SGD variants emerge to be better options for CIFAR-100 and Char-RNN at later stages of HPO. For some of the problems like VAEs, LSTM, it is very obvious that AdamLR is nearly always the best choice. Thus further strengthens our hypothesis that adaptive gradient methods are more tunable, especially in constrained HPO budget scenarios. ",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
173,
|
| 1607 |
+
277,
|
| 1608 |
+
825,
|
| 1609 |
+
416
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 11
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "text",
|
| 1615 |
+
"text": "E TUNABILITY BY COMPUTATION BUDGET ",
|
| 1616 |
+
"text_level": 1,
|
| 1617 |
+
"bbox": [
|
| 1618 |
+
174,
|
| 1619 |
+
438,
|
| 1620 |
+
545,
|
| 1621 |
+
454
|
| 1622 |
+
],
|
| 1623 |
+
"page_idx": 11
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "text",
|
| 1627 |
+
"text": "In our experiments so far, we defined tunability in terms of number of hyperparameter configurations. However, due to varying convergence speeds, different optimizers require varying amounts of time/epochs per configuration. We choose to work with number of epochs per configuration, as it is a hardware agnostic measure, but still indicates the relative time required. To incorporate epochs into our definition of tunability, we conduct the following analysis: For each dataset, we consider minimum total epochs for running all 100 trials across all optimizers, and consider it as the (virtual) maximum epoch budget $e _ { \\mathrm { m a x } }$ , i.e., we disregard all trials after this point. We divide this maximum into $K = 1 0 0$ intervals $\\begin{array} { r } { I _ { i } = \\frac { e _ { \\mathrm { m a x } } \\cdot i } { K } , 1 \\le i \\le K } \\end{array}$ . We modify the definition of $\\omega$ -tunability from Section 2.2 as follows: ",
|
| 1628 |
+
"bbox": [
|
| 1629 |
+
173,
|
| 1630 |
+
468,
|
| 1631 |
+
825,
|
| 1632 |
+
594
|
| 1633 |
+
],
|
| 1634 |
+
"page_idx": 11
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"type": "text",
|
| 1638 |
+
"text": "$\\omega ^ { e p o c h }$ -tunability’s Definition. Let $( \\mathbf { \\boldsymbol { \\theta } } _ { t } , \\mathbf { \\mathcal { L } } ( \\mathbf { \\boldsymbol { \\theta } } _ { t } ) )$ be the incumbents (best performance attained till $t$ ) of the HPO algorithm at iteration $t$ , $e _ { t }$ be the total number of epochs required until iteration $t$ has finished. We define $\\tilde { \\mathcal { L } } _ { i } = \\operatorname* { m a x } _ { e _ { t } \\leq I _ { i } } \\mathcal { L } _ { t }$ as the maximum performance among all configurations that have finished before interval $I _ { t }$ , where $\\mathcal { L } _ { 0 } = e _ { 0 } = 0 .$ . For $w _ { i } > 0 \\forall t$ and $\\textstyle \\sum _ { t } w _ { i } < \\infty$ , we define $\\omega ^ { e p o c h }$ -tunability as ",
|
| 1639 |
+
"bbox": [
|
| 1640 |
+
173,
|
| 1641 |
+
597,
|
| 1642 |
+
825,
|
| 1643 |
+
679
|
| 1644 |
+
],
|
| 1645 |
+
"page_idx": 11
|
| 1646 |
+
},
|
| 1647 |
+
{
|
| 1648 |
+
"type": "equation",
|
| 1649 |
+
"img_path": "images/d8ef7f74732f8027c5138dc9d14fe988e70163e8b780a4783bd8eda51df62a3f.jpg",
|
| 1650 |
+
"text": "$$\n\\omega ^ { e p o c h } \\ – t u n a b i l i t y = \\sum _ { i = 1 } ^ { K } \\omega _ { i } \\tilde { \\mathcal { L } } _ { i }\n$$",
|
| 1651 |
+
"text_format": "latex",
|
| 1652 |
+
"bbox": [
|
| 1653 |
+
400,
|
| 1654 |
+
676,
|
| 1655 |
+
598,
|
| 1656 |
+
720
|
| 1657 |
+
],
|
| 1658 |
+
"page_idx": 11
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"type": "text",
|
| 1662 |
+
"text": "Please note that due to the case where no trial has finished before the first interval has concluded, we assign a performance of 0 for that task to that interval (bin). The above definition does not lend itself to VAE tasks, as an appropriate value there is $\\infty$ . We, therefore, report the results for all classification problems in Table 8, where we use the same weighting schemes (CPE, CPU, and CPL) as before. To better understand the results, we also report the average number of epochs each configuration takes on average. Comparing the relative performances of optimizers to the results from Table 5, we can observe that considering $\\omega ^ { e p o c h }$ yields to the same conclusions as before, and even amplifies Adam’s strengths: The performance gap to SGD variants widens in the cases where Adam(LR) was already better (FMNIST, IMDB, Char-RNN), and narrows considerably in the cases where an SGD variant was previously better (CIFAR-10, CIFAR-100, WRN-16). On CIFAR-100 and WRN-16, this even results in Adam outperforming the SGD variants slightly. Considering the average number of epochs, the results can easily be explained by the fact that the adaptive gradient methods tend to take less time to converge. ",
|
| 1663 |
+
"bbox": [
|
| 1664 |
+
173,
|
| 1665 |
+
729,
|
| 1666 |
+
826,
|
| 1667 |
+
911
|
| 1668 |
+
],
|
| 1669 |
+
"page_idx": 11
|
| 1670 |
+
},
|
| 1671 |
+
{
|
| 1672 |
+
"type": "table",
|
| 1673 |
+
"img_path": "images/ac340fa76c075be54b72d2b6715bb9c569dccc0a852d43abf0d551a148208dfd.jpg",
|
| 1674 |
+
"table_caption": [
|
| 1675 |
+
"Table 8: $\\omega ^ { e p o c h }$ -tunability performance of optimizers on the classification tasks for CPE, CPU, and CPL weighting schemes. We additionally provide the average number of epochs required by each optimizer for a single configuration. "
|
| 1676 |
+
],
|
| 1677 |
+
"table_footnote": [],
|
| 1678 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>89.2</td><td>90.3</td><td>91.4</td><td>33.0</td></tr><tr><td>Adam</td><td>90.2</td><td>91.0</td><td>91.8</td><td>24.1</td></tr><tr><td>AdamLR</td><td>90.4</td><td>91.1</td><td>91.9</td><td>19.5</td></tr><tr><td>SGD</td><td>87.4</td><td>89.2</td><td>90.9</td><td>34.5</td></tr><tr><td>SGDM</td><td>88.1</td><td>89.6</td><td>91.1</td><td>33.6</td></tr><tr><td>SGDMC</td><td>88.6</td><td>89.8</td><td>91.0</td><td>28.2</td></tr><tr><td>SGDMCWC</td><td>89.1</td><td>90.1</td><td>91.1</td><td>27.4</td></tr><tr><td>SGDMW</td><td>88.0</td><td>89.5</td><td>91.0</td><td>32.4</td></tr></table>",
|
| 1679 |
+
"bbox": [
|
| 1680 |
+
176,
|
| 1681 |
+
422,
|
| 1682 |
+
387,
|
| 1683 |
+
516
|
| 1684 |
+
],
|
| 1685 |
+
"page_idx": 12
|
| 1686 |
+
},
|
| 1687 |
+
{
|
| 1688 |
+
"type": "table",
|
| 1689 |
+
"img_path": "images/16463771dde50267dc24d6f185dfacd203e181c8bcd4ad9d016ee3529cea546a.jpg",
|
| 1690 |
+
"table_caption": [],
|
| 1691 |
+
"table_footnote": [
|
| 1692 |
+
"8.c: CIFAR 100. Higher the better "
|
| 1693 |
+
],
|
| 1694 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>30.1</td><td>31.6</td><td>33.1</td><td>23.7</td></tr><tr><td>Adam</td><td>36.0</td><td>39.4</td><td>42.8</td><td>36.8</td></tr><tr><td>AdamLR</td><td>41.8</td><td>42.8</td><td>43.8</td><td>24.6</td></tr><tr><td>SGD</td><td>23.3</td><td>26.6</td><td>29.9</td><td>91.8</td></tr><tr><td>SGDM</td><td>30.5</td><td>34.7</td><td>39.0</td><td>80.6</td></tr><tr><td>SGDMC</td><td>36.9</td><td>39.8</td><td>42.7</td><td>68.7</td></tr><tr><td>SGDMCWC</td><td>34.1</td><td>36.8</td><td>39.4</td><td>71.7</td></tr><tr><td>SGDMW</td><td>21.5</td><td>25.6</td><td>29.7</td><td>102.3</td></tr></table>",
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
611,
|
| 1697 |
+
422,
|
| 1698 |
+
821,
|
| 1699 |
+
516
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 12
|
| 1702 |
+
},
|
| 1703 |
+
{
|
| 1704 |
+
"type": "table",
|
| 1705 |
+
"img_path": "images/6c13e698224bd9b905ffd5029c94fb260d8a7aaecf00cf5c96b09fd4da5adc61.jpg",
|
| 1706 |
+
"table_caption": [
|
| 1707 |
+
"8.a: FMNIST 2C2D. Higher is better ",
|
| 1708 |
+
"8.b: CIFAR 10. Higher is better "
|
| 1709 |
+
],
|
| 1710 |
+
"table_footnote": [],
|
| 1711 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>74.2</td><td>75.9</td><td>77.5</td><td>36.9</td></tr><tr><td>Adam</td><td>75.6</td><td>77.5</td><td>79.3</td><td>27.7</td></tr><tr><td>AdamLR</td><td>78.2</td><td>79.1</td><td>80.0</td><td>24.9</td></tr><tr><td>SGD</td><td>73.4</td><td>75.6</td><td>77.9</td><td>49.6</td></tr><tr><td>SGDM</td><td>74.3</td><td>76.5</td><td>78.8</td><td>46.9</td></tr><tr><td>SGDMC</td><td>75.6</td><td>77.6</td><td>79.6</td><td>44.4</td></tr><tr><td>SGDMCWC</td><td>78.2</td><td>79.9</td><td>81.7</td><td>47.6</td></tr><tr><td>SGDMW</td><td>75.5</td><td>78.1</td><td>80.6</td><td>52.4</td></tr></table>",
|
| 1712 |
+
"bbox": [
|
| 1713 |
+
393,
|
| 1714 |
+
422,
|
| 1715 |
+
602,
|
| 1716 |
+
516
|
| 1717 |
+
],
|
| 1718 |
+
"page_idx": 12
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"type": "table",
|
| 1722 |
+
"img_path": "images/d24d5b25a8e33121dc99e7c69b53396638107807c969e5d001c7276937b8f39b.jpg",
|
| 1723 |
+
"table_caption": [],
|
| 1724 |
+
"table_footnote": [
|
| 1725 |
+
"8.d: IMDB. Higher is better "
|
| 1726 |
+
],
|
| 1727 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>83.1</td><td>84.1</td><td>85.2</td><td>34.4</td></tr><tr><td>Adam</td><td>82.1</td><td>83.7</td><td>85.2</td><td>31.2</td></tr><tr><td>AdamLR</td><td>84.8</td><td>85.5</td><td>86.2</td><td>28.6</td></tr><tr><td>SGD</td><td>65.8</td><td>67.7</td><td>69.6</td><td>42.2</td></tr><tr><td>SGDM</td><td>72.2</td><td>74.5</td><td>76.9</td><td>37.2</td></tr><tr><td>SGDMC</td><td>77.9</td><td>79.3</td><td>80.8</td><td>32.3</td></tr><tr><td>SGDMCWC</td><td>71.3</td><td>75.0</td><td>78.6</td><td>109.7</td></tr><tr><td>SGDMW</td><td>64.6</td><td>69.6</td><td>74.6</td><td>119.0</td></tr></table>",
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
176,
|
| 1730 |
+
539,
|
| 1731 |
+
385,
|
| 1732 |
+
631
|
| 1733 |
+
],
|
| 1734 |
+
"page_idx": 12
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"type": "table",
|
| 1738 |
+
"img_path": "images/6f225ccd52c014e054510b9bbb12bf311ddd15733edd19c0fc79ac4865fc9866.jpg",
|
| 1739 |
+
"table_caption": [],
|
| 1740 |
+
"table_footnote": [
|
| 1741 |
+
"8.e: WRN-16(4). Higher is better "
|
| 1742 |
+
],
|
| 1743 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL</td><td>Epochs</td></tr><tr><td>Adagrad</td><td>93.8</td><td>94.4</td><td>95.0</td><td>19.7</td></tr><tr><td>Adam</td><td>92.0</td><td>93.5</td><td>95.1</td><td>24.3</td></tr><tr><td>AdamLR</td><td>94.5</td><td>95.0</td><td>95.4</td><td>17.2</td></tr><tr><td>SGD</td><td>92.6</td><td>93.8</td><td>95.1</td><td>29.9</td></tr><tr><td>SGDM</td><td>91.9</td><td>93.6</td><td>95.3</td><td>29.2</td></tr><tr><td>SGDMC</td><td>93.3</td><td>94.2</td><td>95.2</td><td>26.0</td></tr><tr><td>SGDMCWC</td><td>92.5</td><td>94.0</td><td>95.4</td><td>31.8</td></tr><tr><td>SGDMW</td><td>91.6</td><td>93.4</td><td>95.3</td><td>33.5</td></tr></table>",
|
| 1744 |
+
"bbox": [
|
| 1745 |
+
395,
|
| 1746 |
+
539,
|
| 1747 |
+
601,
|
| 1748 |
+
631
|
| 1749 |
+
],
|
| 1750 |
+
"page_idx": 12
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"type": "table",
|
| 1754 |
+
"img_path": "images/a91933f11699460917f4f2e7c20ca787b527a53e29917d966f174f1459e56ed0.jpg",
|
| 1755 |
+
"table_caption": [],
|
| 1756 |
+
"table_footnote": [
|
| 1757 |
+
"8.f: Char-RNN. Higher is better "
|
| 1758 |
+
],
|
| 1759 |
+
"table_body": "<table><tr><td>Optimizer</td><td>CPE</td><td>CPU</td><td>CPL Epochs</td></tr><tr><td>Adagrad</td><td>54.5</td><td>55.5</td><td>56.6 166.6</td></tr><tr><td>Adam</td><td>53.7</td><td>55.3</td><td>57.0 131.0</td></tr><tr><td>AdamLR</td><td>55.9</td><td>56.7</td><td>57.4 170.9</td></tr><tr><td>SGD</td><td>38.1</td><td>40.8</td><td>43.4 183.2</td></tr><tr><td>SGDM</td><td>48.5</td><td>51.8</td><td>55.2 188.3</td></tr><tr><td>SGDMC</td><td>53.3</td><td>55.6</td><td>58.0 194.5</td></tr><tr><td>SGDMCWC</td><td>51.7</td><td>54.2</td><td>56.6 197.3</td></tr><tr><td>SGDMW</td><td>42.2</td><td>45.6</td><td>49.1 184.0</td></tr></table>",
|
| 1760 |
+
"bbox": [
|
| 1761 |
+
612,
|
| 1762 |
+
539,
|
| 1763 |
+
820,
|
| 1764 |
+
631
|
| 1765 |
+
],
|
| 1766 |
+
"page_idx": 12
|
| 1767 |
+
},
|
| 1768 |
+
{
|
| 1769 |
+
"type": "image",
|
| 1770 |
+
"img_path": "images/1638032d7d15d84e395e0faa09da5b7438cc54ad9d1aeb688caa6a26c9879864.jpg",
|
| 1771 |
+
"image_caption": [
|
| 1772 |
+
"Figure 4: Performance analysis of various experiments. We plot the on the $\\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance. ",
|
| 1773 |
+
"4.a: CIFAR-10 evolution "
|
| 1774 |
+
],
|
| 1775 |
+
"image_footnote": [],
|
| 1776 |
+
"bbox": [
|
| 1777 |
+
178,
|
| 1778 |
+
167,
|
| 1779 |
+
820,
|
| 1780 |
+
380
|
| 1781 |
+
],
|
| 1782 |
+
"page_idx": 13
|
| 1783 |
+
},
|
| 1784 |
+
{
|
| 1785 |
+
"type": "image",
|
| 1786 |
+
"img_path": "images/84dcfcf92124dfc11105f29ebc9b20accf8298aebe9565b74e6f5a71ac46bc85.jpg",
|
| 1787 |
+
"image_caption": [
|
| 1788 |
+
"4.b: CIFAR-100 evolution "
|
| 1789 |
+
],
|
| 1790 |
+
"image_footnote": [],
|
| 1791 |
+
"bbox": [
|
| 1792 |
+
176,
|
| 1793 |
+
410,
|
| 1794 |
+
820,
|
| 1795 |
+
621
|
| 1796 |
+
],
|
| 1797 |
+
"page_idx": 13
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"type": "image",
|
| 1801 |
+
"img_path": "images/b57494dc15a0b20c175961de79e9089054bc521b0b7fe4af1900ef95ac8bff49.jpg",
|
| 1802 |
+
"image_caption": [
|
| 1803 |
+
"Figure 5: Performance analysis of various experiments. We plot the on the $\\mathbf { X } ^ { } -$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale "
|
| 1804 |
+
],
|
| 1805 |
+
"image_footnote": [],
|
| 1806 |
+
"bbox": [
|
| 1807 |
+
178,
|
| 1808 |
+
650,
|
| 1809 |
+
820,
|
| 1810 |
+
845
|
| 1811 |
+
],
|
| 1812 |
+
"page_idx": 13
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "image",
|
| 1816 |
+
"img_path": "images/6fc13ff033e20baef240f395612d759fafce569eab04436ea8f39c39121c080b.jpg",
|
| 1817 |
+
"image_caption": [
|
| 1818 |
+
"6.a: Bi-LSTM evolution "
|
| 1819 |
+
],
|
| 1820 |
+
"image_footnote": [],
|
| 1821 |
+
"bbox": [
|
| 1822 |
+
176,
|
| 1823 |
+
138,
|
| 1824 |
+
820,
|
| 1825 |
+
351
|
| 1826 |
+
],
|
| 1827 |
+
"page_idx": 14
|
| 1828 |
+
},
|
| 1829 |
+
{
|
| 1830 |
+
"type": "image",
|
| 1831 |
+
"img_path": "images/108350007f0e2d6fee04b87a5a958acacad0e5df60ea42e53d3cdf68e741896f.jpg",
|
| 1832 |
+
"image_caption": [
|
| 1833 |
+
"6.c: Tolstoi Char-RNN evolution ",
|
| 1834 |
+
"Figure 6: Performance analysis of various experiments. We plot the on the $\\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale "
|
| 1835 |
+
],
|
| 1836 |
+
"image_footnote": [],
|
| 1837 |
+
"bbox": [
|
| 1838 |
+
173,
|
| 1839 |
+
376,
|
| 1840 |
+
821,
|
| 1841 |
+
829
|
| 1842 |
+
],
|
| 1843 |
+
"page_idx": 14
|
| 1844 |
+
},
|
| 1845 |
+
{
|
| 1846 |
+
"type": "image",
|
| 1847 |
+
"img_path": "images/31d69d1c9650e9afbef7b1ae9e0ddd3bb8cebab8351627a42fc678cf71fc52e5.jpg",
|
| 1848 |
+
"image_caption": [],
|
| 1849 |
+
"image_footnote": [],
|
| 1850 |
+
"bbox": [
|
| 1851 |
+
174,
|
| 1852 |
+
138,
|
| 1853 |
+
820,
|
| 1854 |
+
351
|
| 1855 |
+
],
|
| 1856 |
+
"page_idx": 15
|
| 1857 |
+
},
|
| 1858 |
+
{
|
| 1859 |
+
"type": "image",
|
| 1860 |
+
"img_path": "images/d4a03ff2add522127f868a9ad798425c2e1eac934abf07a87607853110ed674c.jpg",
|
| 1861 |
+
"image_caption": [
|
| 1862 |
+
"7.a: MNIST-VAE evolution "
|
| 1863 |
+
],
|
| 1864 |
+
"image_footnote": [],
|
| 1865 |
+
"bbox": [
|
| 1866 |
+
173,
|
| 1867 |
+
375,
|
| 1868 |
+
820,
|
| 1869 |
+
587
|
| 1870 |
+
],
|
| 1871 |
+
"page_idx": 15
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"type": "image",
|
| 1875 |
+
"img_path": "images/94fc6587ea0272557615517ed8879a09bd2ef787bc3d6f9306e31029aaba6363.jpg",
|
| 1876 |
+
"image_caption": [
|
| 1877 |
+
"7.b: MNIST-VAE evolution ",
|
| 1878 |
+
"7.c: Quadratic deep evolution "
|
| 1879 |
+
],
|
| 1880 |
+
"image_footnote": [],
|
| 1881 |
+
"bbox": [
|
| 1882 |
+
176,
|
| 1883 |
+
612,
|
| 1884 |
+
820,
|
| 1885 |
+
824
|
| 1886 |
+
],
|
| 1887 |
+
"page_idx": 15
|
| 1888 |
+
},
|
| 1889 |
+
{
|
| 1890 |
+
"type": "text",
|
| 1891 |
+
"text": "Figure 7: Performance analysis of various experiments. We plot the on the $\\mathbf { X }$ -axis the number of the hyperparameter configuration searches, on the y-axis the appropriate performance on a log scale ",
|
| 1892 |
+
"bbox": [
|
| 1893 |
+
171,
|
| 1894 |
+
856,
|
| 1895 |
+
825,
|
| 1896 |
+
885
|
| 1897 |
+
],
|
| 1898 |
+
"page_idx": 15
|
| 1899 |
+
},
|
| 1900 |
+
{
|
| 1901 |
+
"type": "image",
|
| 1902 |
+
"img_path": "images/f40a5ba4ff8ec878621de75cb452f9ebfd5499757561a53052e0f6724f2eecc7.jpg",
|
| 1903 |
+
"image_caption": [
|
| 1904 |
+
"Figure 8: Which optimizer for which budget? Given a tuning budget $K$ $\\scriptstyle { \\dot { x } }$ -axis), the stacked area plots above show how likely each optimizer (colored bands) is to yield the best result after $K$ steps of hyperparameter optimization. For example, for the IMDB LSTM problem, for a small budget, ‘AdamLR’ is the best choice (with $\\sim 0 . 8$ probability), whereas for a larger search budget $> 5 0$ , tuning the additional parameters of ‘Adam’ is likely to pay off. "
|
| 1905 |
+
],
|
| 1906 |
+
"image_footnote": [],
|
| 1907 |
+
"bbox": [
|
| 1908 |
+
173,
|
| 1909 |
+
311,
|
| 1910 |
+
820,
|
| 1911 |
+
625
|
| 1912 |
+
],
|
| 1913 |
+
"page_idx": 16
|
| 1914 |
+
}
|
| 1915 |
+
]
|
parse/train/H1gEP6NFwr/H1gEP6NFwr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1gEP6NFwr/H1gEP6NFwr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJGkisCcKm/HJGkisCcKm.md
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A UNIVERSAL MUSIC TRANSLATION NETWORK
|
| 2 |
+
|
| 3 |
+
Noam Mor Facebook AI Research noam.mor@gmail.com
|
| 4 |
+
|
| 5 |
+
Lior Wolf & Adam Polyak Facebook AI Research & Tel Aviv Uni. wolf,adampolyak@fb.com
|
| 6 |
+
|
| 7 |
+
Yaniv Taigman Facebook AI Research yaniv@fb.com
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
We present a method for translating music across musical instruments and styles. This method is based on unsupervised training of a multi-domain wavenet autoencoder, with a shared encoder and a domain-independent latent space that is trained end-to-end on waveforms. Employing a diverse training dataset and large net capacity, the single encoder allows us to translate also from musical domains that were not seen during training. We evaluate our method on a dataset collected from professional musicians, and achieve convincing translations. We also study the properties of the obtained translation and demonstrate translating even from a whistle, potentially enabling the creation of instrumental music by untrained humans.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Humans have always created music and replicated it – whether it is by singing, whistling, clapping, or, after some training, playing improvised or standard musical instruments. This ability is not unique to us, and there are many other vocal mimicking species that are able to repeat music from hearing. Music is also one of the first domains to be digitized and processed by modern computers and algorithms. It is, therefore, somewhat surprising that in the core music task of mimicry, AI is still much inferior to biological systems.
|
| 16 |
+
|
| 17 |
+
In this work, we present a novel way to produce convincing musical translation between instruments and styles. For example1, we convert the audio of a Mozart symphony performed by an orchestra to an audio in the style of a pianist playing Beethoven. Our ability builds upon two technologies that have recently become available: (i) the ability to synthesize high quality audio using autoregressive models, and (ii) the recent advent of methods that transform between domains in an unsupervised way. The first technology allows us to generate high quality and realistic audio and thanks to the teacher forcing technique, autoregressive models are efficiently trained as decoders. The second family of technologies contributes to the practicality of the solution, since posing the learning problem in the supervised setting, would require a parallel dataset of different musical instruments.
|
| 18 |
+
|
| 19 |
+
In our architecture, we employ a single, universal, encoder and apply it to all inputs (universal here means that a single encoder can address all input music, allowing us to achieve capabilities that are known as universal translation). In addition to the advantage of training fewer networks, this also enables us to convert from musical domains that were not heard during training to any of the domains encountered.
|
| 20 |
+
|
| 21 |
+
The key to being able to train a single encoder architecture, is making sure that the domain-specific information is not encoded. We do this using a domain confusion network that provides an adversarial signal to the encoder. In addition, it is important for the encoder not to memorize the input signal but to encode it in a semantic way. We achieve this by distorting the input audio by random local pitch modulation. During training, the network is trained as a denoising autoencoder, which recovers the undistorted version of the original input. Since the distorted input is no longer in the musical domain of the output, the network learns to project out-of-domain inputs to the desired output domain. In addition, the network no longer benefits from memorizing the input signal and employs a higher-level encoding.
|
| 22 |
+
|
| 23 |
+
Asked to convert one musical instrument to another, our network shows a level of performance that seems to approach that of musicians. When controlling for audio quality, which is still lower for generated music, it is many times hard to tell which is the original audio file and which is the output of the conversion that mimics a completely different instrument. The network is also able to successfully process unseen musical instruments such as drums, or other sources, such as whistles.
|
| 24 |
+
|
| 25 |
+
# 2 PREVIOUS WORK
|
| 26 |
+
|
| 27 |
+
Domain Transfer Recently, there has been a considerable amount of work, mostly on images and text, which performs unsupervised translation between domains $\mathcal { A }$ and $\boldsymbol { B }$ , without being shown any matching pairs, i.e., in a completely unsupervised way. Almost all of this work employs GAN constraints (Goodfellow et al., 2014), in order to ensure a high level of indistinguishability between the translations of samples in $A$ and samples from the domain $B$ . In our work, the output is generated by an autoregressive model and training takes place using the ground truth output of the previous time steps (“teacher forcing”), instead of the predicted ones. A complete autoregressive inference is only done during test time, and it is not practical to apply such inference during training in order to get a realistic generated (“fake”) sample for the purpose of training the GAN.
|
| 28 |
+
|
| 29 |
+
Another popular constraint is that of circularity, namely that by mapping from $\mathcal { A }$ to $\boldsymbol { B }$ and back to $\mathcal { A }$ a reconstruction of the original sample is obtained (Kim et al., 2017; Zhu et al., 2017; Yi et al., 2017). In our work, for the same reason mentioned above, the output during training does not represent the future test time output, and such a constraint is unrealistic. An application of circularity in audio was present in (Kaneko & Kameoka, 2017), where a non-autoregressive model between vocoder features is used to convert between voices in an unsupervised way.
|
| 30 |
+
|
| 31 |
+
Cross domain translation is not restricted to a single pair of domains. The recent StarGAN (Choi et al., 2017) method creates multiple cycles for mapping between multiple (more than two) domains. The method employs a single generator that receives as input the source image as well as the specification of the target domain. It then produces the analog “fake” image from the target domain. Our work employs multiple decoders, one per domain, and attempts to condition a single decoder on the selection of the output domain failed to produce convincing results.
|
| 32 |
+
|
| 33 |
+
UNIT (Liu et al., 2017) employs an encoder-decoder pair per each domain, where the latent spaces of the domains are assumed to be shared. This is achieved by sharing the network layers that are distant from the image (the top layers of the encoder and the bottom layers of the decoder), similarly to CoGAN (Liu & Tuzel, 2016). Cycle-consistency is also added, and structure is added to the latent space using a variational autoencoder (Kingma & Welling, 2014) loss terms. Our method employs a single encoder, which eliminates the need for many of the associated constraints. In addition, we do not impose a VAE loss term (Kingma & Welling, 2014) on the latent space of the encodings and instead employ a domain confusion loss (Ganin et al., 2016). The work of Louizos et al. (2015) investigates the problem of learning invariant representations by employing the Maximum Mean Discrepancy (MMD), which we do not use.
|
| 34 |
+
|
| 35 |
+
Audio Synthesis WaveNet (van den Oord et al., 2016) is an autoregressive model that predicts the probability distribution of the next sample, given the previous samples and an input conditioning signal. Its generated output is currently considered of the highest naturalness, and is applied in a range of tasks. In (Rethage et al., 2017), the authors have used it for denoising waveforms by predicting the middle ground-truth sample from its noisy input support. Recent contributions in Text-To-Speech(TTS) (Ping et al., 2018; Shen et al., 2018) have successfully conditioned wavenet on linguistic and acoustic features to obtain state of the art performance.
|
| 36 |
+
|
| 37 |
+
In VQ-VAE (van den Oord et al., 2017), voice conversion was obtained by employing a variational autoencoder that produces a quantized latent space that is conditioned on the speaker identity. Similar to our work, the decoder is based on WaveNet. However, we impose a greater constraint on the latent space by (a) having a universal encoder, forcing the embeddings of all domains to lie in the same space, yet (b) training a separate reconstructing decoder for each domain, provided that (c) the latent space is domain independent, thereby reducing source-target pathways memorization, which is also accomplished by (d) employing augmentation to distort the input signal. Invariance is achieved in VQ-VAE through the strong bottleneck effect achieved by discretization. Despite some effort, we were not able to use a discrete latent space here.
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 1: (a) The schematic architecture of our translation network. The confusion term (marked by the dashed line) is employed only during training. $E$ is the shared encoder, $C$ is the domain classification network employed in the domain confusion term, $D ^ { i }$ are the various decoders. (b) A detailed depiction of our architecture. ‘NC’ indicates non-causal convolution. ‘1x1’ indicates a 1-D convolution with kernel size 1.
|
| 41 |
+
|
| 42 |
+
Recently, Dieleman et al. (2018) explored discretization as a method to capture long-range dependencies in unconditioned music generation, for up to 24 seconds. We focus on translation, and the conditioning on the source signal carries some long-range information on the development of the music. Consider an analogy to a myopic language translation system, where the input is a story in English and the output is a story in Spanish. Even if the translation occurs one sentence at a time, the main theme of the story is carried by the “conditioning” on the source text.
|
| 43 |
+
|
| 44 |
+
The architecture of the autoencoder we employ is the wavenet-autoencoder presented in (Engel et al., 2017). In comparison to this work, our inputs are not controlled and are collected from consumer media. Our overall architecture differs in that multiple decoders and an additional auxiliary network, which is used for disentangling the domain information from the other aspects of the music representation, are trained and by the addition of an important augmentation step.
|
| 45 |
+
|
| 46 |
+
In the supervised learning domain, an audio style transfer between source and target spectrograms was performed with sequence-to-sequence recurrent networks (Haque et al., 2018). This method requires matching pairs of samples played on different instruments. In another fully supervised work (Hadjeres & Pachet, 2017), a graphical model aimed at modeling polyphonic tones of Bach was trained on notes, capturing the specificity of Bach’s chorales. This model is based on RNNs and requires a large corpus of notes of a particular instrument produced with a music editor.
|
| 47 |
+
|
| 48 |
+
Style Transfer Style transfer is often confused with domain translation and the distinction is not always clear. In the task of style transfer, the “content” remains the same between the input and the output, but the ”style” is modified. Notable contributions in the field include (Gatys et al., 2016; Ulyanov et al., 2016; Johnson et al., 2016), which synthesize a new image that minimizes the content loss with respect to the content-donor sample and the style loss with respect to one or more samples of a certain style. The content loss is based on comparing the activations of a network training for an image categorization task. The style loss compares the statistics of the activations in various layers of the categorization layer. An attempt at audio style transfer is described in (Barry & Kim, 2018).
|
| 49 |
+
|
| 50 |
+
Concatenative Synthesis In the computer music and audio effects literature, the conversion task we aim to solve is tackled by concatenating together short pieces of audio from the target domain, such that the output audio resembles the input audio from the source domain Verfaille & Arfib (2000); Schwarz (2006); Zils & Pachet (2001); Simon et al. (2005). The method has been extensively researched, see the previous work section of Nuanain et al. (2017) and the online resource of Schwarz ´ (2018). A direct comparison to such methods is challenging, since many of the methods have elaborate interfaces with many tunable parameters that vary from one conversion task to the next. To the extent possible, we compare with some of the published results in Sec. 4.2, obtaining what we believe to be clearly superior results.
|
| 51 |
+
|
| 52 |
+
# 3 METHOD
|
| 53 |
+
|
| 54 |
+
Our domain translation method is based on training multiple autoencoder pathways, one per musical domain, such that the encoders are shared. During training, a softmax-based reconstruction loss is applied to each domain separately. The input data is randomly augmented, prior to applying the encoder, in order to force the network to extract high-level semantic features, instead of simply memorizing the data. In addition, a domain confusion loss (Ganin et al., 2016) is applied to the latent space to ensure that the encoding is not domain-specific. A diagram of the translation architecture is shown in Fig. 1 (a).
|
| 55 |
+
|
| 56 |
+
# 3.1 WAVENET AUTOENCODER
|
| 57 |
+
|
| 58 |
+
We reuse an existing autoencoder architecture that is based on a WaveNet decoder and a WaveNetlike dilated convolution encoder (Engel et al., 2017). The WaveNet of each decoder is conditioned on the latent representation produced by the encoder. In order to reduce the inferencetime, the nv-wavenet CUDA kernels provided by NVIDIA ( https://github.com/NVIDIA/ nv-wavenet) were used after modification to better match the architecture suggested by van den Oord et al. (2016), as described below.
|
| 59 |
+
|
| 60 |
+
The encoder is a fully convolutional network that can be applied to any sequence length. The network has three blocks of ten residual-layers, a total of thirty layers. Each residual-layer contains a RELU nonlinearity, a non-causal dilated convolution with an increasing kernel size, a second RELU, and a $1 \times 1$ convolution followed by the residual summation of the activations before the first RELU. There is a fixed width of 128 channels. After the three blocks, there is an additional $1 \times 1$ layer. An average pooling with a kernel size of 50 milliseconds (800 samples) follows in order to obtain an encoding in $\mathbb { R } ^ { 6 \bar { 4 } }$ , which implies a temporal down sampling by a factor of $\times 1 2 . 5$ .
|
| 61 |
+
|
| 62 |
+
The encoding is upsampled temporally to the original audio rate, using nearest neighbor interpolation and is used to condition a WaveNet decoder. The conditioning signal is passed through a $1 \times 1$ layer that is different for each WaveNet layer. The audio (both input and output) is quantized using 8-bit mu-law encoding, similarly to both (van den Oord et al., 2016; Engel et al., 2017), which results in some inherent loss of quality. The WaveNet decoder has either four blocks of 10 residual-layers and a resulting receptive field of 250 milliseconds (4,093 samples), as in Engel et al. (2017), or 14 layer blocks and a much larger receptive field of 4 seconds. Each residual-layer contains a causal dilated convolution with an increasing kernel size, a gated hyperbolic tangent activation, a $1 \times 1$ convolution followed by the residual summation of the layer input, and a $1 \times 1$ convolution layer which introduces a skip connection. Each residual-layer is conditioned on the encoding described above. The summed skip connections are passed through two fully connected layers and a softmax activation to output the next timestep probability. A detailed diagram of the WaveNet autoencoder is shown in Fig. 1 (b).
|
| 63 |
+
|
| 64 |
+
We modify the fast nv-wavenet CUDA inference kernels, which implement the architecture suggested by Ping et al. (2018), and create efficient WaveNet kernels that implement the WaveNet architecture suggested by Engel et al. (2017). Specifically, we make the following modifications to nv-wavenet: (i) we add initialization of skip connections with previous WAV samples, (ii) we increase the kernel capacity to support 128 residual channels and (iii) we also add the conditioning to the last fully connected layer.
|
| 65 |
+
|
| 66 |
+
# 3.2 AUDIO INPUT AUGMENTATION
|
| 67 |
+
|
| 68 |
+
In order to improve the generalization capability of the encoder, as well as to enforce it to maintain higher-level information, we employ a dedicated augmentation procedure that changes the pitch locally. The resulting audio is of a similar quality but is slightly out of tune.
|
| 69 |
+
|
| 70 |
+
Specifically, we perform our training on segments of one second length. For augmentation, we uniformly select a segment of length between 0.25 and 0.5 seconds, and modulate its pitch by a random number between -0.5 and 0.5 of half-steps, using librosa (McFee et al., 2015).
|
| 71 |
+
|
| 72 |
+
# 3.3 TRAINING AND THE LOSSES USED
|
| 73 |
+
|
| 74 |
+
Let $s ^ { j }$ be an input sample from domain $j = 1 , 2 , \dots , k ,$ $k$ being the number of domains employed during training. Let $E$ be the shared encoder, and $D ^ { j }$ the WaveNet decoder for domain $j$ . Let $C$ be the domain classification network, and $O ( s , r )$ be the random augmentation procedure applied to a sample $s$ with a random seed $r$ .
|
| 75 |
+
|
| 76 |
+
The network $C$ predicts which domain the input data came from, based on the latent vectors. It applies three 1D-convolution layers, with the ELU (Clevert et al., 2017) nonlinearity. The last layer projects the vectors to dimension $k$ and the vectors are subsequently averaged to a single $\mathbb { R } ^ { k }$ vector. A detailed diagram of network $C$ is shown as part of Fig. 1 (b).
|
| 77 |
+
|
| 78 |
+
During training, the domain classification network $C$ minimizes the classification loss
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\Omega = \sum _ { j } \sum _ { s ^ { j } } \operatorname { \mathbb { E } } _ { r } \mathcal { L } ( C ( E ( O ( s ^ { j } , r ) ) ) , j ) ,
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
and the music to music autoencoders $j = 1 , 2 , \dots$ are trained with the loss
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
- \lambda \Omega + \sum _ { j } \sum _ { s ^ { j } } \operatorname { \mathbb { E } } \mathcal { L } ( D ^ { j } ( E ( O ( s ^ { j } , r ) ) ) , s ^ { j } )
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $\mathcal { L } ( o , y )$ is the cross entropy loss applied to each element of the output $o$ and the corresponding element of the target $y$ separately. Note that the decoder $D ^ { j }$ is an autoregressive model that is conditioned on the output of $E$ . During training, the autoregressive model is fed the target output $s ^ { j }$ from the previous time-step, instead of the generated output.
|
| 91 |
+
|
| 92 |
+
# 3.4 NETWORK DURING INFERENCE
|
| 93 |
+
|
| 94 |
+
To perform the actual transformation from a sample $s$ from any domain, even from an unseen musical domain, to output domain $j$ , we apply the autoencoder of domain $j$ to it, without applying the distortion. The new sample $\hat { s } ^ { j }$ is, therefore, given as $D ^ { j } ( E ( s ) )$ . The bottleneck during inference is the WaveNet autoregressive process, which is optimized by the dedicated CUDA kernels.
|
| 95 |
+
|
| 96 |
+
# 4 EXPERIMENTS
|
| 97 |
+
|
| 98 |
+
We conduct music translation experiments, using a mix of human evaluation and qualitative analysis, in order to overcome the challenges of evaluating generative models. The experiments were done in two phases. In the first phase, described in an earlier technical report (Mor et al., 2018), we train our network on six arbitrary classical musical domains: (i) Mozart’s symphonies conducted by Karl Bohm, (ii) Haydn’s string quartets, performed by the Amadeus Quartet, (iii) J.S Bach’s cantatas for ¨ orchestra, chorus and soloists, (iv) J.S Bach’s organ works, (v) Beethoven’s piano sonatas, performed by Daniel Barenboim, and (vi) J.S Bach’s keyboard works, played on Harpsichord. The music recordings by Bach (iii,iv,vi) are from the Teldec 2000 Complete Bach collection.
|
| 99 |
+
|
| 100 |
+
In the second phase, in order to allow reproducibility and sharing of the code and models, we train on audio data from MusicNET (Thickstun et al., 2017). Domains were chosen as the largest domains that show variability between composers and instruments. The following six domains were selected: (i) J.S Bach’s suites for cello, (ii) Beethoven’s piano sonatas, (iii) Cambini’s Wind Quintet, (iv) J.S Bach’s fugues, played on piano, (v) Beethoven’s violin sonatas and (vi) Beethoven’s string quartet. This public dataset is somewhat smaller than the data used in phase one.
|
| 101 |
+
|
| 102 |
+
The phases differ in the depth of the decoders: in the first phase, we employed blocks of ten layers, while in the second, we shifted to larger receptive fields and blocks of 14. The training and test splits are strictly separated by dividing the tracks (or audio files) between the two sets. The segments used in the evaluation experiments below were not seen during training. During training, we iterate over the training domains, such that each training batch contains 16 randomly sampled one second samples from a single domain. Each batch is first used to train the domain classification network $C$ , and then to train the universal encoder and the domain decoder, given the updated discriminator.
|
| 103 |
+
|
| 104 |
+
The method was implemented in the PyTorch framework, and trained on eight Tesla V100 GPUs for a total of 6 days. We used the ADAM optimization algorithm with a learning rate of $1 0 ^ { - 3 }$ and a decay factor of 0.98 every 10,000 samples. We weighted the confusion loss with $\lambda = 1 0 ^ { - 2 }$ .
|
| 105 |
+
|
| 106 |
+
Table 1: MOS scores (mean $\pm$ SD) for the conversion tasks.
|
| 107 |
+
|
| 108 |
+
<table><tr><td rowspan="2">Converter</td><td colspan="2">Harpsichord→Piano</td><td colspan="2">Orchestra-→ Piano</td><td colspan="2">New domains-→ Piano</td></tr><tr><td>Audio quality</td><td>Translation success</td><td>Audio quality</td><td>Translation success</td><td>Audio quality</td><td>Translation success</td></tr><tr><td>Musician E</td><td>3.89 ± 1.06</td><td>4.10± 0.94</td><td>4.02± 0.81</td><td>4.12± 0.97</td><td>4.44±0.82</td><td>4.13± 0.83</td></tr><tr><td>Musician M</td><td>3.82 ± 1.18</td><td>3.75± 1.17</td><td>4.13± 0.89</td><td>4.12± 0.98</td><td>4.48±0.72</td><td>3.97± 0.88</td></tr><tr><td>Musician A</td><td>3.69 ± 1.08</td><td>3.91± 1.16</td><td>4.06± 0.86</td><td>3.99± 1.08</td><td>4.53±0.79</td><td>3.93± 0.95</td></tr><tr><td>Our</td><td>2.95 ± 1.18</td><td>3.07± 1.30</td><td>2.56± 1.04</td><td>2.86± 1.16</td><td>2.36±1.17</td><td>3.18± 1.14</td></tr></table>
|
| 109 |
+
|
| 110 |
+
# 4.1 EVALUATION OF TRANSLATION QUALITY
|
| 111 |
+
|
| 112 |
+
The first set of experiments compared the method to human musicians using the phase one network. Since human musicians, are equipped by evolution with music skills, selected among their peers according to their talent, and who have trained for decades, we do not expect to do better than humans at this point. To perform this comparsion, music from domain $X$ was converted to piano, for various $X$ . The piano was selected for practical reasons: pianists are in higher availability than other musicians and a piano is easier to produce than, e.g., an orchestra.
|
| 113 |
+
|
| 114 |
+
Three professional musicians with a diverse background were employed for the conversion task: E, who is a conservatory graduate with an extensive background in music theory and piano performance, and also specializes in transcribing music; M, who is a professional producer, composer, pianist and audio engineer, who is an expert in musical transcription; and A who is a music producer, editor, and a skilled player of keyboards and other instruments.
|
| 115 |
+
|
| 116 |
+
The task used for comparison was to convert 60 segments of five seconds each to piano. Three varied sources were used. 20 of the segments were from Bach’s keyboard works, played on a Harpsichord, and 20 others were from Mozart’s 46 symphonies conducted by Karl Bohm, which are ¨ orchestral works. The last group of 20 segments was a mix of three different domains that were not encountered during training – Swing Jazz, metal guitar riffs, and instrumental Chinese music. The 60 music segments were encoded by the universal encoder and decoded by the WaveNet trained on Beethoven’s piano sonatas, as performed by Daniel Barenboim.
|
| 117 |
+
|
| 118 |
+
In order to compare between the conversions, we employed human evaluation, which is subjective and could be a mix of the assessment of the audio quality and the assessment of the translation itself. This limits the success of the automatic method, since the quality of the algorithm’s output is upper bounded by the neural network architecture and cannot match that of a high quality recording.
|
| 119 |
+
|
| 120 |
+
Since there is a trade-off between the fidelity to the original piece and the ability to create audio in the target domain, we present two scores: audio quality of the output piano and a matching score for the translation. While one can argue that style is hard to define and, therefore, such subjective experiments are not well founded, there are many similar MOS experiments in image to image translation, e.g., (Lample et al., 2017), and indeed MOS studies are used exactly where the translation metric is perceptual and subjective.
|
| 121 |
+
|
| 122 |
+
Specifically, Mean Opinion Scores (MOS) were collected using the CrowdMOS (Ribeiro et al., 2011) package. Two questions were asked: (1) what is the quality of the audio, and (2) how well does the converted version match the original. The results are shown in Tab. 1. It shows that our audio quality is considerably lower than the results produced by humans, using a keyboard connected to a computer (which should be rated as near perfect and makes any other audio quality in the MOS experiment pale in comparison). Regarding the translation success, the conversion from Harpsichord is better than the conversion from Orchestra. Surprisingly, the conversion from unseen domains is more successful than both these domains. In all three cases, our system is outperformed by the human musicians, whose conversions will soon be released to form a public benchmark.
|
| 123 |
+
|
| 124 |
+
Lineup experiment In another set of experiments, we evaluate the ability of persons to identify the source musical segment from the conversions. We present, in each test, a set of six segments. One segment is a real segment from a random domain out of the ones used to train our network, and five are the associated translations. We shuffle the segments and ask which is the original one and which are conversions. To equate the quality of the source to that of the translations and prevent identification by quality, we attach the source after passing it through its domain’s autoencoder.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 2: Results of the lineup experiment. (a) listeners from the general population tend to select the same domain as the source regardless of the actual source. (b) the musician A failed to identify the source most of the time. (c) the amateurs T and (d) S failed most of the time.
|
| 128 |
+
|
| 129 |
+
The translation is perfectly authentic, if the distribution of answers is uniform. However, the task is hard to define. In a first attempt, Amazon Mechanical Turk (AMT) freelancers tended to choose the Mozart domain as the source, regardless of the real source and the presentation order, probably due to its relatively complex nature in comparison to the other domains. This is shown in the confusion matrix of Fig. 2(a). We, therefore, asked two amateur musicians (T, a guitarist, and S a dancer and a drummer with a background in piano) and the professional musician A (from the first experiment) to identify the source sample out of the six options, based on authenticity.
|
| 130 |
+
|
| 131 |
+
The results, in Fig. 2(b-d) show that there is a great amount of confusion. T and A failed in most cases, and A tended to show a similar bias to the AMT freelancers. S also failed to identify the majority of the cases, but showed coherent confusion patterns between pairs of instruments.
|
| 132 |
+
|
| 133 |
+
NSynth pitch experiments NSynth (Engel et al., 2017) is an audio dataset containing samples of 1,006 instruments, each sample labeled with a unique pitch, timbre, and envelope. Each sample is a four second monophonic 16kHz snippet, ranging over every pitch of a standard MIDI piano (21-108) as well as five different velocities. It was not seen during training of our system.
|
| 134 |
+
|
| 135 |
+
We measure the correlation of embeddings retrieved using the encoder of our network across pitch for multiple instruments. The first two columns (from the left hand side) of Fig. 3 show selfcorrelations, while the third column shows correlation across instruments. As can be seen, the embedding encodes pitch information very clearly, despite being trained on complex polyphonic audio. The cosine similarity between the two instruments for the same pitch is, on average, 0.90-0.95 (mean of the diagonal), depending on the pair of instruments.
|
| 136 |
+
|
| 137 |
+
# 4.2 EXPLORATORY EXPERIMENTS
|
| 138 |
+
|
| 139 |
+
In order to freely share our trained models and allow for maximal reproducibility, we have retrained the network with data from MusicNet (Thickstun et al., 2017). The following experiments are based on this network and are focused on understanding the properties of the conversion. The description is based on the supplementary media available at musictranslation.github.io.
|
| 140 |
+
|
| 141 |
+
Are we doing more than timbral transfer? Is our system equivalent to pitch estimation followed by rendering with a different instrument, or can it capture stylistic musical elements? We demonstrate that our system does more than timbral transfer in two ways. Consider the conversions presented in supplementary S1, which consist of many conversion examples from each of the domains to every other domain. There are many samples where it is clear that more than timbral transfer is happening. For example, when converting Beethoven’s string quartet music to a wind quintet (Sample #30), an ornamentation note is added in the output that is nowhere to be found in the input music; when converting Beethoven’s violin sonata to Beethoven’s solo piano (Samples $\# 2 4$ and $\# 2 3$ ), the violin line seamlessly integrated into the piano part; when converting Beethoven’s solo piano music to Bach’s solo cello (Sample #9), the bass line of the piano is converted to cello. It is perhaps most evident when converting solo piano to piano and violin; an identity transformation would have been a valid translation, but the network adds a violin part to better match the output distribution.
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 3: Correlation of embeddings across pitch. (a) Self-correlation for NSynth’s flute-acoustic027. (b) Self-correlation for keyboard-electronic-019. (c) The correlation between the electronic keyboard (y-axis) and the flute. (d) Self-correlation for brass-acoustic-018. (e) Self-correlation for string-acoustic-029. (f) The correlation between the brass instrument (y-axis) and the string.
|
| 145 |
+
|
| 146 |
+
To further demonstrate the capabilities of our system, we train a network on two piano domains: MusicNet solo piano recordings of Bach and Beethoven. We reduce the size of the latent space to 8 to limit the ability of the original input to be repeated exactly, thereby encouraging the decoders to be more ”creative” than they normally would, with the goal of observing how decoders trained on different training data will use their freedom of expression. The input we employ is a simple MIDI synthesized as a piano. Supplementary S2 presents a clear stylistic difference: one can hear some counterpoint in the Bach sample, whereas the Beethoven output exhibits a more “Sturm und Drang” feeling, indicating that the network learns stylistic elements from the training data.
|
| 147 |
+
|
| 148 |
+
Comparison with previous methods We compare our results with those of Concatenative Synthesis methods in supplementary S3. To do that, we use our system to translate target files from published results of two works in that field, and present the methods’ results side-by-side. Samples 1 and 2 are compared with the published results of Coleman (2016), a work comparing several Concatenative Synthesis methods, and uses a violin passage as source audio input. Sample 3 is compared with MATConcat (Sturm, 2006), which uses a corpus of string quartets as a source material. Sample 1 is a fugue performed on a piano. We show that we are able to convincingly produce string quartet and wind ensemble renditions of the piece. To push our model to its boundaries, we also attempt to convert the polyphonic fugue to solo cello, obtaining a rather convincing result. We believe that our results surpass in naturalness those obtained by concatenative methods. Sample 2 is an orchestra piece, which for our system is data that has never been seen during training. We convert it to piano, solo cello and a wind quintet, achieving convincing results, that we believe surpass the concatenative synthesis results. Sample 3 is another orchestra piece, which includes a long drum roll, followed by brass instruments. It is not quite well-defined how to convert a drum roll to a string quartet, but we believe our rendition is more coherent. Our method is able to render the brass instruments and orchestral music after the drum roll more convincingly than MATConcat, which mimics the audio volume but loses most musical content.
|
| 149 |
+
|
| 150 |
+
Universality Note that our network has never observed drums, brass instruments or an entire orchestra during training, and, therefore, the results of supplementary S3 also serve to demonstrate the versatility of the encoder module resulting from our training procedure (and so do those of S2). Supplementary S4 presents more out-of-domain conversion results, including other domains from MusicNet, whistles, and even spontaneous hand clapping.
|
| 151 |
+
|
| 152 |
+
The universality property hinges on the success of training a domain-independent representation. As can be seen in the confusion matrices given in Fig. 4, the domain classification network does not do considerably better than chance when the networks converge.
|
| 153 |
+
|
| 154 |
+
Ablation Analysis We conducted three ablation studies. In the first study, the training procedure did not use the augmentation procedure of Sec. 3.2. This resulted in a learning divergence during training, and we were unable to obtain a working model trained without augmentation, despite considerable effort.
|
| 155 |
+
|
| 156 |
+
In order to investigate the option of not using augmentation in a domain where training without it converges, we have applied our method to the task of voice conversion. Our experiments show a clear advantage for applying augmentation, see Appendix A. Additional experiments were conducted, for voice conversion, using the VQ-VAE method of van den Oord et al. (2017).
|
| 157 |
+
|
| 158 |
+
In the second ablation study, the domain classification network was not used $\lambda = 0$ ). Without requiring that the shared encoder remove domain-specific information from the latent representation of the input, the network learned to simply encode all information in the latent vectors, and all decoders learned to turn this information back to the original waveform. This resulted in a model that does not do any conversion at all.
|
| 159 |
+
|
| 160 |
+
Finally, we performed an ablation study on the latent code size, in which we convert a simple MIDI clip to the Beethoven domain and the Bach domain. Samples are available as supplementary S6. As can be heard, a latent dimensionality of 64 tends to reconstruct the input (unwanted memorization). A model with a latent space of 8 (used in S2) performs well. A model with a latent dimensionality of 4 is more creative, less related to the input midi, and also suffers from a reduction in quality.
|
| 161 |
+
|
| 162 |
+
Semantic blending We blend two encoded musical segments linearly in order to check the additivity of the embedding space. For that, we have selected two random five second segments $i$ and $j$ from each domain and embedded both using the encoder, obtaining $e _ { i }$ and $e _ { j }$ . We then combine the embeddings as follows: starting with 3.5 seconds from $e _ { i }$ , we combine the next 1.5 seconds of $e _ { i }$ with the first 1.5 seconds of $e _ { j }$ using a linear weighting with weights $1 - t / 1 . 5$ and $t / 1 . 5$ respectively, where $t \in [ 0 , 1 . 5 ]$ . We then use the various decoders to generate audio. The results are natural and the shift is completely seamless, as far as we observe. See supplementary S5 for samples.
|
| 163 |
+
|
| 164 |
+
The samples also demonstrate that in the scenario we tested, one can alternatively use fade-in and fade-out to create a similar effect. We therefore employ a second network that is used for a related task of voice conversion (see Appendix A) and demonstrate that in the case of voice conversion, latent space embedding is clearly superior to converting the audio itself. These samples can also be found in supplementary S5 for details and samples.
|
| 165 |
+
|
| 166 |
+
# 5 DISCUSSION
|
| 167 |
+
|
| 168 |
+
Our work demonstrates capabilities in music conversion, which is a high-level task (a terminology that means that they are more semantic than low-level audio processing tasks), and could open the door to other high-level tasks, such as composition. We have initial results that we find interesting: by reducing the size of the latent space, the decoders become more “creative” and produce outputs that are natural yet novel, in the sense that the exact association with the original input is lost.
|
| 169 |
+
|
| 170 |
+
# ACKNOWLEDGMENTS
|
| 171 |
+
|
| 172 |
+
This work is part of Adam Polyak’s Ph.D thesis research conducted at Tel Aviv University.
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 4: Accuracy of the domain classification network. (a) A confusion matrix of the domain classification network at the end of training on the private dataset used in the first phase of experiments. The mean accuracy is 0.30. (b) The confusion matrix for the MusicNet dataset used in the second phase of experiments. The mean accuracy is 0.24.
|
| 176 |
+
|
| 177 |
+
# REFERENCES
|
| 178 |
+
|
| 179 |
+
Shaun Barry and Youngmoo Kim. style transfer for musical audio using multiple time-frequency representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } }$ BybQ7zWCb.
|
| 180 |
+
|
| 181 |
+
Yunjey Choi, Min-Je Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. StarGAN: Unified generative adversarial networks for multi-domain image-to-image translation. In arXiv preprint 1711.09020, 2017.
|
| 182 |
+
|
| 183 |
+
Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). In International Conference on Learning Representations (ICLR), 2017.
|
| 184 |
+
|
| 185 |
+
G Coleman. Descriptor Control of Sound Transformations and Mosaicing Synthesis. PhD thesis, Universitat Pompeu Fabra, Barcelona, 2016.
|
| 186 |
+
|
| 187 |
+
Sander Dieleman, Aaron van den Oord, and Karen Simonyan. The challenge of realistic music ¨ generation: modelling raw audio at scale. In Advances in Neural Information Processing Systems, 2018.
|
| 188 |
+
|
| 189 |
+
Jesse Engel, Cinjon Resnick, Adam Roberts, Sander Dieleman, Mohammad Norouzi, Douglas Eck, and Karen Simonyan. Neural audio synthesis of musical notes with WaveNet autoencoders. In ICML, 2017.
|
| 190 |
+
|
| 191 |
+
Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. J. Mach. Learn. Res., 17(1):2096–2030, 2016.
|
| 192 |
+
|
| 193 |
+
Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In CVPR, 2016.
|
| 194 |
+
|
| 195 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS. 2014.
|
| 196 |
+
|
| 197 |
+
Gaetan Hadjeres and Franc¸ois Pachet. DeepBach: a steerable model for bach chorales generation.¨ In ICML, 2017.
|
| 198 |
+
|
| 199 |
+
Albert Haque, Michelle Guo, and Prateek Verma. Conditional end-to-end audio transforms. In Arxiv preprint 1804.00047, 2018.
|
| 200 |
+
|
| 201 |
+
Keith Ito. The lj speech dataset, 2017. URL ttps://keithito.com/ LJ-Speech-Dataset.
|
| 202 |
+
Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In ECCV, 2016.
|
| 203 |
+
Takuhiro Kaneko and Hirokazu Kameoka. Parallel-data-free voice conversion using cycle-consistent adversarial networks. arXiv preprint arXiv:1711.11293, 2017.
|
| 204 |
+
Taeksoo Kim, Moonsu Cha, Hyunsoo Kim, Jungkwon Lee, and Jiwon Kim. Learning to Discover Cross-Domain Relations with Generative Adversarial Networks. In ICML, 2017.
|
| 205 |
+
Simon King and Vasilis Karaiskos. The blizzard challenge 2011. In Blizzard Challenge workshop, 2011.
|
| 206 |
+
Simon King and Vasilis Karaiskos. The blizzard challenge 2013. In Blizzard Challenge workshop, 2013.
|
| 207 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. Stat, 2014.
|
| 208 |
+
Guillaume Lample, Neil Zeghidour, Nicolas Usunier, Antoine Bordes, Ludovic Denoyer, et al. Fader networks: Manipulating images by sliding attributes. In Advances in Neural Information Processing Systems, pp. 5967–5976, 2017.
|
| 209 |
+
Ming-Yu Liu and Oncel Tuzel. Coupled generative adversarial networks. In NIPS, pp. 469–477. 2016.
|
| 210 |
+
Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In NIPS. 2017.
|
| 211 |
+
Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard Zemel. The variational fair autoencoder. arXiv preprint arXiv:1511.00830, 2015.
|
| 212 |
+
Brian McFee, Colin Raffel, Dawen Liang, Daniel PW Ellis, Matt McVicar, Eric Battenberg, and Oriol Nieto. librosa: Audio and music signal analysis in python. 2015.
|
| 213 |
+
Noam Mor, Lior Wolf, Adam Polyak, and Yaniv Taigman. A universal music translation network. arXiv preprint arXiv:1805.07848, 2018.
|
| 214 |
+
Carthach ´ O Nuan ´ ain, Perfecto Herrera, and Sergi Jord ´ a. Rhythmic concatenative synthesis for elec- \` tronic music: Techniques, implementation, and evaluation. Computer Music Journal, 41(2):21– 37, June 2017. ISSN 0148-9267. doi: 10.1162/COMJ a 00412.
|
| 215 |
+
Wei Ping, Kainan Peng, Andrew Gibiansky, Sercan Omer Arik, Ajay Kannan, Sharan Narang, ¨ Jonathan Raiman, and John Miller. Deep Voice 3: 2000-speaker neural text-to-speech. In ICLR, 2018.
|
| 216 |
+
Dario Rethage, Jordi Pons, and Xavier Serra. A wavenet for speech denoising. arXiv preprint arXiv:1706.07162, 2017.
|
| 217 |
+
Flavio Ribeiro, Dinei Flor ´ encio, Cha Zhang, and Michael Seltzer. Crowdmos: An approach for ˆ crowdsourcing mean opinion score studies. In Acoustics, Speech and Signal Processing (ICASSP), IEEE International Conference, pp. 2416–2419. IEEE, 2011.
|
| 218 |
+
Diemo Schwarz. Concatenative sound synthesis: The early years. Journal of New Music Research, 35(1):3–22, 2006.
|
| 219 |
+
Diemo Schwarz. Corpus-based sound synthesis survey, 2018. URL http://imtr.ircam.fr/ imtr/Corpus-Based_Sound_Synthesis_Survey.
|
| 220 |
+
Jonathan Shen, Ruoming Pang, Ron J. Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Zhifeng Chen, Yu Zhang, Yuxuan Wang, R. J. Skerry-Ryan, Rif A. Saurous, Yannis Agiomyrgiannakis, and Yonghui Wu. Natural TTS synthesis by conditioning wavenet on mel spectrogram predictions. In ICASSP, 2018.
|
| 221 |
+
|
| 222 |
+
Ian Simon, Sumit Basu, David Salesin, and Maneesh Agrawala. Audio analogies: Creating new music from an existing performance by concatenative synthesis. In Int. Computer Music Conference, 2005.
|
| 223 |
+
|
| 224 |
+
Bob L Sturm. Adaptive concatenative sound synthesis and its application to micromontage composition. Computer Music Journal, 30(4):46–66, 2006.
|
| 225 |
+
|
| 226 |
+
John Thickstun, Zaid Harchaoui, and Sham Kakade. Learning Features of Music From Scratch. In ICLR, 2017.
|
| 227 |
+
|
| 228 |
+
D. Ulyanov, V. Lebedev, A. Vedaldi, and V. Lempitsky. Texture networks: Feed-forward synthesis of textures and stylized images. In ICML, 2016.
|
| 229 |
+
|
| 230 |
+
Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural Discrete Representation Learning. In NIPS, 2017.
|
| 231 |
+
|
| 232 |
+
Aron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alexander Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In Arxiv preprint 1609.03499, 2016.
|
| 233 |
+
|
| 234 |
+
V Verfaille and D Arfib. A-dafx: Adaptive digital audio effects. energy, 2000.
|
| 235 |
+
|
| 236 |
+
Zili Yi, Hao Zhang, Ping Tan, and Minglun Gong. DualGAN: Unsupervised dual learning for image-to-image translation. In ICCV, 2017.
|
| 237 |
+
|
| 238 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV, 2017.
|
| 239 |
+
|
| 240 |
+
Aymeric Zils and Franc¸ois Pachet. Musical mosaicing. In Digital Audio Effects $( D A F x )$ , volume 2, pp. 135, 2001.
|
| 241 |
+
|
| 242 |
+
# A VOICE CONVERSION EXPERIMENTS
|
| 243 |
+
|
| 244 |
+
We further evaluate our method on the task of voice conversion, which is not as challenging as the music conversion task explored in this work. It is, therefore, a convenient test bed when comparing to the VQ-VAE (van den Oord et al., 2017) method, which, as we mention in the paper, did not perform well in our music-based experiments, and which was shown by the authors to work on voice conversion.
|
| 245 |
+
|
| 246 |
+
In addition, as mentioned in Sec. 4.2, successful training on the music domains requires data augmentation. In voice conversion, we were able to successfully train our network even without data augmentation, and we can therefore perform a direction comparison.
|
| 247 |
+
|
| 248 |
+
We apply our method, a variant without data augmentation, and the VQVQE method on three publicly available datasets: “Nancy” from Blizzard 2011 (King & Karaiskos, 2011), Blizzard 2013 (King & Karaiskos, 2013) and LJ (Ito, 2017) dataset. The generated samples are obtained by converting an audio produced by the Google Cloud TTS robot to these three voices. The models are evaluated by their quality using the Mean Opinion Score, as obtained with the CrowdMOS (Ribeiro et al., 2011) package.
|
| 249 |
+
|
| 250 |
+
As can be seen in Tab. 2, samples generated by our WaveNet autoencoder based method are of higher quality than those of VQ-VAE. A second results is that the method trains well in voice conversion, even without the data augmentation. However, this leads to inferior results.
|
| 251 |
+
|
| 252 |
+
# A.1 VOICE CONVERSION ARCHITECTURES
|
| 253 |
+
|
| 254 |
+
We slightly modify the WaveNet autoencoder used in our method for the voice conversion task. Specifically, we modify the size of the latent encoding to be in $\mathbb { R } ^ { 4 8 }$ , instead of $\mathbb { R } ^ { 6 4 }$ . The rest of the model details remain the same as in the music translation task.
|
| 255 |
+
|
| 256 |
+
In our implementation of the VQ-VAE, the encoder was composed of 6 one-dimensional convolution layer with a ReLU activation. As in the original paper, the convolutions were with a stride of 2 and kernel size of 4. Therefore, the mu-law quantized waveform is temporally downsampled by $\times 6 4$ . We used a dictionary of 512 vectors in $\mathbb { R } ^ { 1 2 8 }$ . The obtained quantized encoding is upsampled and serves to condition a decoder which reconstructs the input waveform. Here as well, we follow the original paper and implement a single WaveNet decoder for all three speaker domains, this is achieved by concatenating the quantized encoding with a learned speaker embedding. We train the VQ-VAE using dictionary updates with Exponential Moving Averages (EMA) with a decay parameter of $\gamma = 0 . 9 9$ and a commitment parameter of $\beta = 1$ .
|
| 257 |
+
|
| 258 |
+
Table 2: MOS scores (mean $\pm$ SD) for the unseen speaker conversion.
|
| 259 |
+
|
| 260 |
+
<table><tr><td></td><td>Blizzard 2013</td><td>Nancy</td><td>LJ</td></tr><tr><td>Our method</td><td>3.16 ± 0.79</td><td>3.85 ± 0.84</td><td>3.40± 0.77</td></tr><tr><td>Our method - without augmentation</td><td>3.07 ± 0.79</td><td>3.87 ± 0.85</td><td>2.85± 0.92</td></tr><tr><td>VQ-VAE</td><td>2.53 ± 1.08</td><td>2.92 ± 0.92</td><td>2.22± 0.96</td></tr></table>
|
parse/train/HJGkisCcKm/HJGkisCcKm_content_list.json
ADDED
|
@@ -0,0 +1,1347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "A UNIVERSAL MUSIC TRANSLATION NETWORK ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
171,
|
| 8 |
+
98,
|
| 9 |
+
753,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Noam Mor Facebook AI Research noam.mor@gmail.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
362,
|
| 21 |
+
186
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Lior Wolf & Adam Polyak Facebook AI Research & Tel Aviv Uni. wolf,adampolyak@fb.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
382,
|
| 30 |
+
145,
|
| 31 |
+
640,
|
| 32 |
+
188
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Yaniv Taigman Facebook AI Research yaniv@fb.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
658,
|
| 41 |
+
145,
|
| 42 |
+
812,
|
| 43 |
+
188
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
452,
|
| 53 |
+
224,
|
| 54 |
+
544,
|
| 55 |
+
239
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "We present a method for translating music across musical instruments and styles. This method is based on unsupervised training of a multi-domain wavenet autoencoder, with a shared encoder and a domain-independent latent space that is trained end-to-end on waveforms. Employing a diverse training dataset and large net capacity, the single encoder allows us to translate also from musical domains that were not seen during training. We evaluate our method on a dataset collected from professional musicians, and achieve convincing translations. We also study the properties of the obtained translation and demonstrate translating even from a whistle, potentially enabling the creation of instrumental music by untrained humans. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
258,
|
| 65 |
+
764,
|
| 66 |
+
397
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
433,
|
| 77 |
+
336,
|
| 78 |
+
448
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Humans have always created music and replicated it – whether it is by singing, whistling, clapping, or, after some training, playing improvised or standard musical instruments. This ability is not unique to us, and there are many other vocal mimicking species that are able to repeat music from hearing. Music is also one of the first domains to be digitized and processed by modern computers and algorithms. It is, therefore, somewhat surprising that in the core music task of mimicry, AI is still much inferior to biological systems. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
467,
|
| 88 |
+
825,
|
| 89 |
+
550
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work, we present a novel way to produce convincing musical translation between instruments and styles. For example1, we convert the audio of a Mozart symphony performed by an orchestra to an audio in the style of a pianist playing Beethoven. Our ability builds upon two technologies that have recently become available: (i) the ability to synthesize high quality audio using autoregressive models, and (ii) the recent advent of methods that transform between domains in an unsupervised way. The first technology allows us to generate high quality and realistic audio and thanks to the teacher forcing technique, autoregressive models are efficiently trained as decoders. The second family of technologies contributes to the practicality of the solution, since posing the learning problem in the supervised setting, would require a parallel dataset of different musical instruments. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
558,
|
| 99 |
+
825,
|
| 100 |
+
683
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In our architecture, we employ a single, universal, encoder and apply it to all inputs (universal here means that a single encoder can address all input music, allowing us to achieve capabilities that are known as universal translation). In addition to the advantage of training fewer networks, this also enables us to convert from musical domains that were not heard during training to any of the domains encountered. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
689,
|
| 110 |
+
823,
|
| 111 |
+
758
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The key to being able to train a single encoder architecture, is making sure that the domain-specific information is not encoded. We do this using a domain confusion network that provides an adversarial signal to the encoder. In addition, it is important for the encoder not to memorize the input signal but to encode it in a semantic way. We achieve this by distorting the input audio by random local pitch modulation. During training, the network is trained as a denoising autoencoder, which recovers the undistorted version of the original input. Since the distorted input is no longer in the musical domain of the output, the network learns to project out-of-domain inputs to the desired output domain. In addition, the network no longer benefits from memorizing the input signal and employs a higher-level encoding. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
766,
|
| 121 |
+
825,
|
| 122 |
+
891
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Asked to convert one musical instrument to another, our network shows a level of performance that seems to approach that of musicians. When controlling for audio quality, which is still lower for generated music, it is many times hard to tell which is the original audio file and which is the output of the conversion that mimics a completely different instrument. The network is also able to successfully process unseen musical instruments such as drums, or other sources, such as whistles. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
103,
|
| 132 |
+
825,
|
| 133 |
+
174
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 PREVIOUS WORK ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
176,
|
| 143 |
+
199,
|
| 144 |
+
351,
|
| 145 |
+
215
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Domain Transfer Recently, there has been a considerable amount of work, mostly on images and text, which performs unsupervised translation between domains $\\mathcal { A }$ and $\\boldsymbol { B }$ , without being shown any matching pairs, i.e., in a completely unsupervised way. Almost all of this work employs GAN constraints (Goodfellow et al., 2014), in order to ensure a high level of indistinguishability between the translations of samples in $A$ and samples from the domain $B$ . In our work, the output is generated by an autoregressive model and training takes place using the ground truth output of the previous time steps (“teacher forcing”), instead of the predicted ones. A complete autoregressive inference is only done during test time, and it is not practical to apply such inference during training in order to get a realistic generated (“fake”) sample for the purpose of training the GAN. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
234,
|
| 155 |
+
825,
|
| 156 |
+
361
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Another popular constraint is that of circularity, namely that by mapping from $\\mathcal { A }$ to $\\boldsymbol { B }$ and back to $\\mathcal { A }$ a reconstruction of the original sample is obtained (Kim et al., 2017; Zhu et al., 2017; Yi et al., 2017). In our work, for the same reason mentioned above, the output during training does not represent the future test time output, and such a constraint is unrealistic. An application of circularity in audio was present in (Kaneko & Kameoka, 2017), where a non-autoregressive model between vocoder features is used to convert between voices in an unsupervised way. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
367,
|
| 166 |
+
825,
|
| 167 |
+
450
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Cross domain translation is not restricted to a single pair of domains. The recent StarGAN (Choi et al., 2017) method creates multiple cycles for mapping between multiple (more than two) domains. The method employs a single generator that receives as input the source image as well as the specification of the target domain. It then produces the analog “fake” image from the target domain. Our work employs multiple decoders, one per domain, and attempts to condition a single decoder on the selection of the output domain failed to produce convincing results. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
458,
|
| 177 |
+
823,
|
| 178 |
+
541
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "UNIT (Liu et al., 2017) employs an encoder-decoder pair per each domain, where the latent spaces of the domains are assumed to be shared. This is achieved by sharing the network layers that are distant from the image (the top layers of the encoder and the bottom layers of the decoder), similarly to CoGAN (Liu & Tuzel, 2016). Cycle-consistency is also added, and structure is added to the latent space using a variational autoencoder (Kingma & Welling, 2014) loss terms. Our method employs a single encoder, which eliminates the need for many of the associated constraints. In addition, we do not impose a VAE loss term (Kingma & Welling, 2014) on the latent space of the encodings and instead employ a domain confusion loss (Ganin et al., 2016). The work of Louizos et al. (2015) investigates the problem of learning invariant representations by employing the Maximum Mean Discrepancy (MMD), which we do not use. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
547,
|
| 188 |
+
825,
|
| 189 |
+
686
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Audio Synthesis WaveNet (van den Oord et al., 2016) is an autoregressive model that predicts the probability distribution of the next sample, given the previous samples and an input conditioning signal. Its generated output is currently considered of the highest naturalness, and is applied in a range of tasks. In (Rethage et al., 2017), the authors have used it for denoising waveforms by predicting the middle ground-truth sample from its noisy input support. Recent contributions in Text-To-Speech(TTS) (Ping et al., 2018; Shen et al., 2018) have successfully conditioned wavenet on linguistic and acoustic features to obtain state of the art performance. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
694,
|
| 199 |
+
825,
|
| 200 |
+
791
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "In VQ-VAE (van den Oord et al., 2017), voice conversion was obtained by employing a variational autoencoder that produces a quantized latent space that is conditioned on the speaker identity. Similar to our work, the decoder is based on WaveNet. However, we impose a greater constraint on the latent space by (a) having a universal encoder, forcing the embeddings of all domains to lie in the same space, yet (b) training a separate reconstructing decoder for each domain, provided that (c) the latent space is domain independent, thereby reducing source-target pathways memorization, which is also accomplished by (d) employing augmentation to distort the input signal. Invariance is achieved in VQ-VAE through the strong bottleneck effect achieved by discretization. Despite some effort, we were not able to use a discrete latent space here. ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
797,
|
| 210 |
+
825,
|
| 211 |
+
924
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 1
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "image",
|
| 217 |
+
"img_path": "images/8b9792730bd1bbfaf4808011743662447a7857a2b456112cf8a61abcd73a70b2.jpg",
|
| 218 |
+
"image_caption": [
|
| 219 |
+
"Figure 1: (a) The schematic architecture of our translation network. The confusion term (marked by the dashed line) is employed only during training. $E$ is the shared encoder, $C$ is the domain classification network employed in the domain confusion term, $D ^ { i }$ are the various decoders. (b) A detailed depiction of our architecture. ‘NC’ indicates non-causal convolution. ‘1x1’ indicates a 1-D convolution with kernel size 1. "
|
| 220 |
+
],
|
| 221 |
+
"image_footnote": [],
|
| 222 |
+
"bbox": [
|
| 223 |
+
187,
|
| 224 |
+
99,
|
| 225 |
+
854,
|
| 226 |
+
263
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "Recently, Dieleman et al. (2018) explored discretization as a method to capture long-range dependencies in unconditioned music generation, for up to 24 seconds. We focus on translation, and the conditioning on the source signal carries some long-range information on the development of the music. Consider an analogy to a myopic language translation system, where the input is a story in English and the output is a story in Spanish. Even if the translation occurs one sentence at a time, the main theme of the story is carried by the “conditioning” on the source text. ",
|
| 233 |
+
"bbox": [
|
| 234 |
+
174,
|
| 235 |
+
421,
|
| 236 |
+
825,
|
| 237 |
+
506
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "The architecture of the autoencoder we employ is the wavenet-autoencoder presented in (Engel et al., 2017). In comparison to this work, our inputs are not controlled and are collected from consumer media. Our overall architecture differs in that multiple decoders and an additional auxiliary network, which is used for disentangling the domain information from the other aspects of the music representation, are trained and by the addition of an important augmentation step. ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
174,
|
| 246 |
+
513,
|
| 247 |
+
823,
|
| 248 |
+
583
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "In the supervised learning domain, an audio style transfer between source and target spectrograms was performed with sequence-to-sequence recurrent networks (Haque et al., 2018). This method requires matching pairs of samples played on different instruments. In another fully supervised work (Hadjeres & Pachet, 2017), a graphical model aimed at modeling polyphonic tones of Bach was trained on notes, capturing the specificity of Bach’s chorales. This model is based on RNNs and requires a large corpus of notes of a particular instrument produced with a music editor. ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
589,
|
| 258 |
+
825,
|
| 259 |
+
674
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "Style Transfer Style transfer is often confused with domain translation and the distinction is not always clear. In the task of style transfer, the “content” remains the same between the input and the output, but the ”style” is modified. Notable contributions in the field include (Gatys et al., 2016; Ulyanov et al., 2016; Johnson et al., 2016), which synthesize a new image that minimizes the content loss with respect to the content-donor sample and the style loss with respect to one or more samples of a certain style. The content loss is based on comparing the activations of a network training for an image categorization task. The style loss compares the statistics of the activations in various layers of the categorization layer. An attempt at audio style transfer is described in (Barry & Kim, 2018). ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
173,
|
| 268 |
+
680,
|
| 269 |
+
825,
|
| 270 |
+
791
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "Concatenative Synthesis In the computer music and audio effects literature, the conversion task we aim to solve is tackled by concatenating together short pieces of audio from the target domain, such that the output audio resembles the input audio from the source domain Verfaille & Arfib (2000); Schwarz (2006); Zils & Pachet (2001); Simon et al. (2005). The method has been extensively researched, see the previous work section of Nuanain et al. (2017) and the online resource of Schwarz ´ (2018). A direct comparison to such methods is challenging, since many of the methods have elaborate interfaces with many tunable parameters that vary from one conversion task to the next. To the extent possible, we compare with some of the published results in Sec. 4.2, obtaining what we believe to be clearly superior results. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
173,
|
| 279 |
+
797,
|
| 280 |
+
825,
|
| 281 |
+
924
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "3 METHOD ",
|
| 288 |
+
"text_level": 1,
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
102,
|
| 292 |
+
282,
|
| 293 |
+
117
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 3
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Our domain translation method is based on training multiple autoencoder pathways, one per musical domain, such that the encoders are shared. During training, a softmax-based reconstruction loss is applied to each domain separately. The input data is randomly augmented, prior to applying the encoder, in order to force the network to extract high-level semantic features, instead of simply memorizing the data. In addition, a domain confusion loss (Ganin et al., 2016) is applied to the latent space to ensure that the encoding is not domain-specific. A diagram of the translation architecture is shown in Fig. 1 (a). ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
142,
|
| 303 |
+
825,
|
| 304 |
+
241
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 3
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "3.1 WAVENET AUTOENCODER ",
|
| 311 |
+
"text_level": 1,
|
| 312 |
+
"bbox": [
|
| 313 |
+
176,
|
| 314 |
+
271,
|
| 315 |
+
398,
|
| 316 |
+
285
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 3
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "We reuse an existing autoencoder architecture that is based on a WaveNet decoder and a WaveNetlike dilated convolution encoder (Engel et al., 2017). The WaveNet of each decoder is conditioned on the latent representation produced by the encoder. In order to reduce the inferencetime, the nv-wavenet CUDA kernels provided by NVIDIA ( https://github.com/NVIDIA/ nv-wavenet) were used after modification to better match the architecture suggested by van den Oord et al. (2016), as described below. ",
|
| 323 |
+
"bbox": [
|
| 324 |
+
174,
|
| 325 |
+
303,
|
| 326 |
+
823,
|
| 327 |
+
386
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 3
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "The encoder is a fully convolutional network that can be applied to any sequence length. The network has three blocks of ten residual-layers, a total of thirty layers. Each residual-layer contains a RELU nonlinearity, a non-causal dilated convolution with an increasing kernel size, a second RELU, and a $1 \\times 1$ convolution followed by the residual summation of the activations before the first RELU. There is a fixed width of 128 channels. After the three blocks, there is an additional $1 \\times 1$ layer. An average pooling with a kernel size of 50 milliseconds (800 samples) follows in order to obtain an encoding in $\\mathbb { R } ^ { 6 \\bar { 4 } }$ , which implies a temporal down sampling by a factor of $\\times 1 2 . 5$ . ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
174,
|
| 336 |
+
393,
|
| 337 |
+
825,
|
| 338 |
+
491
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 3
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "The encoding is upsampled temporally to the original audio rate, using nearest neighbor interpolation and is used to condition a WaveNet decoder. The conditioning signal is passed through a $1 \\times 1$ layer that is different for each WaveNet layer. The audio (both input and output) is quantized using 8-bit mu-law encoding, similarly to both (van den Oord et al., 2016; Engel et al., 2017), which results in some inherent loss of quality. The WaveNet decoder has either four blocks of 10 residual-layers and a resulting receptive field of 250 milliseconds (4,093 samples), as in Engel et al. (2017), or 14 layer blocks and a much larger receptive field of 4 seconds. Each residual-layer contains a causal dilated convolution with an increasing kernel size, a gated hyperbolic tangent activation, a $1 \\times 1$ convolution followed by the residual summation of the layer input, and a $1 \\times 1$ convolution layer which introduces a skip connection. Each residual-layer is conditioned on the encoding described above. The summed skip connections are passed through two fully connected layers and a softmax activation to output the next timestep probability. A detailed diagram of the WaveNet autoencoder is shown in Fig. 1 (b). ",
|
| 345 |
+
"bbox": [
|
| 346 |
+
174,
|
| 347 |
+
498,
|
| 348 |
+
825,
|
| 349 |
+
679
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 3
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "We modify the fast nv-wavenet CUDA inference kernels, which implement the architecture suggested by Ping et al. (2018), and create efficient WaveNet kernels that implement the WaveNet architecture suggested by Engel et al. (2017). Specifically, we make the following modifications to nv-wavenet: (i) we add initialization of skip connections with previous WAV samples, (ii) we increase the kernel capacity to support 128 residual channels and (iii) we also add the conditioning to the last fully connected layer. ",
|
| 356 |
+
"bbox": [
|
| 357 |
+
174,
|
| 358 |
+
685,
|
| 359 |
+
825,
|
| 360 |
+
768
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 3
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "3.2 AUDIO INPUT AUGMENTATION ",
|
| 367 |
+
"text_level": 1,
|
| 368 |
+
"bbox": [
|
| 369 |
+
176,
|
| 370 |
+
801,
|
| 371 |
+
428,
|
| 372 |
+
815
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "In order to improve the generalization capability of the encoder, as well as to enforce it to maintain higher-level information, we employ a dedicated augmentation procedure that changes the pitch locally. The resulting audio is of a similar quality but is slightly out of tune. ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
176,
|
| 381 |
+
833,
|
| 382 |
+
825,
|
| 383 |
+
875
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "Specifically, we perform our training on segments of one second length. For augmentation, we uniformly select a segment of length between 0.25 and 0.5 seconds, and modulate its pitch by a random number between -0.5 and 0.5 of half-steps, using librosa (McFee et al., 2015). ",
|
| 390 |
+
"bbox": [
|
| 391 |
+
176,
|
| 392 |
+
882,
|
| 393 |
+
823,
|
| 394 |
+
924
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "3.3 TRAINING AND THE LOSSES USED ",
|
| 401 |
+
"text_level": 1,
|
| 402 |
+
"bbox": [
|
| 403 |
+
176,
|
| 404 |
+
103,
|
| 405 |
+
454,
|
| 406 |
+
117
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 4
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "Let $s ^ { j }$ be an input sample from domain $j = 1 , 2 , \\dots , k ,$ $k$ being the number of domains employed during training. Let $E$ be the shared encoder, and $D ^ { j }$ the WaveNet decoder for domain $j$ . Let $C$ be the domain classification network, and $O ( s , r )$ be the random augmentation procedure applied to a sample $s$ with a random seed $r$ . ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
174,
|
| 415 |
+
128,
|
| 416 |
+
825,
|
| 417 |
+
185
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 4
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "The network $C$ predicts which domain the input data came from, based on the latent vectors. It applies three 1D-convolution layers, with the ELU (Clevert et al., 2017) nonlinearity. The last layer projects the vectors to dimension $k$ and the vectors are subsequently averaged to a single $\\mathbb { R } ^ { k }$ vector. A detailed diagram of network $C$ is shown as part of Fig. 1 (b). ",
|
| 424 |
+
"bbox": [
|
| 425 |
+
173,
|
| 426 |
+
191,
|
| 427 |
+
825,
|
| 428 |
+
250
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 4
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "During training, the domain classification network $C$ minimizes the classification loss ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
173,
|
| 437 |
+
255,
|
| 438 |
+
733,
|
| 439 |
+
270
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "equation",
|
| 445 |
+
"img_path": "images/56c5c10cc2d464c17f7a1eaabb1dcb588c1a56a664f872f8c3bb117c7617826e.jpg",
|
| 446 |
+
"text": "$$\n\\Omega = \\sum _ { j } \\sum _ { s ^ { j } } \\operatorname { \\mathbb { E } } _ { r } \\mathcal { L } ( C ( E ( O ( s ^ { j } , r ) ) ) , j ) ,\n$$",
|
| 447 |
+
"text_format": "latex",
|
| 448 |
+
"bbox": [
|
| 449 |
+
370,
|
| 450 |
+
272,
|
| 451 |
+
625,
|
| 452 |
+
306
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 4
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "and the music to music autoencoders $j = 1 , 2 , \\dots$ are trained with the loss ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
176,
|
| 461 |
+
309,
|
| 462 |
+
661,
|
| 463 |
+
324
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 4
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "equation",
|
| 469 |
+
"img_path": "images/2ab6ac46e60383587a1930a5d6deac90ac8c08401b1890a0192f20f3a6f2d377.jpg",
|
| 470 |
+
"text": "$$\n- \\lambda \\Omega + \\sum _ { j } \\sum _ { s ^ { j } } \\operatorname { \\mathbb { E } } \\mathcal { L } ( D ^ { j } ( E ( O ( s ^ { j } , r ) ) ) , s ^ { j } )\n$$",
|
| 471 |
+
"text_format": "latex",
|
| 472 |
+
"bbox": [
|
| 473 |
+
356,
|
| 474 |
+
325,
|
| 475 |
+
643,
|
| 476 |
+
361
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "where $\\mathcal { L } ( o , y )$ is the cross entropy loss applied to each element of the output $o$ and the corresponding element of the target $y$ separately. Note that the decoder $D ^ { j }$ is an autoregressive model that is conditioned on the output of $E$ . During training, the autoregressive model is fed the target output $s ^ { j }$ from the previous time-step, instead of the generated output. ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
363,
|
| 486 |
+
823,
|
| 487 |
+
420
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "3.4 NETWORK DURING INFERENCE ",
|
| 494 |
+
"text_level": 1,
|
| 495 |
+
"bbox": [
|
| 496 |
+
176,
|
| 497 |
+
435,
|
| 498 |
+
429,
|
| 499 |
+
450
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "To perform the actual transformation from a sample $s$ from any domain, even from an unseen musical domain, to output domain $j$ , we apply the autoencoder of domain $j$ to it, without applying the distortion. The new sample $\\hat { s } ^ { j }$ is, therefore, given as $D ^ { j } ( E ( s ) )$ . The bottleneck during inference is the WaveNet autoregressive process, which is optimized by the dedicated CUDA kernels. ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
174,
|
| 508 |
+
462,
|
| 509 |
+
825,
|
| 510 |
+
518
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 4
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "4 EXPERIMENTS ",
|
| 517 |
+
"text_level": 1,
|
| 518 |
+
"bbox": [
|
| 519 |
+
176,
|
| 520 |
+
537,
|
| 521 |
+
326,
|
| 522 |
+
553
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "We conduct music translation experiments, using a mix of human evaluation and qualitative analysis, in order to overcome the challenges of evaluating generative models. The experiments were done in two phases. In the first phase, described in an earlier technical report (Mor et al., 2018), we train our network on six arbitrary classical musical domains: (i) Mozart’s symphonies conducted by Karl Bohm, (ii) Haydn’s string quartets, performed by the Amadeus Quartet, (iii) J.S Bach’s cantatas for ¨ orchestra, chorus and soloists, (iv) J.S Bach’s organ works, (v) Beethoven’s piano sonatas, performed by Daniel Barenboim, and (vi) J.S Bach’s keyboard works, played on Harpsichord. The music recordings by Bach (iii,iv,vi) are from the Teldec 2000 Complete Bach collection. ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
173,
|
| 531 |
+
568,
|
| 532 |
+
825,
|
| 533 |
+
680
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "In the second phase, in order to allow reproducibility and sharing of the code and models, we train on audio data from MusicNET (Thickstun et al., 2017). Domains were chosen as the largest domains that show variability between composers and instruments. The following six domains were selected: (i) J.S Bach’s suites for cello, (ii) Beethoven’s piano sonatas, (iii) Cambini’s Wind Quintet, (iv) J.S Bach’s fugues, played on piano, (v) Beethoven’s violin sonatas and (vi) Beethoven’s string quartet. This public dataset is somewhat smaller than the data used in phase one. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
686,
|
| 543 |
+
825,
|
| 544 |
+
770
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "The phases differ in the depth of the decoders: in the first phase, we employed blocks of ten layers, while in the second, we shifted to larger receptive fields and blocks of 14. The training and test splits are strictly separated by dividing the tracks (or audio files) between the two sets. The segments used in the evaluation experiments below were not seen during training. During training, we iterate over the training domains, such that each training batch contains 16 randomly sampled one second samples from a single domain. Each batch is first used to train the domain classification network $C$ , and then to train the universal encoder and the domain decoder, given the updated discriminator. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
174,
|
| 553 |
+
776,
|
| 554 |
+
825,
|
| 555 |
+
875
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "The method was implemented in the PyTorch framework, and trained on eight Tesla V100 GPUs for a total of 6 days. We used the ADAM optimization algorithm with a learning rate of $1 0 ^ { - 3 }$ and a decay factor of 0.98 every 10,000 samples. We weighted the confusion loss with $\\lambda = 1 0 ^ { - 2 }$ . ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
176,
|
| 564 |
+
881,
|
| 565 |
+
823,
|
| 566 |
+
924
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "table",
|
| 572 |
+
"img_path": "images/61f4810ea7717b8a7e04910707125d1ca9b8da10585fa39053b42d7ccb5e658f.jpg",
|
| 573 |
+
"table_caption": [
|
| 574 |
+
"Table 1: MOS scores (mean $\\pm$ SD) for the conversion tasks. "
|
| 575 |
+
],
|
| 576 |
+
"table_footnote": [],
|
| 577 |
+
"table_body": "<table><tr><td rowspan=\"2\">Converter</td><td colspan=\"2\">Harpsichord→Piano</td><td colspan=\"2\">Orchestra-→ Piano</td><td colspan=\"2\">New domains-→ Piano</td></tr><tr><td>Audio quality</td><td>Translation success</td><td>Audio quality</td><td>Translation success</td><td>Audio quality</td><td>Translation success</td></tr><tr><td>Musician E</td><td>3.89 ± 1.06</td><td>4.10± 0.94</td><td>4.02± 0.81</td><td>4.12± 0.97</td><td>4.44±0.82</td><td>4.13± 0.83</td></tr><tr><td>Musician M</td><td>3.82 ± 1.18</td><td>3.75± 1.17</td><td>4.13± 0.89</td><td>4.12± 0.98</td><td>4.48±0.72</td><td>3.97± 0.88</td></tr><tr><td>Musician A</td><td>3.69 ± 1.08</td><td>3.91± 1.16</td><td>4.06± 0.86</td><td>3.99± 1.08</td><td>4.53±0.79</td><td>3.93± 0.95</td></tr><tr><td>Our</td><td>2.95 ± 1.18</td><td>3.07± 1.30</td><td>2.56± 1.04</td><td>2.86± 1.16</td><td>2.36±1.17</td><td>3.18± 1.14</td></tr></table>",
|
| 578 |
+
"bbox": [
|
| 579 |
+
173,
|
| 580 |
+
127,
|
| 581 |
+
834,
|
| 582 |
+
252
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 5
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "4.1 EVALUATION OF TRANSLATION QUALITY ",
|
| 589 |
+
"text_level": 1,
|
| 590 |
+
"bbox": [
|
| 591 |
+
174,
|
| 592 |
+
280,
|
| 593 |
+
495,
|
| 594 |
+
295
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 5
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "The first set of experiments compared the method to human musicians using the phase one network. Since human musicians, are equipped by evolution with music skills, selected among their peers according to their talent, and who have trained for decades, we do not expect to do better than humans at this point. To perform this comparsion, music from domain $X$ was converted to piano, for various $X$ . The piano was selected for practical reasons: pianists are in higher availability than other musicians and a piano is easier to produce than, e.g., an orchestra. ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
174,
|
| 603 |
+
310,
|
| 604 |
+
825,
|
| 605 |
+
393
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 5
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "Three professional musicians with a diverse background were employed for the conversion task: E, who is a conservatory graduate with an extensive background in music theory and piano performance, and also specializes in transcribing music; M, who is a professional producer, composer, pianist and audio engineer, who is an expert in musical transcription; and A who is a music producer, editor, and a skilled player of keyboards and other instruments. ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
174,
|
| 614 |
+
401,
|
| 615 |
+
823,
|
| 616 |
+
470
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 5
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "The task used for comparison was to convert 60 segments of five seconds each to piano. Three varied sources were used. 20 of the segments were from Bach’s keyboard works, played on a Harpsichord, and 20 others were from Mozart’s 46 symphonies conducted by Karl Bohm, which are ¨ orchestral works. The last group of 20 segments was a mix of three different domains that were not encountered during training – Swing Jazz, metal guitar riffs, and instrumental Chinese music. The 60 music segments were encoded by the universal encoder and decoded by the WaveNet trained on Beethoven’s piano sonatas, as performed by Daniel Barenboim. ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
174,
|
| 625 |
+
478,
|
| 626 |
+
825,
|
| 627 |
+
575
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "In order to compare between the conversions, we employed human evaluation, which is subjective and could be a mix of the assessment of the audio quality and the assessment of the translation itself. This limits the success of the automatic method, since the quality of the algorithm’s output is upper bounded by the neural network architecture and cannot match that of a high quality recording. ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
174,
|
| 636 |
+
583,
|
| 637 |
+
825,
|
| 638 |
+
637
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "Since there is a trade-off between the fidelity to the original piece and the ability to create audio in the target domain, we present two scores: audio quality of the output piano and a matching score for the translation. While one can argue that style is hard to define and, therefore, such subjective experiments are not well founded, there are many similar MOS experiments in image to image translation, e.g., (Lample et al., 2017), and indeed MOS studies are used exactly where the translation metric is perceptual and subjective. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
645,
|
| 648 |
+
825,
|
| 649 |
+
728
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "Specifically, Mean Opinion Scores (MOS) were collected using the CrowdMOS (Ribeiro et al., 2011) package. Two questions were asked: (1) what is the quality of the audio, and (2) how well does the converted version match the original. The results are shown in Tab. 1. It shows that our audio quality is considerably lower than the results produced by humans, using a keyboard connected to a computer (which should be rated as near perfect and makes any other audio quality in the MOS experiment pale in comparison). Regarding the translation success, the conversion from Harpsichord is better than the conversion from Orchestra. Surprisingly, the conversion from unseen domains is more successful than both these domains. In all three cases, our system is outperformed by the human musicians, whose conversions will soon be released to form a public benchmark. ",
|
| 656 |
+
"bbox": [
|
| 657 |
+
174,
|
| 658 |
+
734,
|
| 659 |
+
825,
|
| 660 |
+
861
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "Lineup experiment In another set of experiments, we evaluate the ability of persons to identify the source musical segment from the conversions. We present, in each test, a set of six segments. One segment is a real segment from a random domain out of the ones used to train our network, and five are the associated translations. We shuffle the segments and ask which is the original one and which are conversions. To equate the quality of the source to that of the translations and prevent identification by quality, we attach the source after passing it through its domain’s autoencoder. ",
|
| 667 |
+
"bbox": [
|
| 668 |
+
174,
|
| 669 |
+
868,
|
| 670 |
+
823,
|
| 671 |
+
924
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "image",
|
| 677 |
+
"img_path": "images/293098298e93b1a6e0ff4c825ebfca2e556ed1d935525d1d4f333f50890f2a8e.jpg",
|
| 678 |
+
"image_caption": [
|
| 679 |
+
"Figure 2: Results of the lineup experiment. (a) listeners from the general population tend to select the same domain as the source regardless of the actual source. (b) the musician A failed to identify the source most of the time. (c) the amateurs T and (d) S failed most of the time. "
|
| 680 |
+
],
|
| 681 |
+
"image_footnote": [],
|
| 682 |
+
"bbox": [
|
| 683 |
+
186,
|
| 684 |
+
102,
|
| 685 |
+
821,
|
| 686 |
+
234
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 6
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "",
|
| 693 |
+
"bbox": [
|
| 694 |
+
173,
|
| 695 |
+
315,
|
| 696 |
+
823,
|
| 697 |
+
343
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 6
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "The translation is perfectly authentic, if the distribution of answers is uniform. However, the task is hard to define. In a first attempt, Amazon Mechanical Turk (AMT) freelancers tended to choose the Mozart domain as the source, regardless of the real source and the presentation order, probably due to its relatively complex nature in comparison to the other domains. This is shown in the confusion matrix of Fig. 2(a). We, therefore, asked two amateur musicians (T, a guitarist, and S a dancer and a drummer with a background in piano) and the professional musician A (from the first experiment) to identify the source sample out of the six options, based on authenticity. ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
174,
|
| 706 |
+
349,
|
| 707 |
+
825,
|
| 708 |
+
448
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 6
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "The results, in Fig. 2(b-d) show that there is a great amount of confusion. T and A failed in most cases, and A tended to show a similar bias to the AMT freelancers. S also failed to identify the majority of the cases, but showed coherent confusion patterns between pairs of instruments. ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
176,
|
| 717 |
+
454,
|
| 718 |
+
821,
|
| 719 |
+
497
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "NSynth pitch experiments NSynth (Engel et al., 2017) is an audio dataset containing samples of 1,006 instruments, each sample labeled with a unique pitch, timbre, and envelope. Each sample is a four second monophonic 16kHz snippet, ranging over every pitch of a standard MIDI piano (21-108) as well as five different velocities. It was not seen during training of our system. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
174,
|
| 728 |
+
503,
|
| 729 |
+
825,
|
| 730 |
+
559
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "We measure the correlation of embeddings retrieved using the encoder of our network across pitch for multiple instruments. The first two columns (from the left hand side) of Fig. 3 show selfcorrelations, while the third column shows correlation across instruments. As can be seen, the embedding encodes pitch information very clearly, despite being trained on complex polyphonic audio. The cosine similarity between the two instruments for the same pitch is, on average, 0.90-0.95 (mean of the diagonal), depending on the pair of instruments. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
565,
|
| 740 |
+
825,
|
| 741 |
+
650
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 6
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "4.2 EXPLORATORY EXPERIMENTS ",
|
| 748 |
+
"text_level": 1,
|
| 749 |
+
"bbox": [
|
| 750 |
+
176,
|
| 751 |
+
667,
|
| 752 |
+
423,
|
| 753 |
+
681
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "In order to freely share our trained models and allow for maximal reproducibility, we have retrained the network with data from MusicNet (Thickstun et al., 2017). The following experiments are based on this network and are focused on understanding the properties of the conversion. The description is based on the supplementary media available at musictranslation.github.io. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
694,
|
| 763 |
+
825,
|
| 764 |
+
750
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Are we doing more than timbral transfer? Is our system equivalent to pitch estimation followed by rendering with a different instrument, or can it capture stylistic musical elements? We demonstrate that our system does more than timbral transfer in two ways. Consider the conversions presented in supplementary S1, which consist of many conversion examples from each of the domains to every other domain. There are many samples where it is clear that more than timbral transfer is happening. For example, when converting Beethoven’s string quartet music to a wind quintet (Sample #30), an ornamentation note is added in the output that is nowhere to be found in the input music; when converting Beethoven’s violin sonata to Beethoven’s solo piano (Samples $\\# 2 4$ and $\\# 2 3$ ), the violin line seamlessly integrated into the piano part; when converting Beethoven’s solo piano music to Bach’s solo cello (Sample #9), the bass line of the piano is converted to cello. It is perhaps most evident when converting solo piano to piano and violin; an identity transformation would have been a valid translation, but the network adds a violin part to better match the output distribution. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
757,
|
| 774 |
+
825,
|
| 775 |
+
924
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 6
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "image",
|
| 781 |
+
"img_path": "images/f0d11ae8c94a6609dda271d7e0f52ae9c63c2c0eb4bb65d8e3c358b93bc58141.jpg",
|
| 782 |
+
"image_caption": [
|
| 783 |
+
"Figure 3: Correlation of embeddings across pitch. (a) Self-correlation for NSynth’s flute-acoustic027. (b) Self-correlation for keyboard-electronic-019. (c) The correlation between the electronic keyboard (y-axis) and the flute. (d) Self-correlation for brass-acoustic-018. (e) Self-correlation for string-acoustic-029. (f) The correlation between the brass instrument (y-axis) and the string. "
|
| 784 |
+
],
|
| 785 |
+
"image_footnote": [],
|
| 786 |
+
"bbox": [
|
| 787 |
+
183,
|
| 788 |
+
102,
|
| 789 |
+
833,
|
| 790 |
+
491
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 7
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "To further demonstrate the capabilities of our system, we train a network on two piano domains: MusicNet solo piano recordings of Bach and Beethoven. We reduce the size of the latent space to 8 to limit the ability of the original input to be repeated exactly, thereby encouraging the decoders to be more ”creative” than they normally would, with the goal of observing how decoders trained on different training data will use their freedom of expression. The input we employ is a simple MIDI synthesized as a piano. Supplementary S2 presents a clear stylistic difference: one can hear some counterpoint in the Bach sample, whereas the Beethoven output exhibits a more “Sturm und Drang” feeling, indicating that the network learns stylistic elements from the training data. ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
174,
|
| 799 |
+
597,
|
| 800 |
+
825,
|
| 801 |
+
708
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 7
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "Comparison with previous methods We compare our results with those of Concatenative Synthesis methods in supplementary S3. To do that, we use our system to translate target files from published results of two works in that field, and present the methods’ results side-by-side. Samples 1 and 2 are compared with the published results of Coleman (2016), a work comparing several Concatenative Synthesis methods, and uses a violin passage as source audio input. Sample 3 is compared with MATConcat (Sturm, 2006), which uses a corpus of string quartets as a source material. Sample 1 is a fugue performed on a piano. We show that we are able to convincingly produce string quartet and wind ensemble renditions of the piece. To push our model to its boundaries, we also attempt to convert the polyphonic fugue to solo cello, obtaining a rather convincing result. We believe that our results surpass in naturalness those obtained by concatenative methods. Sample 2 is an orchestra piece, which for our system is data that has never been seen during training. We convert it to piano, solo cello and a wind quintet, achieving convincing results, that we believe surpass the concatenative synthesis results. Sample 3 is another orchestra piece, which includes a long drum roll, followed by brass instruments. It is not quite well-defined how to convert a drum roll to a string quartet, but we believe our rendition is more coherent. Our method is able to render the brass instruments and orchestral music after the drum roll more convincingly than MATConcat, which mimics the audio volume but loses most musical content. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
173,
|
| 810 |
+
715,
|
| 811 |
+
825,
|
| 812 |
+
922
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 7
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "",
|
| 819 |
+
"bbox": [
|
| 820 |
+
173,
|
| 821 |
+
103,
|
| 822 |
+
823,
|
| 823 |
+
131
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 8
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "Universality Note that our network has never observed drums, brass instruments or an entire orchestra during training, and, therefore, the results of supplementary S3 also serve to demonstrate the versatility of the encoder module resulting from our training procedure (and so do those of S2). Supplementary S4 presents more out-of-domain conversion results, including other domains from MusicNet, whistles, and even spontaneous hand clapping. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
174,
|
| 832 |
+
138,
|
| 833 |
+
825,
|
| 834 |
+
208
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 8
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "The universality property hinges on the success of training a domain-independent representation. As can be seen in the confusion matrices given in Fig. 4, the domain classification network does not do considerably better than chance when the networks converge. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
176,
|
| 843 |
+
215,
|
| 844 |
+
821,
|
| 845 |
+
257
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 8
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "Ablation Analysis We conducted three ablation studies. In the first study, the training procedure did not use the augmentation procedure of Sec. 3.2. This resulted in a learning divergence during training, and we were unable to obtain a working model trained without augmentation, despite considerable effort. ",
|
| 852 |
+
"bbox": [
|
| 853 |
+
176,
|
| 854 |
+
265,
|
| 855 |
+
825,
|
| 856 |
+
320
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 8
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "In order to investigate the option of not using augmentation in a domain where training without it converges, we have applied our method to the task of voice conversion. Our experiments show a clear advantage for applying augmentation, see Appendix A. Additional experiments were conducted, for voice conversion, using the VQ-VAE method of van den Oord et al. (2017). ",
|
| 863 |
+
"bbox": [
|
| 864 |
+
174,
|
| 865 |
+
328,
|
| 866 |
+
823,
|
| 867 |
+
383
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 8
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "In the second ablation study, the domain classification network was not used $\\lambda = 0$ ). Without requiring that the shared encoder remove domain-specific information from the latent representation of the input, the network learned to simply encode all information in the latent vectors, and all decoders learned to turn this information back to the original waveform. This resulted in a model that does not do any conversion at all. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
174,
|
| 876 |
+
390,
|
| 877 |
+
823,
|
| 878 |
+
460
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "Finally, we performed an ablation study on the latent code size, in which we convert a simple MIDI clip to the Beethoven domain and the Bach domain. Samples are available as supplementary S6. As can be heard, a latent dimensionality of 64 tends to reconstruct the input (unwanted memorization). A model with a latent space of 8 (used in S2) performs well. A model with a latent dimensionality of 4 is more creative, less related to the input midi, and also suffers from a reduction in quality. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
174,
|
| 887 |
+
467,
|
| 888 |
+
825,
|
| 889 |
+
536
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 8
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Semantic blending We blend two encoded musical segments linearly in order to check the additivity of the embedding space. For that, we have selected two random five second segments $i$ and $j$ from each domain and embedded both using the encoder, obtaining $e _ { i }$ and $e _ { j }$ . We then combine the embeddings as follows: starting with 3.5 seconds from $e _ { i }$ , we combine the next 1.5 seconds of $e _ { i }$ with the first 1.5 seconds of $e _ { j }$ using a linear weighting with weights $1 - t / 1 . 5$ and $t / 1 . 5$ respectively, where $t \\in [ 0 , 1 . 5 ]$ . We then use the various decoders to generate audio. The results are natural and the shift is completely seamless, as far as we observe. See supplementary S5 for samples. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
544,
|
| 899 |
+
825,
|
| 900 |
+
641
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "The samples also demonstrate that in the scenario we tested, one can alternatively use fade-in and fade-out to create a similar effect. We therefore employ a second network that is used for a related task of voice conversion (see Appendix A) and demonstrate that in the case of voice conversion, latent space embedding is clearly superior to converting the audio itself. These samples can also be found in supplementary S5 for details and samples. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
648,
|
| 910 |
+
825,
|
| 911 |
+
718
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 8
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "5 DISCUSSION ",
|
| 918 |
+
"text_level": 1,
|
| 919 |
+
"bbox": [
|
| 920 |
+
176,
|
| 921 |
+
748,
|
| 922 |
+
310,
|
| 923 |
+
763
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 8
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Our work demonstrates capabilities in music conversion, which is a high-level task (a terminology that means that they are more semantic than low-level audio processing tasks), and could open the door to other high-level tasks, such as composition. We have initial results that we find interesting: by reducing the size of the latent space, the decoders become more “creative” and produce outputs that are natural yet novel, in the sense that the exact association with the original input is lost. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
785,
|
| 933 |
+
823,
|
| 934 |
+
856
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 8
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 941 |
+
"text_level": 1,
|
| 942 |
+
"bbox": [
|
| 943 |
+
176,
|
| 944 |
+
882,
|
| 945 |
+
326,
|
| 946 |
+
895
|
| 947 |
+
],
|
| 948 |
+
"page_idx": 8
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "text",
|
| 952 |
+
"text": "This work is part of Adam Polyak’s Ph.D thesis research conducted at Tel Aviv University. ",
|
| 953 |
+
"bbox": [
|
| 954 |
+
171,
|
| 955 |
+
909,
|
| 956 |
+
766,
|
| 957 |
+
924
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 8
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "image",
|
| 963 |
+
"img_path": "images/97bfcf7f6456a18cd5c56163146ca7fee1bd8ddc8d766e43a47d611f03e524aa.jpg",
|
| 964 |
+
"image_caption": [
|
| 965 |
+
"Figure 4: Accuracy of the domain classification network. (a) A confusion matrix of the domain classification network at the end of training on the private dataset used in the first phase of experiments. The mean accuracy is 0.30. (b) The confusion matrix for the MusicNet dataset used in the second phase of experiments. The mean accuracy is 0.24. "
|
| 966 |
+
],
|
| 967 |
+
"image_footnote": [],
|
| 968 |
+
"bbox": [
|
| 969 |
+
220,
|
| 970 |
+
104,
|
| 971 |
+
776,
|
| 972 |
+
332
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 9
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "REFERENCES ",
|
| 979 |
+
"text_level": 1,
|
| 980 |
+
"bbox": [
|
| 981 |
+
174,
|
| 982 |
+
425,
|
| 983 |
+
285,
|
| 984 |
+
440
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 9
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Shaun Barry and Youngmoo Kim. style transfer for musical audio using multiple time-frequency representations, 2018. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } }$ BybQ7zWCb. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
448,
|
| 994 |
+
823,
|
| 995 |
+
477
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 9
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "Yunjey Choi, Min-Je Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. StarGAN: Unified generative adversarial networks for multi-domain image-to-image translation. In arXiv preprint 1711.09020, 2017. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
484,
|
| 1005 |
+
825,
|
| 1006 |
+
529
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 9
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). In International Conference on Learning Representations (ICLR), 2017. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
173,
|
| 1015 |
+
537,
|
| 1016 |
+
823,
|
| 1017 |
+
580
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 9
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "G Coleman. Descriptor Control of Sound Transformations and Mosaicing Synthesis. PhD thesis, Universitat Pompeu Fabra, Barcelona, 2016. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
178,
|
| 1026 |
+
588,
|
| 1027 |
+
823,
|
| 1028 |
+
618
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Sander Dieleman, Aaron van den Oord, and Karen Simonyan. The challenge of realistic music ¨ generation: modelling raw audio at scale. In Advances in Neural Information Processing Systems, 2018. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
176,
|
| 1037 |
+
627,
|
| 1038 |
+
823,
|
| 1039 |
+
669
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Jesse Engel, Cinjon Resnick, Adam Roberts, Sander Dieleman, Mohammad Norouzi, Douglas Eck, and Karen Simonyan. Neural audio synthesis of musical notes with WaveNet autoencoders. In ICML, 2017. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
173,
|
| 1048 |
+
678,
|
| 1049 |
+
823,
|
| 1050 |
+
720
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 9
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. J. Mach. Learn. Res., 17(1):2096–2030, 2016. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
176,
|
| 1059 |
+
729,
|
| 1060 |
+
821,
|
| 1061 |
+
773
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 9
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In CVPR, 2016. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
171,
|
| 1070 |
+
781,
|
| 1071 |
+
821,
|
| 1072 |
+
810
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 9
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS. 2014. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
173,
|
| 1081 |
+
819,
|
| 1082 |
+
821,
|
| 1083 |
+
848
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Gaetan Hadjeres and Franc¸ois Pachet. DeepBach: a steerable model for bach chorales generation.¨ In ICML, 2017. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
174,
|
| 1092 |
+
857,
|
| 1093 |
+
821,
|
| 1094 |
+
886
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Albert Haque, Michelle Guo, and Prateek Verma. Conditional end-to-end audio transforms. In Arxiv preprint 1804.00047, 2018. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
173,
|
| 1103 |
+
895,
|
| 1104 |
+
820,
|
| 1105 |
+
924
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 9
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Keith Ito. The lj speech dataset, 2017. URL ttps://keithito.com/ LJ-Speech-Dataset. \nJustin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In ECCV, 2016. \nTakuhiro Kaneko and Hirokazu Kameoka. Parallel-data-free voice conversion using cycle-consistent adversarial networks. arXiv preprint arXiv:1711.11293, 2017. \nTaeksoo Kim, Moonsu Cha, Hyunsoo Kim, Jungkwon Lee, and Jiwon Kim. Learning to Discover Cross-Domain Relations with Generative Adversarial Networks. In ICML, 2017. \nSimon King and Vasilis Karaiskos. The blizzard challenge 2011. In Blizzard Challenge workshop, 2011. \nSimon King and Vasilis Karaiskos. The blizzard challenge 2013. In Blizzard Challenge workshop, 2013. \nDiederik P Kingma and Max Welling. Auto-encoding variational bayes. Stat, 2014. \nGuillaume Lample, Neil Zeghidour, Nicolas Usunier, Antoine Bordes, Ludovic Denoyer, et al. Fader networks: Manipulating images by sliding attributes. In Advances in Neural Information Processing Systems, pp. 5967–5976, 2017. \nMing-Yu Liu and Oncel Tuzel. Coupled generative adversarial networks. In NIPS, pp. 469–477. 2016. \nMing-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In NIPS. 2017. \nChristos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard Zemel. The variational fair autoencoder. arXiv preprint arXiv:1511.00830, 2015. \nBrian McFee, Colin Raffel, Dawen Liang, Daniel PW Ellis, Matt McVicar, Eric Battenberg, and Oriol Nieto. librosa: Audio and music signal analysis in python. 2015. \nNoam Mor, Lior Wolf, Adam Polyak, and Yaniv Taigman. A universal music translation network. arXiv preprint arXiv:1805.07848, 2018. \nCarthach ´ O Nuan ´ ain, Perfecto Herrera, and Sergi Jord ´ a. Rhythmic concatenative synthesis for elec- \\` tronic music: Techniques, implementation, and evaluation. Computer Music Journal, 41(2):21– 37, June 2017. ISSN 0148-9267. doi: 10.1162/COMJ a 00412. \nWei Ping, Kainan Peng, Andrew Gibiansky, Sercan Omer Arik, Ajay Kannan, Sharan Narang, ¨ Jonathan Raiman, and John Miller. Deep Voice 3: 2000-speaker neural text-to-speech. In ICLR, 2018. \nDario Rethage, Jordi Pons, and Xavier Serra. A wavenet for speech denoising. arXiv preprint arXiv:1706.07162, 2017. \nFlavio Ribeiro, Dinei Flor ´ encio, Cha Zhang, and Michael Seltzer. Crowdmos: An approach for ˆ crowdsourcing mean opinion score studies. In Acoustics, Speech and Signal Processing (ICASSP), IEEE International Conference, pp. 2416–2419. IEEE, 2011. \nDiemo Schwarz. Concatenative sound synthesis: The early years. Journal of New Music Research, 35(1):3–22, 2006. \nDiemo Schwarz. Corpus-based sound synthesis survey, 2018. URL http://imtr.ircam.fr/ imtr/Corpus-Based_Sound_Synthesis_Survey. \nJonathan Shen, Ruoming Pang, Ron J. Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Zhifeng Chen, Yu Zhang, Yuxuan Wang, R. J. Skerry-Ryan, Rif A. Saurous, Yannis Agiomyrgiannakis, and Yonghui Wu. Natural TTS synthesis by conditioning wavenet on mel spectrogram predictions. In ICASSP, 2018. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
171,
|
| 1114 |
+
66,
|
| 1115 |
+
828,
|
| 1116 |
+
929
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 10
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Ian Simon, Sumit Basu, David Salesin, and Maneesh Agrawala. Audio analogies: Creating new music from an existing performance by concatenative synthesis. In Int. Computer Music Conference, 2005. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
174,
|
| 1125 |
+
103,
|
| 1126 |
+
821,
|
| 1127 |
+
146
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 11
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Bob L Sturm. Adaptive concatenative sound synthesis and its application to micromontage composition. Computer Music Journal, 30(4):46–66, 2006. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
173,
|
| 1136 |
+
155,
|
| 1137 |
+
823,
|
| 1138 |
+
184
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 11
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "John Thickstun, Zaid Harchaoui, and Sham Kakade. Learning Features of Music From Scratch. In ICLR, 2017. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
176,
|
| 1147 |
+
194,
|
| 1148 |
+
821,
|
| 1149 |
+
223
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 11
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "D. Ulyanov, V. Lebedev, A. Vedaldi, and V. Lempitsky. Texture networks: Feed-forward synthesis of textures and stylized images. In ICML, 2016. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
174,
|
| 1158 |
+
232,
|
| 1159 |
+
821,
|
| 1160 |
+
262
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 11
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural Discrete Representation Learning. In NIPS, 2017. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
174,
|
| 1169 |
+
270,
|
| 1170 |
+
823,
|
| 1171 |
+
300
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 11
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Aron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alexander Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In Arxiv preprint 1609.03499, 2016. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
176,
|
| 1180 |
+
309,
|
| 1181 |
+
825,
|
| 1182 |
+
352
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 11
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "V Verfaille and D Arfib. A-dafx: Adaptive digital audio effects. energy, 2000. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
174,
|
| 1191 |
+
361,
|
| 1192 |
+
686,
|
| 1193 |
+
377
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 11
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Zili Yi, Hao Zhang, Ping Tan, and Minglun Gong. DualGAN: Unsupervised dual learning for image-to-image translation. In ICCV, 2017. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
176,
|
| 1202 |
+
386,
|
| 1203 |
+
825,
|
| 1204 |
+
415
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 11
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV, 2017. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
173,
|
| 1213 |
+
424,
|
| 1214 |
+
823,
|
| 1215 |
+
454
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 11
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Aymeric Zils and Franc¸ois Pachet. Musical mosaicing. In Digital Audio Effects $( D A F x )$ , volume 2, pp. 135, 2001. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
174,
|
| 1224 |
+
463,
|
| 1225 |
+
823,
|
| 1226 |
+
492
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 11
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "A VOICE CONVERSION EXPERIMENTS ",
|
| 1233 |
+
"text_level": 1,
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
174,
|
| 1236 |
+
512,
|
| 1237 |
+
509,
|
| 1238 |
+
529
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 11
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "We further evaluate our method on the task of voice conversion, which is not as challenging as the music conversion task explored in this work. It is, therefore, a convenient test bed when comparing to the VQ-VAE (van den Oord et al., 2017) method, which, as we mention in the paper, did not perform well in our music-based experiments, and which was shown by the authors to work on voice conversion. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
174,
|
| 1247 |
+
544,
|
| 1248 |
+
825,
|
| 1249 |
+
613
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 11
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "In addition, as mentioned in Sec. 4.2, successful training on the music domains requires data augmentation. In voice conversion, we were able to successfully train our network even without data augmentation, and we can therefore perform a direction comparison. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
174,
|
| 1258 |
+
621,
|
| 1259 |
+
825,
|
| 1260 |
+
662
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 11
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "We apply our method, a variant without data augmentation, and the VQVQE method on three publicly available datasets: “Nancy” from Blizzard 2011 (King & Karaiskos, 2011), Blizzard 2013 (King & Karaiskos, 2013) and LJ (Ito, 2017) dataset. The generated samples are obtained by converting an audio produced by the Google Cloud TTS robot to these three voices. The models are evaluated by their quality using the Mean Opinion Score, as obtained with the CrowdMOS (Ribeiro et al., 2011) package. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
174,
|
| 1269 |
+
670,
|
| 1270 |
+
825,
|
| 1271 |
+
753
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 11
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "As can be seen in Tab. 2, samples generated by our WaveNet autoencoder based method are of higher quality than those of VQ-VAE. A second results is that the method trains well in voice conversion, even without the data augmentation. However, this leads to inferior results. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
174,
|
| 1280 |
+
760,
|
| 1281 |
+
825,
|
| 1282 |
+
803
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 11
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "A.1 VOICE CONVERSION ARCHITECTURES ",
|
| 1289 |
+
"text_level": 1,
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
174,
|
| 1292 |
+
820,
|
| 1293 |
+
485,
|
| 1294 |
+
834
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 11
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "We slightly modify the WaveNet autoencoder used in our method for the voice conversion task. Specifically, we modify the size of the latent encoding to be in $\\mathbb { R } ^ { 4 8 }$ , instead of $\\mathbb { R } ^ { 6 4 }$ . The rest of the model details remain the same as in the music translation task. ",
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
176,
|
| 1303 |
+
847,
|
| 1304 |
+
823,
|
| 1305 |
+
888
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 11
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "In our implementation of the VQ-VAE, the encoder was composed of 6 one-dimensional convolution layer with a ReLU activation. As in the original paper, the convolutions were with a stride of 2 and kernel size of 4. Therefore, the mu-law quantized waveform is temporally downsampled by $\\times 6 4$ . We used a dictionary of 512 vectors in $\\mathbb { R } ^ { 1 2 8 }$ . The obtained quantized encoding is upsampled and serves to condition a decoder which reconstructs the input waveform. Here as well, we follow the original paper and implement a single WaveNet decoder for all three speaker domains, this is achieved by concatenating the quantized encoding with a learned speaker embedding. We train the VQ-VAE using dictionary updates with Exponential Moving Averages (EMA) with a decay parameter of $\\gamma = 0 . 9 9$ and a commitment parameter of $\\beta = 1$ . ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
173,
|
| 1314 |
+
895,
|
| 1315 |
+
823,
|
| 1316 |
+
924
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 11
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "table",
|
| 1322 |
+
"img_path": "images/c7fdf06a37bff9b9d89b27cd2f0d2b57f1bdc96f25fb6eb1a76321a751d8df7a.jpg",
|
| 1323 |
+
"table_caption": [
|
| 1324 |
+
"Table 2: MOS scores (mean $\\pm$ SD) for the unseen speaker conversion. "
|
| 1325 |
+
],
|
| 1326 |
+
"table_footnote": [],
|
| 1327 |
+
"table_body": "<table><tr><td></td><td>Blizzard 2013</td><td>Nancy</td><td>LJ</td></tr><tr><td>Our method</td><td>3.16 ± 0.79</td><td>3.85 ± 0.84</td><td>3.40± 0.77</td></tr><tr><td>Our method - without augmentation</td><td>3.07 ± 0.79</td><td>3.87 ± 0.85</td><td>2.85± 0.92</td></tr><tr><td>VQ-VAE</td><td>2.53 ± 1.08</td><td>2.92 ± 0.92</td><td>2.22± 0.96</td></tr></table>",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
218,
|
| 1330 |
+
127,
|
| 1331 |
+
779,
|
| 1332 |
+
198
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 12
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
173,
|
| 1341 |
+
223,
|
| 1342 |
+
825,
|
| 1343 |
+
321
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 12
|
| 1346 |
+
}
|
| 1347 |
+
]
|
parse/train/HJGkisCcKm/HJGkisCcKm_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJGkisCcKm/HJGkisCcKm_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MIDckA56aD/MIDckA56aD.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MIDckA56aD/MIDckA56aD_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MIDckA56aD/MIDckA56aD_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MIDckA56aD/MIDckA56aD_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/foNTMJHXHXC/foNTMJHXHXC.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/foNTMJHXHXC/foNTMJHXHXC_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/foNTMJHXHXC/foNTMJHXHXC_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/foNTMJHXHXC/foNTMJHXHXC_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ.md
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UFC-BERT: Unifying Multi-Modal Controls for Conditional Image Synthesis
|
| 2 |
+
|
| 3 |
+
Zhu Zhang†, Jianxin $\mathbf { M } \mathbf { a } ^ { \dagger }$ , Chang Zhou†, Rui Men†, Zhikang Li†, Ming Ding‡, Jie Tang‡, Jingren Zhou†, and Hongxia Yang† †DAMO Academy, Alibaba Group, ‡Tsinghua University {zhangzhu950310}@gmail.com {jason.mjx, ericzhou.zc, yang.yhx}@alibaba-inc.com
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Conditional image synthesis aims to create an image according to some multi-modal guidance in the forms of textual descriptions, reference images, and image blocks to preserve, as well as their combinations. In this paper, instead of investigating these control signals separately, we propose a new two-stage architecture, UFC-BERT, to unify any number of multi-modal controls. In UFC-BERT, both the diverse control signals and the synthesized image are uniformly represented as a sequence of discrete tokens to be processed by Transformer. Different from existing two-stage autoregressive approaches such as DALL-E and VQGAN, UFC-BERT adopts non-autoregressive generation (NAR) at the second stage to enhance the holistic consistency of the synthesized image, to support preserving specified image blocks, and to improve the synthesis speed. Further, we design a progressive algorithm that iteratively improves the non-autoregressively generated image, with the help of two estimators developed for evaluating the compliance with the controls and evaluating the fidelity of the synthesized image, respectively. Extensive experiments on a newly collected large-scale clothing dataset M2C-Fashion and a facial dataset MultiModal CelebA-HQ verify that UFC-BERT can synthesize high-fidelity images that comply with flexible multi-modal controls.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Conditional image synthesis aims to create an image according to the given control signals. With the increasing demand for flexible conditional image synthesis, various kinds of control signals have been introduced into this field, which can be divided into three main modalities: (i) textual controls (TC), including the class labels [1] and natural language descriptions [62, 54]; (ii) visual controls $( V C )$ , such as a spatially-aligned sketch map for reference [17, 60] or another image for style transfer [15, 27]; (iii) preservation controls $( P C )$ , which require the synthesized image to preserve some given image blocks, e.g., image outpainting and inpainting [63, 69].
|
| 12 |
+
|
| 13 |
+
However, control signals of various modalities possess different characteristics. Existing works [62, 26, 61] hence typically design separate methods customized for each control modality. Moreover, most of these approaches only utilize one type of control signal and cannot simultaneously combine multiple types of controls in a concise and versatile model. This begs the question: can we integrate any number of multi-modal control signals into a unified framework for flexible conditional image synthesis? There are two inevitable challenges in this setting: (i) how to unify the multi-modal controls and represent them in a unified form, especial when employing multiple control signals from different modalities concurrently; (ii) how to guarantee the fulfillment of the multi-modal controls while ensuring the fidelity of the synthesized image.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: The three main modalities of control signals for conditional image synthesis: Textual Controls (TC), Visual Controls (VC), and Preservation Controls (PC).
|
| 17 |
+
|
| 18 |
+
Recently, two-stage image synthesis [42, 48, 3, 13, 47] has made great progress. The first stage learns a convolutional autoencoder with quantized latent representations for converting an image into a sequence of discrete tokens, e.g., for compressing a $2 5 6 \times 2 5 6$ image into a sequence of $3 2 \times 3 2$ tokens where each token correlates mainly with an $8 \times 8$ block of the image. Converting a sequence of tokens back into an image is also supported. The second stage then typically adopts an autoregressive model, e.g., PixelCNN [41] or a unidirectional Transformer decoder [55], to capture the distribution over sequences of tokens. Particularly, the Transformer-based methods [3, 13, 47] exploit the global expressivity of Transformer to capture long-range relationships between local constituents.
|
| 19 |
+
|
| 20 |
+
In this paper, we make two key observations about the two-stage framework. First, the two-stage framework has the advantage that it can potentially unify the multi-modal control signals and the generated image into a single sequence of discrete tokens. However, existing works [42, 48, 13, 47] largely neglect this advantage of the two-stage framework over the traditional one-stage approaches such as those based mainly on the generative adversarial networks (GAN) [18]. Second, the autoregressive $( A R )$ approach to sequence generation, adopted by the existing two-stage methods such as DALL-E [47] and VQGAN [13], brings undesirable shortcomings: (i) the token-by-token synthesis procedure leads to slow generation speed, especially for the heavyweight Transformer [3, 13, 47]; (ii) each generated token can only catch sight of the previously generated tokens and cannot incorporate bidirectional contexts, which may affect the holistic consistency of image synthesis; (iii) the fixed left-to-right order of autoregressive decoding cannot respond to the preservation control signals unless the image blocks to be preserved are at the beginning of the sequence. Notably, different from AR generation, non-autoregressive (NAR) sequence generation with bidirectional Transformer, i.e., BERT [9], can naturally avoid the three shortcomings.
|
| 21 |
+
|
| 22 |
+
Based on the aforementioned observations, we propose UFC-BERT, a novel BERT-based two-stage framework to UniFy any number of multi-modal Controls for conditional image synthesis. Concretely, the textual, visual, and preservation control signals, as well as the generated image, are uniformly represented as a sequence of discrete tokens, as shown in Figure 2. The textual control consists of word tokens for class labels or natural language descriptions. The visual control(s) and the generated image are both represented as discrete tokens due to the first stage, where each token corresponds to a block within the reference image(s) or the generated image. Zero, one, or more reference images are supported. To preserve a given image block within the generated image, we encode the given image block into discrete tokens and fix corresponding parts of the generated sequence to the tokens.
|
| 23 |
+
|
| 24 |
+
We train UFC-BERT via the masked sequence modeling task, which predicts a masked subset of the target image’s tokens conditioned on both the multi-modal control signals and the generation target’s unmasked tokens. During inference, we adopt Mask-Predict, a NAR generation algorithm [16, 21, 7], which predicts all target tokens at the first iteration and then iteratively re-mask and re-predict a subset of tokens with low confidence scores. To further improve upon the NAR generation algorithm, we exploit the discriminative capability of the BERT architecture [11, 70] and add two estimators (see Figure 2), where one estimator estimates the relevance between the generated image and the control signals, and the other one estimates the image’s fidelity. The two estimators help improve the quality of the synthesized image, because at each iteration we can generate multiple samples and keep only the highly-scored one before starting the next iteration. The two estimators also help save the number of iterations needed, since the algorithm can dynamically terminate if running for more iterations no longer improves the scores.
|
| 25 |
+
|
| 26 |
+
The extensive experiments on M2C-Fashion, a newly collected clothing dataset with tens of millions of image-text pairs, as well as on Multi-Modal CelebA-HQ [28, 61], a public facial dataset, demonstrate UFC-BERT can synthesize high-quality images that comply with various multi-modal controls.
|
| 27 |
+
|
| 28 |
+
# 2 Related Works
|
| 29 |
+
|
| 30 |
+
We have discussed the connection between our work and Two-Stage Image Synthesis in the Introduction. In this section, we further discuss related works from other fields.
|
| 31 |
+
|
| 32 |
+
Conditional Image Synthesis. A variety of control signals have been introduced into conditional image synthesis. The class-conditional generation task [1, 39] adopts class labels as control signals. The text-to-image synthesis task [64, 65, 30, 62, 72, 54] further employs natural language descriptions as controls. The image-to-image translation task generates photo-realism images from visual controls, such as a sketch map [17, 60], semantic label map [26, 4, 58], human pose [37] or another image for style transfer [15, 27]. Moreover, image outpainting and inpainting [25, 63] can be regarded as image synthesis conditioned on preservation control signals, where some image blocks of the desired image are already specified and need to be preserved in the generated image. However, these works only utilize one kind of control signal and design their methods customized for each kind of control. Text-guided image manipulation [10, 40, 69, 31, 61] semantically edits an image, where the text description and the original image serve as control signals. But they still fail to unify multiple modalities in a universal form and cannot easily extend to more control modalities. To promote versatility and extensibility, we propose UFC-BERT to unify any number of multi-modal controls.
|
| 33 |
+
|
| 34 |
+
Visual-Language Transformer. With great progress in language tasks [55, 44, 45, 2], the transformer architecture is being rapidly transferred to other fields such as vision [3, 68, 12] and audio [6]. Recently, pretraining visual-language transformer [43, 24, 70, 7, 35, 53, 67] (e.g. multi-modal BERT) has achieved significant improvements on a variety of downstream tasks, e.g. visual question answering, image captioning [70], and text-to-image generation [7]. Among them, the single-stream architecture [52, 32, 46, 5, 43, 24] uses a single transformer to jointly model a pair of text and image, while the two-stream architecture [35, 36, 53] applies two transformers to separately learn the representations of the text and the image, respectively. Our UFC-BERT is also a variant of the single-stream visual-language transformer, but focuses on flexible multi-modal image synthesis instead of multi-modal pretraining.
|
| 35 |
+
|
| 36 |
+
Non-Autoregressive Sequence Generation. Though it is natural to autoregressively predict tokens from left to right when generating a sequence, autoregressive decoding suffers from the slow speed and sequential error accumulation. Thus, the non-autoregressive generation (NAR) paradigm is proposed to avoid these drawbacks in neural machine translation [19, 20, 29, 16], image captioning [14, 22, 70], and speech synthesis [50, 49]. These approaches often employ the bidirectional Transformer (i.e. BERT) as it is not trained with a specific generation order. Our progressive NAR generation algorithm improves upon the Mask-Predict non-autoregressive algorithm [57, 16, 38, 33], by introducing the relevance estimator and the fidelity estimator to facilitate sample selection and dynamic termination.
|
| 37 |
+
|
| 38 |
+
# 3 UFC-BERT For Multi-Modal Image Synthesis
|
| 39 |
+
|
| 40 |
+
# 3.1 Background: Two-Stage Image Synthesis
|
| 41 |
+
|
| 42 |
+
In this section, we review the two-stage architecture [42, 48, 13, 47] for image synthesis.
|
| 43 |
+
|
| 44 |
+
At the first stage, a codebook $\mathcal { Z } = \{ \mathbf { z } _ { k } \} _ { k = 1 } ^ { K }$ for vector quantization is learned, where $\mathbf { z } _ { k } \in \mathbb { R } ^ { n _ { z } }$ is the $k$ -th code-word in the codebook and $K$ is the number of code-words. An image $\mathbf { X } \in \mathbb { R } ^ { H \times W \times 3 }$ can be transformed into (or from) a collection of code-words $\mathbf { Z } \in \mathbb { R } ^ { h \times w \times n _ { z } }$ . Concretely, a convolutional encoder $E$ first encodes the original image $\mathbf { X }$ as $\hat { \mathbf { Z } } = E ( \mathbf { X } ) \in \mathbb { R } ^ { h \times w \times n _ { z } }$ . Then an element-wise quantization step $\mathbf { q } ( \cdot )$ is applied to each element $\hat { \mathbf { Z } } _ { i j }$ to obtain the element’s closest code-word $\mathbf { z } _ { k }$ , i.e., $\begin{array} { r } { \mathbf q ( \hat { \mathbf Z } _ { i j } ) = \arg \operatorname* { m i n } _ { { \mathbf z } _ { k } \in { \mathcal Z } } \| \hat { \mathbf Z } _ { i j } - { \mathbf z } _ { k } \| } \end{array}$ . For reconstruction, a convolutional decoder $D$ is also learned for recovering image $\hat { \mathbf { X } } \in \mathbb { R } ^ { H \times W \times 3 }$ from $\mathbf { Z }$ such that $\hat { \bf X }$ is close to $\mathbf { X }$ . The first stage can be denoted by
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: The framework of UFC-BERT, where the textual control (TC), vsiual control (VC), and preservation control (PC), as well as the image to generate, collectively form a sequence of tokens.
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\mathbf { Z } = \mathbf { q } ( E ( \mathbf { X } ) ) , \hat { \mathbf { X } } = D ( \mathbf { Z } ) .
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
Due to the convolutional layers, each of the $h \times w$ elements of $\hat { \mathbf { Z } }$ mainly correlates with an $\textstyle { \frac { H } { h } } \times { \frac { W } { w } }$ block of the image, though its receptive field may be larger if multiple convolutions are stacked.
|
| 54 |
+
|
| 55 |
+
At the second stage, image $\mathbf { X }$ ’s quantized representation $\mathbf { Z }$ can be rewritten as a sequence of codes $\mathbf { I } \in$ $\{ 0 , \ldots , | \mathcal { Z } | - 1 \} ^ { \overline { { N } } _ { I } }$ , composed of $N _ { I } \left( = h \times w \right)$ indices from the codebook $\mathcal { Z }$ . Thus, image synthesis can be formulated as autoregressive sequence generation, i.e. predicting the distribution $\mathrm { P } \mathrm { \bar { r } } ( I _ { i } | \mathbf { I } _ { < i } , \mathbf { C } )$ of the next token $I _ { i }$ conditioned on the preceding tokens $\mathbf { I } _ { < i }$ and the control signals $\mathbf { C }$ . The distribution is typically modeled using a unidirectional Transformer. The likelihood is then $\mathrm { P r } ( { \bf I } | { \bf C } ) =$ $\begin{array} { r } { \prod _ { i } \operatorname* { P r } ( I _ { i } | \mathbf { I } _ { < i } , \mathbf { \dot { C } } ) } \end{array}$ . Parameters are learned by minimizing $\mathcal { L } _ { \mathrm { A R } } = \mathbb { E } _ { \mathbf { I } \sim d a t a } \left[ - \log \operatorname* { P r } ( \mathbf { I } | \mathbf { C } ) \right]$ .
|
| 56 |
+
|
| 57 |
+
We focus on improving the second stage. Specifically, the autoregressive paradigm adopted by the existing two-stage works [42, 48, 13, 47] suffers from slow generation speed, fails to capture bidirectional contexts, and cannot fully support preservation control signals. We thus propose UFCBERT, a novel NAR approach for stage two, to unify any number of multi-modal controls and tackle the shortcomings of AR. As for stage one, we directly follow VQGAN’s design [47], which improves upon VQVAE [42] by incorporating a perceptual loss [27] and patch-based adversarial training [26].
|
| 58 |
+
|
| 59 |
+
# 3.2 Problem Formulation
|
| 60 |
+
|
| 61 |
+
Conditional image synthesis aims to generate an image that satisfies a set of control signals C. We consider three major modalities of control signals. A Textual Control $( T C )$ consists of a sequence of words $\mathbf { T } \in \{ 0 , \dot { \mathbf { \Omega } } . . . , | \mathcal { W } | - 1 \} ^ { N _ { T } }$ , where $\mathcal { W }$ is the vocabulary and $N _ { T }$ is the number of words in the text. In the two-stage framework, an image can be converted into a sequence of code-words (i.e. tokens) based on stage one’s encoder $E$ and codebook $\mathcal { Z }$ . Thus, a Visual Control $( V C )$ is denoted by a sequence $\mathbf { V } \in \{ 0 , \overline { { \mathbf { \Omega } } } , \mathbf { \Omega } , | \mathcal { Z } | - 1 \} ^ { N _ { V } }$ consisting of code-words from the codebook $\mathcal { Z }$ , where $N _ { V }$ is the sequence length. Similarly, the target (i.e., the image to generate) is a sequence of code-words $\mathbf { I } \in \{ \bar { 0 , } . . . , | \mathcal { Z } | \overset { - } { - } 1 \} ^ { N _ { I } }$ . We support zero, one, or multiple visual controls for flexibility. As for the Preservation Control $( P C )$ , it is a sequence of binary masks $\mathbf { P } \in \{ 0 , 1 \} ^ { N _ { I } }$ with the same length as $\mathbf { I }$ , where 1 means that the token is known (i.e., $I _ { i }$ is ground-truth if $P _ { i } = 1$ ) while 0 means the token needs to be predicted. We aim to design a model at the second stage to synthesize the target image’s sequence I conditioned on $\mathbf { C }$ , i.e., a combination of any number of control signals from $\mathbf { \bar { \{ T } } , V , \bar { P } \}$ .
|
| 62 |
+
|
| 63 |
+
# 3.3 Model Inputs
|
| 64 |
+
|
| 65 |
+
As shown in Figure 2, our UFC-BERT modifies the original BERT model [9] to accommodate any number of multi-modal controls. Similar to BERT, the backbone is a multi-layer bidirectional Transformer encoder, enabling the dependency modeling between all input elements. The input sequence of UFC-BERT always starts with two special tokens [REL] and [FDL] for relevance estimation and fidelity estimation, then goes on with the word sequence $\mathbf { T }$ of textual controls, code sequence V of visual controls, and ends with the code sequence I of the target image to generate. Two special separation tokens [EOT] and [EOV] are appended to the end of the textual and the visual control sequences, respectively. If there are multiple visual controls, another special token [SEP] is inserted to separate them. The sequence I of the target image to generate may be partially or fully masked by a special token [MASK]. When the preservation control $\mathbf { P }$ is present and $P _ { i } = 1$ , token $I _ { i }$ in I is always set to the code-word corresponding to the given image block to be preserved.
|
| 66 |
+
|
| 67 |
+
Each input token’s representation is the sum of the position and token embeddings:
|
| 68 |
+
|
| 69 |
+
Position Embedding. Our UFC-BERT learns independent sets of position embeddings for the different kinds of the inputs to achieve better distinguishment between the various modalities. The position embeddings for the word sequence are the same as BERT, i.e., we use sequential position embeddings. For a visual control or the target image, the position embedding of each token is decided according to where this token lies on the $h \times w$ grid, i.e., we use spatial position embeddings.
|
| 70 |
+
|
| 71 |
+
Token Embedding. For textual controls, we use Byte-Pair Encoding [51] to segment each word into sub-words and then learn sub-word embeddings. Each special token, e.g., [REL] or [MASK], is assigned a dedicated embedding. For visual controls and the target image, we learn an embedding for each code-word. We do not directly use the embeddings from stage one’s codebook due to the decoupling of the two stages.
|
| 72 |
+
|
| 73 |
+
# 3.4 Training: Masked Sequence Modeling with Relevance and Fidelity Estimation
|
| 74 |
+
|
| 75 |
+
As shown in Figure 2, we train UFC-BERT via masked sequence modeling, i.e., predicting the masked tokens in the target image conditioned on the controls. A relevance estimator and a fidelity estimator are also trained in the process, and will be key to our progressive NAR generation algorithm.
|
| 76 |
+
|
| 77 |
+
Task 1: Masked Sequence Modeling. This task is similar to Masked Language Modeling (MLM) in BERT, but incorporates multi-modal control signals when predicting the masked tokens. To construct training samples, we mask parts of the target image I to predict using four strategies: (1) randomly decide the number of tokens to mask, and then randomly mask the desired number of tokens; (2) mask all tokens; (3) mask the tokens within some boxed areas of the image, where the number of boxes and the box sizes are randomly decided; (4) mask the tokens outside some random boxed areas of the image. We use the four strategies with probability 0.70, 0.10, 0.10, and 0.10, respectively. To construct multi-modal control signal $\mathbf { C }$ for each training sample, there are four different combinations: ${ < } T C$ , $V C >$ , ${ < } T C >$ , ${ < } V C >$ , <empty>, where ${ < } T C$ , $V C >$ means the textual and visual controls are simultaneously employed, ${ < } T C >$ or ${ < } V C >$ means only a textual or visual signal is used, and <empty> means no textual or visual control is present. Note that the preservation control is already included in the masked sequence modeling task. Since our dataset does not contain ground-truth pairs of visual controls and target images, we crop one or multiple regions of a target image to construct VC for the target image. Because image synthesis from solely textual controls is more challenging than from other signals, we use the four combinations with probability 0.20, 0.55, 0.20, 0.05, respectively, where textual controls get more attention. We feed UFC-BERT’s outputs at each position of I into a softmax classifier over the codebook $\mathcal { Z }$ , which produces a probability score $Y _ { i } = \mathrm { \bar { P r } } ( I _ { i } | \mathbf { I } _ { U } , \mathbf { C } )$ for each position $i \in M$ , where $M$ is the set of masked positions and $U$ is the unmasked set. Finally, the masked sequence modeling task minimizes the softmax cross-entropy loss $\mathcal { L } _ { \mathrm { M S M } } = \mathbb { E } _ { \mathbf { I } _ { M } , \mathbf { I } _ { U } } \left[ - \log \operatorname* { P r } ( \mathbf { I } _ { M } | \mathbf { I } _ { U } , \mathbf { C } ) \right]$ , where $\begin{array} { r } { \mathrm { P r } ( \mathbf { I } _ { M } ^ { \mathbf { - } } | \mathbf { I } _ { U } , \mathbf { C } ) = \prod _ { i \in M } Y _ { i } } \end{array}$ .
|
| 78 |
+
|
| 79 |
+
Task 2: Relevance Estimation. This task is to learn a binary classifier that judges whether the generated image is relevant or irrelevant to the given multi-modal control $\mathbf { C }$ . Briefly, we add a linear layer on the output corresponding to the special token [REL]. The linear layer outputs a scalar representing the logit, and a binary cross-entropy loss $\mathcal { L } _ { \mathrm { R E L } }$ is added. During training, the training samples from Task 1 serve as the positive instances (i.e. relevant pairs). We construct negative instances (i.e. irrelevant pairs) by swapping the control signals of two training samples.
|
| 80 |
+
|
| 81 |
+
Task 3: Fidelity Estimation. This task aims to distinguish whether the generated image is realistic from the view of human visual cognition. Similar to relevance estimation, we feed the output corresponding to [FDL] into a linear layer for binary classification and add another binary crossentropy loss ${ \mathcal { L } } _ { \mathrm { F D L } }$ . Since the low-fidelity images (i.e. negative instances) do not exist in the dataset, we run UFC-BERT from previous epochs to synthesize images based solely on textual control signals, and use the synthesized images as negative instances.
|
| 82 |
+
|
| 83 |
+
We combine the three tasks’ losses to train UFC-BERT, i.e.,
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { U F C - B E R T } } = \lambda _ { 1 } \mathcal { L } _ { \mathrm { M S M } } + \lambda _ { 2 } \mathcal { L } _ { \mathrm { R E L } } + \lambda _ { 3 } \mathcal { L } _ { \mathrm { F D L } } , } \end{array}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\lambda _ { 1 }$ , $\lambda _ { 2 }$ and $\lambda _ { 3 }$ are set to 1.0, 0.5, and 0.5 to balance the three losses. The masked sequence modeling task ignores the negative instances from the other two tasks, i.e., irrelevant pairs or unrealistic instances. And the fidelity estimation task is added only after a certain number of epochs.
|
| 90 |
+
|
| 91 |
+
# 3.5 Inference: Progressive Non-Autoregressive Generation
|
| 92 |
+
|
| 93 |
+
We design a Progressive Non-Autoregressive Generation (PNAG) algorithm for conditional image synthesis after training, which improves upon Mask-Predict [16, 21, 7]. Mask-Predict predicts all target tokens when given a fully-masked sequence at the first iteration, and then iteratively re-mask and re-predict a subset of tokens with low probability scores for a constant number of iterations. However, Mask-Predict cannot ensure the efficacy of multi-modal controls and the fidelity of the synthesized images, and requires determining the number of iterations. Our PNAG tackles its drawbacks via sample selection and dynamic termination, based on the relevance and fidelity estimators.
|
| 94 |
+
|
| 95 |
+
Each iteration of our PNAG algorithm consists of a Mask step and then a Predict step. Let $\mathbf { I } ^ { ( t , i n ) } =$ (I (t,in)1 , . $( I _ { 1 } ^ { ( t , i n ) } , \ldots , I _ { N _ { I } } ^ { ( t , i n ) } )$ and $\mathbf { I } ^ { ( t , o u t ) } = ( I _ { 1 } ^ { ( t , o u t ) } , \dots , I _ { N _ { I } } ^ { ( t , o u t ) } )$ , I (t,out)N ) be the state of the target image’s sequence before and after the $t$ -th iteration, respectively. The tokens in $\mathbf { I } ^ { ( 0 , o u t ) }$ for $t = 0$ is all set to [MASK] except for the positions that are controlled by the preservation signals, i.e., except for I(0,out)i t hat has $P _ { i } = 1$ . If a preservation control is present, i.e. $P _ { i } = 1$ , we always set $I _ { i } ^ { ( t , i n ) }$ and $I _ { i } ^ { ( t , o u t ) }$ for all $t$ to be the code-word that corresponds to the provided image block to be preserved.
|
| 96 |
+
|
| 97 |
+
Mask Step. At the beginning of iteration $t$ $\left( t \geq 1 \right)$ ), we construct the input sequence $\mathbf { I } ^ { ( t , i n ) }$ by (re-)masking a subset of tokens in the generated sequence $\mathbf { I } ^ { ( t - 1 , o u t ) }$ from the last iteration. Similar to beam search, we construct $B$ parallel input sequences $\{ \mathbf { I } _ { 1 } ^ { ( t , i n ) } , \ldots , \mathbf { I } _ { B } ^ { ( t , i n ) } \}$ at each iteration. Specifically, we re-mask $n$ tokens of $\mathbf { I } ^ { ( t - 1 , o u t ) }$ to produce each $\mathbf { I } _ { b } ^ { ( t , i n ) }$ . We first sample $N _ { I } - n$ tokens from a multinomial distribution $\mathrm { P r } ^ { ( t , i n ) }$ proportional to the probability scores $\mathbf { Y } ^ { ( t - 1 ) } = \{ Y _ { i } ^ { ( t - 1 ) } \} _ { i = 1 } ^ { N _ { I } }$ (see Equation 3), computed by $\mathrm { P r } ^ { ( t , i n ) } = \mathrm { S o f t m a x } ( \mathbf { Y } ^ { ( t - 1 ) } )$ . And other tokens are re-masked and re-predicted at the next Predict Step. Here $\begin{array} { r } { n = N _ { I } \cdot ( \beta + \frac { T - t } { T - 1 } \cdot ( \alpha - \beta ) ) } \end{array}$ , where $\alpha$ is the initial mask ratio, $\beta$ is the minimum mask ratio, and $T$ is the maximum possible number of iterations, such that the number of tokens to re-mask gradually decreases after every iteration.
|
| 98 |
+
|
| 99 |
+
Predict Step. Given the control $\mathbf { C }$ and an input sequence $\mathbf { I } _ { b } ^ { ( t , i n ) }$ , UFC-BERT estimates a distribution $\mathrm { P r } ( \hat { I } _ { i } | \mathbf { I } _ { b } ^ { ( t , i n ) } , \mathbf { C } )$ for each masked position $i$ . UFC-BERT also estimates the relevance score $S _ { b } ^ { R }$ and fidelity score $S _ { b } ^ { F }$ regarding the image that it is about to synthesize, and summarizes the scores into a comprehensive score $S _ { b } ^ { ( t ) } = \sigma S _ { b } ^ { R } + ( 1 - \sigma ) S _ { b } ^ { F }$ , where $\sigma$ is a coefficient for adjusting the importance of the two. We perform sample selection based on $S _ { b } ^ { ( t ) }$ , i.e., we select the $b$ -th sequen ce I(t,in)b w ith the highest $S _ { b } ^ { ( t ) }$ , discard the others, and then generate $\mathbf { I } ^ { ( t , o u t ) }$ based on the selected $\mathbf { I } _ { b } ^ { ( t , i n ) }$ as follows:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
I _ { i } ^ { ( t , o u t ) } \sim \mathrm { P r } ( \hat { I } _ { i } | \mathbf { I } _ { b } ^ { ( t , i n ) } , \mathbf { C } ) , \qquad Y _ { i } ^ { ( t ) } \gets \mathrm { P r } ( \hat { I } _ { i } = I _ { i } ^ { ( t , o u t ) } | \mathbf { I } _ { b } ^ { ( t , i n ) } , \mathbf { C } ) ,
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
where each token $I _ { i } ^ { ( t , o u t ) }$ is sampled from the multinomial distribution $\mathrm { P r } ( \hat { I } _ { i } | \mathbf { I } _ { b } ^ { ( t , i n ) } , \mathbf { C } )$ and the corresponding probability is assigned to $Y _ { i } ^ { ( t ) }$ . Note that we predict tokens for all masked positions regardless of the predictions’ confidence. We also implement dynamic termination based on $S _ { b } ^ { ( t ) }$ . Specifically, if the current iteration’s score $S _ { b } ^ { ( t ) }$ is higher than $S _ { m a x }$ (initialized as zero), we set $S _ { m a x }$ to $S _ { b } ^ { ( t ) }$ and record the current iteration as $t _ { m a x }$ . If $S _ { m a x }$ does not increase after three consecutive iterations, we select $\mathbf { I } ^ { ( t _ { m a x } , o u t ) }$ as the final result and terminate our generation algorithm.
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 3: Images generated by our UFC-BERT under various combinations of textual controls (TC), visual controls (VC), and preservation controls (PC). Please see the supplemental material for more showcases, where we also include a study on the diversity of the images generated by UFC-BERT and analyze how the multiple control signals interfere with each other.
|
| 109 |
+
|
| 110 |
+
# 4 Experiments
|
| 111 |
+
|
| 112 |
+
# 4.1 Datasets and Hyperparameters
|
| 113 |
+
|
| 114 |
+
In experiments, we focus on two practical fields of image synthesis: fashionable clothing and human faces. We collect a very large-scale clothing dataset M2C-Fashion with Chinese text descriptions, which contains tens of millions of image-text pairs, much larger than the commonly used text-to-image datasets COCO [34] and CUB [56]. Details of the dataset are provided in the supplementary material. We additionally use another high-resolution facial dataset Multi-Modal CelebA-HQ [28, 61].
|
| 115 |
+
|
| 116 |
+
Following the model setting of VQGAN [13], we use the $2 5 6 \times 2 5 6$ image size on the two datasets and transform each image to a discrete sequence of $1 6 \times 1 6$ codes, where the codebook size $| { \mathcal { Z } } |$ is set to 1024. For the BERT model, we set the number of layers, hidden size, and the number of attention heads to 24, 1024, and 16, respectively. Our UFC-BERT has 307M parameters, same as the Transformer used by VQGAN. As for hyper-parameters of PNAG, we set the parallel decoding number $B$ to 5 and the balance coefficient $\sigma$ to 0.5. We set the initial mask ratio $\alpha$ , the minimum mask ratio $\beta$ , and the maximum iteration number $T$ to 0.8, 0.2, and 10, respectively.
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
|
| 120 |
+
Figure 4: Image synthesis with multiple visual controls, where we crop regions from $2 \sim 3$ images to serve as the visual controls. UFC-BERT synthesizes images that naturally fuse the visual elements.
|
| 121 |
+
|
| 122 |
+
Table 1: Comparisons with GAN baselines for text-to-image synthesis on Multi-Modal CelebA-HQ.
|
| 123 |
+
|
| 124 |
+
<table><tr><td>Method</td><td>AttnGAN [62]</td><td>ControlGAN [30]</td><td>DF-GAN [54]</td><td>DM-GAN [71]</td><td>TediGAN [61]</td><td>UFC-BERT (our)</td></tr><tr><td>FID↓</td><td>125.98</td><td>116.32</td><td>137.60</td><td>131.05</td><td>106.37</td><td>66.72</td></tr><tr><td>LPIPS↓</td><td>0.512</td><td>0.522</td><td>0.581</td><td>0.544</td><td>0.456</td><td>0.448</td></tr></table>
|
| 125 |
+
|
| 126 |
+
Table 2: Comparisons with the autoregressive two-stage method VQGAN for text-to-image synthesis. ↓ means the lower the better, while $\uparrow$ means the opposite. We evaluate speed on the same V100 GPU.
|
| 127 |
+
|
| 128 |
+
<table><tr><td rowspan="2">Datasets</td><td rowspan="2">Methods</td><td colspan="4">Automatic Metrics</td><td colspan="2">Human Pairwise Study</td><td rowspan="2">Inference Speed</td></tr><tr><td>FID↓</td><td>LPIPS↓</td><td>PSNR↑</td><td>SSIM↑</td><td>Relevance</td><td>Fidelity</td></tr><tr><td rowspan="2">M2C-Fashion</td><td>VQGAN (AR)</td><td>12.48</td><td>0.483</td><td>10.80</td><td>0.56</td><td>38.6%</td><td>44.2%</td><td>8.73 sec/sample</td></tr><tr><td>UFC-BERT (NAR)</td><td>11.53</td><td>0.461</td><td>13.14</td><td>0.58</td><td>61.4%</td><td>55.8%</td><td>0.81 sec/sample</td></tr><tr><td rowspan="2">Multi-Modal CelebA-HQ</td><td>VQGAN (AR)</td><td>52.63</td><td>0.503</td><td>8.98</td><td>0.28</td><td>42.7%</td><td>46.9%</td><td>8.66 sec/sample</td></tr><tr><td>UFC-BERT (NAR)</td><td>66.72</td><td>0.448</td><td>9.56</td><td>0.29</td><td>57.3%</td><td>53.1%</td><td>0.79 sec/sample</td></tr></table>
|
| 129 |
+
|
| 130 |
+
# 4.2 Flexibility of Multi-Modal Controls for Conditional Image Synthesis
|
| 131 |
+
|
| 132 |
+
In this section, we qualitatively verify the synthesis ability of UFC-BERT with three modalities of control signals, i.e., textual, visual, and preservation controls. The textual controls are the texts paired with the images, which are already provided by the two datasets, while the visual controls are code sequences of cropped regions, e.g. regions that represent logos or texture of clothes.
|
| 133 |
+
|
| 134 |
+
In Figure 3, we synthesize images conditioned on combinations of the three types of control signals. The results demonstrate UFC-BERT can unify any number of multi-modal controls to synthesize high-quality images. Further, UFC-BERT supports one or multiple visual controls for more flexible synthesis, as shown in Figure 4 where we generate images given $2 { \sim } 3$ visual controls. We observe that UFC-BERT can reasonably fuse multiple visual elements and produce a harmonious image.
|
| 135 |
+
|
| 136 |
+
# 4.3 Quantitative Comparison to Existing Methods for Text-to-Image Synthesis
|
| 137 |
+
|
| 138 |
+
In this section, we investigate how our UFC-BERT quantitatively compares to existing models. Considering most existing methods only utilize one control signal, we select the most common and challenging task text-to-image synthesis to compare the synthesis ability.
|
| 139 |
+
|
| 140 |
+
First, we compare our UFC-BERT with GAN-based text-to-image models AttnGAN [62], ControlGAN [30], DF-GAN [54], DM-GAN [71] and TediGAN [61] on the Multi-Modal CelebA-HQ dataset. For evalution, we adopt two automatic metrics FID [23] and LPIPS [66]. We report the results on Table 1 and our UFC-BERT achieves the best performance on the two metrics, even outperforming the TediGAN that uses slow and complex instance-level optimization. This demonstrates the two-stage architecture and non-autoregressive generation of UFC-BERT are suitable for text-to-image synthesis.
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
|
| 144 |
+
This woman has wavy hair and is wearing earrings, and lipstick.
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 6: The iterative inference process of our PNAG algorithm. The red bounding box means the image has the highest comprehensive score and is selected as the final output result.
|
| 148 |
+
|
| 149 |
+
Besides, we compare our UFC-BERT with the autoregressive two-stage method VQGAN from three aspects: (i) the automatic metrics FID for image quality, as well as LPIPS, PSNR [59] and SSIM [59] for the similarity between the generated image and the ground truth; (ii) the Relevance and Fidelity metrics are evaluated through a user study, where the users are asked to judge which model’s output is more relevant to the textual descriptions, and more photorealistic; (iii) the synthesis speed of the two approaches. Note that the autoregressive inference implementation of VQGAN has been optimized by caching the preceding computation as in Transformer-XL [8], and UFCBERT and VQGAN have the same parameter number (307M) for fair com
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 5: Typical examples of UFC-BERT and VQGAN for text-to-image synthesis, including a counterfactual case.
|
| 153 |
+
|
| 154 |
+
parison. For the user study, the two models receive the same textual signals, and each generates 50 images. We collect the pairwise comparison results from five volunteers.
|
| 155 |
+
|
| 156 |
+
As shown in Table 2, our UFC-BERT achieves better performance for almost all criteria with about $1 1 \times$ speedup. This suggests our non-autoregressive UFC-BERT with progressive NAR generation algorithm can synthesize high-fidelity images relevant to textual descriptions. As for the FID metric, UFC-BERT outperforms VQGAN on M2C-Fashion, but has worse performance on Multi-Modal CelebA-HQ, it may be due to the fact that the autoregressive VQGAN can more easily memorize the pattern of a small dataset (only 30,000 facial images). In Figure 5, we further show typical generated examples to intuitively display the difference between the two approaches, including a case of counterfactual generation. We find that UFC-BERT can synthesize high-quality images, even for the counterfactual case.
|
| 157 |
+
|
| 158 |
+
# 4.4 The Effectiveness of Our Progressive NAR Generation Algorithm
|
| 159 |
+
|
| 160 |
+
In this section, we first visualize in Figure 6 the iterative process of our PNAG inference method based on the relevance and fidelity estimators. The images with red bounding boxes are the final outputs that match the textual control signals. We can find that the fidelity and relevance of the images increase after a few iterations, verifying our PNAG algorithm can guide the inference process towards a better direction and synthesize more realistic images that match the control signals.
|
| 161 |
+
|
| 162 |
+
Table 3: Ablation studies of our PNAG inference algorithm. PNAG(w/o. REF) and PNAG(w/o. FDL) set $B$ to the default value 5. MNAG is the original Mask-Predict algorithm [16].
|
| 163 |
+
|
| 164 |
+
<table><tr><td>Dataset</td><td>Metrics</td><td>MNAG [16]</td><td>PNAG(w/o.REF)</td><td>PNAG(w/o.FDL)</td><td>PNAG(B=1)</td><td>PNAG(B=5)</td><td>PNAG(B=10)</td></tr><tr><td rowspan="2">M2C-Fashion</td><td>FID↓</td><td>14.77</td><td>12.17</td><td>13.14</td><td>12.72</td><td>11.53</td><td>11.14</td></tr><tr><td>LPIPS↓</td><td>0.488</td><td>0.477</td><td>0.469</td><td>0.479</td><td>0.461</td><td>0.456</td></tr><tr><td rowspan="2">Multi-Modal CelebA-HQ</td><td>FID↓</td><td>72.04</td><td>68.90</td><td>70.32</td><td>69.49</td><td>66.72</td><td>65.30</td></tr><tr><td>LPIPS↓</td><td>0.514</td><td>0.469</td><td>0.463</td><td>0.475</td><td>0.448</td><td>0.445</td></tr></table>
|
| 165 |
+
|
| 166 |
+
We then conduct ablation studies of PNAG. As shown in Table 3, we develop three ablated inference methods PNAG(w/o. REF), PNAG(w/o. FDL) and MNAG, where PNAG(w/o. REF) and PNAG(w/o. FDL) discard the relevance estimator and the fidelity estimator, respectively, and MNAG is the original Mask-Predict method [16] without any estimator. The results demonstrate that the two estimators effectively utilize the discriminative capability of UFC-BERT and do help improve the synthesis quality. Additionally, we vary the crucial hyper-parameter of PNAG $B$ (i.e. the parallel decoding number during inference) from 1 to 10, and the results in Table 3 show that a larger $B$ is beneficial to the synthesis quality.
|
| 167 |
+
|
| 168 |
+
# 5 Conclusions
|
| 169 |
+
|
| 170 |
+
We proposed UFC-BERT to unify any number of multi-modal controls in a universal form for conditional image synthesis. We utilized non-autoregressive generation to improve inference speed, enhance holistic consistency, and support preservation controls. Further, we designed a progressive generation algorithm based on relevance and fidelity estimators to ensure relevance and fidelity.
|
| 171 |
+
|
| 172 |
+
# References
|
| 173 |
+
|
| 174 |
+
[1] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
|
| 175 |
+
[2] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
|
| 176 |
+
[3] Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, pages 1691–1703. PMLR, 2020.
|
| 177 |
+
[4] Qifeng Chen and Vladlen Koltun. Photographic image synthesis with cascaded refinement networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 1511–1520, 2017.
|
| 178 |
+
[5] Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. Uniter: Learning universal image-text representations. 2019.
|
| 179 |
+
[6] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
|
| 180 |
+
[7] Jaemin Cho, Jiasen Lu, Dustin Schwenk, Hannaneh Hajishirzi, and Aniruddha Kembhavi. X-lxmert: Paint, caption and answer questions with multi-modal transformers. arXiv preprint arXiv:2009.11278, 2020.
|
| 181 |
+
[8] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019.
|
| 182 |
+
[9] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the Conference on The North American Chapter of the Association for Computational Linguistics, 2019.
|
| 183 |
+
[10] Hao Dong, Simiao Yu, Chao Wu, and Yike Guo. Semantic image synthesis via adversarial learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 5706–5714, 2017.
|
| 184 |
+
[11] Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. Unified language model pre-training for natural language understanding and generation. arXiv preprint arXiv:1905.03197, 2019.
|
| 185 |
+
[12] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
|
| 186 |
+
[13] Patrick Esser, Robin Rombach, and Björn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021.
|
| 187 |
+
[14] Junlong Gao, Xi Meng, Shiqi Wang, Xia Li, Shanshe Wang, Siwei Ma, and Wen Gao. Masked nonautoregressive image captioning. arXiv preprint arXiv:1906.00717, 2019.
|
| 188 |
+
[15] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2414–2423, 2016.
|
| 189 |
+
[16] Marjan Ghazvininejad, Omer Levy, Yinhan Liu, and Luke Zettlemoyer. Mask-predict: Parallel decoding of conditional masked language models. arXiv preprint arXiv:1904.09324, 2019.
|
| 190 |
+
[17] Arnab Ghosh, Richard Zhang, Puneet K Dokania, Oliver Wang, Alexei A Efros, Philip HS Torr, and Eli Shechtman. Interactive sketch & fill: Multiclass sketch-to-image translation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1171–1180, 2019.
|
| 191 |
+
[18] Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. arXiv preprint arXiv:1406.2661, 2014.
|
| 192 |
+
[19] Jiatao Gu, James Bradbury, Caiming Xiong, Victor OK Li, and Richard Socher. Non-autoregressive neural machine translation. arXiv preprint arXiv:1711.02281, 2017.
|
| 193 |
+
[20] Junliang Guo, Xu Tan, Di He, Tao Qin, Linli Xu, and Tie-Yan Liu. Non-autoregressive neural machine translation with enhanced decoder input. In Proceedings of the American Association for Artificial Intelligence, volume 33, pages 3723–3730, 2019.
|
| 194 |
+
[21] Junliang Guo, Zhirui Zhang, Linli Xu, Hao-Ran Wei, Boxing Chen, and Enhong Chen. Incorporating bert into parallel sequence decoding with adapters. In Advances in Neural Information Processing Systems, 2020.
|
| 195 |
+
[22] Longteng Guo, Jing Liu, Xinxin Zhu, Xingjian He, Jie Jiang, and Hanqing Lu. Non-autoregressive image captioning with counterfactuals-critical multi-agent learning. arXiv preprint arXiv:2005.04690, 2020.
|
| 196 |
+
[23] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Günter Klambauer, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a nash equilibrium. 2017.
|
| 197 |
+
[24] Zhicheng Huang, Zhaoyang Zeng, Bei Liu, Dongmei Fu, and Jianlong Fu. Pixel-bert: Aligning image pixels with text by deep multi-modal transformers. arXiv preprint arXiv:2004.00849, 2020.
|
| 198 |
+
[25] Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Let there be color! joint end-to-end learning of global and local image priors for automatic image colorization with simultaneous classification. ACM Transactions on Graphics (ToG), 35(4):1–11, 2016.
|
| 199 |
+
[26] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1125–1134, 2017.
|
| 200 |
+
[27] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and superresolution. In Proceedings of the European Conference on Computer Vision, pages 694–711. Springer, 2016.
|
| 201 |
+
[28] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
|
| 202 |
+
[29] Jason Lee, Elman Mansimov, and Kyunghyun Cho. Deterministic non-autoregressive neural sequence modeling by iterative refinement. arXiv preprint arXiv:1802.06901, 2018.
|
| 203 |
+
[30] Bowen Li, Xiaojuan Qi, Thomas Lukasiewicz, and Philip HS Torr. Controllable text-to-image generation. arXiv preprint arXiv:1909.07083, 2019.
|
| 204 |
+
[31] Bowen Li, Xiaojuan Qi, Thomas Lukasiewicz, and Philip HS Torr. Manigan: Text-guided image manipulation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7880–7889, 2020.
|
| 205 |
+
[32] Gen Li, Nan Duan, Yuejian Fang, Ming Gong, and Daxin Jiang. Unicoder-vl: A universal encoder for vision and language by cross-modal pre-training. In Proceedings of the American Association for Artificial Intelligence, volume 34, pages 11336–11344, 2020.
|
| 206 |
+
[33] Yi Liao, Xin Jiang, and Qun Liu. Probabilistically masked language model capable of autoregressive generation in arbitrary word order. arXiv preprint arXiv:2004.11579, 2020.
|
| 207 |
+
[34] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In Proceedings of the European Conference on Computer Vision, pages 740–755. Springer, 2014.
|
| 208 |
+
[35] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. arXiv preprint arXiv:1908.02265, 2019.
|
| 209 |
+
[36] Jiasen Lu, Vedanuj Goswami, Marcus Rohrbach, Devi Parikh, and Stefan Lee. 12-in-1: Multi-task vision and language representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10437–10446, 2020.
|
| 210 |
+
[37] Liqian Ma, Xu Jia, Qianru Sun, Bernt Schiele, Tinne Tuytelaars, and Luc Van Gool. Pose guided person image generation. arXiv preprint arXiv:1705.09368, 2017.
|
| 211 |
+
[38] Elman Mansimov, Alex Wang, Sean Welleck, and Kyunghyun Cho. A generalized framework of sequence generation with application to undirected sequence models. arXiv preprint arXiv:1905.12790, 2019.
|
| 212 |
+
[40] Seonghyeon Nam, Yunji Kim, and Seon Joo Kim. Text-adaptive generative adversarial networks: manipulating images with natural language. arXiv preprint arXiv:1810.11919, 2018.
|
| 213 |
+
[41] Aaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray Kavukcuoglu. Conditional image generation with pixelcnn decoders. arXiv preprint arXiv:1606.05328, 2016.
|
| 214 |
+
[42] Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. arXiv preprint arXiv:1711.00937, 2017.
|
| 215 |
+
[43] Di Qi, Lin Su, Jia Song, Edward Cui, Taroon Bharti, and Arun Sacheti. Imagebert: Cross-modal pre-training with large-scale weak-supervised image-text data. arXiv preprint arXiv:2001.07966, 2020.
|
| 216 |
+
[44] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018.
|
| 217 |
+
[45] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
|
| 218 |
+
[46] Wasifur Rahman, Md Kamrul Hasan, Amir Zadeh, Louis-Philippe Morency, and Mohammed Ehsan Hoque. M-bert: Injecting multimodal information in the bert structure. arXiv preprint arXiv:1908.05787, 2019.
|
| 219 |
+
[47] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021.
|
| 220 |
+
[48] Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. arXiv preprint arXiv:1906.00446, 2019.
|
| 221 |
+
[49] Yi Ren, Chenxu Hu, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu. Fastspeech 2: Fast and high-quality end-to-end text to speech. arXiv preprint arXiv:2006.04558, 2020.
|
| 222 |
+
[50] Yi Ren, Yangjun Ruan, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu. Fastspeech: Fast, robust and controllable text to speech. arXiv preprint arXiv:1905.09263, 2019.
|
| 223 |
+
[51] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015.
|
| 224 |
+
[52] Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. Vl-bert: Pre-training of generic visual-linguistic representations. arXiv preprint arXiv:1908.08530, 2019.
|
| 225 |
+
[53] Hao Tan and Mohit Bansal. Lxmert: Learning cross-modality encoder representations from transformers. arXiv preprint arXiv:1908.07490, 2019.
|
| 226 |
+
[54] Ming Tao, Hao Tang, Songsong Wu, Nicu Sebe, Xiao-Yuan Jing, Fei Wu, and Bingkun Bao. Df-gan: Deep fusion generative adversarial networks for text-to-image synthesis. arXiv preprint arXiv:2008.05865, 2020.
|
| 227 |
+
[55] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pages 5998–6008, 2017.
|
| 228 |
+
[56] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011.
|
| 229 |
+
[57] Alex Wang and Kyunghyun Cho. Bert has a mouth, and it must speak: Bert as a markov random field language model. arXiv preprint arXiv:1902.04094, 2019.
|
| 230 |
+
[58] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Highresolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8798–8807, 2018.
|
| 231 |
+
[59] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004.
|
| 232 |
+
[60] Weihao Xia, Yujiu Yang, and Jing-Hao Xue. Cali-sketch: Stroke calibration and completion for high-quality face image generation from poorly-drawn sketches. arXiv preprint arXiv:1911.00426, 2019.
|
| 233 |
+
[61] Weihao Xia, Yujiu Yang, Jing-Hao Xue, and Baoyuan Wu. Tedigan: Text-guided diverse image generation and manipulation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021.
|
| 234 |
+
[62] Tao Xu, Pengchuan Zhang, Qiuyuan Huang, Han Zhang, Zhe Gan, Xiaolei Huang, and Xiaodong He. Attngan: Fine-grained text to image generation with attentional generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1316–1324, 2018.
|
| 235 |
+
[63] Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Free-form image inpainting with gated convolution. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4471–4480, 2019.
|
| 236 |
+
[64] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 5907–5915, 2017.
|
| 237 |
+
[65] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan $^ { + + }$ : Realistic image synthesis with stacked generative adversarial networks. IEEE transactions on pattern analysis and machine intelligence, 41(8):1947–1962, 2018.
|
| 238 |
+
[66] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586–595, 2018.
|
| 239 |
+
[67] Shengyu Zhang, Tan Jiang, Tan Wang, Kun Kuang, Zhou Zhao, Jianke Zhu, Jin Yu, Hongxia Yang, and Fei Wu. Devlbert: Learning deconfounded visio-linguistic representations. In Proceedings of the 28th ACM International Conference on Multimedia, pages 4373–4382, 2020.
|
| 240 |
+
[68] Shengyu Zhang, Ziqi Tan, Zhou Zhao, Jin Yu, Kun Kuang, Tan Jiang, Jingren Zhou, Hongxia Yang, and Fei Wu. Comprehensive information integration modeling framework for video titling. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 2744–2754, 2020.
|
| 241 |
+
[69] Zijian Zhang, Zhou Zhao, Zhu Zhang, Baoxing Huai, and Jing Yuan. Text-guided image inpainting. In Proceedings of the ACM International Conference on Multimedia, pages 4079–4087, 2020.
|
| 242 |
+
[70] Luowei Zhou, Hamid Palangi, Lei Zhang, Houdong Hu, Jason Corso, and Jianfeng Gao. Unified visionlanguage pre-training for image captioning and vqa. In Proceedings of the American Association for Artificial Intelligence, volume 34, pages 13041–13049, 2020.
|
| 243 |
+
[71] Minfeng Zhu, Pingbo Pan, Wei Chen, and Yi Yang. Dm-gan: Dynamic memory generative adversarial networks for text-to-image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5802–5810, 2019.
|
| 244 |
+
[72] Peihao Zhu, Rameen Abdal, Yipeng Qin, and Peter Wonka. Sean: Image synthesis with semantic region-adaptive normalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5104–5113, 2020.
|
parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ_content_list.json
ADDED
|
@@ -0,0 +1,977 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
| 7 |
+
209,
|
| 8 |
+
122,
|
| 9 |
+
789,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Zhu Zhang†, Jianxin $\\mathbf { M } \\mathbf { a } ^ { \\dagger }$ , Chang Zhou†, Rui Men†, Zhikang Li†, Ming Ding‡, Jie Tang‡, Jingren Zhou†, and Hongxia Yang† †DAMO Academy, Alibaba Group, ‡Tsinghua University {zhangzhu950310}@gmail.com {jason.mjx, ericzhou.zc, yang.yhx}@alibaba-inc.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
271,
|
| 19 |
+
224,
|
| 20 |
+
727,
|
| 21 |
+
297
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
333,
|
| 32 |
+
535,
|
| 33 |
+
349
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Conditional image synthesis aims to create an image according to some multi-modal guidance in the forms of textual descriptions, reference images, and image blocks to preserve, as well as their combinations. In this paper, instead of investigating these control signals separately, we propose a new two-stage architecture, UFC-BERT, to unify any number of multi-modal controls. In UFC-BERT, both the diverse control signals and the synthesized image are uniformly represented as a sequence of discrete tokens to be processed by Transformer. Different from existing two-stage autoregressive approaches such as DALL-E and VQGAN, UFC-BERT adopts non-autoregressive generation (NAR) at the second stage to enhance the holistic consistency of the synthesized image, to support preserving specified image blocks, and to improve the synthesis speed. Further, we design a progressive algorithm that iteratively improves the non-autoregressively generated image, with the help of two estimators developed for evaluating the compliance with the controls and evaluating the fidelity of the synthesized image, respectively. Extensive experiments on a newly collected large-scale clothing dataset M2C-Fashion and a facial dataset MultiModal CelebA-HQ verify that UFC-BERT can synthesize high-fidelity images that comply with flexible multi-modal controls. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
367,
|
| 43 |
+
766,
|
| 44 |
+
602
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
635,
|
| 55 |
+
310,
|
| 56 |
+
651
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Conditional image synthesis aims to create an image according to the given control signals. With the increasing demand for flexible conditional image synthesis, various kinds of control signals have been introduced into this field, which can be divided into three main modalities: (i) textual controls (TC), including the class labels [1] and natural language descriptions [62, 54]; (ii) visual controls $( V C )$ , such as a spatially-aligned sketch map for reference [17, 60] or another image for style transfer [15, 27]; (iii) preservation controls $( P C )$ , which require the synthesized image to preserve some given image blocks, e.g., image outpainting and inpainting [63, 69]. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
669,
|
| 66 |
+
825,
|
| 67 |
+
766
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "However, control signals of various modalities possess different characteristics. Existing works [62, 26, 61] hence typically design separate methods customized for each control modality. Moreover, most of these approaches only utilize one type of control signal and cannot simultaneously combine multiple types of controls in a concise and versatile model. This begs the question: can we integrate any number of multi-modal control signals into a unified framework for flexible conditional image synthesis? There are two inevitable challenges in this setting: (i) how to unify the multi-modal controls and represent them in a unified form, especial when employing multiple control signals from different modalities concurrently; (ii) how to guarantee the fulfillment of the multi-modal controls while ensuring the fidelity of the synthesized image. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
772,
|
| 77 |
+
825,
|
| 78 |
+
897
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/05896f0fbfafe0f337aaac313cea867f65a8bcee6717c204d7869da2de03448b.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: The three main modalities of control signals for conditional image synthesis: Textual Controls (TC), Visual Controls (VC), and Preservation Controls (PC). "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
174,
|
| 91 |
+
89,
|
| 92 |
+
820,
|
| 93 |
+
219
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "Recently, two-stage image synthesis [42, 48, 3, 13, 47] has made great progress. The first stage learns a convolutional autoencoder with quantized latent representations for converting an image into a sequence of discrete tokens, e.g., for compressing a $2 5 6 \\times 2 5 6$ image into a sequence of $3 2 \\times 3 2$ tokens where each token correlates mainly with an $8 \\times 8$ block of the image. Converting a sequence of tokens back into an image is also supported. The second stage then typically adopts an autoregressive model, e.g., PixelCNN [41] or a unidirectional Transformer decoder [55], to capture the distribution over sequences of tokens. Particularly, the Transformer-based methods [3, 13, 47] exploit the global expressivity of Transformer to capture long-range relationships between local constituents. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
324,
|
| 103 |
+
825,
|
| 104 |
+
435
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "In this paper, we make two key observations about the two-stage framework. First, the two-stage framework has the advantage that it can potentially unify the multi-modal control signals and the generated image into a single sequence of discrete tokens. However, existing works [42, 48, 13, 47] largely neglect this advantage of the two-stage framework over the traditional one-stage approaches such as those based mainly on the generative adversarial networks (GAN) [18]. Second, the autoregressive $( A R )$ approach to sequence generation, adopted by the existing two-stage methods such as DALL-E [47] and VQGAN [13], brings undesirable shortcomings: (i) the token-by-token synthesis procedure leads to slow generation speed, especially for the heavyweight Transformer [3, 13, 47]; (ii) each generated token can only catch sight of the previously generated tokens and cannot incorporate bidirectional contexts, which may affect the holistic consistency of image synthesis; (iii) the fixed left-to-right order of autoregressive decoding cannot respond to the preservation control signals unless the image blocks to be preserved are at the beginning of the sequence. Notably, different from AR generation, non-autoregressive (NAR) sequence generation with bidirectional Transformer, i.e., BERT [9], can naturally avoid the three shortcomings. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
443,
|
| 114 |
+
826,
|
| 115 |
+
636
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Based on the aforementioned observations, we propose UFC-BERT, a novel BERT-based two-stage framework to UniFy any number of multi-modal Controls for conditional image synthesis. Concretely, the textual, visual, and preservation control signals, as well as the generated image, are uniformly represented as a sequence of discrete tokens, as shown in Figure 2. The textual control consists of word tokens for class labels or natural language descriptions. The visual control(s) and the generated image are both represented as discrete tokens due to the first stage, where each token corresponds to a block within the reference image(s) or the generated image. Zero, one, or more reference images are supported. To preserve a given image block within the generated image, we encode the given image block into discrete tokens and fix corresponding parts of the generated sequence to the tokens. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
641,
|
| 125 |
+
825,
|
| 126 |
+
767
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "We train UFC-BERT via the masked sequence modeling task, which predicts a masked subset of the target image’s tokens conditioned on both the multi-modal control signals and the generation target’s unmasked tokens. During inference, we adopt Mask-Predict, a NAR generation algorithm [16, 21, 7], which predicts all target tokens at the first iteration and then iteratively re-mask and re-predict a subset of tokens with low confidence scores. To further improve upon the NAR generation algorithm, we exploit the discriminative capability of the BERT architecture [11, 70] and add two estimators (see Figure 2), where one estimator estimates the relevance between the generated image and the control signals, and the other one estimates the image’s fidelity. The two estimators help improve the quality of the synthesized image, because at each iteration we can generate multiple samples and keep only the highly-scored one before starting the next iteration. The two estimators also help save the number of iterations needed, since the algorithm can dynamically terminate if running for more iterations no longer improves the scores. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
772,
|
| 136 |
+
825,
|
| 137 |
+
911
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
90,
|
| 147 |
+
823,
|
| 148 |
+
119
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 2
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "The extensive experiments on M2C-Fashion, a newly collected clothing dataset with tens of millions of image-text pairs, as well as on Multi-Modal CelebA-HQ [28, 61], a public facial dataset, demonstrate UFC-BERT can synthesize high-quality images that comply with various multi-modal controls. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
176,
|
| 157 |
+
126,
|
| 158 |
+
823,
|
| 159 |
+
167
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 2
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "2 Related Works ",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
176,
|
| 169 |
+
189,
|
| 170 |
+
330,
|
| 171 |
+
207
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 2
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "We have discussed the connection between our work and Two-Stage Image Synthesis in the Introduction. In this section, we further discuss related works from other fields. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
223,
|
| 181 |
+
823,
|
| 182 |
+
251
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Conditional Image Synthesis. A variety of control signals have been introduced into conditional image synthesis. The class-conditional generation task [1, 39] adopts class labels as control signals. The text-to-image synthesis task [64, 65, 30, 62, 72, 54] further employs natural language descriptions as controls. The image-to-image translation task generates photo-realism images from visual controls, such as a sketch map [17, 60], semantic label map [26, 4, 58], human pose [37] or another image for style transfer [15, 27]. Moreover, image outpainting and inpainting [25, 63] can be regarded as image synthesis conditioned on preservation control signals, where some image blocks of the desired image are already specified and need to be preserved in the generated image. However, these works only utilize one kind of control signal and design their methods customized for each kind of control. Text-guided image manipulation [10, 40, 69, 31, 61] semantically edits an image, where the text description and the original image serve as control signals. But they still fail to unify multiple modalities in a universal form and cannot easily extend to more control modalities. To promote versatility and extensibility, we propose UFC-BERT to unify any number of multi-modal controls. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
257,
|
| 192 |
+
825,
|
| 193 |
+
438
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Visual-Language Transformer. With great progress in language tasks [55, 44, 45, 2], the transformer architecture is being rapidly transferred to other fields such as vision [3, 68, 12] and audio [6]. Recently, pretraining visual-language transformer [43, 24, 70, 7, 35, 53, 67] (e.g. multi-modal BERT) has achieved significant improvements on a variety of downstream tasks, e.g. visual question answering, image captioning [70], and text-to-image generation [7]. Among them, the single-stream architecture [52, 32, 46, 5, 43, 24] uses a single transformer to jointly model a pair of text and image, while the two-stream architecture [35, 36, 53] applies two transformers to separately learn the representations of the text and the image, respectively. Our UFC-BERT is also a variant of the single-stream visual-language transformer, but focuses on flexible multi-modal image synthesis instead of multi-modal pretraining. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
443,
|
| 203 |
+
825,
|
| 204 |
+
582
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Non-Autoregressive Sequence Generation. Though it is natural to autoregressively predict tokens from left to right when generating a sequence, autoregressive decoding suffers from the slow speed and sequential error accumulation. Thus, the non-autoregressive generation (NAR) paradigm is proposed to avoid these drawbacks in neural machine translation [19, 20, 29, 16], image captioning [14, 22, 70], and speech synthesis [50, 49]. These approaches often employ the bidirectional Transformer (i.e. BERT) as it is not trained with a specific generation order. Our progressive NAR generation algorithm improves upon the Mask-Predict non-autoregressive algorithm [57, 16, 38, 33], by introducing the relevance estimator and the fidelity estimator to facilitate sample selection and dynamic termination. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
587,
|
| 214 |
+
826,
|
| 215 |
+
699
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "3 UFC-BERT For Multi-Modal Image Synthesis ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
720,
|
| 226 |
+
593,
|
| 227 |
+
738
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "3.1 Background: Two-Stage Image Synthesis ",
|
| 234 |
+
"text_level": 1,
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
753,
|
| 238 |
+
500,
|
| 239 |
+
768
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "In this section, we review the two-stage architecture [42, 48, 13, 47] for image synthesis. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
171,
|
| 248 |
+
780,
|
| 249 |
+
754,
|
| 250 |
+
795
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "At the first stage, a codebook $\\mathcal { Z } = \\{ \\mathbf { z } _ { k } \\} _ { k = 1 } ^ { K }$ for vector quantization is learned, where $\\mathbf { z } _ { k } \\in \\mathbb { R } ^ { n _ { z } }$ is the $k$ -th code-word in the codebook and $K$ is the number of code-words. An image $\\mathbf { X } \\in \\mathbb { R } ^ { H \\times W \\times 3 }$ can be transformed into (or from) a collection of code-words $\\mathbf { Z } \\in \\mathbb { R } ^ { h \\times w \\times n _ { z } }$ . Concretely, a convolutional encoder $E$ first encodes the original image $\\mathbf { X }$ as $\\hat { \\mathbf { Z } } = E ( \\mathbf { X } ) \\in \\mathbb { R } ^ { h \\times w \\times n _ { z } }$ . Then an element-wise quantization step $\\mathbf { q } ( \\cdot )$ is applied to each element $\\hat { \\mathbf { Z } } _ { i j }$ to obtain the element’s closest code-word $\\mathbf { z } _ { k }$ , i.e., $\\begin{array} { r } { \\mathbf q ( \\hat { \\mathbf Z } _ { i j } ) = \\arg \\operatorname* { m i n } _ { { \\mathbf z } _ { k } \\in { \\mathcal Z } } \\| \\hat { \\mathbf Z } _ { i j } - { \\mathbf z } _ { k } \\| } \\end{array}$ . For reconstruction, a convolutional decoder $D$ is also learned for recovering image $\\hat { \\mathbf { X } } \\in \\mathbb { R } ^ { H \\times W \\times 3 }$ from $\\mathbf { Z }$ such that $\\hat { \\bf X }$ is close to $\\mathbf { X }$ . The first stage can be denoted by ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
799,
|
| 260 |
+
826,
|
| 261 |
+
911
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "image",
|
| 267 |
+
"img_path": "images/a477c09f0665712f866aecce069439db279ed3cfb382c98f7ba6a3e714ef3dc4.jpg",
|
| 268 |
+
"image_caption": [
|
| 269 |
+
"Figure 2: The framework of UFC-BERT, where the textual control (TC), vsiual control (VC), and preservation control (PC), as well as the image to generate, collectively form a sequence of tokens. "
|
| 270 |
+
],
|
| 271 |
+
"image_footnote": [],
|
| 272 |
+
"bbox": [
|
| 273 |
+
184,
|
| 274 |
+
88,
|
| 275 |
+
818,
|
| 276 |
+
332
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 3
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "equation",
|
| 282 |
+
"img_path": "images/6b619ec264a30e6029c9005e409b630ceff6a043f2d2d444a504460d23317f7e.jpg",
|
| 283 |
+
"text": "$$\n\\mathbf { Z } = \\mathbf { q } ( E ( \\mathbf { X } ) ) , \\hat { \\mathbf { X } } = D ( \\mathbf { Z } ) .\n$$",
|
| 284 |
+
"text_format": "latex",
|
| 285 |
+
"bbox": [
|
| 286 |
+
403,
|
| 287 |
+
444,
|
| 288 |
+
594,
|
| 289 |
+
463
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 3
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "Due to the convolutional layers, each of the $h \\times w$ elements of $\\hat { \\mathbf { Z } }$ mainly correlates with an $\\textstyle { \\frac { H } { h } } \\times { \\frac { W } { w } }$ block of the image, though its receptive field may be larger if multiple convolutions are stacked. ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
481,
|
| 299 |
+
823,
|
| 300 |
+
511
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 3
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "At the second stage, image $\\mathbf { X }$ ’s quantized representation $\\mathbf { Z }$ can be rewritten as a sequence of codes $\\mathbf { I } \\in$ $\\{ 0 , \\ldots , | \\mathcal { Z } | - 1 \\} ^ { \\overline { { N } } _ { I } }$ , composed of $N _ { I } \\left( = h \\times w \\right)$ indices from the codebook $\\mathcal { Z }$ . Thus, image synthesis can be formulated as autoregressive sequence generation, i.e. predicting the distribution $\\mathrm { P } \\mathrm { \\bar { r } } ( I _ { i } | \\mathbf { I } _ { < i } , \\mathbf { C } )$ of the next token $I _ { i }$ conditioned on the preceding tokens $\\mathbf { I } _ { < i }$ and the control signals $\\mathbf { C }$ . The distribution is typically modeled using a unidirectional Transformer. The likelihood is then $\\mathrm { P r } ( { \\bf I } | { \\bf C } ) =$ $\\begin{array} { r } { \\prod _ { i } \\operatorname* { P r } ( I _ { i } | \\mathbf { I } _ { < i } , \\mathbf { \\dot { C } } ) } \\end{array}$ . Parameters are learned by minimizing $\\mathcal { L } _ { \\mathrm { A R } } = \\mathbb { E } _ { \\mathbf { I } \\sim d a t a } \\left[ - \\log \\operatorname* { P r } ( \\mathbf { I } | \\mathbf { C } ) \\right]$ . ",
|
| 307 |
+
"bbox": [
|
| 308 |
+
173,
|
| 309 |
+
516,
|
| 310 |
+
825,
|
| 311 |
+
601
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 3
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"text": "We focus on improving the second stage. Specifically, the autoregressive paradigm adopted by the existing two-stage works [42, 48, 13, 47] suffers from slow generation speed, fails to capture bidirectional contexts, and cannot fully support preservation control signals. We thus propose UFCBERT, a novel NAR approach for stage two, to unify any number of multi-modal controls and tackle the shortcomings of AR. As for stage one, we directly follow VQGAN’s design [47], which improves upon VQVAE [42] by incorporating a perceptual loss [27] and patch-based adversarial training [26]. ",
|
| 318 |
+
"bbox": [
|
| 319 |
+
174,
|
| 320 |
+
606,
|
| 321 |
+
825,
|
| 322 |
+
690
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "3.2 Problem Formulation ",
|
| 329 |
+
"text_level": 1,
|
| 330 |
+
"bbox": [
|
| 331 |
+
176,
|
| 332 |
+
715,
|
| 333 |
+
362,
|
| 334 |
+
731
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 3
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "Conditional image synthesis aims to generate an image that satisfies a set of control signals C. We consider three major modalities of control signals. A Textual Control $( T C )$ consists of a sequence of words $\\mathbf { T } \\in \\{ 0 , \\dot { \\mathbf { \\Omega } } . . . , | \\mathcal { W } | - 1 \\} ^ { N _ { T } }$ , where $\\mathcal { W }$ is the vocabulary and $N _ { T }$ is the number of words in the text. In the two-stage framework, an image can be converted into a sequence of code-words (i.e. tokens) based on stage one’s encoder $E$ and codebook $\\mathcal { Z }$ . Thus, a Visual Control $( V C )$ is denoted by a sequence $\\mathbf { V } \\in \\{ 0 , \\overline { { \\mathbf { \\Omega } } } , \\mathbf { \\Omega } , | \\mathcal { Z } | - 1 \\} ^ { N _ { V } }$ consisting of code-words from the codebook $\\mathcal { Z }$ , where $N _ { V }$ is the sequence length. Similarly, the target (i.e., the image to generate) is a sequence of code-words $\\mathbf { I } \\in \\{ \\bar { 0 , } . . . , | \\mathcal { Z } | \\overset { - } { - } 1 \\} ^ { N _ { I } }$ . We support zero, one, or multiple visual controls for flexibility. As for the Preservation Control $( P C )$ , it is a sequence of binary masks $\\mathbf { P } \\in \\{ 0 , 1 \\} ^ { N _ { I } }$ with the same length as $\\mathbf { I }$ , where 1 means that the token is known (i.e., $I _ { i }$ is ground-truth if $P _ { i } = 1$ ) while 0 means the token needs to be predicted. We aim to design a model at the second stage to synthesize the target image’s sequence I conditioned on $\\mathbf { C }$ , i.e., a combination of any number of control signals from $\\mathbf { \\bar { \\{ T } } , V , \\bar { P } \\}$ . ",
|
| 341 |
+
"bbox": [
|
| 342 |
+
173,
|
| 343 |
+
744,
|
| 344 |
+
826,
|
| 345 |
+
911
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 3
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "3.3 Model Inputs ",
|
| 352 |
+
"text_level": 1,
|
| 353 |
+
"bbox": [
|
| 354 |
+
174,
|
| 355 |
+
90,
|
| 356 |
+
305,
|
| 357 |
+
106
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 4
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "As shown in Figure 2, our UFC-BERT modifies the original BERT model [9] to accommodate any number of multi-modal controls. Similar to BERT, the backbone is a multi-layer bidirectional Transformer encoder, enabling the dependency modeling between all input elements. The input sequence of UFC-BERT always starts with two special tokens [REL] and [FDL] for relevance estimation and fidelity estimation, then goes on with the word sequence $\\mathbf { T }$ of textual controls, code sequence V of visual controls, and ends with the code sequence I of the target image to generate. Two special separation tokens [EOT] and [EOV] are appended to the end of the textual and the visual control sequences, respectively. If there are multiple visual controls, another special token [SEP] is inserted to separate them. The sequence I of the target image to generate may be partially or fully masked by a special token [MASK]. When the preservation control $\\mathbf { P }$ is present and $P _ { i } = 1$ , token $I _ { i }$ in I is always set to the code-word corresponding to the given image block to be preserved. ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
174,
|
| 366 |
+
119,
|
| 367 |
+
825,
|
| 368 |
+
272
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 4
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "Each input token’s representation is the sum of the position and token embeddings: ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
178,
|
| 377 |
+
279,
|
| 378 |
+
715,
|
| 379 |
+
292
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 4
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "Position Embedding. Our UFC-BERT learns independent sets of position embeddings for the different kinds of the inputs to achieve better distinguishment between the various modalities. The position embeddings for the word sequence are the same as BERT, i.e., we use sequential position embeddings. For a visual control or the target image, the position embedding of each token is decided according to where this token lies on the $h \\times w$ grid, i.e., we use spatial position embeddings. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
299,
|
| 389 |
+
825,
|
| 390 |
+
368
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 4
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "Token Embedding. For textual controls, we use Byte-Pair Encoding [51] to segment each word into sub-words and then learn sub-word embeddings. Each special token, e.g., [REL] or [MASK], is assigned a dedicated embedding. For visual controls and the target image, we learn an embedding for each code-word. We do not directly use the embeddings from stage one’s codebook due to the decoupling of the two stages. ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
375,
|
| 400 |
+
825,
|
| 401 |
+
444
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 4
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "3.4 Training: Masked Sequence Modeling with Relevance and Fidelity Estimation ",
|
| 408 |
+
"text_level": 1,
|
| 409 |
+
"bbox": [
|
| 410 |
+
173,
|
| 411 |
+
468,
|
| 412 |
+
754,
|
| 413 |
+
483
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 4
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "As shown in Figure 2, we train UFC-BERT via masked sequence modeling, i.e., predicting the masked tokens in the target image conditioned on the controls. A relevance estimator and a fidelity estimator are also trained in the process, and will be key to our progressive NAR generation algorithm. ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
174,
|
| 422 |
+
497,
|
| 423 |
+
825,
|
| 424 |
+
539
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 4
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "Task 1: Masked Sequence Modeling. This task is similar to Masked Language Modeling (MLM) in BERT, but incorporates multi-modal control signals when predicting the masked tokens. To construct training samples, we mask parts of the target image I to predict using four strategies: (1) randomly decide the number of tokens to mask, and then randomly mask the desired number of tokens; (2) mask all tokens; (3) mask the tokens within some boxed areas of the image, where the number of boxes and the box sizes are randomly decided; (4) mask the tokens outside some random boxed areas of the image. We use the four strategies with probability 0.70, 0.10, 0.10, and 0.10, respectively. To construct multi-modal control signal $\\mathbf { C }$ for each training sample, there are four different combinations: ${ < } T C$ , $V C >$ , ${ < } T C >$ , ${ < } V C >$ , <empty>, where ${ < } T C$ , $V C >$ means the textual and visual controls are simultaneously employed, ${ < } T C >$ or ${ < } V C >$ means only a textual or visual signal is used, and <empty> means no textual or visual control is present. Note that the preservation control is already included in the masked sequence modeling task. Since our dataset does not contain ground-truth pairs of visual controls and target images, we crop one or multiple regions of a target image to construct VC for the target image. Because image synthesis from solely textual controls is more challenging than from other signals, we use the four combinations with probability 0.20, 0.55, 0.20, 0.05, respectively, where textual controls get more attention. We feed UFC-BERT’s outputs at each position of I into a softmax classifier over the codebook $\\mathcal { Z }$ , which produces a probability score $Y _ { i } = \\mathrm { \\bar { P r } } ( I _ { i } | \\mathbf { I } _ { U } , \\mathbf { C } )$ for each position $i \\in M$ , where $M$ is the set of masked positions and $U$ is the unmasked set. Finally, the masked sequence modeling task minimizes the softmax cross-entropy loss $\\mathcal { L } _ { \\mathrm { M S M } } = \\mathbb { E } _ { \\mathbf { I } _ { M } , \\mathbf { I } _ { U } } \\left[ - \\log \\operatorname* { P r } ( \\mathbf { I } _ { M } | \\mathbf { I } _ { U } , \\mathbf { C } ) \\right]$ , where $\\begin{array} { r } { \\mathrm { P r } ( \\mathbf { I } _ { M } ^ { \\mathbf { - } } | \\mathbf { I } _ { U } , \\mathbf { C } ) = \\prod _ { i \\in M } Y _ { i } } \\end{array}$ . ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
174,
|
| 433 |
+
545,
|
| 434 |
+
825,
|
| 435 |
+
824
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 4
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "Task 2: Relevance Estimation. This task is to learn a binary classifier that judges whether the generated image is relevant or irrelevant to the given multi-modal control $\\mathbf { C }$ . Briefly, we add a linear layer on the output corresponding to the special token [REL]. The linear layer outputs a scalar representing the logit, and a binary cross-entropy loss $\\mathcal { L } _ { \\mathrm { R E L } }$ is added. During training, the training samples from Task 1 serve as the positive instances (i.e. relevant pairs). We construct negative instances (i.e. irrelevant pairs) by swapping the control signals of two training samples. ",
|
| 442 |
+
"bbox": [
|
| 443 |
+
174,
|
| 444 |
+
828,
|
| 445 |
+
823,
|
| 446 |
+
911
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 4
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "Task 3: Fidelity Estimation. This task aims to distinguish whether the generated image is realistic from the view of human visual cognition. Similar to relevance estimation, we feed the output corresponding to [FDL] into a linear layer for binary classification and add another binary crossentropy loss ${ \\mathcal { L } } _ { \\mathrm { F D L } }$ . Since the low-fidelity images (i.e. negative instances) do not exist in the dataset, we run UFC-BERT from previous epochs to synthesize images based solely on textual control signals, and use the synthesized images as negative instances. ",
|
| 453 |
+
"bbox": [
|
| 454 |
+
173,
|
| 455 |
+
90,
|
| 456 |
+
826,
|
| 457 |
+
175
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 5
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "We combine the three tasks’ losses to train UFC-BERT, i.e., ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
180,
|
| 467 |
+
566,
|
| 468 |
+
195
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 5
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "equation",
|
| 474 |
+
"img_path": "images/fcd45a99e78db65de140e10215af1a7eb0e4e5f978d2794718c1fce2962e7848.jpg",
|
| 475 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { U F C - B E R T } } = \\lambda _ { 1 } \\mathcal { L } _ { \\mathrm { M S M } } + \\lambda _ { 2 } \\mathcal { L } _ { \\mathrm { R E L } } + \\lambda _ { 3 } \\mathcal { L } _ { \\mathrm { F D L } } , } \\end{array}\n$$",
|
| 476 |
+
"text_format": "latex",
|
| 477 |
+
"bbox": [
|
| 478 |
+
352,
|
| 479 |
+
200,
|
| 480 |
+
643,
|
| 481 |
+
217
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 5
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "where $\\lambda _ { 1 }$ , $\\lambda _ { 2 }$ and $\\lambda _ { 3 }$ are set to 1.0, 0.5, and 0.5 to balance the three losses. The masked sequence modeling task ignores the negative instances from the other two tasks, i.e., irrelevant pairs or unrealistic instances. And the fidelity estimation task is added only after a certain number of epochs. ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
173,
|
| 490 |
+
222,
|
| 491 |
+
826,
|
| 492 |
+
265
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 5
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "3.5 Inference: Progressive Non-Autoregressive Generation ",
|
| 499 |
+
"text_level": 1,
|
| 500 |
+
"bbox": [
|
| 501 |
+
174,
|
| 502 |
+
280,
|
| 503 |
+
593,
|
| 504 |
+
295
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 5
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "We design a Progressive Non-Autoregressive Generation (PNAG) algorithm for conditional image synthesis after training, which improves upon Mask-Predict [16, 21, 7]. Mask-Predict predicts all target tokens when given a fully-masked sequence at the first iteration, and then iteratively re-mask and re-predict a subset of tokens with low probability scores for a constant number of iterations. However, Mask-Predict cannot ensure the efficacy of multi-modal controls and the fidelity of the synthesized images, and requires determining the number of iterations. Our PNAG tackles its drawbacks via sample selection and dynamic termination, based on the relevance and fidelity estimators. ",
|
| 511 |
+
"bbox": [
|
| 512 |
+
173,
|
| 513 |
+
304,
|
| 514 |
+
825,
|
| 515 |
+
404
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 5
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "text",
|
| 521 |
+
"text": "Each iteration of our PNAG algorithm consists of a Mask step and then a Predict step. Let $\\mathbf { I } ^ { ( t , i n ) } =$ (I (t,in)1 , . $( I _ { 1 } ^ { ( t , i n ) } , \\ldots , I _ { N _ { I } } ^ { ( t , i n ) } )$ and $\\mathbf { I } ^ { ( t , o u t ) } = ( I _ { 1 } ^ { ( t , o u t ) } , \\dots , I _ { N _ { I } } ^ { ( t , o u t ) } )$ , I (t,out)N ) be the state of the target image’s sequence before and after the $t$ -th iteration, respectively. The tokens in $\\mathbf { I } ^ { ( 0 , o u t ) }$ for $t = 0$ is all set to [MASK] except for the positions that are controlled by the preservation signals, i.e., except for I(0,out)i t hat has $P _ { i } = 1$ . If a preservation control is present, i.e. $P _ { i } = 1$ , we always set $I _ { i } ^ { ( t , i n ) }$ and $I _ { i } ^ { ( t , o u t ) }$ for all $t$ to be the code-word that corresponds to the provided image block to be preserved. ",
|
| 522 |
+
"bbox": [
|
| 523 |
+
173,
|
| 524 |
+
409,
|
| 525 |
+
825,
|
| 526 |
+
508
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 5
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "Mask Step. At the beginning of iteration $t$ $\\left( t \\geq 1 \\right)$ ), we construct the input sequence $\\mathbf { I } ^ { ( t , i n ) }$ by (re-)masking a subset of tokens in the generated sequence $\\mathbf { I } ^ { ( t - 1 , o u t ) }$ from the last iteration. Similar to beam search, we construct $B$ parallel input sequences $\\{ \\mathbf { I } _ { 1 } ^ { ( t , i n ) } , \\ldots , \\mathbf { I } _ { B } ^ { ( t , i n ) } \\}$ at each iteration. Specifically, we re-mask $n$ tokens of $\\mathbf { I } ^ { ( t - 1 , o u t ) }$ to produce each $\\mathbf { I } _ { b } ^ { ( t , i n ) }$ . We first sample $N _ { I } - n$ tokens from a multinomial distribution $\\mathrm { P r } ^ { ( t , i n ) }$ proportional to the probability scores $\\mathbf { Y } ^ { ( t - 1 ) } = \\{ Y _ { i } ^ { ( t - 1 ) } \\} _ { i = 1 } ^ { N _ { I } }$ (see Equation 3), computed by $\\mathrm { P r } ^ { ( t , i n ) } = \\mathrm { S o f t m a x } ( \\mathbf { Y } ^ { ( t - 1 ) } )$ . And other tokens are re-masked and re-predicted at the next Predict Step. Here $\\begin{array} { r } { n = N _ { I } \\cdot ( \\beta + \\frac { T - t } { T - 1 } \\cdot ( \\alpha - \\beta ) ) } \\end{array}$ , where $\\alpha$ is the initial mask ratio, $\\beta$ is the minimum mask ratio, and $T$ is the maximum possible number of iterations, such that the number of tokens to re-mask gradually decreases after every iteration. ",
|
| 533 |
+
"bbox": [
|
| 534 |
+
173,
|
| 535 |
+
515,
|
| 536 |
+
826,
|
| 537 |
+
661
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 5
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "Predict Step. Given the control $\\mathbf { C }$ and an input sequence $\\mathbf { I } _ { b } ^ { ( t , i n ) }$ , UFC-BERT estimates a distribution $\\mathrm { P r } ( \\hat { I } _ { i } | \\mathbf { I } _ { b } ^ { ( t , i n ) } , \\mathbf { C } )$ for each masked position $i$ . UFC-BERT also estimates the relevance score $S _ { b } ^ { R }$ and fidelity score $S _ { b } ^ { F }$ regarding the image that it is about to synthesize, and summarizes the scores into a comprehensive score $S _ { b } ^ { ( t ) } = \\sigma S _ { b } ^ { R } + ( 1 - \\sigma ) S _ { b } ^ { F }$ , where $\\sigma$ is a coefficient for adjusting the importance of the two. We perform sample selection based on $S _ { b } ^ { ( t ) }$ , i.e., we select the $b$ -th sequen ce I(t,in)b w ith the highest $S _ { b } ^ { ( t ) }$ , discard the others, and then generate $\\mathbf { I } ^ { ( t , o u t ) }$ based on the selected $\\mathbf { I } _ { b } ^ { ( t , i n ) }$ as follows: ",
|
| 544 |
+
"bbox": [
|
| 545 |
+
173,
|
| 546 |
+
666,
|
| 547 |
+
825,
|
| 548 |
+
773
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 5
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "equation",
|
| 554 |
+
"img_path": "images/06e7f30d33c86d1433e41886ea9f1d9cb6957396f3313c4e0a709b84ccaa4c41.jpg",
|
| 555 |
+
"text": "$$\nI _ { i } ^ { ( t , o u t ) } \\sim \\mathrm { P r } ( \\hat { I } _ { i } | \\mathbf { I } _ { b } ^ { ( t , i n ) } , \\mathbf { C } ) , \\qquad Y _ { i } ^ { ( t ) } \\gets \\mathrm { P r } ( \\hat { I } _ { i } = I _ { i } ^ { ( t , o u t ) } | \\mathbf { I } _ { b } ^ { ( t , i n ) } , \\mathbf { C } ) ,\n$$",
|
| 556 |
+
"text_format": "latex",
|
| 557 |
+
"bbox": [
|
| 558 |
+
271,
|
| 559 |
+
779,
|
| 560 |
+
725,
|
| 561 |
+
799
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 5
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "where each token $I _ { i } ^ { ( t , o u t ) }$ is sampled from the multinomial distribution $\\mathrm { P r } ( \\hat { I } _ { i } | \\mathbf { I } _ { b } ^ { ( t , i n ) } , \\mathbf { C } )$ and the corresponding probability is assigned to $Y _ { i } ^ { ( t ) }$ . Note that we predict tokens for all masked positions regardless of the predictions’ confidence. We also implement dynamic termination based on $S _ { b } ^ { ( t ) }$ . Specifically, if the current iteration’s score $S _ { b } ^ { ( t ) }$ is higher than $S _ { m a x }$ (initialized as zero), we set $S _ { m a x }$ to $S _ { b } ^ { ( t ) }$ and record the current iteration as $t _ { m a x }$ . If $S _ { m a x }$ does not increase after three consecutive iterations, we select $\\mathbf { I } ^ { ( t _ { m a x } , o u t ) }$ as the final result and terminate our generation algorithm. ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
173,
|
| 570 |
+
804,
|
| 571 |
+
826,
|
| 572 |
+
912
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 5
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "image",
|
| 578 |
+
"img_path": "images/93edd2d5d3aff83da7f00a082c45b0340506c523bc72098992f460bfeadc1bec.jpg",
|
| 579 |
+
"image_caption": [
|
| 580 |
+
"Figure 3: Images generated by our UFC-BERT under various combinations of textual controls (TC), visual controls (VC), and preservation controls (PC). Please see the supplemental material for more showcases, where we also include a study on the diversity of the images generated by UFC-BERT and analyze how the multiple control signals interfere with each other. "
|
| 581 |
+
],
|
| 582 |
+
"image_footnote": [],
|
| 583 |
+
"bbox": [
|
| 584 |
+
171,
|
| 585 |
+
92,
|
| 586 |
+
823,
|
| 587 |
+
535
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 6
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "4 Experiments ",
|
| 594 |
+
"text_level": 1,
|
| 595 |
+
"bbox": [
|
| 596 |
+
174,
|
| 597 |
+
660,
|
| 598 |
+
312,
|
| 599 |
+
676
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 6
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "4.1 Datasets and Hyperparameters ",
|
| 606 |
+
"text_level": 1,
|
| 607 |
+
"bbox": [
|
| 608 |
+
176,
|
| 609 |
+
704,
|
| 610 |
+
429,
|
| 611 |
+
719
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 6
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "In experiments, we focus on two practical fields of image synthesis: fashionable clothing and human faces. We collect a very large-scale clothing dataset M2C-Fashion with Chinese text descriptions, which contains tens of millions of image-text pairs, much larger than the commonly used text-to-image datasets COCO [34] and CUB [56]. Details of the dataset are provided in the supplementary material. We additionally use another high-resolution facial dataset Multi-Modal CelebA-HQ [28, 61]. ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
174,
|
| 620 |
+
738,
|
| 621 |
+
825,
|
| 622 |
+
808
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 6
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Following the model setting of VQGAN [13], we use the $2 5 6 \\times 2 5 6$ image size on the two datasets and transform each image to a discrete sequence of $1 6 \\times 1 6$ codes, where the codebook size $| { \\mathcal { Z } } |$ is set to 1024. For the BERT model, we set the number of layers, hidden size, and the number of attention heads to 24, 1024, and 16, respectively. Our UFC-BERT has 307M parameters, same as the Transformer used by VQGAN. As for hyper-parameters of PNAG, we set the parallel decoding number $B$ to 5 and the balance coefficient $\\sigma$ to 0.5. We set the initial mask ratio $\\alpha$ , the minimum mask ratio $\\beta$ , and the maximum iteration number $T$ to 0.8, 0.2, and 10, respectively. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
174,
|
| 631 |
+
814,
|
| 632 |
+
825,
|
| 633 |
+
911
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 6
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "image",
|
| 639 |
+
"img_path": "images/5a13f76b34d1717dd6eb50b4d3c2e9780dd310cab6091849fdb547a10501aeca.jpg",
|
| 640 |
+
"image_caption": [],
|
| 641 |
+
"image_footnote": [],
|
| 642 |
+
"bbox": [
|
| 643 |
+
176,
|
| 644 |
+
90,
|
| 645 |
+
823,
|
| 646 |
+
242
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 7
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "Figure 4: Image synthesis with multiple visual controls, where we crop regions from $2 \\sim 3$ images to serve as the visual controls. UFC-BERT synthesizes images that naturally fuse the visual elements. ",
|
| 653 |
+
"bbox": [
|
| 654 |
+
173,
|
| 655 |
+
267,
|
| 656 |
+
823,
|
| 657 |
+
297
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 7
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "table",
|
| 663 |
+
"img_path": "images/bc8cc6545840e29fdfcba71a14c5e3b7d1ca6dbbf87ab7d71365fbb4a2d37ba5.jpg",
|
| 664 |
+
"table_caption": [
|
| 665 |
+
"Table 1: Comparisons with GAN baselines for text-to-image synthesis on Multi-Modal CelebA-HQ. "
|
| 666 |
+
],
|
| 667 |
+
"table_footnote": [],
|
| 668 |
+
"table_body": "<table><tr><td>Method</td><td>AttnGAN [62]</td><td>ControlGAN [30]</td><td>DF-GAN [54]</td><td>DM-GAN [71]</td><td>TediGAN [61]</td><td>UFC-BERT (our)</td></tr><tr><td>FID↓</td><td>125.98</td><td>116.32</td><td>137.60</td><td>131.05</td><td>106.37</td><td>66.72</td></tr><tr><td>LPIPS↓</td><td>0.512</td><td>0.522</td><td>0.581</td><td>0.544</td><td>0.456</td><td>0.448</td></tr></table>",
|
| 669 |
+
"bbox": [
|
| 670 |
+
174,
|
| 671 |
+
342,
|
| 672 |
+
825,
|
| 673 |
+
393
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 7
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "table",
|
| 679 |
+
"img_path": "images/aa2be92a3ce5cdf4d74e840448d88aa2a3d320a24c50984efef7edfe6b90839d.jpg",
|
| 680 |
+
"table_caption": [
|
| 681 |
+
"Table 2: Comparisons with the autoregressive two-stage method VQGAN for text-to-image synthesis. ↓ means the lower the better, while $\\uparrow$ means the opposite. We evaluate speed on the same V100 GPU. "
|
| 682 |
+
],
|
| 683 |
+
"table_footnote": [],
|
| 684 |
+
"table_body": "<table><tr><td rowspan=\"2\">Datasets</td><td rowspan=\"2\">Methods</td><td colspan=\"4\">Automatic Metrics</td><td colspan=\"2\">Human Pairwise Study</td><td rowspan=\"2\">Inference Speed</td></tr><tr><td>FID↓</td><td>LPIPS↓</td><td>PSNR↑</td><td>SSIM↑</td><td>Relevance</td><td>Fidelity</td></tr><tr><td rowspan=\"2\">M2C-Fashion</td><td>VQGAN (AR)</td><td>12.48</td><td>0.483</td><td>10.80</td><td>0.56</td><td>38.6%</td><td>44.2%</td><td>8.73 sec/sample</td></tr><tr><td>UFC-BERT (NAR)</td><td>11.53</td><td>0.461</td><td>13.14</td><td>0.58</td><td>61.4%</td><td>55.8%</td><td>0.81 sec/sample</td></tr><tr><td rowspan=\"2\">Multi-Modal CelebA-HQ</td><td>VQGAN (AR)</td><td>52.63</td><td>0.503</td><td>8.98</td><td>0.28</td><td>42.7%</td><td>46.9%</td><td>8.66 sec/sample</td></tr><tr><td>UFC-BERT (NAR)</td><td>66.72</td><td>0.448</td><td>9.56</td><td>0.29</td><td>57.3%</td><td>53.1%</td><td>0.79 sec/sample</td></tr></table>",
|
| 685 |
+
"bbox": [
|
| 686 |
+
173,
|
| 687 |
+
452,
|
| 688 |
+
825,
|
| 689 |
+
551
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 7
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "4.2 Flexibility of Multi-Modal Controls for Conditional Image Synthesis ",
|
| 696 |
+
"text_level": 1,
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
575,
|
| 700 |
+
686,
|
| 701 |
+
592
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 7
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "In this section, we qualitatively verify the synthesis ability of UFC-BERT with three modalities of control signals, i.e., textual, visual, and preservation controls. The textual controls are the texts paired with the images, which are already provided by the two datasets, while the visual controls are code sequences of cropped regions, e.g. regions that represent logos or texture of clothes. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
173,
|
| 710 |
+
602,
|
| 711 |
+
825,
|
| 712 |
+
659
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "In Figure 3, we synthesize images conditioned on combinations of the three types of control signals. The results demonstrate UFC-BERT can unify any number of multi-modal controls to synthesize high-quality images. Further, UFC-BERT supports one or multiple visual controls for more flexible synthesis, as shown in Figure 4 where we generate images given $2 { \\sim } 3$ visual controls. We observe that UFC-BERT can reasonably fuse multiple visual elements and produce a harmonious image. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
664,
|
| 722 |
+
825,
|
| 723 |
+
734
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 7
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "4.3 Quantitative Comparison to Existing Methods for Text-to-Image Synthesis ",
|
| 730 |
+
"text_level": 1,
|
| 731 |
+
"bbox": [
|
| 732 |
+
174,
|
| 733 |
+
751,
|
| 734 |
+
730,
|
| 735 |
+
766
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 7
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "In this section, we investigate how our UFC-BERT quantitatively compares to existing models. Considering most existing methods only utilize one control signal, we select the most common and challenging task text-to-image synthesis to compare the synthesis ability. ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
176,
|
| 744 |
+
776,
|
| 745 |
+
823,
|
| 746 |
+
819
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "First, we compare our UFC-BERT with GAN-based text-to-image models AttnGAN [62], ControlGAN [30], DF-GAN [54], DM-GAN [71] and TediGAN [61] on the Multi-Modal CelebA-HQ dataset. For evalution, we adopt two automatic metrics FID [23] and LPIPS [66]. We report the results on Table 1 and our UFC-BERT achieves the best performance on the two metrics, even outperforming the TediGAN that uses slow and complex instance-level optimization. This demonstrates the two-stage architecture and non-autoregressive generation of UFC-BERT are suitable for text-to-image synthesis. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
824,
|
| 756 |
+
825,
|
| 757 |
+
909
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "image",
|
| 763 |
+
"img_path": "images/1d08458dedaac9faaf6b73ca6ee658a8e85190ea957f3c4271e84dbf31086c91.jpg",
|
| 764 |
+
"image_caption": [],
|
| 765 |
+
"image_footnote": [],
|
| 766 |
+
"bbox": [
|
| 767 |
+
179,
|
| 768 |
+
104,
|
| 769 |
+
820,
|
| 770 |
+
154
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 8
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "This woman has wavy hair and is wearing earrings, and lipstick. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
179,
|
| 779 |
+
160,
|
| 780 |
+
604,
|
| 781 |
+
174
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 8
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "image",
|
| 787 |
+
"img_path": "images/9d2a3197362c142ec2df400999d14750954a6da27378d00895af4eda427a44b5.jpg",
|
| 788 |
+
"image_caption": [
|
| 789 |
+
"Figure 6: The iterative inference process of our PNAG algorithm. The red bounding box means the image has the highest comprehensive score and is selected as the final output result. "
|
| 790 |
+
],
|
| 791 |
+
"image_footnote": [],
|
| 792 |
+
"bbox": [
|
| 793 |
+
178,
|
| 794 |
+
175,
|
| 795 |
+
821,
|
| 796 |
+
243
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 8
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "Besides, we compare our UFC-BERT with the autoregressive two-stage method VQGAN from three aspects: (i) the automatic metrics FID for image quality, as well as LPIPS, PSNR [59] and SSIM [59] for the similarity between the generated image and the ground truth; (ii) the Relevance and Fidelity metrics are evaluated through a user study, where the users are asked to judge which model’s output is more relevant to the textual descriptions, and more photorealistic; (iii) the synthesis speed of the two approaches. Note that the autoregressive inference implementation of VQGAN has been optimized by caching the preceding computation as in Transformer-XL [8], and UFCBERT and VQGAN have the same parameter number (307M) for fair com",
|
| 803 |
+
"bbox": [
|
| 804 |
+
174,
|
| 805 |
+
333,
|
| 806 |
+
421,
|
| 807 |
+
623
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 8
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "image",
|
| 813 |
+
"img_path": "images/39a4b0e8cd6b09b597ea30d66c7ff01259cf6892713f421054bd3094d3fec779.jpg",
|
| 814 |
+
"image_caption": [
|
| 815 |
+
"Figure 5: Typical examples of UFC-BERT and VQGAN for text-to-image synthesis, including a counterfactual case. "
|
| 816 |
+
],
|
| 817 |
+
"image_footnote": [],
|
| 818 |
+
"bbox": [
|
| 819 |
+
436,
|
| 820 |
+
335,
|
| 821 |
+
816,
|
| 822 |
+
571
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 8
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "parison. For the user study, the two models receive the same textual signals, and each generates 50 images. We collect the pairwise comparison results from five volunteers. ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
173,
|
| 831 |
+
625,
|
| 832 |
+
821,
|
| 833 |
+
651
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 8
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "As shown in Table 2, our UFC-BERT achieves better performance for almost all criteria with about $1 1 \\times$ speedup. This suggests our non-autoregressive UFC-BERT with progressive NAR generation algorithm can synthesize high-fidelity images relevant to textual descriptions. As for the FID metric, UFC-BERT outperforms VQGAN on M2C-Fashion, but has worse performance on Multi-Modal CelebA-HQ, it may be due to the fact that the autoregressive VQGAN can more easily memorize the pattern of a small dataset (only 30,000 facial images). In Figure 5, we further show typical generated examples to intuitively display the difference between the two approaches, including a case of counterfactual generation. We find that UFC-BERT can synthesize high-quality images, even for the counterfactual case. ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
659,
|
| 843 |
+
825,
|
| 844 |
+
784
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 8
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "4.4 The Effectiveness of Our Progressive NAR Generation Algorithm ",
|
| 851 |
+
"text_level": 1,
|
| 852 |
+
"bbox": [
|
| 853 |
+
176,
|
| 854 |
+
811,
|
| 855 |
+
666,
|
| 856 |
+
827
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 8
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "In this section, we first visualize in Figure 6 the iterative process of our PNAG inference method based on the relevance and fidelity estimators. The images with red bounding boxes are the final outputs that match the textual control signals. We can find that the fidelity and relevance of the images increase after a few iterations, verifying our PNAG algorithm can guide the inference process towards a better direction and synthesize more realistic images that match the control signals. ",
|
| 863 |
+
"bbox": [
|
| 864 |
+
174,
|
| 865 |
+
842,
|
| 866 |
+
825,
|
| 867 |
+
911
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 8
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "table",
|
| 873 |
+
"img_path": "images/4372df104d5e90ebfc4928059da8b15658f94dc3665d27bc68df7a5c2a608218.jpg",
|
| 874 |
+
"table_caption": [
|
| 875 |
+
"Table 3: Ablation studies of our PNAG inference algorithm. PNAG(w/o. REF) and PNAG(w/o. FDL) set $B$ to the default value 5. MNAG is the original Mask-Predict algorithm [16]. "
|
| 876 |
+
],
|
| 877 |
+
"table_footnote": [],
|
| 878 |
+
"table_body": "<table><tr><td>Dataset</td><td>Metrics</td><td>MNAG [16]</td><td>PNAG(w/o.REF)</td><td>PNAG(w/o.FDL)</td><td>PNAG(B=1)</td><td>PNAG(B=5)</td><td>PNAG(B=10)</td></tr><tr><td rowspan=\"2\">M2C-Fashion</td><td>FID↓</td><td>14.77</td><td>12.17</td><td>13.14</td><td>12.72</td><td>11.53</td><td>11.14</td></tr><tr><td>LPIPS↓</td><td>0.488</td><td>0.477</td><td>0.469</td><td>0.479</td><td>0.461</td><td>0.456</td></tr><tr><td rowspan=\"2\">Multi-Modal CelebA-HQ</td><td>FID↓</td><td>72.04</td><td>68.90</td><td>70.32</td><td>69.49</td><td>66.72</td><td>65.30</td></tr><tr><td>LPIPS↓</td><td>0.514</td><td>0.469</td><td>0.463</td><td>0.475</td><td>0.448</td><td>0.445</td></tr></table>",
|
| 879 |
+
"bbox": [
|
| 880 |
+
173,
|
| 881 |
+
132,
|
| 882 |
+
823,
|
| 883 |
+
210
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 9
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "We then conduct ablation studies of PNAG. As shown in Table 3, we develop three ablated inference methods PNAG(w/o. REF), PNAG(w/o. FDL) and MNAG, where PNAG(w/o. REF) and PNAG(w/o. FDL) discard the relevance estimator and the fidelity estimator, respectively, and MNAG is the original Mask-Predict method [16] without any estimator. The results demonstrate that the two estimators effectively utilize the discriminative capability of UFC-BERT and do help improve the synthesis quality. Additionally, we vary the crucial hyper-parameter of PNAG $B$ (i.e. the parallel decoding number during inference) from 1 to 10, and the results in Table 3 show that a larger $B$ is beneficial to the synthesis quality. ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
173,
|
| 892 |
+
236,
|
| 893 |
+
825,
|
| 894 |
+
348
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 9
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "5 Conclusions ",
|
| 901 |
+
"text_level": 1,
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
368,
|
| 905 |
+
307,
|
| 906 |
+
386
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 9
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "We proposed UFC-BERT to unify any number of multi-modal controls in a universal form for conditional image synthesis. We utilized non-autoregressive generation to improve inference speed, enhance holistic consistency, and support preservation controls. Further, we designed a progressive generation algorithm based on relevance and fidelity estimators to ensure relevance and fidelity. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
400,
|
| 916 |
+
825,
|
| 917 |
+
457
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 9
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "References ",
|
| 924 |
+
"text_level": 1,
|
| 925 |
+
"bbox": [
|
| 926 |
+
174,
|
| 927 |
+
484,
|
| 928 |
+
266,
|
| 929 |
+
501
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 9
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "[1] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018. \n[2] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. \n[3] Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In International Conference on Machine Learning, pages 1691–1703. PMLR, 2020. \n[4] Qifeng Chen and Vladlen Koltun. Photographic image synthesis with cascaded refinement networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 1511–1520, 2017. \n[5] Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. Uniter: Learning universal image-text representations. 2019. \n[6] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. \n[7] Jaemin Cho, Jiasen Lu, Dustin Schwenk, Hannaneh Hajishirzi, and Aniruddha Kembhavi. X-lxmert: Paint, caption and answer questions with multi-modal transformers. arXiv preprint arXiv:2009.11278, 2020. \n[8] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. \n[9] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the Conference on The North American Chapter of the Association for Computational Linguistics, 2019. \n[10] Hao Dong, Simiao Yu, Chao Wu, and Yike Guo. Semantic image synthesis via adversarial learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 5706–5714, 2017. \n[11] Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. Unified language model pre-training for natural language understanding and generation. arXiv preprint arXiv:1905.03197, 2019. \n[12] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. \n[13] Patrick Esser, Robin Rombach, and Björn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021. \n[14] Junlong Gao, Xi Meng, Shiqi Wang, Xia Li, Shanshe Wang, Siwei Ma, and Wen Gao. Masked nonautoregressive image captioning. arXiv preprint arXiv:1906.00717, 2019. \n[15] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2414–2423, 2016. \n[16] Marjan Ghazvininejad, Omer Levy, Yinhan Liu, and Luke Zettlemoyer. Mask-predict: Parallel decoding of conditional masked language models. arXiv preprint arXiv:1904.09324, 2019. \n[17] Arnab Ghosh, Richard Zhang, Puneet K Dokania, Oliver Wang, Alexei A Efros, Philip HS Torr, and Eli Shechtman. Interactive sketch & fill: Multiclass sketch-to-image translation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1171–1180, 2019. \n[18] Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. arXiv preprint arXiv:1406.2661, 2014. \n[19] Jiatao Gu, James Bradbury, Caiming Xiong, Victor OK Li, and Richard Socher. Non-autoregressive neural machine translation. arXiv preprint arXiv:1711.02281, 2017. \n[20] Junliang Guo, Xu Tan, Di He, Tao Qin, Linli Xu, and Tie-Yan Liu. Non-autoregressive neural machine translation with enhanced decoder input. In Proceedings of the American Association for Artificial Intelligence, volume 33, pages 3723–3730, 2019. \n[21] Junliang Guo, Zhirui Zhang, Linli Xu, Hao-Ran Wei, Boxing Chen, and Enhong Chen. Incorporating bert into parallel sequence decoding with adapters. In Advances in Neural Information Processing Systems, 2020. \n[22] Longteng Guo, Jing Liu, Xinxin Zhu, Xingjian He, Jie Jiang, and Hanqing Lu. Non-autoregressive image captioning with counterfactuals-critical multi-agent learning. arXiv preprint arXiv:2005.04690, 2020. \n[23] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Günter Klambauer, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a nash equilibrium. 2017. \n[24] Zhicheng Huang, Zhaoyang Zeng, Bei Liu, Dongmei Fu, and Jianlong Fu. Pixel-bert: Aligning image pixels with text by deep multi-modal transformers. arXiv preprint arXiv:2004.00849, 2020. \n[25] Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Let there be color! joint end-to-end learning of global and local image priors for automatic image colorization with simultaneous classification. ACM Transactions on Graphics (ToG), 35(4):1–11, 2016. \n[26] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1125–1134, 2017. \n[27] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and superresolution. In Proceedings of the European Conference on Computer Vision, pages 694–711. Springer, 2016. \n[28] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017. \n[29] Jason Lee, Elman Mansimov, and Kyunghyun Cho. Deterministic non-autoregressive neural sequence modeling by iterative refinement. arXiv preprint arXiv:1802.06901, 2018. \n[30] Bowen Li, Xiaojuan Qi, Thomas Lukasiewicz, and Philip HS Torr. Controllable text-to-image generation. arXiv preprint arXiv:1909.07083, 2019. \n[31] Bowen Li, Xiaojuan Qi, Thomas Lukasiewicz, and Philip HS Torr. Manigan: Text-guided image manipulation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7880–7889, 2020. \n[32] Gen Li, Nan Duan, Yuejian Fang, Ming Gong, and Daxin Jiang. Unicoder-vl: A universal encoder for vision and language by cross-modal pre-training. In Proceedings of the American Association for Artificial Intelligence, volume 34, pages 11336–11344, 2020. \n[33] Yi Liao, Xin Jiang, and Qun Liu. Probabilistically masked language model capable of autoregressive generation in arbitrary word order. arXiv preprint arXiv:2004.11579, 2020. \n[34] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In Proceedings of the European Conference on Computer Vision, pages 740–755. Springer, 2014. \n[35] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. arXiv preprint arXiv:1908.02265, 2019. \n[36] Jiasen Lu, Vedanuj Goswami, Marcus Rohrbach, Devi Parikh, and Stefan Lee. 12-in-1: Multi-task vision and language representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10437–10446, 2020. \n[37] Liqian Ma, Xu Jia, Qianru Sun, Bernt Schiele, Tinne Tuytelaars, and Luc Van Gool. Pose guided person image generation. arXiv preprint arXiv:1705.09368, 2017. \n[38] Elman Mansimov, Alex Wang, Sean Welleck, and Kyunghyun Cho. A generalized framework of sequence generation with application to undirected sequence models. arXiv preprint arXiv:1905.12790, 2019. \n[40] Seonghyeon Nam, Yunji Kim, and Seon Joo Kim. Text-adaptive generative adversarial networks: manipulating images with natural language. arXiv preprint arXiv:1810.11919, 2018. \n[41] Aaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray Kavukcuoglu. Conditional image generation with pixelcnn decoders. arXiv preprint arXiv:1606.05328, 2016. \n[42] Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. arXiv preprint arXiv:1711.00937, 2017. \n[43] Di Qi, Lin Su, Jia Song, Edward Cui, Taroon Bharti, and Arun Sacheti. Imagebert: Cross-modal pre-training with large-scale weak-supervised image-text data. arXiv preprint arXiv:2001.07966, 2020. \n[44] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018. \n[45] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. \n[46] Wasifur Rahman, Md Kamrul Hasan, Amir Zadeh, Louis-Philippe Morency, and Mohammed Ehsan Hoque. M-bert: Injecting multimodal information in the bert structure. arXiv preprint arXiv:1908.05787, 2019. \n[47] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021. \n[48] Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. arXiv preprint arXiv:1906.00446, 2019. \n[49] Yi Ren, Chenxu Hu, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu. Fastspeech 2: Fast and high-quality end-to-end text to speech. arXiv preprint arXiv:2006.04558, 2020. \n[50] Yi Ren, Yangjun Ruan, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu. Fastspeech: Fast, robust and controllable text to speech. arXiv preprint arXiv:1905.09263, 2019. \n[51] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015. \n[52] Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. Vl-bert: Pre-training of generic visual-linguistic representations. arXiv preprint arXiv:1908.08530, 2019. \n[53] Hao Tan and Mohit Bansal. Lxmert: Learning cross-modality encoder representations from transformers. arXiv preprint arXiv:1908.07490, 2019. \n[54] Ming Tao, Hao Tang, Songsong Wu, Nicu Sebe, Xiao-Yuan Jing, Fei Wu, and Bingkun Bao. Df-gan: Deep fusion generative adversarial networks for text-to-image synthesis. arXiv preprint arXiv:2008.05865, 2020. \n[55] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pages 5998–6008, 2017. \n[56] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011. \n[57] Alex Wang and Kyunghyun Cho. Bert has a mouth, and it must speak: Bert as a markov random field language model. arXiv preprint arXiv:1902.04094, 2019. \n[58] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Highresolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8798–8807, 2018. \n[59] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004. \n[60] Weihao Xia, Yujiu Yang, and Jing-Hao Xue. Cali-sketch: Stroke calibration and completion for high-quality face image generation from poorly-drawn sketches. arXiv preprint arXiv:1911.00426, 2019. \n[61] Weihao Xia, Yujiu Yang, Jing-Hao Xue, and Baoyuan Wu. Tedigan: Text-guided diverse image generation and manipulation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2021. \n[62] Tao Xu, Pengchuan Zhang, Qiuyuan Huang, Han Zhang, Zhe Gan, Xiaolei Huang, and Xiaodong He. Attngan: Fine-grained text to image generation with attentional generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1316–1324, 2018. \n[63] Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Free-form image inpainting with gated convolution. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4471–4480, 2019. \n[64] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 5907–5915, 2017. \n[65] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan $^ { + + }$ : Realistic image synthesis with stacked generative adversarial networks. IEEE transactions on pattern analysis and machine intelligence, 41(8):1947–1962, 2018. \n[66] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586–595, 2018. \n[67] Shengyu Zhang, Tan Jiang, Tan Wang, Kun Kuang, Zhou Zhao, Jianke Zhu, Jin Yu, Hongxia Yang, and Fei Wu. Devlbert: Learning deconfounded visio-linguistic representations. In Proceedings of the 28th ACM International Conference on Multimedia, pages 4373–4382, 2020. \n[68] Shengyu Zhang, Ziqi Tan, Zhou Zhao, Jin Yu, Kun Kuang, Tan Jiang, Jingren Zhou, Hongxia Yang, and Fei Wu. Comprehensive information integration modeling framework for video titling. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 2744–2754, 2020. \n[69] Zijian Zhang, Zhou Zhao, Zhu Zhang, Baoxing Huai, and Jing Yuan. Text-guided image inpainting. In Proceedings of the ACM International Conference on Multimedia, pages 4079–4087, 2020. \n[70] Luowei Zhou, Hamid Palangi, Lei Zhang, Houdong Hu, Jason Corso, and Jianfeng Gao. Unified visionlanguage pre-training for image captioning and vqa. In Proceedings of the American Association for Artificial Intelligence, volume 34, pages 13041–13049, 2020. \n[71] Minfeng Zhu, Pingbo Pan, Wei Chen, and Yi Yang. Dm-gan: Dynamic memory generative adversarial networks for text-to-image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5802–5810, 2019. \n[72] Peihao Zhu, Rameen Abdal, Yipeng Qin, and Peter Wonka. Sean: Image synthesis with semantic region-adaptive normalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5104–5113, 2020. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
178,
|
| 938 |
+
512,
|
| 939 |
+
826,
|
| 940 |
+
911
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 9
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "",
|
| 947 |
+
"bbox": [
|
| 948 |
+
171,
|
| 949 |
+
94,
|
| 950 |
+
828,
|
| 951 |
+
912
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 10
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "",
|
| 958 |
+
"bbox": [
|
| 959 |
+
171,
|
| 960 |
+
114,
|
| 961 |
+
828,
|
| 962 |
+
911
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 11
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "",
|
| 969 |
+
"bbox": [
|
| 970 |
+
171,
|
| 971 |
+
90,
|
| 972 |
+
828,
|
| 973 |
+
367
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 12
|
| 976 |
+
}
|
| 977 |
+
]
|
parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/iEEAPq3TUEZ/iEEAPq3TUEZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1eIiCNYwS/r1eIiCNYwS.md
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TRANSFORMER-XH: MULTI-EVIDENCE REASONING WITH EXTRA HOP ATTENTION
|
| 2 |
+
|
| 3 |
+
Chen Zhao∗
|
| 4 |
+
University of Maryland, College Park
|
| 5 |
+
chenz@cs.umd.edu
|
| 6 |
+
|
| 7 |
+
Chenyan Xiong, Corby Rosset, Xia Song, Paul Bennett, and Saurabh Tiwary
|
| 8 |
+
|
| 9 |
+
Microsoft AI & Research cxiong, corosset, xiaso, pauben, satiwary $@$ microsoft.com
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Transformers have achieved new heights modeling natural language as a sequence of text tokens. However, in many real world scenarios, textual data inherently exhibits structures beyond a linear sequence such as trees and graphs; many tasks require reasoning with evidence scattered across multiple pieces of texts. This paper presents Transformer-XH, which uses eXtra Hop attention to enable intrinsic modeling of structured texts in a fully data-driven way. Its new attention mechanism naturally “hops” across the connected text sequences in addition to attending over tokens within each sequence. Thus, Transformer-XH better conducts joint multi-evidence reasoning by propagating information between documents and constructing global contextualized representations. On multi-hop question answering, Transformer-XH leads to a simpler multi-hop QA system which outperforms previous state-of-the-art on the HotpotQA FullWiki setting. On FEVER fact verification, applying Transformer-XH provides state-of-the-art accuracy and excels on claims whose verification requires multiple evidence.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Transformers effectively model natural language in sequential form (Vaswani et al., 2017; Dai et al., 2019; Devlin et al., 2019; Yang et al., 2019). Nevertheless, in many NLP tasks, text does not simply appear as a linear sequence of tokens but rather carries meaningful structure in the form of paragraphs, headings, and hyperlinks. These structures can be represented abstractly as trees or graphs with nodes and edges; and the tasks can be performed as joint reasoning on these more general structures as input. Multi-hop question answering (Yang et al., 2018) is one such task in which structure plays an important role, since the evidence required to formulate the answer is scattered across multiple documents, requiring systems to jointly reason across links between them.
|
| 18 |
+
|
| 19 |
+
Recent approaches leverage pre-trained Transformers (e.g., BERT) for multi-hop question answering (QA) by converting the structural reasoning task into sub-tasks that model flat sequences. For example, Min et al. (2019b) decompose a multi-hop question into a series of single-hop questions; Ding et al. (2019) conduct several steps of single-hop reading comprehension to simulate the multihop reasoning. The hope is that additional processing to fuse the outputs of the sub-models can recover all the necessary information from the original structure. While pre-trained Transformer language models have shown improvements on multi-hop QA, manipulating the inherent structure of the problem to fit the rigid requirements of out-of-the-box models can introduce problematic assumptions or information loss.
|
| 20 |
+
|
| 21 |
+
This paper presents Transformer-XH (meaning eXtra Hop), which upgrades Transformers with the ability to natively represent structured texts. Transformer-XH introduces extra hop attention in its layers that connects different text pieces following their inherent structure while also maintaining the powerful pre-trained Transformer abilities over each textual piece individually. Our extra hop attention enables 1) a more global representation of the evidence contributed by each piece of text as it relates to the other evidence, and 2) a more natural way to jointly reason over an evidence graph by propagating information along edges necessary to complete the task at hand.
|
| 22 |
+
|
| 23 |
+
We apply Transformer-XH to two multi-evidence reasoning tasks: Hotpot QA, the multi-hop question answering task (Yang et al., 2018), and FEVER, the fact verification benchmark whose claims often require multiple pieces of evidence to support (Thorne et al., 2018). Rather than decomposing the task into a series of sub-tasks to fit the constraints of pre-trained Transformers, TransformerXH is a solution that fits the problem as it naturally occurs. It is a single model that represents and combines evidence from multiple documents to conduct the reasoning process. On HotpotQA’s FullWiki setting, which requires strong multi-hop reasoning capability (Min et al., 2019b; Jiang & Bansal, 2019), Transformer-XH outperforms CogQA (Ding et al., 2019), the previous start-of-theart, by 12 points on answer F1. On FEVER 1.0 shared task, Transformer-XH outperforms GEAR, the Graph Neural Network based approach significantly. On both applications, Transformer-XH beats the contemporary BERT based pipeline SR-MRS (Nie et al., 2019), by 2-3 points.
|
| 24 |
+
|
| 25 |
+
The results follow from our simple yet effective design, with one unified model operating over the inherent structure of the task, rather than melding the outputs from disparate sub-tasks adapted to the sequential constraints of pre-trained Transformers. Our ablation studies demonstrate TransformerXH’s efficacy on questions that are known to require multi-hop reasoning (Min et al., 2019b) and on verifying multi-evidence claims (Liu et al., 2019b). Our analyses confirm that the source of Transformer-XH’s effectiveness success is due to the eXtra Hop attention’s ability to fuse and propagate information across multiple documents.1
|
| 26 |
+
|
| 27 |
+
# 2 MODEL
|
| 28 |
+
|
| 29 |
+
This section first discusses preliminaries on sequential Transformers, then we show how we incorporate eXtra hop attention to create Transformer-XH.
|
| 30 |
+
|
| 31 |
+
# 2.1 PRELIMINARIES
|
| 32 |
+
|
| 33 |
+
Transformers represent a sequence of input text tokens $X = \{ x _ { 1 } , . . . , x _ { i } , . . . , x _ { n } \}$ as contextualized distributed representations $H = \{ h _ { 1 } , . . . , h _ { i } , . . . , h _ { n } \}$ (Vaswani et al., 2017). This process involves multiple stacked self-attention layers that converts the input $X$ into $\{ H ^ { 0 } , H ^ { 1 } , . . . , \dot { H } ^ { l } , . . . H ^ { L } \}$ , starting from $H ^ { 0 }$ , the embeddings, to the final layer of depth $L$ .
|
| 34 |
+
|
| 35 |
+
The key idea of Transformer is its attention mechanism, which calculates the $l$ -th layer output $H ^ { l }$ using the input $H ^ { l - 1 }$ from the previous layer:
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\begin{array} { c } { { H ^ { l } = \mathrm { s o f t m a x } ( \frac { \boldsymbol { Q } \cdot \boldsymbol { K } ^ { T } } { \sqrt { d _ { k } } } ) \cdot \boldsymbol { V } ^ { T } , } } \\ { { Q ^ { T } ; \boldsymbol { K } ^ { T } ; \boldsymbol { V } ^ { T } = W ^ { q } \cdot H ^ { l - 1 } ; W ^ { k } \cdot H ^ { l - 1 } ; W ^ { v } \cdot H ^ { l - 1 } . } } \end{array}
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
It includes three projections on the input $H ^ { l - 1 }$ : Query (Q), Key (K), and Value (V).
|
| 42 |
+
|
| 43 |
+
Specifically, the slices of token $h _ { i } ^ { l }$ in Eqn.(2) is:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
h _ { i } ^ { l } = \sum _ { j } \mathrm { s o f t m a x } _ { j } ( \frac { q _ { i } ^ { T } \cdot k _ { j } } { \sqrt { d _ { k } } } ) \cdot v _ { j } ,
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
which first calculates its attention to all other tokens $j$ in the sequence and then combines the token values $v _ { j }$ into a new representation $h _ { i } ^ { l }$ , using the normalized attention weights. Multiple attentions can be used in one Transformer layer and concatenated as multi-head attention (Vaswani et al., 2017). The architecture is stacked to form rather deep networks, which leads to significant success of large pre-trained Transformer models (Devlin et al., 2019; Liu et al., 2019a).
|
| 50 |
+
|
| 51 |
+
A challenge of Transformer is that its attention is calculated over all token pairs (Eqn. 3), which is hard to scale to long text sequences. Transformer-XL (eXtra Long) addresses this challenge by breaking down longer texts, e.g., a multi-paragraph document, into a sequence of text segments: $\{ X _ { 1 } , . . . , \bar { X } _ { \tau } , . . . , X _ { \zeta } \}$ , and propagates the information between adjacent text segments using the following attention:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\tilde { H } _ { \tau } ^ { l - 1 } = [ \mathrm { F r e e z e } ( H _ { \tau - 1 } ^ { l - 1 } ) \circ H _ { \tau } ^ { l - 1 } ] .
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
(a) Hop attention on the path
|
| 59 |
+
(b) Transformer-XH in Multi-hop QA
|
| 60 |
+
Figure 1: The eXtra Hop attention in Transformer-XH (a) and its application to multi-hop QA (b).
|
| 61 |
+
|
| 62 |
+
It concatenates (◦) the representation of the previous segment $H _ { \tau - 1 } ^ { l - 1 }$ to the current segment as segment level recurrences. The new representation $\tilde { H } _ { \tau } ^ { l - 1 }$ includes the information from previous segment and is integrated in the new attention mechanism:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\tilde { Q } ^ { T } ; \tilde { K } ^ { T } ; \tilde { V } ^ { T } = W ^ { q } \cdot H _ { \tau } ^ { l - 1 } ; W ^ { k } \cdot \tilde { H } _ { \tau } ^ { l - 1 } ; W ^ { v } \cdot \tilde { H } _ { \tau } ^ { l - 1 } .
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
The attention over the previous segment allows Transformer-XL to effectively model long form text data recurrently as a sequence of text chunks (Dai et al., 2019).
|
| 69 |
+
|
| 70 |
+
Nevertheless, in many scenarios, the text segments are organized in nontrivial structures beyond a linear sequence. For example, documents are connected by hyperlinks in a graphical structure that does not readily simplify to form a linear sequence, prohibiting Transformer-XL’s recurrent approach.
|
| 71 |
+
|
| 72 |
+
# 2.2 TRANSFORMER-XH WITH EXTRA HOP ATTENTION
|
| 73 |
+
|
| 74 |
+
Transformer-XH models structured text sequence by linking them with eXtra Hop attention following their original structure. As illustrated in Figure 1a, to model three connected documents $d _ { 2 } d _ { 1 } d _ { 3 }$ , Transformer-XH uses eXtra Hop attention to propagate information along the graph edges, enabling information sharing between connected text sequence.
|
| 75 |
+
|
| 76 |
+
Formally, the structured text data includes a set of nodes, $\mathcal { X } = \{ X _ { 1 } , . . . , X _ { \tau } , . . . X _ { \zeta } \}$ , each corresponding to a text sequence, and an edge matrix $E$ , which includes the connections (e.g., links) between them. The goal is to learn representations $\mathcal { H } = \{ \tilde { H } _ { 1 } , . . . , \tilde { H } _ { \tau } , . . . \tilde { H } _ { \zeta } \}$ , that incorporate not only the local information in each sequence $X$ , but also the global contexts on the entire structured text $\{ \mathcal { X } , E \}$ .
|
| 77 |
+
|
| 78 |
+
Transformer-XH achieves this by two attention mechanisms: in-sequence attention and eXtra Hop attention. The in-sequence attention is the same as vanilla Transformer: in layer $l$ , token $i$ gathers information from other tokens inside the same text piece $\tau$ :
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
h _ { \tau , i } ^ { l } = \sum _ { j } \mathrm { s o f t m a x } _ { j } ( \frac { q _ { \tau , i } ^ { T } \cdot k _ { \tau , j } } { \sqrt { d _ { k } } } ) \cdot v _ { \tau , j } .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
The eXtra Hop attention uses the first token in each sequence – the added special token “[CLS]” – as an “attention hub”, which attends on all other connected nodes’ hub token. In layer $l$ , the $\tau$ -th text sequence attends over another text sequence $\eta$ if there is an edge between them $e _ { \tau \eta } = 1$ ):
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\hat { h } _ { \tau , 0 } ^ { l } = \sum _ { \eta ; e _ { \tau \eta } = 1 } \mathrm { s o f t m a x } _ { \eta } ( \frac { \hat { q } _ { \tau , 0 } ^ { T } \cdot \hat { k } _ { \eta , 0 } } { \sqrt { d _ { k } } } ) \cdot \hat { v } _ { \eta , 0 } .
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
Node $\tau$ calculates the attention weight on its neighbor $\eta$ using hop query $\hat { q } _ { \tau , 0 }$ and key $\hat { k } _ { \eta , 0 }$ . Then it uses the weights to combine its neighbors’ value $\hat { v } _ { \eta , 0 }$ and forms a globalized representation $\hat { h } _ { \tau , 0 } ^ { l }$ .
|
| 91 |
+
|
| 92 |
+
The two attention mechanism are combined to form the new representation of layer $l$
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r l } & { \tilde { h } _ { \tau , 0 } ^ { l } = \mathrm { L i n e a r } ( [ h _ { \tau , 0 } ^ { l } \circ \hat { h } _ { \tau , 0 } ^ { l } ] ) , } \\ & { \tilde { h } _ { \tau , i } ^ { l } = h _ { \tau , i } ^ { l } ; \forall i \neq 0 . } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
Note that the non-hub tokens $( i \neq 0 )$ ) still have access to the hop attention in the previous layer through Eqn. (6).
|
| 99 |
+
|
| 100 |
+
One layer of eXtra Hop attention can be viewed as single-step of information propagation along edges $E$ . For example, in Figure 1a, the document node $d _ { 3 }$ updates its representation by gathering information from its neighbor $d _ { 1 }$ using the hop attention $d _ { 1 } d _ { 3 }$ . When multiple TransformerXH layers are stacked, this information in $d _ { 1 }$ includes both $d _ { 1 }$ ’s local contexts from its in-sequence attention, and cross-sequence information from the hop attention $d _ { 2 } \to d _ { 1 }$ of the $l - 1$ layer. Hence, an L-layer Transformer-XH can attend over information from up to $\mathrm { L }$ hops away.
|
| 101 |
+
|
| 102 |
+
Together, three main properties equip Transformer-XH to effectively model raw structured text data: the propagation of information (values) along edges, the importance of that information (hop attention weights), and the balance of in-sequence and cross-sequence information (attention combination). The representations learned in $\mathcal { H }$ can innately express nuances in structured text that are required for complex reasoning tasks such as multi-hop QA and natural language inference.
|
| 103 |
+
|
| 104 |
+
# 3 APPLICATION TO MULTI-HOP QUESTION ANSWERING
|
| 105 |
+
|
| 106 |
+
This section describes how Transformer-XH applies to multi-hop QA. Given a question $q$ , the task is to find an answer span $a$ in a large open-domain document corpus, e.g. the first paragraph of all Wikipedia pages. By design, the questions are complex and often require information from multiple documents to answer. For example, in the case shown in Figure 1b, the correct answer “Cambridge” requires combining the information from both the Wikipedia pages “Facebook” and “Harvard University”. To apply Transformer-XH in the open domain multi-hop QA task, we first construct an evidence graph and then apply Transformer-XH on the graph to find the answer.
|
| 107 |
+
|
| 108 |
+
Evidence Graph Construction. The first step is to find the relevant candidate documents $D$ for the question $q$ and connect them with edges $E$ to form the graph $G$ . Our set $D$ consists of three sources. The first two sources are from canonical information retrieval and entity linking techniques:
|
| 109 |
+
|
| 110 |
+
$D _ { i r }$ : the top 100 documents retrieved by DrQA’s TF-IDF on the question (Chen et al., 2017).
|
| 111 |
+
|
| 112 |
+
$D _ { e l }$ : the Wikipedia documents associated with the entities that appear in the question, annotated by entity linking systems: TagMe (Ferragina & Scaiella, 2010) and CMNS (Hasibi et al., 2017).
|
| 113 |
+
|
| 114 |
+
For better retrieval quality, we use a BERT ranker (Nogueira & Cho, 2019) on the set $D _ { i r } \cup D _ { e l }$ and keep the top two ranked ones in $D _ { i r }$ and top one per question entity in $D _ { e l }$ . Then the third source $D _ { e x p }$ includes all documents connected to or from any top ranked documents via Wikipedia hyperlinks (e.g., “Facebook” “Harvard University”).
|
| 115 |
+
|
| 116 |
+
The final graph comprises all documents from the three sources as nodes $\mathcal { X }$ . The edge matrix $E$ is flexible. We experiment with various edge matrix settings, including directed edges along Wikipedia links, i.e. $e _ { i j } = 1$ if there is a hyperlink from document $i$ to $j$ , bidirectional edges along Wiki links, and fully-connected graphs, which rely on Transformer-XH to learns the edge importance.
|
| 117 |
+
|
| 118 |
+
Similar to previous work (Ding et al., 2019), the textual representation for each node in the graph is the [SEP]-delimited concatenation of the question, anchor text (the text in the hyperlink in parent nodes pointing to the child node), and the paragraph itself. More details on the evidence graph construction are in Appendix A.1.
|
| 119 |
+
|
| 120 |
+
Transformer-XH on Evidence Graph. Transformer-XH takes the input nodes $\mathcal { X }$ and edges $E$ , and produces the global representation of all text sequences:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\mathcal { H } ^ { L } = \mathrm { T r a n s f o r m e r - X H } ( \mathcal { X } , E ) .
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Then we add two task-specific layers upon the last layer’s representation $\mathcal { H } ^ { L }$ : one auxiliary layer to predict the relevance score of the evidence node, and one layer to extract the answer span within it:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\begin{array} { r l } & { p ( \mathrm { r e l e v a n c e } | \tau ) = \mathrm { s o f t m a x } ( \mathrm { L i n e a r } ( \tilde { h } _ { \tau , 0 } ^ { L } ) ) ; } \\ & { p ( \mathrm { s t a r t } | \tau , i ) , p ( \mathrm { e n d } | \tau , j ) = \mathrm { s o f t m a x } ( \mathrm { L i n e a r } ( \tilde { h } _ { \tau , i } ^ { L } ) ) , \mathrm { s o f t m a x } ( \mathrm { L i n e a r } ( \tilde { h } _ { \tau , j } ^ { L } ) ) . } \end{array}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
The final model is trained end-to-end with cross-entropy loss for both tasks in a multi-task setting. During inference, we first select the document with the highest relevance score, and then the start and end positions of the answer within that document.
|
| 133 |
+
|
| 134 |
+
# 4 APPLICATION TO FACT VERIFICATION
|
| 135 |
+
|
| 136 |
+
This section describes how Transformer-XH applies to the fact verification task in FEVER Thorne et al. (2018). Given a claim and a trustworthy background corpus, i.e. Wikipedia, the task is to verify whether the evidence in the corpus SUPPORTS, REFUTES, or there is NOT ENOUGH INFO to verify the claim. Similar to multi-hop QA, the first step is to construct an evidence graph using the text pieces in the background corpus and then Transformer-XH can be easily applied to conduct reasoning on these evidence pieces.
|
| 137 |
+
|
| 138 |
+
Evidence Graph Construction. Many previous FEVER systems first retrieve the evidence sentences for the claim and then reason verify it (Nie et al., 2019; Zhou et al., 2019). This first step is similar as the retrieval stage in Hotpot QA. And the second step is a multi-evidence reasoning task, where Transformer-XH is applied.
|
| 139 |
+
|
| 140 |
+
We keep the evidence sentence retrieval step consistent with previous methods. The sentence retrieval results of SR-MRS is not yet released at the time of our experiments, thus we instead use the BERT-based retrieval results from another contemporary work (Liu et al., 2019b).
|
| 141 |
+
|
| 142 |
+
We construct the evidence graph using the top five sentences from Liu et al. (2019b) as the nodes $\mathcal { X }$ and fully connected edges $E$ . Following Liu et al. (2019b), the representation of each node is the concatenation of the claim, the Wikipedia title (entity name) of the document that includes the sentence, and the evidence sentence.
|
| 143 |
+
|
| 144 |
+
Transformer-XH on Evidence Graph. Transformer-XH takes the evidence graph $\{ X , E \}$ and learns to verify the claim to three categories: $y \in \{ \mathrm { S U P P O R T }$ , REFUSE, NOT ENOUGH EVIDENCE}. Similar to the application in Hotpot QA, it first produces the global representation of the graph:
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\mathcal { H } ^ { L } = \mathrm { T r a n s f o r m e r - X H } ( \mathcal { X } , E ) .
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
Then two task-specific layers are added upon the last layer. The first layer conducts the fact prediction per node using the “[CLS]” token:
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
p ( y | \tau ) = \mathrm { s o f t m a x } ( \mathrm { L i n e a r } ( \tilde { h } _ { \tau , 0 } ^ { L } ) ) .
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
The second layer learns to measure the importance of each node in the graph:
|
| 157 |
+
|
| 158 |
+
$$
|
| 159 |
+
p ( s | \tau ) = \mathrm { s o f t m a x } ( \mathrm { L i n e a r } ( \tilde { h } _ { \tau , 0 } ^ { L } ) ) ,
|
| 160 |
+
$$
|
| 161 |
+
|
| 162 |
+
The node level predictions and node importance are combined to the final prediction for the claim:
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
p ( y | \mathcal { X } , E ) = \sum _ { \tau } p ( s | \tau ) \cdot p ( y | \tau ) .
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
Similar to the Hotpot QA scenario, we use multi-task learning that combines the node prediction task and the claim verification task. The first task uses the evidence sentence label provided by FEVER and cross-entropy loss on Eqn. 15. The second task uses the final verification label with cross-entropy loss on Eqn. 16.
|
| 169 |
+
|
| 170 |
+
# 5 EXPERIMENTAL METHODOLOGIES
|
| 171 |
+
|
| 172 |
+
Our experiments are conducted on Hotpot QA, the multi-hop question answering benchmark Yang et al. (2018), and FEVER, the fact verfication benchmark Thorne et al. (2018).
|
| 173 |
+
|
| 174 |
+
# 5.1 MULTI-HOP QUESTION ANSWERING ON HOTPOT QA
|
| 175 |
+
|
| 176 |
+
Dataset. HotpotQA includes $1 1 2 \mathrm { k }$ crowd-sourced questions designed to require multiple pieces of textual evidence, which are the first paragraphs of Wikipedia pages. It has two type of questions: bridge question require hopping via an outside entity, and comparison question compare a property of two entities. There are two settings in HotpotQA. The Distractor setting provides golden evidence paragraphs together with TF-IDF retrieved negatives. The FullWiki setting requires systems to retrieve evidence paragraphs from the full set of Wikipedia articles.
|
| 177 |
+
|
| 178 |
+
We focus on FullWiki setting since previous research found that the negative documents in Distractor may be too weak and mitigate the need for multi-hop reasoning (Min et al., 2019b). There are 90k Train, 7k Dev and 7k Test questions. The ground truth answer and supporting evidence sentences in Train and Dev sets are provided. Test labels are hidden; only one submission is allowed to the leaderboard per $3 0 \mathrm { d a y s } ^ { 2 }$ . We evaluate our final model on Test and conduct ablations on Dev.
|
| 179 |
+
|
| 180 |
+
Metrics. We use official evaluation metrics of HotpotQA: exact match (EM) and F1 on answer (Ans), supporting facts (Supp), and the combination (Joint). The supporting facts prediction is an auxiliary task that evaluates model’s ability to find the evidence sentences. Joint EM is the product of the two EM result. Joint F1 first multiplies the precision and recall from Ans and Supp, then combines the Joint precision and recall to F1.
|
| 181 |
+
|
| 182 |
+
Baseline. The main baselines include Cognitive QA (CogQA, Ding et al. (2019)) and Semantic Retrieval MRS (SR-MRS, Nie et al. (2019)). CogQA uses several fine-tuned BERT machine reading comprehension (MRC) models to find hop entities and candidate spans, and then uses a BERT based Graph Convolution Network to rank the candidate spans. SR-MRS is a contemporary work and was the previous leaderboard rank one. It is a BERT based pipeline and uses fine-tuned BERT models to first rank the documents (twice), then to rank sentences to find supporting facts, and finally conducts BERT MRC on the concatenated evidence sentences.
|
| 183 |
+
|
| 184 |
+
We also re-implement $\mathrm { C o g Q A }$ and upgrade its IR with our BERT IR model (BERT on $D _ { i r } \cup D _ { e l }$ , same as Transformer-XH), for fair comparisons. We include other approaches on the FullWiki setting: Official Baseline (Yang et al., 2018), MUPPET (Feldman & El-Yaniv, 2019), QFE (Nishida et al., 2019), and DecompRC (Min et al., 2019a),
|
| 185 |
+
|
| 186 |
+
Implementation Details. The in-sequence attention and other standard Transformer components in Transformer-XH are initialized by the pre-trained BERT base model (Devlin et al., 2019). The extra hop attention parameters are initialized randomly and trained from scratch. The final model uses three hop steps. For bridge questions, we build the evidence graph described in Section 3. And for comparison questions, we build the fully-connected graph on the set $D _ { i r } \cup D _ { e l }$ and train Transformer-XH separately. We leave more implementation details in the Appendix.
|
| 187 |
+
|
| 188 |
+
# 5.2 FACT VERIFICATION ON FEVER
|
| 189 |
+
|
| 190 |
+
Dataset. The FEVER task provides a claim sentence and requires the system to classify it into three categories: SUPPORTS, REFUTES, and NOT ENOUGH INFO, using the Wikipedia corpus as the evidence source. It provides 185,455 claims with manual labels and uses the Wikipedia dump in June 2017 which includes 5.4 million documents.
|
| 191 |
+
|
| 192 |
+
Metrics. There are two official evaluation metrics in FEVER: Label Accuracy (LA), which evaluates the classification accuracy of the verification labels, and FEVER Score, which evaluates both the correctness of the evidence sentences used in verification and the LA. The latter is close to Joint EM in Hotpot QA and is the main metric. We use the official evaluation scripts from FEVER task and we refer to Thorne et al. (2018) for more details of this task.
|
| 193 |
+
|
| 194 |
+
Experimental Setups. We follow the experiment settings used by previous research in FEVER 1.0 shared task, i.e. Nie et al. (2019), Zhou et al. (2019), and Liu et al. (2019b). Similar as Liu et al. (2019b), we also split the data into single and multi evidence categories and evaluate TransformerXH on the two splits.
|
| 195 |
+
|
| 196 |
+
Table 1: Results $( \% )$ on HotpotQA FullWiki Setting. Dev results of previous methods are reported in their papers. Test results are from the leaderboard. Contemporary method is marked by ∗.
|
| 197 |
+
|
| 198 |
+
<table><tr><td rowspan="3"></td><td colspan="5">Dev</td><td colspan="5">Test</td></tr><tr><td colspan="2">Ans</td><td colspan="2">Supp</td><td colspan="2">Joint</td><td>Ans</td><td colspan="2">Supp</td><td colspan="2">Joint</td></tr><tr><td>EMF1</td><td></td><td>EMF1</td><td></td><td>EM F1</td><td>EM</td><td>F1</td><td>EMF1</td><td></td><td>EMF1</td></tr><tr><td>Official Baseline (Yang et al.,2018)</td><td>23.9 32.9</td><td></td><td>5.140.9</td><td></td><td>47.240.8</td><td>24.0 32.9</td><td></td><td>3.9</td><td>37.7</td><td>1.9 16.2</td></tr><tr><td>DecompRC (Min et al.,2019a)</td><td></td><td>43.3</td><td>1</td><td>1</td><td>-</td><td>30.0</td><td>40.7 -</td><td>1</td><td>-</td><td>-</td></tr><tr><td>QFE (Nishida et al., 2019)</td><td></td><td></td><td></td><td>=</td><td></td><td>28.7</td><td>38.1</td><td>14.2 44.4</td><td>8.7</td><td>23.1</td></tr><tr><td>MUPPET(Feldman &El-Yaniv,2019)</td><td>31.1 40.4</td><td></td><td>17.0 47.7</td><td></td><td>11.8 27.6</td><td>30.6 40.3</td><td></td><td>16.7 47.3</td><td></td><td>10.9 27.0</td></tr><tr><td>CogQA (Ding et al., 2019)</td><td>37.6 49.4</td><td></td><td>23.1 58.5</td><td></td><td>12.2 35.3</td><td>37.1</td><td>48.9 22.8</td><td>57.7</td><td></td><td>12.4 34.9</td></tr><tr><td>SR-MRS* (Nie et al., 2019)</td><td>46.5</td><td>58.8</td><td>39.9</td><td>71.5</td><td>26.6 49.2</td><td>45.3 57.3</td><td>38.7</td><td>70.8</td><td>25.1</td><td>47.6</td></tr><tr><td>CogQA(w. BERT IR) [Ours]</td><td>44.8 57.7</td><td></td><td></td><td>29.262.8</td><td>18.543.4</td><td>1</td><td>- -</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Transformer-XH</td><td>54.0 66.2</td><td></td><td></td><td>41.7 72.1</td><td>27.7 52.9</td><td>51.6 64.1</td><td></td><td>40.9 71.4</td><td></td><td>26.1 51.3</td></tr></table>
|
| 199 |
+
|
| 200 |
+
<table><tr><td rowspan="3"></td><td colspan="4">Question Type</td><td colspan="4">Reasoning Type</td></tr><tr><td colspan="2">Comparison (1487)</td><td colspan="2">Bridge (5918)</td><td colspan="2">Single-Hop(3426)</td><td colspan="2">Multi-Hop (3979)</td></tr><tr><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>CogQA</td><td>43.3</td><td>51.1</td><td>36.1</td><td>49.0</td><td>45.1</td><td>61.1</td><td>31.1</td><td>39.4</td></tr><tr><td>SR-MRS*</td><td>62.0</td><td>68.9</td><td>42.4</td><td>56.1</td><td>52.3</td><td>68.4</td><td>41.3</td><td>50.3</td></tr><tr><td>CogQA (w. BERT IR)</td><td>54.1</td><td>60.9</td><td>42.4</td><td>56.9</td><td>52.0</td><td>69.3</td><td>38.6</td><td>47.8</td></tr><tr><td>Transformer-XH(w.BERT IR)</td><td>59.9</td><td>65.8</td><td>52.4</td><td>66.3</td><td>62.2</td><td>78.3</td><td>46.8</td><td>55.7</td></tr><tr><td>Transformer-XH(w. SR-MRS)</td><td>64.3</td><td>70.7</td><td>47.9</td><td>62.3</td><td>58.1</td><td>74.3</td><td>45.3</td><td>55.2</td></tr></table>
|
| 201 |
+
|
| 202 |
+
Table 2: Dev Ans $( \% )$ on different scenarios. Reasoning Types are estimated by Min et al. (2019b) via whether single-hop BERT has non-zero Ans F1. The numbers of questions are shown in brackets.
|
| 203 |
+
|
| 204 |
+
Baselines. The baselines include GEAR (Zhou et al., 2019) and two contemporary work, SRMRS (Nie et al., 2019) and KGAT (Liu et al., 2019b). SR-MRS uses similar adaptations as Transformer-XH from Hotpot QA to FEVER. GEAR is a graph attention network based approach specially designed for fact verification. KGAT further improves GEAR’s GAT by adding the kernel information, and is the previous STOA with BERT base. We also include the BERT Concat baseline Liu et al. (2019b) which concatenates the evidence sentences to a text sequence and applies BERT on it.
|
| 205 |
+
|
| 206 |
+
Implementation Details. We use the retrieval result from Liu et al. (2019b) and connect all sentences as a fully connected graph. We follow similar parameter settings as Hothot QA. We use pre-trained BERT base model to initialize the Transformer components. The extra hop attention parameters are initialized randomly and trained from scratch, and three hop steps are used. We train Transformer-XH for two epochs.
|
| 207 |
+
|
| 208 |
+
# 6 EVALUATION RESULTS
|
| 209 |
+
|
| 210 |
+
This section first presents the evaluation results on HotpotQA and FEVER. Then it conducts ablation studies, analyses, and case studies on HotpotQA to understand the effectiveness of Transformer-XH.
|
| 211 |
+
|
| 212 |
+
# 6.1 OVERALL RESULT
|
| 213 |
+
|
| 214 |
+
HotpotQA FullWiki results are presented in Table 1. Transformer-XH outperforms all previous methods by significant margins. Besides strong results, Transformer-XH’s ability to natively represent structured data leads to much simpler QA system. Previously, in order to utilize pre-trained BERT, Hotpot QA approaches adapted the multi-hop reasoning task to comprise multiple sub-tasks. For example, given the retrieved documents, CogQA (w. BERT IR) first leverages one BERT MRC model to find hop entities and then another BERT MRC to find candidate answer spans. After that, it ranks the candidate spans using a BERT based GAT, which is the only structure modeling step. In comparison, Transformer-XH is a unified model which directly represents structured texts and integrates BERT weights.
|
| 215 |
+
|
| 216 |
+
<table><tr><td rowspan="2"></td><td colspan="2">Dev</td><td colspan="2">Test</td><td colspan="2">Single Evidence</td><td colspan="2">Multi Evidence</td></tr><tr><td>LA</td><td>FEVER</td><td>LA</td><td>FEVER</td><td>LA</td><td>FEVER</td><td>LA</td><td>FEVER</td></tr><tr><td>BERT Concat (Liu et al., 2019b)</td><td>73.67</td><td>68.89</td><td>71.01</td><td>65.64</td><td>1</td><td>1</td><td>1</td><td>-</td></tr><tr><td>GEAR/GAT (Zhou et al.,2019)</td><td>74.84</td><td>70.69</td><td>71.60</td><td>67.10</td><td>79.79</td><td>77.42</td><td>66.12</td><td>38.21</td></tr><tr><td>SR-MRS* (Nie et al., 2019)</td><td>75.12</td><td>70.18</td><td>72.56</td><td>67.26</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>KGAT* (Liu et al.,2019b)</td><td>78.02</td><td>75.88</td><td>72.81</td><td>69.40</td><td>80.33</td><td>78.07</td><td>65.92</td><td>39.23</td></tr><tr><td>Transformer-XH</td><td>78.05</td><td>74.98</td><td>72.39</td><td>69.07</td><td>81.84</td><td>81.31</td><td>86.58</td><td>58.47</td></tr></table>
|
| 217 |
+
|
| 218 |
+
Table 3: FEVER Results. Contemporary work is marked by ∗. Single and Multi Evidence are results on Dev claims on which one or multiple sentences are labeled as evidence.
|
| 219 |
+
|
| 220 |
+
Table 2 further inspects model performances on the Dev set by question types and reasoning types. Transformer-XH significantly outperforms all baselines on bridge questions which require more multi-hop reasoning. And on the “multi-hop” questions, Transformer-XH has higher relative gains $3 9 \%$ over $\mathrm { C o g Q A }$ on EM) than the “single-hop” questions $( 2 7 \% )$ , demonstrating its stronger multihop reasoning capability. We further study this in Section 6.3.
|
| 221 |
+
|
| 222 |
+
To further investigate the reasoning ability of Transformer-XH, we replace our retrieval pipeline with the top retrieved documents from the SR-MRS pipeline. More specifically, we use the top retrieved documents from SR-MRS to construct Transformer-XH’s evidence graph while keeping all else constant. The resulting system, Transformer-XH (w. SR-MRS), outperforms SR-MRS’s multi-step BERT based reasoning on all metrics and question types. Transformer-XH’s effectiveness is robust with multiple IR systems.
|
| 223 |
+
|
| 224 |
+
FEVER fact verification results are shown in Table 3. Transformer-XH outperforms SR-MRS by 4 FEVER score on Dev and 1.8 on Test. It performs on par with KGAT. More importantly, Transformer-XH excels at verifying claims that require multiple pieces of evidence–outperforming the contemporary work KGAT by 20 FEVER scores on the multi-evidence claims, a $49 \%$ relative improvement. Compared to KGAT, Transformer-XH mainly loses on the ”not enough evidence” category which is neither single nor multi evidence. This is an artifact the FEVER task which our system is not specifically designed for.
|
| 225 |
+
|
| 226 |
+
This result also demonstrates Transformer-XH’s generality on tasks with multiple text inputs not in sequential formats. The only difference between Transformer-XH when applied on multi-hop QA and FEVER is the last (linear) task specific layer; it provides similar or better performances over contemporary approaches that were specifically designed for the fact verification task. Due to space constraints and the consistent effectiveness of Transformer-XH on the two applications, the rest experiments mainly used HotpotQA to analyze the behavior of Transformer-XH.
|
| 227 |
+
|
| 228 |
+
# 6.2 ABLATION STUDIES
|
| 229 |
+
|
| 230 |
+
Model Variations. We show the results of different model variations on the top left of Table 4. Single-Hop BERT uses BERT MRC model on each document individually, which significantly decreases the accuracy, confirming the importance of multi-hop reasoning in FullWiki setting (Min et al., 2019a). $G A T + B E R T$ first uses Graph Attention Network (Velickovi ˇ c et al., 2018) on the evi- ´ dence graph to predict the best node; then it uses BERT MRC on the best document. It is $10 \%$ worse than Transformer-XH since the MRC model has no access to the information from other documents. No Node Prediction eliminates the node prediction task and only trains on span prediction task; the accuracy difference shows node prediction task helps the model training.
|
| 231 |
+
|
| 232 |
+
Graph Structures. We show Transformer-XH’s performance with different graph structures on the bottom left of Table 4. Bidirectional Edges adds reverse edges along the hyperlinks; Fully Connected Graph connects all document pairs; Node Sequence randomly permutes the documents and connects them into a sequence to simulate the Transformer-XL setting. Both Bidirectional Links and Fully Connected Graph have comparable performance with the original graph structure. Transformer-XH is able to learn meaningful connections using its hop attentions and is less dependent on the pre-existing graph structural. The fully connected graph can be used if there is no strong edge patterns available in the task. However, the performance drops significantly on Node Sequence, showing that structured texts cannot be treated as a linear sequence which cuts off many connections.
|
| 233 |
+
|
| 234 |
+
Table 4: Ablation studies on the bridge questions on Dev answer accuracy $( \% )$ , including model components (top left), graph structures (bottom left), and hop steps (right). Transformer-XH’s full model uses three hop step and unidirectional Wiki link graph.
|
| 235 |
+
|
| 236 |
+
<table><tr><td rowspan="2">Model Ablation</td><td colspan="2">Dev Ans</td><td rowspan="2">Hop Steps</td><td colspan="2">Dev Ans</td></tr><tr><td>EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>Single-Hop BERT MRC on Individual Documents</td><td>31.3</td><td>42.2</td><td>One Hop</td><td>50.3</td><td>64.6</td></tr><tr><td>GAT (Node Prediction) + BERT (MRC on Best Node)</td><td>48.9</td><td>61.9</td><td>Two Hops</td><td>51.6</td><td>66.4</td></tr><tr><td>No Node Prediction Multi-Task</td><td>43.2</td><td>55.3</td><td>Four Hops</td><td>51.4</td><td>66.1</td></tr><tr><td>Bidirectional Edges on Hyperlinks</td><td>50.6</td><td>65.0</td><td>Five Hops</td><td>50.6</td><td>64.7</td></tr><tr><td>Fully Connected Graph</td><td>51.0</td><td>65.5</td><td>Six Hops</td><td>50.1</td><td>64.2</td></tr><tr><td>Node Sequence (Bidirectional Transformer-XL)</td><td>14.1</td><td>20.7</td><td>Transformer-XH</td><td>52.4</td><td>66.3</td></tr></table>
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 2: Distributions of learned attention weights of three hops on three groups: From All (Node) (to) All, $\mathbf { A l l } $ (to) Ans (ground truth answer node), and Supp (nodes with the supporting facts) (to) Ans. X-axes are attention values scaled by number of nodes.
|
| 240 |
+
|
| 241 |
+
Hop Steps. Recall that a Transformer-XH layer with extra hop attention corresponds to one information propagation (hop) step in the graph. Thus Transformer-XH with last K layers conducts K-step attention hops in the graph. We show results with different K on the right side of Table 4. Transformer-XH reaches its peak performance with three hops (our full-model). This is expected as most Hotpot QA questions can be answered by two documents (Yang et al., 2018).
|
| 242 |
+
|
| 243 |
+
# 6.3 HOP ATTENTION ANALYSIS
|
| 244 |
+
|
| 245 |
+
This experiment analyzes the hop attentions using our full-model (three-hop) on the fully connected graph to study their behavior without pre-defined structure. Figure 2 plots the distributions of the learned hop attentions on the Dev set. It shows a strong shift away from the normal distribution with more hops. Transformer-XH learns to distinguish different nodes after multi-hop attention: the attention score becomes a bimodal distribution after three hops, ignoring some non-useful nodes. Transformer-XH also learns to focus on meaningful edges: the score is higher on the path Supp Ans than All $ .$ Ans. And the margin is larger as the hop step increases from one to three.
|
| 246 |
+
|
| 247 |
+
# 6.4 CASE STUDY
|
| 248 |
+
|
| 249 |
+
Table 5 lists two examples from Transformer-XH and CogQA (w. BERT IR). The first case has a clear evidence chain “2011/S/S” “Winner” “YG Entertainment”; both methods find the correct answer. However, the second case has too many distractors in the first document. Without additional clues from document 2, it is likely that the single-hop hop entity extraction component in CogQA (w. BERT IR) misses the correct answer document in its candidate sets; and the later structural reasoning component can not recover from this cascade error. In comparison, Transformer-XH finds the correct answer by combining the evidence with the hop attentions between the two evidence pieces. We leave more positive and negative cases in Appendix A.5.
|
| 250 |
+
|
| 251 |
+
Table 5: Examples of Transformer-XH and BERT pipeline results in Hotpot QA.
|
| 252 |
+
|
| 253 |
+
<table><tr><td rowspan="2">Q:2014 S/S is the debut album of a South Ko- rean boy group that was formed by who? Document 1: 2014 S/S is the debut album of South Korean group Winner. Document 2: Winner is a South Korean boy group formed in 2013 by YG Entertainment. Transformer-XH:YG Entertainment√ CogQA(w.BERTIR): YG Entertainment√</td><td>Q:Which man who presented 2022FIFA World Cup bid was born on October 22,1930? Document 1: 2022 FIFA World Cup bid was presented by Quentin Bryce and Elle Macpherson. Document 2:FrankLowy (born 22 October</td></tr><tr><td>Frank Lowy, Ben_Buckley, 1930),is an Australian-Israeli businessman and Chairman of Westfield Corporation. Transformer-XH:FrankLowy√ CogQA(w. BERT IR): Quentin Bryce X</td></tr></table>
|
| 254 |
+
|
| 255 |
+
# 7 RELATED WORK
|
| 256 |
+
|
| 257 |
+
HotpotQA’s FullWiki task is a combination of open-domain QA (Chen et al., 2017) and multi-hop QA (Yang et al., 2018): the questions are designed to require multiple pieces of evidence and these evidence pieces are documents to retrieve from Wikipedia. It is a challenging combination: The retrieved documents are inevitably noisy and include much stronger distractors than the TF-IDF retrieved documents in the Distractor setting (Min et al., 2019a; Jiang & Bansal, 2019).
|
| 258 |
+
|
| 259 |
+
Various solutions have been proposed for Hotpot QA (Min et al., 2019b; Feldman & El-Yaniv, 2019; Nishida et al., 2019). These solutions often use complicated pipelines to adapt the multi-hop task into a combination of single-hop tasks, in order to leverage the advantage of pre-trained models. For example, CogQA (Ding et al., 2019) uses two BERT based MRC model to find candidate spans and then another BERT initialized Graph Neural Network (GNN) to rank spans; SR-MRS (Nie et al., 2019) uses three BERT based rankers to find supporting sentences, and then another BERT MRC model on the concatenated sentences to get the answer span. Transformer-XH is a simpler model that directly represents and reasons with multiple pieces of evidence using extra hop attentions.
|
| 260 |
+
|
| 261 |
+
Fact verification is a natural language inference task while also requires retrieving (“open-domain”) and reasoning with multiple text pieces (“multi-evidence”) (Thorne et al., 2018; Nie et al., 2019; Liu et al., 2019b). Many recent FEVER systems leverage Graph Neural Networks to combine information from multiple text nodes, while each node text is represented by BERT encodings (Zhou et al., 2019; Liu et al., 2019b). Transformer-XH is a more unified solution that simply includes language modeling as part of its joint reasoning.
|
| 262 |
+
|
| 263 |
+
In addition to Transformer-XL (Dai et al., 2019), other work is proposed to improve the Transformer architecture on long text sequence. For example, T-DMCA (Liu et al., 2018) splits the sequence into blocks and then the attention merges different blocks. Sparse Transformer (Child et al., 2019) introduces the sparse factorizations of the attention matrix. Transformer-XH shares similar motivation and focuses on multiple pieces of text that are not in sequential forms.
|
| 264 |
+
|
| 265 |
+
Transformer-XH is also inspired by GNN (Kipf & Welling, 2017; Schlichtkrull et al., 2017; Velickovi ˇ c et al., 2018), which leverages neural networks to model graph structured data for down- ´ stream tasks (Sun et al., 2018; Zhao et al., 2020). The key difference is that a “node” in TransformerXH is a text sequence, and modeling of the structure is conducted jointly with the representation of the text. Transformer-XH combines the Transformer’s advantages in understanding text with the power that GNN has in modeling structure.
|
| 266 |
+
|
| 267 |
+
# 8 CONCLUSION
|
| 268 |
+
|
| 269 |
+
Transformer-XH and its eXtra Hop attention mechanism is a simple yet powerful adaptation of Transformer to learn better representations of structured text data as it naturally occurs. It innately integrates with pre-trained language models to allow for complex reasoning across multiple textual evidence pieces. When applied to HotpotQA, Transformer-XH significantly shrinks the typical multi-hop QA pipeline, eliminating many cascading errors that arise from the linear sequence input constraints of pre-trained Transformers. The same simplicity also applies to FEVER, with one Transformer-XH all we needed to obtain a much stronger answer accuracy. With its simplicity and efficacy, we envision Transformer-XH will benefit many applications in the near future.
|
| 270 |
+
|
| 271 |
+
# REFERENCES
|
| 272 |
+
|
| 273 |
+
Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading Wikipedia to Answer OpenDomain Questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pp. 1870–1879, 2017.
|
| 274 |
+
|
| 275 |
+
Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating Long Sequences with Sparse Transformers. arXiv preprint arXiv:1904.10509, 2019.
|
| 276 |
+
|
| 277 |
+
Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer-XL: Attentive Language Models beyond a Fixed-Length Context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2978–2988, 2019.
|
| 278 |
+
|
| 279 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 4171–4186, 2019.
|
| 280 |
+
|
| 281 |
+
Ming Ding, Chang Zhou, Qibin Chen, Hongxia Yang, and Jie Tang. Cognitive Graph for Multi-Hop Reading Comprehension at Scale. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2694–2703, 2019.
|
| 282 |
+
|
| 283 |
+
Yair Feldman and Ran El-Yaniv. Multi-Hop Paragraph Retrieval for Open-Domain Question Answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2296–2309, 2019.
|
| 284 |
+
|
| 285 |
+
Paolo Ferragina and Ugo Scaiella. Tagme: On-the-fly Annotation of Short Text Fragments (by Wikipedia Entities). In Proceedings of the 19th ACM international conference on Information and knowledge management, pp. 1625–1628, 2010.
|
| 286 |
+
|
| 287 |
+
Faegheh Hasibi, Krisztian Balog, and Svein Erik Bratsberg. Entity Linking in Queries: Efficiency vs.Effectiveness. In European Conference on Information Retrieval, pp. 40–53, 2017.
|
| 288 |
+
|
| 289 |
+
Yichen Jiang and Mohit Bansal. Avoiding Reasoning Shortcuts: Adversarial Evaluation, Training, and Model Development for Multi-Hop QA. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2726–2736, 2019.
|
| 290 |
+
|
| 291 |
+
Thomas N Kipf and Max Welling. Semi-supervised Classification with Graph Convolutional Networks. In International Conference on Learning Representations, 2017.
|
| 292 |
+
|
| 293 |
+
Peter J Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, and Noam Shazeer. Generating Wikipedia by Summarizing Long Sequences. In International Conference on Learning Representations, 2018.
|
| 294 |
+
|
| 295 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv preprint arXiv:1907.11692, 2019a.
|
| 296 |
+
|
| 297 |
+
Zhenghao Liu, Chenyan Xiong, and Maosong Sun. Kernel Graph Attention Network for Fact Verification. arXiv preprint arXiv:1910.09796, 2019b.
|
| 298 |
+
|
| 299 |
+
Sewon Min, Eric Wallace, Sameer Singh, Matt Gardner, Hannaneh Hajishirzi, and Luke Zettlemoyer. Compositional Questions Do Not Necessitate Multi-hop Reasoning. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4249–4257, 2019a.
|
| 300 |
+
|
| 301 |
+
Sewon Min, Victor Zhong, Luke Zettlemoyer, and Hannaneh Hajishirzi. Multi-hop Reading Comprehension through Question Decomposition and Rescoring. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 6097–6109, 2019b.
|
| 302 |
+
|
| 303 |
+
Yixin Nie, Songhe Wang, and Mohit Bansal. Revealing the Importance of Semantic Retrieval for Machine Reading at Scale. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, 2019.
|
| 304 |
+
|
| 305 |
+
Kosuke Nishida, Kyosuke Nishida, Masaaki Nagata, Atsushi Otsuka, Itsumi Saito, Hisako Asano, and Junji Tomita. Answering while Summarizing: Multi-task Learning for Multi-hop QA with Evidence Extraction. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2335–2345, 2019.
|
| 306 |
+
|
| 307 |
+
Rodrigo Nogueira and Kyunghyun Cho. Passage Re-ranking with BERT. arXiv preprint arXiv:1901.04085, 2019.
|
| 308 |
+
|
| 309 |
+
Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling Relational Data with Graph Convolutional Networks. arXiv preprint arXiv:1703.06103, 2017.
|
| 310 |
+
|
| 311 |
+
Haitian Sun, Bhuwan Dhingra, Manzil Zaheer, Kathryn Mazaitis, Ruslan Salakhutdinov, and William Cohen. Open domain question answering using early fusion of knowledge bases and text. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 4231–4242, 2018.
|
| 312 |
+
|
| 313 |
+
James Thorne, Andreas Vlachos, Oana Cocarascu, Christos Christodoulopoulos, and Arpit Mittal. The Fact Extraction and VERification (FEVER) Shared Task. In Proceedings of the First Workshop on Fact Extraction and VERification (FEVER), pp. 1–9, 2018.
|
| 314 |
+
|
| 315 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is All You Need. In Advances in neural information processing systems, pp. 5998–6008, 2017.
|
| 316 |
+
|
| 317 |
+
Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph Attention Networks. In International Conference on Learning Representations, 2018.
|
| 318 |
+
|
| 319 |
+
Minjie Wang, Lingfan Yu, Da Zheng, Quan Gan, Yu Gai, Zihao Ye, Mufei Li, Jinjing Zhou, Qi Huang, Chao Ma, Ziyue Huang, Qipeng Guo, Hao Zhang, Haibin Lin, Junbo Zhao, Jinyang Li, Alexander J Smola, and Zheng Zhang. Deep Graph Library: Towards Efficient and Scalable Deep Learning on Graphs. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019.
|
| 320 |
+
|
| 321 |
+
Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W. Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pp. 2369–2380, 2018.
|
| 322 |
+
|
| 323 |
+
Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. XLNet: Generalized Autoregressive Pretraining for Language Understanding. In Advances in Neural Information Processing Systems, pp. 5754–5764, 2019.
|
| 324 |
+
|
| 325 |
+
Chen Zhao, Chenyan Xiong, Xin Qian, and Jordan Boyd-Graber. Complex factoid question answering with a free-text knowledge graph. In The Web Conference, 2020.
|
| 326 |
+
|
| 327 |
+
Jie Zhou, Xu Han, Cheng Yang, Zhiyuan Liu, Lifeng Wang, Changcheng Li, and Maosong Sun. GEAR: Graph-based Evidence Aggregating and Reasoning for Fact Verification. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 892–901, 2019.
|
| 328 |
+
|
| 329 |
+
# A APPENDIX
|
| 330 |
+
|
| 331 |
+
The appendix includes details of the evidence graph construction for Hotpot QA, ablation studies in the BERT IR component, more details and results on Hotpot QA.
|
| 332 |
+
|
| 333 |
+
# A.1 HOTPOTQA EVIDENCE GRAPH CONSTRUCTION DETAILS
|
| 334 |
+
|
| 335 |
+
The evidence graph construction includes two stages. The first stage is BERT IR, which extract related documents directly from question. The second stage expands the related documents along Wikipedia links. The first is applied on all questions while the second is only required by Bridge questions.
|
| 336 |
+
|
| 337 |
+
The first stage uses two methods to find documents. The first method uses DrQA’s retrieval system (Chen et al., 2017), which is unsupervised TF-IDF. We keep the top $1 0 0 \ \mathrm { { D r Q A } }$ retrieved ones $D _ { i r }$ for each question. The second method uses TagMe (Ferragina & Scaiella, 2010) and CMNS (Hasibi et al., 2017), two commonly used entity linkers, to annotate questions. We keep the TagMe output entity and three highest scored entities per surface form (a phrase in the question linked with entities) from CMNS, and use its corresponding Wikipedia document as $D _ { e l }$ .
|
| 338 |
+
|
| 339 |
+
We use BERT ranker (Nogueira & Cho, 2019) to re-rank the initial set $D _ { i r } \cup D _ { e l }$ . The input to the BERT is the concatenation of question and first paragraph of document:
|
| 340 |
+
|
| 341 |
+
[CLS] Question [SEP] First Paragraph of Document.
|
| 342 |
+
|
| 343 |
+
Then a linear layer is added on the last layer’s [CLS] representation to score the relevance of the document. We use BERT base and fine-tune it using the relevance label (from supporting facts) with cross-entropy loss. The top two highest scored documents from $D _ { i r }$ and the top one document per entity position (surface form) in $D _ { e l }$ are kept as the first stage BERT IR documents.
|
| 344 |
+
|
| 345 |
+
The second stage expands the first stage BERT IR documents by Wikipedia hyperlinks to obtain $D _ { e x p }$ . A document is included if it is linked to or links to a document in the first stage. We use the same BERT ranker to rank $D _ { e x p }$ and keep the top 15 documents in $D _ { e x p }$ .
|
| 346 |
+
|
| 347 |
+
The final evidence graph nodes per question includes the top two highest ranked documents in $D _ { i r }$ top one per entity name in $D _ { e l }$ , and top 15 from the expanded documents $D _ { e x p }$ .
|
| 348 |
+
|
| 349 |
+
The comparison questions only require information from two question entities; thus when building the evidence graph we do not expand them (i.e. there is no $D _ { e x p , }$ ).
|
| 350 |
+
|
| 351 |
+
The retrieval pipeline is a multi-stage retrieval enhanced with entity linking. It is close to the retrieval system used in SR-MRS (Nie et al., 2019). When using SR-MRS retrieved documents for documents, we use top 10 documents on bridge questions and top two documents on comparison questions.
|
| 352 |
+
|
| 353 |
+
In the next section, we show that Transformer-XH is robust to different number of documents kept in the evidence graph and performs similarly using the documents retrieved from SR-MRS.
|
| 354 |
+
|
| 355 |
+
# A.2 ABLATION STUDIES ON DOCUMENT RETRIEVAL
|
| 356 |
+
|
| 357 |
+
This experiment studies the effectiveness and influence of different retrieval settings. We use different numbers of top K ranked documents from the BERT ranker, run Transformer-XH in the corresponding evidence graph, and evaluate its performance on Bridge questions in the Dev set. We also evaluate the Supporting facts Recall and Answer Recall. Supp Recall evaluates whether the document with the supporting fact is included in the first stage retrieved documents. Ans Recall evaluates whether their exists a document in the evidence graph that includes the ground truth answer. The results are in Table 6.
|
| 358 |
+
|
| 359 |
+
Our BERT IR system performs better than CogQA’s TF-IDF and on par with SR-MRS, as expected. The latter uses a similar retrieval pipeline with our BERT IR system; Transformer-XH is robust on different retrieval settings and keeps its effectiveness when applied on Top 10 documents from SR-MRS (including both stages).
|
| 360 |
+
|
| 361 |
+
<table><tr><td>Method</td><td>Supp Recall</td><td>Ans Recall</td><td>Dev AnsEM</td><td>Dev Ans F1</td></tr><tr><td>Top 10 TFIDF (CogQA)</td><td>70.8</td><td>n.a.</td><td>1</td><td>1</td></tr><tr><td>Top 2 w. BERT IR + Q Entites</td><td>72.3</td><td>88.1</td><td>48.7</td><td>62.6</td></tr><tr><td>Top 5 w. BERT IR +QEntites</td><td>76.5</td><td>89.6</td><td>47.1</td><td>60.8</td></tr><tr><td>Top 10 w.BERTIR+Q Entites</td><td>78.9</td><td>91.1</td><td>46.6</td><td>60.3</td></tr><tr><td>SR-MRS Top 10 (All Together)</td><td>n.a.</td><td>86.1</td><td>47.9</td><td>62.3</td></tr></table>
|
| 362 |
+
|
| 363 |
+
Table 6: Ablation study on the retrieval systems. Top-10 TFIDF is the one used by $\mathrm { C o g Q A }$ (Ding et al., 2019). BERT IR is the retrieval system used by $\mathrm { C o g Q A }$ (w. BERT IR) and Transformer-XH. Top K refers to using the 2/5/10 highest ranked documents from the BERT ranker in the first stage. SR-MRS Top 10 uses the 10 retrieved documents per question provided by Nie et al. (2019). All retrieval methods include entities linked in the question and are expanded along Wiki links, except when evaluating the 1st stage Supp Recall.
|
| 364 |
+
|
| 365 |
+
# A.3 OTHER HOTPOT QA COMPONENTS
|
| 366 |
+
|
| 367 |
+
This section describes the other components for HotpotQA dataset. The whole QA system starts with question type classification. We train transformer-XH separately on each type of questions over their evidence graph. Besides answer prediction, we also adopt BERT based model for predicting supporting sentences.
|
| 368 |
+
|
| 369 |
+
# A.3.1 QUESTION CLASSIFICATION
|
| 370 |
+
|
| 371 |
+
The first component of our system is to classify the question to bridge and comparison types. We adopt BERT classification fine-tuning setting on HotpotQA questions using the question type labels provided in HotpotQA. The classifier achieves $9 9 . 1 \%$ accuracy on the dev set. We use the classifier to split the questions into Comparison and Bridge.
|
| 372 |
+
|
| 373 |
+
# A.3.2 SUPPORTING FACTS CLASSIFICATION
|
| 374 |
+
|
| 375 |
+
The supporting facts prediction task is to extract all sentences that help get the answer. For bridge question, these sentences usually cover different pieces of questions. And for comparison questions, the supporting facts are the properties of two question entities. We design one model architecture for this task, but we train two models on each type to reflect the inherent difference.
|
| 376 |
+
|
| 377 |
+
We use BERT as our base model and on top of BERT, we conduct multi-task learning scheme. The first task is document relevance prediction, similar as Transformer-XH, we add a linear layer on the [CLS] token of BERT to predict the relevance score. The other task is sentence binary classification, we concatenate the first and last token representation of each sentence in the document through a linear layer, the binary output decides whether this sentence is supporting sentence.
|
| 378 |
+
|
| 379 |
+
Bridge question supporting facts prediction For bridge questions, we predict supporting facts after answer prediction from Transformer-XH to resume the inference chain. We start by predicting supporting facts in the answer document. The other document is chosen from the parents of the answer document in the evidence graph. 3. Compare with the contemporary model Nie et al. (2019), which does not limit the search space along the inference chain (i.e., the answer document may not be relevant to the other supporting page), our method more naturally fits the task purpose.
|
| 380 |
+
|
| 381 |
+
Comparison question supporting facts prediction For comparison questions, after extracting the first step documents $D$ , we simply run this supporting facts prediction model to select the top-2 documents, and predict the corresponding supporting facts.
|
| 382 |
+
|
| 383 |
+
# A.3.3 TRAINING DETAILS
|
| 384 |
+
|
| 385 |
+
We use DGL (Wang et al., 2019) for implementing Transformer-XH and CogQA (w. BERT IR) with batch size 1 (i.e., one graph for each batch), and keep the other parameters same as default BERT setting. We train Transformer-XH separately on two different types of questions, following previous
|
| 386 |
+
|
| 387 |
+
Table 7: Additional examples for model prediction on HotpotQA dataset, the first example is the correct prediction $( + )$ , the other two examples are the wrong predictions (-).
|
| 388 |
+
|
| 389 |
+
<table><tr><td>id</td><td>Example</td><td>Explanation</td></tr><tr><td>1(+)</td><td>Q:In which year was the King who made the 1925 Birthday Honours born? P: 1865√ Document 1: The 1925 Birthday Honours were ap- pointments by King George V to various orders and honours. Document 2: GeorgeV (3 June 1865- 20 January 1936)was King of the United Kingdom.</td><td>Withnecessary evidenceavailable, Transformer-XH conducts multi-hop reasoning,and extracts the correct span.</td></tr><tr><td>2(-)</td><td>Q:Where was the world cup hosted that Algeria quali- fied for the first time into the round of 16? A:Brazil P: Spain X Document 1 (Algeria at the FIFA World Cup):In 2014,Algeria qualified for the first time into the round of 16. Document 2 (2014 FIFA CUP): It took place in Brazil from 12 June to 13 July 2O14,after the country was awarded the hosting rights in 2007.</td><td>Transformer-XH does not predict the correct answer, since document 1 does not link to any other docu- ments.Thus,the information does not propagate to the correct answer docu- ment 2014 FIFA CUP.</td></tr><tr><td>3(-)</td><td>Q:What government position was held by the woman who portrayed Corliss Archer in the film Kiss and Tell? A:Chief of ProtocolP:ambassador X Document 1: Kiss and Tell is a 1945 American comedy film starring then 17-year-old Shirley Temple as Corliss Archer. Document 2:As an adult, Shirley Temple was named United States ambassador to Ghana and to Czechoslo- vakia,and also servedas Chief ofProtocol of theUnited States.</td><td>Transformer-XH predicts the correct answer document Shirley Temple. However it could not distinguish from the wrong answer ambassador which she was named but not held that position.</td></tr></table>
|
| 390 |
+
|
| 391 |
+
research (Ding et al., 2019). We train Transformer-XH and the GNN of CogQA (w. BERT IR) for 2 epochs. All other BERT based models use the default BERT parameters and train the model for 1 epoch.
|
| 392 |
+
|
| 393 |
+
# A.4 IMPLEMENTATION DETAILS OF COGQA (W. BERT IR)
|
| 394 |
+
|
| 395 |
+
This section discusses our implementation of CogQA (W. BERT IR). We start with the same documents from BERT IR, the one used by Transformer-XH, and then implement the following steps:
|
| 396 |
+
|
| 397 |
+
# A.4.1 HOP ENTITY EXTRACTION
|
| 398 |
+
|
| 399 |
+
For each document from the previous step, we run BERT MRC model and limit the span candidates as hyperlinked entities for hop entity extraction (e.g., in Figure 1, “Harvard University” is a hop entity). Following Ding et al. (2019), we predict the top three entities that above the relative threshold that is the start span probability of [CLS] position.
|
| 400 |
+
|
| 401 |
+
# A.4.2 ANSWER SPAN EXTRACTION
|
| 402 |
+
|
| 403 |
+
For each document (add the hop entity document), following Ding et al. (2019), we run BERT MRC model to extract spans (e.g., “Combridge” in Figure 1.). We predict the top one span that above the threshold that is the start span probability of [CLS] position.
|
| 404 |
+
|
| 405 |
+
We train both hop entity extraction and span extraction tasks with same BERT model but different prediction layers. For each training example, we extract the link between two given supporting pages. The page includes the link (e.g., “Harvard University” in Figure 1.) is the supporting page
|
| 406 |
+
|
| 407 |
+
for hop entity extraction, while the other page is the answer page (e.g., “Combridge” in Figure 1.) for answer span extraction.
|
| 408 |
+
|
| 409 |
+
# A.4.3 GAT MODELING
|
| 410 |
+
|
| 411 |
+
All the entities and answer spans form the final graph. The nodes are the entities and spans, and edges are the connections from the entities to the extracted hop entities or spans.
|
| 412 |
+
|
| 413 |
+
We use BERT for each node representation with question, anchor sentences and context, following Ding et al. (2019). We run GAT (Velickovi ˇ c et al., 2018) on top of BERT to predict the correct ´ answer span node.
|
| 414 |
+
|
| 415 |
+
# A.4.4 COMPARISON QUESTIONS
|
| 416 |
+
|
| 417 |
+
After predicting supporting facts, we concatenate the sentences and follow Min et al. (2019b) to run a BERT MRC model to predict either span or yes/no as the answer.
|
| 418 |
+
|
| 419 |
+
# A.5 ADDITIONAL CASE STUDY
|
| 420 |
+
|
| 421 |
+
We provide addition case studies in Table 7. The first case can be directly predicted through the clear evidence chain ”the 1925 Birthday Honours” ”George $\mathrm { V } ^ { \prime \prime } ^ { \prime \prime } 1 8 6 5 ^ { \prime \prime }$ . In the second case, the first document (”Algeria at the FIFA World Cup”) has no link to any other documents, therefore the model can not access the correct answer. The third case is more reading comprehension oriented, where the model can not distinguish the correct and wrong spans inside one sentence.
|
parse/train/r1eIiCNYwS/r1eIiCNYwS_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1eIiCNYwS/r1eIiCNYwS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1eIiCNYwS/r1eIiCNYwS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlm/train/1ODSsnoMBav/0.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/1.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/10.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/11.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/12.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/2.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/3.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/4.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/5.png
ADDED
|
Git LFS Details
|
vlm/train/1ODSsnoMBav/6.png
ADDED
|
Git LFS Details
|