Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/By-7dz-AZ/By-7dz-AZ.md +251 -0
- parse/train/By-7dz-AZ/By-7dz-AZ_content_list.json +1367 -0
- parse/train/By-7dz-AZ/By-7dz-AZ_middle.json +0 -0
- parse/train/By-7dz-AZ/By-7dz-AZ_model.json +0 -0
- parse/train/BylQSxHFwr/BylQSxHFwr.md +292 -0
- parse/train/BylQSxHFwr/BylQSxHFwr_content_list.json +1556 -0
- parse/train/BylQSxHFwr/BylQSxHFwr_middle.json +0 -0
- parse/train/BylQSxHFwr/BylQSxHFwr_model.json +0 -0
- parse/train/HysBZSqlx/HysBZSqlx.md +189 -0
- parse/train/HysBZSqlx/HysBZSqlx_content_list.json +934 -0
- parse/train/HysBZSqlx/HysBZSqlx_middle.json +0 -0
- parse/train/HysBZSqlx/HysBZSqlx_model.json +0 -0
- parse/train/Skgy464Kvr/Skgy464Kvr.md +314 -0
- parse/train/Skgy464Kvr/Skgy464Kvr_content_list.json +1674 -0
- parse/train/Skgy464Kvr/Skgy464Kvr_middle.json +0 -0
- parse/train/Skgy464Kvr/Skgy464Kvr_model.json +0 -0
- parse/train/Sklgs0NFvr/Sklgs0NFvr.md +258 -0
- parse/train/Sklgs0NFvr/Sklgs0NFvr_content_list.json +1382 -0
- parse/train/Sklgs0NFvr/Sklgs0NFvr_middle.json +0 -0
- parse/train/Sklgs0NFvr/Sklgs0NFvr_model.json +0 -0
parse/train/By-7dz-AZ/By-7dz-AZ.md
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A FRAMEWORK FOR THE QUANTITATIVE EVALUATION OF DISENTANGLED REPRESENTATIONS
|
| 2 |
+
|
| 3 |
+
Christopher K. I. Williams
|
| 4 |
+
|
| 5 |
+
Cian Eastwood School of Informatics University of Edinburgh, UK c.eastwood@ed.ac.uk
|
| 6 |
+
|
| 7 |
+
School of Informatics University of Edinburgh, UK and Alan Turing Institute, London, UK ckiw@inf.ed.ac.uk
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Recent AI research has emphasised the importance of learning disentangled representations of the explanatory factors behind data. Despite the growing interest in models which can learn such representations, visual inspection remains the standard evaluation metric. While various desiderata have been implied in recent definitions, it is currently unclear what exactly makes one disentangled representation better than another. In this work we propose a framework for the quantitative evaluation of disentangled representations when the ground-truth latent structure is available. Three criteria are explicitly defined and quantified to elucidate the quality of learnt representations and thus compare models on an equal basis. To illustrate the appropriateness of the framework, we employ it to compare quantitatively the representations learned by recent state-of-the-art models.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
To gain a conceptual understanding of our world, models must first learn to understand the factorial structure of low-level sensory input without supervision (Bengio et al., 2013; Lake et al., 2016; Higgins et al., 2017). As argued in several notable works (Desjardins et al., 2012; Bengio et al., 2013; Chen et al., 2016; Higgins et al., 2017), this understanding can only be gained if the model learns to disentangle the underlying explanatory factors hidden in unlabelled input.
|
| 16 |
+
|
| 17 |
+
A disentangled representation is generally described as one which separates the factors of variation, explicitly representing the important attributes of the data (Desjardins et al., 2012; Bengio et al., 2013; Cohen & Welling, 2014b; Kulkarni et al., 2015; Chen et al., 2016; Higgins et al., 2017). For example, given an image dataset of human faces, a disentangled representation may consist of separate dimensions (or features) for the face size, hairstyle, eye colour, facial expression, etc. Ultimately, we would like to learn representations that are invariant to irrelevant changes in the data. However, the relevant downstream tasks are generally unknown at training time and hence it is difficult to deduce a priori which features will be useful. Thus, the most robust method is to disentangle as many factors of variation as possible, discarding as little information as possible (Desjardins et al., 2012; Bengio et al., 2013).
|
| 18 |
+
|
| 19 |
+
Despite the expanding literature on models which seek to learn disentangled representations (Desjardins et al., 2012; Reed et al., 2014; Zhu et al., 2014; Cheung et al., 2014; Larsen et al., 2015; Makhzani et al., 2015; Yang et al., 2015; Kulkarni et al., 2015; Whitney et al., 2016; Chen et al., 2016; Higgins et al., 2017; Denton & Birodkar, 2017), visual inspection remains the standard evaluation metric. While the work of Higgins et al. (2017) partially addresses this issue (as discussed in section 3) and various definitions have implied additional desiderata like interpretability (Bengio et al., 2013; Kulkarni et al., 2015; Chen et al., 2016), invariance (Goodfellow et al., 2009; Cohen & Welling, 2014a;b; Lenc & Vedaldi, 2015) and equivariance (Kivinen & Williams, 2011; Lenc & Vedaldi, 2015; Jayaraman & Grauman, 2015), current research generally lacks a clear metric for quantitatively evaluating and comparing disentangled representations.
|
| 20 |
+
|
| 21 |
+
In this work we propose a framework for the quantitative evaluation of disentangled representations when the ground-truth latent structure is available. To elucidate the quality of learnt representations and thus compare models on an equal basis, desiderata of disentangled representations are explicitly defined and quantified. These unified desiderata help define the disentangled representations which we seek and remove the need for a subjective visual evaluation by a human arbiter. To illustrate the appropriateness of this framework, we employ it to compare quantitatively the representations learned by principal components analysis (PCA), the variational autoencoder (VAE, Kingma & Welling 2013), $\beta$ -VAE (Higgins et al., 2017) and information maximising generative adversarial networks (InfoGAN, Chen et al. 2016).
|
| 22 |
+
|
| 23 |
+
In the remainder of this paper, we begin by detailing the theoretical framework and how it facilitates the quantitative evaluation of disentangled representations. Next we review related desiderata and metrics for evaluating disentangled representations. Finally, we describe the dataset and model specifics before presenting the experimental results.
|
| 24 |
+
|
| 25 |
+
# 2 THEORETICAL FRAMEWORK
|
| 26 |
+
|
| 27 |
+
Models for disentangled factor learning seek a compact data representation or code $^ c$ of dimension $D$ , which consists of disentangled and interpretable latent variables. For synthetic data, the $K$ - dimensional generative factors $_ { z }$ are designed to be an ideal such representation. Thus if $D = K$ the ideal disentangled code $c ^ { * }$ should be some (scaled) permutation of $_ { z }$ , i.e. they should be related by a generalised permutation matrix (or monomial matrix1). If $D > K$ , one would expect to obtain this monomial structure along with a number of ‘dead’ or irrelevant units in $^ c$ which are not predictive of $/$ informative about $_ { z }$ . Thus, we can quantitatively evaluate the codes learned by a given model $M$ using the following steps:
|
| 28 |
+
|
| 29 |
+
1. Train $M$ on a synthetic dataset with generative factors $_ { z }$
|
| 30 |
+
2. Retrieve $^ c$ for each sample $_ { \textbf { \em x } }$ in the dataset $( { \pmb c } = M ( { \pmb x } ) )$ )
|
| 31 |
+
3. Train regressor $f$ to predict $_ z$ given $\pmb { c } \left( \hat { \pmb { z } } = f ( \pmb { c } ) \right)$
|
| 32 |
+
4. Quantify $f$ ’s deviation from the ideal mapping and the prediction error
|
| 33 |
+
|
| 34 |
+
We now detail the proposed evaluation metrics, i.e., steps 3 and 4. We train $K$ regressors to predict the value of $K$ generative factors. The regressor $f _ { j }$ predicts $z _ { j }$ given $^ c$ , that is, it learns a mapping $f _ { j } ( \pmb { c } ) : \mathbb { R } ^ { D } \mathbb { R } ^ { 1 }$ . We use regressors that can provide a matrix of relative importances $R$ , where $R _ { i j }$ denotes the relative importance of $c _ { i }$ in predicting $z _ { j }$ (see section 4.3). This allows us to explicitly define and quantify three criteria of disentangled representations or codes which are implicit in recent definitions (Desjardins et al., 2012; Bengio et al., 2013; Kulkarni et al., 2015; Chen et al., 2016; Higgins et al., 2017), namely disentanglement, completeness and informativeness.
|
| 35 |
+
|
| 36 |
+
Disentanglement. The degree to which a representation factorises or disentangles the underly
|
| 37 |
+
ing factors of variation, with each variable (or dimension) capturing at most one generative factor. $D _ { i }$ ode variable denotes the $c _ { i }$ is qtrop ntifiand $D _ { i } = ( 1 - \bar { H } _ { K } ( P _ { i . } ) )$ , whereotes the
|
| 38 |
+
$\begin{array} { r } { H _ { K } ( P _ { i . } ) = - \sum _ { k = 0 } ^ { K - 1 } P _ { i k } \log _ { K } P _ { i k } } \end{array}$ $P _ { i j } = \left. R _ { i j } \right/ \sum _ { k = 0 } ^ { K - 1 } { R _ { i k } }$ $c _ { i }$ $z _ { j }$ $c _ { i }$
|
| 39 |
+
erative factor, the score will be 1. If $c _ { i }$ is equally important for predicting all generative factors, the
|
| 40 |
+
score will be 0. $D _ { i }$ can be visualised by examining row $i$ of the Hinton diagrams as in Figure 3.
|
| 41 |
+
|
| 42 |
+
In order to account for dead or irrelevant units in $^ c$ , relative code variable importance $\begin{array} { r l } { \rho _ { i } } & { { } = } \end{array}$ $\textstyle \sum _ { j } R _ { i j } / \sum _ { i j } R _ { i j }$ is used to construct a weighted average $\sum _ { i } \rho _ { i } D _ { i }$ expressing overall disentanglement. If a code variable $c _ { i }$ is irrelevant for predicting $_ z$ , then its $\rho _ { i }$ (and thus contribution to the overall disentanglement) will be near zero.
|
| 43 |
+
|
| 44 |
+
Completeness. The degree to which each underlying factor is captured by a single code variable. where The completeness score $\begin{array} { r } { H _ { D } ( \tilde { P } _ { . j } ) = - \sum _ { d = 0 } ^ { D - 1 } \tilde { P } _ { d j } \log _ { D } \tilde { P } _ { i j } } \end{array}$ $C _ { j }$ in capturing generative factor denotes the entropy of the $z _ { j }$ is quantified by $\tilde { P } _ { \cdot j }$ distribution. If a single code $C _ { j } \stackrel { - } { = } ( 1 - H _ { D } ( \tilde { P } _ { . j } ) )$ , variable contributes to $z _ { j }$ ’s prediction, the score will be 1 (complete). If all code variables equally contribute to $z _ { j }$ ’s prediction, the score will be 0 (maximally overcomplete). $C _ { j }$ can be visualised by examining column $j$ of the Hinton diagrams as in Figure 3.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 1: Visualising disentanglement and completeness.
|
| 48 |
+
|
| 49 |
+
Informativeness. The amount of information that a representation captures about the underlying factors of variation. To be useful for natural tasks which require knowledge of the important attributes of the data (e.g. object recognition), representations must ultimately capture information about the underlying factors of variation (Bengio et al., 2013; Chen et al., 2016). The informativeness of code $^ c$ about generative factor $z _ { j }$ is quantified by the prediction error $E ( z _ { j } , \hat { z } _ { j } )$ (averaged over the dataset), where $E$ is an appropriate error function and $\hat { z } _ { j } = f _ { j } ( \pmb { c } )$ . It is important to note that the prediction error $E ( z _ { j } , \hat { z } _ { j } )$ , and thus this informativeness metric, is dependent on the capacity of $f$ , with linear regressors only capable of extracting information about $_ z$ in $^ c$ that is explicitly represented. Hence this informativeness metric is also dependent on a model’s ability to explicitly represent information about $_ z$ in $^ c$ , which in turn is dependent on the model’s ability to disentangle the underlying factors of variation $( z )$ . Thus the informativeness metric has some overlap with the disentanglement metric, with the size of the overlap determined by the capacity of $f$ (no overlap with infinite capacity).
|
| 50 |
+
|
| 51 |
+
While the disentanglement score quantifies the number of generative factors captured by a given code variable, the completeness score quantifies the number of code variables which capture a given generative factor. Together, these scores quantify the deviation from the ideal one-to-one mapping between $_ z$ and $K$ of the dimensions in $^ c$ . Figure 1 illustrates this idea.
|
| 52 |
+
|
| 53 |
+
Despite the overlap between the disentanglement and informativeness metrics with low-capacity linear regressors, these are ultimately distinct criteria. While disentanglement requires each code variable in $^ c$ to be only perturbed by changes in a single $z$ , informativeness requires these perturbations to be systematic and thus informative. This motivates the use of non-linear regressors in section 4.3.
|
| 54 |
+
|
| 55 |
+
While the ideal code would be able to explicitly represent each generative factor with a single variable, models with generic priors cannot be expected to learn such complete and explicit codes. For example, generative factors which are drawn from a distribution on a circle cannot be accurately captured by single code variables on which unwrapped prior distributions are imposed. Thus, with generic priors like the standard normal, information about such topologically distinct generative factors may be non-linearly encoded across multiple code variables. Empirical results in Appendix C and (Higgins et al., 2017, fig. 7) support this idea, with several code variables resembling non-linear functions (like the sine and cosine) of the object azimuth. This further motivates the use of non-linear regressors in section 4.3.
|
| 56 |
+
|
| 57 |
+
Our criteria assume that it is possible to recover the latent factors $_ { z }$ from the data. If the data $_ { \textbf { \em x } }$ depends on a linear combination of (some of) the underlying $z$ ’s with a spherically symmetric distribution, then it will only be possible to recover these components up to a rotation matrix. This is the well-known issue of the rotation of factors in the linear factor analysis model (see e.g., Mardia, Kent, and Bibby 1979, sec. 9.6), and also leads to the condition in independent components analysis (ICA) that at most one of the $z$ ’s can be Gaussian (Hyvarinen et al., 2001). In this case, the infor- ¨ mativeness metric remains valid but the disentanglement and completeness metrics do not as they are dependent on the arbitrary rotation which determines $^ c$ ’s alignment with $_ z$ . Although $_ { z }$ may be used to compute the rotation matrix which best aligns $^ c$ and $_ z$ , we ultimately wish to evaluate models which will not have access to $_ z$ at test time.
|
| 58 |
+
|
| 59 |
+
# 3 RELATED WORK
|
| 60 |
+
|
| 61 |
+
The question of how well a learned representation $^ c$ matches the true generative factors $_ { z }$ has been considered in the ‘square’ case of independent components analysis (ICA), where $D = K$ . In the ICA case, the data is generated as $\textstyle { \boldsymbol { x } } = A { \boldsymbol { z } }$ and the learned representation is obtained as $\mathbf { \boldsymbol { c } } = W \mathbf { \boldsymbol { x } }$ , where $A$ is the mixing matrix and $W$ is the learned ‘un-mixing’ matrix. Ideally $P = W A$ will be equal to a permutation matrix. Yang $\&$ Amari (1997, sec. 6.1) propose an error metric to assess how close $P$ is to a permutation matrix2. This metric takes the form
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
E = \sum _ { i } \left( \sum _ { j } \frac { \left| p _ { i j } \right| } { \operatorname* { m a x } _ { k } \left| p _ { i k } \right| } - 1 \right) + \sum _ { j } \left( \sum _ { i } \frac { \left| p _ { i j } \right| } { \operatorname* { m a x } _ { k } \left| p _ { k j } \right| } - 1 \right) ,
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
summing two terms which have similar goals to our disentanglement and completeness scores respectively, although expressed by comparing with the maximum value in the row or column, rather than via an entropic measure. Note that, due to the linear structure of ICA, there is no explicit mapping between $^ c$ and $_ z$ . We report separate scores as they capture distinct criteria and go beyond this metric by handling the non-square case when $D > K$ .
|
| 68 |
+
|
| 69 |
+
Predicting $_ { z }$ from $^ c$ has also been considered previously. Higgins et al. (2017, sec. A.5) use a linear classifier to predict discrete settings of $_ { z }$ and thus quantify the amount of explicit information about $_ z$ in $^ c$ , albeit with a discretisation step which we find unnecessary. Higgins et al. (2017, sec. 3) also propose a disentanglement metric. With this method, one of the generative factors say $z _ { k }$ is held fixed, and pairs of $_ { \textbf { \em x } }$ ’s are drawn, generated with different random $_ { z }$ ’s except for the fixed $z _ { k }$ . Pairwise absolute differences of the resulting codes $\lvert c _ { 1 } - c _ { 2 } \rvert$ are then computed and averaged over repetitions before being used to train a linear classifier to predict which generative factor was held fixed. In our view this is unnecessarily cumbersome—by setting up a regression problem to predict $_ { z }$ from $^ c$ as we have done, the structure of the $R _ { i j }$ matrix can be interrogated to quantify the degree of disentanglement. In addition, this facilitates the quantification of additional criteria, namely completeness and informativeness, without needing to generate any additional datasets.
|
| 70 |
+
|
| 71 |
+
Glorot et al. (2011, fig. 3) predict $_ z$ from $^ c$ using a lasso regressor but only to qualitatively assess disentanglement, visually assessing the overlap of important features for the separate tasks of domain recognition and sentiment classification. Karaletsos et al. (2015) do so with an unspecified regressor, thus quantifying informativeness. In addition, they devise a quantitative metric to determine a model’s ability to disentangle the underlying factors of variation in images. In particular, they predict the order of query-specific oracle triplets of images, where the order indicates image similarity with respect to a query (e.g., ‘Where is the light condition most similar in terms of azimuth?’). However, the proposed metric is specifically designed to evaluate their ‘oracle-prioritized belief network’ and thus overly cumbersome to be used as a generic disentanglement metric.
|
| 72 |
+
|
| 73 |
+
Properties such as invariance and equivariance have been proposed as desiderata for representations or codes (Goodfellow et al., 2009; Kivinen & Williams, 2011; Cohen & Welling, 2014b; Lenc & Vedaldi, 2015; Jayaraman & Grauman, 2015). In our view these qualities arise naturally from a properly disentangled and informative code. Consider, for example, the code of an object which consists of separate variables for its class (e.g., cup, bottle, banana etc.), position, pose, texture etc. If the object is translated, its position code variable(s) will transform accordingly (equivariance), but other code variables will remain invariant.
|
| 74 |
+
|
| 75 |
+
# 4 EXPERIMENTS
|
| 76 |
+
|
| 77 |
+
We employ the framework to compare quantitatively the codes learned by PCA, the VAE, $\beta$ -VAE and InfoGAN. The results can be reproduced with our open source implementation3.
|
| 78 |
+
|
| 79 |
+
# 4.1 DATA
|
| 80 |
+
|
| 81 |
+
We use the graphics renderer described in (Moreno et al., 2016) to generate $2 0 0 , 0 0 0 6 4 \times 6 4$ colour images of an object (teapot) with varying pose and colour (see Figure 2). For simplicity, the camera is centred on the object, the scene background is removed and additional generative factors (shape and lighting) are held constant. Each generative factor is independently sampled from its respective uniform distribution: azimuth $( z _ { 0 } ) \setminus U [ 0 , 2 \pi ]$ , elevation $( \bar { z _ { 1 } } ) \sim U [ \bar { 0 } , \pi / 2 ]$ , $\operatorname { r e d } ( z _ { 2 } ) \sim U [ 0 , 1 ]$ , green $( z _ { 3 } ) \sim U [ 0 , 1 ]$ , $\mathrm { \ u e } ( z _ { 4 } ) \sim U [ 0 , 1 ]$ . We divide the images into training (160,000), validation (20,000) and test (20,000) sets before removing images which contain particular generative factor combinations to faciliate the evaluation of zeroshot performance (see Appendix B.2). This left 142,927, 17,854 and 17,854 images in the training, validation and test sets respectively.
|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
Figure 2: Data samples.
|
| 85 |
+
|
| 86 |
+
# 4.2 MODELS
|
| 87 |
+
|
| 88 |
+
Generative modelling has become one of the leading approaches to unsupervised representation learning, with several recent works imposing additional learning constraints to encourage the model to learn disentangled representations (Desjardins et al., 2012; Reed et al., 2014; Zhu et al., 2014; Cohen & Welling, 2014a; Cheung et al., 2014; Larsen et al., 2015; Makhzani et al., 2015; Chen et al., 2016; Higgins et al., 2017). Of these models, it can be argued that $\beta$ -VAE (Higgins et al., 2017) and InfoGAN (Chen et al., 2016) are the most promising due to their scalability and lack of assumptions about the underling factors of variation. Thus, we evaluate the codes learned by these models and compare them to the VAE $\beta = 1 \AA$ ) and PCA.
|
| 89 |
+
|
| 90 |
+
For fair comparison, we train all models with 10 code variables and use the same network architectures for the VAE, $\beta$ -VAE and InfoGAN. More specifically, we use the same residual networks (ResNets, He et al. 2016) for the encoders/discriminator and the decoders/generator (see Table 2), and train InfoGAN with 10 continous ‘latent codes’(Chen et al., 2016) and 0 noise variables. We found that these ResNets produced the sharpest images and best visual disentanglement for all generative models, outperforming popular architectures for ( $\beta .$ -)VAE (Larsen et al., 2015; Higgins et al., 2017) and InfoGAN (Kulkarni et al., 2015). We fit $\beta = 6$ and $\lambda = 6$ for $\beta$ -VAE and InfoGAN respectively by balancing reconstruction/generation quality and visual disentanglement (see Appendix D), where $\lambda$ is the mutual information coefficient. See Appendix A for further details.
|
| 91 |
+
|
| 92 |
+
# 4.3 REGRESSORS
|
| 93 |
+
|
| 94 |
+
Lasso. We begin with linear regressors and encourage a sparse mapping between $^ c$ and $_ { z }$ with an $\ell _ { 1 }$ regularisation penalty (lasso regressors). With the inputs and targets normalised to have zero mean and unit variance, the magnitude of the resulting regression weights rank the learnt code variables $c _ { 0 } , \ldots , c _ { D - 1 }$ in order of relative importance to the prediction. That is, they reveal which code variables capture information about a given generative factor. Thus, we define the matrix of relative importances $R$ as $R _ { i j } = | W _ { i j } |$ for linear regression, where $R _ { i j }$ denotes the relative importance of $c _ { i }$ in predicting $z _ { j }$ and $| W _ { i j } |$ denotes the magnitude of the weight used to scale $c _ { i }$ in predicting $z _ { j }$ . We fit the $\ell _ { 1 }$ penalty coefficient $\alpha$ on the validation set to achieve the lowest prediction error.
|
| 95 |
+
|
| 96 |
+
Random forest. We use random forest regressors due to their inbuilt ability to determine the relative importance of each feature to a given prediction, thus allowing us to directly specify the matrix of relative importances $R$ . Random forests average the predictions and feature importances from each decision tree in the ensemble. The number of times a tree chooses to split on a particular input variable determines its importance to the prediction. Thus, the relative importance of each input variable $c _ { i }$ is given by the number of cases split on $c _ { i }$ over the total number of splits (Breiman et al., 1984). As performance generally improves with the number of trees $n$ in the ensemble, we fix $n = 1 0$ . The remaining parameter, tree depth, is determined on the validation set (lowest prediction error).
|
| 97 |
+
|
| 98 |
+
<table><tr><td colspan="4">(a) Lasso</td><td colspan="4">(b)Random forest</td></tr><tr><td>Code</td><td>Disent.</td><td>Compl.</td><td>Inform.</td><td>Code</td><td>Disent.</td><td>Compl.</td><td>Inform.</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PCA</td><td>0.29</td><td>0.32</td><td>0.44</td><td>PCA</td><td>0.50</td><td>0.52</td><td>0.27</td></tr><tr><td>VAE (β = 1)</td><td>0.67</td><td>0.62</td><td>0.37</td><td>VAE (β = 1)</td><td>0.86</td><td>0.75</td><td>0.09</td></tr><tr><td>β-VAE (β = 6)</td><td>0.66</td><td>0.59</td><td>0.35</td><td>β-VAE (β = 6)</td><td>0.90</td><td>0.76</td><td>0.10</td></tr><tr><td>InfoGAN</td><td>0.75</td><td>0.72</td><td>0.23</td><td>InfoGAN</td><td>0.91</td><td>0.87</td><td>0.13</td></tr></table>
|
| 99 |
+
|
| 100 |
+
Table 1: Average model scores. ‘Inform.’ indicates (average) normalised root-mean-square error (NRMSE) in predicting $_ z$ .
|
| 101 |
+
|
| 102 |
+
# 4.4 RESULTS
|
| 103 |
+
|
| 104 |
+
Overview. Table 1 presents the average disentanglement, completeness and informativeness scores for PCA, the VAE, $\beta$ -VAE and InfoGAN for the (a) lasso and (b) random forest regressors. With both regressors, PCA achieves the worst disentanglement, completeness and informativeness scores (highest error in predicting $_ z$ ) while the VAE $\mathbf { \nabla } \beta = 1 \mathbf { \dot { \varepsilon } } ,$ ) and $\beta$ -VAE $\beta = 6 )$ ) achieve very similar disentanglement, completeness and informativeness scores to each other. While InfoGAN achieves the best disentanglement, completeness and informativeness scores with the lasso regressor, the VAE and $\beta$ -VAE achieve similar disentanglement and informativeness scores to it with (the increased capacity of) the random forest regressor.
|
| 105 |
+
|
| 106 |
+
Disentanglement. InfoGAN achieves the highest average disentanglement with both regressors (although $\beta$ -VAE closely follows with the random forest regressor). That is, each variable in InfoGAN’s code (c−InfoGAN) is closest (on average) to capturing a single generative factor, making $c -$ InfoGAN the most disentangled code (see Appendix B.1 for the full / per-variable results). Figure 3 helps to identify the generative factors captured by a given code variable and thus visualise the disentanglement. For example, comparing $c _ { 0 }$ across all models in Figure 3 (the first rows), it is clear that $c _ { 0 } { - } \mathrm { V A E }$ , $c _ { 0 } { - } \beta \mathrm { V A E }$ and $c _ { 0 } { \mathrm { - I n f o G A N } }$ (almost) solely capture information about $z _ { \mathrm { 0 } }$ while $c _ { 0 } { - } \mathrm { P C A }$ captures information about almost all generative factors.
|
| 107 |
+
|
| 108 |
+
Completeness. InfoGAN also achieves the highest average completeness with both regressors. That is, $c - .$ InfoGAN is closest (on average) to capturing each generative factor with a single code variable, making $c - .$ InfoGAN the most complete code. In contrast, the low completeness score (overcompleteness) of $c { \mathrm { - P C A } }$ reveals that it uses several code variables to capture each generative factor (again, see Appendix B.1 for the full $/$ per-variable results). Figure 3 helps to identify the code variables which capture a given generative factor and thus visualise the completeness. For example, Figure 3 shows that several ��dead’ or redundant code variables $( c _ { 5 } , c _ { 6 } , c _ { 7 } )$ enable a high degree of completeness in $c -$ InfoGAN. In addition, comparing $z _ { 0 }$ (azimuth) across all models in Figure 3b (the first columns), it is clear that InfoGAN uses three code variables $( c _ { 0 } , c _ { 1 } , c _ { 8 } )$ to capture $z _ { \mathrm { 0 } }$ while PCA, VAE, and $\beta$ -VAE use significantly more. In particular, Figure 3 shows that $c { \mathrm { - P C A } }$ is severely overcomplete in capturing $z _ { \mathrm { 0 } }$ , with each of its constituent variables capturing distinct information about $z _ { \mathrm { 0 } }$ . With an ideal code, Figure 3 would show a single large square in $K$ rows and each column, indicating a one-to-one mapping between $_ z$ and $K$ of the dimensions in $^ c$ .
|
| 109 |
+
|
| 110 |
+
Informativeness. With the lasso regressor, c−InfoGAN is most predictive of / informative about $_ z$ . That is, $c - .$ InfoGAN contains the most easily-extractable $/$ explicit information about $_ { z }$ . This is supported by Figure 5, which plots each $z$ against the corresponding ‘most important’ code variable(s) (as indicated by the $R$ matrix) and reveals (primarily) linear relationships between $_ { z }$ and c−InfoGAN. Despite being significantly deeper with many more parameters, $c { \mathrm { - V A E } }$ and $\displaystyle c { - \beta \mathrm { V A E } }$ are only slightly more predictive of $_ z$ than $c { \mathrm { - P C A } }$ with this linear regressor, indicating that the information about $_ z$ in $c { \mathrm { - V A E } }$ and $\displaystyle c { - \beta \mathrm { V A E } }$ is not easily-extractable / explicit (again, this is supported by the relationships depicted in Figure 5).
|
| 111 |
+
|
| 112 |
+
All model codes better predict $_ z$ with the random forest regressor, particularly $c { \mathrm { - V A E } }$ and $\displaystyle c { - \beta \mathrm { V A E } }$ . In fact, $c { \mathrm { - V A E } }$ and $\textstyle { c - } \beta \mathrm { V A E }$ are the most predictive of $/$ informative about $_ { z }$ with this non-linear regressor, with the increased capacity allowing significantly more information about $_ z$ to be extracted from these codes. As discussed in section 2, the prediction error with this (nonlinear) regressor is likely a better quantification of informativeness as it is less dependent on the ability of the model to explicitly represent information about $_ z$ in $^ c$ .
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 3: Visualising $\pmb { R }$ . Square size indicates magnitude, i.e. relative importance. Row $i$ illustrates the importance of $c _ { i }$ to each prediction and thus the disentanglement. Column $j$ illustrates the importance of each code variable for predicting $z _ { j }$ and thus the completeness.
|
| 116 |
+
|
| 117 |
+
# 5 CONCLUSION
|
| 118 |
+
|
| 119 |
+
In this work we have presented a framework for the quantitative evaluation of disentangled representations when the ground-truth latent structure is available. The quality of learnt representations is elucidated through the explicit definition and quantification of three criteria: disentanglement, completeness and informativeness. To illustrate the appropriateness of our framework, we employed it to compare quantitatively the codes learned by PCA, the VAE, $\beta$ -VAE and InfoGAN.
|
| 120 |
+
|
| 121 |
+
While our framework is limited to synthetic datasets where it is possible to recover $_ z$ , reliable disentanglement is far from solved even in this restricted setting. Hence, we believe our framework and its constituent metrics take a substantial and important step forward in understanding learned representations. We have made the code and dataset publicly available in the hope that this facilitates further model comparisons and eventually the establishment of quantitative benchmarks for disentangled factor learning. While we have focused on image data in this work, future work may explore the applicability of our framework to other types of synthetic data.
|
| 122 |
+
|
| 123 |
+
# 6 ACKNOWLEDGEMENTS
|
| 124 |
+
|
| 125 |
+
We would like to thank Pol Moreno and Akash Srivastava for helpful discussions. We would also like to thank Pol for generating the dataset. Finally, we would like to thank the anonymous reviewers for their constructive criticisms which were helpful in refining this paper. The work of CW is supported in part by EPSRC grant EP/N510129/1 to the Alan Turing Institute.
|
| 126 |
+
|
| 127 |
+
# REFERENCES
|
| 128 |
+
|
| 129 |
+
Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
|
| 130 |
+
|
| 131 |
+
Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1798–1828, 2013.
|
| 132 |
+
|
| 133 |
+
Leo Breiman, Jerome Friedman, Charles J Stone, and Richard A Olshen. Classification and regression trees. CRC press, 1984.
|
| 134 |
+
|
| 135 |
+
Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in Neural Information Processing Systems 29, pp. 2172–2180, 2016.
|
| 136 |
+
|
| 137 |
+
Brian Cheung, Jesse A Livezey, Arjun K Bansal, and Bruno A Olshausen. Discovering hidden factors of variation in deep networks. arXiv preprint arXiv:1412.6583, 2014.
|
| 138 |
+
|
| 139 |
+
Taco S Cohen and Max Welling. Transformation properties of learned visual representations. arXiv preprint arXiv:1412.7659, 2014a.
|
| 140 |
+
|
| 141 |
+
Taco S Cohen and Max Welling. Learning the irreducible representations of commutative lie groups. In International Conference on Machine Learning, pp. 1755–1763, 2014b.
|
| 142 |
+
|
| 143 |
+
Emily Denton and Vighnesh Birodkar. Unsupervised learning of disentangled representations from video. arXiv preprint arXiv:1705.10915, 2017.
|
| 144 |
+
|
| 145 |
+
Guillaume Desjardins, Aaron Courville, and Yoshua Bengio. Disentangling factors of variation via generative entangling. arXiv preprint arXiv:1210.5474, 2012.
|
| 146 |
+
|
| 147 |
+
Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Domain adaptation for large-scale sentiment classification: A deep learning approach. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 513–520, 2011.
|
| 148 |
+
|
| 149 |
+
Ian Goodfellow, Honglak Lee, Quoc V Le, Andrew Saxe, and Andrew Y Ng. Measuring invariances in deep networks. In Advances in Neural Information Processing Systems 22, pp. 646–654, 2009.
|
| 150 |
+
|
| 151 |
+
Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of Wasserstein GANs. arXiv preprint arXiv:1704.00028, 2017.
|
| 152 |
+
|
| 153 |
+
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.
|
| 154 |
+
|
| 155 |
+
Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. $\beta$ -VAE: Learning basic Visual Concepts with a Constrained Variational Framework. In 5th International Conference on Learning Representations, 2017.
|
| 156 |
+
|
| 157 |
+
A. Hyvarinen, J. Karhunen, and E. Oja. ¨ Independent Component Analysis. Wiley, 2001.
|
| 158 |
+
|
| 159 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015.
|
| 160 |
+
|
| 161 |
+
Dinesh Jayaraman and Kristen Grauman. Learning image representations tied to ego-motion. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1413–1421, 2015.
|
| 162 |
+
|
| 163 |
+
Theofanis Karaletsos, Serge Belongie, and Gunnar Ratsch. Bayesian representation learning with ¨ oracle constraints. arXiv preprint arXiv:1506.05011, 2015.
|
| 164 |
+
|
| 165 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 166 |
+
|
| 167 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 168 |
+
|
| 169 |
+
Jyri J Kivinen and Christopher K. I. Williams. Transformation equivariant Boltzmann machines. In International Conference on Artificial Neural Networks, pp. 1–9. Springer, 2011.
|
| 170 |
+
|
| 171 |
+
Tejas D Kulkarni, William F Whitney, Pushmeet Kohli, and Josh Tenenbaum. Deep convolutional inverse graphics network. In Advances in Neural Information Processing Systems 28, pp. 2539– 2547, 2015.
|
| 172 |
+
|
| 173 |
+
Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, pp. 1–101, 2016.
|
| 174 |
+
|
| 175 |
+
Anders Boesen Lindbo Larsen, Søren Kaae Sønderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. arXiv preprint arXiv:1512.09300, 2015.
|
| 176 |
+
|
| 177 |
+
Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 991–999, 2015.
|
| 178 |
+
|
| 179 |
+
Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015.
|
| 180 |
+
|
| 181 |
+
K. V. Mardia, J. T. Kent, and J. M. Bibby. Multivariate Analysis. Academic Press, London, 1979.
|
| 182 |
+
|
| 183 |
+
Pol Moreno, Christopher K. I. Williams, Charlie Nash, and Pushmeet Kohli. Overcoming occlusion with inverse graphics. In ECCV Geometry Meets Deep Learning Workshop 2016, pp. 170–185. Springer, 2016.
|
| 184 |
+
|
| 185 |
+
Scott Reed, Kihyuk Sohn, Yuting Zhang, and Honglak Lee. Learning to disentangle factors of variation with manifold interaction. In International Conference on Machine Learning, pp. 1431– 1439, 2014.
|
| 186 |
+
|
| 187 |
+
William F Whitney, Michael Chang, Tejas Kulkarni, and Joshua B Tenenbaum. Understanding visual concepts with continuation learning. arXiv preprint arXiv:1602.06822, 2016.
|
| 188 |
+
|
| 189 |
+
H. H. Yang and S-i. Amari. Adaptive On-Line Learning Algorithms for Blind Separation— Maximum Entropy and Minimum Mutual Information. Neural Computation, 9(7):1457–1482, 1997.
|
| 190 |
+
|
| 191 |
+
Jimei Yang, Scott E Reed, Ming-Hsuan Yang, and Honglak Lee. Weakly-supervised disentangling with recurrent transformations for 3d view synthesis. In Advances in Neural Information Processing Systems 28, pp. 1099–1107, 2015.
|
| 192 |
+
|
| 193 |
+
Zhenyao Zhu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Multi-view perceptron: a deep model for learning face identity and view representations. In Advances in Neural Information Processing Systems 27, pp. 217–225, 2014.
|
| 194 |
+
|
| 195 |
+
# A EXPERIMENTAL SETUP
|
| 196 |
+
|
| 197 |
+
For all generative models, we use the ResNet architectures shown in Table 2 for the encoder / discriminatior $( D )$ / auxilary network $( Q )$ and the decoder / generator $( G )$ . We optimize using Adam (Kingma & Ba, 2014) with a learning rate of 1e-4 and a batch size of 64. For the stable training of InfoGAN, we fix the latent codes’ standard deviations to 1 and use the objective of the improved Wasserstein GAN (IWGAN) (Gulrajani et al., 2017), simply appending InfoGAN’s approximate mutual information penalty. As in Gulrajani et al. (2017), we use layer normalization (Ba et al., 2016) instead of batch normalization (Ioffe & Szegedy, 2015) in $D$ . As in Chen et al. (2016), $Q$ shares all convolutional layers with the discriminator (or ‘critic’ with WGAN objective) $D$ , each adding their own final output layer. As $Q$ parametrises the approximate posterior over continous latent codes $Q ( c | \pmb { x } )$ , we simply take the mean returned by $Q ( { \pmb x } )$ as the code or representation for a given image. Further details on the experimental setup are provided in our open-source implementation.
|
| 198 |
+
|
| 199 |
+
Table 2: (β-)VAE / InfoGAN architecture. Each network has 4 residual blocks (all but the first and last rows). The input to each residual block is added to its output (with appropriate downsampling/upsampling to ensure that the dimensions match). Downsampling (↓) is performed with mean pooling. $\uparrow$ indicates nearest-neighbour upsampling. When batch normalization (BN) is applied to convolutional layers, per-channel normalization is used.
|
| 200 |
+
|
| 201 |
+
<table><tr><td rowspan=1 colspan=2>Encoder /D/ Q Decoder /G</td></tr><tr><td rowspan=1 colspan=1>3x3 64 conv.</td><td rowspan=1 colspan=1>FC 4:4.8.64</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3x3 64 convBN, ReLU,3×3 128 conv,↓</td><td rowspan=1 colspan=1>BN,ReLU, 3x3 512 conv ↑BN,ReLU, 3×3 512 conv</td></tr><tr><td rowspan=1 colspan=1>BN, ReLU, 3x3 128 convBN,ReLU,3x3 256 conv,↓</td><td rowspan=1 colspan=1>BN, ReLU, 3x3 256 conv ↑BN, ReLU, 3x3 256 conv</td></tr><tr><td rowspan=1 colspan=1>BN, ReLU, 3x3 256 convBN,ReLU,3×3 512 conv,↓</td><td rowspan=1 colspan=1>BN, ReLU, 3x3 128 conv ↑BN,ReLU, 3×3 128 conv</td></tr><tr><td rowspan=1 colspan=1>BN, ReLU,3x3 512 convBN, ReLU,3×3 512 conv,↓</td><td rowspan=1 colspan=1>BN,ReLU,3x3 64 conv ↑BN,ReLU,3x3 64 conv</td></tr><tr><td rowspan=1 colspan=1>FC Output</td><td rowspan=1 colspan=1>BN,ReLU,3x33 conv, tanh</td></tr></table>
|
| 202 |
+
|
| 203 |
+
# B EXTENDED RESULTS
|
| 204 |
+
|
| 205 |
+
# B.1 FULL TABLE / PER-FACTOR RESULTS
|
| 206 |
+
|
| 207 |
+
Tables 3 and 4 give the full regression results, i.e. the per-factor disentanglement, completeness and informativeness. As each target is normalised to have a standard deviation of 1, the root-mean-square error (RMSE) in predicting each target is naturally normalised relative to the constant regressor which guesses the expected value of the targets. Hence, we report the NRMSE.
|
| 208 |
+
|
| 209 |
+
# B.2 ZEROSHOT
|
| 210 |
+
|
| 211 |
+
Disentangled representations should enable a model to perform zero-shot inference, that is, generalise its knowledge beyond the training distribution by recombining previously-learnt factors (Bengio et al., 2013; Higgins et al., 2017). Thus, we can further evaluate the disentangled representations learned by a given model by quantifying its ability to perform zero-shot inference. We use the ground-truth values of the generative factors to create two different data distributions. More specifically, we isolate all images whose generative factor values lie in a particular range to create a ‘gap’ in the original dataset. This gap then serves as our zero-shot data containing unseen factor combinations. Informally, the images in this gap can be described as ‘red’ teapots from ‘above’. Formally, the generative factors of these images satisfy the following condition: $z _ { 2 } > ( z _ { 3 } + 0 . 1 5 )$ and $z _ { 2 } > ( z _ { 4 } + 0 . 1 5 )$ and $z _ { 1 } > \frac { \pi } { 4 }$ . This dataset contained 21,238 images, with (extreme) samples given in Figure 4. Note that zero-shot inference is facilitated by disentangled and informative representations, thus is not a core component of our evaluation, but rather a ‘bonus’.
|
| 212 |
+
|
| 213 |
+
(a) Disentanglement
|
| 214 |
+
|
| 215 |
+
<table><tr><td>Code</td><td>Co</td><td>C1</td><td>C2</td><td>C3</td><td>C4</td><td>C5</td><td>C6</td><td>C7</td><td>C8</td><td>Cg</td><td>W. Avg.</td></tr><tr><td>PCA</td><td>0.16</td><td>0.50</td><td>0.31</td><td>0.09</td><td>0.45</td><td>0.60</td><td>0.11</td><td>1.00</td><td>0.17</td><td>0.51</td><td>0.29</td></tr><tr><td>VAE</td><td>1.00</td><td>0.85</td><td>0.95</td><td>0.68</td><td>0.63</td><td>1.00</td><td>0.30</td><td>0.37</td><td>0.66</td><td>0.95</td><td>0.67</td></tr><tr><td>β-VAE</td><td>1.00</td><td>0.64</td><td>1.00</td><td>0.76</td><td>0.39</td><td>0.89</td><td>0.49</td><td>0.81</td><td>0.45</td><td>0.80</td><td>0.66</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>InfoGAN</td><td>0.83</td><td>0.85</td><td>0.76</td><td>0.66</td><td>0.78</td><td>0.43</td><td>1.00</td><td>1.00</td><td>0.64</td><td>0.74</td><td>0.75</td></tr></table>
|
| 216 |
+
|
| 217 |
+
(b) Completeness
|
| 218 |
+
(c) Informativeness
|
| 219 |
+
|
| 220 |
+
<table><tr><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td></tr><tr><td>PCA</td><td>0.38</td><td>0.39</td><td>0.34</td><td>0.24</td><td></td><td>0.32</td><td>PCA</td><td></td><td></td><td></td><td>0.32</td><td>0.33</td><td>0.44</td></tr><tr><td>VAE</td><td></td><td></td><td></td><td></td><td>0.25</td><td></td><td></td><td>0.83</td><td>0.42</td><td>0.32</td><td></td><td></td><td></td></tr><tr><td></td><td>0.54</td><td>0.37</td><td>0.75</td><td>0.73</td><td>0.73</td><td>0.62</td><td>VAE</td><td>0.61</td><td>0.60</td><td>0.23</td><td>0.21</td><td>0.21</td><td>0.37</td></tr><tr><td>β-VAE</td><td>0.14</td><td>0.39</td><td>0.70</td><td>0.85</td><td>0.88</td><td>0.59</td><td>β-VAE</td><td>0.80</td><td>0.41</td><td>0.19</td><td>0.19</td><td>0.18</td><td>0.35</td></tr><tr><td>InfoGAN</td><td>0.42</td><td>0.72</td><td>0.75</td><td>0.86</td><td>0.84</td><td>0.72</td><td>InfoGAN</td><td>0.48</td><td>0.13</td><td>0.23</td><td>0.16</td><td>0.15</td><td>0.23</td></tr></table>
|
| 221 |
+
|
| 222 |
+
Table 3: Lasso regression results. (a) Disentanglement scores for each code variable. ‘W. Avg.’ abbreviates weighted average. (b) Completeness scores for each generative factor. $z _ { 0 } , \ldots , z _ { 4 }$ represent azimuth, elevation, red, green and blue generative factors respectively. c) Test set NRMSE.
|
| 223 |
+
(a) Disentanglement
|
| 224 |
+
Table 4: Random forest regression results. Caption of Table 3 applies.
|
| 225 |
+
|
| 226 |
+
<table><tr><td>Code</td><td></td><td>Co</td><td>C1</td><td>C2</td><td>C3</td><td>C4</td><td>C5</td><td>C6</td><td>C7</td><td>C8</td><td>Cg</td><td>W. Avg.</td><td></td></tr><tr><td>PCA</td><td></td><td>0.25</td><td>0.54</td><td>0.63</td><td>0.10</td><td>0.88</td><td>0.97</td><td>0.16</td><td>0.90</td><td>0.41</td><td>0.72</td><td>0.50</td><td></td></tr><tr><td>VAE</td><td></td><td>0.98</td><td>0.99</td><td>0.91</td><td>0.94</td><td>0.75</td><td>0.99</td><td>0.56</td><td>0.56</td><td>0.92</td><td>0.86</td><td>0.86</td><td></td></tr><tr><td>β-VAE</td><td></td><td>0.96</td><td>0.96</td><td>0.95</td><td>0.99</td><td>0.63</td><td>0.96</td><td>0.69</td><td>0.94</td><td>0.64</td><td>0.98</td><td>0.90</td><td></td></tr><tr><td>InfoGAN</td><td></td><td>0.85</td><td>0.97</td><td>0.91</td><td>0.84</td><td>0.94</td><td>0.68</td><td>0.86</td><td>0.70</td><td>0.71</td><td>0.92</td><td>0.91</td><td></td></tr><tr><td>(b) Completeness</td><td colspan="3"></td><td></td><td></td><td></td><td>(c) Informativeness</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Code 20</td><td colspan="3">21</td><td>23</td><td>24</td><td>Avg</td><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td></tr><tr><td>PCA</td><td></td><td></td><td>22</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.27</td></tr><tr><td>VAE</td><td>0.31 0.44</td><td>0.51 0.61</td><td>0.67 0.90</td><td>0.56 0.91</td><td>0.56 0.91</td><td>0.52 0.75</td><td>PCA VAE</td><td>0.36 0.14</td><td>0.23 0.09</td><td>0.20 0.09</td><td>0.28 0.06</td><td>0.28 0.06</td><td>0.09</td></tr><tr><td>β-VAE</td><td>0.28</td><td>0.67</td><td>0.90</td><td>0.96</td><td>0.97</td><td>0.76</td><td>β-VAE</td><td>0.18</td><td>0.07</td><td>0.08</td><td>0.09</td><td>0.08</td><td>0.10</td></tr><tr><td>InfoGAN</td><td>0.59</td><td>0.94</td><td>0.91</td><td>0.96</td><td>0.95</td><td>0.87</td><td>InfoGAN</td><td>0.25</td><td>0.07</td><td>0.14</td><td>0.09</td><td>0.10</td><td>0.13</td></tr></table>
|
| 227 |
+
|
| 228 |
+
Table 5 presents the zeroshot results. With the random forest regressor, $c { \mathrm { - V A E } }$ and $\displaystyle c { - \beta \mathrm { V A E } }$ perform the best with very little increase in prediction error compared to Table 4c, while $c - .$ InfoGAN predicts the value of unseen factor combinations reasonably well.
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
Figure 4: Zeroshot samples
|
| 232 |
+
|
| 233 |
+
<table><tr><td colspan="6">(a) Lasso</td><td colspan="8">(b)Random Forest</td></tr><tr><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PCA</td><td>0.88</td><td>0.80</td><td>0.75</td><td>0.52</td><td>0.54</td><td>0.70</td><td>PCA</td><td>0.44</td><td>0.49</td><td>0.65</td><td>0.56</td><td>0.63</td><td>0.55</td></tr><tr><td>VAE</td><td>0.56</td><td>1.11</td><td>0.52</td><td>0.30</td><td>0.32</td><td>0.56</td><td>VAE</td><td>0.13</td><td>0.13</td><td>0.34</td><td>0.08</td><td>0.07</td><td>0.15</td></tr><tr><td>β-VAE</td><td>0.81</td><td>0.79</td><td>0.32</td><td>0.27</td><td>0.25</td><td>0.49</td><td>β-VAE</td><td>0.18</td><td>0.18</td><td>0.21</td><td>0.12</td><td>0.14</td><td>0.16</td></tr><tr><td>InfoGAN</td><td>0.49</td><td>0.34</td><td>0.93</td><td>0.36</td><td>0.33</td><td>0.49</td><td>InfoGAN</td><td>0.27</td><td>0.18</td><td>0.63</td><td>0.21</td><td>0.25</td><td>0.31</td></tr></table>
|
| 234 |
+
|
| 235 |
+
Table 5: Zeroshot performance. NRMSE in predicting unseen factor combinations.
|
| 236 |
+
|
| 237 |
+
# C Z VS. C
|
| 238 |
+
|
| 239 |
+
Figure 5 plots each generative factor against the corresponding ‘most important’ code variable(s) (as indicated by $R$ ) of each model for 5000 randomly-selected samples. As discussed in section 2, models with generic priors cannot be expected to learn the most complete and explicit representation of topologically distinct factors of variation. Thus, for the wrapped azimuth $\left( z _ { 0 } \right)$ , we plot its value against the 3 most important code variables for each model. Inspecting the relationships depicted in Figure 5, it is clear that the simplest / lowest-order relationship exists between InfoGAN’s code variables and the corresponding generative factors. For example, each unwrapped generative factor $( z _ { 1 } , z _ { 2 } , z _ { 3 } , z _ { 4 } )$ is linearly-related to InfoGAN’s corresponding code variables, while $c _ { 0 }$ and $c _ { 8 }$ resemble scaled sine and cosine functions of the azimuth $\left( z _ { 0 } \right)$ and $c _ { 1 }$ resembles a step function.
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 5: Generative factors vs. important code variables.
|
| 243 |
+
|
| 244 |
+
# D VISUALLY ASSESSING DISENTANGLEMENT
|
| 245 |
+
|
| 246 |
+
For each model, we traverse the space of each code variable indepedently to show the effect on generated images and thus visually assess disentanglement. The code variable traversals depicted in Figure 6 for (a) VAE $[ - 3 , 3 ]$ , (b) $\beta$ -VAE $[ - 3 , 3 ]$ and (c) InfoGAN $[ - 1 , 1 ]$ are ordered according to the generative factor $( z )$ which that code best captures in an attempt to align the generated images of all models. There appears to be a high degree of disentanglement in all generative models as each $c _ { i }$ traversal results in a single type of semantic variation.
|
| 247 |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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "A FRAMEWORK FOR THE QUANTITATIVE EVALUATION OF DISENTANGLED REPRESENTATIONS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
805,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Christopher K. I. Williams ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
475,
|
| 19 |
+
170,
|
| 20 |
+
663,
|
| 21 |
+
184
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Cian Eastwood School of Informatics University of Edinburgh, UK c.eastwood@ed.ac.uk ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
170,
|
| 31 |
+
375,
|
| 32 |
+
226
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "School of Informatics University of Edinburgh, UK and Alan Turing Institute, London, UK ckiw@inf.ed.ac.uk ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
475,
|
| 41 |
+
185,
|
| 42 |
+
732,
|
| 43 |
+
239
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
276,
|
| 54 |
+
544,
|
| 55 |
+
291
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Recent AI research has emphasised the importance of learning disentangled representations of the explanatory factors behind data. Despite the growing interest in models which can learn such representations, visual inspection remains the standard evaluation metric. While various desiderata have been implied in recent definitions, it is currently unclear what exactly makes one disentangled representation better than another. In this work we propose a framework for the quantitative evaluation of disentangled representations when the ground-truth latent structure is available. Three criteria are explicitly defined and quantified to elucidate the quality of learnt representations and thus compare models on an equal basis. To illustrate the appropriateness of the framework, we employ it to compare quantitatively the representations learned by recent state-of-the-art models. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
310,
|
| 65 |
+
764,
|
| 66 |
+
462
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
493,
|
| 77 |
+
336,
|
| 78 |
+
510
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To gain a conceptual understanding of our world, models must first learn to understand the factorial structure of low-level sensory input without supervision (Bengio et al., 2013; Lake et al., 2016; Higgins et al., 2017). As argued in several notable works (Desjardins et al., 2012; Bengio et al., 2013; Chen et al., 2016; Higgins et al., 2017), this understanding can only be gained if the model learns to disentangle the underlying explanatory factors hidden in unlabelled input. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
526,
|
| 88 |
+
825,
|
| 89 |
+
597
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "A disentangled representation is generally described as one which separates the factors of variation, explicitly representing the important attributes of the data (Desjardins et al., 2012; Bengio et al., 2013; Cohen & Welling, 2014b; Kulkarni et al., 2015; Chen et al., 2016; Higgins et al., 2017). For example, given an image dataset of human faces, a disentangled representation may consist of separate dimensions (or features) for the face size, hairstyle, eye colour, facial expression, etc. Ultimately, we would like to learn representations that are invariant to irrelevant changes in the data. However, the relevant downstream tasks are generally unknown at training time and hence it is difficult to deduce a priori which features will be useful. Thus, the most robust method is to disentangle as many factors of variation as possible, discarding as little information as possible (Desjardins et al., 2012; Bengio et al., 2013). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
603,
|
| 99 |
+
825,
|
| 100 |
+
742
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Despite the expanding literature on models which seek to learn disentangled representations (Desjardins et al., 2012; Reed et al., 2014; Zhu et al., 2014; Cheung et al., 2014; Larsen et al., 2015; Makhzani et al., 2015; Yang et al., 2015; Kulkarni et al., 2015; Whitney et al., 2016; Chen et al., 2016; Higgins et al., 2017; Denton & Birodkar, 2017), visual inspection remains the standard evaluation metric. While the work of Higgins et al. (2017) partially addresses this issue (as discussed in section 3) and various definitions have implied additional desiderata like interpretability (Bengio et al., 2013; Kulkarni et al., 2015; Chen et al., 2016), invariance (Goodfellow et al., 2009; Cohen & Welling, 2014a;b; Lenc & Vedaldi, 2015) and equivariance (Kivinen & Williams, 2011; Lenc & Vedaldi, 2015; Jayaraman & Grauman, 2015), current research generally lacks a clear metric for quantitatively evaluating and comparing disentangled representations. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
750,
|
| 110 |
+
825,
|
| 111 |
+
888
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In this work we propose a framework for the quantitative evaluation of disentangled representations when the ground-truth latent structure is available. To elucidate the quality of learnt representations and thus compare models on an equal basis, desiderata of disentangled representations are explicitly defined and quantified. These unified desiderata help define the disentangled representations which we seek and remove the need for a subjective visual evaluation by a human arbiter. To illustrate the appropriateness of this framework, we employ it to compare quantitatively the representations learned by principal components analysis (PCA), the variational autoencoder (VAE, Kingma & Welling 2013), $\\beta$ -VAE (Higgins et al., 2017) and information maximising generative adversarial networks (InfoGAN, Chen et al. 2016). ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
895,
|
| 121 |
+
821,
|
| 122 |
+
924
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
103,
|
| 132 |
+
825,
|
| 133 |
+
202
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "In the remainder of this paper, we begin by detailing the theoretical framework and how it facilitates the quantitative evaluation of disentangled representations. Next we review related desiderata and metrics for evaluating disentangled representations. Finally, we describe the dataset and model specifics before presenting the experimental results. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
208,
|
| 143 |
+
825,
|
| 144 |
+
263
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 THEORETICAL FRAMEWORK ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
285,
|
| 155 |
+
442,
|
| 156 |
+
301
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Models for disentangled factor learning seek a compact data representation or code $^ c$ of dimension $D$ , which consists of disentangled and interpretable latent variables. For synthetic data, the $K$ - dimensional generative factors $_ { z }$ are designed to be an ideal such representation. Thus if $D = K$ the ideal disentangled code $c ^ { * }$ should be some (scaled) permutation of $_ { z }$ , i.e. they should be related by a generalised permutation matrix (or monomial matrix1). If $D > K$ , one would expect to obtain this monomial structure along with a number of ‘dead’ or irrelevant units in $^ c$ which are not predictive of $/$ informative about $_ { z }$ . Thus, we can quantitatively evaluate the codes learned by a given model $M$ using the following steps: ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
173,
|
| 165 |
+
316,
|
| 166 |
+
826,
|
| 167 |
+
429
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "1. Train $M$ on a synthetic dataset with generative factors $_ { z }$ \n2. Retrieve $^ c$ for each sample $_ { \\textbf { \\em x } }$ in the dataset $( { \\pmb c } = M ( { \\pmb x } ) )$ ) \n3. Train regressor $f$ to predict $_ z$ given $\\pmb { c } \\left( \\hat { \\pmb { z } } = f ( \\pmb { c } ) \\right)$ \n4. Quantify $f$ ’s deviation from the ideal mapping and the prediction error ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
441,
|
| 177 |
+
663,
|
| 178 |
+
515
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "We now detail the proposed evaluation metrics, i.e., steps 3 and 4. We train $K$ regressors to predict the value of $K$ generative factors. The regressor $f _ { j }$ predicts $z _ { j }$ given $^ c$ , that is, it learns a mapping $f _ { j } ( \\pmb { c } ) : \\mathbb { R } ^ { D } \\mathbb { R } ^ { 1 }$ . We use regressors that can provide a matrix of relative importances $R$ , where $R _ { i j }$ denotes the relative importance of $c _ { i }$ in predicting $z _ { j }$ (see section 4.3). This allows us to explicitly define and quantify three criteria of disentangled representations or codes which are implicit in recent definitions (Desjardins et al., 2012; Bengio et al., 2013; Kulkarni et al., 2015; Chen et al., 2016; Higgins et al., 2017), namely disentanglement, completeness and informativeness. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
173,
|
| 187 |
+
527,
|
| 188 |
+
825,
|
| 189 |
+
627
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Disentanglement. The degree to which a representation factorises or disentangles the underly \ning factors of variation, with each variable (or dimension) capturing at most one generative factor. $D _ { i }$ ode variable denotes the $c _ { i }$ is qtrop ntifiand $D _ { i } = ( 1 - \\bar { H } _ { K } ( P _ { i . } ) )$ , whereotes the \n$\\begin{array} { r } { H _ { K } ( P _ { i . } ) = - \\sum _ { k = 0 } ^ { K - 1 } P _ { i k } \\log _ { K } P _ { i k } } \\end{array}$ $P _ { i j } = \\left. R _ { i j } \\right/ \\sum _ { k = 0 } ^ { K - 1 } { R _ { i k } }$ $c _ { i }$ $z _ { j }$ $c _ { i }$ \nerative factor, the score will be 1. If $c _ { i }$ is equally important for predicting all generative factors, the \nscore will be 0. $D _ { i }$ can be visualised by examining row $i$ of the Hinton diagrams as in Figure 3. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
173,
|
| 198 |
+
642,
|
| 199 |
+
825,
|
| 200 |
+
744
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "In order to account for dead or irrelevant units in $^ c$ , relative code variable importance $\\begin{array} { r l } { \\rho _ { i } } & { { } = } \\end{array}$ $\\textstyle \\sum _ { j } R _ { i j } / \\sum _ { i j } R _ { i j }$ is used to construct a weighted average $\\sum _ { i } \\rho _ { i } D _ { i }$ expressing overall disentanglement. If a code variable $c _ { i }$ is irrelevant for predicting $_ z$ , then its $\\rho _ { i }$ (and thus contribution to the overall disentanglement) will be near zero. ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
173,
|
| 209 |
+
750,
|
| 210 |
+
823,
|
| 211 |
+
808
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 1
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "Completeness. The degree to which each underlying factor is captured by a single code variable. where The completeness score $\\begin{array} { r } { H _ { D } ( \\tilde { P } _ { . j } ) = - \\sum _ { d = 0 } ^ { D - 1 } \\tilde { P } _ { d j } \\log _ { D } \\tilde { P } _ { i j } } \\end{array}$ $C _ { j }$ in capturing generative factor denotes the entropy of the $z _ { j }$ is quantified by $\\tilde { P } _ { \\cdot j }$ distribution. If a single code $C _ { j } \\stackrel { - } { = } ( 1 - H _ { D } ( \\tilde { P } _ { . j } ) )$ , variable contributes to $z _ { j }$ ’s prediction, the score will be 1 (complete). If all code variables equally contribute to $z _ { j }$ ’s prediction, the score will be 0 (maximally overcomplete). $C _ { j }$ can be visualised by examining column $j$ of the Hinton diagrams as in Figure 3. ",
|
| 218 |
+
"bbox": [
|
| 219 |
+
174,
|
| 220 |
+
823,
|
| 221 |
+
825,
|
| 222 |
+
886
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 1
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "image",
|
| 228 |
+
"img_path": "images/d7192b67fedf5af6fa91adc1d0479689d288b3e40dcbac013e322a5a868c2253.jpg",
|
| 229 |
+
"image_caption": [
|
| 230 |
+
"Figure 1: Visualising disentanglement and completeness. "
|
| 231 |
+
],
|
| 232 |
+
"image_footnote": [],
|
| 233 |
+
"bbox": [
|
| 234 |
+
294,
|
| 235 |
+
101,
|
| 236 |
+
699,
|
| 237 |
+
169
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "",
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
251,
|
| 247 |
+
825,
|
| 248 |
+
280
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "Informativeness. The amount of information that a representation captures about the underlying factors of variation. To be useful for natural tasks which require knowledge of the important attributes of the data (e.g. object recognition), representations must ultimately capture information about the underlying factors of variation (Bengio et al., 2013; Chen et al., 2016). The informativeness of code $^ c$ about generative factor $z _ { j }$ is quantified by the prediction error $E ( z _ { j } , \\hat { z } _ { j } )$ (averaged over the dataset), where $E$ is an appropriate error function and $\\hat { z } _ { j } = f _ { j } ( \\pmb { c } )$ . It is important to note that the prediction error $E ( z _ { j } , \\hat { z } _ { j } )$ , and thus this informativeness metric, is dependent on the capacity of $f$ , with linear regressors only capable of extracting information about $_ z$ in $^ c$ that is explicitly represented. Hence this informativeness metric is also dependent on a model’s ability to explicitly represent information about $_ z$ in $^ c$ , which in turn is dependent on the model’s ability to disentangle the underlying factors of variation $( z )$ . Thus the informativeness metric has some overlap with the disentanglement metric, with the size of the overlap determined by the capacity of $f$ (no overlap with infinite capacity). ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
325,
|
| 258 |
+
825,
|
| 259 |
+
506
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "While the disentanglement score quantifies the number of generative factors captured by a given code variable, the completeness score quantifies the number of code variables which capture a given generative factor. Together, these scores quantify the deviation from the ideal one-to-one mapping between $_ z$ and $K$ of the dimensions in $^ c$ . Figure 1 illustrates this idea. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
513,
|
| 269 |
+
825,
|
| 270 |
+
569
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "Despite the overlap between the disentanglement and informativeness metrics with low-capacity linear regressors, these are ultimately distinct criteria. While disentanglement requires each code variable in $^ c$ to be only perturbed by changes in a single $z$ , informativeness requires these perturbations to be systematic and thus informative. This motivates the use of non-linear regressors in section 4.3. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
575,
|
| 280 |
+
823,
|
| 281 |
+
645
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "While the ideal code would be able to explicitly represent each generative factor with a single variable, models with generic priors cannot be expected to learn such complete and explicit codes. For example, generative factors which are drawn from a distribution on a circle cannot be accurately captured by single code variables on which unwrapped prior distributions are imposed. Thus, with generic priors like the standard normal, information about such topologically distinct generative factors may be non-linearly encoded across multiple code variables. Empirical results in Appendix C and (Higgins et al., 2017, fig. 7) support this idea, with several code variables resembling non-linear functions (like the sine and cosine) of the object azimuth. This further motivates the use of non-linear regressors in section 4.3. ",
|
| 288 |
+
"bbox": [
|
| 289 |
+
174,
|
| 290 |
+
652,
|
| 291 |
+
825,
|
| 292 |
+
777
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "text",
|
| 298 |
+
"text": "Our criteria assume that it is possible to recover the latent factors $_ { z }$ from the data. If the data $_ { \\textbf { \\em x } }$ depends on a linear combination of (some of) the underlying $z$ ’s with a spherically symmetric distribution, then it will only be possible to recover these components up to a rotation matrix. This is the well-known issue of the rotation of factors in the linear factor analysis model (see e.g., Mardia, Kent, and Bibby 1979, sec. 9.6), and also leads to the condition in independent components analysis (ICA) that at most one of the $z$ ’s can be Gaussian (Hyvarinen et al., 2001). In this case, the infor- ¨ mativeness metric remains valid but the disentanglement and completeness metrics do not as they are dependent on the arbitrary rotation which determines $^ c$ ’s alignment with $_ z$ . Although $_ { z }$ may be used to compute the rotation matrix which best aligns $^ c$ and $_ z$ , we ultimately wish to evaluate models which will not have access to $_ z$ at test time. ",
|
| 299 |
+
"bbox": [
|
| 300 |
+
173,
|
| 301 |
+
785,
|
| 302 |
+
825,
|
| 303 |
+
922
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "3 RELATED WORK ",
|
| 310 |
+
"text_level": 1,
|
| 311 |
+
"bbox": [
|
| 312 |
+
176,
|
| 313 |
+
102,
|
| 314 |
+
344,
|
| 315 |
+
118
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 3
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "The question of how well a learned representation $^ c$ matches the true generative factors $_ { z }$ has been considered in the ‘square’ case of independent components analysis (ICA), where $D = K$ . In the ICA case, the data is generated as $\\textstyle { \\boldsymbol { x } } = A { \\boldsymbol { z } }$ and the learned representation is obtained as $\\mathbf { \\boldsymbol { c } } = W \\mathbf { \\boldsymbol { x } }$ , where $A$ is the mixing matrix and $W$ is the learned ‘un-mixing’ matrix. Ideally $P = W A$ will be equal to a permutation matrix. Yang $\\&$ Amari (1997, sec. 6.1) propose an error metric to assess how close $P$ is to a permutation matrix2. This metric takes the form ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
174,
|
| 324 |
+
132,
|
| 325 |
+
825,
|
| 326 |
+
217
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "equation",
|
| 332 |
+
"img_path": "images/3e8a8cef34ec672453165d3dad47773a0c91614d72446fec88b82cb94eb04f27.jpg",
|
| 333 |
+
"text": "$$\nE = \\sum _ { i } \\left( \\sum _ { j } \\frac { \\left| p _ { i j } \\right| } { \\operatorname* { m a x } _ { k } \\left| p _ { i k } \\right| } - 1 \\right) + \\sum _ { j } \\left( \\sum _ { i } \\frac { \\left| p _ { i j } \\right| } { \\operatorname* { m a x } _ { k } \\left| p _ { k j } \\right| } - 1 \\right) ,\n$$",
|
| 334 |
+
"text_format": "latex",
|
| 335 |
+
"bbox": [
|
| 336 |
+
281,
|
| 337 |
+
219,
|
| 338 |
+
715,
|
| 339 |
+
270
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 3
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "summing two terms which have similar goals to our disentanglement and completeness scores respectively, although expressed by comparing with the maximum value in the row or column, rather than via an entropic measure. Note that, due to the linear structure of ICA, there is no explicit mapping between $^ c$ and $_ z$ . We report separate scores as they capture distinct criteria and go beyond this metric by handling the non-square case when $D > K$ . ",
|
| 346 |
+
"bbox": [
|
| 347 |
+
174,
|
| 348 |
+
272,
|
| 349 |
+
825,
|
| 350 |
+
342
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 3
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "Predicting $_ { z }$ from $^ c$ has also been considered previously. Higgins et al. (2017, sec. A.5) use a linear classifier to predict discrete settings of $_ { z }$ and thus quantify the amount of explicit information about $_ z$ in $^ c$ , albeit with a discretisation step which we find unnecessary. Higgins et al. (2017, sec. 3) also propose a disentanglement metric. With this method, one of the generative factors say $z _ { k }$ is held fixed, and pairs of $_ { \\textbf { \\em x } }$ ’s are drawn, generated with different random $_ { z }$ ’s except for the fixed $z _ { k }$ . Pairwise absolute differences of the resulting codes $\\lvert c _ { 1 } - c _ { 2 } \\rvert$ are then computed and averaged over repetitions before being used to train a linear classifier to predict which generative factor was held fixed. In our view this is unnecessarily cumbersome—by setting up a regression problem to predict $_ { z }$ from $^ c$ as we have done, the structure of the $R _ { i j }$ matrix can be interrogated to quantify the degree of disentanglement. In addition, this facilitates the quantification of additional criteria, namely completeness and informativeness, without needing to generate any additional datasets. ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
173,
|
| 359 |
+
348,
|
| 360 |
+
825,
|
| 361 |
+
501
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 3
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "Glorot et al. (2011, fig. 3) predict $_ z$ from $^ c$ using a lasso regressor but only to qualitatively assess disentanglement, visually assessing the overlap of important features for the separate tasks of domain recognition and sentiment classification. Karaletsos et al. (2015) do so with an unspecified regressor, thus quantifying informativeness. In addition, they devise a quantitative metric to determine a model’s ability to disentangle the underlying factors of variation in images. In particular, they predict the order of query-specific oracle triplets of images, where the order indicates image similarity with respect to a query (e.g., ‘Where is the light condition most similar in terms of azimuth?’). However, the proposed metric is specifically designed to evaluate their ‘oracle-prioritized belief network’ and thus overly cumbersome to be used as a generic disentanglement metric. ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
174,
|
| 370 |
+
507,
|
| 371 |
+
825,
|
| 372 |
+
633
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "Properties such as invariance and equivariance have been proposed as desiderata for representations or codes (Goodfellow et al., 2009; Kivinen & Williams, 2011; Cohen & Welling, 2014b; Lenc & Vedaldi, 2015; Jayaraman & Grauman, 2015). In our view these qualities arise naturally from a properly disentangled and informative code. Consider, for example, the code of an object which consists of separate variables for its class (e.g., cup, bottle, banana etc.), position, pose, texture etc. If the object is translated, its position code variable(s) will transform accordingly (equivariance), but other code variables will remain invariant. ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
174,
|
| 381 |
+
640,
|
| 382 |
+
825,
|
| 383 |
+
737
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "4 EXPERIMENTS ",
|
| 390 |
+
"text_level": 1,
|
| 391 |
+
"bbox": [
|
| 392 |
+
176,
|
| 393 |
+
757,
|
| 394 |
+
326,
|
| 395 |
+
773
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "We employ the framework to compare quantitatively the codes learned by PCA, the VAE, $\\beta$ -VAE and InfoGAN. The results can be reproduced with our open source implementation3. ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
171,
|
| 404 |
+
789,
|
| 405 |
+
823,
|
| 406 |
+
816
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "4.1 DATA ",
|
| 413 |
+
"text_level": 1,
|
| 414 |
+
"bbox": [
|
| 415 |
+
174,
|
| 416 |
+
833,
|
| 417 |
+
253,
|
| 418 |
+
847
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "We use the graphics renderer described in (Moreno et al., 2016) to generate $2 0 0 , 0 0 0 6 4 \\times 6 4$ colour images of an object (teapot) with varying pose and colour (see Figure 2). For simplicity, the camera is centred on the object, the scene background is removed and additional generative factors (shape and lighting) are held constant. Each generative factor is independently sampled from its respective uniform distribution: azimuth $( z _ { 0 } ) \\setminus U [ 0 , 2 \\pi ]$ , elevation $( \\bar { z _ { 1 } } ) \\sim U [ \\bar { 0 } , \\pi / 2 ]$ , $\\operatorname { r e d } ( z _ { 2 } ) \\sim U [ 0 , 1 ]$ , green $( z _ { 3 } ) \\sim U [ 0 , 1 ]$ , $\\mathrm { \\ u e } ( z _ { 4 } ) \\sim U [ 0 , 1 ]$ . We divide the images into training (160,000), validation (20,000) and test (20,000) sets before removing images which contain particular generative factor combinations to faciliate the evaluation of zeroshot performance (see Appendix B.2). This left 142,927, 17,854 and 17,854 images in the training, validation and test sets respectively. ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
176,
|
| 427 |
+
859,
|
| 428 |
+
823,
|
| 429 |
+
887
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "image",
|
| 435 |
+
"img_path": "images/f76c659e3dd0a8e21b4860bbabc80e443dcc50da388afa658fe64386dade9c96.jpg",
|
| 436 |
+
"image_caption": [
|
| 437 |
+
"Figure 2: Data samples. "
|
| 438 |
+
],
|
| 439 |
+
"image_footnote": [],
|
| 440 |
+
"bbox": [
|
| 441 |
+
261,
|
| 442 |
+
106,
|
| 443 |
+
728,
|
| 444 |
+
145
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
210,
|
| 454 |
+
825,
|
| 455 |
+
308
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "4.2 MODELS ",
|
| 462 |
+
"text_level": 1,
|
| 463 |
+
"bbox": [
|
| 464 |
+
174,
|
| 465 |
+
333,
|
| 466 |
+
276,
|
| 467 |
+
348
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 4
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "Generative modelling has become one of the leading approaches to unsupervised representation learning, with several recent works imposing additional learning constraints to encourage the model to learn disentangled representations (Desjardins et al., 2012; Reed et al., 2014; Zhu et al., 2014; Cohen & Welling, 2014a; Cheung et al., 2014; Larsen et al., 2015; Makhzani et al., 2015; Chen et al., 2016; Higgins et al., 2017). Of these models, it can be argued that $\\beta$ -VAE (Higgins et al., 2017) and InfoGAN (Chen et al., 2016) are the most promising due to their scalability and lack of assumptions about the underling factors of variation. Thus, we evaluate the codes learned by these models and compare them to the VAE $\\beta = 1 \\AA$ ) and PCA. ",
|
| 474 |
+
"bbox": [
|
| 475 |
+
173,
|
| 476 |
+
363,
|
| 477 |
+
825,
|
| 478 |
+
474
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "For fair comparison, we train all models with 10 code variables and use the same network architectures for the VAE, $\\beta$ -VAE and InfoGAN. More specifically, we use the same residual networks (ResNets, He et al. 2016) for the encoders/discriminator and the decoders/generator (see Table 2), and train InfoGAN with 10 continous ‘latent codes’(Chen et al., 2016) and 0 noise variables. We found that these ResNets produced the sharpest images and best visual disentanglement for all generative models, outperforming popular architectures for ( $\\beta .$ -)VAE (Larsen et al., 2015; Higgins et al., 2017) and InfoGAN (Kulkarni et al., 2015). We fit $\\beta = 6$ and $\\lambda = 6$ for $\\beta$ -VAE and InfoGAN respectively by balancing reconstruction/generation quality and visual disentanglement (see Appendix D), where $\\lambda$ is the mutual information coefficient. See Appendix A for further details. ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
174,
|
| 487 |
+
482,
|
| 488 |
+
825,
|
| 489 |
+
607
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "4.3 REGRESSORS ",
|
| 496 |
+
"text_level": 1,
|
| 497 |
+
"bbox": [
|
| 498 |
+
176,
|
| 499 |
+
633,
|
| 500 |
+
307,
|
| 501 |
+
647
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "Lasso. We begin with linear regressors and encourage a sparse mapping between $^ c$ and $_ { z }$ with an $\\ell _ { 1 }$ regularisation penalty (lasso regressors). With the inputs and targets normalised to have zero mean and unit variance, the magnitude of the resulting regression weights rank the learnt code variables $c _ { 0 } , \\ldots , c _ { D - 1 }$ in order of relative importance to the prediction. That is, they reveal which code variables capture information about a given generative factor. Thus, we define the matrix of relative importances $R$ as $R _ { i j } = | W _ { i j } |$ for linear regression, where $R _ { i j }$ denotes the relative importance of $c _ { i }$ in predicting $z _ { j }$ and $| W _ { i j } |$ denotes the magnitude of the weight used to scale $c _ { i }$ in predicting $z _ { j }$ . We fit the $\\ell _ { 1 }$ penalty coefficient $\\alpha$ on the validation set to achieve the lowest prediction error. ",
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
662,
|
| 511 |
+
825,
|
| 512 |
+
773
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "Random forest. We use random forest regressors due to their inbuilt ability to determine the relative importance of each feature to a given prediction, thus allowing us to directly specify the matrix of relative importances $R$ . Random forests average the predictions and feature importances from each decision tree in the ensemble. The number of times a tree chooses to split on a particular input variable determines its importance to the prediction. Thus, the relative importance of each input variable $c _ { i }$ is given by the number of cases split on $c _ { i }$ over the total number of splits (Breiman et al., 1984). As performance generally improves with the number of trees $n$ in the ensemble, we fix $n = 1 0$ . The remaining parameter, tree depth, is determined on the validation set (lowest prediction error). ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
173,
|
| 521 |
+
797,
|
| 522 |
+
825,
|
| 523 |
+
924
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "table",
|
| 529 |
+
"img_path": "images/3f4bb8ad30b6e0667440c3e4fba2e1de5ef8cae59ff8b7777e8c4fb5f0126682.jpg",
|
| 530 |
+
"table_caption": [],
|
| 531 |
+
"table_footnote": [
|
| 532 |
+
"Table 1: Average model scores. ‘Inform.’ indicates (average) normalised root-mean-square error (NRMSE) in predicting $_ z$ . "
|
| 533 |
+
],
|
| 534 |
+
"table_body": "<table><tr><td colspan=\"4\">(a) Lasso</td><td colspan=\"4\">(b)Random forest</td></tr><tr><td>Code</td><td>Disent.</td><td>Compl.</td><td>Inform.</td><td>Code</td><td>Disent.</td><td>Compl.</td><td>Inform.</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PCA</td><td>0.29</td><td>0.32</td><td>0.44</td><td>PCA</td><td>0.50</td><td>0.52</td><td>0.27</td></tr><tr><td>VAE (β = 1)</td><td>0.67</td><td>0.62</td><td>0.37</td><td>VAE (β = 1)</td><td>0.86</td><td>0.75</td><td>0.09</td></tr><tr><td>β-VAE (β = 6)</td><td>0.66</td><td>0.59</td><td>0.35</td><td>β-VAE (β = 6)</td><td>0.90</td><td>0.76</td><td>0.10</td></tr><tr><td>InfoGAN</td><td>0.75</td><td>0.72</td><td>0.23</td><td>InfoGAN</td><td>0.91</td><td>0.87</td><td>0.13</td></tr></table>",
|
| 535 |
+
"bbox": [
|
| 536 |
+
176,
|
| 537 |
+
99,
|
| 538 |
+
821,
|
| 539 |
+
207
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 5
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "4.4 RESULTS ",
|
| 546 |
+
"text_level": 1,
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
273,
|
| 550 |
+
277,
|
| 551 |
+
287
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 5
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "Overview. Table 1 presents the average disentanglement, completeness and informativeness scores for PCA, the VAE, $\\beta$ -VAE and InfoGAN for the (a) lasso and (b) random forest regressors. With both regressors, PCA achieves the worst disentanglement, completeness and informativeness scores (highest error in predicting $_ z$ ) while the VAE $\\mathbf { \\nabla } \\beta = 1 \\mathbf { \\dot { \\varepsilon } } ,$ ) and $\\beta$ -VAE $\\beta = 6 )$ ) achieve very similar disentanglement, completeness and informativeness scores to each other. While InfoGAN achieves the best disentanglement, completeness and informativeness scores with the lasso regressor, the VAE and $\\beta$ -VAE achieve similar disentanglement and informativeness scores to it with (the increased capacity of) the random forest regressor. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
299,
|
| 561 |
+
825,
|
| 562 |
+
410
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 5
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "Disentanglement. InfoGAN achieves the highest average disentanglement with both regressors (although $\\beta$ -VAE closely follows with the random forest regressor). That is, each variable in InfoGAN’s code (c−InfoGAN) is closest (on average) to capturing a single generative factor, making $c -$ InfoGAN the most disentangled code (see Appendix B.1 for the full / per-variable results). Figure 3 helps to identify the generative factors captured by a given code variable and thus visualise the disentanglement. For example, comparing $c _ { 0 }$ across all models in Figure 3 (the first rows), it is clear that $c _ { 0 } { - } \\mathrm { V A E }$ , $c _ { 0 } { - } \\beta \\mathrm { V A E }$ and $c _ { 0 } { \\mathrm { - I n f o G A N } }$ (almost) solely capture information about $z _ { \\mathrm { 0 } }$ while $c _ { 0 } { - } \\mathrm { P C A }$ captures information about almost all generative factors. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
173,
|
| 571 |
+
426,
|
| 572 |
+
825,
|
| 573 |
+
537
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 5
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "Completeness. InfoGAN also achieves the highest average completeness with both regressors. That is, $c - .$ InfoGAN is closest (on average) to capturing each generative factor with a single code variable, making $c - .$ InfoGAN the most complete code. In contrast, the low completeness score (overcompleteness) of $c { \\mathrm { - P C A } }$ reveals that it uses several code variables to capture each generative factor (again, see Appendix B.1 for the full $/$ per-variable results). Figure 3 helps to identify the code variables which capture a given generative factor and thus visualise the completeness. For example, Figure 3 shows that several ‘dead’ or redundant code variables $( c _ { 5 } , c _ { 6 } , c _ { 7 } )$ enable a high degree of completeness in $c -$ InfoGAN. In addition, comparing $z _ { 0 }$ (azimuth) across all models in Figure 3b (the first columns), it is clear that InfoGAN uses three code variables $( c _ { 0 } , c _ { 1 } , c _ { 8 } )$ to capture $z _ { \\mathrm { 0 } }$ while PCA, VAE, and $\\beta$ -VAE use significantly more. In particular, Figure 3 shows that $c { \\mathrm { - P C A } }$ is severely overcomplete in capturing $z _ { \\mathrm { 0 } }$ , with each of its constituent variables capturing distinct information about $z _ { \\mathrm { 0 } }$ . With an ideal code, Figure 3 would show a single large square in $K$ rows and each column, indicating a one-to-one mapping between $_ z$ and $K$ of the dimensions in $^ c$ . ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
174,
|
| 582 |
+
553,
|
| 583 |
+
825,
|
| 584 |
+
733
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 5
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "Informativeness. With the lasso regressor, c−InfoGAN is most predictive of / informative about $_ z$ . That is, $c - .$ InfoGAN contains the most easily-extractable $/$ explicit information about $_ { z }$ . This is supported by Figure 5, which plots each $z$ against the corresponding ‘most important’ code variable(s) (as indicated by the $R$ matrix) and reveals (primarily) linear relationships between $_ { z }$ and c−InfoGAN. Despite being significantly deeper with many more parameters, $c { \\mathrm { - V A E } }$ and $\\displaystyle c { - \\beta \\mathrm { V A E } }$ are only slightly more predictive of $_ z$ than $c { \\mathrm { - P C A } }$ with this linear regressor, indicating that the information about $_ z$ in $c { \\mathrm { - V A E } }$ and $\\displaystyle c { - \\beta \\mathrm { V A E } }$ is not easily-extractable / explicit (again, this is supported by the relationships depicted in Figure 5). ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
174,
|
| 593 |
+
750,
|
| 594 |
+
825,
|
| 595 |
+
861
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 5
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "All model codes better predict $_ z$ with the random forest regressor, particularly $c { \\mathrm { - V A E } }$ and $\\displaystyle c { - \\beta \\mathrm { V A E } }$ . In fact, $c { \\mathrm { - V A E } }$ and $\\textstyle { c - } \\beta \\mathrm { V A E }$ are the most predictive of $/$ informative about $_ { z }$ with this non-linear regressor, with the increased capacity allowing significantly more information about $_ z$ to be extracted from these codes. As discussed in section 2, the prediction error with this (nonlinear) regressor is likely a better quantification of informativeness as it is less dependent on the ability of the model to explicitly represent information about $_ z$ in $^ c$ . ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
174,
|
| 604 |
+
868,
|
| 605 |
+
823,
|
| 606 |
+
924
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 5
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "image",
|
| 612 |
+
"img_path": "images/fb851eeda23ab9d9cbe5970eb98c698d678e3655d4394140d5e5d3b65c5e527e.jpg",
|
| 613 |
+
"image_caption": [
|
| 614 |
+
"Figure 3: Visualising $\\pmb { R }$ . Square size indicates magnitude, i.e. relative importance. Row $i$ illustrates the importance of $c _ { i }$ to each prediction and thus the disentanglement. Column $j$ illustrates the importance of each code variable for predicting $z _ { j }$ and thus the completeness. "
|
| 615 |
+
],
|
| 616 |
+
"image_footnote": [],
|
| 617 |
+
"bbox": [
|
| 618 |
+
184,
|
| 619 |
+
108,
|
| 620 |
+
816,
|
| 621 |
+
650
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 6
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "",
|
| 628 |
+
"bbox": [
|
| 629 |
+
173,
|
| 630 |
+
738,
|
| 631 |
+
823,
|
| 632 |
+
766
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 6
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"text": "5 CONCLUSION ",
|
| 639 |
+
"text_level": 1,
|
| 640 |
+
"bbox": [
|
| 641 |
+
176,
|
| 642 |
+
786,
|
| 643 |
+
318,
|
| 644 |
+
803
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 6
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "In this work we have presented a framework for the quantitative evaluation of disentangled representations when the ground-truth latent structure is available. The quality of learnt representations is elucidated through the explicit definition and quantification of three criteria: disentanglement, completeness and informativeness. To illustrate the appropriateness of our framework, we employed it to compare quantitatively the codes learned by PCA, the VAE, $\\beta$ -VAE and InfoGAN. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
819,
|
| 654 |
+
823,
|
| 655 |
+
888
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 6
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "While our framework is limited to synthetic datasets where it is possible to recover $_ z$ , reliable disentanglement is far from solved even in this restricted setting. Hence, we believe our framework and its constituent metrics take a substantial and important step forward in understanding learned representations. We have made the code and dataset publicly available in the hope that this facilitates further model comparisons and eventually the establishment of quantitative benchmarks for disentangled factor learning. While we have focused on image data in this work, future work may explore the applicability of our framework to other types of synthetic data. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
895,
|
| 665 |
+
821,
|
| 666 |
+
924
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 6
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
103,
|
| 676 |
+
825,
|
| 677 |
+
174
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 7
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "6 ACKNOWLEDGEMENTS ",
|
| 684 |
+
"text_level": 1,
|
| 685 |
+
"bbox": [
|
| 686 |
+
176,
|
| 687 |
+
194,
|
| 688 |
+
398,
|
| 689 |
+
209
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 7
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "We would like to thank Pol Moreno and Akash Srivastava for helpful discussions. We would also like to thank Pol for generating the dataset. Finally, we would like to thank the anonymous reviewers for their constructive criticisms which were helpful in refining this paper. The work of CW is supported in part by EPSRC grant EP/N510129/1 to the Alan Turing Institute. ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
224,
|
| 699 |
+
825,
|
| 700 |
+
281
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 7
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "REFERENCES ",
|
| 707 |
+
"text_level": 1,
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
303,
|
| 711 |
+
285,
|
| 712 |
+
318
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
173,
|
| 721 |
+
325,
|
| 722 |
+
823,
|
| 723 |
+
353
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 7
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1798–1828, 2013. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
362,
|
| 733 |
+
823,
|
| 734 |
+
404
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 7
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "Leo Breiman, Jerome Friedman, Charles J Stone, and Richard A Olshen. Classification and regression trees. CRC press, 1984. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
173,
|
| 743 |
+
412,
|
| 744 |
+
823,
|
| 745 |
+
443
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 7
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in Neural Information Processing Systems 29, pp. 2172–2180, 2016. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
176,
|
| 754 |
+
450,
|
| 755 |
+
821,
|
| 756 |
+
494
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 7
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "Brian Cheung, Jesse A Livezey, Arjun K Bansal, and Bruno A Olshausen. Discovering hidden factors of variation in deep networks. arXiv preprint arXiv:1412.6583, 2014. ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
171,
|
| 765 |
+
502,
|
| 766 |
+
823,
|
| 767 |
+
532
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 7
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "Taco S Cohen and Max Welling. Transformation properties of learned visual representations. arXiv preprint arXiv:1412.7659, 2014a. ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
171,
|
| 776 |
+
540,
|
| 777 |
+
823,
|
| 778 |
+
569
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 7
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "Taco S Cohen and Max Welling. Learning the irreducible representations of commutative lie groups. In International Conference on Machine Learning, pp. 1755–1763, 2014b. ",
|
| 785 |
+
"bbox": [
|
| 786 |
+
169,
|
| 787 |
+
577,
|
| 788 |
+
821,
|
| 789 |
+
607
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 7
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "Emily Denton and Vighnesh Birodkar. Unsupervised learning of disentangled representations from video. arXiv preprint arXiv:1705.10915, 2017. ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
171,
|
| 798 |
+
614,
|
| 799 |
+
825,
|
| 800 |
+
643
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 7
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "Guillaume Desjardins, Aaron Courville, and Yoshua Bengio. Disentangling factors of variation via generative entangling. arXiv preprint arXiv:1210.5474, 2012. ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
173,
|
| 809 |
+
651,
|
| 810 |
+
823,
|
| 811 |
+
681
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 7
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Domain adaptation for large-scale sentiment classification: A deep learning approach. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 513–520, 2011. ",
|
| 818 |
+
"bbox": [
|
| 819 |
+
174,
|
| 820 |
+
689,
|
| 821 |
+
823,
|
| 822 |
+
733
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 7
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "Ian Goodfellow, Honglak Lee, Quoc V Le, Andrew Saxe, and Andrew Y Ng. Measuring invariances in deep networks. In Advances in Neural Information Processing Systems 22, pp. 646–654, 2009. ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
169,
|
| 831 |
+
741,
|
| 832 |
+
823,
|
| 833 |
+
771
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 7
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of Wasserstein GANs. arXiv preprint arXiv:1704.00028, 2017. ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
169,
|
| 842 |
+
779,
|
| 843 |
+
821,
|
| 844 |
+
808
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 7
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778, 2016. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
173,
|
| 853 |
+
815,
|
| 854 |
+
821,
|
| 855 |
+
858
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 7
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. $\\beta$ -VAE: Learning basic Visual Concepts with a Constrained Variational Framework. In 5th International Conference on Learning Representations, 2017. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
867,
|
| 865 |
+
825,
|
| 866 |
+
922
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 7
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "A. Hyvarinen, J. Karhunen, and E. Oja. ¨ Independent Component Analysis. Wiley, 2001. ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
173,
|
| 875 |
+
103,
|
| 876 |
+
750,
|
| 877 |
+
119
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 8
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015. ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
176,
|
| 886 |
+
127,
|
| 887 |
+
823,
|
| 888 |
+
170
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 8
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "Dinesh Jayaraman and Kristen Grauman. Learning image representations tied to ego-motion. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1413–1421, 2015. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
173,
|
| 897 |
+
179,
|
| 898 |
+
823,
|
| 899 |
+
208
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 8
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "Theofanis Karaletsos, Serge Belongie, and Gunnar Ratsch. Bayesian representation learning with ¨ oracle constraints. arXiv preprint arXiv:1506.05011, 2015. ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
173,
|
| 908 |
+
217,
|
| 909 |
+
823,
|
| 910 |
+
246
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 8
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
176,
|
| 919 |
+
253,
|
| 920 |
+
825,
|
| 921 |
+
284
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 8
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. arXiv preprint arXiv:1312.6114, 2013. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
173,
|
| 930 |
+
291,
|
| 931 |
+
825,
|
| 932 |
+
321
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 8
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "Jyri J Kivinen and Christopher K. I. Williams. Transformation equivariant Boltzmann machines. In International Conference on Artificial Neural Networks, pp. 1–9. Springer, 2011. ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
171,
|
| 941 |
+
329,
|
| 942 |
+
823,
|
| 943 |
+
359
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 8
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Tejas D Kulkarni, William F Whitney, Pushmeet Kohli, and Josh Tenenbaum. Deep convolutional inverse graphics network. In Advances in Neural Information Processing Systems 28, pp. 2539– 2547, 2015. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
176,
|
| 952 |
+
367,
|
| 953 |
+
823,
|
| 954 |
+
410
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 8
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, pp. 1–101, 2016. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
171,
|
| 963 |
+
419,
|
| 964 |
+
823,
|
| 965 |
+
449
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 8
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Anders Boesen Lindbo Larsen, Søren Kaae Sønderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. arXiv preprint arXiv:1512.09300, 2015. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
173,
|
| 974 |
+
457,
|
| 975 |
+
820,
|
| 976 |
+
486
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 8
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 991–999, 2015. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
174,
|
| 985 |
+
494,
|
| 986 |
+
823,
|
| 987 |
+
537
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 8
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
173,
|
| 996 |
+
545,
|
| 997 |
+
820,
|
| 998 |
+
575
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 8
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "K. V. Mardia, J. T. Kent, and J. M. Bibby. Multivariate Analysis. Academic Press, London, 1979. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
171,
|
| 1007 |
+
583,
|
| 1008 |
+
813,
|
| 1009 |
+
599
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 8
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Pol Moreno, Christopher K. I. Williams, Charlie Nash, and Pushmeet Kohli. Overcoming occlusion with inverse graphics. In ECCV Geometry Meets Deep Learning Workshop 2016, pp. 170–185. Springer, 2016. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
173,
|
| 1018 |
+
607,
|
| 1019 |
+
823,
|
| 1020 |
+
650
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 8
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "Scott Reed, Kihyuk Sohn, Yuting Zhang, and Honglak Lee. Learning to disentangle factors of variation with manifold interaction. In International Conference on Machine Learning, pp. 1431– 1439, 2014. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
173,
|
| 1029 |
+
659,
|
| 1030 |
+
823,
|
| 1031 |
+
702
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 8
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "William F Whitney, Michael Chang, Tejas Kulkarni, and Joshua B Tenenbaum. Understanding visual concepts with continuation learning. arXiv preprint arXiv:1602.06822, 2016. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
171,
|
| 1040 |
+
710,
|
| 1041 |
+
823,
|
| 1042 |
+
741
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 8
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "H. H. Yang and S-i. Amari. Adaptive On-Line Learning Algorithms for Blind Separation— Maximum Entropy and Minimum Mutual Information. Neural Computation, 9(7):1457–1482, 1997. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
173,
|
| 1051 |
+
748,
|
| 1052 |
+
825,
|
| 1053 |
+
791
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 8
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Jimei Yang, Scott E Reed, Ming-Hsuan Yang, and Honglak Lee. Weakly-supervised disentangling with recurrent transformations for 3d view synthesis. In Advances in Neural Information Processing Systems 28, pp. 1099–1107, 2015. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
173,
|
| 1062 |
+
800,
|
| 1063 |
+
823,
|
| 1064 |
+
843
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 8
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Zhenyao Zhu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Multi-view perceptron: a deep model for learning face identity and view representations. In Advances in Neural Information Processing Systems 27, pp. 217–225, 2014. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
174,
|
| 1073 |
+
852,
|
| 1074 |
+
823,
|
| 1075 |
+
895
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 8
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "A EXPERIMENTAL SETUP ",
|
| 1082 |
+
"text_level": 1,
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
176,
|
| 1085 |
+
102,
|
| 1086 |
+
401,
|
| 1087 |
+
118
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 9
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "For all generative models, we use the ResNet architectures shown in Table 2 for the encoder / discriminatior $( D )$ / auxilary network $( Q )$ and the decoder / generator $( G )$ . We optimize using Adam (Kingma & Ba, 2014) with a learning rate of 1e-4 and a batch size of 64. For the stable training of InfoGAN, we fix the latent codes’ standard deviations to 1 and use the objective of the improved Wasserstein GAN (IWGAN) (Gulrajani et al., 2017), simply appending InfoGAN’s approximate mutual information penalty. As in Gulrajani et al. (2017), we use layer normalization (Ba et al., 2016) instead of batch normalization (Ioffe & Szegedy, 2015) in $D$ . As in Chen et al. (2016), $Q$ shares all convolutional layers with the discriminator (or ‘critic’ with WGAN objective) $D$ , each adding their own final output layer. As $Q$ parametrises the approximate posterior over continous latent codes $Q ( c | \\pmb { x } )$ , we simply take the mean returned by $Q ( { \\pmb x } )$ as the code or representation for a given image. Further details on the experimental setup are provided in our open-source implementation. ",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
174,
|
| 1096 |
+
137,
|
| 1097 |
+
825,
|
| 1098 |
+
303
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 9
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "table",
|
| 1104 |
+
"img_path": "images/72d909827111ece8d767cc5d11d309d71ae1b4a9d3347996b7e0309285b17bf1.jpg",
|
| 1105 |
+
"table_caption": [
|
| 1106 |
+
"Table 2: (β-)VAE / InfoGAN architecture. Each network has 4 residual blocks (all but the first and last rows). The input to each residual block is added to its output (with appropriate downsampling/upsampling to ensure that the dimensions match). Downsampling (↓) is performed with mean pooling. $\\uparrow$ indicates nearest-neighbour upsampling. When batch normalization (BN) is applied to convolutional layers, per-channel normalization is used. "
|
| 1107 |
+
],
|
| 1108 |
+
"table_footnote": [],
|
| 1109 |
+
"table_body": "<table><tr><td rowspan=1 colspan=2>Encoder /D/ Q Decoder /G</td></tr><tr><td rowspan=1 colspan=1>3x3 64 conv.</td><td rowspan=1 colspan=1>FC 4:4.8.64</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3x3 64 convBN, ReLU,3×3 128 conv,↓</td><td rowspan=1 colspan=1>BN,ReLU, 3x3 512 conv ↑BN,ReLU, 3×3 512 conv</td></tr><tr><td rowspan=1 colspan=1>BN, ReLU, 3x3 128 convBN,ReLU,3x3 256 conv,↓</td><td rowspan=1 colspan=1>BN, ReLU, 3x3 256 conv ↑BN, ReLU, 3x3 256 conv</td></tr><tr><td rowspan=1 colspan=1>BN, ReLU, 3x3 256 convBN,ReLU,3×3 512 conv,↓</td><td rowspan=1 colspan=1>BN, ReLU, 3x3 128 conv ↑BN,ReLU, 3×3 128 conv</td></tr><tr><td rowspan=1 colspan=1>BN, ReLU,3x3 512 convBN, ReLU,3×3 512 conv,↓</td><td rowspan=1 colspan=1>BN,ReLU,3x3 64 conv ↑BN,ReLU,3x3 64 conv</td></tr><tr><td rowspan=1 colspan=1>FC Output</td><td rowspan=1 colspan=1>BN,ReLU,3x33 conv, tanh</td></tr></table>",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
302,
|
| 1112 |
+
311,
|
| 1113 |
+
696,
|
| 1114 |
+
469
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "B EXTENDED RESULTS ",
|
| 1121 |
+
"text_level": 1,
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
176,
|
| 1124 |
+
585,
|
| 1125 |
+
382,
|
| 1126 |
+
602
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "B.1 FULL TABLE / PER-FACTOR RESULTS ",
|
| 1133 |
+
"text_level": 1,
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
176,
|
| 1136 |
+
621,
|
| 1137 |
+
468,
|
| 1138 |
+
635
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 9
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Tables 3 and 4 give the full regression results, i.e. the per-factor disentanglement, completeness and informativeness. As each target is normalised to have a standard deviation of 1, the root-mean-square error (RMSE) in predicting each target is naturally normalised relative to the constant regressor which guesses the expected value of the targets. Hence, we report the NRMSE. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
174,
|
| 1147 |
+
650,
|
| 1148 |
+
825,
|
| 1149 |
+
705
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 9
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "B.2 ZEROSHOT ",
|
| 1156 |
+
"text_level": 1,
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
174,
|
| 1159 |
+
728,
|
| 1160 |
+
292,
|
| 1161 |
+
742
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 9
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Disentangled representations should enable a model to perform zero-shot inference, that is, generalise its knowledge beyond the training distribution by recombining previously-learnt factors (Bengio et al., 2013; Higgins et al., 2017). Thus, we can further evaluate the disentangled representations learned by a given model by quantifying its ability to perform zero-shot inference. We use the ground-truth values of the generative factors to create two different data distributions. More specifically, we isolate all images whose generative factor values lie in a particular range to create a ‘gap’ in the original dataset. This gap then serves as our zero-shot data containing unseen factor combinations. Informally, the images in this gap can be described as ‘red’ teapots from ‘above’. Formally, the generative factors of these images satisfy the following condition: $z _ { 2 } > ( z _ { 3 } + 0 . 1 5 )$ and $z _ { 2 } > ( z _ { 4 } + 0 . 1 5 )$ and $z _ { 1 } > \\frac { \\pi } { 4 }$ . This dataset contained 21,238 images, with (extreme) samples given in Figure 4. Note that zero-shot inference is facilitated by disentangled and informative representations, thus is not a core component of our evaluation, but rather a ‘bonus’. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
173,
|
| 1170 |
+
757,
|
| 1171 |
+
825,
|
| 1172 |
+
924
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 9
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "table",
|
| 1178 |
+
"img_path": "images/24fcfcbcf7c6e7ee2f3f451dcdfda1296b9c595f769070046a1f6cb0bec82344.jpg",
|
| 1179 |
+
"table_caption": [
|
| 1180 |
+
"(a) Disentanglement "
|
| 1181 |
+
],
|
| 1182 |
+
"table_footnote": [],
|
| 1183 |
+
"table_body": "<table><tr><td>Code</td><td>Co</td><td>C1</td><td>C2</td><td>C3</td><td>C4</td><td>C5</td><td>C6</td><td>C7</td><td>C8</td><td>Cg</td><td>W. Avg.</td></tr><tr><td>PCA</td><td>0.16</td><td>0.50</td><td>0.31</td><td>0.09</td><td>0.45</td><td>0.60</td><td>0.11</td><td>1.00</td><td>0.17</td><td>0.51</td><td>0.29</td></tr><tr><td>VAE</td><td>1.00</td><td>0.85</td><td>0.95</td><td>0.68</td><td>0.63</td><td>1.00</td><td>0.30</td><td>0.37</td><td>0.66</td><td>0.95</td><td>0.67</td></tr><tr><td>β-VAE</td><td>1.00</td><td>0.64</td><td>1.00</td><td>0.76</td><td>0.39</td><td>0.89</td><td>0.49</td><td>0.81</td><td>0.45</td><td>0.80</td><td>0.66</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>InfoGAN</td><td>0.83</td><td>0.85</td><td>0.76</td><td>0.66</td><td>0.78</td><td>0.43</td><td>1.00</td><td>1.00</td><td>0.64</td><td>0.74</td><td>0.75</td></tr></table>",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
218,
|
| 1186 |
+
121,
|
| 1187 |
+
774,
|
| 1188 |
+
198
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 10
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "table",
|
| 1194 |
+
"img_path": "images/666dd52762e84c6f5d290752255f4359e8a64ece0ff96102539762800d317468.jpg",
|
| 1195 |
+
"table_caption": [
|
| 1196 |
+
"(b) Completeness ",
|
| 1197 |
+
"(c) Informativeness "
|
| 1198 |
+
],
|
| 1199 |
+
"table_footnote": [],
|
| 1200 |
+
"table_body": "<table><tr><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td></tr><tr><td>PCA</td><td>0.38</td><td>0.39</td><td>0.34</td><td>0.24</td><td></td><td>0.32</td><td>PCA</td><td></td><td></td><td></td><td>0.32</td><td>0.33</td><td>0.44</td></tr><tr><td>VAE</td><td></td><td></td><td></td><td></td><td>0.25</td><td></td><td></td><td>0.83</td><td>0.42</td><td>0.32</td><td></td><td></td><td></td></tr><tr><td></td><td>0.54</td><td>0.37</td><td>0.75</td><td>0.73</td><td>0.73</td><td>0.62</td><td>VAE</td><td>0.61</td><td>0.60</td><td>0.23</td><td>0.21</td><td>0.21</td><td>0.37</td></tr><tr><td>β-VAE</td><td>0.14</td><td>0.39</td><td>0.70</td><td>0.85</td><td>0.88</td><td>0.59</td><td>β-VAE</td><td>0.80</td><td>0.41</td><td>0.19</td><td>0.19</td><td>0.18</td><td>0.35</td></tr><tr><td>InfoGAN</td><td>0.42</td><td>0.72</td><td>0.75</td><td>0.86</td><td>0.84</td><td>0.72</td><td>InfoGAN</td><td>0.48</td><td>0.13</td><td>0.23</td><td>0.16</td><td>0.15</td><td>0.23</td></tr></table>",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
176,
|
| 1203 |
+
227,
|
| 1204 |
+
823,
|
| 1205 |
+
303
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 10
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "table",
|
| 1211 |
+
"img_path": "images/928d2f0eddeef6c6022821c3ff3e01d024c8dbd2e7d1ef838c610d5dd0905932.jpg",
|
| 1212 |
+
"table_caption": [
|
| 1213 |
+
"Table 3: Lasso regression results. (a) Disentanglement scores for each code variable. ‘W. Avg.’ abbreviates weighted average. (b) Completeness scores for each generative factor. $z _ { 0 } , \\ldots , z _ { 4 }$ represent azimuth, elevation, red, green and blue generative factors respectively. c) Test set NRMSE. ",
|
| 1214 |
+
"(a) Disentanglement ",
|
| 1215 |
+
"Table 4: Random forest regression results. Caption of Table 3 applies. "
|
| 1216 |
+
],
|
| 1217 |
+
"table_footnote": [],
|
| 1218 |
+
"table_body": "<table><tr><td>Code</td><td></td><td>Co</td><td>C1</td><td>C2</td><td>C3</td><td>C4</td><td>C5</td><td>C6</td><td>C7</td><td>C8</td><td>Cg</td><td>W. Avg.</td><td></td></tr><tr><td>PCA</td><td></td><td>0.25</td><td>0.54</td><td>0.63</td><td>0.10</td><td>0.88</td><td>0.97</td><td>0.16</td><td>0.90</td><td>0.41</td><td>0.72</td><td>0.50</td><td></td></tr><tr><td>VAE</td><td></td><td>0.98</td><td>0.99</td><td>0.91</td><td>0.94</td><td>0.75</td><td>0.99</td><td>0.56</td><td>0.56</td><td>0.92</td><td>0.86</td><td>0.86</td><td></td></tr><tr><td>β-VAE</td><td></td><td>0.96</td><td>0.96</td><td>0.95</td><td>0.99</td><td>0.63</td><td>0.96</td><td>0.69</td><td>0.94</td><td>0.64</td><td>0.98</td><td>0.90</td><td></td></tr><tr><td>InfoGAN</td><td></td><td>0.85</td><td>0.97</td><td>0.91</td><td>0.84</td><td>0.94</td><td>0.68</td><td>0.86</td><td>0.70</td><td>0.71</td><td>0.92</td><td>0.91</td><td></td></tr><tr><td>(b) Completeness</td><td colspan=\"3\"></td><td></td><td></td><td></td><td>(c) Informativeness</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Code 20</td><td colspan=\"3\">21</td><td>23</td><td>24</td><td>Avg</td><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td></tr><tr><td>PCA</td><td></td><td></td><td>22</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>0.27</td></tr><tr><td>VAE</td><td>0.31 0.44</td><td>0.51 0.61</td><td>0.67 0.90</td><td>0.56 0.91</td><td>0.56 0.91</td><td>0.52 0.75</td><td>PCA VAE</td><td>0.36 0.14</td><td>0.23 0.09</td><td>0.20 0.09</td><td>0.28 0.06</td><td>0.28 0.06</td><td>0.09</td></tr><tr><td>β-VAE</td><td>0.28</td><td>0.67</td><td>0.90</td><td>0.96</td><td>0.97</td><td>0.76</td><td>β-VAE</td><td>0.18</td><td>0.07</td><td>0.08</td><td>0.09</td><td>0.08</td><td>0.10</td></tr><tr><td>InfoGAN</td><td>0.59</td><td>0.94</td><td>0.91</td><td>0.96</td><td>0.95</td><td>0.87</td><td>InfoGAN</td><td>0.25</td><td>0.07</td><td>0.14</td><td>0.09</td><td>0.10</td><td>0.13</td></tr></table>",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
176,
|
| 1221 |
+
385,
|
| 1222 |
+
823,
|
| 1223 |
+
574
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 10
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "Table 5 presents the zeroshot results. With the random forest regressor, $c { \\mathrm { - V A E } }$ and $\\displaystyle c { - \\beta \\mathrm { V A E } }$ perform the best with very little increase in prediction error compared to Table 4c, while $c - .$ InfoGAN predicts the value of unseen factor combinations reasonably well. ",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
174,
|
| 1232 |
+
626,
|
| 1233 |
+
825,
|
| 1234 |
+
667
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 10
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "image",
|
| 1240 |
+
"img_path": "images/12bf251bb375ffe741383d2cc4b3a3941a01d39e89ec679348dd7f9f346d07a8.jpg",
|
| 1241 |
+
"image_caption": [
|
| 1242 |
+
"Figure 4: Zeroshot samples "
|
| 1243 |
+
],
|
| 1244 |
+
"image_footnote": [],
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
267,
|
| 1247 |
+
104,
|
| 1248 |
+
728,
|
| 1249 |
+
147
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 11
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "table",
|
| 1255 |
+
"img_path": "images/de4c825138cb89371fe6edbc53f142c5dfb9bde935cf4ec37413b349e88164d7.jpg",
|
| 1256 |
+
"table_caption": [],
|
| 1257 |
+
"table_footnote": [],
|
| 1258 |
+
"table_body": "<table><tr><td colspan=\"6\">(a) Lasso</td><td colspan=\"8\">(b)Random Forest</td></tr><tr><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td><td>Code</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>Avg.</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>PCA</td><td>0.88</td><td>0.80</td><td>0.75</td><td>0.52</td><td>0.54</td><td>0.70</td><td>PCA</td><td>0.44</td><td>0.49</td><td>0.65</td><td>0.56</td><td>0.63</td><td>0.55</td></tr><tr><td>VAE</td><td>0.56</td><td>1.11</td><td>0.52</td><td>0.30</td><td>0.32</td><td>0.56</td><td>VAE</td><td>0.13</td><td>0.13</td><td>0.34</td><td>0.08</td><td>0.07</td><td>0.15</td></tr><tr><td>β-VAE</td><td>0.81</td><td>0.79</td><td>0.32</td><td>0.27</td><td>0.25</td><td>0.49</td><td>β-VAE</td><td>0.18</td><td>0.18</td><td>0.21</td><td>0.12</td><td>0.14</td><td>0.16</td></tr><tr><td>InfoGAN</td><td>0.49</td><td>0.34</td><td>0.93</td><td>0.36</td><td>0.33</td><td>0.49</td><td>InfoGAN</td><td>0.27</td><td>0.18</td><td>0.63</td><td>0.21</td><td>0.25</td><td>0.31</td></tr></table>",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
176,
|
| 1261 |
+
188,
|
| 1262 |
+
823,
|
| 1263 |
+
285
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 11
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "Table 5: Zeroshot performance. NRMSE in predicting unseen factor combinations. ",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
218,
|
| 1272 |
+
296,
|
| 1273 |
+
774,
|
| 1274 |
+
311
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 11
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "C Z VS. C ",
|
| 1281 |
+
"text_level": 1,
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
174,
|
| 1284 |
+
335,
|
| 1285 |
+
277,
|
| 1286 |
+
352
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 11
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Figure 5 plots each generative factor against the corresponding ‘most important’ code variable(s) (as indicated by $R$ ) of each model for 5000 randomly-selected samples. As discussed in section 2, models with generic priors cannot be expected to learn the most complete and explicit representation of topologically distinct factors of variation. Thus, for the wrapped azimuth $\\left( z _ { 0 } \\right)$ , we plot its value against the 3 most important code variables for each model. Inspecting the relationships depicted in Figure 5, it is clear that the simplest / lowest-order relationship exists between InfoGAN’s code variables and the corresponding generative factors. For example, each unwrapped generative factor $( z _ { 1 } , z _ { 2 } , z _ { 3 } , z _ { 4 } )$ is linearly-related to InfoGAN’s corresponding code variables, while $c _ { 0 }$ and $c _ { 8 }$ resemble scaled sine and cosine functions of the azimuth $\\left( z _ { 0 } \\right)$ and $c _ { 1 }$ resembles a step function. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
173,
|
| 1295 |
+
367,
|
| 1296 |
+
825,
|
| 1297 |
+
493
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 11
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "image",
|
| 1303 |
+
"img_path": "images/7b9aed0a0a476b94fd74ba0004c73b762f8ca8ead3129555b91f45f0cd0afe8e.jpg",
|
| 1304 |
+
"image_caption": [
|
| 1305 |
+
"Figure 5: Generative factors vs. important code variables. "
|
| 1306 |
+
],
|
| 1307 |
+
"image_footnote": [],
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
173,
|
| 1310 |
+
193,
|
| 1311 |
+
808,
|
| 1312 |
+
814
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 12
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "D VISUALLY ASSESSING DISENTANGLEMENT ",
|
| 1319 |
+
"text_level": 1,
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
173,
|
| 1322 |
+
102,
|
| 1323 |
+
565,
|
| 1324 |
+
118
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 13
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "For each model, we traverse the space of each code variable indepedently to show the effect on generated images and thus visually assess disentanglement. The code variable traversals depicted in Figure 6 for (a) VAE $[ - 3 , 3 ]$ , (b) $\\beta$ -VAE $[ - 3 , 3 ]$ and (c) InfoGAN $[ - 1 , 1 ]$ are ordered according to the generative factor $( z )$ which that code best captures in an attempt to align the generated images of all models. There appears to be a high degree of disentanglement in all generative models as each $c _ { i }$ traversal results in a single type of semantic variation. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
173,
|
| 1333 |
+
132,
|
| 1334 |
+
826,
|
| 1335 |
+
218
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 13
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "image",
|
| 1341 |
+
"img_path": "images/ab89eeece7c2b275264781702c6c482abc19c2144b52f50328be646710c675d6.jpg",
|
| 1342 |
+
"image_caption": [],
|
| 1343 |
+
"image_footnote": [],
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
169,
|
| 1346 |
+
231,
|
| 1347 |
+
815,
|
| 1348 |
+
598
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 13
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "image",
|
| 1354 |
+
"img_path": "images/1794813fe6342802141b8748d26b1b716658eaeae75dd12ab1a3290afacc35c7.jpg",
|
| 1355 |
+
"image_caption": [
|
| 1356 |
+
"Figure 6: Code variable traversals. "
|
| 1357 |
+
],
|
| 1358 |
+
"image_footnote": [],
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
165,
|
| 1361 |
+
123,
|
| 1362 |
+
812,
|
| 1363 |
+
885
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 14
|
| 1366 |
+
}
|
| 1367 |
+
]
|
parse/train/By-7dz-AZ/By-7dz-AZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/By-7dz-AZ/By-7dz-AZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BylQSxHFwr/BylQSxHFwr.md
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ATOMNAS: FINE-GRAINED END-TO-END NEURAL ARCHITECTURE SEARCH
|
| 2 |
+
|
| 3 |
+
Jieru Mei1∗, Yingwei $\mathbf { L i } ^ { 1 * }$ , Xiaochen Lian2, Xiaojie $\mathbf { J i n ^ { 2 } }$ , Linjie Yang2, Alan Yuille1 & Jianchao Yang2
|
| 4 |
+
|
| 5 |
+
1Johns Hopkins University
|
| 6 |
+
2ByteDance AI Lab
|
| 7 |
+
|
| 8 |
+
eijieru@gmail.com, yingwei.li@jhu.edu, {xiaochen.lian, jinxiaojie, linjie.yang}@bytedance.com
|
| 9 |
+
|
| 10 |
+
alan.l.yuille@gmail.com, yangjianchao@bytedance.com
|
| 11 |
+
|
| 12 |
+
# ABSTRACT
|
| 13 |
+
|
| 14 |
+
Search space design is very critical to neural architecture search (NAS) algorithms. We propose a fine-grained search space comprised of atomic blocks, a minimal search unit that is much smaller than the ones used in recent NAS algorithms. This search space allows a mix of operations by composing different types of atomic blocks, while the search space in previous methods only allows homogeneous operations. Based on this search space, we propose a resource-aware architecture search framework which automatically assigns the computational resources (e.g., output channel numbers) for each operation by jointly considering the performance and the computational cost. In addition, to accelerate the search process, we propose a dynamic network shrinkage technique which prunes the atomic blocks with negligible influence on outputs on the fly. Instead of a searchand-retrain two-stage paradigm, our method simultaneously searches and trains the target architecture. Our method achieves state-of-the-art performance under several FLOPs configurations on ImageNet with a small searching cost. We open our entire codebase at: https://github.com/meijieru/AtomNAS.
|
| 15 |
+
|
| 16 |
+
# 1 INTRODUCTION
|
| 17 |
+
|
| 18 |
+
Human-designed neural networks are already surpassed by machine-designed ones. Neural Architecture Search (NAS) has become the mainstream approach to discover efficient and powerful network structures (Zoph & Le (2017); Pham et al. (2018); Tan et al. (2019); Liu et al. (2019a)). Although the tedious searching process is conducted by machines, humans still involve extensively in the design of the NAS algorithms. Designing of search spaces is critical for NAS algorithms and different choices have been explored. Cai et al. (2019) and Wu et al. (2019) utilize supernets with multiple choices in each layer to accommodate a sampled network on the GPU. Chen et al. (2019b) progressively grow the depth of the supernet and remove unnecessary blocks during the search. Tan & Le (2019a) propose to search the scaling factor of image resolution, channel multiplier and layer numbers in scenarios with different computation budgets. Stamoulis et al. (2019a) propose to use different kernel sizes in each layer of the supernet and reuse the weights of larger kernels for small kernels. Howard et al. (2019); Tan & Le (2019b) adopts Inverted Residuals with Linear Bottlenecks (MobileNetV2 block) (Sandler et al., 2018), a building block with light-weighted depth-wise convolutions for highly efficient networks in mobile scenarios.
|
| 19 |
+
|
| 20 |
+
However, the proposed search spaces generally have only a small set of choices for each block. DARTS and related methods (Liu et al., 2019a; Chen et al., 2019b; Liang et al., 2019) use around 10 different operations between two network nodes. Howard et al. (2019); Cai et al. (2019); Wu et al. (2019); Stamoulis et al. (2019a) search the expansion ratios in the MobileNetV2 block but still limit them to a few discrete values. We argue that search space of finer granularity is critical to find optimal neural architectures. Specifically, the searched building block in a supernet should be as small as possible to generate the most diversified model structures.
|
| 21 |
+
|
| 22 |
+
We revisit the architectures of state-of-the-art networks (Howard et al. (2019); Tan & Le (2019b); He et al. (2016)) and discover a commonly used building structure: convolution - channel-wise operation - convolution. We reinterpret this building structure as an ensemble of computationally independent blocks, which we call atomic blocks. As the minimum search unit, the atomic block constitutes a much larger and more fine-grained search space, within which we are able to search for mixed operations (e.g., convolutions with different kernel sizes and their channel numbers).
|
| 23 |
+
|
| 24 |
+
For the efficient exploration of the new search space, we propose a NAS framework named AtomNAS which applies network pruning techniques to architecture search. Specifically, we start from an initial large supernet and rewrite every convolution - channel-wise operation - convolution structure of it in the form the weighted sum of atomic blocks; the weights reflect the contribution of the atomic blocks to the network capacity and are called importance factors. For each atomic block, a penalty term in proportion to its FLOPs is enforced on its importance factor; effectively, the penalty makes AtomNAS favor atomic blocks with less FLOPs. By minimizing the combination of the original network loss and the total penalty on the weights, AtomNAS is able to learn both the parameters of the network and the weights of the atomic blocks. At the end of the learning, atomic blocks with very small weights (e.g., $< 0 . 0 0 1$ ) are removed from the network and we obtain the final network which has fewer FLOPs. Since the pruned atomic blocks have little contribution to the network output due to their negligible weights, the final network does not need to be retrained or finetuned.
|
| 25 |
+
|
| 26 |
+
Training on the large supernet is computationally demanding. We observe that for many pruned atomic blocks, their weights diminish at the early stage of learning and never “revive” throughout the rest of learning. We propose a dynamic network shrinkage technique which removes those atomic blocks on the fly and greatly reduces the run time of AtomNAS.
|
| 27 |
+
|
| 28 |
+
In our experiment, our method achieves $7 5 . 9 \%$ top-1 accuracy on ImageNet dataset around 360M FLOPs, which is $0 . 9 \%$ higher than state-of-the-art model (Stamoulis et al., 2019a). By further incorporating additional modules, our method achieves $7 7 . 6 \%$ top-1 accuracy. It outperforms MixNet by $0 . 6 \%$ using 363M FLOPs, which is a new state-of-the-art under the mobile scenario.
|
| 29 |
+
|
| 30 |
+
In summary, the major contributions of our work are:
|
| 31 |
+
|
| 32 |
+
1. We design a fine-grained search space which includes the exact number of channels and mixed operations (e.g., combination of different convolution kernels).
|
| 33 |
+
2. We propose an NAS framework, AtomNAS. Within the framework, an efficient end-to-end NAS algorithm is proposed which can simultaneously search the network architecture and train the final model. No finetuning is needed after the algorithm finishes.
|
| 34 |
+
3. With the proposed search space and AtomNAS, we achieve state-of-the-art performance on ImageNet dataset under mobile setting.
|
| 35 |
+
|
| 36 |
+
# 2 RELATED WORK
|
| 37 |
+
|
| 38 |
+
# 2.1 NEURAL ARCHITECTURE SEARCH
|
| 39 |
+
|
| 40 |
+
Recently, there is a growing interest in automated neural architecture design. Reinforce learning based NAS methods (Zoph & Le, 2017; Tan et al., 2019; Tan & Le, 2019b;a) are usually computational intensive, thus hampering its usage with limited computational budget. To accelerate the search procedure, ENAS (Pham et al., 2018) represents the search space using a directed acyclic graph and aims to search the optimal subgraph within the large supergraph. A training strategy of parameter sharing among subgraphs is proposed to significantly increase the searching efficiency. The similar idea of optimizing optimal subgraphs within a supergraph is also adopted by Liu et al. (2019a); Jin et al. (2019); Xu et al. (2020); Wu et al. (2019); Guo et al. (2019); Cai et al. (2019). Stamoulis et al. (2019a); Yu et al. (2020) further share the parameters of different paths within a block using super-kernel representation. A prominent disadvantage of the above methods is that their coarse search spaces only support selecting one out of a set of choices (e.g., selecting one kernel size from $\{ 3 , 5 , { \bar { 7 } } \}$ ). MixNet tries to benefit from mixed operations by using a predefined set of mixed operations $\{ \{ 3 \} , \{ 3 , 5 \} , \{ 3 , 5 , 7 \} , \{ 3 , 5 , 7 , 9 \} \}$ , where the channels are equally distributed among different kernel sizes. Due to this limitation, it is difficult to learn optimal architectures under computational resource constraints. On the contrary, our method takes advantage of the fine-grained search space and is able to search for more flexible network architectures satisfying various resource constraints. The fine-grained search space proposed in this paper is exponentially larger than previous search space. For reference, the total number of possible structures within the experiment is around $1 0 ^ { 1 6 2 }$ , compared with $1 0 ^ { 2 1 }$ for FBNet. Recently, to improve the final performance of the searched architectures, $\mathrm { Y u }$ et al. (2020) utilizes knowledge distillation which is orthogonal to our method. It could be easily integrated into our method by Eq. (5) thanks to the end-to-end learning paradigm of our method.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 1: Illustration of the ensemble perspective. Arrow means operators. The structure of two convolutions joined by a channel-wise operation is mathematically equivalent to the ensemble of multiple atomic blocks, according to Eq. (2). Colored rectangles represent tensors, with numbers inside indicating their channel numbers; The shaded path on the right is one example of atomic block.
|
| 44 |
+
|
| 45 |
+
# 2.2 NETWORK PRUNING
|
| 46 |
+
|
| 47 |
+
Assuming that many parameters in the network are unnecessary, network pruning methods start from a computation-intensive model, identify the unimportant connections and remove them to get a compact and efficient network. Early method (Han et al., 2016) simultaneously learns the important connections and weights. However, non-regularly removing connections in these works makes it hard to achieve theoretical speedup ratio on realistic hardwares due to extra overhead in caching and indexing. To tackle this problem, structured network pruning methods (He et al., 2017b; Liu et al., 2017; Luo et al., 2017; Ye et al., 2018; Gordon et al., 2018) are proposed to prune structured components in networks, e.g. the entire channel and kernel. In this way, empirical acceleration can be achieved on modern computing devices. Liu et al. (2017); Ye et al. (2018); Gordon et al. (2018) encourage channel-level sparsity by imposing the L-1 regularizer on the channel dimension, which is also used by our method. Recently, Liu et al. (2019b) show that in structured network pruning, the learned weights are unimportant. This suggests structured network pruning is actually a neural architecture search focusing on channel numbers. Our method jointly searches the channel numbers and a mix of operations, which is a much larger search space.
|
| 48 |
+
|
| 49 |
+
# 3 ATOMNAS
|
| 50 |
+
|
| 51 |
+
We formulate our neural architecture search method in a fine-grained search space with the atomic block used as the basic search unit. An atomic block is comprised of two convolutions connected by a channel-wise operation. By stacking atomic blocks, we obtain larger building blocks (e.g. residual block and MobileNetV2 block proposed in a variety of state-of-the-art models including ResNet, MobileNet V2/V3 (He et al., 2016; Howard et al., 2019; Sandler et al., 2018). In Section 3.1, We first show larger network building blocks (e.g. MobileNetV2 block) can be represented by an ensembles of atomic blocks. Based on this view, we propose a fine-grained search space using atomic blocks. In Section 3.2, we propose a resource-aware atomic block selection method for end-to-end architecture search. Finally, we propose a dynamic network shrinkage technique in Section 3.3, which greatly reduces the search cost.
|
| 52 |
+
|
| 53 |
+
# 3.1 FINE-GRAINED SEARCH SPACE
|
| 54 |
+
|
| 55 |
+
Under the typical block-wise NAS paradigm (Tan et al., 2019; Tan & Le, 2019b), the search space of each block in a neural network is represented as the Cartesian product $\begin{array} { r } { \mathcal { C } = \prod _ { i = 1 } \mathcal { P } _ { i } } \end{array}$ , where each $\mathcal { P } _ { i }$ is the set of all choices of the $i$ -th configuration such as kernel size, number of channels and type of operation. For example, ${ \mathcal { C } } = \{ { \mathrm { c o n v } } $ , depth-wise conv, dilated conv $\} \times \{ 3 , 5 \} \times \{ 2 4 , 3 2 , 6 4 , 1 \dot { 2 } \dot { 8 } \}$ represents a search space of three types of convolutions by two kernel sizes and four options of channel number. A block in the resulting model can only pick one convolution type from the three and one output channel number from the four values. This paradigm greatly limits the search space due to the few choices of each configuration. Here we present a more fine-grained search space by decomposing the network into smaller and more basic building blocks.
|
| 56 |
+
|
| 57 |
+
We denote $f ^ { c ^ { \prime } , c } ( X )$ as a convolution operator, where $X$ is the input tensor and $c , c ^ { \prime }$ are the input and output channel numbers respectively. A wide range of manually-designed and NAS architectures share a structure that joins two convolutions by a channel-wise operation:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
Y = \left( f _ { 1 } ^ { c ^ { \prime \prime } , c ^ { \prime } } \circ g \circ f _ { 0 } ^ { c ^ { \prime } , c } \right) ( X )
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where $g$ is a channel-wise operator. For example, in VGG (Simonyan & Zisserman, 2015) and a Residual Block (He et al., 2016), $f _ { 0 }$ and $f _ { 1 }$ are convolutions and $g$ is one of Maxpool, ReLU and BN-ReLU; in a MobileNetV2 block (Sandler et al., 2018), $f _ { 0 }$ and $f _ { 1 }$ are point-wise convolutions and $g$ is depth-wise convolution with BN-ReLU in the MobileNetV2 block. Eq. (1) can be reformulated as follows:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
Y = \sum _ { i = 1 } ^ { c ^ { \prime } } \left( f _ { 1 } ^ { c ^ { \prime \prime } , 1 } [ i , : ] \circ g [ i , : ] \circ f _ { 0 } ^ { 1 , c } [ : , i ] \right) ( X ) ,
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
where $f _ { 0 } ^ { 1 , c } [ : , i ]$ is the $i$ -th convolution kernel of $f _ { 0 } , g [ i , : ]$ is the operator of the $i$ -th channel of $g$ and $\{ f _ { 1 } ^ { c ^ { \prime \prime } , 1 } [ i , : ] \} _ { i = 1 } ^ { c ^ { \prime } }$ are obtained by splitting the kernel tensor of $f _ { 1 }$ along the the input channel dimension. Each term in the summation can be seen as a computationally independent block, which is called atomic block. Fig. (1) demonstrate this reformulation. By determining whether to keep each atomic block in the final model individually, the search of channel number $c ^ { \prime }$ is enabled through channel selection, which greatly enlarges the search space.
|
| 70 |
+
|
| 71 |
+
This formulation also naturally includes the selection of operators. To gain a better understanding, we first generalize Eq. (2) as:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
Y = \sum _ { i = 1 } ^ { c ^ { \prime } } \left( f _ { 1 i } ^ { c ^ { \prime \prime } , 1 } \circ g _ { i } \circ f _ { 0 i } ^ { 1 , c } \right) ( X ) .
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Note the array indices $i$ are moved to subscripts. In this formulation, we can use different types of operators for $f _ { 0 i } , f _ { 1 i }$ and $g _ { i }$ ; in other words, $f _ { 0 } , f _ { 1 }$ and $g$ can each be a combination of different operators and each atomic block can use different operators such as convolutions with different kernel sizes.
|
| 78 |
+
|
| 79 |
+
Formally, the search space is formulated as a supernet which is built based on the structure in Eq. (1); such structure satisfies Eq. (3) and thus can be represented by atomic blocks; each of $f _ { 0 }$ , $f _ { 1 }$ and $g$ is a combination of operators. The new search space includes some state-of-the-art network architectures. For example, by allowing $g$ to be a combination of convolutions with different kernel sizes, the MixConv block in MixNet (Tan & Le, 2019b) becomes a special case in our search space. In addition, our search space facilitates discarding any number of channels in $g$ , resulting in a more fine-grained channel configuration. In comparison, the channel numbers are determined heuristically in Tan & Le (2019b).
|
| 80 |
+
|
| 81 |
+
# 3.2 RESOURCE-AWARE ATOMIC BLOCK SEARCH
|
| 82 |
+
|
| 83 |
+
In this work, we adopt a differentiable neural architecture search paradigm where the model structure is discovered in a full pass of model training. With the supernet defined above, the final model can be produced by discarding part of the atomic blocks during training. Following DARTS (Liu et al.
|
| 84 |
+
|
| 85 |
+
(2019a)), we introduce a importance factor $\alpha$ to scale the output of each atomic block in the supernet. Eq. (3) then becomes
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
Y = \sum _ { i = 1 } ^ { c ^ { \prime } } \alpha _ { i } \left( f _ { 1 i } ^ { c ^ { \prime \prime } , 1 } \circ g _ { i } \circ f _ { 0 i } ^ { 1 , c } \right) ( X ) .
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
Here, each $\alpha _ { i }$ is tied with an atomic block comprised of three operators $f _ { 1 i } ^ { c ^ { \prime \prime } , 1 } , g _ { i }$ and $f _ { 0 i } ^ { 1 , c }$ . The importance factors are learned jointly with the network weights. Once the training finishes, the atomic blocks that have negligible effect (i.e., those with factors smaller than a threshold) on the network output are discarded.
|
| 92 |
+
|
| 93 |
+
We still need to address two issues related to the importance factors $\alpha _ { i }$ ’s. The first issue is where in the supernet we should put the $\alpha$ ? Let’s first consider the case when $g$ only contains linear operations, e.g., convolution, batch normalization and linear activation like ReLU. If $g$ contains at least one BN layer, The scaling parameters in the BN layers can be directly used as such importance factors (Liu et al. (2017)). If $g$ has no BN layers, which is rare, we can place $\alpha$ anywhere between $f _ { 0 }$ and $f _ { 1 }$ ; however, we need to apply regularization terms to the weights of $f _ { 0 }$ and $f _ { 1 }$ (e.g., weight decays) in order to prevent weights in $f _ { 0 }$ and $f _ { 1 }$ from getting too large and canceling the effect of $\alpha$ . When $g$ contains non-linear operations, e.g., Swish activation and Sigmoid activation, we can only put $\alpha$ behind $f _ { 1 }$ .
|
| 94 |
+
|
| 95 |
+
The second issue is how to avoid performance deterioration after discarding some of the atomic blocks. For example, DARTS discards operations with small scale factors after iterative training of model parameters and scale factors. Since the scale factors of the discarded operations are not small enough, the performance of the network will be affected which needs re-training to adjust the weights again. In order to maintain the performance of the supernet after dropping some atomics blocks, the importance factors $\alpha$ of those atomic blocks should be sufficiently small. Inspired by the channel pruning work in Liu et al. (2017), we add L1 norm penalty loss on $\alpha$ , which effectively pushes many importance factors to near-zero values. At the end of learning, atomic blocks with $\alpha$ close to zero are removed from the supernet. Note that since the BN scales change more dramatically during training due to the regularization term, the running statistics of BNs might be inaccurate and needs to be calculated again using the training set.
|
| 96 |
+
|
| 97 |
+
With the added regularization term, the training loss is
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\begin{array} { c } { \displaystyle { \mathcal { L } = \mathcal { E } + \lambda \sum _ { i \in \mathcal { S } } c _ { i } \big | \alpha _ { i } \big | , } } \\ { \displaystyle { \phantom { \frac { \sum _ { i } } { c _ { i } } } } } \\ { \displaystyle { c _ { i } = \hat { c } _ { i } \big / \sum _ { k \in \mathcal { S } } \hat { c } _ { k } } } \end{array}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where $\lambda$ is the coefficient of L1 penalty term, $s$ is the index set of all atomic blocks, and $\mathcal { E }$ is the conventional training loss (e.g., cross-entropy loss combined with the regularization term like weight decay and distillation loss.). $\left| \alpha _ { i } \right|$ is weighted by coefficient $c _ { i }$ which is proportional to the computation cost of $i$ -th atomic block, i.e. $\hat { c } _ { i }$ . By using computation costs aware regularization, we encourage the model to learn network structures that strike a good balance between accuracy and efficiency. In this paper, we use FLOPs as the criteria of computation cost. Other metrics such as latency and energy consumption can be used similarly. As a result, the whole loss function $\mathcal { L }$ trades off between accuracy and FLOPs.
|
| 104 |
+
|
| 105 |
+
# 3.3 DYNAMIC NETWORK SHRINKAGE
|
| 106 |
+
|
| 107 |
+
Usually, the supernet is much larger than the final search result. We observe that many atomic blocks become “dead” starting from the early stage of the search, i.e., their importance factors $\alpha$ are close to zero till the end of the search. To utilize computational resources more efficiently and speed up the search process, we propose a dynamic network shrinkage algorithm which cuts down the network architecture by removing atomic blocks once they are deemed “dead”.
|
| 108 |
+
|
| 109 |
+
We adopt a conservative strategy to decide whether an atomic block is “dead”: for importance factors $\alpha$ , we maintain its momentum $\hat { \alpha }$ which is updated as
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\hat { \alpha } \gets \beta \hat { \alpha } + ( 1 - \beta ) \alpha ^ { t } ,
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Figure 2: FLOPs change of the supernet during the searching and training for AtomNAS-C. The crossed-out region corresponds to the saved computation compared to training the supernet without the dynamic shrinkage. The region in yellow corresponds to the extra cost compared with training the final model from scratch, the cost of which is the region below the red dashed line.
|
| 117 |
+
|
| 118 |
+
Initialize the supernet and the exponential moving average;
|
| 119 |
+
while epoch $\leq$ max epoch do Update network weights and importance factors $\alpha$ by minimizing the loss function $\mathcal { L }$ ; Update the $\hat { \alpha }$ by Eq. (7); if Total FLOPs of dead blocks $\geq \Delta$ then Remove dead blocks from the supernet; end Recalculate BN’s statistics by forwarding some training examples; Validate the performance of the current supernet;
|
| 120 |
+
|
| 121 |
+
end
|
| 122 |
+
|
| 123 |
+
Algorithm 1: Dynamic network shrinkage
|
| 124 |
+
|
| 125 |
+
where $\alpha ^ { t }$ is the importance factors at $t$ -th iteration and $\beta$ is the decay term. An atomic block is considered “dead” if both $\hat { \alpha }$ and $\alpha ^ { t }$ are smaller than a threshold, which is set to 0.001 throughout experiments.
|
| 126 |
+
|
| 127 |
+
Once the total FLOPs of “dead” blocks reach a predefined threshold, we remove those blocks from the supernet. As discussed above, we recalculate BN’s running statistics before deploying the network. The whole training process is presented in Algorithm 1.
|
| 128 |
+
|
| 129 |
+
We show the FLOPs of a sample network during the search process in Fig. 2. We start from a supernet with 1521M FLOPs and dynamically discard “dead” atomic blocks to reduce search cost. The overall search and train cost only increases by $1 7 . 2 \%$ compared to that of training the searched model from scratch.
|
| 130 |
+
|
| 131 |
+
# 4 EXPERIMENT
|
| 132 |
+
|
| 133 |
+
We first describe the implementation details in Section 4.1 and then compare AtomNAS with previous state-of-the-art methods under various FLOPs constraints in Section 4.2. In Section 4.3, we provide more detailed analysis about AtomNAS. Finally, in Section 4.4, we demonstrate the transferability of AtomNAS networks by evaluating them on detection and instance segmentation tasks.
|
| 134 |
+
|
| 135 |
+
# 4.1 IMPLEMENTATION DETAILS
|
| 136 |
+
|
| 137 |
+
The architecture of the supernet we use for the experiments is shown in table on the right of Fig. 3. The supernet contains 21 AtomNAS blocks, the searchable block in our supernet; the picture on the right of Fig. 3 illustrates the structure of an AtomNAS block, where $f _ { 0 }$ is a $1 \times 1$ pointwise convolutions that expands the input channel number from $C$ to $3 \times 6 C$ ; $g$ is a mix of three depth-wise convolutions with kernel sizes of $3 \times 3 , 5 \times 5$ and $7 \times 7 .$ and $f _ { 1 }$ is another $1 \times 1$ pointwise convolutions that projects the channel number to the output channel number. Similar to MobileNetV2 (Sandler et al., 2018), if the output dimension stays the same as the input dimension, we use a skip connection to add the input to the output. AtomNAS block is effectively an ensemble of $3 \times 6 C$ atomic blocks, whose underlying search space covers the MobileNetV2 block (Sandler et al., 2018) and its multikernel variant, MixConv (Tan & Le, 2019b). Within AtomNAS block, we are able to optimize the distribution of computation resources (i.e., channel numbers) among the three types of depth-wise convolution.
|
| 138 |
+
|
| 139 |
+
<table><tr><td> Input Shape</td><td>Block</td><td>f</td><td>n</td><td>stride</td></tr><tr><td>224²×3</td><td>3x3 conv</td><td>32(16)</td><td>1</td><td>2</td></tr><tr><td>112² × 32(16)</td><td>3x3 MB</td><td>16</td><td>1</td><td>1</td></tr><tr><td>112²×16</td><td>searchable</td><td>24</td><td>4</td><td>2</td></tr><tr><td>56²×24</td><td>searchable</td><td>40</td><td>4</td><td>2</td></tr><tr><td>28²×40</td><td>searchable</td><td>80</td><td>4</td><td>2</td></tr><tr><td>14²×80</td><td>searchable</td><td>96</td><td>4</td><td>1</td></tr><tr><td>14²×96</td><td>searchable</td><td>192</td><td>4</td><td>2</td></tr><tr><td>7²×192</td><td>searchable</td><td>320</td><td>1</td><td>1</td></tr><tr><td>7² ×320</td><td>avgpool</td><td>1</td><td>1</td><td>1</td></tr><tr><td>1280</td><td>fc</td><td>1000</td><td>1</td><td>1</td></tr></table>
|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 3: (Left) The searchable block of the supernet. $f _ { 0 }$ and $f _ { 1 }$ are fixed to $1 \times 1$ pointwise convolutions; $g$ here is a mix of three convolutions with kernel sizes of $3 \times 3$ , $5 \times 5$ and $7 \times 7$ . $f _ { 0 }$ expands the input channel number from $C$ to $1 8 C$ and $f _ { 1 }$ projects the channel number to the output channel number. If the output dimension stays the same as the input dimension, we use a skip connection to add the input to the output. (Right) Architecture of the supernet. Column-Block denotes the block type; MB denotes MobileNetV2 block; ”searchable” means a searchable block shown on the left. Column-f denotes the output channel number of a block. Column-n denotes the number of blocks. Column-s denotes the stride of the first block in a stage. The output channel numbers of the first convolution are 16 for AtomNAS-A, 32 for AtomNAS-B and AtomNAS-C.
|
| 143 |
+
|
| 144 |
+
We use the same training configuration (e.g., RMSProp optimizer, EMA on weights and exponential learning rate decay) as Tan et al. (2019); Stamoulis et al. (2019a) and do not use extra data augmentation such as MixUp (Zhang et al., 2018) and AutoAugment (Cubuk et al., 2018). We find that using this configuration is sufficient for our method to achieve good performance. Our results are shown in Table 1 and Table 3. When training the supernet, we use a total batch size of 2048 on 32 Tesla V100 GPUs and train for 350 epochs. For our dynamic network shrinkage algorithm, we set the momentum factor $\beta$ in Eq. (7) to 0.9999. At the beginning of the training, all of the weights are randomly initialized. To avoid removing atomic blocks with high penalties (i.e., FLOPs) prematurely, the weight of the penalty term in Eq. (5) is increased from 0 to the target $\lambda$ by a linear scheduler during the first 25 epochs. By setting the weight of the L1 penalty term $\lambda$ to be $1 . { \overset { \cdot } { 8 } } \times 1 0 ^ { - 4 }$ , $1 . 2 \times 1 0 ^ { - 4 }$ and ${ \bar { 1 } } . 0 \times 1 0 ^ { - 4 }$ respectively, we obtain networks with three different sizes: AtomNAS-A, AtomNAS-B, and AtomNAS-C. They have the similar FLOPs as previous state-of-the-art networks under 400M: MixNet-S (Tan & Le, 2019b), MixNet-M (Tan & Le, 2019b) and SinglePath (Stamoulis et al., 2019a). In Appendix A, we visualize the architecture of AtomNAS-C.
|
| 145 |
+
|
| 146 |
+
# 4.2 EXPERIMENTS ON IMAGENET
|
| 147 |
+
|
| 148 |
+
We apply AtomNAS to search high performance light-weight model on ImageNet 2012 classification task (Deng et al., 2009). Table 1 compares our methods with previous state-of-the-art models, either manually designed or searched.
|
| 149 |
+
|
| 150 |
+
With models directly produced by AtomNAS, our method achieves the new state-of-the-art under all FLOPs constraints. Especially, AtomNAS-C achieves $7 5 . 9 \%$ top-1 accuracy with only 360M FLOPs, and surpasses all other models, including models like PDARTS and DenseNAS which have much higher FLOPs.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
Figure 4: FLOPs versus accuracy on ImageNet. † means methods use extra techniques like Swish activation and Squeeze-and-Excitation module.
|
| 154 |
+
|
| 155 |
+
Techniques like Swish activation function (Ramachandran et al., 2018) and Squeeze-and-Excitation (SE) module (Hu et al., 2018) consistently improve the accuracy with marginal FLOPs cost. For a fair comparison with methods that use these techniques, we directly modify the searched network by replacing all ReLU activation with Swish and add SE module with ratio 0.5 to every block and then retrain the network from scratch. Note that unlike other methods, we do not search the configuration of Swish and SE, and therefore the performance might not be optimal. Extra data augmentations such as MixUp and AutoAugment are still not used. We train the models from scratch with a total batch size of 4096 on 32 Tesla V100 GPUs for 250 epochs.
|
| 156 |
+
|
| 157 |
+
Simply adding these techniques improves the results further. AtomNAS- $\mathbf { A } +$ achieves $7 6 . 3 \%$ top1 accuracy with 260M FLOPs, which outperforms many heavier models including MnasNet-A2. Without extra data augmentations, it performs as well as Efficient-B0 (Tan & Le, 2019a) by using 130M less FLOPs. It also outperforms the previous state-of-the-art MixNet-S by $0 . 5 \%$ . In addition, AtomNAS- $C +$ improves the top-1 accuracy on ImageNet to $7 7 . 6 \%$ , surpassing previous state-ofthe-art MixNet-M by $0 . 6 \%$ and becomes the overall best performing model under 400M FLOPs.
|
| 158 |
+
|
| 159 |
+
Fig. 4 visualizes the top-1 accuracy on ImageNet for different models. It’s clear that our fine-grained search space and the end-to-end resource-aware search method boost the performance significantly.
|
| 160 |
+
|
| 161 |
+
# 4.3 ANALYSIS
|
| 162 |
+
|
| 163 |
+
# 4.3.1 RESOURCE-AWARE REGULARIZATION
|
| 164 |
+
|
| 165 |
+
To demonstrate the effectiveness of the resource-aware regularization in Section 3.2, we compare it with a baseline without FLOPs-related coefficients $c _ { i }$ , which is widely used in network pruning (Liu et al., 2017; He et al., 2017b). Table 2 shows the results. First, by using the same L1 penalty coefficient $\lambda = 1 . 0 \times 1 0 ^ { - 4 }$ , the baseline achieves a network with similar performance but using much more FLOPs; then by increasing $\lambda$ to $1 . 5 \times 1 0 ^ { - 4 }$ , the baseline obtain a network which has similar FLOPs but inferior performance (i.e., about $1 . 0 \%$ lower). In Fig. 6b we visualized the ratio of different types of atomic blocks of the baseline network obtained by $\bar { \lambda ( \mathrm { = 1 . 5 \times 1 0 ^ { - 4 } } }$ . The baseline network keeps more atomic blocks in the earlier blocks, which have higher computation cost due to higher input resolution. On the contrary, AtomNAS is aware of the resource constraint, thus keeping more atomic blocks in the later blocks and achieving much better performance.
|
| 166 |
+
|
| 167 |
+
# 4.3.2 BN RECALIBRATION
|
| 168 |
+
|
| 169 |
+
As the BN’s running statistics might be inaccurate as explained in Section 3.2 and Section 3.3, we re-calculate the running statistics of BN before inference, by forwarding 131k randomly sampled training images through the network. Table 3 shows the impact of the BN recalibration. The top-1 accuracies of AtomNAS-A, AtomNAS-B, and AtomNAS-C on ImageNet improve by $1 . 4 \%$ , $1 . { \bar { 7 } } \%$ , and $1 . 2 \%$ respectively, which clearly shows the benefit of BN recalibration.
|
| 170 |
+
|
| 171 |
+
Table 1: Comparision with state-of-the-arts on ImageNet under the mobile setting. † denotes methods using extra network modules such as Swish activation and Squeeze-and-Excitation module. ‡ denotes using extra data augmentation such as MixUp and AutoAugment. ∗ denotes models searched and trained simultaneously.
|
| 172 |
+
|
| 173 |
+
<table><tr><td>Model</td><td>Parameters</td><td>FLOPs</td><td>Top-1(%)</td><td>Top-5(%)</td></tr><tr><td>MobileNetV1 (Howard et al., 2017)</td><td>4.2M</td><td>575M</td><td>70.6</td><td>89.5</td></tr><tr><td>MobileNetV2 (Sandler et al., 2018)</td><td>3.4M</td><td>300M</td><td>72.0</td><td>91.0</td></tr><tr><td>MobileNetV2 (our impl.)</td><td>3.4M</td><td>301M</td><td>73.6</td><td>91.5</td></tr><tr><td>MobileNetV2 (1.4)</td><td>6.9M</td><td>585M</td><td>74.7</td><td>92.5</td></tr><tr><td>ShuffleNetV2 (Ma et al.,2018)</td><td>3.5M</td><td>299M</td><td>72.6</td><td>=</td></tr><tr><td>ShuffleNetV2 2×</td><td>7.4M</td><td>591M</td><td>74.9</td><td></td></tr><tr><td>FBNet-A (Wu et al., 2019)</td><td>4.3M</td><td>249M</td><td>73.0</td><td></td></tr><tr><td>FBNet-C</td><td>5.5M</td><td>375M</td><td>74.9</td><td></td></tr><tr><td>Proxyless (mobile) (Cai et al., 2019)</td><td>4.1M</td><td>320M</td><td>74.6</td><td>92.2</td></tr><tr><td>SinglePath (Stamoulis et al., 2019a)</td><td>4.4M</td><td>334M</td><td>75.0</td><td>92.2</td></tr><tr><td>NASNet-A (Zoph & Le,2017)</td><td>5.3M</td><td>564M</td><td>74.0</td><td>91.6</td></tr><tr><td>DARTS (second order) (Liu et al., 2019a)</td><td>4.9M</td><td>595M</td><td>73.1</td><td>-</td></tr><tr><td>PDARTS (cifar 10) (Chen et al., 2019b)</td><td>4.9M</td><td>557M</td><td>75.6</td><td>92.6</td></tr><tr><td>DenseNAS-A (Fang et al., 2019)</td><td>7.9M</td><td>501M</td><td>75.9</td><td>92.6</td></tr><tr><td>FairNAS-A (Chu et al., 2019b)</td><td>4.6M</td><td>388M</td><td>75.3</td><td>92.4</td></tr><tr><td>AtomNAS-A*</td><td>3.9M</td><td>258M</td><td>74.6</td><td>92.1</td></tr><tr><td>AtomNAS-B*</td><td>4.4M</td><td>326M</td><td>75.5</td><td>92.6</td></tr><tr><td>AtomNAS-C*</td><td>4.7M</td><td>360M</td><td>75.9</td><td>92.7</td></tr><tr><td>SCARLET-A† (Chu et al., 2019a)</td><td>6.7M</td><td>365M</td><td>76.9</td><td>93.4</td></tr><tr><td>MnasNet-A1† (Tan et al., 2019)</td><td>3.9M</td><td>312M</td><td>75.2</td><td>92.5</td></tr><tr><td>MnasNet-A2t</td><td>4.8M</td><td>340M</td><td>75.6</td><td>92.7</td></tr><tr><td>MixNet-St (Tan & Le, 2019b)</td><td>4.1M</td><td>256M</td><td>75.8</td><td>92.8</td></tr><tr><td>MixNet-M†</td><td>5.0M</td><td>360M</td><td>77.0</td><td>93.3</td></tr><tr><td>EfficientNet-Bot‡ (Tan & Le, 2019a)</td><td>5.3M</td><td>390M</td><td>76.3</td><td>93.2</td></tr><tr><td>SE-DARTS+†‡ (Liang et al., 2019)</td><td>6.1M</td><td>594M</td><td>77.5</td><td>93.6</td></tr><tr><td>AtomNAS-A+†</td><td>4.7M</td><td>260M</td><td>76.3</td><td>93.0</td></tr><tr><td>AtomNAS-B+†</td><td>5.5M</td><td>329M</td><td>77.2</td><td>93.5</td></tr><tr><td>AtomNAS-C+†</td><td>5.9M</td><td>363M</td><td>77.6</td><td>93.6</td></tr></table>
|
| 174 |
+
|
| 175 |
+
Table 2: Influence of awareness of resource metric. The upper block uses equal penalties for all atomic blocks. The lower part uses our resource-aware atomic block selection.
|
| 176 |
+
|
| 177 |
+
<table><tr><td>入</td><td>FLOPs</td><td>Top-1(%)</td></tr><tr><td>1.0×10-4</td><td>445M</td><td>76.1</td></tr><tr><td>1.5 ×10-4</td><td>370M</td><td>74.9</td></tr><tr><td>1.0×10-4</td><td>360M</td><td>75.9</td></tr></table>
|
| 178 |
+
|
| 179 |
+
# 4.3.3 COST OF DYNAMIC NETWORK SHRINKAGE
|
| 180 |
+
|
| 181 |
+
Our dynamic network shrinkage algorithm speedups the search and train process significantly. For AtomNAS-C, the total time for search-and-training is 25.5 hours. For reference, training the final architecture from scratch takes 22 hours. Note that as the supernet shrinks, both the GPU memory consumption and forward-backward time are significantly reduced. Thus it’s possible to dynamically change the batch size once having sufficient GPU memory, which would further speed up the whole procedure.
|
| 182 |
+
|
| 183 |
+
Table 3: Influence of BN recalibration.
|
| 184 |
+
|
| 185 |
+
<table><tr><td>Model</td><td>w/o Recalibration</td><td>w/Recalibration</td></tr><tr><td>AtomNAS-A</td><td>73.2</td><td>74.6 (+1.4)</td></tr><tr><td>AtomNAS-B</td><td>73.8</td><td>75.5 (+1.7)</td></tr><tr><td>AtomNAS-C</td><td>74.7</td><td>75.9 (+1.2)</td></tr></table>
|
| 186 |
+
|
| 187 |
+
# 4.4 EXPERIMENTS ON COCO DETECTION AND INSTANCE SEGMENTATION
|
| 188 |
+
|
| 189 |
+
In this section, we assess the performance of AtomNAS models as feature extractors for object detection and instance segmentation on COCO dataset (Lin et al., 2014). We first pretrain AtomNAS models (without Swish activation function (Ramachandran et al., 2018) and Squeeze-and-Excitation (SE) module (Hu et al., 2018)) on ImageNet, use them as drop-in replacements for the backbone in the Mask-RCNN model (He et al., 2017a) by building the detection head on top of the last feature map, and finetune the model on COCO dataset.
|
| 190 |
+
|
| 191 |
+
We use the open-source code MMDetection (Chen et al., 2019a). All the models are trained on COCO train2017 with batch size 16 and evaluated on COCO val2017. Following the schedule used in the open-source implementation of TPU-trained Mask-RCNN , the learning rate starts at 0.02 and decreases by a scale of 10 at 15-th and 20th epoch respectively. The models are trained for 23 epochs in total.
|
| 192 |
+
|
| 193 |
+
Table 4 compares the results with other baseline backbone models. The detection results of baseline models are from Stamoulis et al. (2019b). We can see that all three AtomNAS models outperform the baselines on object detection task. The results demonstrate that our models have better transferability than the baselines, which may due to mixed operations, a.k.a multi-scale here, are more important to object detection and instance segmentation.
|
| 194 |
+
|
| 195 |
+
Table 4: Comparision with baseline backbones on COCO object detection and instance segmentation. Cls denotes the ImageNet top-1 accuracy; detect-mAP and seg-mAP denotes mean average precision for detection and instance segmentation on COCO dataset. The results of baseline models are from Stamoulis et al. (2019b). SinglePath $^ +$ (Stamoulis et al., 2019b) contains SE module.
|
| 196 |
+
|
| 197 |
+
<table><tr><td>Model</td><td>FLOPs</td><td>Cls (%)</td><td>detect-mAP (%)</td><td>seg-mAP (%)</td></tr><tr><td>MobileNetV2 (Sandler et al., 2018)</td><td>301M</td><td>73.6</td><td>30.5</td><td>1</td></tr><tr><td>Proxyless (mobile) (Cai et al., 2019)</td><td>320M</td><td>74.6</td><td>32.9</td><td>=</td></tr><tr><td>Proxyless (mobile) (our impl.)</td><td>320M</td><td>74.9</td><td>32.7</td><td>30.0</td></tr><tr><td>SinglePath+ (Stamoulis et al., 2019b)</td><td>353M</td><td>75.6</td><td>33.0</td><td>1</td></tr><tr><td>SinglePath (our impl.)</td><td>334M</td><td>75.0</td><td>32.0</td><td>29.7</td></tr><tr><td>AtomNAS-A</td><td>258M</td><td>74.6</td><td>32.7</td><td>30.1</td></tr><tr><td>AtomNAS-B</td><td>326M</td><td>75.5</td><td>33.6</td><td>30.8</td></tr><tr><td>AtomNAS-C</td><td>360M</td><td>75.9</td><td>34.1</td><td>31.4</td></tr></table>
|
| 198 |
+
|
| 199 |
+
# 5 CONCLUSION
|
| 200 |
+
|
| 201 |
+
In this paper, we revisit the common structure, i.e., two convolutions joined by a channel-wise operation, and reformulate it as an ensemble of atomic blocks. This perspective enables a much larger and more fine-grained search space. For efficiently exploring the huge fine-grained search space, we propose an end-to-end framework named AtomNAS, which conducts architecture search and network training jointly. The searched networks achieve significantly better accuracy than previous state-of-the-art methods while using small extra cost.
|
| 202 |
+
|
| 203 |
+
# REFERENCES
|
| 204 |
+
|
| 205 |
+
Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In ICLR, 2019.
|
| 206 |
+
|
| 207 |
+
Kai Chen, Jiaqi Wang, Jiangmiao Pang, Yuhang Cao, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jiarui Xu, Zheng Zhang, Dazhi Cheng, Chenchen Zhu, Tianheng Cheng, Qijie Zhao, Buyu Li, Xin Lu, Rui Zhu, Yue Wu, Jifeng Dai, Jingdong Wang, Jianping Shi, Wanli Ouyang, Chen Change Loy, and Dahua Lin. MMDetection: Open mmlab detection toolbox and benchmark. arXiv preprint arXiv:1906.07155, 2019a.
|
| 208 |
+
|
| 209 |
+
Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. CoRR, abs/1904.12760, 2019b.
|
| 210 |
+
|
| 211 |
+
Xiangxiang Chu, Bo Zhang, Jixiang Li, Qingyuan Li, and Ruijun Xu. Scarletnas: Bridging the gap between scalability and fairness in neural architecture search. CoRR, abs/1908.06022, 2019a.
|
| 212 |
+
|
| 213 |
+
Xiangxiang Chu, Bo Zhang, Ruijun Xu, and Jixiang Li. Fairnas: Rethinking evaluation fairness of weight sharing neural architecture search. CoRR, abs/1907.01845, 2019b.
|
| 214 |
+
|
| 215 |
+
Ekin Dogus Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. Autoaugment: ´ Learning augmentation policies from data. CoRR, abs/1805.09501, 2018.
|
| 216 |
+
|
| 217 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255, 2009.
|
| 218 |
+
|
| 219 |
+
Jiemin Fang, Yuzhu Sun, Qian Zhang, Yuan Li, Wenyu Liu, and Xinggang Wang. Densely connected search space for more flexible neural architecture search. CoRR, abs/1906.09607, 2019.
|
| 220 |
+
|
| 221 |
+
Ariel Gordon, Elad Eban, Ofir Nachum, Bo Chen, Hao Wu, Tien-Ju Yang, and Edward Choi. Morphnet: Fast & simple resource-constrained structure learning of deep networks. In CVPR, pp. 1586–1595, 2018.
|
| 222 |
+
|
| 223 |
+
Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path one-shot neural architecture search with uniform sampling. CoRR, abs/1904.00420, 2019.
|
| 224 |
+
|
| 225 |
+
Song Han, Huizi Mao, and William J. Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. In ICLR, 2016.
|
| 226 |
+
|
| 227 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016.
|
| 228 |
+
|
| 229 |
+
Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross B. Girshick. Mask R-CNN. In ´ IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pp. 2980–2988, 2017a.
|
| 230 |
+
|
| 231 |
+
Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In ICCV, pp. 1398–1406, 2017b.
|
| 232 |
+
|
| 233 |
+
Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. Corr, abs/1905.02244, 2019.
|
| 234 |
+
|
| 235 |
+
Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017.
|
| 236 |
+
|
| 237 |
+
Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, pp. 7132–7141, 2018.
|
| 238 |
+
|
| 239 |
+
Xiaojie Jin, Jiang Wang, Joshua Slocum, Ming-Hsuan Yang, Shengyang Dai, Shuicheng Yan, and Jiashi Feng. Rc-darts: Resource constrained differentiable architecture search. arXiv preprint arXiv:1912.12814, 2019.
|
| 240 |
+
|
| 241 |
+
Hanwen Liang, Shifeng Zhang, Jiacheng Sun, Xingqiu He, Weiran Huang, Kechen Zhuang, and Zhenguo Li. Darts $^ +$ : Improved differentiable architecture search with early stopping, 2019.
|
| 242 |
+
|
| 243 |
+
Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C. Lawrence Zitnick. Microsoft COCO: common objects in context. In ´ Computer Vision - ECCV 2014 - 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V, pp. 740–755, 2014.
|
| 244 |
+
|
| 245 |
+
Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In ICLR, 2019a.
|
| 246 |
+
|
| 247 |
+
Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, pp. 2755–2763, 2017.
|
| 248 |
+
|
| 249 |
+
Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019b.
|
| 250 |
+
|
| 251 |
+
Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. Thinet: A filter level pruning method for deep neural network compression. In ICCV, pp. 5068–5076, 2017.
|
| 252 |
+
|
| 253 |
+
Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet V2: practical guidelines for efficient CNN architecture design. In ECCV, pp. 122–138, 2018.
|
| 254 |
+
|
| 255 |
+
Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, pp. 4092–4101, 2018.
|
| 256 |
+
|
| 257 |
+
Prajit Ramachandran, Barret Zoph, and Quoc V. Le. Searching for activation functions. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Workshop Track Proceedings, 2018.
|
| 258 |
+
|
| 259 |
+
Mark Sandler, Andrew G. Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, pp. 4510–4520, 2018.
|
| 260 |
+
|
| 261 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 262 |
+
|
| 263 |
+
Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, and Diana Marculescu. Single-path NAS: designing hardware-efficient convnets in less than 4 hours. CoRR, abs/1904.02877, 2019a.
|
| 264 |
+
|
| 265 |
+
Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, and Diana Marculescu. Single-path mobile automl: Efficient convnet design and NAS hyperparameter optimization. CoRR, abs/1907.00959, 2019b.
|
| 266 |
+
|
| 267 |
+
Mingxing Tan and Quoc V. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In ICML, pp. 6105–6114, 2019a.
|
| 268 |
+
|
| 269 |
+
Mingxing Tan and Quoc V. Le. Mixconv: Mixed depthwise convolutional kernels. CoRR, abs/1907.09595, 2019b.
|
| 270 |
+
|
| 271 |
+
Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In CVPR, pp. 2820– 2828, 2019.
|
| 272 |
+
|
| 273 |
+
Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. In CVPR, pp. 10734–10742, 2019.
|
| 274 |
+
|
| 275 |
+
Yuhui Xu, Lingxi Xie, Xiaopeng Zhang, Xin Chen, Guo-Jun Qi, Qi Tian, and Hongkai Xiong. PCDARTS: Partial channel connections for memory-efficient architecture search. In ICLR, 2020.
|
| 276 |
+
|
| 277 |
+
Jianbo Ye, Xin Lu, Zhe Lin, and James Z. Wang. Rethinking the smaller-norm-less-informative assumption in channel pruning of convolution layers. In ICLR, 2018.
|
| 278 |
+
|
| 279 |
+
Jiahui Yu, Pengchong Jin, Hanxiao Liu, Gabriel Bender, Pieter-Jan Kindermans, Mingxing Tan, Thomas Huang, Xiaodan Song, and Quoc Le. Scaling up neural architecture search with big single-stage models, 2020. URL https://openreview.net/forum?id $=$ HJe7unNFDH.
|
| 280 |
+
|
| 281 |
+
Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empiri- ´ cal risk minimization. In ICLR, 2018.
|
| 282 |
+
|
| 283 |
+
Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In ICLR, 2017.
|
| 284 |
+
|
| 285 |
+

|
| 286 |
+
A VISUALIZATION
|
| 287 |
+
Figure 5: The architecture of AtomNAS-C. Blue, orange, cyan blocks denote atomic blocks with kernel size 3, 5 and 7 respectively; the heights of these blocks are proportional to their expand ratios.
|
| 288 |
+
|
| 289 |
+
We plot the structure of the searched architecture AtomNAS-C in Fig. 5, from which we see more flexibility of channel number selection, not only among different operators within each block, but also across the network. In Fig. 6a, we visualize the ratio between atomic blocks with different kernel sizes in all 21 search blocks. First, we notice that all search blocks have convolutions of all three kernel sizes, showing that AtomNAS learns the importance of using multiple kernel sizes in network architecture. Another observation is that AtomNAS tends to keep more atomic blocks at the later stage of the network. This is because in earlier stage, convolutions of the same kernel size costs more FLOPs; AtomNAS is aware of this (thanks to its resource-aware regularization) and try to keep as less as possible computationally costly atomic blocks.
|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
Figure 6: Ratio of different types of atomic blocks in all 21 searchable blocks. The text above each pie tells the total number of atomic blocks of the corresponding block in the original supernet. Grey denotes dead atomic blocks; blue, orange, and cyan represent atomic blocks using depth-wise convolutions with kernel size $3 , 5 , 7$ respectively. Blocks without skip connection are highlighted by bold text. (a) Visualization for AtomNAS-C. (b) Visualization for baseline (i.e., without FLOPs related coefficients $c _ { i }$ ).
|
parse/train/BylQSxHFwr/BylQSxHFwr_content_list.json
ADDED
|
@@ -0,0 +1,1556 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ATOMNAS: FINE-GRAINED END-TO-END NEURAL ARCHITECTURE SEARCH ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jieru Mei1∗, Yingwei $\\mathbf { L i } ^ { 1 * }$ , Xiaochen Lian2, Xiaojie $\\mathbf { J i n ^ { 2 } }$ , Linjie Yang2, Alan Yuille1 & Jianchao Yang2 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
674,
|
| 21 |
+
199
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1Johns Hopkins University \n2ByteDance AI Lab ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
186,
|
| 30 |
+
199,
|
| 31 |
+
361,
|
| 32 |
+
228
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "eijieru@gmail.com, yingwei.li@jhu.edu, {xiaochen.lian, jinxiaojie, linjie.yang}@bytedance.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
196,
|
| 41 |
+
231,
|
| 42 |
+
732,
|
| 43 |
+
241
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "alan.l.yuille@gmail.com, yangjianchao@bytedance.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
184,
|
| 52 |
+
246,
|
| 53 |
+
485,
|
| 54 |
+
253
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
292,
|
| 65 |
+
544,
|
| 66 |
+
308
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Search space design is very critical to neural architecture search (NAS) algorithms. We propose a fine-grained search space comprised of atomic blocks, a minimal search unit that is much smaller than the ones used in recent NAS algorithms. This search space allows a mix of operations by composing different types of atomic blocks, while the search space in previous methods only allows homogeneous operations. Based on this search space, we propose a resource-aware architecture search framework which automatically assigns the computational resources (e.g., output channel numbers) for each operation by jointly considering the performance and the computational cost. In addition, to accelerate the search process, we propose a dynamic network shrinkage technique which prunes the atomic blocks with negligible influence on outputs on the fly. Instead of a searchand-retrain two-stage paradigm, our method simultaneously searches and trains the target architecture. Our method achieves state-of-the-art performance under several FLOPs configurations on ImageNet with a small searching cost. We open our entire codebase at: https://github.com/meijieru/AtomNAS. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
325,
|
| 76 |
+
764,
|
| 77 |
+
534
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
592,
|
| 88 |
+
336,
|
| 89 |
+
608
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Human-designed neural networks are already surpassed by machine-designed ones. Neural Architecture Search (NAS) has become the mainstream approach to discover efficient and powerful network structures (Zoph & Le (2017); Pham et al. (2018); Tan et al. (2019); Liu et al. (2019a)). Although the tedious searching process is conducted by machines, humans still involve extensively in the design of the NAS algorithms. Designing of search spaces is critical for NAS algorithms and different choices have been explored. Cai et al. (2019) and Wu et al. (2019) utilize supernets with multiple choices in each layer to accommodate a sampled network on the GPU. Chen et al. (2019b) progressively grow the depth of the supernet and remove unnecessary blocks during the search. Tan & Le (2019a) propose to search the scaling factor of image resolution, channel multiplier and layer numbers in scenarios with different computation budgets. Stamoulis et al. (2019a) propose to use different kernel sizes in each layer of the supernet and reuse the weights of larger kernels for small kernels. Howard et al. (2019); Tan & Le (2019b) adopts Inverted Residuals with Linear Bottlenecks (MobileNetV2 block) (Sandler et al., 2018), a building block with light-weighted depth-wise convolutions for highly efficient networks in mobile scenarios. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
626,
|
| 99 |
+
825,
|
| 100 |
+
819
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "However, the proposed search spaces generally have only a small set of choices for each block. DARTS and related methods (Liu et al., 2019a; Chen et al., 2019b; Liang et al., 2019) use around 10 different operations between two network nodes. Howard et al. (2019); Cai et al. (2019); Wu et al. (2019); Stamoulis et al. (2019a) search the expansion ratios in the MobileNetV2 block but still limit them to a few discrete values. We argue that search space of finer granularity is critical to find optimal neural architectures. Specifically, the searched building block in a supernet should be as small as possible to generate the most diversified model structures. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
827,
|
| 110 |
+
823,
|
| 111 |
+
896
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "",
|
| 118 |
+
"bbox": [
|
| 119 |
+
173,
|
| 120 |
+
103,
|
| 121 |
+
821,
|
| 122 |
+
132
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "We revisit the architectures of state-of-the-art networks (Howard et al. (2019); Tan & Le (2019b); He et al. (2016)) and discover a commonly used building structure: convolution - channel-wise operation - convolution. We reinterpret this building structure as an ensemble of computationally independent blocks, which we call atomic blocks. As the minimum search unit, the atomic block constitutes a much larger and more fine-grained search space, within which we are able to search for mixed operations (e.g., convolutions with different kernel sizes and their channel numbers). ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
138,
|
| 132 |
+
823,
|
| 133 |
+
222
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "For the efficient exploration of the new search space, we propose a NAS framework named AtomNAS which applies network pruning techniques to architecture search. Specifically, we start from an initial large supernet and rewrite every convolution - channel-wise operation - convolution structure of it in the form the weighted sum of atomic blocks; the weights reflect the contribution of the atomic blocks to the network capacity and are called importance factors. For each atomic block, a penalty term in proportion to its FLOPs is enforced on its importance factor; effectively, the penalty makes AtomNAS favor atomic blocks with less FLOPs. By minimizing the combination of the original network loss and the total penalty on the weights, AtomNAS is able to learn both the parameters of the network and the weights of the atomic blocks. At the end of the learning, atomic blocks with very small weights (e.g., $< 0 . 0 0 1$ ) are removed from the network and we obtain the final network which has fewer FLOPs. Since the pruned atomic blocks have little contribution to the network output due to their negligible weights, the final network does not need to be retrained or finetuned. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
229,
|
| 143 |
+
825,
|
| 144 |
+
396
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Training on the large supernet is computationally demanding. We observe that for many pruned atomic blocks, their weights diminish at the early stage of learning and never “revive” throughout the rest of learning. We propose a dynamic network shrinkage technique which removes those atomic blocks on the fly and greatly reduces the run time of AtomNAS. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
404,
|
| 154 |
+
823,
|
| 155 |
+
459
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "In our experiment, our method achieves $7 5 . 9 \\%$ top-1 accuracy on ImageNet dataset around 360M FLOPs, which is $0 . 9 \\%$ higher than state-of-the-art model (Stamoulis et al., 2019a). By further incorporating additional modules, our method achieves $7 7 . 6 \\%$ top-1 accuracy. It outperforms MixNet by $0 . 6 \\%$ using 363M FLOPs, which is a new state-of-the-art under the mobile scenario. ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
174,
|
| 164 |
+
465,
|
| 165 |
+
825,
|
| 166 |
+
521
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "In summary, the major contributions of our work are: ",
|
| 173 |
+
"bbox": [
|
| 174 |
+
176,
|
| 175 |
+
529,
|
| 176 |
+
521,
|
| 177 |
+
542
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "1. We design a fine-grained search space which includes the exact number of channels and mixed operations (e.g., combination of different convolution kernels). \n2. We propose an NAS framework, AtomNAS. Within the framework, an efficient end-to-end NAS algorithm is proposed which can simultaneously search the network architecture and train the final model. No finetuning is needed after the algorithm finishes. \n3. With the proposed search space and AtomNAS, we achieve state-of-the-art performance on ImageNet dataset under mobile setting. ",
|
| 184 |
+
"bbox": [
|
| 185 |
+
212,
|
| 186 |
+
555,
|
| 187 |
+
825,
|
| 188 |
+
665
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "2 RELATED WORK ",
|
| 195 |
+
"text_level": 1,
|
| 196 |
+
"bbox": [
|
| 197 |
+
176,
|
| 198 |
+
684,
|
| 199 |
+
344,
|
| 200 |
+
702
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "2.1 NEURAL ARCHITECTURE SEARCH ",
|
| 207 |
+
"text_level": 1,
|
| 208 |
+
"bbox": [
|
| 209 |
+
176,
|
| 210 |
+
717,
|
| 211 |
+
450,
|
| 212 |
+
732
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "Recently, there is a growing interest in automated neural architecture design. Reinforce learning based NAS methods (Zoph & Le, 2017; Tan et al., 2019; Tan & Le, 2019b;a) are usually computational intensive, thus hampering its usage with limited computational budget. To accelerate the search procedure, ENAS (Pham et al., 2018) represents the search space using a directed acyclic graph and aims to search the optimal subgraph within the large supergraph. A training strategy of parameter sharing among subgraphs is proposed to significantly increase the searching efficiency. The similar idea of optimizing optimal subgraphs within a supergraph is also adopted by Liu et al. (2019a); Jin et al. (2019); Xu et al. (2020); Wu et al. (2019); Guo et al. (2019); Cai et al. (2019). Stamoulis et al. (2019a); Yu et al. (2020) further share the parameters of different paths within a block using super-kernel representation. A prominent disadvantage of the above methods is that their coarse search spaces only support selecting one out of a set of choices (e.g., selecting one kernel size from $\\{ 3 , 5 , { \\bar { 7 } } \\}$ ). MixNet tries to benefit from mixed operations by using a predefined set of mixed operations $\\{ \\{ 3 \\} , \\{ 3 , 5 \\} , \\{ 3 , 5 , 7 \\} , \\{ 3 , 5 , 7 , 9 \\} \\}$ , where the channels are equally distributed among different kernel sizes. Due to this limitation, it is difficult to learn optimal architectures under computational resource constraints. On the contrary, our method takes advantage of the fine-grained search space and is able to search for more flexible network architectures satisfying various resource constraints. The fine-grained search space proposed in this paper is exponentially larger than previous search space. For reference, the total number of possible structures within the experiment is around $1 0 ^ { 1 6 2 }$ , compared with $1 0 ^ { 2 1 }$ for FBNet. Recently, to improve the final performance of the searched architectures, $\\mathrm { Y u }$ et al. (2020) utilizes knowledge distillation which is orthogonal to our method. It could be easily integrated into our method by Eq. (5) thanks to the end-to-end learning paradigm of our method. ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
743,
|
| 222 |
+
825,
|
| 223 |
+
924
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "image",
|
| 229 |
+
"img_path": "images/c62dc520ca55c4bc08bf4281cc4ae4652738759989a5499f1a0de93542e42793.jpg",
|
| 230 |
+
"image_caption": [
|
| 231 |
+
"Figure 1: Illustration of the ensemble perspective. Arrow means operators. The structure of two convolutions joined by a channel-wise operation is mathematically equivalent to the ensemble of multiple atomic blocks, according to Eq. (2). Colored rectangles represent tensors, with numbers inside indicating their channel numbers; The shaded path on the right is one example of atomic block. "
|
| 232 |
+
],
|
| 233 |
+
"image_footnote": [],
|
| 234 |
+
"bbox": [
|
| 235 |
+
173,
|
| 236 |
+
99,
|
| 237 |
+
825,
|
| 238 |
+
196
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
321,
|
| 248 |
+
825,
|
| 249 |
+
446
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "2.2 NETWORK PRUNING ",
|
| 256 |
+
"text_level": 1,
|
| 257 |
+
"bbox": [
|
| 258 |
+
176,
|
| 259 |
+
481,
|
| 260 |
+
354,
|
| 261 |
+
494
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "Assuming that many parameters in the network are unnecessary, network pruning methods start from a computation-intensive model, identify the unimportant connections and remove them to get a compact and efficient network. Early method (Han et al., 2016) simultaneously learns the important connections and weights. However, non-regularly removing connections in these works makes it hard to achieve theoretical speedup ratio on realistic hardwares due to extra overhead in caching and indexing. To tackle this problem, structured network pruning methods (He et al., 2017b; Liu et al., 2017; Luo et al., 2017; Ye et al., 2018; Gordon et al., 2018) are proposed to prune structured components in networks, e.g. the entire channel and kernel. In this way, empirical acceleration can be achieved on modern computing devices. Liu et al. (2017); Ye et al. (2018); Gordon et al. (2018) encourage channel-level sparsity by imposing the L-1 regularizer on the channel dimension, which is also used by our method. Recently, Liu et al. (2019b) show that in structured network pruning, the learned weights are unimportant. This suggests structured network pruning is actually a neural architecture search focusing on channel numbers. Our method jointly searches the channel numbers and a mix of operations, which is a much larger search space. ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
513,
|
| 271 |
+
825,
|
| 272 |
+
707
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "3 ATOMNAS ",
|
| 279 |
+
"text_level": 1,
|
| 280 |
+
"bbox": [
|
| 281 |
+
176,
|
| 282 |
+
742,
|
| 283 |
+
297,
|
| 284 |
+
758
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "We formulate our neural architecture search method in a fine-grained search space with the atomic block used as the basic search unit. An atomic block is comprised of two convolutions connected by a channel-wise operation. By stacking atomic blocks, we obtain larger building blocks (e.g. residual block and MobileNetV2 block proposed in a variety of state-of-the-art models including ResNet, MobileNet V2/V3 (He et al., 2016; Howard et al., 2019; Sandler et al., 2018). In Section 3.1, We first show larger network building blocks (e.g. MobileNetV2 block) can be represented by an ensembles of atomic blocks. Based on this view, we propose a fine-grained search space using atomic blocks. In Section 3.2, we propose a resource-aware atomic block selection method for end-to-end architecture search. Finally, we propose a dynamic network shrinkage technique in Section 3.3, which greatly reduces the search cost. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
785,
|
| 294 |
+
825,
|
| 295 |
+
922
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "3.1 FINE-GRAINED SEARCH SPACE ",
|
| 302 |
+
"text_level": 1,
|
| 303 |
+
"bbox": [
|
| 304 |
+
176,
|
| 305 |
+
103,
|
| 306 |
+
433,
|
| 307 |
+
117
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 3
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "Under the typical block-wise NAS paradigm (Tan et al., 2019; Tan & Le, 2019b), the search space of each block in a neural network is represented as the Cartesian product $\\begin{array} { r } { \\mathcal { C } = \\prod _ { i = 1 } \\mathcal { P } _ { i } } \\end{array}$ , where each $\\mathcal { P } _ { i }$ is the set of all choices of the $i$ -th configuration such as kernel size, number of channels and type of operation. For example, ${ \\mathcal { C } } = \\{ { \\mathrm { c o n v } } $ , depth-wise conv, dilated conv $\\} \\times \\{ 3 , 5 \\} \\times \\{ 2 4 , 3 2 , 6 4 , 1 \\dot { 2 } \\dot { 8 } \\}$ represents a search space of three types of convolutions by two kernel sizes and four options of channel number. A block in the resulting model can only pick one convolution type from the three and one output channel number from the four values. This paradigm greatly limits the search space due to the few choices of each configuration. Here we present a more fine-grained search space by decomposing the network into smaller and more basic building blocks. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
173,
|
| 316 |
+
130,
|
| 317 |
+
825,
|
| 318 |
+
256
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 3
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "We denote $f ^ { c ^ { \\prime } , c } ( X )$ as a convolution operator, where $X$ is the input tensor and $c , c ^ { \\prime }$ are the input and output channel numbers respectively. A wide range of manually-designed and NAS architectures share a structure that joins two convolutions by a channel-wise operation: ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
263,
|
| 328 |
+
825,
|
| 329 |
+
306
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "equation",
|
| 335 |
+
"img_path": "images/6460bfc4b60d3051c0b0972101c1db030c16707fd1e1516fc084b13982ca2b63.jpg",
|
| 336 |
+
"text": "$$\nY = \\left( f _ { 1 } ^ { c ^ { \\prime \\prime } , c ^ { \\prime } } \\circ g \\circ f _ { 0 } ^ { c ^ { \\prime } , c } \\right) ( X )\n$$",
|
| 337 |
+
"text_format": "latex",
|
| 338 |
+
"bbox": [
|
| 339 |
+
400,
|
| 340 |
+
324,
|
| 341 |
+
598,
|
| 342 |
+
352
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "where $g$ is a channel-wise operator. For example, in VGG (Simonyan & Zisserman, 2015) and a Residual Block (He et al., 2016), $f _ { 0 }$ and $f _ { 1 }$ are convolutions and $g$ is one of Maxpool, ReLU and BN-ReLU; in a MobileNetV2 block (Sandler et al., 2018), $f _ { 0 }$ and $f _ { 1 }$ are point-wise convolutions and $g$ is depth-wise convolution with BN-ReLU in the MobileNetV2 block. Eq. (1) can be reformulated as follows: ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
361,
|
| 352 |
+
825,
|
| 353 |
+
431
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "equation",
|
| 359 |
+
"img_path": "images/64a9b4eeccad6ef5b388fd232f49f5d8736e2f9c4e354fd2f5dad55e86acc410.jpg",
|
| 360 |
+
"text": "$$\nY = \\sum _ { i = 1 } ^ { c ^ { \\prime } } \\left( f _ { 1 } ^ { c ^ { \\prime \\prime } , 1 } [ i , : ] \\circ g [ i , : ] \\circ f _ { 0 } ^ { 1 , c } [ : , i ] \\right) ( X ) ,\n$$",
|
| 361 |
+
"text_format": "latex",
|
| 362 |
+
"bbox": [
|
| 363 |
+
348,
|
| 364 |
+
429,
|
| 365 |
+
648,
|
| 366 |
+
474
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "where $f _ { 0 } ^ { 1 , c } [ : , i ]$ is the $i$ -th convolution kernel of $f _ { 0 } , g [ i , : ]$ is the operator of the $i$ -th channel of $g$ and $\\{ f _ { 1 } ^ { c ^ { \\prime \\prime } , 1 } [ i , : ] \\} _ { i = 1 } ^ { c ^ { \\prime } }$ are obtained by splitting the kernel tensor of $f _ { 1 }$ along the the input channel dimension. Each term in the summation can be seen as a computationally independent block, which is called atomic block. Fig. (1) demonstrate this reformulation. By determining whether to keep each atomic block in the final model individually, the search of channel number $c ^ { \\prime }$ is enabled through channel selection, which greatly enlarges the search space. ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
174,
|
| 375 |
+
478,
|
| 376 |
+
825,
|
| 377 |
+
569
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "This formulation also naturally includes the selection of operators. To gain a better understanding, we first generalize Eq. (2) as: ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
173,
|
| 386 |
+
574,
|
| 387 |
+
820,
|
| 388 |
+
604
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "equation",
|
| 394 |
+
"img_path": "images/efd4b3dca4eac52e76c61709f698b3c6e587428587f11d0c0dd20961ee625b76.jpg",
|
| 395 |
+
"text": "$$\nY = \\sum _ { i = 1 } ^ { c ^ { \\prime } } \\left( f _ { 1 i } ^ { c ^ { \\prime \\prime } , 1 } \\circ g _ { i } \\circ f _ { 0 i } ^ { 1 , c } \\right) ( X ) .\n$$",
|
| 396 |
+
"text_format": "latex",
|
| 397 |
+
"bbox": [
|
| 398 |
+
385,
|
| 399 |
+
611,
|
| 400 |
+
611,
|
| 401 |
+
656
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "Note the array indices $i$ are moved to subscripts. In this formulation, we can use different types of operators for $f _ { 0 i } , f _ { 1 i }$ and $g _ { i }$ ; in other words, $f _ { 0 } , f _ { 1 }$ and $g$ can each be a combination of different operators and each atomic block can use different operators such as convolutions with different kernel sizes. ",
|
| 408 |
+
"bbox": [
|
| 409 |
+
173,
|
| 410 |
+
662,
|
| 411 |
+
825,
|
| 412 |
+
718
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "Formally, the search space is formulated as a supernet which is built based on the structure in Eq. (1); such structure satisfies Eq. (3) and thus can be represented by atomic blocks; each of $f _ { 0 }$ , $f _ { 1 }$ and $g$ is a combination of operators. The new search space includes some state-of-the-art network architectures. For example, by allowing $g$ to be a combination of convolutions with different kernel sizes, the MixConv block in MixNet (Tan & Le, 2019b) becomes a special case in our search space. In addition, our search space facilitates discarding any number of channels in $g$ , resulting in a more fine-grained channel configuration. In comparison, the channel numbers are determined heuristically in Tan & Le (2019b). ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
173,
|
| 421 |
+
724,
|
| 422 |
+
825,
|
| 423 |
+
837
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "3.2 RESOURCE-AWARE ATOMIC BLOCK SEARCH ",
|
| 430 |
+
"text_level": 1,
|
| 431 |
+
"bbox": [
|
| 432 |
+
174,
|
| 433 |
+
856,
|
| 434 |
+
519,
|
| 435 |
+
869
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "In this work, we adopt a differentiable neural architecture search paradigm where the model structure is discovered in a full pass of model training. With the supernet defined above, the final model can be produced by discarding part of the atomic blocks during training. Following DARTS (Liu et al. ",
|
| 442 |
+
"bbox": [
|
| 443 |
+
174,
|
| 444 |
+
882,
|
| 445 |
+
823,
|
| 446 |
+
924
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "(2019a)), we introduce a importance factor $\\alpha$ to scale the output of each atomic block in the supernet. Eq. (3) then becomes ",
|
| 453 |
+
"bbox": [
|
| 454 |
+
169,
|
| 455 |
+
103,
|
| 456 |
+
823,
|
| 457 |
+
131
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 4
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "equation",
|
| 463 |
+
"img_path": "images/5d510d7d07a99e3977d51487e00c889d7ed35c52974308e80b7e5ceed97e6163.jpg",
|
| 464 |
+
"text": "$$\nY = \\sum _ { i = 1 } ^ { c ^ { \\prime } } \\alpha _ { i } \\left( f _ { 1 i } ^ { c ^ { \\prime \\prime } , 1 } \\circ g _ { i } \\circ f _ { 0 i } ^ { 1 , c } \\right) ( X ) .\n$$",
|
| 465 |
+
"text_format": "latex",
|
| 466 |
+
"bbox": [
|
| 467 |
+
377,
|
| 468 |
+
130,
|
| 469 |
+
620,
|
| 470 |
+
174
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 4
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "Here, each $\\alpha _ { i }$ is tied with an atomic block comprised of three operators $f _ { 1 i } ^ { c ^ { \\prime \\prime } , 1 } , g _ { i }$ and $f _ { 0 i } ^ { 1 , c }$ . The importance factors are learned jointly with the network weights. Once the training finishes, the atomic blocks that have negligible effect (i.e., those with factors smaller than a threshold) on the network output are discarded. ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
174,
|
| 479 |
+
185,
|
| 480 |
+
825,
|
| 481 |
+
243
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 4
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "We still need to address two issues related to the importance factors $\\alpha _ { i }$ ’s. The first issue is where in the supernet we should put the $\\alpha$ ? Let’s first consider the case when $g$ only contains linear operations, e.g., convolution, batch normalization and linear activation like ReLU. If $g$ contains at least one BN layer, The scaling parameters in the BN layers can be directly used as such importance factors (Liu et al. (2017)). If $g$ has no BN layers, which is rare, we can place $\\alpha$ anywhere between $f _ { 0 }$ and $f _ { 1 }$ ; however, we need to apply regularization terms to the weights of $f _ { 0 }$ and $f _ { 1 }$ (e.g., weight decays) in order to prevent weights in $f _ { 0 }$ and $f _ { 1 }$ from getting too large and canceling the effect of $\\alpha$ . When $g$ contains non-linear operations, e.g., Swish activation and Sigmoid activation, we can only put $\\alpha$ behind $f _ { 1 }$ . ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
173,
|
| 490 |
+
251,
|
| 491 |
+
825,
|
| 492 |
+
377
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "The second issue is how to avoid performance deterioration after discarding some of the atomic blocks. For example, DARTS discards operations with small scale factors after iterative training of model parameters and scale factors. Since the scale factors of the discarded operations are not small enough, the performance of the network will be affected which needs re-training to adjust the weights again. In order to maintain the performance of the supernet after dropping some atomics blocks, the importance factors $\\alpha$ of those atomic blocks should be sufficiently small. Inspired by the channel pruning work in Liu et al. (2017), we add L1 norm penalty loss on $\\alpha$ , which effectively pushes many importance factors to near-zero values. At the end of learning, atomic blocks with $\\alpha$ close to zero are removed from the supernet. Note that since the BN scales change more dramatically during training due to the regularization term, the running statistics of BNs might be inaccurate and needs to be calculated again using the training set. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
173,
|
| 501 |
+
382,
|
| 502 |
+
825,
|
| 503 |
+
536
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "With the added regularization term, the training loss is ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
174,
|
| 512 |
+
542,
|
| 513 |
+
532,
|
| 514 |
+
558
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "equation",
|
| 520 |
+
"img_path": "images/392cf2ad650a0cdebde9946db2f2a675f79b2750b72dc259f47f74f24245dc8a.jpg",
|
| 521 |
+
"text": "$$\n\\begin{array} { c } { \\displaystyle { \\mathcal { L } = \\mathcal { E } + \\lambda \\sum _ { i \\in \\mathcal { S } } c _ { i } \\big | \\alpha _ { i } \\big | , } } \\\\ { \\displaystyle { \\phantom { \\frac { \\sum _ { i } } { c _ { i } } } } } \\\\ { \\displaystyle { c _ { i } = \\hat { c } _ { i } \\big / \\sum _ { k \\in \\mathcal { S } } \\hat { c } _ { k } } } \\end{array}\n$$",
|
| 522 |
+
"text_format": "latex",
|
| 523 |
+
"bbox": [
|
| 524 |
+
424,
|
| 525 |
+
561,
|
| 526 |
+
571,
|
| 527 |
+
636
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 4
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "where $\\lambda$ is the coefficient of L1 penalty term, $s$ is the index set of all atomic blocks, and $\\mathcal { E }$ is the conventional training loss (e.g., cross-entropy loss combined with the regularization term like weight decay and distillation loss.). $\\left| \\alpha _ { i } \\right|$ is weighted by coefficient $c _ { i }$ which is proportional to the computation cost of $i$ -th atomic block, i.e. $\\hat { c } _ { i }$ . By using computation costs aware regularization, we encourage the model to learn network structures that strike a good balance between accuracy and efficiency. In this paper, we use FLOPs as the criteria of computation cost. Other metrics such as latency and energy consumption can be used similarly. As a result, the whole loss function $\\mathcal { L }$ trades off between accuracy and FLOPs. ",
|
| 534 |
+
"bbox": [
|
| 535 |
+
173,
|
| 536 |
+
642,
|
| 537 |
+
825,
|
| 538 |
+
756
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "3.3 DYNAMIC NETWORK SHRINKAGE ",
|
| 545 |
+
"text_level": 1,
|
| 546 |
+
"bbox": [
|
| 547 |
+
176,
|
| 548 |
+
771,
|
| 549 |
+
447,
|
| 550 |
+
786
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "Usually, the supernet is much larger than the final search result. We observe that many atomic blocks become “dead” starting from the early stage of the search, i.e., their importance factors $\\alpha$ are close to zero till the end of the search. To utilize computational resources more efficiently and speed up the search process, we propose a dynamic network shrinkage algorithm which cuts down the network architecture by removing atomic blocks once they are deemed “dead”. ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
174,
|
| 559 |
+
797,
|
| 560 |
+
825,
|
| 561 |
+
868
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 4
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "We adopt a conservative strategy to decide whether an atomic block is “dead”: for importance factors $\\alpha$ , we maintain its momentum $\\hat { \\alpha }$ which is updated as ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
173,
|
| 570 |
+
875,
|
| 571 |
+
823,
|
| 572 |
+
904
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "equation",
|
| 578 |
+
"img_path": "images/c83f85d5f7e14e2abc92fddce9868915a44e7df772e11dd0c799785290b463ec.jpg",
|
| 579 |
+
"text": "$$\n\\hat { \\alpha } \\gets \\beta \\hat { \\alpha } + ( 1 - \\beta ) \\alpha ^ { t } ,\n$$",
|
| 580 |
+
"text_format": "latex",
|
| 581 |
+
"bbox": [
|
| 582 |
+
423,
|
| 583 |
+
907,
|
| 584 |
+
573,
|
| 585 |
+
925
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 4
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "image",
|
| 591 |
+
"img_path": "images/8452b3f0bed69446364463d4f08930963c12f719fae460817acd40a604bf6420.jpg",
|
| 592 |
+
"image_caption": [
|
| 593 |
+
"Figure 2: FLOPs change of the supernet during the searching and training for AtomNAS-C. The crossed-out region corresponds to the saved computation compared to training the supernet without the dynamic shrinkage. The region in yellow corresponds to the extra cost compared with training the final model from scratch, the cost of which is the region below the red dashed line. "
|
| 594 |
+
],
|
| 595 |
+
"image_footnote": [],
|
| 596 |
+
"bbox": [
|
| 597 |
+
333,
|
| 598 |
+
101,
|
| 599 |
+
660,
|
| 600 |
+
284
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Initialize the supernet and the exponential moving average; \nwhile epoch $\\leq$ max epoch do Update network weights and importance factors $\\alpha$ by minimizing the loss function $\\mathcal { L }$ ; Update the $\\hat { \\alpha }$ by Eq. (7); if Total FLOPs of dead blocks $\\geq \\Delta$ then Remove dead blocks from the supernet; end Recalculate BN’s statistics by forwarding some training examples; Validate the performance of the current supernet; ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
371,
|
| 610 |
+
764,
|
| 611 |
+
501
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "end ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
173,
|
| 620 |
+
497,
|
| 621 |
+
202,
|
| 622 |
+
510
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Algorithm 1: Dynamic network shrinkage ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
359,
|
| 631 |
+
511,
|
| 632 |
+
638,
|
| 633 |
+
525
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "where $\\alpha ^ { t }$ is the importance factors at $t$ -th iteration and $\\beta$ is the decay term. An atomic block is considered “dead” if both $\\hat { \\alpha }$ and $\\alpha ^ { t }$ are smaller than a threshold, which is set to 0.001 throughout experiments. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
556,
|
| 643 |
+
825,
|
| 644 |
+
598
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "Once the total FLOPs of “dead” blocks reach a predefined threshold, we remove those blocks from the supernet. As discussed above, we recalculate BN’s running statistics before deploying the network. The whole training process is presented in Algorithm 1. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
176,
|
| 653 |
+
606,
|
| 654 |
+
821,
|
| 655 |
+
647
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "We show the FLOPs of a sample network during the search process in Fig. 2. We start from a supernet with 1521M FLOPs and dynamically discard “dead” atomic blocks to reduce search cost. The overall search and train cost only increases by $1 7 . 2 \\%$ compared to that of training the searched model from scratch. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
654,
|
| 665 |
+
825,
|
| 666 |
+
710
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "4 EXPERIMENT ",
|
| 673 |
+
"text_level": 1,
|
| 674 |
+
"bbox": [
|
| 675 |
+
176,
|
| 676 |
+
733,
|
| 677 |
+
316,
|
| 678 |
+
748
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 5
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "We first describe the implementation details in Section 4.1 and then compare AtomNAS with previous state-of-the-art methods under various FLOPs constraints in Section 4.2. In Section 4.3, we provide more detailed analysis about AtomNAS. Finally, in Section 4.4, we demonstrate the transferability of AtomNAS networks by evaluating them on detection and instance segmentation tasks. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
765,
|
| 688 |
+
825,
|
| 689 |
+
821
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "4.1 IMPLEMENTATION DETAILS ",
|
| 696 |
+
"text_level": 1,
|
| 697 |
+
"bbox": [
|
| 698 |
+
176,
|
| 699 |
+
840,
|
| 700 |
+
405,
|
| 701 |
+
854
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 5
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "The architecture of the supernet we use for the experiments is shown in table on the right of Fig. 3. The supernet contains 21 AtomNAS blocks, the searchable block in our supernet; the picture on the right of Fig. 3 illustrates the structure of an AtomNAS block, where $f _ { 0 }$ is a $1 \\times 1$ pointwise convolutions that expands the input channel number from $C$ to $3 \\times 6 C$ ; $g$ is a mix of three depth-wise convolutions with kernel sizes of $3 \\times 3 , 5 \\times 5$ and $7 \\times 7 .$ and $f _ { 1 }$ is another $1 \\times 1$ pointwise convolutions that projects the channel number to the output channel number. Similar to MobileNetV2 (Sandler et al., 2018), if the output dimension stays the same as the input dimension, we use a skip connection to add the input to the output. AtomNAS block is effectively an ensemble of $3 \\times 6 C$ atomic blocks, whose underlying search space covers the MobileNetV2 block (Sandler et al., 2018) and its multikernel variant, MixConv (Tan & Le, 2019b). Within AtomNAS block, we are able to optimize the distribution of computation resources (i.e., channel numbers) among the three types of depth-wise convolution. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
867,
|
| 711 |
+
823,
|
| 712 |
+
924
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 5
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "table",
|
| 718 |
+
"img_path": "images/2b650784a0ee572234b2c38a01bf5dd4c19f8d803ffdd3a1f490a973dba2b9b8.jpg",
|
| 719 |
+
"table_caption": [],
|
| 720 |
+
"table_footnote": [],
|
| 721 |
+
"table_body": "<table><tr><td> Input Shape</td><td>Block</td><td>f</td><td>n</td><td>stride</td></tr><tr><td>224²×3</td><td>3x3 conv</td><td>32(16)</td><td>1</td><td>2</td></tr><tr><td>112² × 32(16)</td><td>3x3 MB</td><td>16</td><td>1</td><td>1</td></tr><tr><td>112²×16</td><td>searchable</td><td>24</td><td>4</td><td>2</td></tr><tr><td>56²×24</td><td>searchable</td><td>40</td><td>4</td><td>2</td></tr><tr><td>28²×40</td><td>searchable</td><td>80</td><td>4</td><td>2</td></tr><tr><td>14²×80</td><td>searchable</td><td>96</td><td>4</td><td>1</td></tr><tr><td>14²×96</td><td>searchable</td><td>192</td><td>4</td><td>2</td></tr><tr><td>7²×192</td><td>searchable</td><td>320</td><td>1</td><td>1</td></tr><tr><td>7² ×320</td><td>avgpool</td><td>1</td><td>1</td><td>1</td></tr><tr><td>1280</td><td>fc</td><td>1000</td><td>1</td><td>1</td></tr></table>",
|
| 722 |
+
"bbox": [
|
| 723 |
+
460,
|
| 724 |
+
101,
|
| 725 |
+
816,
|
| 726 |
+
273
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 6
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "image",
|
| 732 |
+
"img_path": "images/78737b107a3bb2660818aad97a17a467bfe2d6a4fecbb0f8a568d8da71c9fab3.jpg",
|
| 733 |
+
"image_caption": [
|
| 734 |
+
"Figure 3: (Left) The searchable block of the supernet. $f _ { 0 }$ and $f _ { 1 }$ are fixed to $1 \\times 1$ pointwise convolutions; $g$ here is a mix of three convolutions with kernel sizes of $3 \\times 3$ , $5 \\times 5$ and $7 \\times 7$ . $f _ { 0 }$ expands the input channel number from $C$ to $1 8 C$ and $f _ { 1 }$ projects the channel number to the output channel number. If the output dimension stays the same as the input dimension, we use a skip connection to add the input to the output. (Right) Architecture of the supernet. Column-Block denotes the block type; MB denotes MobileNetV2 block; ”searchable” means a searchable block shown on the left. Column-f denotes the output channel number of a block. Column-n denotes the number of blocks. Column-s denotes the stride of the first block in a stage. The output channel numbers of the first convolution are 16 for AtomNAS-A, 32 for AtomNAS-B and AtomNAS-C. "
|
| 735 |
+
],
|
| 736 |
+
"image_footnote": [],
|
| 737 |
+
"bbox": [
|
| 738 |
+
181,
|
| 739 |
+
118,
|
| 740 |
+
428,
|
| 741 |
+
273
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 6
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "",
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
446,
|
| 751 |
+
825,
|
| 752 |
+
558
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 6
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "We use the same training configuration (e.g., RMSProp optimizer, EMA on weights and exponential learning rate decay) as Tan et al. (2019); Stamoulis et al. (2019a) and do not use extra data augmentation such as MixUp (Zhang et al., 2018) and AutoAugment (Cubuk et al., 2018). We find that using this configuration is sufficient for our method to achieve good performance. Our results are shown in Table 1 and Table 3. When training the supernet, we use a total batch size of 2048 on 32 Tesla V100 GPUs and train for 350 epochs. For our dynamic network shrinkage algorithm, we set the momentum factor $\\beta$ in Eq. (7) to 0.9999. At the beginning of the training, all of the weights are randomly initialized. To avoid removing atomic blocks with high penalties (i.e., FLOPs) prematurely, the weight of the penalty term in Eq. (5) is increased from 0 to the target $\\lambda$ by a linear scheduler during the first 25 epochs. By setting the weight of the L1 penalty term $\\lambda$ to be $1 . { \\overset { \\cdot } { 8 } } \\times 1 0 ^ { - 4 }$ , $1 . 2 \\times 1 0 ^ { - 4 }$ and ${ \\bar { 1 } } . 0 \\times 1 0 ^ { - 4 }$ respectively, we obtain networks with three different sizes: AtomNAS-A, AtomNAS-B, and AtomNAS-C. They have the similar FLOPs as previous state-of-the-art networks under 400M: MixNet-S (Tan & Le, 2019b), MixNet-M (Tan & Le, 2019b) and SinglePath (Stamoulis et al., 2019a). In Appendix A, we visualize the architecture of AtomNAS-C. ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
174,
|
| 761 |
+
565,
|
| 762 |
+
825,
|
| 763 |
+
760
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 6
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "4.2 EXPERIMENTS ON IMAGENET ",
|
| 770 |
+
"text_level": 1,
|
| 771 |
+
"bbox": [
|
| 772 |
+
176,
|
| 773 |
+
787,
|
| 774 |
+
421,
|
| 775 |
+
803
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 6
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "We apply AtomNAS to search high performance light-weight model on ImageNet 2012 classification task (Deng et al., 2009). Table 1 compares our methods with previous state-of-the-art models, either manually designed or searched. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
176,
|
| 784 |
+
819,
|
| 785 |
+
823,
|
| 786 |
+
861
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 6
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "With models directly produced by AtomNAS, our method achieves the new state-of-the-art under all FLOPs constraints. Especially, AtomNAS-C achieves $7 5 . 9 \\%$ top-1 accuracy with only 360M FLOPs, and surpasses all other models, including models like PDARTS and DenseNAS which have much higher FLOPs. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
176,
|
| 795 |
+
867,
|
| 796 |
+
823,
|
| 797 |
+
924
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 6
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "image",
|
| 803 |
+
"img_path": "images/a3282b42db113d5bd5627597a598ce86c508613a9ae6e5b0b656cf8c4b6d66f8.jpg",
|
| 804 |
+
"image_caption": [
|
| 805 |
+
"Figure 4: FLOPs versus accuracy on ImageNet. † means methods use extra techniques like Swish activation and Squeeze-and-Excitation module. "
|
| 806 |
+
],
|
| 807 |
+
"image_footnote": [],
|
| 808 |
+
"bbox": [
|
| 809 |
+
269,
|
| 810 |
+
99,
|
| 811 |
+
725,
|
| 812 |
+
301
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 7
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "Techniques like Swish activation function (Ramachandran et al., 2018) and Squeeze-and-Excitation (SE) module (Hu et al., 2018) consistently improve the accuracy with marginal FLOPs cost. For a fair comparison with methods that use these techniques, we directly modify the searched network by replacing all ReLU activation with Swish and add SE module with ratio 0.5 to every block and then retrain the network from scratch. Note that unlike other methods, we do not search the configuration of Swish and SE, and therefore the performance might not be optimal. Extra data augmentations such as MixUp and AutoAugment are still not used. We train the models from scratch with a total batch size of 4096 on 32 Tesla V100 GPUs for 250 epochs. ",
|
| 819 |
+
"bbox": [
|
| 820 |
+
174,
|
| 821 |
+
369,
|
| 822 |
+
825,
|
| 823 |
+
481
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 7
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "Simply adding these techniques improves the results further. AtomNAS- $\\mathbf { A } +$ achieves $7 6 . 3 \\%$ top1 accuracy with 260M FLOPs, which outperforms many heavier models including MnasNet-A2. Without extra data augmentations, it performs as well as Efficient-B0 (Tan & Le, 2019a) by using 130M less FLOPs. It also outperforms the previous state-of-the-art MixNet-S by $0 . 5 \\%$ . In addition, AtomNAS- $C +$ improves the top-1 accuracy on ImageNet to $7 7 . 6 \\%$ , surpassing previous state-ofthe-art MixNet-M by $0 . 6 \\%$ and becomes the overall best performing model under 400M FLOPs. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
174,
|
| 832 |
+
488,
|
| 833 |
+
825,
|
| 834 |
+
571
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 7
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Fig. 4 visualizes the top-1 accuracy on ImageNet for different models. It’s clear that our fine-grained search space and the end-to-end resource-aware search method boost the performance significantly. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
171,
|
| 843 |
+
578,
|
| 844 |
+
823,
|
| 845 |
+
607
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 7
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "4.3 ANALYSIS ",
|
| 852 |
+
"text_level": 1,
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
625,
|
| 856 |
+
285,
|
| 857 |
+
638
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "4.3.1 RESOURCE-AWARE REGULARIZATION ",
|
| 864 |
+
"text_level": 1,
|
| 865 |
+
"bbox": [
|
| 866 |
+
178,
|
| 867 |
+
650,
|
| 868 |
+
493,
|
| 869 |
+
664
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "To demonstrate the effectiveness of the resource-aware regularization in Section 3.2, we compare it with a baseline without FLOPs-related coefficients $c _ { i }$ , which is widely used in network pruning (Liu et al., 2017; He et al., 2017b). Table 2 shows the results. First, by using the same L1 penalty coefficient $\\lambda = 1 . 0 \\times 1 0 ^ { - 4 }$ , the baseline achieves a network with similar performance but using much more FLOPs; then by increasing $\\lambda$ to $1 . 5 \\times 1 0 ^ { - 4 }$ , the baseline obtain a network which has similar FLOPs but inferior performance (i.e., about $1 . 0 \\%$ lower). In Fig. 6b we visualized the ratio of different types of atomic blocks of the baseline network obtained by $\\bar { \\lambda ( \\mathrm { = 1 . 5 \\times 1 0 ^ { - 4 } } }$ . The baseline network keeps more atomic blocks in the earlier blocks, which have higher computation cost due to higher input resolution. On the contrary, AtomNAS is aware of the resource constraint, thus keeping more atomic blocks in the later blocks and achieving much better performance. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
174,
|
| 878 |
+
674,
|
| 879 |
+
825,
|
| 880 |
+
814
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "4.3.2 BN RECALIBRATION ",
|
| 887 |
+
"text_level": 1,
|
| 888 |
+
"bbox": [
|
| 889 |
+
176,
|
| 890 |
+
829,
|
| 891 |
+
372,
|
| 892 |
+
843
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 7
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "As the BN’s running statistics might be inaccurate as explained in Section 3.2 and Section 3.3, we re-calculate the running statistics of BN before inference, by forwarding 131k randomly sampled training images through the network. Table 3 shows the impact of the BN recalibration. The top-1 accuracies of AtomNAS-A, AtomNAS-B, and AtomNAS-C on ImageNet improve by $1 . 4 \\%$ , $1 . { \\bar { 7 } } \\%$ , and $1 . 2 \\%$ respectively, which clearly shows the benefit of BN recalibration. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
174,
|
| 901 |
+
853,
|
| 902 |
+
825,
|
| 903 |
+
924
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 7
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "table",
|
| 909 |
+
"img_path": "images/b5bb155aa3c4f7096ab746b8b8b94d2e74b5b3a23dde4e1b45b5af2fd3273b61.jpg",
|
| 910 |
+
"table_caption": [
|
| 911 |
+
"Table 1: Comparision with state-of-the-arts on ImageNet under the mobile setting. † denotes methods using extra network modules such as Swish activation and Squeeze-and-Excitation module. ‡ denotes using extra data augmentation such as MixUp and AutoAugment. ∗ denotes models searched and trained simultaneously. "
|
| 912 |
+
],
|
| 913 |
+
"table_footnote": [],
|
| 914 |
+
"table_body": "<table><tr><td>Model</td><td>Parameters</td><td>FLOPs</td><td>Top-1(%)</td><td>Top-5(%)</td></tr><tr><td>MobileNetV1 (Howard et al., 2017)</td><td>4.2M</td><td>575M</td><td>70.6</td><td>89.5</td></tr><tr><td>MobileNetV2 (Sandler et al., 2018)</td><td>3.4M</td><td>300M</td><td>72.0</td><td>91.0</td></tr><tr><td>MobileNetV2 (our impl.)</td><td>3.4M</td><td>301M</td><td>73.6</td><td>91.5</td></tr><tr><td>MobileNetV2 (1.4)</td><td>6.9M</td><td>585M</td><td>74.7</td><td>92.5</td></tr><tr><td>ShuffleNetV2 (Ma et al.,2018)</td><td>3.5M</td><td>299M</td><td>72.6</td><td>=</td></tr><tr><td>ShuffleNetV2 2×</td><td>7.4M</td><td>591M</td><td>74.9</td><td></td></tr><tr><td>FBNet-A (Wu et al., 2019)</td><td>4.3M</td><td>249M</td><td>73.0</td><td></td></tr><tr><td>FBNet-C</td><td>5.5M</td><td>375M</td><td>74.9</td><td></td></tr><tr><td>Proxyless (mobile) (Cai et al., 2019)</td><td>4.1M</td><td>320M</td><td>74.6</td><td>92.2</td></tr><tr><td>SinglePath (Stamoulis et al., 2019a)</td><td>4.4M</td><td>334M</td><td>75.0</td><td>92.2</td></tr><tr><td>NASNet-A (Zoph & Le,2017)</td><td>5.3M</td><td>564M</td><td>74.0</td><td>91.6</td></tr><tr><td>DARTS (second order) (Liu et al., 2019a)</td><td>4.9M</td><td>595M</td><td>73.1</td><td>-</td></tr><tr><td>PDARTS (cifar 10) (Chen et al., 2019b)</td><td>4.9M</td><td>557M</td><td>75.6</td><td>92.6</td></tr><tr><td>DenseNAS-A (Fang et al., 2019)</td><td>7.9M</td><td>501M</td><td>75.9</td><td>92.6</td></tr><tr><td>FairNAS-A (Chu et al., 2019b)</td><td>4.6M</td><td>388M</td><td>75.3</td><td>92.4</td></tr><tr><td>AtomNAS-A*</td><td>3.9M</td><td>258M</td><td>74.6</td><td>92.1</td></tr><tr><td>AtomNAS-B*</td><td>4.4M</td><td>326M</td><td>75.5</td><td>92.6</td></tr><tr><td>AtomNAS-C*</td><td>4.7M</td><td>360M</td><td>75.9</td><td>92.7</td></tr><tr><td>SCARLET-A† (Chu et al., 2019a)</td><td>6.7M</td><td>365M</td><td>76.9</td><td>93.4</td></tr><tr><td>MnasNet-A1† (Tan et al., 2019)</td><td>3.9M</td><td>312M</td><td>75.2</td><td>92.5</td></tr><tr><td>MnasNet-A2t</td><td>4.8M</td><td>340M</td><td>75.6</td><td>92.7</td></tr><tr><td>MixNet-St (Tan & Le, 2019b)</td><td>4.1M</td><td>256M</td><td>75.8</td><td>92.8</td></tr><tr><td>MixNet-M†</td><td>5.0M</td><td>360M</td><td>77.0</td><td>93.3</td></tr><tr><td>EfficientNet-Bot‡ (Tan & Le, 2019a)</td><td>5.3M</td><td>390M</td><td>76.3</td><td>93.2</td></tr><tr><td>SE-DARTS+†‡ (Liang et al., 2019)</td><td>6.1M</td><td>594M</td><td>77.5</td><td>93.6</td></tr><tr><td>AtomNAS-A+†</td><td>4.7M</td><td>260M</td><td>76.3</td><td>93.0</td></tr><tr><td>AtomNAS-B+†</td><td>5.5M</td><td>329M</td><td>77.2</td><td>93.5</td></tr><tr><td>AtomNAS-C+†</td><td>5.9M</td><td>363M</td><td>77.6</td><td>93.6</td></tr></table>",
|
| 915 |
+
"bbox": [
|
| 916 |
+
187,
|
| 917 |
+
172,
|
| 918 |
+
808,
|
| 919 |
+
617
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "table",
|
| 925 |
+
"img_path": "images/5802b181ae3c7ec93af55966a9a6b97bffb4593871e63250495008a1e09710d3.jpg",
|
| 926 |
+
"table_caption": [
|
| 927 |
+
"Table 2: Influence of awareness of resource metric. The upper block uses equal penalties for all atomic blocks. The lower part uses our resource-aware atomic block selection. "
|
| 928 |
+
],
|
| 929 |
+
"table_footnote": [],
|
| 930 |
+
"table_body": "<table><tr><td>入</td><td>FLOPs</td><td>Top-1(%)</td></tr><tr><td>1.0×10-4</td><td>445M</td><td>76.1</td></tr><tr><td>1.5 ×10-4</td><td>370M</td><td>74.9</td></tr><tr><td>1.0×10-4</td><td>360M</td><td>75.9</td></tr></table>",
|
| 931 |
+
"bbox": [
|
| 932 |
+
375,
|
| 933 |
+
690,
|
| 934 |
+
620,
|
| 935 |
+
771
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 8
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"text": "4.3.3 COST OF DYNAMIC NETWORK SHRINKAGE ",
|
| 942 |
+
"text_level": 1,
|
| 943 |
+
"bbox": [
|
| 944 |
+
174,
|
| 945 |
+
811,
|
| 946 |
+
529,
|
| 947 |
+
827
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 8
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Our dynamic network shrinkage algorithm speedups the search and train process significantly. For AtomNAS-C, the total time for search-and-training is 25.5 hours. For reference, training the final architecture from scratch takes 22 hours. Note that as the supernet shrinks, both the GPU memory consumption and forward-backward time are significantly reduced. Thus it’s possible to dynamically change the batch size once having sufficient GPU memory, which would further speed up the whole procedure. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
173,
|
| 956 |
+
839,
|
| 957 |
+
825,
|
| 958 |
+
924
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 8
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "table",
|
| 964 |
+
"img_path": "images/9ffcbfddd00a3aeae27f962e454a0acd138b019c2c062404b3fc1ed6d27a7964.jpg",
|
| 965 |
+
"table_caption": [
|
| 966 |
+
"Table 3: Influence of BN recalibration. "
|
| 967 |
+
],
|
| 968 |
+
"table_footnote": [],
|
| 969 |
+
"table_body": "<table><tr><td>Model</td><td>w/o Recalibration</td><td>w/Recalibration</td></tr><tr><td>AtomNAS-A</td><td>73.2</td><td>74.6 (+1.4)</td></tr><tr><td>AtomNAS-B</td><td>73.8</td><td>75.5 (+1.7)</td></tr><tr><td>AtomNAS-C</td><td>74.7</td><td>75.9 (+1.2)</td></tr></table>",
|
| 970 |
+
"bbox": [
|
| 971 |
+
312,
|
| 972 |
+
132,
|
| 973 |
+
686,
|
| 974 |
+
205
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 9
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "4.4 EXPERIMENTS ON COCO DETECTION AND INSTANCE SEGMENTATION",
|
| 981 |
+
"text_level": 1,
|
| 982 |
+
"bbox": [
|
| 983 |
+
173,
|
| 984 |
+
236,
|
| 985 |
+
702,
|
| 986 |
+
251
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 9
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "In this section, we assess the performance of AtomNAS models as feature extractors for object detection and instance segmentation on COCO dataset (Lin et al., 2014). We first pretrain AtomNAS models (without Swish activation function (Ramachandran et al., 2018) and Squeeze-and-Excitation (SE) module (Hu et al., 2018)) on ImageNet, use them as drop-in replacements for the backbone in the Mask-RCNN model (He et al., 2017a) by building the detection head on top of the last feature map, and finetune the model on COCO dataset. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
174,
|
| 995 |
+
262,
|
| 996 |
+
825,
|
| 997 |
+
345
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 9
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "We use the open-source code MMDetection (Chen et al., 2019a). All the models are trained on COCO train2017 with batch size 16 and evaluated on COCO val2017. Following the schedule used in the open-source implementation of TPU-trained Mask-RCNN , the learning rate starts at 0.02 and decreases by a scale of 10 at 15-th and 20th epoch respectively. The models are trained for 23 epochs in total. ",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
174,
|
| 1006 |
+
353,
|
| 1007 |
+
825,
|
| 1008 |
+
422
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 9
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "Table 4 compares the results with other baseline backbone models. The detection results of baseline models are from Stamoulis et al. (2019b). We can see that all three AtomNAS models outperform the baselines on object detection task. The results demonstrate that our models have better transferability than the baselines, which may due to mixed operations, a.k.a multi-scale here, are more important to object detection and instance segmentation. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
174,
|
| 1017 |
+
429,
|
| 1018 |
+
825,
|
| 1019 |
+
500
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 9
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "table",
|
| 1025 |
+
"img_path": "images/5d0f4328b40f8b38d7f317039d8865ead12f2e29c4754d78eccda80b05f10f3e.jpg",
|
| 1026 |
+
"table_caption": [
|
| 1027 |
+
"Table 4: Comparision with baseline backbones on COCO object detection and instance segmentation. Cls denotes the ImageNet top-1 accuracy; detect-mAP and seg-mAP denotes mean average precision for detection and instance segmentation on COCO dataset. The results of baseline models are from Stamoulis et al. (2019b). SinglePath $^ +$ (Stamoulis et al., 2019b) contains SE module. "
|
| 1028 |
+
],
|
| 1029 |
+
"table_footnote": [],
|
| 1030 |
+
"table_body": "<table><tr><td>Model</td><td>FLOPs</td><td>Cls (%)</td><td>detect-mAP (%)</td><td>seg-mAP (%)</td></tr><tr><td>MobileNetV2 (Sandler et al., 2018)</td><td>301M</td><td>73.6</td><td>30.5</td><td>1</td></tr><tr><td>Proxyless (mobile) (Cai et al., 2019)</td><td>320M</td><td>74.6</td><td>32.9</td><td>=</td></tr><tr><td>Proxyless (mobile) (our impl.)</td><td>320M</td><td>74.9</td><td>32.7</td><td>30.0</td></tr><tr><td>SinglePath+ (Stamoulis et al., 2019b)</td><td>353M</td><td>75.6</td><td>33.0</td><td>1</td></tr><tr><td>SinglePath (our impl.)</td><td>334M</td><td>75.0</td><td>32.0</td><td>29.7</td></tr><tr><td>AtomNAS-A</td><td>258M</td><td>74.6</td><td>32.7</td><td>30.1</td></tr><tr><td>AtomNAS-B</td><td>326M</td><td>75.5</td><td>33.6</td><td>30.8</td></tr><tr><td>AtomNAS-C</td><td>360M</td><td>75.9</td><td>34.1</td><td>31.4</td></tr></table>",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
179,
|
| 1033 |
+
587,
|
| 1034 |
+
818,
|
| 1035 |
+
741
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 9
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "5 CONCLUSION ",
|
| 1042 |
+
"text_level": 1,
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
174,
|
| 1045 |
+
773,
|
| 1046 |
+
318,
|
| 1047 |
+
790
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 9
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "In this paper, we revisit the common structure, i.e., two convolutions joined by a channel-wise operation, and reformulate it as an ensemble of atomic blocks. This perspective enables a much larger and more fine-grained search space. For efficiently exploring the huge fine-grained search space, we propose an end-to-end framework named AtomNAS, which conducts architecture search and network training jointly. The searched networks achieve significantly better accuracy than previous state-of-the-art methods while using small extra cost. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
174,
|
| 1056 |
+
805,
|
| 1057 |
+
825,
|
| 1058 |
+
888
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 9
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "REFERENCES ",
|
| 1065 |
+
"text_level": 1,
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
176,
|
| 1068 |
+
102,
|
| 1069 |
+
287,
|
| 1070 |
+
118
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 10
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In ICLR, 2019. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
171,
|
| 1079 |
+
126,
|
| 1080 |
+
823,
|
| 1081 |
+
155
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 10
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Kai Chen, Jiaqi Wang, Jiangmiao Pang, Yuhang Cao, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jiarui Xu, Zheng Zhang, Dazhi Cheng, Chenchen Zhu, Tianheng Cheng, Qijie Zhao, Buyu Li, Xin Lu, Rui Zhu, Yue Wu, Jifeng Dai, Jingdong Wang, Jianping Shi, Wanli Ouyang, Chen Change Loy, and Dahua Lin. MMDetection: Open mmlab detection toolbox and benchmark. arXiv preprint arXiv:1906.07155, 2019a. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
165,
|
| 1091 |
+
825,
|
| 1092 |
+
234
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 10
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. CoRR, abs/1904.12760, 2019b. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
173,
|
| 1101 |
+
244,
|
| 1102 |
+
823,
|
| 1103 |
+
273
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 10
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Xiangxiang Chu, Bo Zhang, Jixiang Li, Qingyuan Li, and Ruijun Xu. Scarletnas: Bridging the gap between scalability and fairness in neural architecture search. CoRR, abs/1908.06022, 2019a. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
171,
|
| 1112 |
+
284,
|
| 1113 |
+
821,
|
| 1114 |
+
313
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 10
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Xiangxiang Chu, Bo Zhang, Ruijun Xu, and Jixiang Li. Fairnas: Rethinking evaluation fairness of weight sharing neural architecture search. CoRR, abs/1907.01845, 2019b. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
173,
|
| 1123 |
+
321,
|
| 1124 |
+
825,
|
| 1125 |
+
352
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 10
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Ekin Dogus Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. Autoaugment: ´ Learning augmentation policies from data. CoRR, abs/1805.09501, 2018. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
176,
|
| 1134 |
+
361,
|
| 1135 |
+
823,
|
| 1136 |
+
390
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 10
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255, 2009. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
173,
|
| 1145 |
+
398,
|
| 1146 |
+
823,
|
| 1147 |
+
429
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 10
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Jiemin Fang, Yuzhu Sun, Qian Zhang, Yuan Li, Wenyu Liu, and Xinggang Wang. Densely connected search space for more flexible neural architecture search. CoRR, abs/1906.09607, 2019. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
169,
|
| 1156 |
+
438,
|
| 1157 |
+
823,
|
| 1158 |
+
467
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 10
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Ariel Gordon, Elad Eban, Ofir Nachum, Bo Chen, Hao Wu, Tien-Ju Yang, and Edward Choi. Morphnet: Fast & simple resource-constrained structure learning of deep networks. In CVPR, pp. 1586–1595, 2018. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
174,
|
| 1167 |
+
477,
|
| 1168 |
+
823,
|
| 1169 |
+
520
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 10
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path one-shot neural architecture search with uniform sampling. CoRR, abs/1904.00420, 2019. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
176,
|
| 1178 |
+
530,
|
| 1179 |
+
823,
|
| 1180 |
+
571
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 10
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Song Han, Huizi Mao, and William J. Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. In ICLR, 2016. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
174,
|
| 1189 |
+
582,
|
| 1190 |
+
821,
|
| 1191 |
+
612
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 10
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
174,
|
| 1200 |
+
621,
|
| 1201 |
+
821,
|
| 1202 |
+
650
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 10
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross B. Girshick. Mask R-CNN. In ´ IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pp. 2980–2988, 2017a. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
174,
|
| 1211 |
+
660,
|
| 1212 |
+
825,
|
| 1213 |
+
702
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 10
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In ICCV, pp. 1398–1406, 2017b. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
173,
|
| 1222 |
+
712,
|
| 1223 |
+
823,
|
| 1224 |
+
742
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 10
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. Corr, abs/1905.02244, 2019. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
174,
|
| 1233 |
+
751,
|
| 1234 |
+
823,
|
| 1235 |
+
794
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 10
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
174,
|
| 1244 |
+
804,
|
| 1245 |
+
821,
|
| 1246 |
+
847
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 10
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, pp. 7132–7141, 2018. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
169,
|
| 1255 |
+
856,
|
| 1256 |
+
823,
|
| 1257 |
+
872
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 10
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Xiaojie Jin, Jiang Wang, Joshua Slocum, Ming-Hsuan Yang, Shengyang Dai, Shuicheng Yan, and Jiashi Feng. Rc-darts: Resource constrained differentiable architecture search. arXiv preprint arXiv:1912.12814, 2019. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
176,
|
| 1266 |
+
882,
|
| 1267 |
+
823,
|
| 1268 |
+
922
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 10
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Hanwen Liang, Shifeng Zhang, Jiacheng Sun, Xingqiu He, Weiran Huang, Kechen Zhuang, and Zhenguo Li. Darts $^ +$ : Improved differentiable architecture search with early stopping, 2019. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
171,
|
| 1277 |
+
103,
|
| 1278 |
+
823,
|
| 1279 |
+
132
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 11
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C. Lawrence Zitnick. Microsoft COCO: common objects in context. In ´ Computer Vision - ECCV 2014 - 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V, pp. 740–755, 2014. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
174,
|
| 1288 |
+
140,
|
| 1289 |
+
825,
|
| 1290 |
+
198
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 11
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In ICLR, 2019a. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
173,
|
| 1299 |
+
205,
|
| 1300 |
+
821,
|
| 1301 |
+
236
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 11
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, pp. 2755–2763, 2017. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
171,
|
| 1310 |
+
244,
|
| 1311 |
+
821,
|
| 1312 |
+
273
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 11
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019b. ",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
174,
|
| 1321 |
+
281,
|
| 1322 |
+
823,
|
| 1323 |
+
325
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 11
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. Thinet: A filter level pruning method for deep neural network compression. In ICCV, pp. 5068–5076, 2017. ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
173,
|
| 1332 |
+
333,
|
| 1333 |
+
821,
|
| 1334 |
+
363
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 11
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet V2: practical guidelines for efficient CNN architecture design. In ECCV, pp. 122–138, 2018. ",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
173,
|
| 1343 |
+
371,
|
| 1344 |
+
823,
|
| 1345 |
+
401
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 11
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, pp. 4092–4101, 2018. ",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
173,
|
| 1354 |
+
409,
|
| 1355 |
+
825,
|
| 1356 |
+
439
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 11
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "Prajit Ramachandran, Barret Zoph, and Quoc V. Le. Searching for activation functions. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Workshop Track Proceedings, 2018. ",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
176,
|
| 1365 |
+
446,
|
| 1366 |
+
823,
|
| 1367 |
+
491
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 11
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "Mark Sandler, Andrew G. Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, pp. 4510–4520, 2018. ",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
174,
|
| 1376 |
+
498,
|
| 1377 |
+
823,
|
| 1378 |
+
529
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 11
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. ",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
173,
|
| 1387 |
+
536,
|
| 1388 |
+
821,
|
| 1389 |
+
566
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 11
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "text",
|
| 1395 |
+
"text": "Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, and Diana Marculescu. Single-path NAS: designing hardware-efficient convnets in less than 4 hours. CoRR, abs/1904.02877, 2019a. ",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
174,
|
| 1398 |
+
574,
|
| 1399 |
+
823,
|
| 1400 |
+
617
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 11
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "text",
|
| 1406 |
+
"text": "Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, and Diana Marculescu. Single-path mobile automl: Efficient convnet design and NAS hyperparameter optimization. CoRR, abs/1907.00959, 2019b. ",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
174,
|
| 1409 |
+
626,
|
| 1410 |
+
823,
|
| 1411 |
+
670
|
| 1412 |
+
],
|
| 1413 |
+
"page_idx": 11
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"type": "text",
|
| 1417 |
+
"text": "Mingxing Tan and Quoc V. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In ICML, pp. 6105–6114, 2019a. ",
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
171,
|
| 1420 |
+
678,
|
| 1421 |
+
823,
|
| 1422 |
+
707
|
| 1423 |
+
],
|
| 1424 |
+
"page_idx": 11
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"type": "text",
|
| 1428 |
+
"text": "Mingxing Tan and Quoc V. Le. Mixconv: Mixed depthwise convolutional kernels. CoRR, abs/1907.09595, 2019b. ",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
171,
|
| 1431 |
+
715,
|
| 1432 |
+
823,
|
| 1433 |
+
744
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 11
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In CVPR, pp. 2820– 2828, 2019. ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
173,
|
| 1442 |
+
753,
|
| 1443 |
+
825,
|
| 1444 |
+
796
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 11
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. In CVPR, pp. 10734–10742, 2019. ",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
174,
|
| 1453 |
+
805,
|
| 1454 |
+
821,
|
| 1455 |
+
848
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 11
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "Yuhui Xu, Lingxi Xie, Xiaopeng Zhang, Xin Chen, Guo-Jun Qi, Qi Tian, and Hongkai Xiong. PCDARTS: Partial channel connections for memory-efficient architecture search. In ICLR, 2020. ",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
176,
|
| 1464 |
+
857,
|
| 1465 |
+
820,
|
| 1466 |
+
886
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 11
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "Jianbo Ye, Xin Lu, Zhe Lin, and James Z. Wang. Rethinking the smaller-norm-less-informative assumption in channel pruning of convolution layers. In ICLR, 2018. ",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
176,
|
| 1475 |
+
895,
|
| 1476 |
+
820,
|
| 1477 |
+
924
|
| 1478 |
+
],
|
| 1479 |
+
"page_idx": 11
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"type": "text",
|
| 1483 |
+
"text": "Jiahui Yu, Pengchong Jin, Hanxiao Liu, Gabriel Bender, Pieter-Jan Kindermans, Mingxing Tan, Thomas Huang, Xiaodan Song, and Quoc Le. Scaling up neural architecture search with big single-stage models, 2020. URL https://openreview.net/forum?id $=$ HJe7unNFDH. ",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
178,
|
| 1486 |
+
103,
|
| 1487 |
+
825,
|
| 1488 |
+
146
|
| 1489 |
+
],
|
| 1490 |
+
"page_idx": 12
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"type": "text",
|
| 1494 |
+
"text": "Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empiri- ´ cal risk minimization. In ICLR, 2018. ",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
171,
|
| 1497 |
+
155,
|
| 1498 |
+
823,
|
| 1499 |
+
183
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 12
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In ICLR, 2017. ",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
169,
|
| 1508 |
+
193,
|
| 1509 |
+
825,
|
| 1510 |
+
222
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 12
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "image",
|
| 1516 |
+
"img_path": "images/a32d42420361ceba48ac3630b92aad453623f3484101b00fc26aaaf222acef71.jpg",
|
| 1517 |
+
"image_caption": [
|
| 1518 |
+
"A VISUALIZATION ",
|
| 1519 |
+
"Figure 5: The architecture of AtomNAS-C. Blue, orange, cyan blocks denote atomic blocks with kernel size 3, 5 and 7 respectively; the heights of these blocks are proportional to their expand ratios. "
|
| 1520 |
+
],
|
| 1521 |
+
"image_footnote": [],
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
171,
|
| 1524 |
+
279,
|
| 1525 |
+
826,
|
| 1526 |
+
406
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 12
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "We plot the structure of the searched architecture AtomNAS-C in Fig. 5, from which we see more flexibility of channel number selection, not only among different operators within each block, but also across the network. In Fig. 6a, we visualize the ratio between atomic blocks with different kernel sizes in all 21 search blocks. First, we notice that all search blocks have convolutions of all three kernel sizes, showing that AtomNAS learns the importance of using multiple kernel sizes in network architecture. Another observation is that AtomNAS tends to keep more atomic blocks at the later stage of the network. This is because in earlier stage, convolutions of the same kernel size costs more FLOPs; AtomNAS is aware of this (thanks to its resource-aware regularization) and try to keep as less as possible computationally costly atomic blocks. ",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
173,
|
| 1535 |
+
463,
|
| 1536 |
+
825,
|
| 1537 |
+
588
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 12
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "image",
|
| 1543 |
+
"img_path": "images/17291dab22b27a4c559585f81d3d24d7e8d873b0d22d623f4573327d8ad24bb7.jpg",
|
| 1544 |
+
"image_caption": [
|
| 1545 |
+
"Figure 6: Ratio of different types of atomic blocks in all 21 searchable blocks. The text above each pie tells the total number of atomic blocks of the corresponding block in the original supernet. Grey denotes dead atomic blocks; blue, orange, and cyan represent atomic blocks using depth-wise convolutions with kernel size $3 , 5 , 7$ respectively. Blocks without skip connection are highlighted by bold text. (a) Visualization for AtomNAS-C. (b) Visualization for baseline (i.e., without FLOPs related coefficients $c _ { i }$ ). "
|
| 1546 |
+
],
|
| 1547 |
+
"image_footnote": [],
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
169,
|
| 1550 |
+
116,
|
| 1551 |
+
828,
|
| 1552 |
+
767
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 13
|
| 1555 |
+
}
|
| 1556 |
+
]
|
parse/train/BylQSxHFwr/BylQSxHFwr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BylQSxHFwr/BylQSxHFwr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HysBZSqlx/HysBZSqlx.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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5 |
+
Department of Electrical Engineering
|
| 6 |
+
Technion, Israel Institute of Technology
|
| 7 |
+
$( ^ { * } )$ indicates equal contribution
|
| 8 |
+
{nadavbh,shairoz}@tx.technion.ac.il
|
| 9 |
+
itayhubara@gmail.com
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Mastering a video game requires skill, tactics and strategy. While these attributes may be acquired naturally by human players, teaching them to a computer program is a far more challenging task. In recent years, extensive research was carried out in the field of reinforcement learning and numerous algorithms were introduced, aiming to learn how to perform human tasks such as playing video games. As a result, the Arcade Learning Environment (ALE) (Bellemare et al., 2013) has become a commonly used benchmark environment allowing algorithms to train on various Atari 2600 games. In many games the state-of-the-art algorithms outperform humans. In this paper we introduce a new learning environment, the Retro Learning Environment — RLE, that can run games on the Super Nintendo Entertainment System (SNES), Sega Genesis and several other gaming consoles. The environment is expandable, allowing for more video games and consoles to be easily added to the environment, while maintaining the same interface as ALE. Moreover, RLE is compatible with Python and Torch. SNES games pose a significant challenge to current algorithms due to their higher level of complexity and versatility.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Controlling artificial agents using only raw high-dimensional input data such as image or sound is a difficult and important task in the field of Reinforcement Learning (RL). Recent breakthroughs in the field allow its utilization in real-world applications such as autonomous driving (Shalev-Shwartz et al., 2016), navigation (Bischoff et al., 2013) and more. Agent interaction with the real world is usually either expensive or not feasible, as the real world is far too complex for the agent to perceive. Therefore in practice the interaction is simulated by a virtual environment which receives feedback on a decision made by the algorithm. Traditionally, games were used as a RL environment, dating back to Chess (Campbell et al., 2002), Checkers (Schaeffer et al., 1992), backgammon (Tesauro, 1995) and the more recent Go (Silver et al., 2016). Modern games often present problems and tasks which are highly correlated with real-world problems. For example, an agent that masters a racing game, by observing a simulated driver’s view screen as input, may be usefull for the development of an autonomous driver. For high-dimensional input, the leading benchmark is the Arcade Learning Environment (ALE) (Bellemare et al., 2013) which provides a common interface to dozens of Atari 2600 games, each presents a different challenge. ALE provides an extensive benchmarking platform, allowing a controlled experiment setup for algorithm evaluation and comparison. The main challenge posed by ALE is to successfully play as many Atari 2600 games as possible (i.e., achieving a score higher than an expert human player) without providing the algorithm any game-specific information (i.e., using the same input available to a human - the game screen and score). A key work to tackle this problem is the Deep Q-Networks algorithm (Mnih et al., 2015), which made a breakthrough in the field of Deep Reinforcement Learning by achieving human level performance on 29 out of 49 games. In this work we present a new environment — the Retro Learning Environment (RLE). RLE sets new challenges by providing a unified interface for Atari 2600 games as well as more advanced gaming consoles. As a start we focused on the Super Nintendo Entertainment
|
| 18 |
+
|
| 19 |
+
System (SNES). Out of the five SNES games we tested using state-of-the-art algorithms, only one was able to outperform an expert human player. As an additional feature, RLE supports research of multi-agent reinforcement learning (MARL) tasks (Bus¸oniu et al., 2010). We utilize this feature by training and evaluating the agents against each other, rather than against a pre-configured in-game AI. We conducted several experiments with this new feature and discovered that agents tend to learn how to overcome their current opponent rather than generalize the game being played. However, if an agent is trained against an ensemble of different opponents, its robustness increases. The main contributions of the paper are as follows:
|
| 20 |
+
|
| 21 |
+
• Introducing a novel RL environment with significant challenges and an easy agent evaluation technique (enabling agents to compete against each other) which could lead to new and more advanced RL algorithms.
|
| 22 |
+
• A new method to train an agent by enabling it to train against several opponents, making the final policy more robust.
|
| 23 |
+
• Encapsulating several different challenges to a single RL environment.
|
| 24 |
+
|
| 25 |
+
# 2 RELATED WORK
|
| 26 |
+
|
| 27 |
+
# 2.1 ARCADE LEARNING ENVIRONMENT
|
| 28 |
+
|
| 29 |
+
The Arcade Learning Environment is a software framework designed for the development of RL algorithms, by playing Atari 2600 games. The interface provided by ALE allows the algorithms to select an action and receive the Atari screen and a reward in every step. The action is the equivalent to a human’s joystick button combination and the reward is the difference between the scores at time stamp $t$ and $t - 1$ . The diversity of games for Atari provides a solid benchmark since different games have significantly different goals. Atari 2600 has over 500 games, currently over 70 of them are implemented in ALE and are commonly used for algorithm comparison.
|
| 30 |
+
|
| 31 |
+
# 2.2 INFINITE MARIO
|
| 32 |
+
|
| 33 |
+
Infinite Mario (Togelius et al., 2009) is a remake of the classic Super Mario game in which levels are randomly generated. On these levels the Mario AI Competition was held. During the competition, several algorithms were trained on Infinite Mario and their performances were measured in terms of the number of stages completed. As opposed to ALE, training is not based on the raw screen data but rather on an indication of Mario’s (the player’s) location and objects in its surrounding. This environment no longer poses a challenge for state of the art algorithms. Its main shortcoming lie in the fact that it provides only a single game to be learnt. Additionally, the environment provides hand-crafted features, extracted directly from the simulator, to the algorithm. This allowed the use of planning algorithms that highly outperform any learning based algorithm.
|
| 34 |
+
|
| 35 |
+
# 2.3 OPENAI GYM
|
| 36 |
+
|
| 37 |
+
The OpenAI gym (Brockman et al., 2016) is an open source platform with the purpose of creating an interface between RL environments and algorithms for evaluation and comparison purposes. OpenAI Gym is currently very popular due to the large number of environments supported by it. For example ALE, Go, MouintainCar and VizDoom (Zhu et al., 2016), an environment for the learning of the 3D first-person-shooter game ”Doom”. OpenAI Gym’s recent appearance and wide usage indicates the growing interest and research done in the field of RL.
|
| 38 |
+
|
| 39 |
+
# 2.4 OPENAI UNIVERSE
|
| 40 |
+
|
| 41 |
+
Universe (Universe, 2016) is a platform within the OpenAI framework in which RL algorithms can train on over a thousand games. Universe includes very advanced games such as GTA V, Portal as well as other tasks (e.g. browser tasks). Unlike RLE, Universe doesn’t run the games locally and requires a VNC interface to a server that runs the games. This leads to a lower frame rate and thus longer training times.
|
| 42 |
+
|
| 43 |
+
# 2.5 MALMO
|
| 44 |
+
|
| 45 |
+
Malmo (Johnson et al., 2016) is an artificial intelligence experimentation platform of the famous game ”Minecraft”. Although Malmo consists of only a single game, it presents numerous challenges since the ”Minecraft” game can be configured differently each time. The input to the RL algorithms include specific features indicating the ”state” of the game and the current reward.
|
| 46 |
+
|
| 47 |
+
# 2.6 DEEPMIND LAB
|
| 48 |
+
|
| 49 |
+
DeepMind Lab (Dee) is a first-person 3D platform environment which allows training RL algorithms on several different challenges: static/random map navigation, collect fruit (a form of reward) and a laser-tag challenge where the objective is to tag the opponents controlled by the in-game AI. In LAB the agent observations are the game screen (with an additional depth channel) and the velocity of the character. LAB supports four games (one game - four different modes).
|
| 50 |
+
|
| 51 |
+
# 2.7 DEEP Q-LEARNING
|
| 52 |
+
|
| 53 |
+
In our work, we used several variant of the Deep Q-Network algorithm (DQN) (Mnih et al., 2015), an RL algorithm whose goal is to find an optimal policy (i.e., given a current state, choose action that maximize the final score). The state of the game is simply the game screen, and the action is a combination of joystick buttons that the game responds to (i.e., moving ,jumping). DQN learns through trial and error while trying to estimate the ”Q-function”, which predicts the cumulative discounted reward at the end of the episode given the current state and action while following a policy $\pi$ . The Q-function is represented using a convolution neural network that receives the screen as input and predicts the best possible action at it’s output. The Q-function weights $\theta$ are updated according to:
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\theta _ { t + 1 } ( s _ { t } , a _ { t } ) = \theta _ { t } + \alpha ( R _ { t + 1 } + \gamma \operatorname* { m a x } _ { a } ( Q _ { t } ( s _ { t + 1 } , a ; \theta _ { t } ^ { \prime } ) ) - Q _ { t } ( s _ { t } , a _ { t } ; \theta _ { t } ) ) \nabla _ { \theta } Q _ { t } ( s _ { t } , a _ { t } ; \theta _ { t } ) ,
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
where $s _ { t }$ , $s _ { t + 1 }$ are the current and next states, $a _ { t }$ is the action chosen, $\alpha$ is the step size, $\gamma$ is the discounting factor $R _ { t + 1 }$ is the reward received by applying $a _ { t }$ at $s _ { t }$ . $\theta ^ { \prime }$ represents the previous weights of the network that are updated periodically. Other than DQN, we examined two leading algorithms on the RLE: Double Deep Q-Learning (D-DQN) (Van Hasselt et al., 2015), a DQN based algorithm with a modified network update rule. Dueling Double DQN (Wang et al., 2015), a modification of D-DQN’s architecture in which the $\mathbf { Q }$ -function is modeled using a state (screen) dependent estimator and an action dependent estimator.
|
| 60 |
+
|
| 61 |
+
# 3 THE RETRO LEARNING ENVIRONMENT
|
| 62 |
+
|
| 63 |
+
# 3.1 SUPER NINTENDO ENTERTAINMENT SYSTEM
|
| 64 |
+
|
| 65 |
+
The Super Nintendo Entertainment System (SNES) is a home video game console developed by Nintendo and released in 1990. A total of 783 games were released, among them, the iconic Super Mario World, Donkey Kong Country and The Legend of Zelda. Table (1) presents a comparison between Atari 2600, Sega Genesis and SNES game consoles, from which it is clear that SNES and Genesis games are far more complex.
|
| 66 |
+
|
| 67 |
+
# 3.2 IMPLEMENTATION
|
| 68 |
+
|
| 69 |
+
To allow easier integration with current platforms and algorithms, we based our environment on the ALE, with the aim of maintaining as much of its interface as possible. While the ALE is highly coupled with the Atari emulator, Stella1, RLE takes a different approach and separates the learning environment from the emulator. This was achieved by incorporating an interface named LibRetro (libRetro site), that allows communication between front-end programs to game-console emulators. Currently, LibRetro supports over 15 game consoles, each containing hundreds of games, at an estimated total of over 7,000 games that can potentially be supported using this interface. Examples of supported game consoles include Nintendo Entertainment System, Game Boy, N64, Sega Genesis,
|
| 70 |
+
|
| 71 |
+
Saturn, Dreamcast and Sony PlayStation. We chose to focus on the SNES game console implemented using the $\operatorname { s n e s } 9 \mathrm { x } ^ { 2 }$ as it’s games present interesting, yet plausible to overcome challenges. Additionally, we utilized the Genesis-Plus- $\mathbf { \Delta } G \mathbf { X } ^ { 3 }$ emulator, which supports several Sega consoles: Genesis/Mega Drive, Master System, Game Gear and SG-1000.
|
| 72 |
+
|
| 73 |
+
# 3.3 SOURCE CODE
|
| 74 |
+
|
| 75 |
+
RLE is fully available as open source software for use under GNU’s General Public License4. The environment is implemented in $\mathrm { C } { + } { + }$ with an interface to algorithms in $\mathrm { C } { + } { + }$ , Python and Lua. Adding a new game to the environment is a relatively simple process.
|
| 76 |
+
|
| 77 |
+
# 3.4 RLE INTERFACE
|
| 78 |
+
|
| 79 |
+
RLE provides a unified interface to all games in its supported consoles, acting as an RL-wrapper to the LibRetro interface. Initialization of the environment is done by providing a game (ROM file) and a gaming-console (denoted by ’core’). Upon initialization, the first state is the initial frame of the game, skipping all menu selection screens. The cores are provided with the RLE and installed together with the environment. Actions have a bit-wise representation where each controller button is represented by a one-hot vector. Therefore a combination of several buttons is possible using the bit-wise OR operator. The number of valid buttons combinations is larger than 700, therefore only the meaningful combinations are provided. The environments observation is the game screen, provided as a 3D array of 32 bit per pixel with dimensions which vary depending on the game. The reward can be defined differently per game, usually we set it to be the score difference between two consecutive frames. By setting different configuration to the environment, it is possible to alter in-game properties such as difficulty (i.e easy, medium, hard), its characters, levels, etc.
|
| 80 |
+
|
| 81 |
+
Table 1: Atari 2600, SNES and Genesis comparison
|
| 82 |
+
|
| 83 |
+
<table><tr><td></td><td>Atari 2600</td><td>SNES</td><td>Genesis</td></tr><tr><td>Number of Games</td><td>565</td><td>783</td><td>928</td></tr><tr><td>CPU speed</td><td>1.19MHz</td><td>3.58MHz</td><td>7.6 MHz</td></tr><tr><td>ROM size</td><td>2-4KB</td><td>0.5-6MB</td><td>16 MBytes</td></tr><tr><td>RAM size</td><td>128 bytes</td><td>128KB</td><td>72KB</td></tr><tr><td>Color depth</td><td>8 bit</td><td>16 bit</td><td>16 bit</td></tr><tr><td>Screen Size</td><td>160x210</td><td>256x224 or 512x448</td><td>320x224</td></tr><tr><td>Number of controller buttons</td><td>5</td><td>12</td><td>11</td></tr><tr><td>Possible buttons combinations</td><td>18</td><td>over 720</td><td>over100</td></tr></table>
|
| 84 |
+
|
| 85 |
+
# 3.5 ENVIRONMENT CHALLENGES
|
| 86 |
+
|
| 87 |
+
Integrating SNES and Genesis with RLE presents new challenges to the field of RL where visual information in the form of an image is the only state available to the agent. Obviously, SNES games are significantly more complex and unpredictable than Atari games. For example in sports games, such as NBA, while the player (agent) controls a single player, all the other nine players’ behavior is determined by pre-programmed agents, each exhibiting random behavior. In addition, many SNES games exhibit delayed rewards in the course of their play (i.e., reward for an actions is given many time steps after it was performed). Similarly, in some of the SNES games, an agent can obtain a reward that is indirectly related to the imposed task. For example, in platform games, such as Super Mario, reward is received for collecting coins and defeating enemies, while the goal of the challenge is to reach the end of the level which requires to move to keep moving to the right. Moreover, upon completing a level, a score bonus is given according to the time required for its completion. Therefore collecting coins or defeating enemies is not necessarily preferable if it consumes too much time. Analysis of such games is presented in section 4.2. Moreover, unlike Atari that consists of eight directions and one action button, SNES has eight-directions pad and six actions buttons. Since combinations of buttons are allowed, and required at times, the actual actions space may be larger than 700, compared to the maximum of 18 actions in Atari. Furthermore, the background in SNES is very rich, filled with details which may move locally or across the screen, effectively acting as non-stationary noise since it provided little to no information regarding the state itself. Finally, we note that SNES utilized the first 3D games. In the game Wolfenstein, the player must navigate a maze from a first-person perspective, while dodging and attacking enemies. The SNES offers plenty of other 3D games such as flight and racing games which exhibit similar challenges. These games are much more realistic, thus inferring from SNES games to ”real world” tasks, as in the case of self driving cars, might be more beneficial. A visual comparison of two games, Atari and SNES, is presented in Figure (1).
|
| 88 |
+
|
| 89 |
+

|
| 90 |
+
Figure 1: Atari 2600 and SNES game screen comparison: Left: ”Boxing” an Atari 2600 fighting game , Right: ”Mortal Kombat” a SNES fighting game. Note the exceptional difference in the amount of details between the two games. Therefore, distinguishing a relevant signal from noise is much more difficult.
|
| 91 |
+
|
| 92 |
+
Table 2: Comparison between RLE and the latest RL environments
|
| 93 |
+
|
| 94 |
+
<table><tr><td>Characteristics</td><td>RLE</td><td>OpenAI Universe</td><td>Inifinte Mario</td><td>ALE</td><td>Project Malmo</td><td>DeepMind Lab</td></tr><tr><td>Number of Games</td><td>8 out of 7000+</td><td>1000+</td><td>1</td><td>74</td><td>1</td><td>4</td></tr><tr><td>In game adjustments1</td><td>Yes</td><td>NO</td><td>No</td><td>No</td><td>Yes</td><td>Yes</td></tr><tr><td>Frame rate</td><td>530fps(SNES)</td><td>60fps</td><td>5675fps2</td><td>120fps</td><td><7000fps</td><td><1000fps</td></tr><tr><td>Observation (Input)</td><td>screen, RAM</td><td>Screen</td><td>hand crafted features</td><td>screen, RAM</td><td>hand crafted features</td><td>screen+depth and velocity</td></tr></table>
|
| 95 |
+
|
| 96 |
+
1 Allowing changes in-the game configurations (e.g., changing difficulty, characters, etc.) 2 Measured on an i7-5930k CPU
|
| 97 |
+
|
| 98 |
+
# 4 EXPERIMENTS
|
| 99 |
+
|
| 100 |
+
# 4.1 EVALUATION METHODOLOGY
|
| 101 |
+
|
| 102 |
+
The evaluation methodology that we used for benchmarking the different algorithms is the popular method proposed by (Mnih et al., 2015). Each examined algorithm is trained until either it reached convergence or 100 epochs (each epoch corresponds to 50,000 actions), thereafter it is evaluated by performing 30 episodes of every game. Each episode ends either by reaching a terminal state or after 5 minutes. The results are averaged per game and compared to the average result of a human player. For each game the human player was given two hours for training, and his performances were evaluated over 20 episodes. As the various algorithms don’t use the game audio in the learning process, the audio was muted for both the agent and the human. From both, humans and agents score, a random agent score (an agent performing actions randomly) was subtracted to assure that learning indeed occurred. It is important to note that DQN’s $\epsilon$ -greedy approach (select a random action with a small probability ) is present during testing thus assuring that the same sequence of actions isn’t repeated. While the screen dimensions in SNES are larger than those of Atari, in our experiments we maintained the same pre-processing of DQN (i.e., downscaling the image to $8 4 \mathrm { x } 8 4$ pixels and converting to gray-scale). We argue that downscaling the image size doesn’t affect a human’s ability to play the game, therefore suitable for RL algorithms as well. To handle the large action space, we limited the algorithm’s actions to the minimal button combinations which provide unique behavior. For example, on many games the R and L action buttons don’t have any use therefore their use and combinations were omitted.
|
| 103 |
+
|
| 104 |
+
# 4.1.1 RESULTS
|
| 105 |
+
|
| 106 |
+
A thorough comparison of the four different agents’ performances on SNES games can be seen in Figure (). The full results can be found in Table (3). Only in the game Mortal Kombat a trained agent was able to surpass a expert human player performance as opposed to Atari games where the same algorithms have surpassed a human player on the vast majority of the games.
|
| 107 |
+
|
| 108 |
+
One example is Wolfenstein game, a 3D first-person shooter game, requires solving 3D vision tasks, navigating in a maze and detecting object. As evident from figure (2), all agents produce poor results indicating a lack of the required properties. By using $\epsilon$ -greedy approach the agents weren’t able to explore enough states (or even other rooms in our case). The algorithm’s final policy appeared as a random walk in a 3D space. Exploration based on visited states such as presented in Bellemare et al. (2016) might help addressing this issue. An interesting case is Gradius III, a side-scrolling, flight-shooter game. While the trained agent was able to master the technical aspects of the game, which includes shooting incoming enemies and dodging their projectiles, it’s final score is still far from a human’s. This is due to a hidden game mechanism in the form of ”power-ups”, which can be accumulated, and significantly increase the players abilities. The more power-ups collected without being use — the larger their final impact will be. While this game-mechanism is evident to a human, the agent acts myopically and uses the power-up straight away5.
|
| 109 |
+
|
| 110 |
+
# 4.2 REWARD SHAPING
|
| 111 |
+
|
| 112 |
+
As part of the environment and algorithm evaluation process, we investigated two case studies. First is a game on which DQN had failed to achieve a better-than-random score, and second is a game on which the training duration was significantly longer than that of other games.
|
| 113 |
+
|
| 114 |
+
In the first case study, we used a 2D back-view racing game ”F-Zero”. In this game, one is required to complete four laps of the track while avoiding other race cars. The reward, as defined by the score of the game, is only received upon completing a lap. This is an extreme case of a reward delay. A lap may last as long as 30 seconds, which span over 450 states (actions) before reward is received. Since DQN’s exploration is a simple $\epsilon$ -greedy approach, it was not able to produce a useful strategy. We approached this issue using reward shaping, essentially a modification of the reward to be a function of the reward and the observation, rather than the reward alone. Here, we define the reward to be the sum of the score and the agent’s speed (a metric displayed on the screen of the game). Indeed when the reward was defined as such, the agents learned to finish the race in first place within a short training period.
|
| 115 |
+
|
| 116 |
+
The second case study is the famous game of Super Mario. In this game the agent, Mario, is required to reach the right-hand side of the screen, while avoiding enemies and collecting coins. We found this case interesting as it involves several challenges at once: dynamic background that can change drastically within a level, sparse and delayed rewards and multiple tasks (such as avoiding enemies and pits, advancing rightwards and collecting coins). To our surprise, DQN was able to reach the end of the level without any reward shaping, this was possible since the agent receives rewards for events (collecting coins, stomping on enemies etc.) that tend to appear to the right of the player, causing the agent to prefer moving right. However, the training time required for convergence was significantly longer than other games. We defined the reward as the sum of the in-game reward and a bonus granted according the the player’s position, making moving right preferable. This reward proved useful, as training time required for convergence decreased significantly. The two games above can be seen in Figure (3).
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 2: DQN, DDQN and Duel-DDQN performance. Results were normalized by subtracting the a random agent’s score and dividing by the human player score. Thus 100 represents a human player and zero a random agent.
|
| 120 |
+
|
| 121 |
+
Figure (4) illustrates the agent’s average value function . Though both were able complete the stage trained upon, the convergence rate with reward shaping is significantly quicker due to the immediate realization of the agent to move rightwards.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 3: Left: The game Super Mario with added bonus for moving right, enabling the agent to master them game after less training time. Right: The game $F$ -Zero. By granting a reward for speed the agent was able to master this game, as oppose to using solely the in-game reward.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 4: Averaged action-value (Q) for Super Mario trained with reward bonus for moving right (blue) and without (red).
|
| 128 |
+
|
| 129 |
+
# 4.3 MULTI-AGENT REINFORCEMENT LEARNING
|
| 130 |
+
|
| 131 |
+
In this section we describe our experiments with RLE’s multi-agent capabilities. We consider the case where the number of agents, $n = 2$ and the goals of the agents are opposite, as in $r _ { 1 } = - r _ { 2 }$ . This scheme is known as fully competitive (Bus¸oniu et al., 2010). We used the simple singleagent RL approach (as described by Bus¸oniu et al. (2010) section 5.4.1) which is to apply to single agent approach to the multi-agent case. This approach was proved useful in Crites and Barto (1996) and Mataric (1997). More elaborate schemes are possible such as the minimax-Q algo-´ rithm (Littman, 1994), (Littman, 2001). These may be explored in future works. We conducted three experiments on this setup: the first use was to train two different agents against the in-game AI, as done in previous sections, and evaluate their performance by letting them compete against each other. Here, rather than achieving the highest score, the goal was to win a tournament which consist of 50 rounds, as common in human-player competitions. The second experiment was to initially train two agents against the in-game AI, and resume the training while competing against each other. In this case, we evaluated the agent by playing again against the in-game AI, separately. Finally, in our last experiment we try to boost the agent capabilities by alternated it’s opponents, switching between the in-game AI and other trained agents.
|
| 132 |
+
|
| 133 |
+
# 4.3.1 MULTI-AGENT REINFORCEMENT LEARNING RESULTS
|
| 134 |
+
|
| 135 |
+
We chose the game Mortal Kombat, a two character side viewed fighting game (a screenshot of the game can be seen in Figure (1), as a testbed for the above, as it exhibits favorable properties: both players share the same screen, the agent’s optimal policy is heavily dependent on the rival’s behavior, unlike racing games for example. In order to evaluate two agents fairly, both were trained using the same characters maintaining the identity of rival and agent. Furthermore, to remove the impact of the starting positions of both agents on their performances, the starting positions were initialized randomly.
|
| 136 |
+
|
| 137 |
+
In the first experiment we evaluated all combinations of DQN against D-DQN and Dueling D-DQN. Each agent was trained against the in-game AI until convergence. Then 50 matches were performed between the two agents. DQN lost 28 out of 50 games against Dueling D-DQN and 33 against D-DQN. D-DQN lost 26 time to Dueling D-DQN. This win balance isn’t far from the random case, since the algorithms converged into a policy in which movement towards the opponent is not required rather than generalize the game. Therefore, in many episodes, little interaction between the two agents occur, leading to a semi-random outcome.
|
| 138 |
+
|
| 139 |
+
In our second experiment, we continued the training process of a the D-DQN network by letting it compete against the Dueling D-DQN network. We evaluated the re-trained network by playing 30 episodes against the in-game AI. After training, D-DQN was able to win 28 out of 30 games, yet when faced again against the in-game AI its performance deteriorated drastically (from an average of 17000 to an average of -22000). This demonstrated a form of catastrophic forgetting (Goodfellow et al., 2013) even though the agents played the same game.
|
| 140 |
+
|
| 141 |
+
In our third experiment, we trained a Dueling D-DQN agent against three different rivals: the ingame AI, a trained DQN agent and a trained Dueling-DQN agent, in an alternating manner, such that in each episode a different rival was playing as the opponent with the intention of preventing the agent from learning a policy suitable for just one opponent. The new agent was able to achieve a score of 162,966 (compared to the ”normal” dueling D-DQN which achieved 169,633). As a new and objective measure of generalization, we’ve configured the in-game AI difficulty to be ”very hard” (as opposed to the default ”medium” difficulty). In this metric the alternating version achieved 83,400 compared to -33,266 of the dueling D-DQN which was trained in default setting. Thus, proving that the agent learned to generalize to other policies which weren’t observed while training.
|
| 142 |
+
|
| 143 |
+
# 4.4 FUTURE CHALLENGES
|
| 144 |
+
|
| 145 |
+
As demonstrated, RLE presents numerous challenges that have yet to be answered. In addition to being able to learn all available games, the task of learning games in which reward delay is extreme, such as F-Zero without reward shaping, remains an unsolved challenge. Additionally, some games, such as Super Mario, feature several stages that differ in background and the levels structure. The task of generalizing platform games, as in learning on one stage and being tested on the other, is another unexplored challenge. Likewise surpassing human performance remains a challenge since current state-of-the-art algorithms still struggling with the many SNES games.
|
| 146 |
+
|
| 147 |
+
# 5 CONCLUSION
|
| 148 |
+
|
| 149 |
+
We introduced a rich environment for evaluating and developing reinforcement learning algorithms which presents significant challenges to current state-of-the-art algorithms. In comparison to other environments RLE provides a large amount of games with access to both the screen and the ingame state. The modular implementation we chose allows extensions of the environment with new consoles and games, thus ensuring the relevance of the environment to RL algorithms for years to come (see Table (2)). We’ve encountered several games in which the learning process is highly dependent on the reward definition. This issue can be addressed and explored in RLE as reward definition can be done easily. The challenges presented in the RLE consist of: 3D interpretation, delayed reward, noisy background, stochastic AI behavior and more. Although some algorithms were able to play successfully on part of the games, to fully overcome these challenges, an agent must incorporate both technique and strategy. Therefore, we believe, that the RLE is a great platform for future RL research.
|
| 150 |
+
|
| 151 |
+
# 6 ACKNOWLEDGMENTS
|
| 152 |
+
|
| 153 |
+
The authors are grateful to the Signal and Image Processing Lab (SIPL) staff for their support, Alfred Agrell and the LibRetro community for their support and Marc G. Bellemare for his valuable inputs.
|
| 154 |
+
|
| 155 |
+
# REFERENCES
|
| 156 |
+
|
| 157 |
+
M. G. Bellemare, Y. Naddaf, J. Veness, and M. Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, jun 2013.
|
| 158 |
+
|
| 159 |
+
M. G. Bellemare, S. Srinivasan, G. Ostrovski, T. Schaul, D. Saxton, and R. Munos. Unifying countbased exploration and intrinsic motivation. arXiv preprint arXiv:1606.01868, 2016.
|
| 160 |
+
|
| 161 |
+
B. Bischoff, D. Nguyen-Tuong, I.-H. Lee, F. Streichert, and A. Knoll. Hierarchical reinforcement learning for robot navigation. In ESANN, 2013.
|
| 162 |
+
G. Brockman, V. Cheung, L. Pettersson, J. Schneider, J. Schulman, J. Tang, and W. Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
|
| 163 |
+
L. Bus¸oniu, R. Babuska, and B. De Schutter. Multi-agent reinforcement learning: An overview. In ˇ Innovations in Multi-Agent Systems and Applications-1, pages 183–221. Springer, 2010.
|
| 164 |
+
M. Campbell, A. J. Hoane, and F.-h. Hsu. Deep blue. Artificial Intelligence, 134(1):57–83, 2002.
|
| 165 |
+
R. Crites and A. Barto. Improving elevator performance using reinforcement learning. In Advances in Neural Information Processing Systems 8. Citeseer, 1996.
|
| 166 |
+
I. J. Goodfellow, M. Mirza, D. Xiao, A. Courville, and Y. Bengio. An empirical investigation of catastrophic forgetting in gradient-based neural networks. arXiv preprint arXiv:1312.6211, 2013.
|
| 167 |
+
M. Johnson, K. Hofmann, T. Hutton, and D. Bignell. The malmo platform for artificial intelligence experimentation. In International Joint Conference On Artificial Intelligence (IJCAI), page 4246, 2016.
|
| 168 |
+
libRetro site. Libretro. www.libretro.com. Accessed: 2016-11-03.
|
| 169 |
+
M. L. Littman. Markov games as a framework for multi-agent reinforcement learning. In Proceedings of the eleventh international conference on machine learning, volume 157, pages 157–163, 1994.
|
| 170 |
+
M. L. Littman. Value-function reinforcement learning in markov games. Cognitive Systems Research, 2(1):55–66, 2001.
|
| 171 |
+
M. J. Mataric. Reinforcement learning in the multi-robot domain. In ´ Robot colonies, pages 73–83. Springer, 1997.
|
| 172 |
+
V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
|
| 173 |
+
J. Schaeffer, J. Culberson, N. Treloar, B. Knight, P. Lu, and D. Szafron. A world championship caliber checkers program. Artificial Intelligence, 53(2):273–289, 1992.
|
| 174 |
+
S. Shalev-Shwartz, N. Ben-Zrihem, A. Cohen, and A. Shashua. Long-term planning by short-term prediction. arXiv preprint arXiv:1602.01580, 2016.
|
| 175 |
+
D. Silver, A. Huang, C. J. Maddison, A. Guez, L. Sifre, G. Van Den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershelvam, M. Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016.
|
| 176 |
+
G. Tesauro. Temporal difference learning and td-gammon. Communications of the ACM, 38(3): 58–68, 1995.
|
| 177 |
+
J. Togelius, S. Karakovskiy, J. Koutn´ık, and J. Schmidhuber. Super mario evolution. In 2009 IEEE Symposium on Computational Intelligence and Games, pages 156–161. IEEE, 2009.
|
| 178 |
+
Universe. Universe. universe.openai.com, 2016. Accessed: 2016-12-13.
|
| 179 |
+
H. Van Hasselt, A. Guez, and D. Silver. Deep reinforcement learning with double q-learning. CoRR, abs/1509.06461, 2015.
|
| 180 |
+
Z. Wang, N. de Freitas, and M. Lanctot. Dueling network architectures for deep reinforcement learning. arXiv preprint arXiv:1511.06581, 2015.
|
| 181 |
+
Y. Zhu, R. Mottaghi, E. Kolve, J. J. Lim, A. Gupta, L. Fei-Fei, and A. Farhadi. Target-driven visual navigation in indoor scenes using deep reinforcement learning. arXiv preprint arXiv:1609.05143, 2016.
|
| 182 |
+
|
| 183 |
+
# Appendices
|
| 184 |
+
|
| 185 |
+
Experimental Results
|
| 186 |
+
|
| 187 |
+
Table 3: Average results of DQN, D-DQN, Dueling D-DQN and a Human player
|
| 188 |
+
|
| 189 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>DQN</td><td rowspan=1 colspan=1>D-DQN</td><td rowspan=1 colspan=1> Dueling D-DQN</td><td rowspan=1 colspan=1>Human</td></tr><tr><td rowspan=1 colspan=1>F-Zer0</td><td rowspan=1 colspan=1>3116</td><td rowspan=1 colspan=1>3636</td><td rowspan=1 colspan=1>5161</td><td rowspan=1 colspan=1>6298</td></tr><tr><td rowspan=1 colspan=1>Gradius III</td><td rowspan=1 colspan=1>7583</td><td rowspan=1 colspan=1>12343</td><td rowspan=1 colspan=1>16929</td><td rowspan=1 colspan=1>24440</td></tr><tr><td rowspan=1 colspan=1>Mortal Kombat</td><td rowspan=1 colspan=1>83733</td><td rowspan=1 colspan=1>56200</td><td rowspan=1 colspan=1>169300</td><td rowspan=1 colspan=1>132441</td></tr><tr><td rowspan=1 colspan=1> Super Mario</td><td rowspan=1 colspan=1>11765</td><td rowspan=1 colspan=1>16946</td><td rowspan=1 colspan=1>20030</td><td rowspan=1 colspan=1>36386</td></tr><tr><td rowspan=1 colspan=1>Wolfenstein</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>83</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>2952</td></tr></table>
|
parse/train/HysBZSqlx/HysBZSqlx_content_list.json
ADDED
|
@@ -0,0 +1,934 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Nadav Bhonker\\*, Shai Rozenberg\\* and Itay Hubara ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
550,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Department of Electrical Engineering \nTechnion, Israel Institute of Technology \n$( ^ { * } )$ indicates equal contribution \n{nadavbh,shairoz}@tx.technion.ac.il \nitayhubara@gmail.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
186,
|
| 31 |
+
522,
|
| 32 |
+
253
|
| 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 |
+
305
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Mastering a video game requires skill, tactics and strategy. While these attributes may be acquired naturally by human players, teaching them to a computer program is a far more challenging task. In recent years, extensive research was carried out in the field of reinforcement learning and numerous algorithms were introduced, aiming to learn how to perform human tasks such as playing video games. As a result, the Arcade Learning Environment (ALE) (Bellemare et al., 2013) has become a commonly used benchmark environment allowing algorithms to train on various Atari 2600 games. In many games the state-of-the-art algorithms outperform humans. In this paper we introduce a new learning environment, the Retro Learning Environment — RLE, that can run games on the Super Nintendo Entertainment System (SNES), Sega Genesis and several other gaming consoles. The environment is expandable, allowing for more video games and consoles to be easily added to the environment, while maintaining the same interface as ALE. Moreover, RLE is compatible with Python and Torch. SNES games pose a significant challenge to current algorithms due to their higher level of complexity and versatility. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
323,
|
| 54 |
+
764,
|
| 55 |
+
544
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
573,
|
| 66 |
+
336,
|
| 67 |
+
588
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Controlling artificial agents using only raw high-dimensional input data such as image or sound is a difficult and important task in the field of Reinforcement Learning (RL). Recent breakthroughs in the field allow its utilization in real-world applications such as autonomous driving (Shalev-Shwartz et al., 2016), navigation (Bischoff et al., 2013) and more. Agent interaction with the real world is usually either expensive or not feasible, as the real world is far too complex for the agent to perceive. Therefore in practice the interaction is simulated by a virtual environment which receives feedback on a decision made by the algorithm. Traditionally, games were used as a RL environment, dating back to Chess (Campbell et al., 2002), Checkers (Schaeffer et al., 1992), backgammon (Tesauro, 1995) and the more recent Go (Silver et al., 2016). Modern games often present problems and tasks which are highly correlated with real-world problems. For example, an agent that masters a racing game, by observing a simulated driver’s view screen as input, may be usefull for the development of an autonomous driver. For high-dimensional input, the leading benchmark is the Arcade Learning Environment (ALE) (Bellemare et al., 2013) which provides a common interface to dozens of Atari 2600 games, each presents a different challenge. ALE provides an extensive benchmarking platform, allowing a controlled experiment setup for algorithm evaluation and comparison. The main challenge posed by ALE is to successfully play as many Atari 2600 games as possible (i.e., achieving a score higher than an expert human player) without providing the algorithm any game-specific information (i.e., using the same input available to a human - the game screen and score). A key work to tackle this problem is the Deep Q-Networks algorithm (Mnih et al., 2015), which made a breakthrough in the field of Deep Reinforcement Learning by achieving human level performance on 29 out of 49 games. In this work we present a new environment — the Retro Learning Environment (RLE). RLE sets new challenges by providing a unified interface for Atari 2600 games as well as more advanced gaming consoles. As a start we focused on the Super Nintendo Entertainment ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
173,
|
| 76 |
+
604,
|
| 77 |
+
825,
|
| 78 |
+
922
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "System (SNES). Out of the five SNES games we tested using state-of-the-art algorithms, only one was able to outperform an expert human player. As an additional feature, RLE supports research of multi-agent reinforcement learning (MARL) tasks (Bus¸oniu et al., 2010). We utilize this feature by training and evaluating the agents against each other, rather than against a pre-configured in-game AI. We conducted several experiments with this new feature and discovered that agents tend to learn how to overcome their current opponent rather than generalize the game being played. However, if an agent is trained against an ensemble of different opponents, its robustness increases. The main contributions of the paper are as follows: ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
103,
|
| 88 |
+
825,
|
| 89 |
+
215
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "• Introducing a novel RL environment with significant challenges and an easy agent evaluation technique (enabling agents to compete against each other) which could lead to new and more advanced RL algorithms. \n• A new method to train an agent by enabling it to train against several opponents, making the final policy more robust. \n• Encapsulating several different challenges to a single RL environment. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
215,
|
| 98 |
+
228,
|
| 99 |
+
825,
|
| 100 |
+
327
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2 RELATED WORK ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
176,
|
| 110 |
+
348,
|
| 111 |
+
344,
|
| 112 |
+
364
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "2.1 ARCADE LEARNING ENVIRONMENT ",
|
| 119 |
+
"text_level": 1,
|
| 120 |
+
"bbox": [
|
| 121 |
+
176,
|
| 122 |
+
381,
|
| 123 |
+
464,
|
| 124 |
+
396
|
| 125 |
+
],
|
| 126 |
+
"page_idx": 1
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"type": "text",
|
| 130 |
+
"text": "The Arcade Learning Environment is a software framework designed for the development of RL algorithms, by playing Atari 2600 games. The interface provided by ALE allows the algorithms to select an action and receive the Atari screen and a reward in every step. The action is the equivalent to a human’s joystick button combination and the reward is the difference between the scores at time stamp $t$ and $t - 1$ . The diversity of games for Atari provides a solid benchmark since different games have significantly different goals. Atari 2600 has over 500 games, currently over 70 of them are implemented in ALE and are commonly used for algorithm comparison. ",
|
| 131 |
+
"bbox": [
|
| 132 |
+
174,
|
| 133 |
+
409,
|
| 134 |
+
825,
|
| 135 |
+
506
|
| 136 |
+
],
|
| 137 |
+
"page_idx": 1
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "text",
|
| 141 |
+
"text": "2.2 INFINITE MARIO ",
|
| 142 |
+
"text_level": 1,
|
| 143 |
+
"bbox": [
|
| 144 |
+
176,
|
| 145 |
+
525,
|
| 146 |
+
331,
|
| 147 |
+
539
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "Infinite Mario (Togelius et al., 2009) is a remake of the classic Super Mario game in which levels are randomly generated. On these levels the Mario AI Competition was held. During the competition, several algorithms were trained on Infinite Mario and their performances were measured in terms of the number of stages completed. As opposed to ALE, training is not based on the raw screen data but rather on an indication of Mario’s (the player’s) location and objects in its surrounding. This environment no longer poses a challenge for state of the art algorithms. Its main shortcoming lie in the fact that it provides only a single game to be learnt. Additionally, the environment provides hand-crafted features, extracted directly from the simulator, to the algorithm. This allowed the use of planning algorithms that highly outperform any learning based algorithm. ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
174,
|
| 156 |
+
551,
|
| 157 |
+
825,
|
| 158 |
+
678
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "2.3 OPENAI GYM ",
|
| 165 |
+
"text_level": 1,
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
696,
|
| 169 |
+
312,
|
| 170 |
+
710
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "The OpenAI gym (Brockman et al., 2016) is an open source platform with the purpose of creating an interface between RL environments and algorithms for evaluation and comparison purposes. OpenAI Gym is currently very popular due to the large number of environments supported by it. For example ALE, Go, MouintainCar and VizDoom (Zhu et al., 2016), an environment for the learning of the 3D first-person-shooter game ”Doom”. OpenAI Gym’s recent appearance and wide usage indicates the growing interest and research done in the field of RL. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
723,
|
| 180 |
+
825,
|
| 181 |
+
808
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "2.4 OPENAI UNIVERSE ",
|
| 188 |
+
"text_level": 1,
|
| 189 |
+
"bbox": [
|
| 190 |
+
176,
|
| 191 |
+
827,
|
| 192 |
+
349,
|
| 193 |
+
842
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Universe (Universe, 2016) is a platform within the OpenAI framework in which RL algorithms can train on over a thousand games. Universe includes very advanced games such as GTA V, Portal as well as other tasks (e.g. browser tasks). Unlike RLE, Universe doesn’t run the games locally and requires a VNC interface to a server that runs the games. This leads to a lower frame rate and thus longer training times. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
176,
|
| 202 |
+
853,
|
| 203 |
+
823,
|
| 204 |
+
924
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "2.5 MALMO ",
|
| 211 |
+
"text_level": 1,
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
103,
|
| 215 |
+
272,
|
| 216 |
+
117
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Malmo (Johnson et al., 2016) is an artificial intelligence experimentation platform of the famous game ”Minecraft”. Although Malmo consists of only a single game, it presents numerous challenges since the ”Minecraft” game can be configured differently each time. The input to the RL algorithms include specific features indicating the ”state” of the game and the current reward. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
130,
|
| 226 |
+
825,
|
| 227 |
+
185
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "2.6 DEEPMIND LAB ",
|
| 234 |
+
"text_level": 1,
|
| 235 |
+
"bbox": [
|
| 236 |
+
176,
|
| 237 |
+
202,
|
| 238 |
+
328,
|
| 239 |
+
217
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "DeepMind Lab (Dee) is a first-person 3D platform environment which allows training RL algorithms on several different challenges: static/random map navigation, collect fruit (a form of reward) and a laser-tag challenge where the objective is to tag the opponents controlled by the in-game AI. In LAB the agent observations are the game screen (with an additional depth channel) and the velocity of the character. LAB supports four games (one game - four different modes). ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
228,
|
| 249 |
+
825,
|
| 250 |
+
297
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "2.7 DEEP Q-LEARNING ",
|
| 257 |
+
"text_level": 1,
|
| 258 |
+
"bbox": [
|
| 259 |
+
176,
|
| 260 |
+
315,
|
| 261 |
+
351,
|
| 262 |
+
329
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "In our work, we used several variant of the Deep Q-Network algorithm (DQN) (Mnih et al., 2015), an RL algorithm whose goal is to find an optimal policy (i.e., given a current state, choose action that maximize the final score). The state of the game is simply the game screen, and the action is a combination of joystick buttons that the game responds to (i.e., moving ,jumping). DQN learns through trial and error while trying to estimate the ”Q-function”, which predicts the cumulative discounted reward at the end of the episode given the current state and action while following a policy $\\pi$ . The Q-function is represented using a convolution neural network that receives the screen as input and predicts the best possible action at it’s output. The Q-function weights $\\theta$ are updated according to: ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
173,
|
| 271 |
+
340,
|
| 272 |
+
825,
|
| 273 |
+
467
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "equation",
|
| 279 |
+
"img_path": "images/c8d5f50d23cda48b75c0cef615e97baf7b3fef2d3ce913077b3383d97c22304b.jpg",
|
| 280 |
+
"text": "$$\n\\theta _ { t + 1 } ( s _ { t } , a _ { t } ) = \\theta _ { t } + \\alpha ( R _ { t + 1 } + \\gamma \\operatorname* { m a x } _ { a } ( Q _ { t } ( s _ { t + 1 } , a ; \\theta _ { t } ^ { \\prime } ) ) - Q _ { t } ( s _ { t } , a _ { t } ; \\theta _ { t } ) ) \\nabla _ { \\theta } Q _ { t } ( s _ { t } , a _ { t } ; \\theta _ { t } ) ,\n$$",
|
| 281 |
+
"text_format": "latex",
|
| 282 |
+
"bbox": [
|
| 283 |
+
194,
|
| 284 |
+
472,
|
| 285 |
+
781,
|
| 286 |
+
494
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "where $s _ { t }$ , $s _ { t + 1 }$ are the current and next states, $a _ { t }$ is the action chosen, $\\alpha$ is the step size, $\\gamma$ is the discounting factor $R _ { t + 1 }$ is the reward received by applying $a _ { t }$ at $s _ { t }$ . $\\theta ^ { \\prime }$ represents the previous weights of the network that are updated periodically. Other than DQN, we examined two leading algorithms on the RLE: Double Deep Q-Learning (D-DQN) (Van Hasselt et al., 2015), a DQN based algorithm with a modified network update rule. Dueling Double DQN (Wang et al., 2015), a modification of D-DQN’s architecture in which the $\\mathbf { Q }$ -function is modeled using a state (screen) dependent estimator and an action dependent estimator. ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
501,
|
| 296 |
+
825,
|
| 297 |
+
598
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "3 THE RETRO LEARNING ENVIRONMENT ",
|
| 304 |
+
"text_level": 1,
|
| 305 |
+
"bbox": [
|
| 306 |
+
176,
|
| 307 |
+
618,
|
| 308 |
+
531,
|
| 309 |
+
633
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "3.1 SUPER NINTENDO ENTERTAINMENT SYSTEM ",
|
| 316 |
+
"text_level": 1,
|
| 317 |
+
"bbox": [
|
| 318 |
+
176,
|
| 319 |
+
650,
|
| 320 |
+
529,
|
| 321 |
+
664
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "The Super Nintendo Entertainment System (SNES) is a home video game console developed by Nintendo and released in 1990. A total of 783 games were released, among them, the iconic Super Mario World, Donkey Kong Country and The Legend of Zelda. Table (1) presents a comparison between Atari 2600, Sega Genesis and SNES game consoles, from which it is clear that SNES and Genesis games are far more complex. ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
174,
|
| 330 |
+
675,
|
| 331 |
+
825,
|
| 332 |
+
746
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "3.2 IMPLEMENTATION ",
|
| 339 |
+
"text_level": 1,
|
| 340 |
+
"bbox": [
|
| 341 |
+
176,
|
| 342 |
+
762,
|
| 343 |
+
341,
|
| 344 |
+
776
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "To allow easier integration with current platforms and algorithms, we based our environment on the ALE, with the aim of maintaining as much of its interface as possible. While the ALE is highly coupled with the Atari emulator, Stella1, RLE takes a different approach and separates the learning environment from the emulator. This was achieved by incorporating an interface named LibRetro (libRetro site), that allows communication between front-end programs to game-console emulators. Currently, LibRetro supports over 15 game consoles, each containing hundreds of games, at an estimated total of over 7,000 games that can potentially be supported using this interface. Examples of supported game consoles include Nintendo Entertainment System, Game Boy, N64, Sega Genesis, ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
787,
|
| 354 |
+
825,
|
| 355 |
+
900
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "Saturn, Dreamcast and Sony PlayStation. We chose to focus on the SNES game console implemented using the $\\operatorname { s n e s } 9 \\mathrm { x } ^ { 2 }$ as it’s games present interesting, yet plausible to overcome challenges. Additionally, we utilized the Genesis-Plus- $\\mathbf { \\Delta } G \\mathbf { X } ^ { 3 }$ emulator, which supports several Sega consoles: Genesis/Mega Drive, Master System, Game Gear and SG-1000. ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
174,
|
| 364 |
+
103,
|
| 365 |
+
823,
|
| 366 |
+
159
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "3.3 SOURCE CODE ",
|
| 373 |
+
"text_level": 1,
|
| 374 |
+
"bbox": [
|
| 375 |
+
174,
|
| 376 |
+
176,
|
| 377 |
+
318,
|
| 378 |
+
190
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "RLE is fully available as open source software for use under GNU’s General Public License4. The environment is implemented in $\\mathrm { C } { + } { + }$ with an interface to algorithms in $\\mathrm { C } { + } { + }$ , Python and Lua. Adding a new game to the environment is a relatively simple process. ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
176,
|
| 387 |
+
203,
|
| 388 |
+
823,
|
| 389 |
+
244
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "3.4 RLE INTERFACE ",
|
| 396 |
+
"text_level": 1,
|
| 397 |
+
"bbox": [
|
| 398 |
+
176,
|
| 399 |
+
262,
|
| 400 |
+
331,
|
| 401 |
+
276
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "RLE provides a unified interface to all games in its supported consoles, acting as an RL-wrapper to the LibRetro interface. Initialization of the environment is done by providing a game (ROM file) and a gaming-console (denoted by ’core’). Upon initialization, the first state is the initial frame of the game, skipping all menu selection screens. The cores are provided with the RLE and installed together with the environment. Actions have a bit-wise representation where each controller button is represented by a one-hot vector. Therefore a combination of several buttons is possible using the bit-wise OR operator. The number of valid buttons combinations is larger than 700, therefore only the meaningful combinations are provided. The environments observation is the game screen, provided as a 3D array of 32 bit per pixel with dimensions which vary depending on the game. The reward can be defined differently per game, usually we set it to be the score difference between two consecutive frames. By setting different configuration to the environment, it is possible to alter in-game properties such as difficulty (i.e easy, medium, hard), its characters, levels, etc. ",
|
| 408 |
+
"bbox": [
|
| 409 |
+
174,
|
| 410 |
+
287,
|
| 411 |
+
825,
|
| 412 |
+
455
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "table",
|
| 418 |
+
"img_path": "images/e4b3991dd2289083d8f9c63aefed8d0ecdbf6c189b0cefdc67521223558e9bea.jpg",
|
| 419 |
+
"table_caption": [
|
| 420 |
+
"Table 1: Atari 2600, SNES and Genesis comparison "
|
| 421 |
+
],
|
| 422 |
+
"table_footnote": [],
|
| 423 |
+
"table_body": "<table><tr><td></td><td>Atari 2600</td><td>SNES</td><td>Genesis</td></tr><tr><td>Number of Games</td><td>565</td><td>783</td><td>928</td></tr><tr><td>CPU speed</td><td>1.19MHz</td><td>3.58MHz</td><td>7.6 MHz</td></tr><tr><td>ROM size</td><td>2-4KB</td><td>0.5-6MB</td><td>16 MBytes</td></tr><tr><td>RAM size</td><td>128 bytes</td><td>128KB</td><td>72KB</td></tr><tr><td>Color depth</td><td>8 bit</td><td>16 bit</td><td>16 bit</td></tr><tr><td>Screen Size</td><td>160x210</td><td>256x224 or 512x448</td><td>320x224</td></tr><tr><td>Number of controller buttons</td><td>5</td><td>12</td><td>11</td></tr><tr><td>Possible buttons combinations</td><td>18</td><td>over 720</td><td>over100</td></tr></table>",
|
| 424 |
+
"bbox": [
|
| 425 |
+
218,
|
| 426 |
+
493,
|
| 427 |
+
779,
|
| 428 |
+
642
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "3.5 ENVIRONMENT CHALLENGES ",
|
| 435 |
+
"text_level": 1,
|
| 436 |
+
"bbox": [
|
| 437 |
+
176,
|
| 438 |
+
666,
|
| 439 |
+
419,
|
| 440 |
+
680
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Integrating SNES and Genesis with RLE presents new challenges to the field of RL where visual information in the form of an image is the only state available to the agent. Obviously, SNES games are significantly more complex and unpredictable than Atari games. For example in sports games, such as NBA, while the player (agent) controls a single player, all the other nine players’ behavior is determined by pre-programmed agents, each exhibiting random behavior. In addition, many SNES games exhibit delayed rewards in the course of their play (i.e., reward for an actions is given many time steps after it was performed). Similarly, in some of the SNES games, an agent can obtain a reward that is indirectly related to the imposed task. For example, in platform games, such as Super Mario, reward is received for collecting coins and defeating enemies, while the goal of the challenge is to reach the end of the level which requires to move to keep moving to the right. Moreover, upon completing a level, a score bonus is given according to the time required for its completion. Therefore collecting coins or defeating enemies is not necessarily preferable if it consumes too much time. Analysis of such games is presented in section 4.2. Moreover, unlike Atari that consists of eight directions and one action button, SNES has eight-directions pad and six actions buttons. Since combinations of buttons are allowed, and required at times, the actual actions space may be larger than 700, compared to the maximum of 18 actions in Atari. Furthermore, the background in SNES is very rich, filled with details which may move locally or across the screen, effectively acting as non-stationary noise since it provided little to no information regarding the state itself. Finally, we note that SNES utilized the first 3D games. In the game Wolfenstein, the player must navigate a maze from a first-person perspective, while dodging and attacking enemies. The SNES offers plenty of other 3D games such as flight and racing games which exhibit similar challenges. These games are much more realistic, thus inferring from SNES games to ”real world” tasks, as in the case of self driving cars, might be more beneficial. A visual comparison of two games, Atari and SNES, is presented in Figure (1). ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
691,
|
| 450 |
+
825,
|
| 451 |
+
872
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "",
|
| 458 |
+
"bbox": [
|
| 459 |
+
173,
|
| 460 |
+
103,
|
| 461 |
+
825,
|
| 462 |
+
256
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "image",
|
| 468 |
+
"img_path": "images/c343c235f708c978ceb3c66883ef1bc74d461f57a56abbdde15e4c7c355130b2.jpg",
|
| 469 |
+
"image_caption": [
|
| 470 |
+
"Figure 1: Atari 2600 and SNES game screen comparison: Left: ”Boxing” an Atari 2600 fighting game , Right: ”Mortal Kombat” a SNES fighting game. Note the exceptional difference in the amount of details between the two games. Therefore, distinguishing a relevant signal from noise is much more difficult. "
|
| 471 |
+
],
|
| 472 |
+
"image_footnote": [],
|
| 473 |
+
"bbox": [
|
| 474 |
+
173,
|
| 475 |
+
271,
|
| 476 |
+
825,
|
| 477 |
+
448
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "table",
|
| 483 |
+
"img_path": "images/b040839ad2a120426f6375d21eaa3da78cefaeca2dcfc21ef51480cedc576092.jpg",
|
| 484 |
+
"table_caption": [
|
| 485 |
+
"Table 2: Comparison between RLE and the latest RL environments "
|
| 486 |
+
],
|
| 487 |
+
"table_footnote": [
|
| 488 |
+
"1 Allowing changes in-the game configurations (e.g., changing difficulty, characters, etc.) 2 Measured on an i7-5930k CPU "
|
| 489 |
+
],
|
| 490 |
+
"table_body": "<table><tr><td>Characteristics</td><td>RLE</td><td>OpenAI Universe</td><td>Inifinte Mario</td><td>ALE</td><td>Project Malmo</td><td>DeepMind Lab</td></tr><tr><td>Number of Games</td><td>8 out of 7000+</td><td>1000+</td><td>1</td><td>74</td><td>1</td><td>4</td></tr><tr><td>In game adjustments1</td><td>Yes</td><td>NO</td><td>No</td><td>No</td><td>Yes</td><td>Yes</td></tr><tr><td>Frame rate</td><td>530fps(SNES)</td><td>60fps</td><td>5675fps2</td><td>120fps</td><td><7000fps</td><td><1000fps</td></tr><tr><td>Observation (Input)</td><td>screen, RAM</td><td>Screen</td><td>hand crafted features</td><td>screen, RAM</td><td>hand crafted features</td><td>screen+depth and velocity</td></tr></table>",
|
| 491 |
+
"bbox": [
|
| 492 |
+
178,
|
| 493 |
+
575,
|
| 494 |
+
826,
|
| 495 |
+
684
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "4 EXPERIMENTS ",
|
| 502 |
+
"text_level": 1,
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
753,
|
| 506 |
+
326,
|
| 507 |
+
770
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 4
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "4.1 EVALUATION METHODOLOGY ",
|
| 514 |
+
"text_level": 1,
|
| 515 |
+
"bbox": [
|
| 516 |
+
176,
|
| 517 |
+
786,
|
| 518 |
+
421,
|
| 519 |
+
801
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 4
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "The evaluation methodology that we used for benchmarking the different algorithms is the popular method proposed by (Mnih et al., 2015). Each examined algorithm is trained until either it reached convergence or 100 epochs (each epoch corresponds to 50,000 actions), thereafter it is evaluated by performing 30 episodes of every game. Each episode ends either by reaching a terminal state or after 5 minutes. The results are averaged per game and compared to the average result of a human player. For each game the human player was given two hours for training, and his performances were evaluated over 20 episodes. As the various algorithms don’t use the game audio in the learning process, the audio was muted for both the agent and the human. From both, humans and agents score, a random agent score (an agent performing actions randomly) was subtracted to assure that learning indeed occurred. It is important to note that DQN’s $\\epsilon$ -greedy approach (select a random action with a small probability \u000f) is present during testing thus assuring that the same sequence of actions isn’t repeated. While the screen dimensions in SNES are larger than those of Atari, in our experiments we maintained the same pre-processing of DQN (i.e., downscaling the image to $8 4 \\mathrm { x } 8 4$ pixels and converting to gray-scale). We argue that downscaling the image size doesn’t affect a human’s ability to play the game, therefore suitable for RL algorithms as well. To handle the large action space, we limited the algorithm’s actions to the minimal button combinations which provide unique behavior. For example, on many games the R and L action buttons don’t have any use therefore their use and combinations were omitted. ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
174,
|
| 528 |
+
811,
|
| 529 |
+
825,
|
| 530 |
+
924
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 4
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "",
|
| 537 |
+
"bbox": [
|
| 538 |
+
174,
|
| 539 |
+
103,
|
| 540 |
+
825,
|
| 541 |
+
242
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 5
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "4.1.1 RESULTS ",
|
| 548 |
+
"text_level": 1,
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
261,
|
| 552 |
+
290,
|
| 553 |
+
273
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 5
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "A thorough comparison of the four different agents’ performances on SNES games can be seen in Figure (). The full results can be found in Table (3). Only in the game Mortal Kombat a trained agent was able to surpass a expert human player performance as opposed to Atari games where the same algorithms have surpassed a human player on the vast majority of the games. ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
176,
|
| 562 |
+
285,
|
| 563 |
+
823,
|
| 564 |
+
342
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 5
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "One example is Wolfenstein game, a 3D first-person shooter game, requires solving 3D vision tasks, navigating in a maze and detecting object. As evident from figure (2), all agents produce poor results indicating a lack of the required properties. By using $\\epsilon$ -greedy approach the agents weren’t able to explore enough states (or even other rooms in our case). The algorithm’s final policy appeared as a random walk in a 3D space. Exploration based on visited states such as presented in Bellemare et al. (2016) might help addressing this issue. An interesting case is Gradius III, a side-scrolling, flight-shooter game. While the trained agent was able to master the technical aspects of the game, which includes shooting incoming enemies and dodging their projectiles, it’s final score is still far from a human’s. This is due to a hidden game mechanism in the form of ”power-ups”, which can be accumulated, and significantly increase the players abilities. The more power-ups collected without being use — the larger their final impact will be. While this game-mechanism is evident to a human, the agent acts myopically and uses the power-up straight away5. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
348,
|
| 574 |
+
825,
|
| 575 |
+
515
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 5
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "4.2 REWARD SHAPING ",
|
| 582 |
+
"text_level": 1,
|
| 583 |
+
"bbox": [
|
| 584 |
+
176,
|
| 585 |
+
535,
|
| 586 |
+
344,
|
| 587 |
+
547
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 5
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "As part of the environment and algorithm evaluation process, we investigated two case studies. First is a game on which DQN had failed to achieve a better-than-random score, and second is a game on which the training duration was significantly longer than that of other games. ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
176,
|
| 596 |
+
561,
|
| 597 |
+
823,
|
| 598 |
+
603
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 5
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "In the first case study, we used a 2D back-view racing game ”F-Zero”. In this game, one is required to complete four laps of the track while avoiding other race cars. The reward, as defined by the score of the game, is only received upon completing a lap. This is an extreme case of a reward delay. A lap may last as long as 30 seconds, which span over 450 states (actions) before reward is received. Since DQN’s exploration is a simple $\\epsilon$ -greedy approach, it was not able to produce a useful strategy. We approached this issue using reward shaping, essentially a modification of the reward to be a function of the reward and the observation, rather than the reward alone. Here, we define the reward to be the sum of the score and the agent’s speed (a metric displayed on the screen of the game). Indeed when the reward was defined as such, the agents learned to finish the race in first place within a short training period. ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
174,
|
| 607 |
+
611,
|
| 608 |
+
825,
|
| 609 |
+
750
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 5
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "text",
|
| 615 |
+
"text": "The second case study is the famous game of Super Mario. In this game the agent, Mario, is required to reach the right-hand side of the screen, while avoiding enemies and collecting coins. We found this case interesting as it involves several challenges at once: dynamic background that can change drastically within a level, sparse and delayed rewards and multiple tasks (such as avoiding enemies and pits, advancing rightwards and collecting coins). To our surprise, DQN was able to reach the end of the level without any reward shaping, this was possible since the agent receives rewards for events (collecting coins, stomping on enemies etc.) that tend to appear to the right of the player, causing the agent to prefer moving right. However, the training time required for convergence was significantly longer than other games. We defined the reward as the sum of the in-game reward and a bonus granted according the the player’s position, making moving right preferable. This reward proved useful, as training time required for convergence decreased significantly. The two games above can be seen in Figure (3). ",
|
| 616 |
+
"bbox": [
|
| 617 |
+
174,
|
| 618 |
+
756,
|
| 619 |
+
825,
|
| 620 |
+
895
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 5
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "image",
|
| 626 |
+
"img_path": "images/bc091b132abd4d7dd822cfd5331445d53a249c7c126f3c705d27348524a9b0f7.jpg",
|
| 627 |
+
"image_caption": [
|
| 628 |
+
"Figure 2: DQN, DDQN and Duel-DDQN performance. Results were normalized by subtracting the a random agent’s score and dividing by the human player score. Thus 100 represents a human player and zero a random agent. "
|
| 629 |
+
],
|
| 630 |
+
"image_footnote": [],
|
| 631 |
+
"bbox": [
|
| 632 |
+
176,
|
| 633 |
+
150,
|
| 634 |
+
818,
|
| 635 |
+
436
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 6
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "",
|
| 642 |
+
"bbox": [
|
| 643 |
+
173,
|
| 644 |
+
541,
|
| 645 |
+
823,
|
| 646 |
+
570
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 6
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "Figure (4) illustrates the agent’s average value function . Though both were able complete the stage trained upon, the convergence rate with reward shaping is significantly quicker due to the immediate realization of the agent to move rightwards. ",
|
| 653 |
+
"bbox": [
|
| 654 |
+
174,
|
| 655 |
+
577,
|
| 656 |
+
823,
|
| 657 |
+
619
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 6
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "image",
|
| 663 |
+
"img_path": "images/6115ac16545e2eda72ae0985fb74a79f6bad9b9335f734e027bfab1b8e91f33f.jpg",
|
| 664 |
+
"image_caption": [
|
| 665 |
+
"Figure 3: Left: The game Super Mario with added bonus for moving right, enabling the agent to master them game after less training time. Right: The game $F$ -Zero. By granting a reward for speed the agent was able to master this game, as oppose to using solely the in-game reward. "
|
| 666 |
+
],
|
| 667 |
+
"image_footnote": [],
|
| 668 |
+
"bbox": [
|
| 669 |
+
173,
|
| 670 |
+
640,
|
| 671 |
+
825,
|
| 672 |
+
835
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 6
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "image",
|
| 678 |
+
"img_path": "images/b3b131ac05f655fc64be6ed77f008ae156cc49163d0a95ba3b5ea54be829a02d.jpg",
|
| 679 |
+
"image_caption": [
|
| 680 |
+
"Figure 4: Averaged action-value (Q) for Super Mario trained with reward bonus for moving right (blue) and without (red). "
|
| 681 |
+
],
|
| 682 |
+
"image_footnote": [],
|
| 683 |
+
"bbox": [
|
| 684 |
+
174,
|
| 685 |
+
131,
|
| 686 |
+
816,
|
| 687 |
+
385
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 7
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "4.3 MULTI-AGENT REINFORCEMENT LEARNING ",
|
| 694 |
+
"text_level": 1,
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
469,
|
| 698 |
+
524,
|
| 699 |
+
483
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 7
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "In this section we describe our experiments with RLE’s multi-agent capabilities. We consider the case where the number of agents, $n = 2$ and the goals of the agents are opposite, as in $r _ { 1 } = - r _ { 2 }$ . This scheme is known as fully competitive (Bus¸oniu et al., 2010). We used the simple singleagent RL approach (as described by Bus¸oniu et al. (2010) section 5.4.1) which is to apply to single agent approach to the multi-agent case. This approach was proved useful in Crites and Barto (1996) and Mataric (1997). More elaborate schemes are possible such as the minimax-Q algo-´ rithm (Littman, 1994), (Littman, 2001). These may be explored in future works. We conducted three experiments on this setup: the first use was to train two different agents against the in-game AI, as done in previous sections, and evaluate their performance by letting them compete against each other. Here, rather than achieving the highest score, the goal was to win a tournament which consist of 50 rounds, as common in human-player competitions. The second experiment was to initially train two agents against the in-game AI, and resume the training while competing against each other. In this case, we evaluated the agent by playing again against the in-game AI, separately. Finally, in our last experiment we try to boost the agent capabilities by alternated it’s opponents, switching between the in-game AI and other trained agents. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
496,
|
| 709 |
+
825,
|
| 710 |
+
704
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 7
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "4.3.1 MULTI-AGENT REINFORCEMENT LEARNING RESULTS ",
|
| 717 |
+
"text_level": 1,
|
| 718 |
+
"bbox": [
|
| 719 |
+
174,
|
| 720 |
+
723,
|
| 721 |
+
604,
|
| 722 |
+
738
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 7
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "We chose the game Mortal Kombat, a two character side viewed fighting game (a screenshot of the game can be seen in Figure (1), as a testbed for the above, as it exhibits favorable properties: both players share the same screen, the agent’s optimal policy is heavily dependent on the rival’s behavior, unlike racing games for example. In order to evaluate two agents fairly, both were trained using the same characters maintaining the identity of rival and agent. Furthermore, to remove the impact of the starting positions of both agents on their performances, the starting positions were initialized randomly. ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
174,
|
| 731 |
+
750,
|
| 732 |
+
825,
|
| 733 |
+
847
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 7
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "In the first experiment we evaluated all combinations of DQN against D-DQN and Dueling D-DQN. Each agent was trained against the in-game AI until convergence. Then 50 matches were performed between the two agents. DQN lost 28 out of 50 games against Dueling D-DQN and 33 against D-DQN. D-DQN lost 26 time to Dueling D-DQN. This win balance isn’t far from the random case, since the algorithms converged into a policy in which movement towards the opponent is not required rather than generalize the game. Therefore, in many episodes, little interaction between the two agents occur, leading to a semi-random outcome. ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
174,
|
| 742 |
+
854,
|
| 743 |
+
823,
|
| 744 |
+
924
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 7
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "",
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
103,
|
| 754 |
+
823,
|
| 755 |
+
132
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 8
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "In our second experiment, we continued the training process of a the D-DQN network by letting it compete against the Dueling D-DQN network. We evaluated the re-trained network by playing 30 episodes against the in-game AI. After training, D-DQN was able to win 28 out of 30 games, yet when faced again against the in-game AI its performance deteriorated drastically (from an average of 17000 to an average of -22000). This demonstrated a form of catastrophic forgetting (Goodfellow et al., 2013) even though the agents played the same game. ",
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
138,
|
| 765 |
+
825,
|
| 766 |
+
222
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 8
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "In our third experiment, we trained a Dueling D-DQN agent against three different rivals: the ingame AI, a trained DQN agent and a trained Dueling-DQN agent, in an alternating manner, such that in each episode a different rival was playing as the opponent with the intention of preventing the agent from learning a policy suitable for just one opponent. The new agent was able to achieve a score of 162,966 (compared to the ”normal” dueling D-DQN which achieved 169,633). As a new and objective measure of generalization, we’ve configured the in-game AI difficulty to be ”very hard” (as opposed to the default ”medium” difficulty). In this metric the alternating version achieved 83,400 compared to -33,266 of the dueling D-DQN which was trained in default setting. Thus, proving that the agent learned to generalize to other policies which weren’t observed while training. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
174,
|
| 775 |
+
229,
|
| 776 |
+
825,
|
| 777 |
+
354
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 8
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "4.4 FUTURE CHALLENGES ",
|
| 784 |
+
"text_level": 1,
|
| 785 |
+
"bbox": [
|
| 786 |
+
176,
|
| 787 |
+
375,
|
| 788 |
+
370,
|
| 789 |
+
388
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 8
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "As demonstrated, RLE presents numerous challenges that have yet to be answered. In addition to being able to learn all available games, the task of learning games in which reward delay is extreme, such as F-Zero without reward shaping, remains an unsolved challenge. Additionally, some games, such as Super Mario, feature several stages that differ in background and the levels structure. The task of generalizing platform games, as in learning on one stage and being tested on the other, is another unexplored challenge. Likewise surpassing human performance remains a challenge since current state-of-the-art algorithms still struggling with the many SNES games. ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
174,
|
| 798 |
+
400,
|
| 799 |
+
825,
|
| 800 |
+
498
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 8
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "5 CONCLUSION ",
|
| 807 |
+
"text_level": 1,
|
| 808 |
+
"bbox": [
|
| 809 |
+
176,
|
| 810 |
+
521,
|
| 811 |
+
318,
|
| 812 |
+
537
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 8
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "We introduced a rich environment for evaluating and developing reinforcement learning algorithms which presents significant challenges to current state-of-the-art algorithms. In comparison to other environments RLE provides a large amount of games with access to both the screen and the ingame state. The modular implementation we chose allows extensions of the environment with new consoles and games, thus ensuring the relevance of the environment to RL algorithms for years to come (see Table (2)). We’ve encountered several games in which the learning process is highly dependent on the reward definition. This issue can be addressed and explored in RLE as reward definition can be done easily. The challenges presented in the RLE consist of: 3D interpretation, delayed reward, noisy background, stochastic AI behavior and more. Although some algorithms were able to play successfully on part of the games, to fully overcome these challenges, an agent must incorporate both technique and strategy. Therefore, we believe, that the RLE is a great platform for future RL research. ",
|
| 819 |
+
"bbox": [
|
| 820 |
+
174,
|
| 821 |
+
554,
|
| 822 |
+
825,
|
| 823 |
+
719
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 8
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "6 ACKNOWLEDGMENTS ",
|
| 830 |
+
"text_level": 1,
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
744,
|
| 834 |
+
387,
|
| 835 |
+
760
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 8
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "The authors are grateful to the Signal and Image Processing Lab (SIPL) staff for their support, Alfred Agrell and the LibRetro community for their support and Marc G. Bellemare for his valuable inputs. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
173,
|
| 844 |
+
776,
|
| 845 |
+
823,
|
| 846 |
+
805
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 8
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "REFERENCES ",
|
| 853 |
+
"text_level": 1,
|
| 854 |
+
"bbox": [
|
| 855 |
+
176,
|
| 856 |
+
829,
|
| 857 |
+
285,
|
| 858 |
+
843
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 8
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "M. G. Bellemare, Y. Naddaf, J. Veness, and M. Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, jun 2013. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
174,
|
| 867 |
+
881,
|
| 868 |
+
823,
|
| 869 |
+
922
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 8
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "M. G. Bellemare, S. Srinivasan, G. Ostrovski, T. Schaul, D. Saxton, and R. Munos. Unifying countbased exploration and intrinsic motivation. arXiv preprint arXiv:1606.01868, 2016. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
168,
|
| 878 |
+
103,
|
| 879 |
+
823,
|
| 880 |
+
133
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 9
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "B. Bischoff, D. Nguyen-Tuong, I.-H. Lee, F. Streichert, and A. Knoll. Hierarchical reinforcement learning for robot navigation. In ESANN, 2013. \nG. Brockman, V. Cheung, L. Pettersson, J. Schneider, J. Schulman, J. Tang, and W. Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016. \nL. Bus¸oniu, R. Babuska, and B. De Schutter. Multi-agent reinforcement learning: An overview. In ˇ Innovations in Multi-Agent Systems and Applications-1, pages 183–221. Springer, 2010. \nM. Campbell, A. J. Hoane, and F.-h. Hsu. Deep blue. Artificial Intelligence, 134(1):57–83, 2002. \nR. Crites and A. Barto. Improving elevator performance using reinforcement learning. In Advances in Neural Information Processing Systems 8. Citeseer, 1996. \nI. J. Goodfellow, M. Mirza, D. Xiao, A. Courville, and Y. Bengio. An empirical investigation of catastrophic forgetting in gradient-based neural networks. arXiv preprint arXiv:1312.6211, 2013. \nM. Johnson, K. Hofmann, T. Hutton, and D. Bignell. The malmo platform for artificial intelligence experimentation. In International Joint Conference On Artificial Intelligence (IJCAI), page 4246, 2016. \nlibRetro site. Libretro. www.libretro.com. Accessed: 2016-11-03. \nM. L. Littman. Markov games as a framework for multi-agent reinforcement learning. In Proceedings of the eleventh international conference on machine learning, volume 157, pages 157–163, 1994. \nM. L. Littman. Value-function reinforcement learning in markov games. Cognitive Systems Research, 2(1):55–66, 2001. \nM. J. Mataric. Reinforcement learning in the multi-robot domain. In ´ Robot colonies, pages 73–83. Springer, 1997. \nV. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. \nJ. Schaeffer, J. Culberson, N. Treloar, B. Knight, P. Lu, and D. Szafron. A world championship caliber checkers program. Artificial Intelligence, 53(2):273–289, 1992. \nS. Shalev-Shwartz, N. Ben-Zrihem, A. Cohen, and A. Shashua. Long-term planning by short-term prediction. arXiv preprint arXiv:1602.01580, 2016. \nD. Silver, A. Huang, C. J. Maddison, A. Guez, L. Sifre, G. Van Den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershelvam, M. Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. \nG. Tesauro. Temporal difference learning and td-gammon. Communications of the ACM, 38(3): 58–68, 1995. \nJ. Togelius, S. Karakovskiy, J. Koutn´ık, and J. Schmidhuber. Super mario evolution. In 2009 IEEE Symposium on Computational Intelligence and Games, pages 156–161. IEEE, 2009. \nUniverse. Universe. universe.openai.com, 2016. Accessed: 2016-12-13. \nH. Van Hasselt, A. Guez, and D. Silver. Deep reinforcement learning with double q-learning. CoRR, abs/1509.06461, 2015. \nZ. Wang, N. de Freitas, and M. Lanctot. Dueling network architectures for deep reinforcement learning. arXiv preprint arXiv:1511.06581, 2015. \nY. Zhu, R. Mottaghi, E. Kolve, J. J. Lim, A. Gupta, L. Fei-Fei, and A. Farhadi. Target-driven visual navigation in indoor scenes using deep reinforcement learning. arXiv preprint arXiv:1609.05143, 2016. ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
166,
|
| 889 |
+
109,
|
| 890 |
+
826,
|
| 891 |
+
929
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 9
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "Appendices ",
|
| 898 |
+
"text_level": 1,
|
| 899 |
+
"bbox": [
|
| 900 |
+
176,
|
| 901 |
+
99,
|
| 902 |
+
343,
|
| 903 |
+
127
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 10
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Experimental Results ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
174,
|
| 912 |
+
148,
|
| 913 |
+
316,
|
| 914 |
+
162
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 10
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "table",
|
| 920 |
+
"img_path": "images/d4b263e24c17a92c14506e3c38d3f893d057400a4258e870acd6467ef5d4b5bd.jpg",
|
| 921 |
+
"table_caption": [
|
| 922 |
+
"Table 3: Average results of DQN, D-DQN, Dueling D-DQN and a Human player "
|
| 923 |
+
],
|
| 924 |
+
"table_footnote": [],
|
| 925 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>DQN</td><td rowspan=1 colspan=1>D-DQN</td><td rowspan=1 colspan=1> Dueling D-DQN</td><td rowspan=1 colspan=1>Human</td></tr><tr><td rowspan=1 colspan=1>F-Zer0</td><td rowspan=1 colspan=1>3116</td><td rowspan=1 colspan=1>3636</td><td rowspan=1 colspan=1>5161</td><td rowspan=1 colspan=1>6298</td></tr><tr><td rowspan=1 colspan=1>Gradius III</td><td rowspan=1 colspan=1>7583</td><td rowspan=1 colspan=1>12343</td><td rowspan=1 colspan=1>16929</td><td rowspan=1 colspan=1>24440</td></tr><tr><td rowspan=1 colspan=1>Mortal Kombat</td><td rowspan=1 colspan=1>83733</td><td rowspan=1 colspan=1>56200</td><td rowspan=1 colspan=1>169300</td><td rowspan=1 colspan=1>132441</td></tr><tr><td rowspan=1 colspan=1> Super Mario</td><td rowspan=1 colspan=1>11765</td><td rowspan=1 colspan=1>16946</td><td rowspan=1 colspan=1>20030</td><td rowspan=1 colspan=1>36386</td></tr><tr><td rowspan=1 colspan=1>Wolfenstein</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>83</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>2952</td></tr></table>",
|
| 926 |
+
"bbox": [
|
| 927 |
+
269,
|
| 928 |
+
203,
|
| 929 |
+
728,
|
| 930 |
+
329
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 10
|
| 933 |
+
}
|
| 934 |
+
]
|
parse/train/HysBZSqlx/HysBZSqlx_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HysBZSqlx/HysBZSqlx_model.json
ADDED
|
The diff for this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 |
+
Yao Qin∗
|
| 4 |
+
UC San Diego
|
| 5 |
+
yaq007@eng.ucsd.edu
|
| 6 |
+
|
| 7 |
+
Nicholas Frosst∗ Google Brain frosst@google.com
|
| 8 |
+
|
| 9 |
+
Sara Sabour
|
| 10 |
+
Google Brain
|
| 11 |
+
sasabour@google.com
|
| 12 |
+
Colin Raffel
|
| 13 |
+
Google Brain
|
| 14 |
+
craffel@google.com
|
| 15 |
+
|
| 16 |
+
Garrison Cottrell UC San Diego gary@eng.ucsd.edu
|
| 17 |
+
|
| 18 |
+
Geoffrey Hinton
|
| 19 |
+
Google Brain
|
| 20 |
+
geoffhinton@google.com
|
| 21 |
+
|
| 22 |
+
# ABSTRACT
|
| 23 |
+
|
| 24 |
+
Adversarial examples raise questions about whether neural network models are sensitive to the same visual features as humans. In this paper, we first detect adversarial examples or otherwise corrupted images based on a class-conditional reconstruction of the input. To specifically attack our detection mechanism, we propose the Reconstructive Attack which seeks both to cause a misclassification and a low reconstruction error. This reconstructive attack produces undetected adversarial examples but with much smaller success rate. Among all these attacks, we find that CapsNets always perform better than convolutional networks. Then, we diagnose the adversarial examples for CapsNets and find that the success of the reconstructive attack is highly related to the visual similarity between the source and target class. Additionally, the resulting perturbations can cause the input image to appear visually more like the target class and hence become non-adversarial. This suggests that CapsNets use features that are more aligned with human perception and have the potential to address the central issue raised by adversarial examples.
|
| 25 |
+
|
| 26 |
+
# 1 INTRODUCTION
|
| 27 |
+
|
| 28 |
+
Adversarial examples (Szegedy et al., 2013) are inputs that are designed by an adversary to cause a machine learning system to make a misclassification. A series of studies on adversarial attacks have shown that it is easy to cause misclassifications using visually imperceptible changes to an image under $\ell _ { p }$ -norm based similarity metrics (Goodfellow et al., 2014; Kurakin et al., 2016; Madry et al., 2017; Carlini & Wagner, 2017b; Goodfellow et al., 2018). Since the discovery of adversarial examples, there has been a constant “arms race” between better attacks and better defenses. Many new defenses have been proposed (Song et al., 2017; Gong et al., 2017; Grosse et al., 2017; Metzen et al., 2017), only to be broken shortly thereafter (Carlini & Wagner, 2017a; Athalye et al., 2018). Hinton et al. (2018) showed that capsule models are more robust to simple adversarial attacks than CNNs but Michels et al. (2019) showed that this is not the case for all attacks.
|
| 29 |
+
|
| 30 |
+
The cycle of attacks and defenses motivates us to rethink both how we can improve the general robustness of neural networks as well as the high-level motivation for this pursuit. One potential path forward is to detect adversarial inputs, instead of attempting to accurately classify them (Schott et al., 2018; Roth et al., 2019). Recent work (Jetley et al., 2018; Gilmer et al., 2018b) argue that adversarial examples can exist within the data distribution, which implies that detecting adversarial examples based on an estimate of the data distribution alone might be insufficient. Instead, in this paper we develop methods for detecting adversarial examples by making use of class-conditional reconstruction networks. These sub-networks, first proposed by Sabour et al. (2017) as part of a Capsule Network (CapsNet), allow a model to produce a reconstruction of its input based on the identity and instantiation parameters of the winning capsule. Interestingly, we find that reconstructing an input from the capsule corresponding to the correct class results in a much lower reconstruction error than reconstructing the input from capsules corresponding to incorrect classes, as shown in Figure 1(a). Motivated by this, we propose using the reconstruction sub-network in a CapsNet as an attack-independent detection mechanism. Specifically, we reconstruct a given input from the pose parameters of the winning capsule and then detect adversarial examples by comparing the difference between the reconstruction distributions for natural and adversarial (or otherwise corrupted) images.
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
Figure 1: (a) The histogram of $\ell _ { 2 }$ distances between the input and the reconstruction using the correct capsule or other capsules in CapsNet on the real MNIST images. Notice the stark difference between the distributions of reconstructions of the capsule corresponding to the correct class and other capsules. (b) The histograms of $\ell _ { 2 }$ distances between the reconstruction and the input for real and adversarial images for the three models explored in this paper on the MNIST dataset. We use PGD (Madry et al., 2017) with the $\ell _ { \infty }$ bound $\epsilon = 0 . 3$ to create the attacks.
|
| 34 |
+
|
| 35 |
+
We extend this detection mechanism to standard convolutional neural networks (CNNs) and show its effectiveness against black box and white box attacks on three image datasets; MNIST, FashionMNIST and SVHN. We show that capsule models achieve the strongest attack detection rates and accuracy on these attacks. We then test our method against a stronger attack, the Reconstructive Attack, specifically designed to attack our detection mechanism by generating adversarial examples with a small reconstruction error. With this attack we are able to create undetected adversarial examples, but we show that this attack is less successful in fooling the classifier than a non-reconstructive attack.
|
| 36 |
+
|
| 37 |
+
Among all these attacks, we find CapsNets perform the best in detecting adversarial examples. To explain the success of CapsNets over CNNs, we further diagnose the adversarial examples for CapsNets and find that 1) the success of the targeted reconstructive attack is highly dependent on the visual similarity between the source image and the target class. 2) many of the resultant attacks resemble members of the target class and so cease to be “adversarial” – i.e., they may also be misclassified by humans. These findings suggest that CapsNets with class conditional reconstructions have the potential to address the real issue with adversarial examples – networks should make predictions based on the same properties of the image that people use rather than using features that can be manipulated by an imperceptible adversarial attack.
|
| 38 |
+
|
| 39 |
+
In summary, our main contributions are:
|
| 40 |
+
|
| 41 |
+
• We propose a class-conditional capsule reconstruction based detection method to detect standard white-box/black-box adversarial examples on three datasets. This detection mechanism is attack-agnostic and is successfully extended to standard convolutional neural networks. We test our detection mechanism on the corrupted MNIST dataset and show that it can work as a general out-of-distribution detector.
|
| 42 |
+
• A stronger reconstructive attack is specifically designed to attack our detection mechanism but becomes less successful in fooling the classifier.
|
| 43 |
+
• We perform extensive qualitative studies to explain the superior performance of CapsNets in detecting adversarial examples compared to CNNs. The results suggest that the features captured by CapsNets are more aligned with human perception.
|
| 44 |
+
|
| 45 |
+
# 2 RELATED WORK
|
| 46 |
+
|
| 47 |
+
Adversarial examples were first introduced in (Biggio et al., 2013; Szegedy et al., 2013), where a given image was modified by following the gradient of a classifier’s output with respect to the image’s pixels. Goodfellow et al. (2014) then developed the more efficient Fast Gradient Sign method (FGSM), which can change the label of the input image $X$ with a similarly imperceptible perturbation that is constructed by taking an $\epsilon$ step in the direction of the gradient. Later, the Basic Iterative Method (BIM) (Kurakin et al., 2016) and Projected Gradient Descent (Madry et al., 2017) can generate stronger attacks improved on FGSM by taking multiple steps in the direction of the gradient. In addition, Carlini & Wagner (2017b) proposed another iterative optimization-based method to construct strong adversarial examples with small perturbations.
|
| 48 |
+
|
| 49 |
+
An early approach to reducing vulnerability to adversarial examples was proposed by (Goodfellow et al., 2014), where a network was trained on both clean images and adversarially perturbed ones. Since then, there has been a constant “arms race” between better attacks and better defenses; Kurakin et al. (2018) provide an overview of this field. However, many defenses against adversarial examples have been demonstrated to be an effect of “obfuscated gradients” and can be further circumvented under the white-box setting (Athalye et al., 2018).
|
| 50 |
+
|
| 51 |
+
Another line of work attempts to circumvent adversarial examples by detecting them with a separatelytrained classifier (Gong et al., 2017; Grosse et al., 2017; Metzen et al., 2017) or using statistical properties (Hendrycks & Gimpel, 2016; Li & Li, 2017; Feinman et al., 2017; Grosse et al., 2017). However, many of these approaches were subsequently shown to be flawed (Carlini & Wagner, 2017a; Athalye et al., 2018). The most recent work in detecting adversarial examples (Roth et al., 2019) that has a $9 9 \%$ true positive rate on CIFAR-10 dataset (Krizhevsky, 2009) has also been fully bypassed by later work (Hosseini et al., 2019) which decreased the true positive rate to less than $2 \%$ .
|
| 52 |
+
|
| 53 |
+
Similar to our work, Schott et al. (2018) also investigated the effectiveness of a class-conditional generative model as a defense mechanism for MNIST digits. However, we differ in some important ways. Their model is in some ways the opposite of ours - they first attempt to generate the input, and then make a classification on the resulting generated images, whereas our method attempts to first classify the input, making use of an otherwise unchanged capsule classification model, and then generates the input from a high level representation. As such, our method does not increase the computational overhead of classifying the input, compared to the approach of Schott et al. (2018). In addition, the work of Schott et al. (2018) is only applied to MNIST, so our results on the more complex datasets represent an improvement.
|
| 54 |
+
|
| 55 |
+
# 3 PRELIMINARIES
|
| 56 |
+
|
| 57 |
+
Adversarial Examples Given a clean test image $x$ , its corresponding label $y$ , and a classifier $f ( \cdot )$ which predicts a class label given an input, we refer to $x ^ { \prime } = x + \delta$ as an adversarial example if it is able to fool the classifier into making a wrong prediction $f ( x ^ { \prime } ) \neq f ( x ) = y .$ . The small adversarial perturbation $\delta$ (where “small” is measured under some norm) causes the adversarial example $x ^ { \prime }$ to appear visually similar to the clean image $x$ but to be classified differently. In the unrestricted case where we only require that $f ( x ^ { \prime } ) \neq y$ , we refer to $x ^ { \prime }$ as an “untargeted adversarial example”. A more powerful attack is to generate a “targeted adversarial example”: instead of simply fooling the classifier to make a wrong prediction, we force the classifier to predict some targeted label $f ( x ^ { \prime } ) = t \neq y$ . In this paper, the target label $t$ is selected uniformly at random as any label which is not the ground-truth correct label. As is standard practice in the literature, in this paper we test our detection mechanism on three $\ell _ { \infty }$ norm based attacks (fast gradient sign method (FGSM) (Goodfellow et al., 2014), the basic iterative method (BIM) (Kurakin et al., 2016), projected gradient descent (PGD) (Madry et al., 2017)) and one $\ell _ { 2 }$ norm based attack (Carlini-Wagner (CW) (Carlini & Wagner, 2017b)).
|
| 58 |
+
|
| 59 |
+
Capsule Networks Capsule Networks (CapsNets) are an alternative architecture for neural networks (Sabour et al., 2017; Hinton et al., 2018). In this work we make use of the CapsNet architecture detailed by (Sabour et al., 2017). Unlike a standard neural network which is made up of layers of scalar-valued units, CapsNets are made up of layers of capsules, that output a vector or matrix. Intuitively, just as one can think of the activation of a unit in a normal neural network as the presence of a feature in the input, the activation of a capsule can be thought of as both the presence of a feature and the pose parameters that represent attributes of that feature. A top-level capsule in a classification network therefore outputs both a classification and pose parameters that represent the instance of that class in the input. This high level representation allows us to train a reconstruction network.
|
| 60 |
+
|
| 61 |
+
Threat Model In this paper, we test our detection mechanism against both white-box and black-box attacks. For white-box attacks, the adversary has full access to the model as well as its parameters. In particular, the adversary is allowed to compute the gradient through the model to generate adversarial examples. To perform black-box attacks, the adversary is allowed to know the network architecture but not its parameters. Therefore, we retrain a substitute model that has the same architecture as the target model and generate adversarial examples by attacking the substitute model. Then we transfer these attacks to the target model. For $\ell _ { \infty }$ based attacks, we always control the $\ell _ { \infty }$ norm of the adversarial perturbation to be within a relatively small bound $\epsilon _ { \infty }$ , specific to each dataset.
|
| 62 |
+
|
| 63 |
+
# 4 DETECTING ADVERSARIAL IMAGES BY RECONSTRUCTION
|
| 64 |
+
|
| 65 |
+
To detect adversarial images, we make use of the reconstruction network proposed in (Sabour et al., 2017), which takes pose parameters $v$ as input and outputs the reconstructed image $r ( v )$ . The reconstruction network is simply a fully connected neural network with two ReLU hidden layers with 512 and 1024 units respectively, with a sigmoid output with the same dimensionality as the dataset. The reconstruction network is trained to minimize the $\ell _ { 2 }$ distance between the input image and the reconstructed image. This same network architecture is used for all the models and datasets we explore. The only difference is what is given to the reconstruction network as input.
|
| 66 |
+
|
| 67 |
+
# 4.1 MODELS
|
| 68 |
+
|
| 69 |
+
CapsNet The reconstruction network of the CapsNet is class-conditional: It takes in the pose parameters of all the class capsules and masks all values to 0 except for the pose parameters of the predicted class. We use this reconstruction network for detecting adversarial attacks by measuring the Euclidean distance between the input and a class conditional reconstruction. Specifically, for any given input $x$ , the CapsNet outputs a prediction $f ( x )$ as well as the pose parameters $v$ for all classes. The reconstruction network takes in the pose parameters and then selects the pose parameter corresponding to the predicted class, denoted as $v _ { f ( x ) }$ , to generate a reconstruction $r ( v _ { f ( x ) } )$ . Then we compute the $\ell _ { 2 }$ reconstruction distance $d ( \boldsymbol { x } ) = \| r ( \boldsymbol { v } _ { f ( \boldsymbol { x } ) } ) , \boldsymbol { x } \| _ { 2 }$ between the reconstructed image and the input image, and compare it with a pre-defined detection threshold $\theta$ (described below in Section 4.2). If the reconstruction distance ${ \bar { d } } ( x )$ is higher than the detection threshold $\theta$ , we flag the input as an adversarial example. Figure 1 (b) shows an example of histograms of reconstruction distances for natural images and typical adversarial examples.
|
| 70 |
+
|
| 71 |
+
$\mathbf { C N N + C R }$ Although our strategy is inspired by the reconstruction networks used in CapsNets, the strategy can be extended to standard convolutional neural networks (CNNs). We create a similar architecture, CNN with conditional reconstruction $( \mathrm { C N N + C R } )$ ), by dividing the penultimate hidden layer of a CNN into groups corresponding to each class. The sum of each neuron group serves as the logit for that particular class and the group itself serves the same purpose as the pose parameters in the CapsNet. We use the same masking mechanism as Sabour et al. (2017) to select the pose parameter corresponding to the predicted label $v _ { f ( x ) }$ and generate the reconstruction based on the selected pose parameters. In this way we extend the class-conditional reconstruction network to standard CNNs.
|
| 72 |
+
|
| 73 |
+
$\mathbf { C N N + R }$ We can also create a more na¨ıve implementation of our strategy by simply computing the reconstruction from the activations in the entire penultimate layer without any masking mechanism. We call this model the $\mathrm { " C N N { + } R } \mathrm { " }$ model. In this way we are able to study the effect of conditioning on the predicted class.
|
| 74 |
+
|
| 75 |
+
# 4.2 DETECTION THRESHOLD
|
| 76 |
+
|
| 77 |
+
We find the threshold $\theta$ for detecting adversarial inputs by measuring the reconstruction error between a validation input image and its reconstruction. If the distance between the input and the reconstruction is above the chosen threshold $\theta$ , we classify the data as adversarial. Choosing the detection threshold $\theta$ involves a trade-off between false positive and false negative detection rates. The optimal threshold depends on the probability of the system being attacked. Such a trade-off is discussed by Gilmer et al. (2018a). In our experiments we don’t tune this parameter and simply set it as the 95th percentile of validation distances. This means our false positive rate on real validation data is $5 \%$ .
|
| 78 |
+
|
| 79 |
+
Table 1: Success Rate / Undetected Rate of white-box targeted and untargeted attacks on the MNIST dataset. In the table, $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks. A smaller success rate and undetected rate means a stronger defense model. Full results for FashionMNIST and SVHN can be seen in Table 5 in the Appendix.
|
| 80 |
+
|
| 81 |
+
<table><tr><td rowspan="2">Networks</td><td colspan="4">Targeted (%)</td><td colspan="4">Untargeted (%)</td></tr><tr><td>FGSM</td><td>BIM</td><td>PGD</td><td>CW</td><td>FGSM</td><td>BIM</td><td>PGD</td><td>CW</td></tr><tr><td>CapsNet</td><td>3/0</td><td>82/0</td><td>86/0</td><td>99/2</td><td>11/0</td><td>99/0</td><td>99/0</td><td>100/19</td></tr><tr><td>CNN+CR</td><td>16/0</td><td>93/0</td><td>95/0</td><td>89/8</td><td>85/0</td><td>100/0</td><td>100/0</td><td>100/28</td></tr><tr><td>CNN+R</td><td>37/0</td><td>100/0</td><td>100/0</td><td>100/47</td><td>64/0</td><td>100/0</td><td>100/0</td><td>100/63</td></tr></table>
|
| 82 |
+
|
| 83 |
+
# 4.3 EVALUATION METRICS
|
| 84 |
+
|
| 85 |
+
We use Success Rate to measure the success of attacks. For targeted attacks, the success rate $S _ { t }$ is defined as the proportion of inputs which are classified as the target class, $\begin{array} { r } { S _ { t } = \frac { 1 } { N } \sum _ { i } ^ { N } ( f ( x _ { i } ^ { \prime } ) = } \end{array}$ $t _ { i }$ ), while the success rate for untargeted attacks is defined as the proportion of inputs which are misclassified, $\begin{array} { r } { S _ { u } ~ = ~ \frac { 1 } { N } \sum _ { i } ^ { N } ( f ( x _ { i } ^ { \prime } ) ~ \neq ~ y _ { i } ) } \end{array}$ . Previous work (Carlini & Wagner, $2 0 1 7 \mathrm { a }$ ; Hosseini et al., 2019) used the True Positive Rate to measure the proportion of adversarial examples that are detected, which alone is insufficient to measure the ability of different detection mechanism because the unsuccessful adversarial examples do not have to be detected. Therefore, in this paper, we propose to use the Undetected Rate: the proportion of attacks that are successful and undetected to evaluate the detection mechanism. For targeted attacks, the undetected rate is defined as $\begin{array} { r } { R _ { t } = \frac { 1 } { N } \sum _ { i } ^ { N } ( f ( x _ { i } ^ { \prime } ) = t _ { i } ) \cap ( d ( x _ { i } ^ { \prime } ) \leq \theta ) } \end{array}$ , where $d ( \cdot )$ computes the reconstruction distance of the input and $\theta$ denotes the detection threshold introduced in Section 4.2. Similarly, the undetected rate for untargeted attacks Ru can be defined as Ru = 1N PNi (f (x0i) 6= yi) ∩ (d(x0i) ≤ θ). The smaller undetected rate can also be used to evaluate the attacks (higher is better). We also plot the Undetected Rate vs. False Positive Rate curve to compare the detection performance between different models, where False Positive Rate is defined as the proportion of clean examples that are misclassified as the adversarial example by the detection method.
|
| 86 |
+
|
| 87 |
+
# 4.4 TEST MODELS AND DATASETS
|
| 88 |
+
|
| 89 |
+
In all experiments, all three models (CapsNet, $\mathrm { C N N + R }$ , and $\mathbf { C N N + C R }$ ) have the same number of parameters and were trained with Adam (Kingma & Ba, 2014) for the same number of epochs. In general, all models achieved similar test accuracy. We did not do an exhaustive hyperparameter search on these models, instead we chose hyperparameters that allowed each model to perform roughly equivalently on the test sets. We run experiments on three datasets: MNIST (LeCun et al., 1998), FashionMNIST (Xiao et al., 2017), and SVHN (Netzer et al., 2011). The test error rate for each model on these three datasets, as well as details of the model architectures, can be seen in Section A and Section B in the Appendix.
|
| 90 |
+
|
| 91 |
+
# 5 EXPERIMENTS
|
| 92 |
+
|
| 93 |
+
We first demonstrate how reconstruction networks can detect standard white and black-box attacks in addition to naturally corrupted images. Then, we introduce the “reconstructive attack”, which is specifically designed to circumvent our defense and show that it is a more powerful attack in this setting. Based on this finding, we qualitatively study the kind of misclassifications caused by the reconstructive attack and argue that they suggest that CapsNets learn features that are better aligned with human perception.
|
| 94 |
+
|
| 95 |
+
# 5.1 STANDARD ATTACKS
|
| 96 |
+
|
| 97 |
+
White Box We present the success and undetected rates for several targeted and untargeted attacks on MNIST (Table 1), FashionMNIST, and SVHN (Table 5 presented in the Appendix). Our method is able to accurately detect many attacks with very low undetected rates. Capsule models almost always have the lowest undetected rates out of our three models. It is worth noting that this method performs best with the simplest dataset, MNIST, and that the highest undetected rates are found with the Carlini-Wagner attack on the SVHN dataset. This illustrates both the strength of this attack and a shortcoming of our defense, namely that our detection mechanism relies on $\ell _ { 2 }$ image distance as a proxy for visual similarity, and in the case of higher dimensional color datasets such as SVHN, this proxy is less meaningful.
|
| 98 |
+
|
| 99 |
+
Table 2: Error Rate/Undetected Rate on the Corrupted MNIST dataset. A smaller error rate and undetected rate means a better defense model.
|
| 100 |
+
|
| 101 |
+
<table><tr><td>Corruption</td><td>Clean</td><td>Gaussian Noise</td><td>Gaussian Blur</td><td>Line</td><td>Dotted Line</td><td>Elastic Transform</td></tr><tr><td>CapsNet</td><td>0.6/0.2</td><td>12.1/0.0</td><td>10.3/4.1</td><td>19.6/0.1</td><td>4.3/0.0</td><td>11.3/0.8</td></tr><tr><td>CNN+CR</td><td>0.7/0.3</td><td>9.8/0.0</td><td>6.7/4.2</td><td>17.6/0.1</td><td>4.2/0.0</td><td>11.1/1.1</td></tr><tr><td>CNN+R</td><td>0.6/0.4</td><td>6.7/0.0</td><td>8.9/6.4</td><td>18.9/0.1</td><td>3.1/0.0</td><td>12.2/2.1</td></tr><tr><td>Corruption</td><td>Saturate</td><td>JPEG</td><td>Quantize</td><td>Sheer</td><td>Spatter</td><td>Rotate</td></tr><tr><td>CapsNet</td><td>3.5/0.0</td><td>0.8/0.4</td><td>0.7/0.1</td><td>1.6/0.4</td><td>1.9/0.2</td><td>6.5/2.2</td></tr><tr><td>CNN+CR</td><td>1.5/0.0</td><td>0.8/0.5</td><td>0.9/0.1</td><td>2.1/0.4</td><td>1.8/0.4</td><td>6.1/1.6</td></tr><tr><td>CNN+R</td><td>1.2/0.0</td><td>0.7/0.5</td><td>0.7/0.2</td><td>2.2/0.7</td><td>1.8/0.4</td><td>6.5/3.4</td></tr><tr><td>Corruption</td><td>Contrast</td><td>Inverse</td><td>Canny Edge</td><td>Fog</td><td>Frost</td><td>Zigzag</td></tr><tr><td>CapsNet</td><td>92.0/0.0</td><td>91.0/0.0</td><td>21.5/0.0</td><td>83.7/0.0</td><td>70.6/0.0</td><td>16.9/0.0</td></tr><tr><td>CNN+CR</td><td>72.0/32.6</td><td>78.1/0.0</td><td>34.6/0.0</td><td>66.0/0.5</td><td>37.6/0.0</td><td>18.4/0.0</td></tr><tr><td>CNN+R</td><td>73.4/49.4</td><td>88.1/0.0</td><td>23.4/0.0</td><td>65.6/0.1</td><td>36.2/0.0</td><td>17.5/0.0</td></tr></table>
|
| 102 |
+
|
| 103 |
+
Black Box We also tested our detection mechanism results on black box attacks. Given the low undetected rates in the white-box settings, it is not surprising that our detection method is able to detect black box attacks as well. In fact, on the MNIST dataset the capsule model is able to detect all targeted and untargeted PGD attacks. Both the CNN-R and the CNN-CR models are able to detect the black box attacks as well, but with a relatively higher undetected rate. A table of these results can be seen in Table 7 in the Appendix.
|
| 104 |
+
|
| 105 |
+
# 5.2 CORRUPTION ATTACKS
|
| 106 |
+
|
| 107 |
+
Recent work has argued that improving the robustness of neural networks to $\ell _ { p }$ norm bounded adversarial attacks should not come at the expense of increasing error rates under distributional shifts that do not affect human classification rates and are likely to be encountered in the “realworld” (Gilmer et al., 2018a). For example, if an image is corrupted due to adverse weather, lighting, or occlusion, we might hope that our model can continue to provide reliable predictions or detect the distributional shift. We can test our detection method on its ability to detect these distributional shifts by making use of the Corrupted MNIST dataset (Mu & Gilmer, 2019). This data set contains many visual transformations of MNIST that do not seem to affect human performance, but nevertheless are strongly misclassified by state-of-the-art MNIST models. Our three models can almost always detect these distributional shifts (in all corruptions CapsNets have either a small undetected rate or an undetected rate of 0). The error rate (the proportion of misclassified input) and undetected rate of three test models on the Corrupted MNIST dataset is shown in Table 2. Please refer to Figure 7 and Figure 8 in the Appendix for visualization of Corrupted MNIST.
|
| 108 |
+
|
| 109 |
+
# 5.3 RECONSTRUCTIVE ATTACKS
|
| 110 |
+
|
| 111 |
+
Thus far we have only evaluated previously-defined attacks. Following the suggestion in (Carlini & Wagner, 2017a) that detection methods need to show effectiveness towards defense-aware attacks, we introduce an attack specifically designed to take into account our defense mechanism. In order to construct adversarial examples that cannot be detected by the network, we propose a two-stage optimization method to generate a “reconstructive attack”.
|
| 112 |
+
|
| 113 |
+
Table 3: Success rate and the worst case undetected rate of white-box targeted and untargeted reconstructive attacks. $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks. The worst case undetected rate is reported via tuning the hyperparameter $\beta$ in Eqn 1 and Eqn 2. The best defense models are shown in bold (smaller success rate and undetected rate is better). All the numbers are shown in $\%$ . A full table with more attacks can be seen in Table 6 in Appendix.
|
| 114 |
+
|
| 115 |
+
<table><tr><td></td><td colspan="2">MNIST</td><td colspan="2">FASHION</td><td colspan="2">SVHN</td></tr><tr><td></td><td>Targeted R-PGD</td><td>Untargeted R-PGD</td><td>Targeted R-PGD</td><td>Untargeted R-PGD</td><td>Targeted R-PGD</td><td>Untargeted R-PGD</td></tr><tr><td>CapsNet</td><td>50.7/33.7</td><td>88.1/37.9</td><td>53.7/29.8</td><td>84.9/75.5</td><td>82.0/79.2</td><td>98.9/97.5</td></tr><tr><td>CNN+CR</td><td>98.6/68.1</td><td>99.4/87.7</td><td>89.8/84.4</td><td>91.5/86.0</td><td>99.0/97.9</td><td>99.9/99.5</td></tr><tr><td>CNN+R</td><td>95.5/71.2</td><td>95.1/70.5</td><td>94.6/88.4</td><td>98.9/90.0</td><td>99.5/99.3</td><td>100.0/99.9</td></tr></table>
|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
Figure 2: The undetected rate of the white-box targeted defense-aware R-PGD attack versus the False Positive Rate on the MNIST, Fashion-MNIST and SVHN datasets.
|
| 119 |
+
|
| 120 |
+
Untargeted Reconstructive Attacks To construct untargeted reconstructive attacks, we first update the perturbation based on the gradient of the cross-entropy loss function following a standard FGSM attack (Goodfellow et al., 2014), that is:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\delta \gets \mathrm { c l i p } _ { \epsilon } ( \delta + c \cdot \beta \cdot \mathrm { s i g n } ( \nabla _ { \delta } \ell _ { n e t } ( f ( x + \delta ) , y ) ) ) ,
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
where $\ell _ { n e t } ( f ( \cdot ) , y )$ is the cross-entropy loss function, $\epsilon$ is the $\ell _ { \infty }$ bound for our attacks, $c$ is a hyperparameter controlling the step size in each iteration and $\beta$ is a hyperparameter which balances the importance of the cross-entropy loss and the reconstruction loss (explained further below). In the second stage, we focus on constraining the reconstructed image from the newly predicted label to have a small reconstruction distance by updating $\delta$ according to
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\delta \gets \mathrm { c l i p } _ { \epsilon } ( \delta - c \cdot ( 1 - \beta ) \cdot \mathrm { s i g n } ( \nabla _ { \delta } ( \| r ( v _ { f ( x + \delta ) } ) - ( x + \delta ) \| _ { 2 } ) ) ) ,
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
where $r \big ( v _ { f ( x + \delta ) } \big )$ is the class-conditional reconstruction based on the predicted label $f ( x + \delta )$ in a CapsNet or $\mathrm { C N N + C R }$ network. The $\delta$ used here is the optimized $\delta$ from the first stage. $\| r ( v _ { f ( x + \delta ) } ) -$ $( x + \delta ) \| _ { 2 }$ is the $\ell _ { 2 }$ reconstruction distance between the reconstructed image and the input image. Since the $\mathrm { C N N + R }$ network does not use the class conditional reconstruction, we simply use the reconstructed image without the masking mechanism. According to Eqn 1 and Eqn 2, we can see that $\beta$ balances the importance between the success rate of attacks and the reconstruction distance. This hyperparameter was tuned for each model and each dataset in order to create the strongest attacks. The success rate and undetected rate change as this parameter, which is shown in Figure 9 in Appendix.
|
| 133 |
+
|
| 134 |
+
Targeted Reconstructive Attacks We perform a similar two-stage optimization to construct targeted reconstructive attacks, by defining a target label and attempting to maximize the classification probability of this label, and minimize the reconstruction error from corresponding capsule. Because the targeted label is given, another way to construct targeted reconstructive attacks is to combine these two stages into one stage via minimizing the loss function $\ell = \boldsymbol { \beta } \cdot \ell _ { n e t } ( f ( x + \delta ) , y ) + ( 1 - \beta ) \cdot \| \boldsymbol { r } ( v _ { f ( x + \delta ) } ) - ( x + \delta ) \| _ { 2 }$ . We implemented both of these targeted reconstructive attacks and found that the two-stage version is a stronger attack. Therefore, all the Reconstructive Attack experiments performed in this paper are based on two-stage optimization.
|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
Figure 3: The defense-aware R-PGD attack is tested on the CIFAR-10 dataset with $\epsilon _ { \infty } = 8 / 2 5 5$ . Left: The undetected rate of white-box/black-box defense-aware R-PGD versus the Fasle Positive Rate for the clean examples. The test model is our CapsNet. Right: The undetected rate of white-box defense-aware R-PGD versus the Fasle Positive Rate for the clean examples. The test model is our CapsNet using class-conditional reconstruction, “CapsNet All” using all capsule information, and the DeepCaps (Rajasegaran et al., 2019) using class-independent capsule information.
|
| 138 |
+
|
| 139 |
+
We build our reconstructive attack based on the standard PGD attack, denoted as R-PGD, and test the performance of our detection models against this reconstructive attack in a white-box setting (white-box Reconstructive FGSM and BIM are reported in Table 6 in the Appendix). Comparing Table 1 and Table 3, we can see that the Reconstructive Attack is significantly less successful at changing the models prediction (lower success rates than the standard attack). However, this attack is more successful at fooling our detection method. For all attacks and datasets the capsule model has the lowest attack success rate and the lowest undetected rate. We report results for black-box R-PGD attacks in Table 7 in the Appendix, which suggest similar conclusions.
|
| 140 |
+
|
| 141 |
+
In addition, we report the undetected rate of the white-box targeted defense-aware R-PGD attack versus the False Positive Rate on the MNIST, Fashion-MNIST and SVHN datasets in Figure 2. We can clearly see that the undetected rate of the defense-aware attack against CapsNet is significantly smaller than the CNN-based networks, which suggests that CapsNets are more robust against adversarial attacks. Furthermore, CNN with class-conditional reconstruction $\mathrm { C N N + C R }$ ) has smaller undetected rate at the same False Positive Rate compared to the CNN without class-conditional reconstruction $( \mathrm { C N N + R } )$ , which suggests the class-conditional information is helpful in our models to improve the robustness against adversarial attacks.
|
| 142 |
+
|
| 143 |
+
# 5.4 CIFAR-10 DATASET
|
| 144 |
+
|
| 145 |
+
In order to show that our method based on CapsNet is capable to scale up to more complex datasets, we test our detection method with a deeper reconstruction network on CIFAR-10 (Krizhevsky, 2009). The classification accuracy on the clean test dataset is $9 2 . 2 \%$ . In addition, we display the undetected rate of the white-box/black-box defense-aware R-PGD attack against CapsNets versus the False Positive Rate in Figure 3 (Left), where we can see a significant drop of the undetected rate of black-box R-PGD compared to the white-box setting. This indicates the CapsNets greatly reduce the attack transferability and the threat of black-box attacks.
|
| 146 |
+
|
| 147 |
+
Class-conditional Information To investigate the effectiveness of the class-conditional information in the reconstruction network, we compare our CapsNet based on (Sabour et al., 2017) with the other two variants of CapsNets: “CapsNet All” and “DeepCaps” (Rajasegaran et al., 2019). In “CapsNet All”, we remove the masking mechanism in the CapsNet and use all the capsules to do the reconstruction. In “DeepCaps”, we extract the winning-capsule information as a single vector and used it as the input for the reconstruction network instead of using a masking mechanism to mask out the losing capsules information. In this way, the class information in DeepCaps is more explicitly fed into the reconstruction network. As shown in Figure 3 (right), our CapsNet has the best detection performance (the lowest undetected rate at the same False Positive Rate) compared to the other two
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 4: This diagram visualizes the adversarial success rates for each source/target pair for targeted R-PGD attacks on Fashion-MNIST with $\epsilon _ { \infty } = 2 5 / 2 5 5$ . The size of the box at position x, y represents the success rate of adversarially perturbing inputs of class $\mathbf { X }$ to be classified as class y. We can see that there is significantly higher variance for the CapsNet model than for the two CNN models.
|
| 153 |
+
Figure 5: These are randomly sampled (not cherry picked) successful and undetected adversarial attacks created by R-PGD with a target class of 0 for each model on the SVHN dataset $\epsilon _ { \infty } = 2 5 / 2 5 5 )$ . We can see that for the capsule model, many of the attacks are not “adversarial” as they resemble members of the target class.
|
| 154 |
+
|
| 155 |
+
Capsule models. “DeepCaps” performs slightly worse than our “CapsNet” and “CapsNet All” has the worst detection performance. Therefore, we conclude that the class-conditional information used in the reconstruction network increases the model’s robustness to adversarial attack. This also holds true to CNN-based networks because $\mathrm { C N N + C R }$ has a better detection performance than $\mathrm { C N N + R }$ , shown in Figure 2.
|
| 156 |
+
|
| 157 |
+
# 6 VISUAL COHERENCE OF THE RECONSTRUCTIVE ATTACK
|
| 158 |
+
|
| 159 |
+
The great success of CapsNet over CNN-based models motivates us to further diagnose the generated adversarial examples for CapsNets. If our true aim in adversarial robustness research is to create models that make predictions based on reasonable and human-observable features, then we would prefer models that are more likely to misclassify a “shirt” as a “t-shirt” (in the case of FashionMNIST) than to misclassify a “bag” as a “sweater”. For a model to behave ideally, the success of an adversarial perturbation would be related to the visual similarity between the source and the target class. By visualizing a matrix of adversarial success rates between each pair of classes (shown in Figure 4), we can see that for the capsule model there is a great variance between the source and target class pairs and that the success rate of attacks is highly related to the visual similarity of the classes. However, this is not the case for either of the other two CNN-based models.
|
| 160 |
+
|
| 161 |
+
Thus far we have treated all attacks as equal. However, a key component of an adversarial example is that it is visually similar to the source image, and that it does not resemble the adversarial target class. The adversarial research community makes use of a small epsilon bound as a mechanism for ensuring that the resultant adversarial attacks are visually unchanged from the source image. For standard attacks against CNN-based models this heuristic is sufficient, because taking gradient steps in the image space in order to have a network misclassify an image normally results in something visually similar to the source image. But this is not the case for adversarial attacks against CapsNets. As shown in Figure 5, when we use R-PGD to attack the CapsNet, many of the resultant attacks resemble members of the target class. In this way, they stop being “adversarial”. As such, an attack detection method which does not detect them as adversarial is arguably behaving correctly. This puts the previously undetected rates presented earlier in a new light, and illustrates a difficulty in the evaluation of adversarial attacks and defenses. In addition, it should be noted that this phenomenon rarely occurs in a standard convolutional neural network, which suggests that the features captured by CapsNet are more aligned with human perception.
|
| 162 |
+
|
| 163 |
+
# 7 DISCUSSION
|
| 164 |
+
|
| 165 |
+
Our detection mechanism relies on a similarity metric (i.e. a measure of reconstruction error) between the reconstruction and the input. This metric is required both during training in order to train the reconstruction network and during test time in order to flag adversarial examples. In the four datasets we have evaluated, the distance between examples roughly correlates with semantic similarity. However, this may not be the case for images in more complex datasets such as the SUN dataset (Xiao et al., 2010) and ImageNet (Deng et al., 2009), in which two images may be similar in terms of semantic content but nevertheless have significant $\ell _ { 2 }$ distance. A better similarity metric (Theis et al., 2015; Zhang et al., 2018) can be further explored to extend our methods to more complex problems. Furthermore our reconstruction network is trained on a hidden representation of one class but is trained to reconstruct the entire input. In datasets without distractors or backgrounds, this is not a problem. But in the case of ImageNet, in which the object responsible for the classification is not the only object in the image, attempting to reconstruct the entire input from a class encoding seems misguided.
|
| 166 |
+
|
| 167 |
+
# 8 CONCLUSION
|
| 168 |
+
|
| 169 |
+
We have presented a class-conditional reconstruction-based detection method that does not rely on a specific predefined adversarial attack. We have shown that by reconstructing the input from the internal class-conditional representation, our system is able to accurately detect black-box and white-box FGSM, BIM, PGD, and CW attacks. We then proposed a new attack to beat our defense - the Reconstructive Attack - in which the adversary optimizes not only the classification loss but also minimizes the reconstruction loss. We showed that this attack was able to fool our detection mechanism but with a much smaller success rate than a standard attack.
|
| 170 |
+
|
| 171 |
+
Compared to CNN-based models, we showed that the CapsNet was able to detect adversarial examples with greater accuracy on all the datasets we explored. To further explain the success of CapsNet, we qualitatively showed that the success of the reconstructive attack was highly related to the visual similarity between the target class and the source class for the CapsNet. In addition, we showed that images generated by this reconstructive attack to attack the CapsNet are not typically adversarial, i.e. many of the resultant attacks resemble members of the target class even with a small $\ell _ { \infty }$ norm bound. These are not the case for the CNN-based models. The extensive qualitative studies indicate that the capsule model relies on visual features similar to those used by humans. We believe this is a step towards solving the true problem posed by adversarial examples.
|
| 172 |
+
|
| 173 |
+
# REFERENCES
|
| 174 |
+
|
| 175 |
+
Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In International Conference on Machine Learning, 2018.
|
| 176 |
+
|
| 177 |
+
Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Giorgio ´ Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases, pp. 387–402. Springer, 2013.
|
| 178 |
+
|
| 179 |
+
Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017a.
|
| 180 |
+
|
| 181 |
+
Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57. IEEE, 2017b.
|
| 182 |
+
|
| 183 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, 2009.
|
| 184 |
+
|
| 185 |
+
Reuben Feinman, Ryan R. Curtin, Saurabh Shintre, and Andrew B. Gardner. Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017.
|
| 186 |
+
|
| 187 |
+
Justin Gilmer, Ryan P. Adams, Ian Goodfellow, David Andersen, and George E. Dahl. Motivating the rules of the game for adversarial example research. arXiv preprint arXiv:1807.06732, 2018a.
|
| 188 |
+
|
| 189 |
+
Justin Gilmer, Luke Metz, Fartash Faghri, Samuel S. Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial spheres. In International Conference on Learning Representations, 2018b.
|
| 190 |
+
|
| 191 |
+
Zhitao Gong, Wenlu Wang, and Wei-Shinn Ku. Adversarial and clean data are not twins. arXiv preprint arXiv:1704.04960, 2017.
|
| 192 |
+
|
| 193 |
+
Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2014.
|
| 194 |
+
|
| 195 |
+
Ian Goodfellow, Yao Qin, and David Berthelot. Evaluation methodology for attacks against confidence thresholding models. 2018.
|
| 196 |
+
|
| 197 |
+
Kathrin Grosse, Praveen Manoharan, Nicolas Papernot, Michael Backes, and Patrick McDaniel. On the (statistical) detection of adversarial examples. arXiv preprint arXiv:1702.06280, 2017.
|
| 198 |
+
|
| 199 |
+
Dan Hendrycks and Kevin Gimpel. Early methods for detecting adversarial images. In International Conference on Learning Representations, 2016.
|
| 200 |
+
|
| 201 |
+
Geoffrey E. Hinton, Sara Sabour, and Nicholas Frosst. Matrix capsules with em routing. In International Conference on Learning Representations, 2018.
|
| 202 |
+
|
| 203 |
+
Hossein Hosseini, Sreeram Kannan, and Radha Poovendran. Are odds really odd? bypassing statistical detection of adversarial examples. arXiv preprint arXiv:1907.12138, 2019.
|
| 204 |
+
|
| 205 |
+
Saumya Jetley, Nicholas A. Lord, and Philip H. S. Torr. With friends like these, who needs adversaries? In Advances in Neural Information Processing Systems, 2018.
|
| 206 |
+
|
| 207 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2014.
|
| 208 |
+
|
| 209 |
+
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
|
| 210 |
+
|
| 211 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. In International Conference on Learning Representations, 2016.
|
| 212 |
+
|
| 213 |
+
Alexey Kurakin, Ian Goodfellow, Samy Bengio, Yinpeng Dong, Fangzhou Liao, Ming Liang, Tianyu Pang, Jun Zhu, Xiaolin Hu, Cihang Xie, et al. Adversarial attacks and defences competition. arXiv preprint arXiv:1804.00097, 2018.
|
| 214 |
+
|
| 215 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 216 |
+
|
| 217 |
+
Xin Li and Fuxin Li. Adversarial examples detection in deep networks with convolutional filter statistics. In Proceedings of the IEEE International Conference on Computer Vision, 2017.
|
| 218 |
+
|
| 219 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2017.
|
| 220 |
+
|
| 221 |
+
Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. In International Conference on Learning Representations, 2017.
|
| 222 |
+
|
| 223 |
+
Felix Michels, Tobias Uelwer, Eric Upschulte, and Stefan Harmeling. On the vulnerability of capsule networks to adversarial attacks. arXiv preprint arXiv:1906.03612, 2019.
|
| 224 |
+
|
| 225 |
+
Norman Mu and Justin Gilmer. Mnist-c: A robustness benchmark for computer vision. In ICML 2019 Workshop on Uncertainty and Robustness in Deep Learning, 2019.
|
| 226 |
+
|
| 227 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, pp. 5, 2011.
|
| 228 |
+
|
| 229 |
+
Jathushan Rajasegaran, Vinoj Jayasundara, Sandaru Jayasekara, Hirunima Jayasekara, Suranga Seneviratne, and Ranga Rodrigo. Deepcaps: Going deeper with capsule networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 10725–10733, 2019.
|
| 230 |
+
|
| 231 |
+
Kevin Roth, Yannic Kilcher, and Thomas Hofmann. The odds are odd: A statistical test for detecting adversarial examples. In International Conference on Machine Learning, 2019.
|
| 232 |
+
|
| 233 |
+
Sara Sabour, Nicholas Frosst, and Geoffrey E. Hinton. Dynamic routing between capsules. In Advances in Neural Information Processing Systems, pp. 3856–3866, 2017.
|
| 234 |
+
|
| 235 |
+
Lukas Schott, Jonas Rauber, Wieland Brendel, and Matthias Bethge. Robust perception through analysis by synthesis. arXiv preprint arXiv:1805.09190, 2018.
|
| 236 |
+
|
| 237 |
+
Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. In International Conference on Learning Representations, 2017.
|
| 238 |
+
|
| 239 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2013.
|
| 240 |
+
|
| 241 |
+
Lucas Theis, Aaron van den Oord, and Matthias Bethge. A note on the evaluation of generative ¨ models. In International Conference on Learning Representations, 2015.
|
| 242 |
+
|
| 243 |
+
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
|
| 244 |
+
|
| 245 |
+
Jianxiong Xiao, James Hays, Krista A Ehinger, Aude Oliva, and Antonio Torralba. Sun database: Large-scale scene recognition from abbey to zoo. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 3485–3492. IEEE, 2010.
|
| 246 |
+
|
| 247 |
+
Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 586–595, 2018.
|
| 248 |
+
|
| 249 |
+
# APPENDIX
|
| 250 |
+
|
| 251 |
+
# A NETWORK ARCHITECTURES
|
| 252 |
+
|
| 253 |
+
Figure 6 shows the architecute of the capsule network, the CNN reconstruction model and the CNN conditional reconstruction model used for experiments on MNIST, FashionMNIST and SVHN dataset. MNIST and Fashion MNIST have exactly the same architectures while we use larger models for SVHN. Note that the only difference between the CNN reconstruction $( \mathrm { C N N + R } )$ ) and the CNN conditional reconstruction $\mathbf { \left( C N N + C R \right) }$ ) is the masking procedure on the input to the reconstruction network based on the predicted class. All three models have the same number of parameters.
|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
Figure 6: The architecture for the CapsNet, $\mathrm { C N N + R }$ and $\mathrm { C N N + C R }$ model used for our experiments on MNIST (LeCun et al., 1998), FashionMNIST (Xiao et al., 2017), and SVHN (Netzer et al., 2011).
|
| 257 |
+
|
| 258 |
+
# B TEST MODELS
|
| 259 |
+
|
| 260 |
+
The error rate of each test model used in the paper are presented in Table 4. We ensure that they have similar performance.
|
| 261 |
+
|
| 262 |
+
Table 4: Error rate of each model when the input are clean test images in each dataset.
|
| 263 |
+
|
| 264 |
+
<table><tr><td>Dataset</td><td>CapsNet</td><td>CNN+CR</td><td>CNN+R</td></tr><tr><td>MNIST</td><td>0.6%</td><td>0.7%</td><td>0.6%</td></tr><tr><td>FashionMNIST</td><td>9.6%</td><td>9.5%</td><td>9.3%</td></tr><tr><td>SVHN</td><td>10.7%</td><td>9.3%</td><td>9.5%</td></tr></table>
|
| 265 |
+
|
| 266 |
+
# C IMPLEMENTATION DETAILS
|
| 267 |
+
|
| 268 |
+
For all the $\ell _ { \infty }$ based adversarial examples, the $\ell _ { \infty }$ norm of the perturbations is bound by $\epsilon$ , which is set to 0.3, 0.1, 0.1 for MNIST, Fashion MNIST and SVHN dataset respectively following previous work (Madry et al., 2017; Song et al., 2017). In FGSM based attacks, the step size $c$ is 0.05. In BIM-based (Kurakin et al., 2016) and PGD-based (Madry et al., 2017) attacks, the step size $c$ is 0.01 for all the datasets and the number of iterations are 1000, 500 and 200 for MNIST, Fashion MNIST and SVHN dataset respectively. We choose a sufficiently large number of iterations to ensure the attacks has converged.
|
| 269 |
+
|
| 270 |
+
We use the publicly released code from the authors of (Carlini & Wagner, 2017b) to perform the CW attack for our models. The number of iterations are set to 1000 for all three datasets.
|
| 271 |
+
|
| 272 |
+
# D WHITE BOX STANDARD ATTACKS
|
| 273 |
+
|
| 274 |
+
The results of four white box standard attacks on the three datasets are shown in Table 5.
|
| 275 |
+
|
| 276 |
+
Table 5: Success rate and undetected rate of white-box targeted and untargeted attacks. In the table, $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks.
|
| 277 |
+
|
| 278 |
+
<table><tr><td rowspan="2">Networks</td><td colspan="4">Targeted (%) FGSM</td><td colspan="4">Untargeted (%) BIM</td></tr><tr><td>BIM</td><td></td><td>PGD</td><td>CW</td><td>FGSM</td><td></td><td>PGD</td><td>CW</td></tr><tr><td colspan="9">MNIST Dataset</td></tr><tr><td>CapsNet CNN+CR</td><td>3/0</td><td>82/0</td><td>86/0</td><td>99/2</td><td>11/0</td><td>99/0</td><td>99/0</td><td>100/19</td></tr><tr><td></td><td>16/0</td><td>93/0</td><td>95/0</td><td>89/8</td><td>85/0</td><td>100/0</td><td>100/0</td><td>100/28</td></tr><tr><td>CNN+R</td><td>37/0</td><td>100/0</td><td>100/0</td><td>100/47</td><td>64/0</td><td>100/0</td><td>100/0</td><td>100/63</td></tr><tr><td colspan="9">FASHION I MNISTDataset</td></tr><tr><td>CapsNet</td><td>715</td><td>54/9</td><td>55/10</td><td>100/26</td><td>35/29</td><td>86/50</td><td>87/51</td><td>100/68</td></tr><tr><td>CNN+CR</td><td>19/13</td><td>89/28</td><td>89/28</td><td>87/37</td><td>74/33</td><td>100/25</td><td>100/24</td><td>100/72</td></tr><tr><td>CNN+R</td><td>23/16</td><td>98/19</td><td>98/19</td><td>99/81</td><td>62/48</td><td>100/35</td><td>100/34</td><td>100/87</td></tr><tr><td colspan="9"> SVHN Dataset</td></tr><tr><td>CapsNet</td><td>22/20</td><td>83/45</td><td>84/46</td><td>100/90</td><td>74/67</td><td>99/70</td><td>99/68</td><td>100/94</td></tr><tr><td>CNN+CR CNN+R</td><td>24/23</td><td>99/90</td><td>99/90</td><td>99/93</td><td>87/82</td><td>100/90</td><td>100/89</td><td>100/90</td></tr><tr><td></td><td>26/24</td><td>100/86</td><td>100/86</td><td>100/94</td><td>88/82</td><td>100/92</td><td>100/92</td><td>100/95</td></tr></table>
|
| 279 |
+
|
| 280 |
+
# E VISUALIZATION OF CORRUPTED MNIST DATASET
|
| 281 |
+
|
| 282 |
+
Visualization of examples from Corrupted MNIST dataset (Mu & Gilmer, 2019) and the corresponding reconstructed images for each model are shown in Figure 7 and Figure 8.
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
Figure 7: Examples of Corrupted MNIST and the reconstructed image for each model. A red box represent that this input is flagged as an adversarial example while a green box represent this input has been misclassified and not been detected.
|
| 286 |
+
|
| 287 |
+

|
| 288 |
+
Figure 8: Examples of Corrupted MNIST and the reconstructed image for each model. A red box represents that this input is flagged as an adversarial example while a green box represents that this input has been misclassified and not been detected.
|
| 289 |
+
|
| 290 |
+
# F RECONSTRUCTIVE ATTACKS
|
| 291 |
+
|
| 292 |
+
The results of Reconstructive FGSM, BIM and PGD on the three datasets are reported in Table 6.
|
| 293 |
+
|
| 294 |
+
Table 6: Success rate and the worst case undetected rate of white-box targeted and untargeted reconstructive attacks. Below $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } \bar { / } R _ { u }$ is presented for untargeted attacks.
|
| 295 |
+
|
| 296 |
+
<table><tr><td>Networks</td><td>R-FGSM</td><td>Targeted (%) R-BIM</td><td>R-PGD</td><td>R-FGSM</td><td>Untargeted (%) R-BIM</td><td>R-PGD</td></tr><tr><td colspan="7">MNIST Dataset</td></tr><tr><td>CapsNet</td><td>1.8/0.3</td><td>51.0/33.8</td><td>50.7/33.7</td><td>6.1/1.0</td><td>84.5/35.1</td><td>88.1/37.9</td></tr><tr><td>CNN+CR</td><td>7.6/0.5</td><td>98.0/68.1</td><td>98.6/68.1</td><td>41.7/3.2</td><td>96.5/86.8</td><td>99.4/87.7</td></tr><tr><td>CNN+R</td><td>16.9/3.3</td><td>86.3/65.9</td><td>95.5/71.2</td><td>25.9/8.1</td><td>82.9/67.8</td><td>95.1/70.5</td></tr><tr><td colspan="7">FASHION MNIST Dataset</td></tr><tr><td>CapsNet</td><td>6.5/5.8</td><td>53.3/28.4</td><td>53.7/29.8</td><td>33.3/29.9</td><td>85.3/75.9</td><td>84.9/75.5</td></tr><tr><td>CNN+CR</td><td>17.7/14.0</td><td>80.3/72.4</td><td>78.1/72.0</td><td>68.0/57.3</td><td>89.8/84.4</td><td>91.5/86.0</td></tr><tr><td>CNN+R</td><td>19.4/17.6</td><td>95.2/88.8</td><td>94.6/88.4</td><td>58.6/53.5</td><td>98.8/90.1</td><td>98.9/90.0</td></tr><tr><td colspan="7">SVHN Dataset</td></tr><tr><td>CapsNet</td><td>21.6/21.2</td><td>81.1/78.3</td><td>82.0/79.2</td><td>71.6/68.3</td><td>98.9/97.5</td><td>98.9/97.5</td></tr><tr><td>CNN+CR</td><td>24.2/22.6</td><td>98.5/97.6</td><td>99.0/97.9</td><td>86.0/82.3</td><td>99.9/99.5</td><td>99.9/99.5</td></tr><tr><td>CNN+R</td><td>26.6/25.8</td><td>99.6/99.4</td><td>99.5/99.3</td><td>87.1/84.5</td><td>100.0/99.9</td><td>100.0/99.9</td></tr></table>
|
| 297 |
+
|
| 298 |
+
Figure 9 shows the plot of success rate and undetected rate versus the hyperparameter $\beta$ which balances the importance between attacking the classifier and fooling the detection mechanism in the targeted reconstructive PGD attacks on the MNIST dataset.
|
| 299 |
+
|
| 300 |
+

|
| 301 |
+
Figure 9: An example shows the plot of the success rate in (a) and undetected rate in (b) of targeted reconstructive PGD attack vesus the hyperparameter beta $\beta$ for each model on the MNIST test set. We set the max $\ell _ { \infty }$ norm $\epsilon = 0 . 3$ to create the attacks.
|
| 302 |
+
|
| 303 |
+
# G BLACK BOX ATTACKS
|
| 304 |
+
|
| 305 |
+
Table 7: Success rate and undetected rate of black-box targeted and untargeted attacks. In the table, $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks. All the numbers are shown in $\%$ .
|
| 306 |
+
H VISUALIZATION OF ADVERSARIAL EXAMPLES AND RECONSTRUCTIONS
|
| 307 |
+
|
| 308 |
+
<table><tr><td colspan="8">MNIST Dataset</td></tr><tr><td>Targeted</td><td>CapsNet</td><td>CNN-CR</td><td>CNN-R</td><td>Untargeted</td><td>CapsNet</td><td>CNN-CR</td><td>CNN-R</td></tr><tr><td>PGD</td><td>1.5/0.0</td><td>7.8/0.0</td><td>7.4/0.0</td><td>PGD</td><td>8.5/0.0</td><td>32.6/0.0</td><td>27.6/0.0</td></tr><tr><td>R-PGD</td><td>4.2/1.0</td><td>18.3/11.0</td><td>11.3/4.8</td><td>R-PGD</td><td>10.4/2.4</td><td>42.7/24.9</td><td>25.2/8.9</td></tr></table>
|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
Figure 10: The source clean image is presented in the first row with its reconstruction in the second row. For each model, the top row are the targeted adversarial examples and the bottom are the corresponding reconstruction image when the input are the PGD on the MNIST (left), R-PGD on the Fashion-MNIST (middle), CW on the SVHN (right).
|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
Figure 11: These are randomly sampled (not cherry picked) inputs (top row) and the result of adversarially perturbing them with targeted R-PGD against the CapsNet model (other rows). Many of these attacks are not successful. Note the visual similarity between many of the attacks and the target class.
|
parse/train/Skgy464Kvr/Skgy464Kvr_content_list.json
ADDED
|
@@ -0,0 +1,1674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yao Qin∗ \nUC San Diego \nyaq007@eng.ucsd.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
195,
|
| 20 |
+
370,
|
| 21 |
+
238
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Nicholas Frosst∗ Google Brain frosst@google.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
388,
|
| 30 |
+
195,
|
| 31 |
+
558,
|
| 32 |
+
238
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Sara Sabour \nGoogle Brain \nsasabour@google.com \nColin Raffel \nGoogle Brain \ncraffel@google.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
586,
|
| 41 |
+
195,
|
| 42 |
+
776,
|
| 43 |
+
238
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "",
|
| 50 |
+
"bbox": [
|
| 51 |
+
183,
|
| 52 |
+
258,
|
| 53 |
+
362,
|
| 54 |
+
301
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Garrison Cottrell UC San Diego gary@eng.ucsd.edu ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
388,
|
| 63 |
+
258,
|
| 64 |
+
557,
|
| 65 |
+
301
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Geoffrey Hinton \nGoogle Brain \ngeoffhinton@google.com ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
584,
|
| 74 |
+
258,
|
| 75 |
+
803,
|
| 76 |
+
301
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "ABSTRACT ",
|
| 83 |
+
"text_level": 1,
|
| 84 |
+
"bbox": [
|
| 85 |
+
454,
|
| 86 |
+
338,
|
| 87 |
+
544,
|
| 88 |
+
352
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "Adversarial examples raise questions about whether neural network models are sensitive to the same visual features as humans. In this paper, we first detect adversarial examples or otherwise corrupted images based on a class-conditional reconstruction of the input. To specifically attack our detection mechanism, we propose the Reconstructive Attack which seeks both to cause a misclassification and a low reconstruction error. This reconstructive attack produces undetected adversarial examples but with much smaller success rate. Among all these attacks, we find that CapsNets always perform better than convolutional networks. Then, we diagnose the adversarial examples for CapsNets and find that the success of the reconstructive attack is highly related to the visual similarity between the source and target class. Additionally, the resulting perturbations can cause the input image to appear visually more like the target class and hence become non-adversarial. This suggests that CapsNets use features that are more aligned with human perception and have the potential to address the central issue raised by adversarial examples. ",
|
| 95 |
+
"bbox": [
|
| 96 |
+
233,
|
| 97 |
+
368,
|
| 98 |
+
766,
|
| 99 |
+
561
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "1 INTRODUCTION ",
|
| 106 |
+
"text_level": 1,
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
587,
|
| 110 |
+
336,
|
| 111 |
+
602
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Adversarial examples (Szegedy et al., 2013) are inputs that are designed by an adversary to cause a machine learning system to make a misclassification. A series of studies on adversarial attacks have shown that it is easy to cause misclassifications using visually imperceptible changes to an image under $\\ell _ { p }$ -norm based similarity metrics (Goodfellow et al., 2014; Kurakin et al., 2016; Madry et al., 2017; Carlini & Wagner, 2017b; Goodfellow et al., 2018). Since the discovery of adversarial examples, there has been a constant “arms race” between better attacks and better defenses. Many new defenses have been proposed (Song et al., 2017; Gong et al., 2017; Grosse et al., 2017; Metzen et al., 2017), only to be broken shortly thereafter (Carlini & Wagner, 2017a; Athalye et al., 2018). Hinton et al. (2018) showed that capsule models are more robust to simple adversarial attacks than CNNs but Michels et al. (2019) showed that this is not the case for all attacks. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
617,
|
| 121 |
+
825,
|
| 122 |
+
756
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "The cycle of attacks and defenses motivates us to rethink both how we can improve the general robustness of neural networks as well as the high-level motivation for this pursuit. One potential path forward is to detect adversarial inputs, instead of attempting to accurately classify them (Schott et al., 2018; Roth et al., 2019). Recent work (Jetley et al., 2018; Gilmer et al., 2018b) argue that adversarial examples can exist within the data distribution, which implies that detecting adversarial examples based on an estimate of the data distribution alone might be insufficient. Instead, in this paper we develop methods for detecting adversarial examples by making use of class-conditional reconstruction networks. These sub-networks, first proposed by Sabour et al. (2017) as part of a Capsule Network (CapsNet), allow a model to produce a reconstruction of its input based on the identity and instantiation parameters of the winning capsule. Interestingly, we find that reconstructing an input from the capsule corresponding to the correct class results in a much lower reconstruction error than reconstructing the input from capsules corresponding to incorrect classes, as shown in Figure 1(a). Motivated by this, we propose using the reconstruction sub-network in a CapsNet as an attack-independent detection mechanism. Specifically, we reconstruct a given input from the pose parameters of the winning capsule and then detect adversarial examples by comparing the difference between the reconstruction distributions for natural and adversarial (or otherwise corrupted) images. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
763,
|
| 132 |
+
825,
|
| 133 |
+
902
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "image",
|
| 139 |
+
"img_path": "images/a2c6adf0cf1f639c8b0fccf3ed956f8e21c832df077bcabef2310e41920598be.jpg",
|
| 140 |
+
"image_caption": [
|
| 141 |
+
"Figure 1: (a) The histogram of $\\ell _ { 2 }$ distances between the input and the reconstruction using the correct capsule or other capsules in CapsNet on the real MNIST images. Notice the stark difference between the distributions of reconstructions of the capsule corresponding to the correct class and other capsules. (b) The histograms of $\\ell _ { 2 }$ distances between the reconstruction and the input for real and adversarial images for the three models explored in this paper on the MNIST dataset. We use PGD (Madry et al., 2017) with the $\\ell _ { \\infty }$ bound $\\epsilon = 0 . 3$ to create the attacks. "
|
| 142 |
+
],
|
| 143 |
+
"image_footnote": [],
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
99,
|
| 147 |
+
823,
|
| 148 |
+
215
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
335,
|
| 158 |
+
825,
|
| 159 |
+
420
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "We extend this detection mechanism to standard convolutional neural networks (CNNs) and show its effectiveness against black box and white box attacks on three image datasets; MNIST, FashionMNIST and SVHN. We show that capsule models achieve the strongest attack detection rates and accuracy on these attacks. We then test our method against a stronger attack, the Reconstructive Attack, specifically designed to attack our detection mechanism by generating adversarial examples with a small reconstruction error. With this attack we are able to create undetected adversarial examples, but we show that this attack is less successful in fooling the classifier than a non-reconstructive attack. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
426,
|
| 169 |
+
825,
|
| 170 |
+
525
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Among all these attacks, we find CapsNets perform the best in detecting adversarial examples. To explain the success of CapsNets over CNNs, we further diagnose the adversarial examples for CapsNets and find that 1) the success of the targeted reconstructive attack is highly dependent on the visual similarity between the source image and the target class. 2) many of the resultant attacks resemble members of the target class and so cease to be “adversarial” – i.e., they may also be misclassified by humans. These findings suggest that CapsNets with class conditional reconstructions have the potential to address the real issue with adversarial examples – networks should make predictions based on the same properties of the image that people use rather than using features that can be manipulated by an imperceptible adversarial attack. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
531,
|
| 180 |
+
825,
|
| 181 |
+
656
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "In summary, our main contributions are: ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
664,
|
| 191 |
+
436,
|
| 192 |
+
678
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "• We propose a class-conditional capsule reconstruction based detection method to detect standard white-box/black-box adversarial examples on three datasets. This detection mechanism is attack-agnostic and is successfully extended to standard convolutional neural networks. We test our detection mechanism on the corrupted MNIST dataset and show that it can work as a general out-of-distribution detector. \n• A stronger reconstructive attack is specifically designed to attack our detection mechanism but becomes less successful in fooling the classifier. \n• We perform extensive qualitative studies to explain the superior performance of CapsNets in detecting adversarial examples compared to CNNs. The results suggest that the features captured by CapsNets are more aligned with human perception. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
215,
|
| 201 |
+
689,
|
| 202 |
+
825,
|
| 203 |
+
842
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2 RELATED WORK ",
|
| 210 |
+
"text_level": 1,
|
| 211 |
+
"bbox": [
|
| 212 |
+
176,
|
| 213 |
+
863,
|
| 214 |
+
344,
|
| 215 |
+
880
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Adversarial examples were first introduced in (Biggio et al., 2013; Szegedy et al., 2013), where a given image was modified by following the gradient of a classifier’s output with respect to the image’s pixels. Goodfellow et al. (2014) then developed the more efficient Fast Gradient Sign method (FGSM), which can change the label of the input image $X$ with a similarly imperceptible perturbation that is constructed by taking an $\\epsilon$ step in the direction of the gradient. Later, the Basic Iterative Method (BIM) (Kurakin et al., 2016) and Projected Gradient Descent (Madry et al., 2017) can generate stronger attacks improved on FGSM by taking multiple steps in the direction of the gradient. In addition, Carlini & Wagner (2017b) proposed another iterative optimization-based method to construct strong adversarial examples with small perturbations. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
895,
|
| 225 |
+
823,
|
| 226 |
+
924
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 1
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "",
|
| 233 |
+
"bbox": [
|
| 234 |
+
174,
|
| 235 |
+
103,
|
| 236 |
+
825,
|
| 237 |
+
202
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "An early approach to reducing vulnerability to adversarial examples was proposed by (Goodfellow et al., 2014), where a network was trained on both clean images and adversarially perturbed ones. Since then, there has been a constant “arms race” between better attacks and better defenses; Kurakin et al. (2018) provide an overview of this field. However, many defenses against adversarial examples have been demonstrated to be an effect of “obfuscated gradients” and can be further circumvented under the white-box setting (Athalye et al., 2018). ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
174,
|
| 246 |
+
208,
|
| 247 |
+
825,
|
| 248 |
+
291
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "Another line of work attempts to circumvent adversarial examples by detecting them with a separatelytrained classifier (Gong et al., 2017; Grosse et al., 2017; Metzen et al., 2017) or using statistical properties (Hendrycks & Gimpel, 2016; Li & Li, 2017; Feinman et al., 2017; Grosse et al., 2017). However, many of these approaches were subsequently shown to be flawed (Carlini & Wagner, 2017a; Athalye et al., 2018). The most recent work in detecting adversarial examples (Roth et al., 2019) that has a $9 9 \\%$ true positive rate on CIFAR-10 dataset (Krizhevsky, 2009) has also been fully bypassed by later work (Hosseini et al., 2019) which decreased the true positive rate to less than $2 \\%$ . ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
299,
|
| 258 |
+
825,
|
| 259 |
+
396
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "Similar to our work, Schott et al. (2018) also investigated the effectiveness of a class-conditional generative model as a defense mechanism for MNIST digits. However, we differ in some important ways. Their model is in some ways the opposite of ours - they first attempt to generate the input, and then make a classification on the resulting generated images, whereas our method attempts to first classify the input, making use of an otherwise unchanged capsule classification model, and then generates the input from a high level representation. As such, our method does not increase the computational overhead of classifying the input, compared to the approach of Schott et al. (2018). In addition, the work of Schott et al. (2018) is only applied to MNIST, so our results on the more complex datasets represent an improvement. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
402,
|
| 269 |
+
825,
|
| 270 |
+
529
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "3 PRELIMINARIES ",
|
| 277 |
+
"text_level": 1,
|
| 278 |
+
"bbox": [
|
| 279 |
+
176,
|
| 280 |
+
558,
|
| 281 |
+
338,
|
| 282 |
+
573
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "Adversarial Examples Given a clean test image $x$ , its corresponding label $y$ , and a classifier $f ( \\cdot )$ which predicts a class label given an input, we refer to $x ^ { \\prime } = x + \\delta$ as an adversarial example if it is able to fool the classifier into making a wrong prediction $f ( x ^ { \\prime } ) \\neq f ( x ) = y .$ . The small adversarial perturbation $\\delta$ (where “small” is measured under some norm) causes the adversarial example $x ^ { \\prime }$ to appear visually similar to the clean image $x$ but to be classified differently. In the unrestricted case where we only require that $f ( x ^ { \\prime } ) \\neq y$ , we refer to $x ^ { \\prime }$ as an “untargeted adversarial example”. A more powerful attack is to generate a “targeted adversarial example”: instead of simply fooling the classifier to make a wrong prediction, we force the classifier to predict some targeted label $f ( x ^ { \\prime } ) = t \\neq y$ . In this paper, the target label $t$ is selected uniformly at random as any label which is not the ground-truth correct label. As is standard practice in the literature, in this paper we test our detection mechanism on three $\\ell _ { \\infty }$ norm based attacks (fast gradient sign method (FGSM) (Goodfellow et al., 2014), the basic iterative method (BIM) (Kurakin et al., 2016), projected gradient descent (PGD) (Madry et al., 2017)) and one $\\ell _ { 2 }$ norm based attack (Carlini-Wagner (CW) (Carlini & Wagner, 2017b)). ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
594,
|
| 292 |
+
825,
|
| 293 |
+
773
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Capsule Networks Capsule Networks (CapsNets) are an alternative architecture for neural networks (Sabour et al., 2017; Hinton et al., 2018). In this work we make use of the CapsNet architecture detailed by (Sabour et al., 2017). Unlike a standard neural network which is made up of layers of scalar-valued units, CapsNets are made up of layers of capsules, that output a vector or matrix. Intuitively, just as one can think of the activation of a unit in a normal neural network as the presence of a feature in the input, the activation of a capsule can be thought of as both the presence of a feature and the pose parameters that represent attributes of that feature. A top-level capsule in a classification network therefore outputs both a classification and pose parameters that represent the instance of that class in the input. This high level representation allows us to train a reconstruction network. ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
797,
|
| 303 |
+
825,
|
| 304 |
+
924
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "Threat Model In this paper, we test our detection mechanism against both white-box and black-box attacks. For white-box attacks, the adversary has full access to the model as well as its parameters. In particular, the adversary is allowed to compute the gradient through the model to generate adversarial examples. To perform black-box attacks, the adversary is allowed to know the network architecture but not its parameters. Therefore, we retrain a substitute model that has the same architecture as the target model and generate adversarial examples by attacking the substitute model. Then we transfer these attacks to the target model. For $\\ell _ { \\infty }$ based attacks, we always control the $\\ell _ { \\infty }$ norm of the adversarial perturbation to be within a relatively small bound $\\epsilon _ { \\infty }$ , specific to each dataset. ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
174,
|
| 313 |
+
103,
|
| 314 |
+
825,
|
| 315 |
+
215
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 3
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "4 DETECTING ADVERSARIAL IMAGES BY RECONSTRUCTION ",
|
| 322 |
+
"text_level": 1,
|
| 323 |
+
"bbox": [
|
| 324 |
+
174,
|
| 325 |
+
237,
|
| 326 |
+
692,
|
| 327 |
+
252
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 3
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "To detect adversarial images, we make use of the reconstruction network proposed in (Sabour et al., 2017), which takes pose parameters $v$ as input and outputs the reconstructed image $r ( v )$ . The reconstruction network is simply a fully connected neural network with two ReLU hidden layers with 512 and 1024 units respectively, with a sigmoid output with the same dimensionality as the dataset. The reconstruction network is trained to minimize the $\\ell _ { 2 }$ distance between the input image and the reconstructed image. This same network architecture is used for all the models and datasets we explore. The only difference is what is given to the reconstruction network as input. ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
174,
|
| 336 |
+
268,
|
| 337 |
+
825,
|
| 338 |
+
367
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 3
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "4.1 MODELS ",
|
| 345 |
+
"text_level": 1,
|
| 346 |
+
"bbox": [
|
| 347 |
+
174,
|
| 348 |
+
386,
|
| 349 |
+
276,
|
| 350 |
+
398
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 3
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "CapsNet The reconstruction network of the CapsNet is class-conditional: It takes in the pose parameters of all the class capsules and masks all values to 0 except for the pose parameters of the predicted class. We use this reconstruction network for detecting adversarial attacks by measuring the Euclidean distance between the input and a class conditional reconstruction. Specifically, for any given input $x$ , the CapsNet outputs a prediction $f ( x )$ as well as the pose parameters $v$ for all classes. The reconstruction network takes in the pose parameters and then selects the pose parameter corresponding to the predicted class, denoted as $v _ { f ( x ) }$ , to generate a reconstruction $r ( v _ { f ( x ) } )$ . Then we compute the $\\ell _ { 2 }$ reconstruction distance $d ( \\boldsymbol { x } ) = \\| r ( \\boldsymbol { v } _ { f ( \\boldsymbol { x } ) } ) , \\boldsymbol { x } \\| _ { 2 }$ between the reconstructed image and the input image, and compare it with a pre-defined detection threshold $\\theta$ (described below in Section 4.2). If the reconstruction distance ${ \\bar { d } } ( x )$ is higher than the detection threshold $\\theta$ , we flag the input as an adversarial example. Figure 1 (b) shows an example of histograms of reconstruction distances for natural images and typical adversarial examples. ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
174,
|
| 359 |
+
411,
|
| 360 |
+
825,
|
| 361 |
+
579
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 3
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "$\\mathbf { C N N + C R }$ Although our strategy is inspired by the reconstruction networks used in CapsNets, the strategy can be extended to standard convolutional neural networks (CNNs). We create a similar architecture, CNN with conditional reconstruction $( \\mathrm { C N N + C R } )$ ), by dividing the penultimate hidden layer of a CNN into groups corresponding to each class. The sum of each neuron group serves as the logit for that particular class and the group itself serves the same purpose as the pose parameters in the CapsNet. We use the same masking mechanism as Sabour et al. (2017) to select the pose parameter corresponding to the predicted label $v _ { f ( x ) }$ and generate the reconstruction based on the selected pose parameters. In this way we extend the class-conditional reconstruction network to standard CNNs. ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
174,
|
| 370 |
+
597,
|
| 371 |
+
825,
|
| 372 |
+
708
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "$\\mathbf { C N N + R }$ We can also create a more na¨ıve implementation of our strategy by simply computing the reconstruction from the activations in the entire penultimate layer without any masking mechanism. We call this model the $\\mathrm { \" C N N { + } R } \\mathrm { \" }$ model. In this way we are able to study the effect of conditioning on the predicted class. ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
174,
|
| 381 |
+
724,
|
| 382 |
+
825,
|
| 383 |
+
781
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "4.2 DETECTION THRESHOLD ",
|
| 390 |
+
"text_level": 1,
|
| 391 |
+
"bbox": [
|
| 392 |
+
176,
|
| 393 |
+
799,
|
| 394 |
+
387,
|
| 395 |
+
814
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "We find the threshold $\\theta$ for detecting adversarial inputs by measuring the reconstruction error between a validation input image and its reconstruction. If the distance between the input and the reconstruction is above the chosen threshold $\\theta$ , we classify the data as adversarial. Choosing the detection threshold $\\theta$ involves a trade-off between false positive and false negative detection rates. The optimal threshold depends on the probability of the system being attacked. Such a trade-off is discussed by Gilmer et al. (2018a). In our experiments we don’t tune this parameter and simply set it as the 95th percentile of validation distances. This means our false positive rate on real validation data is $5 \\%$ . ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
174,
|
| 404 |
+
825,
|
| 405 |
+
825,
|
| 406 |
+
924
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "table",
|
| 412 |
+
"img_path": "images/bb51bc9d056a4282faaabb131c54b737429353105bb0f24c4a86b4eb52b64c94.jpg",
|
| 413 |
+
"table_caption": [
|
| 414 |
+
"Table 1: Success Rate / Undetected Rate of white-box targeted and untargeted attacks on the MNIST dataset. In the table, $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks. A smaller success rate and undetected rate means a stronger defense model. Full results for FashionMNIST and SVHN can be seen in Table 5 in the Appendix. "
|
| 415 |
+
],
|
| 416 |
+
"table_footnote": [],
|
| 417 |
+
"table_body": "<table><tr><td rowspan=\"2\">Networks</td><td colspan=\"4\">Targeted (%)</td><td colspan=\"4\">Untargeted (%)</td></tr><tr><td>FGSM</td><td>BIM</td><td>PGD</td><td>CW</td><td>FGSM</td><td>BIM</td><td>PGD</td><td>CW</td></tr><tr><td>CapsNet</td><td>3/0</td><td>82/0</td><td>86/0</td><td>99/2</td><td>11/0</td><td>99/0</td><td>99/0</td><td>100/19</td></tr><tr><td>CNN+CR</td><td>16/0</td><td>93/0</td><td>95/0</td><td>89/8</td><td>85/0</td><td>100/0</td><td>100/0</td><td>100/28</td></tr><tr><td>CNN+R</td><td>37/0</td><td>100/0</td><td>100/0</td><td>100/47</td><td>64/0</td><td>100/0</td><td>100/0</td><td>100/63</td></tr></table>",
|
| 418 |
+
"bbox": [
|
| 419 |
+
173,
|
| 420 |
+
169,
|
| 421 |
+
825,
|
| 422 |
+
252
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 4
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "4.3 EVALUATION METRICS ",
|
| 429 |
+
"text_level": 1,
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
284,
|
| 433 |
+
375,
|
| 434 |
+
297
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 4
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "We use Success Rate to measure the success of attacks. For targeted attacks, the success rate $S _ { t }$ is defined as the proportion of inputs which are classified as the target class, $\\begin{array} { r } { S _ { t } = \\frac { 1 } { N } \\sum _ { i } ^ { N } ( f ( x _ { i } ^ { \\prime } ) = } \\end{array}$ $t _ { i }$ ), while the success rate for untargeted attacks is defined as the proportion of inputs which are misclassified, $\\begin{array} { r } { S _ { u } ~ = ~ \\frac { 1 } { N } \\sum _ { i } ^ { N } ( f ( x _ { i } ^ { \\prime } ) ~ \\neq ~ y _ { i } ) } \\end{array}$ . Previous work (Carlini & Wagner, $2 0 1 7 \\mathrm { a }$ ; Hosseini et al., 2019) used the True Positive Rate to measure the proportion of adversarial examples that are detected, which alone is insufficient to measure the ability of different detection mechanism because the unsuccessful adversarial examples do not have to be detected. Therefore, in this paper, we propose to use the Undetected Rate: the proportion of attacks that are successful and undetected to evaluate the detection mechanism. For targeted attacks, the undetected rate is defined as $\\begin{array} { r } { R _ { t } = \\frac { 1 } { N } \\sum _ { i } ^ { N } ( f ( x _ { i } ^ { \\prime } ) = t _ { i } ) \\cap ( d ( x _ { i } ^ { \\prime } ) \\leq \\theta ) } \\end{array}$ , where $d ( \\cdot )$ computes the reconstruction distance of the input and $\\theta$ denotes the detection threshold introduced in Section 4.2. Similarly, the undetected rate for untargeted attacks Ru can be defined as Ru = 1N PNi (f (x0i) 6= yi) ∩ (d(x0i) ≤ θ). The smaller undetected rate can also be used to evaluate the attacks (higher is better). We also plot the Undetected Rate vs. False Positive Rate curve to compare the detection performance between different models, where False Positive Rate is defined as the proportion of clean examples that are misclassified as the adversarial example by the detection method. ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
173,
|
| 443 |
+
309,
|
| 444 |
+
826,
|
| 445 |
+
555
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 4
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "4.4 TEST MODELS AND DATASETS ",
|
| 452 |
+
"text_level": 1,
|
| 453 |
+
"bbox": [
|
| 454 |
+
176,
|
| 455 |
+
574,
|
| 456 |
+
426,
|
| 457 |
+
588
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 4
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "In all experiments, all three models (CapsNet, $\\mathrm { C N N + R }$ , and $\\mathbf { C N N + C R }$ ) have the same number of parameters and were trained with Adam (Kingma & Ba, 2014) for the same number of epochs. In general, all models achieved similar test accuracy. We did not do an exhaustive hyperparameter search on these models, instead we chose hyperparameters that allowed each model to perform roughly equivalently on the test sets. We run experiments on three datasets: MNIST (LeCun et al., 1998), FashionMNIST (Xiao et al., 2017), and SVHN (Netzer et al., 2011). The test error rate for each model on these three datasets, as well as details of the model architectures, can be seen in Section A and Section B in the Appendix. ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
601,
|
| 467 |
+
826,
|
| 468 |
+
712
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 4
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "5 EXPERIMENTS ",
|
| 475 |
+
"text_level": 1,
|
| 476 |
+
"bbox": [
|
| 477 |
+
176,
|
| 478 |
+
734,
|
| 479 |
+
326,
|
| 480 |
+
751
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 4
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "We first demonstrate how reconstruction networks can detect standard white and black-box attacks in addition to naturally corrupted images. Then, we introduce the “reconstructive attack”, which is specifically designed to circumvent our defense and show that it is a more powerful attack in this setting. Based on this finding, we qualitatively study the kind of misclassifications caused by the reconstructive attack and argue that they suggest that CapsNets learn features that are better aligned with human perception. ",
|
| 487 |
+
"bbox": [
|
| 488 |
+
174,
|
| 489 |
+
767,
|
| 490 |
+
825,
|
| 491 |
+
851
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 4
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "5.1 STANDARD ATTACKS ",
|
| 498 |
+
"text_level": 1,
|
| 499 |
+
"bbox": [
|
| 500 |
+
176,
|
| 501 |
+
868,
|
| 502 |
+
361,
|
| 503 |
+
883
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "White Box We present the success and undetected rates for several targeted and untargeted attacks on MNIST (Table 1), FashionMNIST, and SVHN (Table 5 presented in the Appendix). Our method is able to accurately detect many attacks with very low undetected rates. Capsule models almost always have the lowest undetected rates out of our three models. It is worth noting that this method performs best with the simplest dataset, MNIST, and that the highest undetected rates are found with the Carlini-Wagner attack on the SVHN dataset. This illustrates both the strength of this attack and a shortcoming of our defense, namely that our detection mechanism relies on $\\ell _ { 2 }$ image distance as a proxy for visual similarity, and in the case of higher dimensional color datasets such as SVHN, this proxy is less meaningful. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
173,
|
| 512 |
+
895,
|
| 513 |
+
823,
|
| 514 |
+
924
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "table",
|
| 520 |
+
"img_path": "images/f218de5b2efe49ccc7d48696fe5a88aa1c44078c6e5449572608fa16ac44faa4.jpg",
|
| 521 |
+
"table_caption": [
|
| 522 |
+
"Table 2: Error Rate/Undetected Rate on the Corrupted MNIST dataset. A smaller error rate and undetected rate means a better defense model. "
|
| 523 |
+
],
|
| 524 |
+
"table_footnote": [],
|
| 525 |
+
"table_body": "<table><tr><td>Corruption</td><td>Clean</td><td>Gaussian Noise</td><td>Gaussian Blur</td><td>Line</td><td>Dotted Line</td><td>Elastic Transform</td></tr><tr><td>CapsNet</td><td>0.6/0.2</td><td>12.1/0.0</td><td>10.3/4.1</td><td>19.6/0.1</td><td>4.3/0.0</td><td>11.3/0.8</td></tr><tr><td>CNN+CR</td><td>0.7/0.3</td><td>9.8/0.0</td><td>6.7/4.2</td><td>17.6/0.1</td><td>4.2/0.0</td><td>11.1/1.1</td></tr><tr><td>CNN+R</td><td>0.6/0.4</td><td>6.7/0.0</td><td>8.9/6.4</td><td>18.9/0.1</td><td>3.1/0.0</td><td>12.2/2.1</td></tr><tr><td>Corruption</td><td>Saturate</td><td>JPEG</td><td>Quantize</td><td>Sheer</td><td>Spatter</td><td>Rotate</td></tr><tr><td>CapsNet</td><td>3.5/0.0</td><td>0.8/0.4</td><td>0.7/0.1</td><td>1.6/0.4</td><td>1.9/0.2</td><td>6.5/2.2</td></tr><tr><td>CNN+CR</td><td>1.5/0.0</td><td>0.8/0.5</td><td>0.9/0.1</td><td>2.1/0.4</td><td>1.8/0.4</td><td>6.1/1.6</td></tr><tr><td>CNN+R</td><td>1.2/0.0</td><td>0.7/0.5</td><td>0.7/0.2</td><td>2.2/0.7</td><td>1.8/0.4</td><td>6.5/3.4</td></tr><tr><td>Corruption</td><td>Contrast</td><td>Inverse</td><td>Canny Edge</td><td>Fog</td><td>Frost</td><td>Zigzag</td></tr><tr><td>CapsNet</td><td>92.0/0.0</td><td>91.0/0.0</td><td>21.5/0.0</td><td>83.7/0.0</td><td>70.6/0.0</td><td>16.9/0.0</td></tr><tr><td>CNN+CR</td><td>72.0/32.6</td><td>78.1/0.0</td><td>34.6/0.0</td><td>66.0/0.5</td><td>37.6/0.0</td><td>18.4/0.0</td></tr><tr><td>CNN+R</td><td>73.4/49.4</td><td>88.1/0.0</td><td>23.4/0.0</td><td>65.6/0.1</td><td>36.2/0.0</td><td>17.5/0.0</td></tr></table>",
|
| 526 |
+
"bbox": [
|
| 527 |
+
184,
|
| 528 |
+
138,
|
| 529 |
+
813,
|
| 530 |
+
359
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 5
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "",
|
| 537 |
+
"bbox": [
|
| 538 |
+
174,
|
| 539 |
+
388,
|
| 540 |
+
825,
|
| 541 |
+
486
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 5
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "Black Box We also tested our detection mechanism results on black box attacks. Given the low undetected rates in the white-box settings, it is not surprising that our detection method is able to detect black box attacks as well. In fact, on the MNIST dataset the capsule model is able to detect all targeted and untargeted PGD attacks. Both the CNN-R and the CNN-CR models are able to detect the black box attacks as well, but with a relatively higher undetected rate. A table of these results can be seen in Table 7 in the Appendix. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
498,
|
| 551 |
+
825,
|
| 552 |
+
583
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "5.2 CORRUPTION ATTACKS ",
|
| 559 |
+
"text_level": 1,
|
| 560 |
+
"bbox": [
|
| 561 |
+
176,
|
| 562 |
+
597,
|
| 563 |
+
377,
|
| 564 |
+
611
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 5
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Recent work has argued that improving the robustness of neural networks to $\\ell _ { p }$ norm bounded adversarial attacks should not come at the expense of increasing error rates under distributional shifts that do not affect human classification rates and are likely to be encountered in the “realworld” (Gilmer et al., 2018a). For example, if an image is corrupted due to adverse weather, lighting, or occlusion, we might hope that our model can continue to provide reliable predictions or detect the distributional shift. We can test our detection method on its ability to detect these distributional shifts by making use of the Corrupted MNIST dataset (Mu & Gilmer, 2019). This data set contains many visual transformations of MNIST that do not seem to affect human performance, but nevertheless are strongly misclassified by state-of-the-art MNIST models. Our three models can almost always detect these distributional shifts (in all corruptions CapsNets have either a small undetected rate or an undetected rate of 0). The error rate (the proportion of misclassified input) and undetected rate of three test models on the Corrupted MNIST dataset is shown in Table 2. Please refer to Figure 7 and Figure 8 in the Appendix for visualization of Corrupted MNIST. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
623,
|
| 574 |
+
825,
|
| 575 |
+
804
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 5
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "5.3 RECONSTRUCTIVE ATTACKS ",
|
| 582 |
+
"text_level": 1,
|
| 583 |
+
"bbox": [
|
| 584 |
+
176,
|
| 585 |
+
827,
|
| 586 |
+
411,
|
| 587 |
+
840
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 5
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "Thus far we have only evaluated previously-defined attacks. Following the suggestion in (Carlini & Wagner, 2017a) that detection methods need to show effectiveness towards defense-aware attacks, we introduce an attack specifically designed to take into account our defense mechanism. In order to construct adversarial examples that cannot be detected by the network, we propose a two-stage optimization method to generate a “reconstructive attack”. ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
174,
|
| 596 |
+
853,
|
| 597 |
+
825,
|
| 598 |
+
922
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 5
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "table",
|
| 604 |
+
"img_path": "images/794580c3a59f4efe6805071bd40e40c4d6ae7ed3b575737ebb0ebed4af3e1052.jpg",
|
| 605 |
+
"table_caption": [
|
| 606 |
+
"Table 3: Success rate and the worst case undetected rate of white-box targeted and untargeted reconstructive attacks. $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks. The worst case undetected rate is reported via tuning the hyperparameter $\\beta$ in Eqn 1 and Eqn 2. The best defense models are shown in bold (smaller success rate and undetected rate is better). All the numbers are shown in $\\%$ . A full table with more attacks can be seen in Table 6 in Appendix. "
|
| 607 |
+
],
|
| 608 |
+
"table_footnote": [],
|
| 609 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">MNIST</td><td colspan=\"2\">FASHION</td><td colspan=\"2\">SVHN</td></tr><tr><td></td><td>Targeted R-PGD</td><td>Untargeted R-PGD</td><td>Targeted R-PGD</td><td>Untargeted R-PGD</td><td>Targeted R-PGD</td><td>Untargeted R-PGD</td></tr><tr><td>CapsNet</td><td>50.7/33.7</td><td>88.1/37.9</td><td>53.7/29.8</td><td>84.9/75.5</td><td>82.0/79.2</td><td>98.9/97.5</td></tr><tr><td>CNN+CR</td><td>98.6/68.1</td><td>99.4/87.7</td><td>89.8/84.4</td><td>91.5/86.0</td><td>99.0/97.9</td><td>99.9/99.5</td></tr><tr><td>CNN+R</td><td>95.5/71.2</td><td>95.1/70.5</td><td>94.6/88.4</td><td>98.9/90.0</td><td>99.5/99.3</td><td>100.0/99.9</td></tr></table>",
|
| 610 |
+
"bbox": [
|
| 611 |
+
192,
|
| 612 |
+
183,
|
| 613 |
+
805,
|
| 614 |
+
286
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 6
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "image",
|
| 620 |
+
"img_path": "images/dcef3ee1e045e15cdcffd265fc6c139d590570c97f184c878a84ea161f509e47.jpg",
|
| 621 |
+
"image_caption": [
|
| 622 |
+
"Figure 2: The undetected rate of the white-box targeted defense-aware R-PGD attack versus the False Positive Rate on the MNIST, Fashion-MNIST and SVHN datasets. "
|
| 623 |
+
],
|
| 624 |
+
"image_footnote": [],
|
| 625 |
+
"bbox": [
|
| 626 |
+
186,
|
| 627 |
+
301,
|
| 628 |
+
810,
|
| 629 |
+
422
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 6
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "Untargeted Reconstructive Attacks To construct untargeted reconstructive attacks, we first update the perturbation based on the gradient of the cross-entropy loss function following a standard FGSM attack (Goodfellow et al., 2014), that is: ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
174,
|
| 638 |
+
492,
|
| 639 |
+
821,
|
| 640 |
+
535
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 6
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "equation",
|
| 646 |
+
"img_path": "images/6228cf9c9c7a1599000bae98cd134f862f82265e11fdb8160b0ca0e1569495a8.jpg",
|
| 647 |
+
"text": "$$\n\\delta \\gets \\mathrm { c l i p } _ { \\epsilon } ( \\delta + c \\cdot \\beta \\cdot \\mathrm { s i g n } ( \\nabla _ { \\delta } \\ell _ { n e t } ( f ( x + \\delta ) , y ) ) ) ,\n$$",
|
| 648 |
+
"text_format": "latex",
|
| 649 |
+
"bbox": [
|
| 650 |
+
333,
|
| 651 |
+
541,
|
| 652 |
+
663,
|
| 653 |
+
559
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 6
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "where $\\ell _ { n e t } ( f ( \\cdot ) , y )$ is the cross-entropy loss function, $\\epsilon$ is the $\\ell _ { \\infty }$ bound for our attacks, $c$ is a hyperparameter controlling the step size in each iteration and $\\beta$ is a hyperparameter which balances the importance of the cross-entropy loss and the reconstruction loss (explained further below). In the second stage, we focus on constraining the reconstructed image from the newly predicted label to have a small reconstruction distance by updating $\\delta$ according to ",
|
| 660 |
+
"bbox": [
|
| 661 |
+
174,
|
| 662 |
+
565,
|
| 663 |
+
825,
|
| 664 |
+
637
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 6
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "equation",
|
| 670 |
+
"img_path": "images/713bed1386dadf1c21eec2199825c694d4885206c4c76c90963fa4c13c68d8d3.jpg",
|
| 671 |
+
"text": "$$\n\\delta \\gets \\mathrm { c l i p } _ { \\epsilon } ( \\delta - c \\cdot ( 1 - \\beta ) \\cdot \\mathrm { s i g n } ( \\nabla _ { \\delta } ( \\| r ( v _ { f ( x + \\delta ) } ) - ( x + \\delta ) \\| _ { 2 } ) ) ) ,\n$$",
|
| 672 |
+
"text_format": "latex",
|
| 673 |
+
"bbox": [
|
| 674 |
+
282,
|
| 675 |
+
643,
|
| 676 |
+
714,
|
| 677 |
+
661
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 6
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "where $r \\big ( v _ { f ( x + \\delta ) } \\big )$ is the class-conditional reconstruction based on the predicted label $f ( x + \\delta )$ in a CapsNet or $\\mathrm { C N N + C R }$ network. The $\\delta$ used here is the optimized $\\delta$ from the first stage. $\\| r ( v _ { f ( x + \\delta ) } ) -$ $( x + \\delta ) \\| _ { 2 }$ is the $\\ell _ { 2 }$ reconstruction distance between the reconstructed image and the input image. Since the $\\mathrm { C N N + R }$ network does not use the class conditional reconstruction, we simply use the reconstructed image without the masking mechanism. According to Eqn 1 and Eqn 2, we can see that $\\beta$ balances the importance between the success rate of attacks and the reconstruction distance. This hyperparameter was tuned for each model and each dataset in order to create the strongest attacks. The success rate and undetected rate change as this parameter, which is shown in Figure 9 in Appendix. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
173,
|
| 686 |
+
667,
|
| 687 |
+
825,
|
| 688 |
+
796
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Targeted Reconstructive Attacks We perform a similar two-stage optimization to construct targeted reconstructive attacks, by defining a target label and attempting to maximize the classification probability of this label, and minimize the reconstruction error from corresponding capsule. Because the targeted label is given, another way to construct targeted reconstructive attacks is to combine these two stages into one stage via minimizing the loss function $\\ell = \\boldsymbol { \\beta } \\cdot \\ell _ { n e t } ( f ( x + \\delta ) , y ) + ( 1 - \\beta ) \\cdot \\| \\boldsymbol { r } ( v _ { f ( x + \\delta ) } ) - ( x + \\delta ) \\| _ { 2 }$ . We implemented both of these targeted reconstructive attacks and found that the two-stage version is a stronger attack. Therefore, all the Reconstructive Attack experiments performed in this paper are based on two-stage optimization. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
811,
|
| 698 |
+
825,
|
| 699 |
+
924
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 6
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "image",
|
| 705 |
+
"img_path": "images/3305f2537867e2d22b33557a43922ed39ef464bb4d5a47f2d33130e838f37e08.jpg",
|
| 706 |
+
"image_caption": [
|
| 707 |
+
"Figure 3: The defense-aware R-PGD attack is tested on the CIFAR-10 dataset with $\\epsilon _ { \\infty } = 8 / 2 5 5$ . Left: The undetected rate of white-box/black-box defense-aware R-PGD versus the Fasle Positive Rate for the clean examples. The test model is our CapsNet. Right: The undetected rate of white-box defense-aware R-PGD versus the Fasle Positive Rate for the clean examples. The test model is our CapsNet using class-conditional reconstruction, “CapsNet All” using all capsule information, and the DeepCaps (Rajasegaran et al., 2019) using class-independent capsule information. "
|
| 708 |
+
],
|
| 709 |
+
"image_footnote": [],
|
| 710 |
+
"bbox": [
|
| 711 |
+
228,
|
| 712 |
+
103,
|
| 713 |
+
766,
|
| 714 |
+
273
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 7
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "We build our reconstructive attack based on the standard PGD attack, denoted as R-PGD, and test the performance of our detection models against this reconstructive attack in a white-box setting (white-box Reconstructive FGSM and BIM are reported in Table 6 in the Appendix). Comparing Table 1 and Table 3, we can see that the Reconstructive Attack is significantly less successful at changing the models prediction (lower success rates than the standard attack). However, this attack is more successful at fooling our detection method. For all attacks and datasets the capsule model has the lowest attack success rate and the lowest undetected rate. We report results for black-box R-PGD attacks in Table 7 in the Appendix, which suggest similar conclusions. ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
173,
|
| 723 |
+
405,
|
| 724 |
+
825,
|
| 725 |
+
516
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 7
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "In addition, we report the undetected rate of the white-box targeted defense-aware R-PGD attack versus the False Positive Rate on the MNIST, Fashion-MNIST and SVHN datasets in Figure 2. We can clearly see that the undetected rate of the defense-aware attack against CapsNet is significantly smaller than the CNN-based networks, which suggests that CapsNets are more robust against adversarial attacks. Furthermore, CNN with class-conditional reconstruction $\\mathrm { C N N + C R }$ ) has smaller undetected rate at the same False Positive Rate compared to the CNN without class-conditional reconstruction $( \\mathrm { C N N + R } )$ , which suggests the class-conditional information is helpful in our models to improve the robustness against adversarial attacks. ",
|
| 732 |
+
"bbox": [
|
| 733 |
+
173,
|
| 734 |
+
522,
|
| 735 |
+
825,
|
| 736 |
+
633
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 7
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "5.4 CIFAR-10 DATASET ",
|
| 743 |
+
"text_level": 1,
|
| 744 |
+
"bbox": [
|
| 745 |
+
174,
|
| 746 |
+
655,
|
| 747 |
+
356,
|
| 748 |
+
669
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 7
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "In order to show that our method based on CapsNet is capable to scale up to more complex datasets, we test our detection method with a deeper reconstruction network on CIFAR-10 (Krizhevsky, 2009). The classification accuracy on the clean test dataset is $9 2 . 2 \\%$ . In addition, we display the undetected rate of the white-box/black-box defense-aware R-PGD attack against CapsNets versus the False Positive Rate in Figure 3 (Left), where we can see a significant drop of the undetected rate of black-box R-PGD compared to the white-box setting. This indicates the CapsNets greatly reduce the attack transferability and the threat of black-box attacks. ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
173,
|
| 757 |
+
681,
|
| 758 |
+
825,
|
| 759 |
+
780
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 7
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "Class-conditional Information To investigate the effectiveness of the class-conditional information in the reconstruction network, we compare our CapsNet based on (Sabour et al., 2017) with the other two variants of CapsNets: “CapsNet All” and “DeepCaps” (Rajasegaran et al., 2019). In “CapsNet All”, we remove the masking mechanism in the CapsNet and use all the capsules to do the reconstruction. In “DeepCaps”, we extract the winning-capsule information as a single vector and used it as the input for the reconstruction network instead of using a masking mechanism to mask out the losing capsules information. In this way, the class information in DeepCaps is more explicitly fed into the reconstruction network. As shown in Figure 3 (right), our CapsNet has the best detection performance (the lowest undetected rate at the same False Positive Rate) compared to the other two ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
173,
|
| 768 |
+
797,
|
| 769 |
+
825,
|
| 770 |
+
924
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 7
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "image",
|
| 776 |
+
"img_path": "images/c56b33d8cdce5d8097eb9eb90e235535bcc6ffb5b8dd0841e9a8552d776d4812.jpg",
|
| 777 |
+
"image_caption": [],
|
| 778 |
+
"image_footnote": [],
|
| 779 |
+
"bbox": [
|
| 780 |
+
174,
|
| 781 |
+
102,
|
| 782 |
+
820,
|
| 783 |
+
286
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 8
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "image",
|
| 789 |
+
"img_path": "images/1c871acd5f931848f081ff2f41686870d3b7f5acb5a9b95c3c7d55a07d452d6a.jpg",
|
| 790 |
+
"image_caption": [
|
| 791 |
+
"Figure 4: This diagram visualizes the adversarial success rates for each source/target pair for targeted R-PGD attacks on Fashion-MNIST with $\\epsilon _ { \\infty } = 2 5 / 2 5 5$ . The size of the box at position x, y represents the success rate of adversarially perturbing inputs of class $\\mathbf { X }$ to be classified as class y. We can see that there is significantly higher variance for the CapsNet model than for the two CNN models. ",
|
| 792 |
+
"Figure 5: These are randomly sampled (not cherry picked) successful and undetected adversarial attacks created by R-PGD with a target class of 0 for each model on the SVHN dataset $\\epsilon _ { \\infty } = 2 5 / 2 5 5 )$ . We can see that for the capsule model, many of the attacks are not “adversarial” as they resemble members of the target class. "
|
| 793 |
+
],
|
| 794 |
+
"image_footnote": [],
|
| 795 |
+
"bbox": [
|
| 796 |
+
223,
|
| 797 |
+
366,
|
| 798 |
+
772,
|
| 799 |
+
476
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 8
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "Capsule models. “DeepCaps” performs slightly worse than our “CapsNet” and “CapsNet All” has the worst detection performance. Therefore, we conclude that the class-conditional information used in the reconstruction network increases the model’s robustness to adversarial attack. This also holds true to CNN-based networks because $\\mathrm { C N N + C R }$ has a better detection performance than $\\mathrm { C N N + R }$ , shown in Figure 2. ",
|
| 806 |
+
"bbox": [
|
| 807 |
+
174,
|
| 808 |
+
571,
|
| 809 |
+
825,
|
| 810 |
+
642
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 8
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "6 VISUAL COHERENCE OF THE RECONSTRUCTIVE ATTACK ",
|
| 817 |
+
"text_level": 1,
|
| 818 |
+
"bbox": [
|
| 819 |
+
174,
|
| 820 |
+
662,
|
| 821 |
+
678,
|
| 822 |
+
679
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 8
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "The great success of CapsNet over CNN-based models motivates us to further diagnose the generated adversarial examples for CapsNets. If our true aim in adversarial robustness research is to create models that make predictions based on reasonable and human-observable features, then we would prefer models that are more likely to misclassify a “shirt” as a “t-shirt” (in the case of FashionMNIST) than to misclassify a “bag” as a “sweater”. For a model to behave ideally, the success of an adversarial perturbation would be related to the visual similarity between the source and the target class. By visualizing a matrix of adversarial success rates between each pair of classes (shown in Figure 4), we can see that for the capsule model there is a great variance between the source and target class pairs and that the success rate of attacks is highly related to the visual similarity of the classes. However, this is not the case for either of the other two CNN-based models. ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
174,
|
| 831 |
+
694,
|
| 832 |
+
825,
|
| 833 |
+
833
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 8
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "Thus far we have treated all attacks as equal. However, a key component of an adversarial example is that it is visually similar to the source image, and that it does not resemble the adversarial target class. The adversarial research community makes use of a small epsilon bound as a mechanism for ensuring that the resultant adversarial attacks are visually unchanged from the source image. For standard attacks against CNN-based models this heuristic is sufficient, because taking gradient steps in the image space in order to have a network misclassify an image normally results in something visually similar to the source image. But this is not the case for adversarial attacks against CapsNets. As shown in Figure 5, when we use R-PGD to attack the CapsNet, many of the resultant attacks resemble members of the target class. In this way, they stop being “adversarial”. As such, an attack detection method which does not detect them as adversarial is arguably behaving correctly. This puts the previously undetected rates presented earlier in a new light, and illustrates a difficulty in the evaluation of adversarial attacks and defenses. In addition, it should be noted that this phenomenon rarely occurs in a standard convolutional neural network, which suggests that the features captured by CapsNet are more aligned with human perception. ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
840,
|
| 843 |
+
825,
|
| 844 |
+
924
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 8
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "",
|
| 851 |
+
"bbox": [
|
| 852 |
+
173,
|
| 853 |
+
103,
|
| 854 |
+
825,
|
| 855 |
+
215
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 9
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "7 DISCUSSION ",
|
| 862 |
+
"text_level": 1,
|
| 863 |
+
"bbox": [
|
| 864 |
+
176,
|
| 865 |
+
234,
|
| 866 |
+
310,
|
| 867 |
+
251
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 9
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "Our detection mechanism relies on a similarity metric (i.e. a measure of reconstruction error) between the reconstruction and the input. This metric is required both during training in order to train the reconstruction network and during test time in order to flag adversarial examples. In the four datasets we have evaluated, the distance between examples roughly correlates with semantic similarity. However, this may not be the case for images in more complex datasets such as the SUN dataset (Xiao et al., 2010) and ImageNet (Deng et al., 2009), in which two images may be similar in terms of semantic content but nevertheless have significant $\\ell _ { 2 }$ distance. A better similarity metric (Theis et al., 2015; Zhang et al., 2018) can be further explored to extend our methods to more complex problems. Furthermore our reconstruction network is trained on a hidden representation of one class but is trained to reconstruct the entire input. In datasets without distractors or backgrounds, this is not a problem. But in the case of ImageNet, in which the object responsible for the classification is not the only object in the image, attempting to reconstruct the entire input from a class encoding seems misguided. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
173,
|
| 876 |
+
265,
|
| 877 |
+
826,
|
| 878 |
+
445
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 9
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "8 CONCLUSION ",
|
| 885 |
+
"text_level": 1,
|
| 886 |
+
"bbox": [
|
| 887 |
+
176,
|
| 888 |
+
464,
|
| 889 |
+
318,
|
| 890 |
+
481
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 9
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "We have presented a class-conditional reconstruction-based detection method that does not rely on a specific predefined adversarial attack. We have shown that by reconstructing the input from the internal class-conditional representation, our system is able to accurately detect black-box and white-box FGSM, BIM, PGD, and CW attacks. We then proposed a new attack to beat our defense - the Reconstructive Attack - in which the adversary optimizes not only the classification loss but also minimizes the reconstruction loss. We showed that this attack was able to fool our detection mechanism but with a much smaller success rate than a standard attack. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
173,
|
| 899 |
+
496,
|
| 900 |
+
825,
|
| 901 |
+
593
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 9
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Compared to CNN-based models, we showed that the CapsNet was able to detect adversarial examples with greater accuracy on all the datasets we explored. To further explain the success of CapsNet, we qualitatively showed that the success of the reconstructive attack was highly related to the visual similarity between the target class and the source class for the CapsNet. In addition, we showed that images generated by this reconstructive attack to attack the CapsNet are not typically adversarial, i.e. many of the resultant attacks resemble members of the target class even with a small $\\ell _ { \\infty }$ norm bound. These are not the case for the CNN-based models. The extensive qualitative studies indicate that the capsule model relies on visual features similar to those used by humans. We believe this is a step towards solving the true problem posed by adversarial examples. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
599,
|
| 911 |
+
825,
|
| 912 |
+
724
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "REFERENCES ",
|
| 919 |
+
"text_level": 1,
|
| 920 |
+
"bbox": [
|
| 921 |
+
176,
|
| 922 |
+
744,
|
| 923 |
+
285,
|
| 924 |
+
760
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 9
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"text": "Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In International Conference on Machine Learning, 2018. ",
|
| 931 |
+
"bbox": [
|
| 932 |
+
176,
|
| 933 |
+
767,
|
| 934 |
+
823,
|
| 935 |
+
809
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 9
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"text": "Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Giorgio ´ Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases, pp. 387–402. Springer, 2013. ",
|
| 942 |
+
"bbox": [
|
| 943 |
+
174,
|
| 944 |
+
818,
|
| 945 |
+
825,
|
| 946 |
+
873
|
| 947 |
+
],
|
| 948 |
+
"page_idx": 9
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "text",
|
| 952 |
+
"text": "Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017a. ",
|
| 953 |
+
"bbox": [
|
| 954 |
+
176,
|
| 955 |
+
882,
|
| 956 |
+
823,
|
| 957 |
+
924
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 9
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57. IEEE, 2017b. ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
169,
|
| 966 |
+
103,
|
| 967 |
+
825,
|
| 968 |
+
133
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 10
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, 2009. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
174,
|
| 977 |
+
141,
|
| 978 |
+
823,
|
| 979 |
+
184
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 10
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "Reuben Feinman, Ryan R. Curtin, Saurabh Shintre, and Andrew B. Gardner. Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017. ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
174,
|
| 988 |
+
194,
|
| 989 |
+
823,
|
| 990 |
+
223
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 10
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "Justin Gilmer, Ryan P. Adams, Ian Goodfellow, David Andersen, and George E. Dahl. Motivating the rules of the game for adversarial example research. arXiv preprint arXiv:1807.06732, 2018a. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
173,
|
| 999 |
+
233,
|
| 1000 |
+
821,
|
| 1001 |
+
262
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 10
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "Justin Gilmer, Luke Metz, Fartash Faghri, Samuel S. Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial spheres. In International Conference on Learning Representations, 2018b. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
173,
|
| 1010 |
+
272,
|
| 1011 |
+
825,
|
| 1012 |
+
314
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 10
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "Zhitao Gong, Wenlu Wang, and Wei-Shinn Ku. Adversarial and clean data are not twins. arXiv preprint arXiv:1704.04960, 2017. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
173,
|
| 1021 |
+
324,
|
| 1022 |
+
823,
|
| 1023 |
+
354
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 10
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2014. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
169,
|
| 1032 |
+
363,
|
| 1033 |
+
823,
|
| 1034 |
+
393
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 10
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "Ian Goodfellow, Yao Qin, and David Berthelot. Evaluation methodology for attacks against confidence thresholding models. 2018. ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
171,
|
| 1043 |
+
401,
|
| 1044 |
+
823,
|
| 1045 |
+
431
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 10
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Kathrin Grosse, Praveen Manoharan, Nicolas Papernot, Michael Backes, and Patrick McDaniel. On the (statistical) detection of adversarial examples. arXiv preprint arXiv:1702.06280, 2017. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
171,
|
| 1054 |
+
440,
|
| 1055 |
+
823,
|
| 1056 |
+
470
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 10
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Dan Hendrycks and Kevin Gimpel. Early methods for detecting adversarial images. In International Conference on Learning Representations, 2016. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
171,
|
| 1065 |
+
479,
|
| 1066 |
+
823,
|
| 1067 |
+
508
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 10
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Geoffrey E. Hinton, Sara Sabour, and Nicholas Frosst. Matrix capsules with em routing. In International Conference on Learning Representations, 2018. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
173,
|
| 1076 |
+
518,
|
| 1077 |
+
823,
|
| 1078 |
+
547
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 10
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Hossein Hosseini, Sreeram Kannan, and Radha Poovendran. Are odds really odd? bypassing statistical detection of adversarial examples. arXiv preprint arXiv:1907.12138, 2019. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
173,
|
| 1087 |
+
556,
|
| 1088 |
+
823,
|
| 1089 |
+
587
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 10
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Saumya Jetley, Nicholas A. Lord, and Philip H. S. Torr. With friends like these, who needs adversaries? In Advances in Neural Information Processing Systems, 2018. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
595,
|
| 1099 |
+
821,
|
| 1100 |
+
626
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 10
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2014. ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
174,
|
| 1109 |
+
633,
|
| 1110 |
+
823,
|
| 1111 |
+
664
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 10
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
173,
|
| 1120 |
+
672,
|
| 1121 |
+
823,
|
| 1122 |
+
702
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 10
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. In International Conference on Learning Representations, 2016. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
173,
|
| 1131 |
+
712,
|
| 1132 |
+
823,
|
| 1133 |
+
742
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 10
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Alexey Kurakin, Ian Goodfellow, Samy Bengio, Yinpeng Dong, Fangzhou Liao, Ming Liang, Tianyu Pang, Jun Zhu, Xiaolin Hu, Cihang Xie, et al. Adversarial attacks and defences competition. arXiv preprint arXiv:1804.00097, 2018. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
176,
|
| 1142 |
+
751,
|
| 1143 |
+
823,
|
| 1144 |
+
794
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 10
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
171,
|
| 1153 |
+
803,
|
| 1154 |
+
823,
|
| 1155 |
+
833
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 10
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Xin Li and Fuxin Li. Adversarial examples detection in deep networks with convolutional filter statistics. In Proceedings of the IEEE International Conference on Computer Vision, 2017. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
171,
|
| 1164 |
+
842,
|
| 1165 |
+
823,
|
| 1166 |
+
872
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 10
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2017. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
178,
|
| 1175 |
+
881,
|
| 1176 |
+
823,
|
| 1177 |
+
924
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 10
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. In International Conference on Learning Representations, 2017. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
171,
|
| 1186 |
+
103,
|
| 1187 |
+
823,
|
| 1188 |
+
132
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 11
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Felix Michels, Tobias Uelwer, Eric Upschulte, and Stefan Harmeling. On the vulnerability of capsule networks to adversarial attacks. arXiv preprint arXiv:1906.03612, 2019. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
173,
|
| 1197 |
+
140,
|
| 1198 |
+
823,
|
| 1199 |
+
170
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 11
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Norman Mu and Justin Gilmer. Mnist-c: A robustness benchmark for computer vision. In ICML 2019 Workshop on Uncertainty and Robustness in Deep Learning, 2019. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
171,
|
| 1208 |
+
178,
|
| 1209 |
+
823,
|
| 1210 |
+
208
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 11
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, pp. 5, 2011. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
176,
|
| 1219 |
+
215,
|
| 1220 |
+
823,
|
| 1221 |
+
260
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 11
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Jathushan Rajasegaran, Vinoj Jayasundara, Sandaru Jayasekara, Hirunima Jayasekara, Suranga Seneviratne, and Ranga Rodrigo. Deepcaps: Going deeper with capsule networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 10725–10733, 2019. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
176,
|
| 1230 |
+
267,
|
| 1231 |
+
821,
|
| 1232 |
+
310
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 11
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Kevin Roth, Yannic Kilcher, and Thomas Hofmann. The odds are odd: A statistical test for detecting adversarial examples. In International Conference on Machine Learning, 2019. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
319,
|
| 1242 |
+
820,
|
| 1243 |
+
349
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 11
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Sara Sabour, Nicholas Frosst, and Geoffrey E. Hinton. Dynamic routing between capsules. In Advances in Neural Information Processing Systems, pp. 3856–3866, 2017. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
176,
|
| 1252 |
+
356,
|
| 1253 |
+
821,
|
| 1254 |
+
387
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 11
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Lukas Schott, Jonas Rauber, Wieland Brendel, and Matthias Bethge. Robust perception through analysis by synthesis. arXiv preprint arXiv:1805.09190, 2018. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
174,
|
| 1263 |
+
395,
|
| 1264 |
+
821,
|
| 1265 |
+
424
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 11
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. In International Conference on Learning Representations, 2017. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
176,
|
| 1274 |
+
433,
|
| 1275 |
+
825,
|
| 1276 |
+
476
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 11
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2013. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
173,
|
| 1285 |
+
484,
|
| 1286 |
+
825,
|
| 1287 |
+
526
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 11
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Lucas Theis, Aaron van den Oord, and Matthias Bethge. A note on the evaluation of generative ¨ models. In International Conference on Learning Representations, 2015. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
174,
|
| 1296 |
+
536,
|
| 1297 |
+
823,
|
| 1298 |
+
565
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 11
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
173,
|
| 1307 |
+
573,
|
| 1308 |
+
823,
|
| 1309 |
+
603
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 11
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Jianxiong Xiao, James Hays, Krista A Ehinger, Aude Oliva, and Antonio Torralba. Sun database: Large-scale scene recognition from abbey to zoo. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 3485–3492. IEEE, 2010. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
176,
|
| 1318 |
+
611,
|
| 1319 |
+
825,
|
| 1320 |
+
655
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 11
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 586–595, 2018. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
174,
|
| 1329 |
+
662,
|
| 1330 |
+
823,
|
| 1331 |
+
707
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 11
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "APPENDIX ",
|
| 1338 |
+
"text_level": 1,
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
176,
|
| 1341 |
+
103,
|
| 1342 |
+
263,
|
| 1343 |
+
117
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 12
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "A NETWORK ARCHITECTURES ",
|
| 1350 |
+
"text_level": 1,
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
178,
|
| 1353 |
+
138,
|
| 1354 |
+
446,
|
| 1355 |
+
155
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 12
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "Figure 6 shows the architecute of the capsule network, the CNN reconstruction model and the CNN conditional reconstruction model used for experiments on MNIST, FashionMNIST and SVHN dataset. MNIST and Fashion MNIST have exactly the same architectures while we use larger models for SVHN. Note that the only difference between the CNN reconstruction $( \\mathrm { C N N + R } )$ ) and the CNN conditional reconstruction $\\mathbf { \\left( C N N + C R \\right) }$ ) is the masking procedure on the input to the reconstruction network based on the predicted class. All three models have the same number of parameters. ",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
173,
|
| 1364 |
+
174,
|
| 1365 |
+
826,
|
| 1366 |
+
258
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 12
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "image",
|
| 1372 |
+
"img_path": "images/6f3aa886fbab5409364bc7abf70efda9eeffe18088432df460c2b265abe5aae5.jpg",
|
| 1373 |
+
"image_caption": [
|
| 1374 |
+
"Figure 6: The architecture for the CapsNet, $\\mathrm { C N N + R }$ and $\\mathrm { C N N + C R }$ model used for our experiments on MNIST (LeCun et al., 1998), FashionMNIST (Xiao et al., 2017), and SVHN (Netzer et al., 2011). "
|
| 1375 |
+
],
|
| 1376 |
+
"image_footnote": [],
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
187,
|
| 1379 |
+
276,
|
| 1380 |
+
816,
|
| 1381 |
+
625
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 12
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "B TEST MODELS ",
|
| 1388 |
+
"text_level": 1,
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
176,
|
| 1391 |
+
722,
|
| 1392 |
+
326,
|
| 1393 |
+
738
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 12
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "The error rate of each test model used in the paper are presented in Table 4. We ensure that they have similar performance. ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
174,
|
| 1402 |
+
757,
|
| 1403 |
+
825,
|
| 1404 |
+
786
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 12
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "table",
|
| 1410 |
+
"img_path": "images/2837941f8ca1fec5a386ff75986f834dccdd207b51a6fec348b843a1eea28808.jpg",
|
| 1411 |
+
"table_caption": [
|
| 1412 |
+
"Table 4: Error rate of each model when the input are clean test images in each dataset. "
|
| 1413 |
+
],
|
| 1414 |
+
"table_footnote": [],
|
| 1415 |
+
"table_body": "<table><tr><td>Dataset</td><td>CapsNet</td><td>CNN+CR</td><td>CNN+R</td></tr><tr><td>MNIST</td><td>0.6%</td><td>0.7%</td><td>0.6%</td></tr><tr><td>FashionMNIST</td><td>9.6%</td><td>9.5%</td><td>9.3%</td></tr><tr><td>SVHN</td><td>10.7%</td><td>9.3%</td><td>9.5%</td></tr></table>",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
174,
|
| 1418 |
+
830,
|
| 1419 |
+
825,
|
| 1420 |
+
901
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 12
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "C IMPLEMENTATION DETAILS ",
|
| 1427 |
+
"text_level": 1,
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
176,
|
| 1430 |
+
102,
|
| 1431 |
+
439,
|
| 1432 |
+
118
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 13
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "text",
|
| 1438 |
+
"text": "For all the $\\ell _ { \\infty }$ based adversarial examples, the $\\ell _ { \\infty }$ norm of the perturbations is bound by $\\epsilon$ , which is set to 0.3, 0.1, 0.1 for MNIST, Fashion MNIST and SVHN dataset respectively following previous work (Madry et al., 2017; Song et al., 2017). In FGSM based attacks, the step size $c$ is 0.05. In BIM-based (Kurakin et al., 2016) and PGD-based (Madry et al., 2017) attacks, the step size $c$ is 0.01 for all the datasets and the number of iterations are 1000, 500 and 200 for MNIST, Fashion MNIST and SVHN dataset respectively. We choose a sufficiently large number of iterations to ensure the attacks has converged. ",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
174,
|
| 1441 |
+
133,
|
| 1442 |
+
825,
|
| 1443 |
+
231
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 13
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "We use the publicly released code from the authors of (Carlini & Wagner, 2017b) to perform the CW attack for our models. The number of iterations are set to 1000 for all three datasets. ",
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
174,
|
| 1452 |
+
237,
|
| 1453 |
+
823,
|
| 1454 |
+
266
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 13
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "text",
|
| 1460 |
+
"text": "D WHITE BOX STANDARD ATTACKS ",
|
| 1461 |
+
"text_level": 1,
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
174,
|
| 1464 |
+
286,
|
| 1465 |
+
493,
|
| 1466 |
+
303
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 13
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "The results of four white box standard attacks on the three datasets are shown in Table 5. ",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
176,
|
| 1475 |
+
318,
|
| 1476 |
+
751,
|
| 1477 |
+
333
|
| 1478 |
+
],
|
| 1479 |
+
"page_idx": 13
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"type": "table",
|
| 1483 |
+
"img_path": "images/2fed502df57b4092eb6e8cba7e66178c37ecd2def6dfb7d3c2be8d2b0e7d5879.jpg",
|
| 1484 |
+
"table_caption": [
|
| 1485 |
+
"Table 5: Success rate and undetected rate of white-box targeted and untargeted attacks. In the table, $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks. "
|
| 1486 |
+
],
|
| 1487 |
+
"table_footnote": [],
|
| 1488 |
+
"table_body": "<table><tr><td rowspan=\"2\">Networks</td><td colspan=\"4\">Targeted (%) FGSM</td><td colspan=\"4\">Untargeted (%) BIM</td></tr><tr><td>BIM</td><td></td><td>PGD</td><td>CW</td><td>FGSM</td><td></td><td>PGD</td><td>CW</td></tr><tr><td colspan=\"9\">MNIST Dataset</td></tr><tr><td>CapsNet CNN+CR</td><td>3/0</td><td>82/0</td><td>86/0</td><td>99/2</td><td>11/0</td><td>99/0</td><td>99/0</td><td>100/19</td></tr><tr><td></td><td>16/0</td><td>93/0</td><td>95/0</td><td>89/8</td><td>85/0</td><td>100/0</td><td>100/0</td><td>100/28</td></tr><tr><td>CNN+R</td><td>37/0</td><td>100/0</td><td>100/0</td><td>100/47</td><td>64/0</td><td>100/0</td><td>100/0</td><td>100/63</td></tr><tr><td colspan=\"9\">FASHION I MNISTDataset</td></tr><tr><td>CapsNet</td><td>715</td><td>54/9</td><td>55/10</td><td>100/26</td><td>35/29</td><td>86/50</td><td>87/51</td><td>100/68</td></tr><tr><td>CNN+CR</td><td>19/13</td><td>89/28</td><td>89/28</td><td>87/37</td><td>74/33</td><td>100/25</td><td>100/24</td><td>100/72</td></tr><tr><td>CNN+R</td><td>23/16</td><td>98/19</td><td>98/19</td><td>99/81</td><td>62/48</td><td>100/35</td><td>100/34</td><td>100/87</td></tr><tr><td colspan=\"9\"> SVHN Dataset</td></tr><tr><td>CapsNet</td><td>22/20</td><td>83/45</td><td>84/46</td><td>100/90</td><td>74/67</td><td>99/70</td><td>99/68</td><td>100/94</td></tr><tr><td>CNN+CR CNN+R</td><td>24/23</td><td>99/90</td><td>99/90</td><td>99/93</td><td>87/82</td><td>100/90</td><td>100/89</td><td>100/90</td></tr><tr><td></td><td>26/24</td><td>100/86</td><td>100/86</td><td>100/94</td><td>88/82</td><td>100/92</td><td>100/92</td><td>100/95</td></tr></table>",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
194,
|
| 1491 |
+
383,
|
| 1492 |
+
803,
|
| 1493 |
+
625
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 13
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "E VISUALIZATION OF CORRUPTED MNIST DATASET ",
|
| 1500 |
+
"text_level": 1,
|
| 1501 |
+
"bbox": [
|
| 1502 |
+
173,
|
| 1503 |
+
102,
|
| 1504 |
+
630,
|
| 1505 |
+
118
|
| 1506 |
+
],
|
| 1507 |
+
"page_idx": 14
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"type": "text",
|
| 1511 |
+
"text": "Visualization of examples from Corrupted MNIST dataset (Mu & Gilmer, 2019) and the corresponding reconstructed images for each model are shown in Figure 7 and Figure 8. ",
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
174,
|
| 1514 |
+
133,
|
| 1515 |
+
825,
|
| 1516 |
+
162
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 14
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "image",
|
| 1522 |
+
"img_path": "images/113b8f9ba68153f1165873917ce1cb3e89bb1e0528c4555e0ccba41783c0db7b.jpg",
|
| 1523 |
+
"image_caption": [
|
| 1524 |
+
"Figure 7: Examples of Corrupted MNIST and the reconstructed image for each model. A red box represent that this input is flagged as an adversarial example while a green box represent this input has been misclassified and not been detected. "
|
| 1525 |
+
],
|
| 1526 |
+
"image_footnote": [],
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
174,
|
| 1529 |
+
176,
|
| 1530 |
+
823,
|
| 1531 |
+
746
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 14
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "image",
|
| 1537 |
+
"img_path": "images/588b2318b9774d1400fcd7cd32007fea6caf4a90beedb123af99676430103c5a.jpg",
|
| 1538 |
+
"image_caption": [
|
| 1539 |
+
"Figure 8: Examples of Corrupted MNIST and the reconstructed image for each model. A red box represents that this input is flagged as an adversarial example while a green box represents that this input has been misclassified and not been detected. "
|
| 1540 |
+
],
|
| 1541 |
+
"image_footnote": [],
|
| 1542 |
+
"bbox": [
|
| 1543 |
+
176,
|
| 1544 |
+
102,
|
| 1545 |
+
825,
|
| 1546 |
+
377
|
| 1547 |
+
],
|
| 1548 |
+
"page_idx": 15
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "text",
|
| 1552 |
+
"text": "F RECONSTRUCTIVE ATTACKS ",
|
| 1553 |
+
"text_level": 1,
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
176,
|
| 1556 |
+
465,
|
| 1557 |
+
444,
|
| 1558 |
+
482
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 15
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "The results of Reconstructive FGSM, BIM and PGD on the three datasets are reported in Table 6. ",
|
| 1565 |
+
"bbox": [
|
| 1566 |
+
173,
|
| 1567 |
+
496,
|
| 1568 |
+
808,
|
| 1569 |
+
512
|
| 1570 |
+
],
|
| 1571 |
+
"page_idx": 15
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"type": "table",
|
| 1575 |
+
"img_path": "images/b2e88745f7ab72ae8f34ba20bdc7076b0dc456606797bbdeaffb501a6f5a850e.jpg",
|
| 1576 |
+
"table_caption": [
|
| 1577 |
+
"Table 6: Success rate and the worst case undetected rate of white-box targeted and untargeted reconstructive attacks. Below $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } \\bar { / } R _ { u }$ is presented for untargeted attacks. "
|
| 1578 |
+
],
|
| 1579 |
+
"table_footnote": [],
|
| 1580 |
+
"table_body": "<table><tr><td>Networks</td><td>R-FGSM</td><td>Targeted (%) R-BIM</td><td>R-PGD</td><td>R-FGSM</td><td>Untargeted (%) R-BIM</td><td>R-PGD</td></tr><tr><td colspan=\"7\">MNIST Dataset</td></tr><tr><td>CapsNet</td><td>1.8/0.3</td><td>51.0/33.8</td><td>50.7/33.7</td><td>6.1/1.0</td><td>84.5/35.1</td><td>88.1/37.9</td></tr><tr><td>CNN+CR</td><td>7.6/0.5</td><td>98.0/68.1</td><td>98.6/68.1</td><td>41.7/3.2</td><td>96.5/86.8</td><td>99.4/87.7</td></tr><tr><td>CNN+R</td><td>16.9/3.3</td><td>86.3/65.9</td><td>95.5/71.2</td><td>25.9/8.1</td><td>82.9/67.8</td><td>95.1/70.5</td></tr><tr><td colspan=\"7\">FASHION MNIST Dataset</td></tr><tr><td>CapsNet</td><td>6.5/5.8</td><td>53.3/28.4</td><td>53.7/29.8</td><td>33.3/29.9</td><td>85.3/75.9</td><td>84.9/75.5</td></tr><tr><td>CNN+CR</td><td>17.7/14.0</td><td>80.3/72.4</td><td>78.1/72.0</td><td>68.0/57.3</td><td>89.8/84.4</td><td>91.5/86.0</td></tr><tr><td>CNN+R</td><td>19.4/17.6</td><td>95.2/88.8</td><td>94.6/88.4</td><td>58.6/53.5</td><td>98.8/90.1</td><td>98.9/90.0</td></tr><tr><td colspan=\"7\">SVHN Dataset</td></tr><tr><td>CapsNet</td><td>21.6/21.2</td><td>81.1/78.3</td><td>82.0/79.2</td><td>71.6/68.3</td><td>98.9/97.5</td><td>98.9/97.5</td></tr><tr><td>CNN+CR</td><td>24.2/22.6</td><td>98.5/97.6</td><td>99.0/97.9</td><td>86.0/82.3</td><td>99.9/99.5</td><td>99.9/99.5</td></tr><tr><td>CNN+R</td><td>26.6/25.8</td><td>99.6/99.4</td><td>99.5/99.3</td><td>87.1/84.5</td><td>100.0/99.9</td><td>100.0/99.9</td></tr></table>",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
200,
|
| 1583 |
+
579,
|
| 1584 |
+
795,
|
| 1585 |
+
819
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 15
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "Figure 9 shows the plot of success rate and undetected rate versus the hyperparameter $\\beta$ which balances the importance between attacking the classifier and fooling the detection mechanism in the targeted reconstructive PGD attacks on the MNIST dataset. ",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
173,
|
| 1594 |
+
130,
|
| 1595 |
+
825,
|
| 1596 |
+
171
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 16
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "image",
|
| 1602 |
+
"img_path": "images/8cddf9af8747c1350afc7e1fe0895c9b076be39b8d08daf81bdc3d2b1b2b77bc.jpg",
|
| 1603 |
+
"image_caption": [
|
| 1604 |
+
"Figure 9: An example shows the plot of the success rate in (a) and undetected rate in (b) of targeted reconstructive PGD attack vesus the hyperparameter beta $\\beta$ for each model on the MNIST test set. We set the max $\\ell _ { \\infty }$ norm $\\epsilon = 0 . 3$ to create the attacks. "
|
| 1605 |
+
],
|
| 1606 |
+
"image_footnote": [],
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
209,
|
| 1609 |
+
188,
|
| 1610 |
+
789,
|
| 1611 |
+
356
|
| 1612 |
+
],
|
| 1613 |
+
"page_idx": 16
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"type": "text",
|
| 1617 |
+
"text": "G BLACK BOX ATTACKS ",
|
| 1618 |
+
"text_level": 1,
|
| 1619 |
+
"bbox": [
|
| 1620 |
+
174,
|
| 1621 |
+
439,
|
| 1622 |
+
397,
|
| 1623 |
+
455
|
| 1624 |
+
],
|
| 1625 |
+
"page_idx": 16
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "table",
|
| 1629 |
+
"img_path": "images/8d9300b1d9fd6d1fe19452d4bb5e0e04e77f9f31f811b7a01b95d96f667d1d4e.jpg",
|
| 1630 |
+
"table_caption": [
|
| 1631 |
+
"Table 7: Success rate and undetected rate of black-box targeted and untargeted attacks. In the table, $S _ { t } / R _ { t }$ is shown for targeted attacks and $S _ { u } / R _ { u }$ is presented for untargeted attacks. All the numbers are shown in $\\%$ . ",
|
| 1632 |
+
"H VISUALIZATION OF ADVERSARIAL EXAMPLES AND RECONSTRUCTIONS "
|
| 1633 |
+
],
|
| 1634 |
+
"table_footnote": [],
|
| 1635 |
+
"table_body": "<table><tr><td colspan=\"8\">MNIST Dataset</td></tr><tr><td>Targeted</td><td>CapsNet</td><td>CNN-CR</td><td>CNN-R</td><td>Untargeted</td><td>CapsNet</td><td>CNN-CR</td><td>CNN-R</td></tr><tr><td>PGD</td><td>1.5/0.0</td><td>7.8/0.0</td><td>7.4/0.0</td><td>PGD</td><td>8.5/0.0</td><td>32.6/0.0</td><td>27.6/0.0</td></tr><tr><td>R-PGD</td><td>4.2/1.0</td><td>18.3/11.0</td><td>11.3/4.8</td><td>R-PGD</td><td>10.4/2.4</td><td>42.7/24.9</td><td>25.2/8.9</td></tr></table>",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
179,
|
| 1638 |
+
512,
|
| 1639 |
+
818,
|
| 1640 |
+
588
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 16
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "image",
|
| 1646 |
+
"img_path": "images/aacb183a4b1c4b86994c64eeb29370a753b73b8b45173db8b6994c9ba0e6df58.jpg",
|
| 1647 |
+
"image_caption": [
|
| 1648 |
+
"Figure 10: The source clean image is presented in the first row with its reconstruction in the second row. For each model, the top row are the targeted adversarial examples and the bottom are the corresponding reconstruction image when the input are the PGD on the MNIST (left), R-PGD on the Fashion-MNIST (middle), CW on the SVHN (right). "
|
| 1649 |
+
],
|
| 1650 |
+
"image_footnote": [],
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
174,
|
| 1653 |
+
650,
|
| 1654 |
+
820,
|
| 1655 |
+
821
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 16
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "image",
|
| 1661 |
+
"img_path": "images/fb94341a4962dca46a6f2333f57b7519edbf866a127592d898866fe8f696c2a4.jpg",
|
| 1662 |
+
"image_caption": [
|
| 1663 |
+
"Figure 11: These are randomly sampled (not cherry picked) inputs (top row) and the result of adversarially perturbing them with targeted R-PGD against the CapsNet model (other rows). Many of these attacks are not successful. Note the visual similarity between many of the attacks and the target class. "
|
| 1664 |
+
],
|
| 1665 |
+
"image_footnote": [],
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
220,
|
| 1668 |
+
304,
|
| 1669 |
+
794,
|
| 1670 |
+
655
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 17
|
| 1673 |
+
}
|
| 1674 |
+
]
|
parse/train/Skgy464Kvr/Skgy464Kvr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Skgy464Kvr/Skg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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LEARNING THE DIFFERENCE THAT MAKES A DIFFERENCE WITH COUNTERFACTUALLY-AUGMENTED DATA
|
| 2 |
+
|
| 3 |
+
Divyansh Kaushik, Eduard Hovy, Zachary C. Lipton
|
| 4 |
+
Carnegie Mellon University
|
| 5 |
+
Pittsburgh PA, USA
|
| 6 |
+
{dkaushik, hovy, zlipton}@cmu.edu
|
| 7 |
+
|
| 8 |
+
# ABSTRACT
|
| 9 |
+
|
| 10 |
+
Despite alarm over the reliance of machine learning systems on so-called spurious patterns, the term lacks coherent meaning in standard statistical frameworks. However, the language of causality offers clarity: spurious associations are due to confounding (e.g., a common cause), but not direct or indirect causal effects. In this paper, we focus on natural language processing, introducing methods and resources for training models less sensitive to spurious patterns. Given documents and their initial labels, we task humans with revising each document so that it (i) accords with a counterfactual target label; (ii) retains internal coherence; and (iii) avoids unnecessary changes. Interestingly, on sentiment analysis and natural language inference tasks, classifiers trained on original data fail on their counterfactually-revised counterparts and vice versa. Classifiers trained on combined datasets perform remarkably well, just shy of those specialized to either domain. While classifiers trained on either original or manipulated data alone are sensitive to spurious features (e.g., mentions of genre), models trained on the combined data are less sensitive to this signal. Both datasets are publicly available1.
|
| 11 |
+
|
| 12 |
+
# 1 INTRODUCTION
|
| 13 |
+
|
| 14 |
+
What makes a document’s sentiment positive? What makes a loan applicant creditworthy? What makes a job candidate qualified? When does a photograph truly depict a dolphin? Moreover, what does it mean for a feature to be relevant to such a determination?
|
| 15 |
+
|
| 16 |
+
Statistical learning offers one framework for approaching these questions. First, we swap out the semantic question for a more readily answerable associative question. For example, instead of asking what conveys a document’s sentiment, we recast the question as which documents are likely to be labeled as positive (or negative)? Then, in this associative framing, we interpret as relevant, those features that are most predictive of the label. However, despite the rapid adoption and undeniable commercial success of associative learning, this framing seems unsatisfying.
|
| 17 |
+
|
| 18 |
+
Alongside deep learning’s predictive wins, critical questions have piled up concerning spurious patterns, artifacts, robustness, and discrimination, that the purely associative perspective appears ill-equipped to answer. For example, in computer vision, researchers have found that deep neural networks rely on surface-level texture (Jo & Bengio, 2017; Geirhos et al., 2018) or clues in the image’s background to recognize foreground objects even when that seems both unnecessary and somehow wrong: the beach is not what makes a seagull a seagull. And yet, researchers struggle to articulate precisely why models should not rely on such patterns.
|
| 19 |
+
|
| 20 |
+
In natural language processing (NLP), these issues have emerged as central concerns in the literature on annotation artifacts and societal biases. Across myriad tasks, researchers have demonstrated that models tend to rely on spurious associations (Poliak et al., 2018; Gururangan et al., 2018; Kaushik & Lipton, 2018; Kiritchenko & Mohammad, 2018). Notably, some models for question-answering tasks may not actually be sensitive to the choice of the question (Kaushik & Lipton, 2018), while in Natural Language Inference (NLI), classifiers trained on hypotheses only (vs hypotheses and premises) perform surprisingly well (Poliak et al., 2018; Gururangan et al., 2018). However, papers seldom make clear what, if anything, spuriousness means within the standard supervised learning framework. ML systems are trained to exploit the mutual information between features and a label to make accurate predictions. The standard statistical learning toolkit does not offer a conceptual distinction between spurious and non-spurious associations.
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: Pipeline for collecting and leveraging counterfactually-altered data
|
| 24 |
+
|
| 25 |
+
Causality, however, offers a coherent notion of spuriousness. Spurious associations owe to confounding rather than to a (direct or indirect) causal path. We might consider a factor of variation to be spuriously correlated with a label of interest if intervening upon it would not impact the applicability of the label or vice versa. While our paper does not call upon the mathematical machinery of causality, we draw inspiration from the underlying philosophy to design a new dataset creation procedure in which humans counterfactually revise documents.
|
| 26 |
+
|
| 27 |
+
Returning to NLP, although we lack automated tools for mapping between raw text and disentangled factors, we nevertheless describe documents in terms of these abstract representations. Moreover, it seems natural to speak of manipulating these factors directly (Hovy, 1987). Consider, for example, the following interventions: (i) Revise the letter to make it more positive; (ii) Edit the second sentence so that it appears to contradict the first. These edits might be thought of as intervening on only those aspects of the text that are necessary to make the counterfactual label applicable.
|
| 28 |
+
|
| 29 |
+
In this exploratory paper, we design a human-in-the-loop system for counterfactually manipulating documents. Our hope is that by intervening only upon the factor of interest, we might disentangle the spurious and non-spurious associations, yielding classifiers that hold up better when spurious associations do not transport out of domain. We employ crowd workers not to label documents, but rather to edit them, manipulating the text to make a targeted (counterfactual) class applicable. For sentiment analysis, we direct the worker to revise this negative movie review to make it positive, without making any gratuitous changes. We might regard the second part of this directive as a least action principle, ensuring that we perturb only those spans necessary to alter the applicability of the label. For NLI, a 3-class classification task (entailment, contradiction, neutral), we ask the workers to modify the premise while keeping the hypothesis intact, and vice versa, collecting edits corresponding to each of the (two) counterfactual classes. Using this platform, we collect thousands of counterfactually-manipulated examples for both sentiment analysis and NLI, extending the IMDb (Maas et al., 2011) and SNLI (Bowman et al., 2015) datasets, respectively. The result is two new datasets (each an extension of a standard resource) that enable us to both probe fundamental properties of language and train classifiers less reliant on spurious signal.
|
| 30 |
+
|
| 31 |
+
We show that classifiers trained on original IMDb reviews fail on counterfactually-revised data and vice versa. We further show that spurious correlations in these datasets are even picked up by linear models. However, augmenting the revised examples breaks up these correlations (e.g., genre ceases to be predictive of sentiment). For a Bidirectional LSTM (Graves & Schmidhuber, 2005) trained on IMDb reviews, classification accuracy goes down from $7 9 . 3 \%$ to $5 5 . 7 \%$ when evaluated on original vs revised reviews. The same classifier trained on revised reviews achieves an accuracy of $8 9 . 1 \%$ on revised reviews compared to $6 2 . 5 \%$ on their original counterparts. These numbers go to $8 1 . 7 \%$ and $9 2 . 0 \%$ on original and revised data, respectively, when the classifier is retrained on the combined dataset. Similar patterns are observed for linear classifiers. We discovered that BERT (Devlin et al., 2019) is more resilient to such drops in performance on sentiment analysis.
|
| 32 |
+
|
| 33 |
+
Additionally, SNLI models appear to rely on spurious associations as identified by Gururangan et al. (2018). Our experiments show that when fine-tuned on original SNLI sentence pairs, BERT fails on pairs with revised premise and vice versa, suffering more than a 30 point drop in accuracy. Fine-tuned on the combined set, BERT’s performance improves significantly across all datasets. Similarly, a Bi-LSTM trained on (original) hypotheses alone can accurately classify $6 9 \%$ of pairs correctly but performs worse than the blind classifier when evaluated on the revised dataset. When trained on hypotheses only from the combined dataset, its performance is not appreciably better than random guessing.
|
| 34 |
+
|
| 35 |
+
# 2 RELATED WORK
|
| 36 |
+
|
| 37 |
+
Several papers demonstrate cases where NLP systems appear not to learn what humans consider to be the difference that makes the difference. For example, otherwise state-of-the-art models have been shown to be vulnerable to synthetic transformations such as distractor phrases (Jia & Liang, 2017; Wallace et al., 2019), to misclassify paraphrased task (Iyyer et al., 2018; Pfeiffer et al., 2019) and to fail on template-based modifications (Ribeiro et al., 2018). Glockner et al. (2018) demonstrate that simply replacing words by synonyms or hypernyms, which should not alter the applicable label, nevertheless breaks ML-based NLI systems. Gururangan et al. (2018) and Poliak et al. (2018) show that classifiers correctly classified the hypotheses alone in about $6 9 \%$ of SNLI corpus. They further discover that crowd workers adopted specific annotation strategies and heuristics for data generation. Chen et al. (2016) identify similar issues exist with automatically-constructed benchmarks for question-answering (Hermann et al., 2015). Kaushik & Lipton (2018) discover that reported numbers in question-answering benchmarks could often be achieved by the same models when restricted to be blind either to the question or to the passages. Dixon et al. (2018); Zhao et al. (2018) and Kiritchenko & Mohammad (2018) showed how imbalances in training data lead to unintended bias in the resulting models, and, consequently, potentially unfair applications. Shen et al. (2018) substitute words to test the behavior of sentiment analysis algorithms in the presence of stylistic variation, finding that similar word pairs produce significant differences in sentiment score.
|
| 38 |
+
|
| 39 |
+
Several papers explore richer feedback mechanisms for classification. Some ask annotators to highlight rationales, spans of text indicative of the label (Zaidan et al., 2007; Zaidan & Eisner, 2008; Poulis & Dasgupta, 2017). For each document, Zaidan et al. remove the rationales to generate contrast documents, learning classifiers to distinguish original documents from their contrasting counterparts. While this feedback is easier to collect than ours, how to leverage it for training deep NLP models, where features are not neatly separated, remains less clear.
|
| 40 |
+
|
| 41 |
+
Lu et al. (2018) programmatically alter text to invert gender bias and combined the original and manipulated data yielding gender-balanced dataset for learning word embeddings. In the simplest experiments, they swap each gendered word for its other-gendered counterpart. For example, the doctor ran because he is late becomes the doctor ran because she is late. However, they do not substitute names even if they co-refer to a gendered pronoun. Building on their work, Zmigrod et al. (2019) describe a data augmentation approach for mitigating gender stereotypes associated with animate nouns for morphologically-rich languages like Spanish and Hebrew. They use a Markov random field to infer how the sentence must be modified while altering the grammatical gender of particular nouns to preserve morpho-syntactic agreement. In contrast, Maudslay et al. (2019) describe a method for probabilistic automatic in-place substitution of gendered words in a corpus. Unlike Lu et al., they propose an explicit treatment of first names by pre-defining name-pairs for swapping, thus expanding Lu et al.’s list of gendered word pairs significantly.
|
| 42 |
+
|
| 43 |
+
# 3 DATA COLLECTION
|
| 44 |
+
|
| 45 |
+
We use Amazon’s Mechanical Turk crowdsourcing platform to recruit editors to revise each document. To ensure high quality of the collected data, we restricted the pool to U.S. residents that had already completed at least $5 0 0 ~ \mathrm { H I T s }$ and had an over $9 7 \%$ HIT approval rate. For each HIT, we conducted pilot tests to identify appropriate compensation per assignment, receive feedback from workers and revise our instructions accordingly. A total of 713 workers contributed throughout the whole process, of which 518 contributed edits reflected in the final datasets.
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 2: Annotation platform for collecting counterfactually annotated data for sentiment analysis
|
| 49 |
+
|
| 50 |
+
Table 1: Percentage of inter-editor agreement for counterfactually-revised movie reviews
|
| 51 |
+
|
| 52 |
+
<table><tr><td colspan="10">Number of tokens</td></tr><tr><td>Type</td><td>0-50</td><td>51-100</td><td>101-150</td><td>151-200</td><td>201-250</td><td>251-300</td><td>301-329</td><td>Full</td></tr><tr><td>Replacement</td><td>35.6</td><td>25.7</td><td>20.0</td><td>17.2</td><td>15.0</td><td>14.8</td><td>11.6</td><td>19.3</td></tr><tr><td>Insertion</td><td>27.7</td><td>20.8</td><td>14.4</td><td>12.2</td><td>11.0</td><td>11.5</td><td>07.6</td><td>14.3</td></tr><tr><td>Combined</td><td>41.6</td><td>32.7</td><td>26.3</td><td>23.4</td><td>21.6</td><td>20.3</td><td>16.2</td><td>25.5</td></tr></table>
|
| 53 |
+
|
| 54 |
+
Sentiment Analysis The original IMDb dataset consists of $5 0 k$ reviews divided equally across train and test splits. To keep the task of editing from growing unwieldy, we filter out the longest $20 \%$ of reviews, leaving $2 0 k$ reviews in the train split from which we randomly sample $2 . 5 k$ reviews, enforcing a 50:50 class balance. Following revision by the crowd workers, we partition this dataset into train/validation/test splits containing 1707, 245 and 488 examples, respectively. We present each review to two workers, instructing them to revise the review such that (a) the counterfactual label applies; (b) the document remains coherent; and (c) no unecessary modifications are made.
|
| 55 |
+
|
| 56 |
+
Over a four week period, we manually inspected each generated review and rejected the ones that were outright wrong (sentiment was still the same or the review was a spam). After review, we rejected roughly $2 \%$ of revised reviews. For 60 original reviews, we did not approve any among the counterfactually-revised counterparts supplied by the workers. To construct the new dataset, we chose one revised review (at random) corresponding to each original review. In qualitative analysis, we identified eight common patterns among the edits (Table 2).
|
| 57 |
+
|
| 58 |
+
By comparing original reviews to their counterfactually-revised counterparts we gain insight into which aspects are causally relevant. To analyze inter-editor agreement, we mark indices corresponding to replacements and insertions, representing the edits in each original review by a binary vector. Using these representations, we compute the Jaccard similarity between the two reviews (Table 1), finding it to be negatively correlated with the length of the review.
|
| 59 |
+
|
| 60 |
+
Natural Language Inference Unlike sentiment analysis, SNLI is 3-way classification task, with inputs consisting of two sentences, a premise and a hypothesis and the three possible labels being entailment, contradiction, and neutral. The label is meant to describe the relationship between the facts stated in each sentence. We randomly sampled 1750, 250, and 500 pairs from the train, validation, and test sets of SNLI respectively, constraining the new data to have balanced classes. In one HIT, we asked workers to revise the hypothesis while keeping the premise intact, seeking edits corresponding to each of the two counterfactual classes. We refer to this data as Revised Hypothesis (RH). In another HIT, we asked workers to revise the original premise, while leaving the original hypothesis intact, seeking similar edits, calling it Revised Premise (RP).
|
| 61 |
+
|
| 62 |
+
Table 2: Most prominent categories of edits performed by humans for sentiment analysis (Original/Revised, in order). Red spans were replaced by Blue spans.
|
| 63 |
+
|
| 64 |
+
<table><tr><td>Types of Revisions</td><td>Examples</td></tr><tr><td>Recasting fact as hoped for</td><td>The world of Atlantis,hidden beneath the earth's core,is fantastic The world of Atlantis,hidden beneath the earth's core is supposed to be fantastic</td></tr><tr><td>Suggesting sarcasm</td><td>thoroughly captivating thriller-drama, taking a deep and real- istic view thoroughly mind numbing “thriller-drama", taking a “deep"</td></tr><tr><td>Inserting modifiers</td><td>and “realistic”(who are they kidding?) view The presentation of simply Atlantis' landscape and setting</td></tr><tr><td>Replacing modifiers</td><td>The presentation of Atlantis’ predictable landscape and setting “Election” is a highly fascinating and thoroughly captivating thriller-drama</td></tr><tr><td>Inserting phrases</td><td>“Election” is a highly expected and thoroughly mind numbing "thriller-drama" Although there's hardly any action, the ending is still shocking. Although there's hardly any action (or reason to continue watch-</td></tr><tr><td>Diminishing via qualifiers</td><td>ing past 10 minutes), the ending is still shocking. which,while usually containing some reminder of harshness,be- come more and more intriguing.</td></tr><tr><td>Differing perspectives</td><td>which,usually containing some reminder of harshness,became only slightly more intriguing. Granted, not all of the story makes full sense, but the film doesn't feature any amazing new computer-generated visual effects.</td></tr><tr><td>Changing ratings</td><td>Granted, some of the story makes sense, but the film doesn't feature any amazing new computer-generated visual effects. one of the worst ever scenes in a sports movie. 3 stars out of 10. one of the wildest ever scenes in a sports movie. 8 stars out of 10.</td></tr></table>
|
| 65 |
+
|
| 66 |
+
Following data collection, we employed a different set of workers to verify whether the given label accurately described the relationship between each premise-hypothesis pair. We presented each pair to three workers and performed a majority vote. When all three reviewers were in agreement, we approved or rejected the pair based on their decision, else, we verified the data ourselves. Finally, we only kept premise-hypothesis pairs for which we had valid revised data in both RP and RH, corresponding to both counterfactual labels. As a result, we discarded $\approx 9 \%$ data. RP and RH, each comprised of 3332 pairs in train, 400 in validation, and 800 in test, leading to a total of 6664 pairs in train, 800 in validation, and 1600 in test in the revised dataset. In qualitative analysis, we identified some common patterns among hypothesis and premise edits (Table 3, 4).
|
| 67 |
+
|
| 68 |
+
We collected all data after IRB approval and measured the time taken to complete each HIT to ensure that all workers were paid more than the federal minimum wage. During our pilot studies, workers spent roughly 5 minutes per revised review, and 4 minutes per revised sentence (for NLI). We paid workers $\$ 0.65$ per revision, and $\$ 0.15$ per verification, totalling $\$ 10778.14$ for the study.
|
| 69 |
+
|
| 70 |
+
# 4 MODELS
|
| 71 |
+
|
| 72 |
+
Our experiments rely on the following five models: Support Vector Machines (SVMs), Na¨ıve Bayes (NB) classifiers, Bidirectional Long Short-Term Memory Networks (Bi-LSTMs; Graves & Schmidhuber, 2005), ELMo models with LSTM, and fine-tuned BERT models (Devlin et al., 2019). For brevity, we discuss only implementation details necessary for reproducibility.
|
| 73 |
+
|
| 74 |
+
Table 3: Analysis of edits performed by humans for NLI hypotheses. P denotes Premise, OH denotes Original Hypothesis, and NH denotes New Hypothesis.
|
| 75 |
+
|
| 76 |
+
<table><tr><td>Types of Revisions</td><td>Examples</td></tr><tr><td>Modifying/removing actions</td><td>P: A young dark-haired woman crouches on the banks of a river while washing dishes. OH: A woman washes dishes in the river while camping. (Neu- tral)</td></tr><tr><td>Substituting entities</td><td>NH:A woman washes dishes in the river.(Entailment) P:Students are inside of a lecture hall. OH: Students are indoors. (Entailment)</td></tr><tr><td>Adding details to entities</td><td>NH: Students are on the soccer field. (Contradiction) P:An older man with glasses raises his eyebrows in surprise. OH: The man has no glasses. (Contradiction)</td></tr><tr><td>Inserting relationships</td><td>NH: The man wears bifocals. (Neutral) P:A blond woman speaking to a brunette woman with her arms crossed. OH:A woman is talking to another woman. (Entailment)</td></tr><tr><td>Numerical modifications</td><td>NH: A woman is talking to a family member. (Neutral) P: Several farmers bent over working on the fields while lady with a baby and four other children accompany them. OH:The lady has three children.(Contradiction)</td></tr><tr><td>Using/Removing negation</td><td>NH: The lady has many children. (Entailment) P:An older man with glasses raises his eyebrows in surprise. OH: The man has no glasses. (Contradiction)</td></tr><tr><td>Unrelated hypothesis</td><td>NH: The man wears glasses. (Entailment) P:A female athlete in crimson top and dark blue shorts is run- ning on the street. OH: A woman is sitting on a white couch. (Contradiction)</td></tr></table>
|
| 77 |
+
|
| 78 |
+
Standard Methods We use scikit-learn (Pedregosa et al., 2011) implementations of SVMs and Na¨ıve Bayes for sentiment analysis. We train these models on TF-IDF bag of words feature representations of the reviews. We identify parameters for both classifiers using grid search conducted over the validation set.
|
| 79 |
+
|
| 80 |
+
Bi-LSTM When training Bi-LSTMs for sentiment analysis, we restrict the vocabulary to the most frequent $2 0 k$ tokens, replacing out-of-vocabulary tokens by UNK. We fix the maximum input length at 300 tokens and pad smaller reviews. Each token is represented by a randomly-initialized 50-dimensional embedding. Our model consists of a bidirectional LSTM (hidden dimension 50) with recurrent dropout (probability 0.5) and global max-pooling following the embedding layer. To generate output, we feed this (fixed-length) representation through a fully-connected hidden layer with ReLU (Nair & Hinton, 2010) activation (hidden dimension 50), and then a fully-connected output layer with softmax activation. We train all models for a maximum of 20 epochs using Adam (Kingma & Ba, 2015), with a learning rate of $\mathrm { 1 e { - } 3 }$ and a batch size of 32. We apply early stopping when validation loss does not decrease for 5 epochs. We also experimented with a larger Bi-LSTM which led to overfitting. We use the architecture due to Poliak et al. (2018) to evaluate hypothesisonly baselines.2
|
| 81 |
+
|
| 82 |
+
ELMo-LSTM We compute contextualized word representations (ELMo) using character-based word representations and bidirectional LSTMs (Peters et al., 2018). The module outputs a 1024- dimensional weighted sum of representations from the 3 Bi-LSTM layers used in ELMo. We represent each word by a 128-dimensional embedding concatenated to the resulting 1024-dimensional ELMo representation, leading to a 1152-dimensional hidden representation. Following Batch Normalization, this is passed through an LSTM (hidden size 128) with recurrent dropout (probability
|
| 83 |
+
|
| 84 |
+
Table 4: Analysis of edits performed by humans for NLI premises. OP denotes Original Premise, NP denotes New Premise, and H denotes Hypothesis.
|
| 85 |
+
|
| 86 |
+
<table><tr><td>Types of Revisions</td><td>Examples</td></tr><tr><td>Introducing direct evidence</td><td>OP: Man walking with tall buildings with reflections behind him. (Neutral) NP: Man walking away from his friend, with tall buildings</td></tr><tr><td>Introducing indirect evidence</td><td>with reflections behind him. (Contradiction) H: The man was walking to meet a friend. OP:An Indian man standing on the bank of a river. (Neutral) NP: An Indian man standing with only a camera on the bank of a river. (Contradiction)</td></tr><tr><td>Substituting entities</td><td>H: He is fishing. OP:A young man in front of a grill laughs while pointing at something to his left. (Entailment) NP: A young man in front of a chair laughs while pointing at</td></tr><tr><td>Numerical modifications</td><td>something to his left. (Neutral) H:A man is outside OP:The exhaustion in the woman's face while she continues to ride her bicycle in the competition.(Neutral) NP: The exhaustion in the woman's face while she continues to ride her bicycle in the competition for people above 7 ft.</td></tr><tr><td>Reducing evidence</td><td>(Entailment) H: A tall person on a bike OP: The girl in yellow shorts and white jacket has a tennis ball in her left pocket. (Entailment) NP: The girl in yellow shorts and white jacket has a tennis ball.</td></tr><tr><td>Using abstractions</td><td>(Neutral) H: A girl with a tennis ball in her pocket. OP: An elderly woman in a crowd pushing a wheelchair. (En- tailment)</td></tr><tr><td>Substituting evidence</td><td>NP: An elderly person in a crowd pushing a wheelchair. (Neu- tral) H: There is an elderly woman in a crowd. OP: A woman is cutting something with scissors. (Entail- ment) NP: A woman is reading something about scissors. (Contra- diction)</td></tr></table>
|
| 87 |
+
|
| 88 |
+
0.2). The output from this LSTM is then passed to a fully-connected output layer with softmax activation. We train this model for up to 20 epochs with same early stopping criteria as for Bi-LSTM, using the Adam optimizer with a learning rate of $\mathrm { 1 e { - } 3 }$ and a batch size of 32.
|
| 89 |
+
|
| 90 |
+
BERT We use an off-the-shelf uncased BERT Base model, fine-tuning for each task.3 To account for BERT’s sub-word tokenization, we set the maximum token length is set at 350 for sentiment analysis and 50 for NLI. We fine-tune BERT up to 20 epochs with same early stopping criteria as for Bi-LSTM, using the BERT Adam optimizer with a batch size of 16 (to fit on a Tesla V-100 GPU). We found learning rates of $5 \mathrm { e } { - 5 }$ and $1 \mathrm { e } { - } 5$ to work best for sentiment analysis and NLI respectively.
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 3: Most important features learned by an SVM classifier trained on TF-IDF bag of words.
|
| 94 |
+
|
| 95 |
+
# 5 EXPERIMENTAL RESULTS
|
| 96 |
+
|
| 97 |
+
Sentiment Analysis We find that for sentiment analysis, linear models trained on the original $1 . 7 k$ reviews achieve $8 0 \%$ accuracy when evaluated on original reviews but only $5 1 \%$ (level of random guessing) on revised reviews (Table 5). Linear models trained on revised reviews achieve $9 1 \%$ accuracy on revised reviews but only $5 8 . 3 \%$ on the original test set. We see similar pattern for Bi-LSTMs where accuracy drops substantially in both directions. Interestingly, while BERT models suffer drops too, they are less pronounced, perhaps a benefit of the exposure to a larger dataset where the spurious patterns may not have held. Classifiers trained on combined datasets perform well on both, often within $\approx 3$ pts of models trained on the same amount of data taken only from the original distribution. Thus, there may be a price to pay for breaking the reliance on spurious associations, but it may not be substantial.
|
| 98 |
+
|
| 99 |
+
We also conduct experiments to evaluate our sentiment models vis-a-vis their generalization out-ofdomain to new domains. We evaluate models on Amazon reviews (Ni et al., 2019) on data aggregated over six genres: beauty, fashion, appliances, giftcards, magazines, and software, the Twitter sentiment dataset (Rosenthal et al., 2017),4 and Yelp reviews released as part of the Yelp dataset challenge. We show that in almost all cases, models trained on the counterfactually-augmented IMDb dataset perform better than models trained on comparable quantities of original data.
|
| 100 |
+
|
| 101 |
+
To gain intuition about what is learnable absent the edited spans, we tried training several models on passages where the edited spans have been removed from training set sentences (but not test set). SVM, Na¨ıve Bayes, and Bi-LSTM achieve $5 7 . 8 \%$ , $5 9 . 1 \%$ , $6 0 . 2 \%$ accuracy, respectively, on this task. Notably, these passages are predictive of the (true) label despite being semantially compatible with the counterfactual label. However, BERT performs worse than random guessing.
|
| 102 |
+
|
| 103 |
+
In one simple demonstration of the benefits of our approach, we note that seemingly irrelevant words such as: romantic, will, my, has, especially, life, works, both, it, its, lives and gives (correlated with positive sentiment), and horror, own, jesus, cannot, even, instead, minutes, your, effort, script, seems and something (correlated with negative sentiment) are picked up as high-weight features by linear models trained on either original or revised reviews as top predictors. However, because humans never edit these during revision owing to their lack of semantic relevance, combining the original and revised datasets breaks these associations and these terms cease to be predictive of sentiment (Fig 4). Models trained on original data but at the same scale as combined data are able to perform slightly better on the original test set but still fail on the revised reviews. All models trained on $1 9 k$ original reviews receive a slight boost in accuracy on revised data (except Na¨ıve Bayes), yet their performance significantly worse compared to specialized models. Retraining models on a combination of the original $1 9 k$ reviews with revised $1 . 7 k$ reviews leads to significant increases in accuracy for all models on classifying revised reviews, while slightly improving the accuracy on classifying the original reviews. This underscores the importance of including counterfactuallyrevised examples in training data.
|
| 104 |
+
|
| 105 |
+
Natural Language Inference Fine-tuned on $1 . 6 7 k$ original sentence pairs, BERT achieves $7 2 . 2 \%$ accuracy on SNLI dataset but it is only able to accurately classify $3 9 . 7 \%$ sentence pairs from the RP set (Table 7). Fine-tuning BERT on the full SNLI training set ( $5 0 0 k$ sentence pairs) results in similar behavior. Fine-tuning it on RP sentence pairs improves its accuracy to $6 6 . 3 \%$ on RP but causes a drop of roughly 20 pts on SNLI. On RH sentence pairs, this results in an accuracy of $6 7 \%$ on RH and $\bar { 7 } 1 . 9 \%$ on SNLI test set but $4 7 . 4 \%$ on the RP set. To put these numbers in context, each individual hypothesis sentence in RP is associated with two labels, each in the presence of a different premise. A model that relies on hypotheses only would at best perform slightly better than choosing the majority class when evaluated on this dataset. However, fine-tuning BERT on a combination of RP and RH leads to consistent performance on all datasets as the dataset design forces models to look at both premise and hypothesis. Combining original sentences with RP and RH improves these numbers even further. We compare this with the performance obtained by fine-tuning it on $8 . 3 k$ sentence pairs sampled from SNLI training set, and show that while the two perform roughly within 4 pts of each other when evaluated on SNLI, the former outperforms latter on both RP and RH.
|
| 106 |
+
|
| 107 |
+
Table 5: Accuracy of various models for sentiment analysis trained with various datasets. Orig. denotes original, Rev. denotes revised, and Orig. - Edited denotes the original dataset where the edited spans have been removed.
|
| 108 |
+
|
| 109 |
+
<table><tr><td> Training data</td><td colspan="2">SVM</td><td colspan="2">NB</td><td colspan="2">ELMo</td><td colspan="2">Bi-LSTM</td><td colspan="2">BERT</td></tr><tr><td></td><td>0</td><td>R</td><td>0</td><td>R</td><td>0</td><td>R</td><td>0</td><td>R</td><td>0</td><td>R</td></tr><tr><td>Orig. (1.7k)</td><td>80.0</td><td>51.0</td><td>74.9</td><td>47.3</td><td>81.9</td><td>66.7</td><td>79.3</td><td>55.7</td><td>87.4</td><td>82.2</td></tr><tr><td>Rev. (1.7k)</td><td>58.3</td><td>91.2</td><td>50.9</td><td>88.7</td><td>63.8</td><td>82.0</td><td>62.5</td><td>89.1</td><td>80.4</td><td>90.8</td></tr><tr><td>Orig. -Edited</td><td>57.8</td><td>1</td><td>59.1</td><td>1</td><td>50.3</td><td>1</td><td>60.2</td><td>1</td><td>49.2</td><td>1</td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>83.7</td><td>87.3</td><td>86.1</td><td>91.2</td><td>85.0</td><td>92.0</td><td>81.5</td><td>92.0</td><td>88.5</td><td>95.1</td></tr><tr><td>Orig. (3.4k)</td><td>85.1</td><td>54.3</td><td>82.4</td><td>48.2</td><td>82.4</td><td>61.1</td><td>80.4</td><td>59.6</td><td>90.2</td><td>86.1</td></tr><tr><td>Orig. (19k)</td><td>87.8</td><td>60.9</td><td>84.3</td><td>42.8</td><td>86.5</td><td>64.3</td><td>86.3</td><td>68.0</td><td>93.2</td><td>88.3</td></tr><tr><td>Orig. (19k)& Rev.</td><td>87.8</td><td>76.2</td><td>85.2</td><td>48.4</td><td>88.3</td><td>84.6</td><td>88.7</td><td>79.5</td><td>93.2</td><td>93.9</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Table 6: Accuracy of various sentiment analysis models on out-of-domain data
|
| 112 |
+
|
| 113 |
+
<table><tr><td>Training data</td><td>SVM</td><td>NB</td><td>ELMo</td><td>Bi-LSTM</td><td>BERT</td></tr><tr><td></td><td>Accuracy on Amazon Reviews</td><td></td><td></td><td></td><td></td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>77.1</td><td>82.6</td><td>78.4</td><td>82.7</td><td>85.1</td></tr><tr><td>Orig. (3.4k)</td><td>74.7</td><td>66.9</td><td>79.1</td><td>65.9</td><td>80.0</td></tr><tr><td>Accuracy on Semeval 2017 (Twitter)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>66.5</td><td>73.9</td><td>70.0</td><td>68.7</td><td>82.9</td></tr><tr><td>Orig. (3.4k)</td><td>61.2</td><td>64.6</td><td>69.5</td><td>55.3</td><td>79.3</td></tr><tr><td></td><td>Accuracy </td><td></td><td> on Yelp Reviews</td><td></td><td></td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>87.6</td><td>89.6</td><td>87.2</td><td>86.2</td><td>89.4</td></tr><tr><td>Orig. (3.4k)</td><td>81.8</td><td>77.5</td><td>82.0</td><td>78.0</td><td>85.3</td></tr></table>
|
| 114 |
+
|
| 115 |
+
Table 7: Accuracy of BERT on NLI with various train and eval sets.
|
| 116 |
+
|
| 117 |
+
<table><tr><td>Train/Eval</td><td>Original</td><td>RP</td><td>RH</td><td>RP&RH</td></tr><tr><td>Original (1.67k)</td><td>72.2</td><td>39.7</td><td>59.5</td><td>49.6</td></tr><tr><td>Revised Premise (RP; 3.3k)</td><td>50.6</td><td>66.3</td><td>50.1</td><td>58.2</td></tr><tr><td>Revised Hypothesis (RH; 3.3k)</td><td>71.9</td><td>47.4</td><td>67.0</td><td>57.2</td></tr><tr><td>RP & RH(6.6k)</td><td>64.7</td><td>64.6</td><td>67.8</td><td>66.2</td></tr><tr><td>Original w/RP & RH(8.3k)</td><td>73.5</td><td>64.6</td><td>69.6</td><td>67.1</td></tr><tr><td>Original (8.3k)</td><td>77.8</td><td>44.6</td><td>66.1</td><td>55.4</td></tr><tr><td>Original (500k)</td><td>90.4</td><td>54.3</td><td>74.3</td><td>64.3</td></tr></table>
|
| 118 |
+
|
| 119 |
+
Table 8: Accuracy of Bi-LSTM classifier trained on hypotheses only
|
| 120 |
+
|
| 121 |
+
<table><tr><td>Train/Test</td><td>Original</td><td>RP</td><td>RH</td><td>RP&RH</td></tr><tr><td>Majority class</td><td>34.7</td><td>34.6</td><td>34.6</td><td>34.6</td></tr><tr><td>RP & RH(6.6k)</td><td>32.4</td><td>35.1</td><td>33.4</td><td>34.2</td></tr><tr><td>Original w/RP & RH (8.3k)</td><td>44.0</td><td>25.8</td><td>43.2</td><td>34.5</td></tr><tr><td>Original (8.3k)</td><td>60.2</td><td>20.5</td><td>46.6</td><td>33.6</td></tr><tr><td>Original (500k)</td><td>69.0</td><td>15.4</td><td>53.2</td><td>34.3</td></tr></table>
|
| 122 |
+
|
| 123 |
+
Table 9: Accuracy of models trained to differentiate between original and revised data
|
| 124 |
+
|
| 125 |
+
<table><tr><td>Model</td><td>IMDb</td><td>SNLI/RP</td><td>SNLI/RH</td></tr><tr><td>Majority class</td><td>50.0</td><td>66.7</td><td>66.7</td></tr><tr><td>SVM</td><td>67.4</td><td>46.6</td><td>51.0</td></tr><tr><td>NB</td><td>69.2</td><td>66.7</td><td>66.6</td></tr><tr><td>BERT</td><td>77.3</td><td>64.8</td><td>69.7</td></tr></table>
|
| 126 |
+
|
| 127 |
+
To further isolate this effect, Bi-LSTM trained on SNLI hypotheses only achieves $6 9 \%$ accuracy on SNLI test set, which drops to $4 4 \%$ if it is retrained on combination of original, RP and RH data (Table 8). Note that this combined dataset consists of five variants of each original premisehypothesis pair. Of these five pairs, three consist of the same hypothesis sentence, each associated with different truth value given the respective premise. Using these hypotheses only would provide conflicting feedback to a classifier during training, thus causing the drop in performance. Further, we notice that the gain of the latter over majority class baseline comes primarily from the original data, as the same model retrained only on RP and RH data experiences a further drop of $1 1 . 6 \%$ in accuracy, performing worse than just choosing the majority class at all times.
|
| 128 |
+
|
| 129 |
+
One reasonable concern might be that our models would simply distinguish whether an example were from the original or revised dataset and thereafter treat them differently. The fear might be that our models would exhibit a hypersensitivity (rather than insensitivity) to domain. To test the potential for this behavior, we train several models to distinguish between original and revised data (Table 9). BERT identifies original reviews from revised reviews with $7 7 . 3 \%$ accuracy. In case of NLI, BERT and Na¨ıve Bayes perform roughly within 3 pts of the majority class baseline $( 6 6 . 7 \% )$ whereas SVM performs substantially worse.
|
| 130 |
+
|
| 131 |
+
# 6 CONCLUSION
|
| 132 |
+
|
| 133 |
+
By leveraging humans not only to provide labels but also to intervene upon the data, revising documents to accord with various labels, we can elucidate the difference that makes a difference. Moreover, we can leverage the augmented data to train classifiers less dependent on spurious associations. Our study demonstrates the promise of leveraging human-in-the-loop feedback to disentangle the spurious and non-spurious associations, yielding classifiers that hold up better when spurious associations do not transport out of domain. Our methods appear useful on both sentiment analysis and NLI, two contrasting tasks. In sentiment analysis, expressions of opinion matter more than stated facts, while in NLI this is reversed. SNLI poses another challenge in that it is a 3-class classification task using two input sentences. In future work, we will extend these techniques, leveraging humans in the loop to build more robust systems for question answering and summarization.
|
| 134 |
+
|
| 135 |
+
# ACKNOWLEDGEMENTS
|
| 136 |
+
|
| 137 |
+
The authors are grateful to Amazon AWS and NVIDIA for providing GPUs to conduct the experiments, Salesforce Research and Facebook AI for their generous grants that made the data collection possible, Sina Fazelpour, Sivaraman Balakrishnan, Shruti Rijhwani, Shruti Palaskar, Aishwarya Kamath, Michael Collins, Rajesh Ranganath and Sanjoy Dasgupta for their valuable feedback, and Tzu-Hsiang Lin for his generous help in creating the data collection platform. We also thank Abridge AI, UPMC, the Center for Machine Learning in Health, and the AI Ethics and Governance Fund for their support of our broader research on robust machine learning.
|
| 138 |
+
|
| 139 |
+
# REFERENCES
|
| 140 |
+
|
| 141 |
+
Samuel R Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. A large annotated corpus for learning natural language inference. In Empirical Methods in Natural Language Processing (EMNLP), 2015.
|
| 142 |
+
|
| 143 |
+
Danqi Chen, Jason Bolton, and Christopher D Manning. A thorough examination of the cnn/daily mail reading comprehension task. In Association for Computational Linguistics (ACL), 2016.
|
| 144 |
+
|
| 145 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2019.
|
| 146 |
+
|
| 147 |
+
Lucas Dixon, John Li, Jeffrey Sorensen, Nithum Thain, and Lucy Vasserman. Measuring and mitigating unintended bias in text classification. In AAAI/ACM Conference on AI, Ethics, and Society. ACM, 2018.
|
| 148 |
+
|
| 149 |
+
Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018.
|
| 150 |
+
|
| 151 |
+
Max Glockner, Vered Shwartz, and Yoav Goldberg. Breaking nli systems with sentences that require simple lexical inferences. In Association for Computational Linguistics (ACL), 2018.
|
| 152 |
+
|
| 153 |
+
Alex Graves and Jurgen Schmidhuber. Framewise phoneme classification with bidirectional lstm ¨ and other neural network architectures. Neural networks, 18(5-6), 2005.
|
| 154 |
+
|
| 155 |
+
Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel Bowman, and Noah A Smith. Annotation artifacts in natural language inference data. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACLHLT), 2018.
|
| 156 |
+
|
| 157 |
+
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems (NeurIPS), 2015.
|
| 158 |
+
|
| 159 |
+
Eduard Hovy. Generating natural language under pragmatic constraints. Journal of Pragmatics, 1987.
|
| 160 |
+
|
| 161 |
+
Mohit Iyyer, John Wieting, Kevin Gimpel, and Luke Zettlemoyer. Adversarial example generation with syntactically controlled paraphrase networks. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2018.
|
| 162 |
+
|
| 163 |
+
Robin Jia and Percy Liang. Adversarial examples for evaluating reading comprehension systems. In Empirical Methods in Natural Language Processing (EMNLP), 2017.
|
| 164 |
+
|
| 165 |
+
Jason Jo and Yoshua Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017.
|
| 166 |
+
|
| 167 |
+
Divyansh Kaushik and Zachary C Lipton. How much reading does reading comprehension require? a critical investigation of popular benchmarks. In Empirical Methods in Natural Language Processing (EMNLP), 2018.
|
| 168 |
+
|
| 169 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
|
| 170 |
+
|
| 171 |
+
Svetlana Kiritchenko and Saif Mohammad. Examining gender and race bias in two hundred sentiment analysis systems. In Joint Conference on Lexical and Computational Semantics $( { } ^ { * } S E M )$ , 2018.
|
| 172 |
+
|
| 173 |
+
Kaiji Lu, Piotr Mardziel, Fangjing Wu, Preetam Amancharla, and Anupam Datta. Gender bias in neural natural language processing. arXiv preprint arXiv:1807.11714, 2018.
|
| 174 |
+
|
| 175 |
+
Andrew L Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew $\mathrm { \Delta Y N g }$ , and Christopher Potts. Learning word vectors for sentiment analysis. In Association for Computational Linguistics: Human Language Technologies (ACL-HLT), 2011.
|
| 176 |
+
|
| 177 |
+
Rowan Hall Maudslay, Hila Gonen, Ryan Cotterell, and Simone Teufel. It’s all in the name: Mitigating gender bias with name-based counterfactual data substitution. arXiv preprint arXiv:1909.00871, 2019.
|
| 178 |
+
|
| 179 |
+
Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In International Conference on Machine Learning (ICML), 2010.
|
| 180 |
+
|
| 181 |
+
Jianmo Ni, Jiacheng Li, and Julian McAuley. Justifying recommendations using distantly-labeled reviews and fine-grained aspects. In Empirical Methods in Natural Language Processing and International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019. URL https://www.aclweb.org/anthology/D19-1018.
|
| 182 |
+
|
| 183 |
+
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research (JMLR), 12, 2011.
|
| 184 |
+
|
| 185 |
+
Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2018.
|
| 186 |
+
|
| 187 |
+
Jonas Pfeiffer, Aishwarya Kamath, Iryna Gurevych, and Sebastian Ruder. What do deep networks like to read? arXiv preprint arXiv:1909.04547, 2019.
|
| 188 |
+
|
| 189 |
+
Adam Poliak, Jason Naradowsky, Aparajita Haldar, Rachel Rudinger, and Benjamin Van Durme. Hypothesis Only Baselines in Natural Language Inference. In Joint Conference on Lexical and Computational Semantics (\*Sem), 2018.
|
| 190 |
+
|
| 191 |
+
Stefanos Poulis and Sanjoy Dasgupta. Learning with feature feedback: from theory to practice. In Artificial Intelligence and Statistics (AISTATS), 2017.
|
| 192 |
+
|
| 193 |
+
Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Semantically equivalent adversarial rules for debugging nlp models. In Association for Computational Linguistics (ACL), 2018.
|
| 194 |
+
|
| 195 |
+
Sara Rosenthal, Noura Farra, and Preslav Nakov. SemEval-2017 task 4: Sentiment analysis in twitter. In International Workshop on Semantic Evaluation (SemEval), 2017. URL https: //www.aclweb.org/anthology/S17-2088.
|
| 196 |
+
|
| 197 |
+
Judy Hanwen Shen, Lauren Fratamico, Iyad Rahwan, and Alexander M Rush. Darling or babygirl? investigating stylistic bias in sentiment analysis. 5th Workshop on Fairness, Accountability, and Transparency in Machine Learning (FATML), 2018.
|
| 198 |
+
|
| 199 |
+
Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal adversarial triggers for nlp. arXiv preprint arXiv:1908.07125, 2019.
|
| 200 |
+
|
| 201 |
+
Omar Zaidan, Jason Eisner, and Christine Piatko. Using annotator rationales to improve machine learning for text categorization. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2007.
|
| 202 |
+
|
| 203 |
+
Omar F Zaidan and Jason Eisner. Modeling annotators: A generative approach to learning from annotator rationales. In Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, 2008.
|
| 204 |
+
|
| 205 |
+
Jieyu Zhao, Tianlu Wang, Mark Yatskar, Vicente Ordonez, and Kai-Wei Chang. Gender bias in coreference resolution: Evaluation and debiasing methods. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2018.
|
| 206 |
+
|
| 207 |
+
Ran Zmigrod, Sebastian J. Mielke, Hanna Wallach, and Ryan Cotterell. Counterfactual data augmentation for mitigating gender stereotypes in languages with rich morphology. In Association for Computational Linguistics (ACL), 2019.
|
| 208 |
+
|
| 209 |
+
# APPENDIX
|
| 210 |
+
|
| 211 |
+
Table 10: Most frequent insertions/deletions by human annotators for sentiment analysis.
|
| 212 |
+
|
| 213 |
+
<table><tr><td>Revision</td><td>Removed words</td><td>Inserted words</td></tr><tr><td>Positive to Negative</td><td>movie,film,great, like,good,re- ally, would, see,story, love</td><td>movie, film, one, like,bad,would, really,even,story, see</td></tr><tr><td>Negative to Positive</td><td>bad,even,worst, waste,nothing, never,much,would, like, litle</td><td>great, good,best, even, well, amaz- ing,much,many,watch,better</td></tr></table>
|
| 214 |
+
|
| 215 |
+
Table 11: Most frequent insertions/deletions by human annotators for SNLI.
|
| 216 |
+
|
| 217 |
+
<table><tr><td colspan="2">Revision Removed words</td><td>Inserted words</td></tr><tr><td colspan="2">Revising Premise</td><td></td></tr><tr><td>Entailment to Neutral</td><td>woman,walking,man,blue, sitting, men, girl, standing, looking,running</td><td>person, near, child, something, together, people, tall, vehicle, wall, holding</td></tr><tr><td>Neutral to Entailment</td><td>man,street,black,water, little, front,young,playing,woman, two</td><td>waiting,couple,playing,run- ning, getting,making, tall, game, black,happily</td></tr><tr><td>Entailment to Contradiction</td><td>blue,people,standing,girl, front,street,red,young,sit- ting,band</td><td>sitting, standing, inside, young, women, child, red, men, sits,one</td></tr><tr><td>Contradiction to Entailment</td><td>sitting,man,walking,black, blue,people,red,standing, white,street</td><td>man,sitting, sleeping,woman, sits,eating,playing,park, two, standing</td></tr><tr><td>Neutral to Contradiction</td><td>man, woman, people,boy, black,red,standing,young, two,water</td><td>man,woman, boy, men, alone, sitting,girl,dog,three,one</td></tr><tr><td>Contradiction to Neutral</td><td>man, sitting,black,blue,walk-1 ing,red,standing, street, white,street</td><td>man, sitting, woman, peo- ple,person, near, something, something,sits,black</td></tr><tr><td colspan="3">Revising Hypothesis</td></tr><tr><td>Entailment to Neutral</td><td>man, wearing, white, blue, black,shirt,one,young,peo- ple,woman</td><td>people,there,playing,man, person,wearing,outside,two, old, near</td></tr><tr><td>Neutral to Entailment</td><td>white,wearing,shirt,black, blue, man, two, standing, young, red</td><td>playing,wearing,man, two, there,woman,people,men, near,person</td></tr><tr><td>Entailment to Contradiction</td><td>man, wearing, white, blue, black,two,shirt,one,young, people</td><td>people,man, woman, playing, no,inside,person, two,wear- ing,women</td></tr><tr><td>Contradiction to Entailment</td><td>wearing, blue, black, man, white,two,red,shirt,young, one</td><td>people, there,man, two,wear- ing, playing, people,men, woman, outside</td></tr><tr><td>Neutral to Contradiction</td><td>white, man, wearing, shirt, black,blue,two,standing, woman, red</td><td>woman,man,there,playing, two,wearing, one,men,girl, no</td></tr><tr><td>Contradiction to Neutral</td><td>wearing,blue,black,man, white, two,red, sitting,young, standing</td><td>people,playing,man,woman, two,wearing,near, tall,men, old</td></tr></table>
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 4: Thirty most important features learned by an SVM classifier trained on TF-IDF bag of words.
|
| 221 |
+
|
| 222 |
+
The blue box contains a text passage and a label. Please edit this text in the textbox below, making a small number of changes such that:
|
| 223 |
+
|
| 224 |
+
(a) the document remains coherent and (b) the new label (colored) accurately describes the revised passage.
|
| 225 |
+
|
| 226 |
+
Do not change any portions of the passage unnecessarily.
|
| 227 |
+
|
| 228 |
+
After modifying the passage and checking it over to make sure that is coherent and matches the label.
|
| 229 |
+
|
| 230 |
+
(a) Revising IMDb movie reviews
|
| 231 |
+
|
| 232 |
+
The upper blue box contains Sentence 1. The lower blue box contains Sentence 2. Given that Sentence 1 is True, Sentence 2 (by implication), must either be (a) definitely True, (b) definitely False, or (c) May be True.
|
| 233 |
+
|
| 234 |
+
You are presented with an initial Sentence 1 and Sentence 2 and the correct initial relationship label (True, False, or May be True).
|
| 235 |
+
|
| 236 |
+
Please edit Sentence 2 in the textboxes, making a small number of changes such that:
|
| 237 |
+
|
| 238 |
+
(a) The new sentences are coherent and
|
| 239 |
+
(b) The target labels (in red) accurately describe the truthfulness of the modified Sentence 2 given the original Sentence 1.
|
| 240 |
+
|
| 241 |
+
Do not change any portions of the sentence unnecessarily.
|
| 242 |
+
|
| 243 |
+
After modifying the text and checking it over to make sure that it is coherent and matches the target label.
|
| 244 |
+
|
| 245 |
+
(b) Revising hypothesis in SNLI
|
| 246 |
+
|
| 247 |
+
The upper blue box contains Sentence 1. The lower blue box contains Sentence 2. Given that Sentence 1 is True, Sentence 2 (by implication), must either be (a) definitely True, (b) definitely False, or (c) May be True.
|
| 248 |
+
|
| 249 |
+
You are presented with an initial Sentence 1 and Sentence 2 and the correct initial relationship label (True, False, or May be True).
|
| 250 |
+
|
| 251 |
+
Please edit Sentence 1 in the textboxes, making a small number of changes such that:
|
| 252 |
+
|
| 253 |
+
(a) The new sentences are coherent and
|
| 254 |
+
(b) The target labels (in red) accurately describe the truthfulness of the original Sentence 2 given the modified Sentence 1.
|
| 255 |
+
|
| 256 |
+
After modifying the text and checking it over to make sure that it is coherent and matches the target label.
|
| 257 |
+
|
| 258 |
+
(c) Revising premise in SNLI
|
parse/train/Sklgs0NFvr/Sklgs0NFvr_content_list.json
ADDED
|
@@ -0,0 +1,1382 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LEARNING THE DIFFERENCE THAT MAKES A DIFFERENCE WITH COUNTERFACTUALLY-AUGMENTED DATA ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
816,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Divyansh Kaushik, Eduard Hovy, Zachary C. Lipton \nCarnegie Mellon University \nPittsburgh PA, USA \n{dkaushik, hovy, zlipton}@cmu.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
553,
|
| 21 |
+
226
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
262,
|
| 32 |
+
544,
|
| 33 |
+
277
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Despite alarm over the reliance of machine learning systems on so-called spurious patterns, the term lacks coherent meaning in standard statistical frameworks. However, the language of causality offers clarity: spurious associations are due to confounding (e.g., a common cause), but not direct or indirect causal effects. In this paper, we focus on natural language processing, introducing methods and resources for training models less sensitive to spurious patterns. Given documents and their initial labels, we task humans with revising each document so that it (i) accords with a counterfactual target label; (ii) retains internal coherence; and (iii) avoids unnecessary changes. Interestingly, on sentiment analysis and natural language inference tasks, classifiers trained on original data fail on their counterfactually-revised counterparts and vice versa. Classifiers trained on combined datasets perform remarkably well, just shy of those specialized to either domain. While classifiers trained on either original or manipulated data alone are sensitive to spurious features (e.g., mentions of genre), models trained on the combined data are less sensitive to this signal. Both datasets are publicly available1. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
294,
|
| 43 |
+
764,
|
| 44 |
+
501
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
527,
|
| 55 |
+
336,
|
| 56 |
+
542
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "What makes a document’s sentiment positive? What makes a loan applicant creditworthy? What makes a job candidate qualified? When does a photograph truly depict a dolphin? Moreover, what does it mean for a feature to be relevant to such a determination? ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
559,
|
| 66 |
+
823,
|
| 67 |
+
601
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Statistical learning offers one framework for approaching these questions. First, we swap out the semantic question for a more readily answerable associative question. For example, instead of asking what conveys a document’s sentiment, we recast the question as which documents are likely to be labeled as positive (or negative)? Then, in this associative framing, we interpret as relevant, those features that are most predictive of the label. However, despite the rapid adoption and undeniable commercial success of associative learning, this framing seems unsatisfying. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
608,
|
| 77 |
+
823,
|
| 78 |
+
690
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Alongside deep learning’s predictive wins, critical questions have piled up concerning spurious patterns, artifacts, robustness, and discrimination, that the purely associative perspective appears ill-equipped to answer. For example, in computer vision, researchers have found that deep neural networks rely on surface-level texture (Jo & Bengio, 2017; Geirhos et al., 2018) or clues in the image’s background to recognize foreground objects even when that seems both unnecessary and somehow wrong: the beach is not what makes a seagull a seagull. And yet, researchers struggle to articulate precisely why models should not rely on such patterns. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
698,
|
| 88 |
+
825,
|
| 89 |
+
796
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In natural language processing (NLP), these issues have emerged as central concerns in the literature on annotation artifacts and societal biases. Across myriad tasks, researchers have demonstrated that models tend to rely on spurious associations (Poliak et al., 2018; Gururangan et al., 2018; Kaushik & Lipton, 2018; Kiritchenko & Mohammad, 2018). Notably, some models for question-answering tasks may not actually be sensitive to the choice of the question (Kaushik & Lipton, 2018), while in Natural Language Inference (NLI), classifiers trained on hypotheses only (vs hypotheses and premises) perform surprisingly well (Poliak et al., 2018; Gururangan et al., 2018). However, papers seldom make clear what, if anything, spuriousness means within the standard supervised learning framework. ML systems are trained to exploit the mutual information between features and a label to make accurate predictions. The standard statistical learning toolkit does not offer a conceptual distinction between spurious and non-spurious associations. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
803,
|
| 99 |
+
825,
|
| 100 |
+
900
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/13256fcaea9ed4a3abaa41f3eb5712d6296f421625d51e2394c40ab84fc7930e.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Pipeline for collecting and leveraging counterfactually-altered data "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
269,
|
| 113 |
+
102,
|
| 114 |
+
725,
|
| 115 |
+
265
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
325,
|
| 125 |
+
823,
|
| 126 |
+
381
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Causality, however, offers a coherent notion of spuriousness. Spurious associations owe to confounding rather than to a (direct or indirect) causal path. We might consider a factor of variation to be spuriously correlated with a label of interest if intervening upon it would not impact the applicability of the label or vice versa. While our paper does not call upon the mathematical machinery of causality, we draw inspiration from the underlying philosophy to design a new dataset creation procedure in which humans counterfactually revise documents. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
388,
|
| 136 |
+
823,
|
| 137 |
+
472
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Returning to NLP, although we lack automated tools for mapping between raw text and disentangled factors, we nevertheless describe documents in terms of these abstract representations. Moreover, it seems natural to speak of manipulating these factors directly (Hovy, 1987). Consider, for example, the following interventions: (i) Revise the letter to make it more positive; (ii) Edit the second sentence so that it appears to contradict the first. These edits might be thought of as intervening on only those aspects of the text that are necessary to make the counterfactual label applicable. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
479,
|
| 147 |
+
825,
|
| 148 |
+
563
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "In this exploratory paper, we design a human-in-the-loop system for counterfactually manipulating documents. Our hope is that by intervening only upon the factor of interest, we might disentangle the spurious and non-spurious associations, yielding classifiers that hold up better when spurious associations do not transport out of domain. We employ crowd workers not to label documents, but rather to edit them, manipulating the text to make a targeted (counterfactual) class applicable. For sentiment analysis, we direct the worker to revise this negative movie review to make it positive, without making any gratuitous changes. We might regard the second part of this directive as a least action principle, ensuring that we perturb only those spans necessary to alter the applicability of the label. For NLI, a 3-class classification task (entailment, contradiction, neutral), we ask the workers to modify the premise while keeping the hypothesis intact, and vice versa, collecting edits corresponding to each of the (two) counterfactual classes. Using this platform, we collect thousands of counterfactually-manipulated examples for both sentiment analysis and NLI, extending the IMDb (Maas et al., 2011) and SNLI (Bowman et al., 2015) datasets, respectively. The result is two new datasets (each an extension of a standard resource) that enable us to both probe fundamental properties of language and train classifiers less reliant on spurious signal. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
570,
|
| 158 |
+
825,
|
| 159 |
+
777
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "We show that classifiers trained on original IMDb reviews fail on counterfactually-revised data and vice versa. We further show that spurious correlations in these datasets are even picked up by linear models. However, augmenting the revised examples breaks up these correlations (e.g., genre ceases to be predictive of sentiment). For a Bidirectional LSTM (Graves & Schmidhuber, 2005) trained on IMDb reviews, classification accuracy goes down from $7 9 . 3 \\%$ to $5 5 . 7 \\%$ when evaluated on original vs revised reviews. The same classifier trained on revised reviews achieves an accuracy of $8 9 . 1 \\%$ on revised reviews compared to $6 2 . 5 \\%$ on their original counterparts. These numbers go to $8 1 . 7 \\%$ and $9 2 . 0 \\%$ on original and revised data, respectively, when the classifier is retrained on the combined dataset. Similar patterns are observed for linear classifiers. We discovered that BERT (Devlin et al., 2019) is more resilient to such drops in performance on sentiment analysis. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
785,
|
| 169 |
+
825,
|
| 170 |
+
924
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Additionally, SNLI models appear to rely on spurious associations as identified by Gururangan et al. (2018). Our experiments show that when fine-tuned on original SNLI sentence pairs, BERT fails on pairs with revised premise and vice versa, suffering more than a 30 point drop in accuracy. Fine-tuned on the combined set, BERT’s performance improves significantly across all datasets. Similarly, a Bi-LSTM trained on (original) hypotheses alone can accurately classify $6 9 \\%$ of pairs correctly but performs worse than the blind classifier when evaluated on the revised dataset. When trained on hypotheses only from the combined dataset, its performance is not appreciably better than random guessing. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
103,
|
| 180 |
+
825,
|
| 181 |
+
215
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 2
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "2 RELATED WORK ",
|
| 188 |
+
"text_level": 1,
|
| 189 |
+
"bbox": [
|
| 190 |
+
176,
|
| 191 |
+
242,
|
| 192 |
+
344,
|
| 193 |
+
257
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Several papers demonstrate cases where NLP systems appear not to learn what humans consider to be the difference that makes the difference. For example, otherwise state-of-the-art models have been shown to be vulnerable to synthetic transformations such as distractor phrases (Jia & Liang, 2017; Wallace et al., 2019), to misclassify paraphrased task (Iyyer et al., 2018; Pfeiffer et al., 2019) and to fail on template-based modifications (Ribeiro et al., 2018). Glockner et al. (2018) demonstrate that simply replacing words by synonyms or hypernyms, which should not alter the applicable label, nevertheless breaks ML-based NLI systems. Gururangan et al. (2018) and Poliak et al. (2018) show that classifiers correctly classified the hypotheses alone in about $6 9 \\%$ of SNLI corpus. They further discover that crowd workers adopted specific annotation strategies and heuristics for data generation. Chen et al. (2016) identify similar issues exist with automatically-constructed benchmarks for question-answering (Hermann et al., 2015). Kaushik & Lipton (2018) discover that reported numbers in question-answering benchmarks could often be achieved by the same models when restricted to be blind either to the question or to the passages. Dixon et al. (2018); Zhao et al. (2018) and Kiritchenko & Mohammad (2018) showed how imbalances in training data lead to unintended bias in the resulting models, and, consequently, potentially unfair applications. Shen et al. (2018) substitute words to test the behavior of sentiment analysis algorithms in the presence of stylistic variation, finding that similar word pairs produce significant differences in sentiment score. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
279,
|
| 203 |
+
825,
|
| 204 |
+
513
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Several papers explore richer feedback mechanisms for classification. Some ask annotators to highlight rationales, spans of text indicative of the label (Zaidan et al., 2007; Zaidan & Eisner, 2008; Poulis & Dasgupta, 2017). For each document, Zaidan et al. remove the rationales to generate contrast documents, learning classifiers to distinguish original documents from their contrasting counterparts. While this feedback is easier to collect than ours, how to leverage it for training deep NLP models, where features are not neatly separated, remains less clear. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
520,
|
| 214 |
+
825,
|
| 215 |
+
603
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Lu et al. (2018) programmatically alter text to invert gender bias and combined the original and manipulated data yielding gender-balanced dataset for learning word embeddings. In the simplest experiments, they swap each gendered word for its other-gendered counterpart. For example, the doctor ran because he is late becomes the doctor ran because she is late. However, they do not substitute names even if they co-refer to a gendered pronoun. Building on their work, Zmigrod et al. (2019) describe a data augmentation approach for mitigating gender stereotypes associated with animate nouns for morphologically-rich languages like Spanish and Hebrew. They use a Markov random field to infer how the sentence must be modified while altering the grammatical gender of particular nouns to preserve morpho-syntactic agreement. In contrast, Maudslay et al. (2019) describe a method for probabilistic automatic in-place substitution of gendered words in a corpus. Unlike Lu et al., they propose an explicit treatment of first names by pre-defining name-pairs for swapping, thus expanding Lu et al.’s list of gendered word pairs significantly. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
611,
|
| 225 |
+
825,
|
| 226 |
+
777
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "3 DATA COLLECTION ",
|
| 233 |
+
"text_level": 1,
|
| 234 |
+
"bbox": [
|
| 235 |
+
176,
|
| 236 |
+
804,
|
| 237 |
+
367,
|
| 238 |
+
820
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "We use Amazon’s Mechanical Turk crowdsourcing platform to recruit editors to revise each document. To ensure high quality of the collected data, we restricted the pool to U.S. residents that had already completed at least $5 0 0 ~ \\mathrm { H I T s }$ and had an over $9 7 \\%$ HIT approval rate. For each HIT, we conducted pilot tests to identify appropriate compensation per assignment, receive feedback from workers and revise our instructions accordingly. A total of 713 workers contributed throughout the whole process, of which 518 contributed edits reflected in the final datasets. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
840,
|
| 248 |
+
825,
|
| 249 |
+
922
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "image",
|
| 255 |
+
"img_path": "images/ddc33254b6efd758b4b27d1fb01a16d9cab9c2c09c23b87f1555a076f3f96053.jpg",
|
| 256 |
+
"image_caption": [
|
| 257 |
+
"Figure 2: Annotation platform for collecting counterfactually annotated data for sentiment analysis "
|
| 258 |
+
],
|
| 259 |
+
"image_footnote": [],
|
| 260 |
+
"bbox": [
|
| 261 |
+
176,
|
| 262 |
+
108,
|
| 263 |
+
784,
|
| 264 |
+
354
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 3
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "table",
|
| 270 |
+
"img_path": "images/fa994f3ecdd4c176803724f0d50ad0df681e8b2f6fa7a9de9e627eeed717ecb5.jpg",
|
| 271 |
+
"table_caption": [
|
| 272 |
+
"Table 1: Percentage of inter-editor agreement for counterfactually-revised movie reviews "
|
| 273 |
+
],
|
| 274 |
+
"table_footnote": [],
|
| 275 |
+
"table_body": "<table><tr><td colspan=\"10\">Number of tokens</td></tr><tr><td>Type</td><td>0-50</td><td>51-100</td><td>101-150</td><td>151-200</td><td>201-250</td><td>251-300</td><td>301-329</td><td>Full</td></tr><tr><td>Replacement</td><td>35.6</td><td>25.7</td><td>20.0</td><td>17.2</td><td>15.0</td><td>14.8</td><td>11.6</td><td>19.3</td></tr><tr><td>Insertion</td><td>27.7</td><td>20.8</td><td>14.4</td><td>12.2</td><td>11.0</td><td>11.5</td><td>07.6</td><td>14.3</td></tr><tr><td>Combined</td><td>41.6</td><td>32.7</td><td>26.3</td><td>23.4</td><td>21.6</td><td>20.3</td><td>16.2</td><td>25.5</td></tr></table>",
|
| 276 |
+
"bbox": [
|
| 277 |
+
207,
|
| 278 |
+
433,
|
| 279 |
+
790,
|
| 280 |
+
532
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 3
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "Sentiment Analysis The original IMDb dataset consists of $5 0 k$ reviews divided equally across train and test splits. To keep the task of editing from growing unwieldy, we filter out the longest $20 \\%$ of reviews, leaving $2 0 k$ reviews in the train split from which we randomly sample $2 . 5 k$ reviews, enforcing a 50:50 class balance. Following revision by the crowd workers, we partition this dataset into train/validation/test splits containing 1707, 245 and 488 examples, respectively. We present each review to two workers, instructing them to revise the review such that (a) the counterfactual label applies; (b) the document remains coherent; and (c) no unecessary modifications are made. ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
173,
|
| 289 |
+
554,
|
| 290 |
+
825,
|
| 291 |
+
652
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 3
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "Over a four week period, we manually inspected each generated review and rejected the ones that were outright wrong (sentiment was still the same or the review was a spam). After review, we rejected roughly $2 \\%$ of revised reviews. For 60 original reviews, we did not approve any among the counterfactually-revised counterparts supplied by the workers. To construct the new dataset, we chose one revised review (at random) corresponding to each original review. In qualitative analysis, we identified eight common patterns among the edits (Table 2). ",
|
| 298 |
+
"bbox": [
|
| 299 |
+
174,
|
| 300 |
+
659,
|
| 301 |
+
825,
|
| 302 |
+
743
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 3
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "By comparing original reviews to their counterfactually-revised counterparts we gain insight into which aspects are causally relevant. To analyze inter-editor agreement, we mark indices corresponding to replacements and insertions, representing the edits in each original review by a binary vector. Using these representations, we compute the Jaccard similarity between the two reviews (Table 1), finding it to be negatively correlated with the length of the review. ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
174,
|
| 311 |
+
750,
|
| 312 |
+
825,
|
| 313 |
+
819
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 3
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "Natural Language Inference Unlike sentiment analysis, SNLI is 3-way classification task, with inputs consisting of two sentences, a premise and a hypothesis and the three possible labels being entailment, contradiction, and neutral. The label is meant to describe the relationship between the facts stated in each sentence. We randomly sampled 1750, 250, and 500 pairs from the train, validation, and test sets of SNLI respectively, constraining the new data to have balanced classes. In one HIT, we asked workers to revise the hypothesis while keeping the premise intact, seeking edits corresponding to each of the two counterfactual classes. We refer to this data as Revised Hypothesis (RH). In another HIT, we asked workers to revise the original premise, while leaving the original hypothesis intact, seeking similar edits, calling it Revised Premise (RP). ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
173,
|
| 322 |
+
825,
|
| 323 |
+
825,
|
| 324 |
+
924
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "table",
|
| 330 |
+
"img_path": "images/4e769c70d1bc14f7b5717141bd16e1f2def9991bc47528537f7ee9b004914cf2.jpg",
|
| 331 |
+
"table_caption": [
|
| 332 |
+
"Table 2: Most prominent categories of edits performed by humans for sentiment analysis (Original/Revised, in order). Red spans were replaced by Blue spans. "
|
| 333 |
+
],
|
| 334 |
+
"table_footnote": [],
|
| 335 |
+
"table_body": "<table><tr><td>Types of Revisions</td><td>Examples</td></tr><tr><td>Recasting fact as hoped for</td><td>The world of Atlantis,hidden beneath the earth's core,is fantastic The world of Atlantis,hidden beneath the earth's core is supposed to be fantastic</td></tr><tr><td>Suggesting sarcasm</td><td>thoroughly captivating thriller-drama, taking a deep and real- istic view thoroughly mind numbing “thriller-drama", taking a “deep"</td></tr><tr><td>Inserting modifiers</td><td>and “realistic”(who are they kidding?) view The presentation of simply Atlantis' landscape and setting</td></tr><tr><td>Replacing modifiers</td><td>The presentation of Atlantis’ predictable landscape and setting “Election” is a highly fascinating and thoroughly captivating thriller-drama</td></tr><tr><td>Inserting phrases</td><td>“Election” is a highly expected and thoroughly mind numbing "thriller-drama" Although there's hardly any action, the ending is still shocking. Although there's hardly any action (or reason to continue watch-</td></tr><tr><td>Diminishing via qualifiers</td><td>ing past 10 minutes), the ending is still shocking. which,while usually containing some reminder of harshness,be- come more and more intriguing.</td></tr><tr><td>Differing perspectives</td><td>which,usually containing some reminder of harshness,became only slightly more intriguing. Granted, not all of the story makes full sense, but the film doesn't feature any amazing new computer-generated visual effects.</td></tr><tr><td>Changing ratings</td><td>Granted, some of the story makes sense, but the film doesn't feature any amazing new computer-generated visual effects. one of the worst ever scenes in a sports movie. 3 stars out of 10. one of the wildest ever scenes in a sports movie. 8 stars out of 10.</td></tr></table>",
|
| 336 |
+
"bbox": [
|
| 337 |
+
173,
|
| 338 |
+
141,
|
| 339 |
+
816,
|
| 340 |
+
556
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 4
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "",
|
| 347 |
+
"bbox": [
|
| 348 |
+
176,
|
| 349 |
+
587,
|
| 350 |
+
820,
|
| 351 |
+
614
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 4
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "Following data collection, we employed a different set of workers to verify whether the given label accurately described the relationship between each premise-hypothesis pair. We presented each pair to three workers and performed a majority vote. When all three reviewers were in agreement, we approved or rejected the pair based on their decision, else, we verified the data ourselves. Finally, we only kept premise-hypothesis pairs for which we had valid revised data in both RP and RH, corresponding to both counterfactual labels. As a result, we discarded $\\approx 9 \\%$ data. RP and RH, each comprised of 3332 pairs in train, 400 in validation, and 800 in test, leading to a total of 6664 pairs in train, 800 in validation, and 1600 in test in the revised dataset. In qualitative analysis, we identified some common patterns among hypothesis and premise edits (Table 3, 4). ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
174,
|
| 360 |
+
621,
|
| 361 |
+
825,
|
| 362 |
+
747
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 4
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "We collected all data after IRB approval and measured the time taken to complete each HIT to ensure that all workers were paid more than the federal minimum wage. During our pilot studies, workers spent roughly 5 minutes per revised review, and 4 minutes per revised sentence (for NLI). We paid workers $\\$ 0.65$ per revision, and $\\$ 0.15$ per verification, totalling $\\$ 10778.14$ for the study. ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
176,
|
| 371 |
+
753,
|
| 372 |
+
825,
|
| 373 |
+
809
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 4
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "4 MODELS ",
|
| 380 |
+
"text_level": 1,
|
| 381 |
+
"bbox": [
|
| 382 |
+
176,
|
| 383 |
+
833,
|
| 384 |
+
279,
|
| 385 |
+
849
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 4
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "Our experiments rely on the following five models: Support Vector Machines (SVMs), Na¨ıve Bayes (NB) classifiers, Bidirectional Long Short-Term Memory Networks (Bi-LSTMs; Graves & Schmidhuber, 2005), ELMo models with LSTM, and fine-tuned BERT models (Devlin et al., 2019). For brevity, we discuss only implementation details necessary for reproducibility. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
174,
|
| 394 |
+
867,
|
| 395 |
+
825,
|
| 396 |
+
924
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 4
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "table",
|
| 402 |
+
"img_path": "images/179106d7280596f7f8ec2e13c5920a3a174b29edffa4083e71d41d7a50974b7d.jpg",
|
| 403 |
+
"table_caption": [
|
| 404 |
+
"Table 3: Analysis of edits performed by humans for NLI hypotheses. P denotes Premise, OH denotes Original Hypothesis, and NH denotes New Hypothesis. "
|
| 405 |
+
],
|
| 406 |
+
"table_footnote": [],
|
| 407 |
+
"table_body": "<table><tr><td>Types of Revisions</td><td>Examples</td></tr><tr><td>Modifying/removing actions</td><td>P: A young dark-haired woman crouches on the banks of a river while washing dishes. OH: A woman washes dishes in the river while camping. (Neu- tral)</td></tr><tr><td>Substituting entities</td><td>NH:A woman washes dishes in the river.(Entailment) P:Students are inside of a lecture hall. OH: Students are indoors. (Entailment)</td></tr><tr><td>Adding details to entities</td><td>NH: Students are on the soccer field. (Contradiction) P:An older man with glasses raises his eyebrows in surprise. OH: The man has no glasses. (Contradiction)</td></tr><tr><td>Inserting relationships</td><td>NH: The man wears bifocals. (Neutral) P:A blond woman speaking to a brunette woman with her arms crossed. OH:A woman is talking to another woman. (Entailment)</td></tr><tr><td>Numerical modifications</td><td>NH: A woman is talking to a family member. (Neutral) P: Several farmers bent over working on the fields while lady with a baby and four other children accompany them. OH:The lady has three children.(Contradiction)</td></tr><tr><td>Using/Removing negation</td><td>NH: The lady has many children. (Entailment) P:An older man with glasses raises his eyebrows in surprise. OH: The man has no glasses. (Contradiction)</td></tr><tr><td>Unrelated hypothesis</td><td>NH: The man wears glasses. (Entailment) P:A female athlete in crimson top and dark blue shorts is run- ning on the street. OH: A woman is sitting on a white couch. (Contradiction)</td></tr></table>",
|
| 408 |
+
"bbox": [
|
| 409 |
+
174,
|
| 410 |
+
142,
|
| 411 |
+
818,
|
| 412 |
+
554
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 5
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "Standard Methods We use scikit-learn (Pedregosa et al., 2011) implementations of SVMs and Na¨ıve Bayes for sentiment analysis. We train these models on TF-IDF bag of words feature representations of the reviews. We identify parameters for both classifiers using grid search conducted over the validation set. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
174,
|
| 421 |
+
579,
|
| 422 |
+
825,
|
| 423 |
+
635
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 5
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "Bi-LSTM When training Bi-LSTMs for sentiment analysis, we restrict the vocabulary to the most frequent $2 0 k$ tokens, replacing out-of-vocabulary tokens by UNK. We fix the maximum input length at 300 tokens and pad smaller reviews. Each token is represented by a randomly-initialized 50-dimensional embedding. Our model consists of a bidirectional LSTM (hidden dimension 50) with recurrent dropout (probability 0.5) and global max-pooling following the embedding layer. To generate output, we feed this (fixed-length) representation through a fully-connected hidden layer with ReLU (Nair & Hinton, 2010) activation (hidden dimension 50), and then a fully-connected output layer with softmax activation. We train all models for a maximum of 20 epochs using Adam (Kingma & Ba, 2015), with a learning rate of $\\mathrm { 1 e { - } 3 }$ and a batch size of 32. We apply early stopping when validation loss does not decrease for 5 epochs. We also experimented with a larger Bi-LSTM which led to overfitting. We use the architecture due to Poliak et al. (2018) to evaluate hypothesisonly baselines.2 ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
642,
|
| 433 |
+
825,
|
| 434 |
+
808
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 5
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "ELMo-LSTM We compute contextualized word representations (ELMo) using character-based word representations and bidirectional LSTMs (Peters et al., 2018). The module outputs a 1024- dimensional weighted sum of representations from the 3 Bi-LSTM layers used in ELMo. We represent each word by a 128-dimensional embedding concatenated to the resulting 1024-dimensional ELMo representation, leading to a 1152-dimensional hidden representation. Following Batch Normalization, this is passed through an LSTM (hidden size 128) with recurrent dropout (probability ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
174,
|
| 443 |
+
815,
|
| 444 |
+
825,
|
| 445 |
+
898
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 5
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "table",
|
| 451 |
+
"img_path": "images/f5646fa09f785d7f5855247b3caf3b93a1592e930ef6ee602007eb932e437688.jpg",
|
| 452 |
+
"table_caption": [
|
| 453 |
+
"Table 4: Analysis of edits performed by humans for NLI premises. OP denotes Original Premise, NP denotes New Premise, and H denotes Hypothesis. "
|
| 454 |
+
],
|
| 455 |
+
"table_footnote": [],
|
| 456 |
+
"table_body": "<table><tr><td>Types of Revisions</td><td>Examples</td></tr><tr><td>Introducing direct evidence</td><td>OP: Man walking with tall buildings with reflections behind him. (Neutral) NP: Man walking away from his friend, with tall buildings</td></tr><tr><td>Introducing indirect evidence</td><td>with reflections behind him. (Contradiction) H: The man was walking to meet a friend. OP:An Indian man standing on the bank of a river. (Neutral) NP: An Indian man standing with only a camera on the bank of a river. (Contradiction)</td></tr><tr><td>Substituting entities</td><td>H: He is fishing. OP:A young man in front of a grill laughs while pointing at something to his left. (Entailment) NP: A young man in front of a chair laughs while pointing at</td></tr><tr><td>Numerical modifications</td><td>something to his left. (Neutral) H:A man is outside OP:The exhaustion in the woman's face while she continues to ride her bicycle in the competition.(Neutral) NP: The exhaustion in the woman's face while she continues to ride her bicycle in the competition for people above 7 ft.</td></tr><tr><td>Reducing evidence</td><td>(Entailment) H: A tall person on a bike OP: The girl in yellow shorts and white jacket has a tennis ball in her left pocket. (Entailment) NP: The girl in yellow shorts and white jacket has a tennis ball.</td></tr><tr><td>Using abstractions</td><td>(Neutral) H: A girl with a tennis ball in her pocket. OP: An elderly woman in a crowd pushing a wheelchair. (En- tailment)</td></tr><tr><td>Substituting evidence</td><td>NP: An elderly person in a crowd pushing a wheelchair. (Neu- tral) H: There is an elderly woman in a crowd. OP: A woman is cutting something with scissors. (Entail- ment) NP: A woman is reading something about scissors. (Contra- diction)</td></tr></table>",
|
| 457 |
+
"bbox": [
|
| 458 |
+
179,
|
| 459 |
+
137,
|
| 460 |
+
815,
|
| 461 |
+
678
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 6
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "0.2). The output from this LSTM is then passed to a fully-connected output layer with softmax activation. We train this model for up to 20 epochs with same early stopping criteria as for Bi-LSTM, using the Adam optimizer with a learning rate of $\\mathrm { 1 e { - } 3 }$ and a batch size of 32. ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
729,
|
| 471 |
+
821,
|
| 472 |
+
772
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 6
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "BERT We use an off-the-shelf uncased BERT Base model, fine-tuning for each task.3 To account for BERT’s sub-word tokenization, we set the maximum token length is set at 350 for sentiment analysis and 50 for NLI. We fine-tune BERT up to 20 epochs with same early stopping criteria as for Bi-LSTM, using the BERT Adam optimizer with a batch size of 16 (to fit on a Tesla V-100 GPU). We found learning rates of $5 \\mathrm { e } { - 5 }$ and $1 \\mathrm { e } { - } 5$ to work best for sentiment analysis and NLI respectively. ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
174,
|
| 481 |
+
779,
|
| 482 |
+
825,
|
| 483 |
+
849
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 6
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "image",
|
| 489 |
+
"img_path": "images/dc07cb5d2dccb512e1c308efdaf27a8d1d6129edb1f9b1ad6b4b1d2083e97816.jpg",
|
| 490 |
+
"image_caption": [
|
| 491 |
+
"Figure 3: Most important features learned by an SVM classifier trained on TF-IDF bag of words. "
|
| 492 |
+
],
|
| 493 |
+
"image_footnote": [],
|
| 494 |
+
"bbox": [
|
| 495 |
+
176,
|
| 496 |
+
99,
|
| 497 |
+
812,
|
| 498 |
+
198
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 7
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "5 EXPERIMENTAL RESULTS ",
|
| 505 |
+
"text_level": 1,
|
| 506 |
+
"bbox": [
|
| 507 |
+
176,
|
| 508 |
+
251,
|
| 509 |
+
419,
|
| 510 |
+
266
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 7
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "Sentiment Analysis We find that for sentiment analysis, linear models trained on the original $1 . 7 k$ reviews achieve $8 0 \\%$ accuracy when evaluated on original reviews but only $5 1 \\%$ (level of random guessing) on revised reviews (Table 5). Linear models trained on revised reviews achieve $9 1 \\%$ accuracy on revised reviews but only $5 8 . 3 \\%$ on the original test set. We see similar pattern for Bi-LSTMs where accuracy drops substantially in both directions. Interestingly, while BERT models suffer drops too, they are less pronounced, perhaps a benefit of the exposure to a larger dataset where the spurious patterns may not have held. Classifiers trained on combined datasets perform well on both, often within $\\approx 3$ pts of models trained on the same amount of data taken only from the original distribution. Thus, there may be a price to pay for breaking the reliance on spurious associations, but it may not be substantial. ",
|
| 517 |
+
"bbox": [
|
| 518 |
+
174,
|
| 519 |
+
284,
|
| 520 |
+
825,
|
| 521 |
+
422
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 7
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "We also conduct experiments to evaluate our sentiment models vis-a-vis their generalization out-ofdomain to new domains. We evaluate models on Amazon reviews (Ni et al., 2019) on data aggregated over six genres: beauty, fashion, appliances, giftcards, magazines, and software, the Twitter sentiment dataset (Rosenthal et al., 2017),4 and Yelp reviews released as part of the Yelp dataset challenge. We show that in almost all cases, models trained on the counterfactually-augmented IMDb dataset perform better than models trained on comparable quantities of original data. ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
174,
|
| 530 |
+
429,
|
| 531 |
+
823,
|
| 532 |
+
513
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 7
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "To gain intuition about what is learnable absent the edited spans, we tried training several models on passages where the edited spans have been removed from training set sentences (but not test set). SVM, Na¨ıve Bayes, and Bi-LSTM achieve $5 7 . 8 \\%$ , $5 9 . 1 \\%$ , $6 0 . 2 \\%$ accuracy, respectively, on this task. Notably, these passages are predictive of the (true) label despite being semantially compatible with the counterfactual label. However, BERT performs worse than random guessing. ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
174,
|
| 541 |
+
520,
|
| 542 |
+
825,
|
| 543 |
+
589
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 7
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "In one simple demonstration of the benefits of our approach, we note that seemingly irrelevant words such as: romantic, will, my, has, especially, life, works, both, it, its, lives and gives (correlated with positive sentiment), and horror, own, jesus, cannot, even, instead, minutes, your, effort, script, seems and something (correlated with negative sentiment) are picked up as high-weight features by linear models trained on either original or revised reviews as top predictors. However, because humans never edit these during revision owing to their lack of semantic relevance, combining the original and revised datasets breaks these associations and these terms cease to be predictive of sentiment (Fig 4). Models trained on original data but at the same scale as combined data are able to perform slightly better on the original test set but still fail on the revised reviews. All models trained on $1 9 k$ original reviews receive a slight boost in accuracy on revised data (except Na¨ıve Bayes), yet their performance significantly worse compared to specialized models. Retraining models on a combination of the original $1 9 k$ reviews with revised $1 . 7 k$ reviews leads to significant increases in accuracy for all models on classifying revised reviews, while slightly improving the accuracy on classifying the original reviews. This underscores the importance of including counterfactuallyrevised examples in training data. ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
597,
|
| 553 |
+
825,
|
| 554 |
+
804
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 7
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "Natural Language Inference Fine-tuned on $1 . 6 7 k$ original sentence pairs, BERT achieves $7 2 . 2 \\%$ accuracy on SNLI dataset but it is only able to accurately classify $3 9 . 7 \\%$ sentence pairs from the RP set (Table 7). Fine-tuning BERT on the full SNLI training set ( $5 0 0 k$ sentence pairs) results in similar behavior. Fine-tuning it on RP sentence pairs improves its accuracy to $6 6 . 3 \\%$ on RP but causes a drop of roughly 20 pts on SNLI. On RH sentence pairs, this results in an accuracy of $6 7 \\%$ on RH and $\\bar { 7 } 1 . 9 \\%$ on SNLI test set but $4 7 . 4 \\%$ on the RP set. To put these numbers in context, each individual hypothesis sentence in RP is associated with two labels, each in the presence of a different premise. A model that relies on hypotheses only would at best perform slightly better than choosing the majority class when evaluated on this dataset. However, fine-tuning BERT on a combination of RP and RH leads to consistent performance on all datasets as the dataset design forces models to look at both premise and hypothesis. Combining original sentences with RP and RH improves these numbers even further. We compare this with the performance obtained by fine-tuning it on $8 . 3 k$ sentence pairs sampled from SNLI training set, and show that while the two perform roughly within 4 pts of each other when evaluated on SNLI, the former outperforms latter on both RP and RH. ",
|
| 561 |
+
"bbox": [
|
| 562 |
+
174,
|
| 563 |
+
811,
|
| 564 |
+
825,
|
| 565 |
+
895
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 7
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "table",
|
| 571 |
+
"img_path": "images/0edffe5c28acac569cb9dd76b6ab92476a8e5b6fcbd9b4ff8057fb3ed2c803cf.jpg",
|
| 572 |
+
"table_caption": [
|
| 573 |
+
"Table 5: Accuracy of various models for sentiment analysis trained with various datasets. Orig. denotes original, Rev. denotes revised, and Orig. - Edited denotes the original dataset where the edited spans have been removed. "
|
| 574 |
+
],
|
| 575 |
+
"table_footnote": [],
|
| 576 |
+
"table_body": "<table><tr><td> Training data</td><td colspan=\"2\">SVM</td><td colspan=\"2\">NB</td><td colspan=\"2\">ELMo</td><td colspan=\"2\">Bi-LSTM</td><td colspan=\"2\">BERT</td></tr><tr><td></td><td>0</td><td>R</td><td>0</td><td>R</td><td>0</td><td>R</td><td>0</td><td>R</td><td>0</td><td>R</td></tr><tr><td>Orig. (1.7k)</td><td>80.0</td><td>51.0</td><td>74.9</td><td>47.3</td><td>81.9</td><td>66.7</td><td>79.3</td><td>55.7</td><td>87.4</td><td>82.2</td></tr><tr><td>Rev. (1.7k)</td><td>58.3</td><td>91.2</td><td>50.9</td><td>88.7</td><td>63.8</td><td>82.0</td><td>62.5</td><td>89.1</td><td>80.4</td><td>90.8</td></tr><tr><td>Orig. -Edited</td><td>57.8</td><td>1</td><td>59.1</td><td>1</td><td>50.3</td><td>1</td><td>60.2</td><td>1</td><td>49.2</td><td>1</td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>83.7</td><td>87.3</td><td>86.1</td><td>91.2</td><td>85.0</td><td>92.0</td><td>81.5</td><td>92.0</td><td>88.5</td><td>95.1</td></tr><tr><td>Orig. (3.4k)</td><td>85.1</td><td>54.3</td><td>82.4</td><td>48.2</td><td>82.4</td><td>61.1</td><td>80.4</td><td>59.6</td><td>90.2</td><td>86.1</td></tr><tr><td>Orig. (19k)</td><td>87.8</td><td>60.9</td><td>84.3</td><td>42.8</td><td>86.5</td><td>64.3</td><td>86.3</td><td>68.0</td><td>93.2</td><td>88.3</td></tr><tr><td>Orig. (19k)& Rev.</td><td>87.8</td><td>76.2</td><td>85.2</td><td>48.4</td><td>88.3</td><td>84.6</td><td>88.7</td><td>79.5</td><td>93.2</td><td>93.9</td></tr></table>",
|
| 577 |
+
"bbox": [
|
| 578 |
+
178,
|
| 579 |
+
155,
|
| 580 |
+
820,
|
| 581 |
+
339
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 8
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "table",
|
| 587 |
+
"img_path": "images/2796fb07352bd8def1f9773fbae2ef09c489f1270b000701cf7c8ca5897f3db6.jpg",
|
| 588 |
+
"table_caption": [
|
| 589 |
+
"Table 6: Accuracy of various sentiment analysis models on out-of-domain data "
|
| 590 |
+
],
|
| 591 |
+
"table_footnote": [],
|
| 592 |
+
"table_body": "<table><tr><td>Training data</td><td>SVM</td><td>NB</td><td>ELMo</td><td>Bi-LSTM</td><td>BERT</td></tr><tr><td></td><td>Accuracy on Amazon Reviews</td><td></td><td></td><td></td><td></td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>77.1</td><td>82.6</td><td>78.4</td><td>82.7</td><td>85.1</td></tr><tr><td>Orig. (3.4k)</td><td>74.7</td><td>66.9</td><td>79.1</td><td>65.9</td><td>80.0</td></tr><tr><td>Accuracy on Semeval 2017 (Twitter)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>66.5</td><td>73.9</td><td>70.0</td><td>68.7</td><td>82.9</td></tr><tr><td>Orig. (3.4k)</td><td>61.2</td><td>64.6</td><td>69.5</td><td>55.3</td><td>79.3</td></tr><tr><td></td><td>Accuracy </td><td></td><td> on Yelp Reviews</td><td></td><td></td></tr><tr><td>Orig. & Rev. (3.4k)</td><td>87.6</td><td>89.6</td><td>87.2</td><td>86.2</td><td>89.4</td></tr><tr><td>Orig. (3.4k)</td><td>81.8</td><td>77.5</td><td>82.0</td><td>78.0</td><td>85.3</td></tr></table>",
|
| 593 |
+
"bbox": [
|
| 594 |
+
266,
|
| 595 |
+
387,
|
| 596 |
+
730,
|
| 597 |
+
602
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 8
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "table",
|
| 603 |
+
"img_path": "images/78f6a41482b1cd92018b0bf360766974a27298e38ec7c284e8c359177a5acb3b.jpg",
|
| 604 |
+
"table_caption": [
|
| 605 |
+
"Table 7: Accuracy of BERT on NLI with various train and eval sets. "
|
| 606 |
+
],
|
| 607 |
+
"table_footnote": [],
|
| 608 |
+
"table_body": "<table><tr><td>Train/Eval</td><td>Original</td><td>RP</td><td>RH</td><td>RP&RH</td></tr><tr><td>Original (1.67k)</td><td>72.2</td><td>39.7</td><td>59.5</td><td>49.6</td></tr><tr><td>Revised Premise (RP; 3.3k)</td><td>50.6</td><td>66.3</td><td>50.1</td><td>58.2</td></tr><tr><td>Revised Hypothesis (RH; 3.3k)</td><td>71.9</td><td>47.4</td><td>67.0</td><td>57.2</td></tr><tr><td>RP & RH(6.6k)</td><td>64.7</td><td>64.6</td><td>67.8</td><td>66.2</td></tr><tr><td>Original w/RP & RH(8.3k)</td><td>73.5</td><td>64.6</td><td>69.6</td><td>67.1</td></tr><tr><td>Original (8.3k)</td><td>77.8</td><td>44.6</td><td>66.1</td><td>55.4</td></tr><tr><td>Original (500k)</td><td>90.4</td><td>54.3</td><td>74.3</td><td>64.3</td></tr></table>",
|
| 609 |
+
"bbox": [
|
| 610 |
+
256,
|
| 611 |
+
650,
|
| 612 |
+
740,
|
| 613 |
+
819
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 8
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "",
|
| 620 |
+
"bbox": [
|
| 621 |
+
174,
|
| 622 |
+
853,
|
| 623 |
+
825,
|
| 624 |
+
924
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 8
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "table",
|
| 630 |
+
"img_path": "images/93c813b03bfb32adf4ff1998bfde73056911c0c728aaaa9f2d08d437102af6b5.jpg",
|
| 631 |
+
"table_caption": [
|
| 632 |
+
"Table 8: Accuracy of Bi-LSTM classifier trained on hypotheses only "
|
| 633 |
+
],
|
| 634 |
+
"table_footnote": [],
|
| 635 |
+
"table_body": "<table><tr><td>Train/Test</td><td>Original</td><td>RP</td><td>RH</td><td>RP&RH</td></tr><tr><td>Majority class</td><td>34.7</td><td>34.6</td><td>34.6</td><td>34.6</td></tr><tr><td>RP & RH(6.6k)</td><td>32.4</td><td>35.1</td><td>33.4</td><td>34.2</td></tr><tr><td>Original w/RP & RH (8.3k)</td><td>44.0</td><td>25.8</td><td>43.2</td><td>34.5</td></tr><tr><td>Original (8.3k)</td><td>60.2</td><td>20.5</td><td>46.6</td><td>33.6</td></tr><tr><td>Original (500k)</td><td>69.0</td><td>15.4</td><td>53.2</td><td>34.3</td></tr></table>",
|
| 636 |
+
"bbox": [
|
| 637 |
+
266,
|
| 638 |
+
128,
|
| 639 |
+
730,
|
| 640 |
+
252
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 9
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "table",
|
| 646 |
+
"img_path": "images/75a9e344e2f41e95143941f26a4bb63575187dd43d9fae1280e4c0d36cb5e216.jpg",
|
| 647 |
+
"table_caption": [
|
| 648 |
+
"Table 9: Accuracy of models trained to differentiate between original and revised data "
|
| 649 |
+
],
|
| 650 |
+
"table_footnote": [],
|
| 651 |
+
"table_body": "<table><tr><td>Model</td><td>IMDb</td><td>SNLI/RP</td><td>SNLI/RH</td></tr><tr><td>Majority class</td><td>50.0</td><td>66.7</td><td>66.7</td></tr><tr><td>SVM</td><td>67.4</td><td>46.6</td><td>51.0</td></tr><tr><td>NB</td><td>69.2</td><td>66.7</td><td>66.6</td></tr><tr><td>BERT</td><td>77.3</td><td>64.8</td><td>69.7</td></tr></table>",
|
| 652 |
+
"bbox": [
|
| 653 |
+
328,
|
| 654 |
+
305,
|
| 655 |
+
666,
|
| 656 |
+
411
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 9
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "",
|
| 663 |
+
"bbox": [
|
| 664 |
+
176,
|
| 665 |
+
439,
|
| 666 |
+
823,
|
| 667 |
+
481
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 9
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "To further isolate this effect, Bi-LSTM trained on SNLI hypotheses only achieves $6 9 \\%$ accuracy on SNLI test set, which drops to $4 4 \\%$ if it is retrained on combination of original, RP and RH data (Table 8). Note that this combined dataset consists of five variants of each original premisehypothesis pair. Of these five pairs, three consist of the same hypothesis sentence, each associated with different truth value given the respective premise. Using these hypotheses only would provide conflicting feedback to a classifier during training, thus causing the drop in performance. Further, we notice that the gain of the latter over majority class baseline comes primarily from the original data, as the same model retrained only on RP and RH data experiences a further drop of $1 1 . 6 \\%$ in accuracy, performing worse than just choosing the majority class at all times. ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
174,
|
| 676 |
+
487,
|
| 677 |
+
825,
|
| 678 |
+
613
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 9
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "One reasonable concern might be that our models would simply distinguish whether an example were from the original or revised dataset and thereafter treat them differently. The fear might be that our models would exhibit a hypersensitivity (rather than insensitivity) to domain. To test the potential for this behavior, we train several models to distinguish between original and revised data (Table 9). BERT identifies original reviews from revised reviews with $7 7 . 3 \\%$ accuracy. In case of NLI, BERT and Na¨ıve Bayes perform roughly within 3 pts of the majority class baseline $( 6 6 . 7 \\% )$ whereas SVM performs substantially worse. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
619,
|
| 688 |
+
825,
|
| 689 |
+
718
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 9
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "6 CONCLUSION ",
|
| 696 |
+
"text_level": 1,
|
| 697 |
+
"bbox": [
|
| 698 |
+
176,
|
| 699 |
+
747,
|
| 700 |
+
318,
|
| 701 |
+
763
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 9
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "By leveraging humans not only to provide labels but also to intervene upon the data, revising documents to accord with various labels, we can elucidate the difference that makes a difference. Moreover, we can leverage the augmented data to train classifiers less dependent on spurious associations. Our study demonstrates the promise of leveraging human-in-the-loop feedback to disentangle the spurious and non-spurious associations, yielding classifiers that hold up better when spurious associations do not transport out of domain. Our methods appear useful on both sentiment analysis and NLI, two contrasting tasks. In sentiment analysis, expressions of opinion matter more than stated facts, while in NLI this is reversed. SNLI poses another challenge in that it is a 3-class classification task using two input sentences. In future work, we will extend these techniques, leveraging humans in the loop to build more robust systems for question answering and summarization. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
784,
|
| 711 |
+
825,
|
| 712 |
+
924
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 9
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 719 |
+
"text_level": 1,
|
| 720 |
+
"bbox": [
|
| 721 |
+
176,
|
| 722 |
+
103,
|
| 723 |
+
367,
|
| 724 |
+
117
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 10
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "The authors are grateful to Amazon AWS and NVIDIA for providing GPUs to conduct the experiments, Salesforce Research and Facebook AI for their generous grants that made the data collection possible, Sina Fazelpour, Sivaraman Balakrishnan, Shruti Rijhwani, Shruti Palaskar, Aishwarya Kamath, Michael Collins, Rajesh Ranganath and Sanjoy Dasgupta for their valuable feedback, and Tzu-Hsiang Lin for his generous help in creating the data collection platform. We also thank Abridge AI, UPMC, the Center for Machine Learning in Health, and the AI Ethics and Governance Fund for their support of our broader research on robust machine learning. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
174,
|
| 733 |
+
133,
|
| 734 |
+
825,
|
| 735 |
+
231
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 10
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "REFERENCES ",
|
| 742 |
+
"text_level": 1,
|
| 743 |
+
"bbox": [
|
| 744 |
+
174,
|
| 745 |
+
252,
|
| 746 |
+
285,
|
| 747 |
+
267
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 10
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "Samuel R Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. A large annotated corpus for learning natural language inference. In Empirical Methods in Natural Language Processing (EMNLP), 2015. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
276,
|
| 757 |
+
821,
|
| 758 |
+
318
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 10
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Danqi Chen, Jason Bolton, and Christopher D Manning. A thorough examination of the cnn/daily mail reading comprehension task. In Association for Computational Linguistics (ACL), 2016. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
171,
|
| 767 |
+
327,
|
| 768 |
+
823,
|
| 769 |
+
356
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 10
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2019. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
173,
|
| 778 |
+
364,
|
| 779 |
+
823,
|
| 780 |
+
409
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 10
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "Lucas Dixon, John Li, Jeffrey Sorensen, Nithum Thain, and Lucy Vasserman. Measuring and mitigating unintended bias in text classification. In AAAI/ACM Conference on AI, Ethics, and Society. ACM, 2018. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
173,
|
| 789 |
+
416,
|
| 790 |
+
823,
|
| 791 |
+
459
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 10
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
174,
|
| 800 |
+
468,
|
| 801 |
+
823,
|
| 802 |
+
512
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 10
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Max Glockner, Vered Shwartz, and Yoav Goldberg. Breaking nli systems with sentences that require simple lexical inferences. In Association for Computational Linguistics (ACL), 2018. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
173,
|
| 811 |
+
520,
|
| 812 |
+
823,
|
| 813 |
+
550
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 10
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Alex Graves and Jurgen Schmidhuber. Framewise phoneme classification with bidirectional lstm ¨ and other neural network architectures. Neural networks, 18(5-6), 2005. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
173,
|
| 822 |
+
559,
|
| 823 |
+
823,
|
| 824 |
+
588
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 10
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel Bowman, and Noah A Smith. Annotation artifacts in natural language inference data. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACLHLT), 2018. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
597,
|
| 834 |
+
825,
|
| 835 |
+
654
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 10
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems (NeurIPS), 2015. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
662,
|
| 845 |
+
823,
|
| 846 |
+
707
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 10
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Eduard Hovy. Generating natural language under pragmatic constraints. Journal of Pragmatics, 1987. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
169,
|
| 855 |
+
714,
|
| 856 |
+
823,
|
| 857 |
+
744
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 10
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Mohit Iyyer, John Wieting, Kevin Gimpel, and Luke Zettlemoyer. Adversarial example generation with syntactically controlled paraphrase networks. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2018. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
752,
|
| 867 |
+
823,
|
| 868 |
+
796
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 10
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Robin Jia and Percy Liang. Adversarial examples for evaluating reading comprehension systems. In Empirical Methods in Natural Language Processing (EMNLP), 2017. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
171,
|
| 877 |
+
805,
|
| 878 |
+
823,
|
| 879 |
+
834
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 10
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Jason Jo and Yoshua Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017. ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
169,
|
| 888 |
+
843,
|
| 889 |
+
821,
|
| 890 |
+
872
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 10
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Divyansh Kaushik and Zachary C Lipton. How much reading does reading comprehension require? a critical investigation of popular benchmarks. In Empirical Methods in Natural Language Processing (EMNLP), 2018. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
174,
|
| 899 |
+
882,
|
| 900 |
+
823,
|
| 901 |
+
922
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 10
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
171,
|
| 910 |
+
103,
|
| 911 |
+
825,
|
| 912 |
+
132
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 11
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Svetlana Kiritchenko and Saif Mohammad. Examining gender and race bias in two hundred sentiment analysis systems. In Joint Conference on Lexical and Computational Semantics $( { } ^ { * } S E M )$ , 2018. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
176,
|
| 921 |
+
141,
|
| 922 |
+
823,
|
| 923 |
+
184
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 11
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Kaiji Lu, Piotr Mardziel, Fangjing Wu, Preetam Amancharla, and Anupam Datta. Gender bias in neural natural language processing. arXiv preprint arXiv:1807.11714, 2018. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
169,
|
| 932 |
+
194,
|
| 933 |
+
823,
|
| 934 |
+
223
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 11
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Andrew L Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew $\\mathrm { \\Delta Y N g }$ , and Christopher Potts. Learning word vectors for sentiment analysis. In Association for Computational Linguistics: Human Language Technologies (ACL-HLT), 2011. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
231,
|
| 944 |
+
825,
|
| 945 |
+
275
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 11
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Rowan Hall Maudslay, Hila Gonen, Ryan Cotterell, and Simone Teufel. It’s all in the name: Mitigating gender bias with name-based counterfactual data substitution. arXiv preprint arXiv:1909.00871, 2019. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
284,
|
| 955 |
+
825,
|
| 956 |
+
327
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 11
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In International Conference on Machine Learning (ICML), 2010. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
173,
|
| 965 |
+
335,
|
| 966 |
+
821,
|
| 967 |
+
366
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 11
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Jianmo Ni, Jiacheng Li, and Julian McAuley. Justifying recommendations using distantly-labeled reviews and fine-grained aspects. In Empirical Methods in Natural Language Processing and International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019. URL https://www.aclweb.org/anthology/D19-1018. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
173,
|
| 976 |
+
375,
|
| 977 |
+
825,
|
| 978 |
+
431
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 11
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research (JMLR), 12, 2011. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
173,
|
| 987 |
+
439,
|
| 988 |
+
825,
|
| 989 |
+
497
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 11
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2018. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
506,
|
| 999 |
+
826,
|
| 1000 |
+
563
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 11
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Jonas Pfeiffer, Aishwarya Kamath, Iryna Gurevych, and Sebastian Ruder. What do deep networks like to read? arXiv preprint arXiv:1909.04547, 2019. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
571,
|
| 1010 |
+
823,
|
| 1011 |
+
602
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 11
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Adam Poliak, Jason Naradowsky, Aparajita Haldar, Rachel Rudinger, and Benjamin Van Durme. Hypothesis Only Baselines in Natural Language Inference. In Joint Conference on Lexical and Computational Semantics (\\*Sem), 2018. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
609,
|
| 1021 |
+
826,
|
| 1022 |
+
654
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 11
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Stefanos Poulis and Sanjoy Dasgupta. Learning with feature feedback: from theory to practice. In Artificial Intelligence and Statistics (AISTATS), 2017. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
661,
|
| 1032 |
+
823,
|
| 1033 |
+
691
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 11
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Semantically equivalent adversarial rules for debugging nlp models. In Association for Computational Linguistics (ACL), 2018. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
173,
|
| 1042 |
+
700,
|
| 1043 |
+
825,
|
| 1044 |
+
731
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 11
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Sara Rosenthal, Noura Farra, and Preslav Nakov. SemEval-2017 task 4: Sentiment analysis in twitter. In International Workshop on Semantic Evaluation (SemEval), 2017. URL https: //www.aclweb.org/anthology/S17-2088. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
176,
|
| 1053 |
+
738,
|
| 1054 |
+
823,
|
| 1055 |
+
781
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 11
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Judy Hanwen Shen, Lauren Fratamico, Iyad Rahwan, and Alexander M Rush. Darling or babygirl? investigating stylistic bias in sentiment analysis. 5th Workshop on Fairness, Accountability, and Transparency in Machine Learning (FATML), 2018. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
790,
|
| 1065 |
+
825,
|
| 1066 |
+
834
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 11
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal adversarial triggers for nlp. arXiv preprint arXiv:1908.07125, 2019. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
169,
|
| 1075 |
+
843,
|
| 1076 |
+
823,
|
| 1077 |
+
872
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 11
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Omar Zaidan, Jason Eisner, and Christine Piatko. Using annotator rationales to improve machine learning for text categorization. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2007. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
174,
|
| 1086 |
+
881,
|
| 1087 |
+
825,
|
| 1088 |
+
924
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 11
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Omar F Zaidan and Jason Eisner. Modeling annotators: A generative approach to learning from annotator rationales. In Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, 2008. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
173,
|
| 1097 |
+
103,
|
| 1098 |
+
823,
|
| 1099 |
+
146
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 12
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Jieyu Zhao, Tianlu Wang, Mark Yatskar, Vicente Ordonez, and Kai-Wei Chang. Gender bias in coreference resolution: Evaluation and debiasing methods. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), 2018. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
176,
|
| 1108 |
+
155,
|
| 1109 |
+
823,
|
| 1110 |
+
196
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 12
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "Ran Zmigrod, Sebastian J. Mielke, Hanna Wallach, and Ryan Cotterell. Counterfactual data augmentation for mitigating gender stereotypes in languages with rich morphology. In Association for Computational Linguistics (ACL), 2019. ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
174,
|
| 1119 |
+
205,
|
| 1120 |
+
825,
|
| 1121 |
+
250
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 12
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "APPENDIX ",
|
| 1128 |
+
"text_level": 1,
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
176,
|
| 1131 |
+
103,
|
| 1132 |
+
264,
|
| 1133 |
+
117
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 13
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "table",
|
| 1139 |
+
"img_path": "images/4c26af4dc84f8d48660b73f0cd2c08dc0f20685a65ad5e5731734a48927ee41e.jpg",
|
| 1140 |
+
"table_caption": [
|
| 1141 |
+
"Table 10: Most frequent insertions/deletions by human annotators for sentiment analysis. "
|
| 1142 |
+
],
|
| 1143 |
+
"table_footnote": [],
|
| 1144 |
+
"table_body": "<table><tr><td>Revision</td><td>Removed words</td><td>Inserted words</td></tr><tr><td>Positive to Negative</td><td>movie,film,great, like,good,re- ally, would, see,story, love</td><td>movie, film, one, like,bad,would, really,even,story, see</td></tr><tr><td>Negative to Positive</td><td>bad,even,worst, waste,nothing, never,much,would, like, litle</td><td>great, good,best, even, well, amaz- ing,much,many,watch,better</td></tr></table>",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
174,
|
| 1147 |
+
162,
|
| 1148 |
+
823,
|
| 1149 |
+
257
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 13
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "table",
|
| 1155 |
+
"img_path": "images/42bf3a09dc76c9019998b17d1068494ae232bf9cbcad18ec1b7f1f072ceb459a.jpg",
|
| 1156 |
+
"table_caption": [
|
| 1157 |
+
"Table 11: Most frequent insertions/deletions by human annotators for SNLI. "
|
| 1158 |
+
],
|
| 1159 |
+
"table_footnote": [],
|
| 1160 |
+
"table_body": "<table><tr><td colspan=\"2\">Revision Removed words</td><td>Inserted words</td></tr><tr><td colspan=\"2\">Revising Premise</td><td></td></tr><tr><td>Entailment to Neutral</td><td>woman,walking,man,blue, sitting, men, girl, standing, looking,running</td><td>person, near, child, something, together, people, tall, vehicle, wall, holding</td></tr><tr><td>Neutral to Entailment</td><td>man,street,black,water, little, front,young,playing,woman, two</td><td>waiting,couple,playing,run- ning, getting,making, tall, game, black,happily</td></tr><tr><td>Entailment to Contradiction</td><td>blue,people,standing,girl, front,street,red,young,sit- ting,band</td><td>sitting, standing, inside, young, women, child, red, men, sits,one</td></tr><tr><td>Contradiction to Entailment</td><td>sitting,man,walking,black, blue,people,red,standing, white,street</td><td>man,sitting, sleeping,woman, sits,eating,playing,park, two, standing</td></tr><tr><td>Neutral to Contradiction</td><td>man, woman, people,boy, black,red,standing,young, two,water</td><td>man,woman, boy, men, alone, sitting,girl,dog,three,one</td></tr><tr><td>Contradiction to Neutral</td><td>man, sitting,black,blue,walk-1 ing,red,standing, street, white,street</td><td>man, sitting, woman, peo- ple,person, near, something, something,sits,black</td></tr><tr><td colspan=\"3\">Revising Hypothesis</td></tr><tr><td>Entailment to Neutral</td><td>man, wearing, white, blue, black,shirt,one,young,peo- ple,woman</td><td>people,there,playing,man, person,wearing,outside,two, old, near</td></tr><tr><td>Neutral to Entailment</td><td>white,wearing,shirt,black, blue, man, two, standing, young, red</td><td>playing,wearing,man, two, there,woman,people,men, near,person</td></tr><tr><td>Entailment to Contradiction</td><td>man, wearing, white, blue, black,two,shirt,one,young, people</td><td>people,man, woman, playing, no,inside,person, two,wear- ing,women</td></tr><tr><td>Contradiction to Entailment</td><td>wearing, blue, black, man, white,two,red,shirt,young, one</td><td>people, there,man, two,wear- ing, playing, people,men, woman, outside</td></tr><tr><td>Neutral to Contradiction</td><td>white, man, wearing, shirt, black,blue,two,standing, woman, red</td><td>woman,man,there,playing, two,wearing, one,men,girl, no</td></tr><tr><td>Contradiction to Neutral</td><td>wearing,blue,black,man, white, two,red, sitting,young, standing</td><td>people,playing,man,woman, two,wearing,near, tall,men, old</td></tr></table>",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
176,
|
| 1163 |
+
205,
|
| 1164 |
+
823,
|
| 1165 |
+
832
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 14
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "image",
|
| 1171 |
+
"img_path": "images/7cb9700ac11b85a6f7186dd7b2be5724ab8c3d6da2bbcb8cb8bcc5a7c49722da.jpg",
|
| 1172 |
+
"image_caption": [
|
| 1173 |
+
"Figure 4: Thirty most important features learned by an SVM classifier trained on TF-IDF bag of words. "
|
| 1174 |
+
],
|
| 1175 |
+
"image_footnote": [],
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
240,
|
| 1178 |
+
176,
|
| 1179 |
+
756,
|
| 1180 |
+
789
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 15
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "The blue box contains a text passage and a label. Please edit this text in the textbox below, making a small number of changes such that: ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
178,
|
| 1189 |
+
202,
|
| 1190 |
+
830,
|
| 1191 |
+
231
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 16
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "(a) the document remains coherent and (b) the new label (colored) accurately describes the revised passage. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
179,
|
| 1200 |
+
238,
|
| 1201 |
+
625,
|
| 1202 |
+
266
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 16
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Do not change any portions of the passage unnecessarily. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
184,
|
| 1211 |
+
272,
|
| 1212 |
+
552,
|
| 1213 |
+
286
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 16
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "After modifying the passage and checking it over to make sure that is coherent and matches the label. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
181,
|
| 1222 |
+
287,
|
| 1223 |
+
828,
|
| 1224 |
+
314
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 16
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "(a) Revising IMDb movie reviews ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
403,
|
| 1233 |
+
316,
|
| 1234 |
+
606,
|
| 1235 |
+
330
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 16
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "The upper blue box contains Sentence 1. The lower blue box contains Sentence 2. Given that Sentence 1 is True, Sentence 2 (by implication), must either be (a) definitely True, (b) definitely False, or (c) May be True. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
179,
|
| 1244 |
+
348,
|
| 1245 |
+
715,
|
| 1246 |
+
392
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 16
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "You are presented with an initial Sentence 1 and Sentence 2 and the correct initial relationship label (True, False, or May be True). ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
178,
|
| 1255 |
+
397,
|
| 1256 |
+
831,
|
| 1257 |
+
426
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 16
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Please edit Sentence 2 in the textboxes, making a small number of changes such that: ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
179,
|
| 1266 |
+
433,
|
| 1267 |
+
738,
|
| 1268 |
+
448
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 16
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "(a) The new sentences are coherent and \n(b) The target labels (in red) accurately describe the truthfulness of the modified Sentence 2 given the original Sentence 1. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
178,
|
| 1277 |
+
454,
|
| 1278 |
+
833,
|
| 1279 |
+
496
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 16
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Do not change any portions of the sentence unnecessarily. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
179,
|
| 1288 |
+
502,
|
| 1289 |
+
560,
|
| 1290 |
+
516
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 16
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "After modifying the text and checking it over to make sure that it is coherent and matches the target label. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
179,
|
| 1299 |
+
517,
|
| 1300 |
+
828,
|
| 1301 |
+
545
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 16
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "(b) Revising hypothesis in SNLI ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
408,
|
| 1310 |
+
547,
|
| 1311 |
+
601,
|
| 1312 |
+
561
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 16
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "The upper blue box contains Sentence 1. The lower blue box contains Sentence 2. Given that Sentence 1 is True, Sentence 2 (by implication), must either be (a) definitely True, (b) definitely False, or (c) May be True. ",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
179,
|
| 1321 |
+
579,
|
| 1322 |
+
715,
|
| 1323 |
+
622
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 16
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "You are presented with an initial Sentence 1 and Sentence 2 and the correct initial relationship label (True, False, or May be True). ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
176,
|
| 1332 |
+
627,
|
| 1333 |
+
828,
|
| 1334 |
+
656
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 16
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Please edit Sentence 1 in the textboxes, making a small number of changes such that: ",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
181,
|
| 1343 |
+
662,
|
| 1344 |
+
740,
|
| 1345 |
+
678
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 16
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "(a) The new sentences are coherent and \n(b) The target labels (in red) accurately describe the truthfulness of the original Sentence 2 given the modified Sentence 1. ",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
179,
|
| 1354 |
+
684,
|
| 1355 |
+
830,
|
| 1356 |
+
726
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 16
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "After modifying the text and checking it over to make sure that it is coherent and matches the target label. ",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
174,
|
| 1365 |
+
748,
|
| 1366 |
+
833,
|
| 1367 |
+
773
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 16
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "(c) Revising premise in SNLI ",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
416,
|
| 1376 |
+
777,
|
| 1377 |
+
591,
|
| 1378 |
+
791
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 16
|
| 1381 |
+
}
|
| 1382 |
+
]
|
parse/train/Sklgs0NFvr/Sklgs0NFvr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Sklgs0NFvr/Sklgs0NFvr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|