Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/Hye_V0NKwr/Hye_V0NKwr.md +416 -0
- parse/train/Hye_V0NKwr/Hye_V0NKwr_content_list.json +0 -0
- parse/train/Hye_V0NKwr/Hye_V0NKwr_middle.json +0 -0
- parse/train/Hye_V0NKwr/Hye_V0NKwr_model.json +0 -0
- parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA.md +310 -0
- parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA_content_list.json +1662 -0
- parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA_middle.json +0 -0
- parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA_model.json +0 -0
- parse/train/SyJ7ClWCb/SyJ7ClWCb.md +252 -0
- parse/train/SyJ7ClWCb/SyJ7ClWCb_content_list.json +1263 -0
- parse/train/SyJ7ClWCb/SyJ7ClWCb_middle.json +0 -0
- parse/train/SyJ7ClWCb/SyJ7ClWCb_model.json +0 -0
- parse/train/eqBwg3AcIAK/eqBwg3AcIAK.md +560 -0
- parse/train/eqBwg3AcIAK/eqBwg3AcIAK_content_list.json +0 -0
- parse/train/eqBwg3AcIAK/eqBwg3AcIAK_middle.json +0 -0
- parse/train/eqBwg3AcIAK/eqBwg3AcIAK_model.json +0 -0
- parse/train/rklwwo05Ym/rklwwo05Ym.md +347 -0
- parse/train/rklwwo05Ym/rklwwo05Ym_content_list.json +1653 -0
- parse/train/rklwwo05Ym/rklwwo05Ym_middle.json +0 -0
- parse/train/rklwwo05Ym/rklwwo05Ym_model.json +0 -0
parse/train/Hye_V0NKwr/Hye_V0NKwr.md
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LOCALITY AND COMPOSITIONALITY IN ZERO-SHOT LEARNING
|
| 2 |
+
|
| 3 |
+
Tristan Sylvain ∗
|
| 4 |
+
Mila, Universite de Montr ´ eal ´
|
| 5 |
+
Montreal, Canada
|
| 6 |
+
tristan.sylvain@gmail.com
|
| 7 |
+
|
| 8 |
+
Linda Petrini ∗ University of Amsterdam Amsterdam, Netherlands lindapetrini@gmail.com
|
| 9 |
+
|
| 10 |
+
R Devon Hjelm
|
| 11 |
+
Microsoft Research, Mila
|
| 12 |
+
Redmond, USA
|
| 13 |
+
devon.hjelm@microsoft.com
|
| 14 |
+
|
| 15 |
+
# ABSTRACT
|
| 16 |
+
|
| 17 |
+
In this work we study locality and compositionality in the context of learning representations for Zero Shot Learning (ZSL). In order to well-isolate the importance of these properties in learned representations, we impose the additional constraint that, differently from most recent work in ZSL, no pre-training on different datasets (e.g. ImageNet) is performed. The results of our experiments show how locality, in terms of small parts of the input, and compositionality, i.e. how well can the learned representations be expressed as a function of a smaller vocabulary, are both deeply related to generalization and motivate the focus on more local-aware models in future research directions for representation learning.
|
| 18 |
+
|
| 19 |
+
# 1 INTRODUCTION
|
| 20 |
+
|
| 21 |
+
A crucial property of a useful model is to generalize, that is to perform well on test settings given learning on a training setting. While what is most commonly meant by generalization is being robust to having a limited number of training examples in distributionally-matched settings (Zhang et al., 2016), many tasks are designed to address variations in the data between when a model is trained and when it is evaluated. For instance, some classification tasks address distributional changes in the input: from lacking guarantees of distributional match between train and test (e.g., covariate shift, Shimodaira, 2000) to having fundamental domain differences (e.g., domain adaptation, Crammer et al., 2007; Ben-David et al., 2007). A number of tasks have also been designed specifically to understand models in terms of their ability to generalize to test situations that are poorly represented during training (e.g., Few-Show learning, Li et al., 2006), or even consist of a diverse and entirely novel set of sub-tasks (Zamir et al., 2018). For supervised classification, Zero-Shot Learning (ZSL, Larochelle et al., 2008) is among the most difficult of these tasks, as it requires the model to make useful inferences about (e.g., correctly label) unseen concepts, given parameters learned only from seen training concepts and additional high-level semantic information.
|
| 22 |
+
|
| 23 |
+
The fundamental question we wish to address in this work is: What are the principles that contribute to learning good representations for ZSL? While the most successful ZSL models (Atzmon & Chechik, 2019; Wang et al., 2019) use pretrained features from Imagenet (Krizhevsky et al., 2012; Russakovsky et al., 2015), we wish to understand how these features can emerge given only the data provided from the ZSL task. Specifically, we explore the role of compositionality and locality (Tokmakov et al., 2018; Stone et al., 2017) as two principles that lead to good generalization. Our study focuses on image representations, so we explore various means of learning representations that are local and compositional for convolutional neural networks (CNNs). We also leverage the structure of CNNs and available annotations from ZSL datasets as a means of interpreting various models in terms of these factors. Overall, our results support the hypothesis that compositionality and locality are crucial principles for training models that generalize well.
|
| 24 |
+
|
| 25 |
+
Finally, in order to provide a cleaner framework for understanding the relationship between the above principles and generalization, we re-introduce Zero-Shot Learning from scratch (ZFS). In this setting, the model is not allowed to be pretrained on another dataset, such as Imagenet, and is evaluated on its ability to perform classification using auxiliary attributes and labels trained only using the data available from the training split of the target dataset. We believe that ZFS will provide researchers with a better experimental framework to understand which principles are important for Zero-Shot generalization.
|
| 26 |
+
|
| 27 |
+
The contributions of our work are as follows:
|
| 28 |
+
|
| 29 |
+
• We introduce Zero-Shot Learning from scratch (ZFS), an extension to ZSL, which we believe will be an important benchmark for understanding which learning principles lead to better generalization.
|
| 30 |
+
• We evaluate several supervised and unsupervised methods on their ability to learn features that generalize in the ZFS setting by training a prototypical network on top of those features (in a similar way to what was done in Snell et al., 2017, with Imagenet features). We then relate this generalization performance with different proxies for locality and compositionality of the given representations, and show that both concepts contribute heavily.
|
| 31 |
+
• We introduce a novel version of Deep InfoMax (DIM, Hjelm et al., 2018) which draws local patch representations from other images with the same label as positive samples.
|
| 32 |
+
• We introduce a novel visualization technique based on Mutual Information, that allows to investigate local properties of the learned representations.
|
| 33 |
+
|
| 34 |
+
# 2 PRINCIPLES THAT LEAD TO GOOD ZSL PERFORMANCE
|
| 35 |
+
|
| 36 |
+
Zero-Shot Learning (ZSL, Larochelle et al., 2008) is an important learning framework for understanding a model’s capacity to be used in real world scenarios where many relevant test cases (e.g., classes) are not known or are infeasible to sample at training time. An important component of ZSL, particularly in Deep Learning, is learning features directly from raw data (e.g., pixels), that generalize to these test cases. While there are a number of commonly-used strategies for learning generalizable features for various tasks in Deep Learning (Neyshabur et al., 2017), we believe that ZSL in particular requires thinking beyond normal classification by incorporating principles such as compositionality (Boole, 1854) and locality (Fukushima, 1980).
|
| 37 |
+
|
| 38 |
+
How we formulate, exploit, and analyze these principles to learn models that solve image ZSL tasks will depend on our use of convolutional neural networks (CNNs) as the network architecture for encoding images as well as properties of the data, such as input statistics and available annotations. We will broadly define compositionality and locality, then relate these principles to the tools we have at our disposal from the network architecture and data.
|
| 39 |
+
|
| 40 |
+
# 2.1 COMPOSITIONALITY
|
| 41 |
+
|
| 42 |
+
Compositional representations have been a focus in the cognitive science literature (Biederman, 1987; Hoffman & Richards, 1984) with regards to the ability of intelligent agents to generalize to new concepts. Applications are found in computational linguistics (Tian et al., 2016), generative models (Higgins et al., 2017b), and Meta Learning (Alet et al., 2018; Tokmakov et al., 2018), to name a few, with approaches to encourage compositionality varying from introducing penalties (Tokmakov et al., 2018) to using modular architectures (Alet et al., 2018).
|
| 43 |
+
|
| 44 |
+
In what follows, we will consider a representation to be compositional if it can be expressed as a combination of simpler parts (Andreas, 2019; Montague, 1974). Let $\mathcal { P }$ denote the set of possible parts, $\mathcal { R }$ the representation space and $\mathcal { X }$ the input space. For each $x \in \mathcal { X }$ , we assume the existence of a function $D$ mapping $x$ to $\mathcal { P } ^ { \prime } \subseteq \mathcal { P }$ , the set of its parts. These parts could be local image features (e.g., wings or beaks), or other generative factors (e.g., size, color, etc). Let $g : \mathcal { P } \mathcal { R }$ be a function that maps the parts to representations. Formally, $f ( x ) \in \mathcal { R }$ is compositional if it can be expressed as a combination of the elements of $\{ g ( p ) | p \in D ( x ) \}$ . The combination operator used is commonly a weighted sum (Brendel $\&$ Bethge, 2019b), although some works learn more complex combinations (Higgins et al., 2017b). As we consider representations that are implicitly compositional, the above formalism might be approximately true which motivates our later use of the TRE metric.
|
| 45 |
+
|
| 46 |
+
# 2.2 LOCALITY
|
| 47 |
+
|
| 48 |
+
Local features have been used extensively in representation learning. CNNs exploit local information by design, and locally-aware architectures have been shown to be useful for non-image dataset, such as graphs (Kipf & Welling, 2016) and natural language processing (Yu et al., 2018). For supervised image classification, a bag of local features processed independently can do surprisingly well compared to processing the local features together (Brendel & Bethge, 2019a). Attention over local features is commonly used in image captioning (Li et al., 2017), visual question answering (Kim et al., 2018) and fine-grained classification (Sun et al., 2018). Self-attention over local features resulted in large improvements in generative models (Zhang et al., 2018a). Self-supervised methods often exploit local information to learn useful representations: Doersch et al. (2015) proposes to learn representations by predicting the relative location of image patches, Noroozi & Favaro (2016) solves jigsaw puzzles of local patches, and Deep InfoMax (DIM, Hjelm et al., 2018) maximizes the mutual information between local and global features.
|
| 49 |
+
|
| 50 |
+
For our purposes with image data, we loosely define a local representation as one that has information that is specific to a patch. This helps motivate choices in architecture and learning principles that encourage locality. In this work, we take the most straightforward approach, and use features of CNNs which have receptive fields that are small compared to the size of the full image. This is similar to the motivations in Bachman et al. (2019), where the architecture is carefully designed to ensure that the receptive fields do not grow too large. However, this choice in architecture does not guarantee locality, as CNN representations might hypothetically contain only global information, such as the class or color of the object, despite having a limited receptive field. Therefore, we will evaluate a number of different models on their ability to encode only information specific to those locations. We will discuss relevant evaluation in Sections 4.2 and 4.3.
|
| 51 |
+
|
| 52 |
+
Note also that compositionality as discussed above and locality are not necessarily independent concepts, nor are they necessarily the same. The set of compositional factors could include local factors, such as parts of an object, but also be more “global” factors, such as general properties of a class (e.g., size, color, shape, etc).
|
| 53 |
+
|
| 54 |
+
# 2.3 COMPOSITIONALITY AND LOCALITY WITH IMAGE DATA
|
| 55 |
+
|
| 56 |
+
We focus on three common ZSL dataset that allow us to explore compositionality and locality, namely Animals with Attributes 2 (AwA2, Xian et al., 2018), Caltech-UCSD-Birds-200-2011 (CUB, Wah et al., 2011), SUN Attribute (SUN, Patterson & Hays, 2012). Typical images from these datasets are shown in Fig. 1: CUB is a fine-grained dataset, where the object of interest is small relative to the total image. This is in contrast to AwA2, where subjects have variable size in relation to the total image. SUN is a scenes dataset, meaning that the object of interest is often the whole image.
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
Figure 1: Typical samples show how compositionality and locality are expressed differently in the datasets we consider in this study.
|
| 60 |
+
|
| 61 |
+
In our evaluation of compositionality, we can leverage different annotations provided by the datasets. All of these datasets provide attributes, which roughly correspond to high-level semantic information composed of a set of underlying factors. For CUB, these attributes describe visual characteristics such as wing colour or shape. For AwA2, these describe both visual and behavioral characteristics, such as the animal’s ability to swim or its habitat. For SUN, the attributes are more diverse, ranging from describing the function of the scene, such as playing, to the spatial envelope, for instance man-made. As in Xian et al. (2017), we used $\ell _ { 2 }$ normalized versions of these attributes as semantic class representations. In addition to attributes, CUB comes with bounding boxes for the whole subject and parts locations for 15 different parts, e.g. beak, tail, belly. These can also be used to assess both locality and compositionality, with the compositional factors being the same as the local ones. The details of each dataset are in the Appendix (Table 1).
|
| 62 |
+
|
| 63 |
+
# 3 ZERO-SHOT LEARNING FROM SCRATCH
|
| 64 |
+
|
| 65 |
+
While the original ZSL setting introduced in Larochelle et al. (2008) was agnostic to the exact methodology, more recent image ZSL approaches almost uniformly use features from very large “backbone” neural networks such as InceptionV2 (Szegedy et al., 2016) and ResNet101 (He et al., 2016) pretrained on the Imagenet dataset. In terms of absolute performance, this approach appears to be well-justified, as state-of-the-art results on various ZSL (Yosinski et al., 2014; Sun et al., 2017; Huh et al., 2016; Azizpour et al., 2015) and non-ZSL benchmarks (Li et al., 2019; Zhang et al., 2018b; He & Peng, 2017) all learn on top of similar pretrained backbones.
|
| 66 |
+
|
| 67 |
+
However, we have many concerns with this approach towards our goal of understanding the principles that contribute to good generalization. First, relative success in transfer learning has been shown to be highly dependent on the precise instantiation of the pretrained backbone encoder (Xian et al., 2018) or the pre-training dataset (Cui et al., 2018). Next, while Imagenet features have been shown to work well for ZSL tasks with similar image datasets, there are no guarantees that a suitable pre-training framework would be available in general ZSL settings. Conversely, it can be hard in practice to meaningfully evaluate a Zero-Shot learner, as performance on specific classes is impacted by their presence in the pre-training dataset (Xian et al., 2017).
|
| 68 |
+
|
| 69 |
+
Finally, we believe this approach misses the point, in such a way that makes understanding the learning principles that contribute to good generalization difficult. We believe that ZSL should first and foremost be used as a framework for training, understanding, and evaluating models on their ability to reason about new, unseen concepts. Despite the absolute performance gains of the methods above that use Imagenet features, the use of backbones hyper-optimized for supervised performance on Imagenet and the Imagenet dataset itself represent nuisance variables in a larger effort to understand how to learn generalizable concepts from scratch.
|
| 70 |
+
|
| 71 |
+
In addition to the ZSL task framework outlined in Larochelle et al. (2008), ZFS simply adds one additional additional requirement: No model parameters can contain information about (e.g., can be learned from) data outside that from the training split of the target dataset.
|
| 72 |
+
|
| 73 |
+
# 4 METHODS
|
| 74 |
+
|
| 75 |
+
Given our hypothesis on the importance of locality and compositionality, we consider a wide range of representation learning methods trained using the ZFS setting described in Section 3. To showcase the role of these principles, we will introduce a set of proxies for compositionality and locality below. We will also consider auxiliary losses that emphasize locality in the learned representation. Finally, we will introduce a visualization tool that can help identify which local representations are assigned higher importance by each method.
|
| 76 |
+
|
| 77 |
+
# 4.1 GENERAL APPROACH
|
| 78 |
+
|
| 79 |
+
In this work, we train convolutional image encoders (CNN) using either supervised or unsupervised learning, then use prototypical networks to perform ZSL transfer on these fixed representations. Prototypical networks are chosen as they require minimal parameters or hyper-parameters tuning, are well-studied (Huang et al., 2019; Finn et al., 2017), and performance is very close to the state of the art for Imagenet-pretrained benchmarks. Our setup is representative of the current state of ZSL models, most of which (Akata et al., 2015; Changpinyo et al., 2016; Kodirov et al., 2017; Zhang et al., 2017; Sung et al., 2018) rely on metric learning by applying two steps: (1) learning a suitable embedding function that maps data samples and class attributes to a common subspace, (2) performing nearest neighbor classification at test-time with respect to the embedded class attributes.
|
| 80 |
+
|
| 81 |
+
For our study, we compare pre-training the image encoder with a diverse, yet representative set of models:
|
| 82 |
+
|
| 83 |
+
• Fully supervised: Fully supervised label classifier (FC)
|
| 84 |
+
• Unsupervised / reconstruction based / generative: Variational auto-encoders(VAE, Kingma & Welling, 2013), $\beta$ -VAE (Higgins et al., 2017a), Adversarial auto-encoders (AAE, Makhzani et al., 2015),
|
| 85 |
+
• Local self-supervision and variants: Augmented Multiscale Deep InfoMax (AMDIM, Bachman et al., 2019) and Class Matching DIM (CMDIM).
|
| 86 |
+
|
| 87 |
+
We pick variants of DIM (Hjelm et al., 2018) as opposed to other self-supervision methods (Doersch & Zisserman, 2017; Noroozi & Favaro, 2016) because extensions have achieved state-of-the-art on numerous related tasks (Velickovi ˇ c et al., 2018; Bachman et al., 2019). ´
|
| 88 |
+
|
| 89 |
+
We introduce Class-Matching DIM (CMDIM), a novel version of DIM that draws positive samples from other images from the same class. The goal is to learn representations that focus less on the information content of a single input, while extracting information that is discriminative between classes. The hyperparameter $p$ determines the probability of performing intra-class matching, we experiment with $p \in \{ 1 , 0 . 5 , 0 . 1 \}$ . A more detailed description is provided in Appendix G.
|
| 90 |
+
|
| 91 |
+
Local classification and attribute auxiliary loss We encourage the image encoder to extract semantically relevant features at earlier stages of the network by introducing an auxiliary local loss to the local feature vectors of a convolutional layer (whose receptive field covers a small patch of the image). When used, this auxiliary loss is either from an attribute-based classifier (AC) or a label-based classifier (LC) using the attributes or the labels as supervised signal, respectively. A schematic explanation can been seen in Fig. 7 in the appendix.
|
| 92 |
+
|
| 93 |
+
# 4.2 PARTS CLASSIFICATION FOR CUB EVALUATION
|
| 94 |
+
|
| 95 |
+
For each of the 15 parts labelled in the CUB dataset, we use the MTurk worker annotations to construct 15 boolean map for each local feature. We project these boolean maps through the CNN to generate ground truth variables that indicate whether the given part is present and visible at a location specific to the CNN encoder features. We then train a linear probe for each part, without back-propagating through the encoder, and measure the average F1 score across all locations and parts. This gives us a measurement on how well the encoder represents the parts of the image at the correct locations. For more details, please refer to Section F in the Appendix.
|
| 96 |
+
|
| 97 |
+
# 4.3 MEASURING MUTUAL INFORMATION BETWEEN LOCAL FEATURES OF DIFFERENT IMAGES
|
| 98 |
+
|
| 99 |
+
As a tool for local interpretability, we propose estimating the mutual information (MI) between global features given from one image and local features from a second image. A schematic explanation is provided in Fig. 8 in the Appendix. In order to do this, we rely on MINE (Belghazi et al., 2018) which uses a statistics network, $T _ { \phi }$ , with parameters $\phi$ to formulate a lower bound to MI, which is effective for high dimensional, continuous random variables. In our case, the statistics network takes two inputs: a global and local feature vector either sampled from the joint, where each comes from the same image, or from the product of marginals, where the global and local features are sampled independently from each other. The statistics network optimizes a lower bound to the MI:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\widehat { I } ( G _ { \theta } ( X ) ; L _ { \theta } ( X ) ) \geq \mathbb { E } _ { p ( X ) } [ \widehat { T _ { \phi } } \big ( ( G _ { \theta } ( X ) , L _ { \theta } ( X ) ) \big ] - \log \mathbb { E } _ { p ( X ) \otimes p ( X ^ { \prime } ) } [ e ^ { T _ { \phi } ( ( G _ { \theta } ( X ) , L _ { \theta } ( X ^ { \prime } ) ) ) } ]
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
Where $p ( X ) = p ( X ^ { \prime } )$ is the data distribution, and $L$ and $G$ random variables corresponding to the local and global feature vectors of the encoder. At optimum, the output of the statistics network, $T _ { \phi }$ provides an estimate for the Pointwise Mutual Information (PMI), defined as log p(G,L)p(G)p(L $\begin{array} { r } { \log \frac { p ( G , L ) } { p ( G ) p ( L ) } = \log \frac { p ( L | G ) } { p ( L ) } } \end{array}$ ) = log p(L|G)p(L) , which roughly gives us a measure of how similar the global and local representations are in terms of information content. Normally, we could try to estimate the marginal term $p ( L )$ to get an estimate for the conditional density, but we will normalize our score across the local patches of the target image to get a relative score of the relatedness of each local feature to a given global feature. This analysis is similar to that done in Bachman et al. (2019), which looks at different augmentations of the same image using the same MI estimator used to train the encoder.
|
| 106 |
+
|
| 107 |
+
# 4.4 TRE EVALUATION
|
| 108 |
+
|
| 109 |
+
We focus on a metric of compositionality introduced in Andreas (2019), the Tree Reconstruction Error (TRE), as a proxy for compositionality. We will write TRE $^ { ( \mathcal { X } , \mathbf { a } ) }$ for the TRE computed on a dataset $\mathcal { X }$ over the set of primitives a. For details on its definition, see Section $_ \mathrm { H }$ in the Appendix.
|
| 110 |
+
|
| 111 |
+
As we mostly care about the compositionality with respect to attributes in the context of zero-shot learning and some representations are inherently more decomposable than others (such as VAEs due to the gaussian prior), we consider instead the ratio of the TRE computed with respect to attributes and the TRE computed with respect to uninformative variables (random assignment). We define the TRE ratio as: $\frac { \mathrm { T R E } ( \mathcal { X } , \hat { \mathbf { a } } ) } { \mathrm { T R E } ( \mathcal { X } , \tilde { \mathbf { a } } ) }$ , where $\tilde { \mathbf { a } }$ is a random binary matrix (random cluster assignment), and aˆ are the actual visual primitives, attributes in our case.
|
| 112 |
+
|
| 113 |
+
# 4.5 EXPERIMENTAL SETUP
|
| 114 |
+
|
| 115 |
+
Image encoders We considered both an encoder derived from the DCGAN architecture (Radford et al., 2015) and similar in capacity to those used in early Few Shot Learning models such as MAML (Finn et al., 2017). We also consider a larger AlexNet (Krizhevsky et al., 2012) based architecture to gain insight on the impact of the encoder backbone. It is important to note that overall the encoders we use are significantly smaller than the “standard” backbones common in state-of-the-art Imagenetpretrained ZSL methods (note that similarly to most recent ZSL methods, the encoder is fixed after pre-training, and used as a feature extractor). We believe restricting the encoder’s capacity decreases the performance, but does not hinder our ability to extract understanding of what methods work from our experiments. A detailed description of the architectures can be found in the Appendix (Tables 2 and 3).
|
| 116 |
+
|
| 117 |
+
Evaluation Protocol We used the ZSL splits constructed in Xian et al. (2017), as they are the most commonly used in the literature. All models are evaluated on Top-1 accuracy. We pretrain the encoder using each of the previously mentioned methods (strictly on the considered dataset, as per the ZSF requirement). We then train a Prototypical Network on top of the (fixed) learned representation. All the implementation details are available in the Appendix, in Section B.
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 2: Parts F1 score for all models on CUB with a DCGAN-based encoder plotted against ZSL accuracy. There is a clear relationship between the two: encoders that have a good understanding of local information (as measured by the parts F1 score) perform better in zero-shot learning. The addition of a local loss increases parts F1 score for all models. This improves generalization for all models except those trained with a reconstruction objective.
|
| 121 |
+
|
| 122 |
+
# 5 RESULTS AND DISCUSSION
|
| 123 |
+
|
| 124 |
+
In this section, we describe in more detail our experiments and analyize the results. The full numerical results and plots for all considered models can be found in the Appendix.
|
| 125 |
+
|
| 126 |
+
# 5.1 DOES LOCALITY HELP ZSL, AND CAN LOCAL REPRESENTATIONS BE LEARNED?
|
| 127 |
+
|
| 128 |
+
Representations that predict parts at the correct location tend to perform better at ZSL. We hypothesize that if the encoder represents information that is descriptive of parts, it should also be able to generalize better. To test this, we compare ZSL performance to the part classification F1 score described in 4.2. In Fig. 2, the average F1 scores across the 15 classifiers is plotted against the ZSL accuracy for each model. The two measures are clearly correlated (Person’s correlation of 0.73). This relationship doesn’t hold for reconstruction-based methods such as VAEs, which could be due to these models needing to represent information related to all pixels, including the background, in order to reconstruct well.
|
| 129 |
+
|
| 130 |
+
Encouraging local representations to contain similar information improves ZSL performance For variants of Deep InfoMax (DIM, Hjelm et al., 2018), AMDIM and CMDIM, the local representations are encouraged to be similar to a global representation through the mutual information maximization objective. While locally specified, this is somewhat contrary to our definition of locality in 2.2. Among the models we tested, these variants generally perform very well, with CMDIM performing the best overall.
|
| 131 |
+
|
| 132 |
+
This indicates that, while important, locality by itself is not sufficient to learn good ZSL representations. The local representations must also share information, e.g., through a global representation or the class. We hypothesize that such constraints help the encoder learn information that is present locally, but relevant to discriminating the class or important high-level semantic meaning. The above observation also holds for the local losses (AC and LC introduced in 4.1). These losses both encourage the model to rely on local information (local features must capture important semantic information), and for these representations to share information (by having high mutual information with either the attributes or labels).
|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
Figure 3: Relative improvement in terms of ZSL accuracy with respect to models trained without the auxiliary loss. Attribute information results in a bigger improvement. Surprisingly, for certain models label information results in a decrease in generalization performance.
|
| 136 |
+
|
| 137 |
+
Adding local losses helps supervised and self-supervised models. We investigate in more detail the effect of encouraging the model to take into account different types of local information. As can be seen in Fig. 2, the addition of a local loss improves both ZSL and parts score for all models except the generative ones (VAE, AAE). Interestingly, for these models the parts score also increases, indicating more locality, but this does not translate to better ZSL performance.
|
| 138 |
+
|
| 139 |
+
To better investigate why local losses improve generalization for supervised and self-supervised models, in Fig. 3 we show the relative improvement of each type of local classifier over the performance of the encoder only trained with its global loss. We can see how for the supervised model, the attribute based auxiliary loss has a much bigger impact, which indicates that label information is already exploited by the model, while attributes actually provide more information. For AMDIM, both losses seem to have a consistent positive effect, possibly because the model is unsupervised and hence any label-related information is useful. For CMDIM, the LC auxiliary loss actually hurts performance. This is likely due to the fact that both CMDIM and the LC loss focus on discriminating classes at the local level, and that the LC objective is inherently less effective than the CMDIM formulation for this task (in terms of downstream ZSL performance). As a result, forcing the model to account for both terms lowers downstream performance. DIM and AMDIM discriminate instances and not classes so adding class and attribute information in the form of the AC and LC losses helps performance. CMDIM is already exposed to class information, so only gains from being exposed to the (more informative) attribute information in the form of AC.
|
| 140 |
+
|
| 141 |
+
# 5.2 HOW DO DIFFERENT MODELS ENCODE INFORMATION LOCALLY?
|
| 142 |
+
|
| 143 |
+
In Fig. 4 we apply the PMI-based visualization technique introduced in Section 4.3 to pairs of images from the CUB dataset. In this case, we are examining the global representation extracted by each model for the top left image (the Pacific Loon) and comparing it with local features from images of various classes. By noticing which patches each model pays attention to (have higher mutual information), we can infer how information is coded locally. The main take-aways are the following:
|
| 144 |
+
|
| 145 |
+
• Supervised models. The fully supervised model in the first row seems to be able to focus on relevant semantic details, such as the tail of the Horned Grebe and the head of the Back Tern. • Unsupervised models. In the second and third row we can see how models based on a reconstruction loss seem to fail at highlighting semantic information: for images with patterns and colours similar to the Pacific Loon, such as the other Pacific Loon or the White breasted Kingfisher, PMI is high across all local features, while scores are very low for the Tree Swallow with the uniform green background. This could possibly indicate that these models focus more on pixel statistics necessary for reconstruction, and are unable to extract as much semantic information. Self-Supervised models. AMDIM manages to recover some semantic structure, e.g. for the other Pacific Loon or for the Rusty Blackbird, but fails in some other cases. CMDIM on the other hand, especially for high matching probability $p$ , produces heatmaps that are very similar to those of the supervised models, hence managing to recover what is discriminative between classes.
|
| 146 |
+
|
| 147 |
+
Models that encode semantic information well perform well on ZSL generalization. Models that reconstruct pixels well perform worse. To confirm our intuitions on how some families of models focus more on semantic information, while others are more sensitive to pixel statistics, we rely again on the parts binary maps described in 4.2. For each pair of images, we compute the ratio between the score assigned to patches containing any part (i.e., a logical OR computed across all binary maps) and the overall score of all features. We refer to this measure as the Parts ratio. This ratio is sensitive to both how highly the model scores the relevant parts and to whether the rest of the features are assigned a lower score. We then compute two different types of similarity between the considered images: a semantic one, defined as the cosine distance between the attributes associated to the images’ classes, and an pixelwise one, by measuring the Structural Similarity index (SSIM) between the images. We then measure correlation between the Parts ratio and these measures of similarity. Our interpretation is the following:
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 4: Mutual Information heatmaps allow to understand which local patches contributed the most to the final representation. For each heatmap we plot the absolute values in the rightmost plot and the superposition of the heatmap and the original image on the left, to increase interpretability. Yellow corresponds to higher scores.
|
| 151 |
+
|
| 152 |
+
• Positive correlation with attribute similarity: If two images are semantically similar, the part ratio should be higher if the model manages to extract the common semantically relevant patches (and we know that they are the parts for CUB). • Negative correlation with SSIM score: If a model is too sensitive to pixel similarity, the parts score will be higher for images that are very different, where the only thing in common (pixel-wise) is to depict a bird, while for very similar images the model will just assign a high score to all local features.
|
| 153 |
+
|
| 154 |
+
We find that for VAEs, the ratio and the attribute similarity are not correlated, but the ratio and the SSIM scores correlate negatively. The effect is reversed for Supervised and Self-Supervised models. This confirms our intuition that VAEs and reconstruction models are not well suited to learn representations that generalize in our context. More details about this experiment and the correlation coefficients are reported in the Appendix, in Fig. 10.
|
| 155 |
+
|
| 156 |
+
# 5.3 DO COMPOSITIONAL REPRESENTATIONS PERFORM BETTER FOR ZSL?
|
| 157 |
+
|
| 158 |
+
Intuitively, we expect compositionality to be an advantage: if a model has a good understanding of how parts map to representations, it can learn to combine known concepts to describe new classes. The experiments show:
|
| 159 |
+
|
| 160 |
+
• Measures of implicit compositionality correlate strongly with ZSL performance. Fig. 5 shows the relationship between the TRE ratio introduced in 4.4, and ZSL accuracy. The Pearson correlation coefficients between the TRE Ratio and ZSL Accuracy are the following: -0.90 for CUB, -0.60 for AwA2 and -0.30 for SUN. • The relation is strongest when the attributes are strongly relevant to the image. For the AWA2 and CUB, datasets for which the attributes are semantically very meaningful, we observe that there is a direct relationship between TRE ratio and ZSL performance. This relationship degrades for
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 5: Relationship between TRE ratio and ZSL accuracy for each dataset (lower TRE ratio is better).
|
| 164 |
+
|
| 165 |
+
SUN, for which the attributes are per-image, and averaged over classes, meaning that they are less likely to map to information actually present in a given image.
|
| 166 |
+
|
| 167 |
+
We also consider the effect of combining local representations directly (instead of relying on the global output of the model). Given local representations, there are several ways to employ them to perform classification: one option is to create a final representation by averaging the local ones, another option is to classify each patch separately and then average this predictions.
|
| 168 |
+
|
| 169 |
+
An explicitely compostional model based on local features helps ZSL. The results for this comparison are shown in Fig. 6. Averaging representations can be seen as directly enforcing a notion of compositionality: the representation of the whole input is directly built as a weighted sum of the patch representations (that we can imagine being more similar across different data points) and where the weights are uniform. For CUB, and to a lesser extent AwA2, where only few patches encode important information such as beaks, tails, the effect is quite pronounced. There is less of a difference for SUN, where the object is usually the whole scene, meaning all patches are expected to contribute.
|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
Figure 6: Comparison between averaging representations and averaging predictions. We can see how, for the more local model families, this notion of compositionality is most useful for CUB, where the object of interest is likely only present in few patches.
|
| 173 |
+
|
| 174 |
+
# 6 CONCLUSION AND FUTURE WORK
|
| 175 |
+
|
| 176 |
+
Motivated by the need for more realistic evaluation settings for Zero-Shot Learning methods, we proposed a new evaluation framework where training is strictly performed only on the benchmark data, with no pre-training on additional datasets. In the proposed setting, we hypothesize that locality and compositionality are fundamental ingredients for successful zero-shot generalization. We perform a series of tests of the relationship between these two aspects and zero-shot performance of a diverse set of representations. We find that models that encourage both these aspects, either explicitly (through a penalty per instance) or implicitly by construction, tend to perform better at zero-shot learning. We also find that models that focus on reconstruction tasks fail at capturing the semantic information necessary for good generalization, calling into question their applicability as general representation learning methods.
|
| 177 |
+
|
| 178 |
+
# REFERENCES
|
| 179 |
+
|
| 180 |
+
Zeynep Akata, Scott Reed, Daniel Walter, Honglak Lee, and Bernt Schiele. Evaluation of output embeddings for fine-grained image classification. 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Jun 2015. doi: 10.1109/cvpr.2015.7298911. URL http://dx.doi.org/10.1109/CVPR.2015.7298911.
|
| 181 |
+
|
| 182 |
+
Ferran Alet, Tomas Lozano-P ´ erez, and Leslie P Kaelbling. Modular meta-learning. ´ arXiv preprint arXiv:1806.10166, 2018.
|
| 183 |
+
|
| 184 |
+
Jacob Andreas. Measuring compositionality in representation learning. arXiv preprint arXiv:1902.07181, 2019.
|
| 185 |
+
|
| 186 |
+
Yuval Atzmon and Gal Chechik. Adaptive confidence smoothing for generalized zero-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 11671–11680, 2019.
|
| 187 |
+
|
| 188 |
+
Hossein Azizpour, Ali Sharif Razavian, Josephine Sullivan, Atsuto Maki, and Stefan Carlsson. Factors of transferability for a generic convnet representation. IEEE transactions on pattern analysis and machine intelligence, 38(9):1790–1802, 2015.
|
| 189 |
+
|
| 190 |
+
Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019.
|
| 191 |
+
|
| 192 |
+
Mohamed Ishmael Belghazi, Aristide Baratin, Sai Rajeshwar, Sherjil Ozair, Yoshua Bengio, Aaron Courville, and R. Devon Hjelm. Mutual information neural estimation. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 531–540, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/v80/belghazi18a.html.
|
| 193 |
+
|
| 194 |
+
Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In Advances in neural information processing systems, pp. 137–144, 2007.
|
| 195 |
+
|
| 196 |
+
Irving Biederman. Recognition-by-components: a theory of human image understanding. Psychological review, 94(2):115, 1987.
|
| 197 |
+
|
| 198 |
+
George Boole. An investigation of the laws of thought, on which are founded mathematical theories of logic and probabilities. New York, Dover, 1 edition, 1854.
|
| 199 |
+
|
| 200 |
+
Wieland Brendel and Matthias Bethge. Approximating cnns with bag-of-local-features models works surprisingly well on imagenet. CoRR, abs/1904.00760, 2019a. URL http://arxiv.org/abs/1904.00760.
|
| 201 |
+
|
| 202 |
+
Wieland Brendel and Matthias Bethge. Approximating CNNs with bag-of-local-features models works surprisingly well on imagenet. In International Conference on Learning Representations, 2019b. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } }$ SkfMWhAqYQ.
|
| 203 |
+
|
| 204 |
+
Soravit Changpinyo, Wei-Lun Chao, Boqing Gong, and Fei Sha. Synthesized classifiers for zero-shot learning. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Jun 2016. doi: 10.1109/cvpr.2016.575. URL http://dx.doi.org/10.1109/CVPR.2016.575.
|
| 205 |
+
|
| 206 |
+
Koby Crammer, Michael Kearns, and Jennifer Wortman. Learning from multiple sources. In B. Scholkopf, J. C. Platt, and T. Hoffman (eds.), ¨ Advances in Neural Information Processing Systems 19, pp. 321–328. MIT Press, 2007. URL http://papers.nips.cc/paper/ 2972-learning-from-multiple-sources.pdf.
|
| 207 |
+
|
| 208 |
+
Yin Cui, Yang Song, Chen Sun, Andrew Howard, and Serge Belongie. Large scale fine-grained categorization and domain-specific transfer learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4109–4118, 2018.
|
| 209 |
+
|
| 210 |
+
Carl Doersch and Andrew Zisserman. Multi-task self-supervised visual learning. CoRR, abs/1708.07860, 2017. URL http://arxiv.org/abs/1708.07860.
|
| 211 |
+
|
| 212 |
+
Carl Doersch, Abhinav Gupta, and Alexei A. Efros. Unsupervised visual representation learning by context prediction. CoRR, abs/1505.05192, 2015. URL http://arxiv.org/abs/1505.05192.
|
| 213 |
+
|
| 214 |
+
Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1126–1135. JMLR. org, 2017.
|
| 215 |
+
|
| 216 |
+
Kunihiko Fukushima. Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position. Biological cybernetics, 36(4):193–202, 1980.
|
| 217 |
+
|
| 218 |
+
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.
|
| 219 |
+
|
| 220 |
+
Xiangteng He and Yuxin Peng. Fine-grained image classification via combining vision and language. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5994–6002, 2017.
|
| 221 |
+
|
| 222 |
+
Irina Higgins, Lo¨ıc Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In ICLR, 2017a.
|
| 223 |
+
|
| 224 |
+
Irina Higgins, Nicolas Sonnerat, Loic Matthey, Arka Pal, Christopher P Burgess, Matko Bosnjak, Murray Shanahan, Matthew Botvinick, Demis Hassabis, and Alexander Lerchner. Scan: Learning hierarchical compositional visual concepts. arXiv preprint arXiv:1707.03389, 2017b.
|
| 225 |
+
|
| 226 |
+
R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. 2018.
|
| 227 |
+
|
| 228 |
+
Donald D Hoffman and Whitman A Richards. Parts of recognition. Cognition, 18(1-3):65–96, 1984.
|
| 229 |
+
|
| 230 |
+
Gabriel Huang, Hugo Larochelle, and Simon Lacoste-Julien. Centroid networks for few-shot clustering and unsupervised few-shot classification. arXiv preprint arXiv:1902.08605, 2019.
|
| 231 |
+
|
| 232 |
+
Minyoung Huh, Pulkit Agrawal, and Alexei A Efros. What makes imagenet good for transfer learning? arXiv preprint arXiv:1608.08614, 2016.
|
| 233 |
+
|
| 234 |
+
Jin-Hwa Kim, Jaehyun Jun, and Byoung-Tak Zhang. Bilinear attention networks. In Advances in Neural Information Processing Systems, pp. 1564–1574, 2018.
|
| 235 |
+
|
| 236 |
+
Diederik P Kingma and Max Welling. Auto-Encoding Variational Bayes. arXiv e-prints, art. arXiv:1312.6114, Dec 2013.
|
| 237 |
+
|
| 238 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. CoRR, abs/1609.02907, 2016. URL http://arxiv.org/abs/1609.02907.
|
| 239 |
+
|
| 240 |
+
Elyor Kodirov, Tao Xiang, and Shaogang Gong. Semantic autoencoder for zero-shot learning. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Jul 2017. doi: 10.1109/cvpr.2017.473. URL http://dx.doi.org/10.1109/CVPR.2017.473.
|
| 241 |
+
|
| 242 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 243 |
+
|
| 244 |
+
Hugo Larochelle, Dumitru Erhan, and Yoshua Bengio. Zero-data learning of new tasks. In Proceedings of the 23rd National Conference on Artificial Intelligence - Volume 2, AAAI’08, pp. 646–651. AAAI Press, 2008. ISBN 978-1-57735-368-3. URL http://dl.acm.org/citation.cfm?id=1620163.1620172.
|
| 245 |
+
|
| 246 |
+
Fei-Fei Li, Rob Fergus, and Pietro Perona. One-shot learning of object categories. IEEE transactions on pattern analysis and machine intelligence, 28(4):594–611, 2006.
|
| 247 |
+
|
| 248 |
+
Hengduo Li, Bharat Singh, Mahyar Najibi, Zuxuan Wu, and Larry S. Davis. An analysis of pre-training on object detection, 2019.
|
| 249 |
+
|
| 250 |
+
Linghui Li, Sheng Tang, Lixi Deng, Yongdong Zhang, and Qi Tian. Image caption with global-local attention. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
|
| 251 |
+
|
| 252 |
+
Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, and Ian J. Goodfellow. Adversarial autoencoders. CoRR, abs/1511.05644, 2015. URL http://arxiv.org/abs/1511.05644.
|
| 253 |
+
|
| 254 |
+
Richard Montague. Universal grammar. In Richmond H. Thomason (ed.), Formal Philosophy: Selected Papers of Richard Montague, number 222–247. Yale University Press, New Haven, London, 1974.
|
| 255 |
+
|
| 256 |
+
Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nati Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pp. 5947–5956, 2017.
|
| 257 |
+
|
| 258 |
+
Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. CoRR, abs/1603.09246, 2016. URL http://arxiv.org/abs/1603.09246.
|
| 259 |
+
|
| 260 |
+
Genevieve Patterson and James Hays. Sun attribute database: Discovering, annotating, and recognizing scene attributes. In Proceeding of the 25th Conference on Computer Vision and Pattern Recognition (CVPR), 2012.
|
| 261 |
+
|
| 262 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
|
| 263 |
+
|
| 264 |
+
Scott Reed, Zeynep Akata, Xinchen Yan, Lajanugen Logeswaran, Bernt Schiele, and Honglak Lee. Generative adversarial text to image synthesis. arXiv preprint arXiv:1605.05396, 2016.
|
| 265 |
+
|
| 266 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115 (3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
|
| 267 |
+
|
| 268 |
+
Hidetoshi Shimodaira. Improving predictive inference under covariate shift by weighting the log-likelihood function. Journal of statistical planning and inference, 90(2):227–244, 2000.
|
| 269 |
+
|
| 270 |
+
Jake Snell, Kevin Swersky, and Richard S Zemel. Prototypical networks for few-shot learning. arXiv preprint arXiv:1703.05175, 2017.
|
| 271 |
+
|
| 272 |
+
Austin Stone, Huayan Wang, Michael Stark, Yi Liu, D Scott Phoenix, and Dileep George. Teaching compositionality to cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5058–5067, 2017.
|
| 273 |
+
|
| 274 |
+
Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In Proceedings of the IEEE international conference on computer vision, pp. 843–852, 2017.
|
| 275 |
+
|
| 276 |
+
Ming Sun, Yuchen Yuan, Feng Zhou, and Errui Ding. Multi-attention multi-class constraint for fine-grained image recognition. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 805–821, 2018.
|
| 277 |
+
|
| 278 |
+
Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H.S. Torr, and Timothy M. Hospedales. Learning to compare: Relation network for few-shot learning. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Jun 2018. doi: 10.1109/cvpr.2018.00131. URL http://dx.doi.org/10.1109/cvpr.2018.00131.
|
| 279 |
+
|
| 280 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016.
|
| 281 |
+
|
| 282 |
+
Ran Tian, Naoaki Okazaki, and Kentaro Inui. Learning semantically and additively compositional distributional representations. arXiv preprint arXiv:1606.02461, 2016.
|
| 283 |
+
|
| 284 |
+
Pavel Tokmakov, Yu-Xiong Wang, and Martial Hebert. Learning compositional representations for few-shot recognition. arXiv preprint arXiv:1812.09213, 2018.
|
| 285 |
+
|
| 286 |
+
Petar Velickovi ˇ c, William Fedus, William L Hamilton, Pietro Li ´ o, Yoshua Bengio, and R Devon Hjelm.\` Deep graph infomax. arXiv preprint arXiv:1809.10341, 2018.
|
| 287 |
+
|
| 288 |
+
Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011.
|
| 289 |
+
|
| 290 |
+
Xinsheng Wang, Shanmin Pang, Jihua Zhu, Zhongyu Li, Zhiqiang Tian, and Yaochen Li. Visual space optimization for zero-shot learning. arXiv preprint arXiv:1907.00330, 2019.
|
| 291 |
+
|
| 292 |
+
Yongqin Xian, Christoph H. Lampert, Bernt Schiele, and Zeynep Akata. Zero-shot learning - A comprehensive evaluation of the good, the bad and the ugly. CoRR, abs/1707.00600, 2017. URL http://arxiv.org/abs/1707.00600.
|
| 293 |
+
Yongqin Xian, Christoph H Lampert, Bernt Schiele, and Zeynep Akata. Zero-shot learning-a comprehensive evaluation of the good, the bad and the ugly. IEEE transactions on pattern analysis and machine intelligence, 2018.
|
| 294 |
+
Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In Advances in neural information processing systems, pp. 3320–3328, 2014.
|
| 295 |
+
Adams Wei Yu, David Dohan, Minh-Thang Luong, Rui Zhao, Kai Chen, Mohammad Norouzi, and Quoc V Le. Qanet: Combining local convolution with global self-attention for reading comprehension. arXiv preprint arXiv:1804.09541, 2018.
|
| 296 |
+
Amir R Zamir, Alexander Sax, William Shen, Leonidas J Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3712–3722, 2018.
|
| 297 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
|
| 298 |
+
Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv preprint arXiv:1805.08318, 2018a.
|
| 299 |
+
Li Zhang, Tao Xiang, and Shaogang Gong. Learning a deep embedding model for zero-shot learning. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Jul 2017. doi: 10.1109/cvpr.2017.321. URL http://dx.doi.org/10.1109/CVPR.2017.321.
|
| 300 |
+
Yabin Zhang, Hui Tang, and Kui Jia. Fine-grained visual categorization using meta-learning optimization with sample selection of auxiliary data. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 233–248, 2018b.
|
| 301 |
+
|
| 302 |
+
A.1 EXPLAINING LOCAL AND GLOBAL FEATURES
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
Figure 7: The convolutional encoder takes as input an image and outputs a global representation - used to compute the model loss $\mathcal { L } _ { m o d e l }$ . To encourage locality and compositionality, label or attribute based classification is performed on the activations from early layers $\bar { \mathcal { L } } _ { l o c a l } )$ .
|
| 306 |
+
|
| 307 |
+
A.2 EXPLAINING THE ROLE OF LOCAL AND GLOBAL FEATURES FOR MI COMPUTATION
|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
Figure 8: Local and global features are extracted from different images (where local features are activations from an early layer in the CNN encoder), then scored against each other. A high score means the two are considered likely to be extracted from the same image by the model, giving us insight in what information is encoded by the global representation. A heatmap of the scores is used to make the result interpretable.
|
| 311 |
+
|
| 312 |
+
# B IMPLEMENTATION DETAILS
|
| 313 |
+
|
| 314 |
+
All models used in this paper have been implemented in PyTorch, and code will be made publically available. All images were resized to size $1 2 8 \times 1 2 8$ , random crops with aspect ratio 0.875 were used during training, and center crops with the same ratio were used during test. While most ZSL approaches do not use crops (due to the fact that they used pre-computed features), this experimental setup was shown to be efficient in the field of text to image synthesis (Reed et al., 2016). All models are optimized with Adam with a learning rate of 0.0001 with a batch size of 64. The final output of the encoder was chosen to be 1024 across all models. Local experiments were performed extracting features from the third layer of the network. These features have dimension ${ \bar { 2 } } 7 \times 2 7 \times 3 8 4$ for the AlexNet based encoder and $1 4 \times 1 4 \times 2 5 6$ for the DCGAN encoder.
|
| 315 |
+
|
| 316 |
+
# C MI HEATMAPS COMPARING CMDIM WITH DIFFERENT LOCAL LOSSES
|
| 317 |
+
|
| 318 |
+
In Fig. 9 we show how local losses affect the type of information CMDIM extracts. We can see how in some cases, e.g. the Nashville Warbler and Rusty Blackbird, the label-based local loss (LC) results in the encoder focusing more on the background and missing out on discriminative features. On the other hand, the label-based (LC) local loss helps the model focus on more localised distinctive patches, especially for the Rusty Blackbird and the Rufous Hummingbird.
|
| 319 |
+
|
| 320 |
+
# D PARTS RATIO AND RELATIONSHIP TO DIFFERENT MEASURES OF IMAGE SIMILARITY.
|
| 321 |
+
|
| 322 |
+
In Fig. 10, we plot the Parts ratio against the two different measure of image similarity considered in our experiments and we report the correlation between them across the considered families of models. The correlation was computed over 20.000 pairs of images for each family. While not being a strong correlation, our experiments show how it’s a statistically significant one, with associated p-value (expressing the probability of a not-correlated sample resulting in the reported correlation coefficients) of less than $1 0 ^ { - 6 }$ .
|
| 323 |
+
|
| 324 |
+

|
| 325 |
+
Figure 9: Visualization of locality comparing encoders trained with CMDIM’s loss and the proposed local losses. The Figure highlights the impact of local losses on the content extracted by the encoders.
|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
Figure 10: Relationship between the parts score and different measures of similarity. On the left, the parts scores is plotted against the two different measures of similarity. We can see there is a clear trend for all the models: the parts score increases for more semantically similar images, and decreases as the images become more similar pixel-wise. The figure on the right shows Pearson’s correlation coefficient between the metrics for different models
|
| 329 |
+
|
| 330 |
+

|
| 331 |
+
Figure 11: Comparing pre and post-pooling (respectively Small and $B i g$ ) features in terms of ZSL accuracy. The effect of a varying receptive field size strongly depends on the model type and on the dataset, highlighting how locality is expressed differently in the datasets.
|
| 332 |
+
|
| 333 |
+
# E HOW LOCAL DO THE REPRESENTATIONS NEED TO BE?
|
| 334 |
+
|
| 335 |
+
A somewhat alternative way to test if local information is relevant for generalization is to explicitly only consider local information. To achieve this, we consider performing classification directly on features whose receptive field doesn’t cover the entire image. In our experiments we consider the features extracted from the AlexNet based encoder right before the flattening and final linear layers. To see the effect of varying the receptive field, we perform the same experiment and pre and post last pooling layer, going from a receptive field of 65 pixels (referred to as small in the plots) to 85 pixels (big), out of 128 in the original input. The way these local prediction are combined is described in the following section. The results are summarized in Fig. 11. We can see how the dataset seems to make quite a difference for class-matching DIM that benefits from pooling for the datasets where usually the object is in a small part of input, while for SUN, where the whole image tends to be relevant as the images depict scenes, pooling either does not affect or has a negative effect on performance. For reconstruction based models on the other side we see a different trend, where not performing pooling consistently results in better performance across all datasets.
|
| 336 |
+
|
| 337 |
+
# F BIRD PARTS LOCATION MAPS
|
| 338 |
+
|
| 339 |
+
The parts annotations provided with the CUB dataset give us the ability to explicitly quantify whether the encoder is learning to extract meaningful local information. To evaluate this, we train a classifier for each part, that takes as input local features extracted from a specific layer of the CNN encoder and outputs the probability of that part being present within the receptive field of the local feature. To construct a ground truth for this evaluation, we pre-process the parts clicks annotations as follows: the datasets provides, for each input and part, a list of multiple parts location as perceived by multiple MTurk workers. Each annotation is provided as $( x , y )$ coordinates of the center of the part and a boolean feature visible indicating whether the part is hidden in the considered input. The ground truth for the classifiers is obtained by converting each part annotation into a boolean semantic map, where a truth value is assigned to a square of side 10 pixels centered in all the locations provided by different MTurk users for each part when visible. This process is repeated separately for all the 15 parts. The obtained boolean masks are then processed through a CNN to project them to the size compatible with the extracted features, so that the classifier’s loss can be computed. Importantly, this loss is never backpropagated through the encoder, as these classifiers are meant to only evaluate whether the considered local features are predictive of the parts.
|
| 340 |
+
|
| 341 |
+
# G CLASS MATCHING DIM
|
| 342 |
+
|
| 343 |
+
Deep InfoMax (Hjelm et al., 2018) is a self-supervised representation learning algorithm that is trained by maximizing Mutual Information (MI) between local and global features extracted from the network. More specifically, DIM’s objective is a lower bound to MI based on the Donsker-Varadhan representation of the KL divergence that computes two expectations: one over the joint distribution of local and global features, and one over the product of the marginals. In the original DIM setting, samples from the joint distribution (positive samples) are defined as local-global pairs extracted from the same input, while for the product of marginals (negative samples) local and global features are extracted from different inputs.
|
| 344 |
+
|
| 345 |
+
Class Matching DIM performs a similar operation, but samples from the joint distribution are defined to be pairs of local-global features extracted from different inputs belonging to the same class, and negative samples are pairs where features are extracted from inputs of different classes. Moreover, we add a hyper-parameter $p$ that allows to control the interplay between DIM and CMDIM, so that positive samples are extracted from inputs of the same class with probability $p$ and from the same input otherwise. Intuitively, this would push the encoder to extract features relevant to a specific input while identifying what features are shared across a single class.
|
| 346 |
+
|
| 347 |
+
# H DEFINITION OF TRE
|
| 348 |
+
|
| 349 |
+
We introduce the following notations:
|
| 350 |
+
|
| 351 |
+
• $\mathcal { X }$ is a dataset, split into train ${ \mathcal { X } } _ { \mathrm { t r } }$ and test $\mathcal { X } _ { \mathrm { t e } }$ sets.
|
| 352 |
+
• For $x \in \mathcal { X }$ belonging to a class with binary attributes $a _ { i }$ (for continuous attributes we threshold them beforehand), we define $D ( x )$ to be the set of 1-valued attributes (present attributes).
|
| 353 |
+
• Each attribute $a _ { i }$ is assigned a learnable vector representation $f _ { \eta } ( \mathbf { a } _ { i } ) = \eta _ { i }$ .
|
| 354 |
+
• $\delta ( \cdot , \cdot )$ is a distance function, chosen to be cosine similarity as in Andreas (2019).
|
| 355 |
+
|
| 356 |
+
As in Andreas (2019) we combine individual attribute representations by summation:
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
f _ { \eta } ( D ( x ) ) = \sum _ { \mathbf { a } _ { i } \in D ( x ) } f _ { \eta } ( \mathbf { a } _ { i } )
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
We can now define:
|
| 363 |
+
|
| 364 |
+
$$
|
| 365 |
+
\begin{array} { c } { { \mathrm { T R E } ( x , { \bf a } ; \eta ) = \delta \Big ( f _ { \eta } ( x ) , f _ { \eta } ( D ( x ) ) \Big ) } } \\ { { \mathrm { T R E } ( \mathcal { X } , { \bf a } ; \eta ) = \displaystyle \frac { 1 } { | \mathcal { X } | } \sum _ { x \in \mathcal { X } } \mathrm { T R E } ( x , { \bf a } ; \eta ) } } \end{array}
|
| 366 |
+
$$
|
| 367 |
+
|
| 368 |
+
We compute $\begin{array} { r } { \eta { = } \mathrm { a r g m i n } _ { \eta ^ { \prime } } \mathrm { T R E } ( \mathcal { X } _ { \mathrm { t r } } , \mathbf { a } ; \eta ^ { \prime } ) } \end{array}$ and omit it in what follows by abuse of notations.
|
| 369 |
+
|
| 370 |
+
# I ARCHITECTURES AND DATASETS DETAILS
|
| 371 |
+
|
| 372 |
+
Table 1: Details of the datasets used
|
| 373 |
+
|
| 374 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>#Images</td><td rowspan=1 colspan=1>#Attributes</td><td rowspan=1 colspan=1>#Classes</td><td rowspan=1 colspan=1>#Train classes</td><td rowspan=1 colspan=1>#Testclasses</td></tr><tr><td rowspan=1 colspan=1>CUB</td><td rowspan=1 colspan=1>11,788</td><td rowspan=1 colspan=1>312</td><td rowspan=1 colspan=1>200</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>50</td></tr><tr><td rowspan=1 colspan=1>AWA</td><td rowspan=1 colspan=1>30,475</td><td rowspan=1 colspan=1>85</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>10</td></tr><tr><td rowspan=1 colspan=1>SUN</td><td rowspan=1 colspan=1>14,340</td><td rowspan=1 colspan=1>102</td><td rowspan=1 colspan=1>717</td><td rowspan=1 colspan=1>645</td><td rowspan=1 colspan=1>72</td></tr></table>
|
| 375 |
+
|
| 376 |
+
Table 2: Basic $1 2 8 \mathrm { x } 1 2 8$ architecture details.
|
| 377 |
+
|
| 378 |
+
<table><tr><td>Layer</td><td>Layer type</td><td>Layer params</td><td>pooling</td><td>activation</td></tr><tr><td>0 1 2 3 4</td><td>conv conv conv conv</td><td>(64,4,2,1),batch norm (128,4,2,1),batch norm (256,4,2,1),batch norm (512,4,2,1), batch norm (1024,4,2,1),batch norm</td><td>1</td><td>ReLU ReLU ReLU ReLU</td></tr></table>
|
| 379 |
+
|
| 380 |
+
Table 3: AlexNet 128x128 architecture details.
|
| 381 |
+
|
| 382 |
+
<table><tr><td>Layer</td><td>Layer type</td><td>Layer params</td><td>pooling</td><td>activation</td></tr><tr><td>0 1</td><td>conv</td><td>(96,3,1,1),batch norm</td><td>(MaxPool2d,3,2)</td><td>ReLU ReLU</td></tr><tr><td>2</td><td>conv conv</td><td>(192,3,1,1),batch norm (384,3,1,1), batch norm</td><td>(MaxPool2d,3,2)</td><td>ReLU</td></tr><tr><td>3</td><td></td><td>(384,3,1,1),batch norm</td><td>1</td><td>ReLU</td></tr><tr><td>4</td><td>conv</td><td>(192,3,1,1),batch norm</td><td>(MaxPool2d,3,2)</td><td>ReLU</td></tr><tr><td>5</td><td>conv conv</td><td>(192,3,1,1),batch norm</td><td>(MaxPool2d, 3,2)</td><td>ReLU</td></tr><tr><td>6</td><td>flatten</td><td></td><td></td><td>=</td></tr><tr><td>7</td><td>linear</td><td>(4096,), batch norm</td><td></td><td>ReLU</td></tr><tr><td>8</td><td>linear</td><td>(4096,), batch norm</td><td></td><td>ReLU</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 383 |
+
|
| 384 |
+
# J TRE RATIO VALUES
|
| 385 |
+
|
| 386 |
+
Table 4: TRE ratio values for the CUB dataset
|
| 387 |
+
|
| 388 |
+
<table><tr><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1>Normal</td><td rowspan=1 colspan=3>AC</td><td rowspan=1 colspan=1>LC</td><td rowspan=1 colspan=1>Normal_a</td><td rowspan=1 colspan=1>AC_a</td><td rowspan=1 colspan=1>LC_a</td></tr><tr><td rowspan=1 colspan=3>Model</td><td rowspan=1 colspan=5>Basic</td><td rowspan=1 colspan=3>Alex</td></tr><tr><td rowspan=2 colspan=3>classifier_fullvae</td><td rowspan=1 colspan=1>0.761</td><td rowspan=1 colspan=3>0.737</td><td rowspan=1 colspan=1>0.807</td><td rowspan=1 colspan=1>0.758</td><td rowspan=1 colspan=1>0.787</td><td rowspan=1 colspan=1>0.758</td></tr><tr><td rowspan=6 colspan=3>vaevae_betaaaelocal_dimlocal_twopasslocal_twopass_class_matching</td><td rowspan=1 colspan=1>vae</td><td rowspan=1 colspan=3>1.062</td><td rowspan=1 colspan=1>1.042</td><td rowspan=1 colspan=1>1.066</td><td rowspan=3 colspan=1>1.1111.121.003</td><td rowspan=3 colspan=1>1.0791.0870.974</td></tr><tr><td rowspan=1 colspan=1>1.04</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>1.044</td><td rowspan=1 colspan=1>1.044</td><td></td></tr><tr><td rowspan=1 colspan=1>1.011</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=2>0.989</td><td rowspan=1 colspan=1>1.036</td><td></td></tr><tr><td rowspan=1 colspan=1>0.771</td><td rowspan=1 colspan=3>0.875</td><td rowspan=1 colspan=1>0.798</td><td rowspan=1 colspan=1>0.755</td><td rowspan=1 colspan=1>0.783</td><td rowspan=2 colspan=1>0.7250.739</td></tr><tr><td rowspan=1 colspan=1>0.881</td><td rowspan=1 colspan=3>0.913</td><td rowspan=1 colspan=1>0.85</td><td rowspan=1 colspan=1>0.762</td><td rowspan=1 colspan=1>0.804</td></tr><tr><td rowspan=1 colspan=1>0.639</td><td rowspan=1 colspan=3>0.633</td><td rowspan=1 colspan=1>0.752</td><td rowspan=1 colspan=1>0.676</td><td rowspan=1 colspan=1>0.649</td><td rowspan=1 colspan=1>0.624</td></tr></table>
|
| 389 |
+
|
| 390 |
+
Table 5: TRE ratio values for the AWA2 dataset
|
| 391 |
+
|
| 392 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Normal</td><td rowspan=1 colspan=2>AC</td><td rowspan=1 colspan=1>LC</td><td rowspan=1 colspan=1>Normal_a</td><td rowspan=1 colspan=1>AC_a</td><td rowspan=1 colspan=1>LC_a</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=4>Basic</td><td rowspan=1 colspan=3>Alex</td></tr><tr><td rowspan=7 colspan=1>classifier_fullvaevae_betaaaelocal_dimlocal_twopasslocal_twopass_class_matching</td><td rowspan=1 colspan=1>0.88</td><td rowspan=1 colspan=2>0.873</td><td rowspan=1 colspan=1>0.913</td><td rowspan=1 colspan=1>0.882</td><td rowspan=1 colspan=1>0.878</td><td rowspan=1 colspan=1>0.909</td></tr><tr><td rowspan=1 colspan=1>1.395</td><td rowspan=1 colspan=2>1.292</td><td rowspan=1 colspan=1>1.379</td><td rowspan=1 colspan=1>1.566</td><td rowspan=2 colspan=1>1.4991.485</td><td rowspan=2 colspan=1>1.6811.567</td></tr><tr><td rowspan=2 colspan=1>1.3250.886</td><td rowspan=2 colspan=2>1.330.941</td><td rowspan=1 colspan=1>1.33</td><td rowspan=1 colspan=1>1.372</td><td rowspan=1 colspan=1>1.631</td><td rowspan=1 colspan=1>1.485</td><td rowspan=2 colspan=1>1.5670.913</td></tr><tr><td rowspan=1 colspan=1>0.986</td><td rowspan=1 colspan=1>1.282</td><td rowspan=1 colspan=1>0.945</td></tr><tr><td rowspan=1 colspan=1>1.211</td><td rowspan=1 colspan=2>1.206</td><td rowspan=1 colspan=1>1.174</td><td rowspan=1 colspan=1>1.154</td><td rowspan=1 colspan=1>1.264</td><td rowspan=1 colspan=1>1.062</td></tr><tr><td rowspan=2 colspan=1>1.1030.996</td><td rowspan=1 colspan=2>1.072</td><td rowspan=1 colspan=1>1.093</td><td rowspan=1 colspan=1>1.151</td><td rowspan=1 colspan=1>0.998</td><td rowspan=1 colspan=1>1.105</td></tr><tr><td rowspan=1 colspan=2>1.155</td><td rowspan=1 colspan=1>0.887</td><td rowspan=1 colspan=1>1.054</td><td rowspan=1 colspan=1>1.118</td><td rowspan=1 colspan=1>1.07</td></tr></table>
|
| 393 |
+
|
| 394 |
+
Table 6: TRE ratio values for the SUN dataset
|
| 395 |
+
|
| 396 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Normal</td><td rowspan=1 colspan=1>AC</td><td rowspan=1 colspan=1>LC</td><td rowspan=1 colspan=2>Normal_a</td><td rowspan=1 colspan=2>AC_a</td><td rowspan=1 colspan=1>LC_a</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=4>Basic</td><td rowspan=1 colspan=5>Alex</td></tr><tr><td rowspan=7 colspan=1>classifier_fullvaevae_betaaaelocal_dimlocal_twopasslocal_twopass_class_matching</td><td rowspan=1 colspan=2>0.85</td><td rowspan=1 colspan=1>0.803</td><td rowspan=1 colspan=1>0.82</td><td rowspan=1 colspan=2>0.839</td><td rowspan=1 colspan=2>0.794</td><td rowspan=1 colspan=1>0.848</td></tr><tr><td rowspan=3 colspan=2>1.0050.9890.963</td><td rowspan=1 colspan=1>1.005</td><td rowspan=1 colspan=1>1.002</td><td rowspan=1 colspan=2>1.04</td><td rowspan=1 colspan=2>1.036</td><td rowspan=1 colspan=1>1.035</td></tr><tr><td rowspan=1 colspan=1>0.989</td><td rowspan=2 colspan=1>0.9950.976</td><td rowspan=1 colspan=1>0.989</td><td rowspan=2 colspan=2>1.0380.954</td><td rowspan=2 colspan=2>1.0310.926</td><td rowspan=2 colspan=1>1.0310.958</td></tr><tr><td rowspan=1 colspan=1>0.975</td></tr><tr><td rowspan=1 colspan=2>1.132</td><td rowspan=1 colspan=1>0.977</td><td rowspan=1 colspan=1>1.043</td><td></td><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>0.995</td><td rowspan=1 colspan=1>1.036</td></tr><tr><td rowspan=1 colspan=2>1.047</td><td rowspan=1 colspan=1>0.912</td><td rowspan=1 colspan=1>0.969</td><td rowspan=2 colspan=2>1.1230.859</td><td rowspan=2 colspan=2>1.0420.82</td><td rowspan=2 colspan=1>1.0570.956</td></tr><tr><td rowspan=1 colspan=2>0.832</td><td rowspan=1 colspan=1>0.755</td><td rowspan=1 colspan=1>0.877</td></tr></table>
|
| 397 |
+
|
| 398 |
+
# K F1 PART AVERAGE SCORES
|
| 399 |
+
|
| 400 |
+
Table 7: Part average F1 score, CUB dataset, basic encoder.
|
| 401 |
+
|
| 402 |
+
<table><tr><td rowspan=1 colspan=1>Loss</td><td rowspan=1 colspan=1>Normal</td><td rowspan=2 colspan=2>Normal AC LC</td></tr><tr><td rowspan=1 colspan=1>Model</td><td></td></tr><tr><td rowspan=1 colspan=1>FC</td><td rowspan=1 colspan=1>0.198</td><td rowspan=1 colspan=1>0.368</td><td rowspan=1 colspan=1>0.284</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>0.07</td><td rowspan=1 colspan=1>0.334</td><td rowspan=1 colspan=1>0.265</td></tr><tr><td rowspan=1 colspan=1>beta-VAE</td><td rowspan=1 colspan=1>0.067</td><td rowspan=1 colspan=1>0.353</td><td rowspan=1 colspan=1>0.255</td></tr><tr><td rowspan=1 colspan=1>AAE</td><td rowspan=1 colspan=1>0.086</td><td rowspan=1 colspan=1>0.085</td><td rowspan=1 colspan=1>0.024</td></tr><tr><td rowspan=1 colspan=1>DIM</td><td rowspan=1 colspan=1>0.235</td><td rowspan=1 colspan=1>0.393</td><td rowspan=1 colspan=1>0.304</td></tr><tr><td rowspan=1 colspan=1>AMDIM</td><td rowspan=1 colspan=1>0.311</td><td rowspan=1 colspan=1>0.406</td><td rowspan=1 colspan=1>0.319</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=1)</td><td rowspan=1 colspan=1>0.313</td><td rowspan=1 colspan=1>0.406</td><td rowspan=1 colspan=1>0.314</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.5)</td><td rowspan=1 colspan=1>0.295</td><td rowspan=1 colspan=1>0.397</td><td rowspan=1 colspan=1>0.321</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.1)</td><td rowspan=1 colspan=1>0.315</td><td rowspan=1 colspan=1>0.382</td><td rowspan=1 colspan=1>0.312</td></tr><tr><td rowspan=1 colspan=1>PN</td><td rowspan=1 colspan=1>0.288</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr></table>
|
| 403 |
+
|
| 404 |
+
Table 8: ZSL accuracy, comparing the different local losses.
|
| 405 |
+
|
| 406 |
+
<table><tr><td rowspan=1 colspan=2>Encoder</td><td rowspan=1 colspan=3>alex128x128</td><td rowspan=1 colspan=3>basic128x128</td></tr><tr><td rowspan=1 colspan=2>Loss</td><td rowspan=1 colspan=1>Normal</td><td rowspan=2 colspan=4>AC LC Normal AC</td><td rowspan=1 colspan=1>LC</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>FC</td><td rowspan=10 colspan=1>CUB</td><td rowspan=1 colspan=1>30.47</td><td rowspan=1 colspan=1>34.92</td><td rowspan=1 colspan=1>32.40</td><td rowspan=1 colspan=1>27.44</td><td rowspan=1 colspan=1>32.17</td><td rowspan=1 colspan=1>30.44</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>12.08</td><td rowspan=1 colspan=1>13.41</td><td rowspan=1 colspan=1>12.51</td><td rowspan=1 colspan=1>12.13</td><td rowspan=1 colspan=1>13.46</td><td rowspan=1 colspan=1>10.27</td></tr><tr><td rowspan=1 colspan=1>beta-VAE</td><td rowspan=1 colspan=1>11.75</td><td rowspan=1 colspan=1>11.77</td><td rowspan=1 colspan=1>12.33</td><td rowspan=1 colspan=1>12.03</td><td rowspan=1 colspan=1>12.85</td><td rowspan=1 colspan=1>12.52</td></tr><tr><td rowspan=1 colspan=1>AAE</td><td rowspan=1 colspan=1>15.16</td><td rowspan=1 colspan=1>15.00</td><td rowspan=1 colspan=1>15.49</td><td rowspan=1 colspan=1>9.12</td><td rowspan=1 colspan=1>12.36</td><td rowspan=1 colspan=1>9.80</td></tr><tr><td rowspan=1 colspan=1>DIM</td><td rowspan=1 colspan=1>23.93</td><td rowspan=1 colspan=1>33.35</td><td rowspan=1 colspan=1>31.84</td><td rowspan=1 colspan=1>24.42</td><td rowspan=1 colspan=1>32.54</td><td rowspan=1 colspan=1>29.17</td></tr><tr><td rowspan=1 colspan=1>AMDIM</td><td rowspan=1 colspan=1>24.34</td><td rowspan=1 colspan=1>29.05</td><td rowspan=1 colspan=1>31.12</td><td rowspan=1 colspan=1>24.42</td><td rowspan=1 colspan=1>30.29</td><td rowspan=1 colspan=1>28.83</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=1)</td><td rowspan=1 colspan=1>35.80</td><td rowspan=1 colspan=1>40.11</td><td rowspan=1 colspan=1>32.31</td><td rowspan=1 colspan=1>29.24</td><td rowspan=1 colspan=1>30.08</td><td rowspan=1 colspan=1>30.04</td></tr><tr><td rowspan=1 colspan=1>CMDIM(p=0.5)</td><td rowspan=1 colspan=1>35.12</td><td rowspan=1 colspan=1>37.02</td><td rowspan=1 colspan=1>35.27</td><td rowspan=1 colspan=1>29.67</td><td rowspan=1 colspan=1>35.15</td><td rowspan=1 colspan=1>31.06</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.1)</td><td rowspan=1 colspan=1>29.83</td><td rowspan=1 colspan=1>33.60</td><td rowspan=1 colspan=1>33.02</td><td rowspan=1 colspan=1>27.03</td><td rowspan=1 colspan=1>32.35</td><td rowspan=1 colspan=1>31.14</td></tr><tr><td rowspan=1 colspan=1>PN</td><td rowspan=1 colspan=1>37.59</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>26.29</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>-</td></tr><tr><td rowspan=1 colspan=1>FC</td><td rowspan=10 colspan=1>AWA2</td><td rowspan=1 colspan=1>46.48</td><td rowspan=1 colspan=1>52.81</td><td rowspan=1 colspan=1>46.04</td><td rowspan=1 colspan=1>45.94</td><td rowspan=1 colspan=1>45.98</td><td rowspan=1 colspan=1>46.09</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>29.17</td><td rowspan=1 colspan=1>28.54</td><td rowspan=1 colspan=1>28.76</td><td rowspan=1 colspan=1>30.02</td><td rowspan=1 colspan=1>29.60</td><td rowspan=1 colspan=1>29.48</td></tr><tr><td rowspan=1 colspan=1>beta-VAE</td><td rowspan=1 colspan=1>29.98</td><td rowspan=1 colspan=1>30.11</td><td rowspan=1 colspan=1>29.22</td><td rowspan=1 colspan=1>29.00</td><td rowspan=1 colspan=1>29.47</td><td rowspan=1 colspan=1>29.94</td></tr><tr><td rowspan=1 colspan=1>AAE</td><td rowspan=1 colspan=1>32.07</td><td rowspan=1 colspan=1>29.46</td><td rowspan=1 colspan=1>30.93</td><td rowspan=1 colspan=1>31.94</td><td rowspan=1 colspan=1>29.31</td><td rowspan=1 colspan=1>31.85</td></tr><tr><td rowspan=1 colspan=1>DIM</td><td rowspan=1 colspan=1>38.73</td><td rowspan=1 colspan=1>45.54</td><td rowspan=1 colspan=1>43.89</td><td rowspan=1 colspan=1>39.63</td><td rowspan=1 colspan=1>44.23</td><td rowspan=1 colspan=1>44.32</td></tr><tr><td rowspan=1 colspan=1>AMDIM</td><td rowspan=1 colspan=1>42.84</td><td rowspan=1 colspan=1>45.41</td><td rowspan=1 colspan=1>46.95</td><td rowspan=1 colspan=1>42.04</td><td rowspan=1 colspan=1>49.01</td><td rowspan=1 colspan=1>43.77</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=1)</td><td rowspan=1 colspan=1>45.80</td><td rowspan=1 colspan=1>46.56</td><td rowspan=1 colspan=1>42.14</td><td rowspan=1 colspan=1>46.87</td><td rowspan=1 colspan=1>45.00</td><td rowspan=1 colspan=1>39.70</td></tr><tr><td rowspan=1 colspan=1>CMDIM(p=0.5)</td><td rowspan=1 colspan=1>46.87</td><td rowspan=1 colspan=1>48.06</td><td rowspan=1 colspan=1>48.45</td><td rowspan=1 colspan=1>46.87</td><td rowspan=1 colspan=1>47.92</td><td rowspan=1 colspan=1>45.63</td></tr><tr><td rowspan=1 colspan=1>CMDIM(p=0.1)</td><td rowspan=1 colspan=1>47.29</td><td rowspan=1 colspan=1>51.51</td><td rowspan=1 colspan=1>50.17</td><td rowspan=1 colspan=1>45.71</td><td rowspan=1 colspan=1>49.51</td><td rowspan=1 colspan=1>48.01</td></tr><tr><td rowspan=1 colspan=1>PN</td><td rowspan=1 colspan=1>46.53</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>45.23</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>-</td></tr><tr><td rowspan=1 colspan=1>FC</td><td rowspan=10 colspan=1>SUN</td><td rowspan=1 colspan=1>33.02</td><td rowspan=1 colspan=1>36.89</td><td rowspan=1 colspan=1>37.57</td><td rowspan=1 colspan=1>32.20</td><td rowspan=1 colspan=1>38.79</td><td rowspan=1 colspan=1>32.74</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>14.61</td><td rowspan=1 colspan=1>15.08</td><td rowspan=1 colspan=1>14.33</td><td rowspan=1 colspan=1>15.14</td><td rowspan=1 colspan=1>16.58</td><td rowspan=1 colspan=1>15.22</td></tr><tr><td rowspan=1 colspan=1>beta-VAE</td><td rowspan=1 colspan=1>13.80</td><td rowspan=1 colspan=1>14.20</td><td rowspan=1 colspan=1>13.79</td><td rowspan=1 colspan=1>15.08</td><td rowspan=1 colspan=1>15.29</td><td rowspan=1 colspan=1>16.58</td></tr><tr><td rowspan=1 colspan=1>AAE</td><td rowspan=1 colspan=1>17.93</td><td rowspan=1 colspan=1>16.78</td><td rowspan=1 colspan=1>17.86</td><td rowspan=1 colspan=1>18.55</td><td rowspan=1 colspan=1>18.41</td><td rowspan=1 colspan=1>18.13</td></tr><tr><td rowspan=1 colspan=1>DIM</td><td rowspan=1 colspan=1>31.73</td><td rowspan=1 colspan=1>39.06</td><td rowspan=1 colspan=1>37.64</td><td rowspan=1 colspan=1>33.69</td><td rowspan=1 colspan=1>41.44</td><td rowspan=1 colspan=1>38.52</td></tr><tr><td rowspan=1 colspan=1>AMDIM</td><td rowspan=1 colspan=1>38.04</td><td rowspan=1 colspan=1>41.44</td><td rowspan=1 colspan=1>39.67</td><td rowspan=1 colspan=1>37.64</td><td rowspan=1 colspan=1>42.26</td><td rowspan=1 colspan=1>38.19</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=1)</td><td rowspan=1 colspan=1>35.73</td><td rowspan=1 colspan=1>37.43</td><td rowspan=1 colspan=1>32.81</td><td rowspan=1 colspan=1>34.44</td><td rowspan=1 colspan=1>37.98</td><td rowspan=1 colspan=1>31.18</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.5)</td><td rowspan=1 colspan=1>37.43</td><td rowspan=1 colspan=1>40.15</td><td rowspan=1 colspan=1>36.62</td><td rowspan=1 colspan=1>35.39</td><td rowspan=1 colspan=1>39.74</td><td rowspan=1 colspan=1>34.10</td></tr><tr><td rowspan=1 colspan=1>CMDIM(p=0.1)</td><td rowspan=1 colspan=1>40.01</td><td rowspan=1 colspan=1>42.05</td><td rowspan=1 colspan=1>38.51</td><td rowspan=1 colspan=1>40.56</td><td rowspan=1 colspan=1>43.13</td><td rowspan=1 colspan=1>38.93</td></tr><tr><td rowspan=1 colspan=1>PN</td><td rowspan=1 colspan=1>32.00</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>29.82</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>1</td></tr></table>
|
| 407 |
+
|
| 408 |
+
Table 9: ZSL accuracy, comparing the different local models.
|
| 409 |
+
|
| 410 |
+
<table><tr><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>Average before</td><td rowspan=1 colspan=2>Averageafter</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>pool</td><td rowspan=1 colspan=1>no pool</td><td rowspan=1 colspan=1>pool</td><td rowspan=1 colspan=1>no pool</td></tr><tr><td rowspan=1 colspan=1>FC</td><td rowspan=9 colspan=1>CUB</td><td rowspan=1 colspan=1>28.55</td><td rowspan=1 colspan=1>21.45</td><td rowspan=1 colspan=1>13.02</td><td rowspan=1 colspan=1>11.75</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>8.37</td><td rowspan=1 colspan=1>8.06</td><td rowspan=1 colspan=1>8.33</td><td rowspan=1 colspan=1>8.15</td></tr><tr><td rowspan=1 colspan=1>beta-VAE</td><td rowspan=1 colspan=1>8.04</td><td rowspan=1 colspan=1>8.77</td><td rowspan=1 colspan=1>7.91</td><td rowspan=1 colspan=1>8.02</td></tr><tr><td rowspan=1 colspan=1>AAE</td><td rowspan=1 colspan=1>8.20</td><td rowspan=1 colspan=1>7.37</td><td rowspan=1 colspan=1>7.28</td><td rowspan=1 colspan=1>6.84</td></tr><tr><td rowspan=1 colspan=1>DIM</td><td rowspan=1 colspan=1>18.48</td><td rowspan=1 colspan=1>14.39</td><td rowspan=1 colspan=1>15.07</td><td rowspan=1 colspan=1>11.81</td></tr><tr><td rowspan=1 colspan=1>AMDIM</td><td rowspan=1 colspan=1>21.45</td><td rowspan=1 colspan=1>17.68</td><td rowspan=1 colspan=1>16.67</td><td rowspan=1 colspan=1>14.04</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=1)</td><td rowspan=1 colspan=1>34.11</td><td rowspan=1 colspan=1>22.16</td><td rowspan=1 colspan=1>13.51</td><td rowspan=1 colspan=1>15.17</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.5)</td><td rowspan=1 colspan=1>33.48</td><td rowspan=1 colspan=1>22.88</td><td rowspan=1 colspan=1>19.07</td><td rowspan=1 colspan=1>16.35</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.1)</td><td rowspan=1 colspan=1>26.17</td><td rowspan=1 colspan=1>19.23</td><td rowspan=1 colspan=1>18.38</td><td rowspan=1 colspan=1>15.89</td></tr><tr><td rowspan=1 colspan=1>FC</td><td rowspan=9 colspan=1>AWA2</td><td rowspan=1 colspan=1>48.57</td><td rowspan=1 colspan=1>46.95</td><td rowspan=1 colspan=1>38.90</td><td rowspan=1 colspan=1>41.98</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>26.36</td><td rowspan=1 colspan=1>30.04</td><td rowspan=1 colspan=1>25.47</td><td rowspan=1 colspan=1>26.37</td></tr><tr><td rowspan=1 colspan=1>beta-VAE</td><td rowspan=1 colspan=1>24.78</td><td rowspan=1 colspan=1>26.32</td><td rowspan=1 colspan=1>27.63</td><td rowspan=1 colspan=1>27.11</td></tr><tr><td rowspan=1 colspan=1>AAE</td><td rowspan=1 colspan=1>26.74</td><td rowspan=1 colspan=1>23.59</td><td rowspan=1 colspan=1>26.08</td><td rowspan=1 colspan=1>25.23</td></tr><tr><td rowspan=1 colspan=1>DIM</td><td rowspan=1 colspan=1>35.37</td><td rowspan=1 colspan=1>34.77</td><td rowspan=1 colspan=1>33.54</td><td rowspan=1 colspan=1>33.99</td></tr><tr><td rowspan=1 colspan=1>AMDIM</td><td rowspan=1 colspan=1>41.37</td><td rowspan=1 colspan=1>41.34</td><td rowspan=1 colspan=1>40.57</td><td rowspan=1 colspan=1>37.12</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=1)</td><td rowspan=1 colspan=1>49.66</td><td rowspan=1 colspan=1>46.26</td><td rowspan=1 colspan=1>48.16</td><td rowspan=1 colspan=1>42.57</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.5)</td><td rowspan=1 colspan=1>49.17</td><td rowspan=1 colspan=1>45.99</td><td rowspan=1 colspan=1>45.90</td><td rowspan=1 colspan=1>43.28</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.1)</td><td rowspan=1 colspan=1>50.95</td><td rowspan=1 colspan=1>44.26</td><td rowspan=1 colspan=1>44.90</td><td rowspan=1 colspan=1>37.79</td></tr><tr><td rowspan=1 colspan=1>FC</td><td rowspan=9 colspan=1>SUN</td><td rowspan=1 colspan=1>33.97</td><td rowspan=1 colspan=1>34.31</td><td rowspan=1 colspan=1>32.13</td><td rowspan=1 colspan=1>32.15</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>11.48</td><td rowspan=1 colspan=1>12.84</td><td rowspan=1 colspan=1>10.73</td><td rowspan=1 colspan=1>10.14</td></tr><tr><td rowspan=1 colspan=1>beta-VAE</td><td rowspan=1 colspan=1>11.96</td><td rowspan=1 colspan=1>14.06</td><td rowspan=1 colspan=1>11.89</td><td rowspan=1 colspan=1>13.06</td></tr><tr><td rowspan=1 colspan=1>AAE</td><td rowspan=1 colspan=1>9.38</td><td rowspan=1 colspan=1>11.07</td><td rowspan=1 colspan=1>9.31</td><td rowspan=1 colspan=1>11.32</td></tr><tr><td rowspan=1 colspan=1>DIM</td><td rowspan=1 colspan=1>25.82</td><td rowspan=1 colspan=1>26.83</td><td rowspan=1 colspan=1>24.80</td><td rowspan=1 colspan=1>25.56</td></tr><tr><td rowspan=1 colspan=1>AMDIM</td><td rowspan=1 colspan=1>34.04</td><td rowspan=1 colspan=1>35.19</td><td rowspan=1 colspan=1>34.51</td><td rowspan=1 colspan=1>34.58</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=1)</td><td rowspan=1 colspan=1>37.02</td><td rowspan=1 colspan=1>36.75</td><td rowspan=1 colspan=1>33.70</td><td rowspan=1 colspan=1>36.53</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.5)</td><td rowspan=1 colspan=1>37.98</td><td rowspan=1 colspan=1>38.93</td><td rowspan=1 colspan=1>35.53</td><td rowspan=1 colspan=1>37.29</td></tr><tr><td rowspan=1 colspan=1>CMDIM (p=0.1)</td><td rowspan=1 colspan=1>35.73</td><td rowspan=1 colspan=1>35.60</td><td rowspan=1 colspan=1>34.58</td><td rowspan=1 colspan=1>36.39</td></tr></table>
|
| 411 |
+
|
| 412 |
+

|
| 413 |
+
Figure 12: Comparison between averaging representations VS averaging scores for all models.
|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
Figure 13: Comparison between small and big receptive field for all models.
|
parse/train/Hye_V0NKwr/Hye_V0NKwr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hye_V0NKwr/Hye_V0NKwr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hye_V0NKwr/Hye_V0NKwr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA.md
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CODA: CONTRAST-ENHANCED AND DIVERSITYPROMOTING DATA AUGMENTATION FOR NATURAL LANGUAGE UNDERSTANDING
|
| 2 |
+
|
| 3 |
+
Yanru $\mathbf { Q } \mathbf { u } ^ { 1 }$ ∗, Dinghan Shen2, Yelong Shen2, Sandra Sajeev2, Jiawei $\mathbf { H a n } ^ { 1 }$ , Weizhu Chen2
|
| 4 |
+
|
| 5 |
+
1University of Illinois, Urbana-Champaign, 2Microsoft Dynamics 3
|
| 6 |
+
1{yanruqu2,hanj}@illinois.edu,
|
| 7 |
+
2{dishen,yeshe,ssajeev,wzchen}@microsoft.com
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Data augmentation has been demonstrated as an effective strategy for improving model generalization and data efficiency. However, due to the discrete nature of natural language, designing label-preserving transformations for text data tends to be more challenging. In this paper, we propose a novel data augmentation framework dubbed CoDA, which synthesizes diverse and informative augmented examples by integrating multiple transformations organically. Moreover, a contrastive regularization objective is introduced to capture the global relationship among all the data samples. A momentum encoder along with a memory bank is further leveraged to better estimate the contrastive loss. To verify the effectiveness of the proposed framework, we apply CoDA to Transformer-based models on a wide range of natural language understanding tasks. On the GLUE benchmark, CoDA gives rise to an average improvement of $2 . 2 \%$ while applied to the RoBERTa-large model. More importantly, it consistently exhibits stronger results relative to several competitive data augmentation and adversarial training baselines (including the low-resource settings). Extensive experiments show that the proposed contrastive objective can be flexibly combined with various data augmentation approaches to further boost their performance, highlighting the wide applicability of the CoDA framework.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Data augmentation approaches have successfully improved large-scale neural-network-based models, (Laine & Aila, 2017; Xie et al., 2019; Berthelot et al., 2019; Sohn et al., 2020; He et al., 2020; Khosla et al., 2020; Chen et al., 2020b), however, the majority of existing research is geared towards computer vision tasks. The discrete nature of natural language makes it challenging to design effective label-preserving transformations for text sequences that can help improve model generalization (Hu et al., 2019; Xie et al., 2019). On the other hand, fine-tuning powerful, over-parameterized language models1 proves to be difficult, especially when there is a limited amount of task-specific data available. It may result in representation collapse (Aghajanyan et al., 2020) or require special finetuning techniques (Sun et al., 2019; Hao et al., 2019). In this work, we aim to take a further step towards finding effective data augmentation strategies through systematic investigation.
|
| 16 |
+
|
| 17 |
+
In essence, data augmentation can be regarded as constructing neighborhoods around a training instance that preserve the ground-truth label. With such a characterization, adversarial training (Zhu et al., 2020; Jiang et al., 2020; Liu et al., 2020; Cheng et al., 2020) also performs label-preserving transformation in embedding space, and thus is considered as an alternative to data augmentation methods in this work. From this perspective, the goal of developing effective data augmentation strategies can be summarized as answering three fundamental questions:
|
| 18 |
+
|
| 19 |
+
i) What are some label-preserving transformations, that can be applied to text, to compose useful augmented samples?
|
| 20 |
+
|
| 21 |
+
ii) Are these transformations complementary in nature, and can we find some strategies to consolidate them for producing more diverse augmented examples?
|
| 22 |
+
|
| 23 |
+
iii) How can we incorporate the obtained augmented samples into the training process in an effective and principled manner?
|
| 24 |
+
|
| 25 |
+
Previous efforts in augmenting text data were mainly focused on answering the first question (Yu et al., 2018; Xie et al., 2019; Kumar et al., 2019; Wei & Zou, 2019; Chen et al., 2020a; Shen et al., 2020). Regarding the second question, different label-preserving transformations have been proposed, but it remains unclear how to integrate them organically. In addition, it has been shown that the diversity of augmented samples plays a vital role in their effectiveness (Xie et al., 2019; Gontijo-Lopes et al., 2020). In the case of image data, several strategies that combine different augmentation methods have been proposed, such as applying multiple transformations sequentially (Cubuk et al., 2018; 2020; Hendrycks et al., 2020), learning data augmentation policies (Cubuk et al., 2018), randomly sampling operations for each data point (Cubuk et al., 2020). However, these methods cannot be naively applied to text data, since the semantic meanings of a sentence are much more sensitive to local perturbations (relative to an image).
|
| 26 |
+
|
| 27 |
+
As for the third question, consistency training is typically employed to utilize the augmented samples (Laine & Aila, 2017; Hendrycks et al., 2020; Xie et al., 2019; Sohn et al., 2020; Miyato et al., 2018). This method encourages the model predictions to be invariant to certain label-preserving transformations. However, existing approaches only examine a pair of original and augmented samples in isolation, without considering other examples in the entire training set. As a result, the representation of an augmented sample may be closer to those of other training instances, rather than the one it is derived from. Based on this observation, we advocate that, in addition to consistency training, a training objective that can globally capture the intrinsic relationship within the entire set of original and augmented training instances can help leverage augmented examples more effectively.
|
| 28 |
+
|
| 29 |
+
In this paper, we introduce a novel Contrast-enhanced and Diversity-promoting Data Augmentation (CoDA) framework for natural language understanding. To improve the diversity of augmented samples, we extensively explore different combinations of isolated label-preserving transformations in an unified approach. We find that stacking distinct label-preserving transformations produces particularly informative samples. Specifically, the most diverse and high-quality augmented samples are obtained by stacking an adversarial training module over the back-translation transformation. Besides the consistency-regularized loss for repelling the model to behave consistently within local neighborhoods, we propose a contrastive learning objective to capture the global relationship among the data points in the representation space. We evaluate CoDA on the GLUE benchmark (with RoBERTa (Liu et al., 2019) as the testbed), and CoDA consistently improves the generalization ability of resulting models and gives rise to significant gains relative to the standard fine-tuning procedure. Moreover, our method also outperforms various single data augmentation operations, combination schemes, and other strong baselines. Additional experiments in the low-resource settings and ablation studies further demonstrate the effectiveness of this framework.
|
| 30 |
+
|
| 31 |
+
# 2 METHOD
|
| 32 |
+
|
| 33 |
+
In this section, we focus our discussion on the natural language understanding (NLU) tasks, and particularly, under a text classification scenario. However, the proposed data augmentation framework can be readily extended to other NLP tasks as well.
|
| 34 |
+
|
| 35 |
+
# 2.1 BACKGROUND: DATA AUGMENTATION AND ADVERSARIAL TRAINING
|
| 36 |
+
|
| 37 |
+
Data Augmentation Let $\mathcal { D } = \{ \substack { { \pmb x } _ { i } , y _ { i } } \} _ { i = 1 \ldots N }$ denote the training dataset, where the input example $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ is a sequence of tokens, and $y _ { i }$ is the corresponding label. To improve model’s robustness and generalization ability, several data augmentation techniques (e.g., back-translation (Sennrich et al., 2016; Edunov et al., 2018; Xie et al., 2019), mixup (Guo et al., 2019), c-BERT (Wu et al., 2019)) have been proposed. Concretely, label-preserving transformations are performed (on the original training sequences) to synthesize a collection of augmented samples, denoted by $\mathcal { D } ^ { \prime } = \{ { \pmb x } _ { i } ^ { \prime } , \bar { y } _ { i } ^ { \prime } \} _ { i = 1 \ldots N }$ . Thus, a model can learn from both the training set $\mathcal { D }$ and the augmented set $\mathcal { D } ^ { \prime }$ , with $p _ { \theta } ( \cdot )$ the predicted output distribution of the model parameterized by $\theta$ :
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\theta ^ { * } = \underset { \theta } { \arg \operatorname* { m i n } } \sum _ { ( \mathbf { x } _ { i } , y _ { i } ) \in \mathcal { D } } \mathcal { L } \big ( p _ { \theta } ( \mathbf { x } _ { i } ) , y _ { i } \big ) + \sum _ { ( \mathbf { x } _ { i } ^ { \prime } , y _ { i } ^ { \prime } ) \in \mathcal { D } ^ { \prime } } \mathcal { L } \big ( p _ { \theta } ( \mathbf { x } _ { i } ^ { \prime } ) , y _ { i } ^ { \prime } \big )
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 1: Illustration of data augmentation combined with adversarial training.
|
| 45 |
+
|
| 46 |
+
Several recent research efforts were focused on encouraging model predictions to be invariant to stochastic or domain-specific data transformations (Xie et al., 2019; Laine $\&$ Aila, 2017; Tarvainen & Valpola, 2017; Sohn et al., 2020; Miyato et al., 2018; Jiang et al., 2020; Hendrycks et al., 2020). Take back-translation as example: $\pmb { x } _ { i } ^ { \prime } = \mathbf { B a c k T r a n s } ( \pmb { x } _ { i } )$ , then $\pmb { x } _ { i } ^ { \prime }$ is a paraphrase of $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ . The model can be regularized to have consistent predictions for $( \pmb { x } _ { i } , \pmb { x } _ { i } ^ { \prime } )$ , by minimizing the distribution discrepancy $\mathcal { R } _ { \mathrm { C S } } ( p _ { \theta } ( \pmb { x } _ { i } ) , p _ { \theta } ( \pmb { x } _ { i } ^ { \prime } ) )$ , which typically adopts KL divergence (see Fig. 1a).
|
| 47 |
+
|
| 48 |
+
Adversarial Training In another line, adversarial training methods are applied to text data (Zhu et al., 2020; Jiang et al., 2020; Cheng et al., 2020; Aghajanyan et al., 2020) for improving model’s robustness. Compared with data augmentation techniques, adversarial training requires no domain knowledge to generate additional training examples. Instead, it relies on the model itself to produce adversarial examples which the model are most likely to make incorrect predictions. Similar to data augmentation, adversarial training also typically utilizes the cross-entropy and consistencybased objectives for training. As the two most popular adversarial-training-based algorithms, the adversarial loss (Goodfellow et al., 2015) (Eqn. 2) and virtual adversarial loss (Miyato et al., 2018) (Eqn. 3) can be expressed as follows (see Fig. 1b):
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\begin{array} { r } { \mathcal { R } _ { \mathrm { A T } } ( \boldsymbol { x } _ { i } , \tilde { \boldsymbol { x } } _ { i } , y _ { i } ) = \mathcal { L } \big ( p _ { \theta } ( \tilde { x } _ { i } ) , y _ { i } \big ) , s . t . , \| \tilde { \boldsymbol { x } } _ { i } - \boldsymbol { x } _ { i } \| \leq \epsilon , } \\ { \mathcal { R } _ { \mathrm { V A T } } ( \boldsymbol { x } _ { i } , \tilde { \boldsymbol { x } } _ { i } ) = \mathcal { R } _ { \mathrm { C S } } \big ( p _ { \theta } ( \tilde { \boldsymbol { x } } _ { i } ) , p _ { \theta } ( \boldsymbol { x } _ { i } ) \big ) , s . t . , \| \tilde { \boldsymbol { x } } _ { i } - \boldsymbol { x } _ { i } \| \leq \epsilon . } \end{array}
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
Generally, there is no closed-form to obtain the exact adversarial example $\hat { \mathbf { x } } _ { i }$ in either Eqn. 2 or 3. However, it usually can be approximated by a low-order approximation of the objective function with respect to $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ . For example, the adversarial example in Eqn. 2 can be approximated by:
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
\hat { \pmb { x } } _ { i } \approx \pmb { x } _ { i } + \epsilon \frac { \pmb { g } } { \lVert \pmb { g } \rVert _ { 2 } } , \mathrm { w h e r e } \ \pmb { g } = \nabla _ { \pmb { x } _ { i } } \mathcal { L } \big ( p _ { \theta } ( \pmb { x } _ { i } ) , y _ { i } \big ) \ .
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
# 2.2 DIVERSITY-PROMOTING CONSISTENCY TRAINING
|
| 61 |
+
|
| 62 |
+
As discussed in the previous section, data augmentation and adversarial training share the same intuition of producing neighbors around the original training instances. Moreover, both approaches share very similar training objectives. Therefore, it is natural to ask the following question: are different data augmentation methods and adversarial training equal in nature? Otherwise, are they complementary to each other, and thus can be consolidated together to further improve the model’s generalization ability? Notably, it has been shown, in the CV domain, that combining different data augmentation operations could lead to more diverse augmented examples (Cubuk et al., 2018; 2020; Hendrycks et al., 2020). However, this is especially challenging for natural language, given that the semantics of a sentence can be entirely altered by slight perturbations.
|
| 63 |
+
|
| 64 |
+
To answer the above question, we propose several distinct strategies to combine different data transformations, with the hope to produce more diverse and informative augmented examples. Specifically, we consider 5 different types of label-preserving transformations: back-translation (Sennrich et al., 2016; Edunov et al., 2018; Xie et al., 2019), $c$ -BERT word replacement (Wu et al., 2019), mixup (Guo et al., 2019; Chen et al., 2020a), cutoff (Shen et al., 2020), and adversarial training (Zhu et al., 2020; Jiang et al., 2020). The 3 combination strategies are schematically illustrated in Figure 2. For random combination, a particular label-preserving transformation is randomly selected, among all the augmentation operations available, for each mini-batch. As to the mixup interpolation, given two samples $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ and $\boldsymbol { \mathscr { x } } _ { j }$ drawn in a mini-batch, linear interpolation is performed between their input embedding matrices $e _ { i }$ and $e _ { j }$ (Zhang et al., 2017): $\pmb { e } _ { i } ^ { \prime } = \bar { a \pmb { e } } _ { i } + ( 1 - a ) \bar { \pmb { e } } _ { j }$ , where $a$ is the interpolation parameter, usually drawn from a Beta distribution.
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 2: Illustration of different strategies to combine various label-preserving transformations.
|
| 68 |
+
|
| 69 |
+
Moreover, we consider stacking different label-preserving transformations in a sequential manner (see Figure 2c). It is worth noting that due to the discrete nature of text data, some stacking orders are infeasible. For example, it is not reasonable to provide an adversarially-perturbed embedding sequence to the back-translation module. Without loss of generality, we choose the combination where adversarial training is stacked over back-translation to demonstrate the sequential stacking operation (see Fig. 1c). Formally, given a training example $( { \pmb x } _ { i } , y _ { i } )$ , the consistency training objective for such a stacking operation can be written as:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\begin{array} { r } { x _ { i } ^ { \prime } = \mathrm { B a c k T r a n s } ( x _ { i } ) , \ \hat { x } _ { i } \approx \mathrm { a r g m a x } _ { \hat { x } _ { i } } \mathcal { R } _ { \mathrm { A T } } ( x _ { i } ^ { \prime } , \tilde { x } _ { i } , y _ { i } ) \ , \ } \\ { \mathcal { L } _ { \mathrm { c o n s i s t e n c y } } ( x _ { i } , \hat { x } _ { i } , y _ { i } ) = \mathcal { L } \big ( p _ { \theta } ( x _ { i } ) , y _ { i } \big ) + \alpha \mathcal { L } ( p _ { \theta } ( \hat { x } _ { i } ) , y _ { i } ) + \beta \mathcal { R } _ { \mathrm { C S } } ( p _ { \theta } ( x _ { i } ) , p _ { \theta } ( \hat { x } _ { i } ) ) \ , \ } \end{array}
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where the first term corresponds to the cross-entropy loss, the second term is the adversarial loss, $\mathcal { R } _ { \mathrm { C S } }$ denotes the consistency loss term between $( \pmb { x } _ { i } , \hat { \pmb { x } } _ { i } )$ . Note that $\hat { \mathbf { x } } _ { i }$ is obtained through two different label-preserving transformations applied to $_ { \textbf { \em x } }$ , and thus deviates farther from $_ { \textbf { \em x } }$ and should be more diverse than $\pmb { x } _ { i } ^ { \prime }$ . Inspired by (Bachman et al., 2014; Zheng et al., 2016; Kannan et al., 2018; Hendrycks et al., 2020), we employ the Jensen-Shannon divergence for $\mathcal { R } _ { \mathrm { C S } }$ , since it is upper bounded and tends to be more stable and consistent relative to the KL divergence:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\mathcal { R } _ { \mathrm { C S } } ( p _ { \theta } ( \pmb { x } _ { i } ) , p _ { \theta } ( \pmb { \hat { x } } _ { i } ) ) = \frac { 1 } { 2 } \big ( \mathrm { K L } ( p _ { \theta } ( \pmb { x } _ { i } ) | | M ) + \mathrm { K L } ( p _ { \theta } ( \pmb { \hat { x } } _ { i } ) ) | | M ) \big ) ,
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $M = ( p _ { \theta } ( \pmb { x } _ { i } ) + p _ { \theta } ( \pmb { \hat { x } } _ { i } ) ) / 2$ . Later we simply use $\pmb { x } _ { i } ^ { \prime }$ to represent the transformed example.
|
| 82 |
+
|
| 83 |
+
# 2.3 CONTRASTIVE REGULARIZATION
|
| 84 |
+
|
| 85 |
+
Consistency loss only provides local regularization, i.e., $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ and $\pmb { x } _ { i } ^ { \prime }$ should have close predictions. However, the relative positions between $\pmb { x } _ { i } ^ { \prime }$ and other training instances $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { j } }$ $( j \ne i )$ have not been examined. In this regard, we propose to leverage a contrastive learning objective to better utilize the augmented examples. Specifically, we assume that the model should encourage an augmented sample $\pmb { x } _ { i } ^ { \prime }$ to be closer, in the representation space, to its original sample $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ , relative to other data points $\boldsymbol { \mathscr { x } } _ { j }$ $( j \neq i )$ in the training set. This is a reasonable assumption since intuitively, the model should be robust enough to successfully determine from which original data an augmented sample is produced.
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
Figure 3: Illustration of the contrastive learning module.
|
| 89 |
+
|
| 90 |
+
The contrastive learning module is illustrated in Fig. 3. As demonstrated by prior efforts on contrastive learning, adopting a large batch size is especially vital for its effectiveness (Chen et al., 2020b; Khosla et al., 2020). Therefore, we introduce a memory bank that stores the history embeddings, thus enabling much larger number of negative samples. Moreover, to avoid the encoder from changing too rapidly (which may result in inconsistency embeddings), a momentum encoder module is incorporated into our algorithm. Concretely, let $f _ { \theta } { \overset { \cdot } { ( } . ) }$ and $f _ { \bar { \theta } } ( . )$ denote the transformation parameterized by the query encoder and key encoder, respectively. Note that $\theta$ and $\bar { \theta }$ represent their parameters. The momentum model parameters $\bar { \theta }$ are not learned by gradients. Instead, they are updated through the momentum rule: $\bar { \theta } \gamma \bar { \theta } + ( 1 - \gamma ) \theta$ at each training step. We omit the details here and refer the interested readers to the work by (He et al., 2020) for further explanation. Given a sample $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ and its augmented example $\pmb { x } _ { i } ^ { \prime }$ , the query and key can be obtained as follows:
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\begin{array} { r } { \pmb q _ { i } = f _ { \theta } ( \pmb x _ { i } ) , \quad \pmb q _ { i } ^ { \prime } = f _ { \theta } ( \pmb x _ { i } ^ { \prime } ) , \quad \pmb k _ { i } = f _ { \bar { \theta } } ( \pmb x _ { i } ) . } \end{array}
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
Thus, the contrastive training objective can be written as:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\begin{array} { r l } & { \mathcal { R } _ { \mathrm { c o n t r a s t } } ( \boldsymbol { x } _ { i } , \boldsymbol { x } _ { i } ^ { \prime } , \mathcal { M } ) = \mathcal { R } _ { \mathrm { C T } } ( \boldsymbol { q } _ { i } , \boldsymbol { k } _ { i } , \mathcal { M } ) + \mathcal { R } _ { \mathrm { C T } } ( \boldsymbol { q } _ { i } ^ { \prime } , \boldsymbol { k } _ { i } , \mathcal { M } ) , } \\ & { \quad \mathcal { R } _ { \mathrm { C T } } ( \boldsymbol { q } _ { i } , \boldsymbol { k } _ { i } , \mathcal { M } ) = - \log \frac { \exp ( \sin ( \boldsymbol { q } _ { i } , \boldsymbol { k } _ { i } ) / \tau ) } { \sum _ { \boldsymbol { k } _ { j } \in \mathcal { M } \bigcup \{ \boldsymbol { k } _ { i } \} } \exp ( \sin ( \boldsymbol { q } _ { i } , \boldsymbol { k } _ { j } ) / \tau ) } , } \end{array}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where $\tau$ is the temperature, and $\mathcal { M }$ is the memory bank in which the history keys are stored. Cosine similarity is chosen for $\mathrm { s i m } ( \cdot )$ . Note that $\mathscr { R } _ { \mathrm { C T } } ( \dot { \pmb q } _ { i } ^ { \prime } , \pmb { k } _ { i } , \mathcal { M } )$ is similarly defined as $\mathscr { R } _ { \mathrm { C T } } ( \ b { q } _ { i } , \ b { k } _ { i } , \mathscr { M } )$ (with $\pmb q _ { i }$ replaced by $\pmb q _ { i } ^ { \prime }$ in Eqn. 10). In Eqn. 9, the first term corresponds to the contrastive loss calculated on the original examples (self-contrastive loss), while the second term is computed on the augmented sample (augment-contrastive loss). Under such a framework, the pair of original and augmented samples are encouraged to stay closer in the learned embedding space, relative to all other training instances. As a result, the model is regularized globally through considering the embeddings of all the training examples available.
|
| 103 |
+
|
| 104 |
+
By integrating both the consistency training objective and the contrastive regularization, the overall training objective for the CoDA framework can be expressed as:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\theta ^ { * } = \operatorname * { a r g m i n } _ { \theta } \sum _ { ( \pmb { x } _ { i } , y _ { i } ) \in \mathcal { D } } \mathcal { L } _ { \mathrm { c o n s i s t e n c y } } ( \pmb { x } _ { i } , \pmb { x } _ { i } ^ { \prime } , y _ { i } ) + \lambda \mathcal { R } _ { \mathrm { c o n t r a s t } } ( \pmb { x } _ { i } , \pmb { x } _ { i } ^ { \prime } , \mathcal { M } ) .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $\lambda$ is a hyperparameter to be chosen. It is worth noting that the final objective has taken both the local (consistency loss) and global (contrastive loss) information introduced by the augmented examples into consideration.
|
| 111 |
+
|
| 112 |
+
# 3 EXPERIMENTS
|
| 113 |
+
|
| 114 |
+
To verify the effectiveness of CoDA, We evaluate it on the widely-adopted GLUE benchmark (Wang et al., 2018), which consists of multiple natural language understanding (NLU) tasks. The details of these datasets can be found in Appendix B. RoBERTa (Liu et al., 2019) is employed as the testbed for our experiments. However, the proposed approach can be flexibly integrated with other models as well. We provide more implementation details in Appendix C. Our code will be released to encourage future research.
|
| 115 |
+
|
| 116 |
+
In this section, we first present our exploration of several different strategies to consolidate various data transformations (Sec 3.1). Next, we conduct extensive experiments to carefully select the contrastive objective for NLU problems in Sec 3.2. Based upon these settings, we further evaluate CoDA on the GLUE benchmark and compare it with a set of competitive baselines in Sec 3.3. Additional experiments in the low-resource settings and qualitative analysis (Sec 3.4) are further conducted to gain a deep understanding of the proposed framework.
|
| 117 |
+
|
| 118 |
+
# 3.1 COMBINING LABEL-PRESERVING TRANSFORMATIONS
|
| 119 |
+
|
| 120 |
+
We start by implementing and comparing several data augmentation baselines. As described in the previous section, we explore 5 different approaches: back-translation, $c$ -BERT word replacement, Mixup, Cutoff and adversarial training. More details can be found in Appendix A. The standard cross-entropy loss, along with the consistency regularization term (Eq. 6) is utilized for all methods to ensure a fair comparison. We employ the MNLI dataset and RoBERTa-base model for the comparison experiments with the results shown in Table 1.
|
| 121 |
+
|
| 122 |
+
All these methods have achieved improvements over the RoBERTa-base model, demonstrating the effectiveness of leveraging label-preserving transformations for NLU. Moreover, back-translation, cutoff and adversarial training exhibit stronger empirical results relative to mixup and c-BERT.
|
| 123 |
+
|
| 124 |
+
To improve the diversity of augmented examples, we explore several strategies to combine multiple transformations: i) random combination, $\romannumeral 2$ ) mixup interpolation, and iii) sequential stacking, as shown in Fig. 2. In Table 1, the score of naive random combination lies between single transformations. This may be attributed to the fact that different label-preserving transformations regularize the model in distinct ways, and thus the model may not be able to leverage different regularization terms simultaneously.
|
| 125 |
+
|
| 126 |
+
Besides, among all the other combination strategies, we observe that gains can be obtained by integrating back-translation and adversarial training together. Concretely, mixing back-translation and adversarial training samples (in the input embedding space) slightly improve the accuracy from 88.5 to 88.6. More importantly, the result is further improved to 88.8 with these two transformations stacking together2 (see Sec 2.2). With significance test, we find stack (back, adv) performs consistently better than other combinations (t-test of 10 runs, $p$ -values $< ~ 0 . 0 2 $ ). This observation indicates that the stacking operation, especially in the case of back-translation and adversarial training, can produce more diverse augment examples.
|
| 127 |
+
|
| 128 |
+
Table 1: Comparison of different transformations on the MNLI-m development set. Abbr: original training instances (ori), back-translation (back), cutoff (cut), mixup (mix), adversarial (adv).
|
| 129 |
+
|
| 130 |
+
<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>MNLI-m(Acc)</td><td rowspan=1 colspan=1>MMD</td></tr><tr><td rowspan=1 colspan=1>RoBERTa-base</td><td rowspan=1 colspan=1>87.6</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>SingleTransformation</td><td rowspan=1 colspan=1>rmation</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>+back-translation+c-BERT+ cutoff+ mixup (ori,ori)+adversarial</td><td rowspan=1 colspan=1>88.588.088.488.288.5</td><td rowspan=1 colspan=1>0.630.010.020.060.65</td></tr><tr><td rowspan=1 colspan=1>MultipleTransformations</td><td rowspan=1 colspan=1>ormations</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=3 colspan=1>+random (back,cut,adv)+ mix (ori,back)+ mix (back,adv)+ stack (back, cut)+ stack (back,adv)+ stack(back,cut,adv)+ stack (back,adv, cut)</td><td rowspan=3 colspan=1>88.488.488.688.588.888.588.4</td><td rowspan=1 colspan=1>-0.110.810.621.14</td></tr><tr><td rowspan=1 colspan=1>1.14</td></tr><tr><td rowspan=1 colspan=1>1.14</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Intuitively, the augmented sample, with two sequential transformations, deviates more from the corresponding training data, and thus tends to be more effective at improving the model’s generalization ability. To verify this hypothesis,
|
| 133 |
+
|
| 134 |
+
we further calculate the MMD (Gretton et al., 2012) between augmented samples and the original training instances. It can be observed that stack (back, adv), stack (back, cut, adv) and stack (back, adv, cut) have all produced examples the farthest from the original training instances (see Table 1). However, we conjecture that the latter two may have altered the semantic meanings too much, thus leading to inferior results. In this regard, stack (back, adv) is employed as the data transformation module for all the experiments below.
|
| 135 |
+
|
| 136 |
+
# 3.2 CONTRASTIVE REGULARIZATION DESIGN
|
| 137 |
+
|
| 138 |
+
In this section, we aim to incorporate the global information among the entire set of original and augmented samples via a contrastive regularization. First, we explore a few hyperparameters for the proposed contrastive objective. Since both the memory bank and the momentum encoder are vital components, we study the impacts of different hyperparameter values on both the temperature and the momentum. As shown in Fig. 4a, a temperature of 1.0 combined with the momentum of 0.99 can achieve the best empirical result. We then examine the size effect of the memory bank, and observe a larger memory bank size leads to a better capture of the global information and results in higher performance boost3 (see Fig. 4b).
|
| 139 |
+
|
| 140 |
+
After carefully choosing the best setting based on the above experiments, we apply the contrastive learning objective to several GLUE datasets. We also implement several prior works on contrastive learning to compare, including the MoCo loss (He et al., 2020) and the supervised contrastive (SupCon) loss (Khosla et al., 2020), all implemented with memory banks. Note that we remove the consistency regularization for this experiment to better examine the effect of the contrastive regularization term (i.e., $\alpha = \beta = 0$ , $\lambda \neq 0$ ). As presented in Table 2, our contrastive objective consistently exhibits the largest performance improvement. This observation demonstrates for NLU, our data transformation module can be effectively equipped with the contrastive regularization.
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
Figure 4: Hyperparameter exploration for the contrastive loss, evaluated on the MNLI-m development set. Note: All models use the RoBERTa-base model as the encoder.
|
| 144 |
+
|
| 145 |
+
<table><tr><td>Method</td><td>MNLI-m (Acc)</td><td>QNLI (Acc)</td><td>SST-2 (Acc)</td><td>RTE (Acc)</td><td>MRPC (Acc)</td></tr><tr><td>RoBERTa-base</td><td>87.6</td><td>92.8</td><td>94.8</td><td>78.7</td><td>90.2</td></tr><tr><td>+ MoCo (He et al., 2020)</td><td>88.2</td><td>93.3</td><td>95.1</td><td>80.8</td><td>90.9</td></tr><tr><td>+ SupCon (Khosla et al., 2020) + Contrastive (ours)</td><td>88.1 88.1</td><td>93.2 93.6</td><td>95.2 95.3</td><td>80.5 82.0</td><td>90.2 91.7</td></tr></table>
|
| 146 |
+
|
| 147 |
+
Table 2: Comparison among different contrastive objectives on the GLUE development set.
|
| 148 |
+
|
| 149 |
+
# 3.3 GLUE BENCHMARK EVALUATION
|
| 150 |
+
|
| 151 |
+
With both components within the CoDA algorithm being specifically tailored to the natural language understanding applications, we apply it to the RoBERTa-large model (Liu et al., 2019). Comparisons are made with several competitive data-augmentation-based and adversarial-training-based approaches on the GLUE benchmark. Specifically, we consider back-translation, cutoff (Shen et al., 2020), FreeLB (Zhu et al., 2020), SMART (Jiang et al., 2020), and R3F (Aghajanyan et al., 2020) as the baselines, where the last three all belong to adversarial training. The results are presented in Table 3. It is worth noting that back-translation is based on our implementation, where both the cross-entropy and consistency regularization terms are utilized.
|
| 152 |
+
|
| 153 |
+
<table><tr><td>Method</td><td>MNLI-m/ mm (Acc)</td><td>QQP (Acc/F1)</td><td>QNLI (Acc)</td><td>SST-2 (Acc)</td><td>MRPC (Acc/F1)</td><td>CoLA (Mcc)</td><td>RTE (Acc)</td><td>STS-B (P/S)</td><td>Avg</td></tr><tr><td>RoBERTa-large</td><td>90.2/-</td><td>92.2/-</td><td>94.7</td><td>96.4</td><td>-/90.9</td><td>68</td><td>86.6</td><td>92.4/-</td><td>88.9</td></tr><tr><td>Back-Trans</td><td>91.1/90.4</td><td>92/-</td><td>95.3</td><td>97.1</td><td>90.9/93.5</td><td>69.4</td><td>91.7</td><td>92.8/92.6</td><td>90.4</td></tr><tr><td>Cutoff</td><td>91.1/-</td><td>92.4/-</td><td>95.3</td><td>96.9</td><td>91.4/93.8</td><td>71.5</td><td>91.0</td><td>92.8/-</td><td>90.6</td></tr><tr><td>FreeLB</td><td>90.6/-</td><td>92.6/-</td><td>95</td><td>96.7</td><td>91.4/-</td><td>71.1</td><td>88.1</td><td>92.71-</td><td>1</td></tr><tr><td>SMART</td><td>91.1/91.3</td><td>92.4/89.8</td><td>95.6</td><td>96.9</td><td>89.2/92.1</td><td>70.6</td><td>92</td><td>92.8/92.6</td><td>90.4</td></tr><tr><td>R3F</td><td>91.1/91.3</td><td>92.4/89.9</td><td>95.3</td><td>97.0</td><td>91.6/-</td><td>71.2</td><td>88.5</td><td>1</td><td>-</td></tr><tr><td>CoDA</td><td>91.3/90.8</td><td>92.5/89.9</td><td>95.3</td><td>97.4</td><td>91.9/94</td><td>72.6</td><td>92.4</td><td>93/92.7</td><td>91.1</td></tr></table>
|
| 154 |
+
|
| 155 |
+
Table 3: Main results of single models on the GLUE development set. Note: The best result on each task is in bold and “-” denotes the missing results. The average score is calculated based on the same setting as RoBERTa.
|
| 156 |
+
|
| 157 |
+
We find that $C o D A$ brings significant gains to the RoBERTa-large model, with the averaged score on the GLUE dev set improved from 88.9 to 91.1. More importantly, CoDA consistently outperforms these strong baselines (indicated by a higher averaged score), demonstrating that our algorithm can produce informative and high-quality augmented samples and leverage them effectively as well. Concretely, on datasets with relatively larger numbers of training instances $( > 1 0 0 \mathrm { K } )$ , i.e., MNLI, QQP and QNLI, different approaches show similar gains over the RoBERTa-large model. However, on smaller tasks (SST-2, MRPC, CoLA, RTE, and STS-B), CoDA beats other data augmentation or adversarial-based methods by a wide margin. We attribute this observation to the fact that the synthetically produced examples are more helpful when the tasks-specific data is limited. Thus, when smaller datasets are employed for fine-tuning large-scale language models, the superiority of the proposed approach is manifested to a larger extent.
|
| 158 |
+
|
| 159 |
+
# 3.4 ADDITIONAL EXPERIMENTS AND ANALYSIS
|
| 160 |
+
|
| 161 |
+
Low-resource Setting To verify the advantages of CoDA when a smaller number of taskspecific data is available, we further conduct a low-resource experiment with the MNLI and QNLI datasets. Concretely, different proportions of training data are sampled and utilized for training. We apply CoDA to RoBERTa-base and compare it with backtranslation and adversarial training across various training set sizes. The corresponding results are presented in Fig. 5. We observe that back-translation and adversarial training exhibit similar performance across different proportions. More importantly, CoDA demonstrates stronger results consistently, further highlighting its effectiveness with limited training data.
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
Figure 5: Low-resource setting experiments on the MNLI (left) and QNLI (right) dev sets.
|
| 165 |
+
|
| 166 |
+
The Effectiveness of Contrastive Objective To investigate the general applicability of the proposed contrastive regularization objective, we further apply it to different data augmentation methods. The RoBERTa-base model and QNLI dataset are leveraged for this set of experiments, and the results are shown in Fig. 6. We observe that the contrastive learning objective boosts the empirical performance of the resulting algorithm regardless of the data augmentation approaches it is applied to. This further validates our assumption that considering the global information among the embeddings of all examples is beneficial for leveraging augmented samples more effectively.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 6: Evaluation of the proposed contrastive objective while applied to different data augmentation approaches.
|
| 170 |
+
|
| 171 |
+
# 4 RELATED WORK
|
| 172 |
+
|
| 173 |
+
Data Augmentation in NLP Different data augmentation approaches have been proposed for text data, such as back-translation (Sennrich et al., 2016; Edunov et al., 2018; Xie et al., 2019), c-BERT word replacement (Wu et al., 2019), mixup (Guo et al., 2019; Chen et al., 2020a), Cutoff (Shen et al., 2020). Broadly speaking, adversarial training (Zhu et al., 2020; Jiang et al., 2020) also synthesizes additional examples via perturbations at the word embedding layer. Although effective, how these data augmentation transformations may be combined together to obtain further improvement has been rarely explored. This could be attributed to the fact that a sentence’s semantic meanings are quite sensitive to small perturbations. Consistency-regularized loss (Bachman et al., 2014; Rasmus et al., 2015; Laine & Aila, 2017; Tarvainen & Valpola, 2017) is typically employed as the training objective, which ignores the global information within the entire dataset.
|
| 174 |
+
|
| 175 |
+
Contrastive Learning Contrastive methods learn representations by contrasting positive and negative examples, which has demonstrated impressive empirical success in computer vision tasks (Henaff et al., 2019; He et al., 2020). Under an unsupervised setting, Contrastive learning ap- ´ proaches learn representation by maximizing mutual information between local-global hidden representations (Hjelm et al., 2019; Oord et al., 2018; Henaff et al., 2019). It can be also leveraged ´ to learn invariant representations by encouraging consensus between augmented samples from the same input (Bachman et al., 2019; Tian et al., 2019). He et al. (2020); Wu et al. (2018) proposes to utilize a memory bank to enable a much larger number of negative samples, which is shown to benefit the transferability of learned representations as well (Khosla et al., 2020). Recently, contrastive learning was also employed to improve language model pre-training (Iter et al., 2020).
|
| 176 |
+
|
| 177 |
+
# 5 CONCLUSION
|
| 178 |
+
|
| 179 |
+
In this paper, we proposed CoDA, a Contrast-enhanced and Diversity promoting data Augmentation framework. Through extensive experiments, we found that stacking adversarial training over a back-translation module can give rise to more diverse and informative augmented samples. Besides, we introduced a specially-designed contrastive loss to incorporate these examples for training in a principled manner. Experiments on the GLUE benchmark showed that CoDA consistently improves over several competitive data augmentation and adversarial training baselines. Moreover, it is observed that the proposed contrastive objective can be leveraged to improve other data augmentation approaches as well, highlighting the wide applicability of the CoDA framework.
|
| 180 |
+
|
| 181 |
+
# REFERENCES
|
| 182 |
+
|
| 183 |
+
Armen Aghajanyan, Akshat Shrivastava, Anchit Gupta, Naman Goyal, Luke Zettlemoyer, and Sonal Gupta. Better fine-tuning by reducing representational collapse. arXiv preprint arXiv:2008.03156, 2020.
|
| 184 |
+
|
| 185 |
+
Philip Bachman, Ouais Alsharif, and Doina Precup. Learning with pseudo-ensembles. In Advances in neural information processing systems, pp. 3365–3373, 2014.
|
| 186 |
+
|
| 187 |
+
Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems, pp. 15535–15545, 2019.
|
| 188 |
+
|
| 189 |
+
David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin A Raffel. Mixmatch: A holistic approach to semi-supervised learning. In Advances in Neural Information Processing Systems, pp. 5049–5059, 2019.
|
| 190 |
+
|
| 191 |
+
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.
|
| 192 |
+
|
| 193 |
+
Jiaao Chen, Zichao Yang, and Diyi Yang. MixText: Linguistically-informed interpolation of hidden space for semi-supervised text classification. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 2147–2157, Online, July 2020a. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.194. URL https: //www.aclweb.org/anthology/2020.acl-main.194.
|
| 194 |
+
|
| 195 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. arXiv preprint arXiv:2002.05709, 2020b.
|
| 196 |
+
|
| 197 |
+
Yong Cheng, Lu Jiang, Wolfgang Macherey, and Jacob Eisenstein. Advaug: Robust adversarial augmentation for neural machine translation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020, 2020.
|
| 198 |
+
|
| 199 |
+
E. Cubuk, Barret Zoph, Dandelion Mane, V. Vasudevan, and Quoc V. Le. Autoaugment: Learning ´ augmentation policies from data. ArXiv, abs/1805.09501, 2018.
|
| 200 |
+
|
| 201 |
+
Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 702–703, 2020.
|
| 202 |
+
|
| 203 |
+
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, NAACL-HLT 2019, 2019.
|
| 204 |
+
|
| 205 |
+
Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017.
|
| 206 |
+
|
| 207 |
+
Sergey Edunov, Myle Ott, Michael Auli, and David Grangier. Understanding back-translation at scale. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 2018.
|
| 208 |
+
|
| 209 |
+
Raphael Gontijo-Lopes, Sylvia J Smullin, Ekin D Cubuk, and Ethan Dyer. Affinity and diversity: Quantifying mechanisms of data augmentation. arXiv preprint arXiv:2002.08973, 2020.
|
| 210 |
+
|
| 211 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. 2015.
|
| 212 |
+
|
| 213 |
+
Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Scholkopf, and Alexander Smola. ¨ A kernel two-sample test. The Journal of Machine Learning Research, 13(1):723–773, 2012.
|
| 214 |
+
|
| 215 |
+
Hongyu Guo, Yongyi Mao, and Richong Zhang. Augmenting data with mixup for sentence classification: An empirical study. arXiv preprint arXiv:1905.08941, 2019.
|
| 216 |
+
|
| 217 |
+
Yaru Hao, Li Dong, Furu Wei, and Ke Xu. Visualizing and understanding the effectiveness of bert. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP, 2019.
|
| 218 |
+
|
| 219 |
+
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, pp. 9729–9738, 2020.
|
| 220 |
+
|
| 221 |
+
Olivier J Henaff, Aravind Srinivas, Jeffrey De Fauw, Ali Razavi, Carl Doersch, SM Eslami, and ´ Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019.
|
| 222 |
+
|
| 223 |
+
Dan Hendrycks, Norman Mu, Ekin D Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. Augmix: A simple data processing method to improve robustness and uncertainty. In 8th International Conference on Learning Representations, ICLR, 2020.
|
| 224 |
+
|
| 225 |
+
R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In 7th International Conference on Learning Representations, ICLR, 2019.
|
| 226 |
+
|
| 227 |
+
Vu Cong Duy Hoang, Philipp Koehn, Gholamreza Haffari, and Trevor Cohn. Iterative backtranslation for neural machine translation. In Proceedings of the 2nd Workshop on Neural Machine Translation and Generation, pp. 18–24, 2018.
|
| 228 |
+
|
| 229 |
+
Zhiting Hu, Bowen Tan, Russ R Salakhutdinov, Tom M Mitchell, and Eric P Xing. Learning data manipulation for augmentation and weighting. In Advances in Neural Information Processing Systems, pp. 15764–15775, 2019.
|
| 230 |
+
|
| 231 |
+
Dan Iter, Kelvin Guu, Larry Lansing, and Dan Jurafsky. Pretraining with contrastive sentence objectives improves discourse performance of language models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL, 2020.
|
| 232 |
+
|
| 233 |
+
Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Tuo Zhao. Smart: Robust and efficient fine-tuning for pre-trained natural language models through principled regularized optimization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL, 2020.
|
| 234 |
+
|
| 235 |
+
Harini Kannan, Alexey Kurakin, and Ian Goodfellow. Adversarial logit pairing. arXiv preprint arXiv:1803.06373, 2018.
|
| 236 |
+
|
| 237 |
+
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.
|
| 238 |
+
|
| 239 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, 2014.
|
| 240 |
+
|
| 241 |
+
Ashutosh Kumar, Satwik Bhattamishra, Manik Bhandari, and Partha Talukdar. Submodular optimization-based diverse paraphrasing and its effectiveness in data augmentation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2019.
|
| 242 |
+
|
| 243 |
+
Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017.
|
| 244 |
+
|
| 245 |
+
Xiaodong Liu, Hao Cheng, Pengcheng He, Weizhu Chen, Yu Wang, Hoifung Poon, and Jianfeng Gao. Adversarial training for large neural language models. arXiv preprint arXiv:2004.08994, 2020.
|
| 246 |
+
|
| 247 |
+
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, 2019.
|
| 248 |
+
|
| 249 |
+
Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979–1993, 2018.
|
| 250 |
+
|
| 251 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
|
| 252 |
+
|
| 253 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683, 2019.
|
| 254 |
+
|
| 255 |
+
Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semisupervised learning with ladder networks. In Advances in neural information processing systems, pp. 3546–3554, 2015.
|
| 256 |
+
|
| 257 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, ACL, 2016.
|
| 258 |
+
|
| 259 |
+
Dinghan Shen, Mingzhi Zheng, Yelong Shen, Yanru Qu, and Weizhu Chen. A simple but tough-tobeat data augmentation approach for natural language understanding and generation, 2020.
|
| 260 |
+
|
| 261 |
+
Jian Shen, Yanru Qu, Weinan Zhang, and Yong Yu. Wasserstein distance guided representation learning for domain adaptation. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, (AAAI-18), 2018.
|
| 262 |
+
|
| 263 |
+
Kihyuk Sohn, David Berthelot, Chun-Liang Li, Zizhao Zhang, Nicholas Carlini, Ekin D Cubuk, Alex Kurakin, Han Zhang, and Colin Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence. arXiv preprint arXiv:2001.07685, 2020.
|
| 264 |
+
|
| 265 |
+
Chi Sun, Xipeng Qiu, Yige Xu, and Xuanjing Huang. How to fine-tune bert for text classification? In China National Conference on Chinese Computational Linguistics, pp. 194–206. Springer, 2019.
|
| 266 |
+
|
| 267 |
+
Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Advances in neural information processing systems, pp. 1195–1204, 2017.
|
| 268 |
+
|
| 269 |
+
Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019.
|
| 270 |
+
|
| 271 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. EMNLP 2018, pp. 353, 2018.
|
| 272 |
+
|
| 273 |
+
Jason Wei and Kai Zou. Eda: Easy data augmentation techniques for boosting performance on text classification tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP, 2019.
|
| 274 |
+
|
| 275 |
+
Xing Wu, Shangwen Lv, Liangjun Zang, Jizhong Han, and Songlin Hu. Conditional bert contextual augmentation. In International Conference on Computational Science, pp. 84–95. Springer, 2019.
|
| 276 |
+
|
| 277 |
+
Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3733–3742, 2018.
|
| 278 |
+
|
| 279 |
+
Qizhe Xie, Zihang Dai, Eduard Hovy, Minh-Thang Luong, and Quoc V Le. Unsupervised data augmentation for consistency training. arXiv preprint arXiv:1904.12848, 2019.
|
| 280 |
+
|
| 281 |
+
Adams Wei Yu, David Dohan, Minh-Thang Luong, Rui Zhao, Kai Chen, Mohammad Norouzi, and Quoc V Le. Qanet: Combining local convolution with global self-attention for reading comprehension. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
|
| 282 |
+
|
| 283 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017.
|
| 284 |
+
|
| 285 |
+
Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training. In Proceedings of the ieee conference on computer vision and pattern recognition, pp. 4480–4488, 2016.
|
| 286 |
+
|
| 287 |
+
Chen Zhu, Yu Cheng, Zhe Gan, Siqi Sun, Thomas Goldstein, and Jingjing Liu. Freelb: Enhanced adversarial training for language understanding. In 8th International Conference on Learning Representations, ICLR, 2020.
|
| 288 |
+
|
| 289 |
+
# A DATA AUGMENTATION DETAILS
|
| 290 |
+
|
| 291 |
+
We select the following representative data augmentation operations as basic building blocks of our data augmentation module. We denote $\pmb { x } _ { i } = [ x _ { i , 1 } , . . . , x _ { i , l } ]$ as the input text sequence, and $\boldsymbol { e } _ { i } = [ e _ { i , 1 } , \bar { \ldots } , e _ { i , l } ]$ as corresponding embedding vectors.
|
| 292 |
+
|
| 293 |
+
• Back translation is widely applied in machine translation (MT) (Sennrich et al., 2016; Hoang et al., 2018; Edunov et al., 2018), and is introduced to text classification recently (Xie et al., 2019). Back-Trans uses 2 MT models to translate the input example to another pivot language, and then translate it back, ${ \bf { x } } _ { i } $ Pivot Language $ \pmb { x } _ { i } ^ { \prime }$ . C-BERT Word Replacement $\mathrm { W u }$ et al., 2019) is a representative of the word replacement augmentation family. C-BERT pretrains a conditional BERT model to learn contextualized representation $P ( \mathbf { x } _ { j } | [ x _ { i , 1 } \dots x _ { i , j - 1 } [ \mathbf { M A S K } ] x _ { i , j + 1 } \dots x _ { i , l } ] , y _ { i } )$ conditioning on classes. This method then randomly substitutes wor $\mathrm { d } \mathrm { s \ o f \ } x \mathrm { \ t o \ }$ obtain $\pmb { x } ^ { \prime } ( [ x _ { i , 1 } \dots x _ { i , j } ^ { \prime } \dots x _ { i , l } ] ) ^ { 4 }$ .
|
| 294 |
+
Cutoff (DeVries & Taylor, 2017) randomly drops units in a continuous span on the input, while Shen et al. (2020) adapts this method to text embeddings. For input embeddings $e _ { i }$ , this method randomly set a continuous span of elements to 0s, $\pmb { e } _ { i } ^ { \prime } = [ \pmb { e } _ { i , 1 } . . . \pmb { e } _ { i , j - 1 } , 0 . . . 0 , \pmb { e } _ { i , j + w } . . . \pmb { e } _ { i , l } ]$ , where the window size $w \propto l$ , and the start position $j \in [ 1 , l - w ]$ is randomly selected. For transformer encoders that involve position embeddings, we also set input mask as 0s at corresponding positions.
|
| 295 |
+
• Mixup (Zhang et al., 2017) interpolates two image as well as their labels. Guo et al. (2019) borrows this method to text. For 2 input embeddings $( e _ { i } , e _ { j } )$ , mixup interpolates the embedding vectors $\pmb { e } _ { i } ^ { \prime } = a \pmb { e } _ { i } + ( 1 - a ) \pmb { e } _ { j }$ where $a$ is sampled from a Beta distribution. Also, the labels are interpolated for the augmented sample $y _ { i } ^ { \prime } = a { \bar { y _ { i } } } + ( 1 - a ) y _ { j }$ .
|
| 296 |
+
• Adversarial training generates adversarial examples for input embeddings, simply, $\begin{array} { r l } { e _ { i } ^ { \prime } } & { { } = } \end{array}$ arg $\begin{array} { r } { \operatorname* { m a x } _ { \| e _ { i } - e _ { i } ^ { \prime } \| \leq 1 } \bar { \mathcal { L } } ( \bar { f } ( e _ { i } ^ { \prime } ) , y _ { i } ) } \end{array}$ . We mainly follow the implementation of Zhu et al. (2020). Besides, when computing the adversarial example $\boldsymbol { e } _ { i } ^ { \prime }$ , the dropout variables are recorded and reused later when encoding $\bar { e _ { i } ^ { \prime } }$ .
|
| 297 |
+
|
| 298 |
+
Maximum mean discrepancy (MMD) (Gretton et al., 2012) is a widely used discrepancy measure for 2 distributions. We adopt the multi-kernel MMD implementation based on Shen et al. $( 2 0 1 8 ) ^ { 5 }$ to quantify the distance of data distributions before and after DA transformations.
|
| 299 |
+
|
| 300 |
+
# B DATASET DETAILS
|
| 301 |
+
|
| 302 |
+
The datasets and statistics are summarized in Table 4.
|
| 303 |
+
|
| 304 |
+
Table 4: GLUE benchmark summary.
|
| 305 |
+
|
| 306 |
+
<table><tr><td rowspan=1 colspan=1>Corpus</td><td rowspan=1 colspan=1>Task</td><td rowspan=1 colspan=1>SentencePair</td><td rowspan=1 colspan=1>#Train</td><td rowspan=1 colspan=1>#Dev</td><td rowspan=1 colspan=1>#Test</td><td rowspan=1 colspan=1>#Class</td><td rowspan=1 colspan=1>Metrics</td></tr><tr><td rowspan=1 colspan=1>MNLI</td><td rowspan=1 colspan=1>NLI</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>393k</td><td rowspan=1 colspan=1>20k</td><td rowspan=1 colspan=1>20k</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>QQP</td><td rowspan=1 colspan=1>Paraphrase</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>364k</td><td rowspan=1 colspan=1>40k</td><td rowspan=1 colspan=1>391k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy/F1</td></tr><tr><td rowspan=1 colspan=1>QNLI</td><td rowspan=1 colspan=1>QA/NLI</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>108k</td><td rowspan=1 colspan=1>5.7k</td><td rowspan=1 colspan=1>5.7k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>SST</td><td rowspan=1 colspan=1>Sentiment</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>67k</td><td rowspan=1 colspan=1>872</td><td rowspan=1 colspan=1>1.8k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>MRPC</td><td rowspan=1 colspan=1>Paraphrase</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>3.7k</td><td rowspan=1 colspan=1>408</td><td rowspan=1 colspan=1>1.7k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy/F1</td></tr><tr><td rowspan=1 colspan=1>CoLA</td><td rowspan=1 colspan=1>Acceptability</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>8.5k</td><td rowspan=1 colspan=1>1k</td><td rowspan=1 colspan=1>1k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Matthews corr</td></tr><tr><td rowspan=1 colspan=1>RTE</td><td rowspan=1 colspan=1>NLI</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>2.5k</td><td rowspan=1 colspan=1>276</td><td rowspan=1 colspan=1>3k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>STS-B</td><td rowspan=1 colspan=1>Similarity</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>7k</td><td rowspan=1 colspan=1>1.5k</td><td rowspan=1 colspan=1>1.4k</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>Pearson/Spe-arman corr</td></tr></table>
|
| 307 |
+
|
| 308 |
+
# C IMPLEMENTATION DETAILS
|
| 309 |
+
|
| 310 |
+
Our implementation is based on RoBERTa (Liu et al., 2019). We use ADAM (Kingma & Ba, 2014) as our optimizer. We follow the hyper-parameter study of RoBERTa and set as default the following parameters: batch size (32), learning rate (1e-5), epochs (5), warmup ratio (0.06), weight decay (0.1) and we keep other parameters unchanged with RoBERTa. For Back-Trans, we use the en-de single models trained on WMT19 and released in FairSeq. More specifically, we use beam search (beam size $= 5$ ) and keep only the top-1 hypothesis. We slightly tune Adversarial parameters on MNLI based on FreeLB and fix them on other datasets, since adversarial training is not our focus. For contrastive regularization, we implement based on MoCo. In GLUE evaluation, we mainly tune the weights of 3 regularization terms, $\alpha \in [ 0 , 1 ] , \beta \in [ 0 , 3 ] , \lambda \in [ 0 , 0 . 0 3 ]$ (Eq. 6, 11). Besides, for smaller tasks (MRPC, CoLA, RTE, STS-B), we use the best performed MNLI model to initialize their parameters6.
|
parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA_content_list.json
ADDED
|
@@ -0,0 +1,1662 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CODA: CONTRAST-ENHANCED AND DIVERSITYPROMOTING DATA AUGMENTATION FOR NATURAL LANGUAGE UNDERSTANDING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yanru $\\mathbf { Q } \\mathbf { u } ^ { 1 }$ ∗, Dinghan Shen2, Yelong Shen2, Sandra Sajeev2, Jiawei $\\mathbf { H a n } ^ { 1 }$ , Weizhu Chen2 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
194,
|
| 20 |
+
790,
|
| 21 |
+
209
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1University of Illinois, Urbana-Champaign, 2Microsoft Dynamics 3 \n1{yanruqu2,hanj}@illinois.edu, \n2{dishen,yeshe,ssajeev,wzchen}@microsoft.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
186,
|
| 30 |
+
212,
|
| 31 |
+
625,
|
| 32 |
+
252
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
290,
|
| 43 |
+
544,
|
| 44 |
+
304
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Data augmentation has been demonstrated as an effective strategy for improving model generalization and data efficiency. However, due to the discrete nature of natural language, designing label-preserving transformations for text data tends to be more challenging. In this paper, we propose a novel data augmentation framework dubbed CoDA, which synthesizes diverse and informative augmented examples by integrating multiple transformations organically. Moreover, a contrastive regularization objective is introduced to capture the global relationship among all the data samples. A momentum encoder along with a memory bank is further leveraged to better estimate the contrastive loss. To verify the effectiveness of the proposed framework, we apply CoDA to Transformer-based models on a wide range of natural language understanding tasks. On the GLUE benchmark, CoDA gives rise to an average improvement of $2 . 2 \\%$ while applied to the RoBERTa-large model. More importantly, it consistently exhibits stronger results relative to several competitive data augmentation and adversarial training baselines (including the low-resource settings). Extensive experiments show that the proposed contrastive objective can be flexibly combined with various data augmentation approaches to further boost their performance, highlighting the wide applicability of the CoDA framework. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
319,
|
| 54 |
+
764,
|
| 55 |
+
568
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
593,
|
| 66 |
+
336,
|
| 67 |
+
608
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Data augmentation approaches have successfully improved large-scale neural-network-based models, (Laine & Aila, 2017; Xie et al., 2019; Berthelot et al., 2019; Sohn et al., 2020; He et al., 2020; Khosla et al., 2020; Chen et al., 2020b), however, the majority of existing research is geared towards computer vision tasks. The discrete nature of natural language makes it challenging to design effective label-preserving transformations for text sequences that can help improve model generalization (Hu et al., 2019; Xie et al., 2019). On the other hand, fine-tuning powerful, over-parameterized language models1 proves to be difficult, especially when there is a limited amount of task-specific data available. It may result in representation collapse (Aghajanyan et al., 2020) or require special finetuning techniques (Sun et al., 2019; Hao et al., 2019). In this work, we aim to take a further step towards finding effective data augmentation strategies through systematic investigation. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
612,
|
| 77 |
+
825,
|
| 78 |
+
751
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In essence, data augmentation can be regarded as constructing neighborhoods around a training instance that preserve the ground-truth label. With such a characterization, adversarial training (Zhu et al., 2020; Jiang et al., 2020; Liu et al., 2020; Cheng et al., 2020) also performs label-preserving transformation in embedding space, and thus is considered as an alternative to data augmentation methods in this work. From this perspective, the goal of developing effective data augmentation strategies can be summarized as answering three fundamental questions: ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
758,
|
| 88 |
+
823,
|
| 89 |
+
842
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "i) What are some label-preserving transformations, that can be applied to text, to compose useful augmented samples? ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
848,
|
| 99 |
+
823,
|
| 100 |
+
877
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "ii) Are these transformations complementary in nature, and can we find some strategies to consolidate them for producing more diverse augmented examples? ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
103,
|
| 110 |
+
821,
|
| 111 |
+
132
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "iii) How can we incorporate the obtained augmented samples into the training process in an effective and principled manner? ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
173,
|
| 120 |
+
138,
|
| 121 |
+
823,
|
| 122 |
+
166
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Previous efforts in augmenting text data were mainly focused on answering the first question (Yu et al., 2018; Xie et al., 2019; Kumar et al., 2019; Wei & Zou, 2019; Chen et al., 2020a; Shen et al., 2020). Regarding the second question, different label-preserving transformations have been proposed, but it remains unclear how to integrate them organically. In addition, it has been shown that the diversity of augmented samples plays a vital role in their effectiveness (Xie et al., 2019; Gontijo-Lopes et al., 2020). In the case of image data, several strategies that combine different augmentation methods have been proposed, such as applying multiple transformations sequentially (Cubuk et al., 2018; 2020; Hendrycks et al., 2020), learning data augmentation policies (Cubuk et al., 2018), randomly sampling operations for each data point (Cubuk et al., 2020). However, these methods cannot be naively applied to text data, since the semantic meanings of a sentence are much more sensitive to local perturbations (relative to an image). ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
174,
|
| 132 |
+
825,
|
| 133 |
+
327
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "As for the third question, consistency training is typically employed to utilize the augmented samples (Laine & Aila, 2017; Hendrycks et al., 2020; Xie et al., 2019; Sohn et al., 2020; Miyato et al., 2018). This method encourages the model predictions to be invariant to certain label-preserving transformations. However, existing approaches only examine a pair of original and augmented samples in isolation, without considering other examples in the entire training set. As a result, the representation of an augmented sample may be closer to those of other training instances, rather than the one it is derived from. Based on this observation, we advocate that, in addition to consistency training, a training objective that can globally capture the intrinsic relationship within the entire set of original and augmented training instances can help leverage augmented examples more effectively. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
334,
|
| 143 |
+
825,
|
| 144 |
+
459
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "In this paper, we introduce a novel Contrast-enhanced and Diversity-promoting Data Augmentation (CoDA) framework for natural language understanding. To improve the diversity of augmented samples, we extensively explore different combinations of isolated label-preserving transformations in an unified approach. We find that stacking distinct label-preserving transformations produces particularly informative samples. Specifically, the most diverse and high-quality augmented samples are obtained by stacking an adversarial training module over the back-translation transformation. Besides the consistency-regularized loss for repelling the model to behave consistently within local neighborhoods, we propose a contrastive learning objective to capture the global relationship among the data points in the representation space. We evaluate CoDA on the GLUE benchmark (with RoBERTa (Liu et al., 2019) as the testbed), and CoDA consistently improves the generalization ability of resulting models and gives rise to significant gains relative to the standard fine-tuning procedure. Moreover, our method also outperforms various single data augmentation operations, combination schemes, and other strong baselines. Additional experiments in the low-resource settings and ablation studies further demonstrate the effectiveness of this framework. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
465,
|
| 154 |
+
825,
|
| 155 |
+
660
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "2 METHOD ",
|
| 162 |
+
"text_level": 1,
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
672,
|
| 166 |
+
282,
|
| 167 |
+
689
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "In this section, we focus our discussion on the natural language understanding (NLU) tasks, and particularly, under a text classification scenario. However, the proposed data augmentation framework can be readily extended to other NLP tasks as well. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
176,
|
| 176 |
+
696,
|
| 177 |
+
823,
|
| 178 |
+
739
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "2.1 BACKGROUND: DATA AUGMENTATION AND ADVERSARIAL TRAINING",
|
| 185 |
+
"text_level": 1,
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
750,
|
| 189 |
+
700,
|
| 190 |
+
763
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Data Augmentation Let $\\mathcal { D } = \\{ \\substack { { \\pmb x } _ { i } , y _ { i } } \\} _ { i = 1 \\ldots N }$ denote the training dataset, where the input example $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ is a sequence of tokens, and $y _ { i }$ is the corresponding label. To improve model’s robustness and generalization ability, several data augmentation techniques (e.g., back-translation (Sennrich et al., 2016; Edunov et al., 2018; Xie et al., 2019), mixup (Guo et al., 2019), c-BERT (Wu et al., 2019)) have been proposed. Concretely, label-preserving transformations are performed (on the original training sequences) to synthesize a collection of augmented samples, denoted by $\\mathcal { D } ^ { \\prime } = \\{ { \\pmb x } _ { i } ^ { \\prime } , \\bar { y } _ { i } ^ { \\prime } \\} _ { i = 1 \\ldots N }$ . Thus, a model can learn from both the training set $\\mathcal { D }$ and the augmented set $\\mathcal { D } ^ { \\prime }$ , with $p _ { \\theta } ( \\cdot )$ the predicted output distribution of the model parameterized by $\\theta$ : ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
173,
|
| 199 |
+
767,
|
| 200 |
+
825,
|
| 201 |
+
880
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "equation",
|
| 207 |
+
"img_path": "images/70977c24a454b2549aa8a2fa8921b51c8de3a3626636321a2702c534779dedbf.jpg",
|
| 208 |
+
"text": "$$\n\\theta ^ { * } = \\underset { \\theta } { \\arg \\operatorname* { m i n } } \\sum _ { ( \\mathbf { x } _ { i } , y _ { i } ) \\in \\mathcal { D } } \\mathcal { L } \\big ( p _ { \\theta } ( \\mathbf { x } _ { i } ) , y _ { i } \\big ) + \\sum _ { ( \\mathbf { x } _ { i } ^ { \\prime } , y _ { i } ^ { \\prime } ) \\in \\mathcal { D } ^ { \\prime } } \\mathcal { L } \\big ( p _ { \\theta } ( \\mathbf { x } _ { i } ^ { \\prime } ) , y _ { i } ^ { \\prime } \\big )\n$$",
|
| 209 |
+
"text_format": "latex",
|
| 210 |
+
"bbox": [
|
| 211 |
+
289,
|
| 212 |
+
883,
|
| 213 |
+
709,
|
| 214 |
+
921
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "image",
|
| 220 |
+
"img_path": "images/f0bacbbacfc9f71f1fd81088fd1d953683a91465c641ddcc046cf39024761c21.jpg",
|
| 221 |
+
"image_caption": [
|
| 222 |
+
"Figure 1: Illustration of data augmentation combined with adversarial training. "
|
| 223 |
+
],
|
| 224 |
+
"image_footnote": [],
|
| 225 |
+
"bbox": [
|
| 226 |
+
209,
|
| 227 |
+
97,
|
| 228 |
+
813,
|
| 229 |
+
270
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "Several recent research efforts were focused on encouraging model predictions to be invariant to stochastic or domain-specific data transformations (Xie et al., 2019; Laine $\\&$ Aila, 2017; Tarvainen & Valpola, 2017; Sohn et al., 2020; Miyato et al., 2018; Jiang et al., 2020; Hendrycks et al., 2020). Take back-translation as example: $\\pmb { x } _ { i } ^ { \\prime } = \\mathbf { B a c k T r a n s } ( \\pmb { x } _ { i } )$ , then $\\pmb { x } _ { i } ^ { \\prime }$ is a paraphrase of $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ . The model can be regularized to have consistent predictions for $( \\pmb { x } _ { i } , \\pmb { x } _ { i } ^ { \\prime } )$ , by minimizing the distribution discrepancy $\\mathcal { R } _ { \\mathrm { C S } } ( p _ { \\theta } ( \\pmb { x } _ { i } ) , p _ { \\theta } ( \\pmb { x } _ { i } ^ { \\prime } ) )$ , which typically adopts KL divergence (see Fig. 1a). ",
|
| 236 |
+
"bbox": [
|
| 237 |
+
173,
|
| 238 |
+
315,
|
| 239 |
+
825,
|
| 240 |
+
400
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "Adversarial Training In another line, adversarial training methods are applied to text data (Zhu et al., 2020; Jiang et al., 2020; Cheng et al., 2020; Aghajanyan et al., 2020) for improving model’s robustness. Compared with data augmentation techniques, adversarial training requires no domain knowledge to generate additional training examples. Instead, it relies on the model itself to produce adversarial examples which the model are most likely to make incorrect predictions. Similar to data augmentation, adversarial training also typically utilizes the cross-entropy and consistencybased objectives for training. As the two most popular adversarial-training-based algorithms, the adversarial loss (Goodfellow et al., 2015) (Eqn. 2) and virtual adversarial loss (Miyato et al., 2018) (Eqn. 3) can be expressed as follows (see Fig. 1b): ",
|
| 247 |
+
"bbox": [
|
| 248 |
+
173,
|
| 249 |
+
415,
|
| 250 |
+
825,
|
| 251 |
+
540
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "equation",
|
| 257 |
+
"img_path": "images/7cba9cfe1750c59313ab0dc6e893c2c069a8ff70982d076c9f90c5ae9478da89.jpg",
|
| 258 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { R } _ { \\mathrm { A T } } ( \\boldsymbol { x } _ { i } , \\tilde { \\boldsymbol { x } } _ { i } , y _ { i } ) = \\mathcal { L } \\big ( p _ { \\theta } ( \\tilde { x } _ { i } ) , y _ { i } \\big ) , s . t . , \\| \\tilde { \\boldsymbol { x } } _ { i } - \\boldsymbol { x } _ { i } \\| \\leq \\epsilon , } \\\\ { \\mathcal { R } _ { \\mathrm { V A T } } ( \\boldsymbol { x } _ { i } , \\tilde { \\boldsymbol { x } } _ { i } ) = \\mathcal { R } _ { \\mathrm { C S } } \\big ( p _ { \\theta } ( \\tilde { \\boldsymbol { x } } _ { i } ) , p _ { \\theta } ( \\boldsymbol { x } _ { i } ) \\big ) , s . t . , \\| \\tilde { \\boldsymbol { x } } _ { i } - \\boldsymbol { x } _ { i } \\| \\leq \\epsilon . } \\end{array}\n$$",
|
| 259 |
+
"text_format": "latex",
|
| 260 |
+
"bbox": [
|
| 261 |
+
299,
|
| 262 |
+
545,
|
| 263 |
+
697,
|
| 264 |
+
588
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "Generally, there is no closed-form to obtain the exact adversarial example $\\hat { \\mathbf { x } } _ { i }$ in either Eqn. 2 or 3. However, it usually can be approximated by a low-order approximation of the objective function with respect to $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ . For example, the adversarial example in Eqn. 2 can be approximated by: ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
173,
|
| 273 |
+
592,
|
| 274 |
+
825,
|
| 275 |
+
635
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "equation",
|
| 281 |
+
"img_path": "images/eea9f9b6a866a3f42b39f7736e86cfd3fec52e2907644d4d9fb26a5feb10eb99.jpg",
|
| 282 |
+
"text": "$$\n\\hat { \\pmb { x } } _ { i } \\approx \\pmb { x } _ { i } + \\epsilon \\frac { \\pmb { g } } { \\lVert \\pmb { g } \\rVert _ { 2 } } , \\mathrm { w h e r e } \\ \\pmb { g } = \\nabla _ { \\pmb { x } _ { i } } \\mathcal { L } \\big ( p _ { \\theta } ( \\pmb { x } _ { i } ) , y _ { i } \\big ) \\ .\n$$",
|
| 283 |
+
"text_format": "latex",
|
| 284 |
+
"bbox": [
|
| 285 |
+
331,
|
| 286 |
+
641,
|
| 287 |
+
665,
|
| 288 |
+
672
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "2.2 DIVERSITY-PROMOTING CONSISTENCY TRAINING ",
|
| 295 |
+
"text_level": 1,
|
| 296 |
+
"bbox": [
|
| 297 |
+
174,
|
| 298 |
+
689,
|
| 299 |
+
562,
|
| 300 |
+
704
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "As discussed in the previous section, data augmentation and adversarial training share the same intuition of producing neighbors around the original training instances. Moreover, both approaches share very similar training objectives. Therefore, it is natural to ask the following question: are different data augmentation methods and adversarial training equal in nature? Otherwise, are they complementary to each other, and thus can be consolidated together to further improve the model’s generalization ability? Notably, it has been shown, in the CV domain, that combining different data augmentation operations could lead to more diverse augmented examples (Cubuk et al., 2018; 2020; Hendrycks et al., 2020). However, this is especially challenging for natural language, given that the semantics of a sentence can be entirely altered by slight perturbations. ",
|
| 307 |
+
"bbox": [
|
| 308 |
+
173,
|
| 309 |
+
707,
|
| 310 |
+
825,
|
| 311 |
+
833
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 2
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"text": "To answer the above question, we propose several distinct strategies to combine different data transformations, with the hope to produce more diverse and informative augmented examples. Specifically, we consider 5 different types of label-preserving transformations: back-translation (Sennrich et al., 2016; Edunov et al., 2018; Xie et al., 2019), $c$ -BERT word replacement (Wu et al., 2019), mixup (Guo et al., 2019; Chen et al., 2020a), cutoff (Shen et al., 2020), and adversarial training (Zhu et al., 2020; Jiang et al., 2020). The 3 combination strategies are schematically illustrated in Figure 2. For random combination, a particular label-preserving transformation is randomly selected, among all the augmentation operations available, for each mini-batch. As to the mixup interpolation, given two samples $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ and $\\boldsymbol { \\mathscr { x } } _ { j }$ drawn in a mini-batch, linear interpolation is performed between their input embedding matrices $e _ { i }$ and $e _ { j }$ (Zhang et al., 2017): $\\pmb { e } _ { i } ^ { \\prime } = \\bar { a \\pmb { e } } _ { i } + ( 1 - a ) \\bar { \\pmb { e } } _ { j }$ , where $a$ is the interpolation parameter, usually drawn from a Beta distribution. ",
|
| 318 |
+
"bbox": [
|
| 319 |
+
174,
|
| 320 |
+
840,
|
| 321 |
+
825,
|
| 322 |
+
924
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 2
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "image",
|
| 328 |
+
"img_path": "images/9b120597e49a72475b0c9efa34911ad271f1fa285d26f033d4cccf77a78aba65.jpg",
|
| 329 |
+
"image_caption": [
|
| 330 |
+
"Figure 2: Illustration of different strategies to combine various label-preserving transformations. "
|
| 331 |
+
],
|
| 332 |
+
"image_footnote": [],
|
| 333 |
+
"bbox": [
|
| 334 |
+
194,
|
| 335 |
+
98,
|
| 336 |
+
826,
|
| 337 |
+
190
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 3
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "",
|
| 344 |
+
"bbox": [
|
| 345 |
+
173,
|
| 346 |
+
231,
|
| 347 |
+
825,
|
| 348 |
+
301
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 3
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "Moreover, we consider stacking different label-preserving transformations in a sequential manner (see Figure 2c). It is worth noting that due to the discrete nature of text data, some stacking orders are infeasible. For example, it is not reasonable to provide an adversarially-perturbed embedding sequence to the back-translation module. Without loss of generality, we choose the combination where adversarial training is stacked over back-translation to demonstrate the sequential stacking operation (see Fig. 1c). Formally, given a training example $( { \\pmb x } _ { i } , y _ { i } )$ , the consistency training objective for such a stacking operation can be written as: ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
173,
|
| 357 |
+
308,
|
| 358 |
+
825,
|
| 359 |
+
405
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "equation",
|
| 365 |
+
"img_path": "images/ab7e17fbc4eeed6e728e12ef9e54667f96aaa4d16a3fdcb638ef73be777bcdf8.jpg",
|
| 366 |
+
"text": "$$\n\\begin{array} { r } { x _ { i } ^ { \\prime } = \\mathrm { B a c k T r a n s } ( x _ { i } ) , \\ \\hat { x } _ { i } \\approx \\mathrm { a r g m a x } _ { \\hat { x } _ { i } } \\mathcal { R } _ { \\mathrm { A T } } ( x _ { i } ^ { \\prime } , \\tilde { x } _ { i } , y _ { i } ) \\ , \\ } \\\\ { \\mathcal { L } _ { \\mathrm { c o n s i s t e n c y } } ( x _ { i } , \\hat { x } _ { i } , y _ { i } ) = \\mathcal { L } \\big ( p _ { \\theta } ( x _ { i } ) , y _ { i } \\big ) + \\alpha \\mathcal { L } ( p _ { \\theta } ( \\hat { x } _ { i } ) , y _ { i } ) + \\beta \\mathcal { R } _ { \\mathrm { C S } } ( p _ { \\theta } ( x _ { i } ) , p _ { \\theta } ( \\hat { x } _ { i } ) ) \\ , \\ } \\end{array}\n$$",
|
| 367 |
+
"text_format": "latex",
|
| 368 |
+
"bbox": [
|
| 369 |
+
227,
|
| 370 |
+
410,
|
| 371 |
+
769,
|
| 372 |
+
452
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "where the first term corresponds to the cross-entropy loss, the second term is the adversarial loss, $\\mathcal { R } _ { \\mathrm { C S } }$ denotes the consistency loss term between $( \\pmb { x } _ { i } , \\hat { \\pmb { x } } _ { i } )$ . Note that $\\hat { \\mathbf { x } } _ { i }$ is obtained through two different label-preserving transformations applied to $_ { \\textbf { \\em x } }$ , and thus deviates farther from $_ { \\textbf { \\em x } }$ and should be more diverse than $\\pmb { x } _ { i } ^ { \\prime }$ . Inspired by (Bachman et al., 2014; Zheng et al., 2016; Kannan et al., 2018; Hendrycks et al., 2020), we employ the Jensen-Shannon divergence for $\\mathcal { R } _ { \\mathrm { C S } }$ , since it is upper bounded and tends to be more stable and consistent relative to the KL divergence: ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
173,
|
| 381 |
+
455,
|
| 382 |
+
825,
|
| 383 |
+
539
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "equation",
|
| 389 |
+
"img_path": "images/33fbdb57333c7c78cddaaffa91cf72ebb264d511dc6e3ec4b2c4bdadfc3c0037.jpg",
|
| 390 |
+
"text": "$$\n\\mathcal { R } _ { \\mathrm { C S } } ( p _ { \\theta } ( \\pmb { x } _ { i } ) , p _ { \\theta } ( \\pmb { \\hat { x } } _ { i } ) ) = \\frac { 1 } { 2 } \\big ( \\mathrm { K L } ( p _ { \\theta } ( \\pmb { x } _ { i } ) | | M ) + \\mathrm { K L } ( p _ { \\theta } ( \\pmb { \\hat { x } } _ { i } ) ) | | M ) \\big ) ,\n$$",
|
| 391 |
+
"text_format": "latex",
|
| 392 |
+
"bbox": [
|
| 393 |
+
281,
|
| 394 |
+
545,
|
| 395 |
+
715,
|
| 396 |
+
575
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 3
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "where $M = ( p _ { \\theta } ( \\pmb { x } _ { i } ) + p _ { \\theta } ( \\pmb { \\hat { x } } _ { i } ) ) / 2$ . Later we simply use $\\pmb { x } _ { i } ^ { \\prime }$ to represent the transformed example. ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
169,
|
| 405 |
+
580,
|
| 406 |
+
805,
|
| 407 |
+
597
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "2.3 CONTRASTIVE REGULARIZATION ",
|
| 414 |
+
"text_level": 1,
|
| 415 |
+
"bbox": [
|
| 416 |
+
176,
|
| 417 |
+
613,
|
| 418 |
+
446,
|
| 419 |
+
627
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 3
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "Consistency loss only provides local regularization, i.e., $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ and $\\pmb { x } _ { i } ^ { \\prime }$ should have close predictions. However, the relative positions between $\\pmb { x } _ { i } ^ { \\prime }$ and other training instances $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { j } }$ $( j \\ne i )$ have not been examined. In this regard, we propose to leverage a contrastive learning objective to better utilize the augmented examples. Specifically, we assume that the model should encourage an augmented sample $\\pmb { x } _ { i } ^ { \\prime }$ to be closer, in the representation space, to its original sample $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ , relative to other data points $\\boldsymbol { \\mathscr { x } } _ { j }$ $( j \\neq i )$ in the training set. This is a reasonable assumption since intuitively, the model should be robust enough to successfully determine from which original data an augmented sample is produced. ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
174,
|
| 428 |
+
638,
|
| 429 |
+
516,
|
| 430 |
+
833
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 3
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "image",
|
| 436 |
+
"img_path": "images/3b1849a4b182dd47ff6c7a8384d5c9c21cd5935667573b78612c73e4aef11f9b.jpg",
|
| 437 |
+
"image_caption": [
|
| 438 |
+
"Figure 3: Illustration of the contrastive learning module. "
|
| 439 |
+
],
|
| 440 |
+
"image_footnote": [],
|
| 441 |
+
"bbox": [
|
| 442 |
+
540,
|
| 443 |
+
609,
|
| 444 |
+
818,
|
| 445 |
+
772
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "The contrastive learning module is illustrated in Fig. 3. As demonstrated by prior efforts on contrastive learning, adopting a large batch size is especially vital for its effectiveness (Chen et al., 2020b; Khosla et al., 2020). Therefore, we introduce a memory bank that stores the history embeddings, thus enabling much larger number of negative samples. Moreover, to avoid the encoder from changing too rapidly (which may result in inconsistency embeddings), a momentum encoder module is incorporated into our algorithm. Concretely, let $f _ { \\theta } { \\overset { \\cdot } { ( } . ) }$ and $f _ { \\bar { \\theta } } ( . )$ denote the transformation parameterized by the query encoder and key encoder, respectively. Note that $\\theta$ and $\\bar { \\theta }$ represent their parameters. The momentum model parameters $\\bar { \\theta }$ are not learned by gradients. Instead, they are updated through the momentum rule: $\\bar { \\theta } \\gamma \\bar { \\theta } + ( 1 - \\gamma ) \\theta$ at each training step. We omit the details here and refer the interested readers to the work by (He et al., 2020) for further explanation. Given a sample $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ and its augmented example $\\pmb { x } _ { i } ^ { \\prime }$ , the query and key can be obtained as follows: ",
|
| 452 |
+
"bbox": [
|
| 453 |
+
173,
|
| 454 |
+
839,
|
| 455 |
+
825,
|
| 456 |
+
924
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 3
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "",
|
| 463 |
+
"bbox": [
|
| 464 |
+
173,
|
| 465 |
+
103,
|
| 466 |
+
825,
|
| 467 |
+
174
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 4
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "equation",
|
| 473 |
+
"img_path": "images/c047416ffd9122039defcf8e533b5816fb46e245b5192103e67b80b37b556205.jpg",
|
| 474 |
+
"text": "$$\n\\begin{array} { r } { \\pmb q _ { i } = f _ { \\theta } ( \\pmb x _ { i } ) , \\quad \\pmb q _ { i } ^ { \\prime } = f _ { \\theta } ( \\pmb x _ { i } ^ { \\prime } ) , \\quad \\pmb k _ { i } = f _ { \\bar { \\theta } } ( \\pmb x _ { i } ) . } \\end{array}\n$$",
|
| 475 |
+
"text_format": "latex",
|
| 476 |
+
"bbox": [
|
| 477 |
+
348,
|
| 478 |
+
178,
|
| 479 |
+
650,
|
| 480 |
+
196
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 4
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "Thus, the contrastive training objective can be written as: ",
|
| 487 |
+
"bbox": [
|
| 488 |
+
174,
|
| 489 |
+
200,
|
| 490 |
+
549,
|
| 491 |
+
215
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 4
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "equation",
|
| 497 |
+
"img_path": "images/002a4bcacc80e25328011a737dcd9a06bd2e33917b941e09db7a2acf58ef5447.jpg",
|
| 498 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { R } _ { \\mathrm { c o n t r a s t } } ( \\boldsymbol { x } _ { i } , \\boldsymbol { x } _ { i } ^ { \\prime } , \\mathcal { M } ) = \\mathcal { R } _ { \\mathrm { C T } } ( \\boldsymbol { q } _ { i } , \\boldsymbol { k } _ { i } , \\mathcal { M } ) + \\mathcal { R } _ { \\mathrm { C T } } ( \\boldsymbol { q } _ { i } ^ { \\prime } , \\boldsymbol { k } _ { i } , \\mathcal { M } ) , } \\\\ & { \\quad \\mathcal { R } _ { \\mathrm { C T } } ( \\boldsymbol { q } _ { i } , \\boldsymbol { k } _ { i } , \\mathcal { M } ) = - \\log \\frac { \\exp ( \\sin ( \\boldsymbol { q } _ { i } , \\boldsymbol { k } _ { i } ) / \\tau ) } { \\sum _ { \\boldsymbol { k } _ { j } \\in \\mathcal { M } \\bigcup \\{ \\boldsymbol { k } _ { i } \\} } \\exp ( \\sin ( \\boldsymbol { q } _ { i } , \\boldsymbol { k } _ { j } ) / \\tau ) } , } \\end{array}\n$$",
|
| 499 |
+
"text_format": "latex",
|
| 500 |
+
"bbox": [
|
| 501 |
+
285,
|
| 502 |
+
219,
|
| 503 |
+
710,
|
| 504 |
+
279
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 4
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "where $\\tau$ is the temperature, and $\\mathcal { M }$ is the memory bank in which the history keys are stored. Cosine similarity is chosen for $\\mathrm { s i m } ( \\cdot )$ . Note that $\\mathscr { R } _ { \\mathrm { C T } } ( \\dot { \\pmb q } _ { i } ^ { \\prime } , \\pmb { k } _ { i } , \\mathcal { M } )$ is similarly defined as $\\mathscr { R } _ { \\mathrm { C T } } ( \\ b { q } _ { i } , \\ b { k } _ { i } , \\mathscr { M } )$ (with $\\pmb q _ { i }$ replaced by $\\pmb q _ { i } ^ { \\prime }$ in Eqn. 10). In Eqn. 9, the first term corresponds to the contrastive loss calculated on the original examples (self-contrastive loss), while the second term is computed on the augmented sample (augment-contrastive loss). Under such a framework, the pair of original and augmented samples are encouraged to stay closer in the learned embedding space, relative to all other training instances. As a result, the model is regularized globally through considering the embeddings of all the training examples available. ",
|
| 511 |
+
"bbox": [
|
| 512 |
+
173,
|
| 513 |
+
281,
|
| 514 |
+
825,
|
| 515 |
+
393
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 4
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "text",
|
| 521 |
+
"text": "By integrating both the consistency training objective and the contrastive regularization, the overall training objective for the CoDA framework can be expressed as: ",
|
| 522 |
+
"bbox": [
|
| 523 |
+
174,
|
| 524 |
+
398,
|
| 525 |
+
821,
|
| 526 |
+
428
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 4
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "equation",
|
| 532 |
+
"img_path": "images/fc59c344e41eeb32717b886e58d36b6a9d435080d9c9c15adf7d687a564a988a.jpg",
|
| 533 |
+
"text": "$$\n\\theta ^ { * } = \\operatorname * { a r g m i n } _ { \\theta } \\sum _ { ( \\pmb { x } _ { i } , y _ { i } ) \\in \\mathcal { D } } \\mathcal { L } _ { \\mathrm { c o n s i s t e n c y } } ( \\pmb { x } _ { i } , \\pmb { x } _ { i } ^ { \\prime } , y _ { i } ) + \\lambda \\mathcal { R } _ { \\mathrm { c o n t r a s t } } ( \\pmb { x } _ { i } , \\pmb { x } _ { i } ^ { \\prime } , \\mathcal { M } ) .\n$$",
|
| 534 |
+
"text_format": "latex",
|
| 535 |
+
"bbox": [
|
| 536 |
+
264,
|
| 537 |
+
433,
|
| 538 |
+
732,
|
| 539 |
+
469
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "where $\\lambda$ is a hyperparameter to be chosen. It is worth noting that the final objective has taken both the local (consistency loss) and global (contrastive loss) information introduced by the augmented examples into consideration. ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
174,
|
| 548 |
+
473,
|
| 549 |
+
825,
|
| 550 |
+
516
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "3 EXPERIMENTS ",
|
| 557 |
+
"text_level": 1,
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
529,
|
| 561 |
+
328,
|
| 562 |
+
545
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "To verify the effectiveness of CoDA, We evaluate it on the widely-adopted GLUE benchmark (Wang et al., 2018), which consists of multiple natural language understanding (NLU) tasks. The details of these datasets can be found in Appendix B. RoBERTa (Liu et al., 2019) is employed as the testbed for our experiments. However, the proposed approach can be flexibly integrated with other models as well. We provide more implementation details in Appendix C. Our code will be released to encourage future research. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
173,
|
| 571 |
+
553,
|
| 572 |
+
825,
|
| 573 |
+
637
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 4
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "In this section, we first present our exploration of several different strategies to consolidate various data transformations (Sec 3.1). Next, we conduct extensive experiments to carefully select the contrastive objective for NLU problems in Sec 3.2. Based upon these settings, we further evaluate CoDA on the GLUE benchmark and compare it with a set of competitive baselines in Sec 3.3. Additional experiments in the low-resource settings and qualitative analysis (Sec 3.4) are further conducted to gain a deep understanding of the proposed framework. ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
174,
|
| 582 |
+
643,
|
| 583 |
+
825,
|
| 584 |
+
727
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "3.1 COMBINING LABEL-PRESERVING TRANSFORMATIONS ",
|
| 591 |
+
"text_level": 1,
|
| 592 |
+
"bbox": [
|
| 593 |
+
174,
|
| 594 |
+
737,
|
| 595 |
+
589,
|
| 596 |
+
751
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 4
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "text",
|
| 602 |
+
"text": "We start by implementing and comparing several data augmentation baselines. As described in the previous section, we explore 5 different approaches: back-translation, $c$ -BERT word replacement, Mixup, Cutoff and adversarial training. More details can be found in Appendix A. The standard cross-entropy loss, along with the consistency regularization term (Eq. 6) is utilized for all methods to ensure a fair comparison. We employ the MNLI dataset and RoBERTa-base model for the comparison experiments with the results shown in Table 1. ",
|
| 603 |
+
"bbox": [
|
| 604 |
+
174,
|
| 605 |
+
756,
|
| 606 |
+
825,
|
| 607 |
+
839
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 4
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "All these methods have achieved improvements over the RoBERTa-base model, demonstrating the effectiveness of leveraging label-preserving transformations for NLU. Moreover, back-translation, cutoff and adversarial training exhibit stronger empirical results relative to mixup and c-BERT. ",
|
| 614 |
+
"bbox": [
|
| 615 |
+
174,
|
| 616 |
+
847,
|
| 617 |
+
825,
|
| 618 |
+
888
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 4
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "To improve the diversity of augmented examples, we explore several strategies to combine multiple transformations: i) random combination, $\\romannumeral 2$ ) mixup interpolation, and iii) sequential stacking, as shown in Fig. 2. In Table 1, the score of naive random combination lies between single transformations. This may be attributed to the fact that different label-preserving transformations regularize the model in distinct ways, and thus the model may not be able to leverage different regularization terms simultaneously. ",
|
| 625 |
+
"bbox": [
|
| 626 |
+
173,
|
| 627 |
+
895,
|
| 628 |
+
823,
|
| 629 |
+
924
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 4
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "",
|
| 636 |
+
"bbox": [
|
| 637 |
+
174,
|
| 638 |
+
103,
|
| 639 |
+
823,
|
| 640 |
+
160
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 5
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "Besides, among all the other combination strategies, we observe that gains can be obtained by integrating back-translation and adversarial training together. Concretely, mixing back-translation and adversarial training samples (in the input embedding space) slightly improve the accuracy from 88.5 to 88.6. More importantly, the result is further improved to 88.8 with these two transformations stacking together2 (see Sec 2.2). With significance test, we find stack (back, adv) performs consistently better than other combinations (t-test of 10 runs, $p$ -values $< ~ 0 . 0 2 $ ). This observation indicates that the stacking operation, especially in the case of back-translation and adversarial training, can produce more diverse augment examples. ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
174,
|
| 649 |
+
166,
|
| 650 |
+
483,
|
| 651 |
+
401
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 5
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "table",
|
| 657 |
+
"img_path": "images/de5096cd2494ef886b619b966d3ae398ef6c4308096bb7cf0b0eb10d0cb920dd.jpg",
|
| 658 |
+
"table_caption": [
|
| 659 |
+
"Table 1: Comparison of different transformations on the MNLI-m development set. Abbr: original training instances (ori), back-translation (back), cutoff (cut), mixup (mix), adversarial (adv). "
|
| 660 |
+
],
|
| 661 |
+
"table_footnote": [],
|
| 662 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>MNLI-m(Acc)</td><td rowspan=1 colspan=1>MMD</td></tr><tr><td rowspan=1 colspan=1>RoBERTa-base</td><td rowspan=1 colspan=1>87.6</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>SingleTransformation</td><td rowspan=1 colspan=1>rmation</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>+back-translation+c-BERT+ cutoff+ mixup (ori,ori)+adversarial</td><td rowspan=1 colspan=1>88.588.088.488.288.5</td><td rowspan=1 colspan=1>0.630.010.020.060.65</td></tr><tr><td rowspan=1 colspan=1>MultipleTransformations</td><td rowspan=1 colspan=1>ormations</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=3 colspan=1>+random (back,cut,adv)+ mix (ori,back)+ mix (back,adv)+ stack (back, cut)+ stack (back,adv)+ stack(back,cut,adv)+ stack (back,adv, cut)</td><td rowspan=3 colspan=1>88.488.488.688.588.888.588.4</td><td rowspan=1 colspan=1>-0.110.810.621.14</td></tr><tr><td rowspan=1 colspan=1>1.14</td></tr><tr><td rowspan=1 colspan=1>1.14</td></tr></table>",
|
| 663 |
+
"bbox": [
|
| 664 |
+
508,
|
| 665 |
+
176,
|
| 666 |
+
813,
|
| 667 |
+
405
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "Intuitively, the augmented sample, with two sequential transformations, deviates more from the corresponding training data, and thus tends to be more effective at improving the model’s generalization ability. To verify this hypothesis, ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
173,
|
| 676 |
+
410,
|
| 677 |
+
483,
|
| 678 |
+
478
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 5
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "we further calculate the MMD (Gretton et al., 2012) between augmented samples and the original training instances. It can be observed that stack (back, adv), stack (back, cut, adv) and stack (back, adv, cut) have all produced examples the farthest from the original training instances (see Table 1). However, we conjecture that the latter two may have altered the semantic meanings too much, thus leading to inferior results. In this regard, stack (back, adv) is employed as the data transformation module for all the experiments below. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
479,
|
| 688 |
+
825,
|
| 689 |
+
561
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "3.2 CONTRASTIVE REGULARIZATION DESIGN ",
|
| 696 |
+
"text_level": 1,
|
| 697 |
+
"bbox": [
|
| 698 |
+
176,
|
| 699 |
+
578,
|
| 700 |
+
504,
|
| 701 |
+
592
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 5
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "In this section, we aim to incorporate the global information among the entire set of original and augmented samples via a contrastive regularization. First, we explore a few hyperparameters for the proposed contrastive objective. Since both the memory bank and the momentum encoder are vital components, we study the impacts of different hyperparameter values on both the temperature and the momentum. As shown in Fig. 4a, a temperature of 1.0 combined with the momentum of 0.99 can achieve the best empirical result. We then examine the size effect of the memory bank, and observe a larger memory bank size leads to a better capture of the global information and results in higher performance boost3 (see Fig. 4b). ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
173,
|
| 710 |
+
597,
|
| 711 |
+
825,
|
| 712 |
+
708
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 5
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "After carefully choosing the best setting based on the above experiments, we apply the contrastive learning objective to several GLUE datasets. We also implement several prior works on contrastive learning to compare, including the MoCo loss (He et al., 2020) and the supervised contrastive (SupCon) loss (Khosla et al., 2020), all implemented with memory banks. Note that we remove the consistency regularization for this experiment to better examine the effect of the contrastive regularization term (i.e., $\\alpha = \\beta = 0$ , $\\lambda \\neq 0$ ). As presented in Table 2, our contrastive objective consistently exhibits the largest performance improvement. This observation demonstrates for NLU, our data transformation module can be effectively equipped with the contrastive regularization. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
173,
|
| 721 |
+
715,
|
| 722 |
+
825,
|
| 723 |
+
827
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "image",
|
| 729 |
+
"img_path": "images/029eab1defd649960014e8e5c10e25a60a2e898591f8e548b3c848144984c049.jpg",
|
| 730 |
+
"image_caption": [
|
| 731 |
+
"Figure 4: Hyperparameter exploration for the contrastive loss, evaluated on the MNLI-m development set. Note: All models use the RoBERTa-base model as the encoder. "
|
| 732 |
+
],
|
| 733 |
+
"image_footnote": [],
|
| 734 |
+
"bbox": [
|
| 735 |
+
218,
|
| 736 |
+
85,
|
| 737 |
+
769,
|
| 738 |
+
250
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 6
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "table",
|
| 744 |
+
"img_path": "images/bc5b90758df91ae6eb99afad0b51f7713800af017ed0caffb19f9764ba6f9260.jpg",
|
| 745 |
+
"table_caption": [],
|
| 746 |
+
"table_footnote": [
|
| 747 |
+
"Table 2: Comparison among different contrastive objectives on the GLUE development set. "
|
| 748 |
+
],
|
| 749 |
+
"table_body": "<table><tr><td>Method</td><td>MNLI-m (Acc)</td><td>QNLI (Acc)</td><td>SST-2 (Acc)</td><td>RTE (Acc)</td><td>MRPC (Acc)</td></tr><tr><td>RoBERTa-base</td><td>87.6</td><td>92.8</td><td>94.8</td><td>78.7</td><td>90.2</td></tr><tr><td>+ MoCo (He et al., 2020)</td><td>88.2</td><td>93.3</td><td>95.1</td><td>80.8</td><td>90.9</td></tr><tr><td>+ SupCon (Khosla et al., 2020) + Contrastive (ours)</td><td>88.1 88.1</td><td>93.2 93.6</td><td>95.2 95.3</td><td>80.5 82.0</td><td>90.2 91.7</td></tr></table>",
|
| 750 |
+
"bbox": [
|
| 751 |
+
256,
|
| 752 |
+
290,
|
| 753 |
+
736,
|
| 754 |
+
373
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "3.3 GLUE BENCHMARK EVALUATION ",
|
| 761 |
+
"text_level": 1,
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
404,
|
| 765 |
+
452,
|
| 766 |
+
419
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 6
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "With both components within the CoDA algorithm being specifically tailored to the natural language understanding applications, we apply it to the RoBERTa-large model (Liu et al., 2019). Comparisons are made with several competitive data-augmentation-based and adversarial-training-based approaches on the GLUE benchmark. Specifically, we consider back-translation, cutoff (Shen et al., 2020), FreeLB (Zhu et al., 2020), SMART (Jiang et al., 2020), and R3F (Aghajanyan et al., 2020) as the baselines, where the last three all belong to adversarial training. The results are presented in Table 3. It is worth noting that back-translation is based on our implementation, where both the cross-entropy and consistency regularization terms are utilized. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
173,
|
| 775 |
+
422,
|
| 776 |
+
825,
|
| 777 |
+
535
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 6
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "table",
|
| 783 |
+
"img_path": "images/8b08b89715da4287f491cc2f4c888f307eaadbaadfa8b455e4a9b229f4953b5a.jpg",
|
| 784 |
+
"table_caption": [],
|
| 785 |
+
"table_footnote": [],
|
| 786 |
+
"table_body": "<table><tr><td>Method</td><td>MNLI-m/ mm (Acc)</td><td>QQP (Acc/F1)</td><td>QNLI (Acc)</td><td>SST-2 (Acc)</td><td>MRPC (Acc/F1)</td><td>CoLA (Mcc)</td><td>RTE (Acc)</td><td>STS-B (P/S)</td><td>Avg</td></tr><tr><td>RoBERTa-large</td><td>90.2/-</td><td>92.2/-</td><td>94.7</td><td>96.4</td><td>-/90.9</td><td>68</td><td>86.6</td><td>92.4/-</td><td>88.9</td></tr><tr><td>Back-Trans</td><td>91.1/90.4</td><td>92/-</td><td>95.3</td><td>97.1</td><td>90.9/93.5</td><td>69.4</td><td>91.7</td><td>92.8/92.6</td><td>90.4</td></tr><tr><td>Cutoff</td><td>91.1/-</td><td>92.4/-</td><td>95.3</td><td>96.9</td><td>91.4/93.8</td><td>71.5</td><td>91.0</td><td>92.8/-</td><td>90.6</td></tr><tr><td>FreeLB</td><td>90.6/-</td><td>92.6/-</td><td>95</td><td>96.7</td><td>91.4/-</td><td>71.1</td><td>88.1</td><td>92.71-</td><td>1</td></tr><tr><td>SMART</td><td>91.1/91.3</td><td>92.4/89.8</td><td>95.6</td><td>96.9</td><td>89.2/92.1</td><td>70.6</td><td>92</td><td>92.8/92.6</td><td>90.4</td></tr><tr><td>R3F</td><td>91.1/91.3</td><td>92.4/89.9</td><td>95.3</td><td>97.0</td><td>91.6/-</td><td>71.2</td><td>88.5</td><td>1</td><td>-</td></tr><tr><td>CoDA</td><td>91.3/90.8</td><td>92.5/89.9</td><td>95.3</td><td>97.4</td><td>91.9/94</td><td>72.6</td><td>92.4</td><td>93/92.7</td><td>91.1</td></tr></table>",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
544,
|
| 790 |
+
818,
|
| 791 |
+
666
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 6
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Table 3: Main results of single models on the GLUE development set. Note: The best result on each task is in bold and “-” denotes the missing results. The average score is calculated based on the same setting as RoBERTa. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
174,
|
| 800 |
+
672,
|
| 801 |
+
825,
|
| 802 |
+
714
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 6
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "We find that $C o D A$ brings significant gains to the RoBERTa-large model, with the averaged score on the GLUE dev set improved from 88.9 to 91.1. More importantly, CoDA consistently outperforms these strong baselines (indicated by a higher averaged score), demonstrating that our algorithm can produce informative and high-quality augmented samples and leverage them effectively as well. Concretely, on datasets with relatively larger numbers of training instances $( > 1 0 0 \\mathrm { K } )$ , i.e., MNLI, QQP and QNLI, different approaches show similar gains over the RoBERTa-large model. However, on smaller tasks (SST-2, MRPC, CoLA, RTE, and STS-B), CoDA beats other data augmentation or adversarial-based methods by a wide margin. We attribute this observation to the fact that the synthetically produced examples are more helpful when the tasks-specific data is limited. Thus, when smaller datasets are employed for fine-tuning large-scale language models, the superiority of the proposed approach is manifested to a larger extent. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
173,
|
| 811 |
+
719,
|
| 812 |
+
825,
|
| 813 |
+
873
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 6
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "3.4 ADDITIONAL EXPERIMENTS AND ANALYSIS ",
|
| 820 |
+
"text_level": 1,
|
| 821 |
+
"bbox": [
|
| 822 |
+
178,
|
| 823 |
+
881,
|
| 824 |
+
519,
|
| 825 |
+
893
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 6
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "Low-resource Setting To verify the advantages of CoDA when a smaller number of taskspecific data is available, we further conduct a low-resource experiment with the MNLI and QNLI datasets. Concretely, different proportions of training data are sampled and utilized for training. We apply CoDA to RoBERTa-base and compare it with backtranslation and adversarial training across various training set sizes. The corresponding results are presented in Fig. 5. We observe that back-translation and adversarial training exhibit similar performance across different proportions. More importantly, CoDA demonstrates stronger results consistently, further highlighting its effectiveness with limited training data. ",
|
| 832 |
+
"bbox": [
|
| 833 |
+
174,
|
| 834 |
+
896,
|
| 835 |
+
821,
|
| 836 |
+
924
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 6
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "image",
|
| 842 |
+
"img_path": "images/28115cc53ada6d47b656ea2b0a8d4b1fa65a9cf68abc9459a1a5f49dac4ed108.jpg",
|
| 843 |
+
"image_caption": [
|
| 844 |
+
"Figure 5: Low-resource setting experiments on the MNLI (left) and QNLI (right) dev sets. "
|
| 845 |
+
],
|
| 846 |
+
"image_footnote": [],
|
| 847 |
+
"bbox": [
|
| 848 |
+
207,
|
| 849 |
+
90,
|
| 850 |
+
785,
|
| 851 |
+
234
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "",
|
| 858 |
+
"bbox": [
|
| 859 |
+
173,
|
| 860 |
+
267,
|
| 861 |
+
825,
|
| 862 |
+
351
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 7
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "The Effectiveness of Contrastive Objective To investigate the general applicability of the proposed contrastive regularization objective, we further apply it to different data augmentation methods. The RoBERTa-base model and QNLI dataset are leveraged for this set of experiments, and the results are shown in Fig. 6. We observe that the contrastive learning objective boosts the empirical performance of the resulting algorithm regardless of the data augmentation approaches it is applied to. This further validates our assumption that considering the global information among the embeddings of all examples is beneficial for leveraging augmented samples more effectively. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
174,
|
| 871 |
+
359,
|
| 872 |
+
516,
|
| 873 |
+
553
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 7
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "image",
|
| 879 |
+
"img_path": "images/ed9d2bde5a7f1e01a5feeedf34d4e708470883227a4d953ce1d6f4d19190d9ca.jpg",
|
| 880 |
+
"image_caption": [
|
| 881 |
+
"Figure 6: Evaluation of the proposed contrastive objective while applied to different data augmentation approaches. "
|
| 882 |
+
],
|
| 883 |
+
"image_footnote": [],
|
| 884 |
+
"bbox": [
|
| 885 |
+
558,
|
| 886 |
+
371,
|
| 887 |
+
790,
|
| 888 |
+
502
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 7
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "4 RELATED WORK ",
|
| 895 |
+
"text_level": 1,
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
556,
|
| 899 |
+
344,
|
| 900 |
+
571
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 7
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "Data Augmentation in NLP Different data augmentation approaches have been proposed for text data, such as back-translation (Sennrich et al., 2016; Edunov et al., 2018; Xie et al., 2019), c-BERT word replacement (Wu et al., 2019), mixup (Guo et al., 2019; Chen et al., 2020a), Cutoff (Shen et al., 2020). Broadly speaking, adversarial training (Zhu et al., 2020; Jiang et al., 2020) also synthesizes additional examples via perturbations at the word embedding layer. Although effective, how these data augmentation transformations may be combined together to obtain further improvement has been rarely explored. This could be attributed to the fact that a sentence’s semantic meanings are quite sensitive to small perturbations. Consistency-regularized loss (Bachman et al., 2014; Rasmus et al., 2015; Laine & Aila, 2017; Tarvainen & Valpola, 2017) is typically employed as the training objective, which ignores the global information within the entire dataset. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
173,
|
| 909 |
+
577,
|
| 910 |
+
825,
|
| 911 |
+
717
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 7
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Contrastive Learning Contrastive methods learn representations by contrasting positive and negative examples, which has demonstrated impressive empirical success in computer vision tasks (Henaff et al., 2019; He et al., 2020). Under an unsupervised setting, Contrastive learning ap- ´ proaches learn representation by maximizing mutual information between local-global hidden representations (Hjelm et al., 2019; Oord et al., 2018; Henaff et al., 2019). It can be also leveraged ´ to learn invariant representations by encouraging consensus between augmented samples from the same input (Bachman et al., 2019; Tian et al., 2019). He et al. (2020); Wu et al. (2018) proposes to utilize a memory bank to enable a much larger number of negative samples, which is shown to benefit the transferability of learned representations as well (Khosla et al., 2020). Recently, contrastive learning was also employed to improve language model pre-training (Iter et al., 2020). ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
173,
|
| 920 |
+
718,
|
| 921 |
+
825,
|
| 922 |
+
857
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 7
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "5 CONCLUSION ",
|
| 929 |
+
"text_level": 1,
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
864,
|
| 933 |
+
320,
|
| 934 |
+
880
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 7
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "In this paper, we proposed CoDA, a Contrast-enhanced and Diversity promoting data Augmentation framework. Through extensive experiments, we found that stacking adversarial training over a back-translation module can give rise to more diverse and informative augmented samples. Besides, we introduced a specially-designed contrastive loss to incorporate these examples for training in a principled manner. Experiments on the GLUE benchmark showed that CoDA consistently improves over several competitive data augmentation and adversarial training baselines. Moreover, it is observed that the proposed contrastive objective can be leveraged to improve other data augmentation approaches as well, highlighting the wide applicability of the CoDA framework. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
176,
|
| 943 |
+
882,
|
| 944 |
+
823,
|
| 945 |
+
924
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 7
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
103,
|
| 955 |
+
825,
|
| 956 |
+
174
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 8
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "REFERENCES ",
|
| 963 |
+
"text_level": 1,
|
| 964 |
+
"bbox": [
|
| 965 |
+
176,
|
| 966 |
+
195,
|
| 967 |
+
285,
|
| 968 |
+
210
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 8
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "Armen Aghajanyan, Akshat Shrivastava, Anchit Gupta, Naman Goyal, Luke Zettlemoyer, and Sonal Gupta. Better fine-tuning by reducing representational collapse. arXiv preprint arXiv:2008.03156, 2020. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
176,
|
| 977 |
+
219,
|
| 978 |
+
825,
|
| 979 |
+
261
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 8
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "Philip Bachman, Ouais Alsharif, and Doina Precup. Learning with pseudo-ensembles. In Advances in neural information processing systems, pp. 3365–3373, 2014. ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
173,
|
| 988 |
+
272,
|
| 989 |
+
821,
|
| 990 |
+
301
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 8
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems, pp. 15535–15545, 2019. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
173,
|
| 999 |
+
310,
|
| 1000 |
+
825,
|
| 1001 |
+
353
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin A Raffel. Mixmatch: A holistic approach to semi-supervised learning. In Advances in Neural Information Processing Systems, pp. 5049–5059, 2019. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
176,
|
| 1010 |
+
363,
|
| 1011 |
+
823,
|
| 1012 |
+
407
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 8
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "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. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
174,
|
| 1021 |
+
416,
|
| 1022 |
+
823,
|
| 1023 |
+
460
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 8
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "Jiaao Chen, Zichao Yang, and Diyi Yang. MixText: Linguistically-informed interpolation of hidden space for semi-supervised text classification. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 2147–2157, Online, July 2020a. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.194. URL https: //www.aclweb.org/anthology/2020.acl-main.194. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
173,
|
| 1032 |
+
469,
|
| 1033 |
+
825,
|
| 1034 |
+
541
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 8
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. arXiv preprint arXiv:2002.05709, 2020b. ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
174,
|
| 1043 |
+
550,
|
| 1044 |
+
825,
|
| 1045 |
+
580
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 8
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Yong Cheng, Lu Jiang, Wolfgang Macherey, and Jacob Eisenstein. Advaug: Robust adversarial augmentation for neural machine translation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020, 2020. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
176,
|
| 1054 |
+
590,
|
| 1055 |
+
825,
|
| 1056 |
+
633
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 8
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "E. Cubuk, Barret Zoph, Dandelion Mane, V. Vasudevan, and Quoc V. Le. Autoaugment: Learning ´ augmentation policies from data. ArXiv, abs/1805.09501, 2018. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
171,
|
| 1065 |
+
642,
|
| 1066 |
+
825,
|
| 1067 |
+
672
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 8
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 702–703, 2020. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
176,
|
| 1076 |
+
683,
|
| 1077 |
+
823,
|
| 1078 |
+
726
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 8
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "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, NAACL-HLT 2019, 2019. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
173,
|
| 1087 |
+
736,
|
| 1088 |
+
826,
|
| 1089 |
+
791
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 8
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
169,
|
| 1098 |
+
803,
|
| 1099 |
+
825,
|
| 1100 |
+
832
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 8
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Sergey Edunov, Myle Ott, Michael Auli, and David Grangier. Understanding back-translation at scale. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 2018. ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
173,
|
| 1109 |
+
842,
|
| 1110 |
+
823,
|
| 1111 |
+
885
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 8
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Raphael Gontijo-Lopes, Sylvia J Smullin, Ekin D Cubuk, and Ethan Dyer. Affinity and diversity: Quantifying mechanisms of data augmentation. arXiv preprint arXiv:2002.08973, 2020. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
174,
|
| 1120 |
+
895,
|
| 1121 |
+
821,
|
| 1122 |
+
924
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 8
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. 2015. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
171,
|
| 1131 |
+
103,
|
| 1132 |
+
823,
|
| 1133 |
+
132
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 9
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Scholkopf, and Alexander Smola. ¨ A kernel two-sample test. The Journal of Machine Learning Research, 13(1):723–773, 2012. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
173,
|
| 1142 |
+
142,
|
| 1143 |
+
821,
|
| 1144 |
+
172
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 9
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Hongyu Guo, Yongyi Mao, and Richong Zhang. Augmenting data with mixup for sentence classification: An empirical study. arXiv preprint arXiv:1905.08941, 2019. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
174,
|
| 1153 |
+
183,
|
| 1154 |
+
820,
|
| 1155 |
+
212
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 9
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Yaru Hao, Li Dong, Furu Wei, and Ke Xu. Visualizing and understanding the effectiveness of bert. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP, 2019. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
173,
|
| 1164 |
+
222,
|
| 1165 |
+
825,
|
| 1166 |
+
280
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 9
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "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, pp. 9729–9738, 2020. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
174,
|
| 1175 |
+
290,
|
| 1176 |
+
825,
|
| 1177 |
+
334
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 9
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Olivier J Henaff, Aravind Srinivas, Jeffrey De Fauw, Ali Razavi, Carl Doersch, SM Eslami, and ´ Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
174,
|
| 1186 |
+
343,
|
| 1187 |
+
826,
|
| 1188 |
+
387
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 9
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Dan Hendrycks, Norman Mu, Ekin D Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. Augmix: A simple data processing method to improve robustness and uncertainty. In 8th International Conference on Learning Representations, ICLR, 2020. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
173,
|
| 1197 |
+
397,
|
| 1198 |
+
826,
|
| 1199 |
+
440
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 9
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In 7th International Conference on Learning Representations, ICLR, 2019. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
176,
|
| 1208 |
+
450,
|
| 1209 |
+
825,
|
| 1210 |
+
494
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 9
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Vu Cong Duy Hoang, Philipp Koehn, Gholamreza Haffari, and Trevor Cohn. Iterative backtranslation for neural machine translation. In Proceedings of the 2nd Workshop on Neural Machine Translation and Generation, pp. 18–24, 2018. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
174,
|
| 1219 |
+
505,
|
| 1220 |
+
823,
|
| 1221 |
+
549
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 9
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Zhiting Hu, Bowen Tan, Russ R Salakhutdinov, Tom M Mitchell, and Eric P Xing. Learning data manipulation for augmentation and weighting. In Advances in Neural Information Processing Systems, pp. 15764–15775, 2019. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
173,
|
| 1230 |
+
559,
|
| 1231 |
+
825,
|
| 1232 |
+
602
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 9
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Dan Iter, Kelvin Guu, Larry Lansing, and Dan Jurafsky. Pretraining with contrastive sentence objectives improves discourse performance of language models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL, 2020. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
613,
|
| 1242 |
+
825,
|
| 1243 |
+
656
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 9
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Tuo Zhao. Smart: Robust and efficient fine-tuning for pre-trained natural language models through principled regularized optimization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL, 2020. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
173,
|
| 1252 |
+
666,
|
| 1253 |
+
825,
|
| 1254 |
+
723
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 9
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Harini Kannan, Alexey Kurakin, and Ian Goodfellow. Adversarial logit pairing. arXiv preprint arXiv:1803.06373, 2018. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
173,
|
| 1263 |
+
733,
|
| 1264 |
+
823,
|
| 1265 |
+
763
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 9
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "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. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
173,
|
| 1274 |
+
773,
|
| 1275 |
+
825,
|
| 1276 |
+
816
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 9
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, 2014. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
165,
|
| 1285 |
+
827,
|
| 1286 |
+
823,
|
| 1287 |
+
857
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 9
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Ashutosh Kumar, Satwik Bhattamishra, Manik Bhandari, and Partha Talukdar. Submodular optimization-based diverse paraphrasing and its effectiveness in data augmentation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2019. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
174,
|
| 1296 |
+
867,
|
| 1297 |
+
825,
|
| 1298 |
+
924
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 9
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
176,
|
| 1307 |
+
103,
|
| 1308 |
+
821,
|
| 1309 |
+
146
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 10
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Xiaodong Liu, Hao Cheng, Pengcheng He, Weizhu Chen, Yu Wang, Hoifung Poon, and Jianfeng Gao. Adversarial training for large neural language models. arXiv preprint arXiv:2004.08994, 2020. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
174,
|
| 1318 |
+
155,
|
| 1319 |
+
823,
|
| 1320 |
+
198
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 10
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "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, 2019. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
174,
|
| 1329 |
+
207,
|
| 1330 |
+
826,
|
| 1331 |
+
250
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 10
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979–1993, 2018. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
174,
|
| 1340 |
+
260,
|
| 1341 |
+
825,
|
| 1342 |
+
303
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 10
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
173,
|
| 1351 |
+
311,
|
| 1352 |
+
823,
|
| 1353 |
+
340
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 10
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683, 2019. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
173,
|
| 1362 |
+
349,
|
| 1363 |
+
826,
|
| 1364 |
+
392
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semisupervised learning with ladder networks. In Advances in neural information processing systems, pp. 3546–3554, 2015. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
173,
|
| 1373 |
+
401,
|
| 1374 |
+
823,
|
| 1375 |
+
444
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 10
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, ACL, 2016. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
176,
|
| 1384 |
+
454,
|
| 1385 |
+
823,
|
| 1386 |
+
497
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 10
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Dinghan Shen, Mingzhi Zheng, Yelong Shen, Yanru Qu, and Weizhu Chen. A simple but tough-tobeat data augmentation approach for natural language understanding and generation, 2020. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
173,
|
| 1395 |
+
506,
|
| 1396 |
+
821,
|
| 1397 |
+
536
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 10
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Jian Shen, Yanru Qu, Weinan Zhang, and Yong Yu. Wasserstein distance guided representation learning for domain adaptation. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, (AAAI-18), 2018. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
174,
|
| 1406 |
+
544,
|
| 1407 |
+
825,
|
| 1408 |
+
587
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 10
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "Kihyuk Sohn, David Berthelot, Chun-Liang Li, Zizhao Zhang, Nicholas Carlini, Ekin D Cubuk, Alex Kurakin, Han Zhang, and Colin Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence. arXiv preprint arXiv:2001.07685, 2020. ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
174,
|
| 1417 |
+
595,
|
| 1418 |
+
825,
|
| 1419 |
+
640
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 10
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "Chi Sun, Xipeng Qiu, Yige Xu, and Xuanjing Huang. How to fine-tune bert for text classification? In China National Conference on Chinese Computational Linguistics, pp. 194–206. Springer, 2019. ",
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
173,
|
| 1428 |
+
648,
|
| 1429 |
+
825,
|
| 1430 |
+
678
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 10
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Advances in neural information processing systems, pp. 1195–1204, 2017. ",
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
174,
|
| 1439 |
+
686,
|
| 1440 |
+
825,
|
| 1441 |
+
729
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 10
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019. ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
171,
|
| 1450 |
+
738,
|
| 1451 |
+
823,
|
| 1452 |
+
767
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 10
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"text": "Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. EMNLP 2018, pp. 353, 2018. ",
|
| 1459 |
+
"bbox": [
|
| 1460 |
+
176,
|
| 1461 |
+
776,
|
| 1462 |
+
823,
|
| 1463 |
+
819
|
| 1464 |
+
],
|
| 1465 |
+
"page_idx": 10
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "text",
|
| 1469 |
+
"text": "Jason Wei and Kai Zou. Eda: Easy data augmentation techniques for boosting performance on text classification tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP, 2019. ",
|
| 1470 |
+
"bbox": [
|
| 1471 |
+
173,
|
| 1472 |
+
829,
|
| 1473 |
+
825,
|
| 1474 |
+
886
|
| 1475 |
+
],
|
| 1476 |
+
"page_idx": 10
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"type": "text",
|
| 1480 |
+
"text": "Xing Wu, Shangwen Lv, Liangjun Zang, Jizhong Han, and Songlin Hu. Conditional bert contextual augmentation. In International Conference on Computational Science, pp. 84–95. Springer, 2019. ",
|
| 1481 |
+
"bbox": [
|
| 1482 |
+
173,
|
| 1483 |
+
895,
|
| 1484 |
+
821,
|
| 1485 |
+
924
|
| 1486 |
+
],
|
| 1487 |
+
"page_idx": 10
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3733–3742, 2018. ",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
174,
|
| 1494 |
+
103,
|
| 1495 |
+
821,
|
| 1496 |
+
146
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 11
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "Qizhe Xie, Zihang Dai, Eduard Hovy, Minh-Thang Luong, and Quoc V Le. Unsupervised data augmentation for consistency training. arXiv preprint arXiv:1904.12848, 2019. ",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
171,
|
| 1505 |
+
155,
|
| 1506 |
+
823,
|
| 1507 |
+
184
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 11
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "Adams Wei Yu, David Dohan, Minh-Thang Luong, Rui Zhao, Kai Chen, Mohammad Norouzi, and Quoc V Le. Qanet: Combining local convolution with global self-attention for reading comprehension. In 6th International Conference on Learning Representations, ICLR 2018, 2018. ",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
176,
|
| 1516 |
+
193,
|
| 1517 |
+
823,
|
| 1518 |
+
236
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 11
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017. ",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
168,
|
| 1527 |
+
243,
|
| 1528 |
+
823,
|
| 1529 |
+
272
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 11
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training. In Proceedings of the ieee conference on computer vision and pattern recognition, pp. 4480–4488, 2016. ",
|
| 1536 |
+
"bbox": [
|
| 1537 |
+
173,
|
| 1538 |
+
281,
|
| 1539 |
+
823,
|
| 1540 |
+
324
|
| 1541 |
+
],
|
| 1542 |
+
"page_idx": 11
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "text",
|
| 1546 |
+
"text": "Chen Zhu, Yu Cheng, Zhe Gan, Siqi Sun, Thomas Goldstein, and Jingjing Liu. Freelb: Enhanced adversarial training for language understanding. In 8th International Conference on Learning Representations, ICLR, 2020. ",
|
| 1547 |
+
"bbox": [
|
| 1548 |
+
174,
|
| 1549 |
+
333,
|
| 1550 |
+
825,
|
| 1551 |
+
376
|
| 1552 |
+
],
|
| 1553 |
+
"page_idx": 11
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "text",
|
| 1557 |
+
"text": "A DATA AUGMENTATION DETAILS ",
|
| 1558 |
+
"text_level": 1,
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
176,
|
| 1561 |
+
102,
|
| 1562 |
+
475,
|
| 1563 |
+
118
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 12
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "We select the following representative data augmentation operations as basic building blocks of our data augmentation module. We denote $\\pmb { x } _ { i } = [ x _ { i , 1 } , . . . , x _ { i , l } ]$ as the input text sequence, and $\\boldsymbol { e } _ { i } = [ e _ { i , 1 } , \\bar { \\ldots } , e _ { i , l } ]$ as corresponding embedding vectors. ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
174,
|
| 1572 |
+
135,
|
| 1573 |
+
825,
|
| 1574 |
+
178
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 12
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "text",
|
| 1580 |
+
"text": "• Back translation is widely applied in machine translation (MT) (Sennrich et al., 2016; Hoang et al., 2018; Edunov et al., 2018), and is introduced to text classification recently (Xie et al., 2019). Back-Trans uses 2 MT models to translate the input example to another pivot language, and then translate it back, ${ \\bf { x } } _ { i } $ Pivot Language $ \\pmb { x } _ { i } ^ { \\prime }$ . C-BERT Word Replacement $\\mathrm { W u }$ et al., 2019) is a representative of the word replacement augmentation family. C-BERT pretrains a conditional BERT model to learn contextualized representation $P ( \\mathbf { x } _ { j } | [ x _ { i , 1 } \\dots x _ { i , j - 1 } [ \\mathbf { M A S K } ] x _ { i , j + 1 } \\dots x _ { i , l } ] , y _ { i } )$ conditioning on classes. This method then randomly substitutes wor $\\mathrm { d } \\mathrm { s \\ o f \\ } x \\mathrm { \\ t o \\ }$ obtain $\\pmb { x } ^ { \\prime } ( [ x _ { i , 1 } \\dots x _ { i , j } ^ { \\prime } \\dots x _ { i , l } ] ) ^ { 4 }$ . \nCutoff (DeVries & Taylor, 2017) randomly drops units in a continuous span on the input, while Shen et al. (2020) adapts this method to text embeddings. For input embeddings $e _ { i }$ , this method randomly set a continuous span of elements to 0s, $\\pmb { e } _ { i } ^ { \\prime } = [ \\pmb { e } _ { i , 1 } . . . \\pmb { e } _ { i , j - 1 } , 0 . . . 0 , \\pmb { e } _ { i , j + w } . . . \\pmb { e } _ { i , l } ]$ , where the window size $w \\propto l$ , and the start position $j \\in [ 1 , l - w ]$ is randomly selected. For transformer encoders that involve position embeddings, we also set input mask as 0s at corresponding positions. \n• Mixup (Zhang et al., 2017) interpolates two image as well as their labels. Guo et al. (2019) borrows this method to text. For 2 input embeddings $( e _ { i } , e _ { j } )$ , mixup interpolates the embedding vectors $\\pmb { e } _ { i } ^ { \\prime } = a \\pmb { e } _ { i } + ( 1 - a ) \\pmb { e } _ { j }$ where $a$ is sampled from a Beta distribution. Also, the labels are interpolated for the augmented sample $y _ { i } ^ { \\prime } = a { \\bar { y _ { i } } } + ( 1 - a ) y _ { j }$ . \n• Adversarial training generates adversarial examples for input embeddings, simply, $\\begin{array} { r l } { e _ { i } ^ { \\prime } } & { { } = } \\end{array}$ arg $\\begin{array} { r } { \\operatorname* { m a x } _ { \\| e _ { i } - e _ { i } ^ { \\prime } \\| \\leq 1 } \\bar { \\mathcal { L } } ( \\bar { f } ( e _ { i } ^ { \\prime } ) , y _ { i } ) } \\end{array}$ . We mainly follow the implementation of Zhu et al. (2020). Besides, when computing the adversarial example $\\boldsymbol { e } _ { i } ^ { \\prime }$ , the dropout variables are recorded and reused later when encoding $\\bar { e _ { i } ^ { \\prime } }$ . ",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
173,
|
| 1583 |
+
190,
|
| 1584 |
+
825,
|
| 1585 |
+
529
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 12
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "Maximum mean discrepancy (MMD) (Gretton et al., 2012) is a widely used discrepancy measure for 2 distributions. We adopt the multi-kernel MMD implementation based on Shen et al. $( 2 0 1 8 ) ^ { 5 }$ to quantify the distance of data distributions before and after DA transformations. ",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
174,
|
| 1594 |
+
540,
|
| 1595 |
+
821,
|
| 1596 |
+
582
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 12
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "text",
|
| 1602 |
+
"text": "B DATASET DETAILS ",
|
| 1603 |
+
"text_level": 1,
|
| 1604 |
+
"bbox": [
|
| 1605 |
+
176,
|
| 1606 |
+
603,
|
| 1607 |
+
364,
|
| 1608 |
+
621
|
| 1609 |
+
],
|
| 1610 |
+
"page_idx": 12
|
| 1611 |
+
},
|
| 1612 |
+
{
|
| 1613 |
+
"type": "text",
|
| 1614 |
+
"text": "The datasets and statistics are summarized in Table 4. ",
|
| 1615 |
+
"bbox": [
|
| 1616 |
+
174,
|
| 1617 |
+
637,
|
| 1618 |
+
526,
|
| 1619 |
+
651
|
| 1620 |
+
],
|
| 1621 |
+
"page_idx": 12
|
| 1622 |
+
},
|
| 1623 |
+
{
|
| 1624 |
+
"type": "table",
|
| 1625 |
+
"img_path": "images/1579d73a9f660740f30cf6ef484ee4baf831b33bfc56871f64acc15135d539cc.jpg",
|
| 1626 |
+
"table_caption": [
|
| 1627 |
+
"Table 4: GLUE benchmark summary. "
|
| 1628 |
+
],
|
| 1629 |
+
"table_footnote": [],
|
| 1630 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Corpus</td><td rowspan=1 colspan=1>Task</td><td rowspan=1 colspan=1>SentencePair</td><td rowspan=1 colspan=1>#Train</td><td rowspan=1 colspan=1>#Dev</td><td rowspan=1 colspan=1>#Test</td><td rowspan=1 colspan=1>#Class</td><td rowspan=1 colspan=1>Metrics</td></tr><tr><td rowspan=1 colspan=1>MNLI</td><td rowspan=1 colspan=1>NLI</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>393k</td><td rowspan=1 colspan=1>20k</td><td rowspan=1 colspan=1>20k</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>QQP</td><td rowspan=1 colspan=1>Paraphrase</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>364k</td><td rowspan=1 colspan=1>40k</td><td rowspan=1 colspan=1>391k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy/F1</td></tr><tr><td rowspan=1 colspan=1>QNLI</td><td rowspan=1 colspan=1>QA/NLI</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>108k</td><td rowspan=1 colspan=1>5.7k</td><td rowspan=1 colspan=1>5.7k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>SST</td><td rowspan=1 colspan=1>Sentiment</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>67k</td><td rowspan=1 colspan=1>872</td><td rowspan=1 colspan=1>1.8k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>MRPC</td><td rowspan=1 colspan=1>Paraphrase</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>3.7k</td><td rowspan=1 colspan=1>408</td><td rowspan=1 colspan=1>1.7k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy/F1</td></tr><tr><td rowspan=1 colspan=1>CoLA</td><td rowspan=1 colspan=1>Acceptability</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>8.5k</td><td rowspan=1 colspan=1>1k</td><td rowspan=1 colspan=1>1k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Matthews corr</td></tr><tr><td rowspan=1 colspan=1>RTE</td><td rowspan=1 colspan=1>NLI</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>2.5k</td><td rowspan=1 colspan=1>276</td><td rowspan=1 colspan=1>3k</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>STS-B</td><td rowspan=1 colspan=1>Similarity</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>7k</td><td rowspan=1 colspan=1>1.5k</td><td rowspan=1 colspan=1>1.4k</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>Pearson/Spe-arman corr</td></tr></table>",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
191,
|
| 1633 |
+
664,
|
| 1634 |
+
805,
|
| 1635 |
+
827
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 12
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "C IMPLEMENTATION DETAILS ",
|
| 1642 |
+
"text_level": 1,
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
176,
|
| 1645 |
+
102,
|
| 1646 |
+
439,
|
| 1647 |
+
117
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 13
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "Our implementation is based on RoBERTa (Liu et al., 2019). We use ADAM (Kingma & Ba, 2014) as our optimizer. We follow the hyper-parameter study of RoBERTa and set as default the following parameters: batch size (32), learning rate (1e-5), epochs (5), warmup ratio (0.06), weight decay (0.1) and we keep other parameters unchanged with RoBERTa. For Back-Trans, we use the en-de single models trained on WMT19 and released in FairSeq. More specifically, we use beam search (beam size $= 5$ ) and keep only the top-1 hypothesis. We slightly tune Adversarial parameters on MNLI based on FreeLB and fix them on other datasets, since adversarial training is not our focus. For contrastive regularization, we implement based on MoCo. In GLUE evaluation, we mainly tune the weights of 3 regularization terms, $\\alpha \\in [ 0 , 1 ] , \\beta \\in [ 0 , 3 ] , \\lambda \\in [ 0 , 0 . 0 3 ]$ (Eq. 6, 11). Besides, for smaller tasks (MRPC, CoLA, RTE, STS-B), we use the best performed MNLI model to initialize their parameters6. ",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
173,
|
| 1656 |
+
133,
|
| 1657 |
+
825,
|
| 1658 |
+
286
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 13
|
| 1661 |
+
}
|
| 1662 |
+
]
|
parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ozk9MrX1hvA/Ozk9MrX1hvA_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyJ7ClWCb/SyJ7ClWCb.md
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# COUNTERING ADVERSARIAL IMAGES USING INPUT TRANSFORMATIONS
|
| 2 |
+
|
| 3 |
+
Chuan Guo∗ Cornell University
|
| 4 |
+
|
| 5 |
+
Mayank Rana & Moustapha Cisse & Laurens van der Maaten ´ Facebook AI Research
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
This paper investigates strategies that defend against adversarial-example attacks on image-classification systems by transforming the inputs before feeding them to the system. Specifically, we study applying image transformations such as bit-depth reduction, JPEG compression, total variance minimization, and image quilting before feeding the image to a convolutional network classifier. Our experiments on ImageNet show that total variance minimization and image quilting are very effective defenses in practice, in particular, when the network is trained on transformed images. The strength of those defenses lies in their non-differentiable nature and their inherent randomness, which makes it difficult for an adversary to circumvent the defenses. Our best defense eliminates $6 0 \%$ of strong gray-box and $9 0 \%$ of strong black-box attacks by a variety of major attack methods.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
As the use of machine intelligence increases in security-sensitive applications (Bojarski et al., 2016; Amodei et al., 2015), robustness has become a critical feature to guarantee the reliability of deployed machine-learning systems. Unfortunately, recent research has demonstrated that existing models are not robust to small, adversarially designed perturbations of the input (Biggio et al., 2013; Szegedy et al., 2014; Goodfellow et al., 2015; Kurakin et al., 2016a; Cisse et al., 2017a). Adversarially perturbed examples have been deployed to attack image classification services (Liu et al., 2016), speech recognition systems (Cisse et al., 2017a), and robot vision (Melis et al., 2017). The existence of these adversarial examples has motivated proposals for approaches that increase the robustness of learning systems to such examples (Papernot et al., 2016; Kurakin et al., 2016a; Cisse et al., 2017b).
|
| 14 |
+
|
| 15 |
+
The robustness of machine learning models to adversarial examples depends both on the properties of the model (i.e., Lipschitzness) and on the nature of the problem considered, e.g., on the input dimensionality and the Bayes error of the problem (Fawzi et al., 2015; 2016). Consequently, defenses that aim to increase robustness against adversarial examples fall in one of two main categories. The first category comprises model-specific strategies that enforce model properties such as invariance and smoothness via the learning algorithm or regularization scheme (Shaham et al., 2015; Kurakin et al., 2016a; Cisse et al., 2017b), potentially exploiting knowledge about the adversary’s attack strategy (Goodfellow et al., 2015). The second category of defenses are model-agnostic: they try to remove adversarial perturbations from the input. For example, in the context of image classification, adversarial perturbations can be partly removed via JPEG compression (Dziugaite et al., 2016) or image re-scaling (Lu et al., 2017). Hitherto, none of these defenses has been shown to be very effective. Specifically, model-agnostic defenses appear too simple to sufficiently remove adversarial perturbations from input images. By contrast, model-specific defenses make strong assumptions about the nature of the adversary (e.g., on the norm that the adversary minimizes or on the number of iterations it uses to generate the perturbation). Consequently, they do not satisfy Kerckhoffs (1883) principle: the adversary can alter its attack to circumvent such model-specific defenses.
|
| 16 |
+
|
| 17 |
+
In this paper, we focus on increasing the effectiveness of model-agnostic defense strategies by developing approaches that (1) remove the adversarial perturbations from input images, (2) maintain sufficient information in input images to correctly classify them, and (3) are still effective in settings in which the adversary has information on the defense strategy being used. We explore transformations based on image cropping and rescaling (Graese et al., 2016), bit-depth reduction (Xu et al.,
|
| 18 |
+
|
| 19 |
+
2017), JPEG compression (Dziugaite et al., 2016), total variance minimization (Rudin et al., 1992), and image quilting (Efros & Freeman, 2001). We show that these defenses can be surprisingly effective against existing attacks, in particular, when the convolutional network is trained on images that are transformed in a similar way. The image transformations are good at countering the (iterative) fast gradient sign method (Kurakin et al., 2016a), Deepfool (Moosavi-Dezfooli et al., 2016), and the Carlini & Wagner (2017) attack, even in gray-box settings in which the model architecture and parameters are public. Our strongest defenses are based on total variation minimization and image quilting: these defenses are non-differentiable and inherently random, which makes it difficult for an adversary to get around them. Our best defenses eliminate $6 0 \%$ of gray-box attacks and $9 0 \%$ of black-box attacks by four major attack methods that perturb pixel values by $8 \%$ on average.
|
| 20 |
+
|
| 21 |
+
# 2 PROBLEM DEFINITION
|
| 22 |
+
|
| 23 |
+
We study defenses against non-targeted adversarial examples for image-recognition systems. Let $\chi = [ 0 , \mathbf { \bar { 1 } } ] ^ { H \times W \times C }$ be the image space. Given an image classifier $h ( \cdot )$ and a source image $\mathbf { x } \in \mathcal { X }$ , a non-targeted1 adversarial example of $\mathbf { x }$ is a perturbed image $\mathbf { x } ^ { \prime } \in { \mathcal { X } }$ such that $h ( \mathbf { x } ) \neq h ( \mathbf { x } ^ { \prime } )$ and $d ( \mathbf { x } , \mathbf { \bar { x } } ^ { \prime } ) \leq \rho$ for some dissimilarity function $d ( \cdot , \cdot )$ and $\rho \geq 0$ . Ideally, $d ( \cdot , \cdot )$ measures the perceptual difference between $\mathbf { x }$ and $\mathbf { x } ^ { \prime }$ but, in practice, the Euclidean distance $d ( \mathbf { x } , \mathbf { x } ^ { \prime } ) = \lVert \mathbf { x } - \mathbf { x } ^ { \prime } \rVert _ { 2 }$ or the Chebyshev distance $d ( \mathbf { x } , \mathbf { x } ^ { \prime } ) = \| \mathbf { x } - \mathbf { x } ^ { \prime } \| _ { \infty }$ is most commonly used.
|
| 24 |
+
|
| 25 |
+
Given a set of $N$ images $\{ \mathbf { x } _ { 1 } , \dotsc , \mathbf { x } _ { N } \}$ and a target classifier $h ( \cdot )$ , an adversarial attack aims to generate $\{ \mathbf { x } _ { 1 } ^ { \prime } , \ldots , \mathbf { x } _ { N } ^ { \prime } \}$ such that each $\mathbf { x } _ { n } ^ { \prime }$ is an adversarial example for $\mathbf { x } _ { n }$ . The success rate of an attack is measured by the proportion of predictions that was altered by an attack: $\begin{array} { r } { \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \mathbb { 1 } \left[ h ( \mathbf { x } _ { n } ) \right. \neq \left. h ( \mathbf { x } _ { n } ^ { \prime } ) \right] } \end{array}$ . The success rate is generally measured as a function of the magnitude of the perturbations performed by the attack, using the normalized $L _ { 2 }$ -dissimilarity:
|
| 26 |
+
|
| 27 |
+
$$
|
| 28 |
+
\frac { 1 } { N } \sum _ { n = 1 } ^ { N } \frac { \| \mathbf { x } _ { n } - \mathbf { x } _ { n } ^ { \prime } \| _ { 2 } } { \| \mathbf { x } _ { n } \| _ { 2 } } .
|
| 29 |
+
$$
|
| 30 |
+
|
| 31 |
+
A strong adversarial attack has a high success rate whilst its normalized $L _ { 2 }$ -dissimilarity is low.
|
| 32 |
+
|
| 33 |
+
In most practical settings, an adversary does not have direct access to the model $h ( \cdot )$ and has to do a black-box attack. However, prior work has shown successful attacks by transferring adversarial examples generated for a separately-trained model to an unknown target model (Liu et al., 2016). Therefore, we investigate both the black-box and a more difficult gray-box attack setting: in our gray-box setting, the adversary has access to the model architecture and the model parameters, but is unaware of the defense strategy that is being used.
|
| 34 |
+
|
| 35 |
+
A defense is an approach that aims make the prediction on an adversarial example $h ( \mathbf { x } ^ { \prime } )$ equal to the prediction on the corresponding clean example $h ( \mathbf { x } )$ . In this study, we focus on imagetransformation defenses $g ( \mathbf { x } )$ that perform prediction via $h ( g ( \mathbf { x } ^ { \prime } ) )$ . Ideally, $g ( \cdot )$ is a complex, nondifferentiable, and potentially stochastic function: this makes it difficult for an adversary to attack the prediction model $h ( g ( \mathbf { x } ) { \dot { ) } }$ even when the adversary knows both $h ( \cdot )$ and $g ( \cdot )$ .
|
| 36 |
+
|
| 37 |
+
# 3 ADVERSARIAL ATTACKS
|
| 38 |
+
|
| 39 |
+
One of the first successful attack methods is the fast gradient sign method (FGSM; Goodfellow et al. (2015)). Let $\ell ( \cdot , \cdot )$ be the differentiable loss function that was used to train the classifier $h ( \cdot )$ , e.g., the cross-entropy loss. The FGSM adversarial example corresponding to a source input $\mathbf { x }$ and true label $y$ is:
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\mathbf { x } ^ { \prime } = \mathbf { x } + \epsilon \cdot \mathrm { s i g n } \left( \nabla _ { \mathbf { x } } \ell ( \mathbf { x } , y ) \right) ,
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
for some $\epsilon > 0$ that governs the perturbation magnitude. A stronger variant of this attack, called iterative FGSM (I-FGSM; Kurakin et al. (2016b)), iteratively applies the FGSM update:
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
\begin{array} { r } { \mathbf { x } ^ { ( m ) } = \mathbf { x } ^ { ( m - 1 ) } + \epsilon \cdot \mathrm { s i g n } \left( \nabla _ { \mathbf { x } ^ { ( m - 1 ) } } \ell ( \mathbf { x } ^ { ( m - 1 ) } , y ) \right) , } \end{array}
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
Figure 1: Adversarial images and corresponding perturbations at five levels of normalized $L _ { 2 }$ - dissimilarity for all four attacks.
|
| 53 |
+
|
| 54 |
+
where $m = 1 , \ldots , M$ ; $\mathbf { x } ^ { ( 0 ) } = \mathbf { x }$ ; and $\mathbf { x } ^ { \prime } = \mathbf { x } ^ { ( M ) }$ . The number of iterations $M$ is set such that $h ( \mathbf { x } ^ { \prime } ) \neq h ( \mathbf { x } )$ . Both FGSM and I-FGSM approximately minimize the Chebyshev distance between the inputs and the adversarial examples they generate.
|
| 55 |
+
|
| 56 |
+
Alternative attacks aim to minimize the Euclidean distance between the input and the adversarial example instead. For instance, assuming $h ( \cdot )$ is a binary classifier, DeepFool (Moosavi-Dezfooli et al., 2016) projects $\mathbf { x }$ onto a linearization of the decision boundary defined by $h ( \cdot )$ for $M$ iterations:
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\mathbf { x } ^ { ( m ) } = \mathbf { x } ^ { ( m - 1 ) } - \epsilon \cdot \frac { h ( \mathbf { x } ^ { ( m - 1 ) } ) } { \| \nabla _ { \mathbf { x } ^ { ( m - 1 ) } } h ( \mathbf { x } ^ { ( m - 1 ) } ) \| _ { 2 } ^ { 2 } } \nabla _ { \mathbf { x } ^ { ( m - 1 ) } } h \left( \mathbf { x } ^ { ( m - 1 ) } \right) ,
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where $\mathbf { x } ^ { ( 0 ) }$ and $\mathbf { x } ^ { \prime }$ are defined as in I-FGSM. The multi-class variant of DeepFool performs the projection onto the nearest class boundaries. The linearization performed in DeepFool is particularly well suited for ReLU-networks, as these represent piecewise linear class boundaries.
|
| 63 |
+
|
| 64 |
+
Carlini-Wagner’s $L _ { 2 }$ attack (CW-L2; Carlini & Wagner (2017)) is an optimization-based attack that combines a differentiable surrogate for the model’s classification accuracy with an $L _ { 2 }$ -penalty term. Let $Z ( \mathbf { x } )$ be the operation that computes the logit vector (i.e., the output before the softmax layer) for an input $\mathbf { x }$ , and $Z ( \mathbf { x } ) _ { k }$ be the logit value corresponding to class $k$ . The untargeted variant of CW-L2 finds a solution to the unconstrained optimization problem
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\operatorname* { m i n } _ { \mathbf { x } ^ { \prime } } \left[ \| \mathbf { x } - \mathbf { x } ^ { \prime } \| _ { 2 } ^ { 2 } + \lambda _ { f } \operatorname* { m a x } \left( - \kappa , Z ( \mathbf { x } ^ { \prime } ) _ { h ( \mathbf { x } ) } - \operatorname* { m a x } \{ Z ( \mathbf { x } ^ { \prime } ) _ { k } : k \neq h ( \mathbf { x } ) \} \right) \right] ,
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $\kappa$ denotes a margin parameter, and where the parameter $\lambda _ { f }$ trades off the perturbation norm and the hinge loss of predicting a different class. We perform the minimization over $\mathbf { x } ^ { \prime }$ using the Adam optimizer (Kingma & Ba, 2014) for 100 iterations with an initial learning rate of 0.001.
|
| 71 |
+
|
| 72 |
+
All of the aforementioned attacks enforce that $\mathbf { x } ^ { \prime } \in { \mathcal { X } }$ by clipping values between 0 and 1. Figure 1 shows adversarial images produced by all four attacks at five normalized $L _ { 2 }$ -dissimilarity levels.
|
| 73 |
+
|
| 74 |
+
# 4 DEFENSES
|
| 75 |
+
|
| 76 |
+
Adversarial attacks alter particular statistics of the input image in order to change the model prediction. Indeed, adversarial perturbations $\mathbf { x } - \mathbf { x } ^ { \prime }$ have a particular structure, as illustrated by Figure 1. We design and experiment with image transformations that alter the structure of these perturbations, and investigate whether the alterations undo the effects of the adversarial attack. We investigate five image transformations: (1) image cropping and rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting.
|
| 77 |
+
|
| 78 |
+
We first introduce three simple image transformations: image cropping-rescaling (Graese et al., 2016), bit-depth reduction (Xu et al., 2017), and JPEG compression and decompression (Dziugaite et al., 2016). Image croppingrescaling has the effect of altering the spatial positioning of the adversarial perturbation, which is important in making attacks successful. Following He et al. (2016), we crop and rescale images at training time as part of the data augmentation. At test time, we average predictions over random image crops. Bitdepth reduction (Xu et al., 2017) perform a simple type of quantization that can removes small (adversarial) variations in pixel values from an image; we reduce images to 3 bits in our experiments. JPEG compression (Dziugaite et al., 2016) removes small perturbations in a similar way; we perform compression at quality level 75 (out of 100).
|
| 79 |
+
|
| 80 |
+
# 4.2 TOTAL VARIANCE MINIMIZATION
|
| 81 |
+
|
| 82 |
+
An alternative way of removing adversarial perturbations is via a compressed sensing approach that combines pixel dropout with total variation minimization (Rudin et al., 1992). This approach randomly selects a small set of pixels, and reconstructs the “simplest” image that is consistent with the selected pixels. The reconstructed image does not contain the adversarial perturbations because these perturbations tend to be small and localized.
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 2: Illustration of total variance minimization and image quilting applied to an original and an adversarial image (produced using I-FGSM with $\epsilon = 0 . 0 3$ , corresponding to a normalized $L _ { 2 }$ - dissimilarity of 0.075). From left to right, the columns correspond to: (1) no transformation, (2) total variance minimization, and (3) image quilting. From top to bottom, rows correspond to: (1) the original image, (2) the corresponding adversarial image produced by I-FGSM, and (3) the absolute difference between the two images above. Difference images were multiplied by a constant scaling factor to increase visibility.
|
| 86 |
+
|
| 87 |
+
Specifically, we first select a random set of pixels by sampling a Bernoulli random variable $X ( i , j , k )$ for each pixel location $( i , j , k )$ ; we maintain a pixel when $X ( \bar { i } , j , k ) = 1$ . Next, we use total variation minimization to constructs an image $\mathbf { z }$ that is similar to the (perturbed) input image $\mathbf { x }$ for the selected set of pixels, whilst also being “simple” in terms of total variation by solving:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\operatorname* { m i n } _ { \mathbf { z } } \| ( 1 - X ) \odot ( \mathbf { z } - \mathbf { x } ) \| _ { 2 } + \lambda _ { \mathrm { T V } } \cdot \mathrm { T V } _ { p } ( \mathbf { z } ) .
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Herein, $\odot$ denotes element-wise multiplication, and $\mathrm { T V } _ { p } ( { \mathbf z } )$ represents the $L _ { p }$ -total variation of $\mathbf { z }$ :
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\mathrm { T V } _ { p } ( \mathbf { z } ) = \sum _ { k = 1 } ^ { K } \left[ \sum _ { i = 2 } ^ { N } \| \mathbf { z } ( i , : , k ) - \mathbf { z } ( i - 1 , : , k ) \| _ { p } + \sum _ { j = 2 } ^ { N } \| \mathbf { z } ( : , j , k ) - \mathbf { z } ( : , j - 1 , k ) \| _ { p } \right] .
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
The total variation (TV) measures the amount of fine-scale variation in the image $\mathbf { z }$ , as a result of which TV minimization encourages removal of small (adversarial) perturbations in the image. The objective function (6) is convex in $\mathbf { z }$ , which makes solving for $\mathbf { z }$ straightforward. In our implementation, we set $p = 2$ and employ a special-purpose solver based on the split Bregman method (Goldstein & Osher, 2009) to perform total variance minimization efficiently.
|
| 100 |
+
|
| 101 |
+
The effectiveness of TV minimization is illustrated by the images in the middle column of Figure 2: in particular, note that the adversarial perturbations that were present in the background for the nontransformed image (see bottom-left image) have nearly completely disappeared in the TV-minimized adversarial image (bottom-center image). As expected, TV minimization also changes image structure in non-homogeneous regions of the image, but as these perturbations were not adversarially designed we expect the negative effect of these changes to be limited.
|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
Figure 3: Block diagram detailing the differences between the experimental setups in Section 5.2, 5.3, and 5.4. We train networks (a) on regular images or (b) on transformed images; we test the networks on transformed adversarial images. For each of the three setups, dashed arrows indicate which model is used by the adversary and which model is used by the classification model.
|
| 105 |
+
|
| 106 |
+
# 4.3 IMAGE QUILTING
|
| 107 |
+
|
| 108 |
+
Image quilting (Efros & Freeman, 2001) is a non-parametric technique that synthesizes images by piecing together small patches that are taken from a database of image patches. The algorithm places appropriate patches in the database for a predefined set of grid points, and computes minimum graph cuts (Boykov et al., 2001) in all overlapping boundary regions to remove edge artifacts.
|
| 109 |
+
|
| 110 |
+
Image quilting can be used to remove adversarial perturbations by constructing a patch database that only contains patches from “clean” images (without adversarial perturbations); the patches used to create the synthesized image are selected by finding the $K$ nearest neighbors (in pixel space) of the corresponding patch from the adversarial image in the patch database, and picking one of these neighbors uniformly at random. The motivation for this defense is that the resulting image only consists of pixels that were not modified by the adversary — the database of real patches is unlikely to contain the structures that appear in adversarial images.
|
| 111 |
+
|
| 112 |
+
The right-most column of Figure 2 illustrates the effect of image quilting on adversarial images. Whilst interpretation of these images is more complicated due to the quantization errors that image quilting introduces, it is interesting to note that the absolute differences between quilted original and the quilted adversarial image appear to be smaller in non-homogeneous regions of the image. This suggests that TV minimization and image quilting lead to inherently different defenses.
|
| 113 |
+
|
| 114 |
+
# 5 EXPERIMENTS
|
| 115 |
+
|
| 116 |
+
We performed five experiments to test the efficacy of our defenses. The experiment in Section 5.2 considers gray-box attacks: it applies the defenses on adversarial images before using them as input into a convolutional network trained to classify “clean” images. In this setting, the adversary has access to the model architecture and parameters but is unaware of the defense strategy. The experiment in Section 5.3 focuses on a black-box setting: it replaces the convolutional network by networks that were trained on images with a particular input-transformation. The experiment in Section 5.4 combines our defenses with ensembling and model transfer. The experiment in Section 5.5 investigates to what extent networks trained on image-transformations can be attacked in a gray-box setting. The experiment in Section 5.6 compares our defenses with prior work. The setup of our gray-box and black-box experiments is illustrated in Figure 3. Code to reproduce our results is available at https://github.com/facebookresearch/adversarial_image_defenses.
|
| 117 |
+
|
| 118 |
+
# 5.1 EXPERIMENTAL SETUP
|
| 119 |
+
|
| 120 |
+
We performed experiments on the ImageNet image classification dataset. The dataset comprises 1.2 million training images and 50, 000 test images that correspond to one of $1 , 0 0 0$ classes. Our adversarial images are produced by attacking a ResNet-50 model (He et al., 2016). We evaluate our defense strategies against the four adversarial attacks presented in Section 3. We measure the strength of an adversary in terms of its normalized $L _ { 2 }$ -dissimilarity and report classification accuracies as a function of the normalized $L _ { 2 }$ -dissimilarity. To produce adversarial images like those in Figure 1, we set the normalized $L _ { 2 }$ -dissimilarity for each of the attacks as follows:
|
| 121 |
+
|
| 122 |
+

|
| 123 |
+
Figure 4: Top-1 classification accuracy of ResNet-50 tested on transformed adversarial images produced by four attacks using five image transformations in a gray-box setting: (1) cropping-rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting. The dotted line shows the top-1 accuracy of the ResNet-50 model on non-adversarial images, providing an upper bound on the effectiveness of a defense. An $L _ { 2 }$ -dissimilarity of 0.00 corresponds to the classification accuracy on non-adversarial images. Higher is better.
|
| 124 |
+
|
| 125 |
+
• FGSM. Increasing the step size $\epsilon$ increases the normalized $L _ { 2 }$ -dissimilarity.
|
| 126 |
+
• I-FGSM. We fix $M = 1 0$ , and increase $\epsilon$ to increase the normalized $L _ { 2 }$ -dissimilarity.
|
| 127 |
+
• DeepFool. We fix $M = 5$ , and increase $\epsilon$ to increase the normalized $L _ { 2 }$ -dissimilarity.
|
| 128 |
+
• CW-L2. We fix $\kappa = 0$ and $\lambda _ { f } = 1 0$ , and multiply the resulting perturbation by an appropriately chosen $\epsilon \geq 1$ to alter the normalized $L _ { 2 }$ -dissimilarity.
|
| 129 |
+
|
| 130 |
+
We fixed the hyperparameters of our defenses in all experiments: specifically, we set pixel dropout probability $p { = } 0 . 5$ and the regularization parameter of the total variation minimizer $\lambda _ { \mathrm { T V } } { = } 0 . 0 3$ . We use a quilting patch size of $5 \times 5$ and a database of $1 , 0 0 0 , 0 0 0$ patches that were randomly selected from the ImageNet training set. We use the nearest neighbor patch (i.e., $K = 1$ ) for experiments in Sections 5.2 and 5.3, and randomly select a patch from one of $K = 1 0$ nearest neighbors in all other experiments. In the cropping defense, we sample 30 crops of size $9 0 \times 9 0$ from the $2 2 4 \times 2 2 4$ input image, rescale the crops to $2 2 4 \times 2 2 4$ , and average the model predictions over all crops.
|
| 131 |
+
|
| 132 |
+
# 5.2 GRAY BOX: IMAGE TRANSFORMATIONS AT TEST TIME
|
| 133 |
+
|
| 134 |
+
Figure 4 shows the top-1 accuracy of a ResNet-50 tested on transformed adversarial images as a function of the adversary strength for each of the four attacks. Each plot shows results for five different transformations we apply to the images at test time (viz., image cropping-rescaling, bitdepth reduction, JPEG compression, total variation minimization, and image quilting). The dotted line shows the classification error of the ResNet-50 model on images that are not adversarially perturbed, i.e., it gives an upper bound on the accuracy that defenses can achieve.
|
| 135 |
+
|
| 136 |
+
In line with the results reported in the literature, the four adversaries successfully attack the ResNet50 model in nearly all cases (FGSM has a slightly lower favorable attack rate of $8 0 - 9 0 \%$ ) when the input images are not transformed. The results also show that the proposed image transformations are capable of partly eliminating the effect of the attacks. In particular, ensembling 30 predictions over different, random image crops is very efficient: these predictions are correct for $4 0 - 6 0 \%$ of the images (note that $76 \%$ is the highest accuracy that one can expect to achieve). This result suggests that adversarial examples are susceptible to changes in the location and scale of the adversarial perturbations. While not as effective, image transformations based on total variation minimization and image quilting also successfully defend against adversarial examples from all four attacks: applying these transformations allows us to classify $3 0 { - } 4 0 \%$ of the images correctly. This result suggests that total variation minimization and image quilting can successfully remove part of the perturbations from adversarial images. In particular, the accuracy of the image-quilting defense hardly deteriorates as the strength of the adversary increases. However, the quilting transformation does severely impact the model’s accuracy on non-adversarial images.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 5: Top-1 classification accuracy of ResNet-50 trained and tested on transformed adversarial images produced by four attacks using five image transformations in a black-box setting: (1) cropping-rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting. The dotted line represents the top-1 accuracy of the ResNet-50 model on nonadversarial images, providing an upper bound on the effectiveness of a defense. An $L _ { 2 }$ -dissimilarity of 0.00 corresponds to the classification accuracy on non-adversarial images. Higher is better.
|
| 140 |
+
|
| 141 |
+
# 5.3 BLACK BOX: IMAGE TRANSFORMATIONS AT TRAINING AND TEST TIME
|
| 142 |
+
|
| 143 |
+
The high relative performance of image cropping-rescaling in 5.2 may be partly explained by the fact that the convolutional network was trained on randomly cropped-rescaled images2, but not on any of the other transformations. This implies that independent of whether an image is adversarial or not, the network is more robust to image cropping-rescaling than it is to those transformations. The results in Figure 4 suggest that this negatively affects the effectiveness of these defenses, even if the defenses are successful in removing the adversarial perturbation. To investigate this, we trained ResNet-50 models on transformed ImageNet training images. We adopt the standard data augmentation from He et al. (2016), but apply bit-depth reduction, JPEG compression, TV minimization, or image quilting on the resized image crop before feeding it to the network. We measure the classification accuracy of the resulting networks on the same adversarial images as before. Note that this implies that we assume a black-box setting in this experiment.
|
| 144 |
+
|
| 145 |
+
<table><tr><td></td><td colspan="4">Quilting</td><td colspan="4">TVM +Quilting</td><td colspan="4">Cropping+TVM+Quilting</td></tr><tr><td></td><td>RN50</td><td>RN101</td><td>DN169</td><td>Iv4</td><td>RN50</td><td>RN101</td><td>DN169</td><td>Iv4</td><td>RN50</td><td>RN101</td><td>DN169</td><td>Iv4</td></tr><tr><td>No Attack</td><td>70.07</td><td>72.56</td><td>70.18</td><td>73.01</td><td>72.38</td><td>74.74</td><td>73.10</td><td>75.55</td><td>72.14</td><td>74.53</td><td>72.92</td><td>75.10</td></tr><tr><td>FGSM</td><td>65.45</td><td>68.50</td><td>65.96</td><td>67.53</td><td>65.70</td><td>68.77</td><td>67.09</td><td>69.19</td><td>66.65</td><td>69.75</td><td>67.86</td><td>70.37</td></tr><tr><td>I-FGSM</td><td>65.59</td><td>68.72</td><td>66.16</td><td>69.29</td><td>65.84</td><td>69.10</td><td>67.32</td><td>71.05</td><td>67.03</td><td>70.14</td><td>68.20</td><td>71.52</td></tr><tr><td>DeepFool</td><td>65.20</td><td>68.73</td><td>65.86</td><td>68.70</td><td>65.80</td><td>69.34</td><td>67.40</td><td>71.03</td><td>67.11</td><td>70.49</td><td>68.62</td><td>71.47</td></tr><tr><td>CW-L2</td><td>64.11</td><td>67.72</td><td>65.00</td><td>68.14</td><td>63.99</td><td>68.20</td><td>66.08</td><td>70.13</td><td>65.31</td><td>69.14</td><td>66.96</td><td>70.50</td></tr></table>
|
| 146 |
+
|
| 147 |
+
Table 1: Top-1 classification accuracy of ensemble and model transfer defenses (columns) against four black-box attacks (rows). The four networks we use to classify images are ResNet-50 (RN50), ResNet-101 (RN101), DenseNet-169 (DN169), and Inception-v4 (Iv4). Adversarial images are generated by running attacks against the ResNet-50 model, aiming for an average normalized $L _ { 2 }$ - dissimilarity of 0.06. Higher is better. The best defense against each attack is typeset in boldface.
|
| 148 |
+
|
| 149 |
+
We present the results of these experiments in Figure 5. Training convolutional networks on images that are transformed in the same way as at test time, indeed, dramatically improves the effectiveness of all transformation defenses. In our experiments, the image-quilting defense is particularly effective against strong attacks: it successfully defends against $8 0 - 9 0 \%$ of all four attacks, even when the normalized $L _ { 2 }$ -dissimilarity of the attack approaches 0.08.
|
| 150 |
+
|
| 151 |
+
# 5.4 BLACK BOX: ENSEMBLING AND MODEL TRANSFER
|
| 152 |
+
|
| 153 |
+
We evaluate the efficacy of (1) ensembling different defenses and (2) “transferring” attacks to different network architectures (in a black-box setting). Specifically, we measured the accuracy of four networks using ensembles of defenses on adversarial images generated to attack a ResNet-50; the four networks we consider are ResNet-50, ResNet-101, DenseNet-169 (Huang et al., 2017), and Inception-v4 (Szegedy et al., 2017). To ensemble the image quilting and TVM defenses, we average the image-quilting prediction (using a weight of 0.5) with model predictions for 10 different TVM reconstructions (with a weight of 0.05 each), re-sampling the pixels used to measure the reconstruction error each time. To combine cropping with other transformations, we first apply those transformations and average predictions over 10 random crops from the transformed images.
|
| 154 |
+
|
| 155 |
+
The results of our ensembling experiments are presented in Table 1. The results show that gains of $1 - 2 \%$ in classification accuracy can be achieved by ensembling different defenses, whereas transferring attacks to different convolutional network architectures can lead to an improvement of $2 - 3 \%$ . Inception-v4 performs best in our experiments, but this may be partly due to that network having a higher accuracy even in non-adversarial settings. Our best black-box defense achieves an accuracy of about $7 1 \%$ against all four defenses: the attacks deteriorate the accuracy of our best classifier (which combines cropping, TVM, image quilting, and model transfer) by at most $6 \%$ .
|
| 156 |
+
|
| 157 |
+
# 5.5 GRAY BOX: IMAGE TRANSFORMATIONS AT TRAINING AND TEST TIME
|
| 158 |
+
|
| 159 |
+
The previous experiments demonstrated the effectiveness of image transformations against adversarial images, in particular, when convolutional networks are re-trained to be robust to those image transformations. In this experiment, we investigate to what extent the resulting networks can be attacked in a gray-box setting in which the adversary has access to those networks (but does not have access to the input transformations applied at test time). We use the four attack methods to generate novel adversarial images against the transformation-robust networks trained in 5.3, and measure the accuracy of the networks on these novel adversarial images in Figure 6.
|
| 160 |
+
|
| 161 |
+
The results show that bit-depth reduction and JPEG compression are weak defenses in such a graybox setting. Whilst their relative ordering varies between attack methods, image cropping and rescaling, total variation minimization, and image quilting are fairly robust defenses in the white-box setting. Specifically, networks using these defenses classify up to $5 0 \%$ of adversarial images correctly.
|
| 162 |
+
|
| 163 |
+
# 5.6 COMPARISON WITH PRIOR WORK
|
| 164 |
+
|
| 165 |
+
In our final set of experiments, we compare our defenses with the state-of-the-art ensemble adversarial training approach proposed by Tramer et al. (2017). Ensemble adversarial training fits the \` parameters of a convolutional network on adversarial examples that were generated to attack an ensemble of pre-trained models. These adversarial examples are very diverse, which makes the convolutional network being trained robust to a variety of adversarial perturbation. In our experiments, we used the model released by Tramer et al. (2017): an Inception-Resnet-v2 (Szegedy et al., 2016)\` trained on adversarial examples generated by FGSM against Inception-Resnet-v2 and Inception-v3 models. We compare the model to our ResNet-50 models with image cropping, total variance minimization, and image quilting defenses. We note that there are two small differences in terms of the assumptions that ensemble adversarial training makes and the assumptions our defenses make: (1) in contrast to ensemble adversarial training, our defenses assume that part of the defense strategy (viz., the input transformation) is unknown to the adversary, and (2) in contrast to ensemble adversarial training, our defenses assume no prior knowledge of the attacks being used. The former difference is advantageous to our defenses, whereas the latter difference gives our defenses a disadvantage compared to ensemble adversarial training.
|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
Figure 6: Top-1 classification accuracy of ResNet-50 trained and tested on transformed adversarial images produced by four attacks using five image transformations in a gray-box setting: (1) cropping-rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting. The dotted line represents the top-1 accuracy of the ResNet-50 model on non-adversarial images, providing an upper bound on the effectiveness of a defense. $L _ { 2 }$ -dissimilarity of 0 corresponds to clean image accuracy. Higher is better.
|
| 169 |
+
|
| 170 |
+
Table 2 compares the classification accuracies of the defense strategief on adversarial examples with a normalized $L _ { 2 }$ -dissimilarity of 0.06. The results show that ensemble adversarial training works better on FGSM attacks (which it uses at training time), but is outperformed by each of the transformation-based defenses all other attacks. Input transformations particularly outperform ensemble adversarial training against the iterative attacks: our defense are are $1 8 - 2 4 \times$ more robust than ensemble adversarial training against DeepFool attacks. Combining cropping, TVM, and quilting increases the accuracy of our defenses against DeepFool gray-box attacks to $5 1 . 5 1 \%$ (compared to $1 . 8 4 \%$ for ensemble adversarial training).
|
| 171 |
+
|
| 172 |
+
# 6 DISCUSSION
|
| 173 |
+
|
| 174 |
+
The results from this study suggest there exists a range of image transformations that have the potential to remove adversarial perturbations while preserving the visual content of the image: one merely has to train the convolutional network on images that were transformed in the same way. A critical property that governs which image transformations are most effective in practice is whether
|
| 175 |
+
|
| 176 |
+
<table><tr><td></td><td>Cropping</td><td>TVM</td><td>Quilting</td><td>Ensemble Training (Tramer et al., 2017)</td></tr><tr><td>No Attack</td><td>65.41</td><td>66.29</td><td>69.66</td><td>80.3</td></tr><tr><td>FGSM</td><td>49.52</td><td>31.37</td><td>39.55</td><td>69.15</td></tr><tr><td>I-FGSM</td><td>43.89</td><td>40.99</td><td>33.22</td><td>5.07</td></tr><tr><td>DeepFool</td><td>44.92</td><td>44.69</td><td>34.54</td><td>1.84</td></tr><tr><td>CW-L2</td><td>41.06</td><td>48.41</td><td>30.51</td><td>22.23</td></tr></table>
|
| 177 |
+
|
| 178 |
+
Table 2: Top-1 classification accuracy on images perturbed using attacks against ResNet-50 models trained on input-transformed images, and an Inception-v4 model trained using ensemble adversarial. Adversarial images are generated by running attacks against the models, aiming for an average normalized $L _ { 2 }$ -dissimilarity of 0.06. The best defense against each attack is typeset in boldface.
|
| 179 |
+
|
| 180 |
+
an adversary can incorporate the transformation in its attack. For instance, median filtering likely is a weak remedy because one can backpropagate through the median filter, which is sufficient to perform any of the attacks described in Section 3. A strong input-transformation defense should, therefore, be non-differentiable and randomized, a strategy has been previously shown to be effective (Wang et al., 2016a;b). Two of our top defenses possess both properties:
|
| 181 |
+
|
| 182 |
+
1. Both total variation minimization and image quilting are difficult to differentiate through. Specifically, total variation minimization involves solving a complex minimization of a function that is inherently random. Image quilting involves a discrete variable that selects the patch from the database, which is a non-differentiable operation, and the graph-cut optimization complicates the use of differentiable approximations (Maddison et al., 2017). 2. Both total variation minimization and image quilting give rise to randomized defenses. Total variation minimization randomly selects the pixels it uses to measure reconstruction error on when creating the denoised image. Image quilting randomly selects one of the $K$ nearest neighbors uniformly at random. The inherent randomness of our defenses makes it difficult to attack the model: it implies the adversary has to find a perturbation that alters the prediction for the entire distribution of images that could be used as input, which is harder than perturbing a single image (Moosavi-Dezfooli et al., 2017).
|
| 183 |
+
|
| 184 |
+
Our results with gray-box attacks suggest that randomness is particularly important in developing strong defenses. Therefore, we surmise that total variation minimization, image quilting, and related methods (Dong et al., 2011) are stronger defenses than deterministic denoising procedures such as bit-depth reduction, JPEG compression, or non-local means (Buades, 2005). Defenses based on total variation minimization and image quilting also have an advantage over adversarial-training approaches (Kurakin et al., 2016a): an adversarially trained network is differentiable, which implies that it can be attacked using the methods in Section 3. An additional disadvantage of adversarial training is that it focuses on a particular attack; by contrast, transformation-based defenses generalize well across attack methods because they are model-agnostic.
|
| 185 |
+
|
| 186 |
+
While our study focuses exclusively on image classification, we expect similar defenses to be useful in other domains for which successful attacks have been developed, such as semantic segmentation and speech recognition (Cisse et al., 2017a; Zhang et al., 2017). In speech recognition, for example, total variance minimization can be used to remove perturbations from waveforms, and one could develop “spectrogram quilting” techniques that reconstruct a spectrogram by concatenating “spectrogram patches” along the temporal dimension. We leave such extensions to future work. In future work, we also intend to study combinations of our input-transformation defenses with ensemble adversarial training (Tramer et al., 2017), and we intend to investigate new attack methods that are \` specifically designed to circumvent our input-transformation defenses.
|
| 187 |
+
|
| 188 |
+
# ACKNOWLEDGEMENTS
|
| 189 |
+
|
| 190 |
+
We thank Kilian Weinberger, Iasonas Kokkinos, Changhan Wang, and the entire Facebook AI Research team for helpful discussions and code support. Chuan Guo is supported in part by NSF grant IIS-1618134.
|
| 191 |
+
|
| 192 |
+
# REFERENCES
|
| 193 |
+
|
| 194 |
+
Dario Amodei, Rishita Anubhai, Eric Battenberg, Carl Case, Jared Casper, Bryan Catanzaro, Jingdong Chen, Mike Chrzanowski, Adam Coates, Greg Diamos, et al. Deep Speech 2: End-to-end speech recognition in English and Mandarin. CoRR, abs/1512.02595, 2015.
|
| 195 |
+
|
| 196 |
+
Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Proc. ECML, pp. 387–402, 2013.
|
| 197 |
+
|
| 198 |
+
Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End-to-end learning for self-driving cars. CoRR, abs/1604.07316, 2016.
|
| 199 |
+
|
| 200 |
+
Yuri Boykov, Olga Veksler, and Ramin Zabih. Fast approximate energy minimization via graph cuts. IEEE Transactions on Pattern Analysis and Machine Intelligence, 23(11):1222–1239, 2001.
|
| 201 |
+
|
| 202 |
+
Antoni Buades. A non-local algorithm for image denoising. In Proc. CVPR, pp. 60–65, 2005.
|
| 203 |
+
|
| 204 |
+
Nicholas Carlini and David A. Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, pp. 39–57, 2017.
|
| 205 |
+
|
| 206 |
+
Moustapha Cisse, Yossi Adi, Natalia Neverova, and Joseph Keshet. Houdini: Fooling deep structured prediction models. CoRR, abs/1707.05373, 2017a.
|
| 207 |
+
|
| 208 |
+
Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. CoRR, abs/1704.08847, 2017b.
|
| 209 |
+
|
| 210 |
+
Weisheng Dong, Lei Zhang, and Guangming Shi. Centralized sparse representation for image restoration. In Proc. ICCV, pp. 1259–1266, 2011.
|
| 211 |
+
|
| 212 |
+
Gintare Karolina Dziugaite, Zoubin Ghahramani, and Daniel Roy. A study of the effect of JPG compression on adversarial images. CoRR, abs/1608.00853, 2016.
|
| 213 |
+
|
| 214 |
+
Alexei Efros and William Freeman. Image quilting for texture synthesis and transfer. In Proc. SIGGRAPH, pp. 341–346, 2001.
|
| 215 |
+
|
| 216 |
+
Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Analysis of classifiers’ robustness to adversarial perturbations. CoRR, abs/1502.02590, 2015.
|
| 217 |
+
|
| 218 |
+
Alhussein Fawzi, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Robustness of classifiers: From adversarial to random noise. In Proc. NIPS, pp. 1632–1640, 2016.
|
| 219 |
+
|
| 220 |
+
Tom Goldstein and Stanley Osher. The split Bregman method for L1-regularized problems. SIAM Journal of Imaging Science, 2(2):323–343, April 2009.
|
| 221 |
+
|
| 222 |
+
Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proc. ICLR, 2015.
|
| 223 |
+
|
| 224 |
+
Abigail Graese, Andras Rozsa, and Terrance E. Boult. Assessing threat of adversarial examples on deep neural networks. CoRR, abs/1610.04256, 2016.
|
| 225 |
+
|
| 226 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. CVPR, pp. 770–778, 2016.
|
| 227 |
+
|
| 228 |
+
Gao Huang, Zhuang Liu, Kilian Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. In Proc. CVPR, pp. 2261–2269, 2017.
|
| 229 |
+
|
| 230 |
+
Auguste Kerckhoffs. La cryptographie militaire. Journal des sciences militaires, IX:5–83, 161–191, 1883.
|
| 231 |
+
|
| 232 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
|
| 233 |
+
|
| 234 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. CoRR, abs/1611.01236, 2016a.
|
| 235 |
+
Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533, 2016b.
|
| 236 |
+
Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. CoRR, abs/1611.02770, 2016.
|
| 237 |
+
Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. No need to worry about adversarial examples in object detection in autonomous vehicles. CoRR, abs/1707.03501, 2017.
|
| 238 |
+
Chris Maddison, Andriy Mnih, and Yee-Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In Proc. ICLR, 2017.
|
| 239 |
+
Marco Melis, Ambra Demontis, Battista Biggio, Gavin Brown, Giorgio Fumera, and Fabio Roli. Is deep learning safe for robot vision? adversarial examples against the icub humanoid. CoRR, abs/1708.06939, 2017.
|
| 240 |
+
Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: A simple and accurate method to fool deep neural networks. In Proc. CVPR, pp. 2574–2582, 2016.
|
| 241 |
+
Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In Proc. CVPR, pp. 86–94, 2017.
|
| 242 |
+
Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In IEEE Symposium on Security and Privacy, pp. 582–597, 2016.
|
| 243 |
+
Leonid Rudin, Stanley Osher, and Emad Fatemi. Nonlinear total variation based noise removal algorithms. Physica D, 60:259–268, 1992.
|
| 244 |
+
Uri Shaham, Yutaro Yamada, and Sahand Negahban. Understanding adversarial training: Increasing local stability of neural nets through robust optimization. CoRR, abs/1511.05432, 2015.
|
| 245 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In In Proc. ICLR, 2014.
|
| 246 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proc. CVPR, pp. 2818–2826, 2016.
|
| 247 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander Alemi. Inception-v4, InceptionResNet and the impact of residual connections on learning. In Proc. AAAI, pp. 4278–4284, 2017.
|
| 248 |
+
Florian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick D. McDaniel. Ensemble \` adversarial training: Attacks and defenses. CoRR, abs/1705.07204, 2017.
|
| 249 |
+
Qinglong Wang, Wenbo Guo, Kaixuan Zhang, Alexander G. Ororbia II, Xinyu Xing, C. Lee Giles, and Xue Liu. Adversary resistant deep neural networks with an application to malware detection. CoRR, abs/1610.01239, 2016a.
|
| 250 |
+
Qinglong Wang, Wenbo Guo, Kaixuan Zhang, Alexander G. Ororbia II, Xinyu Xing, C. Lee Giles, and Xue Liu. Learning adversary-resistant deep neural networks. CoRR, abs/1612.01401, 2016b.
|
| 251 |
+
Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. CoRR, abs/1704.01155, 2017.
|
| 252 |
+
Guoming Zhang, Chen Yan, Xiaoyu Ji, Taimin Zhang, Tianchen Zhang, and Wenyuan Xu. Dolphinatack: Inaudible voice commands. CoRR, abs/1708.09537, 2017.
|
parse/train/SyJ7ClWCb/SyJ7ClWCb_content_list.json
ADDED
|
@@ -0,0 +1,1263 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "COUNTERING ADVERSARIAL IMAGES USING INPUT TRANSFORMATIONS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
625,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Chuan Guo∗ Cornell University ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
305,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Mayank Rana & Moustapha Cisse & Laurens van der Maaten ´ Facebook AI Research ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
351,
|
| 30 |
+
170,
|
| 31 |
+
787,
|
| 32 |
+
198
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
236,
|
| 43 |
+
544,
|
| 44 |
+
251
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "This paper investigates strategies that defend against adversarial-example attacks on image-classification systems by transforming the inputs before feeding them to the system. Specifically, we study applying image transformations such as bit-depth reduction, JPEG compression, total variance minimization, and image quilting before feeding the image to a convolutional network classifier. Our experiments on ImageNet show that total variance minimization and image quilting are very effective defenses in practice, in particular, when the network is trained on transformed images. The strength of those defenses lies in their non-differentiable nature and their inherent randomness, which makes it difficult for an adversary to circumvent the defenses. Our best defense eliminates $6 0 \\%$ of strong gray-box and $9 0 \\%$ of strong black-box attacks by a variety of major attack methods. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
265,
|
| 54 |
+
764,
|
| 55 |
+
417
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
440,
|
| 66 |
+
336,
|
| 67 |
+
457
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "As the use of machine intelligence increases in security-sensitive applications (Bojarski et al., 2016; Amodei et al., 2015), robustness has become a critical feature to guarantee the reliability of deployed machine-learning systems. Unfortunately, recent research has demonstrated that existing models are not robust to small, adversarially designed perturbations of the input (Biggio et al., 2013; Szegedy et al., 2014; Goodfellow et al., 2015; Kurakin et al., 2016a; Cisse et al., 2017a). Adversarially perturbed examples have been deployed to attack image classification services (Liu et al., 2016), speech recognition systems (Cisse et al., 2017a), and robot vision (Melis et al., 2017). The existence of these adversarial examples has motivated proposals for approaches that increase the robustness of learning systems to such examples (Papernot et al., 2016; Kurakin et al., 2016a; Cisse et al., 2017b). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
472,
|
| 77 |
+
825,
|
| 78 |
+
597
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The robustness of machine learning models to adversarial examples depends both on the properties of the model (i.e., Lipschitzness) and on the nature of the problem considered, e.g., on the input dimensionality and the Bayes error of the problem (Fawzi et al., 2015; 2016). Consequently, defenses that aim to increase robustness against adversarial examples fall in one of two main categories. The first category comprises model-specific strategies that enforce model properties such as invariance and smoothness via the learning algorithm or regularization scheme (Shaham et al., 2015; Kurakin et al., 2016a; Cisse et al., 2017b), potentially exploiting knowledge about the adversary’s attack strategy (Goodfellow et al., 2015). The second category of defenses are model-agnostic: they try to remove adversarial perturbations from the input. For example, in the context of image classification, adversarial perturbations can be partly removed via JPEG compression (Dziugaite et al., 2016) or image re-scaling (Lu et al., 2017). Hitherto, none of these defenses has been shown to be very effective. Specifically, model-agnostic defenses appear too simple to sufficiently remove adversarial perturbations from input images. By contrast, model-specific defenses make strong assumptions about the nature of the adversary (e.g., on the norm that the adversary minimizes or on the number of iterations it uses to generate the perturbation). Consequently, they do not satisfy Kerckhoffs (1883) principle: the adversary can alter its attack to circumvent such model-specific defenses. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
604,
|
| 88 |
+
825,
|
| 89 |
+
825
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this paper, we focus on increasing the effectiveness of model-agnostic defense strategies by developing approaches that (1) remove the adversarial perturbations from input images, (2) maintain sufficient information in input images to correctly classify them, and (3) are still effective in settings in which the adversary has information on the defense strategy being used. We explore transformations based on image cropping and rescaling (Graese et al., 2016), bit-depth reduction (Xu et al., ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
833,
|
| 99 |
+
823,
|
| 100 |
+
904
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2017), JPEG compression (Dziugaite et al., 2016), total variance minimization (Rudin et al., 1992), and image quilting (Efros & Freeman, 2001). We show that these defenses can be surprisingly effective against existing attacks, in particular, when the convolutional network is trained on images that are transformed in a similar way. The image transformations are good at countering the (iterative) fast gradient sign method (Kurakin et al., 2016a), Deepfool (Moosavi-Dezfooli et al., 2016), and the Carlini & Wagner (2017) attack, even in gray-box settings in which the model architecture and parameters are public. Our strongest defenses are based on total variation minimization and image quilting: these defenses are non-differentiable and inherently random, which makes it difficult for an adversary to get around them. Our best defenses eliminate $6 0 \\%$ of gray-box attacks and $9 0 \\%$ of black-box attacks by four major attack methods that perturb pixel values by $8 \\%$ on average. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
103,
|
| 110 |
+
825,
|
| 111 |
+
243
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 PROBLEM DEFINITION ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
263,
|
| 122 |
+
393,
|
| 123 |
+
279
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "We study defenses against non-targeted adversarial examples for image-recognition systems. Let $\\chi = [ 0 , \\mathbf { \\bar { 1 } } ] ^ { H \\times W \\times C }$ be the image space. Given an image classifier $h ( \\cdot )$ and a source image $\\mathbf { x } \\in \\mathcal { X }$ , a non-targeted1 adversarial example of $\\mathbf { x }$ is a perturbed image $\\mathbf { x } ^ { \\prime } \\in { \\mathcal { X } }$ such that $h ( \\mathbf { x } ) \\neq h ( \\mathbf { x } ^ { \\prime } )$ and $d ( \\mathbf { x } , \\mathbf { \\bar { x } } ^ { \\prime } ) \\leq \\rho$ for some dissimilarity function $d ( \\cdot , \\cdot )$ and $\\rho \\geq 0$ . Ideally, $d ( \\cdot , \\cdot )$ measures the perceptual difference between $\\mathbf { x }$ and $\\mathbf { x } ^ { \\prime }$ but, in practice, the Euclidean distance $d ( \\mathbf { x } , \\mathbf { x } ^ { \\prime } ) = \\lVert \\mathbf { x } - \\mathbf { x } ^ { \\prime } \\rVert _ { 2 }$ or the Chebyshev distance $d ( \\mathbf { x } , \\mathbf { x } ^ { \\prime } ) = \\| \\mathbf { x } - \\mathbf { x } ^ { \\prime } \\| _ { \\infty }$ is most commonly used. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
295,
|
| 133 |
+
825,
|
| 134 |
+
380
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Given a set of $N$ images $\\{ \\mathbf { x } _ { 1 } , \\dotsc , \\mathbf { x } _ { N } \\}$ and a target classifier $h ( \\cdot )$ , an adversarial attack aims to generate $\\{ \\mathbf { x } _ { 1 } ^ { \\prime } , \\ldots , \\mathbf { x } _ { N } ^ { \\prime } \\}$ such that each $\\mathbf { x } _ { n } ^ { \\prime }$ is an adversarial example for $\\mathbf { x } _ { n }$ . The success rate of an attack is measured by the proportion of predictions that was altered by an attack: $\\begin{array} { r } { \\frac { 1 } { N } \\sum _ { n = 1 } ^ { N } \\mathbb { 1 } \\left[ h ( \\mathbf { x } _ { n } ) \\right. \\neq \\left. h ( \\mathbf { x } _ { n } ^ { \\prime } ) \\right] } \\end{array}$ . The success rate is generally measured as a function of the magnitude of the perturbations performed by the attack, using the normalized $L _ { 2 }$ -dissimilarity: ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
385,
|
| 144 |
+
825,
|
| 145 |
+
458
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "equation",
|
| 151 |
+
"img_path": "images/861041de7a98fa36b8877234d34d0dc4861f3a2927f3ed7ff5e1a3c91ff554e0.jpg",
|
| 152 |
+
"text": "$$\n\\frac { 1 } { N } \\sum _ { n = 1 } ^ { N } \\frac { \\| \\mathbf { x } _ { n } - \\mathbf { x } _ { n } ^ { \\prime } \\| _ { 2 } } { \\| \\mathbf { x } _ { n } \\| _ { 2 } } .\n$$",
|
| 153 |
+
"text_format": "latex",
|
| 154 |
+
"bbox": [
|
| 155 |
+
428,
|
| 156 |
+
465,
|
| 157 |
+
570,
|
| 158 |
+
508
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "A strong adversarial attack has a high success rate whilst its normalized $L _ { 2 }$ -dissimilarity is low. ",
|
| 165 |
+
"bbox": [
|
| 166 |
+
174,
|
| 167 |
+
515,
|
| 168 |
+
797,
|
| 169 |
+
530
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "In most practical settings, an adversary does not have direct access to the model $h ( \\cdot )$ and has to do a black-box attack. However, prior work has shown successful attacks by transferring adversarial examples generated for a separately-trained model to an unknown target model (Liu et al., 2016). Therefore, we investigate both the black-box and a more difficult gray-box attack setting: in our gray-box setting, the adversary has access to the model architecture and the model parameters, but is unaware of the defense strategy that is being used. ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
174,
|
| 178 |
+
535,
|
| 179 |
+
825,
|
| 180 |
+
621
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "A defense is an approach that aims make the prediction on an adversarial example $h ( \\mathbf { x } ^ { \\prime } )$ equal to the prediction on the corresponding clean example $h ( \\mathbf { x } )$ . In this study, we focus on imagetransformation defenses $g ( \\mathbf { x } )$ that perform prediction via $h ( g ( \\mathbf { x } ^ { \\prime } ) )$ . Ideally, $g ( \\cdot )$ is a complex, nondifferentiable, and potentially stochastic function: this makes it difficult for an adversary to attack the prediction model $h ( g ( \\mathbf { x } ) { \\dot { ) } }$ even when the adversary knows both $h ( \\cdot )$ and $g ( \\cdot )$ . ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
174,
|
| 189 |
+
626,
|
| 190 |
+
825,
|
| 191 |
+
696
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "3 ADVERSARIAL ATTACKS ",
|
| 198 |
+
"text_level": 1,
|
| 199 |
+
"bbox": [
|
| 200 |
+
176,
|
| 201 |
+
717,
|
| 202 |
+
411,
|
| 203 |
+
733
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "One of the first successful attack methods is the fast gradient sign method (FGSM; Goodfellow et al. (2015)). Let $\\ell ( \\cdot , \\cdot )$ be the differentiable loss function that was used to train the classifier $h ( \\cdot )$ , e.g., the cross-entropy loss. The FGSM adversarial example corresponding to a source input $\\mathbf { x }$ and true label $y$ is: ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
173,
|
| 212 |
+
750,
|
| 213 |
+
825,
|
| 214 |
+
805
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "equation",
|
| 220 |
+
"img_path": "images/75ad531385f430e007932e5dd7d87426595c08441519628462d1f45049b61e2a.jpg",
|
| 221 |
+
"text": "$$\n\\mathbf { x } ^ { \\prime } = \\mathbf { x } + \\epsilon \\cdot \\mathrm { s i g n } \\left( \\nabla _ { \\mathbf { x } } \\ell ( \\mathbf { x } , y ) \\right) ,\n$$",
|
| 222 |
+
"text_format": "latex",
|
| 223 |
+
"bbox": [
|
| 224 |
+
395,
|
| 225 |
+
803,
|
| 226 |
+
601,
|
| 227 |
+
821
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "for some $\\epsilon > 0$ that governs the perturbation magnitude. A stronger variant of this attack, called iterative FGSM (I-FGSM; Kurakin et al. (2016b)), iteratively applies the FGSM update: ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
825,
|
| 237 |
+
830,
|
| 238 |
+
853
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "equation",
|
| 244 |
+
"img_path": "images/389e15708eebe6e24068bfd53bf91065d3f4ca3f350e270006398e1a3ed7e31a.jpg",
|
| 245 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { x } ^ { ( m ) } = \\mathbf { x } ^ { ( m - 1 ) } + \\epsilon \\cdot \\mathrm { s i g n } \\left( \\nabla _ { \\mathbf { x } ^ { ( m - 1 ) } } \\ell ( \\mathbf { x } ^ { ( m - 1 ) } , y ) \\right) , } \\end{array}\n$$",
|
| 246 |
+
"text_format": "latex",
|
| 247 |
+
"bbox": [
|
| 248 |
+
325,
|
| 249 |
+
859,
|
| 250 |
+
669,
|
| 251 |
+
887
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 1
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "image",
|
| 257 |
+
"img_path": "images/4796b80e01b3f89ce7e440f6f79ded8b7dbe2921d10ffd0c7f4a353c86cfb011.jpg",
|
| 258 |
+
"image_caption": [
|
| 259 |
+
"Figure 1: Adversarial images and corresponding perturbations at five levels of normalized $L _ { 2 }$ - dissimilarity for all four attacks. "
|
| 260 |
+
],
|
| 261 |
+
"image_footnote": [],
|
| 262 |
+
"bbox": [
|
| 263 |
+
189,
|
| 264 |
+
102,
|
| 265 |
+
808,
|
| 266 |
+
366
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 2
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "where $m = 1 , \\ldots , M$ ; $\\mathbf { x } ^ { ( 0 ) } = \\mathbf { x }$ ; and $\\mathbf { x } ^ { \\prime } = \\mathbf { x } ^ { ( M ) }$ . The number of iterations $M$ is set such that $h ( \\mathbf { x } ^ { \\prime } ) \\neq h ( \\mathbf { x } )$ . Both FGSM and I-FGSM approximately minimize the Chebyshev distance between the inputs and the adversarial examples they generate. ",
|
| 273 |
+
"bbox": [
|
| 274 |
+
173,
|
| 275 |
+
426,
|
| 276 |
+
825,
|
| 277 |
+
472
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 2
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "Alternative attacks aim to minimize the Euclidean distance between the input and the adversarial example instead. For instance, assuming $h ( \\cdot )$ is a binary classifier, DeepFool (Moosavi-Dezfooli et al., 2016) projects $\\mathbf { x }$ onto a linearization of the decision boundary defined by $h ( \\cdot )$ for $M$ iterations: ",
|
| 284 |
+
"bbox": [
|
| 285 |
+
174,
|
| 286 |
+
478,
|
| 287 |
+
825,
|
| 288 |
+
521
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "equation",
|
| 294 |
+
"img_path": "images/d943607e736f41a23cc935555cdb729191534cd92ef7135c216477cb85a62054.jpg",
|
| 295 |
+
"text": "$$\n\\mathbf { x } ^ { ( m ) } = \\mathbf { x } ^ { ( m - 1 ) } - \\epsilon \\cdot \\frac { h ( \\mathbf { x } ^ { ( m - 1 ) } ) } { \\| \\nabla _ { \\mathbf { x } ^ { ( m - 1 ) } } h ( \\mathbf { x } ^ { ( m - 1 ) } ) \\| _ { 2 } ^ { 2 } } \\nabla _ { \\mathbf { x } ^ { ( m - 1 ) } } h \\left( \\mathbf { x } ^ { ( m - 1 ) } \\right) ,\n$$",
|
| 296 |
+
"text_format": "latex",
|
| 297 |
+
"bbox": [
|
| 298 |
+
276,
|
| 299 |
+
529,
|
| 300 |
+
720,
|
| 301 |
+
565
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 2
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "where $\\mathbf { x } ^ { ( 0 ) }$ and $\\mathbf { x } ^ { \\prime }$ are defined as in I-FGSM. The multi-class variant of DeepFool performs the projection onto the nearest class boundaries. The linearization performed in DeepFool is particularly well suited for ReLU-networks, as these represent piecewise linear class boundaries. ",
|
| 308 |
+
"bbox": [
|
| 309 |
+
174,
|
| 310 |
+
568,
|
| 311 |
+
825,
|
| 312 |
+
609
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "Carlini-Wagner’s $L _ { 2 }$ attack (CW-L2; Carlini & Wagner (2017)) is an optimization-based attack that combines a differentiable surrogate for the model’s classification accuracy with an $L _ { 2 }$ -penalty term. Let $Z ( \\mathbf { x } )$ be the operation that computes the logit vector (i.e., the output before the softmax layer) for an input $\\mathbf { x }$ , and $Z ( \\mathbf { x } ) _ { k }$ be the logit value corresponding to class $k$ . The untargeted variant of CW-L2 finds a solution to the unconstrained optimization problem ",
|
| 319 |
+
"bbox": [
|
| 320 |
+
173,
|
| 321 |
+
616,
|
| 322 |
+
825,
|
| 323 |
+
685
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 2
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "equation",
|
| 329 |
+
"img_path": "images/258190af9f742f4d768388df7a2f56710a80745041a73de6c189aa7d27d67e87.jpg",
|
| 330 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\mathbf { x } ^ { \\prime } } \\left[ \\| \\mathbf { x } - \\mathbf { x } ^ { \\prime } \\| _ { 2 } ^ { 2 } + \\lambda _ { f } \\operatorname* { m a x } \\left( - \\kappa , Z ( \\mathbf { x } ^ { \\prime } ) _ { h ( \\mathbf { x } ) } - \\operatorname* { m a x } \\{ Z ( \\mathbf { x } ^ { \\prime } ) _ { k } : k \\neq h ( \\mathbf { x } ) \\} \\right) \\right] ,\n$$",
|
| 331 |
+
"text_format": "latex",
|
| 332 |
+
"bbox": [
|
| 333 |
+
248,
|
| 334 |
+
686,
|
| 335 |
+
745,
|
| 336 |
+
710
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "text",
|
| 342 |
+
"text": "where $\\kappa$ denotes a margin parameter, and where the parameter $\\lambda _ { f }$ trades off the perturbation norm and the hinge loss of predicting a different class. We perform the minimization over $\\mathbf { x } ^ { \\prime }$ using the Adam optimizer (Kingma & Ba, 2014) for 100 iterations with an initial learning rate of 0.001. ",
|
| 343 |
+
"bbox": [
|
| 344 |
+
176,
|
| 345 |
+
713,
|
| 346 |
+
825,
|
| 347 |
+
755
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "All of the aforementioned attacks enforce that $\\mathbf { x } ^ { \\prime } \\in { \\mathcal { X } }$ by clipping values between 0 and 1. Figure 1 shows adversarial images produced by all four attacks at five normalized $L _ { 2 }$ -dissimilarity levels. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
761,
|
| 357 |
+
823,
|
| 358 |
+
790
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "4 DEFENSES ",
|
| 365 |
+
"text_level": 1,
|
| 366 |
+
"bbox": [
|
| 367 |
+
174,
|
| 368 |
+
809,
|
| 369 |
+
294,
|
| 370 |
+
825
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 2
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "Adversarial attacks alter particular statistics of the input image in order to change the model prediction. Indeed, adversarial perturbations $\\mathbf { x } - \\mathbf { x } ^ { \\prime }$ have a particular structure, as illustrated by Figure 1. We design and experiment with image transformations that alter the structure of these perturbations, and investigate whether the alterations undo the effects of the adversarial attack. We investigate five image transformations: (1) image cropping and rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting. ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
839,
|
| 380 |
+
825,
|
| 381 |
+
924
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 2
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "We first introduce three simple image transformations: image cropping-rescaling (Graese et al., 2016), bit-depth reduction (Xu et al., 2017), and JPEG compression and decompression (Dziugaite et al., 2016). Image croppingrescaling has the effect of altering the spatial positioning of the adversarial perturbation, which is important in making attacks successful. Following He et al. (2016), we crop and rescale images at training time as part of the data augmentation. At test time, we average predictions over random image crops. Bitdepth reduction (Xu et al., 2017) perform a simple type of quantization that can removes small (adversarial) variations in pixel values from an image; we reduce images to 3 bits in our experiments. JPEG compression (Dziugaite et al., 2016) removes small perturbations in a similar way; we perform compression at quality level 75 (out of 100). ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
174,
|
| 390 |
+
130,
|
| 391 |
+
483,
|
| 392 |
+
406
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "4.2 TOTAL VARIANCE MINIMIZATION ",
|
| 399 |
+
"text_level": 1,
|
| 400 |
+
"bbox": [
|
| 401 |
+
178,
|
| 402 |
+
424,
|
| 403 |
+
442,
|
| 404 |
+
438
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "An alternative way of removing adversarial perturbations is via a compressed sensing approach that combines pixel dropout with total variation minimization (Rudin et al., 1992). This approach randomly selects a small set of pixels, and reconstructs the “simplest” image that is consistent with the selected pixels. The reconstructed image does not contain the adversarial perturbations because these perturbations tend to be small and localized. ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
174,
|
| 413 |
+
450,
|
| 414 |
+
482,
|
| 415 |
+
588
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "image",
|
| 421 |
+
"img_path": "images/5f134c8eea06771359ec9cbe61af525c03cb806d9ac48319199ba6e27f005054.jpg",
|
| 422 |
+
"image_caption": [
|
| 423 |
+
"Figure 2: Illustration of total variance minimization and image quilting applied to an original and an adversarial image (produced using I-FGSM with $\\epsilon = 0 . 0 3$ , corresponding to a normalized $L _ { 2 }$ - dissimilarity of 0.075). From left to right, the columns correspond to: (1) no transformation, (2) total variance minimization, and (3) image quilting. From top to bottom, rows correspond to: (1) the original image, (2) the corresponding adversarial image produced by I-FGSM, and (3) the absolute difference between the two images above. Difference images were multiplied by a constant scaling factor to increase visibility. "
|
| 424 |
+
],
|
| 425 |
+
"image_footnote": [],
|
| 426 |
+
"bbox": [
|
| 427 |
+
501,
|
| 428 |
+
125,
|
| 429 |
+
823,
|
| 430 |
+
372
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 3
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "Specifically, we first select a random set of pixels by sampling a Bernoulli random variable $X ( i , j , k )$ for each pixel location $( i , j , k )$ ; we maintain a pixel when $X ( \\bar { i } , j , k ) = 1$ . Next, we use total variation minimization to constructs an image $\\mathbf { z }$ that is similar to the (perturbed) input image $\\mathbf { x }$ for the selected set of pixels, whilst also being “simple” in terms of total variation by solving: ",
|
| 437 |
+
"bbox": [
|
| 438 |
+
174,
|
| 439 |
+
595,
|
| 440 |
+
825,
|
| 441 |
+
652
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 3
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "equation",
|
| 447 |
+
"img_path": "images/34de66b597b5dc51c2d06e694126eb16f89aa5a3edaf22d450bffb3caaf568a8.jpg",
|
| 448 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\mathbf { z } } \\| ( 1 - X ) \\odot ( \\mathbf { z } - \\mathbf { x } ) \\| _ { 2 } + \\lambda _ { \\mathrm { T V } } \\cdot \\mathrm { T V } _ { p } ( \\mathbf { z } ) .\n$$",
|
| 449 |
+
"text_format": "latex",
|
| 450 |
+
"bbox": [
|
| 451 |
+
346,
|
| 452 |
+
657,
|
| 453 |
+
650,
|
| 454 |
+
680
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "Herein, $\\odot$ denotes element-wise multiplication, and $\\mathrm { T V } _ { p } ( { \\mathbf z } )$ represents the $L _ { p }$ -total variation of $\\mathbf { z }$ : ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
171,
|
| 463 |
+
686,
|
| 464 |
+
818,
|
| 465 |
+
702
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "equation",
|
| 471 |
+
"img_path": "images/97f2b7c896d490a1015ff383d7af3223d6655b4cbe7581930b0329ef9aa4d8f5.jpg",
|
| 472 |
+
"text": "$$\n\\mathrm { T V } _ { p } ( \\mathbf { z } ) = \\sum _ { k = 1 } ^ { K } \\left[ \\sum _ { i = 2 } ^ { N } \\| \\mathbf { z } ( i , : , k ) - \\mathbf { z } ( i - 1 , : , k ) \\| _ { p } + \\sum _ { j = 2 } ^ { N } \\| \\mathbf { z } ( : , j , k ) - \\mathbf { z } ( : , j - 1 , k ) \\| _ { p } \\right] .\n$$",
|
| 473 |
+
"text_format": "latex",
|
| 474 |
+
"bbox": [
|
| 475 |
+
212,
|
| 476 |
+
708,
|
| 477 |
+
784,
|
| 478 |
+
758
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 3
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "The total variation (TV) measures the amount of fine-scale variation in the image $\\mathbf { z }$ , as a result of which TV minimization encourages removal of small (adversarial) perturbations in the image. The objective function (6) is convex in $\\mathbf { z }$ , which makes solving for $\\mathbf { z }$ straightforward. In our implementation, we set $p = 2$ and employ a special-purpose solver based on the split Bregman method (Goldstein & Osher, 2009) to perform total variance minimization efficiently. ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
174,
|
| 487 |
+
762,
|
| 488 |
+
825,
|
| 489 |
+
833
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 3
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "The effectiveness of TV minimization is illustrated by the images in the middle column of Figure 2: in particular, note that the adversarial perturbations that were present in the background for the nontransformed image (see bottom-left image) have nearly completely disappeared in the TV-minimized adversarial image (bottom-center image). As expected, TV minimization also changes image structure in non-homogeneous regions of the image, but as these perturbations were not adversarially designed we expect the negative effect of these changes to be limited. ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
173,
|
| 498 |
+
839,
|
| 499 |
+
825,
|
| 500 |
+
924
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 3
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "image",
|
| 506 |
+
"img_path": "images/a70380ebaa590d9eaf6bd859744d4c3de7cc9206fff309be23ac9144d5f6a71d.jpg",
|
| 507 |
+
"image_caption": [
|
| 508 |
+
"Figure 3: Block diagram detailing the differences between the experimental setups in Section 5.2, 5.3, and 5.4. We train networks (a) on regular images or (b) on transformed images; we test the networks on transformed adversarial images. For each of the three setups, dashed arrows indicate which model is used by the adversary and which model is used by the classification model. "
|
| 509 |
+
],
|
| 510 |
+
"image_footnote": [],
|
| 511 |
+
"bbox": [
|
| 512 |
+
176,
|
| 513 |
+
98,
|
| 514 |
+
821,
|
| 515 |
+
247
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 4
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "text",
|
| 521 |
+
"text": "4.3 IMAGE QUILTING ",
|
| 522 |
+
"text_level": 1,
|
| 523 |
+
"bbox": [
|
| 524 |
+
176,
|
| 525 |
+
343,
|
| 526 |
+
333,
|
| 527 |
+
358
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 4
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "Image quilting (Efros & Freeman, 2001) is a non-parametric technique that synthesizes images by piecing together small patches that are taken from a database of image patches. The algorithm places appropriate patches in the database for a predefined set of grid points, and computes minimum graph cuts (Boykov et al., 2001) in all overlapping boundary regions to remove edge artifacts. ",
|
| 534 |
+
"bbox": [
|
| 535 |
+
174,
|
| 536 |
+
369,
|
| 537 |
+
825,
|
| 538 |
+
425
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "Image quilting can be used to remove adversarial perturbations by constructing a patch database that only contains patches from “clean” images (without adversarial perturbations); the patches used to create the synthesized image are selected by finding the $K$ nearest neighbors (in pixel space) of the corresponding patch from the adversarial image in the patch database, and picking one of these neighbors uniformly at random. The motivation for this defense is that the resulting image only consists of pixels that were not modified by the adversary — the database of real patches is unlikely to contain the structures that appear in adversarial images. ",
|
| 545 |
+
"bbox": [
|
| 546 |
+
174,
|
| 547 |
+
433,
|
| 548 |
+
825,
|
| 549 |
+
530
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 4
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "text",
|
| 555 |
+
"text": "The right-most column of Figure 2 illustrates the effect of image quilting on adversarial images. Whilst interpretation of these images is more complicated due to the quantization errors that image quilting introduces, it is interesting to note that the absolute differences between quilted original and the quilted adversarial image appear to be smaller in non-homogeneous regions of the image. This suggests that TV minimization and image quilting lead to inherently different defenses. ",
|
| 556 |
+
"bbox": [
|
| 557 |
+
176,
|
| 558 |
+
536,
|
| 559 |
+
825,
|
| 560 |
+
606
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 4
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "5 EXPERIMENTS ",
|
| 567 |
+
"text_level": 1,
|
| 568 |
+
"bbox": [
|
| 569 |
+
176,
|
| 570 |
+
627,
|
| 571 |
+
326,
|
| 572 |
+
642
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "We performed five experiments to test the efficacy of our defenses. The experiment in Section 5.2 considers gray-box attacks: it applies the defenses on adversarial images before using them as input into a convolutional network trained to classify “clean” images. In this setting, the adversary has access to the model architecture and parameters but is unaware of the defense strategy. The experiment in Section 5.3 focuses on a black-box setting: it replaces the convolutional network by networks that were trained on images with a particular input-transformation. The experiment in Section 5.4 combines our defenses with ensembling and model transfer. The experiment in Section 5.5 investigates to what extent networks trained on image-transformations can be attacked in a gray-box setting. The experiment in Section 5.6 compares our defenses with prior work. The setup of our gray-box and black-box experiments is illustrated in Figure 3. Code to reproduce our results is available at https://github.com/facebookresearch/adversarial_image_defenses. ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
174,
|
| 581 |
+
659,
|
| 582 |
+
825,
|
| 583 |
+
810
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 4
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "5.1 EXPERIMENTAL SETUP ",
|
| 590 |
+
"text_level": 1,
|
| 591 |
+
"bbox": [
|
| 592 |
+
176,
|
| 593 |
+
828,
|
| 594 |
+
375,
|
| 595 |
+
842
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 4
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "We performed experiments on the ImageNet image classification dataset. The dataset comprises 1.2 million training images and 50, 000 test images that correspond to one of $1 , 0 0 0$ classes. Our adversarial images are produced by attacking a ResNet-50 model (He et al., 2016). We evaluate our defense strategies against the four adversarial attacks presented in Section 3. We measure the strength of an adversary in terms of its normalized $L _ { 2 }$ -dissimilarity and report classification accuracies as a function of the normalized $L _ { 2 }$ -dissimilarity. To produce adversarial images like those in Figure 1, we set the normalized $L _ { 2 }$ -dissimilarity for each of the attacks as follows: ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
174,
|
| 604 |
+
854,
|
| 605 |
+
823,
|
| 606 |
+
924
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 4
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "image",
|
| 612 |
+
"img_path": "images/cb27099cf36179accd666897d315503aa0039bf2e01d559ec88280cd10dad8bb.jpg",
|
| 613 |
+
"image_caption": [
|
| 614 |
+
"Figure 4: Top-1 classification accuracy of ResNet-50 tested on transformed adversarial images produced by four attacks using five image transformations in a gray-box setting: (1) cropping-rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting. The dotted line shows the top-1 accuracy of the ResNet-50 model on non-adversarial images, providing an upper bound on the effectiveness of a defense. An $L _ { 2 }$ -dissimilarity of 0.00 corresponds to the classification accuracy on non-adversarial images. Higher is better. "
|
| 615 |
+
],
|
| 616 |
+
"image_footnote": [],
|
| 617 |
+
"bbox": [
|
| 618 |
+
256,
|
| 619 |
+
102,
|
| 620 |
+
743,
|
| 621 |
+
401
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 5
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "",
|
| 628 |
+
"bbox": [
|
| 629 |
+
173,
|
| 630 |
+
526,
|
| 631 |
+
825,
|
| 632 |
+
554
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 5
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"text": "• FGSM. Increasing the step size $\\epsilon$ increases the normalized $L _ { 2 }$ -dissimilarity. \n• I-FGSM. We fix $M = 1 0$ , and increase $\\epsilon$ to increase the normalized $L _ { 2 }$ -dissimilarity. \n• DeepFool. We fix $M = 5$ , and increase $\\epsilon$ to increase the normalized $L _ { 2 }$ -dissimilarity. \n• CW-L2. We fix $\\kappa = 0$ and $\\lambda _ { f } = 1 0$ , and multiply the resulting perturbation by an appropriately chosen $\\epsilon \\geq 1$ to alter the normalized $L _ { 2 }$ -dissimilarity. ",
|
| 639 |
+
"bbox": [
|
| 640 |
+
215,
|
| 641 |
+
566,
|
| 642 |
+
823,
|
| 643 |
+
650
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 5
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "We fixed the hyperparameters of our defenses in all experiments: specifically, we set pixel dropout probability $p { = } 0 . 5$ and the regularization parameter of the total variation minimizer $\\lambda _ { \\mathrm { T V } } { = } 0 . 0 3$ . We use a quilting patch size of $5 \\times 5$ and a database of $1 , 0 0 0 , 0 0 0$ patches that were randomly selected from the ImageNet training set. We use the nearest neighbor patch (i.e., $K = 1$ ) for experiments in Sections 5.2 and 5.3, and randomly select a patch from one of $K = 1 0$ nearest neighbors in all other experiments. In the cropping defense, we sample 30 crops of size $9 0 \\times 9 0$ from the $2 2 4 \\times 2 2 4$ input image, rescale the crops to $2 2 4 \\times 2 2 4$ , and average the model predictions over all crops. ",
|
| 650 |
+
"bbox": [
|
| 651 |
+
174,
|
| 652 |
+
662,
|
| 653 |
+
825,
|
| 654 |
+
761
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 5
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "5.2 GRAY BOX: IMAGE TRANSFORMATIONS AT TEST TIME ",
|
| 661 |
+
"text_level": 1,
|
| 662 |
+
"bbox": [
|
| 663 |
+
173,
|
| 664 |
+
777,
|
| 665 |
+
598,
|
| 666 |
+
792
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "Figure 4 shows the top-1 accuracy of a ResNet-50 tested on transformed adversarial images as a function of the adversary strength for each of the four attacks. Each plot shows results for five different transformations we apply to the images at test time (viz., image cropping-rescaling, bitdepth reduction, JPEG compression, total variation minimization, and image quilting). The dotted line shows the classification error of the ResNet-50 model on images that are not adversarially perturbed, i.e., it gives an upper bound on the accuracy that defenses can achieve. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
804,
|
| 676 |
+
825,
|
| 677 |
+
888
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 5
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "In line with the results reported in the literature, the four adversaries successfully attack the ResNet50 model in nearly all cases (FGSM has a slightly lower favorable attack rate of $8 0 - 9 0 \\%$ ) when the input images are not transformed. The results also show that the proposed image transformations are capable of partly eliminating the effect of the attacks. In particular, ensembling 30 predictions over different, random image crops is very efficient: these predictions are correct for $4 0 - 6 0 \\%$ of the images (note that $76 \\%$ is the highest accuracy that one can expect to achieve). This result suggests that adversarial examples are susceptible to changes in the location and scale of the adversarial perturbations. While not as effective, image transformations based on total variation minimization and image quilting also successfully defend against adversarial examples from all four attacks: applying these transformations allows us to classify $3 0 { - } 4 0 \\%$ of the images correctly. This result suggests that total variation minimization and image quilting can successfully remove part of the perturbations from adversarial images. In particular, the accuracy of the image-quilting defense hardly deteriorates as the strength of the adversary increases. However, the quilting transformation does severely impact the model’s accuracy on non-adversarial images. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
173,
|
| 686 |
+
895,
|
| 687 |
+
821,
|
| 688 |
+
924
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 5
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "image",
|
| 694 |
+
"img_path": "images/e58dbb9814413968996a5583754ff345817e903a1717edd3f9c62704c1811217.jpg",
|
| 695 |
+
"image_caption": [
|
| 696 |
+
"Figure 5: Top-1 classification accuracy of ResNet-50 trained and tested on transformed adversarial images produced by four attacks using five image transformations in a black-box setting: (1) cropping-rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting. The dotted line represents the top-1 accuracy of the ResNet-50 model on nonadversarial images, providing an upper bound on the effectiveness of a defense. An $L _ { 2 }$ -dissimilarity of 0.00 corresponds to the classification accuracy on non-adversarial images. Higher is better. "
|
| 697 |
+
],
|
| 698 |
+
"image_footnote": [],
|
| 699 |
+
"bbox": [
|
| 700 |
+
258,
|
| 701 |
+
101,
|
| 702 |
+
743,
|
| 703 |
+
401
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 6
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "",
|
| 710 |
+
"bbox": [
|
| 711 |
+
173,
|
| 712 |
+
527,
|
| 713 |
+
825,
|
| 714 |
+
694
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 6
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "5.3 BLACK BOX: IMAGE TRANSFORMATIONS AT TRAINING AND TEST TIME ",
|
| 721 |
+
"text_level": 1,
|
| 722 |
+
"bbox": [
|
| 723 |
+
178,
|
| 724 |
+
714,
|
| 725 |
+
714,
|
| 726 |
+
728
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 6
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "The high relative performance of image cropping-rescaling in 5.2 may be partly explained by the fact that the convolutional network was trained on randomly cropped-rescaled images2, but not on any of the other transformations. This implies that independent of whether an image is adversarial or not, the network is more robust to image cropping-rescaling than it is to those transformations. The results in Figure 4 suggest that this negatively affects the effectiveness of these defenses, even if the defenses are successful in removing the adversarial perturbation. To investigate this, we trained ResNet-50 models on transformed ImageNet training images. We adopt the standard data augmentation from He et al. (2016), but apply bit-depth reduction, JPEG compression, TV minimization, or image quilting on the resized image crop before feeding it to the network. We measure the classification accuracy of the resulting networks on the same adversarial images as before. Note that this implies that we assume a black-box setting in this experiment. ",
|
| 733 |
+
"bbox": [
|
| 734 |
+
174,
|
| 735 |
+
742,
|
| 736 |
+
825,
|
| 737 |
+
893
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 6
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "table",
|
| 743 |
+
"img_path": "images/6d95e93ae27d2f868e5a3450b3198c6d24b5098c337bb6d20efe82843f75e0c4.jpg",
|
| 744 |
+
"table_caption": [],
|
| 745 |
+
"table_footnote": [],
|
| 746 |
+
"table_body": "<table><tr><td></td><td colspan=\"4\">Quilting</td><td colspan=\"4\">TVM +Quilting</td><td colspan=\"4\">Cropping+TVM+Quilting</td></tr><tr><td></td><td>RN50</td><td>RN101</td><td>DN169</td><td>Iv4</td><td>RN50</td><td>RN101</td><td>DN169</td><td>Iv4</td><td>RN50</td><td>RN101</td><td>DN169</td><td>Iv4</td></tr><tr><td>No Attack</td><td>70.07</td><td>72.56</td><td>70.18</td><td>73.01</td><td>72.38</td><td>74.74</td><td>73.10</td><td>75.55</td><td>72.14</td><td>74.53</td><td>72.92</td><td>75.10</td></tr><tr><td>FGSM</td><td>65.45</td><td>68.50</td><td>65.96</td><td>67.53</td><td>65.70</td><td>68.77</td><td>67.09</td><td>69.19</td><td>66.65</td><td>69.75</td><td>67.86</td><td>70.37</td></tr><tr><td>I-FGSM</td><td>65.59</td><td>68.72</td><td>66.16</td><td>69.29</td><td>65.84</td><td>69.10</td><td>67.32</td><td>71.05</td><td>67.03</td><td>70.14</td><td>68.20</td><td>71.52</td></tr><tr><td>DeepFool</td><td>65.20</td><td>68.73</td><td>65.86</td><td>68.70</td><td>65.80</td><td>69.34</td><td>67.40</td><td>71.03</td><td>67.11</td><td>70.49</td><td>68.62</td><td>71.47</td></tr><tr><td>CW-L2</td><td>64.11</td><td>67.72</td><td>65.00</td><td>68.14</td><td>63.99</td><td>68.20</td><td>66.08</td><td>70.13</td><td>65.31</td><td>69.14</td><td>66.96</td><td>70.50</td></tr></table>",
|
| 747 |
+
"bbox": [
|
| 748 |
+
176,
|
| 749 |
+
101,
|
| 750 |
+
821,
|
| 751 |
+
185
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 7
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "Table 1: Top-1 classification accuracy of ensemble and model transfer defenses (columns) against four black-box attacks (rows). The four networks we use to classify images are ResNet-50 (RN50), ResNet-101 (RN101), DenseNet-169 (DN169), and Inception-v4 (Iv4). Adversarial images are generated by running attacks against the ResNet-50 model, aiming for an average normalized $L _ { 2 }$ - dissimilarity of 0.06. Higher is better. The best defense against each attack is typeset in boldface. ",
|
| 758 |
+
"bbox": [
|
| 759 |
+
173,
|
| 760 |
+
195,
|
| 761 |
+
825,
|
| 762 |
+
265
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 7
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "We present the results of these experiments in Figure 5. Training convolutional networks on images that are transformed in the same way as at test time, indeed, dramatically improves the effectiveness of all transformation defenses. In our experiments, the image-quilting defense is particularly effective against strong attacks: it successfully defends against $8 0 - 9 0 \\%$ of all four attacks, even when the normalized $L _ { 2 }$ -dissimilarity of the attack approaches 0.08. ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
174,
|
| 771 |
+
291,
|
| 772 |
+
825,
|
| 773 |
+
362
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 7
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "5.4 BLACK BOX: ENSEMBLING AND MODEL TRANSFER ",
|
| 780 |
+
"text_level": 1,
|
| 781 |
+
"bbox": [
|
| 782 |
+
173,
|
| 783 |
+
378,
|
| 784 |
+
576,
|
| 785 |
+
393
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 7
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "We evaluate the efficacy of (1) ensembling different defenses and (2) “transferring” attacks to different network architectures (in a black-box setting). Specifically, we measured the accuracy of four networks using ensembles of defenses on adversarial images generated to attack a ResNet-50; the four networks we consider are ResNet-50, ResNet-101, DenseNet-169 (Huang et al., 2017), and Inception-v4 (Szegedy et al., 2017). To ensemble the image quilting and TVM defenses, we average the image-quilting prediction (using a weight of 0.5) with model predictions for 10 different TVM reconstructions (with a weight of 0.05 each), re-sampling the pixels used to measure the reconstruction error each time. To combine cropping with other transformations, we first apply those transformations and average predictions over 10 random crops from the transformed images. ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
174,
|
| 794 |
+
405,
|
| 795 |
+
825,
|
| 796 |
+
530
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 7
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "The results of our ensembling experiments are presented in Table 1. The results show that gains of $1 - 2 \\%$ in classification accuracy can be achieved by ensembling different defenses, whereas transferring attacks to different convolutional network architectures can lead to an improvement of $2 - 3 \\%$ . Inception-v4 performs best in our experiments, but this may be partly due to that network having a higher accuracy even in non-adversarial settings. Our best black-box defense achieves an accuracy of about $7 1 \\%$ against all four defenses: the attacks deteriorate the accuracy of our best classifier (which combines cropping, TVM, image quilting, and model transfer) by at most $6 \\%$ . ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
174,
|
| 805 |
+
537,
|
| 806 |
+
825,
|
| 807 |
+
635
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 7
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "5.5 GRAY BOX: IMAGE TRANSFORMATIONS AT TRAINING AND TEST TIME ",
|
| 814 |
+
"text_level": 1,
|
| 815 |
+
"bbox": [
|
| 816 |
+
176,
|
| 817 |
+
651,
|
| 818 |
+
705,
|
| 819 |
+
666
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 7
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "The previous experiments demonstrated the effectiveness of image transformations against adversarial images, in particular, when convolutional networks are re-trained to be robust to those image transformations. In this experiment, we investigate to what extent the resulting networks can be attacked in a gray-box setting in which the adversary has access to those networks (but does not have access to the input transformations applied at test time). We use the four attack methods to generate novel adversarial images against the transformation-robust networks trained in 5.3, and measure the accuracy of the networks on these novel adversarial images in Figure 6. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
678,
|
| 829 |
+
825,
|
| 830 |
+
775
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "The results show that bit-depth reduction and JPEG compression are weak defenses in such a graybox setting. Whilst their relative ordering varies between attack methods, image cropping and rescaling, total variation minimization, and image quilting are fairly robust defenses in the white-box setting. Specifically, networks using these defenses classify up to $5 0 \\%$ of adversarial images correctly. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
782,
|
| 840 |
+
823,
|
| 841 |
+
838
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 7
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "5.6 COMPARISON WITH PRIOR WORK ",
|
| 848 |
+
"text_level": 1,
|
| 849 |
+
"bbox": [
|
| 850 |
+
176,
|
| 851 |
+
854,
|
| 852 |
+
447,
|
| 853 |
+
869
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 7
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "In our final set of experiments, we compare our defenses with the state-of-the-art ensemble adversarial training approach proposed by Tramer et al. (2017). Ensemble adversarial training fits the \\` parameters of a convolutional network on adversarial examples that were generated to attack an ensemble of pre-trained models. These adversarial examples are very diverse, which makes the convolutional network being trained robust to a variety of adversarial perturbation. In our experiments, we used the model released by Tramer et al. (2017): an Inception-Resnet-v2 (Szegedy et al., 2016)\\` trained on adversarial examples generated by FGSM against Inception-Resnet-v2 and Inception-v3 models. We compare the model to our ResNet-50 models with image cropping, total variance minimization, and image quilting defenses. We note that there are two small differences in terms of the assumptions that ensemble adversarial training makes and the assumptions our defenses make: (1) in contrast to ensemble adversarial training, our defenses assume that part of the defense strategy (viz., the input transformation) is unknown to the adversary, and (2) in contrast to ensemble adversarial training, our defenses assume no prior knowledge of the attacks being used. The former difference is advantageous to our defenses, whereas the latter difference gives our defenses a disadvantage compared to ensemble adversarial training. ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
176,
|
| 862 |
+
882,
|
| 863 |
+
823,
|
| 864 |
+
922
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 7
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "image",
|
| 870 |
+
"img_path": "images/e25357bdeaa7019fe1216779f702901eab0df83e0824c6b9fef069aac97c257b.jpg",
|
| 871 |
+
"image_caption": [
|
| 872 |
+
"Figure 6: Top-1 classification accuracy of ResNet-50 trained and tested on transformed adversarial images produced by four attacks using five image transformations in a gray-box setting: (1) cropping-rescaling, (2) bit-depth reduction, (3) JPEG compression, (4) total variance minimization, and (5) image quilting. The dotted line represents the top-1 accuracy of the ResNet-50 model on non-adversarial images, providing an upper bound on the effectiveness of a defense. $L _ { 2 }$ -dissimilarity of 0 corresponds to clean image accuracy. Higher is better. "
|
| 873 |
+
],
|
| 874 |
+
"image_footnote": [],
|
| 875 |
+
"bbox": [
|
| 876 |
+
256,
|
| 877 |
+
102,
|
| 878 |
+
743,
|
| 879 |
+
401
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 8
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "",
|
| 886 |
+
"bbox": [
|
| 887 |
+
174,
|
| 888 |
+
526,
|
| 889 |
+
825,
|
| 890 |
+
694
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 8
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Table 2 compares the classification accuracies of the defense strategief on adversarial examples with a normalized $L _ { 2 }$ -dissimilarity of 0.06. The results show that ensemble adversarial training works better on FGSM attacks (which it uses at training time), but is outperformed by each of the transformation-based defenses all other attacks. Input transformations particularly outperform ensemble adversarial training against the iterative attacks: our defense are are $1 8 - 2 4 \\times$ more robust than ensemble adversarial training against DeepFool attacks. Combining cropping, TVM, and quilting increases the accuracy of our defenses against DeepFool gray-box attacks to $5 1 . 5 1 \\%$ (compared to $1 . 8 4 \\%$ for ensemble adversarial training). ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
174,
|
| 899 |
+
700,
|
| 900 |
+
825,
|
| 901 |
+
813
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 8
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "6 DISCUSSION ",
|
| 908 |
+
"text_level": 1,
|
| 909 |
+
"bbox": [
|
| 910 |
+
174,
|
| 911 |
+
834,
|
| 912 |
+
310,
|
| 913 |
+
851
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 8
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "The results from this study suggest there exists a range of image transformations that have the potential to remove adversarial perturbations while preserving the visual content of the image: one merely has to train the convolutional network on images that were transformed in the same way. A critical property that governs which image transformations are most effective in practice is whether ",
|
| 920 |
+
"bbox": [
|
| 921 |
+
174,
|
| 922 |
+
867,
|
| 923 |
+
823,
|
| 924 |
+
924
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 8
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "table",
|
| 930 |
+
"img_path": "images/10ea05a538fa756dac7a9d765efd9f36a889133a30d4e8176209031edf7f4182.jpg",
|
| 931 |
+
"table_caption": [],
|
| 932 |
+
"table_footnote": [],
|
| 933 |
+
"table_body": "<table><tr><td></td><td>Cropping</td><td>TVM</td><td>Quilting</td><td>Ensemble Training (Tramer et al., 2017)</td></tr><tr><td>No Attack</td><td>65.41</td><td>66.29</td><td>69.66</td><td>80.3</td></tr><tr><td>FGSM</td><td>49.52</td><td>31.37</td><td>39.55</td><td>69.15</td></tr><tr><td>I-FGSM</td><td>43.89</td><td>40.99</td><td>33.22</td><td>5.07</td></tr><tr><td>DeepFool</td><td>44.92</td><td>44.69</td><td>34.54</td><td>1.84</td></tr><tr><td>CW-L2</td><td>41.06</td><td>48.41</td><td>30.51</td><td>22.23</td></tr></table>",
|
| 934 |
+
"bbox": [
|
| 935 |
+
302,
|
| 936 |
+
101,
|
| 937 |
+
691,
|
| 938 |
+
196
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 9
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Table 2: Top-1 classification accuracy on images perturbed using attacks against ResNet-50 models trained on input-transformed images, and an Inception-v4 model trained using ensemble adversarial. Adversarial images are generated by running attacks against the models, aiming for an average normalized $L _ { 2 }$ -dissimilarity of 0.06. The best defense against each attack is typeset in boldface. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
176,
|
| 947 |
+
207,
|
| 948 |
+
823,
|
| 949 |
+
263
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 9
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "an adversary can incorporate the transformation in its attack. For instance, median filtering likely is a weak remedy because one can backpropagate through the median filter, which is sufficient to perform any of the attacks described in Section 3. A strong input-transformation defense should, therefore, be non-differentiable and randomized, a strategy has been previously shown to be effective (Wang et al., 2016a;b). Two of our top defenses possess both properties: ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
294,
|
| 959 |
+
825,
|
| 960 |
+
364
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 9
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "1. Both total variation minimization and image quilting are difficult to differentiate through. Specifically, total variation minimization involves solving a complex minimization of a function that is inherently random. Image quilting involves a discrete variable that selects the patch from the database, which is a non-differentiable operation, and the graph-cut optimization complicates the use of differentiable approximations (Maddison et al., 2017). 2. Both total variation minimization and image quilting give rise to randomized defenses. Total variation minimization randomly selects the pixels it uses to measure reconstruction error on when creating the denoised image. Image quilting randomly selects one of the $K$ nearest neighbors uniformly at random. The inherent randomness of our defenses makes it difficult to attack the model: it implies the adversary has to find a perturbation that alters the prediction for the entire distribution of images that could be used as input, which is harder than perturbing a single image (Moosavi-Dezfooli et al., 2017). ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
212,
|
| 969 |
+
376,
|
| 970 |
+
825,
|
| 971 |
+
553
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 9
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "Our results with gray-box attacks suggest that randomness is particularly important in developing strong defenses. Therefore, we surmise that total variation minimization, image quilting, and related methods (Dong et al., 2011) are stronger defenses than deterministic denoising procedures such as bit-depth reduction, JPEG compression, or non-local means (Buades, 2005). Defenses based on total variation minimization and image quilting also have an advantage over adversarial-training approaches (Kurakin et al., 2016a): an adversarially trained network is differentiable, which implies that it can be attacked using the methods in Section 3. An additional disadvantage of adversarial training is that it focuses on a particular attack; by contrast, transformation-based defenses generalize well across attack methods because they are model-agnostic. ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
174,
|
| 980 |
+
566,
|
| 981 |
+
825,
|
| 982 |
+
690
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 9
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "While our study focuses exclusively on image classification, we expect similar defenses to be useful in other domains for which successful attacks have been developed, such as semantic segmentation and speech recognition (Cisse et al., 2017a; Zhang et al., 2017). In speech recognition, for example, total variance minimization can be used to remove perturbations from waveforms, and one could develop “spectrogram quilting” techniques that reconstruct a spectrogram by concatenating “spectrogram patches” along the temporal dimension. We leave such extensions to future work. In future work, we also intend to study combinations of our input-transformation defenses with ensemble adversarial training (Tramer et al., 2017), and we intend to investigate new attack methods that are \\` specifically designed to circumvent our input-transformation defenses. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
174,
|
| 991 |
+
698,
|
| 992 |
+
825,
|
| 993 |
+
824
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 9
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 1000 |
+
"text_level": 1,
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
176,
|
| 1003 |
+
849,
|
| 1004 |
+
366,
|
| 1005 |
+
863
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 9
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "We thank Kilian Weinberger, Iasonas Kokkinos, Changhan Wang, and the entire Facebook AI Research team for helpful discussions and code support. Chuan Guo is supported in part by NSF grant IIS-1618134. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
176,
|
| 1014 |
+
882,
|
| 1015 |
+
823,
|
| 1016 |
+
922
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 9
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "REFERENCES ",
|
| 1023 |
+
"text_level": 1,
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
102,
|
| 1027 |
+
287,
|
| 1028 |
+
117
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 10
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Dario Amodei, Rishita Anubhai, Eric Battenberg, Carl Case, Jared Casper, Bryan Catanzaro, Jingdong Chen, Mike Chrzanowski, Adam Coates, Greg Diamos, et al. Deep Speech 2: End-to-end speech recognition in English and Mandarin. CoRR, abs/1512.02595, 2015. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
126,
|
| 1038 |
+
823,
|
| 1039 |
+
169
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 10
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Proc. ECML, pp. 387–402, 2013. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
174,
|
| 1048 |
+
179,
|
| 1049 |
+
821,
|
| 1050 |
+
223
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 10
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End-to-end learning for self-driving cars. CoRR, abs/1604.07316, 2016. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
233,
|
| 1060 |
+
823,
|
| 1061 |
+
276
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 10
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Yuri Boykov, Olga Veksler, and Ramin Zabih. Fast approximate energy minimization via graph cuts. IEEE Transactions on Pattern Analysis and Machine Intelligence, 23(11):1222–1239, 2001. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
173,
|
| 1070 |
+
286,
|
| 1071 |
+
820,
|
| 1072 |
+
315
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 10
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Antoni Buades. A non-local algorithm for image denoising. In Proc. CVPR, pp. 60–65, 2005. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
171,
|
| 1081 |
+
324,
|
| 1082 |
+
789,
|
| 1083 |
+
340
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 10
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Nicholas Carlini and David A. Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, pp. 39–57, 2017. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
173,
|
| 1092 |
+
349,
|
| 1093 |
+
825,
|
| 1094 |
+
380
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 10
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Moustapha Cisse, Yossi Adi, Natalia Neverova, and Joseph Keshet. Houdini: Fooling deep structured prediction models. CoRR, abs/1707.05373, 2017a. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
171,
|
| 1103 |
+
388,
|
| 1104 |
+
823,
|
| 1105 |
+
417
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 10
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. CoRR, abs/1704.08847, 2017b. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
171,
|
| 1114 |
+
428,
|
| 1115 |
+
823,
|
| 1116 |
+
457
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 10
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Weisheng Dong, Lei Zhang, and Guangming Shi. Centralized sparse representation for image restoration. In Proc. ICCV, pp. 1259–1266, 2011. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
171,
|
| 1125 |
+
467,
|
| 1126 |
+
823,
|
| 1127 |
+
496
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 10
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Gintare Karolina Dziugaite, Zoubin Ghahramani, and Daniel Roy. A study of the effect of JPG compression on adversarial images. CoRR, abs/1608.00853, 2016. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
171,
|
| 1136 |
+
505,
|
| 1137 |
+
823,
|
| 1138 |
+
535
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 10
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Alexei Efros and William Freeman. Image quilting for texture synthesis and transfer. In Proc. SIGGRAPH, pp. 341–346, 2001. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
173,
|
| 1147 |
+
544,
|
| 1148 |
+
821,
|
| 1149 |
+
574
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 10
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Analysis of classifiers’ robustness to adversarial perturbations. CoRR, abs/1502.02590, 2015. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
173,
|
| 1158 |
+
583,
|
| 1159 |
+
821,
|
| 1160 |
+
613
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 10
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Alhussein Fawzi, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Robustness of classifiers: From adversarial to random noise. In Proc. NIPS, pp. 1632–1640, 2016. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
173,
|
| 1169 |
+
622,
|
| 1170 |
+
823,
|
| 1171 |
+
651
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 10
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Tom Goldstein and Stanley Osher. The split Bregman method for L1-regularized problems. SIAM Journal of Imaging Science, 2(2):323–343, April 2009. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
173,
|
| 1180 |
+
661,
|
| 1181 |
+
823,
|
| 1182 |
+
690
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 10
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proc. ICLR, 2015. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
173,
|
| 1191 |
+
700,
|
| 1192 |
+
825,
|
| 1193 |
+
729
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 10
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Abigail Graese, Andras Rozsa, and Terrance E. Boult. Assessing threat of adversarial examples on deep neural networks. CoRR, abs/1610.04256, 2016. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
169,
|
| 1202 |
+
738,
|
| 1203 |
+
825,
|
| 1204 |
+
768
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 10
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. CVPR, pp. 770–778, 2016. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
173,
|
| 1213 |
+
779,
|
| 1214 |
+
823,
|
| 1215 |
+
808
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 10
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Gao Huang, Zhuang Liu, Kilian Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. In Proc. CVPR, pp. 2261–2269, 2017. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
171,
|
| 1224 |
+
818,
|
| 1225 |
+
823,
|
| 1226 |
+
847
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 10
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Auguste Kerckhoffs. La cryptographie militaire. Journal des sciences militaires, IX:5–83, 161–191, 1883. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
173,
|
| 1235 |
+
856,
|
| 1236 |
+
821,
|
| 1237 |
+
886
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 10
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
173,
|
| 1246 |
+
895,
|
| 1247 |
+
821,
|
| 1248 |
+
924
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 10
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. CoRR, abs/1611.01236, 2016a. \nAlexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533, 2016b. \nYanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. CoRR, abs/1611.02770, 2016. \nJiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. No need to worry about adversarial examples in object detection in autonomous vehicles. CoRR, abs/1707.03501, 2017. \nChris Maddison, Andriy Mnih, and Yee-Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In Proc. ICLR, 2017. \nMarco Melis, Ambra Demontis, Battista Biggio, Gavin Brown, Giorgio Fumera, and Fabio Roli. Is deep learning safe for robot vision? adversarial examples against the icub humanoid. CoRR, abs/1708.06939, 2017. \nSeyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: A simple and accurate method to fool deep neural networks. In Proc. CVPR, pp. 2574–2582, 2016. \nSeyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In Proc. CVPR, pp. 86–94, 2017. \nNicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In IEEE Symposium on Security and Privacy, pp. 582–597, 2016. \nLeonid Rudin, Stanley Osher, and Emad Fatemi. Nonlinear total variation based noise removal algorithms. Physica D, 60:259–268, 1992. \nUri Shaham, Yutaro Yamada, and Sahand Negahban. Understanding adversarial training: Increasing local stability of neural nets through robust optimization. CoRR, abs/1511.05432, 2015. \nChristian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In In Proc. ICLR, 2014. \nChristian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proc. CVPR, pp. 2818–2826, 2016. \nChristian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander Alemi. Inception-v4, InceptionResNet and the impact of residual connections on learning. In Proc. AAAI, pp. 4278–4284, 2017. \nFlorian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick D. McDaniel. Ensemble \\` adversarial training: Attacks and defenses. CoRR, abs/1705.07204, 2017. \nQinglong Wang, Wenbo Guo, Kaixuan Zhang, Alexander G. Ororbia II, Xinyu Xing, C. Lee Giles, and Xue Liu. Adversary resistant deep neural networks with an application to malware detection. CoRR, abs/1610.01239, 2016a. \nQinglong Wang, Wenbo Guo, Kaixuan Zhang, Alexander G. Ororbia II, Xinyu Xing, C. Lee Giles, and Xue Liu. Learning adversary-resistant deep neural networks. CoRR, abs/1612.01401, 2016b. \nWeilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. CoRR, abs/1704.01155, 2017. \nGuoming Zhang, Chen Yan, Xiaoyu Ji, Taimin Zhang, Tianchen Zhang, and Wenyuan Xu. Dolphinatack: Inaudible voice commands. CoRR, abs/1708.09537, 2017. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
171,
|
| 1257 |
+
42,
|
| 1258 |
+
828,
|
| 1259 |
+
859
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 11
|
| 1262 |
+
}
|
| 1263 |
+
]
|
parse/train/SyJ7ClWCb/SyJ7ClWCb_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SyJ7ClWCb/SyJ7ClWCb_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eqBwg3AcIAK/eqBwg3AcIAK.md
ADDED
|
@@ -0,0 +1,560 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OFF-DYNAMICS REINFORCEMENT LEARNING: TRAINING FOR TRANSFER WITH DOMAIN CLASSIFIERS
|
| 2 |
+
|
| 3 |
+
Benjamin Eysenbach∗ CMU, Google Brain beysenba@cs.cmu.edu
|
| 4 |
+
|
| 5 |
+
Shreyas Chaudhari∗
|
| 6 |
+
CMU
|
| 7 |
+
shreyaschaudhari@cmu.edu
|
| 8 |
+
|
| 9 |
+
Swapnil Asawa∗ University of Pittsburgh swa12@pitt.edu
|
| 10 |
+
|
| 11 |
+
Sergey Levine UC Berkeley, Google Brain
|
| 12 |
+
|
| 13 |
+
# Ruslan Salakhutinov CMU
|
| 14 |
+
|
| 15 |
+
# ABSTRACT
|
| 16 |
+
|
| 17 |
+
We propose a simple, practical, and intuitive approach for domain adaptation in reinforcement learning. Our approach stems from the idea that the agent’s experience in the source domain should look similar to its experience in the target domain. Building off of a probabilistic view of RL, we achieve this goal by compensating for the difference in dynamics by modifying the reward function. This modified reward function is simple to estimate by learning auxiliary classifiers that distinguish source-domain transitions from target-domain transitions. Intuitively, the agent is penalized for transitions that would indicate that the agent is interacting with the source domain, rather than the target domain. Formally, we prove that applying our method in the source domain is guaranteed to obtain a near-optimal policy for the target domain, provided that the source and target domains satisfy a lightweight assumption. Our approach is applicable to domains with continuous states and actions and does not require learning an explicit model of the dynamics. On discrete and continuous control tasks, we illustrate the mechanics of our approach and demonstrate its scalability to high-dimensional tasks.
|
| 18 |
+
|
| 19 |
+
# 1 INTRODUCTION
|
| 20 |
+
|
| 21 |
+
Reinforcement learning (RL) can automate the acquisition of complex behavioral policies through real-world trial-and-error experimentation. However, many domains where we would like to learn policies are not amenable to such trial-and-error learning, because the errors are too costly: from autonomous driving to flying airplanes to devising medical treatment plans, safety-critical RL problems necessitate some type of transfer learning, where a safer source domain, such as a simulator, is used to train a policy that can then function effectively in a target domain. In this paper, we examine a specific transfer learning scenario that we call domain adaptation, by analogy to domain adaptation problems in computer vision (Csurka, 2017), where the training process in a source domain can be modified so that the resulting policy is effective in a given target domain.
|
| 22 |
+
|
| 23 |
+
RL algorithms today require a large amount of experience in the target domain. However, for many tasks we may have access to a different but structurally similar source domain. While the source domain has different dynamics than the target domain, experience in the source domain is much cheaper to collect. However, transferring policies from one domain to another is challenging because strategies which are effective in the source domain may not be effective in the target domain. For example, aggressive driving may work well on a dry racetrack but fail catastrophically on an icy road.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Our method acquires a policy for the target domain by practicing in the source domain using a (learned) modified reward function.
|
| 27 |
+
|
| 28 |
+
While prior work has studied the domain adaptation of observations in RL (Bousmalis et al., 2018;
|
| 29 |
+
Ganin et al., 2016; Higgins et al., 2017), it ignores the domain adaptation of the dynamics.
|
| 30 |
+
|
| 31 |
+
This paper presents a simple approach for domain adaptation in RL, illustrated in Fig. 1. Our main idea is that the agent’s experience in the source domain should look similar to its experience in the target domain. Building off of a probabilistic view of RL, we formally show that we can achieve this goal by compensating for the difference in dynamics by modifying the reward function. This modified reward function is simple to estimate by learning auxiliary classifiers that distinguish sourcedomain transitions from target-domain transitions. Because our method learns a classifier, rather than a dynamics model, we expect it to handle high-dimensional tasks better than model-based methods, a conjecture supported by experiments on the 111-dimensional Ant task. Unlike prior work based on similar intuition (Koos et al., 2012; Wulfmeier et al., 2017b), a key contribution of our work is a formal guarantee that our method yields a near-optimal policy for the target domain.
|
| 32 |
+
|
| 33 |
+
The main contribution of this work is an algorithm for domain adaptation to dynamics changes in RL, based on the idea of compensating for differences in dynamics by modifying the reward function. We call this algorithm Domain Adaptation with Rewards from Classifiers, or DARC for short. DARC does not estimate transition probabilities, but rather modifies the reward function using a pair of classifiers. We formally analyze the conditions under which our method produces nearoptimal policies for the target domain. On a range of discrete and continuous control tasks, we both illustrate the mechanics of our approach and demonstrate its scalability to higher-dimensional tasks.
|
| 34 |
+
|
| 35 |
+
# 2 RELATED WORK
|
| 36 |
+
|
| 37 |
+
While our work will focus on domain adaptation applied to RL, we start by reviewing more general ideas in domain adaptation, and defer to Kouw & Loog (2019) for a recent review of the field. Two common approaches to domain adaptation are importance weighting and domain-agnostic features. Importance-weighting methods (e.g., (Zadrozny, 2004; Cortes & Mohri, 2014; Lipton et al., 2018)) estimate the likelihood ratio of examples under the target domain versus the source domain, and use this ratio to re-weight examples sampled from the source domain. Similar to prior work on importance weighting (Bickel et al., 2007; Sønderby et al., 2016; Mohamed & Lakshminarayanan, 2016; Uehara et al., 2016), our method will use a classifier to estimate a probability ratio. Since we will need to estimate the density ratio of conditional distributions (transition probabilities), we will learn two classifiers. Importantly, we will use the logarithm of the density ratio to modify the reward function instead of weighting samples by the density ratio, which is often numerically unstable (see, e.g., Schulman et al. (2017, §3)) and led to poor performance in our experiments.
|
| 38 |
+
|
| 39 |
+
Prior methods for applying domain adaptation to RL include approaches based on system identification, domain randomization, and observation adaptation. Perhaps the most established approach, system identification (Ljung, 1999), uses observed data to tune the parameters of a simulator (Feldbaum, 1960; Werbos, 1989; Wittenmark, 1995; Ross & Bagnell, 2012; Tan et al., 2016; Zhu et al., 2017b; Farchy et al., 2013) More recent work has successfully used this strategy to bridge the sim2real gap (Chebotar et al., 2019; Rajeswaran et al., 2016). Closely related is work on online system identification and meta-learning, which directly uses the inferred system parameters to update the policy (Yu et al., 2017; Clavera et al., 2018; Tanaskovic et al., 2013; Sastry & Isidori, 1989). However, these approaches typically require either a model of the environment or a manually-specified distribution over potential test-time dynamics, requirements that our method will lift. Another approach, domain randomization, randomly samples the parameters of the source domain and then finds the best policy for this randomized environment (Sadeghi & Levine, 2016; Tobin et al., 2017; Peng et al., 2018; Cutler et al., 2014). While often effective, this method is sensitive to the choice of which parameters are randomized, and the distributions from which these simulator parameters are sampled. A third approach, observation adaptation, modifies the observations of the source domain to appear similar to those in the target domain (Fernando et al., 2013; Hoffman et al., 2016; Wulfmeier et al., 2017a). While this approach has been successfully applied to video games (Gamrian & Goldberg, 2018) and robot manipulation (Bousmalis et al., 2018), it ignores the fact that the source and target domains may have differing dynamics.
|
| 40 |
+
|
| 41 |
+
Finally, our work is similar to prior work on transfer learning (Taylor & Stone, 2009) and metalearning in RL, but makes less strict assumptions than most prior work. For example, most work on meta-RL (Killian et al., 2017; Duan et al., 2016; Mishra et al., 2017; Rakelly et al., 2019) and some work on transfer learning (Perkins et al., 1999; Tanaka & Yamamura, 2003; Sunmola & Wyatt, 2006) assume that the agent has access to many source tasks, all drawn from the same distribution as the target task. Selfridge et al. (1985); Madden & Howley (2004) assume a manually-specified curriculum of tasks, Ravindran & Barto (2004) assume that the source and target domains have the same dynamics locally, and Sherstov & Stone (2005) assume that the set of actions that are useful in the source domain is the same as the set of actions that will be useful in the target domain. Our method does not require these assumptions, allowing it to successfully learn in settings where these prior works would fail. For example, the assumption of Sherstov & Stone (2005) is violated in our experiments with broken robots: actions which move a joint are useful in the source domain (where the robot is fully-function) but not useful in the target domain (where that joint is disabled). Our method will significantly outperform an importance weighting baseline (Lazaric, 2008). Unlike Vemula et al. (2020), our method does not require learning a dynamics model and is applicable to stochastic environments and those with continuous states and actions. Our algorithm bears a resemblance to that in Wulfmeier et al. (2017b), but a crucial algorithmic difference allows us to prove that our method acquires a near-optimal policy in the target domain, and also leads to improved performance empirically.
|
| 42 |
+
|
| 43 |
+
The theoretical derivation of our method is inspired by prior work which formulates control as a problem of probabilistic inference (e.g., (Toussaint, 2009; Rawlik et al., 2013; Levine et al., 2018)). Algorithms for model-based RL (e.g., (Deisenroth & Rasmussen, 2011; Hafner et al., 2018; Janner et al., 2019)) and off-policy RL (e.g., (Munos et al., 2016; Fujimoto et al., 2018; Dann et al., 2014; Dud´ık et al., 2011) similarly aim to improve the sample efficiency of RL, but do use the source domain to accelerate learning. Our method is applicable to any maximum entropy RL algorithm, including on-policy (Song et al., 2019), off-policy (Abdolmaleki et al., 2018; Haarnoja et al., 2018), and model-based (Janner et al., 2019; Williams et al., 2015) algorithms. We will use the SAC (Haarnoja et al., 2018) in our experiments and compare against model-based baselines.
|
| 44 |
+
|
| 45 |
+
# 3 PRELIMINARIES
|
| 46 |
+
|
| 47 |
+
In this section, we introduce notation and formally define domain adaptation for RL. Our problem setting will consider two MDPs: ${ \mathcal { M } } _ { \mathrm { s o u r c e } }$ represents the source domain (e.g., a practice facility, simulator, or learned approximate model of the target domain) while ${ \mathcal { M } } _ { \mathrm { t a r g e t } }$ represents a the target domain. We assume that the two domains have the same state space $s$ , action space $\mathcal { A }$ , reward function $r$ , and initially state distribution $p _ { 1 } ( s _ { 1 } )$ ; the only difference between the domains is the dynamics, $p _ { \mathrm { s o u r c e } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } )$ and $p _ { \mathrm { t a r g e t } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } )$ . We will learn a Markovian policy $\pi _ { \boldsymbol { \theta } } ( \boldsymbol { a } \mid \boldsymbol { s } )$ , parametrized by $\theta$ . Our objective is to learn a policy $\pi$ that maximizes the expected discounted sum of rewards on $\mathcal { M } _ { \mathrm { t a r g e t } }$ $\mathrm { _ { t } } , \mathbb { E } _ { \pi , \mathcal { M } _ { \mathrm { t a r g e t } } } [ \sum _ { t } \gamma ^ { t } r ( s _ { t } , a _ { t } ) ]$ . We now formally define our problem setting:
|
| 48 |
+
|
| 49 |
+
Definition 1. Domain Adaptation for $\pmb { R L }$ is the problem of using interactions in the source MDP $\mathcal { M } _ { s o u r c e }$ together with a small number of interactions in the target MDP $\mathcal { M } _ { t a r g e t }$ to acquire a policy that achieves high reward in the target MDP, $\mathcal { M } _ { t a r g e t }$ .
|
| 50 |
+
|
| 51 |
+
We will assume every transition with non-zero probability in the target domain will have non-zero probability in the source domain:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
p _ { \mathrm { t a r g e t } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) > 0 \implies p _ { \mathrm { s o u r c e } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) > 0 \qquad \mathrm { f o r ~ a l l ~ } s _ { t } , s _ { t + 1 } \in \mathcal { S } , a _ { t } \in \mathcal { A } .
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
This assumption is common in work on importance sampling (Koller & Friedman, 2009, $\ S 1 2 . 2 . 2 )$ , and the converse need not hold: transitions that are possible in the source domain need not be possible in the target domain. If this assumption did not hold, then the optimal policy for the target domain might involve behaviors that are not possible in the source domain, so it is unclear how one could learn a near-optimal policy by practicing in the source domain.
|
| 58 |
+
|
| 59 |
+
# 4 A VARIATIONAL PERSPECTIVE ON DOMAIN ADAPTATION IN RL
|
| 60 |
+
|
| 61 |
+
The probabilistic inference interpretation of RL (Kappen, 2005; Todorov, 2007; Toussaint, 2009; Ziebart, 2010; Rawlik et al., 2013; Levine, 2018) treats the reward function as defining a desired distribution over trajectories. The agent’s task is to sample from this distribution by picking trajectories with probability proportional to their exponentiated reward. This section will reinterpret this model in the context of domain transfer, showing that domain adaptation of dynamics can be done by modifying the rewards. To apply this model to domain adaptation, define $p ( \tau )$ as the desired distribution over trajectories in the target domain,
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
p ( \tau ) \propto p _ { 1 } ( s _ { 1 } ) \bigg ( \prod _ { t } p _ { \mathrm { t a r g e t } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) \bigg ) \exp \bigg ( \sum _ { t } r ( s _ { t } , a _ { t } ) \bigg ) ,
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
and $q ( \tau )$ as our agent’s distribution over trajectories in the source domain,
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
q ( \tau ) = p _ { 1 } ( s _ { 1 } ) \prod _ { t } p _ { \mathrm { s o u r c e } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) \pi _ { \theta } ( a _ { t } \mid s _ { t } ) .
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
As noted in Section 3, we assume both trajectory distributions have the same initial state distribution. Our aim is to learn a policy whose behavior in the source domain both receives high reward and has high likelihood under the target domain dynamics. We codify this objective by minimizing the reverse KL divergence between these two distributions:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\operatorname* { m i n } _ { \pi ( a \mid s ) } D _ { \mathrm { K L } } ( q \parallel p ) = - \mathbb { E } _ { p _ { \mathrm { s o u r c } } } \bigg [ \sum _ { t } r ( s _ { t } , a _ { t } ) + \mathcal { H } _ { \pi } [ a _ { t } \mid s _ { t } ] + \Delta r ( s _ { t + 1 } , s _ { t } , a _ { t } ) \bigg ] + c ,
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
where
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\Delta r ( s _ { t + 1 } , s _ { t } , a _ { t } ) \triangleq \log p ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) - \log q ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) .
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
The constant $c$ is the partition function of $p ( \tau )$ , which is independent of the policy and dynamics. While $\Delta r$ is defined in terms of transition probabilities, in Sec. 5 we show how to estimate $\Delta r$ by learning a classifier. We therefore call our method domain adaptation with rewards from classifiers (DARC), and will use $\pi _ { \mathrm { D A R C } } ^ { * }$ to refer to the policy that maximizes the objective in Eq. 2.
|
| 86 |
+
|
| 87 |
+
Where the source and target dynamics are equal, the correction term $\Delta r$ is zero and we recover maximum entropy RL (Ziebart, 2010; Todorov, 2007). The reward correction is different from prior work that adds $\log \beta ( a \mid s )$ to the reward to regularize the policy to be close to the behavior policy $\beta$ (e.g., Jaques et al. (2017); Abdolmaleki et al. (2018)). In the case where the source dynamics are not equal to the true dynamics, this objective is not the same as maximum entropy RL on trajectories sampled from the source domain. Instead, this objective suggests a corrective term $\Delta r$ that should be added to the reward function to account for the discrepancy between the source and target dynamics. The correction term, $\Delta r$ , is quite intuitive. If a transition $\left( { { s _ { t } } , { a _ { t } } , { s _ { t + 1 } } } \right)$ has equal probability in the source and target domains, then $\Delta r ( s _ { t } , a _ { t } ) = 0$ so no correction is applied. For transitions that are likely in the source but are unlikely in the target domain, $\Delta r < 0$ , the agent is penalized for “exploiting” inaccuracies or discrepancies in the source domain by taking these transitions. For the example environment in Figure 1, transitions through the center of the environment are blocked in the target domain but not in the source domain. For these transitions, $\Delta r$ would serve as a large penalty, discouraging the agent from taking these transitions and instead learning to navigate around the wall. Appendix A presents additional interpretations of $\Delta r$ in terms of coding theory, mutual information, and a constraint on the discrepancy between the source and target dynamics. Appendix C discusses how prior work on domain agnostic feature learning can be viewed as a special case of our framework.
|
| 88 |
+
|
| 89 |
+
# 4.1 THEORETICAL GUARANTEES
|
| 90 |
+
|
| 91 |
+
We now analyze when maximizing the modified reward $r + \Delta r$ in the source domain yields a nearoptimal policy for the target domain. Our proof relies on the following lightweight assumption:
|
| 92 |
+
|
| 93 |
+
Assumption 1. Let $\begin{array} { r } { \pi ^ { * } = \arg \operatorname* { m a x } _ { \pi } \mathbb { E } _ { p } \left[ \sum r ( s _ { t } , a _ { t } ) \right] } \end{array}$ be the reward-maximizing policy in the target domain. Then the expected reward in the source and target domains differs by at most $2 R _ { m a x } \sqrt { \epsilon / 2 }$ :
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\left| \mathbb { E } _ { p _ { \pi ^ { * } , s o u r c } } \left[ \sum r ( s _ { t } , a _ { t } ) \right] - \mathbb { E } _ { \pi ^ { * } , p _ { t a r g e t } } \left[ \sum r ( s _ { t } , a _ { t } ) \right] \right| \leq 2 R _ { m a x } \sqrt { \epsilon / 2 } .
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
The variable $R _ { \mathrm { m a x } }$ refers to the maximum entropy-regularized return of any trajectory. This assumption says that the optimal policy in the target domain is still a good policy for the source domain, and its expected reward is similar in both domains. We do not require that the opposite be true: the optimal policy in the source domain does not need to receive high reward in the target domain. If there are multiple optimal policies, we only require that this assumption hold for one of them. We now state our main result:
|
| 100 |
+
|
| 101 |
+
1: Input: source MDP ${ \mathcal { M } } _ { \mathrm { s o u r c e } }$ and target $\mathcal { M } _ { \mathrm { t a r g e t } }$ ; ratio $r$ of experience from source vs. target.
|
| 102 |
+
2: Initialize: replay buffers for source and target transitions, $\mathcal { D } _ { \mathrm { s o u r c e } }$ , $\mathcal { D } _ { \mathrm { t a r g e t } }$ ; policy $\pi$ ; parameters
|
| 103 |
+
$\theta = ( \theta _ { \mathrm { S A S } } , \theta _ { \mathrm { S A } } )$ for classifiers $q _ { \theta _ { \mathrm { S A S } } }$ (target $\mid s _ { t } , a _ { t } , s _ { t + 1 } \rangle$ and $q _ { \theta _ { \mathrm { S A S } } }$ (target $\mid s _ { t } , a _ { t } )$ .
|
| 104 |
+
3: for $t = 1 , \cdots$ , num iterations do
|
| 105 |
+
4: ${ \mathcal { D } } _ { \mathrm { s o u r c e } } \gets { \mathcal { D } } _ { \mathrm { s o u r c e } } \cup \operatorname { R O L L O U T } ( \pi , { \mathcal { M } } _ { \mathrm { s o u r c e } } )$ $\triangleright$ Collect source data.
|
| 106 |
+
5: if $t$ mod $r = 0$ then $\triangleright$ Periodically, collect target data.
|
| 107 |
+
6: ${ \mathcal { D } } _ { \mathrm { t a r g e t } } { \mathcal { D } } _ { \mathrm { t a r g e t } } \cup \mathrm { R o L L O U T } ( \pi , { \mathcal { M } } _ { \mathrm { t a r g e t } } )$
|
| 108 |
+
7: $\theta \theta - \eta \nabla _ { \theta } \ell ( \theta )$ $\triangleright$ Update both classifiers.
|
| 109 |
+
8: $\tilde { r } ( s _ { t } , a _ { t } , s _ { t + 1 } ) \gets r ( s _ { t } , a _ { t } ) + \Delta r ( s _ { t } , a _ { t } , s _ { t + 1 } )$ . $\Delta r$ is computed with Eq. 3.
|
| 110 |
+
9: π ← MAXENT RL(π, Dsource, r˜)
|
| 111 |
+
|
| 112 |
+
10: return $\pi$
|
| 113 |
+
|
| 114 |
+
Theorem 4.1. Let $\pi _ { D A R C } ^ { * }$ be the policy that maximizes the modified (entropy-regularized) reward in the source domain, let $\pi ^ { * }$ be the policy that maximizes the (unmodified, entropy-regularized) reward in the target domain, and assume that $\pi ^ { * }$ satisfies Assumption $^ { l }$ . Then the following holds:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\mathbb { E } _ { p _ { u n c t } , \pi _ { \mathrm { A R C } } ^ { \star } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] \geq \mathbb { E } _ { p _ { u n c t } , \pi ^ { \star } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] - 4 R _ { m a x } \sqrt { \epsilon / 2 } .
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
See Appendix B for the proof and definition of $\epsilon$ . This result says that $\pi _ { \mathrm { D A R C } } ^ { * }$ attains near-optimal (entropy-regularized) reward on the target domain. Thus, we can expect that modifying the reward function should allow us to adapt to different dynamics. The next section will present a practical algorithm for acquiring $\pi _ { \mathrm { D A R C } } ^ { * }$ by estimating and effectively maximizing the modified reward in the source domain.
|
| 121 |
+
|
| 122 |
+
# 5 DOMAIN ADAPTATION IN RL WITH A LEARNED REWARD
|
| 123 |
+
|
| 124 |
+
The variational perspective on model-based RL in the previous section suggests that we should modify the reward in the source domain by adding $\Delta r$ . In this section we develop a practical algorithm for off-dynamics RL by showing how $\Delta r$ can be estimated without learning an explicit dynamics model.
|
| 125 |
+
|
| 126 |
+
To estimate $\Delta r$ , we will use a pair of (learned) binary classifiers, which will infer whether transitions came from the source or target domain. The key idea is that the transition probabilities are related to the classifier probabilities via Bayes’ rule:
|
| 127 |
+
|
| 128 |
+

|
| 129 |
+
Figure 2: Block diagram of DARC (Alg. 1)
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
p ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } , s _ { t + 1 } ) = \underbrace { p ( s _ { t + 1 } \mid s _ { t } , a _ { t } , \mathrm { t a r g e t } ) } _ { = p _ { \mathrm { t a r g e t } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) } p ( s _ { t } , a _ { t } \mid \mathrm { t a r g e t } ) p ( \mathrm { t a r g e t } ) / p ( s _ { t } , a _ { t } , s _ { t + 1 } ) .
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
We estimate the term $p ( s _ { t } , a _ { t } \ )$ target) on the RHS via another classifier, $p ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } )$
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
p ( s _ { t } , a _ { t } \mid \mathrm { t a r g e t } ) = \frac { p ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } ) p ( s _ { t } , a _ { t } ) } { p ( \mathrm { t a r g e t } ) } .
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
Substituting these expression into our definition for $\Delta r$ and simplifying, we obtain an estimate for $\Delta r$ that depends solely on the predictions of these two classifiers:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
\begin{array} { r } { \Delta r ( s _ { t } , a _ { t } , s _ { t + 1 } ) = \underbrace { \log p ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } , s _ { t + 1 } ) } _ { \substack { \dots \dots \dots \dots \dots \dots \dots \dots \dots } } - \underbrace { \log p ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } ) } _ { \substack { - - \dots - \dots - \dots - - \dots - - \dots - } } } \\ { \infty \underbrace { \log p ( \mathrm { s o u r c e } \mid s _ { t } , a _ { t } , s _ { t + 1 } ) } _ { \substack { \dots \dots \dots \dots \dots \dots \dots } } + \underbrace { \log p ( \mathrm { s o u r c e } \mid s _ { t } , a _ { t } ) } _ { \substack { - \dots \dots \dots \dots - \dots \dots } } } \end{array}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
The . . . . . . . .orange terms are the difference in logits from the classifier conditioned on $s _ { t } , a _ { t } , s _ { t + 1 }$ , while the blue terms are the difference in logits from the classifier conditioned on just $s _ { t } , a _ { t }$ . Intuitively, $\Delta r$ answers the following question: for the task of predicting whether a transition came from the source or target domain, how much better can you perform after observing $s _ { t + 1 } ?$ We make this connection precise in Appendix A.2 by relating $\Delta r$ to mutual information. Ablation experiments (Fig. 7) confirm that both classifiers are important to the success of our method. The use of transition classifiers makes our method look somewhat similar to adversarial imitation learning (Ho & Ermon, 2016; Fu et al., 2017). While our method is not solving an imitation learning problem (we do not assume access to any expert experience), our method can be interpreted as learning a policy such that the dynamics observed by that policy in the source domain imitate the dynamics of the target domain.
|
| 148 |
+
|
| 149 |
+
Algorithm Summary Our algorithm modifies an existing MaxEnt RL algorithm to additionally learn two classifiers, $q _ { \theta _ { \mathrm { S A S } } }$ (target $\mid s _ { t } , a _ { t } , s _ { t + 1 } \big )$ and $q _ { \theta _ { \mathrm { S A } } } ( \mathrm { t a r g e t } \ | \ s _ { t } , a _ { t } )$ , parametrized by $\theta _ { \mathrm { S A S } }$ and $\theta _ { \mathrm { S A } }$ respectively, to minimize the standard cross-entropy loss.
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
\begin{array} { r l } & { \ell _ { \mathrm { S A S } } ( \theta _ { \mathrm { S A S } } ) \triangleq - \mathbb { E } _ { \mathcal { D } _ { \mathrm { t a g e l } } } \left[ \log q _ { \theta _ { \mathrm { S A S } } } ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } , s _ { t + 1 } ) \right] - \mathbb { E } _ { \mathcal { D } _ { \mathrm { s o u r c } } } \left[ \log q _ { \theta _ { \mathrm { S A } } } ( \mathrm { s o u r c e } \mid s _ { t } , a _ { t } , s _ { t + 1 } ) \right] } \\ & { \quad \ell _ { \mathrm { S A } } ( \theta _ { \mathrm { S A } } ) \triangleq - \mathbb { E } _ { \mathcal { D } _ { \mathrm { t a g e l } } } \left[ \log q _ { \theta _ { \mathrm { S A } } } ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } ) \right] - \mathbb { E } _ { \mathcal { D } _ { \mathrm { s a r c } } } \left[ \log q _ { \theta _ { \mathrm { S A } } } ( \mathrm { s o u r c e } \mid s _ { t } , a _ { t } ) \right] . } \end{array}
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
Our algorithm, Domain Adaptation with Rewards from Classifiers (DARC), is presented in Alg. 1 and illustrated in Fig. 2. To simplify notation, we define $\theta \triangleq ( \theta _ { \mathrm { S A S } } , \theta _ { \mathrm { S A } } )$ and $\ell ( \theta ) \triangleq \ell _ { \mathrm { S A S } } ( \theta _ { \mathrm { S A S } } ) +$ $\ell _ { \mathrm { S A } } ( \theta _ { \mathrm { S A } } )$ . At each iteration, we collect transitions from the source and (less frequently) target domain, storing the transitions in separate replay buffers. We then sample a batch of experience from both buffers to update the classifiers. We use the classifiers to modify the rewards from the source domain, and apply MaxEnt RL to this experience. We use SAC (Haarnoja et al., 2018) as our MaxEnt RL algorithm, but emphasize that DARC is applicable to any MaxEnt RL algorithm (e.g., on-policy, off-policy, and model-based). When training the classifiers, we add Gaussian input noise to prevent overfitting to the small number of target-domain transitions (see Fig. 7 for an ablation).
|
| 156 |
+
|
| 157 |
+
# 6 EXPERIMENTS
|
| 158 |
+
|
| 159 |
+
We start with a didactic experiment to build intuition for the mechanics of our method, and then evaluate on more complex tasks. Our experiments will show that DARC outperforms alternative approaches, such as directly applying RL to the target domain or learning importance weights. We will also show that our method can account for domain shift in the termination condition, and confirm the importance of learning two classifiers.
|
| 160 |
+
|
| 161 |
+
Illustrative example. We start with a simple gridworld example, shown on the right, where we can apply our method without function approximation. The goal is to navigate from the top left to the bottom left. The real environment contains an obstacle (shown in red), which is not present in the source domain. If we simply apply RL on the source domain, we obtain
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
Figure 3: Tabular example of off-dynamics RL
|
| 165 |
+
|
| 166 |
+
a policy that navigates directly to the goal (blue arrows), and will fail when used in the target domain. We then apply our method: we collect trajectories from the source domain and real world to fit the two tabular classifiers. These classifiers give us a modified reward, which we use to learn a policy in the source domain. The modified reward causes our learned policy to navigate around the obstacle, which succeeds in the target environment.
|
| 167 |
+
|
| 168 |
+
Visualizing the reward modification in stochastic domains. In our next experiment, we use an “archery” task to visualize how the modified reward accounts for differences in dynamics. The task, shown in Fig. 4, requires choosing an angle at which to shoot an arrow. The practice range (i.e., the source domain) is outdoors, with wind that usually blows from left to right. The competition range (i.e., the target domain) is indoors with no wind. The reward is the negative distance to the target. We
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 4: Visualizing the modified reward
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 6: DARC compensates for crippled robots and obstacles: We apply DARC to four continuous control tasks: three tasks (broken reacher, half cheetah, and ant) which are crippled in the target domain but not the source domain, and one task (half cheetah obstacle) where the source domain omits the obstacle from the target domain. Note that na¨ıvely ignoring the shift in dynamics (green dashed line) performs quite poorly, while directly learning on the crippled robot requires an order of magnitude more experience than our method.
|
| 175 |
+
|
| 176 |
+
plot the reward as a function of the angle in both domains in Fig. 4. The optimal strategy for the outdoor range is to compensate for the wind by shooting slightly to the left $\mathopen { } \mathclose \bgroup \left( \theta = - 0 . 8 \aftergroup \egroup \right)$ , while the optimal strategy for the indoor range is to shoot straight ahead $\boldsymbol \theta = 0$ ). We estimate the modified reward function with DARC, and plot the modified reward in the windy outdoor range and indoor range. We aggregate across episodes using $J ( \theta ) = \log \mathbb { E } _ { p ( s ^ { \prime } \mid \theta ) } [ \exp ( r ( s ^ { \prime } ) ) ]$ ; see Appendix E.4 for details. We observe that maximizing the modified reward in the windy range does not yield high reward in the windy range, but does yield a policy that performs well in the indoor range.
|
| 177 |
+
|
| 178 |
+
Scaling to more complex tasks. We now apply DARC to the more complex tasks shown in Fig. 5. We define three tasks by crippling one of the joints of each robot in the target domain, but using the fully-functional robot in the source domain. We use three simulated robots taken from OpenAI Gym (Brockman et al., 2016): 7
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Figure 5: Environments: broken reacher, broken half cheetah, broken ant, and half cheetah obstacle.
|
| 182 |
+
|
| 183 |
+
DOF reacher, half cheetah, and ant. The broken reacher is based on the task described by Vemula et al. (2020). We also include a task where the shift in dynamics is external to the robot, by modifying the cheetah task to reward the agent for running both forward and backwards. It is easier to learn to run backwards, an obstacle in the target domain prevents the agent from running backwards. This “half cheetah obstacle” task does not entirely satisfy the assumption in Eq. 1 because transitions such as bouncing off the obstacle are only possible in the target domain, not the source domain. Nonetheless, the success of our method on this task illustrates that DARC can excel even in settings that do not satisfy the assumption in Eq. 1.
|
| 184 |
+
|
| 185 |
+
We compare our method to eight baselines. RL on Source and RL on Target directly perform RL on the source and target domains, respectively. The Finetuning baseline takes the result of running RL on the source domain, and further finetunes the agent on the target domain. The Importance Weighting baseline performs RL on importance-weighted samples from the source domain; the importance weights are $\exp ( \Delta r )$ . Recall that DARC collects many $( r \ = \ 1 0 )$ ) transitions in the source domain and performs many gradient updates for each single transition collected in the target domain (Alg. 1 Line 5). We therefore compared against a RL on Target $\mathbf { ( 1 0 x ) }$ baseline that likewise performs many $\mathit { r } = 1 0 $ ) gradient updates per transition in the target domain. Next, we compared against two recent model-based RL methods: MBPO (Janner et al., 2019) and PETS (Chua et al., 2018). Finally, we also compared against MATL (Wulfmeier et al., 2017b), which is similar in spirit to our method but uses a different modified reward.
|
| 186 |
+
|
| 187 |
+
We show the results of this experiment in Fig. 6, plotting the reward on the target domain as a function of the number of transitions in the target domain. In this figure, the transparent lines correspond to different random seeds, and the darker lines are the average of these random seeds. On all tasks, the RL on source baseline (shown as a dashed line because it observes no target transitions) performs considerably worse than the optimal policy from RL on the target domain, suggesting that good policies for the source domain are suboptimal for the target domain. Nonetheless, on three of the four tasks our method matches (or even surpasses) the asymptotic performance of doing RL on the target domain, despite never doing RL on experience from the target domain, and despite observing $5 - 1 0 \times$ less experience from the target domain. On the broken reacher and broken half cheetah tasks, finetuning on the target domain performs on par with our method. On the simpler broken reacher task, just doing RL on the target domain with a large number of gradient steps works quite well (we did not tune this parameter for our method). While the model-based baselines (PETS and MBPO) also performed well on for low-dimensional tasks (broken reacher, broken half cheetah), they perform quite poorly on more challenging tasks like broken ant, supporting our intuition that classification is easier than learning a dynamics model in high dimensional tasks. Finally, DARC outperforms MATL on all tasks.
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
Figure 7: Ablation experiments (Left) DARC performs worse when only one classifier is used. (Right) Using input noise to regularize the classifiers boosts performance. Both plots show results for broken reacher; see Appendix D for results on all environments.
|
| 191 |
+
|
| 192 |
+
Ablation Experiments. Our next experiment examines the importance of using two classifiers to estimate $\Delta r$ . We compared our method to an ablation that does not learn the SA classifier, effectively ignoring the blue terms in Eq. 3. As shown in Fig. 7 (left), this ablation performs considerably worse than our method. Intuitively, this makes sense: we might predict that a transition came from the source domain not because the next state had higher likelihood under the source dynamics, but rather because the state or action was visited more frequently in the source domain. The second classifier used in our method corrects for this distribution shift.
|
| 193 |
+
|
| 194 |
+
Next, we examine the importance of input noise regularization in classifiers. As we observe only a handful of transitions from the target domain, we hypothesized that regularization would be important to prevent overfitting. We test this hypothesis in Fig. 7 (right) by training our method on the broken reacher environment with varying amounts of input noise. With no noise or little noise our method performs poorly (likely due to overfitting); too much noise also performs poorly (likely due to underfitting). We used a value of 1 in all our experiments, and did not tune this value. See Appendix D for more plots of both ablation experiments.
|
| 195 |
+
|
| 196 |
+
To gain more intuition for our method, we recorded the reward correction $\Delta r$ throughout training on the broken reacher environment. In this experiment, we ran RL on the source domain for $1 0 0 \mathrm { k }$ steps before switching to our method. Said another way, we ignored $\Delta r$ for the first $1 0 0 \mathrm { k }$ steps of training. As shown in Fig. 8, $\Delta r$ steadily decreases during these first 100k steps, suggesting that the agent is learning a strategy that takes transitions where the source domain and target domain have different dynamics: the agent is making use of its broken joint. After $1 0 0 \mathrm { k }$ steps, when we maximize the combination of task reward and $\Delta r$ , we observe that $\Delta r$ increases, so the agent’s transitions in the source domain are increasingly consistent with target domain dynamics. After around 1e6
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
Figure 8: Without the reward correction, the agent takes transitions where the source domain and target domains are dissimilar; after adding the reward correction, the agent’s transitions in the source domain are increasingly likely under the target domain.
|
| 200 |
+
|
| 201 |
+
training steps $\Delta r$ is zero: the agent has learned a strategy that uses transitions that are indistinguishable between the source and target domains.
|
| 202 |
+
|
| 203 |
+
Safety emerges from domain adaptation to the termination condition. In many safety-critical applications, the real-world and simulator have different safeguards, which kick in to stop the agent and terminate the episode. For an agent to effectively transfer from the simulator to the real world, it cannot rely on safeguards which are present in one domain but not the other. Since this termination condition is part of the dynamics (White, 2017), we can readily apply DARC to this setting.
|
| 204 |
+
|
| 205 |
+
We use the humanoid shown in Fig. 9 for this experiment and set the task reward to 0. In the source domain episodes have a fixed length of 300 steps; in the target domain the episode terminates when the robot falls. The scenario mimics the real-world setting where robots have freedom to practice in a safe, cushioned, practice facility, but are preemptively stopped when they try to take unsafe actions in the real world. Our aim is for the agent to learn to avoid unsafe transitions in the source domain
|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
Figure 9: Our method accounts for domain shift in the termination condition, causing the agent to avoid transitions that cause termination in the target domain.
|
| 209 |
+
|
| 210 |
+
that would result in episode termination in the target domain. As shown in Fig. 9, our method learns to remain standing for nearly the entire episode. As expected, baselines that maximize the zero reward on the source and target domains fall immediately. While DARC was not designed as a method for safe RL (Tamar et al., 2013; Achiam et al., 2017; Eysenbach et al., 2017; Berkenkamp et al., 2017), this experiment suggests that safety may emerge automatically from DARC, without any manual reward function design.
|
| 211 |
+
|
| 212 |
+
Comparison with Prior Transfer Learning Methods. We are not the first work that modifies the reward function to perform transfer in RL (Koos et al., 2012), nor the first work to learn how to modify the reward function (Wulfmeier et al., 2017a). However, these prior works lack theoretical justification. In contrast, our approach maximizes a welldefined variational objective and our analysis guarantees that agents learned with our method will achieve similar rewards in the source and target domains. Our formal guarantees (Sec. 4)
|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
Figure 10: Comparison with MATL
|
| 216 |
+
|
| 217 |
+
do not apply to MATL (Wulfmeier et al., 2017b) because their classifier is not conditioned on the action. Indeed, our results on the four tasks in Fig. 6 indicate that DARC ourperforms MATL on all tasks. To highlight this difference, we compared DARC and MATL on a gridworld (right), where the source and target domains differed by assigning opposite effects to the “up” and “down” in the purple state in the source and target domains. We collected data from a uniform random policy, so the marginal distribution $p ( s _ { t + 1 } \mid s _ { t } )$ was the same in the source and target domains, even though the dynamics $p ( s _ { t + 1 } \mid s _ { t } , { \dot { a } } _ { t } )$ where different. In this domain, MATL fails to recognize that the source and target domains are different. DARC succeeds in this task for $80 \%$ of trials while MATL succeeds for $0 \%$ of trials. We conclude that the conditioning on the action, as suggested by our analysis, is especially important when using experience collected from stochastic policies.
|
| 218 |
+
|
| 219 |
+
# 7 DISCUSSION
|
| 220 |
+
|
| 221 |
+
In this paper, we proposed a simple, practical, and intuitive approach for domain adaptation to changing dynamics in RL. We motivate this method from a novel variational perspective on domain adaptation in RL, which suggests that we can compensate for differences in dynamics via the reward function. Moreover, we formally prove that, subject to a lightweight assumption, our method is guaranteed to yield a near-optimal policy for the target domain. Experiments on a range of control tasks show that our method can leverage the source domain to learn policies that will work well in the target domain, despite observing only a handful of transitions from the target domain.
|
| 222 |
+
|
| 223 |
+
Limitations The main limitation of our method is that the source dynamics must be sufficiently stochastic, an assumption that can usually be satisfied by adding noise to the dynamics, or ensembling a collection of sources. Empirically, we found that our method worked best on tasks that could be completed in many ways in the source domain, but some of these strategies were not compatible with the target dynamics. The main takeaway of this work is that inaccuracies in dynamics can be compensated for via the reward function. In future work we aim to use the variation perspective on domain adaptation (Sec. 4) to learn the dynamics for the source domain.
|
| 224 |
+
|
| 225 |
+
Acknowledgements. We thank Anirudh Vemula for early discussions; we thank Karol Hausman, Vincent Vanhoucke and anonymous reviews for feedback on drafts of this work. We thank Barry Moore for providing containers with MuJoCo and Dr. Paul Munro granting access to compute at CRC. This work is supported by the Fannie and John Hertz Foundation, University of Pittsburgh Center for Research Computing (CRC), NSF (DGE1745016, IIS1763562), ONR (N000141812861), and US Army. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
|
| 226 |
+
|
| 227 |
+
Contributions. BE proposed the idea of using rewards to correct for dynamics, designed and ran many of the experiments in the paper, and wrote much of the paper. SA did the initial literature review, wrote and designed some of the DARC experiments and environments, developed visualizations of the modified reward function, and ran the MBPO experiments. SC designed some of the initial environments, helped with the implementation of DARC, and ran the PETS experiments. RS and SL provided guidance throughout the project, and contributed to the structure and writing of the paper.
|
| 228 |
+
|
| 229 |
+
# REFERENCES
|
| 230 |
+
|
| 231 |
+
Abbas Abdolmaleki, Jost Tobias Springenberg, Yuval Tassa, Remi Munos, Nicolas Heess, and Martin Riedmiller. Maximum a posteriori policy optimisation. arXiv preprint arXiv:1806.06920, 2018.
|
| 232 |
+
|
| 233 |
+
Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained policy optimization. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 22–31. JMLR. org, 2017.
|
| 234 |
+
|
| 235 |
+
Felix Berkenkamp, Matteo Turchetta, Angela Schoellig, and Andreas Krause. Safe model-based reinforcement learning with stability guarantees. In Advances in neural information processing systems, pp. 908–918, 2017.
|
| 236 |
+
|
| 237 |
+
Steffen Bickel, Michael Bruckner, and Tobias Scheffer. Discriminative learning for differing training and test ¨ distributions. In Proceedings of the 24th international conference on Machine learning, pp. 81–88, 2007.
|
| 238 |
+
|
| 239 |
+
Konstantinos Bousmalis, Alex Irpan, Paul Wohlhart, Yunfei Bai, Matthew Kelcey, Mrinal Kalakrishnan, Laura Downs, Julian Ibarz, Peter Pastor, Kurt Konolige, et al. Using simulation and domain adaptation to improve efficiency of deep robotic grasping. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 4243–4250. IEEE, 2018.
|
| 240 |
+
|
| 241 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
|
| 242 |
+
|
| 243 |
+
Yevgen Chebotar, Ankur Handa, Viktor Makoviychuk, Miles Macklin, Jan Issac, Nathan Ratliff, and Dieter Fox. Closing the sim-to-real loop: Adapting simulation randomization with real world experience. In 2019 International Conference on Robotics and Automation (ICRA), pp. 8973–8979. IEEE, 2019.
|
| 244 |
+
|
| 245 |
+
Kurtland Chua, Roberto Calandra, Rowan McAllister, and Sergey Levine. Deep reinforcement learning in a handful of trials using probabilistic dynamics models. In Advances in Neural Information Processing Systems, pp. 4754–4765, 2018.
|
| 246 |
+
|
| 247 |
+
Ignasi Clavera, Anusha Nagabandi, Ronald S Fearing, Pieter Abbeel, Sergey Levine, and Chelsea Finn. Learning to adapt: Meta-learning for model-based control. arXiv preprint arXiv:1803.11347, 3, 2018.
|
| 248 |
+
|
| 249 |
+
Corinna Cortes and Mehryar Mohri. Domain adaptation and sample bias correction theory and algorithm for regression. Theoretical Computer Science, 519:103–126, 2014.
|
| 250 |
+
|
| 251 |
+
Gabriela Csurka. Domain adaptation for visual applications: A comprehensive survey. arXiv preprint arXiv:1702.05374, 2017.
|
| 252 |
+
|
| 253 |
+
Mark Cutler, Thomas J Walsh, and Jonathan P How. Reinforcement learning with multi-fidelity simulators. In 2014 IEEE International Conference on Robotics and Automation (ICRA), pp. 3888–3895. IEEE, 2014.
|
| 254 |
+
|
| 255 |
+
Christoph Dann, Gerhard Neumann, Jan Peters, et al. Policy evaluation with temporal differences: A survey and comparison. Journal of Machine Learning Research, 15:809–883, 2014.
|
| 256 |
+
|
| 257 |
+
Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on machine learning (ICML-11), pp. 465–472, 2011.
|
| 258 |
+
|
| 259 |
+
Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. Rlˆ2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016.
|
| 260 |
+
|
| 261 |
+
Miroslav Dud´ık, John Langford, and Lihong Li. Doubly robust policy evaluation and learning. arXiv preprint arXiv:1103.4601, 2011.
|
| 262 |
+
|
| 263 |
+
Benjamin Eysenbach, Shixiang Gu, Julian Ibarz, and Sergey Levine. Leave no trace: Learning to reset for safe and autonomous reinforcement learning. arXiv preprint arXiv:1711.06782, 2017.
|
| 264 |
+
|
| 265 |
+
Alon Farchy, Samuel Barrett, Patrick MacAlpine, and Peter Stone. Humanoid robots learning to walk faster: From the real world to simulation and back. In Proceedings of the 2013 international conference on Autonomous agents and multi-agent systems, pp. 39–46, 2013.
|
| 266 |
+
|
| 267 |
+
AA Feldbaum. Dual control theory. i. Avtomatika i Telemekhanika, 21(9):1240–1249, 1960.
|
| 268 |
+
|
| 269 |
+
Basura Fernando, Amaury Habrard, Marc Sebban, and Tinne Tuytelaars. Unsupervised visual domain adaptation using subspace alignment. In Proceedings of the IEEE international conference on computer vision, pp. 2960–2967, 2013.
|
| 270 |
+
|
| 271 |
+
Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248, 2017.
|
| 272 |
+
|
| 273 |
+
Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. arXiv preprint arXiv:1812.02900, 2018.
|
| 274 |
+
|
| 275 |
+
Shani Gamrian and Yoav Goldberg. Transfer learning for related reinforcement learning tasks via image-toimage translation. arXiv preprint arXiv:1806.07377, 2018.
|
| 276 |
+
|
| 277 |
+
Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016.
|
| 278 |
+
|
| 279 |
+
Sergio Guadarrama, Anoop Korattikara, Oscar Ramirez, Pablo Castro, Ethan Holly, Sam Fishman, Ke Wang, Ekaterina Gonina, Chris Harris, Vincent Vanhoucke, et al. Tf-agents: A library for reinforcement learning in tensorflow, 2018.
|
| 280 |
+
|
| 281 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018.
|
| 282 |
+
|
| 283 |
+
Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. arXiv preprint arXiv:1811.04551, 2018.
|
| 284 |
+
|
| 285 |
+
Irina Higgins, Arka Pal, Andrei Rusu, Loic Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. Darla: Improving zero-shot transfer in reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1480–1490. JMLR. org, 2017.
|
| 286 |
+
|
| 287 |
+
Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in neural information processing systems, pp. 4565–4573, 2016.
|
| 288 |
+
|
| 289 |
+
Judy Hoffman, Dequan Wang, Fisher Yu, and Trevor Darrell. Fcns in the wild: Pixel-level adversarial and constraint-based adaptation. arXiv preprint arXiv:1612.02649, 2016.
|
| 290 |
+
|
| 291 |
+
Michael Janner, Justin Fu, Marvin Zhang, and Sergey Levine. When to trust your model: Model-based policy optimization. In Advances in Neural Information Processing Systems, pp. 12498–12509, 2019.
|
| 292 |
+
|
| 293 |
+
Natasha Jaques, Shixiang Gu, Dzmitry Bahdanau, Jose Miguel Hern ´ andez-Lobato, Richard E Turner, and ´ Douglas Eck. Sequence tutor: Conservative fine-tuning of sequence generation models with kl-control. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1645–1654. JMLR. org, 2017.
|
| 294 |
+
|
| 295 |
+
Hilbert J Kappen. Path integrals and symmetry breaking for optimal control theory. Journal of statistical mechanics: theory and experiment, 2005(11):P11011, 2005.
|
| 296 |
+
|
| 297 |
+
Taylor W Killian, Samuel Daulton, George Konidaris, and Finale Doshi-Velez. Robust and efficient transfer learning with hidden parameter markov decision processes. In Advances in neural information processing systems, pp. 6250–6261, 2017.
|
| 298 |
+
|
| 299 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 300 |
+
|
| 301 |
+
Daphne Koller and Nir Friedman. Probabilistic graphical models: principles and techniques. MIT press, 2009.
|
| 302 |
+
|
| 303 |
+
Sylvain Koos, Jean-Baptiste Mouret, and Stephane Doncieux. The transferability approach: Crossing the reality ´ gap in evolutionary robotics. IEEE Transactions on Evolutionary Computation, 17(1):122–145, 2012.
|
| 304 |
+
|
| 305 |
+
Wouter Marco Kouw and Marco Loog. A review of domain adaptation without target labels. IEEE transactions on pattern analysis and machine intelligence, 2019.
|
| 306 |
+
|
| 307 |
+
Alessandro Lazaric. Knowledge transfer in reinforcement learning. PhD thesis, PhD thesis, Politecnico di Milano, 2008.
|
| 308 |
+
|
| 309 |
+
Sergey Levine. Reinforcement learning and control as probabilistic inference: Tutorial and review. arXiv preprint arXiv:1805.00909, 2018.
|
| 310 |
+
|
| 311 |
+
Sergey Levine, Peter Pastor, Alex Krizhevsky, Julian Ibarz, and Deirdre Quillen. Learning hand-eye coordination for robotic grasping with deep learning and large-scale data collection. The International Journal of Robotics Research, 37(4-5):421–436, 2018.
|
| 312 |
+
|
| 313 |
+
Zachary C Lipton, Yu-Xiang Wang, and Alex Smola. Detecting and correcting for label shift with black box predictors. arXiv preprint arXiv:1802.03916, 2018.
|
| 314 |
+
|
| 315 |
+
Lennart Ljung. System identification. Wiley encyclopedia of electrical and electronics engineering, pp. 1–19, 1999.
|
| 316 |
+
|
| 317 |
+
Michael G Madden and Tom Howley. Transfer of experience between reinforcement learning environments with progressive difficulty. Artificial Intelligence Review, 21(3-4):375–398, 2004.
|
| 318 |
+
|
| 319 |
+
Oliver Mihatsch and Ralph Neuneier. Risk-sensitive reinforcement learning. Machine learning, 49(2-3):267– 290, 2002.
|
| 320 |
+
|
| 321 |
+
Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive meta-learner. arXiv preprint arXiv:1707.03141, 2017.
|
| 322 |
+
|
| 323 |
+
Shakir Mohamed and Balaji Lakshminarayanan. Learning in implicit generative models. arXiv preprint arXiv:1610.03483, 2016.
|
| 324 |
+
|
| 325 |
+
Remi Munos, Tom Stepleton, Anna Harutyunyan, and Marc Bellemare. Safe and efficient off-policy reinforce-´ ment learning. In Advances in Neural Information Processing Systems, pp. 1054–1062, 2016.
|
| 326 |
+
|
| 327 |
+
Xue Bin Peng, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Sim-to-real transfer of robotic control with dynamics randomization. In 2018 IEEE international conference on robotics and automation (ICRA), pp. 1–8. IEEE, 2018.
|
| 328 |
+
|
| 329 |
+
Theodore J Perkins, Doina Precup, et al. Using options for knowledge transfer in reinforcement learning. University of Massachusetts, Amherst, MA, USA, Tech. Rep, 1999.
|
| 330 |
+
|
| 331 |
+
Aravind Rajeswaran, Sarvjeet Ghotra, Balaraman Ravindran, and Sergey Levine. Epopt: Learning robust neural network policies using model ensembles. arXiv preprint arXiv:1610.01283, 2016.
|
| 332 |
+
|
| 333 |
+
Kate Rakelly, Aurick Zhou, Chelsea Finn, Sergey Levine, and Deirdre Quillen. Efficient off-policy metareinforcement learning via probabilistic context variables. In International conference on machine learning, pp. 5331–5340, 2019.
|
| 334 |
+
|
| 335 |
+
Balaraman Ravindran and Andrew G Barto. An algebraic approach to abstraction in reinforcement learning. PhD thesis, University of Massachusetts at Amherst, 2004.
|
| 336 |
+
|
| 337 |
+
Konrad Rawlik, Marc Toussaint, and Sethu Vijayakumar. On stochastic optimal control and reinforcement learning by approximate inference. In Twenty-Third International Joint Conference on Artificial Intelligence, 2013.
|
| 338 |
+
|
| 339 |
+
Stephane Ross and J Andrew Bagnell. Agnostic system identification for model-based reinforcement learning. arXiv preprint arXiv:1203.1007, 2012.
|
| 340 |
+
|
| 341 |
+
Fereshteh Sadeghi and Sergey Levine. Cad2rl: Real single-image flight without a single real image. arXiv preprint arXiv:1611.04201, 2016.
|
| 342 |
+
|
| 343 |
+
Sosale Shankara Sastry and Alberto Isidori. Adaptive control of linearizable systems. IEEE Transactions on Automatic Control, 34(11):1123–1131, 1989.
|
| 344 |
+
|
| 345 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 346 |
+
|
| 347 |
+
Oliver G Selfridge, Richard S Sutton, and Andrew G Barto. Training and tracking in robotics. In IJCAI, pp. 670–672, 1985.
|
| 348 |
+
Alexander A Sherstov and Peter Stone. Improving action selection in mdp’s via knowledge transfer. In AAAI, volume 5, pp. 1024–1029, 2005.
|
| 349 |
+
Casper Kaae Sønderby, Jose Caballero, Lucas Theis, Wenzhe Shi, and Ferenc Huszar. Amortised map inference ´ for image super-resolution. arXiv preprint arXiv:1610.04490, 2016.
|
| 350 |
+
H Francis Song, Abbas Abdolmaleki, Jost Tobias Springenberg, Aidan Clark, Hubert Soyer, Jack W Rae, Seb Noury, Arun Ahuja, Siqi Liu, Dhruva Tirumala, et al. V-mpo: On-policy maximum a posteriori policy optimization for discrete and continuous control. arXiv preprint arXiv:1909.12238, 2019.
|
| 351 |
+
Funlade T Sunmola and Jeremy L Wyatt. Model transfer for markov decision tasks via parameter matching. In Proceedings of the 25th Workshop of the UK Planning and Scheduling Special Interest Group (PlanSIG 2006), pp. 246–252, 2006.
|
| 352 |
+
Aviv Tamar, Huan Xu, and Shie Mannor. Scaling up robust mdps by reinforcement learning. arXiv preprint arXiv:1306.6189, 2013.
|
| 353 |
+
Jie Tan, Zhaoming Xie, Byron Boots, and C Karen Liu. Simulation-based design of dynamic controllers for humanoid balancing. In 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 2729–2736. IEEE, 2016.
|
| 354 |
+
Fumihide Tanaka and Masayuki Yamamura. Multitask reinforcement learning on the distribution of mdps. In Proceedings 2003 IEEE International Symposium on Computational Intelligence in Robotics and Automation. Computational Intelligence in Robotics and Automation for the New Millennium (Cat. No. 03EX694), volume 3, pp. 1108–1113. IEEE, 2003.
|
| 355 |
+
Marko Tanaskovic, Lorenzo Fagiano, Roy Smith, Paul Goulart, and Manfred Morari. Adaptive model predictive control for constrained linear systems. In 2013 European Control Conference (ECC), pp. 382–387. IEEE, 2013.
|
| 356 |
+
Matthew E Taylor and Peter Stone. Transfer learning for reinforcement learning domains: A survey. Journal of Machine Learning Research, 10(7), 2009.
|
| 357 |
+
Louis C Tiao, Edwin V Bonilla, and Fabio Ramos. Cycle-consistent adversarial learning as approximate bayesian inference. arXiv preprint arXiv:1806.01771, 2018.
|
| 358 |
+
Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In 2017 IEEE/RSJ international conference on intelligent robots and systems (IROS), pp. 23–30. IEEE, 2017.
|
| 359 |
+
Emanuel Todorov. Linearly-solvable markov decision problems. In Advances in neural information processing systems, pp. 1369–1376, 2007.
|
| 360 |
+
Marc Toussaint. Robot trajectory optimization using approximate inference. In Proceedings of the 26th annual international conference on machine learning, pp. 1049–1056, 2009.
|
| 361 |
+
Masatoshi Uehara, Issei Sato, Masahiro Suzuki, Kotaro Nakayama, and Yutaka Matsuo. Generative adversarial nets from a density ratio estimation perspective. arXiv preprint arXiv:1610.02920, 2016.
|
| 362 |
+
Anirudh Vemula, Yash Oza, J Andrew Bagnell, and Maxim Likhachev. Planning and execution using inaccurate models with provable guarantees. arXiv preprint arXiv:2003.04394, 2020.
|
| 363 |
+
Paul J Werbos. Neural networks for control and system identification. In Proceedings of the 28th IEEE Conference on Decision and Control,, pp. 260–265. IEEE, 1989.
|
| 364 |
+
Martha White. Unifying task specification in reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 3742–3750. JMLR. org, 2017.
|
| 365 |
+
Grady Williams, Andrew Aldrich, and Evangelos Theodorou. Model predictive path integral control using covariance variable importance sampling. arXiv preprint arXiv:1509.01149, 2015.
|
| 366 |
+
Bjorn Wittenmark. Adaptive dual control methods: An overview. In ¨ Adaptive Systems in Control and Signal Processing 1995, pp. 67–72. Elsevier, 1995.
|
| 367 |
+
Markus Wulfmeier, Alex Bewley, and Ingmar Posner. Addressing appearance change in outdoor robotics with adversarial domain adaptation. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 1551–1558. IEEE, 2017a.
|
| 368 |
+
Markus Wulfmeier, Ingmar Posner, and Pieter Abbeel. Mutual alignment transfer learning. arXiv preprint arXiv:1707.07907, 2017b.
|
| 369 |
+
Wenhao Yu, Jie Tan, C Karen Liu, and Greg Turk. Preparing for the unknown: Learning a universal policy with online system identification. arXiv preprint arXiv:1702.02453, 2017.
|
| 370 |
+
Bianca Zadrozny. Learning and evaluating classifiers under sample selection bias. In Proceedings of the twenty-first international conference on Machine learning, pp. 114, 2004.
|
| 371 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pp. 2223–2232, 2017a.
|
| 372 |
+
Shaojun Zhu, Andrew Kimmel, Kostas E Bekris, and Abdeslam Boularias. Fast model identification via physics engines for data-efficient policy search. arXiv preprint arXiv:1710.08893, 2017b.
|
| 373 |
+
Brian D. Ziebart. Modeling Purposeful Adaptive Behavior with the Principle of Maximum Causal Entropy. PhD thesis, Carnegie Mellon University, 2010.
|
| 374 |
+
|
| 375 |
+
# A ADDITIONAL INTERPRETATIONS OF THE REWARD CORRECTION
|
| 376 |
+
|
| 377 |
+
This section presents four additional interpretations of the reward correction, $\Delta r$ .
|
| 378 |
+
|
| 379 |
+
# A.1 CODING THEORY
|
| 380 |
+
|
| 381 |
+
The reward correction $\Delta r$ can also be understood from the perspective of coding theory. Suppose that we use a data-efficient replay buffer that exploits that fact that the next state $s _ { t + 1 }$ is highly redundant with the current state and action, $s _ { t } , a _ { t }$ . If we assume that the replay buffer compression has been optimized to store transitions from the target environment, (negative) $\Delta r$ is the number of additional bits (per transition) needed for our source replay buffer, as compared with our target replay buffer. Thus, an agent which maximizes $\Delta r$ will seek those transitions that can be encoded most efficiently, minimizing the size of the source replay buffer.
|
| 382 |
+
|
| 383 |
+
# A.2 MUTUAL INFORMATION
|
| 384 |
+
|
| 385 |
+
We can gain more intuition in the modified reward by writing the expected value of $\Delta r$ from Eq. 3 in terms of mutual information:
|
| 386 |
+
|
| 387 |
+
$$
|
| 388 |
+
\mathbb { E } [ \Delta r ( s _ { t } , a _ { t } , s _ { t + 1 } ) ] = I ( s _ { t + 1 } ; \mathrm { t a r g e t } \mid s _ { t } , a _ { t } ) - I ( s _ { t + 1 } ; \mathrm { s o u r c e } \mid s _ { t } , a _ { t } ) .
|
| 389 |
+
$$
|
| 390 |
+
|
| 391 |
+
The mutual information $I ( s _ { t + 1 } ; \mathrm { t a r g e t } \mid s _ { t } , a _ { t } )$ reflects how much better you can predict the next state if you know that you are interacting with the target domain, instead of the source domain. Our approach does exactly this, rewarding the agent for taking transitions that provide information about the target domain while penalizing transitions that hint to the agent that it is interacting with a source domain rather than the target domain: we don’t want our are agent to find bugs in the Matrix.
|
| 392 |
+
|
| 393 |
+
# A.3 LOWER BOUND ON THE RISK-SENSITIVE REWARD OBJECTIVE.
|
| 394 |
+
|
| 395 |
+
While we derived DARC by minimizing a reverse KL divergence (Eq. 2), we can also show that DARC maximizes a lower bound on a risk-sensitive reward objective (Mihatsch & Neuneier, 2002):
|
| 396 |
+
|
| 397 |
+
$$
|
| 398 |
+
\begin{array} { r l } & { \log \mathbb { E } _ { s ^ { \prime } \sim p _ { \operatorname* { m a x } } ( s ^ { \prime } | s , a ) , } [ \exp ( \sum _ { t } r ( s _ { t } , a _ { t } ) ) ] } \\ & { \qquad = \log \mathbb { E } _ { s ^ { \prime } \sim p _ { \operatorname* { m a x } } ( s ^ { \prime } | s , a ) , } [ ( \prod _ { t } \frac { p _ { \operatorname* { m a x } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) } { p _ { \operatorname* { s o u r c } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) } ) \exp ( \sum _ { t } r ( s _ { t } , a _ { t } ) ) ] } \\ & { \qquad = \log \mathbb { E } _ { s ^ { \prime } \sim p _ { \operatorname* { m a x } } ( s ^ { \prime } | s , a ) , } [ \exp ( \sum _ { t } r ( s _ { t } , a _ { t } ) + \underbrace { \log p _ { \operatorname* { m a x } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) } _ { \Delta r ( s _ { t } , a _ { t } , s _ { t + 1 } ) } ) \log p _ { \operatorname* { m a x } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) ) ] } \\ & { \qquad = \log \mathbb { E } _ { s ^ { \prime } \sim p _ { \operatorname* { m a x } } ( a | s ) } , [ \exp ( \sum _ { t } r ( s _ { t } , a _ { t } ) + \underbrace { \log p _ { \operatorname* { m a x } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) - \log p _ { \operatorname* { s o u r c } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) } _ { \Delta r ( s _ { t } , a _ { t } , s _ { t + 1 } ) } ) ] } \end{array}
|
| 399 |
+
$$
|
| 400 |
+
|
| 401 |
+
The inequality on the last line is an application of Jensen’s inequality. One interesting question is when it would be preferable to maximize Eq. 4 rather than Eq. 5. While Eq. 5 provides a loser bound on the risk sensitive objective, empirically it may avoid the risk-seeking behavior that can be induced by risk-sensitive objectives. We leave the investigation of this trade-off as future work.
|
| 402 |
+
|
| 403 |
+
# A.4 A CONSTRAINT ON DYNAMICS DISCREPANCY
|
| 404 |
+
|
| 405 |
+
Our method regularizes the policy to visit states where the transition dynamics are similar between the source domain and target domain:
|
| 406 |
+
|
| 407 |
+
$$
|
| 408 |
+
\operatorname* { n a x } _ { \pi } \mathbb { E } _ { \left. a \sim \pi \left( a \mid s \right) \right. } \left[ \sum _ { t } r ( s _ { t } , a _ { t } ) + \underbrace { \log p _ { \mathrm { t a r g e t } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) - \log p _ { \mathrm { s o u r c e } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) } _ { - D _ { \mathrm { K L } } ( p _ { \mathrm { s o u r c e } } \mid \mathcal { P } _ { \mathrm { a r g e t } } ) } + \mathcal { H } _ { \pi } [ a _ { t } \mid s _ { t } ] \right] .
|
| 409 |
+
$$
|
| 410 |
+
|
| 411 |
+
This objective can equivalently be expressed as applying MaxEnt RL to only those policies which avoid exploiting the dynamics discrepancy. More precisely, the KKT conditions guarantee that there exists a positive constant $\epsilon > 0$ such that our objective is equivalent to the following constrained objective:
|
| 412 |
+
|
| 413 |
+
$$
|
| 414 |
+
\operatorname* { m a x } _ { \pi \in \Pi _ { \mathrm { D A R C } } } \mathbb { E } _ { \mathbf { \Phi } _ { s ^ { \prime } \sim p ( { s ^ { \prime } } | s , a ) } } \left[ \sum _ { t } r ( s _ { t } , a _ { t } ) + \mathcal { H } _ { \pi } [ a _ { t } \mid s _ { t } ] \right] ,
|
| 415 |
+
$$
|
| 416 |
+
|
| 417 |
+
where $\Pi _ { \mathrm { D A R C } }$ denotes the set of policies that do not exploit the dynamics discrepancy:
|
| 418 |
+
|
| 419 |
+
$$
|
| 420 |
+
\Pi _ { \mathrm { D A R C } } \triangleq \left\{ \pi \Big | \mathbb { E } _ { \begin{array} { l } { a \sim \pi ( a \mid s ) } \\ { s ^ { \prime } \sim p ( s ^ { \prime } \mid s , a ) } \end{array} } \left[ \sum _ { t } D _ { \mathrm { K L } } \big ( p _ { \mathrm { s o u r c e } } \big ( s _ { t + 1 } \mid s _ { t } , a _ { t } \big ) \parallel p _ { \mathrm { t a r g e t } } \big ( s _ { t + 1 } \mid s _ { t } , a _ { t } \big ) \big ) \right] \le \epsilon \right\} .
|
| 421 |
+
$$
|
| 422 |
+
|
| 423 |
+
One potential benefit of considering our method as the unconstrained objective is that it provides a principled method for increasing or decreasing the weight on the $\Delta r$ term, depending on how much the policy is currently exploiting the dynamics discrepancy. We leave this investigation as future work.
|
| 424 |
+
|
| 425 |
+
# B PROOFS OF THEORETICAL GUARANTEES
|
| 426 |
+
|
| 427 |
+
In this section we present our analysis showing that maximizing the modified reward $r + \Delta r$ in the source domain yields a near-optimal policy for the target domain, subject to Assumption 1. To start, we show that maximizing the modified reward in the source domain is equivalent to maximizing the unmodified reward, subject to the constraint that the policy not exploit the dynamics:
|
| 428 |
+
|
| 429 |
+
Lemma B.1. Let a reward function $r ( s , a )$ , source dynamics $p _ { s o u r c e } ( s ^ { \prime } \mid s , a )$ , and target dynamics $p _ { t a r g e t } ( s ^ { \prime } \mid s , a )$ be given. Then there exists $\epsilon > 0$ such the optimization problem in Eq. 2 is equivalent to
|
| 430 |
+
|
| 431 |
+
$$
|
| 432 |
+
\operatorname* { m a x } _ { \pi \in \Pi _ { n o e x p l o i t } } \mathbb { E } _ { p _ { s o u r c e } , \pi } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } _ { \pi } [ a _ { t } \mid s _ { t } ] \right] ,
|
| 433 |
+
$$
|
| 434 |
+
|
| 435 |
+
where $\Pi _ { n o e x p l o i t }$ denotes the set of policies that do not exploit the dynamics:
|
| 436 |
+
|
| 437 |
+
$$
|
| 438 |
+
\Pi _ { n o e x p l o i t } \triangleq \left\{ \mathbb { E } _ { \begin{array} { c } { a \sim \pi ( a | s ) } \\ { s ^ { \prime } \sim p ( s ^ { \prime } | s , a ) } \end{array} } \left[ \sum _ { t } D _ { \mathrm { K L } } ( p _ { s o u r e } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) \parallel p _ { t a r g e t } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) ) \right] \leq \epsilon \right\} .
|
| 439 |
+
$$
|
| 440 |
+
|
| 441 |
+
The proof is a straightforward application of the KKT conditions. This lemma says that maximizing the modified reward can be equivalently viewed as restricting the set of policies to those that do not exploit the dynamics. Next, we will show that policies that do not exploit the dynamics have an expected (entropy-regularized) reward that is similar in the source and target domains:
|
| 442 |
+
|
| 443 |
+
Lemma B.2. Let policy $\pi \in \Pi _ { n o e x p l o i t }$ be given, and let $R _ { m a x }$ be the maximum (entropy-regularized) return of any trajectory. Then the following inequality holds:
|
| 444 |
+
|
| 445 |
+
$$
|
| 446 |
+
\Big | \mathbb { E } _ { p _ { a v a r e } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } _ { \pi } [ a _ { t } \mid s _ { t } ] \right] - \mathbb { E } _ { p _ { a v a r e } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } _ { \pi } [ a _ { t } \mid s _ { t } ] \right] \Big | \leq 2 R _ { m a x } \sqrt { \epsilon / 2 } .
|
| 447 |
+
$$
|
| 448 |
+
|
| 449 |
+
This Lemma proves that all policies in $\scriptstyle \prod _ { \mathrm { n o } \mathrm { e x p l o i t } }$ satisfy the same condition as the optimal policy (Assumption 1).
|
| 450 |
+
|
| 451 |
+
Proof. To simplify notation, define ${ \tilde { r } } ( s , a ) = r ( s , a ) - \log \pi ( a \mid s )$ . We then apply Holder’s inequality and Pinsker’s inequality to obtain the desired result:
|
| 452 |
+
|
| 453 |
+
$$
|
| 454 |
+
\begin{array} { r l } & { \natural _ { p _ { \operatorname* { s u r c } } } \left[ \sum \tilde { r } ( s _ { t } , a _ { t } ) \right] - \mathbb { E } _ { p _ { \operatorname* { m a x } } } \left[ \sum \tilde { r } ( s _ { t } , a _ { t } ) \right] = \displaystyle \sum _ { \tau } ( p _ { \operatorname* { s o u r c } } ( \tau ) - p _ { \operatorname* { t a r g e t } } ( \tau ) ) \left( \sum \tilde { r } ( s _ { t } , a _ { t } ) \right) } \\ & { \qquad \leq \| \sum \tilde { r } ( s _ { t } , a _ { t } ) \| _ { \infty } \cdot \| p _ { \operatorname* { s u r c } } ( \tau ) - p _ { \operatorname* { t a r g e t } } ( \tau ) \| _ { 1 } } \\ & { \qquad \leq \left( \operatorname* { m a x } \sum r ( s _ { t } , a _ { t } ) \right) \cdot 2 \sqrt { \frac { 1 } { 2 } } D _ { \mathrm { K L } } ( p _ { \operatorname* { s u r c } } ( \tau ) \parallel p _ { \operatorname* { t a r g e t } } ( \tau ) } \\ & { \qquad \leq 2 R _ { \operatorname* { m a x } } \sqrt { \epsilon / 2 } . } \end{array}
|
| 455 |
+
$$
|
| 456 |
+
|
| 457 |
+
We restate our main result:
|
| 458 |
+
|
| 459 |
+
Theorem 4.1 (Repeated from main text). Let $\pi _ { D A R C } ^ { * }$ be the policy that maximizes the modified (entropy-regularized) reward in the source domain, let $\pi ^ { * }$ be the policy that maximizes the (unmodified, entropy-regularized) reward in the target domain, and assume that $\pi ^ { * }$ satisfies Assumption $^ { l }$ . Then $\pi _ { D A R C } ^ { * }$ receives near-optimal (entropy-regularized) reward on the target domain:
|
| 460 |
+
|
| 461 |
+
$$
|
| 462 |
+
\mathbb { E } _ { p _ { t o r e t } , \pi _ { n + R } ^ { * } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] \geq \mathbb { E } _ { p _ { t o r e t } , \pi ^ { * } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] - 4 R _ { m a x } \sqrt { \epsilon / 2 } .
|
| 463 |
+
$$
|
| 464 |
+
|
| 465 |
+
Proof. Assumption 1 guarantees that the optimal policy for the target domain, $\pi ^ { * }$ , lies within $\scriptstyle \prod _ { \mathrm { n o } \mathrm { e x p l o i t } }$ . Among all policies in $\Pi _ { \mathrm { n o } }$ exploit, $\pi _ { \mathrm { D A R C } } ^ { * }$ is (by definition) the one that receives highest reward on the source dynamics, so
|
| 466 |
+
|
| 467 |
+
$$
|
| 468 |
+
\mathbb { E } _ { p _ { \mathrm { s o u r e } } , \pi _ { \mathrm { D A R C } } ^ { * } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \ | \ s _ { t } ] \right] \geq \mathbb { E } _ { p _ { \mathrm { s o u r e } } , \pi ^ { * } } \left[ \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \ | \ s _ { t } ] \right] .
|
| 469 |
+
$$
|
| 470 |
+
|
| 471 |
+
Since the both $\pi _ { \mathrm { D A R C } } ^ { * }$ and $\pi ^ { * }$ lie inside the constraint set, Lemma B.2 dictates that their rewards on the target domain differ by at most $2 R _ { \mathrm { m a x } } \sqrt { \epsilon / 2 }$ from their source domain rewards. In the worst case, the reward for $\pi _ { \mathrm { D A R C } } ^ { * }$ decreases by this amount and the reward for $\pi ^ { * }$ increases by this amount:
|
| 472 |
+
|
| 473 |
+
$$
|
| 474 |
+
\begin{array} { r l } & { \mathbb { E } _ { p _ { \mathrm { s o u r e } } , \pi _ { \mathrm { b a r c } } ^ { * } } \left[ \displaystyle \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] \le \mathbb { E } _ { p _ { \mathrm { u p s t } } , \pi _ { \mathrm { b a r c } } ^ { * } } \left[ \displaystyle \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] + 2 R _ { \operatorname* { m a x } } \sqrt { \epsilon / 2 } } \\ & { \mathbb { E } _ { p _ { \mathrm { s o u r e } } , \pi ^ { * } } \left[ \displaystyle \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] \ge \mathbb { E } _ { p _ { \mathrm { u p s t } } , \pi ^ { * } } \left[ \displaystyle \sum r ( s _ { t } , a _ { t } ) + \mathcal { H } [ a _ { t } \mid s _ { t } ] \right] - 2 R _ { \operatorname* { m a x } } \sqrt { \epsilon / 2 } } \end{array}
|
| 475 |
+
$$
|
| 476 |
+
|
| 477 |
+
Substituting these inequalities on the LHS and RHS of Eq. B and rearranging terms, we obtain the desired result. □
|
| 478 |
+
|
| 479 |
+
# C THE SPECIAL CASE OF AN OBSERVATION MODEL
|
| 480 |
+
|
| 481 |
+
To highlight the relationship between domain adaptation of dynamics versus observations, we now consider a special case. In this subsection, we will assume that the state $s _ { t } \triangleq \left( z _ { t } , o _ { t } \right)$ is a combination of the system latent state $z _ { t }$ (e.g., the poses of all objects in a scene) and an observation $o _ { t }$ (e.g., a camera observation). We will define $q ( o _ { t } \mid z _ { t } )$ and $p ( o _ { t } \mid z _ { t } )$ as the observation models for the source and target domains. In this special case, we can decompose the KL objective (Eq. 2) into three terms:
|
| 482 |
+
|
| 483 |
+
$$
|
| 484 |
+
\begin{array} { r l } & { D _ { \mathrm { K L } } ( q \parallel p ) = - \mathbb { E } _ { q } \Bigg [ \underset { t } { \sum } \underset { \mathrm { ~ \operatorname* { m a x } } \mathrm { E n t } \mathrm { ~ \mathbb { R } } \mathrm { ~ \Omega } \mathrm { o b j e c t i v e } } { \underbrace { r \big ( s _ { t } , a _ { t } \big ) + \mathcal { H } _ { \pi } [ a _ { t } \mid s _ { t } ] } } + \underset { \mathrm { ~ \operatorname* { l o g } ~ \mathbb { p } _ \mathrm { t a r g e t } } \big ( \omega _ { t } \big \backslash \mathrm { ~ \Omega } \mathrm { / ~ } z _ { t } \big ) } { \underbrace { \log p _ { \mathrm { t a r g e t } } \big ( o _ { t } \mid z _ { t } \big ) - \log p _ { \mathrm { s o u r c e } } \big ( o _ { t } \mid z _ { t } \big ) } } } \\ & { \quad \quad \quad \quad + \underset { \mathrm { ~ \operatorname* { l o g } ~ \mathbb { p } _ \mathrm { t a r g e t } } \big ( z _ { t + 1 } \mid z _ { t } , a _ { t } \big ) - \mathrm { ~ \log p _ \mathrm { s o u r c e } } \big ( z _ { t + 1 } \mid z _ { t } , a _ { t } \big ) } { \mathrm { ~ \operatorname* { D y n a m i c s } ~ \mathrm { A d a p u a t i o n } ~ } } \Bigg ] . } \end{array}
|
| 485 |
+
$$
|
| 486 |
+
|
| 487 |
+
Prior methods that perform observation adaptation (Bousmalis et al., 2018; Gamrian & Goldberg, 2018) effectively minimize the observation adaptation term,1 but ignore the effect of dynamics. In contrast, the $\Delta r$ reward correction in our method provides one method to address both dynamics and observations. These approaches could be combined; we leave this as future work.
|
| 488 |
+
|
| 489 |
+

|
| 490 |
+
Figure 11: Importance of using two classifiers: Results of the ablation experiment from Fig. 7 (left) on all environments.
|
| 491 |
+
|
| 492 |
+

|
| 493 |
+
Figure 12: Importance of regularizing the classifiers: Results of the ablation experiment from Fig. 7 (right) on all environments.
|
| 494 |
+
|
| 495 |
+
# D ADDITIONAL EXPERIMENTS
|
| 496 |
+
|
| 497 |
+
Figures 11 and 12 show the results of the ablation experiment from Fig. 7 run on all environments. The results support our conclusion in the main text regarding the importance of using two classifiers and using input noise. Figure 13 is a copy of Fig. 8 from the main text, modified to also show the agent’s reward on the target domain. We observe that the reward does not start increasing until we start using DARC.
|
| 498 |
+
|
| 499 |
+

|
| 500 |
+
Figure 13: Copy of Fig. 8 overlaid with the target domain reward.
|
| 501 |
+
|
| 502 |
+
# E EXPERIMENT DETAILS AND HYPERPARAMETERS
|
| 503 |
+
|
| 504 |
+
Our implementation of DARC is built on top of the implementation of SAC from Guadarrama et al. (2018). Unless otherwise specified, all hyperparameters are taken from Guadarrama et al. (2018). All neural networks (actor, critics, and classifiers) have two hidden layers with 256-units each and ReLU activations. Since we ultimately will use the difference in the predictions of the two classifiers, we use a residual parametrization for the SAS classifier $q ( \mathrm { t a r g e t } \mid s _ { t } , a _ { t } , s _ { t + 1 } )$ . Using $f _ { \mathrm { S A S } } ( s _ { t } , a _ { t } , s _ { t + 1 } )$ , $f _ { \mathrm { S A } } ( s _ { t } , a _ { t } ) ^ { \ast } \in \mathbb { R } ^ { 2 }$ to denote the outputs of the two classifier networks, we compute the classifier predictions as follows:
|
| 505 |
+
|
| 506 |
+
$$
|
| 507 |
+
\begin{array} { r } { q _ { \theta _ { \mathrm { S A } } } ( \cdot { | } s _ { t } , a _ { t } ) = \mathrm { S O F T M A X } \big ( f _ { \mathrm { S A } } ( s _ { t } , a _ { t } ) \big ) \qquad } \\ { q _ { \theta _ { \mathrm { S A S } } } ( \cdot { | } s _ { t } , a _ { t } , s _ { t + 1 } ) = \mathrm { S O F T M A X } \big ( f _ { \mathrm { S A S } } ( s _ { t } , a _ { t } , s _ { t + 1 } ) + f _ { \mathrm { S A } } ( s _ { t } , a _ { t } ) \big ) } \end{array}
|
| 508 |
+
$$
|
| 509 |
+
|
| 510 |
+
For the SAS classifier we propagate gradients back through both networks parameters, $\theta _ { \mathrm { S A S } }$ and $\theta _ { \mathrm { S A } }$ . Both classifiers use Gaussian input noise with $\sigma = 1$ . Optimization of all networks is done with Adam (Kingma & Ba, 2014) with a learning rate of 3e-4 and batch size of 128. Most experiments with DARC collected 1 step in the target domain every 10 steps in the source domain (i.e., $r = 1 0$ ). The one exception is the half cheetah obstacle domain, where we tried increasing $r$ beyond 10 to 30, 100, 300, and 1000. We found a large benefit from increasing $r$ to 30 and 100, but did not run the other experiments long enough to draw any conclusions. Fig. 6 uses $r = 3 0$ for half cheetah obstacle. We did not tune this parameter, and expect that tuning it would result in significant improvements in sample efficiency.
|
| 511 |
+
|
| 512 |
+
We found that DARC was slightly more stable if we warm-started the method by applying RL on the source task without $\Delta r$ for the first $t _ { \mathrm { w a r m u p } }$ iterations. We used $t _ { \mathrm { w a r m u p } } = 1 e 5$ for all tasks except the broken reacher, where we used $t _ { \mathrm { w a r m u p } } \doteq 2 e 5$ . This discrepancy was caused by a typo in an experiment, and subsequent experiments found that DARC is relatively robust to different values of $t _ { \mathrm { w a r m u p } }$ ; we did not tune this parameter.
|
| 513 |
+
|
| 514 |
+
# E.1 BASELINES
|
| 515 |
+
|
| 516 |
+
The RL on Source and RL on Target baselines are implemented identically to our method, with the exception that $\Delta r$ is not added to the reward function. The RL on Target $\mathbf { ( 1 0 x ) }$ is identical to $\mathtt { R L }$ on Target, with the exception that we take 10 gradient steps per environment interaction (instead of 1). The Importance Weighting baseline estimates the importance weights as $p _ { \mathrm { t a r g e t } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) / p _ { \mathrm { s o u r c e } } ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) \approx \exp ( \Delta r )$ . The importance weight is used to weight transitions in the SAC actor and critic losses.
|
| 517 |
+
|
| 518 |
+
PETS (Chua et al., 2018) The PETS baseline is implemented using the default configurations used by (Chua et al., 2018) for the environments evaluated. The broken-half-cheetah environment uses the hyperparameters as used by the half-cheetah environment in (Chua et al., 2018). The broken-ant environment uses the same set of hyperparameters, namely: task hori$\mathrm { z o n } = 1 0 0 0$ , number of training iterations $= 3 0 0$ , number of planning (real) steps per iteration $= 3 0$ , number of particles to be used in particle propagation methods $= 2 0$ . The PETS codebase can be found at https://github.com/kchua/handful-of-trials.
|
| 519 |
+
|
| 520 |
+
MBPO (Janner et al., 2019) We used the authors implementation with the default hyperparameters: https://github.com/JannerM/mbpo. We kept the environment configurations the same as their default unmodified MuJoCo environments, except for the domain and task name. We added our custom environment xmls in mbpo/env/assets/ folder, and their corresponding environment python files in the mbpo/env/ folder. Their static files were added under mbpo/static/. These environments can be registered as gym environments in the init file under mbpo odrl/mbpo/env/ or can be initialized directly in softlearning/environments/adapters/gym adapter.py. We set the time limit to max episode step $s { = } 1 0 0 0$ for the Broken Half Cheetah, Broken Ant and Half Cheetah Obstacle environments and to 100 for the Broken Reacher environment.
|
| 521 |
+
|
| 522 |
+
# E.2 ENVIRONMENTS
|
| 523 |
+
|
| 524 |
+
Broken Reacher This environment uses the 7DOF robot arm from the Pusher environment in OpenAI Gym. The observation space is the position and velocities of all joints and the goal. The reward function is
|
| 525 |
+
|
| 526 |
+
$$
|
| 527 |
+
r ( s , a ) = - \frac { 1 } { 2 } \| s _ { \mathrm { e n d e f f e c t o r } } - s _ { \mathrm { g o a l } } \| _ { 2 } - \frac { 1 } { 1 0 } \| a \| _ { 2 } ^ { 2 } ,
|
| 528 |
+
$$
|
| 529 |
+
|
| 530 |
+
and episodes are 100 steps long. In the target domain the 2nd joint (0-indexed) is broken: zero torque is applied to this joint, regardless of the commanded torque.
|
| 531 |
+
|
| 532 |
+
Broken Half Cheetah This environment is based on the HalfCheetah environment in OpenAI Gym. We modified the observation to include the agent’s global $\mathrm { X }$ coordinate so the agent can infer its relative position to the obstacle. Episodes are 1000 steps long. In the target domain the 0th joint (0-indexed) is broken: zero torque is applied to this joint, regardless of the commanded torque.
|
| 533 |
+
|
| 534 |
+
Broken Ant This environment is based on the Ant environment in OpenAI Gym. We use the standard termination condition and cap the maximum episode length at 1000 steps. In the target domain the 3rd joint (0-indexed) is broken: zero torque is applied to this joint, regardless of the commanded torque.
|
| 535 |
+
|
| 536 |
+
In all the broken joint environments, we choose which joint to break to computing which joint caused the “RL on Source” baseline to perform worst on the target domain, as compared with the “RL on Target” baseline.
|
| 537 |
+
|
| 538 |
+
Half Cheetah Obstacle This environment is based on the HalfCheetah environment in OpenAI Gym. Episodes are 1000 steps long. We modified the standard reward function to use the absolute value in place of the velocity, resulting the following reward function:
|
| 539 |
+
|
| 540 |
+
$$
|
| 541 |
+
r ( s , a ) = s _ { \mathrm { x v e l } } \cdot \Delta t - \| a \| _ { 2 } ^ { 2 } ,
|
| 542 |
+
$$
|
| 543 |
+
|
| 544 |
+
where $s _ { \mathrm { X \ v e l } }$ is the velocity of the agent along the forward-aft axis and $\Delta t = 0 . 0 1$ is the time step of the simulator. In the target domain, we added a wall at $x = - 3 m$ , roughly 3 meters behind the agent.
|
| 545 |
+
|
| 546 |
+
Humanoid Used for the experiment in Fig. 9, we used a modified version of Humanoid from OpenAI Gym. The source domain modified this environment to ignore the default termination condition and instead terminate after exactly 300 time steps. The target domain uses the unmodified environment, which terminates when the agent falls.
|
| 547 |
+
|
| 548 |
+
# E.3 FIGURES
|
| 549 |
+
|
| 550 |
+
Unless otherwise noted, all experiments were run with three random seeds. Figures showing learning curves (Figures 6, 7, 8, 11, and 12) plot the mean over the three random seeds, and also plot the results for each individual random seed with semi-transparent lines.
|
| 551 |
+
|
| 552 |
+
# E.4 ARCHERY EXPERIMENT
|
| 553 |
+
|
| 554 |
+
We used a simple physics model for the archery experiment. The target was located $7 0 \mathrm { m }$ North of the agent, and wind was applied along the East-West axis. The system dynamics:
|
| 555 |
+
|
| 556 |
+
$$
|
| 557 |
+
\begin{array} { r l r } { s _ { t + 1 } = 7 0 \sin ( \theta ) + f / \cos ( \theta ) ^ { 2 } } & { { } } & { \left\{ \begin{array} { l l } { f \sim \mathcal { N } ( \mu = 1 , \sigma = 1 ) } & { { \mathrm { i n ~ t h e ~ s o u r c e ~ d o m a i n } } } \\ { f \sim \mathcal { N } ( \mu = 0 , \sigma = 0 . 3 ) } & { { \mathrm { i n ~ t h e ~ t a r g e t ~ d o m a i n } } } \end{array} \right. } \end{array}
|
| 558 |
+
$$
|
| 559 |
+
|
| 560 |
+
We trained the classifier by sampling $\theta \sim \mathcal { U } [ - 2 , 2 ]$ (measured in degrees) for $1 0 \mathrm { k }$ episodes in the source domain and $1 0 \mathrm { k }$ episodes in the target domain. The classifier was a neural network with 1 hidden layer with 32 hidden units and ReLU activation. We optimized the classifier using the Adam optimizer with a learning rate of 3e-3 and a batch size of 1024. We trained until the validation loss increased for 3 consecutive epochs, which took 16 epochs in our experiment. We generated Fig. 4 by sampling 10k episodes for each value of $\theta$ and aggregating the rewards using $\begin{array} { r } { \dot { \boldsymbol J } ( \theta ) = \log \bar { \mathbb { E } } _ { p ( s ^ { \prime } | \theta ) } \big [ \exp \big ( r ( s ^ { \prime } ) \big ) \big ] } \end{array}$ . We found that aggregating rewards by taking the mean did not yield meaningful results, perhaps because the mean corresponds to a (possibly loose) lower bound on $J$ (see Appendix A.3).
|
parse/train/eqBwg3AcIAK/eqBwg3AcIAK_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eqBwg3AcIAK/eqBwg3AcIAK_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eqBwg3AcIAK/eqBwg3AcIAK_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rklwwo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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PUSHING THE BOUNDS OF DROPOUT
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We show that dropout training is best understood as performing MAP estimation concurrently for a family of conditional models whose objectives are themselves lower bounded by the original dropout objective. This discovery allows us to pick any model from this family after training, which leads to a substantial improvement on regularisation-heavy language modelling. The family includes models that compute a power mean over the sampled dropout masks, and their less stochastic subvariants with tighter and higher lower bounds than the fully stochastic dropout objective. We argue that since the deterministic subvariant’s bound is equal to its objective, and the highest amongst these models, the predominant view of it as a good approximation to MC averaging is misleading. Rather, deterministic dropout is the best available approximation to the true objective.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
The regularisation technique known as dropout underpins numerous state-of-the-art results in deep learning (Hinton et al. 2012; Srivastava et al. 2014), and its application has received much attention in the form of optimisation (Wang & Manning 2013) and attempts at explaining or improving its approximation properties (Baldi & Sadowski 2013; Zolna et al. 2017; Ma et al. 2016). The dominant perspective today views dropout as either an implicit ensemble method (Warde-Farley et al. 2013) or averaging over an approximate Bayesian posterior (Gal & Ghahramani 2016a). Regardless of which view we take, dropout training is carried out the same way, by minimising the expectation of the loss over randomly sampled dropout masks. However, at test time these views naturally lead to different algorithms: the Bayesian approach computes an arithmetic average as it marginalises out the weight uncertainty, while the ensemble approach typically uses the geometric average due to its close relationship to the loss. Collectively they are called MC dropout and neither is clearly better than the other (Warde-Farley et al. 2013). A third way to make predictions is to “turn dropout off”, that is, propagate expected values through the network in a single, deterministic pass. This deterministic (also known as standard) dropout in considered to be an excellent approximation to MC dropout.
|
| 12 |
+
|
| 13 |
+
This situation is unsatisfactory as it does not provide theoretical grounding for dropout, without which the choice of dropout variant remains arbitrary. In this paper, we provide such theoretical foundations. First, we prove the dropout objective to be a common lower bound on the objectives of a family of infinitely many models. This family includes models corresponding to the three aforementioned methods of evaluation: the arithmetic averaging, the geometric averaging, and the deterministic. Thus by maximising the dropout objective we get a single set of parameters and many models that all have the same parameters but differ in how they make predictions. This allows us to train once and perform model selection at validation time by evaluating the different methods of making predictions corresponding to individual models in the family. Second, we turn the conventional perspective on its head by showing that while dropout training performs stochastic regularisation, the trained model is best viewed as deterministic, not as a stochastic model with a deterministic approximation.
|
| 14 |
+
|
| 15 |
+
This paper is structured as follows. In $\ S 2$ , we revisit variational dropout (Gal & Ghahramani 2016a) and demonstrate that, despite common perception, sharing of masks is not necessary, neither in theory nor in practice. Then, by recasting dropout in a simple conditional form, we highlight the counterintuitive role played by the variational posterior. $\ S 3$ contains our main contributions. Here we construct a family of conditional models whose MAP objectives are all lower bounded by the usual dropout objective, and identify a member of this family as best in terms of model fit. In $\ S 4$ , we select the best of this family in terms of generalisation to improve language modelling. Finally, creating a cheap approximation to the bias of this model allows us to get better results from model tuning.
|
| 16 |
+
|
| 17 |
+
# 2 VARIATIONAL DROPOUT
|
| 18 |
+
|
| 19 |
+
Since its original publication (Hinton et al. 2012), dropout had been considered a stochastic regularisation method, implemented as a tweak to the loss function. That was until Gal & Ghahramani (2016a) grounded dropout in much-needed theory. Their subsequent work (Gal & Ghahramani 2016b) focused on RNNs, showing that if dropout masks are shared between time steps, the objective for their proposed variational model is the same as the commonly used dropout objective with an $\ell _ { 2 }$ penalty. Their method became known as variational dropout, not to be confused with Kingma et al. (2015), and is used in state-of-the-art sequential models (Merity et al. 2017; Melis et al. 2017). Before we move on to a more general formulation we revisit it to better understand its critical features.
|
| 20 |
+
|
| 21 |
+
First, we recall the derivation of variational dropout. Consider an RNN that takes input $x$ and maps it to output $y$ and is trained on a set of $N$ data points in paired sets $X , Y$ . A variational lower bound on the log likelihood is obtained as follows:
|
| 22 |
+
|
| 23 |
+
$$
|
| 24 |
+
\begin{array} { l } { \displaystyle \ln p ( \boldsymbol { Y } | \boldsymbol { X } ) = \ln \underset { \omega \sim q ( \omega ) } { \mathbb { E } } \frac { p ( \boldsymbol { Y } | \boldsymbol { X } , \omega ) p ( \omega ) } { q ( \omega ) } } \\ { \displaystyle \geqslant \underset { \omega \sim q ( \omega ) } { \mathbb { E } } \ln p ( \boldsymbol { Y } | \boldsymbol { X } , \omega ) - \mathrm { K L } ( q ( \omega ) | | p ( \omega ) ) } \\ { \displaystyle = \int q ( \omega ) \ln p ( \boldsymbol { Y } | \boldsymbol { X } , \omega ) d \omega - \mathrm { K L } ( q ( \omega ) | | p ( \omega ) ) } \\ { \displaystyle = \sum _ { i = 1 } ^ { N } \int q ( \omega ) \ln p ( y _ { i } | x _ { i } , \omega ) d \omega - \mathrm { K L } ( q ( \omega ) | | p ( \omega ) ) , } \end{array}
|
| 25 |
+
$$
|
| 26 |
+
|
| 27 |
+
where $p ( \boldsymbol { y } | \boldsymbol { x } , \boldsymbol { \omega } )$ is defined by the RNN with weights $\omega$ . Variational Bayesian methods then maximise this lower bound with respect to the variational distribution $q ( \omega )$ . For variational dropout, $q ( \omega )$ takes the form of a mixture of two gaussians with small variances: one with zero mean that represents the dropped out rows of weights, and another with mean $\Theta$ :
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
q ( \omega _ { r } ) = p \mathcal { N } ( \omega _ { r } | 0 , \sigma ^ { 2 } \mathrm { I } ) + ( 1 - p ) \mathcal { N } ( \omega _ { r } | \Theta _ { r } , \sigma ^ { 2 } \mathrm { I } )
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
In the above, $r$ is the index of a row of a weight matrix. Dropping whole rows of weights is equivalent to the more familiar view of dropout over units. The prior over the weights is a zero mean gaussian:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
p ( \omega ) = \mathcal { N } ( \omega | 0 , \sigma _ { p } ^ { 2 } \mathrm { I } )
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
The loss is defined based on Eq. 1. The integrals are approximated using a single sample $\hat { \omega } \sim q ( \omega )$ and the KL term is approximated with weight decay on $\Theta$ :
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\mathcal { L } = - \sum _ { i = 1 } ^ { N } \ln p ( y _ { i } | x _ { i } , \hat { \omega } _ { i } ) + \mathrm { K L } ( q ( \omega ) | | p ( \omega ) )
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
The same dropout mask (and consequently the same $\omega$ ) is employed at every time step. This sharing of masks is considered the defining characteristic of variational dropout, but we note in passing that the theory for the non-shared masks case is very similar and there is little between them in practice with LSTMs (see Appendix A). With this we conclude the recap of variational dropout, and describe our contributions in the rest of the paper.
|
| 46 |
+
|
| 47 |
+
# 2.1 DROPOUT AS A CONDITIONAL MODEL
|
| 48 |
+
|
| 49 |
+
In variational inference the idea is to approximate the intractable and complicated posterior with a simple, parameterised distribution $q$ . Crucially, this approximation affects our inferences and predictions. If we are serious about it being an approximation to the posterior and want to reduce its distortion of the model $p$ , then $q$ can be made more flexible. But making $q$ more flexible in variational dropout can potentially ruin the regularisation effect. So the particular choice of $q$ plays an important, active role: it effectively performs posterior regularisation and acts as an integral part of the model.
|
| 50 |
+
|
| 51 |
+
Coming from another angle, Osband (2016) makes the point that in variational dropout the posterior over weights does not concentrate with more data, unlike for example in Graves (2011), which is unexpected behaviour from a Bayesian model. This conundrum is caused by encoding dropout with a fixed rate mixture of fixed variance components in $q$ , which also necessitates expensive tuning of the dropout rate. Gal et al. (2017) proposes a way to address these shortcomings.
|
| 52 |
+
|
| 53 |
+
To avoid getting bogged down in the issues surrounding the suitability of variational inference and ease interpretation, we construct a straightforward conditional model and lower bound its MAP objective in the same form as the variational objective. Suppose we want to do MAP estimation for the model parameters (the means of the distribution of weights, $\Theta$ ): arg maxΘ $p ( \Theta | X , Y )$ Consider a conditional model $p ( \boldsymbol { Y } | \boldsymbol { X } , \Theta )$ as a crippled generative model with $p ( x _ { i } )$ constant, $x _ { i }$ and $\Theta$ independent. Place a normal prior on the means $\Theta$ and otherwise make the weights $\omega$ conditional on $\Theta$ the same way as they were in the variational posterior $q ( \omega )$ :
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\begin{array} { r l } & { ~ p ( \Theta ) = N ( \Theta | 0 , \sigma _ { p } ^ { 2 } \mathrm { I } ) } \\ & { ~ p ( \omega _ { r } | \Theta ) = p \mathcal N ( \omega _ { r } | 0 , \sigma ^ { 2 } \mathrm { I } ) + ( 1 - p ) \mathcal N ( \omega _ { r } | \Theta _ { r } , \sigma ^ { 2 } \mathrm { I } ) } \\ & { p ( y , \omega | x , \Theta ) = p ( y | x , \omega ) p ( \omega | \Theta ) } \end{array}
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
The log posterior of this model has a similar lower bound to the variational objective (Eq. 1):
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\ln p ( \Theta | X , Y ) \geqslant \sum _ { i = 1 } ^ { N } \int p ( \omega | \Theta ) \ln p ( y _ { i } | x _ { i } , \omega ) d \omega + \ln p ( \Theta ) - C _ { M A P }
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
See Appendix $\textrm { C }$ for detailed derivation. Dropping the normalisation constant $C _ { M A P }$ that doesn’t depend on $\Theta$ , and approximating the above integrals with a single sample, the loss corresponding to the MAP objective becomes:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\mathcal { L } _ { M A P } = - \sum _ { i = 1 } ^ { N } \ln p ( y _ { i } | x _ { i } , \hat { \omega } _ { i } ) - \ln p ( \Theta )
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
The first term of this loss is identical to that of the loss for variational dropout (Eq 2). If the prior on $\Theta$ is a zero mean gaussian, then the second term is equivalent to a weight decay penalty just like the KL term in the variational setup. With the two losses being effectively the same, in the following we focus on MAP estimation for the conditional model to sidestep any questions about whether variational inference makes sense in this case.
|
| 72 |
+
|
| 73 |
+
# 3 THE DROPOUT FAMILY OF MODELS
|
| 74 |
+
|
| 75 |
+
Having developed a conditional model for dropout that leads to the same objective as variational dropout, we now derive a family of models whose objectives are all lower bounded by the usual dropout objective. We draw inspiration from the different evaluation methods employed for dropout:
|
| 76 |
+
|
| 77 |
+
• Deterministic dropout propagates the expectation of each unit through the network in single pass. This is very efficient and is viewed as a good approximation to the next option. • MC dropout mimicks the training procedure, and averages the predicted probabilities over randomly sampled dropout masks. With one forward pass per sample, this can be rather expensive. There is some ambiguity as to what kind of averaging shall be applied: oftentimes the geometric average (GMC) is used, because of its close relationship to the loss, but the arithmetic average (AMC) is also widespread.
|
| 78 |
+
|
| 79 |
+
Our goal in this section is to demonstrate the consequences of optimising a lower bound instead of the true objective. While it is easy to argue in general that objectives of more than one model may share any given lower bound, for dropout a particularly simple explicit construction of such a family of models is possible. As we will see, this allows for post-training model selection based on validation results given a trained set of parameters. In the absence of validation results to guide model selection, inspection of the tightness of the lower bound indicates the deterministic model as the most reasonable choice from the family.
|
| 80 |
+
|
| 81 |
+
# 3.1 GEOMETRIC MODEL
|
| 82 |
+
|
| 83 |
+
First, we investigate whether the geometric or the arithmetic mean is the correct choice for making predictions in the context of classification. Recall the predictive term of the MAP loss in Eq. 5:
|
| 84 |
+
|
| 85 |
+
$\sum \ln p \big ( y _ { i } | x _ { i } , \hat { \omega } _ { i } \big )$ . Notice how with SGD and multiple epochs, for each data point several dropout masks are encountered, and the approximating quantity becomes the geometric mean of the predicted probabilities $p ( y _ { i } | x _ { i } , \omega )$ over the masked weights. For this reason, the posterior predictive distribution $p ( y ^ { * } | x ^ { * } , X , Y )$ is often computed as the renormalised geometric mean. This is in apparent conflict with the conditional model that prescribes the arithmetic mean (integrating $\omega$ out of Eq. 3). However, we can define another model where the conditional distribution is directly defined to be the renormalised geometric mean
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
p ( y | x , \Theta ) = \frac { \exp \bigl ( \mathbb { E } _ { \hat { \omega } \sim p ( \omega | \Theta ) } \ln p ( y | x , \hat { \omega } ) \bigr ) } { Z ( x , \Theta ) } , \quad Z ( x , \Theta ) = \sum _ { c = 1 } ^ { C } \exp \big ( \underbrace { \mathbb { E } } _ { \hat { \omega } \sim p ( \omega | \Theta ) } \ln p ( c | x , \hat { \omega } ) \big )
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
with a slight abuse of notation, due to using the symbol $p$ in $p ( \boldsymbol { y } | \boldsymbol { x } , \Theta )$ although $p ( \boldsymbol { y } | \boldsymbol { x } , \boldsymbol { \Theta } ) \neq$ $\mathbb { E } _ { \omega } p ( \omega | \Theta ) \bar { p } ( y | x , \omega )$ . It can be shown that the arithmetic model’s (Eq. 3) lower bound (Eq. 4) is a lower bound for this renormalised geometric model (Eq. 6), as well. See Appendix $\mathbf { D }$ for the derivation. The answer to the question whether we should use GMC or AMC is that it depends: they correspond to different models, but the dropout objective is a lower bound on the objectives of both models. So one can freely choose between GMC and AMC at evaluation time, doing model selection retrospectively after training.
|
| 92 |
+
|
| 93 |
+
# 3.2 THE POWER MEAN MODEL FAMILY
|
| 94 |
+
|
| 95 |
+
Having two models to choose from, it is natural to ask whether these are just instantiations of a larger class of models. We propose the power mean family of models to extend the set of models to a continuum between the geometric and arithmetic models described in $\ S 3 . 1$ and $\ S 2 . 1$ , respectively, and show that they have the same lower bound. The power mean is defined as:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
M _ { \alpha } ( x _ { 1 } , \ldots , x _ { n } ) = \left( \frac { 1 } { n } \sum _ { i = 1 } ^ { n } x _ { i } ^ { \alpha } \right) ^ { 1 / \alpha }
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
For $\alpha = 1$ we arrive at the arithmetic mean while the natural extension to $\alpha = 0$ is the geometric mean as it is the limit of $M _ { \alpha }$ at $\alpha 0$ , which can be proven with L’Hôpital’s rule. Similarly to the construction of the geometric model, we define the power mean model by directly conditioning on $\Theta$ :
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
p ( y | x , \Theta ) = \frac { \sqrt [ \alpha ] { \mathbb { E } _ { \hat { \omega } \sim p ( \omega | \Theta ) } p ( y | x , \hat { \omega } ) ^ { \alpha } } } { Z ( x , \Theta ) } , \qquad Z ( x , \Theta ) = \sum _ { c = 1 } ^ { C } \sqrt [ \alpha ] { \mathbb { E } _ { \hat { \omega } \sim p ( \omega | \Theta ) } p ( c | x , \hat { \omega } ) ^ { \alpha } }
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
where $Z ( x , \Theta )$ is at most 1 if $\alpha \in ( - \infty , 1 ]$ because $M _ { \alpha }$ is monotonically increasing in $\alpha$ and $Z$ is 1 for $\alpha = 1$ . Here we provide a concise derivation of a lower bound on the log posterior (the full derivation can be found in Appendix E):
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\begin{array} { r l } { \ln p ( \Theta | X , Y ) = \displaystyle \sum _ { i = 1 } ^ { N } \left[ \ln \sqrt { \underbrace { \mathbb { E } } _ { \left\{ \omega > p ( \omega | \Theta ) \right\} } p ( y _ { i } | x _ { i } , \hat { \omega } ) ^ { \alpha } } - \ln ( Z ( x _ { i } , \Theta ) ) \right] + \ln p ( \Theta ) - C _ { M A P } } & { } \\ { \displaystyle \geqslant \displaystyle \sum _ { i = 1 } ^ { N } \ln \sqrt { \underbrace { \mathbb { E } } _ { \left\{ \omega > p ( \omega | \Theta ) \right\} } p ( y _ { i } | x _ { i } , \hat { \omega } ) ^ { \alpha } } + \ln p ( \Theta ) - C _ { M A P } } & { } \\ { \displaystyle \geqslant \displaystyle \sum _ { i = 1 } ^ { N } \frac { 1 } { \alpha } \frac { \mathbb { E } } { \omega \sim p ( \omega | \Theta ) } \ln p ( y _ { i } | x _ { i } , \hat { \omega } ) ^ { \alpha } + \ln p ( \Theta ) - C _ { M A P } } & { } \\ { \displaystyle = \displaystyle \sum _ { i = 1 } ^ { N } \int p ( \omega | \Theta ) \ln p ( y _ { i } | x _ { i } , \omega ) d \omega + \ln p ( \Theta ) - C _ { M A P } } & { } \end{array}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
The first inequality above follows from $Z ( x , \Theta ) \leqslant 1$ for all $x , \Theta$ , while the second is an application of Jensen’s rule assuming $\alpha > 0$ . We arrived at the same lower bound on the objective as we had for the geometric (Eq. 6) and arithmetic models (Eq. 3), thus defining the power mean family with parameter $\alpha \in [ 0 , 1 ]$ of models from which we can choose at evaluation time. For $\alpha > 1$ , the normalising constant $Z$ would be greater than 1, and this would not be a lower bound in general.
|
| 114 |
+
|
| 115 |
+
# 3.3 TIGHTNESS OF THE LOWER BOUND
|
| 116 |
+
|
| 117 |
+
To better understand the quality of fit for models in the power mean family we examine the tightness of their lower bounds. There are two steps involving inequalities in the derivation of the bound: one where the normalisation constant $Z$ is dropped (Eq. 8) and another where the logarithm is moved inside the expectation (Eq. 9). We show that the gaps introduced by these steps can be made arbitrarily small by reducing the variance of $p ( \boldsymbol { y } | \boldsymbol { x } , \boldsymbol { \omega } )$ with respect to $\omega$ .
|
| 118 |
+
|
| 119 |
+
Notice that the Jensen gap with the logarithm function is scale invariant:
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\ln ( \mathbb { E } [ \lambda L ] ) - \mathbb { E } \ln ( \lambda L ) = \ln ( \mathbb { E } L ) - \mathbb { E } \ln ( L )
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
Intuitively, this suggests that $\mathrm { v a r } ( L ) / ( \mathbb { E } L ) ^ { 2 }$ is closely related to the size of the gap. Indeed, Maddison et al. (2017) show that if the first inverse moment of $L$ is finite, then
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\ln ( \mathbb { E } L ) - \mathbb { E } \ln ( L ) ) = { \frac { \operatorname { v a r } ( L ) } { 2 ( \mathbb { E } L ) ^ { 2 } } } + { \mathcal { O } } ( { \sqrt { \mathbb { E } [ ( L - \mathbb { E } L ) ^ { 6 } ] } } )
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
Here we go a bit further and show that if there is a positive lower and upper bound on $L$ , then there are non-trivial lower and upper bounds on its Jensen gap and these are bounds are multiplicative in $\mathrm { v a r } ( L )$ . Let $L$ be a random variable such that $P ( \bar { L } \in ( a , b ) ) = 1$ where $- \infty \leqslant a < b \leqslant \infty$ . Furthermore, let $\varphi ( l )$ be a convex function. Jensen’s inequality states that $E [ \varphi ( L ) ] \geqslant \varphi ( \mathbb { E } [ L ] )$ . Liao & Berg (2017) show that the Jensen gap $E [ \varphi ( L ) ] - \varphi ( \bar { \mathbb { E } } [ L ] )$ can be bounded from below and above:
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\begin{array} { c } { \operatorname* { i n f } \{ h ( l ; \mu ) \mid l \in ( a , b ) \} \operatorname { v a r } ( L ) \leqslant \mathbb { E } [ \varphi ( L ) ] - \varphi ( \mathbb { E } [ L ] ) \leqslant \operatorname* { s u p } \{ h ( l ; \mu ) \mid l \in ( a , b ) \} \operatorname { v a r } ( L ) } \\ { h ( l ; \mu ) = \displaystyle \frac { \varphi ( l ) - \varphi ( \mu ) } { ( l - \mu ) ^ { 2 } } - \frac { \varphi ^ { \prime } ( \mu ) } { l - \mu } } \end{array}
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
where $h ( l ; \mu )$ does not depend on the distribution of $L$ , only on its expected value $\mu$ and on the function $\varphi$ . Substituting $L = p ( c | x , \omega )$ (a random variable on $[ 0 , 1 ]$ due to the randomness of the dropout masks) and $\varphi ( l ) = - \ln ( l )$ , we can see that the gap introduced by Eq. 9 can be made smaller by decreasing the variance of the predictions while maintaining the expected value of $L$ (i.e. the expected probability), assuming that there is a positive lower and upper bound on them (so that the supremum is finite and the infimum is positive, respectively). A similar argument based on $\begin{array} { r } { \sum _ { c = 1 } ^ { C } M _ { \alpha } ( \mathbb { E } _ { \hat { \omega } } p ( c | x , \hat { \omega } ) ) = 1 } \end{array}$ shows that $Z$ approximately monotonically approaches 1 as the variance decreases, so the gap of Eq. 8 can also be reduced.
|
| 138 |
+
|
| 139 |
+
Suppose we pick a base model from the power mean family and have a continuum of subvariants with gradually reduced variance in their predictions but the same expectation. Clearly, for each of them we can derive a lower bound the same way as we did for the power mean family. And as we showed above, the lower bounds will tend to increase as the variance of the predictions decreases (see Fig. 1a). They do not strictly increase, only tend to, due to how the Jensen gap is bounded from above and below and also due to the $\mathcal { O }$ term of Eq. 10. Nonetheless, as we approach determinism the lower bound is forced into increasingly tighter ranges with strictly monotonically increasing bounds around it, thus we can always reduce the variance such that there is no overlap between the ranges and we get a guaranteed improvement on the lower bound. This effect reaches its apex at the deterministic model whose lower bound is both exact and higher than any other model’s. Fig. 1b illustrates that regardless of the choice of base model, reducing the prediction variance will eventually transform it into the same deterministic model.
|
| 140 |
+
|
| 141 |
+
# 3.4 THE EXTENDED POWER MEAN FAMILY: CONTROLLING THE TIGHTNESS OF THE BOUND
|
| 142 |
+
|
| 143 |
+
Intuitively, in the absence of other sources of stochasticity the dropout rate controls the variance of the predictions and if it is low, the lower bound can be pretty snug. However, there are two problems.
|
| 144 |
+
|
| 145 |
+
First, decreasing the dropout rate does not necessarily keep the expectation of the predictions the same. We offer no solution to this bias issue, but refer the reader to previous studies of dropout’s approximation properties such as (Baldi & Sadowski 2013) and our subsequent empirical results.
|
| 146 |
+
|
| 147 |
+
Second, reducing the dropout rate would trade off generalisation for tighter bounds. But doing so only at evaluation time leaves the training time regularisation effect intact, and can be seen as picking another model whose lower bound tends to be higher than that of the base model. Having thus extended the dropout family further, we can now tweak both $\alpha$ and dropout rates at evaluation time.
|
| 148 |
+
|
| 149 |
+
(a) Lower and upper bounds on the lower bound of the model objective as a function of prediction variance for any model in the power mean family.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
(b) With reduced variance, all members of the power mean family (brown shading) converge to the deterministic model while their lower bounds tighten.
|
| 153 |
+
Figure 1: Tightness of lower bounds vs evaluation time prediction variance in the extended dropout family.
|
| 154 |
+
|
| 155 |
+
Table 1: PTB training XEs with various dropout rate multipliers between deterministic and GMC. Observe the monotonic improvement in training fit when reducing the dropout rate at evaluation only.
|
| 156 |
+
|
| 157 |
+
<table><tr><td>×0.0</td><td>×0.1</td><td>×0.2</td><td>x0.3</td><td>×0.4</td><td>×0.5</td><td>x0.6</td><td>x0.7</td><td>×0.8</td><td>×0.9</td><td>×1.0</td></tr><tr><td>2.731</td><td>2.738</td><td>2.746</td><td>2.755</td><td>2.766</td><td>2.777</td><td>2.791</td><td>2.807</td><td>2.826</td><td>2.849</td><td>2.878</td></tr></table>
|
| 158 |
+
|
| 159 |
+
Depending on the severity of the introduced bias compared to the benefits of having a tighter lower bound, the optimal variance may lie anywhere between the deterministic and the base model. We show experimentally that across a number of datasets the benefits of tighter bounds matter more, and observe monotonic improvement in model fit as evaluation time dropout rates are decreased all the way to full determinism. The experiment was conducted as follows. On an already trained model, the dropout rate was multiplied by $\lambda \in [ 0 , 1 ]$ . As Table 1 shows, the model fit as measured by cross entropy (XE) on the training set improves monotonically when reducing $\lambda$ . Results on other datasets and with other power mean models are very similar. We call the union of the reduced dropout rate subvariants of all power mean family models the extended dropout family paramaterised by $\alpha , \lambda$ .
|
| 160 |
+
|
| 161 |
+
Therefore, we can say that dropout training optimises a deterministic model subject to regularisation constraints, and deterministic evaluation, widely believed to approximate MC evaluation, is the closest match to the true objective at our disposal. It is not that dropout evaluation has a deterministic approximation: dropout trains a deterministic model first and foremost and a continuum of stochastic ones to various extents.
|
| 162 |
+
|
| 163 |
+
In summary, we described dropout training as optimising a common lower bound for a family of models. Since this lower bound is the same for all models in the family, we can nominate any of them at evaluation time. However, the tightness of the bound varies, which affects model fit. Having trained a model with dropout, the best fit is achieved by the deterministic model with no dropout. This result isolates the regularisation effects from the biases of the lower bound and the dropout family.
|
| 164 |
+
|
| 165 |
+
# 4 APPLYING DROPOUT
|
| 166 |
+
|
| 167 |
+
We investigate how members of the extended dropout model family perform in terms of generalisation. We follow the experimental setup of Melis et al. (2017) and base our work on their best performing model variant for each dataset. Unless explicitly stated, no retraining was performed and their model weights reused. In the experiments with the tuning objective, we follow their experimental setup, using Google Vizier (Golovin et al. 2017), a black-box hyperparameter tuner based on batched Gaussian Process Bandits.
|
| 168 |
+
|
| 169 |
+
See Table 2 for results of image classification on MNIST, character based language modelling on Enwik8, word based language modelling on PTB and Wikitext-2. On MNIST, deterministic dropout is the best in terms of cross entropy, which matches our theoretical predictions. In contrast, on language modelling arithmetic averaging produces the best results, which necessitates further analysis.
|
| 170 |
+
|
| 171 |
+
Table 2: Validation XEs on some datasets varying the power $\alpha$ and the dropout rate mulitiplier $\lambda$ . Deterministic dropout is not the best evaluation method for the language modelling datasets due to a simple smoothing effect.
|
| 172 |
+
|
| 173 |
+
<table><tr><td></td><td></td><td colspan="3">Geometric (α = 0)</td><td colspan="3">Power α = 0.5</td><td colspan="3">Arithmetic (α = 1)</td></tr><tr><td>Dataset</td><td>DET</td><td>×0.8</td><td>×0.9</td><td>×1.0</td><td>x0.8</td><td>×0.9</td><td>×1.0</td><td>×0.8</td><td>x0.9</td><td>×1.0</td></tr><tr><td>MNIST</td><td>0.070</td><td>0.087</td><td>0.087</td><td>0.088</td><td>0.92</td><td>0.93</td><td>0.93</td><td>0.100</td><td>0.100</td><td>0.100</td></tr><tr><td>Enwik8</td><td>0.886</td><td>0.879</td><td>0.878</td><td>0.881</td><td>0.877</td><td>0.877</td><td>0.877</td><td>0.875</td><td>0.875</td><td>0.875</td></tr><tr><td>PTB</td><td>4.110</td><td>4.090</td><td>4.090</td><td>4.093</td><td>4.072</td><td>4.070</td><td>4.073</td><td>4.061</td><td>4.064</td><td>4.080</td></tr><tr><td>Wikitext-2</td><td>4.236</td><td>4.229</td><td>4.231</td><td>4.235</td><td>4.025</td><td>4.026</td><td>4.208</td><td>4.203</td><td>4.212</td><td>4.228</td></tr></table>
|
| 174 |
+
|
| 175 |
+
Table 3: PTB training and validation XEs for AMC at $\lambda \in \{ 0 , 0 . 8 , 1 \}$ per word frequency. Note how DET dominates AMC on the training set, but AMC is better for rare words in the validation set.
|
| 176 |
+
|
| 177 |
+
<table><tr><td></td><td>num</td><td colspan="3">training</td><td colspan="3">validation</td></tr><tr><td>frequency</td><td>targets</td><td>DET</td><td>×0.8</td><td>AMC</td><td>DET</td><td>×0.8</td><td>AMC</td></tr><tr><td>25000<</td><td>13580</td><td>1.40</td><td>1.50</td><td>1.56</td><td>1.58</td><td>1.64</td><td>1.68</td></tr><tr><td>5000<</td><td>26658</td><td>1.65</td><td>1.75</td><td>1.81</td><td>1.93</td><td>1.98</td><td>2.02</td></tr><tr><td>500<</td><td>44702</td><td>2.19</td><td>2.30</td><td>2.36</td><td>2.58</td><td>2.63</td><td>2.66</td></tr><tr><td><500</td><td>29058</td><td>4.07</td><td>4.19</td><td>4.29</td><td>6.49</td><td>6.39</td><td>6.39</td></tr><tr><td><100</td><td>14222</td><td>4.24</td><td>4.38</td><td>4.49</td><td>7.81</td><td>7.64</td><td>7.61</td></tr><tr><td><20</td><td>5008</td><td>4.00</td><td>4.19</td><td>4.33</td><td>9.20</td><td>9.01</td><td>8.97</td></tr></table>
|
| 178 |
+
|
| 179 |
+
We suspected that the particularly severe form of class imbalance exhibited by the power-law word distribution (Zipf 1935) might play a role. To verify this, we contrasted training and validation XEs on PTB for words grouped by frequency (see Table 3). On the training set, the gap between deterministic dropout and AMC is wider for low frequency words. On the validation set, AMC is worse for frequent words but better for rare words. The $\times 0 . 8$ dropout multiplier just finds a reasonable compromise.
|
| 180 |
+
|
| 181 |
+
# 4.1 SOFTMAX TEMPERATURE
|
| 182 |
+
|
| 183 |
+
The observed effect is consistent with smoothing, thus we posit that the reason MNIST results are worse with AMC is that the marginal distributions of labels in the training and test set are identical by construction and further smoothing is unnecessary. On the other hand, PTB and Wikitext-2 benefit from AMC’s smoothing because the penalty for underestimating low probabilities is harsh, hence the large improvement on rare words. The character based Enwik8 dataset lies somewhere in between: the training and test distributions are better matched and there are no very low probability characters.
|
| 184 |
+
|
| 185 |
+
To test the hypothesis that AMC’s advantage lies in smoothing, we tested how performing smoothing by other means affects the results. In this experiment, on a trained model the temperature of the final softmax was optimised on the validation set and the model was applied with the optimal temperature to the validation and test sets. Our experimental results in Table 4 support the hypotheses that AMC smooths the predicted distribution as increasing the temperature improves DET and GMC considerably but not AMC. In fact, the optimal temperature for AMC with $\lambda = 1$ was slightly lower than 1, which corresponds to sharpening, not smoothing.
|
| 186 |
+
|
| 187 |
+
Table 4: Validation and test perplexities on PTB and Wikitext-2 with various evaluation strategies and default or optimal validation softmax temperatures. Our baseline results correspond to DET at temperature 1. Note that AMC does not benefit from setting the optimal softmax temperature (“opt”), while DET is improved by it almost to the point of matching AMC which supports the smoothing hypothesis.
|
| 188 |
+
|
| 189 |
+
<table><tr><td colspan="4"></td><td colspan="3">Geometric (α = 0)</td><td colspan="3">Power α = 0.5</td><td colspan="3">Arithmetic (α = 1)</td></tr><tr><td colspan="2">Dataset</td><td>Temp</td><td>DET</td><td>×0.8</td><td>×0.9</td><td>×1.0</td><td>×0.8</td><td>×0.9</td><td>×1.0</td><td>×0.8</td><td>×0.9</td><td>×1.0</td></tr><tr><td rowspan="4">Viiapian</td><td rowspan="2">WT-2</td><td>1</td><td>69.1</td><td>68.6</td><td>68.8</td><td>69.1</td><td>67.0</td><td>67.2</td><td>67.2</td><td>66.9</td><td>67.5</td><td>68.6</td></tr><tr><td>opt</td><td>67.4</td><td>67.5</td><td>67.7</td><td>68.0</td><td>67.0</td><td>67.1</td><td>67.2</td><td>66.9</td><td>67.4</td><td>68.1</td></tr><tr><td rowspan="2">PTB</td><td>1</td><td>60.9</td><td>59.6</td><td>59.7</td><td>59.7</td><td>58.1</td><td>57.9</td><td>58.0</td><td>57.3</td><td>57.5</td><td>58.5</td></tr><tr><td>opt</td><td>57.5</td><td>57.5</td><td>57.9</td><td>58.3</td><td>57.1</td><td>57.3</td><td>57.8</td><td>57.1</td><td>57.5</td><td>58.4</td></tr><tr><td rowspan="4">3</td><td rowspan="2">WT-2</td><td>1</td><td>65.9</td><td>65.3</td><td>65.4</td><td>65.6</td><td>63.8</td><td>63.9</td><td>64.2</td><td>63.7</td><td>64.5</td><td>65.5</td></tr><tr><td>opt</td><td>64.5</td><td>64.7</td><td>64.8</td><td>64.9</td><td>63.8</td><td>63.8</td><td>64.2</td><td>63.7</td><td>64.2</td><td>64.9</td></tr><tr><td rowspan="2">PTB</td><td>1</td><td>58.6</td><td>57.3</td><td>57.4</td><td>57.4</td><td>56.0</td><td>55.8</td><td>55.9</td><td>55.3</td><td>55.5</td><td>56.5</td></tr><tr><td>opt</td><td>56.0</td><td>56.0</td><td>56.1</td><td>56.5</td><td>55.7</td><td>55.7</td><td>56.0</td><td>55.3</td><td>55.5</td><td>56.3</td></tr></table>
|
| 190 |
+
|
| 191 |
+
Tuning the evaluation time softmax temperature is similar to label smoothing (Pereyra et al. 2017), the main difference being that our method does not affect training. While this is convenient, for tuning model hyperparameters, ideally we would determine the optimal evaluation parameters $\alpha$ $\lambda$ and the temperature for the calculation of the validation score for each set of hyperparameters tried, but this would be prohibitively expensive. Since deterministic evaluation coupled with the optimal temperature is very close to the best performing AMC model, it serves as a good proxy for the ideal tuning objective. The optimal temperature can be approximately determinined using a linear search on a subset of the validation data which is orders of magnitude faster than MC dropout. In our experiments, hyperparameter tuning with validation scores computed at the optimal softmax temperature did improve results, albeit very slightly (about half a perplexity point). Thus we can conclude that deterministic dropout is already a reasonable proxy for which to optimise.
|
| 192 |
+
|
| 193 |
+
# 4.2 RESULTS
|
| 194 |
+
|
| 195 |
+
We have improved the best test result of Melis et al. (2017) from 58.3 to 55.7 on PTB, and from 65.9 to 63.7 on Wikitext-2 using their model weights, only tuning the evaluation parameters $\alpha , \lambda$ and the softmax temperature on the validation set. By retuning the hyperparameters of the PTB model with optimal temperature deterministic evaluation, we improved to 55.3 on PTB. For lack of resources, we did not retune for Wikitext-2. For comparison, the state of the art in language modelling without resorting to dynamic evaluation or a continuous cache pointer is Mixture of Softmaxes (Yang et al. 2017) with 54.44 and 61.45 on PTB and Wikitext-2, respectively. At present, it is unclear whether the benefits of their approach and ours combine.
|
| 196 |
+
|
| 197 |
+
In summary, we looked at how different models and evaluation methods rank in terms of generalisation. Across a number of tasks and datasets the ranking differed from what was observed on the training set. We found that AMC smooths the distribution of the prediction probabilities and we achieved a similar effect without resorting to expensive sampling simply by adjusting the temperature of the final softmax. Finally, we brought the tuning objective more in line with the improved evaluation by automatically determining the optimal softmax temperature when evaluating on the validation set which further improved results.
|
| 198 |
+
|
| 199 |
+
# 5 IMPLICATIONS
|
| 200 |
+
|
| 201 |
+
The construction of a conditional model family with a common lower bound on their objectives is applicable to other latent variable models with similar structure and inference method. This lower bound admits ambiguity as to what model is being fit to the data, which in turn allows for picking any such model at evaluation time. However, the tightness of the bound and the quality of the fit varies. For dropout, the deterministic model has the best fit even though the training objective is highly stochastic, but this result hinges on the approximation properties of deterministic dropout and will not carry over to other probabilistic models in general. In particular, standard VAEs (Kingma & Welling 2013) with their lower bound being very similar in construction to Eq. 1 cannot quite collapse to a deterministic model else they suffer an infinite KL penalty. Still, the lower bound being looser on the tails of $q$ is related to problem of underestimating posterior uncertainty (Turner & Sahani 2011).
|
| 202 |
+
|
| 203 |
+
In related works, expectation-linear dropout (Ma et al. 2016) and fraternal dropout (Zolna et al. 2017) both try to reduce the “inference gap”: the mismatch between the training objective and deterministic evaluation. The gains reported in those works might be explained by reducing the bias of deterministic evaluation and also by encouraging small variance in the predictions and thus getting tighter bounds. Another recent work, activation regularisation (Merity et al. 2017), could be thought of as a mechanism to reduce the variance of predictions to a similar effect. In the context of language modelling, the connection between noise and smoothing was established by Xie et al. (2017). Our improved understanding further emphasises that connection, and at the same time challenges the way we think about dropout.
|
| 204 |
+
|
| 205 |
+
# REFERENCES
|
| 206 |
+
|
| 207 |
+
Pierre Baldi and Peter J Sadowski. Understanding dropout. In Advances in neural information processing systems, pp. 2814–2822, 2013.
|
| 208 |
+
|
| 209 |
+
Justin Bayer, Christian Osendorfer, Daniela Korhammer, Nutan Chen, Sebastian Urban, and Patrick van der Smagt. On fast dropout and its applicability to recurrent networks. arXiv preprint arXiv:1311.0701, 2013.
|
| 210 |
+
|
| 211 |
+
Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In international conference on machine learning, pp. 1050–1059, 2016a.
|
| 212 |
+
|
| 213 |
+
Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. In Advances in Neural Information Processing Systems, pp. 1019–1027, 2016b.
|
| 214 |
+
|
| 215 |
+
Yarin Gal, Jiri Hron, and Alex Kendall. Concrete dropout. In Advances in Neural Information Processing Systems, pp. 3584–3593, 2017.
|
| 216 |
+
|
| 217 |
+
Daniel Golovin, Benjamin Solnik, Subhodeep Moitra, Greg Kochanski, John Karro, and D Sculley. Google vizier: A service for black-box optimization. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1487–1495. ACM, 2017.
|
| 218 |
+
|
| 219 |
+
Alex Graves. Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pp. 2348–2356, 2011.
|
| 220 |
+
|
| 221 |
+
Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012.
|
| 222 |
+
|
| 223 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 224 |
+
|
| 225 |
+
Diederik P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In Advances in Neural Information Processing Systems, pp. 2575–2583, 2015.
|
| 226 |
+
|
| 227 |
+
JG Liao and Arthur Berg. Sharpening jensen’s inequality. The American Statistician, 2017.
|
| 228 |
+
|
| 229 |
+
Xuezhe Ma, Yingkai Gao, Zhiting Hu, Yaoliang Yu, Yuntian Deng, and Eduard H. Hovy. Dropout with expectation-linear regularization. CoRR, abs/1609.08017, 2016. URL http://arxiv. org/abs/1609.08017.
|
| 230 |
+
|
| 231 |
+
Chris J Maddison, John Lawson, George Tucker, Nicolas Heess, Mohammad Norouzi, Andriy Mnih, Arnaud Doucet, and Yee Teh. Filtering variational objectives. In Advances in Neural Information Processing Systems, pp. 6573–6583, 2017.
|
| 232 |
+
|
| 233 |
+
Gábor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language models. arXiv preprint arXiv:1707.05589, 2017.
|
| 234 |
+
|
| 235 |
+
Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and optimizing lstm language models. arXiv preprint arXiv:1708.02182, 2017.
|
| 236 |
+
|
| 237 |
+
Ian Osband. Risk versus uncertainty in deep learning: Bayes, bootstrap and the dangers of dropout. In NIPS Bayesian Deep Learning Workshop, 2016.
|
| 238 |
+
|
| 239 |
+
Marius Pachitariu and Maneesh Sahani. Regularization and nonlinearities for neural language models: when are they needed? arXiv preprint arXiv:1301.5650, 2013.
|
| 240 |
+
|
| 241 |
+
Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. arXiv preprint arXiv:1701.06548, 2017.
|
| 242 |
+
|
| 243 |
+
Stanislau Semeniuta, Aliaksei Severyn, and Erhardt Barth. Recurrent dropout without memory loss. arXiv preprint arXiv:1603.05118, 2016.
|
| 244 |
+
|
| 245 |
+
Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014.
|
| 246 |
+
Richard E Turner and Maneesh Sahani. Two problems with variational expectation maximisation for time-series models. Bayesian Time series models, 1(3.1):3–1, 2011.
|
| 247 |
+
Sida Wang and Christopher Manning. Fast dropout training. In international conference on machine learning, pp. 118–126, 2013.
|
| 248 |
+
David Warde-Farley, Ian J Goodfellow, Aaron Courville, and Yoshua Bengio. An empirical analysis of dropout in piecewise linear networks. arXiv preprint arXiv:1312.6197, 2013.
|
| 249 |
+
Ziang Xie, Sida I Wang, Jiwei Li, Daniel Lévy, Aiming Nie, Dan Jurafsky, and Andrew Y Ng. Data noising as smoothing in neural network language models. arXiv preprint arXiv:1703.02573, 2017.
|
| 250 |
+
Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. Breaking the softmax bottleneck: a high-rank rnn language model. arXiv preprint arXiv:1711.03953, 2017.
|
| 251 |
+
Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014.
|
| 252 |
+
George Kingsley Zipf. The psycho-biology of language. Houghton, Mifflin, 1935.
|
| 253 |
+
Konrad Zolna, Devansh Arpit, Dendi Suhubdy, and Yoshua Bengio. Fraternal dropout. arXiv preprint arXiv:1711.00066, 2017.
|
| 254 |
+
|
| 255 |
+
# APPENDIX A VARIATIONAL DROPOUT WITH NON-SHARED MASKS
|
| 256 |
+
|
| 257 |
+
If $q$ and $p$ are redefined for the non-shared setting to be products of identical and independent, per time step factors, neither term of the variational objective requires rethinking: the MC approximation still works since $q$ is easy to sample from, while the KL term becomes a sum of componentwise KL divergences and can still be implemented as weight decay. Consequently, both shared and non-shared masks fit into the variational framework. For a detailed derivation see Appendix B.
|
| 258 |
+
|
| 259 |
+
In related works, Pachitariu & Sahani (2013) in their investigation of regularisation of standard RNN based language models dismiss applying dropout to recurrent connections “to avoid introducing instabilities into the recurrent part of the LMs”. Bayer et al. (2013) echo this claim about RNNs, which is then cited by Zaremba et al. (2014), but their work is based on LSTMs not standard RNNs. Finally, Gal & Ghahramani (2016b) cite all of the above but also work with LSTMs. Their results indicate a large, about 15 perplexity point advantage to shared mask dropout for language modelling on the Penn Treebank (PTB) corpus (see Fig. 2 in their paper).
|
| 260 |
+
|
| 261 |
+
Our experimental results obtained with careful and extensive hyperparameter tuning, listed in Table 5, indicate only a small difference between the two which is in agreement with the empirical study of Semeniuta et al. (2016).
|
| 262 |
+
|
| 263 |
+
Table 5: Validation and test set perplexities on PTB with shared (S) or non-shared (NS) dropout masks for a small, 1 layer and a large, 4 layer LSTM with 10 and 24 million weights, respectively. Non-shared masks perform nearly as well as shared masks and as we have seen neither is “more variational” than the other.
|
| 264 |
+
|
| 265 |
+
<table><tr><td>dataset</td><td colspan="2">10M</td><td colspan="2">24M</td></tr><tr><td></td><td>S</td><td>NS</td><td>S</td><td>NS</td></tr><tr><td>validation</td><td>59.4</td><td>60.2</td><td>57.5</td><td>58.3</td></tr><tr><td>test</td><td>57.5</td><td>58.6</td><td>56.0</td><td>56.9</td></tr></table>
|
| 266 |
+
|
| 267 |
+
In any case, non-shared masks, in addition to being variational, are also surprisingly competitive with shared masks for LSTMs (we make no claims about standard RNNs). We also tested whether embedding dropout (in which dropout is applied to entire vectors in the input embedding lookup table) proposed by Gal & Ghahramani (2016b) improves results, and find that embedding dropout does not offer any improvement on top of input dropout.
|
| 268 |
+
|
| 269 |
+
# APPENDIX B DERIVATION OF VARIATIONAL DROPOUT WITH NON-SHARED MASKS
|
| 270 |
+
|
| 271 |
+
In this section, we formulate naive (i.e. non-shared mask) dropout in the variational setting. In contrast to the shared mask case, where $\omega$ was a single set of weights, here $\omega ^ { 1 : T }$ (or $\omega$ , for short) has a set of weights for each time step that differ in their dropout masks. The variational posterior $q ( \omega )$ and the prior $p ( \omega )$ are both products of identical distributions over time:
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
\begin{array} { l } { \displaystyle q ( \omega ^ { 1 : T } ) = \prod _ { t = 1 } ^ { T } q ^ { \prime } ( \omega ^ { t } ) = \prod _ { t = 1 } ^ { T } \big [ p \mathcal N ( \omega ^ { t } | 0 , \sigma ^ { 2 } ) + ( 1 - p ) \mathcal N ( \omega ^ { t } | \Theta , \sigma ^ { 2 } ) \big ] } \\ { \displaystyle p ( \omega ^ { 1 : T } ) = \prod _ { t = 1 } ^ { T } p ^ { \prime } ( \omega ^ { t } ) = \prod _ { t = 1 } ^ { T } \mathcal N ( \omega ^ { t } | 0 , \sigma _ { p } ^ { 2 } ) } \end{array}
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
An unbiased approximation to the integrals in Eq. 1 is based on a single, easy to obtain sample $\hat { \omega } \sim q ( \omega )$ :
|
| 278 |
+
|
| 279 |
+
$$
|
| 280 |
+
\int q ( \omega ) \ln p ( y | x , \omega ) d \omega \approx \ln p ( y | x , \hat { \omega } )
|
| 281 |
+
$$
|
| 282 |
+
|
| 283 |
+
Showing that the KL term can still be approximated with weight decay with non-shared masks is not much more involved. Both distributions are products of densities over independent random variables,
|
| 284 |
+
|
| 285 |
+
so the componentwise KL divergencies sum. In particular:
|
| 286 |
+
|
| 287 |
+
$$
|
| 288 |
+
\begin{array} { r l } { { \operatorname { E I } ( \{ \boldsymbol { g } ( \omega ) \} \| \boldsymbol { \rho } ( \omega ) ) = \int ( \prod _ { t = 1 } ^ { T } q ^ { \prime } ( \omega ^ { * } ) ) \ln \prod _ { t = 1 } ^ { T } \dot { q } ^ { \prime } ( \omega ^ { * } ) } } \\ & { = \int ( \prod _ { t = 1 } ^ { T } q ^ { \prime } ( \omega ^ { * } ) ) \frac { T } { \epsilon = 1 } \ln \frac { q ^ { \prime } ( \omega ^ { * } ) } { \tilde { p } ^ { \prime } ( \omega ^ { * } ) } d \omega } \\ & { = \sum _ { t = 1 } ^ { T } \int ( \prod _ { t = 1 } ^ { T } q ^ { \prime } ( \omega ^ { * } ) ) \ln \frac { q ^ { \prime } ( \omega ^ { * } ) } { \tilde { p } ^ { \prime } ( \omega ^ { * } ) } d \omega } \\ & { = \frac { \sum } { t = 1 } ^ { T } \int [ \frac { 1 } { \epsilon = 1 } ^ { T } q ^ { \prime } ( \omega ^ { * } ) ] \ln \frac { q ^ { \prime } ( \omega ^ { * } ) } { \tilde { p } ^ { \prime } ( \omega ^ { * } ) } d \omega } \\ & { = \frac { \sum } { t = 1 } ^ { T } \int [ \frac { 1 } { \epsilon = 1 , \epsilon \epsilon \epsilon } q ^ { \prime } ( \omega ^ { * } ) ] [ \dot { q } ^ { \prime } ( \omega ^ { * } ) \ln \frac { \dot { q } ^ { \prime } ( \omega ^ { * } ) } { \tilde { p } ^ { \prime } ( \omega ^ { * } ) } ] d \omega } \\ & { = \frac { \sum } { t = 1 } ^ { T } [ \int \frac { 1 } { \epsilon = 1 , \epsilon \epsilon } q ^ { \prime } ( \omega ^ { * } ) d \omega ^ { * } ] [ \int q ^ { \prime } ( \omega ) \ln \frac { q ^ { \prime } ( \omega ^ { * } ) } { \tilde { p } ^ { \prime } ( \omega ^ { * } ) } d \omega ] } \\ & { = \Gamma \cdot \mathbb { E } [ \int _ { \epsilon = 1 } ^ { T } q ^ { \prime } ( \omega ) \mathrm { l i s } q ^ { \prime } ( \omega ^ { * } ) d \omega ^ { * } ] } \\ & { = T \cdot \mathbb { E } [ \mathrm { L G } [ ( \omega ) \mathrm { l i s } / \omega ^ { * } ) ] } \end{array}
|
| 289 |
+
$$
|
| 290 |
+
|
| 291 |
+
We partitioned the variables into two mutually exclusive sets $w ^ { t }$ and its complement $w ^ { \backslash t }$ , and split the multiple integral using Fubini’s theorem (or, equivalently, using the expectation of independent random variables rule). After the split, the first integral is trivially 1 and the second has no dependence on $T$ .
|
| 292 |
+
|
| 293 |
+
What we end up with is a sum of identical KL terms of the same distributions as in the shared mask case, so the full KL can be approximated with weight decay.
|
| 294 |
+
|
| 295 |
+
# APPENDIX C DERIVATION OF THE MAP LOWER BOUND FOR THE ARITHMETIC MODEL
|
| 296 |
+
|
| 297 |
+
We can rewrite the posterior as:
|
| 298 |
+
|
| 299 |
+
$$
|
| 300 |
+
\begin{array} { l } { p ( \Theta | X , Y ) = \displaystyle \frac { p ( X , Y | \Theta ) p ( \Theta ) } { p ( X , Y ) } } \\ { \propto p ( X , Y | \Theta ) p ( \Theta ) } \\ { = \displaystyle \int p ( Y | X , \omega , \Theta ) p ( \omega | \Theta , X ) p ( \Theta | X ) p ( X ) d \omega } \\ { \propto \displaystyle \int p ( Y | X , \omega ) p ( \omega | \Theta ) p ( \Theta ) d \omega } \end{array}
|
| 301 |
+
$$
|
| 302 |
+
|
| 303 |
+
Moving to the log domain and using Jensen’s inequality allows us to construct a lower bound that is a sum of per data point terms (i.e. something that can be conveniently optimised):
|
| 304 |
+
|
| 305 |
+
$$
|
| 306 |
+
\begin{array} { l } { \displaystyle \ln p ( \Theta | X , Y ) = \ln \int p ( Y | X , \omega ) p ( \omega | \Theta ) p ( \Theta ) d \omega - C _ { M A P } } \\ { \displaystyle \qquad = \ln \int p ( \omega | \Theta ) \prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \omega ) d \omega + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle \qquad \geqslant \int p ( \omega | \Theta ) \ln \prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \omega ) d \omega + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle \qquad = \sum _ { i = 1 } ^ { N } \int p ( \omega | \Theta ) \ln p ( y _ { i } | x _ { i } , \omega ) d \omega + \ln p ( \Theta ) - C _ { M A P } } \end{array}
|
| 307 |
+
$$
|
| 308 |
+
|
| 309 |
+
# APPENDIX D DERIVATION OF THE MAP LOWER BOUND FOR THE GEOMETRIC MODEL
|
| 310 |
+
|
| 311 |
+
From Eq. 6 recall that:
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
p ( y | x , \Theta ) = \frac { \exp \left( \mathbb { E } _ { \hat { \omega } \sim p ( \omega | \Theta ) } \ln p ( y | x , \hat { \omega } ) \right) } { Z ( x , \Theta ) }
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
The normalisation constant $Z$ is at most 1, due to the geometric mean being bounded from above by the arithmetic mean on a per class $c$ basis:
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\begin{array} { r l } & { Z ( x , \Theta ) = \displaystyle \sum _ { c = 1 } ^ { C } e x p \big ( \underset { \hat { \omega } \sim p ( \omega | \Theta ) } { \mathbb { E } } \ln p ( c | x , \hat { \omega } ) \big ) } \\ & { \qquad \leqslant \displaystyle \sum _ { c = 1 } ^ { C } \underset { \hat { \omega } \sim p ( \omega | \Theta ) } { \mathbb { E } } p ( c | x , \hat { \omega } ) } \\ & { \qquad = \underset { \hat { \omega } \sim p ( \omega | \Theta ) } { \mathbb { E } } \displaystyle \sum _ { c = 1 } ^ { C } p ( c | x , \hat { \omega } ) = 1 } \end{array}
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
Since this a conditional model, we can rewrite the posterior as:
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
\begin{array} { l } { \displaystyle p ( \Theta | X , Y ) = \frac { p ( X , Y | \Theta ) p ( \Theta ) } { p ( X , Y ) } } \\ { \displaystyle \propto p ( X , Y | \Theta ) p ( \Theta ) } \\ { \displaystyle = p ( Y | X , \Theta ) p ( X | \Theta ) p ( \Theta ) } \\ { \displaystyle \propto p ( Y | X , \Theta ) p ( \Theta ) } \end{array}
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
$p ( X | \Theta )$ is dropped in the last step as it is constant. Moving to the log domain once again:
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
\begin{array} { l } { \displaystyle \ln p ( \Theta | X , Y ) = \ln p ( Y | X , \Theta ) + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle = \ln \prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \Theta ) + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle = \sum _ { i = 1 } ^ { N } \left[ _ { \xi \sim p ( \omega | \Theta ) } \ln p ( y _ { i } | x _ { i } , \tilde { \omega } ) - \ln ( Z ( x _ { i } , \Theta ) ) \right] + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle \geqslant \sum _ { i = 1 } ^ { N } \frac { \mathbb { P } } { \delta \ - \nu p ( \omega | \Theta ) } \ln p ( y _ { i } | x _ { i } , \tilde { \omega } ) + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle = \sum _ { i = 1 } ^ { N } \int p ( \omega | \Theta ) \ln p ( y _ { i } | x _ { i } , \Theta ) d \omega + \ln p ( \Theta ) - C _ { M A P } } \end{array}
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
where the lower bound arises due to $\forall i \colon Z ( x _ { i } , \Theta ) \leqslant 1$ .
|
| 336 |
+
|
| 337 |
+
# APPENDIX E DERIVATION OF THE MAP LOWER BOUND FOR THE POWER MEAN FAMILY
|
| 338 |
+
|
| 339 |
+
In $\ S 3 . 2$ we proved that $\forall i \colon Z ( x _ { i } , \Theta ) \leqslant 1$ . Starting from $p ( \Theta | X , Y ) \propto p ( Y | X , \Theta ) p ( \Theta )$ just like in the geometric case, we derive a lower bound in the log domain:
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
\begin{array} { l } { \ln p ( \Theta | X , Y ) = \ln p ( Y | X , \Theta ) + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle \qquad = \ln \prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \Theta ) + \ln p ( \Theta ) - C _ { M A P } } \\ { \displaystyle \qquad = \sum _ { i = 1 } ^ { N } \left[ \ln \sqrt \ [ 6 ] { \underset { \displaystyle \hat { \omega } \sim p ( \omega | \Theta ) } { \mathbb { E } } p ( y _ { i } | x _ { i } , \hat { \omega } ) ^ { \alpha } } - \ln ( Z ( x _ { i } , \Theta ) ) \right] + \ln p ( \Theta ) - C _ { M A P } } \end{array}
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
$$
|
| 346 |
+
\begin{array} { r l } & { \lesssim \displaystyle \sum _ { i = 1 } ^ { N } \displaystyle \prod _ { \ell = \mathrm { e } p ( \omega | \Theta ) } p ( y | x _ { i } | x _ { i } , \hat { \omega } ) ^ { \alpha } + \operatorname* { l n } p ( \Theta ) - C _ { M i } , } \\ & { = \displaystyle \sum _ { i = 1 } ^ { N } \displaystyle \frac { 1 } { \alpha } \ln \bigg ( \int _ { ( - \mathrm { e } \mathbb { P } ^ { \alpha } ( \omega | \Theta ) ) } p ( y _ { i } | x _ { i } , \hat { \omega } ) ^ { \alpha } \bigg ) + \operatorname* { l n } p ( \Theta ) - C _ { M i } , } \\ & { \gg \displaystyle \sum _ { i = 1 } ^ { N } \frac { 1 } { \alpha } \int _ { ( - \mathrm { e } \mathbb { P } ^ { \alpha } ( i \omega | \Theta ) ) } \ln p ( y _ { i } | x _ { i } , \hat { \omega } ) ^ { \alpha } + \operatorname* { l n } p ( \Theta ) - C _ { M i } , } \\ & { = \displaystyle \sum _ { i = 1 } ^ { N } \mathrm { e } \int _ { ( - \mathrm { e } \mathbb { P } ^ { \alpha } ( i \omega | \Theta ) ) } \ln p ( y _ { i } | x _ { i } , \hat { \omega } ) + \operatorname* { l n } p ( \Theta ) - C _ { M i } , } \\ & { = \displaystyle \sum _ { i = 1 } ^ { N } \int _ { \mathbb { P } ^ { \alpha } ( i \omega | \Theta ) } \ln p ( y _ { i } | x _ { i } , \hat { \omega } ) + \operatorname* { l n } p ( \Theta ) - C _ { M i } , } \\ & { = \displaystyle \sum _ { i = 1 } ^ { N } \int _ { \mathbb { P } ^ { \alpha } ( i \omega | \Theta ) } \ln p ( y _ { i } | x _ { i } , \omega ) d \omega + \operatorname* { l n } p ( \Theta ) - C _ { M i } , } \end{array}
|
| 347 |
+
$$
|
parse/train/rklwwo05Ym/rklwwo05Ym_content_list.json
ADDED
|
@@ -0,0 +1,1653 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "PUSHING THE BOUNDS OF DROPOUT ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
101,
|
| 9 |
+
609,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
400,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
224
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We show that dropout training is best understood as performing MAP estimation concurrently for a family of conditional models whose objectives are themselves lower bounded by the original dropout objective. This discovery allows us to pick any model from this family after training, which leads to a substantial improvement on regularisation-heavy language modelling. The family includes models that compute a power mean over the sampled dropout masks, and their less stochastic subvariants with tighter and higher lower bounds than the fully stochastic dropout objective. We argue that since the deterministic subvariant’s bound is equal to its objective, and the highest amongst these models, the predominant view of it as a good approximation to MC averaging is misleading. Rather, deterministic dropout is the best available approximation to the true objective. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
241,
|
| 43 |
+
764,
|
| 44 |
+
393
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
420,
|
| 55 |
+
336,
|
| 56 |
+
435
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "The regularisation technique known as dropout underpins numerous state-of-the-art results in deep learning (Hinton et al. 2012; Srivastava et al. 2014), and its application has received much attention in the form of optimisation (Wang & Manning 2013) and attempts at explaining or improving its approximation properties (Baldi & Sadowski 2013; Zolna et al. 2017; Ma et al. 2016). The dominant perspective today views dropout as either an implicit ensemble method (Warde-Farley et al. 2013) or averaging over an approximate Bayesian posterior (Gal & Ghahramani 2016a). Regardless of which view we take, dropout training is carried out the same way, by minimising the expectation of the loss over randomly sampled dropout masks. However, at test time these views naturally lead to different algorithms: the Bayesian approach computes an arithmetic average as it marginalises out the weight uncertainty, while the ensemble approach typically uses the geometric average due to its close relationship to the loss. Collectively they are called MC dropout and neither is clearly better than the other (Warde-Farley et al. 2013). A third way to make predictions is to “turn dropout off”, that is, propagate expected values through the network in a single, deterministic pass. This deterministic (also known as standard) dropout in considered to be an excellent approximation to MC dropout. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
452,
|
| 66 |
+
825,
|
| 67 |
+
646
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "This situation is unsatisfactory as it does not provide theoretical grounding for dropout, without which the choice of dropout variant remains arbitrary. In this paper, we provide such theoretical foundations. First, we prove the dropout objective to be a common lower bound on the objectives of a family of infinitely many models. This family includes models corresponding to the three aforementioned methods of evaluation: the arithmetic averaging, the geometric averaging, and the deterministic. Thus by maximising the dropout objective we get a single set of parameters and many models that all have the same parameters but differ in how they make predictions. This allows us to train once and perform model selection at validation time by evaluating the different methods of making predictions corresponding to individual models in the family. Second, we turn the conventional perspective on its head by showing that while dropout training performs stochastic regularisation, the trained model is best viewed as deterministic, not as a stochastic model with a deterministic approximation. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
652,
|
| 77 |
+
825,
|
| 78 |
+
805
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "This paper is structured as follows. In $\\ S 2$ , we revisit variational dropout (Gal & Ghahramani 2016a) and demonstrate that, despite common perception, sharing of masks is not necessary, neither in theory nor in practice. Then, by recasting dropout in a simple conditional form, we highlight the counterintuitive role played by the variational posterior. $\\ S 3$ contains our main contributions. Here we construct a family of conditional models whose MAP objectives are all lower bounded by the usual dropout objective, and identify a member of this family as best in terms of model fit. In $\\ S 4$ , we select the best of this family in terms of generalisation to improve language modelling. Finally, creating a cheap approximation to the bias of this model allows us to get better results from model tuning. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
811,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "2 VARIATIONAL DROPOUT ",
|
| 96 |
+
"text_level": 1,
|
| 97 |
+
"bbox": [
|
| 98 |
+
176,
|
| 99 |
+
102,
|
| 100 |
+
406,
|
| 101 |
+
117
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 1
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Since its original publication (Hinton et al. 2012), dropout had been considered a stochastic regularisation method, implemented as a tweak to the loss function. That was until Gal & Ghahramani (2016a) grounded dropout in much-needed theory. Their subsequent work (Gal & Ghahramani 2016b) focused on RNNs, showing that if dropout masks are shared between time steps, the objective for their proposed variational model is the same as the commonly used dropout objective with an $\\ell _ { 2 }$ penalty. Their method became known as variational dropout, not to be confused with Kingma et al. (2015), and is used in state-of-the-art sequential models (Merity et al. 2017; Melis et al. 2017). Before we move on to a more general formulation we revisit it to better understand its critical features. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
173,
|
| 110 |
+
132,
|
| 111 |
+
826,
|
| 112 |
+
246
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "First, we recall the derivation of variational dropout. Consider an RNN that takes input $x$ and maps it to output $y$ and is trained on a set of $N$ data points in paired sets $X , Y$ . A variational lower bound on the log likelihood is obtained as follows: ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
251,
|
| 122 |
+
823,
|
| 123 |
+
292
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "equation",
|
| 129 |
+
"img_path": "images/83488694676c911736b8ddaeaf908d0f9cdbbc0868a944b6887ad7328464e48c.jpg",
|
| 130 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\ln p ( \\boldsymbol { Y } | \\boldsymbol { X } ) = \\ln \\underset { \\omega \\sim q ( \\omega ) } { \\mathbb { E } } \\frac { p ( \\boldsymbol { Y } | \\boldsymbol { X } , \\omega ) p ( \\omega ) } { q ( \\omega ) } } \\\\ { \\displaystyle \\geqslant \\underset { \\omega \\sim q ( \\omega ) } { \\mathbb { E } } \\ln p ( \\boldsymbol { Y } | \\boldsymbol { X } , \\omega ) - \\mathrm { K L } ( q ( \\omega ) | | p ( \\omega ) ) } \\\\ { \\displaystyle = \\int q ( \\omega ) \\ln p ( \\boldsymbol { Y } | \\boldsymbol { X } , \\omega ) d \\omega - \\mathrm { K L } ( q ( \\omega ) | | p ( \\omega ) ) } \\\\ { \\displaystyle = \\sum _ { i = 1 } ^ { N } \\int q ( \\omega ) \\ln p ( y _ { i } | x _ { i } , \\omega ) d \\omega - \\mathrm { K L } ( q ( \\omega ) | | p ( \\omega ) ) , } \\end{array}\n$$",
|
| 131 |
+
"text_format": "latex",
|
| 132 |
+
"bbox": [
|
| 133 |
+
290,
|
| 134 |
+
299,
|
| 135 |
+
705,
|
| 136 |
+
439
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 1
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "where $p ( \\boldsymbol { y } | \\boldsymbol { x } , \\boldsymbol { \\omega } )$ is defined by the RNN with weights $\\omega$ . Variational Bayesian methods then maximise this lower bound with respect to the variational distribution $q ( \\omega )$ . For variational dropout, $q ( \\omega )$ takes the form of a mixture of two gaussians with small variances: one with zero mean that represents the dropped out rows of weights, and another with mean $\\Theta$ : ",
|
| 143 |
+
"bbox": [
|
| 144 |
+
173,
|
| 145 |
+
444,
|
| 146 |
+
825,
|
| 147 |
+
500
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "equation",
|
| 153 |
+
"img_path": "images/8b0b7269d44d27274049fdf4f8c08203d284a03f45d1ae3cfd1a7ea935569583.jpg",
|
| 154 |
+
"text": "$$\nq ( \\omega _ { r } ) = p \\mathcal { N } ( \\omega _ { r } | 0 , \\sigma ^ { 2 } \\mathrm { I } ) + ( 1 - p ) \\mathcal { N } ( \\omega _ { r } | \\Theta _ { r } , \\sigma ^ { 2 } \\mathrm { I } )\n$$",
|
| 155 |
+
"text_format": "latex",
|
| 156 |
+
"bbox": [
|
| 157 |
+
333,
|
| 158 |
+
505,
|
| 159 |
+
663,
|
| 160 |
+
523
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "In the above, $r$ is the index of a row of a weight matrix. Dropping whole rows of weights is equivalent to the more familiar view of dropout over units. The prior over the weights is a zero mean gaussian: ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
173,
|
| 169 |
+
529,
|
| 170 |
+
823,
|
| 171 |
+
558
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "equation",
|
| 177 |
+
"img_path": "images/7aa94fc918d0cfe8ec6b2f96014821ab6fffadccdd37019e1664a71bb2458d4f.jpg",
|
| 178 |
+
"text": "$$\np ( \\omega ) = \\mathcal { N } ( \\omega | 0 , \\sigma _ { p } ^ { 2 } \\mathrm { I } )\n$$",
|
| 179 |
+
"text_format": "latex",
|
| 180 |
+
"bbox": [
|
| 181 |
+
429,
|
| 182 |
+
563,
|
| 183 |
+
568,
|
| 184 |
+
583
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "The loss is defined based on Eq. 1. The integrals are approximated using a single sample $\\hat { \\omega } \\sim q ( \\omega )$ and the KL term is approximated with weight decay on $\\Theta$ : ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
171,
|
| 193 |
+
588,
|
| 194 |
+
823,
|
| 195 |
+
617
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "equation",
|
| 201 |
+
"img_path": "images/7556c61ac51c43a9b10506dc0190bd56d288232412f7d3c9459e667ffdf982b3.jpg",
|
| 202 |
+
"text": "$$\n\\mathcal { L } = - \\sum _ { i = 1 } ^ { N } \\ln p ( y _ { i } | x _ { i } , \\hat { \\omega } _ { i } ) + \\mathrm { K L } ( q ( \\omega ) | | p ( \\omega ) )\n$$",
|
| 203 |
+
"text_format": "latex",
|
| 204 |
+
"bbox": [
|
| 205 |
+
349,
|
| 206 |
+
622,
|
| 207 |
+
648,
|
| 208 |
+
666
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 1
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "The same dropout mask (and consequently the same $\\omega$ ) is employed at every time step. This sharing of masks is considered the defining characteristic of variational dropout, but we note in passing that the theory for the non-shared masks case is very similar and there is little between them in practice with LSTMs (see Appendix A). With this we conclude the recap of variational dropout, and describe our contributions in the rest of the paper. ",
|
| 215 |
+
"bbox": [
|
| 216 |
+
173,
|
| 217 |
+
678,
|
| 218 |
+
825,
|
| 219 |
+
748
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 1
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "2.1 DROPOUT AS A CONDITIONAL MODEL ",
|
| 226 |
+
"text_level": 1,
|
| 227 |
+
"bbox": [
|
| 228 |
+
176,
|
| 229 |
+
765,
|
| 230 |
+
477,
|
| 231 |
+
779
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 1
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "In variational inference the idea is to approximate the intractable and complicated posterior with a simple, parameterised distribution $q$ . Crucially, this approximation affects our inferences and predictions. If we are serious about it being an approximation to the posterior and want to reduce its distortion of the model $p$ , then $q$ can be made more flexible. But making $q$ more flexible in variational dropout can potentially ruin the regularisation effect. So the particular choice of $q$ plays an important, active role: it effectively performs posterior regularisation and acts as an integral part of the model. ",
|
| 238 |
+
"bbox": [
|
| 239 |
+
174,
|
| 240 |
+
790,
|
| 241 |
+
825,
|
| 242 |
+
875
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 1
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "Coming from another angle, Osband (2016) makes the point that in variational dropout the posterior over weights does not concentrate with more data, unlike for example in Graves (2011), which is unexpected behaviour from a Bayesian model. This conundrum is caused by encoding dropout with a fixed rate mixture of fixed variance components in $q$ , which also necessitates expensive tuning of the dropout rate. Gal et al. (2017) proposes a way to address these shortcomings. ",
|
| 249 |
+
"bbox": [
|
| 250 |
+
176,
|
| 251 |
+
881,
|
| 252 |
+
825,
|
| 253 |
+
924
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 1
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "",
|
| 260 |
+
"bbox": [
|
| 261 |
+
171,
|
| 262 |
+
103,
|
| 263 |
+
823,
|
| 264 |
+
132
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "To avoid getting bogged down in the issues surrounding the suitability of variational inference and ease interpretation, we construct a straightforward conditional model and lower bound its MAP objective in the same form as the variational objective. Suppose we want to do MAP estimation for the model parameters (the means of the distribution of weights, $\\Theta$ ): arg maxΘ $p ( \\Theta | X , Y )$ Consider a conditional model $p ( \\boldsymbol { Y } | \\boldsymbol { X } , \\Theta )$ as a crippled generative model with $p ( x _ { i } )$ constant, $x _ { i }$ and $\\Theta$ independent. Place a normal prior on the means $\\Theta$ and otherwise make the weights $\\omega$ conditional on $\\Theta$ the same way as they were in the variational posterior $q ( \\omega )$ : ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
174,
|
| 273 |
+
138,
|
| 274 |
+
825,
|
| 275 |
+
237
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "equation",
|
| 281 |
+
"img_path": "images/85c7ff714dc8b9104df4799c435ff1421f7b9fe5c45065f3913dbd1b7fd823d2.jpg",
|
| 282 |
+
"text": "$$\n\\begin{array} { r l } & { ~ p ( \\Theta ) = N ( \\Theta | 0 , \\sigma _ { p } ^ { 2 } \\mathrm { I } ) } \\\\ & { ~ p ( \\omega _ { r } | \\Theta ) = p \\mathcal N ( \\omega _ { r } | 0 , \\sigma ^ { 2 } \\mathrm { I } ) + ( 1 - p ) \\mathcal N ( \\omega _ { r } | \\Theta _ { r } , \\sigma ^ { 2 } \\mathrm { I } ) } \\\\ & { p ( y , \\omega | x , \\Theta ) = p ( y | x , \\omega ) p ( \\omega | \\Theta ) } \\end{array}\n$$",
|
| 283 |
+
"text_format": "latex",
|
| 284 |
+
"bbox": [
|
| 285 |
+
312,
|
| 286 |
+
241,
|
| 287 |
+
686,
|
| 288 |
+
301
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "The log posterior of this model has a similar lower bound to the variational objective (Eq. 1): ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
169,
|
| 297 |
+
304,
|
| 298 |
+
781,
|
| 299 |
+
319
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "equation",
|
| 305 |
+
"img_path": "images/38873f63e470e920a2c41c8926b05121011fc39e8089ec1176342b67164c52b9.jpg",
|
| 306 |
+
"text": "$$\n\\ln p ( \\Theta | X , Y ) \\geqslant \\sum _ { i = 1 } ^ { N } \\int p ( \\omega | \\Theta ) \\ln p ( y _ { i } | x _ { i } , \\omega ) d \\omega + \\ln p ( \\Theta ) - C _ { M A P }\n$$",
|
| 307 |
+
"text_format": "latex",
|
| 308 |
+
"bbox": [
|
| 309 |
+
276,
|
| 310 |
+
323,
|
| 311 |
+
722,
|
| 312 |
+
367
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "See Appendix $\\textrm { C }$ for detailed derivation. Dropping the normalisation constant $C _ { M A P }$ that doesn’t depend on $\\Theta$ , and approximating the above integrals with a single sample, the loss corresponding to the MAP objective becomes: ",
|
| 319 |
+
"bbox": [
|
| 320 |
+
174,
|
| 321 |
+
372,
|
| 322 |
+
825,
|
| 323 |
+
414
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 2
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "equation",
|
| 329 |
+
"img_path": "images/61ec15b4e9c2f19196da88a1896e84c1a7e2c5bb277f1d0f5ed128e4c809f246.jpg",
|
| 330 |
+
"text": "$$\n\\mathcal { L } _ { M A P } = - \\sum _ { i = 1 } ^ { N } \\ln p ( y _ { i } | x _ { i } , \\hat { \\omega } _ { i } ) - \\ln p ( \\Theta )\n$$",
|
| 331 |
+
"text_format": "latex",
|
| 332 |
+
"bbox": [
|
| 333 |
+
367,
|
| 334 |
+
419,
|
| 335 |
+
632,
|
| 336 |
+
463
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "text",
|
| 342 |
+
"text": "The first term of this loss is identical to that of the loss for variational dropout (Eq 2). If the prior on $\\Theta$ is a zero mean gaussian, then the second term is equivalent to a weight decay penalty just like the KL term in the variational setup. With the two losses being effectively the same, in the following we focus on MAP estimation for the conditional model to sidestep any questions about whether variational inference makes sense in this case. ",
|
| 343 |
+
"bbox": [
|
| 344 |
+
174,
|
| 345 |
+
467,
|
| 346 |
+
825,
|
| 347 |
+
536
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "3 THE DROPOUT FAMILY OF MODELS ",
|
| 354 |
+
"text_level": 1,
|
| 355 |
+
"bbox": [
|
| 356 |
+
174,
|
| 357 |
+
558,
|
| 358 |
+
496,
|
| 359 |
+
573
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "Having developed a conditional model for dropout that leads to the same objective as variational dropout, we now derive a family of models whose objectives are all lower bounded by the usual dropout objective. We draw inspiration from the different evaluation methods employed for dropout: ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
176,
|
| 368 |
+
588,
|
| 369 |
+
825,
|
| 370 |
+
631
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 2
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "• Deterministic dropout propagates the expectation of each unit through the network in single pass. This is very efficient and is viewed as a good approximation to the next option. • MC dropout mimicks the training procedure, and averages the predicted probabilities over randomly sampled dropout masks. With one forward pass per sample, this can be rather expensive. There is some ambiguity as to what kind of averaging shall be applied: oftentimes the geometric average (GMC) is used, because of its close relationship to the loss, but the arithmetic average (AMC) is also widespread. ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
215,
|
| 379 |
+
642,
|
| 380 |
+
825,
|
| 381 |
+
744
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 2
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "Our goal in this section is to demonstrate the consequences of optimising a lower bound instead of the true objective. While it is easy to argue in general that objectives of more than one model may share any given lower bound, for dropout a particularly simple explicit construction of such a family of models is possible. As we will see, this allows for post-training model selection based on validation results given a trained set of parameters. In the absence of validation results to guide model selection, inspection of the tightness of the lower bound indicates the deterministic model as the most reasonable choice from the family. ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
173,
|
| 390 |
+
755,
|
| 391 |
+
825,
|
| 392 |
+
853
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 2
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "3.1 GEOMETRIC MODEL ",
|
| 399 |
+
"text_level": 1,
|
| 400 |
+
"bbox": [
|
| 401 |
+
176,
|
| 402 |
+
869,
|
| 403 |
+
354,
|
| 404 |
+
883
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 2
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "First, we investigate whether the geometric or the arithmetic mean is the correct choice for making predictions in the context of classification. Recall the predictive term of the MAP loss in Eq. 5: ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
895,
|
| 414 |
+
825,
|
| 415 |
+
924
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 2
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "$\\sum \\ln p \\big ( y _ { i } | x _ { i } , \\hat { \\omega } _ { i } \\big )$ . Notice how with SGD and multiple epochs, for each data point several dropout masks are encountered, and the approximating quantity becomes the geometric mean of the predicted probabilities $p ( y _ { i } | x _ { i } , \\omega )$ over the masked weights. For this reason, the posterior predictive distribution $p ( y ^ { * } | x ^ { * } , X , Y )$ is often computed as the renormalised geometric mean. This is in apparent conflict with the conditional model that prescribes the arithmetic mean (integrating $\\omega$ out of Eq. 3). However, we can define another model where the conditional distribution is directly defined to be the renormalised geometric mean ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
173,
|
| 424 |
+
102,
|
| 425 |
+
826,
|
| 426 |
+
202
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 3
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "equation",
|
| 432 |
+
"img_path": "images/867c7a7c5fd2535a4e2cc0a9ded121fe85b077bec88713228912a79eaf384114.jpg",
|
| 433 |
+
"text": "$$\np ( y | x , \\Theta ) = \\frac { \\exp \\bigl ( \\mathbb { E } _ { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } \\ln p ( y | x , \\hat { \\omega } ) \\bigr ) } { Z ( x , \\Theta ) } , \\quad Z ( x , \\Theta ) = \\sum _ { c = 1 } ^ { C } \\exp \\big ( \\underbrace { \\mathbb { E } } _ { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } \\ln p ( c | x , \\hat { \\omega } ) \\big )\n$$",
|
| 434 |
+
"text_format": "latex",
|
| 435 |
+
"bbox": [
|
| 436 |
+
191,
|
| 437 |
+
209,
|
| 438 |
+
785,
|
| 439 |
+
252
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 3
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "with a slight abuse of notation, due to using the symbol $p$ in $p ( \\boldsymbol { y } | \\boldsymbol { x } , \\Theta )$ although $p ( \\boldsymbol { y } | \\boldsymbol { x } , \\boldsymbol { \\Theta } ) \\neq$ $\\mathbb { E } _ { \\omega } p ( \\omega | \\Theta ) \\bar { p } ( y | x , \\omega )$ . It can be shown that the arithmetic model’s (Eq. 3) lower bound (Eq. 4) is a lower bound for this renormalised geometric model (Eq. 6), as well. See Appendix $\\mathbf { D }$ for the derivation. The answer to the question whether we should use GMC or AMC is that it depends: they correspond to different models, but the dropout objective is a lower bound on the objectives of both models. So one can freely choose between GMC and AMC at evaluation time, doing model selection retrospectively after training. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
173,
|
| 448 |
+
260,
|
| 449 |
+
826,
|
| 450 |
+
359
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "3.2 THE POWER MEAN MODEL FAMILY ",
|
| 457 |
+
"text_level": 1,
|
| 458 |
+
"bbox": [
|
| 459 |
+
176,
|
| 460 |
+
377,
|
| 461 |
+
452,
|
| 462 |
+
391
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 3
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "Having two models to choose from, it is natural to ask whether these are just instantiations of a larger class of models. We propose the power mean family of models to extend the set of models to a continuum between the geometric and arithmetic models described in $\\ S 3 . 1$ and $\\ S 2 . 1$ , respectively, and show that they have the same lower bound. The power mean is defined as: ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
173,
|
| 471 |
+
404,
|
| 472 |
+
826,
|
| 473 |
+
460
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 3
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "equation",
|
| 479 |
+
"img_path": "images/522a90559017e1f85277f8caf6ad958ca708a6643cf3a18663c454f5efa551f5.jpg",
|
| 480 |
+
"text": "$$\nM _ { \\alpha } ( x _ { 1 } , \\ldots , x _ { n } ) = \\left( \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } x _ { i } ^ { \\alpha } \\right) ^ { 1 / \\alpha }\n$$",
|
| 481 |
+
"text_format": "latex",
|
| 482 |
+
"bbox": [
|
| 483 |
+
377,
|
| 484 |
+
468,
|
| 485 |
+
620,
|
| 486 |
+
511
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 3
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "For $\\alpha = 1$ we arrive at the arithmetic mean while the natural extension to $\\alpha = 0$ is the geometric mean as it is the limit of $M _ { \\alpha }$ at $\\alpha 0$ , which can be proven with L’Hôpital’s rule. Similarly to the construction of the geometric model, we define the power mean model by directly conditioning on $\\Theta$ : ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
173,
|
| 495 |
+
517,
|
| 496 |
+
825,
|
| 497 |
+
560
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 3
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "equation",
|
| 503 |
+
"img_path": "images/a0152361c213674b964ce48a0f92ab98b0986d237c701a3c17fa1f3575cdfad8.jpg",
|
| 504 |
+
"text": "$$\np ( y | x , \\Theta ) = \\frac { \\sqrt [ \\alpha ] { \\mathbb { E } _ { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } p ( y | x , \\hat { \\omega } ) ^ { \\alpha } } } { Z ( x , \\Theta ) } , \\qquad Z ( x , \\Theta ) = \\sum _ { c = 1 } ^ { C } \\sqrt [ \\alpha ] { \\mathbb { E } _ { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } p ( c | x , \\hat { \\omega } ) ^ { \\alpha } }\n$$",
|
| 505 |
+
"text_format": "latex",
|
| 506 |
+
"bbox": [
|
| 507 |
+
220,
|
| 508 |
+
568,
|
| 509 |
+
779,
|
| 510 |
+
612
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 3
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "where $Z ( x , \\Theta )$ is at most 1 if $\\alpha \\in ( - \\infty , 1 ]$ because $M _ { \\alpha }$ is monotonically increasing in $\\alpha$ and $Z$ is 1 for $\\alpha = 1$ . Here we provide a concise derivation of a lower bound on the log posterior (the full derivation can be found in Appendix E): ",
|
| 517 |
+
"bbox": [
|
| 518 |
+
173,
|
| 519 |
+
619,
|
| 520 |
+
825,
|
| 521 |
+
662
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 3
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "equation",
|
| 527 |
+
"img_path": "images/bea7a4d7702ff2c9e99ba3f5deb6ce086efc4df3fdd6099acf13b6463817c6d9.jpg",
|
| 528 |
+
"text": "$$\n\\begin{array} { r l } { \\ln p ( \\Theta | X , Y ) = \\displaystyle \\sum _ { i = 1 } ^ { N } \\left[ \\ln \\sqrt { \\underbrace { \\mathbb { E } } _ { \\left\\{ \\omega > p ( \\omega | \\Theta ) \\right\\} } p ( y _ { i } | x _ { i } , \\hat { \\omega } ) ^ { \\alpha } } - \\ln ( Z ( x _ { i } , \\Theta ) ) \\right] + \\ln p ( \\Theta ) - C _ { M A P } } & { } \\\\ { \\displaystyle \\geqslant \\displaystyle \\sum _ { i = 1 } ^ { N } \\ln \\sqrt { \\underbrace { \\mathbb { E } } _ { \\left\\{ \\omega > p ( \\omega | \\Theta ) \\right\\} } p ( y _ { i } | x _ { i } , \\hat { \\omega } ) ^ { \\alpha } } + \\ln p ( \\Theta ) - C _ { M A P } } & { } \\\\ { \\displaystyle \\geqslant \\displaystyle \\sum _ { i = 1 } ^ { N } \\frac { 1 } { \\alpha } \\frac { \\mathbb { E } } { \\omega \\sim p ( \\omega | \\Theta ) } \\ln p ( y _ { i } | x _ { i } , \\hat { \\omega } ) ^ { \\alpha } + \\ln p ( \\Theta ) - C _ { M A P } } & { } \\\\ { \\displaystyle = \\displaystyle \\sum _ { i = 1 } ^ { N } \\int p ( \\omega | \\Theta ) \\ln p ( y _ { i } | x _ { i } , \\omega ) d \\omega + \\ln p ( \\Theta ) - C _ { M A P } } & { } \\end{array}\n$$",
|
| 529 |
+
"text_format": "latex",
|
| 530 |
+
"bbox": [
|
| 531 |
+
210,
|
| 532 |
+
670,
|
| 533 |
+
785,
|
| 534 |
+
848
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 3
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "The first inequality above follows from $Z ( x , \\Theta ) \\leqslant 1$ for all $x , \\Theta$ , while the second is an application of Jensen’s rule assuming $\\alpha > 0$ . We arrived at the same lower bound on the objective as we had for the geometric (Eq. 6) and arithmetic models (Eq. 3), thus defining the power mean family with parameter $\\alpha \\in [ 0 , 1 ]$ of models from which we can choose at evaluation time. For $\\alpha > 1$ , the normalising constant $Z$ would be greater than 1, and this would not be a lower bound in general. ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
173,
|
| 543 |
+
853,
|
| 544 |
+
825,
|
| 545 |
+
924
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "3.3 TIGHTNESS OF THE LOWER BOUND",
|
| 552 |
+
"text_level": 1,
|
| 553 |
+
"bbox": [
|
| 554 |
+
176,
|
| 555 |
+
103,
|
| 556 |
+
457,
|
| 557 |
+
117
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "To better understand the quality of fit for models in the power mean family we examine the tightness of their lower bounds. There are two steps involving inequalities in the derivation of the bound: one where the normalisation constant $Z$ is dropped (Eq. 8) and another where the logarithm is moved inside the expectation (Eq. 9). We show that the gaps introduced by these steps can be made arbitrarily small by reducing the variance of $p ( \\boldsymbol { y } | \\boldsymbol { x } , \\boldsymbol { \\omega } )$ with respect to $\\omega$ . ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
173,
|
| 566 |
+
128,
|
| 567 |
+
825,
|
| 568 |
+
200
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "Notice that the Jensen gap with the logarithm function is scale invariant: ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
205,
|
| 578 |
+
647,
|
| 579 |
+
222
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "equation",
|
| 585 |
+
"img_path": "images/7cc2d0dcccbaa74f9f67dc3b761f79754f3734dacd93d5593a7e37188850cc5a.jpg",
|
| 586 |
+
"text": "$$\n\\ln ( \\mathbb { E } [ \\lambda L ] ) - \\mathbb { E } \\ln ( \\lambda L ) = \\ln ( \\mathbb { E } L ) - \\mathbb { E } \\ln ( L )\n$$",
|
| 587 |
+
"text_format": "latex",
|
| 588 |
+
"bbox": [
|
| 589 |
+
351,
|
| 590 |
+
226,
|
| 591 |
+
647,
|
| 592 |
+
243
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Intuitively, this suggests that $\\mathrm { v a r } ( L ) / ( \\mathbb { E } L ) ^ { 2 }$ is closely related to the size of the gap. Indeed, Maddison et al. (2017) show that if the first inverse moment of $L$ is finite, then ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
173,
|
| 601 |
+
248,
|
| 602 |
+
825,
|
| 603 |
+
279
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "equation",
|
| 609 |
+
"img_path": "images/4cec2c7c30e60cd5df8139e77888774e6f8b307990570263f3fec498784c7157.jpg",
|
| 610 |
+
"text": "$$\n\\ln ( \\mathbb { E } L ) - \\mathbb { E } \\ln ( L ) ) = { \\frac { \\operatorname { v a r } ( L ) } { 2 ( \\mathbb { E } L ) ^ { 2 } } } + { \\mathcal { O } } ( { \\sqrt { \\mathbb { E } [ ( L - \\mathbb { E } L ) ^ { 6 } ] } } )\n$$",
|
| 611 |
+
"text_format": "latex",
|
| 612 |
+
"bbox": [
|
| 613 |
+
313,
|
| 614 |
+
282,
|
| 615 |
+
683,
|
| 616 |
+
316
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 4
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "Here we go a bit further and show that if there is a positive lower and upper bound on $L$ , then there are non-trivial lower and upper bounds on its Jensen gap and these are bounds are multiplicative in $\\mathrm { v a r } ( L )$ . Let $L$ be a random variable such that $P ( \\bar { L } \\in ( a , b ) ) = 1$ where $- \\infty \\leqslant a < b \\leqslant \\infty$ . Furthermore, let $\\varphi ( l )$ be a convex function. Jensen’s inequality states that $E [ \\varphi ( L ) ] \\geqslant \\varphi ( \\mathbb { E } [ L ] )$ . Liao & Berg (2017) show that the Jensen gap $E [ \\varphi ( L ) ] - \\varphi ( \\bar { \\mathbb { E } } [ L ] )$ can be bounded from below and above: ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
174,
|
| 625 |
+
320,
|
| 626 |
+
825,
|
| 627 |
+
391
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 4
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "equation",
|
| 633 |
+
"img_path": "images/5f03949653ffd21c96ddbd2e62e830a6239825f2cccea96238d75d048b63f51d.jpg",
|
| 634 |
+
"text": "$$\n\\begin{array} { c } { \\operatorname* { i n f } \\{ h ( l ; \\mu ) \\mid l \\in ( a , b ) \\} \\operatorname { v a r } ( L ) \\leqslant \\mathbb { E } [ \\varphi ( L ) ] - \\varphi ( \\mathbb { E } [ L ] ) \\leqslant \\operatorname* { s u p } \\{ h ( l ; \\mu ) \\mid l \\in ( a , b ) \\} \\operatorname { v a r } ( L ) } \\\\ { h ( l ; \\mu ) = \\displaystyle \\frac { \\varphi ( l ) - \\varphi ( \\mu ) } { ( l - \\mu ) ^ { 2 } } - \\frac { \\varphi ^ { \\prime } ( \\mu ) } { l - \\mu } } \\end{array}\n$$",
|
| 635 |
+
"text_format": "latex",
|
| 636 |
+
"bbox": [
|
| 637 |
+
204,
|
| 638 |
+
393,
|
| 639 |
+
792,
|
| 640 |
+
450
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 4
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "where $h ( l ; \\mu )$ does not depend on the distribution of $L$ , only on its expected value $\\mu$ and on the function $\\varphi$ . Substituting $L = p ( c | x , \\omega )$ (a random variable on $[ 0 , 1 ]$ due to the randomness of the dropout masks) and $\\varphi ( l ) = - \\ln ( l )$ , we can see that the gap introduced by Eq. 9 can be made smaller by decreasing the variance of the predictions while maintaining the expected value of $L$ (i.e. the expected probability), assuming that there is a positive lower and upper bound on them (so that the supremum is finite and the infimum is positive, respectively). A similar argument based on $\\begin{array} { r } { \\sum _ { c = 1 } ^ { C } M _ { \\alpha } ( \\mathbb { E } _ { \\hat { \\omega } } p ( c | x , \\hat { \\omega } ) ) = 1 } \\end{array}$ shows that $Z$ approximately monotonically approaches 1 as the variance decreases, so the gap of Eq. 8 can also be reduced. ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
173,
|
| 649 |
+
453,
|
| 650 |
+
825,
|
| 651 |
+
568
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 4
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "Suppose we pick a base model from the power mean family and have a continuum of subvariants with gradually reduced variance in their predictions but the same expectation. Clearly, for each of them we can derive a lower bound the same way as we did for the power mean family. And as we showed above, the lower bounds will tend to increase as the variance of the predictions decreases (see Fig. 1a). They do not strictly increase, only tend to, due to how the Jensen gap is bounded from above and below and also due to the $\\mathcal { O }$ term of Eq. 10. Nonetheless, as we approach determinism the lower bound is forced into increasingly tighter ranges with strictly monotonically increasing bounds around it, thus we can always reduce the variance such that there is no overlap between the ranges and we get a guaranteed improvement on the lower bound. This effect reaches its apex at the deterministic model whose lower bound is both exact and higher than any other model’s. Fig. 1b illustrates that regardless of the choice of base model, reducing the prediction variance will eventually transform it into the same deterministic model. ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
173,
|
| 660 |
+
573,
|
| 661 |
+
825,
|
| 662 |
+
741
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 4
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "3.4 THE EXTENDED POWER MEAN FAMILY: CONTROLLING THE TIGHTNESS OF THE BOUND",
|
| 669 |
+
"text_level": 1,
|
| 670 |
+
"bbox": [
|
| 671 |
+
176,
|
| 672 |
+
758,
|
| 673 |
+
810,
|
| 674 |
+
772
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 4
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "Intuitively, in the absence of other sources of stochasticity the dropout rate controls the variance of the predictions and if it is low, the lower bound can be pretty snug. However, there are two problems. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
174,
|
| 683 |
+
784,
|
| 684 |
+
820,
|
| 685 |
+
811
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 4
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "First, decreasing the dropout rate does not necessarily keep the expectation of the predictions the same. We offer no solution to this bias issue, but refer the reader to previous studies of dropout’s approximation properties such as (Baldi & Sadowski 2013) and our subsequent empirical results. ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
174,
|
| 694 |
+
818,
|
| 695 |
+
825,
|
| 696 |
+
861
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 4
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "Second, reducing the dropout rate would trade off generalisation for tighter bounds. But doing so only at evaluation time leaves the training time regularisation effect intact, and can be seen as picking another model whose lower bound tends to be higher than that of the base model. Having thus extended the dropout family further, we can now tweak both $\\alpha$ and dropout rates at evaluation time. ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
174,
|
| 705 |
+
867,
|
| 706 |
+
825,
|
| 707 |
+
924
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 4
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "(a) Lower and upper bounds on the lower bound of the model objective as a function of prediction variance for any model in the power mean family. ",
|
| 714 |
+
"bbox": [
|
| 715 |
+
173,
|
| 716 |
+
232,
|
| 717 |
+
493,
|
| 718 |
+
270
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 5
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "image",
|
| 724 |
+
"img_path": "images/f57a0ac411df611128d5f354bd333f60ab55b0461115b4159e8c988c8efa3297.jpg",
|
| 725 |
+
"image_caption": [
|
| 726 |
+
"(b) With reduced variance, all members of the power mean family (brown shading) converge to the deterministic model while their lower bounds tighten. ",
|
| 727 |
+
"Figure 1: Tightness of lower bounds vs evaluation time prediction variance in the extended dropout family. "
|
| 728 |
+
],
|
| 729 |
+
"image_footnote": [],
|
| 730 |
+
"bbox": [
|
| 731 |
+
178,
|
| 732 |
+
99,
|
| 733 |
+
789,
|
| 734 |
+
224
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "table",
|
| 740 |
+
"img_path": "images/e125cfbe5a91ae64bf9b944e441ef0264b8529e55ca4338070c2bb2f9b0c45ac.jpg",
|
| 741 |
+
"table_caption": [
|
| 742 |
+
"Table 1: PTB training XEs with various dropout rate multipliers between deterministic and GMC. Observe the monotonic improvement in training fit when reducing the dropout rate at evaluation only. "
|
| 743 |
+
],
|
| 744 |
+
"table_footnote": [],
|
| 745 |
+
"table_body": "<table><tr><td>×0.0</td><td>×0.1</td><td>×0.2</td><td>x0.3</td><td>×0.4</td><td>×0.5</td><td>x0.6</td><td>x0.7</td><td>×0.8</td><td>×0.9</td><td>×1.0</td></tr><tr><td>2.731</td><td>2.738</td><td>2.746</td><td>2.755</td><td>2.766</td><td>2.777</td><td>2.791</td><td>2.807</td><td>2.826</td><td>2.849</td><td>2.878</td></tr></table>",
|
| 746 |
+
"bbox": [
|
| 747 |
+
217,
|
| 748 |
+
356,
|
| 749 |
+
781,
|
| 750 |
+
398
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 5
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "Depending on the severity of the introduced bias compared to the benefits of having a tighter lower bound, the optimal variance may lie anywhere between the deterministic and the base model. We show experimentally that across a number of datasets the benefits of tighter bounds matter more, and observe monotonic improvement in model fit as evaluation time dropout rates are decreased all the way to full determinism. The experiment was conducted as follows. On an already trained model, the dropout rate was multiplied by $\\lambda \\in [ 0 , 1 ]$ . As Table 1 shows, the model fit as measured by cross entropy (XE) on the training set improves monotonically when reducing $\\lambda$ . Results on other datasets and with other power mean models are very similar. We call the union of the reduced dropout rate subvariants of all power mean family models the extended dropout family paramaterised by $\\alpha , \\lambda$ . ",
|
| 757 |
+
"bbox": [
|
| 758 |
+
174,
|
| 759 |
+
431,
|
| 760 |
+
825,
|
| 761 |
+
558
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 5
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "Therefore, we can say that dropout training optimises a deterministic model subject to regularisation constraints, and deterministic evaluation, widely believed to approximate MC evaluation, is the closest match to the true objective at our disposal. It is not that dropout evaluation has a deterministic approximation: dropout trains a deterministic model first and foremost and a continuum of stochastic ones to various extents. ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
174,
|
| 770 |
+
564,
|
| 771 |
+
825,
|
| 772 |
+
633
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 5
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "In summary, we described dropout training as optimising a common lower bound for a family of models. Since this lower bound is the same for all models in the family, we can nominate any of them at evaluation time. However, the tightness of the bound varies, which affects model fit. Having trained a model with dropout, the best fit is achieved by the deterministic model with no dropout. This result isolates the regularisation effects from the biases of the lower bound and the dropout family. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
174,
|
| 781 |
+
641,
|
| 782 |
+
825,
|
| 783 |
+
710
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 5
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "4 APPLYING DROPOUT ",
|
| 790 |
+
"text_level": 1,
|
| 791 |
+
"bbox": [
|
| 792 |
+
176,
|
| 793 |
+
741,
|
| 794 |
+
377,
|
| 795 |
+
756
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 5
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "We investigate how members of the extended dropout model family perform in terms of generalisation. We follow the experimental setup of Melis et al. (2017) and base our work on their best performing model variant for each dataset. Unless explicitly stated, no retraining was performed and their model weights reused. In the experiments with the tuning objective, we follow their experimental setup, using Google Vizier (Golovin et al. 2017), a black-box hyperparameter tuner based on batched Gaussian Process Bandits. ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
174,
|
| 804 |
+
776,
|
| 805 |
+
825,
|
| 806 |
+
861
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 5
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "See Table 2 for results of image classification on MNIST, character based language modelling on Enwik8, word based language modelling on PTB and Wikitext-2. On MNIST, deterministic dropout is the best in terms of cross entropy, which matches our theoretical predictions. In contrast, on language modelling arithmetic averaging produces the best results, which necessitates further analysis. ",
|
| 813 |
+
"bbox": [
|
| 814 |
+
174,
|
| 815 |
+
867,
|
| 816 |
+
823,
|
| 817 |
+
924
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 5
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "table",
|
| 823 |
+
"img_path": "images/706a223a3751c4a057c7addc0e9df78248ad6dcba40bf24963abac42ab1b8c8f.jpg",
|
| 824 |
+
"table_caption": [
|
| 825 |
+
"Table 2: Validation XEs on some datasets varying the power $\\alpha$ and the dropout rate mulitiplier $\\lambda$ . Deterministic dropout is not the best evaluation method for the language modelling datasets due to a simple smoothing effect. "
|
| 826 |
+
],
|
| 827 |
+
"table_footnote": [],
|
| 828 |
+
"table_body": "<table><tr><td></td><td></td><td colspan=\"3\">Geometric (α = 0)</td><td colspan=\"3\">Power α = 0.5</td><td colspan=\"3\">Arithmetic (α = 1)</td></tr><tr><td>Dataset</td><td>DET</td><td>×0.8</td><td>×0.9</td><td>×1.0</td><td>x0.8</td><td>×0.9</td><td>×1.0</td><td>×0.8</td><td>x0.9</td><td>×1.0</td></tr><tr><td>MNIST</td><td>0.070</td><td>0.087</td><td>0.087</td><td>0.088</td><td>0.92</td><td>0.93</td><td>0.93</td><td>0.100</td><td>0.100</td><td>0.100</td></tr><tr><td>Enwik8</td><td>0.886</td><td>0.879</td><td>0.878</td><td>0.881</td><td>0.877</td><td>0.877</td><td>0.877</td><td>0.875</td><td>0.875</td><td>0.875</td></tr><tr><td>PTB</td><td>4.110</td><td>4.090</td><td>4.090</td><td>4.093</td><td>4.072</td><td>4.070</td><td>4.073</td><td>4.061</td><td>4.064</td><td>4.080</td></tr><tr><td>Wikitext-2</td><td>4.236</td><td>4.229</td><td>4.231</td><td>4.235</td><td>4.025</td><td>4.026</td><td>4.208</td><td>4.203</td><td>4.212</td><td>4.228</td></tr></table>",
|
| 829 |
+
"bbox": [
|
| 830 |
+
200,
|
| 831 |
+
137,
|
| 832 |
+
797,
|
| 833 |
+
236
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 6
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "table",
|
| 839 |
+
"img_path": "images/9beb052b1d18c18dea8c9d138fa93a16067b7d68537b681e7ff40715aa78f913.jpg",
|
| 840 |
+
"table_caption": [
|
| 841 |
+
"Table 3: PTB training and validation XEs for AMC at $\\lambda \\in \\{ 0 , 0 . 8 , 1 \\}$ per word frequency. Note how DET dominates AMC on the training set, but AMC is better for rare words in the validation set. "
|
| 842 |
+
],
|
| 843 |
+
"table_footnote": [],
|
| 844 |
+
"table_body": "<table><tr><td></td><td>num</td><td colspan=\"3\">training</td><td colspan=\"3\">validation</td></tr><tr><td>frequency</td><td>targets</td><td>DET</td><td>×0.8</td><td>AMC</td><td>DET</td><td>×0.8</td><td>AMC</td></tr><tr><td>25000<</td><td>13580</td><td>1.40</td><td>1.50</td><td>1.56</td><td>1.58</td><td>1.64</td><td>1.68</td></tr><tr><td>5000<</td><td>26658</td><td>1.65</td><td>1.75</td><td>1.81</td><td>1.93</td><td>1.98</td><td>2.02</td></tr><tr><td>500<</td><td>44702</td><td>2.19</td><td>2.30</td><td>2.36</td><td>2.58</td><td>2.63</td><td>2.66</td></tr><tr><td><500</td><td>29058</td><td>4.07</td><td>4.19</td><td>4.29</td><td>6.49</td><td>6.39</td><td>6.39</td></tr><tr><td><100</td><td>14222</td><td>4.24</td><td>4.38</td><td>4.49</td><td>7.81</td><td>7.64</td><td>7.61</td></tr><tr><td><20</td><td>5008</td><td>4.00</td><td>4.19</td><td>4.33</td><td>9.20</td><td>9.01</td><td>8.97</td></tr></table>",
|
| 845 |
+
"bbox": [
|
| 846 |
+
287,
|
| 847 |
+
286,
|
| 848 |
+
710,
|
| 849 |
+
410
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 6
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "We suspected that the particularly severe form of class imbalance exhibited by the power-law word distribution (Zipf 1935) might play a role. To verify this, we contrasted training and validation XEs on PTB for words grouped by frequency (see Table 3). On the training set, the gap between deterministic dropout and AMC is wider for low frequency words. On the validation set, AMC is worse for frequent words but better for rare words. The $\\times 0 . 8$ dropout multiplier just finds a reasonable compromise. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
173,
|
| 858 |
+
435,
|
| 859 |
+
825,
|
| 860 |
+
506
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 6
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "4.1 SOFTMAX TEMPERATURE",
|
| 867 |
+
"text_level": 1,
|
| 868 |
+
"bbox": [
|
| 869 |
+
174,
|
| 870 |
+
523,
|
| 871 |
+
390,
|
| 872 |
+
537
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 6
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "The observed effect is consistent with smoothing, thus we posit that the reason MNIST results are worse with AMC is that the marginal distributions of labels in the training and test set are identical by construction and further smoothing is unnecessary. On the other hand, PTB and Wikitext-2 benefit from AMC’s smoothing because the penalty for underestimating low probabilities is harsh, hence the large improvement on rare words. The character based Enwik8 dataset lies somewhere in between: the training and test distributions are better matched and there are no very low probability characters. ",
|
| 879 |
+
"bbox": [
|
| 880 |
+
173,
|
| 881 |
+
549,
|
| 882 |
+
825,
|
| 883 |
+
633
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 6
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "To test the hypothesis that AMC’s advantage lies in smoothing, we tested how performing smoothing by other means affects the results. In this experiment, on a trained model the temperature of the final softmax was optimised on the validation set and the model was applied with the optimal temperature to the validation and test sets. Our experimental results in Table 4 support the hypotheses that AMC smooths the predicted distribution as increasing the temperature improves DET and GMC considerably but not AMC. In fact, the optimal temperature for AMC with $\\lambda = 1$ was slightly lower than 1, which corresponds to sharpening, not smoothing. ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
173,
|
| 892 |
+
640,
|
| 893 |
+
823,
|
| 894 |
+
669
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 6
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "table",
|
| 900 |
+
"img_path": "images/53c35102c40907ed9f43347505d6f01ad3852aca8a9b2755f004b3e75427631a.jpg",
|
| 901 |
+
"table_caption": [
|
| 902 |
+
"Table 4: Validation and test perplexities on PTB and Wikitext-2 with various evaluation strategies and default or optimal validation softmax temperatures. Our baseline results correspond to DET at temperature 1. Note that AMC does not benefit from setting the optimal softmax temperature (“opt”), while DET is improved by it almost to the point of matching AMC which supports the smoothing hypothesis. "
|
| 903 |
+
],
|
| 904 |
+
"table_footnote": [],
|
| 905 |
+
"table_body": "<table><tr><td colspan=\"4\"></td><td colspan=\"3\">Geometric (α = 0)</td><td colspan=\"3\">Power α = 0.5</td><td colspan=\"3\">Arithmetic (α = 1)</td></tr><tr><td colspan=\"2\">Dataset</td><td>Temp</td><td>DET</td><td>×0.8</td><td>×0.9</td><td>×1.0</td><td>×0.8</td><td>×0.9</td><td>×1.0</td><td>×0.8</td><td>×0.9</td><td>×1.0</td></tr><tr><td rowspan=\"4\">Viiapian</td><td rowspan=\"2\">WT-2</td><td>1</td><td>69.1</td><td>68.6</td><td>68.8</td><td>69.1</td><td>67.0</td><td>67.2</td><td>67.2</td><td>66.9</td><td>67.5</td><td>68.6</td></tr><tr><td>opt</td><td>67.4</td><td>67.5</td><td>67.7</td><td>68.0</td><td>67.0</td><td>67.1</td><td>67.2</td><td>66.9</td><td>67.4</td><td>68.1</td></tr><tr><td rowspan=\"2\">PTB</td><td>1</td><td>60.9</td><td>59.6</td><td>59.7</td><td>59.7</td><td>58.1</td><td>57.9</td><td>58.0</td><td>57.3</td><td>57.5</td><td>58.5</td></tr><tr><td>opt</td><td>57.5</td><td>57.5</td><td>57.9</td><td>58.3</td><td>57.1</td><td>57.3</td><td>57.8</td><td>57.1</td><td>57.5</td><td>58.4</td></tr><tr><td rowspan=\"4\">3</td><td rowspan=\"2\">WT-2</td><td>1</td><td>65.9</td><td>65.3</td><td>65.4</td><td>65.6</td><td>63.8</td><td>63.9</td><td>64.2</td><td>63.7</td><td>64.5</td><td>65.5</td></tr><tr><td>opt</td><td>64.5</td><td>64.7</td><td>64.8</td><td>64.9</td><td>63.8</td><td>63.8</td><td>64.2</td><td>63.7</td><td>64.2</td><td>64.9</td></tr><tr><td rowspan=\"2\">PTB</td><td>1</td><td>58.6</td><td>57.3</td><td>57.4</td><td>57.4</td><td>56.0</td><td>55.8</td><td>55.9</td><td>55.3</td><td>55.5</td><td>56.5</td></tr><tr><td>opt</td><td>56.0</td><td>56.0</td><td>56.1</td><td>56.5</td><td>55.7</td><td>55.7</td><td>56.0</td><td>55.3</td><td>55.5</td><td>56.3</td></tr></table>",
|
| 906 |
+
"bbox": [
|
| 907 |
+
184,
|
| 908 |
+
753,
|
| 909 |
+
812,
|
| 910 |
+
921
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 6
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "",
|
| 917 |
+
"bbox": [
|
| 918 |
+
174,
|
| 919 |
+
103,
|
| 920 |
+
825,
|
| 921 |
+
174
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 7
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Tuning the evaluation time softmax temperature is similar to label smoothing (Pereyra et al. 2017), the main difference being that our method does not affect training. While this is convenient, for tuning model hyperparameters, ideally we would determine the optimal evaluation parameters $\\alpha$ $\\lambda$ and the temperature for the calculation of the validation score for each set of hyperparameters tried, but this would be prohibitively expensive. Since deterministic evaluation coupled with the optimal temperature is very close to the best performing AMC model, it serves as a good proxy for the ideal tuning objective. The optimal temperature can be approximately determinined using a linear search on a subset of the validation data which is orders of magnitude faster than MC dropout. In our experiments, hyperparameter tuning with validation scores computed at the optimal softmax temperature did improve results, albeit very slightly (about half a perplexity point). Thus we can conclude that deterministic dropout is already a reasonable proxy for which to optimise. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
174,
|
| 930 |
+
180,
|
| 931 |
+
825,
|
| 932 |
+
333
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 7
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "4.2 RESULTS ",
|
| 939 |
+
"text_level": 1,
|
| 940 |
+
"bbox": [
|
| 941 |
+
174,
|
| 942 |
+
353,
|
| 943 |
+
277,
|
| 944 |
+
367
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 7
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "We have improved the best test result of Melis et al. (2017) from 58.3 to 55.7 on PTB, and from 65.9 to 63.7 on Wikitext-2 using their model weights, only tuning the evaluation parameters $\\alpha , \\lambda$ and the softmax temperature on the validation set. By retuning the hyperparameters of the PTB model with optimal temperature deterministic evaluation, we improved to 55.3 on PTB. For lack of resources, we did not retune for Wikitext-2. For comparison, the state of the art in language modelling without resorting to dynamic evaluation or a continuous cache pointer is Mixture of Softmaxes (Yang et al. 2017) with 54.44 and 61.45 on PTB and Wikitext-2, respectively. At present, it is unclear whether the benefits of their approach and ours combine. ",
|
| 951 |
+
"bbox": [
|
| 952 |
+
174,
|
| 953 |
+
380,
|
| 954 |
+
825,
|
| 955 |
+
491
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 7
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "In summary, we looked at how different models and evaluation methods rank in terms of generalisation. Across a number of tasks and datasets the ranking differed from what was observed on the training set. We found that AMC smooths the distribution of the prediction probabilities and we achieved a similar effect without resorting to expensive sampling simply by adjusting the temperature of the final softmax. Finally, we brought the tuning objective more in line with the improved evaluation by automatically determining the optimal softmax temperature when evaluating on the validation set which further improved results. ",
|
| 962 |
+
"bbox": [
|
| 963 |
+
174,
|
| 964 |
+
498,
|
| 965 |
+
825,
|
| 966 |
+
595
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 7
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "5 IMPLICATIONS ",
|
| 973 |
+
"text_level": 1,
|
| 974 |
+
"bbox": [
|
| 975 |
+
176,
|
| 976 |
+
619,
|
| 977 |
+
326,
|
| 978 |
+
635
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 7
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "The construction of a conditional model family with a common lower bound on their objectives is applicable to other latent variable models with similar structure and inference method. This lower bound admits ambiguity as to what model is being fit to the data, which in turn allows for picking any such model at evaluation time. However, the tightness of the bound and the quality of the fit varies. For dropout, the deterministic model has the best fit even though the training objective is highly stochastic, but this result hinges on the approximation properties of deterministic dropout and will not carry over to other probabilistic models in general. In particular, standard VAEs (Kingma & Welling 2013) with their lower bound being very similar in construction to Eq. 1 cannot quite collapse to a deterministic model else they suffer an infinite KL penalty. Still, the lower bound being looser on the tails of $q$ is related to problem of underestimating posterior uncertainty (Turner & Sahani 2011). ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
174,
|
| 987 |
+
652,
|
| 988 |
+
825,
|
| 989 |
+
791
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 7
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "In related works, expectation-linear dropout (Ma et al. 2016) and fraternal dropout (Zolna et al. 2017) both try to reduce the “inference gap”: the mismatch between the training objective and deterministic evaluation. The gains reported in those works might be explained by reducing the bias of deterministic evaluation and also by encouraging small variance in the predictions and thus getting tighter bounds. Another recent work, activation regularisation (Merity et al. 2017), could be thought of as a mechanism to reduce the variance of predictions to a similar effect. In the context of language modelling, the connection between noise and smoothing was established by Xie et al. (2017). Our improved understanding further emphasises that connection, and at the same time challenges the way we think about dropout. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
797,
|
| 999 |
+
825,
|
| 1000 |
+
924
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 7
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "REFERENCES ",
|
| 1007 |
+
"text_level": 1,
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
174,
|
| 1010 |
+
102,
|
| 1011 |
+
287,
|
| 1012 |
+
118
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 8
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "Pierre Baldi and Peter J Sadowski. Understanding dropout. In Advances in neural information processing systems, pp. 2814–2822, 2013. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
174,
|
| 1021 |
+
126,
|
| 1022 |
+
823,
|
| 1023 |
+
155
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 8
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "Justin Bayer, Christian Osendorfer, Daniela Korhammer, Nutan Chen, Sebastian Urban, and Patrick van der Smagt. On fast dropout and its applicability to recurrent networks. arXiv preprint arXiv:1311.0701, 2013. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
173,
|
| 1032 |
+
162,
|
| 1033 |
+
823,
|
| 1034 |
+
207
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 8
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In international conference on machine learning, pp. 1050–1059, 2016a. ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
176,
|
| 1043 |
+
215,
|
| 1044 |
+
825,
|
| 1045 |
+
258
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 8
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. In Advances in Neural Information Processing Systems, pp. 1019–1027, 2016b. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
171,
|
| 1054 |
+
267,
|
| 1055 |
+
825,
|
| 1056 |
+
296
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 8
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Yarin Gal, Jiri Hron, and Alex Kendall. Concrete dropout. In Advances in Neural Information Processing Systems, pp. 3584–3593, 2017. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
173,
|
| 1065 |
+
305,
|
| 1066 |
+
825,
|
| 1067 |
+
335
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 8
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Daniel Golovin, Benjamin Solnik, Subhodeep Moitra, Greg Kochanski, John Karro, and D Sculley. Google vizier: A service for black-box optimization. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1487–1495. ACM, 2017. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
174,
|
| 1076 |
+
343,
|
| 1077 |
+
826,
|
| 1078 |
+
387
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 8
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Alex Graves. Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pp. 2348–2356, 2011. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
174,
|
| 1087 |
+
395,
|
| 1088 |
+
823,
|
| 1089 |
+
425
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 8
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
173,
|
| 1098 |
+
434,
|
| 1099 |
+
826,
|
| 1100 |
+
477
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 8
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
173,
|
| 1109 |
+
486,
|
| 1110 |
+
823,
|
| 1111 |
+
515
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 8
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Diederik P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In Advances in Neural Information Processing Systems, pp. 2575–2583, 2015. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
173,
|
| 1120 |
+
523,
|
| 1121 |
+
823,
|
| 1122 |
+
554
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 8
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "JG Liao and Arthur Berg. Sharpening jensen’s inequality. The American Statistician, 2017. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
176,
|
| 1131 |
+
561,
|
| 1132 |
+
772,
|
| 1133 |
+
578
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 8
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Xuezhe Ma, Yingkai Gao, Zhiting Hu, Yaoliang Yu, Yuntian Deng, and Eduard H. Hovy. Dropout with expectation-linear regularization. CoRR, abs/1609.08017, 2016. URL http://arxiv. org/abs/1609.08017. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
174,
|
| 1142 |
+
585,
|
| 1143 |
+
828,
|
| 1144 |
+
630
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 8
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Chris J Maddison, John Lawson, George Tucker, Nicolas Heess, Mohammad Norouzi, Andriy Mnih, Arnaud Doucet, and Yee Teh. Filtering variational objectives. In Advances in Neural Information Processing Systems, pp. 6573–6583, 2017. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
176,
|
| 1153 |
+
638,
|
| 1154 |
+
825,
|
| 1155 |
+
681
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 8
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Gábor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language models. arXiv preprint arXiv:1707.05589, 2017. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
169,
|
| 1164 |
+
690,
|
| 1165 |
+
825,
|
| 1166 |
+
720
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 8
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and optimizing lstm language models. arXiv preprint arXiv:1708.02182, 2017. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
168,
|
| 1175 |
+
728,
|
| 1176 |
+
825,
|
| 1177 |
+
758
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 8
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Ian Osband. Risk versus uncertainty in deep learning: Bayes, bootstrap and the dangers of dropout. In NIPS Bayesian Deep Learning Workshop, 2016. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
171,
|
| 1186 |
+
767,
|
| 1187 |
+
825,
|
| 1188 |
+
796
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 8
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Marius Pachitariu and Maneesh Sahani. Regularization and nonlinearities for neural language models: when are they needed? arXiv preprint arXiv:1301.5650, 2013. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
171,
|
| 1197 |
+
805,
|
| 1198 |
+
825,
|
| 1199 |
+
834
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 8
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. arXiv preprint arXiv:1701.06548, 2017. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
843,
|
| 1209 |
+
825,
|
| 1210 |
+
886
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 8
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Stanislau Semeniuta, Aliaksei Severyn, and Erhardt Barth. Recurrent dropout without memory loss. arXiv preprint arXiv:1603.05118, 2016. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
174,
|
| 1219 |
+
895,
|
| 1220 |
+
823,
|
| 1221 |
+
924
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 8
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014. \nRichard E Turner and Maneesh Sahani. Two problems with variational expectation maximisation for time-series models. Bayesian Time series models, 1(3.1):3–1, 2011. \nSida Wang and Christopher Manning. Fast dropout training. In international conference on machine learning, pp. 118–126, 2013. \nDavid Warde-Farley, Ian J Goodfellow, Aaron Courville, and Yoshua Bengio. An empirical analysis of dropout in piecewise linear networks. arXiv preprint arXiv:1312.6197, 2013. \nZiang Xie, Sida I Wang, Jiwei Li, Daniel Lévy, Aiming Nie, Dan Jurafsky, and Andrew Y Ng. Data noising as smoothing in neural network language models. arXiv preprint arXiv:1703.02573, 2017. \nZhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. Breaking the softmax bottleneck: a high-rank rnn language model. arXiv preprint arXiv:1711.03953, 2017. \nWojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014. \nGeorge Kingsley Zipf. The psycho-biology of language. Houghton, Mifflin, 1935. \nKonrad Zolna, Devansh Arpit, Dendi Suhubdy, and Yoshua Bengio. Fraternal dropout. arXiv preprint arXiv:1711.00066, 2017. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
171,
|
| 1230 |
+
103,
|
| 1231 |
+
826,
|
| 1232 |
+
436
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 9
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "APPENDIX A VARIATIONAL DROPOUT WITH NON-SHARED MASKS ",
|
| 1239 |
+
"text_level": 1,
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
174,
|
| 1242 |
+
103,
|
| 1243 |
+
735,
|
| 1244 |
+
118
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 10
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "If $q$ and $p$ are redefined for the non-shared setting to be products of identical and independent, per time step factors, neither term of the variational objective requires rethinking: the MC approximation still works since $q$ is easy to sample from, while the KL term becomes a sum of componentwise KL divergences and can still be implemented as weight decay. Consequently, both shared and non-shared masks fit into the variational framework. For a detailed derivation see Appendix B. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
174,
|
| 1253 |
+
133,
|
| 1254 |
+
825,
|
| 1255 |
+
205
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 10
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "In related works, Pachitariu & Sahani (2013) in their investigation of regularisation of standard RNN based language models dismiss applying dropout to recurrent connections “to avoid introducing instabilities into the recurrent part of the LMs”. Bayer et al. (2013) echo this claim about RNNs, which is then cited by Zaremba et al. (2014), but their work is based on LSTMs not standard RNNs. Finally, Gal & Ghahramani (2016b) cite all of the above but also work with LSTMs. Their results indicate a large, about 15 perplexity point advantage to shared mask dropout for language modelling on the Penn Treebank (PTB) corpus (see Fig. 2 in their paper). ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
174,
|
| 1264 |
+
212,
|
| 1265 |
+
825,
|
| 1266 |
+
310
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 10
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "Our experimental results obtained with careful and extensive hyperparameter tuning, listed in Table 5, indicate only a small difference between the two which is in agreement with the empirical study of Semeniuta et al. (2016). ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
176,
|
| 1275 |
+
315,
|
| 1276 |
+
823,
|
| 1277 |
+
358
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 10
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "table",
|
| 1283 |
+
"img_path": "images/6f5546639e8f20fb0827c3f0478a8e60c34395c81c5b3e62a771d9eb3187b54f.jpg",
|
| 1284 |
+
"table_caption": [
|
| 1285 |
+
"Table 5: Validation and test set perplexities on PTB with shared (S) or non-shared (NS) dropout masks for a small, 1 layer and a large, 4 layer LSTM with 10 and 24 million weights, respectively. Non-shared masks perform nearly as well as shared masks and as we have seen neither is “more variational” than the other. "
|
| 1286 |
+
],
|
| 1287 |
+
"table_footnote": [],
|
| 1288 |
+
"table_body": "<table><tr><td>dataset</td><td colspan=\"2\">10M</td><td colspan=\"2\">24M</td></tr><tr><td></td><td>S</td><td>NS</td><td>S</td><td>NS</td></tr><tr><td>validation</td><td>59.4</td><td>60.2</td><td>57.5</td><td>58.3</td></tr><tr><td>test</td><td>57.5</td><td>58.6</td><td>56.0</td><td>56.9</td></tr></table>",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
375,
|
| 1291 |
+
422,
|
| 1292 |
+
620,
|
| 1293 |
+
497
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 10
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "In any case, non-shared masks, in addition to being variational, are also surprisingly competitive with shared masks for LSTMs (we make no claims about standard RNNs). We also tested whether embedding dropout (in which dropout is applied to entire vectors in the input embedding lookup table) proposed by Gal & Ghahramani (2016b) improves results, and find that embedding dropout does not offer any improvement on top of input dropout. ",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
173,
|
| 1302 |
+
512,
|
| 1303 |
+
825,
|
| 1304 |
+
584
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 10
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "APPENDIX B DERIVATION OF VARIATIONAL DROPOUT WITH NON-SHARED MASKS ",
|
| 1311 |
+
"text_level": 1,
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
176,
|
| 1314 |
+
606,
|
| 1315 |
+
802,
|
| 1316 |
+
638
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 10
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "In this section, we formulate naive (i.e. non-shared mask) dropout in the variational setting. In contrast to the shared mask case, where $\\omega$ was a single set of weights, here $\\omega ^ { 1 : T }$ (or $\\omega$ , for short) has a set of weights for each time step that differ in their dropout masks. The variational posterior $q ( \\omega )$ and the prior $p ( \\omega )$ are both products of identical distributions over time: ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
174,
|
| 1325 |
+
655,
|
| 1326 |
+
825,
|
| 1327 |
+
713
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 10
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "equation",
|
| 1333 |
+
"img_path": "images/f5e91882f32c5b20d71d633e14f1b1ddbfd3c066b5789840accbd68f884f1edf.jpg",
|
| 1334 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle q ( \\omega ^ { 1 : T } ) = \\prod _ { t = 1 } ^ { T } q ^ { \\prime } ( \\omega ^ { t } ) = \\prod _ { t = 1 } ^ { T } \\big [ p \\mathcal N ( \\omega ^ { t } | 0 , \\sigma ^ { 2 } ) + ( 1 - p ) \\mathcal N ( \\omega ^ { t } | \\Theta , \\sigma ^ { 2 } ) \\big ] } \\\\ { \\displaystyle p ( \\omega ^ { 1 : T } ) = \\prod _ { t = 1 } ^ { T } p ^ { \\prime } ( \\omega ^ { t } ) = \\prod _ { t = 1 } ^ { T } \\mathcal N ( \\omega ^ { t } | 0 , \\sigma _ { p } ^ { 2 } ) } \\end{array}\n$$",
|
| 1335 |
+
"text_format": "latex",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
274,
|
| 1338 |
+
722,
|
| 1339 |
+
723,
|
| 1340 |
+
810
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 10
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "An unbiased approximation to the integrals in Eq. 1 is based on a single, easy to obtain sample $\\hat { \\omega } \\sim q ( \\omega )$ : ",
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
169,
|
| 1349 |
+
816,
|
| 1350 |
+
823,
|
| 1351 |
+
847
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 10
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "equation",
|
| 1357 |
+
"img_path": "images/4af7143a43070ae07409a66ffe0b17200fd5cbdcb31bd372af36a9f0a9d70b01.jpg",
|
| 1358 |
+
"text": "$$\n\\int q ( \\omega ) \\ln p ( y | x , \\omega ) d \\omega \\approx \\ln p ( y | x , \\hat { \\omega } )\n$$",
|
| 1359 |
+
"text_format": "latex",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
370,
|
| 1362 |
+
854,
|
| 1363 |
+
625,
|
| 1364 |
+
887
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Showing that the KL term can still be approximated with weight decay with non-shared masks is not much more involved. Both distributions are products of densities over independent random variables, ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
174,
|
| 1373 |
+
895,
|
| 1374 |
+
823,
|
| 1375 |
+
924
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 10
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "so the componentwise KL divergencies sum. In particular: ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
173,
|
| 1384 |
+
102,
|
| 1385 |
+
558,
|
| 1386 |
+
119
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 11
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "equation",
|
| 1392 |
+
"img_path": "images/5abf590292fcaf13344df4e894168b6179a1b5617578eeb07404273bfbce8be9.jpg",
|
| 1393 |
+
"text": "$$\n\\begin{array} { r l } { { \\operatorname { E I } ( \\{ \\boldsymbol { g } ( \\omega ) \\} \\| \\boldsymbol { \\rho } ( \\omega ) ) = \\int ( \\prod _ { t = 1 } ^ { T } q ^ { \\prime } ( \\omega ^ { * } ) ) \\ln \\prod _ { t = 1 } ^ { T } \\dot { q } ^ { \\prime } ( \\omega ^ { * } ) } } \\\\ & { = \\int ( \\prod _ { t = 1 } ^ { T } q ^ { \\prime } ( \\omega ^ { * } ) ) \\frac { T } { \\epsilon = 1 } \\ln \\frac { q ^ { \\prime } ( \\omega ^ { * } ) } { \\tilde { p } ^ { \\prime } ( \\omega ^ { * } ) } d \\omega } \\\\ & { = \\sum _ { t = 1 } ^ { T } \\int ( \\prod _ { t = 1 } ^ { T } q ^ { \\prime } ( \\omega ^ { * } ) ) \\ln \\frac { q ^ { \\prime } ( \\omega ^ { * } ) } { \\tilde { p } ^ { \\prime } ( \\omega ^ { * } ) } d \\omega } \\\\ & { = \\frac { \\sum } { t = 1 } ^ { T } \\int [ \\frac { 1 } { \\epsilon = 1 } ^ { T } q ^ { \\prime } ( \\omega ^ { * } ) ] \\ln \\frac { q ^ { \\prime } ( \\omega ^ { * } ) } { \\tilde { p } ^ { \\prime } ( \\omega ^ { * } ) } d \\omega } \\\\ & { = \\frac { \\sum } { t = 1 } ^ { T } \\int [ \\frac { 1 } { \\epsilon = 1 , \\epsilon \\epsilon \\epsilon } q ^ { \\prime } ( \\omega ^ { * } ) ] [ \\dot { q } ^ { \\prime } ( \\omega ^ { * } ) \\ln \\frac { \\dot { q } ^ { \\prime } ( \\omega ^ { * } ) } { \\tilde { p } ^ { \\prime } ( \\omega ^ { * } ) } ] d \\omega } \\\\ & { = \\frac { \\sum } { t = 1 } ^ { T } [ \\int \\frac { 1 } { \\epsilon = 1 , \\epsilon \\epsilon } q ^ { \\prime } ( \\omega ^ { * } ) d \\omega ^ { * } ] [ \\int q ^ { \\prime } ( \\omega ) \\ln \\frac { q ^ { \\prime } ( \\omega ^ { * } ) } { \\tilde { p } ^ { \\prime } ( \\omega ^ { * } ) } d \\omega ] } \\\\ & { = \\Gamma \\cdot \\mathbb { E } [ \\int _ { \\epsilon = 1 } ^ { T } q ^ { \\prime } ( \\omega ) \\mathrm { l i s } q ^ { \\prime } ( \\omega ^ { * } ) d \\omega ^ { * } ] } \\\\ & { = T \\cdot \\mathbb { E } [ \\mathrm { L G } [ ( \\omega ) \\mathrm { l i s } / \\omega ^ { * } ) ] } \\end{array}\n$$",
|
| 1394 |
+
"text_format": "latex",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
259,
|
| 1397 |
+
132,
|
| 1398 |
+
735,
|
| 1399 |
+
375
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 11
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "text",
|
| 1405 |
+
"text": "We partitioned the variables into two mutually exclusive sets $w ^ { t }$ and its complement $w ^ { \\backslash t }$ , and split the multiple integral using Fubini’s theorem (or, equivalently, using the expectation of independent random variables rule). After the split, the first integral is trivially 1 and the second has no dependence on $T$ . ",
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
173,
|
| 1408 |
+
387,
|
| 1409 |
+
825,
|
| 1410 |
+
444
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 11
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"text": "What we end up with is a sum of identical KL terms of the same distributions as in the shared mask case, so the full KL can be approximated with weight decay. ",
|
| 1417 |
+
"bbox": [
|
| 1418 |
+
173,
|
| 1419 |
+
450,
|
| 1420 |
+
823,
|
| 1421 |
+
479
|
| 1422 |
+
],
|
| 1423 |
+
"page_idx": 11
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "text",
|
| 1427 |
+
"text": "APPENDIX C DERIVATION OF THE MAP LOWER BOUND FOR THE ARITHMETIC MODEL ",
|
| 1428 |
+
"text_level": 1,
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
173,
|
| 1431 |
+
506,
|
| 1432 |
+
728,
|
| 1433 |
+
540
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 11
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "We can rewrite the posterior as: ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
174,
|
| 1442 |
+
559,
|
| 1443 |
+
382,
|
| 1444 |
+
574
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 11
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "equation",
|
| 1450 |
+
"img_path": "images/a45c49b41adfd6c67b0ad91c6d77dcabbe14ec4ba6e8e0188b7e706fae334a09.jpg",
|
| 1451 |
+
"text": "$$\n\\begin{array} { l } { p ( \\Theta | X , Y ) = \\displaystyle \\frac { p ( X , Y | \\Theta ) p ( \\Theta ) } { p ( X , Y ) } } \\\\ { \\propto p ( X , Y | \\Theta ) p ( \\Theta ) } \\\\ { = \\displaystyle \\int p ( Y | X , \\omega , \\Theta ) p ( \\omega | \\Theta , X ) p ( \\Theta | X ) p ( X ) d \\omega } \\\\ { \\propto \\displaystyle \\int p ( Y | X , \\omega ) p ( \\omega | \\Theta ) p ( \\Theta ) d \\omega } \\end{array}\n$$",
|
| 1452 |
+
"text_format": "latex",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
303,
|
| 1455 |
+
585,
|
| 1456 |
+
692,
|
| 1457 |
+
707
|
| 1458 |
+
],
|
| 1459 |
+
"page_idx": 11
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"type": "text",
|
| 1463 |
+
"text": "Moving to the log domain and using Jensen’s inequality allows us to construct a lower bound that is a sum of per data point terms (i.e. something that can be conveniently optimised): ",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
171,
|
| 1466 |
+
715,
|
| 1467 |
+
823,
|
| 1468 |
+
746
|
| 1469 |
+
],
|
| 1470 |
+
"page_idx": 11
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"type": "equation",
|
| 1474 |
+
"img_path": "images/87523adf69e916e0e58837c7f765ee641235811dc1ee01c41ee40da0c646bef5.jpg",
|
| 1475 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\ln p ( \\Theta | X , Y ) = \\ln \\int p ( Y | X , \\omega ) p ( \\omega | \\Theta ) p ( \\Theta ) d \\omega - C _ { M A P } } \\\\ { \\displaystyle \\qquad = \\ln \\int p ( \\omega | \\Theta ) \\prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \\omega ) d \\omega + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle \\qquad \\geqslant \\int p ( \\omega | \\Theta ) \\ln \\prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \\omega ) d \\omega + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle \\qquad = \\sum _ { i = 1 } ^ { N } \\int p ( \\omega | \\Theta ) \\ln p ( y _ { i } | x _ { i } , \\omega ) d \\omega + \\ln p ( \\Theta ) - C _ { M A P } } \\end{array}\n$$",
|
| 1476 |
+
"text_format": "latex",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
274,
|
| 1479 |
+
757,
|
| 1480 |
+
720,
|
| 1481 |
+
924
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 11
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "APPENDIX D DERIVATION OF THE MAP LOWER BOUND FOR THE GEOMETRIC MODEL ",
|
| 1488 |
+
"text_level": 1,
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
176,
|
| 1491 |
+
101,
|
| 1492 |
+
825,
|
| 1493 |
+
136
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 12
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "From Eq. 6 recall that: ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
173,
|
| 1502 |
+
150,
|
| 1503 |
+
321,
|
| 1504 |
+
166
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 12
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "equation",
|
| 1510 |
+
"img_path": "images/5495361d36f5d1cd1d9ef467359278880f0d234c8eba62f481cb5458af2772fd.jpg",
|
| 1511 |
+
"text": "$$\np ( y | x , \\Theta ) = \\frac { \\exp \\left( \\mathbb { E } _ { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } \\ln p ( y | x , \\hat { \\omega } ) \\right) } { Z ( x , \\Theta ) }\n$$",
|
| 1512 |
+
"text_format": "latex",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
356,
|
| 1515 |
+
170,
|
| 1516 |
+
640,
|
| 1517 |
+
205
|
| 1518 |
+
],
|
| 1519 |
+
"page_idx": 12
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"type": "text",
|
| 1523 |
+
"text": "The normalisation constant $Z$ is at most 1, due to the geometric mean being bounded from above by the arithmetic mean on a per class $c$ basis: ",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
173,
|
| 1526 |
+
209,
|
| 1527 |
+
825,
|
| 1528 |
+
238
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 12
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "equation",
|
| 1534 |
+
"img_path": "images/238dc4d405cce57d2a3f259de73c8dfc39f8840ba504cea35bec11b93600c990.jpg",
|
| 1535 |
+
"text": "$$\n\\begin{array} { r l } & { Z ( x , \\Theta ) = \\displaystyle \\sum _ { c = 1 } ^ { C } e x p \\big ( \\underset { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } { \\mathbb { E } } \\ln p ( c | x , \\hat { \\omega } ) \\big ) } \\\\ & { \\qquad \\leqslant \\displaystyle \\sum _ { c = 1 } ^ { C } \\underset { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } { \\mathbb { E } } p ( c | x , \\hat { \\omega } ) } \\\\ & { \\qquad = \\underset { \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } { \\mathbb { E } } \\displaystyle \\sum _ { c = 1 } ^ { C } p ( c | x , \\hat { \\omega } ) = 1 } \\end{array}\n$$",
|
| 1536 |
+
"text_format": "latex",
|
| 1537 |
+
"bbox": [
|
| 1538 |
+
354,
|
| 1539 |
+
242,
|
| 1540 |
+
642,
|
| 1541 |
+
375
|
| 1542 |
+
],
|
| 1543 |
+
"page_idx": 12
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"type": "text",
|
| 1547 |
+
"text": "Since this a conditional model, we can rewrite the posterior as: ",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
171,
|
| 1550 |
+
376,
|
| 1551 |
+
586,
|
| 1552 |
+
392
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 12
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "equation",
|
| 1558 |
+
"img_path": "images/5e13cf075113a378b5fef1a9e82af8bfa8d57ff3ae52bbc02725b2ddb28a5cf2.jpg",
|
| 1559 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle p ( \\Theta | X , Y ) = \\frac { p ( X , Y | \\Theta ) p ( \\Theta ) } { p ( X , Y ) } } \\\\ { \\displaystyle \\propto p ( X , Y | \\Theta ) p ( \\Theta ) } \\\\ { \\displaystyle = p ( Y | X , \\Theta ) p ( X | \\Theta ) p ( \\Theta ) } \\\\ { \\displaystyle \\propto p ( Y | X , \\Theta ) p ( \\Theta ) } \\end{array}\n$$",
|
| 1560 |
+
"text_format": "latex",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
369,
|
| 1563 |
+
395,
|
| 1564 |
+
629,
|
| 1565 |
+
486
|
| 1566 |
+
],
|
| 1567 |
+
"page_idx": 12
|
| 1568 |
+
},
|
| 1569 |
+
{
|
| 1570 |
+
"type": "text",
|
| 1571 |
+
"text": "$p ( X | \\Theta )$ is dropped in the last step as it is constant. Moving to the log domain once again: ",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
169,
|
| 1574 |
+
487,
|
| 1575 |
+
759,
|
| 1576 |
+
502
|
| 1577 |
+
],
|
| 1578 |
+
"page_idx": 12
|
| 1579 |
+
},
|
| 1580 |
+
{
|
| 1581 |
+
"type": "equation",
|
| 1582 |
+
"img_path": "images/04ebaf3aa9bbee84aff1665ed219a3360b4282e78b086470a994c7035231b404.jpg",
|
| 1583 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\ln p ( \\Theta | X , Y ) = \\ln p ( Y | X , \\Theta ) + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle = \\ln \\prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \\Theta ) + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle = \\sum _ { i = 1 } ^ { N } \\left[ _ { \\xi \\sim p ( \\omega | \\Theta ) } \\ln p ( y _ { i } | x _ { i } , \\tilde { \\omega } ) - \\ln ( Z ( x _ { i } , \\Theta ) ) \\right] + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle \\geqslant \\sum _ { i = 1 } ^ { N } \\frac { \\mathbb { P } } { \\delta \\ - \\nu p ( \\omega | \\Theta ) } \\ln p ( y _ { i } | x _ { i } , \\tilde { \\omega } ) + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle = \\sum _ { i = 1 } ^ { N } \\int p ( \\omega | \\Theta ) \\ln p ( y _ { i } | x _ { i } , \\Theta ) d \\omega + \\ln p ( \\Theta ) - C _ { M A P } } \\end{array}\n$$",
|
| 1584 |
+
"text_format": "latex",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
220,
|
| 1587 |
+
506,
|
| 1588 |
+
776,
|
| 1589 |
+
702
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 12
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "where the lower bound arises due to $\\forall i \\colon Z ( x _ { i } , \\Theta ) \\leqslant 1$ . ",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
173,
|
| 1598 |
+
705,
|
| 1599 |
+
534,
|
| 1600 |
+
722
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 12
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "APPENDIX E DERIVATION OF THE MAP LOWER BOUND FOR THE POWER MEAN FAMILY ",
|
| 1607 |
+
"text_level": 1,
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
176,
|
| 1610 |
+
739,
|
| 1611 |
+
790,
|
| 1612 |
+
773
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 12
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "In $\\ S 3 . 2$ we proved that $\\forall i \\colon Z ( x _ { i } , \\Theta ) \\leqslant 1$ . Starting from $p ( \\Theta | X , Y ) \\propto p ( Y | X , \\Theta ) p ( \\Theta )$ just like in the geometric case, we derive a lower bound in the log domain: ",
|
| 1619 |
+
"bbox": [
|
| 1620 |
+
173,
|
| 1621 |
+
787,
|
| 1622 |
+
823,
|
| 1623 |
+
818
|
| 1624 |
+
],
|
| 1625 |
+
"page_idx": 12
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "equation",
|
| 1629 |
+
"img_path": "images/7537cfe4f4b687f4152e2ee452ef0086a061bbe0c143876cdc1d78bc9f669e3b.jpg",
|
| 1630 |
+
"text": "$$\n\\begin{array} { l } { \\ln p ( \\Theta | X , Y ) = \\ln p ( Y | X , \\Theta ) + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle \\qquad = \\ln \\prod _ { i = 1 } ^ { N } p ( y _ { i } | x _ { i } , \\Theta ) + \\ln p ( \\Theta ) - C _ { M A P } } \\\\ { \\displaystyle \\qquad = \\sum _ { i = 1 } ^ { N } \\left[ \\ln \\sqrt \\ [ 6 ] { \\underset { \\displaystyle \\hat { \\omega } \\sim p ( \\omega | \\Theta ) } { \\mathbb { E } } p ( y _ { i } | x _ { i } , \\hat { \\omega } ) ^ { \\alpha } } - \\ln ( Z ( x _ { i } , \\Theta ) ) \\right] + \\ln p ( \\Theta ) - C _ { M A P } } \\end{array}\n$$",
|
| 1631 |
+
"text_format": "latex",
|
| 1632 |
+
"bbox": [
|
| 1633 |
+
210,
|
| 1634 |
+
820,
|
| 1635 |
+
784,
|
| 1636 |
+
930
|
| 1637 |
+
],
|
| 1638 |
+
"page_idx": 12
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "equation",
|
| 1642 |
+
"img_path": "images/9ea93396c18e141d658527b49bc88138f7dd844522eff9c0a0e2cffe0619c267.jpg",
|
| 1643 |
+
"text": "$$\n\\begin{array} { r l } & { \\lesssim \\displaystyle \\sum _ { i = 1 } ^ { N } \\displaystyle \\prod _ { \\ell = \\mathrm { e } p ( \\omega | \\Theta ) } p ( y | x _ { i } | x _ { i } , \\hat { \\omega } ) ^ { \\alpha } + \\operatorname* { l n } p ( \\Theta ) - C _ { M i } , } \\\\ & { = \\displaystyle \\sum _ { i = 1 } ^ { N } \\displaystyle \\frac { 1 } { \\alpha } \\ln \\bigg ( \\int _ { ( - \\mathrm { e } \\mathbb { P } ^ { \\alpha } ( \\omega | \\Theta ) ) } p ( y _ { i } | x _ { i } , \\hat { \\omega } ) ^ { \\alpha } \\bigg ) + \\operatorname* { l n } p ( \\Theta ) - C _ { M i } , } \\\\ & { \\gg \\displaystyle \\sum _ { i = 1 } ^ { N } \\frac { 1 } { \\alpha } \\int _ { ( - \\mathrm { e } \\mathbb { P } ^ { \\alpha } ( i \\omega | \\Theta ) ) } \\ln p ( y _ { i } | x _ { i } , \\hat { \\omega } ) ^ { \\alpha } + \\operatorname* { l n } p ( \\Theta ) - C _ { M i } , } \\\\ & { = \\displaystyle \\sum _ { i = 1 } ^ { N } \\mathrm { e } \\int _ { ( - \\mathrm { e } \\mathbb { P } ^ { \\alpha } ( i \\omega | \\Theta ) ) } \\ln p ( y _ { i } | x _ { i } , \\hat { \\omega } ) + \\operatorname* { l n } p ( \\Theta ) - C _ { M i } , } \\\\ & { = \\displaystyle \\sum _ { i = 1 } ^ { N } \\int _ { \\mathbb { P } ^ { \\alpha } ( i \\omega | \\Theta ) } \\ln p ( y _ { i } | x _ { i } , \\hat { \\omega } ) + \\operatorname* { l n } p ( \\Theta ) - C _ { M i } , } \\\\ & { = \\displaystyle \\sum _ { i = 1 } ^ { N } \\int _ { \\mathbb { P } ^ { \\alpha } ( i \\omega | \\Theta ) } \\ln p ( y _ { i } | x _ { i } , \\omega ) d \\omega + \\operatorname* { l n } p ( \\Theta ) - C _ { M i } , } \\end{array}\n$$",
|
| 1644 |
+
"text_format": "latex",
|
| 1645 |
+
"bbox": [
|
| 1646 |
+
303,
|
| 1647 |
+
99,
|
| 1648 |
+
681,
|
| 1649 |
+
321
|
| 1650 |
+
],
|
| 1651 |
+
"page_idx": 13
|
| 1652 |
+
}
|
| 1653 |
+
]
|
parse/train/rklwwo05Ym/rklwwo05Ym_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rklwwo05Ym/rklwwo05Ym_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|