Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/B1lgUkBFwr/B1lgUkBFwr.md +418 -0
- parse/train/B1lgUkBFwr/B1lgUkBFwr_content_list.json +0 -0
- parse/train/B1lgUkBFwr/B1lgUkBFwr_middle.json +0 -0
- parse/train/B1lgUkBFwr/B1lgUkBFwr_model.json +0 -0
- parse/train/BJ6anzb0Z/BJ6anzb0Z.md +293 -0
- parse/train/BJ6anzb0Z/BJ6anzb0Z_content_list.json +1529 -0
- parse/train/BJ6anzb0Z/BJ6anzb0Z_middle.json +0 -0
- parse/train/BJ6anzb0Z/BJ6anzb0Z_model.json +0 -0
- parse/train/J8_GttYLFgr/J8_GttYLFgr.md +511 -0
- parse/train/J8_GttYLFgr/J8_GttYLFgr_content_list.json +0 -0
- parse/train/J8_GttYLFgr/J8_GttYLFgr_middle.json +0 -0
- parse/train/J8_GttYLFgr/J8_GttYLFgr_model.json +0 -0
- parse/train/TtYSU29zgR/TtYSU29zgR.md +428 -0
- parse/train/TtYSU29zgR/TtYSU29zgR_content_list.json +0 -0
- parse/train/TtYSU29zgR/TtYSU29zgR_middle.json +0 -0
- parse/train/TtYSU29zgR/TtYSU29zgR_model.json +0 -0
- parse/train/rJe2syrtvS/rJe2syrtvS.md +342 -0
- parse/train/rJe2syrtvS/rJe2syrtvS_content_list.json +1935 -0
- parse/train/rydeCEhs-/rydeCEhs-.md +311 -0
- parse/train/rydeCEhs-/rydeCEhs-_middle.json +0 -0
parse/train/B1lgUkBFwr/B1lgUkBFwr.md
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNSUPERVISED DOMAIN ADAPTATION WITH IMPUTATION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Motivated by practical applications, we consider unsupervised domain adaptation for classification problems, in the presence of missing data in the target domain. More precisely, we focus on the case where there is a domain shift between source and target domains, while some components in the target data are systematically absent. We propose a way to impute non-stochastic missing data for a classification task by leveraging supervision from a complete source domain through domain adaptation. We introduce a single model performing joint domain adaptation, imputation and classification which is shown to perform well under various representative divergence families $\mathcal { H }$ -divergence, Optimal Transport). We perform experiments on two families of datasets: a classical digit classification benchmark commonly used in domain adaptation papers and real world digital advertising datasets, on which we evaluate our model’s classification performance in an unsupervised setting. We analyze its behavior showing the benefit of explicitly imputing non-stochastic missing data jointly with domain adaptation.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
When dealing with machine learning applications in the real world, data usually come with several imperfections that make classical algorithms hardly deployable. One of these issues is that data are often incomplete. Typically, while capturing data coming from different locations with several sensors per location, a sensor may randomly fail or even may be just missing at a given location. Such a situation can also occur in disease diagnosis in multi-modal medical imaging where one of the modalities fails or is not available; for example the positron emission tomography (PET) modality which reveals metabolic information for clinical tests requires ingesting a radioactive tracer which poses health risks and is often missing (Cai et al., 2018). Similarly, in computational advertising applications, information is missing for users who do not have a prior history on a merchant’s website while their global clicking behavior across websites may be known. Another common issue is that data used for training and deployment may differ in their generation process: data may be collected on different devices, background noise or compression schemes may affect differently training or deployment data, leading to a shift in data distribution. This has given rise to the important literature of Domain Adaptation (Pan & Yang, 2010; Kouw & Loog, 2019). These two issues are usually independently addressed by developing models handling only the missing data or the domain adaptation problem.
|
| 12 |
+
|
| 13 |
+
In this paper, motivated by practical advertising applications, we consider unsupervised domain adaptation (i.e. labels are not available in the target domain) for classification when (1) part of input data is missing in the target domain thus requiring some form of imputation, (2) there is no possible supervision in the target domain for imputation thus requiring indirect supervision from the source domain, and (3) there exists a domain shift between the source and target distributions requiring domain adaptation. More precisely we consider this adaptation-imputation setting for nonstochastic missing data, i.e. when the same features are missing for all target samples. This contrasts with many imputation problems which take benefit of stochasticity in missing features.
|
| 14 |
+
|
| 15 |
+
We propose a model that handles unsupervised domain shift and missing data assuming nonstochastic missing data in the target domain. The model learns to perform imputation for the target domain while aligning the distributions of the source and target domains in a latent space, thus going beyond the simple juxtaposition of a data imputation module followed by a domain-invariant feature representation learning module. Imputation makes use of an indirect supervision from the complete source domain. This key property allows us to handle non-stochastic missing data, while satisfying the constraints related to adaptation and to the classification objective. The imputation process plays several roles in our global architecture as it provides us with information about the missing data for the target domain while contributing to the domain-invariant loss and the reconstruction loss. Extensive empirical evidence on handwritten digits and Click-Through-Rate prediction (CTR) domain adaptation problems illustrate the benefit of the proposed model.
|
| 16 |
+
|
| 17 |
+
The original contributions are the following:
|
| 18 |
+
|
| 19 |
+
• We introduce a new problem $:$ joint unsupervised domain adaptation and imputation for classification motivated by practical applications;
|
| 20 |
+
• We propose a new model for handling the problem end-to-end. It learns to generate relevant missing information while aligning source and target distributions in a latent space and to classify source instances;
|
| 21 |
+
• We evaluate the model not only on academic benchmarks but also on challenging real world advertising data.
|
| 22 |
+
|
| 23 |
+
# 2 RELATED WORK
|
| 24 |
+
|
| 25 |
+
We review below typical related work for domain adaptation and data imputation.
|
| 26 |
+
|
| 27 |
+
# 2.1 UNSUPERVISED DOMAIN ADAPTATION (UDA)
|
| 28 |
+
|
| 29 |
+
A number of shallow learning methods approach Domain Adaptation by weighting individual observations during training. These methods focus either on data importance-weighting (Cortes & Mohri, 2014; Zadrozny, 2014) or on class importance-weighting (Z. Lipton & Smola, 2018). Recent deep learning methods try to align the distributions of the two domains, for example by embedding them in a joint latent space. There are two main directions for learning joint embeddings. One is based on adversarial training, making use of GAN extensions. The other one directly exploits explicit distance measures between distributions such as Wasserstein or Maximum Mean Discrepancy (MMD). For the former, the seminal work of Ganin & Lempitsky (2015) learns to map source and target domains onto a common embedding space, by optimizing a double objective: on the one hand they minimize an approximation of the $\mathcal { H }$ -divergence between the source and target embeddings via adversarial training, on the other hand they learn to classify the source data embeddings. This influential work has been followed by several extensions and variants. ADDA (Tzeng et al., 2017) advocates the use of two different mappings for the source and the target domains based on the argument that this is more suitable when the marginals are different in the two domains. Liu & Tuzel (2016) trains coupled generative adversarial network (CoGAN) for learning a joint distribution of multi-domain images, that can be used for UDA. Bousmalis et al. (2017) use a generator to map the source to the target domain while training the classifier on the learned representations using source labels. CDAN (Long et al., 2017) improves the domain discriminator by conditioning it on classifier predictions.
|
| 30 |
+
|
| 31 |
+
A second family of approaches proposes metric based divergences such as MMD (Long et al., 2015) for measuring the loss between source and target representations. DeepJDOT (Damodaran & Kellenberger, 2018) makes use of an optimal transport formulation to align the joint distributions in a latent space. In addition to feature alignment they perform label distribution alignment following Courty et al. (2017). All these works rely on the assumption of covariate shift and consider that full input data is available for both source and target domains. Our two models (ADV and OT) can be seen respectively as extensions of Ganin & Lempitsky (2015) and Damodaran & Kellenberger (2018) for the missing data problem.
|
| 32 |
+
|
| 33 |
+
# 2.2 IMPUTATION
|
| 34 |
+
|
| 35 |
+
Data imputation is a classical problem addressed by several methods (Little & Rubin, 2002; Van Buuren, 2018; Murray, 2018). The usual setting is different from ours since it considers reconstructing the whole missing data in the input space, while we consider 1) reconstruction in a latent space and 2) partial reconstruction since we are interested in the information relevant to the classification task only. Recent generative models like GANs (Goodfellow et al., 2014) or VAEs (Kingma & Welling, 2013; Rezende et al., 2014) have been adapted for data imputation in Yoon et al. (2018) and Mattei & Frellsen (2019) respectively. GAIN (Yoon et al., 2018) is an extension of conditional GANs where the generator takes as input an incomplete data and performs imputation while the discriminator is trained to guess for each sample if each variable is original or imputed. Mattei & Frellsen (2019) suggests a method based on deep latent variable models and importance sampling that offers tighter likelihood bound compared to the standard VAE bound. Most approaches consider a supervised setting where 1) paired complete and incomplete data are available and 2) missingness corresponds to a stochastic process (e.g. a mask distribution for tabular data), 3) imputation is performed in the original feature space. Note that this is different from our setting where there is no direct supervision (supervision is only provided indirectly through the source domain) and missingness is non-stochastic which makes the problem harder since one cannot compute statistics on different incomplete samples. The general approach with generative models is to learn a distribution over imputed data which is similar to the one of plain data. This comes in many different instances and usually, generative training alone is not sufficient; additional loss terms are often used. In paired problems, i.e. when each missing datum is associated to a plain version of the datum, these additional terms consist of a reconstruction term imposed by a MSE contraint (Isola et al., 2016b). In unpaired problems a cycle-consistency loss is imposed as in Zhu et al. (2017). Li et al. (2019); Pajot et al. (2019) are among the very few approaches addressing unsupervised imputation in which full instances are never directly used. Both extend the AmbientGAN (Bora et al., 2018) framework and consider stochastic missingness.
|
| 36 |
+
|
| 37 |
+
Our imputation problem is closer to the ones addressed in some forms of inpainting or for multimodality missing data. The former problem is addressed e.g. in Pathak et al. (2016) who proposes an encoder-decoder model trained according to a joint reconstruction and adversarial loss. The latter is addressed in Cai et al. (2018) who considers the case of multi-modality when one or more modalities are systematically absent, but they do not consider adaptation. They propose to learn to reconstruct the missing modality distribution conditionally to the observed one. Both approaches are fully supervised. Ding et al. (2014) is the only paper we are aware of that considers imputation as we do. Their approach is based on low rank constraints and dictionary learning to guide the transfer between domains. We do not use this method as a baseline due to the complexity and running time of this method which relies on singular value decompositions and dictionnary learning.
|
| 38 |
+
|
| 39 |
+
# 3 PROBLEM DEFINITION
|
| 40 |
+
|
| 41 |
+
Let us denote respectively $( x _ { S } , y _ { S } ) \in \mathbb { R } ^ { n } \times \mathbb { R }$ and $( x _ { T } , y _ { T } ) \in \mathbb { R } ^ { n } \times \mathbb { R }$ , data from the source and target domains where $x _ { - }$ is an input, $y _ { - }$ the associated label and $n$ is the dimension of the input space. “−” holds for either source $S$ or target $T$ . The joint distribution on each domain is denoted respectively $p _ { S } ( X , Y )$ and $p _ { T } ( X , Y )$ . We consider that $x _ { - }$ has two components, $x _ { - } = ( x _ { - 1 } , x _ { - 2 } )$ . The problem we address is Unsupervised Domain Adaptation (UDA) with missing features in the target domain. More precisely, we make the following hypotheses. Missingness: We assume that features are the same across domains and that source features $x _ { S } = ( x _ { S _ { 1 } } , x _ { S _ { 2 } } )$ are always available while in the target domain only $x _ { T _ { 1 } }$ is available and $x _ { T _ { 2 } }$ is systematically missing. For advertising applications for example, $x$ would characterize the user browsing behaviour on merchant sites; $x _ { - _ { 1 } }$ characterizes global user features aggregated over his navigation history, which are known for all users; $x _ { - _ { 2 } }$ characterizes user history on a target merchant site. Source domain would consist of all users who already visited this merchant site and target domain of users who never visited this site. UDA: we assume that source labels $y _ { S }$ are available whereas target labels $y _ { T }$ are unknown. Covariate shift: we assume covariate shift as in most UDA papers e.g. Ganin & Lempitsky (2015).
|
| 42 |
+
|
| 43 |
+
# 4 ADAPTATION-IMPUTATION MODEL
|
| 44 |
+
|
| 45 |
+
As in many generative approaches to UDA, the objective is to project source and target data onto a common latent space in which data distributions from the two domains match, and to learn a classifier on the source data that performs well on the target domain. The novelty of our approach is to offer a solution to deal with datasets in which some information, $x _ { T _ { 2 } }$ , is systematically missing in the target domain. Our model, denoted Adaptation-Imputation, performs three operations jointly: imputation of missing information for the target data, alignment of the distributions of source and target, and classification of source instances. The three operations are performed in a joint embedding space and all the model’s components are trained together. The term imputation is used here in a broad sense: our goal is not to recover the whole missing $x _ { T _ { 2 } }$ , but to recover information from $x _ { T _ { 2 } }$ that will be useful for adaptation and for the target data classification objective. This is achieved via a generative model, which for a given datum in the target domain and conditionally on the available information $x _ { T _ { 1 } }$ , attempts to generate the required missing information. Because $x _ { T _ { 2 } }$ is systematically missing for target data, there is no possible supervision in the target domain; instead we use distant supervision from the source data while transferring to the target domain. We consider two variants of the same model based on different divergence measures between source and target distributions: the Wasserstein distance and the $\mathcal { H }$ -divergence approximated through adversarial training. For simplicity we describe in the main text the adversarial version ADV and defer the Optimal Transport OT description to Appendix B. We report the results obtained with both models in Section 5.
|
| 46 |
+
|
| 47 |
+
# 4.1 TRAINING
|
| 48 |
+
|
| 49 |
+
Our model is composed of three different modules responsible for adaptation, imputation and classification, that share parameters and are trained in parallel. For simplicity, we describe each component in turn, but it should be reminded that they all interact and that their parameters are all optimized according to the three objectives mentioned above. The interaction is discussed after the individual module descriptions. The model’s components are illustrated in Figure 1 (a).
|
| 50 |
+
|
| 51 |
+
Adaptation The latent space representations of source and target domains are denoted with a tilde notation: $\widetilde { x } _ { S } = ( \widetilde { x } _ { S _ { 1 } } , \widetilde { x } _ { S _ { 2 } } )$ and $\widetilde { x } _ { T } = ( \widetilde { x } _ { T _ { 1 } } , \widetilde { x } _ { T _ { 2 } } )$ . Referring to Figure 1 (a), $\widetilde { x } _ { - 1 } = g _ { 1 } ( x _ { - 1 } )$ , $( \widetilde { x } _ { - 1 }$ edenotes either $\widetilde { x } _ { S _ { 1 } }$ or $\widetilde { x } _ { T _ { 1 } }$ e e e) is the mapping of the observed component $x _ { - _ { 1 } }$ e eonto the latent space and $\widetilde x _ { - , { \scriptsize 2 } } = h \circ g _ { 1 } ( x _ { - , { \scriptsize 1 } } )$ is the second component’s latent representation generated from $x _ { - 1 }$ . This egeneration mechanism will be described later. Adaptation aligns the distributions $( \widetilde { x } _ { S _ { 1 } } , \widetilde { x } _ { S _ { 2 } } )$ and $( \widetilde { x } _ { T _ { 1 } } , \widetilde { x } _ { T _ { 2 } } )$ e e in the latent space. For the ADV model, alignment is performed via a classical adversarial e eloss operating on the latent representations:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
{ \cal L } _ { 1 } = { \cal E } _ { x \sim p _ { S } ( X ) } \log D _ { 1 } ( \widetilde { x } _ { S } ) + { \cal E } _ { x \sim p _ { T } ( X ) } \log ( 1 - D _ { 1 } ( \widetilde { x } _ { T } ) )
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where $D _ { 1 } ( \widetilde { x } )$ represents the probability that $\widetilde { x }$ comes from the source rather than the target.
|
| 58 |
+
|
| 59 |
+
Imputation Imputation amounts at generating an encoding $\widetilde { x } _ { T _ { 2 } }$ , in the latent space, for the missing information in the target data, conditioned on the available information $x _ { T _ { 1 } }$ . Our objective here is to generate missing information which is relevant for the classification objective. Since we never have access to any target component $x _ { T _ { 2 } }$ , we learn to perform imputation based on the source data. More precisely, we learn to generate $\widetilde { x } _ { S _ { 2 } }$ from $x _ { S _ { 1 } }$ through the generator $h$ , $\widetilde x _ { S _ { 2 } } = h \circ g _ { 1 } ( x _ { S _ { 1 } } )$ , as depicted in Figure 1. We want $h$ eto generate the missing information $\widetilde { x } _ { S _ { 2 } }$ eassociated to the observed $x _ { S _ { 1 } }$ . For ethat we perform two operations in parallel. First, we align the distribution of $\widetilde { x } _ { S _ { 2 } }$ with the distribution of $\widehat { x } _ { S _ { 2 } } = g _ { 2 } ( x _ { S _ { 2 } } )$ , that is a direct mapping of $x _ { S _ { 2 } }$ eonto the shared latent space, using an adversarial bloss described below. The intuition is that both $g _ { 1 }$ and $g _ { 2 }$ are simple mappings operating respectively on $x _ { S _ { 1 } }$ and $x _ { S _ { 2 } }$ while $h$ acts as a generator conditioned on $x _ { S _ { 1 } }$ for generating $\widetilde { x } _ { S _ { 2 } }$ . Moreover, we not only impose this distribution alignment, but would also like $\widetilde { x } _ { S _ { 2 } }$ eto represent missing information relative to $x _ { S _ { 2 } }$ and associated to a specific $x _ { S _ { 1 } }$ e. For that, we use a reconstruction term in parallel to the above alignment, in our case a MSE distance between $\widetilde { x } _ { S _ { 2 } }$ and $\widehat { x } _ { S _ { 2 } }$ . This MSE term guarantees that the imputed $\widetilde { x } _ { S _ { 2 } }$ etruly represents information present in $x _ { S _ { 2 } }$ b. Similar ideas combine distribution ematching and MSE conditioning and have been used e.g. in Isola et al. (2016a); Pathak et al. (2016). The learned mappings are used to perform imputation on the target data $\widetilde x _ { T _ { 2 } } = h \circ g _ { 1 } ( x _ { T _ { 1 } } )$ .
|
| 60 |
+
|
| 61 |
+
The imputation loss has thus two components. The first is the adversarial term $L _ { A D V }$ responsible for aligning $\widetilde { x } _ { S _ { 2 } }$ and $\widehat { x } _ { S _ { 2 } }$ , $L _ { A D V } = E _ { x _ { 2 } \sim p _ { S } ( X _ { 2 } ) } \log D _ { 2 } ( \widehat { x } _ { S _ { 2 } } ) + E _ { x _ { 1 } \sim p _ { S } ( X _ { 1 } ) } \log ( 1 - D _ { 2 } ( \widetilde { x } _ { S _ { 2 } } ) )$ . The second is the reconstruction term $L _ { M S E } = { \cal E } _ { x \sim p _ { S } ( X ) } \left\| \widetilde { x } _ { S _ { 2 } } - \widehat { x } _ { S _ { 2 } } \right\| _ { 2 } ^ { 2 }$ . The total imputation loss is then:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
{ \cal L } _ { 2 } = \lambda _ { A D V } \times { \cal L } _ { A D V } + \lambda _ { M S E } \times { \cal L } _ { M S E }
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $\lambda _ { A D V } , \lambda _ { M S E }$ are hyperparameters. The two processes of imputation and adaptation influence each other. Both are also influenced by the classification process described below. Its effect
|
| 68 |
+
|
| 69 |
+
on imputation is to force the generated $\widetilde { x } _ { S _ { 2 } }$ to contain information about $x _ { S _ { 2 } }$ relevant for the clasesification task. This information is transferred via adaptation to the target domain when generating $\widetilde { x } _ { T _ { 2 } }$ .
|
| 70 |
+
|
| 71 |
+
Classification The last component of the model is a classifier $f$ , trained on the source domain mapping $\widetilde { x } _ { S }$ for the classification task as classically done for UDA. The corresponding loss is:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
{ \cal L } _ { 3 } = E _ { x \sim p _ { S } ( X ) } { \cal L } _ { D i s c } ( f ( \widetilde { x } _ { S } ) , y _ { S } )
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $\boldsymbol { L _ { D i s c } }$ is typically a cross-entropy loss.
|
| 78 |
+
|
| 79 |
+
Overall loss The overall loss function $L$ will be the weighted sum of the adaptation, imputation and classification losses:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
L = \lambda _ { 1 } \times L _ { 1 } + \lambda _ { 2 } \times L _ { 2 } + \lambda _ { 3 } \times L _ { 3 }
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $\lambda _ { 1 } , \lambda _ { 2 } , \lambda _ { 3 }$ are hyperparameters and the final optimization problem is:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\operatorname* { m i n } _ { g _ { 1 } , g _ { 2 } , h , f } \operatorname* { m a x } _ { D _ { 1 } , D _ { 2 } } L
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
Interaction between the model’s components Both mappings $g _ { 1 } , g _ { 2 }$ and generator $h$ appear in the three terms of the loss function in Equation 4, meaning that they should learn to perform the three tasks simultaneously. $g _ { 1 }$ learns to map the $x _ { S _ { 1 } }$ and $x _ { T _ { 1 } }$ components onto the latent space, the mappings being denoted respectively $\widetilde { x } _ { S _ { 1 } }$ and $\widetilde { x } _ { T _ { 1 } }$ . $h$ learns to generate missing information $\widetilde { x } _ { T _ { 2 } }$ from $\widetilde { x } _ { T _ { 1 } }$ . The formed $\widetilde { x } _ { - }$ e eis generated such that it fulfills the classification objective. $g _ { 2 }$ eon its side e eshould fulfill the imputation objective while preserving part of the information present in $x _ { S _ { 2 } }$ . Note that our model makes use of a unique mapping $g _ { 1 }$ for both source and target domains. Separate mappings could have been used for the two domains, but the proposed solution was found to be more robust and to reduce the number of parameters during learning.
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
Figure 1: Adaptation-Imputation model: (a) training, (b) inference.
|
| 95 |
+
|
| 96 |
+
Implementation Let us now detail the implementation of this model. For adversarial training, discriminators $D _ { 1 }$ (adaptation) and $D _ { 2 }$ (imputation) will be implemented by binary classifiers. $D _ { 1 }$ is trained to distinguish between source $\widetilde { x } _ { S }$ and target $\widetilde { x } _ { T }$ mappings while $D _ { 2 }$ is trained to separate imputed $\widetilde { x } _ { S _ { 2 } }$ , generated from $x _ { S _ { 1 } }$ , from $\widehat { x } _ { S _ { 2 } }$ a direct embedding of $x _ { S _ { 2 } }$ . We use the gradient reversal etrick in Ganin $\&$ b Lempitsky (2015) for implementing the min-max condition and define two gradient reversal networks on $D _ { 1 }$ and $D _ { 2 }$ . We use an adaptive update of the scale of the gradients in $D _ { 1 }$ and $D _ { 2 }$ and optimize $L _ { 1 }$ , $L _ { 2 }$ and $L _ { 3 }$ jointly as synthesized in Algorithm 1 in the Appendix. In practise we fix all hyperparameters but $\lambda _ { M S E }$ to 1, additional tuning could yield improved performance.
|
| 97 |
+
|
| 98 |
+
# 4.2 INFERENCE
|
| 99 |
+
|
| 100 |
+
At inference, given $x _ { T _ { 1 } }$ , we generate $\widetilde { x } _ { T } = ( \widetilde { x } _ { T _ { 1 } } , \widetilde { x } _ { T _ { 2 } } )$ with $\widetilde { x } _ { T _ { 1 } } = g _ { 1 } ( x _ { T _ { 1 } } )$ an embedding of $x _ { T _ { 1 } }$ and a generated $\widetilde { x } _ { T _ { 2 } }$ e e e e, encoding part of the missing information $x _ { T _ { 2 } }$ in $x _ { T }$ , as illustrated in Figure 1 e(b). We use for the latter the following mapping: $\widetilde x _ { T _ { 2 } } = h \circ g _ { 1 } ( x _ { T _ { 1 } } )$ where $g _ { 1 }$ is as above and $h$ is the generative mapping conditioned on $\widetilde { x } _ { T _ { 1 } }$ e. Finally $\widetilde { x } _ { T }$ is used as input to the classifier $f$ .
|
| 101 |
+
|
| 102 |
+
# 5 EXPERIMENTS
|
| 103 |
+
|
| 104 |
+
# 5.1 DATASETS AND EXPERIMENTAL SETTING
|
| 105 |
+
|
| 106 |
+
Datasets Experiments are performed on two types of datasets. The first one is a classical digits classification benchmark used in many domain adaptation studies which we will refer to as digits and transformed to fit our missing data setting. The second one corresponds to advertising datasets. The task here is binary classification: one wants to predict Click-Through-Rate (CTR) or Conversion Rate (CR) given user behavior. This is one of the problem that has initially motivated our adaptationimputation framework. We use two such datasets: ads-kaggle is a public kaggle dataset1, while ads-real has been gathered internally and corresponds to real advertising traffic. Further details on datasets and preprocessing are presented in Sections 5.2, 5.3 and in Appendix C.
|
| 107 |
+
|
| 108 |
+
Baselines We report results for the following models:
|
| 109 |
+
|
| 110 |
+
• Full models: Source-Full is trained without adaptation on the full $x _ { S }$ and tested on full $x _ { T }$ when the latter is available (digits); Adaptation-Full adds adaptation to this model. • Missing models: Source-Missing and Adaptation-Missing do the same but considering full $x _ { S }$ while $x _ { T }$ is incomplete: $x _ { T } = ( x _ { T _ { 1 } } , 0 )$ , i.e. $x _ { T _ { 2 } }$ is set to 0. • Partial models: Source-Partial and Adaptation-Partial is a variant of the above setting where only the first component $x _ { - _ { 1 } }$ for source and target are considered for adaptation and classification while the second ones $x _ { - _ { 2 } }$ are simply ignored. • Imputation models: Adaptation-Imputation corresponds to our model. • Naive model: Naive is used for ads-kaggle to provide a reference loss value for this dataset. It predicts for all examples the mean CTR value as computed using source training data only.
|
| 111 |
+
|
| 112 |
+
Adaptation-Full is an upper bound of the performance of Adaptation-Imputation since it uses full information while $x _ { T _ { 2 } }$ is not available in practice. Adaptation-Missing and Adaptation-Partial can be considered as lower bounds for our model since they only perform adaptation and no imputation.
|
| 113 |
+
|
| 114 |
+
Parameters and architecture of the neural networks used for the different models and experiments are presented in Appendix D. Hyperparameters are chosen using the Deep Embedded Validation estimator introduced in You et al. (2019) combined with heuristics and typical UDA values. Further details are given in Appendix D.2.1.
|
| 115 |
+
|
| 116 |
+
We present the results for digits and ads respectively in Sections 5.2, 5.3. Section 5.4 presents ablation studies. Reported results are mean value and standard deviation over five different initializations; best results are indicated in bold.
|
| 117 |
+
|
| 118 |
+
# 5.2 DIGITS
|
| 119 |
+
|
| 120 |
+
Description For digits, we consider the unsupervised adaptation between two datasets among MNIST (LeCun et al. (1998)), USPS (Hull (1994)), SVHN (Netzer et al. (2011)) and MNIST-M (Ganin & Lempitsky (2015)). The direction $\mathrm { M N I S T } \mathrm { S V H N }$ is not considered as the task is difficult even for traditional UDA (Ganin & Lempitsky, 2015). All tasks are 10-class classification problems. From the complete image datasets, we build datasets with missing input values.
|
| 121 |
+
|
| 122 |
+
Half digit missing In a first series of experiments, we removed one half of each image, the horizontal bottom part. We report classification accuracy in Table 1 for the different adaptation problems and models (ADV and OT). Removing half of the image leads to a strong performance decrease for Source-Partial and Source-Missing with respect to the upper bounds provided by Source-Full, respectively between 10 and 20 points of accuracy, and between 15 and 45 points. This is partially recovered when training with adaptation (Adaptation- Partial, Adaptation-Missing, for both ADV or OT). But the gap is still important with respect to the upper bound, i.e. Adaptation-Full. In all cases, Adaptation-Imputation clearly increases the performance; between 10 and 25 points of accuracy over Adaptation-Missing and 2 to 20 points over Adaptation-Partial. This is a very significant improvement which validates the importance of the imputation component. In Section 5.4 we show that the simultaneous use of imputation and adaptation is required for reaching this level of performance. Imputation or adaptation alone are well behind the jointly trained instance of the model. However, it does not reach the upper bound performance of Adaptation-Full where the difference lies between 10 and 25 accuracy points. Moreorever, Adaptation-Imputation beats the non-adapted Source-Full baseline on several datasets. Both the ADV and OT versions exhibit the same general behavior. In the reported results in Table 1, ADV performance is higher than OT. This is because performance is highly dependent on the NN architectures and we tuned our NNs for ADV. OT models may reach performance similar to ADV but we find that it requires models with an order of magnitude more parameters. To keep the comparison fair, we thus used the same NN models for both ADV and OT. Imputation models achieve their highest performance when the adaptation task between domains is complex (MNIST MNIST-M, $\mathrm { S V H N } \to \mathrm { M N I S T } )$ illustrating the importance of imputation when transfer is difficult. In all experiments, the performance of --Partial model where ”-” refers to Source or Adaptation, are usually higher than the --Missing model. Our understanding is that setting missing components to zero tends to increase distance between source and target distributions, compared to just ignoring them, making the classification and adaptation problems harder.
|
| 123 |
+
|
| 124 |
+
Table 1: Classification accuracy performance in $\%$ on digits for the two training criteria on the target domain test set. Standard deviation is in $\%$ .
|
| 125 |
+
|
| 126 |
+
<table><tr><td></td><td>MNIST→USPS</td><td>USPS→MNIST</td><td></td><td>SVHN→MNIST</td><td>MNIST</td><td>→MNIST-M</td></tr><tr><td>Method</td><td>ADV OT</td><td>ADV</td><td>OT</td><td>ADV</td><td>OT ADV</td><td>OT</td></tr><tr><td>Source-Full</td><td>71.5±2.7</td><td>74.2±2.7</td><td></td><td>58.1±1.1</td><td></td><td>28.3±1.4</td></tr><tr><td>Adaptation-Full Source-Missing</td><td>88.3±2.4 92.6±1.7 25.7±3.7</td><td>95.0±0.4</td><td>93.9±0.6 39.2±2.6</td><td>77.6±3.576.1±1.4 31.5±2.</td><td>77.2±4.9</td><td>46.9±3.9 14.4±1.1</td></tr><tr><td>Adaptation-Missing</td><td>48.4±4.8 60.9±6.3</td><td>67.5±2.2</td><td>65.3±5.2</td><td>47.1±5.7 37.5±6.2</td><td>34.7±2.5</td><td>20.2±2.5</td></tr><tr><td>Source-Partial</td><td>52.9±9.7</td><td>54.3±1.6</td><td></td><td>44.6±1.9</td><td></td><td>19.1±2.6</td></tr><tr><td>Adaptation-Partial</td><td>71.5±3.2 64.0±5.0</td><td>80.0±1.4</td><td>72.0±1.8</td><td>45.5±1.9 47.9±1.8</td><td>29.4±1.6</td><td>26.8±4.4</td></tr><tr><td>Adaptation-Imputation</td><td>75.2±1.5 66.8±1.3</td><td>81.5±0.8</td><td>72.5±2.7</td><td>54.1±1.4 49.2±1.5</td><td>58.5±1.6</td><td>29.2±1.4</td></tr></table>
|
| 127 |
+
|
| 128 |
+
Missing patch size In a second group of experiments on digits, we analyze the evolution of the performance of the models with respect to the size of the missing information in the target domain. For that, we vary the size of the missing patch removing a percentage of the image $p$ with $p ~ \in ~ \{ 3 0 \% , 4 0 \% , 5 0 \% , 6 0 \% , 7 0 \% \}$ on SVHN MNIST for ADV models, keeping the same hyperparameters as the ones used for $\begin{array} { r l r } { p } & { { } = } & { \ \bar { 5 } 0 \% } \end{array}$ . We report the mean values over five runs in Figure 2. We notice that Adaptation-Imputation constantly beats the other baselines regardless of the missing patch size. The figure exhibits borderline cases when the size of the missing patch be
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
Figure 2: Missing patch size study
|
| 132 |
+
|
| 133 |
+
comes very small $( < 3 0 \%$ ) or very large $( > ~ 6 5 \% )$ ). When the missing patch is too small most of the information for predicting the target label is already available thus simple models perform already well; while when it becomes too big, too few information is available to guarantee efficient reconstructions from the non-missing patch.
|
| 134 |
+
|
| 135 |
+
# 5.3 ADS
|
| 136 |
+
|
| 137 |
+
Description We performed a second series of tests on two advertising datasets: ads-kaggle and ads-real. The ads datasets correspond to binary classification problems; the task is to predict the probability that a user exposed to an ad from a target partner (e.g. Booking) on a publisher (e.g. NY Times) will click (ads-kaggle) or make a purchase (ads-real) conditioned on the user history. A row in the dataset corresponds to a display i.e. an ad opportunity of a click or purchase for a given (user, partner) pair at a given time on a given publisher site. The source domain is composed of users who already had interactions with a target partner. The target domain is composed of users with no history on a target partner. We consider all partners in a given traffic. For the two domains, $x _ { - _ { 1 } }$ features correspond to aggregated user features on all the partners, while $x _ { - _ { 2 } }$ corresponds to user - target partner specific interaction which is known for the source domain but unknown for the target domain. Note that besides missingness, there is also an adaptation problem since statistics for new users are usually different from those of known users (e.g. in terms of frequency of a partner’s website visits) as seen in Appendix E. In real datasets, traffic in the source domain is usually abundant while scarce in the target domain. Statistics for each dataset are provided in Table 5 in the Appendix; exact preprocessing used is provided in Appendix C.
|
| 138 |
+
|
| 139 |
+
Results For this group of experiments, we report the results only for ADV models since the trend has been observed to be similar on digits for both ADV and OT. For ads datasets, missing features do not exist, so we do not report the --Full models’ results on these datasets. The classes being imbalanced, accuracy is not relevant here so we report another performance measure, cross-entropy (CE) between the predicted values and the true labels on the target domain which is considered as the most reliable metric to estimate revenue. Note that given the test set size of ads-kaggle, an improvement of 0.001 in logloss is considered as practically significant (Wang et al., 2017). For the ads problem and for large user bases, a small improvement in prediction accuracy can lead to a large increase in a company’s revenue. For all experiments, we report in Table $2 \ \mathrm { C E }$ on target test for ads-kaggle and ads-real.
|
| 140 |
+
|
| 141 |
+
A first observation is that Adaptation-Imputation is significantly better than the baselines on both datasets (Table 2). For ads-kaggle it improves by $2 . 3 \%$ the best adaptation model (Adaptation-Missing) while for ads-real the improvement reaches $6 . 3 \%$ over the best second which happens to be Source-Partial. A second observation is that for any model, adaptation consistently
|
| 142 |
+
|
| 143 |
+
Table 2: CE on ads for ADV models
|
| 144 |
+
|
| 145 |
+
<table><tr><td>Dataset</td><td>ads-kaggle</td><td>ads-real</td></tr><tr><td>Naive</td><td>0.403</td><td>X</td></tr><tr><td>Source-Missing Source-Partial</td><td>0.545±0.019 0.406±0.00046</td><td>0.663±0.011</td></tr><tr><td></td><td></td><td>0.622±0.0048</td></tr><tr><td>Adaptation-Missing</td><td>0.397±0.0057</td><td>0.660±0.025</td></tr><tr><td>Adaptation-Partial</td><td>0.403±0.0030</td><td>0.634±0.0082</td></tr><tr><td>Adaptation-Imputation</td><td>0.389±0.014</td><td>0.583±0.013</td></tr></table>
|
| 146 |
+
|
| 147 |
+
improves over the same model without adaptation. The only exception is the --Partial setting in ads-real. A third observation is that the missing component indeed contains relevant information: CE performance on source data (not reported in Table 2) shows that Source-Missing which exploits the $x _ { - _ { 2 } }$ component is consistently higher than Source-Partial which does not exploit this component, leading to relative gains of the former over the latter of $5 . 6 \%$ on ads-kaggle and $8 . 2 \%$ on ads-real. Adaptation-Imputation is able to generate and to exploit this information.
|
| 148 |
+
|
| 149 |
+
# 5.4 ABLATION ANALYSIS
|
| 150 |
+
|
| 151 |
+
We analyze now the role and importance of the different components of our model, and compare with the results from Tables 1 and 2. We perform experimentation on the public datasets, digits and ads-kaggle and report results in Table 3 and Figure 3.
|
| 152 |
+
|
| 153 |
+
Importance of adaptation We compare the performance of the model with and without the adaptation term $L _ { 1 }$ in Equation 4. When removing adaptation, inference is performed as before, by feeding $\widetilde { x } _ { T } = ( \widetilde { x } _ { T _ { 1 } } , \widetilde { x } _ { T _ { 2 } } )$ to the classifer $f$ . This means that we only rely on the imputation and e e eclassification losses to learn the parameters of the model. Results appear on the top of Table 3. For all datasets, the adaptation component considerably increases the performance, from 10 to 30 points for digits and by a significant 0.009 CE value on ads-kaggle.
|
| 154 |
+
|
| 155 |
+
Imputation mechanism Imputation, cf. Equation 2, combines adversarial training (ADV) and conditioning on the input datum via the MSE loss (MSE). The objective is to learn from $x _ { S _ { 1 } } \ : \widetilde { x } _ { S _ { 1 } } =$ $g _ { 1 } ( x _ { S _ { 1 } } )$ and to generate missing information in $x _ { S _ { 2 } }$ , $\widetilde { x } _ { S _ { 2 } } = h ( \widetilde { x } _ { S _ { 1 } } )$ e. ADV aligns the distributions of $\widetilde { x } _ { S _ { 2 } }$ and $\widehat { x } _ { S _ { 2 } }$ e ewhile MSE can be thought as performing some form of regression. For a given partial e binformation $x _ { S _ { 1 } }$ , there are possibly several potential $x _ { S _ { 2 } }$ and thus $\widetilde { x } _ { S _ { 2 } }$ . ADV allows to focus on a specific mode of $\widehat { x } _ { S _ { 2 } }$ e, while MSE will favour a mean value of the distribution. Results on Table b3, second group of rows, show that for digits, combining the two influences (MSE and ADV) leads to improved results compared to using separately each loss. MSE alone already provides good performance, while using only ADV is clearly below. For this classification task, identifying the most relevant mode improves the performance over simple regression $( L _ { M S E } )$ . Note that reconstruction is an ill posed problem since the task is inherently ambiguous - different digits may be reconstructed from one half of an image. We performed tests with a stochastic input component in order to recover different modes, but the performance was broadly similar. Achieving diversity with Conditional GANs remains an open research topic (Yang et al., 2019).
|
| 156 |
+
|
| 157 |
+
For the ads-kaggle dataset, the performance of MSE and $\mathrm { M S E } + \mathrm { \mathbb { A } D V }$ are similar. This is analyzed deeper in an additional series of experiments with several weighted combinations of MSE and ADV. Results are provided in Table 3 third group of rows, for both digits and ads-kaggle and are plotted for ads-kaggle in Figure 3. For digits, this confirms that the equal weights selected for our experiments are indeed generally a good choice reducing the burden of hyperparameter selection, while for ads-kaggle performance could be slightly improved with other weightings. One can see on Figure 3 that ADV induces a high variance in the results (left part of $\mathbf { X }$ -axis) while MSE stabilizes the performance (right part of x-axis). The former allows for bet
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 3: ADV-MSE weighting on ads-kaggle
|
| 161 |
+
|
| 162 |
+
ter maximum performance but with high variance: performance ranges from 0.35 to 0.7 on the target domain. A small contribution from MSE (here $\lambda _ { M S E } = 0 . 0 0 5$ ) stabilizes the results.
|
| 163 |
+
|
| 164 |
+
Table 3: Accuracy on digits and CE on ads-kaggle for ADV Adaptation-Imputation
|
| 165 |
+
|
| 166 |
+
<table><tr><td>Dataset</td><td colspan="4">digits</td><td>ads-kaggle</td></tr><tr><td>Adaptation direction</td><td>MNIST→USPS</td><td>USPS→MNIST</td><td>SVHN→MNIST</td><td>MNIST→MNIST-M</td><td>Known→New</td></tr><tr><td>L2+L3</td><td>64.2±1.8</td><td>51.3±2.5</td><td>44.5±1.4</td><td>24.1±2.6</td><td>0.410±0.0020</td></tr><tr><td>L1+L2+L3</td><td>75.2±1.5</td><td>81.5±0.8</td><td>54.0±1.4</td><td>58.5±1.6</td><td>0.401±0.0014</td></tr><tr><td>LMSE</td><td>71.9±3.7</td><td>81.4±1.2</td><td>52.5±3.7</td><td>56.5±2.8</td><td>0.400±0.0014</td></tr><tr><td>LADV</td><td>28.6±3.2</td><td>39.4±5.2</td><td>28.8±3.8</td><td>30.0±3.7</td><td>0.469±0.13</td></tr><tr><td>LADV+LMSE</td><td>75.2±1.5</td><td>81.5±0.8</td><td>54.0±1.4</td><td>58.5±1.6</td><td>0.401±0.0014</td></tr><tr><td>0.1×LADV+LMSE</td><td>73.4±2.7</td><td>81.3±0.8</td><td>53.0±2.0</td><td>56.2±2.6</td><td>0.401±0.0021</td></tr><tr><td>LADV+0.001×LMSE</td><td>37.3±2.5</td><td>31.2±3.8</td><td>45.0±2.6</td><td>50.0±3.4</td><td>0.440±0.11</td></tr><tr><td>LADV+0.005×LMSE</td><td>47.8±3.7</td><td>49.6±5.8</td><td>46.0±2.6</td><td>50.6±2.2</td><td>0.388±0.015</td></tr><tr><td>LADV +0.01×LMSE</td><td>53.6±2.4</td><td>57.0±3.6</td><td>43.4±1.1</td><td>51.0±2.5</td><td>0.397±0.0046</td></tr><tr><td>LADV+0.1×LMSE</td><td>68.2±4.2</td><td>50.3±6.8</td><td>54.0±2.1</td><td>51.5±3.6</td><td>0.402±0.0046</td></tr><tr><td>LADV+LMSE</td><td>75.2±1.5</td><td>81.5±0.8</td><td>54.0±1.4</td><td>58.5±1.6</td><td>0.401±0.0014</td></tr></table>
|
| 167 |
+
|
| 168 |
+
# 6 CONCLUSION
|
| 169 |
+
|
| 170 |
+
We have proposed a new model to solve unsupervised adaptation problems in the presence of nonstochastic noise in the target domain, by using distant supervision from a complete source domain through domain adaptation and imputing missing values on the target domain in a latent space. This method uses only labelled source instances and leads to important gains on classical adaptation benchmarks over baseline models for two representative families of divergences (optimal transport, adversarial training). We have demonstrated on real world advertising datasets that these methods can be used for problems with missing features in advertising. Potential follow-ups include: extending this method to a semi or fully supervised setting on the target domain; considering simultaneously domain and target shift which frequently occurs in real world problems while still being an open problem; introducing increased diversity in the generation process.
|
| 171 |
+
|
| 172 |
+
# REFERENCES
|
| 173 |
+
|
| 174 |
+
Ashish Bora, Eric Price, and Alexandros G. Dimakis. AmbientGAN: Generative models from lossy measurements. In International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id ${ . } = { }$ Hy7fDog0b.
|
| 175 |
+
|
| 176 |
+
Konstantinos Bousmalis, Nathan Silberman, David Dohan, Dumitru Erhan, and Dilip Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, 2017-Janua: 95–104, 2017. ISSN 1063-6919. doi: 10.1109/CVPR.2017.18.
|
| 177 |
+
|
| 178 |
+
Lei Cai, Zhengyang Wang, Hongyang Gao, Dinggang Shen, and Shuiwang Ji. Deep adversarial learning for multi-modality missing data completion. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1158–1166. ACM, 2018.
|
| 179 |
+
|
| 180 |
+
C. Cortes and M. Mohri. Domain adaptation and sample bias correction theory and algorithm for regression. Theoretical Computer Science, vol. 519, pp. 103126, 2014.
|
| 181 |
+
|
| 182 |
+
Nicolas Courty, Remi Flamary, Habrard Amaury, and Alain Rakotomamonjy. Joint distribution optimal transportation for domain adaptation. 2017.
|
| 183 |
+
|
| 184 |
+
Bharath Bhushan Damodaran and Benjamin Kellenberger. DeepJDOT $:$ Deep Joint Distribution Optimal Transport for Unsupervised Domain Adaptation. 2018. URL https://arxiv.org/ pdf/1803.10081.pdf.
|
| 185 |
+
|
| 186 |
+
Zhengming Ding, Ming Shao, and Yun Fu. Latent low-rank transfer subspace learning for missing modality recognition. In AAAI, pp. 1192–1198, 2014. ISBN 9781577356783.
|
| 187 |
+
|
| 188 |
+
Yaroslav Ganin and Victor Lempitsky. Unsupervised Domain Adaptation by Backpropagation. pp. 1180–1189, 2015.
|
| 189 |
+
|
| 190 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 2672–2680. Curran Associates, Inc., 2014. URL http://papers. nips.cc/paper/5423-generative-adversarial-nets.pdf.
|
| 191 |
+
|
| 192 |
+
J. J. Hull. A database for handwritten text recognition research. IEEE Trans. Pattern Anal. Mach. Intell., 16(5):550–554, May 1994. ISSN 0162-8828. doi: 10.1109/34.291440. URL http: //dx.doi.org/10.1109/34.291440.
|
| 193 |
+
|
| 194 |
+
Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks. CoRR, abs/1611.07004, 2016a. URL http://arxiv.org/ abs/1611.07004.
|
| 195 |
+
|
| 196 |
+
Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. arxiv, 2016b.
|
| 197 |
+
|
| 198 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 12 2014.
|
| 199 |
+
|
| 200 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes, 2013. URL http:// arxiv.org/abs/1312.6114. cite arxiv:1312.6114.
|
| 201 |
+
|
| 202 |
+
Wouter M. Kouw and Marco Loog. A review of single-source unsupervised domain adaptation. CoRR, abs/1901.05335, 2019. URL http://arxiv.org/abs/1901.05335.
|
| 203 |
+
|
| 204 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and P Haffner. Gradient-based learning applied to document recognition. 1998.
|
| 205 |
+
|
| 206 |
+
S.C Li, Jiang B., and B Marlin. MisGAN: Learning From Incmplete Data with generative Adversarial Networks. In ICLR, 2019.
|
| 207 |
+
|
| 208 |
+
R.J.A. Little and D.B. Rubin. Statistical analysis with missing data. Wiley series in probability and mathematical statistics. Probability and mathematical statistics. Wiley, 2002.
|
| 209 |
+
|
| 210 |
+
Ming-Yu Liu and Oncel Tuzel. CoGAN. Number Nips, 2016. ISBN 10495258. doi: arXiv: 1606.07536.
|
| 211 |
+
|
| 212 |
+
Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I. Jordan. Learning transferable features with deep adaptation networks. pp. 97–105, 2015. URL http://dl.acm.org/citation. cfm?id=3045118.3045130.
|
| 213 |
+
|
| 214 |
+
Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I. Jordan. Domain adaptation with randomized multilinear adversarial networks. CoRR, abs/1705.10667, 2017. URL http:// arxiv.org/abs/1705.10667.
|
| 215 |
+
|
| 216 |
+
Pierre-Alexandre Mattei and Jes Frellsen. MIWAE: Deep Generative Modelling and Imputation of Incomplete Data. In ICML, 2019. URL http://arxiv.org/abs/1812.02633.
|
| 217 |
+
|
| 218 |
+
J. S. Murray. Multiple imputation: A review of practical and theoretical findings. In Statistical Science, 33(2):142159, 2018.
|
| 219 |
+
|
| 220 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. NIPS Workshop on Deep Learning and Unsupervised Feature Learning 2011. 2011.
|
| 221 |
+
|
| 222 |
+
Arthur Pajot, Emmanuel de Bezenac, and Patrick Gallinari. Unsupervised Adversarial Image Reconstruction. In ICLR, 2019.
|
| 223 |
+
|
| 224 |
+
S. J. Pan and Q. Yang. A survey on transfer learning. IEEE Transactions on Knowledge and Data Engineering, 22(10):1345–1359, Oct 2010. ISSN 1041-4347. doi: 10.1109/TKDE.2009.191.
|
| 225 |
+
|
| 226 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
|
| 227 |
+
|
| 228 |
+
Deepak Pathak, Philipp Krahenb ¨ uhl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context ¨ encoders: Feature learning by inpainting. CoRR, abs/1604.07379, 2016. URL http://arxiv. org/abs/1604.07379.
|
| 229 |
+
|
| 230 |
+
Gabriel Peyre, Marco Cuturi, et al. Computational optimal transport. ´ Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 11(5-6):355–607, 2019.
|
| 231 |
+
|
| 232 |
+
Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Eric P. Xing and Tony Jebara (eds.), Proceedings of the 31st International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pp. 1278–1286, Bejing, China, 22–24 Jun 2014. PMLR. URL http://proceedings.mlr.press/v32/rezende14.html.
|
| 233 |
+
|
| 234 |
+
Jian Shen, Yanru Qu, Weinan Zhang, and Yong Yu. Wasserstein distance guided representation learning for domain adaptation. In Association for the Advancement of Artificial Intelligence, 2018.
|
| 235 |
+
|
| 236 |
+
Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, 2017-Janua:2962–2971, 2017. ISSN 0733-2467. doi: 10.1109/CVPR.2017.316.
|
| 237 |
+
|
| 238 |
+
S. Van Buuren. Flexible imputation of missing data. 2nd ed. 2018.
|
| 239 |
+
|
| 240 |
+
Ruoxi Wang, Bin Fu, Gang Fu, and Mingliang Wang. Deep & cross network for ad click predictions. CoRR, abs/1708.05123, 2017. URL http://arxiv.org/abs/1708.05123.
|
| 241 |
+
|
| 242 |
+
Dingdong Yang, Seunghoon Hong, Yunseok Jang, Tiangchen Zhao, and Honglak Lee. Diversitysensitive conditional generative adversarial networks. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rJliMh09F7.
|
| 243 |
+
|
| 244 |
+
Jinsung Yoon, James Jordon, and Mihaela Van Der Schaar. GAIN: Missing data imputation using generative adversarial nets. In 35th International Conference on Machine Learning, ICML 2018, pp. 9052–9059, 2018. ISBN 9781510867963.
|
| 245 |
+
|
| 246 |
+
Kaichao You, Ximei Wang, Mingsheng Long, and Michael Jordan. Towards accurate model selection in deep unsupervised domain adaptation. 97:7124–7133, 09–15 Jun 2019. URL http://proceedings.mlr.press/v97/you19a.html.
|
| 247 |
+
|
| 248 |
+
Y.-X. Wang Z. Lipton and A. Smola. Detecting and correcting for label shift with black box predictors. International Conference on Machine Learning, 2018.
|
| 249 |
+
|
| 250 |
+
B. Zadrozny. Learning and evaluating classifiers under sample selection bias. International Conference on Machine Learning, 2014.
|
| 251 |
+
|
| 252 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. 2017.
|
| 253 |
+
|
| 254 |
+
# A PSEUDO-CODE
|
| 255 |
+
|
| 256 |
+
Input: $N$ : number of epochs, $k$ : batch size, $l r _ { i }$ : initial learning rate
|
| 257 |
+
Initialize parameters of $g _ { 1 } , g _ { 2 } , D _ { 1 } , D _ { 2 } , f , h$
|
| 258 |
+
while $n _ { e p o c h s } < N$ do Sample $\{ x _ { S } { } ^ { i } , y _ { S } { } ^ { i } \} _ { 1 \leq i \leq k }$ from $p _ { S }$ Sample $\{ x _ { T _ { \downarrow } } ^ { j } \} _ { 1 \leq j \leq k }$ from $p _ { T }$ Decay learning rate and update gradient scale at each batch Compute $L = L _ { 1 } + L _ { 2 } + L _ { 3 }$ performing joint adaptation, imputation, classification Update $D _ { 1 }$ , $D _ { 2 }$ by ascending $L$ through Gradient Reversal Layer Update $f , g _ { 1 } , g _ { 2 } , h$ by descending $L$
|
| 259 |
+
|
| 260 |
+
end
|
| 261 |
+
|
| 262 |
+
Algorithm 1: Training procedure for ADV Adaptation-Imputation
|
| 263 |
+
|
| 264 |
+
# B OT FORMULATION
|
| 265 |
+
|
| 266 |
+
We present here in more details Adaptation-Imputation using Optimal Transport as a divergence metric. The formulation is slightly different compared to ADV models.
|
| 267 |
+
|
| 268 |
+
# B.1 FORMULATION OF THE IMPUTATION OT MODEL
|
| 269 |
+
|
| 270 |
+
We replace the $\mathcal { H }$ -divergence approximation given by the discriminators $D _ { 1 }$ and $D _ { 2 }$ by the Wasserstein distance between source and target instances $( D _ { 1 } )$ and true and imputed feature representations $( D _ { 2 } )$ , following the original ideas in Shen et al. (2018); Damodaran & Kellenberger (2018). In practice, we compute the Wasserstein distance using its primal form by finding a joint coupling matrix $\gamma$ , using a linear programming approach (Peyre et al., 2019). ´
|
| 271 |
+
|
| 272 |
+
Adaptation In Damodaran & Kellenberger (2018); Courty et al. (2017), the optimal transportation problem is formulated on the joint $( X , Y )$ distributions. Similarly to Shen et al. (2018), in our case, we focus on a plan that acts only on the feature space without taking care of the labels. This leads to the following optimization problem :
|
| 273 |
+
|
| 274 |
+
$$
|
| 275 |
+
L _ { 1 } = \operatorname* { m i n } _ { f , \gamma _ { 1 } , g } \sum _ { i j } \left( | | \widetilde { x } _ { S _ { 1 i } } - \widetilde { x } _ { T _ { 1 j } } | | ^ { 2 } + | | \widetilde { x } _ { S _ { 2 i } } - \widetilde { x } _ { T _ { 2 j } } | | ^ { 2 } \right) \gamma _ { \mathbf { 1 } i j }
|
| 276 |
+
$$
|
| 277 |
+
|
| 278 |
+
where $\gamma _ { 1 i j }$ is the alignment value between source instance $i$ and target instance $j$
|
| 279 |
+
|
| 280 |
+
Imputation For the imputation part, we keep the reconstruction MSE component in Equation 2 and derive the distribution matching loss as:
|
| 281 |
+
|
| 282 |
+
$$
|
| 283 |
+
L _ { O T } = \operatorname* { m i n } _ { f , \gamma _ { 2 } , g } \sum _ { i j } \rvert | \widetilde x _ { S _ { 2 i } } - \widehat x _ { S _ { 2 j } } | | ^ { 2 } \gamma _ { 2 _ { i j } }
|
| 284 |
+
$$
|
| 285 |
+
|
| 286 |
+
where $\gamma _ { 2 i j }$ is the alignment value between source instance $i$ and $j$ .
|
| 287 |
+
|
| 288 |
+
The final imputation loss is:
|
| 289 |
+
|
| 290 |
+
$$
|
| 291 |
+
L _ { 2 } = \lambda _ { O T } \times L _ { O T } + \lambda _ { M S E } \times L _ { M S E }
|
| 292 |
+
$$
|
| 293 |
+
|
| 294 |
+
Classification The classification term in Equation 3 is unchanged.
|
| 295 |
+
|
| 296 |
+
# B.2 IMPLEMENTATION
|
| 297 |
+
|
| 298 |
+
The optimization problem in Equation 5 is solved in two stages following an alternate optimization strategy:
|
| 299 |
+
|
| 300 |
+
• we fix all parameters but $\gamma _ { 1 }$ and $\gamma _ { 2 }$ and find the joint coupling matrices $\gamma _ { 1 }$ and $\gamma _ { 2 }$ using EMD
|
| 301 |
+
|
| 302 |
+
• we fix $\gamma _ { 1 }$ and $\gamma _ { 2 }$ and solve $\mathrm { m i n } _ { g _ { 1 } , g _ { 2 } , h , f } L$
|
| 303 |
+
|
| 304 |
+
In practice, we first minimize $L _ { 3 }$ for a couple of epochs (taken to be 10 for digits) then minimize $L _ { 1 } + L _ { 2 } + L _ { 3 }$ in the remaining epochs.
|
| 305 |
+
|
| 306 |
+
Learning rate and parameters are explained further in Section D.
|
| 307 |
+
|
| 308 |
+
# C DATASET DESCRIPTION
|
| 309 |
+
|
| 310 |
+
C.1 DIGITS
|
| 311 |
+
|
| 312 |
+
Table 4: Statistics on digits datasets
|
| 313 |
+
|
| 314 |
+
<table><tr><td colspan="4">Train</td><td colspan="2">MNIST</td><td colspan="2">SVHN</td><td>MNIST-M</td><td colspan="2"></td></tr><tr><td rowspan="4">Test Size Channels</td><td colspan="3">7438 1860</td><td colspan="3">60k 10k</td><td colspan="2">73257 26032</td><td>60k 10k</td></tr><tr><td colspan="3">28×28 1</td><td colspan="3">28×28 1</td><td colspan="2">32 ×32 3</td><td>28×28 3</td></tr><tr><td>S</td><td>8</td><td>4</td><td>5</td><td>8</td><td>4</td><td>54824</td><td>5 5e</td></tr><tr><td>0</td><td>1</td><td>1</td><td>0</td><td>公</td><td>D</td><td>2012</td><td>OIQ</td></tr></table>
|
| 315 |
+
|
| 316 |
+
Pre-processing We scale all images to be $3 2 \times 3 2$ and we normalize the input in $[ - 1 , 1 ]$ . When adaptation involves a domain with three channels (SVHN or MNIST-M) and a domain with a single channel, we simply triplicate the channel of the latter domain. As in Damodaran & Kellenberger (2018) we use balanced source batches which proves to increase performance especially when the source dataset is imbalanced (e.g. SVHN and USPS datasets) while the target dataset (usually MNIST derived) is balanced. Scaling the input images enables us to use the same architecture across datasets. In practise the embedding size is 2048 after preprocessing. For missing versions, we set pixel values to zero in a given patch. Figure 4 shows MNIST-M digits with varying missing patch size.
|
| 317 |
+
|
| 318 |
+

|
| 319 |
+
Figure 4: missing-features MNIST-M
|
| 320 |
+
|
| 321 |
+
Evaluation The digits datasets are provided with a predefined train / test split. We report accuracy results on the target test set and use the source test set as validation set (Section D.2.1). The number of instances in each dataset is reported in Table 4. We run each model five times with a different seed for initialization (using Xavier Uniform initialization) and report mean and standard deviations in Table 1.
|
| 322 |
+
|
| 323 |
+
Infrastructure Experiments are run using a Tesla V100-SXM2 GPU machine with 32GB RAM.
|
| 324 |
+
Code is written in PyTorch https://pytorch.org/ (Paszke et al., 2017).
|
| 325 |
+
|
| 326 |
+
# C.2 ADS
|
| 327 |
+
|
| 328 |
+
Preprocessing Table 5 lists various statistics on the traffic for the two ads datasets; we describe in this paragraph how datasets are processed.
|
| 329 |
+
|
| 330 |
+
ads-kaggle The Criteo Kaggle dataset is a reference dataset for CTR prediction and groups one week of log data. The objective is to model the probability that a user will click on a given ad given his navigation context: $p ( C l i c k | C o n t e x t )$ . Positives refer to displays which are clicked and negatives to displays not clicked. For each datum, there are 13 continuous and 26 categorical features. We divide the traffic into two domains using feature number 30; for a given value for this categorical feature, all instances have a single missing numeric feature (feature number 5). We then construct an artificial dataset simulating transfer between known and new users. We process the original Criteo Kaggle dataset to have an equal number of source and target data. We then perform train / test split on this dataset keeping $2 0 \%$ of data for testing. We used in our experiments the continuous features; to show the benefit of modelling additional missing features, we extend the missing features list to features 1, 5, 6, 7, 11 and 12 by setting them to zero on the target domain. After these operations, 6 features are missing and 7 are non-missing. Preprocessing consists in normalizing continuous features using a log transform.
|
| 331 |
+
|
| 332 |
+
ads-real The data collected in this dataset is similar to ads-kaggle. We filter out non-clicks and the final task is to model the sale probability for a clicked ad: $p ( S a l e | C l i c k = 1 , C o n t e x t )$ . Positives refer to clicked ads which lead to a sale; negatives to clicked ads which did not lead to a sale. We use one week of sampled logs as a training set, and use the following day data as the test set. This train / test definition is used so as to better correlate with the performance of a model used online. We use typical features in production models on this dataset and focus on a sample of continuous features aggregated across user timelines describing the clicking and purchase behavior of a user. In comparison to ads-kaggle more continuous features are used. The count features can be User-centric i.e. describe the global activity of the user (number of clicks, displays, sales done globally across partners) or User-partner features i.e. describing the history of the user on the given partner (number of clicks, sales... on the partner). The latter are missing for new users. Counts are aggregated across varying windows of time and categories of partner catalog. We bucketize these count features using log transforms and consider these as categorical features by one-hot encoding the different buckets based on the vocabulary file. After processing the final input size is 596 with 29 features used. 12 features are missing and 17 are non-missing.
|
| 333 |
+
|
| 334 |
+
Table 5: Statistics on ads datasets
|
| 335 |
+
|
| 336 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=4>ads-kaggle</td><td rowspan=1 colspan=4>ads-real</td></tr><tr><td rowspan=1 colspan=1>Domain</td><td rowspan=1 colspan=2>Source</td><td rowspan=1 colspan=2>Target</td><td rowspan=1 colspan=2>Source</td><td rowspan=1 colspan=2>Target</td></tr><tr><td rowspan=1 colspan=1>Split</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=1 colspan=1>PositiveNegative</td><td rowspan=1 colspan=1>246 872699 621</td><td rowspan=1 colspan=1>61 841174 783</td><td rowspan=1 colspan=1>92 333854 160</td><td rowspan=1 colspan=1>22 943213 681</td><td rowspan=1 colspan=1>XX</td><td rowspan=1 colspan=1>XX</td><td rowspan=2 colspan=1>XX819 073X</td><td rowspan=2 colspan=1>XX147 358X</td></tr><tr><td rowspan=1 colspan=1>TotalP(Y)</td><td rowspan=1 colspan=1>946 4930.2608</td><td rowspan=1 colspan=1>236 6240.2613</td><td rowspan=1 colspan=1>946 4930.0976</td><td rowspan=1 colspan=1>236 6240.0970</td><td rowspan=1 colspan=1>24 465 756X</td><td rowspan=1 colspan=1>3 760 233X</td></tr></table>
|
| 337 |
+
|
| 338 |
+
Evaluation On both datasets the train and test sets are fixed. We run each model five times with a different seed for initialization (using Xavier Uniform initialization) and report mean and standard deviations in Table 2.
|
| 339 |
+
|
| 340 |
+
Infrastructure For ads-real, models are trained using internal large-scale distributed infrastructure. For ads-kaggle, we keep the same setting and code as in digits.
|
| 341 |
+
|
| 342 |
+
# D IMPLEMENTATION DETAILS
|
| 343 |
+
|
| 344 |
+
# D.1 NEURAL NET ARCHITECTURE
|
| 345 |
+
|
| 346 |
+
D.1.1 DIGITS
|
| 347 |
+
|
| 348 |
+
We experiment with the ADV and OT versions of our imputation model. For ADV models, we use the DANN model description in Ganin & Lempitsky (2015); for OT we use the DeepJDOT model description in Damodaran & Kellenberger (2018). Both models can be considered as simplified instances of our corresponding ADV and OT imputation models when no imputation is performed.
|
| 349 |
+
|
| 350 |
+
Performance of the adaptation models is highly dependent on the NN architectures used for adaptation and classification. In order to perform fair comparisons and since our goal is to evaluate the potential of joint adaptation-imputation-classification, we selected these architectures through preliminary tests and use them for both the ADV and OT models. The two models are described below and illustrated in Figure 5.
|
| 351 |
+
|
| 352 |
+
• Feature extractors $g _ { 1 }$ and $g _ { 2 }$ consists of three convolutional layers with $5 \times 5$ kernel and 64 filters interleaved with max pooling layers with a stride of 2 and $2 \times 2$ kernel. The final layer has 128 filters. We use batch norm on convolutional layers and ReLU as an activation after max pooling. As in Damodaran & Kellenberger (2018) we find that adding a sigmoid activation layer as final activation is helpful.
|
| 353 |
+
• Classifier $f$ consists of two fully connected layers with 100 neurons with batch norm and ReLU activation followed by the final softmax layer. We add Dropout as an activation for the first layer of the classifier.
|
| 354 |
+
• Discriminator $D _ { 1 }$ and $D _ { 2 }$ is a single layer NN with 100 neurons, batch norm and ReLU followed by the final softmax layer. $\mathrm { O n } \mathrm { U S P S } \to \mathrm { M N I S T }$ and $\mathrm { M N I S T } \to \mathrm { U S P S }$ dataset we use a stronger discriminator network which consists of two fully connected layers with 512 neurons.
|
| 355 |
+
• Generator $h$ consists of two fully connected layers with 512 neurons, batch norm and ReLU activation. This architecture is used for ADV and OT imputation models. In practice using wider and deeper networks increases classification performance with the more complicated classification tasks $( \mathrm { S V H N } \to \mathrm { M N I S T }$ , MNIST MNIST-M); in these cases we add an additional fully connected network with 512 neurons. The final activation function is a sigmoid.
|
| 356 |
+
|
| 357 |
+
We use the same architecture described above for full, missing and partial models to guarantee fair comparison. As a side note, the input to the imputation model’s classifier is twice bigger as in the standard adaptation models.
|
| 358 |
+
|
| 359 |
+

|
| 360 |
+
Figure 5: Base architecture for the ADV DANN model
|
| 361 |
+
|
| 362 |
+
# D.1.2 ADS
|
| 363 |
+
|
| 364 |
+
We experiment with ADV models only. As input data is numeric and low dimensional, architectures are simpler than in digits.
|
| 365 |
+
|
| 366 |
+
ads-kaggle Our feature extractor is a three layered NN with 128 neurons and with a final sigmoid activation. The classifier is taken to be a single layered NN with 128 neurons and a final softmax layer. Activations are taken to be ReLUs. The domain discriminator is taken to be a two layered NN with 128 neurons and a final softmax layer. Finally the reconstructor is taken to be a two-layered NN with 256 neurons and final sigmoid activation.
|
| 367 |
+
|
| 368 |
+
ads-real Input features after processing are fed directly into the feature extractors $g _ { 1 } , g _ { 2 }$ consisting of two fully connected layers with 128 neurons. The classifier and discriminator is taken to be single-layered NN with 25 neurons. The reconstructor is taken to be a two-layered NN with 128 neurons. Inner activations are taken to be ReLUs and the final activation of the feature extractor is taken to be a sigmoid.
|
| 369 |
+
|
| 370 |
+
# D.2 NETWORK PARAMETERS
|
| 371 |
+
|
| 372 |
+
# D.2.1 HYPERPARAMETER TUNING
|
| 373 |
+
|
| 374 |
+
Tuning hyperparameters for UDA is tricky as we do not have access to the label in the target distribution and thus cannot choose parameters minimizing the target risk on a validation set. Several papers set hyperparameters through reverse cross-validation (Ganin & Lempitsky, 2015). Other approaches developed for model selection are based on risk surrogates obtained by estimating an approximation of the risk value on the source based on the similarity of source and target distributions (without the labels). In the experiments, we used a recent estimator, Deep Embedded Validation (DEV) (You et al., 2019) for tuning the initial learning rate; $\lambda _ { 1 }$ and $\lambda _ { O T }$ in OT. For other parameters, we used heuristics and typical hyperparameter values from UDA papers (such as batch size) without further tuning. We use a cross entropy link function on the source validation set; this value provides a proxy for the target test risk. Using parameters from the original paper, this estimator helps select parameter ranges which perform reasonably well. We keep the estimator unchanged for the full and missing adaptation models. In the imputation case the discriminator used for computing importance sampling weights discriminates between $[ \widetilde { x } _ { S _ { 1 } } , \widetilde { x } _ { S _ { 2 } } ]$ and $[ \widetilde { x } _ { T _ { 1 } } , \widetilde { x } _ { T _ { 2 } } ]$ (cf. $D _ { 1 }$ in Figure 1).
|
| 375 |
+
|
| 376 |
+
# D.2.2 DIGITS
|
| 377 |
+
|
| 378 |
+
We find that the results are highly dependent on the NN architecture and the training parameter setting. In order to evaluate the gain obtained with Adaptation-Imputation, we use the same NN architecture for all models (ADV and OT) but fine tune the learning rates for each model using the DEV estimator (other parameters do not have a significant impact on the classification performance).
|
| 379 |
+
|
| 380 |
+
ADV We use an adaptive approach as in Ganin $\&$ Lempitsky (2015) for decaying the learning rate $l r$ and updating the gradient’s scale $s$ between 0 and 1 for the domain discriminators. We choose the decay values used in Ganin & Lempitsky (2015) ie. $s = { \frac { 2 } { 1 + \exp ( - 1 0 \times p ) } } - 1$ and $l r = \frac { l r _ { i } } { ( 1 + 1 0 \times p ) ^ { 0 , 7 5 } }$ where $p$ is ratio of current batches processed over the total number of batches to be processed without further tuning. We tune the initial learning rate $l r _ { i }$ , chosen in the range $\{ 1 0 ^ { - 2 } , 1 0 ^ { - 2 . 5 } , 1 0 ^ { - 3 } , 1 0 ^ { - 3 . 5 } , 1 0 ^ { - 4 } \}$ following Section D.2.1. In practise we take $l r _ { i } = 1 0 ^ { - 2 }$ for ADV Adaptation-Imputation, Adaptation-Full, Adaptation-Partial and $l r _ { i } =$ $1 0 ^ { - 2 . 5 }$ for ADV Adaptation-Missing. We use Adam (Kingma & Ba, 2014) as the optimizer with momentum parameters $\beta _ { 1 } = 0 . 8$ and $\beta _ { 2 } = 0 . 9 9 9$ and use the same decay strategy and initial learning rate for all components (feature extractor, classifier, reconstructor). Batch size is chosen to be 128; we see in practise that initializing the adaptation models with a source model with smaller batch size (such as 32) can be beneficial.
|
| 381 |
+
|
| 382 |
+
OT We choose parameter $\lambda _ { 1 } ~ = ~ \lambda _ { O T } ~ = ~ 0 . 1$ in Equations 4 and 8 after tuning in the range $\{ 1 0 ^ { - 1 } , 1 0 ^ { - 2 } , 1 0 ^ { - \dot { 3 } } \}$ using DEV; the goal is indeed to down weight the contribution of alignment through Wasserstein distance which should be scaled compared to the classification term. Following Damodaran & Kellenberger (2018), batch size is taken to be 500 and we use EMD as Optimal Transport metric. We initialize adaptation models with a source model in the first 10 epochs and divide the initial learning rate by two as adaptation starts for non-imputation models. For Adaptation-Imputation we follow a decaying strategy on the learning rate and on the adaptation weight as explained in the next item. We choose $l r _ { i }$ in the range $\{ 1 0 ^ { - 2 } , 1 0 ^ { - 2 . 5 } , 1 \dot { 0 } ^ { - 3 } , 1 0 ^ { - 3 . 5 } , 1 0 ^ { - 4 } \}$ . In practise we fix $l r _ { i } = 1 0 ^ { - 2 }$ for all models.
|
| 383 |
+
|
| 384 |
+
Imputation parameters In practice we can define a weight for each term in Equation 2 and 4. Further studies are conducted in Section 5.4 on weightings in Equation 2: in digits experiments we choose ${ \cal L } _ { 2 } = { \cal L } _ { M S E } + { \cal L } _ { A D V }$ for ADV and OT to reduce the burden of additional feature tuning. For ADV model, we fix parameters in Equation 4 to 1. In the OT model, we vary $\lambda _ { 1 }$ between 0 and 0.1 and $\lambda _ { 2 }$ between 0 and 1 following the same schedule as the gradient scale update for ADV models. Although not necessary to achieve good mean values, this proves to reduce significantly the variance.
|
| 385 |
+
|
| 386 |
+
# D.2.3 ADS
|
| 387 |
+
|
| 388 |
+
We use an adaptive strategy for updating the gradient scale and the learning rate with the same parameters as in the digits dataset. Optimizer is taken to be Adam. Batch size is taken to be big so that target batches include sufficient positive instances.
|
| 389 |
+
|
| 390 |
+
ads-kaggle The initial learning rate is chosen in the range $\{ 1 0 ^ { - 4 } , 1 0 ^ { - 5 } , 1 0 ^ { - 6 } , 1 0 ^ { - 7 } \}$ using DEV and fixed to be $1 0 ^ { - 6 }$ for all models. Batch size is taken to be 500 and we initialize models with a simple classification loss for five epochs. We run models for 50 epochs after which we notice that models reach a plateau. We find that adding a weighted MSE term allows to achieve higher stability (as measured by variance) as further studied in Section 5.4. In a similar fashion to Pathak et al. (2016), we tune this weight in the range $\{ 1 , 1 0 ^ { - 1 } , 1 0 ^ { - 2 } , 7 . 5 \times 1 0 ^ { - 3 } , 5 \times 1 0 ^ { - 3 } , 1 0 ^ { - 3 } \} .$ We find that 0.005 offers the best compromise between mean loss and variance. Moreover on this dataset we use a faster decaying strategy for the discriminator’s $D _ { 2 }$ and the reconstructor’s $h$ learning rate, $l r = \frac { l r _ { i } } { ( 1 + 3 0 \times p ) ^ { 0 , 7 5 } }$ to achieve higher stability in the training curves while the feature extractor $g _ { 1 } , g _ { 2 }$ and $D _ { 1 }$ ’s learning rate are unchanged.
|
| 391 |
+
|
| 392 |
+
ads-real The initial learning rate is chosen in the range $\{ 1 0 ^ { - 4 } , 1 0 ^ { - 5 } , 1 0 ^ { - 6 } \}$ and fixed to be $1 0 ^ { - 6 }$ for all models. The learning rate is decayed with the same parameters as digits for all models. We run models for ten epochs which provides a good trade-off between learning time and classification performance. Batch size is taken to be 500. We choose ${ \cal L } _ { 2 } = { \cal L } _ { M S E } + { \cal L } _ { A D V }$ without further tuning; this simple weight achieves already good results.
|
| 393 |
+
|
| 394 |
+
# E VISUALIZATION OF FEATURES’ DISTRIBUTION ON A D S-K A G G L E
|
| 395 |
+
|
| 396 |
+
The goal of this section is to visualize the domain shift existing in ads-kaggle pre-adaptation to show that the problem comprises both a domain shift and an imputation problem. Table 6 reports mean and standard deviation on each feature’s value over the domain and Figure 6 plots the histogram of the normalized distributions for better visualization. The $y$ -axis is not normalized and corresponds to real counts. We see that feature 5 is missing on the target domain and that distributions are different in shape, mean and variance on each domain.
|
| 397 |
+
|
| 398 |
+
Table 6: Mean and standard deviation for each feature on ads-kaggle
|
| 399 |
+
|
| 400 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=2>ads-kaggle</td></tr><tr><td rowspan=1 colspan=1>Domain</td><td rowspan=1 colspan=1>Source</td><td rowspan=1 colspan=1>Target</td></tr><tr><td rowspan=1 colspan=1>feature1</td><td rowspan=1 colspan=1>0.80±2.21</td><td rowspan=13 colspan=1>4.4×10-4±0.0419.01±13.423.44±6.190.94±2.310.0±0.00.090±1.690.0034±0.131.91±4.263.273±5.361.35 ×10-5 ±0.00374.25 ×10-4±0.0296.68 ×10-5±0.0181.21±3.36</td></tr><tr><td rowspan=1 colspan=1>feature 2</td><td rowspan=2 colspan=1>9.16±13.044.40±6.32</td></tr><tr><td rowspan=1 colspan=1>feature 3</td></tr><tr><td rowspan=1 colspan=1>feature 4</td><td rowspan=2 colspan=1>2.58±3.2761.09±37.67</td></tr><tr><td rowspan=1 colspan=1>feature 5</td></tr><tr><td rowspan=1 colspan=1>feature 6</td><td rowspan=1 colspan=1>11.26±12.24</td></tr><tr><td rowspan=1 colspan=1>feature 7</td><td rowspan=1 colspan=1>4.10±6.23</td></tr><tr><td rowspan=1 colspan=1>feature 8</td><td rowspan=1 colspan=1>5.12±4.50</td></tr><tr><td rowspan=1 colspan=1>feature 9</td><td rowspan=1 colspan=1>14.32±11.57</td></tr><tr><td rowspan=1 colspan=1>feature 10</td><td rowspan=1 colspan=1>0.046±0.22</td></tr><tr><td rowspan=1 colspan=1>feature 11</td><td rowspan=1 colspan=1>1.08±2.11</td></tr><tr><td rowspan=1 colspan=1>feature 12</td><td rowspan=1 colspan=1>0.083±0.78</td></tr><tr><td rowspan=1 colspan=1>feature 13</td><td rowspan=1 colspan=1>2.74±3.59</td></tr></table>
|
| 401 |
+
|
| 402 |
+
# F EMBEDDING VISUALIZATION ON D I G I T S
|
| 403 |
+
|
| 404 |
+
In this section we visualize the embeddings learned by the various models on digits by projecting the embeddings in a 2D space using t-SNE (the original embedding size being 2048). Figure 7 represents the embeddings learned for ADV models on $\mathrm { \ u N I S T { } M N I S }$ T-M. Figures 8 and 9 represent these embeddings for OT models respectively on $\mathrm { \sf M N I S T } \to \mathrm { M N I S T - M }$ and M $\mathsf { N I S T } \to \mathsf { U S P S }$ .
|
| 405 |
+
|
| 406 |
+
On these figures, we see that imputation models generate feature representations that overlap better between source and target examples per class than the adaptation counterparts (although Adaptation-Partial does a good job at overlapping feature representations). This correlates with the accuracy performance on the test set. Moreover we notice, as expected, that missing and partial adaptation networks perform badly compared to the full adaptation counterparts which justifies the use of imputation model when confronted to missing data.
|
| 407 |
+
|
| 408 |
+

|
| 409 |
+
Figure 6: Features’ normalized distribution for each input dimension (features 1 to 12): (a) Source domain (blue), (b) Target domain (red)
|
| 410 |
+
|
| 411 |
+

|
| 412 |
+
Figure 7: Embeddings for MNIST MNIST-M dataset on a batch, for source missing (acc $1 4 . 4 \%$ ) (a) (b); ADV missing (acc $3 2 . 6 \%$ ) (c) (d); ADV partial (acc $2 7 . 0 \%$ ) (e) (f) ADV with imputation (acc $5 6 . 3 \%$ ); (g) (h) and ADV full (acc $7 4 . 2 \%$ ) (i) (j). (a) (c) (e) (g) (i) represent the target (blue) and source (red) clusters, (b) (d) (f) (h) (j) represent the classes on source and target instances.
|
| 413 |
+
|
| 414 |
+

|
| 415 |
+
Figure 8: Embeddings for MNIST MNIST-M dataset on a batch, for source missing (acc $1 4 . 5 \%$ ) (a) (b); OT missing (acc $1 8 . 8 \%$ ) (c) (d); OT partial (acc $2 7 . 7 5 \%$ ) (e) (f); OT with imputation (acc $2 8 . 6 \%$ ) (g) (h) and OT full (acc $4 5 . 9 \%$ ) (i) (j). (a) (c) (e) (g) (i) represent the target (blue) and source (red) clusters, (b) (d) (f) (h) (j) represent the classes on source and target instances.
|
| 416 |
+
|
| 417 |
+

|
| 418 |
+
Figure 9: Embeddings for MNIST $ \mathrm { U S P S }$ dataset on a batch, for source missing (acc $2 5 . 0 \%$ ) (a) (b); OT missing (acc $5 8 . 0 \%$ ) (c) (d); OT partial (acc $6 2 . 4 2 \%$ ) (e) (f); OT with imputation (acc $6 5 . 2 \%$ ) (g) (h) and OT full (acc $9 1 . 5 \%$ ) (i) (j). (a) (c) (e) (g) (i) represent the target (blue) and source (red) clusters, (b) (d) (f) (h) (j) represent the classes on source and target instances.
|
parse/train/B1lgUkBFwr/B1lgUkBFwr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1lgUkBFwr/B1lgUkBFwr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1lgUkBFwr/B1lgUkBFwr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJ6anzb0Z/BJ6anzb0Z.md
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MULTIMODAL SENTIMENT ANALYSIS TO EXPLORE THE STRUCTURE OF EMOTIONS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We propose a novel approach to multimodal sentiment analysis using deep neural networks combining visual recognition and natural language processing. Our goal is different than the standard sentiment analysis goal of predicting whether a sentence expresses positive or negative sentiment; instead, we aim to infer the latent emotional state of the user. Thus, we focus on predicting the emotion word tags attached by users to their Tumblr posts, treating these as “self-reported emotions.” We demonstrate that our multimodal model combining both text and image features outperforms separate models based solely on either images or text. Our model’s results are interpretable, automatically yielding sensible word lists associated with emotions. We explore the structure of emotions implied by our model and compare it to what has been posited in the psychology literature, and validate our model on a set of images that have been used in psychology studies. Finally, our work also provides a useful tool for the growing academic study of images— both photographs and memes—on social networks.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Sentiment analysis has been an active area of research in the past decade, especially on textual data from Twitter, e.g. early work by Pak & Paroubek (2010) showed that emoticons could be used to collect a labeled dataset for sentiment analysis, Golder & Macy (2011) investigated temporal patterns in emotion using tweets, and Bollen et al. (2011) investigated the impact of collective mood states on the stock market. The SemEval series of “Sentiment Analysis in Twitter” challenges has used Twitter data as a benchmark to spur the development of new sentiment analysis algorithms (Rosenthal et al., 2017).
|
| 12 |
+
|
| 13 |
+
Unlike Twitter, Tumblr posts are not limited to 140 characters, allowing more expressiveness, and they often focus on visual content: most Tumblr posts contain an image with some accompanying text. As pictures—both photographs and memes—have become prevalent on social media, researchers have begun to study them, and make novel claims about the role that they play in social media. Shifman (2014) makes an argument for taking memes seriously, and Miller & Sinanan (2017) use memes throughout their cross-country anthropological study of Facebook, characterizing who posts what sorts of memes and what sort of communicative function memes play. Inspired by this research, we take images seriously as a source of data worth analyzing. Further, we aim to enable a research agenda focused on images by giving social scientists tools to address fundamental questions about the use of images on social media.
|
| 14 |
+
|
| 15 |
+
In psychology, the gold standard for measuring emotions is self-report, i.e. if an individual says that they are happy then that is taken to be the truth (Gilbert, 2006). On Tumblr, users often attach tags to their posts which we consider to be emotional self-reports, as these tags take the simple form of, e.g. “#happy”. By collecting a large dataset and using these emotion word tags as labels, we argue that our sentiment analysis approach, which combines images and text, leads to a more psychologically plausible model, as the dataset combines two rich sources of information and has labels we believe are a good proxy for self-reported emotion.
|
| 16 |
+
|
| 17 |
+
Concretely, the Deep Sentiment model associates the features learned by the two modalities as follows:
|
| 18 |
+
|
| 19 |
+
• For images, we fine-tune Inception (Szegedy et al., 2015), a pre-trained deep convolutional neural network, to our specific task of emotion inferring.
|
| 20 |
+
• The text is mapped into a rich high-dimensional space using a word representation learned by GloVe (Pennington et al., 2014). The embedded vectors are then fed to a recurrent network which preserves the word order and captures some of the semantics of human language.
|
| 21 |
+
• A dense layer combines the information in the two modalities and a final softmax output layer gives the probability distribution over the possible emotion word tags.
|
| 22 |
+
|
| 23 |
+
# 2 RELATED WORK
|
| 24 |
+
|
| 25 |
+
Visual sentiment analysis has received much less attention compared to text-based sentiment analysis. Yet, images are a valuable source of information for accurately inferring emotional states as they have become ubiquitous on social media as a means for users to express themselves (Miller & Sinanan, 2017). Although huge progress has been made on standard image classification tasks thanks to the ImageNet challenge (Russakovsky et al., 2015), visual sentiment analysis may be fundamentally different from classifying images as it requires a higher level of abstraction to understand the message conveyed by an image (Joshi et al., 2011). Implicit knowledge linked to culture and intrinsic human subjectivity – that can make two people use the same image to express different emotions – makes visual sentiment analysis a difficult task.
|
| 26 |
+
|
| 27 |
+
Borth et al. (2013) pioneered sentiment analysis on visual content with SentiBank, a system extracting mid-level semantic attributes from images. These semantic features are outputs of classifiers that can predict the relevance of an image with regard to one of the emotions in the Plutchik’s wheel of emotions (Plutchik, 2001). Motivated by the progress of deep learning methods, You et al. (2015) used convolutional neural networks on Flickr with domain transfer from Twitter for binary sentiment classification. However, studies about image annotation showed that combining text features with images can greatly improve performance as shown by Guillaumin et al. (2010) and Gong et al. (2014).
|
| 28 |
+
|
| 29 |
+
Successful results in multimodal sentiment analysis have been achieved using non-negative matrix factorisation (Wang et al., 2015) and latent correlations (Katsurai & Satoh, 2016). Chen et al. (2015) investigated the image posting behaviour of social media users and found in his study that two thirds of the participants added an image to their tweets to enhance the emotion of the text. In order to uncover the link between image tweets and the latent emotion, he used Latent Dirichlet Allocation to model image tweets with three modalities: textual, visual and emotional.
|
| 30 |
+
|
| 31 |
+
One weakness shared by the papers above is the lack of large training datasets due to the inherent complexity of finding labeled images/text on social media. In this work, we aim to mitigate this problem using a large noisy labeled dataset of Tumblr posts. Further, sentiment analysis on text is a well-developed research area in both computer science and psychology, and sentiment analysis has been used to answer psychological questions. However, researchers have cautioned that sentiment analysis focuses on the positive or negative sentiment expressed by a piece of text, rather than on the underlying emotional state of the person who wrote the text (Flaxman & Kassam, 2016) and thus is not necessarily a reliable measure of latent emotion. We address this problem by trying to predict emotional state of the user instead of the sentiment polarity.
|
| 32 |
+
|
| 33 |
+
# 3 TUMBLR DATASET
|
| 34 |
+
|
| 35 |
+
Tumblr is a microblogging service where users post multimedia content that often contains the following attributes: an image, text, and tags. The critical piece of our approach, which distinguishes it from sentiment analysis methods focused on purely distinguishing positive from negative, is that we use the emotion word tags as the labels we wish to predict. As we consider these emotion word tags to be (noisy) labels indicating the user’s state of mind when writing a post, we can use them as a proxy for self-reported emotion, and thus a proxy for the underlying emotional state of the user.
|
| 36 |
+
|
| 37 |
+
To build our dataset, queries were made through the Tumblr API searching for an emotion appearing in the tags. The 15 emotions retained were those with high relative frequencies on Tumblr among the PANAS-X scale (Watson & Clark, 1999) or the Plutchik’s wheel of emotions (Plutchik, 2001).
|
| 38 |
+
|
| 39 |
+
In some posts, the tag containing the emotion of the post also appeared in the text itself. We removed these words from the text in order not to give our classifier an unfair advantage. We extracted every tagged posts from Tumblr by going backward from 2017 until 2011. Due to the API limitations, posts from high density emotions, such as ‘happy’ or ‘angry’, did not go as far back in the past, but otherwise we believe that our dataset is a complete sample.
|
| 40 |
+
|
| 41 |
+
As Tumblr is used worldwide, we had to filter out non-English posts: posts with less than $50 \%$ of English words were removed from the dataset. The vocabulary of English words was obtained from GloVe (although GloVe’s vocabulary contains some non-English words this approach filtered out non-English posts reasonably well). Also, not every extracted post contained an image and we likewise excluded these. Figure 1 shows two posts with their associated emotions (more examples in Appendix A) and Table 1 summarises the statistics of the data1.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+
(a) Optimistic: “The most beautiful thing we can experience is the mysterious. It is the source of all true art and science – Albert Einstein.”
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 1: Examples of Tumblr posts
|
| 49 |
+
|
| 50 |
+
(b) Sad: “It’s okay to be upset. It’s okay to not always be happy. It’s okay to cry. Never hide your emotions in fear of upsetting others or of being a bother.”
|
| 51 |
+
|
| 52 |
+
Table 1: Summary statistics for the Tumblr dataset, with posts from January 2011 to September 2017.
|
| 53 |
+
|
| 54 |
+
Tumblr data
|
| 55 |
+
|
| 56 |
+
<table><tr><td colspan="2">Posts</td><td colspan="2">English text</td><td>English text and image</td></tr><tr><td colspan="2">1,009,534</td><td colspan="2">578,699</td><td>256,897</td></tr><tr><td colspan="2"></td><td colspan="2"></td></tr><tr><td>Emotion</td><td>Posts</td><td>English text</td><td>English text and image</td></tr><tr><td>Happy</td><td>189,841</td><td>62%</td><td>29%</td></tr><tr><td>Calm</td><td>139,911</td><td>37%</td><td>29%</td></tr><tr><td>Sad</td><td>124,900</td><td>53%</td><td>15%</td></tr><tr><td>Scared</td><td>104,161</td><td>65%</td><td>20%</td></tr><tr><td>Bored</td><td>101,856</td><td>54%</td><td>29%</td></tr><tr><td>Angry</td><td>100,033</td><td>60%</td><td>21%</td></tr><tr><td>Annoyed</td><td>72,993</td><td>78%</td><td>10%</td></tr><tr><td>Love</td><td>66,146</td><td>61%</td><td>39%</td></tr><tr><td>Excited</td><td>37,240</td><td>58%</td><td>41%</td></tr><tr><td>Surprised</td><td>18,322</td><td>47%</td><td>32%</td></tr><tr><td>Optimistic</td><td>16,111</td><td>64%</td><td>36%</td></tr><tr><td>Amazed</td><td>10,367</td><td>61%</td><td>35%</td></tr><tr><td>Ashamed</td><td>10,066</td><td>63%</td><td>22%</td></tr><tr><td>Disgusted</td><td>9,178</td><td>69%</td><td>17%</td></tr><tr><td>Pensive</td><td>8,409</td><td>57%</td><td>34%</td></tr></table>
|
| 57 |
+
|
| 58 |
+
# 4 METHODOLOGY
|
| 59 |
+
|
| 60 |
+
# 4.1 VISUAL ANALYSIS
|
| 61 |
+
|
| 62 |
+
Training a convolutional network from scratch can be challenging as a large amount of data is needed and many different architectures have to be tried before achieving satisfying performances. To circumvent this issue, we can take advantage of a pre-trained network named Inception (Szegedy et al., 2015) that learned to recognise images through the ImageNet dataset with a deep architecture of 22 layers.
|
| 63 |
+
|
| 64 |
+
Inception learned representations capturing the colors and arrangement of shapes of an image, which turn out to be relevant when dealing with images even for a different task. We could also say that the pre-trained network grasped the underlying structure of images. This statement rests on the hypothesis that all images lie in a low-dimensional manifold, and recent advances in realistic photos generation through generative adversarial networks bolsters this idea (Radford et al., 2016).
|
| 65 |
+
|
| 66 |
+
# 4.2 NATURAL LANGUAGE PROCESSING
|
| 67 |
+
|
| 68 |
+
Even as a human being, it can be difficult to guess the expressed emotion only by looking at a Tumblr image without reading its caption as shown by Figure 2.
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
Figure 2: Which emotion is it?
|
| 72 |
+
|
| 73 |
+
It is unclear whether the user wants to convey happiness or surprise. Only after reading the accompanying text, “To whoever left this on my windshield outside of last night’s art opening, I love you. You made my night,” can we finally conclude that the person was surprised (and possibly also feeling other emotions like amazed). The text is extremely informative and is usually crucial to accurately infer the emotional state.
|
| 74 |
+
|
| 75 |
+
# 4.2.1 WORD EMBEDDING
|
| 76 |
+
|
| 77 |
+
Most learning algorithms rely on the local smoothness hypothesis, that is, similar training instances are spatially close. This hypothesis clearly doesn’t hold with words one-hot encoded as for instance ‘dog’ is as close to ‘tree’ as it is to ‘cat’. Ideally, we would like to transform the word ‘dog’ into a space in which it is closer to ‘cat’ than it is to ‘tree’. Word embeddings produce a mapping in which words are projected into a high-dimensional space that preserves semantic relationships. We use the GloVe (Pennington et al., 2014) word embedding that was trained on Twitter data, because the writing styles on Twitter and Tumblr are similar.
|
| 78 |
+
|
| 79 |
+
Each post in the dataset does not necessarily contain the same number of words. Even after embedding each word, the input will be of variable size and most learning algorithm expect a fixed-sized input. We could simply average across the high-dimensional representations of the words and take a distribution regression approach (Muandet et al., 2017). However note that averaging would mean that the word order would be completely lost. Human language relies heavily on word order to communicate as for example the word change can be both a noun and a verb, and negation such as ‘not entertained’ can only be understood if ‘not’ directly precedes the verb. We will preserve word order by using recurrent neural networks.
|
| 80 |
+
|
| 81 |
+
# 4.2.2 SEQUENCE INPUT
|
| 82 |
+
|
| 83 |
+
Models of natural language using neural networks have proved to outperform the more traditional statistical models that were limited by the Markov assumption (Bengio et al., 2003; Goodman, 2001). One explanation could be that the compact representation of words through word embeddings is robust (Mikolov et al., 2011) and do not need any smoothing over probabilities. Among the neural models, the recurrent-based models allows for short-term memory inspired by how humans read sentences: past context is essential to understand the meaning of written language. Contrary to shallow feedforward networks, that can only cluster similar words, recurrent networks (which can be viewed as a deep architecture (Bengio & LeCun, 2007)) can cluster similar histories. Recurrent neural networks have a temporal awareness represented by the hidden state that can be seen as an embedding of the past words. For example in Sutskever et al. (2014) a quality translation of a sentence was made possible with the last output of a recurrent neural network.
|
| 84 |
+
|
| 85 |
+
In our setting, for a given Tumblr post, the text is broken down into a sequence of words that are embedded into a high-dimensional space (unknown words are mapped to the zero vector) and then fed into an LSTM (Hochreiter & Schmidhuber, 1997). To account for shorter posts, we zero-pad the vector with a special word token. For longer posts, we only keep the 50 first words which is a reasonable choice as $76 \%$ posts in the dataset contain less than 50 words.
|
| 86 |
+
|
| 87 |
+
# 4.3 DEEP SENTIMENT: A MULTIMODAL NEURAL NETWORK
|
| 88 |
+
|
| 89 |
+
Information often comes in several modalities, and humans are able to seamlessly combine them. For instance, in speech recognition, humans integrate audio and visual information to understand speech, as was demonstrated by the McGurk effect (McGurk & MacDonald, 1976). Separating what we see from what we hear seems like an easy task, but in an experiment conducted by McGurk, the subjects who were listening to a /ba/ sound with a visual /ga/ actually reported they were hearing a /da/. This is uncanny as even if we know the actual sound is a /ba/, we cannot stop our brain from interpreting it as a /da/.
|
| 90 |
+
|
| 91 |
+
In Figure 2 we gave an example of text being necessary to fully understand the emotion expressed by an image. Sometimes alternative text would lead to entirely different interpretations, as shown in Figure 3:
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
(b) Angry: “I hate it when people are taking too much space on planes.”
|
| 95 |
+
|
| 96 |
+
(a) Scared: “Planes might just be the most frightening thing ever.”
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 3: Different meanings with different captions.
|
| 100 |
+
|
| 101 |
+
Exploiting both visual and textual information is therefore key to understanding a user’s underlying emotional state. We call our proposed network architecture, combining visual recognition and text analysis, “Deep Sentiment”.
|
| 102 |
+
|
| 103 |
+
# 4.3.1 ARCHITECTURE
|
| 104 |
+
|
| 105 |
+
Deep Sentiment’s architecture is shown in Figure 4:
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 4: The Deep Sentiment structure. On the one hand, the input image, resized to (224,224,3) is fed into the Inception network and outputs a vector of size 256. On the other hand, the text is projected into a high-dimensional space that subsequently goes through an LSTM layer with 1024 units. The two modalities are then concatenated and fed into a dense layer. The final softmax output layer give the probability distribution over the emotional state of the user.
|
| 109 |
+
|
| 110 |
+
# 5 EVALUATION
|
| 111 |
+
|
| 112 |
+
In Table 2, we compare Deep Sentiment with the image model (Inception model fine-tuned through the last Inception module), the text model, and a baseline: random guessing that includes the prior probabilities of the classes. Figure 5 shows a comparison of the accuracy curves of the different models.
|
| 113 |
+
|
| 114 |
+
Table 2: Comparison of image model, text model and Deep Sentiment.
|
| 115 |
+
|
| 116 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Loss</td><td rowspan=1 colspan=1>Trainaccuracy</td><td rowspan=1 colspan=1>Testaccuracy</td></tr><tr><td rowspan=1 colspan=1>Random guessing</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>11%</td><td rowspan=1 colspan=1>11%</td></tr><tr><td rowspan=1 colspan=1>Image model</td><td rowspan=1 colspan=1>1.80</td><td rowspan=1 colspan=1>43%</td><td rowspan=1 colspan=1>36%</td></tr><tr><td rowspan=1 colspan=1>Text model</td><td rowspan=1 colspan=1>0.81</td><td rowspan=1 colspan=1>72%</td><td rowspan=1 colspan=1>69%</td></tr><tr><td rowspan=1 colspan=1>Deep Sentiment</td><td rowspan=1 colspan=1>0.75</td><td rowspan=1 colspan=1>80%</td><td rowspan=1 colspan=1>72%</td></tr></table>
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 5: Accuracy comparison of the three models
|
| 120 |
+
|
| 121 |
+
Using text alone, the test accuracy is $69 \%$ , almost double the accuracy of the image model, this suggests that on Tumblr, text is a better predictor of emotion than images, as we illustrated in Figure 2. By combining text and images Deep Sentiment achieves $80 \%$ train accuracy and $72 \%$ test accuracy, significantly outperforming the images-only model and slightly outperforming the text-only model (note that no validation set was used to tune hyperparameters, even though various architectures were tried before yielding Deep Sentiment).
|
| 122 |
+
|
| 123 |
+
# 6 RESULTS
|
| 124 |
+
|
| 125 |
+
In this section, we carefully investigate what psychologically meaningful results we can draw from our model, and whether they match previous results in the psychology literature.
|
| 126 |
+
|
| 127 |
+
# 6.1 TOP WORDS FOR EACH EMOTION
|
| 128 |
+
|
| 129 |
+
We investigated which words were the most relevant for each emotion as follows: we created artificial posts whose text consisted of a single word (each of the most frequent 1,000 words in the whole dataset were tested) accompanied by an image that was the mean image (per channel mean). For each emotion, we report the 10 highest scoring words from these 1,000 artificial posts in Table 3 (words 11-20 for each emotion are in Appendix B).
|
| 130 |
+
|
| 131 |
+
Table 3: Top 10 words for each emotion, ordered by the relative frequency of the emotion being used as a tag on Tumblr
|
| 132 |
+
|
| 133 |
+
<table><tr><td>Emotion Happy</td><td>Top words</td></tr><tr><td>Calm Sad Scared Bored Angry Annoyed Love Excited Surprised Optimistic Amazed Ashamed Disgusted Pensive</td><td>healthy, loving,enjoy, wonderful, warm, happiness,smile, lovely, cute,proud quiet, situation, peace, mood, towards, warm, slowly, stay, sleep, rain horrible,sorry,crying,hurts, tears,cried,lonely,memories,worst, pain terrified, scary, panic, nervous,fear,afraid,horrible,woke,happening,worried asleep, tired,kinda,busy, stuck,constantly, lonely, sat, listening,depression anger, fear, panic,annoying,hate,mad, upset, anxiety, scares,stupid pissed, ashamed, angry, nervous,speak, surprised, tired, worried, ignore, phone soul,dreams,happiness,kiss,sex,beauty,women, feelings,god,relationships tonight, hopefully, watching, nervous, surprised, expect, tomorrow, amazing, hoping, happen birthday, cried, thank, yesterday, told, sorry,amazing, sweet, friend, message positive, expect, surprised, healthy, grow, realize, clearly, hopefully, calm, peace surprised, excited,amazing,woke,realized,awesome, happening,ashamed, yeah, happened totally, honestly, sorry,absolutely, freaking, honest,completely,stupid, seriously,am ashamed, totally,angry,hate,stupid,annoyed,horrible,scares,freaking,absolutely mood,wrote,quiet, view, sadness, thoughts,calm,words,sad,kissed</td></tr></table>
|
| 134 |
+
|
| 135 |
+
An inspection of each of the words suggests that none are out of place, with the possible exception of “ashamed” in the list of Amazed words. (This may be due to the fact that the tag Amazed is sometimes used ironically.) Further, our data-driven approach suggests that our methods could be used as an alternative to the word list-based approaches to sentiment analysis common in psychology. The most widely used tool, Linguistic Inquiry Word Count (LIWC), (Pennebaker et al., 2007), consists of dozens of English words which were compiled by hand into psychologically meaningful categories such as “Health/illness” or “Anxiety” and used in a large number of psychology studies (Tausczik & Pennebaker, 2010). Not only does our approach automatically give sensible word lists, it contains modern words, common in social media usage, like “woke” (first attested in its modern meaning in 1962 according to the Oxford English Dictionary which defines it as “alert to racial or social discrimination and injustice”) and “phone.” Woke appears in the top 10 of “Scared” and “Amazed” and in the top 20 of “Calm” (Appendix B), an interesting finding in its own right. By contrast, both woke and phone appear in LIWC, but not in any of LIWC’s emotion word categories, only in a list of verbs and a list of social words, respectively.
|
| 136 |
+
|
| 137 |
+
# 6.2 CLUSTERING EMOTIONS
|
| 138 |
+
|
| 139 |
+
Psychologists have long studied the structure of emotion, and debated whether there are a small number of “core” emotions (Ekman, 1992), two dominant factors (see Tellegen et al. (1999) for a discussion of various theories), or more complex models (e.g. Lindquist et al. (2013) critiques previous models and argues that emotions do not belong in natural categories or along multiple dimensions, because they are the “constructions” of the human mind, and the result of complex perceptions). Classical attempts by psychologists to answer this question have relied on survey data in which respondents can self-report more than one emotion, followed by clustering or factor analysis approaches. More recently, psychologists have turned to neuroscience to address these questions.
|
| 140 |
+
|
| 141 |
+
While we collected a dataset in which each Tumblr post was labeled with a single emotion tag, we can nevertheless directly address this question using our trained model. Given an image $\mathcal { T }$ and text $\tau$ from our dataset, we can compute the conditional probabilities of the emotion classes: ${ \hat { y } } | \mathcal { T } , \mathcal { T }$ where $\hat { y }$ is a probability vector in the 15-dimensional simplex. To calculate our model’s predicted empirical distribution over $\hat { y }$ we predict $\hat { y }$ for all posts in our dataset: $( \hat { y } _ { i } | \mathcal { T } _ { i } , \mathcal { T } _ { i } ) _ { i = 1 } ^ { n }$ . Finally, we calculate the empirical correlation matrix of ${ \hat { y } } _ { 1 } , \dots , { \hat { y } } _ { n }$ , which we include in the Appendix in Figure 9. For ease of visualization, we convert the correlation matrix to a distance matrix and perform hierarchical clustering as shown in Figure 6.
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 6: Hierarchical clustering of the emotion correlation matrix.
|
| 145 |
+
|
| 146 |
+
Similar to almost all previous psychology studies, there is a clear distinction between emotions that are positive in nature, such as excited, happy, and love and emotions that are negative such as angry, ashamed, annoyed, and disgusted. Another finding consistent with much previous literature, which we investigate more below, is that within both positive and negative emotions, there is a distinction between low arousal emotions and high arousal emotions. Bored and sad (low arousal) are in one cluster, while high arousal emotions—angry, ashamed, annoyed, disgusted—are in another.
|
| 147 |
+
|
| 148 |
+
# 6.3 THE CIRCUMPLEX MODEL OF EMOTION
|
| 149 |
+
|
| 150 |
+
The circumplex model (Posner et al., 2005) posits two dimensions which explain emotions, usually valence (positive vs. negative) and arousal (low vs. high), though other dimensions have been suggested. We investigated whether two factors explained most of the variance in our results using principal component analysis (PCA). As shown in the scree plot in the Appendix in Figure 12, while the first component explains $2 8 . 8 \%$ of the variance, dimensions 2 and 3 explain $1 6 . 4 \%$ and $1 4 . 6 \%$ respectively, evidence against a simple two factor model.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
|
| 154 |
+
(a) PCA with a random subset of posts, 150 for each emotion.
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 7: Affect/valence
|
| 158 |
+
|
| 159 |
+
We visualize the results of PCA in Figure 7. At left, a random subset of posts, where for visualization purpose we sampled equally from each emotion class, are shown along the first two principal components, and each is colored by the most probable predicted emotion. This shows that within any particular emotion category there is much variation along these two dimensions, i.e. they do not cluster very tightly. Related emotions like happy and love are close together, as they were in the dendrogram.
|
| 160 |
+
|
| 161 |
+
At right, we visualise the projection of the emotion variables onto the first two principal components. Using this figure, we conclude that the first principal component corresponds well to valence, as it neatly separates happy/love from disgusted/ashamed/annoyed. However, the second principal component is not clearly arousal. In the Appendix, we consider the third principal component as well, but the picture is no clearer. Once again, this provides evidence against a simple two factor model of emotion. Below, we further investigate the valence/arousal model.
|
| 162 |
+
|
| 163 |
+
6.4 VALIDATION ON THE OPEN AFFECTIVE STANDARDIZED IMAGE SET (OASIS)
|
| 164 |
+
|
| 165 |
+
The Open Affective Standardized Image Set (OASIS) dataset (Kurdi et al., 2017) was developed as an alternative to the International Affective Picture System ((Lang, 2005)), a set of emotional stimuli which has been used in many psychology studies. OASIS consists of 900 color images which were rated by human judges on MTurk along the valence and arousal scales discussed above. OASIS images come in classes with labels such as “Alcohol”, “Flowers”, or “Pigeon.” We applied our Deep Sentiment model to these images, treating the single-word label as the input text. After making predictions, we projected them onto the principal components discussed above.
|
| 166 |
+
|
| 167 |
+
In Table 4 we calculated the correlations between the first three principal components from our model and the mean valence and arousal variables from OASIS. The high correlation between the first principal component (PC1) and the valence variable provides evidence, as in the previous section, that PC1 is capturing a dimension of emotion separating positive from negative. It is also interesting to note the low correlation between PC1 and arousal. By contrast, while PC2 and PC3 are correlated with arousal, the correlations are not very high, and they are also correlated with valence. On the one hand, this is more evidence against there being two factors explaining emotions. On the other hand, asking judges to rate a set of images based on arousal and valence is more similar to the standard sentiment analysis task of predicting whether a sentence expresses positive or negative emotion. By contrast, our dataset comes from a set of images which were chosen by users who also decided to select emotion word tags to accompany them. We consider this to thus be a dataset of richer emotional content, and by design it represents a richer set of emotions.
|
| 168 |
+
|
| 169 |
+
Table 4: Correlation between OASIS arousal/valence and principal components
|
| 170 |
+
|
| 171 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>OASISvalence</td><td rowspan=1 colspan=1>OASISarousal</td></tr><tr><td rowspan=1 colspan=1>PC1</td><td rowspan=1 colspan=1>58%</td><td rowspan=1 colspan=1>3%</td></tr><tr><td rowspan=1 colspan=1>PC2</td><td rowspan=1 colspan=1>17%</td><td rowspan=1 colspan=1>22%</td></tr><tr><td rowspan=1 colspan=1>PC3</td><td rowspan=1 colspan=1>30%</td><td rowspan=1 colspan=1>11%</td></tr></table>
|
| 172 |
+
|
| 173 |
+
# 7 CONCLUSION
|
| 174 |
+
|
| 175 |
+
We developed a novel multimodal sentiment analysis method using deep learning methods. Our goal was to investigate a core area of psychology, the study of emotion, using a large and novel social media dataset. Our approach provides new tools for the joint study of images and text on social media. This is important as social science researchers have begun to uncover the important role that images play on social media. As our dataset consisted of text, images, and emotion word tags, we considered it to be a form of “self-reported” data, which is the gold standard in emotion. However, it could also be considered to be an unobtrusive behavioral measure, and thus not subject to the biases inherent in laboratory studies. But because the data comes from public social media posts, we cannot rule out various sources of bias. What people choose to post—and not to post—on social media is influenced by how they want to present themselves (Wojnicki & Godes, 2008), so our study is limited insofar as it covers emotion not necessarily as it is truly experienced but rather as it is expressed or performed online.
|
| 176 |
+
|
| 177 |
+
In the future, we will evaluate our model on other image / text stimuli datasets that have been developed for psychological studies and investigate whether human judges are more or less accurate than our model. Finally, we will investigate other psychological components of the structure of emotion, for example daily and day of week trends in emotion.
|
| 178 |
+
|
| 179 |
+
# REFERENCES
|
| 180 |
+
|
| 181 |
+
Yoshua Bengio and Yann LeCun. Scaling learning algorithms towards AI. In Large Scale Kernel Machines. MIT Press, 2007.
|
| 182 |
+
Yoshua Bengio, Rejean Ducharme, and Pascal Vincent. A neural probabilistic language model. Journal of Machine Learning Research, 3:1137–1155, 2003.
|
| 183 |
+
Johan Bollen, Huina Mao, and Xiao-Jun Zeng. Twitter mood predicts the stock market. Journal of Computational Science, 2:1–8, 2011.
|
| 184 |
+
Damian Borth, Tao Chen, Rong-Rong Ji, and Shih-Fu Chang. Sentibank: Large-scale ontology and classifiers for detecting sentiment and emotions in visual content. In ACM, 2013.
|
| 185 |
+
Tao Chen, Hany Salaheldeen, Xiangnan He, Min-Yen Kan, and Dongyuan Lu. Relating an image tweet’s text and images. In AAAI, 2015.
|
| 186 |
+
Paul Ekman. An argument for basic emotions. Cognition & emotion, 6(3-4):169–200, 1992.
|
| 187 |
+
Seth Flaxman and Karim Kassam. On #agony and #ecstasy: Potential and pitfalls of linguistic sentiment analysis. In preparation, 2016.
|
| 188 |
+
Daniel Todd Gilbert. Stumbling On Happiness. A.A. Knopf, New York, 2006.
|
| 189 |
+
Scott A Golder and Michael W Macy. Diurnal and seasonal mood vary with work, sleep, and daylength across diverse cultures. Science, 333(6051):1878–1881, 2011.
|
| 190 |
+
Yunchao Gong, Qifa Ke, Michael Isard, and Svetlana Lazebnik. A multi-view embedding space for modeling internet images, tags, and their semantics. International Journal of Computer Vision, 2014.
|
| 191 |
+
Joshua Goodman. A bit of progress in language modeling. Computer Speech and Language, 15: 403–434, 2001.
|
| 192 |
+
|
| 193 |
+
Matthieu Guillaumin, Jakob Verbeek, and Cordelia Schmid. Multimodal semi-supervised learning for image classification. In CVPR, 2010.
|
| 194 |
+
|
| 195 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. In Neural Computation, 1997.
|
| 196 |
+
|
| 197 |
+
Dhiraj Joshi, Ritendra Datta, Elena Fedorovskaya, Quang-Tuan Luong, J.Z. Wang, Jia Li, and Jiebo Luo. Aesthetics and emotions in images. 28:94–115, 2011.
|
| 198 |
+
|
| 199 |
+
Marie Katsurai and Shin’ichi Satoh. Image sentiment analysis using latent correlations among visual, textual, and sentiment views. In ICASSP, 2016.
|
| 200 |
+
|
| 201 |
+
Benedek Kurdi, Shayn Lozano, and Mahzarin R Banaji. Introducing the open affective standardized image set (oasis). Behavior research methods, 49(2):457–470, 2017.
|
| 202 |
+
|
| 203 |
+
Peter J Lang. International affective picture system (iaps): Affective ratings of pictures and instruction manual. Technical report, 2005.
|
| 204 |
+
|
| 205 |
+
Kristen A Lindquist, Erika H Siegel, Karen S Quigley, and Lisa Feldman Barrett. The hundredyear emotion war: are emotions natural kinds or psychological constructions? comment on lench, flores, and bench (2011). 2013.
|
| 206 |
+
|
| 207 |
+
Harry McGurk and John MacDonald. Hearing lips and seeing voices. In Nature, 1976.
|
| 208 |
+
|
| 209 |
+
Tomas Mikolov, Stefan Kombrink, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. Extensions of recurrent neural network language model. In International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2011.
|
| 210 |
+
|
| 211 |
+
Daniel Miller and Jolynna Sinanan. Visualising facebook. 2017.
|
| 212 |
+
|
| 213 |
+
Krikamol Muandet, Kenji Fukumizu, Bharath Sriperumbudur, Bernhard Scholkopf, et al. Kernel ¨ mean embedding of distributions: A review and beyond. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 10(1-2):1–141, 2017.
|
| 214 |
+
|
| 215 |
+
Alexander Pak and Patrick Paroubek. Twitter as a corpus for sentiment analysis and opinion mining. In LREc, volume 10, 2010.
|
| 216 |
+
|
| 217 |
+
James W. Pennebaker, Roger J. Booth, and Martha E. Francis. Linguistic inquiry and word count: Liwc2007. In Operators manual, 2007.
|
| 218 |
+
|
| 219 |
+
Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global vectors for word representation. In Empirical Methods in Natural Language Processing (EMNLP), 2014.
|
| 220 |
+
|
| 221 |
+
Robert Plutchik. The nature of emotions. 89:344, 2001.
|
| 222 |
+
|
| 223 |
+
Jonathan Posner, James A Russell, and Bradley S Peterson. The circumplex model of affect: An integrative approach to affective neuroscience, cognitive development, and psychopathology. Development and psychopathology, 17(3):715–734, 2005.
|
| 224 |
+
|
| 225 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016.
|
| 226 |
+
|
| 227 |
+
Sara Rosenthal, Noura Farra, and Preslav Nakov. Semeval-2017 task 4: Sentiment analysis in twitter. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pp. 502–518, 2017.
|
| 228 |
+
|
| 229 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li FeiFei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 115:211–252, 2015.
|
| 230 |
+
|
| 231 |
+
Limor Shifman. Memes in digital culture. Mit Press, 2014.
|
| 232 |
+
|
| 233 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In NIPS, 2014.
|
| 234 |
+
|
| 235 |
+
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015.
|
| 236 |
+
|
| 237 |
+
Yla R Tausczik and James W Pennebaker. The psychological meaning of words: Liwc and computerized text analysis methods. Journal of Language and Social Psychology, 29(1):24–54, 2010.
|
| 238 |
+
|
| 239 |
+
Auke Tellegen, David Watson, and Lee Anna Clark. On the dimensional and hierarchical structure of affect. Psychological Science, 10(4):297–303, 1999.
|
| 240 |
+
|
| 241 |
+
Yilin Wang, Suhang Wang, Jiliang Tang, Huan Liu, and Baoxin Li. Unsupervised sentiment analysis for social media images. In IJCAI, 2015.
|
| 242 |
+
|
| 243 |
+
David Watson and Lee Anna Clark. The panas-x: Manual for the positive and negative affect schedule - expanded form. 1999.
|
| 244 |
+
|
| 245 |
+
Andrea C Wojnicki and David Godes. Word-of-mouth as self-enhancement. 2008.
|
| 246 |
+
|
| 247 |
+
Quanzeng You, Jiebo Luo, Hailin Jin, and Jianchao Yang. Robust image sentiment analysis using progressively trained and domain transferred deep networks. In AAAI, 2015.
|
| 248 |
+
|
| 249 |
+
# A MORE EXAMPLES OF TUMBLR POSTS
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
(b) Disgusted: “Me when I see a couple expressing their affection in physical ways in public”
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
(a) Happy: “Just relax with this amazing view #bigsur #california #roadtrip #usa #life #fitness (at McWay Falls)”
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
|
| 261 |
+
(c) Angry: “Tensions were high this Caturday...”
|
| 262 |
+
|
| 263 |
+
(d) Surprised: “Which Tea? Peppermint tea: What is your favorite gif right now?”
|
| 264 |
+
|
| 265 |
+
Figure 8: Tumblr posts
|
| 266 |
+
|
| 267 |
+
B FURTHER RESULTS
|
| 268 |
+
|
| 269 |
+
Table 5: Top 11-20 words for each emotion
|
| 270 |
+
|
| 271 |
+
<table><tr><td>Emotion Happy</td><td>Top words</td></tr><tr><td>Calm Sad Scared Bored Angry Annoyed Love Excited Surprised Optimistic Amazed</td><td>beautiful, beauty, fun, nice, dinner, sweet, good,loves,amazing, comfortable view, sound, cool, continue, visit, push, woke, morning, safe, step cry, sick, hurt, dead,feeling,worse,death,upset, falling, panic kill, happened, cause,asleep,anxiety, worry, hurt, happen, worst, seriously sitting, suddenly, freaking, slowly,annoying, sometimes, gotten, completely, older, cold hurt, face,against, cause,hurts, fucking, fight, pain, strong,worst depressed,lately,conversation,constantly, scared,stupid, scares, bored,heard, extremely sweet, mother, forget, hate, her, song,enjoy, sister, wonderful, dear 2017, positive,am, definitely,awesome,happens, listening, happy, grow, wanna annoyed, negative,apparently,u, minute,asked, sadness, happened, moments, laugh view,yet, believe, tomorrow,trending,said,situation,mood,forward, future im,quite,appreciate, honestly, knew,learned, yang, felt, liked, asleep</td></tr></table>
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
Figure 9: Heatmap of the emotion correlation matrix
|
| 275 |
+
|
| 276 |
+

|
| 277 |
+
|
| 278 |
+
(a) PCA with a random subset of posts, 150 for each emotion
|
| 279 |
+
|
| 280 |
+

|
| 281 |
+
Figure 10: PCA on dimension 1 and 3
|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
(a) PCA with a random subset of posts, 150 for each emotion
|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
Figure 11: PCA for dimension 2 and 3
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
Figure 12: Explained variance of the PCA
|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
Figure 13: Factor loadings
|
parse/train/BJ6anzb0Z/BJ6anzb0Z_content_list.json
ADDED
|
@@ -0,0 +1,1529 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We propose a novel approach to multimodal sentiment analysis using deep neural networks combining visual recognition and natural language processing. Our goal is different than the standard sentiment analysis goal of predicting whether a sentence expresses positive or negative sentiment; instead, we aim to infer the latent emotional state of the user. Thus, we focus on predicting the emotion word tags attached by users to their Tumblr posts, treating these as “self-reported emotions.” We demonstrate that our multimodal model combining both text and image features outperforms separate models based solely on either images or text. Our model’s results are interpretable, automatically yielding sensible word lists associated with emotions. We explore the structure of emotions implied by our model and compare it to what has been posited in the psychology literature, and validate our model on a set of images that have been used in psychology studies. Finally, our work also provides a useful tool for the growing academic study of images— both photographs and memes—on social networks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
271,
|
| 43 |
+
764,
|
| 44 |
+
465
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
505,
|
| 55 |
+
336,
|
| 56 |
+
520
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Sentiment analysis has been an active area of research in the past decade, especially on textual data from Twitter, e.g. early work by Pak & Paroubek (2010) showed that emoticons could be used to collect a labeled dataset for sentiment analysis, Golder & Macy (2011) investigated temporal patterns in emotion using tweets, and Bollen et al. (2011) investigated the impact of collective mood states on the stock market. The SemEval series of “Sentiment Analysis in Twitter” challenges has used Twitter data as a benchmark to spur the development of new sentiment analysis algorithms (Rosenthal et al., 2017). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
541,
|
| 66 |
+
825,
|
| 67 |
+
638
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Unlike Twitter, Tumblr posts are not limited to 140 characters, allowing more expressiveness, and they often focus on visual content: most Tumblr posts contain an image with some accompanying text. As pictures—both photographs and memes—have become prevalent on social media, researchers have begun to study them, and make novel claims about the role that they play in social media. Shifman (2014) makes an argument for taking memes seriously, and Miller & Sinanan (2017) use memes throughout their cross-country anthropological study of Facebook, characterizing who posts what sorts of memes and what sort of communicative function memes play. Inspired by this research, we take images seriously as a source of data worth analyzing. Further, we aim to enable a research agenda focused on images by giving social scientists tools to address fundamental questions about the use of images on social media. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
645,
|
| 77 |
+
825,
|
| 78 |
+
784
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In psychology, the gold standard for measuring emotions is self-report, i.e. if an individual says that they are happy then that is taken to be the truth (Gilbert, 2006). On Tumblr, users often attach tags to their posts which we consider to be emotional self-reports, as these tags take the simple form of, e.g. “#happy”. By collecting a large dataset and using these emotion word tags as labels, we argue that our sentiment analysis approach, which combines images and text, leads to a more psychologically plausible model, as the dataset combines two rich sources of information and has labels we believe are a good proxy for self-reported emotion. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
791,
|
| 88 |
+
825,
|
| 89 |
+
888
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Concretely, the Deep Sentiment model associates the features learned by the two modalities as follows: ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
895,
|
| 99 |
+
821,
|
| 100 |
+
922
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "• For images, we fine-tune Inception (Szegedy et al., 2015), a pre-trained deep convolutional neural network, to our specific task of emotion inferring. \n• The text is mapped into a rich high-dimensional space using a word representation learned by GloVe (Pennington et al., 2014). The embedded vectors are then fed to a recurrent network which preserves the word order and captures some of the semantics of human language. \n• A dense layer combines the information in the two modalities and a final softmax output layer gives the probability distribution over the possible emotion word tags. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
212,
|
| 109 |
+
103,
|
| 110 |
+
825,
|
| 111 |
+
224
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 RELATED WORK ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
243,
|
| 122 |
+
341,
|
| 123 |
+
258
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Visual sentiment analysis has received much less attention compared to text-based sentiment analysis. Yet, images are a valuable source of information for accurately inferring emotional states as they have become ubiquitous on social media as a means for users to express themselves (Miller & Sinanan, 2017). Although huge progress has been made on standard image classification tasks thanks to the ImageNet challenge (Russakovsky et al., 2015), visual sentiment analysis may be fundamentally different from classifying images as it requires a higher level of abstraction to understand the message conveyed by an image (Joshi et al., 2011). Implicit knowledge linked to culture and intrinsic human subjectivity – that can make two people use the same image to express different emotions – makes visual sentiment analysis a difficult task. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
273,
|
| 133 |
+
825,
|
| 134 |
+
398
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Borth et al. (2013) pioneered sentiment analysis on visual content with SentiBank, a system extracting mid-level semantic attributes from images. These semantic features are outputs of classifiers that can predict the relevance of an image with regard to one of the emotions in the Plutchik’s wheel of emotions (Plutchik, 2001). Motivated by the progress of deep learning methods, You et al. (2015) used convolutional neural networks on Flickr with domain transfer from Twitter for binary sentiment classification. However, studies about image annotation showed that combining text features with images can greatly improve performance as shown by Guillaumin et al. (2010) and Gong et al. (2014). ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
406,
|
| 144 |
+
825,
|
| 145 |
+
517
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Successful results in multimodal sentiment analysis have been achieved using non-negative matrix factorisation (Wang et al., 2015) and latent correlations (Katsurai & Satoh, 2016). Chen et al. (2015) investigated the image posting behaviour of social media users and found in his study that two thirds of the participants added an image to their tweets to enhance the emotion of the text. In order to uncover the link between image tweets and the latent emotion, he used Latent Dirichlet Allocation to model image tweets with three modalities: textual, visual and emotional. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
525,
|
| 155 |
+
823,
|
| 156 |
+
608
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "One weakness shared by the papers above is the lack of large training datasets due to the inherent complexity of finding labeled images/text on social media. In this work, we aim to mitigate this problem using a large noisy labeled dataset of Tumblr posts. Further, sentiment analysis on text is a well-developed research area in both computer science and psychology, and sentiment analysis has been used to answer psychological questions. However, researchers have cautioned that sentiment analysis focuses on the positive or negative sentiment expressed by a piece of text, rather than on the underlying emotional state of the person who wrote the text (Flaxman & Kassam, 2016) and thus is not necessarily a reliable measure of latent emotion. We address this problem by trying to predict emotional state of the user instead of the sentiment polarity. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
614,
|
| 166 |
+
825,
|
| 167 |
+
741
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "3 TUMBLR DATASET ",
|
| 174 |
+
"text_level": 1,
|
| 175 |
+
"bbox": [
|
| 176 |
+
176,
|
| 177 |
+
760,
|
| 178 |
+
357,
|
| 179 |
+
776
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "Tumblr is a microblogging service where users post multimedia content that often contains the following attributes: an image, text, and tags. The critical piece of our approach, which distinguishes it from sentiment analysis methods focused on purely distinguishing positive from negative, is that we use the emotion word tags as the labels we wish to predict. As we consider these emotion word tags to be (noisy) labels indicating the user’s state of mind when writing a post, we can use them as a proxy for self-reported emotion, and thus a proxy for the underlying emotional state of the user. ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
791,
|
| 189 |
+
825,
|
| 190 |
+
875
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "To build our dataset, queries were made through the Tumblr API searching for an emotion appearing in the tags. The 15 emotions retained were those with high relative frequencies on Tumblr among the PANAS-X scale (Watson & Clark, 1999) or the Plutchik’s wheel of emotions (Plutchik, 2001). ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
176,
|
| 199 |
+
882,
|
| 200 |
+
823,
|
| 201 |
+
922
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "In some posts, the tag containing the emotion of the post also appeared in the text itself. We removed these words from the text in order not to give our classifier an unfair advantage. We extracted every tagged posts from Tumblr by going backward from 2017 until 2011. Due to the API limitations, posts from high density emotions, such as ‘happy’ or ‘angry’, did not go as far back in the past, but otherwise we believe that our dataset is a complete sample. ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
103,
|
| 211 |
+
825,
|
| 212 |
+
174
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 2
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "As Tumblr is used worldwide, we had to filter out non-English posts: posts with less than $50 \\%$ of English words were removed from the dataset. The vocabulary of English words was obtained from GloVe (although GloVe’s vocabulary contains some non-English words this approach filtered out non-English posts reasonably well). Also, not every extracted post contained an image and we likewise excluded these. Figure 1 shows two posts with their associated emotions (more examples in Appendix A) and Table 1 summarises the statistics of the data1. ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
173,
|
| 221 |
+
180,
|
| 222 |
+
825,
|
| 223 |
+
263
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 2
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "image",
|
| 229 |
+
"img_path": "images/c754f85a96b5e02096e85f7171ae5ad6b26626a9c7fc8f947317498943d3f473.jpg",
|
| 230 |
+
"image_caption": [],
|
| 231 |
+
"image_footnote": [],
|
| 232 |
+
"bbox": [
|
| 233 |
+
598,
|
| 234 |
+
285,
|
| 235 |
+
709,
|
| 236 |
+
400
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "(a) Optimistic: “The most beautiful thing we can experience is the mysterious. It is the source of all true art and science – Albert Einstein.” ",
|
| 243 |
+
"bbox": [
|
| 244 |
+
173,
|
| 245 |
+
406,
|
| 246 |
+
486,
|
| 247 |
+
444
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "image",
|
| 253 |
+
"img_path": "images/7c16a8beb1e3bd4b8315511d19263c96d010dd431526b1e9063c7a79fa9477ca.jpg",
|
| 254 |
+
"image_caption": [
|
| 255 |
+
"Figure 1: Examples of Tumblr posts "
|
| 256 |
+
],
|
| 257 |
+
"image_footnote": [],
|
| 258 |
+
"bbox": [
|
| 259 |
+
271,
|
| 260 |
+
285,
|
| 261 |
+
392,
|
| 262 |
+
400
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "(b) Sad: “It’s okay to be upset. It’s okay to not always be happy. It’s okay to cry. Never hide your emotions in fear of upsetting others or of being a bother.” ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
496,
|
| 271 |
+
406,
|
| 272 |
+
810,
|
| 273 |
+
444
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Table 1: Summary statistics for the Tumblr dataset, with posts from January 2011 to September 2017. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
173,
|
| 282 |
+
512,
|
| 283 |
+
825,
|
| 284 |
+
541
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "table",
|
| 290 |
+
"img_path": "images/64d923cf2474ff330ce0f0821d528a7019e0f79b04bae548f3e42f1ce3c05978.jpg",
|
| 291 |
+
"table_caption": [
|
| 292 |
+
"Tumblr data "
|
| 293 |
+
],
|
| 294 |
+
"table_footnote": [],
|
| 295 |
+
"table_body": "<table><tr><td colspan=\"2\">Posts</td><td colspan=\"2\">English text</td><td>English text and image</td></tr><tr><td colspan=\"2\">1,009,534</td><td colspan=\"2\">578,699</td><td>256,897</td></tr><tr><td colspan=\"2\"></td><td colspan=\"2\"></td></tr><tr><td>Emotion</td><td>Posts</td><td>English text</td><td>English text and image</td></tr><tr><td>Happy</td><td>189,841</td><td>62%</td><td>29%</td></tr><tr><td>Calm</td><td>139,911</td><td>37%</td><td>29%</td></tr><tr><td>Sad</td><td>124,900</td><td>53%</td><td>15%</td></tr><tr><td>Scared</td><td>104,161</td><td>65%</td><td>20%</td></tr><tr><td>Bored</td><td>101,856</td><td>54%</td><td>29%</td></tr><tr><td>Angry</td><td>100,033</td><td>60%</td><td>21%</td></tr><tr><td>Annoyed</td><td>72,993</td><td>78%</td><td>10%</td></tr><tr><td>Love</td><td>66,146</td><td>61%</td><td>39%</td></tr><tr><td>Excited</td><td>37,240</td><td>58%</td><td>41%</td></tr><tr><td>Surprised</td><td>18,322</td><td>47%</td><td>32%</td></tr><tr><td>Optimistic</td><td>16,111</td><td>64%</td><td>36%</td></tr><tr><td>Amazed</td><td>10,367</td><td>61%</td><td>35%</td></tr><tr><td>Ashamed</td><td>10,066</td><td>63%</td><td>22%</td></tr><tr><td>Disgusted</td><td>9,178</td><td>69%</td><td>17%</td></tr><tr><td>Pensive</td><td>8,409</td><td>57%</td><td>34%</td></tr></table>",
|
| 296 |
+
"bbox": [
|
| 297 |
+
279,
|
| 298 |
+
580,
|
| 299 |
+
717,
|
| 300 |
+
869
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "4 METHODOLOGY ",
|
| 307 |
+
"text_level": 1,
|
| 308 |
+
"bbox": [
|
| 309 |
+
176,
|
| 310 |
+
102,
|
| 311 |
+
341,
|
| 312 |
+
118
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "4.1 VISUAL ANALYSIS ",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
138,
|
| 323 |
+
343,
|
| 324 |
+
154
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "Training a convolutional network from scratch can be challenging as a large amount of data is needed and many different architectures have to be tried before achieving satisfying performances. To circumvent this issue, we can take advantage of a pre-trained network named Inception (Szegedy et al., 2015) that learned to recognise images through the ImageNet dataset with a deep architecture of 22 layers. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
169,
|
| 334 |
+
825,
|
| 335 |
+
238
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "Inception learned representations capturing the colors and arrangement of shapes of an image, which turn out to be relevant when dealing with images even for a different task. We could also say that the pre-trained network grasped the underlying structure of images. This statement rests on the hypothesis that all images lie in a low-dimensional manifold, and recent advances in realistic photos generation through generative adversarial networks bolsters this idea (Radford et al., 2016). ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
174,
|
| 344 |
+
246,
|
| 345 |
+
825,
|
| 346 |
+
315
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "4.2 NATURAL LANGUAGE PROCESSING ",
|
| 353 |
+
"text_level": 1,
|
| 354 |
+
"bbox": [
|
| 355 |
+
176,
|
| 356 |
+
343,
|
| 357 |
+
455,
|
| 358 |
+
356
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "Even as a human being, it can be difficult to guess the expressed emotion only by looking at a Tumblr image without reading its caption as shown by Figure 2. ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
372,
|
| 368 |
+
825,
|
| 369 |
+
400
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 3
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "image",
|
| 375 |
+
"img_path": "images/168cd0e1d2a7780da3aedcab9aadf7521e6f7fd9feca8bb9bfdc75e1d65cbad9.jpg",
|
| 376 |
+
"image_caption": [
|
| 377 |
+
"Figure 2: Which emotion is it? "
|
| 378 |
+
],
|
| 379 |
+
"image_footnote": [],
|
| 380 |
+
"bbox": [
|
| 381 |
+
434,
|
| 382 |
+
422,
|
| 383 |
+
563,
|
| 384 |
+
525
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 3
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "text",
|
| 390 |
+
"text": "It is unclear whether the user wants to convey happiness or surprise. Only after reading the accompanying text, “To whoever left this on my windshield outside of last night’s art opening, I love you. You made my night,” can we finally conclude that the person was surprised (and possibly also feeling other emotions like amazed). The text is extremely informative and is usually crucial to accurately infer the emotional state. ",
|
| 391 |
+
"bbox": [
|
| 392 |
+
174,
|
| 393 |
+
585,
|
| 394 |
+
825,
|
| 395 |
+
655
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "4.2.1 WORD EMBEDDING ",
|
| 402 |
+
"text_level": 1,
|
| 403 |
+
"bbox": [
|
| 404 |
+
176,
|
| 405 |
+
680,
|
| 406 |
+
364,
|
| 407 |
+
694
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "Most learning algorithms rely on the local smoothness hypothesis, that is, similar training instances are spatially close. This hypothesis clearly doesn’t hold with words one-hot encoded as for instance ‘dog’ is as close to ‘tree’ as it is to ‘cat’. Ideally, we would like to transform the word ‘dog’ into a space in which it is closer to ‘cat’ than it is to ‘tree’. Word embeddings produce a mapping in which words are projected into a high-dimensional space that preserves semantic relationships. We use the GloVe (Pennington et al., 2014) word embedding that was trained on Twitter data, because the writing styles on Twitter and Tumblr are similar. ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
174,
|
| 416 |
+
708,
|
| 417 |
+
825,
|
| 418 |
+
805
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "Each post in the dataset does not necessarily contain the same number of words. Even after embedding each word, the input will be of variable size and most learning algorithm expect a fixed-sized input. We could simply average across the high-dimensional representations of the words and take a distribution regression approach (Muandet et al., 2017). However note that averaging would mean that the word order would be completely lost. Human language relies heavily on word order to communicate as for example the word change can be both a noun and a verb, and negation such as ‘not entertained’ can only be understood if ‘not’ directly precedes the verb. We will preserve word order by using recurrent neural networks. ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
173,
|
| 427 |
+
813,
|
| 428 |
+
825,
|
| 429 |
+
924
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "4.2.2 SEQUENCE INPUT ",
|
| 436 |
+
"text_level": 1,
|
| 437 |
+
"bbox": [
|
| 438 |
+
176,
|
| 439 |
+
103,
|
| 440 |
+
351,
|
| 441 |
+
117
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 4
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "Models of natural language using neural networks have proved to outperform the more traditional statistical models that were limited by the Markov assumption (Bengio et al., 2003; Goodman, 2001). One explanation could be that the compact representation of words through word embeddings is robust (Mikolov et al., 2011) and do not need any smoothing over probabilities. Among the neural models, the recurrent-based models allows for short-term memory inspired by how humans read sentences: past context is essential to understand the meaning of written language. Contrary to shallow feedforward networks, that can only cluster similar words, recurrent networks (which can be viewed as a deep architecture (Bengio & LeCun, 2007)) can cluster similar histories. Recurrent neural networks have a temporal awareness represented by the hidden state that can be seen as an embedding of the past words. For example in Sutskever et al. (2014) a quality translation of a sentence was made possible with the last output of a recurrent neural network. ",
|
| 448 |
+
"bbox": [
|
| 449 |
+
174,
|
| 450 |
+
132,
|
| 451 |
+
825,
|
| 452 |
+
285
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 4
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "In our setting, for a given Tumblr post, the text is broken down into a sequence of words that are embedded into a high-dimensional space (unknown words are mapped to the zero vector) and then fed into an LSTM (Hochreiter & Schmidhuber, 1997). To account for shorter posts, we zero-pad the vector with a special word token. For longer posts, we only keep the 50 first words which is a reasonable choice as $76 \\%$ posts in the dataset contain less than 50 words. ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
174,
|
| 461 |
+
292,
|
| 462 |
+
825,
|
| 463 |
+
362
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 4
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "4.3 DEEP SENTIMENT: A MULTIMODAL NEURAL NETWORK ",
|
| 470 |
+
"text_level": 1,
|
| 471 |
+
"bbox": [
|
| 472 |
+
178,
|
| 473 |
+
392,
|
| 474 |
+
593,
|
| 475 |
+
405
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 4
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "Information often comes in several modalities, and humans are able to seamlessly combine them. For instance, in speech recognition, humans integrate audio and visual information to understand speech, as was demonstrated by the McGurk effect (McGurk & MacDonald, 1976). Separating what we see from what we hear seems like an easy task, but in an experiment conducted by McGurk, the subjects who were listening to a /ba/ sound with a visual /ga/ actually reported they were hearing a /da/. This is uncanny as even if we know the actual sound is a /ba/, we cannot stop our brain from interpreting it as a /da/. ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
421,
|
| 485 |
+
825,
|
| 486 |
+
520
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 4
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "In Figure 2 we gave an example of text being necessary to fully understand the emotion expressed by an image. Sometimes alternative text would lead to entirely different interpretations, as shown in Figure 3: ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
174,
|
| 495 |
+
526,
|
| 496 |
+
825,
|
| 497 |
+
568
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 4
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "image",
|
| 503 |
+
"img_path": "images/c808eb7e74da63c374d25a1e9fb8d3e407bed32da7ddd033dd104b0218349fc6.jpg",
|
| 504 |
+
"image_caption": [
|
| 505 |
+
"(b) Angry: “I hate it when people are taking too much space on planes.” "
|
| 506 |
+
],
|
| 507 |
+
"image_footnote": [],
|
| 508 |
+
"bbox": [
|
| 509 |
+
575,
|
| 510 |
+
594,
|
| 511 |
+
732,
|
| 512 |
+
717
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "(a) Scared: “Planes might just be the most frightening thing ever.” ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
173,
|
| 521 |
+
722,
|
| 522 |
+
486,
|
| 523 |
+
747
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "image",
|
| 529 |
+
"img_path": "images/2883935d1c4a45e0ab6f07c351abdc70bb1a1f6a3615201000b0c109e88df7d6.jpg",
|
| 530 |
+
"image_caption": [
|
| 531 |
+
"Figure 3: Different meanings with different captions. "
|
| 532 |
+
],
|
| 533 |
+
"image_footnote": [],
|
| 534 |
+
"bbox": [
|
| 535 |
+
253,
|
| 536 |
+
594,
|
| 537 |
+
408,
|
| 538 |
+
717
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "Exploiting both visual and textual information is therefore key to understanding a user’s underlying emotional state. We call our proposed network architecture, combining visual recognition and text analysis, “Deep Sentiment”. ",
|
| 545 |
+
"bbox": [
|
| 546 |
+
174,
|
| 547 |
+
810,
|
| 548 |
+
825,
|
| 549 |
+
853
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 4
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "text",
|
| 555 |
+
"text": "4.3.1 ARCHITECTURE ",
|
| 556 |
+
"text_level": 1,
|
| 557 |
+
"bbox": [
|
| 558 |
+
176,
|
| 559 |
+
880,
|
| 560 |
+
339,
|
| 561 |
+
893
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 4
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "Deep Sentiment’s architecture is shown in Figure 4: ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
174,
|
| 570 |
+
909,
|
| 571 |
+
513,
|
| 572 |
+
924
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "image",
|
| 578 |
+
"img_path": "images/746371da56165b060b1870fbd69a0eb99eff70669923b25a338ce80d5cad1671.jpg",
|
| 579 |
+
"image_caption": [
|
| 580 |
+
"Figure 4: The Deep Sentiment structure. On the one hand, the input image, resized to (224,224,3) is fed into the Inception network and outputs a vector of size 256. On the other hand, the text is projected into a high-dimensional space that subsequently goes through an LSTM layer with 1024 units. The two modalities are then concatenated and fed into a dense layer. The final softmax output layer give the probability distribution over the emotional state of the user. "
|
| 581 |
+
],
|
| 582 |
+
"image_footnote": [],
|
| 583 |
+
"bbox": [
|
| 584 |
+
246,
|
| 585 |
+
117,
|
| 586 |
+
723,
|
| 587 |
+
369
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 5
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "5 EVALUATION ",
|
| 594 |
+
"text_level": 1,
|
| 595 |
+
"bbox": [
|
| 596 |
+
176,
|
| 597 |
+
503,
|
| 598 |
+
315,
|
| 599 |
+
520
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 5
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "In Table 2, we compare Deep Sentiment with the image model (Inception model fine-tuned through the last Inception module), the text model, and a baseline: random guessing that includes the prior probabilities of the classes. Figure 5 shows a comparison of the accuracy curves of the different models. ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
174,
|
| 608 |
+
535,
|
| 609 |
+
826,
|
| 610 |
+
592
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 5
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "table",
|
| 616 |
+
"img_path": "images/7b8c0cd33837ecaa88d2511e7191dd09f0b06acb8612d0c416669fbbe7cfa725.jpg",
|
| 617 |
+
"table_caption": [
|
| 618 |
+
"Table 2: Comparison of image model, text model and Deep Sentiment. "
|
| 619 |
+
],
|
| 620 |
+
"table_footnote": [],
|
| 621 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Loss</td><td rowspan=1 colspan=1>Trainaccuracy</td><td rowspan=1 colspan=1>Testaccuracy</td></tr><tr><td rowspan=1 colspan=1>Random guessing</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>11%</td><td rowspan=1 colspan=1>11%</td></tr><tr><td rowspan=1 colspan=1>Image model</td><td rowspan=1 colspan=1>1.80</td><td rowspan=1 colspan=1>43%</td><td rowspan=1 colspan=1>36%</td></tr><tr><td rowspan=1 colspan=1>Text model</td><td rowspan=1 colspan=1>0.81</td><td rowspan=1 colspan=1>72%</td><td rowspan=1 colspan=1>69%</td></tr><tr><td rowspan=1 colspan=1>Deep Sentiment</td><td rowspan=1 colspan=1>0.75</td><td rowspan=1 colspan=1>80%</td><td rowspan=1 colspan=1>72%</td></tr></table>",
|
| 622 |
+
"bbox": [
|
| 623 |
+
316,
|
| 624 |
+
635,
|
| 625 |
+
679,
|
| 626 |
+
724
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "image",
|
| 632 |
+
"img_path": "images/5609ae3b910aab3e30daac14bdd3385ebafe55e2ef734bc5bd287f9cd140ac97.jpg",
|
| 633 |
+
"image_caption": [
|
| 634 |
+
"Figure 5: Accuracy comparison of the three models "
|
| 635 |
+
],
|
| 636 |
+
"image_footnote": [],
|
| 637 |
+
"bbox": [
|
| 638 |
+
176,
|
| 639 |
+
758,
|
| 640 |
+
825,
|
| 641 |
+
895
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 5
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "Using text alone, the test accuracy is $69 \\%$ , almost double the accuracy of the image model, this suggests that on Tumblr, text is a better predictor of emotion than images, as we illustrated in Figure 2. By combining text and images Deep Sentiment achieves $80 \\%$ train accuracy and $72 \\%$ test accuracy, significantly outperforming the images-only model and slightly outperforming the text-only model (note that no validation set was used to tune hyperparameters, even though various architectures were tried before yielding Deep Sentiment). ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
103,
|
| 651 |
+
823,
|
| 652 |
+
188
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "6 RESULTS ",
|
| 659 |
+
"text_level": 1,
|
| 660 |
+
"bbox": [
|
| 661 |
+
174,
|
| 662 |
+
214,
|
| 663 |
+
281,
|
| 664 |
+
229
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 6
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "In this section, we carefully investigate what psychologically meaningful results we can draw from our model, and whether they match previous results in the psychology literature. ",
|
| 671 |
+
"bbox": [
|
| 672 |
+
174,
|
| 673 |
+
250,
|
| 674 |
+
823,
|
| 675 |
+
279
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 6
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "6.1 TOP WORDS FOR EACH EMOTION ",
|
| 682 |
+
"text_level": 1,
|
| 683 |
+
"bbox": [
|
| 684 |
+
176,
|
| 685 |
+
303,
|
| 686 |
+
442,
|
| 687 |
+
315
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 6
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "We investigated which words were the most relevant for each emotion as follows: we created artificial posts whose text consisted of a single word (each of the most frequent 1,000 words in the whole dataset were tested) accompanied by an image that was the mean image (per channel mean). For each emotion, we report the 10 highest scoring words from these 1,000 artificial posts in Table 3 (words 11-20 for each emotion are in Appendix B). ",
|
| 694 |
+
"bbox": [
|
| 695 |
+
174,
|
| 696 |
+
330,
|
| 697 |
+
825,
|
| 698 |
+
400
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 6
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "table",
|
| 704 |
+
"img_path": "images/c2723457cf772138909699c54c0168af01931ebebc2cb6a8b19bc031cc47dc4e.jpg",
|
| 705 |
+
"table_caption": [
|
| 706 |
+
"Table 3: Top 10 words for each emotion, ordered by the relative frequency of the emotion being used as a tag on Tumblr "
|
| 707 |
+
],
|
| 708 |
+
"table_footnote": [],
|
| 709 |
+
"table_body": "<table><tr><td>Emotion Happy</td><td>Top words</td></tr><tr><td>Calm Sad Scared Bored Angry Annoyed Love Excited Surprised Optimistic Amazed Ashamed Disgusted Pensive</td><td>healthy, loving,enjoy, wonderful, warm, happiness,smile, lovely, cute,proud quiet, situation, peace, mood, towards, warm, slowly, stay, sleep, rain horrible,sorry,crying,hurts, tears,cried,lonely,memories,worst, pain terrified, scary, panic, nervous,fear,afraid,horrible,woke,happening,worried asleep, tired,kinda,busy, stuck,constantly, lonely, sat, listening,depression anger, fear, panic,annoying,hate,mad, upset, anxiety, scares,stupid pissed, ashamed, angry, nervous,speak, surprised, tired, worried, ignore, phone soul,dreams,happiness,kiss,sex,beauty,women, feelings,god,relationships tonight, hopefully, watching, nervous, surprised, expect, tomorrow, amazing, hoping, happen birthday, cried, thank, yesterday, told, sorry,amazing, sweet, friend, message positive, expect, surprised, healthy, grow, realize, clearly, hopefully, calm, peace surprised, excited,amazing,woke,realized,awesome, happening,ashamed, yeah, happened totally, honestly, sorry,absolutely, freaking, honest,completely,stupid, seriously,am ashamed, totally,angry,hate,stupid,annoyed,horrible,scares,freaking,absolutely mood,wrote,quiet, view, sadness, thoughts,calm,words,sad,kissed</td></tr></table>",
|
| 710 |
+
"bbox": [
|
| 711 |
+
173,
|
| 712 |
+
468,
|
| 713 |
+
885,
|
| 714 |
+
693
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 6
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "An inspection of each of the words suggests that none are out of place, with the possible exception of “ashamed” in the list of Amazed words. (This may be due to the fact that the tag Amazed is sometimes used ironically.) Further, our data-driven approach suggests that our methods could be used as an alternative to the word list-based approaches to sentiment analysis common in psychology. The most widely used tool, Linguistic Inquiry Word Count (LIWC), (Pennebaker et al., 2007), consists of dozens of English words which were compiled by hand into psychologically meaningful categories such as “Health/illness” or “Anxiety” and used in a large number of psychology studies (Tausczik & Pennebaker, 2010). Not only does our approach automatically give sensible word lists, it contains modern words, common in social media usage, like “woke” (first attested in its modern meaning in 1962 according to the Oxford English Dictionary which defines it as “alert to racial or social discrimination and injustice”) and “phone.” Woke appears in the top 10 of “Scared” and “Amazed” and in the top 20 of “Calm” (Appendix B), an interesting finding in its own right. By contrast, both woke and phone appear in LIWC, but not in any of LIWC’s emotion word categories, only in a list of verbs and a list of social words, respectively. ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
173,
|
| 723 |
+
729,
|
| 724 |
+
825,
|
| 725 |
+
924
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 6
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "6.2 CLUSTERING EMOTIONS ",
|
| 732 |
+
"text_level": 1,
|
| 733 |
+
"bbox": [
|
| 734 |
+
174,
|
| 735 |
+
103,
|
| 736 |
+
383,
|
| 737 |
+
117
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 7
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "Psychologists have long studied the structure of emotion, and debated whether there are a small number of “core” emotions (Ekman, 1992), two dominant factors (see Tellegen et al. (1999) for a discussion of various theories), or more complex models (e.g. Lindquist et al. (2013) critiques previous models and argues that emotions do not belong in natural categories or along multiple dimensions, because they are the “constructions” of the human mind, and the result of complex perceptions). Classical attempts by psychologists to answer this question have relied on survey data in which respondents can self-report more than one emotion, followed by clustering or factor analysis approaches. More recently, psychologists have turned to neuroscience to address these questions. ",
|
| 744 |
+
"bbox": [
|
| 745 |
+
174,
|
| 746 |
+
137,
|
| 747 |
+
825,
|
| 748 |
+
262
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 7
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "While we collected a dataset in which each Tumblr post was labeled with a single emotion tag, we can nevertheless directly address this question using our trained model. Given an image $\\mathcal { T }$ and text $\\tau$ from our dataset, we can compute the conditional probabilities of the emotion classes: ${ \\hat { y } } | \\mathcal { T } , \\mathcal { T }$ where $\\hat { y }$ is a probability vector in the 15-dimensional simplex. To calculate our model’s predicted empirical distribution over $\\hat { y }$ we predict $\\hat { y }$ for all posts in our dataset: $( \\hat { y } _ { i } | \\mathcal { T } _ { i } , \\mathcal { T } _ { i } ) _ { i = 1 } ^ { n }$ . Finally, we calculate the empirical correlation matrix of ${ \\hat { y } } _ { 1 } , \\dots , { \\hat { y } } _ { n }$ , which we include in the Appendix in Figure 9. For ease of visualization, we convert the correlation matrix to a distance matrix and perform hierarchical clustering as shown in Figure 6. ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
173,
|
| 757 |
+
270,
|
| 758 |
+
825,
|
| 759 |
+
382
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 7
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "image",
|
| 765 |
+
"img_path": "images/924e65d4b83c2df35442ad641abba4834abf1fe3a876de70cdee8cef5b19f97c.jpg",
|
| 766 |
+
"image_caption": [
|
| 767 |
+
"Figure 6: Hierarchical clustering of the emotion correlation matrix. "
|
| 768 |
+
],
|
| 769 |
+
"image_footnote": [],
|
| 770 |
+
"bbox": [
|
| 771 |
+
235,
|
| 772 |
+
430,
|
| 773 |
+
767,
|
| 774 |
+
601
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 7
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "Similar to almost all previous psychology studies, there is a clear distinction between emotions that are positive in nature, such as excited, happy, and love and emotions that are negative such as angry, ashamed, annoyed, and disgusted. Another finding consistent with much previous literature, which we investigate more below, is that within both positive and negative emotions, there is a distinction between low arousal emotions and high arousal emotions. Bored and sad (low arousal) are in one cluster, while high arousal emotions—angry, ashamed, annoyed, disgusted—are in another. ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
174,
|
| 783 |
+
684,
|
| 784 |
+
825,
|
| 785 |
+
768
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 7
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "6.3 THE CIRCUMPLEX MODEL OF EMOTION ",
|
| 792 |
+
"text_level": 1,
|
| 793 |
+
"bbox": [
|
| 794 |
+
176,
|
| 795 |
+
806,
|
| 796 |
+
486,
|
| 797 |
+
819
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 7
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "The circumplex model (Posner et al., 2005) posits two dimensions which explain emotions, usually valence (positive vs. negative) and arousal (low vs. high), though other dimensions have been suggested. We investigated whether two factors explained most of the variance in our results using principal component analysis (PCA). As shown in the scree plot in the Appendix in Figure 12, while the first component explains $2 8 . 8 \\%$ of the variance, dimensions 2 and 3 explain $1 6 . 4 \\%$ and $1 4 . 6 \\%$ respectively, evidence against a simple two factor model. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
839,
|
| 807 |
+
825,
|
| 808 |
+
922
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "image",
|
| 814 |
+
"img_path": "images/d731da54e9bae88f2cb211b43257117f278a8340323013b78fca6e4b896532bd.jpg",
|
| 815 |
+
"image_caption": [],
|
| 816 |
+
"image_footnote": [],
|
| 817 |
+
"bbox": [
|
| 818 |
+
178,
|
| 819 |
+
111,
|
| 820 |
+
500,
|
| 821 |
+
222
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 8
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"text": "(a) PCA with a random subset of posts, 150 for each emotion. ",
|
| 828 |
+
"bbox": [
|
| 829 |
+
173,
|
| 830 |
+
232,
|
| 831 |
+
500,
|
| 832 |
+
257
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 8
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "image",
|
| 838 |
+
"img_path": "images/18242f21bc0ce11bf77b4044cc681343fc4ce23a52e4cdc351a2d18fac8e0e1f.jpg",
|
| 839 |
+
"image_caption": [
|
| 840 |
+
"Figure 7: Affect/valence "
|
| 841 |
+
],
|
| 842 |
+
"image_footnote": [],
|
| 843 |
+
"bbox": [
|
| 844 |
+
522,
|
| 845 |
+
102,
|
| 846 |
+
799,
|
| 847 |
+
301
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 8
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "We visualize the results of PCA in Figure 7. At left, a random subset of posts, where for visualization purpose we sampled equally from each emotion class, are shown along the first two principal components, and each is colored by the most probable predicted emotion. This shows that within any particular emotion category there is much variation along these two dimensions, i.e. they do not cluster very tightly. Related emotions like happy and love are close together, as they were in the dendrogram. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
385,
|
| 857 |
+
825,
|
| 858 |
+
468
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 8
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "At right, we visualise the projection of the emotion variables onto the first two principal components. Using this figure, we conclude that the first principal component corresponds well to valence, as it neatly separates happy/love from disgusted/ashamed/annoyed. However, the second principal component is not clearly arousal. In the Appendix, we consider the third principal component as well, but the picture is no clearer. Once again, this provides evidence against a simple two factor model of emotion. Below, we further investigate the valence/arousal model. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
174,
|
| 867 |
+
476,
|
| 868 |
+
825,
|
| 869 |
+
559
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 8
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "6.4 VALIDATION ON THE OPEN AFFECTIVE STANDARDIZED IMAGE SET (OASIS) ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
173,
|
| 878 |
+
612,
|
| 879 |
+
750,
|
| 880 |
+
626
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 8
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "The Open Affective Standardized Image Set (OASIS) dataset (Kurdi et al., 2017) was developed as an alternative to the International Affective Picture System ((Lang, 2005)), a set of emotional stimuli which has been used in many psychology studies. OASIS consists of 900 color images which were rated by human judges on MTurk along the valence and arousal scales discussed above. OASIS images come in classes with labels such as “Alcohol”, “Flowers”, or “Pigeon.” We applied our Deep Sentiment model to these images, treating the single-word label as the input text. After making predictions, we projected them onto the principal components discussed above. ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
174,
|
| 889 |
+
651,
|
| 890 |
+
825,
|
| 891 |
+
750
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 8
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "In Table 4 we calculated the correlations between the first three principal components from our model and the mean valence and arousal variables from OASIS. The high correlation between the first principal component (PC1) and the valence variable provides evidence, as in the previous section, that PC1 is capturing a dimension of emotion separating positive from negative. It is also interesting to note the low correlation between PC1 and arousal. By contrast, while PC2 and PC3 are correlated with arousal, the correlations are not very high, and they are also correlated with valence. On the one hand, this is more evidence against there being two factors explaining emotions. On the other hand, asking judges to rate a set of images based on arousal and valence is more similar to the standard sentiment analysis task of predicting whether a sentence expresses positive or negative emotion. By contrast, our dataset comes from a set of images which were chosen by users who also decided to select emotion word tags to accompany them. We consider this to thus be a dataset of richer emotional content, and by design it represents a richer set of emotions. ",
|
| 898 |
+
"bbox": [
|
| 899 |
+
174,
|
| 900 |
+
757,
|
| 901 |
+
825,
|
| 902 |
+
924
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 8
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "table",
|
| 908 |
+
"img_path": "images/15023180078a1343a18edd83a70be9a2d868c61fd703bf38423f3b8e5738c51a.jpg",
|
| 909 |
+
"table_caption": [
|
| 910 |
+
"Table 4: Correlation between OASIS arousal/valence and principal components "
|
| 911 |
+
],
|
| 912 |
+
"table_footnote": [],
|
| 913 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>OASISvalence</td><td rowspan=1 colspan=1>OASISarousal</td></tr><tr><td rowspan=1 colspan=1>PC1</td><td rowspan=1 colspan=1>58%</td><td rowspan=1 colspan=1>3%</td></tr><tr><td rowspan=1 colspan=1>PC2</td><td rowspan=1 colspan=1>17%</td><td rowspan=1 colspan=1>22%</td></tr><tr><td rowspan=1 colspan=1>PC3</td><td rowspan=1 colspan=1>30%</td><td rowspan=1 colspan=1>11%</td></tr></table>",
|
| 914 |
+
"bbox": [
|
| 915 |
+
400,
|
| 916 |
+
132,
|
| 917 |
+
596,
|
| 918 |
+
207
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 9
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "7 CONCLUSION ",
|
| 925 |
+
"text_level": 1,
|
| 926 |
+
"bbox": [
|
| 927 |
+
176,
|
| 928 |
+
238,
|
| 929 |
+
318,
|
| 930 |
+
253
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 9
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "We developed a novel multimodal sentiment analysis method using deep learning methods. Our goal was to investigate a core area of psychology, the study of emotion, using a large and novel social media dataset. Our approach provides new tools for the joint study of images and text on social media. This is important as social science researchers have begun to uncover the important role that images play on social media. As our dataset consisted of text, images, and emotion word tags, we considered it to be a form of “self-reported” data, which is the gold standard in emotion. However, it could also be considered to be an unobtrusive behavioral measure, and thus not subject to the biases inherent in laboratory studies. But because the data comes from public social media posts, we cannot rule out various sources of bias. What people choose to post—and not to post—on social media is influenced by how they want to present themselves (Wojnicki & Godes, 2008), so our study is limited insofar as it covers emotion not necessarily as it is truly experienced but rather as it is expressed or performed online. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
173,
|
| 939 |
+
270,
|
| 940 |
+
825,
|
| 941 |
+
435
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 9
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "In the future, we will evaluate our model on other image / text stimuli datasets that have been developed for psychological studies and investigate whether human judges are more or less accurate than our model. Finally, we will investigate other psychological components of the structure of emotion, for example daily and day of week trends in emotion. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
174,
|
| 950 |
+
444,
|
| 951 |
+
825,
|
| 952 |
+
500
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 9
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "REFERENCES ",
|
| 959 |
+
"text_level": 1,
|
| 960 |
+
"bbox": [
|
| 961 |
+
174,
|
| 962 |
+
520,
|
| 963 |
+
285,
|
| 964 |
+
535
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 9
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "Yoshua Bengio and Yann LeCun. Scaling learning algorithms towards AI. In Large Scale Kernel Machines. MIT Press, 2007. \nYoshua Bengio, Rejean Ducharme, and Pascal Vincent. A neural probabilistic language model. Journal of Machine Learning Research, 3:1137–1155, 2003. \nJohan Bollen, Huina Mao, and Xiao-Jun Zeng. Twitter mood predicts the stock market. Journal of Computational Science, 2:1–8, 2011. \nDamian Borth, Tao Chen, Rong-Rong Ji, and Shih-Fu Chang. Sentibank: Large-scale ontology and classifiers for detecting sentiment and emotions in visual content. In ACM, 2013. \nTao Chen, Hany Salaheldeen, Xiangnan He, Min-Yen Kan, and Dongyuan Lu. Relating an image tweet’s text and images. In AAAI, 2015. \nPaul Ekman. An argument for basic emotions. Cognition & emotion, 6(3-4):169–200, 1992. \nSeth Flaxman and Karim Kassam. On #agony and #ecstasy: Potential and pitfalls of linguistic sentiment analysis. In preparation, 2016. \nDaniel Todd Gilbert. Stumbling On Happiness. A.A. Knopf, New York, 2006. \nScott A Golder and Michael W Macy. Diurnal and seasonal mood vary with work, sleep, and daylength across diverse cultures. Science, 333(6051):1878–1881, 2011. \nYunchao Gong, Qifa Ke, Michael Isard, and Svetlana Lazebnik. A multi-view embedding space for modeling internet images, tags, and their semantics. International Journal of Computer Vision, 2014. \nJoshua Goodman. A bit of progress in language modeling. Computer Speech and Language, 15: 403–434, 2001. ",
|
| 971 |
+
"bbox": [
|
| 972 |
+
171,
|
| 973 |
+
542,
|
| 974 |
+
828,
|
| 975 |
+
928
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 9
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "Matthieu Guillaumin, Jakob Verbeek, and Cordelia Schmid. Multimodal semi-supervised learning for image classification. In CVPR, 2010. ",
|
| 982 |
+
"bbox": [
|
| 983 |
+
171,
|
| 984 |
+
103,
|
| 985 |
+
825,
|
| 986 |
+
132
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 10
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. In Neural Computation, 1997. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
173,
|
| 995 |
+
141,
|
| 996 |
+
825,
|
| 997 |
+
157
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 10
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "Dhiraj Joshi, Ritendra Datta, Elena Fedorovskaya, Quang-Tuan Luong, J.Z. Wang, Jia Li, and Jiebo Luo. Aesthetics and emotions in images. 28:94–115, 2011. ",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
171,
|
| 1006 |
+
166,
|
| 1007 |
+
823,
|
| 1008 |
+
195
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 10
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "Marie Katsurai and Shin’ichi Satoh. Image sentiment analysis using latent correlations among visual, textual, and sentiment views. In ICASSP, 2016. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
173,
|
| 1017 |
+
204,
|
| 1018 |
+
823,
|
| 1019 |
+
233
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 10
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "Benedek Kurdi, Shayn Lozano, and Mahzarin R Banaji. Introducing the open affective standardized image set (oasis). Behavior research methods, 49(2):457–470, 2017. ",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
171,
|
| 1028 |
+
242,
|
| 1029 |
+
825,
|
| 1030 |
+
271
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 10
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "Peter J Lang. International affective picture system (iaps): Affective ratings of pictures and instruction manual. Technical report, 2005. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
173,
|
| 1039 |
+
280,
|
| 1040 |
+
823,
|
| 1041 |
+
309
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 10
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "Kristen A Lindquist, Erika H Siegel, Karen S Quigley, and Lisa Feldman Barrett. The hundredyear emotion war: are emotions natural kinds or psychological constructions? comment on lench, flores, and bench (2011). 2013. ",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
174,
|
| 1050 |
+
318,
|
| 1051 |
+
825,
|
| 1052 |
+
361
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 10
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "Harry McGurk and John MacDonald. Hearing lips and seeing voices. In Nature, 1976. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
173,
|
| 1061 |
+
369,
|
| 1062 |
+
743,
|
| 1063 |
+
386
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 10
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "Tomas Mikolov, Stefan Kombrink, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. Extensions of recurrent neural network language model. In International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2011. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
174,
|
| 1072 |
+
395,
|
| 1073 |
+
825,
|
| 1074 |
+
438
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 10
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "Daniel Miller and Jolynna Sinanan. Visualising facebook. 2017. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
173,
|
| 1083 |
+
446,
|
| 1084 |
+
598,
|
| 1085 |
+
463
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 10
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "Krikamol Muandet, Kenji Fukumizu, Bharath Sriperumbudur, Bernhard Scholkopf, et al. Kernel ¨ mean embedding of distributions: A review and beyond. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Machine Learning, 10(1-2):1–141, 2017. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
174,
|
| 1094 |
+
470,
|
| 1095 |
+
825,
|
| 1096 |
+
513
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 10
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "Alexander Pak and Patrick Paroubek. Twitter as a corpus for sentiment analysis and opinion mining. In LREc, volume 10, 2010. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
173,
|
| 1105 |
+
523,
|
| 1106 |
+
821,
|
| 1107 |
+
553
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 10
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "James W. Pennebaker, Roger J. Booth, and Martha E. Francis. Linguistic inquiry and word count: Liwc2007. In Operators manual, 2007. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
174,
|
| 1116 |
+
561,
|
| 1117 |
+
823,
|
| 1118 |
+
590
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 10
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global vectors for word representation. In Empirical Methods in Natural Language Processing (EMNLP), 2014. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
173,
|
| 1127 |
+
599,
|
| 1128 |
+
825,
|
| 1129 |
+
628
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 10
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Robert Plutchik. The nature of emotions. 89:344, 2001. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
173,
|
| 1138 |
+
637,
|
| 1139 |
+
540,
|
| 1140 |
+
654
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 10
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "Jonathan Posner, James A Russell, and Bradley S Peterson. The circumplex model of affect: An integrative approach to affective neuroscience, cognitive development, and psychopathology. Development and psychopathology, 17(3):715–734, 2005. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
173,
|
| 1149 |
+
662,
|
| 1150 |
+
825,
|
| 1151 |
+
705
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 10
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
169,
|
| 1160 |
+
714,
|
| 1161 |
+
823,
|
| 1162 |
+
743
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 10
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "Sara Rosenthal, Noura Farra, and Preslav Nakov. Semeval-2017 task 4: Sentiment analysis in twitter. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pp. 502–518, 2017. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
752,
|
| 1172 |
+
823,
|
| 1173 |
+
795
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 10
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li FeiFei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 115:211–252, 2015. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
174,
|
| 1182 |
+
804,
|
| 1183 |
+
825,
|
| 1184 |
+
861
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 10
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Limor Shifman. Memes in digital culture. Mit Press, 2014. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
173,
|
| 1193 |
+
871,
|
| 1194 |
+
562,
|
| 1195 |
+
886
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 10
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In NIPS, 2014. ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
173,
|
| 1204 |
+
895,
|
| 1205 |
+
825,
|
| 1206 |
+
924
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 10
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015. ",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
176,
|
| 1215 |
+
103,
|
| 1216 |
+
823,
|
| 1217 |
+
146
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 11
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "Yla R Tausczik and James W Pennebaker. The psychological meaning of words: Liwc and computerized text analysis methods. Journal of Language and Social Psychology, 29(1):24–54, 2010. ",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
173,
|
| 1226 |
+
155,
|
| 1227 |
+
821,
|
| 1228 |
+
184
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 11
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "Auke Tellegen, David Watson, and Lee Anna Clark. On the dimensional and hierarchical structure of affect. Psychological Science, 10(4):297–303, 1999. ",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
171,
|
| 1237 |
+
193,
|
| 1238 |
+
823,
|
| 1239 |
+
222
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 11
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Yilin Wang, Suhang Wang, Jiliang Tang, Huan Liu, and Baoxin Li. Unsupervised sentiment analysis for social media images. In IJCAI, 2015. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
173,
|
| 1248 |
+
229,
|
| 1249 |
+
823,
|
| 1250 |
+
258
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 11
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "David Watson and Lee Anna Clark. The panas-x: Manual for the positive and negative affect schedule - expanded form. 1999. ",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
171,
|
| 1259 |
+
267,
|
| 1260 |
+
825,
|
| 1261 |
+
296
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 11
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "Andrea C Wojnicki and David Godes. Word-of-mouth as self-enhancement. 2008. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
173,
|
| 1270 |
+
306,
|
| 1271 |
+
715,
|
| 1272 |
+
321
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 11
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Quanzeng You, Jiebo Luo, Hailin Jin, and Jianchao Yang. Robust image sentiment analysis using progressively trained and domain transferred deep networks. In AAAI, 2015. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
171,
|
| 1281 |
+
330,
|
| 1282 |
+
823,
|
| 1283 |
+
358
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 11
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "A MORE EXAMPLES OF TUMBLR POSTS ",
|
| 1290 |
+
"text_level": 1,
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
176,
|
| 1293 |
+
102,
|
| 1294 |
+
521,
|
| 1295 |
+
118
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 12
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "image",
|
| 1301 |
+
"img_path": "images/3be71e9c13a9b938b3f17c9fbacdacdba14c20f782673c48cba82826a61b4206.jpg",
|
| 1302 |
+
"image_caption": [],
|
| 1303 |
+
"image_footnote": [],
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
218,
|
| 1306 |
+
185,
|
| 1307 |
+
442,
|
| 1308 |
+
299
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 12
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "image",
|
| 1314 |
+
"img_path": "images/7b2ebb6c643fa85093983473161ca421c97afec4b309fb25e96ccd5485af9ff1.jpg",
|
| 1315 |
+
"image_caption": [
|
| 1316 |
+
"(b) Disgusted: “Me when I see a couple expressing their affection in physical ways in public” "
|
| 1317 |
+
],
|
| 1318 |
+
"image_footnote": [],
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
521,
|
| 1321 |
+
185,
|
| 1322 |
+
784,
|
| 1323 |
+
299
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 12
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "image",
|
| 1329 |
+
"img_path": "images/cb64c199db9e486f75b47e9835ea9310876399db9255dcb06d72ab4a70800ff5.jpg",
|
| 1330 |
+
"image_caption": [
|
| 1331 |
+
"(a) Happy: “Just relax with this amazing view #bigsur #california #roadtrip #usa #life #fitness (at McWay Falls)” "
|
| 1332 |
+
],
|
| 1333 |
+
"image_footnote": [],
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
274,
|
| 1336 |
+
345,
|
| 1337 |
+
387,
|
| 1338 |
+
460
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 12
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "image",
|
| 1344 |
+
"img_path": "images/ae2e9a868b2b2ca7f281006e507b76d1ba612a38c22246ab06c6e480a414f0f8.jpg",
|
| 1345 |
+
"image_caption": [],
|
| 1346 |
+
"image_footnote": [],
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
560,
|
| 1349 |
+
345,
|
| 1350 |
+
746,
|
| 1351 |
+
460
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 12
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"text": "(c) Angry: “Tensions were high this Caturday...” ",
|
| 1358 |
+
"bbox": [
|
| 1359 |
+
187,
|
| 1360 |
+
467,
|
| 1361 |
+
473,
|
| 1362 |
+
479
|
| 1363 |
+
],
|
| 1364 |
+
"page_idx": 12
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "text",
|
| 1368 |
+
"text": "(d) Surprised: “Which Tea? Peppermint tea: What is your favorite gif right now?” ",
|
| 1369 |
+
"bbox": [
|
| 1370 |
+
496,
|
| 1371 |
+
467,
|
| 1372 |
+
812,
|
| 1373 |
+
492
|
| 1374 |
+
],
|
| 1375 |
+
"page_idx": 12
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "text",
|
| 1379 |
+
"text": "Figure 8: Tumblr posts ",
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
421,
|
| 1382 |
+
503,
|
| 1383 |
+
575,
|
| 1384 |
+
518
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 12
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"text": "B FURTHER RESULTS ",
|
| 1391 |
+
"bbox": [
|
| 1392 |
+
174,
|
| 1393 |
+
574,
|
| 1394 |
+
366,
|
| 1395 |
+
590
|
| 1396 |
+
],
|
| 1397 |
+
"page_idx": 12
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"type": "table",
|
| 1401 |
+
"img_path": "images/8f783e517efcaf293b9a29cace54a492c3734c7e647229472937becf13877924.jpg",
|
| 1402 |
+
"table_caption": [
|
| 1403 |
+
"Table 5: Top 11-20 words for each emotion "
|
| 1404 |
+
],
|
| 1405 |
+
"table_footnote": [],
|
| 1406 |
+
"table_body": "<table><tr><td>Emotion Happy</td><td>Top words</td></tr><tr><td>Calm Sad Scared Bored Angry Annoyed Love Excited Surprised Optimistic Amazed</td><td>beautiful, beauty, fun, nice, dinner, sweet, good,loves,amazing, comfortable view, sound, cool, continue, visit, push, woke, morning, safe, step cry, sick, hurt, dead,feeling,worse,death,upset, falling, panic kill, happened, cause,asleep,anxiety, worry, hurt, happen, worst, seriously sitting, suddenly, freaking, slowly,annoying, sometimes, gotten, completely, older, cold hurt, face,against, cause,hurts, fucking, fight, pain, strong,worst depressed,lately,conversation,constantly, scared,stupid, scares, bored,heard, extremely sweet, mother, forget, hate, her, song,enjoy, sister, wonderful, dear 2017, positive,am, definitely,awesome,happens, listening, happy, grow, wanna annoyed, negative,apparently,u, minute,asked, sadness, happened, moments, laugh view,yet, believe, tomorrow,trending,said,situation,mood,forward, future im,quite,appreciate, honestly, knew,learned, yang, felt, liked, asleep</td></tr></table>",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
174,
|
| 1409 |
+
690,
|
| 1410 |
+
862,
|
| 1411 |
+
915
|
| 1412 |
+
],
|
| 1413 |
+
"page_idx": 12
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"type": "image",
|
| 1417 |
+
"img_path": "images/b4e43cfc0aa3792084ff8fdb829f547d0b5096d5fce32c8a9626e804caa93b74.jpg",
|
| 1418 |
+
"image_caption": [
|
| 1419 |
+
"Figure 9: Heatmap of the emotion correlation matrix "
|
| 1420 |
+
],
|
| 1421 |
+
"image_footnote": [],
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
308,
|
| 1424 |
+
133,
|
| 1425 |
+
648,
|
| 1426 |
+
400
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 13
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "image",
|
| 1432 |
+
"img_path": "images/6fec305ae9bfa3f884a5285c5cec49e05dc05d79f11d2c23e4b3099491d393b5.jpg",
|
| 1433 |
+
"image_caption": [],
|
| 1434 |
+
"image_footnote": [],
|
| 1435 |
+
"bbox": [
|
| 1436 |
+
178,
|
| 1437 |
+
702,
|
| 1438 |
+
500,
|
| 1439 |
+
814
|
| 1440 |
+
],
|
| 1441 |
+
"page_idx": 13
|
| 1442 |
+
},
|
| 1443 |
+
{
|
| 1444 |
+
"type": "text",
|
| 1445 |
+
"text": "(a) PCA with a random subset of posts, 150 for each emotion ",
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
171,
|
| 1448 |
+
821,
|
| 1449 |
+
501,
|
| 1450 |
+
847
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 13
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "image",
|
| 1456 |
+
"img_path": "images/b3331d098cb894d6a4491e16a8bd123de5d177c57d63f175aeae6cd97f9883f6.jpg",
|
| 1457 |
+
"image_caption": [
|
| 1458 |
+
"Figure 10: PCA on dimension 1 and 3 "
|
| 1459 |
+
],
|
| 1460 |
+
"image_footnote": [],
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
522,
|
| 1463 |
+
694,
|
| 1464 |
+
800,
|
| 1465 |
+
893
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 13
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "image",
|
| 1471 |
+
"img_path": "images/efebb27b83fa3fa88e57d8a12063cccd4deda41813e936f8a631975a5f0cc9ce.jpg",
|
| 1472 |
+
"image_caption": [
|
| 1473 |
+
"(a) PCA with a random subset of posts, 150 for each emotion "
|
| 1474 |
+
],
|
| 1475 |
+
"image_footnote": [],
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
178,
|
| 1478 |
+
109,
|
| 1479 |
+
500,
|
| 1480 |
+
222
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 14
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "image",
|
| 1486 |
+
"img_path": "images/1787dde5931c290de4981e76b11550820cf253baeb336c24c0abd12d610e7c0f.jpg",
|
| 1487 |
+
"image_caption": [
|
| 1488 |
+
"Figure 11: PCA for dimension 2 and 3 "
|
| 1489 |
+
],
|
| 1490 |
+
"image_footnote": [],
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
526,
|
| 1493 |
+
102,
|
| 1494 |
+
797,
|
| 1495 |
+
301
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 14
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "image",
|
| 1501 |
+
"img_path": "images/f2ec9015543b24b2f86d84da602ed8983a2420a55fdacf6fee80ffb20e03531f.jpg",
|
| 1502 |
+
"image_caption": [
|
| 1503 |
+
"Figure 12: Explained variance of the PCA "
|
| 1504 |
+
],
|
| 1505 |
+
"image_footnote": [],
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
305,
|
| 1508 |
+
359,
|
| 1509 |
+
691,
|
| 1510 |
+
574
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 14
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "image",
|
| 1516 |
+
"img_path": "images/1810a9ce40ea46405cefed677028077e9d1d78004746ef75d5630c2e822496a0.jpg",
|
| 1517 |
+
"image_caption": [
|
| 1518 |
+
"Figure 13: Factor loadings "
|
| 1519 |
+
],
|
| 1520 |
+
"image_footnote": [],
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
450,
|
| 1523 |
+
633,
|
| 1524 |
+
581,
|
| 1525 |
+
864
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 14
|
| 1528 |
+
}
|
| 1529 |
+
]
|
parse/train/BJ6anzb0Z/BJ6anzb0Z_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJ6anzb0Z/BJ6anzb0Z_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/J8_GttYLFgr/J8_GttYLFgr.md
ADDED
|
@@ -0,0 +1,511 @@
|
|
|
|
|
|
|
|
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TORY PREDICTION USING EQUIVARIANT CONTINUOUS CONVOLUTION
|
| 2 |
+
|
| 3 |
+
Robin Walters ∗
|
| 4 |
+
Northeastern University
|
| 5 |
+
r.walters@northeastern.edu
|
| 6 |
+
Jinxi Li∗
|
| 7 |
+
Northeastern University
|
| 8 |
+
li.jinxi1@northeastern.edu
|
| 9 |
+
Rose Yu
|
| 10 |
+
University of California, San Diego
|
| 11 |
+
roseyu@ucsd.edu
|
| 12 |
+
|
| 13 |
+
# ABSTRACT
|
| 14 |
+
|
| 15 |
+
Trajectory prediction is a critical part of many AI applications, for example, the safe operation of autonomous vehicles. However, current methods are prone to making inconsistent and physically unrealistic predictions. We leverage insights from fluid dynamics to overcome this limitation by considering internal symmetry in real-world trajectories. We propose a novel model, Equivariant Continous COnvolution (ECCO) for improved trajectory prediction. ECCO uses rotationallyequivariant continuous convolutions to embed the symmetries of the system. On both vehicle and pedestrian trajectory datasets, ECCO attains competitive accuracy with significantly fewer parameters. It is also more sample efficient, generalizing automatically from few data points in any orientation. Lastly, ECCO improves generalization with equivariance, resulting in more physically consistent predictions. Our method provides a fresh perspective towards increasing trust and transparency in deep learning models. Our code and data can be found at https://github.com/Rose-STL-Lab/ECCO.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
Trajectory prediction is one of the core tasks in AI, from the movement of basketball players to fluid particles to car traffic (Sanchez-Gonzalez et al., 2020; Gao et al., 2020; Shah & Romijnders, 2016). A common abstraction underlying these tasks is the movement of many interacting agents, analogous to a many-particle system. Therefore, understanding the states of these particles, their dynamics, and hidden interactions is critical to accurate and robust trajectory forecasting.
|
| 20 |
+
|
| 21 |
+
Even for purely physical systems such as in particle physics, the complex interactions among a large number of particles makes this a difficult problem. For vehicle or pedestrian trajectories, this challenge is further compounded with latent factors such as human psychology. Given these difficulties, current approaches require large amounts of training data and many model parameters. State-of-the-art methods in this domain such as Gao et al. (2020) are based on graph neural networks. They do not exploit the physical properties of system and often make predictions which are not self-consistent or physically meaningful. Furthermore, they predict a single agent trajectory at a time instead of multiple agents simultaneously.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Car trajectories in two scenes. Though the entire scenes are not related by a rotation, the circled areas are. ECCO exploits this symmetry to improve generalization and sample efficiency.
|
| 25 |
+
|
| 26 |
+
Our model is built upon a key insight of many-particle systems pertaining to intricate internal symmetry. Consider a model which predicts the trajectory of cars on a road. To be successful, such a model must understand the physical behavior of vehicles together with human psychology. It should distinguish left from right turns, and give consistent outputs for intersections rotated with different orientation. As shown in Figure 1, a driver’s velocity rotates with the entire scene, whereas vehicle interactions are invariant to such a rotation. Likewise, psychological factors such as reaction speed or attention may be considered vectors with prescribed transformation properties. Data augmentation is a common practice to deal with rotational invariance, but it cannot guarantee invariance and requires longer training. Since rotation is a continuous group, augmentation requires sampling from infinitely many possible angles.
|
| 27 |
+
|
| 28 |
+
In this paper, we propose an equivariant continuous convolutional model, ECCO, for trajectory forecasting. Continuous convolution generalizes discrete convolution and is adapted to data in manyparticle systems with complex local interactions. Ummenhofer et al. (2019) designed a model using continuous convolutions for particle-based fluid simulations. Meanwhile, equivariance to group symmetries has proven to be a powerful tool to integrate physical intuition in physical science applications (Wang et al., 2020; Brown & Lunter, 2019; Kanwar et al., 2020). Here, we test the hypothesis that an equivariant model can also capture internal symmetry in non-physical human behavior. Our model utilizes a novel weight sharing scheme, torus kernels, and is rotationally equivariant.
|
| 29 |
+
|
| 30 |
+
We evaluate our model on two real-world trajectory datasets: Argoverse autonomous vehicle dataset (Chang et al., 2019) and TrajNet+ $^ +$ pedestrian trajectory forecasting challenge (Kothari et al., 2020). We demonstrate on par or better prediction accuracy to baseline models and data augmentation with fewer parameters, better sample efficiency, and stronger generalization properties. Lastly, we demonstrate theoretically and experimentally that our polar coordinate-indexed filters have lower equivariance discretization error due to being better adapted to the symmetry group.
|
| 31 |
+
|
| 32 |
+
Our main contributions are as follows:
|
| 33 |
+
|
| 34 |
+
• We propose Equivariant Continous COnvolution (ECCO), a rotationally equivariant deep neural network that can capture internal symmetry in trajectories.
|
| 35 |
+
• We design ECCO using a novel weight sharing scheme based on orbit decomposition and polar coordinate-indexed filters. We implement equivariance for both the standard and regular representation $L ^ { 2 } ( \mathrm { S O } ( 2 ) )$ .
|
| 36 |
+
• On benchmark Argoverse and TrajNet++ datasets, ECCO demonstrates comparable accuracy while enjoying better generalization, fewer parameters, and better sample complexity.
|
| 37 |
+
|
| 38 |
+
# 2 RELATED WORK
|
| 39 |
+
|
| 40 |
+
Trajectory Forecasting For vehicle trajectories, classic models in transportation include the CarFollowing model (Pipes, 1966) and Intelligent Driver model (Kesting et al., 2010). Deep learning has also received considerable attention; for example, Liang et al. (2020) and Gao et al. (2020) use graph neural networks to predict vehicle trajectories. Djuric et al. (2018) use rasterizations of the scene with CNN. See the review paper by Veres & Moussa (2019) for deep learning in transportation. For human trajectory modeling, Alahi et al. (2016) propose Social LSTM to learn these humanhuman interactions. TrajNet (Sadeghian et al., 2018) and TrajNet+ $^ { \cdot + }$ (Kothari et al., 2020) introduce benchmarking for human trajectory forecasting. We refer readers to Rudenko et al. (2020) for a comprehensive survey. Nevertheless, many deep learning models are data-driven. They require large amounts of data, have many parameters, and can generate physically inconsistent predictions.
|
| 41 |
+
|
| 42 |
+
Continuous Convolution Continuous convolutions over point clouds (CtsConv) have been successfully applied to classification and segmentation tasks (Wang et al., 2018; Lei et al., 2019; Xu et al., 2018; Wu et al., 2019; Su et al., 2018; Li et al., 2018; Hermosilla et al., 2018; Atzmon et al., 2018; Hua et al., 2018). More recently, a few works have used continuous convolution for modeling trajectories or flows. For instance, Wang et al. (2018) uses CtsConv for inferring flow on LIDAR data. Schenck & Fox (2018) and Ummenhofer et al. (2019) model fluid simulation using CtsConv. Closely related to our work is Ummenhofer et al. (2019), who design a continuous convolution network for particle-based fluid simulations. However, they use a ball-to-sphere mapping which is not well-adapted for rotational equivariance and only encode 3 frames of input. Graph neural networks (GNNs) are a related strategy which have been used for modeling particle system dynamics (Sanchez-Gonzalez et al., 2020). GNNs are also permutation invariant, but they do not natively encode relative positions and local interaction as a CtsConv-based network does.
|
| 43 |
+
|
| 44 |
+
Equivariant and Invariant Deep Learning Developing neural nets that preserve symmetries has been a fundamental task in image recognition (Cohen et al., 2019b; Weiler & Cesa, 2019; Cohen & Welling, 2016a; Chidester et al., 2018; Lenc & Vedaldi, 2015; Kondor & Trivedi, 2018; Bao & Song, 2019; Worrall et al., 2017; Cohen & Welling, 2016b; Weiler et al., 2018; Dieleman et al., 2016; Maron et al., 2020). Equivariant networks have also been used to predict dynamics: for example, Wang et al. (2020) predicts fluid flow using Galilean equivariance but only for gridded data. Fuchs et al. (2020) use SE(3)-equivariant transformers to predict trajectories for a small number of particles as a regression task. As in this paper, both Bekkers (2020) and Finzi et al. (2020) address the challenge of parameterizing a kernel over continuous Lie groups. Finzi et al. (2020) apply their method to trajectory prediction on point clouds using a small number of points following strict physical laws. Worrall et al. (2017) also parameterizes convolutional kernels using polar coordinates, but maps these onto a rectilinear grid for application to image data. Weng et al. (2018) address rotational equivariance by inferring a global canonicalization of the input. Similar to our work, Esteves et al. (2018) use functions evenly sampled on the circle, however, their features are only at a single point whereas we assign feature vectors to each point in a point cloud. Thomas et al. (2018) introduce Tensor Field Networks which are SO(3)-equivariant continuous convolutions. Unlike our work, both Worrall et al. (2017) and Thomas et al. (2018) define their kernels using harmonic functions. Our weight sharing method using orbits and stabilizers is simpler as it does not require harmonic functions or Clebsch-Gordon coefficients. Unlike previous work, we implement a regular representation for the continuous rotation group SO(2) which is compatible with pointwise nonlinearities and enjoys an empirical advantage over irreducible representations.
|
| 45 |
+
|
| 46 |
+
# 3 BACKGROUND
|
| 47 |
+
|
| 48 |
+
We first review the necessary background of continuous convolution and rotational equivariance.
|
| 49 |
+
|
| 50 |
+
# 3.1 CONTINUOUS CONVOLUTION
|
| 51 |
+
|
| 52 |
+
Continuous convolution (CtsConv) generalizes the discrete convolution to point clouds. It provides an efficient and spatially aware way to model the interactions of nearby particles. Let $\mathbf { f } ^ { ( i ) } \in \mathbb { R } ^ { c _ { \mathrm { i n } } }$ denote the feature vector of particle $i$ . Thus $\mathbf { f }$ is a vector field which assigns to the points $\mathbf { x } ^ { ( i ) }$ a vector in $\mathbb { R } ^ { c _ { \mathrm { i n } } }$ . The kernel of the convolution $K \colon \mathbb { R } ^ { 2 } \mathbb { R } ^ { c _ { \mathrm { o u t } } \times c _ { \mathrm { i n } } }$ is a matrix field: for each point $\mathbf { x } \in \mathbb { R } ^ { 2 }$ , $K ( \mathbf { x } )$ is a $c _ { \mathrm { o u t } } \times c _ { \mathrm { i n } }$ matrix. Let $a$ be a radial local attention map with $a ( r ) = 0$ for $r > R$ . The output feature vector $\mathbf { g } ^ { ( i ) }$ of particle $i$ from the continous convolution is given by
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\mathbf { g } ^ { ( i ) } = \mathsf { C t s C o n v } _ { K , R } ( \mathbf { x } , \mathbf { f } ; \mathbf { x } ^ { ( i ) } ) = \sum _ { j } a ( \| \mathbf { x } ^ { ( j ) } - \mathbf { x } ^ { ( i ) } \| ) K ( \mathbf { x } ^ { ( j ) } - \mathbf { x } ^ { ( i ) } ) \cdot \mathbf { f } ^ { ( j ) } .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
CtsConv is naturally equivariant to permutation of labels and is translation invariant. Equation 1 is closely related to graph neural network (GNN) (Kipf & Welling, 2017; Battaglia et al., 2018), which is also permutation invariant. Here the graph is dynamic and implicit with nodes $\mathbf { x } ^ { ( i ) }$ and edges $e _ { i j }$ if $\| \mathbf { x } ^ { ( i ) } - \mathbf { x } ^ { ( j ) } \| < R$ . Unlike a GNN which applies the same weights to all neighbours, the kernel $K$ depends on the relative position vector $\mathbf { x } ^ { ( i ) } - \mathbf { x } ^ { ( j ) }$ .
|
| 59 |
+
|
| 60 |
+
# 3.2 ROTATIONAL EQUIVARIANCE
|
| 61 |
+
|
| 62 |
+
Continuous convolution is not naturally rotationally equivariant. Fortunately, we can translate the technique of rotational equivariance on CNNs to continuous convolutions. We use the language of Lie groups and their representations. For more background, see Hall (2015) and Knapp (2013).
|
| 63 |
+
|
| 64 |
+
More precisely, we denote the symmetry group of 2D rotations by $\operatorname { S O } ( 2 ) = \{ { \mathrm { R o t } } _ { \theta } : 0 \leq \theta <$ $2 \pi \}$ . As a Lie group, it has both a group structure $\mathrm { R o t } _ { \theta _ { 1 } } \circ \mathrm { R o t } _ { \theta _ { 2 } } = \mathrm { R o t } _ { ( \theta _ { 1 } + \theta _ { 2 } ) \mathrm { m o d } 2 \pi }$ which a continuous map with respect to the topological structure. As a manifold, SO(2) is homomeomorphic to the circle $\Dot { S ^ { 1 } } \cong \{ \mathbf { x } \ \overset { \cdot } { \in } \ \mathbb { R } ^ { 2 } \ : \ \lVert \mathbf { x } \rVert = \ 1 \}$ . The group $\mathrm { S O } ( 2 )$ can act on a vector space $\mathbb { R } ^ { c }$ by specifying a representation map $\rho \colon \mathsf { S O } ( 2 ) \ \mathsf { \Gamma } \to \mathsf { G L } ( \mathbb { R } ^ { c } )$ which assigns to each element of SO(2) an element of the set of invertible $c \times c$ matrices ${ \mathrm { G L } } ( \mathbb { R } ^ { c } )$ . The map $\rho$ must a be homomorphism $\rho ( \mathrm { R o t } _ { \theta _ { 1 } } ) \rho ( \mathrm { R o t } _ { \theta _ { 1 } } ) = \rho ( \mathrm { R o t } _ { \theta _ { 1 } } \circ \mathrm { R o t } _ { \theta _ { 2 } } )$ . For example, the standard representation $\rho _ { 1 }$ on $\mathbb { R } ^ { 2 }$ is by $2 \times 2$ rotation matrices. The regular representation $\rho _ { \mathrm { r e g } }$ on $L ^ { 2 } ( \operatorname { S O } ( { \bar { 2 } } ) ) = \{ \varphi : \operatorname { S O } ( 2 ) \to \mathbb { R } :$ $| \varphi | ^ { 2 }$ is integrable $\}$ is $\rho _ { \mathrm { r e g } } ( \mathrm { R o t } _ { \phi } ) ( \varphi ) = \varphi \circ \mathrm { R o t } _ { - \phi }$ . Given input f with representation $\rho _ { \mathrm { i n } }$ and output with representation $\rho _ { \mathrm { o u t } }$ , a map $F$ is SO(2)-equivariant if
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
F ( \rho _ { \mathrm { i n } } ( \mathrm { R o t } _ { \theta } ) { \bf f } ) = \rho _ { \mathrm { o u t } } ( \mathrm { R o t } _ { \theta } ) F ( { \bf f } ) .
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
Discrete CNNs are equivariant to a group $G$ if the input, output, and hidden layers carry a $G$ -action and the linear layers and activation functions are all equivariant (Kondor $\&$ Trivedi, 2018). One method for constructing equivariant discrete CNNs is steerable CNN (Cohen & Welling, 2016b). Cohen et al. (2019a) derive a general constraint for when a convolutional kernel $K \colon \mathbb { R } ^ { b } \mathbf { \bar { \mathbb { R } } } ^ { c _ { \mathrm { o u t } } \times c _ { \mathrm { i n } } }$ is $G$ -equivariant. Assume $G$ acts on $\mathbb { R } ^ { b }$ and that $\mathbb { R } ^ { c _ { \mathrm { o u t } } }$ and $\mathbb { R } ^ { c _ { \mathrm { i n } } }$ are $G$ -representations $\rho _ { \mathrm { o u t } }$ and $\rho _ { \mathrm { i n } }$ respectively, then $K$ is $G$ -equivariant if for all $g \in G , \mathbf { x } \in \mathbb { R } ^ { 2 }$ ,
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
K ( g \mathbf x ) = \rho _ { \mathrm { o u t } } ( g ) K ( \mathbf x ) \rho _ { \mathrm { i n } } ( g ^ { - 1 } ) .
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
For the group SO(2), Weiler & Cesa (2019) solve this constraint using circular harmonic functions to give a basis of discrete equivariant kernels. In contrast, our method is much simpler and uses orbits and stabilizers to create continuous convolution kernels.
|
| 77 |
+
|
| 78 |
+
# 4 ECCO: TRAJECTORY PREDICTION USING ROTATIONALLY EQUIVARIANTCONTINUOUS CONVOLUTION
|
| 79 |
+
|
| 80 |
+
In trajectory prediction, given historical position and velocity data of $n$ particles over $t _ { \mathrm { i n } }$ timesteps, we want to predict their positions over the next $t _ { \mathrm { o u t } }$ timesteps. Denote the ground truth dynamics as $\xi$ , which maps $\xi ( { \bf x } _ { t - t _ { \mathrm { i n } } : t } , { \bf v } _ { t - t _ { \mathrm { i n } } : t } ) = { \bf x } _ { t : t + t _ { \mathrm { o u t } } }$ . Motivated by the observation in Figure 1, we wish to learn a model $f$ that approximates the underlying dynamics while preserving the internal symmetry in the data, specifically rotational equivariance.
|
| 81 |
+
|
| 82 |
+
We introduce ECCO, a model for trajectory prediction based on rotationally equivariant continuous convolution. We implement rotationally equivariant continuous convolutions using a weight sharing scheme based on orbit decomposition. We also describe equivariant per-particle linear layers which are a special case of continuous convolution with radius $R = 0$ analogous to 1x1 convolutions in CNNs. Such layers are useful for passing information between layers from each particle to itself.
|
| 83 |
+
|
| 84 |
+
# 4.1 ECCO MODEL OVERVIEW
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
Figure 2: Overview of model architecture. Past velocities are aggregated by an encoder Enc. Together with map information this is then encoded by 3 CtsConvs into $\rho _ { \mathrm { r e g } }$ features. Then $l + 1$ CtsConv layers are used to predict $\Delta \tilde { x }$ . The predicted position $\hat { x } _ { t + 1 } = \Delta \tilde { x } + \tilde { x }$ where $\tilde { x }$ is a numerically extrapolated using velocity and accleration. Since $\Delta \tilde { x }$ is translation invariant, $\hat { x }$ is equivariant.
|
| 88 |
+
|
| 89 |
+
The high-level architecture of ECCO is illustrated in Figure 2. It is important to remember that the input, output, and hidden layers are all vector fields over the particles. Oftentimes, there is also environmental information available in the form of road lane markers. Denote marker positions by $\mathbf { x } _ { \mathrm { m a p } }$ and direction vectors by $\mathbf { v } _ { \mathrm { m a p } }$ . This data is thus also a particle field, but static.
|
| 90 |
+
|
| 91 |
+
To design an equivariant network, one must choose the group representation. This choice plays an important role in shaping the learned hidden states. We focus on two representations of SO(2): $\rho _ { 1 }$ and $\rho _ { \mathrm { r e g } }$ . The representation $\rho _ { 1 }$ is that of our input features, and $\rho _ { \mathrm { r e g } }$ is for the hidden layers. For $\rho _ { 1 }$ , we constrain the kernel in Equation 1. For $\rho _ { \mathrm { r e g } }$ , we further introduce a new operator, convolution with torus kernels.
|
| 92 |
+
|
| 93 |
+
In order to make continuous convolution rotationally equivariant, we translate the general condition for discrete CNNs developed in Weiler & Cesa (2019) to continuous convolution. We define the convolution kernel $K$ in polar coordinates $K ( \theta , r )$ . Let $\mathbb { R } ^ { c _ { \mathrm { o u t } } }$ and $\mathbb { R } ^ { c _ { \mathrm { i n } } }$ be SO(2)-representations $\rho _ { \mathrm { o u t } }$ and $\rho _ { \mathrm { i n } }$ respectively, then the equivariance condition requires the kernel to satisfy
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
K ( \theta + \phi , r ) = \rho _ { \mathrm { o u t } } ( \mathrm { R o t } _ { \theta } ) K ( \phi , r ) \rho _ { \mathrm { i n } } ( \mathrm { R o t } _ { \theta } ^ { - 1 } ) .
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
Imposing such a constraint for continuous convolution requires us to develop an efficient weight sharing scheme for the kernels, which solve Equation 3.
|
| 100 |
+
|
| 101 |
+
# 4.2 WEIGHT SHARING BY ORBITS AND STABILIZERS.
|
| 102 |
+
|
| 103 |
+
Given a point $\mathbf { x } \in \mathbb { R } ^ { 2 }$ and a group $G$ , the set $O _ { \mathbf { x } } = \{ g \mathbf { x } : g \in G \}$ is the orbit of the point $\mathbf { x }$ . The set of orbits gives a partition of $\mathbb { R } ^ { 2 }$ into the origin and circles of radius $r > 0$ . The set of group elements $G _ { \mathbf { x } } = \{ g : \mathbf { \bar { g x } } = x \}$ fixing $\mathbf { x }$ is called the stabilizer of the point $\mathbf { x }$ . We use the orbits and stabilizers to constrain the weights of $K$ . Simply put, we share weights across orbits and constrain weights according to stabilizers, as shown in Figure 3-Left.
|
| 104 |
+
|
| 105 |
+
The ray $D = \{ ( 0 , r ) : r \geq 0 \}$ is a fundamental domain for the action of $G = \mathrm { S O } ( 2 )$ on base space $\mathbb { R } ^ { 2 }$ . That is, $D$ contains exactly one point from each orbit. We first define $K ( 0 , r )$ for each $( { \bar { 0 } } , r ) \in D$ . Then we compute $K ( \theta , r )$ from $K ( 0 , r )$ by setting $\phi = 0$ in Equation 3 as such
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\begin{array} { r } { K ( \theta , r ) = \rho _ { \mathrm { o u t } } ( \mathrm { R o t } _ { \theta } ) K ( 0 , r ) \rho _ { \mathrm { i n } } ( \mathrm { R o t } _ { \theta } ^ { - 1 } ) . } \end{array}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
For $r > 0$ , the group acts freely on $( 0 , r )$ , i.e. the stabilizer contains only the identity. This means that Equation 3 imposes no additional constraints on $K ( 0 , r )$ . Thus $K ( 0 , r ) \in \mathbb { R } ^ { c _ { \mathrm { o u t } } \times c _ { \mathrm { i n } } }$ is a matrix of freely learnable weights.
|
| 112 |
+
|
| 113 |
+
For $r = 0$ , however, the orbit $O _ { ( 0 , 0 ) }$ is only one point. The stabilizer of $( 0 , 0 )$ is all of $G$ , which requires
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
K ( 0 , 0 ) = \rho _ { \mathrm { o u t } } ( \mathrm { R o t } _ { \theta } ) K ( 0 , 0 ) \rho _ { \mathrm { i n } } ( \mathrm { R o t } _ { \theta } ^ { - 1 } ) \mathrm { f o r \ a l l } \theta .
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
Thus $K ( 0 , 0 )$ is an equivariant per-particle linear map $\rho _ { \mathrm { i n } } \rho _ { \mathrm { o u t } }$
|
| 120 |
+
|
| 121 |
+
We can analytically solve Equation 5 for $\dot { K } ( 0 , 0 )$ using representation theory. Table 1 shows the unique solutions for different combinations of $\rho _ { 1 }$ and $\rho _ { \mathrm { r e g } }$ . For details see subsection A.3.
|
| 122 |
+
|
| 123 |
+
Table 1: Equivariant linear maps for $K ( 0 , 0 )$ . Trainable weights are $c \in \mathbb { R }$ and $\bar { \kappa \colon S ^ { 1 } \to \mathbb { R } }$ , where $\hat { S ^ { 1 } }$ is the manifold underlying SO(2).
|
| 124 |
+
|
| 125 |
+
<table><tr><td>Pin</td><td>Pout = p1</td><td>Pout =preg</td></tr><tr><td>P1 preg</td><td>(a,b) -→ (ca,cb) fc Ss1 f(0)cos(0)d0 Js1 f(0)sin(0)d0)</td><td>ca cos(0) + cb sin(0) Ss1 κ(0-)f(Φ)dΦ</td></tr></table>
|
| 126 |
+
|
| 127 |
+
Note that 2D and 3D rota
|
| 128 |
+
|
| 129 |
+
tion equivariant continuous convolutions are implemented in Worrall et al. (2017) and Thomas et al. (2018) respectively. They both use harmonic functions which require expensive evaluation of analytic functions at each point. Instead, we provide a simpler solution. We require only knowledge of the orbits, stabilizers, and input/output representations. Additionally, we bypass Clebsch-Gordon decomposition used in Thomas et al. (2018) by mapping directly between the representations in our network. Next, we describe an efficient implementation of equivariant continuous convolution.
|
| 130 |
+
|
| 131 |
+
# 4.3 POLAR COORDINATE KERNELS
|
| 132 |
+
|
| 133 |
+
Rotational equivariance informs our kernel discretization and implementation. We store the kernel $K$ of continuous convolution as a 4-dimensional tensor by discretizing the domain. Specifically, we discretize $\mathbb { R } ^ { 2 }$ using polar coordinates with $k _ { \theta }$ angular slices and $k _ { r }$ radial steps. We then evaluate $K$ at any $( \theta , r )$ using bilinear interpolation from four closest polar grid points. This method accelerates computation since we do not need to use Equation 4 to repeatedly compute $K ( \theta , r )$ from $K ( 0 , r )$ . The special case of $K ( 0 , 0 )$ results in a polar grid with a “bullseye” at the center (see Figure 3-Left).
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 3: Left: A torus kernel field $K$ from a $\rho _ { \mathrm { r e g } }$ -field to a $\rho _ { \mathrm { r e g } }$ -field. The kernel is itself a field: at each point $\mathbf { x }$ in space the kernel $K ( \mathbf { x } )$ yields a different matrix. We denote the $\left( \phi _ { 2 } , \phi _ { 1 } \right)$ entry of the matrix at $\mathbf { x } = ( \theta , r )$ by $K ( \theta , r ) ( \stackrel { \cdot } { \phi _ { 2 } } , \stackrel { \cdot } { \phi _ { 1 } } )$ . The matrices along the red sector are freely trainable. The matrices at all white sectors are determined by those in the red sector according to the circular shifting rule illustrated above. The matrix at the red bullseye is trainable but constrained to be circulant, i.e. preserved by the circular shifting rule. Right: The torus kernel acts on features which are functions on the circle. By cutting open the torus and features along the reg and orange lines we can identify the operation at each point with matrix multiplication.
|
| 137 |
+
|
| 138 |
+
We discretize angles finely and radii more coarsely. This choice is inspired by real-world observation that drivers tend to be more sensitive to the angle of an incoming car than its exact distance, Our equivariant kernels are computationally efficient and have very few parameters. Moreover, we will discuss later in Section 4.5 that despite discretization, the use of polar coordinates allows for very low equivariance error.
|
| 139 |
+
|
| 140 |
+
# 4.4 HIDDEN LAYERS AS REGULAR REPRESENTATIONS
|
| 141 |
+
|
| 142 |
+
Regular representation $\rho _ { \mathrm { r e g } }$ has shown better performance than $\rho _ { 1 }$ for finite groups (Cohen et al., $2 0 1 9 \mathrm { a }$ ; Weiler & Cesa, 2019). But the naive $\rho _ { \mathrm { r e g } } = \{ \varphi \colon G \mathbb { R } \}$ for an infinite group $G$ is too large to work with. We choose the space of square-integrable functions $L ^ { 2 } ( G )$ . It contains all irreducible representations of $G$ and is compatible with pointwise non-linearities.
|
| 143 |
+
|
| 144 |
+
Discretization. However, $L ^ { 2 } ( \mathrm { S O } ( 2 ) )$ is still infinite-dimensional. We resolve this by discretizing the manifold $S ^ { 1 }$ underlying SO(2) into $k _ { \mathrm { r e g } }$ even intervals. We represent functions $f \in L ^ { 2 } ( \mathrm { S O } ( 2 ) \bar { ) }$ by the vector of values $[ f ( \mathrm { R o t } _ { 2 \pi i / k _ { \mathrm { r e g } } } ) ] _ { 0 \leq i < k _ { \mathrm { r e g } } }$ . We then evaluate $f ( \mathrm { R o t } _ { \theta } )$ using interpolation.
|
| 145 |
+
|
| 146 |
+
We separate the number of angular slices $k _ { \theta }$ and the size of the kernel $k _ { \mathrm { r e g } }$ . If we tie them together and set $k _ { \theta } = k _ { \mathrm { r e g } }$ , this is equivalent to implementing cyclic group $C _ { k _ { \mathrm { r e g } } }$ symmetry with the regular representation. Then increasing $k _ { \theta }$ would also increases $k _ { \mathrm { r e g } }$ , which incurs more parameters.
|
| 147 |
+
|
| 148 |
+
Convolution with Torus Kernel. In addition to constraining the kernel $K$ of Equation 1 as in $\rho _ { 1 }$ , $\rho _ { \mathrm { r e g } }$ poses an additional challenge as it is a function on a circle. We introduce a new operator from functions on the circle to functions on the circle called a torus kernel.
|
| 149 |
+
|
| 150 |
+
First, we replace input feature vectors in $\mathbf { f } \in \mathbb { R } ^ { c }$ with elements of $L ^ { 2 } ( \mathrm { S O } ( 2 ) )$ . The input feature f becomes a $\rho _ { \mathrm { r e g } }$ -field, that is, for each $\mathbf { x } \in \mathbb { R } ^ { 2 }$ , $\mathbf { f } ^ { ( \mathbf { x } ) }$ is a real-value function on the circle $S ^ { 1 } \to \mathbb { R }$ . For the kernel $K$ , we replace the matrix field with a map $K \colon \mathbb { R } ^ { 2 } \rho _ { \mathrm { r e g } } \otimes \rho _ { \mathrm { r e g } }$ . Instead of a matrix, $K ( \mathbf { x } )$ is a map $S ^ { 1 } \times S ^ { 1 } \to \mathbb { R }$ . Here $( \phi _ { 1 } , \phi _ { 2 } ) \in S ^ { 1 } \times S ^ { 1 }$ plays the role of continuous matrix indices and we may consider $K ( \mathbf { x } ) ( \phi _ { 1 } , \phi _ { 2 } ) \in \mathbb { R }$ analogous to a matrix entry. Topologically, $S ^ { 1 } \times S ^ { 1 }$ is a torus and hence we call $K ( \mathbf { x } )$ a torus kernel. The matrix multiplication $K ( \mathbf { x } ) \cdot f ^ { ( \mathbf { x } ) }$ in Equation 1
|
| 151 |
+
|
| 152 |
+
must be replaced by the integral transform
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
K ( \mathbf { x } ) \odot f ^ { ( \mathbf { x } ) } ( \phi _ { 2 } ) = \int _ { \phi _ { 1 } \in S ^ { 1 } } K ( \mathbf { x } ) ( \phi _ { 2 } , \phi _ { 1 } ) f ^ { ( \mathbf { x } ) } ( \phi _ { 1 } ) d \phi _ { 1 } ,
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
which is a linear transformation $L ^ { 2 } ( \mathrm { S O ( 2 ) } ) L ^ { 2 } ( \mathrm { S O ( 2 ) } )$ . $K ( \theta , r ) ( \phi _ { 2 } , \phi _ { 1 } )$ denotes the $\left( \phi _ { 2 } , \phi _ { 1 } \right)$ entry of the matrix at point $\mathbf { x } = ( \theta , r )$ , see the illustration in Figure 3-Right. We compute Equation 3 for $\rho _ { \mathrm { r e g } } \rho _ { \mathrm { r e g } }$ as $\bar { K } ( \mathrm { R o t } _ { \theta } ( { \bf x } ) ) ( \phi _ { 2 } , \phi _ { 1 } ) = K ( { \bf x } ) ( \phi _ { 2 } - \theta , \bar { \phi _ { 1 } } - \theta )$ . We can use the same weight sharing scheme as in Section 4.2.
|
| 159 |
+
|
| 160 |
+
# 4.5 ANALYSIS: EQUIVARIANCE ERROR
|
| 161 |
+
|
| 162 |
+
The practical value of equivariant neural networks has been demonstrated in a variety of domains. However, theoretical analysis (Kondor $\&$ Trivedi, 2018; Cohen et al., 2019a; Maron et al., 2020) of continuous Lie group symmetries is usually performed assuming continuous functions and using the integral representation of the convolution operator. In practice, discretization can cause the model $f$ to be not exactly equivariant, with some equivariance error (EE)
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
\mathrm { E E } = \| f ( T ( x ) ) - T ^ { \prime } ( f ( x ) ) \|
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
with respect to group transformations $T$ and $T ^ { \prime }$ of input and output respectively (Wang et al., 2020, A6). Rectangular grids are well-suited to translations, but poorlysuited to rotations. The resulting equivariance error can be so large to practically undermine the advantages of a theoretically equivariant network.
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 4: Experimentally, we find $k _ { \theta }$ and expected equivariance error are inversely proportional.
|
| 172 |
+
|
| 173 |
+
Our polar-coordinate indexed circular filters are designed specifically to adapt well to the rotational symmetry. In Figure 4, we demonstrate experimentally that expected EE is inversely proportional to the number of angular slices $k _ { \theta }$ . For example, choosing $k _ { \theta } \geq 1 6$ gives very low EE and does not increase the number of parameters. We also prove for $\rho _ { 1 }$ features that the equivariance error is low in expectation. See Appendix A.6 for the precise statement and proof.
|
| 174 |
+
|
| 175 |
+
Proposition. Let $\alpha = 2 \pi / k _ { \theta }$ , and $\bar { \theta }$ be $\theta$ rounded to nearest value in $\mathbb { Z } \alpha$ , and $\hat { \theta } = | \theta - \bar { \theta } |$ . Let $F = C t s C o n v _ { K , R }$ and $T = \rho _ { 1 } ( \mathrm { R o t } _ { \theta } )$ . For some constant $C$ , the expected EE is bounded
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
\mathbb { E } _ { K , \mathbf { f } , \mathbf { x } } [ T ( F ( \mathbf { f } , \mathbf { x } ) ) - F ( T ( \mathbf { f } ) , T ( \mathbf { x } ) ) ] \leq | \sin ( \hat { \theta } ) | C \leq 2 \pi C / k _ { \theta } .
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
# 5 EXPERIMENTS
|
| 182 |
+
|
| 183 |
+
In this section, we present experiments in two different domains, traffic and pedestrian trajectory prediction, where interactions among agents are frequent and influential. We first introduce the statistics of the datasets and the evaluation metrics. Secondly, we compare different feature encoders and hidden feature representation types. Lastly, we compare our model with baselines.
|
| 184 |
+
|
| 185 |
+
# 5.1 EXPERIMENTAL SET UP
|
| 186 |
+
|
| 187 |
+
Dataset We discuss the performances of our models on (1) Argoverse autonomous vehicle motion forecasting (Chang et al., 2019), a recently released vehicle trajectory prediction benchmark, and (2) TrajNet $^ { + + }$ pedestrian trajectory forecasting challenge (Kothari et al., 2020). For Argoverse, the task is to predict three-second trajectories based on all vehicles history in the past 2 seconds. We split 32K samples from the validation set as our test set.
|
| 188 |
+
|
| 189 |
+
Baselines We compare against several state-of-the-art baselines used in Argoverse and TrajNet++. We use three original baselines from (Chang et al., 2019): Constant velocity, Nearest Neighbour, and Long Short Term Memory (LSTM). We also compare with a non-equivariant continuous convolutional model, CtsConv (Ummenhofer et al., 2019) and a hierarchical GNN model VectorNet (Gao et al., 2020). Note that VectorNet only predicts a single agent at a time, which is not directly comparable with ours. We include VectorNet as a reference nevertheless.
|
| 190 |
+
|
| 191 |
+
Evaluation Metrics We use domain standard metrics to evaluate the trajectory prediction performance, including (1) Average Displacement Error (ADE): the average L2 displacement error for the whole 30 timestamps between prediction and ground truth, (2) Displacement Error at $t$ seconds $\mathrm { ( D E @ ~ }$ ts): the L2 displacement error at a given timestep $t$ . DE $@$ ts for the last timestamp is also called Final Displacement Error (FDE). For Argoverse, we report ADE and $\mathrm { D E } @$ ts for $t \in \{ 1 , 2 , 3 \}$ . For TrajNet++, we report ADE and FDE.
|
| 192 |
+
|
| 193 |
+
# 5.2 PREDICTION PERFORMANCE COMPARISON
|
| 194 |
+
|
| 195 |
+
We evaluate the performance of different models from multiple aspects: forecasting accuracy, parameter efficiency and the physical consistency of the predictions. The goal is to provide a comprehensive view of various characteristics of our model to guide practical deployment. See Appendix A.9 for an additional ablative study.
|
| 196 |
+
|
| 197 |
+
Forecasting Accuracy We compare the trajectory prediction accuracy across different models on Argoverse and TrajNet $^ { + + }$ . Table 2 displays the prediction ADE and FDE comparision. We can see that ECCO with the regular representation $\rho _ { \mathrm { r e g } }$ achieves on par or better forecasting accuracy on both datasets. Comparing ECCO and a non-equivariant counterpart of our model CtsConv, we observe a significant $1 4 . 8 \%$ improvement in forecasting accuracy. Compare with data augmentation, we also observe a $9 \%$ improvement over the non-equivariant CtsConv trained on random-rotationaugmented dataset. These results demonstrate the benefits of incorporating equivariance principles into deep learning models.
|
| 198 |
+
|
| 199 |
+
Table 2: Parameter efficiency and accuracy comparison. Number of parameters for each model and their detailed forecasting accuracy at DE $@$ ts. CtsConv(Aug.) is CtsConv trained with rotation augmented data.
|
| 200 |
+
|
| 201 |
+
<table><tr><td rowspan="2">Model</td><td colspan="4">Argoverse</td><td colspan="2">TrajNet++</td><td rowspan="2">#Param</td></tr><tr><td>ADE</td><td>DE@1s</td><td>DE@2s</td><td>DE@3s</td><td>ADE</td><td>FDE</td></tr><tr><td>Constant Velocity</td><td>3.86</td><td>2.43</td><td>5.10</td><td>7.91</td><td>1.39</td><td>2.86</td><td></td></tr><tr><td>Nearest Neighbor</td><td>3.49</td><td>2.02</td><td>4.98</td><td>7.84</td><td>1.38</td><td>2.79</td><td></td></tr><tr><td>LSTM</td><td>2.13</td><td>1.16</td><td>2.81</td><td>4.83</td><td>1.11</td><td>2.03</td><td>50.6K</td></tr><tr><td>CtsConv</td><td>1.85</td><td>0.99</td><td>2.42</td><td>4.32</td><td>0.86</td><td>1.79</td><td>1078.1K</td></tr><tr><td>CtsConv (Aug.)</td><td>1.77</td><td>0.96</td><td>2.31</td><td>4.05</td><td>1</td><td>-</td><td>1078.1K</td></tr><tr><td>P1-ECCO</td><td>1.70</td><td>0.93</td><td>2.22</td><td>3.89</td><td>0.88</td><td>1.83</td><td>51.4K</td></tr><tr><td>Preg-ECCO</td><td>1.62</td><td>0.89</td><td>2.12</td><td>3.68</td><td>0.84</td><td>1.76</td><td>129.8K</td></tr><tr><td>VectorNet</td><td>1.66</td><td>0.92</td><td>2.06</td><td>3.67</td><td>1</td><td>-</td><td>72K + Decoder</td></tr></table>
|
| 202 |
+
|
| 203 |
+
Parameter Efficiency Another important feature in deploying deep learning models to embedded systems such as autonomous vehicles is parameter efficiency. We report the number of parameters in each of the models in Table 2. Compare with LSTM, our forecasting performance is significantly better. CtsConv and VectorNet have competitive forecasting performance, but uses much more parameters than ECCO. By encoding equivariance into CtsConv, we drastically reduce the number of the parameters needed in our model. For VectorNet, Gao et al. (2020) only provided the number of parameters for their encoder; a fair decoder size can be estimated based on MLP using 59 polygraphs with each 64 dimensions as input, predicting 30 timestamps, that is 113K.
|
| 204 |
+
|
| 205 |
+
Runtime and Memory Efficiency We compare the runtime and memory usage with VectorNet Gao et al. (2020). Since VectorNet is not open-sourced, we compare with a version of VectorNet that we implement. Firstly, we compare floating point operations (FLOPs). VectorNet reported $n \times 0 . 0 4 1$ GFLOPs for the encoder part of their model alone, where $n$ is the number of predicted vehicles. We tested ECCO on a scene with 30 vehicles and approximately 180 lane marker nodes, which is similar to the test conditions used to compute FLOPs in Gao et al. (2020). Our full model used 1.03 GFLOPs versus 1.23 GFLOPs for VectorNet’s encoder. For runtimes on the same test machine, ECCO runs $6 8 4 \mathrm { m s }$ versus 1103ms for VectorNet. Another disadvantage of VectorNet is needing to reprocess the scene for each agent, whereas ECCO predicts all agents simultaneously. For memory usage in the same test ECCO uses 296 MB and VectorNet uses 171 MB.
|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
Figure 6: The x,y-axes are the position (m). The dashed line represents the 2s past trajectory. The solid line represents the 3s prediction. Red represents the agent. Top row: The predictions are made on the original data. Bottom row: We rotate the whole scene by $1 6 0 ^ { \circ }$ and make predictions on rotated data. From left to right are visualizations of ground truth, CtsConv, $\rho _ { 1 }$ -ECCO, $\rho _ { \mathrm { r e g } }$ -ECCO.
|
| 209 |
+
|
| 210 |
+
Sample Efficiency A major benefit of incorporating the inductive bias of equivariance is to improve the sample efficiency of learning. For each sample which an equivariant model is trained on, it learns as if it were trained on all transformations of that sample by the symmetry group (Wang et al., 2020, Prop 3). Thus ECCO requires far fewer samples to learn from. In Figure 5, we plot a comparison of validation FDE over number of training samples and show the equivariant models converge faster.
|
| 211 |
+
|
| 212 |
+
Physical Consistency We also visualize the predictions from ECCO and non-equivariant
|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
Figure 5: The learning curves on the validation set. Equivariant models converge faster using fewer samples than the non-equivariant models.
|
| 216 |
+
|
| 217 |
+
CtsConv, as shown in Figure 6. Top row visualizes the predictions on the original data. In the bottom row, we rotate the whole scene by $1 6 0 ^ { \circ }$ and make predictions on rotated data. This mimics the covariate shift in the real world. Note that CtsConv predicts inconsistently: a right turn in the top row but a left turn after the scene has been rotated. We see similar results for TrajNet+ $^ +$ (see Figure 8 in Appendix A.10).
|
| 218 |
+
|
| 219 |
+
# 6 CONCLUSION
|
| 220 |
+
|
| 221 |
+
We propose Equivariant Continuous Convolution (ECCO), a novel model for trajectory prediction by imposing symmetries as inductive biases. On two real-world vehicle and pedestrians trajectory datasets, ECCO attains competitive accuracy with significantly fewer parameters. It is also more sample efficient; generalizing automatically from few data points in any orientation. Lastly, equivariance gives ECCO improved generalization performance. Our method provides a fresh perspective towards increasing trust in deep learning models through guaranteed properties. Future directions include applying equivariance to probabilistic predictions with many possible trajectories, or developing a faster version of ECCO which does not require autoregressive computation. Moreover, our methods may be generalized from 2-dimensional space to $\mathbb { R } ^ { n }$ . The orbit-stabilizer weight sharing scheme and discretized regular representation may be generalized by replacing SO(2) with $\operatorname { S O } ( n )$ , and polar coordinate kernels may be generalized using spherical coordinates.
|
| 222 |
+
|
| 223 |
+
# ACKNOWLEDGEMENT
|
| 224 |
+
|
| 225 |
+
This work was supported in part by Google Faculty Research Award, NSF Grant #2037745, and the U. S. Army Research Office under Grant W911NF-20-1-0334. Walters is supported by a Postdoctoral Fellowship from the Institute for Experiential AI at the Roux Institute.
|
| 226 |
+
|
| 227 |
+
# REFERENCES
|
| 228 |
+
|
| 229 |
+
Alexandre Alahi, Kratarth Goel, Vignesh Ramanathan, Alexandre Robicquet, Li Fei-Fei, and Silvio Savarese. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 961–971, 2016.
|
| 230 |
+
|
| 231 |
+
Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. ACM Transactions on Graphics (TOG), 37(4):71, 2018.
|
| 232 |
+
|
| 233 |
+
Erkao Bao and Linqi Song. Equivariant neural networks and equivarification. arXiv preprint arXiv:1906.07172, 2019.
|
| 234 |
+
|
| 235 |
+
Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
|
| 236 |
+
|
| 237 |
+
Erik J Bekkers. B-spline CNNs on Lie groups. In International Conference on Learning Representations, 2020.
|
| 238 |
+
|
| 239 |
+
Richard C Brown and Gerton Lunter. An equivariant Bayesian convolutional network predicts recombination hotspots and accurately resolves binding motifs. Bioinformatics, 35(13):2177–2184, 2019.
|
| 240 |
+
|
| 241 |
+
Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, et al. Argoverse: 3d tracking and forecasting with rich maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8748–8757, 2019.
|
| 242 |
+
|
| 243 |
+
Benjamin Chidester, Minh N. Do, and Jian Ma. Rotation equivariance and invariance in convolutional neural networks. arXiv preprint arXiv:1805.12301, 2018.
|
| 244 |
+
|
| 245 |
+
Taco S. Cohen and Max Welling. Group equivariant convolutional networks. In International conference on machine learning (ICML), pp. 2990–2999, 2016a.
|
| 246 |
+
|
| 247 |
+
Taco S. Cohen and Max Welling. Steerable CNNs. arXiv preprint arXiv:1612.08498, 2016b.
|
| 248 |
+
|
| 249 |
+
Taco S Cohen, Mario Geiger, and Maurice Weiler. A general theory of equivariant CNNs on homogeneous spaces. In Advances in Neural Information Processing Systems, pp. 9142–9153, 2019a.
|
| 250 |
+
|
| 251 |
+
Taco S. Cohen, Maurice Weiler, Berkay Kicanaoglu, and Max Welling. Gauge equivariant convolutional networks and the icosahedral CNN. In Proceedings of the 36th International Conference on Machine Learning (ICML), volume 97, pp. 1321–1330, 2019b.
|
| 252 |
+
|
| 253 |
+
Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. In International Conference on Machine Learning (ICML), 2016.
|
| 254 |
+
|
| 255 |
+
Nemanja Djuric, Vladan Radosavljevic, Henggang Cui, Thi Nguyen, Fang-Chieh Chou, Tsung-Han Lin, and Jeff Schneider. Short-term motion prediction of traffic actors for autonomous driving using deep convolutional networks. arXiv preprint arXiv:1808.05819, 2018.
|
| 256 |
+
|
| 257 |
+
Carlos Esteves, Christine Allen-Blanchette, Xiaowei Zhou, and Kostas Daniilidis. Polar transformer networks. In International Conference on Learning Representations (ICLR), 2018.
|
| 258 |
+
|
| 259 |
+
Marc Finzi, Samuel Stanton, Pavel Izmailov, and Andrew Gordon Wilson. Generalizing convolutional neural networks for equivariance to Lie groups on arbitrary continuous data. arXiv preprint arXiv:2002.12880, 2020.
|
| 260 |
+
|
| 261 |
+
Fabian B Fuchs, Daniel E Worrall, Volker Fischer, and Max Welling. SE(3)-transformers: 3D roto-translation equivariant attention networks. arXiv preprint arXiv:2006.10503, 2020.
|
| 262 |
+
|
| 263 |
+
Jiyang Gao, Chen Sun, Hang Zhao, Yi Shen, Dragomir Anguelov, Congcong Li, and Cordelia Schmid. Vectornet: Encoding HD maps and agent dynamics from vectorized representation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11525–11533, 2020.
|
| 264 |
+
|
| 265 |
+
Brian Hall. Lie groups, Lie algebras, and representations: an elementary introduction, volume 222. Springer, 2015.
|
| 266 |
+
|
| 267 |
+
Pedro Hermosilla, Tobias Ritschel, Pere-Pau Vazquez, ´ Alvar Vinacua, and Timo Ropinski. Monte \` carlo convolution for learning on non-uniformly sampled point clouds. ACM Transactions on Graphics (TOG), 37(6):1–12, 2018.
|
| 268 |
+
|
| 269 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
|
| 270 |
+
|
| 271 |
+
Binh-Son Hua, Minh-Khoi Tran, and Sai-Kit Yeung. Pointwise convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 984–993, 2018.
|
| 272 |
+
|
| 273 |
+
Gurtej Kanwar, Michael S Albergo, Denis Boyda, Kyle Cranmer, Daniel C Hackett, Sebastien ´ Racaniere, Danilo Jimenez Rezende, and Phiala E Shanahan. Equivariant flow-based sampling \` for lattice gauge theory. arXiv preprint arXiv:2003.06413, 2020.
|
| 274 |
+
|
| 275 |
+
Arne Kesting, Martin Treiber, and Dirk Helbing. Enhanced intelligent driver model to access the impact of driving strategies on traffic capacity. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 368(1928):4585–4605, 2010.
|
| 276 |
+
|
| 277 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
|
| 278 |
+
|
| 279 |
+
Anthony W Knapp. Lie groups beyond an introduction, volume 140. Springer Science & Business Media, 2013.
|
| 280 |
+
|
| 281 |
+
Risi Kondor and Shubhendu Trivedi. On the generalization of equivariance and convolution in neural networks to the action of compact groups. In Proceedings of the 35th International Conference on Machine Learning (ICML), volume 80, pp. 2747–2755, 2018.
|
| 282 |
+
|
| 283 |
+
Parth Kothari, Sven Kreiss, and Alexandre Alahi. Human trajectory forecasting in crowds: A deep learning perspective. arXiv preprint arXiv:2007.03639, 2020.
|
| 284 |
+
|
| 285 |
+
Huan Lei, Naveed Akhtar, and Ajmal Mian. Octree guided CNN with spherical kernels for 3D point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9631–9640, 2019.
|
| 286 |
+
|
| 287 |
+
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.
|
| 288 |
+
|
| 289 |
+
Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Advances in neural information processing systems, pp. 820–830, 2018.
|
| 290 |
+
|
| 291 |
+
Ming Liang, Bin Yang, Rui Hu, Yun Chen, Renjie Liao, Song Feng, and Raquel Urtasun. Learning lane graph representations for motion forecasting. arXiv preprint arXiv:2007.13732, 2020.
|
| 292 |
+
|
| 293 |
+
Haggai Maron, Or Litany, Gal Chechik, and Ethan Fetaya. On learning sets of symmetric elements. In Proceedings of the 37th International Conference on Machine Learning (ICML), 2020.
|
| 294 |
+
|
| 295 |
+
Louis Albert Pipes. Car following models and the fundamental diagram of road traffic. Transportation Research/UK/, 1966.
|
| 296 |
+
|
| 297 |
+
Andrey Rudenko, Luigi Palmieri, Michael Herman, Kris M Kitani, Dariu M Gavrila, and Kai O Arras. Human motion trajectory prediction: A survey. The International Journal of Robotics Research, 39(8):895–935, 2020.
|
| 298 |
+
|
| 299 |
+
Amir Sadeghian, Vineet Kosaraju, Agrim Gupta, Silvio Savarese, and Alexandre Alahi. Trajnet: Towards a benchmark for human trajectory prediction. arXiv preprint, 2018.
|
| 300 |
+
|
| 301 |
+
Alvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying, Jure Leskovec, and Peter W Battaglia. Learning to simulate complex physics with graph networks. arXiv preprint arXiv:2002.09405, 2020.
|
| 302 |
+
|
| 303 |
+
Connor Schenck and Dieter Fox. Spnets: Differentiable fluid dynamics for deep neural networks. In Conference on Robot Learning, pp. 317–335, 2018.
|
| 304 |
+
|
| 305 |
+
Rajiv Shah and Rob Romijnders. Applying deep learning to basketball trajectories. arXiv preprint arXiv:1608.03793, 2016.
|
| 306 |
+
|
| 307 |
+
Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2530–2539, 2018.
|
| 308 |
+
|
| 309 |
+
Nathaniel Thomas, Tess Smidt, Steven Kearnes, Lusann Yang, Li Li, Kai Kohlhoff, and Patrick Riley. Tensor field networks: Rotation-and translation-equivariant neural networks for 3d point clouds. arXiv preprint arXiv:1802.08219, 2018.
|
| 310 |
+
|
| 311 |
+
Benjamin Ummenhofer, Lukas Prantl, Nils Thuerey, and Vladlen Koltun. Lagrangian fluid simulation with continuous convolutions. In International Conference on Learning Representations, 2019.
|
| 312 |
+
|
| 313 |
+
Matthew Veres and Medhat Moussa. Deep learning for intelligent transportation systems: A survey of emerging trends. IEEE Transactions on Intelligent transportation systems, 2019.
|
| 314 |
+
|
| 315 |
+
Rui Wang, Robin Walters, and Rose Yu. Incorporating symmetry into deep dynamics models for improved generalization. arXiv preprint arXiv:2002.03061, 2020.
|
| 316 |
+
|
| 317 |
+
Shenlong Wang, Simon Suo, Wei-Chiu Ma, Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2589–2597, 2018.
|
| 318 |
+
|
| 319 |
+
Maurice Weiler and Gabriele Cesa. General E(2)-equivariant steerable CNNs. In Advances in Neural Information Processing Systems (NeurIPS), pp. 14334–14345, 2019.
|
| 320 |
+
|
| 321 |
+
Maurice Weiler, Fred A. Hamprecht, and Martin Storath. Learning steerable filters for rotation equivariant CNNs. Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 322 |
+
|
| 323 |
+
Xinshuo Weng, Shangxuan Wu, Fares Beainy, and Kris M Kitani. Rotational rectification network: Enabling pedestrian detection for mobile vision. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 1084–1092. IEEE, 2018.
|
| 324 |
+
|
| 325 |
+
Daniel E Worrall, Stephan J Garbin, Daniyar Turmukhambetov, and Gabriel J Brostow. Harmonic networks: Deep translation and rotation equivariance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5028–5037, 2017.
|
| 326 |
+
|
| 327 |
+
Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9621–9630, 2019.
|
| 328 |
+
|
| 329 |
+
Shi Xingjian, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional lstm network: A machine learning approach for precipitation nowcasting. In Advances in neural information processing systems, pp. 802–810, 2015.
|
| 330 |
+
|
| 331 |
+
Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. Spidercnn: Deep learning on point sets with parameterized convolutional filters. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 87–102, 2018.
|
| 332 |
+
|
| 333 |
+
# A APPENDIX
|
| 334 |
+
|
| 335 |
+
# A.1 CONTINUOUS CONVOLUTION INVOLVING $\rho _ { \mathrm { r e g } }$
|
| 336 |
+
|
| 337 |
+
This section is a more detailed version of Section 4.4.
|
| 338 |
+
|
| 339 |
+
Define the input $\mathbf { f }$ to be $\rho _ { \mathrm { r e g } }$ -field, that is, a distribution over $\mathbb { R } ^ { 2 }$ valued in $\rho _ { \mathrm { r e g } }$ . Define $K \colon { \mathbb { R } } ^ { 2 } \to$ $\rho _ { \mathrm { r e g } } \otimes \rho _ { \mathrm { r e g } }$ . After identifying SO(2) with its underlying manifold $S ^ { 1 }$ , we can identify $K ( \mathbf { x } )$ as a map $S ^ { 1 } \times S ^ { 1 } \to \mathbb { R }$ and $f ^ { ( \mathbf { x } ) } \colon S ^ { 1 } \to \mathbb { R }$ . Define the integral transform
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
K ( \mathbf { x } ) \odot f ^ { ( \mathbf { x } ) } ( \phi _ { 2 } ) = \int _ { \phi _ { 1 } \in S ^ { 1 } } K ( \mathbf { x } ) ( \phi _ { 2 } , \phi _ { 1 } ) f ^ { ( \mathbf { x } ) } ( \phi _ { 1 } ) d \phi _ { 1 } .
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
For $\mathbf { y } \in \mathbb { R } ^ { 2 }$ , define the convolution $\mathbf { g } = K \star \mathbf { f }$ by
|
| 346 |
+
|
| 347 |
+
$$
|
| 348 |
+
\mathbf { g } ( y ) = \int _ { x \in \mathbb { R } ^ { 2 } } K ( x ) \odot \mathbf { f } ( x + y ) d x .
|
| 349 |
+
$$
|
| 350 |
+
|
| 351 |
+
The $\circledcirc$ -operation parameterizes linear maps $\rho _ { \mathrm { r e g } } \rho _ { \mathrm { r e g } }$ and is thus analogous to matrix multiplication. If we chose to restrict our choice of $\kappa$ to $\kappa ( \phi _ { 2 } , \phi _ { 1 } ) = \widetilde { \kappa } ( \phi _ { 2 } - \phi _ { 1 } )$ for some function $\tilde { \kappa } \colon S ^ { 1 } \to { \mathbb { R } }$ then this becomes the circular convolution operation.
|
| 352 |
+
|
| 353 |
+
The $S O ( 2 )$ -action on $\rho _ { \mathrm { r e g } }$ by $\operatorname { R o t } _ { \theta } ( f ) ( \phi ) = f ( \phi - \theta )$ induces an action on $\kappa \colon S ^ { 1 } \times S ^ { 1 } \to \mathbb { R }$ by
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
\mathrm { R o t } _ { \theta } ( \kappa ) ( \phi _ { 2 } , \phi _ { 1 } ) = \kappa ( \phi _ { 2 } - \theta , \phi _ { 1 } - \theta ) .
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
This, in turn, gives an action on the torus-field $K$ by
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
\operatorname { R o t } _ { \theta } ( K ) ( x ) ( \phi _ { 2 } , \phi _ { 1 } ) = K ( \operatorname { R o t } _ { - \theta } ( x ) ) ( \phi _ { 2 } - \theta , \phi _ { 1 } - \theta ) .
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
Thus Equation 3, the convolutional kernel constraint, implies that $K$ is equivariant if and only if
|
| 366 |
+
|
| 367 |
+
$$
|
| 368 |
+
K ( \mathrm { R o t } _ { \theta } ( x ) ) ( \phi _ { 2 } , \phi _ { 1 } ) = K ( x ) ( \phi _ { 2 } - \theta , \phi _ { 1 } - \theta ) .
|
| 369 |
+
$$
|
| 370 |
+
|
| 371 |
+
We use this to define a weight sharing scheme as described in Section 3.2. The cases of continuous convolution $\rho _ { 1 } \rho _ { \mathrm { r e g } }$ and $\rho _ { \mathrm { r e g } } \rho _ { 1 }$ may be derived similarly.
|
| 372 |
+
|
| 373 |
+
# A.2 COMPLEXITY OF CONVOLUTION WITH TORUS KERNEL
|
| 374 |
+
|
| 375 |
+
The complexity class of the convolution with torus kernel is $O ( n \cdot k _ { r e g } ^ { 2 } \cdot c _ { o u t } \cdot c _ { i n } )$ , where $n$ is the number of particles, the regular representation is discretized into $k _ { r e g }$ pieces, and the input and output contain $c _ { i n }$ and $c _ { o u t }$ copies of the regular representation respectively. We are not counting the complexity of the interpolation operation for looking up $K ( \theta , r )$ .
|
| 376 |
+
|
| 377 |
+
# A.3 EQUIVARIANT PER-PARTICLE LINEAR LAYERS
|
| 378 |
+
|
| 379 |
+
Since this operation is pointwise, unlike positive radius continuous convolution, we cannot map between different irreducible representations of SO(2). Consider as input a $\rho _ { \mathrm { i n } }$ -field $I$ and output a $\rho _ { \mathrm { o u t } }$ -field $O$ where $\rho _ { \mathrm { i n } }$ and $\rho _ { \mathrm { o u t } }$ are finite-dimensional representations of SO(2). We define $O ^ { ( i ) } =$ $W I ^ { ( i ) }$ using the same $W$ , an equivariant linear map, for each particle $1 \leq i \leq N$ . Denote the decomposition of $\rho _ { \mathrm { i n } }$ and $\rho _ { \mathrm { o u t } }$ into irreducible representations of $S O ( 2 )$ as $\rho _ { \mathrm { i n } } \cong \rho _ { 1 } ^ { i _ { 1 } } \oplus . . . \oplus \rho _ { n } ^ { i _ { n } }$ and $\rho _ { \mathrm { o u t } } \cong \rho _ { 1 } ^ { j _ { 1 } } \oplus . . . \oplus \rho _ { n } ^ { j _ { n } }$ respectively. By Schur’s lemma, the equivariant linear map $W \colon \rho _ { \mathrm { i n } } \rho _ { \mathrm { o u t } }$ is defined by a block diagonal matrix with blocks $\{ W _ { k } \} _ { k = 1 } ^ { n }$ where $W _ { k }$ is an $i _ { k } \times j _ { k }$ matrix. That is, maps between different irreducible representations are zero and each map $\rho _ { k } \to \rho _ { k }$ is given by a single scalar.
|
| 380 |
+
|
| 381 |
+
Per-particle linear mapping $\rho _ { 1 } \rho _ { \mathrm { r e g } }$ and $\rho _ { 1 } \rho _ { \mathrm { r e g } }$ . Since the input and output features are $\rho _ { 1 }$ -fields, but the hidden features may be represented by $\rho _ { \mathrm { r e g } }$ , we need mappings between $\rho _ { 1 }$ and $\rho _ { \mathrm { r e g } }$ . In all cases we pair continuous convolutions with dense per-particle mappings, this we must describe per-particle mappings between $\rho _ { 1 }$ and $\rho _ { \mathrm { r e g } }$ .
|
| 382 |
+
|
| 383 |
+
By the Peter-Weyl theorem, $L ^ { 2 } ( \mathrm { S O ( 2 ) } ) \cong \bigoplus _ { i = 0 } ^ { \infty } \rho _ { i }$ . In the case of $\mathrm { S O } ( 2 )$ , this decomposition is also called the Fourier decomposition or decomposition into circular harmonics. Most importantly, there is one copy of $\rho _ { 1 }$ inside of $L ^ { 2 } ( \mathrm { S O } ( 2 ) )$ . Hence, up to scalar, there is a unique linear map $i _ { 1 } \colon \rho _ { 1 } L ^ { 2 } ( \mathrm { S } \overleftarrow { \mathrm { O } } ( 2 ) )$ given by $( a , b ) \mapsto a \cos ( \theta ) + b \sin ( \theta )$ .
|
| 384 |
+
|
| 385 |
+
The reverse mapping $\mathrm { p r } _ { 1 } \colon L ^ { 2 } ( \mathrm { S O } ( 2 ) ) \rho _ { 1 }$ is projection onto the $\rho _ { 1 }$ summand and is given by the Fourier transform $\begin{array} { r } { \mathrm { p r } _ { \mathrm { i } } ( f ) = ( \int _ { S ^ { 1 } } f ( \theta ) \cos ( \theta ) d \theta , \int _ { S ^ { 1 } } f ( \theta ) \sin ( \theta ) d \theta ) } \end{array}$ .
|
| 386 |
+
|
| 387 |
+
Per-particle linear mapping $\rho _ { \mathrm { r e g } } \rho _ { \mathrm { r e g } }$ . Though $\rho _ { \mathrm { r e g } }$ is not finite-dimensional, the fact that it decomposes into a direct sum of irreducible representations means that we may take $\rho _ { \mathrm { i n } } = \rho _ { \mathrm { o u t } } =$ $\rho _ { \mathrm { r e g } }$ above. Practically, however, it is easier to realize the linear equivariant map $\rho _ { \mathrm { r e g } } ^ { i } \rho _ { \mathrm { r e g } } ^ { j }$ as a convolution over $S ^ { 1 }$ ,
|
| 388 |
+
|
| 389 |
+
$$
|
| 390 |
+
O ( \theta ) = \int _ { \phi \in S ^ { 1 } } \kappa ( \theta - \phi ) I ( \phi )
|
| 391 |
+
$$
|
| 392 |
+
|
| 393 |
+
where $\kappa ( \theta )$ is an $i \times j$ matrix of trainable weights, independent for each $\theta$
|
| 394 |
+
|
| 395 |
+
# A.4 ENCODING INDIVIDUAL PARTICLE PAST BEHAVIOR
|
| 396 |
+
|
| 397 |
+
We can encode these individual attributes using a per vehicle LSTM (Hochreiter & Schmidhuber, 1997). Let $X _ { t } ^ { ( i ) }$ denote the position of car $i$ at time $t$ . Denote a fully connected LSTM cell by states $h _ { t } , c _ { t } = \mathtt { L S T M } ( X _ { t } ^ { ( i ) } , h _ { t - 1 } , c _ { t - 1 } )$ $[ h _ { t _ { \mathrm { i n } } } ^ { ( 1 ) } \ . . . \ h _ { t _ { \mathrm { i n } } } ^ { ( n ) } ]$ of all particles as . Define $Z \in \mathbb { R } ^ { N } \otimes \mathbb { R } ^ { k }$ $h _ { 0 } = c _ { 0 } = 0$ . We then use the concatenation of the hidden as the encoded per-vehicle latent features.
|
| 398 |
+
|
| 399 |
+
# A.5 ENCODING PAST INTERACTIONS
|
| 400 |
+
|
| 401 |
+
In addition, we also encode past interactions of particles by introducing a continuous convolution LSTM. Similar to convLSTM we replace the fully connected layers of the original LSTM above with another operation Xingjian et al. (2015). While convLSTM is well-suited for capturing spatially local interactions over time, it requires gridded information. Since the particle system we consider are distributed in continuous space, we replace the standard convolution with rotation-equivariant continuous convolutions.
|
| 402 |
+
|
| 403 |
+
We can now define $H _ { t } , C _ { t } = \mathtt { C t s C o n v L S T M } ( X _ { t } , H _ { t - 1 } , C _ { t - 1 } )$ which is an LSTM cell using equivariant continuous convolutions throughout. Note that in this case $X _ { t } , H _ { t - 1 } , C _ { t - 1 }$ are all particle feature fields, that is, functions $\{ 1 , \ldots , n \} \to \mathbb { R } ^ { k }$ .
|
| 404 |
+
|
| 405 |
+
Define CtsConvLSTM by
|
| 406 |
+
|
| 407 |
+
$$
|
| 408 |
+
\begin{array} { r l } & { i _ { t } = \sigma ( W _ { i x } \star _ { c t s } X _ { t } ^ { ( i ) } + W _ { i h } \star _ { c t s } h _ { t - 1 } + W _ { i c } \circ c _ { t - 1 } + b _ { i } ) } \\ & { f _ { t } = \sigma ( W _ { f x } \star _ { c t s } X _ { t } ^ { ( i ) } + W _ { f h } \star _ { c t s } h _ { t - 1 } + W _ { f c } \circ c _ { t - 1 } + b _ { i } ) } \\ & { c _ { t } = f _ { t } \circ c _ { t - 1 } + i _ { t } \circ \operatorname { t a n h } ( W _ { c x } \star _ { c t s } X _ { t } ^ { ( i ) } + W _ { c h } \star _ { c t s } h _ { t - 1 } + b _ { c } ) } \\ & { o _ { t } = \sigma ( W _ { o x } \star _ { c t s } X _ { t } ^ { ( i ) } + W _ { o h } \star _ { c t s } h _ { t - 1 } + W _ { o c } \circ c _ { t } + b _ { o } ) } \\ & { h _ { t } = o _ { t } \circ \operatorname { t a n h } ( c _ { t } ) , } \end{array}
|
| 409 |
+
$$
|
| 410 |
+
|
| 411 |
+
where $\star _ { c t s }$ denotes CtsConv. We then can use $H _ { t _ { \mathrm { i n } } }$ as input feature for the prediction network.
|
| 412 |
+
|
| 413 |
+
# A.6 EQUIVARIANCE ERROR
|
| 414 |
+
|
| 415 |
+
We prove the proposition in Section 4.5.
|
| 416 |
+
|
| 417 |
+
Proposition. Let $\alpha = 2 \pi / k _ { \theta }$ . Let $\bar { \theta }$ be $\theta$ rounded to nearest value in $\mathbb { Z } \alpha$ . Set $\hat { \theta } = | \theta - \bar { \theta } |$ . Assume $n$ particles samples uniformly in a ball of radius $R$ with features f $\in \rho _ { 1 } ^ { c }$ . Let f and $K$ have entries sampled uniformly in $[ - a , a ]$ . Let the bullseye have radius $0 < R _ { e } < R$ . Let $F = C t s C o n v _ { K , R }$ and $T _ { \theta } = \rho _ { 1 } ( \operatorname { R o t } _ { \theta } )$ . Then the expected EE is bounded
|
| 418 |
+
|
| 419 |
+
$$
|
| 420 |
+
\mathbb { E } _ { K , \mathbf { f } , \mathbf { x } } [ T ( F ( \mathbf { f } , \mathbf { x } ) ) - F ( T ( \mathbf { f } ) , T ( \mathbf { x } ) ) ] \le | \sin ( \hat { \theta } ) | C \le 2 \pi C / k _ { \theta }
|
| 421 |
+
$$
|
| 422 |
+
|
| 423 |
+
where $C = 4 c n a ^ { 2 } ( 1 - R _ { e } ^ { 2 } / R ^ { 2 } )$ .
|
| 424 |
+
|
| 425 |
+
Proof. We may compute for a single particle $\mathbf { x } = ( \psi , r )$ and multiply our result by $n$ by linearity. We separate two cases: $\mathbf { x }$ in bullseye with probability $R _ { e } ^ { 2 } / R ^ { 2 }$ and $\mathbf { x }$ in angular slice with probability $1 - R _ { e } ^ { \dot { 2 } } / R ^ { 2 }$ . If $\mathbf { x }$ is in the bullseye, then there is no equivariance error since $K ( \mathbf { x } )$ is a scalar matrix. Assume $\mathbf { x }$ is an angular sector.
|
| 426 |
+
|
| 427 |
+
For nearest interpolation, the equivariance error is then
|
| 428 |
+
|
| 429 |
+
$$
|
| 430 |
+
\| \rho _ { 1 } ( { \bar { \theta } } ) K ( \mathbf { x } ) \rho _ { 1 } ( - { \bar { \theta } } ) \rho _ { 1 } ( \theta ) \mathbf { f } - \rho _ { 1 } ( \theta ) K ( \mathbf { x } ) \mathbf { f } \| .
|
| 431 |
+
$$
|
| 432 |
+
|
| 433 |
+
Since $\rho _ { 1 } ( \theta )$ is length preserving, this is
|
| 434 |
+
|
| 435 |
+
$$
|
| 436 |
+
\begin{array} { r l } & { \quad \| \rho _ { 1 } ( - \theta ) \rho _ { 1 } ( \bar { \theta } ) K ( \mathbf { x } ) \rho _ { 1 } ( - \bar { \theta } ) \rho _ { 1 } ( \theta ) \mathbf { f } - K ( \mathbf { x } ) \mathbf { f } \| } \\ & { = \| \rho _ { 1 } ( \beta ) K ( \mathbf { x } ) \rho _ { 1 } ( - \beta ) \mathbf { f } - K ( \mathbf { x } ) \mathbf { f } \| } \end{array}
|
| 437 |
+
$$
|
| 438 |
+
|
| 439 |
+
where $\beta = \pm \hat { \theta }$ . We consider only a single factor of $\rho _ { 1 }$ in f . The result will then be multiplied by $c$ Let
|
| 440 |
+
|
| 441 |
+
$$
|
| 442 |
+
K ( \mathbf { x } ) = \left( \begin{array} { l l } { k _ { 1 1 } } & { k _ { 1 2 } } \\ { k _ { 2 1 } } & { k _ { 2 2 } } \end{array} \right) , \qquad \mathbf { f } = \left( \begin{array} { l } { f _ { 1 } } \\ { f _ { 2 } } \end{array} \right) .
|
| 443 |
+
$$
|
| 444 |
+
|
| 445 |
+
We can factor out an $a$ from $K ( \mathbf { x } )$ and an $a$ from f and assume $k _ { i j } , f _ { i }$ samples from Uniform $( [ - 1 , 1 ] )$ . One may then directly compute that Equation 7 equals
|
| 446 |
+
|
| 447 |
+
$$
|
| 448 |
+
\sqrt { ( ( k _ { 2 1 } + k _ { 1 2 } ) ^ { 2 } + ( k _ { 1 1 } - k _ { 2 2 } ) ^ { 2 } ) ( f _ { 1 } ^ { 2 } + f _ { 2 } ^ { 2 } ) \sin ^ { 2 } ( \beta ) }
|
| 449 |
+
$$
|
| 450 |
+
|
| 451 |
+
This is bounded above by $4 | \sin ( \beta ) | = 4 | \sin ( { \hat { \theta } } ) |$ . Collecting the above factors, this proves the bound $C | \sin ( \beta ) |$ .
|
| 452 |
+
|
| 453 |
+
The further bound follows by the first order bound,
|
| 454 |
+
|
| 455 |
+
$$
|
| 456 |
+
| \sin ( \hat { \theta } ) | \leq | \hat { \theta } | \leq 2 \pi / k _ { \theta } .
|
| 457 |
+
$$
|
| 458 |
+
|
| 459 |
+
The relationship $\mathrm { E E } \approx 2 \pi C / k _ { \theta }$ is visible in Figure 4. We can also see clearly the significance of the term $| \sin ( { \hat { \theta } } ) |$ by plotting equivariance error against $\theta$ as in Figure 7.
|
| 460 |
+
|
| 461 |
+

|
| 462 |
+
Figure 7: The above plot is generated from random input and kernels. We can clearly see the dependence of of EE on $| \sin ( { \hat { \theta } } ) |$
|
| 463 |
+
|
| 464 |
+
# A.7 DATA DETAILS
|
| 465 |
+
|
| 466 |
+
Argoverse dataset includes 324K samples, which are split into 206K training data, 39K validation and 78K test set. All the samples are real data extracted from Miami and Seattle, and the dataset provides HD maps of lanes in each city. Every sample contains data for 5 seconds long, and is sampled in $1 0 \mathrm { H z }$ frequency.
|
| 467 |
+
|
| 468 |
+
TrajNet+ $^ +$ Real dataset contains 200K samples. All the tracking in this dataset is captured in both indoor and outdoor locations, for example, university, hotel, Zara, and train stations. Every sample in this dataset contains 21 timestamps, and the goal is to predict the 2D spatial positions for each pedestrain in the future 12 timestamps.
|
| 469 |
+
|
| 470 |
+
# A.8 IMPLEMENTATION DETAILS
|
| 471 |
+
|
| 472 |
+
Argoverse dataset is not fully observed, so we only use cars with complete observation as our input. Since every sample doesn’t include the same number of cars, we only choose those scenes with less than or equal to 60 cars and insert dummy cars into them to achieve consistent car numbers. Tra${ \mathrm { j N e t } } + +$ Real dataset is also not fully observed. And here we keep our pedestrain number consistent to 160.
|
| 473 |
+
|
| 474 |
+
Moreover, for each car, we use the average velocity in the past 0.1 second as an approximate to the current instant velocity, i.e. $v _ { t } = ( p _ { t } - p _ { t - 1 } ) / 2$ . As for map information, we only include center lanes with lane directions as features. Also, we introduce dummy lane node into each scene to make lane numbers consistently equal to 650.
|
| 475 |
+
|
| 476 |
+
In TrajNet $^ { + + }$ task, no map information is included. And since pedestrians don’t have a speedometers to tell them exactly how fast they are moving as drivers, instead they depends more on the relative velocities and relative positions to other pedestrians, we tried different combination of features in ablative study besides only using history velocities.
|
| 477 |
+
|
| 478 |
+
Our models are all trained by Adam optimizer with base learning rate 0.001, and the gamma rate for linear rate scheduler is set to be 0.95. All our models without map information are trained for 15K iterations with batch size 16 and learning rate is updated every 300 iterations; for models with map information, we train them for 30K iterations with batch size 16 and learning rate is updated every 600 iterations.
|
| 479 |
+
|
| 480 |
+
For CtsConv, we set the layer sizes to be 32, 64, 64, 64, and kernel size $4 \times 4 \times 4$ ; for $\rho _ { 1 }$ -ECCO, the layer sizes are 16, 32, 32, 32, $k _ { \theta }$ is 16, $k _ { r }$ is 3; for $\rho _ { \mathrm { r e g } }$ -ECCO, we choose layer size 8, 16, 8, 8, $k _ { \theta }$ 16, $k _ { r }$ 3, and regular feature dimension is set to be 8. For Argoverse task, we set the CtsConv radius to be 40, and for TrajNet++ task we set it to be 6.
|
| 481 |
+
|
| 482 |
+
# A.9 ABLATIVE STUDY
|
| 483 |
+
|
| 484 |
+
We perform ablative study for ECCO to further diagnose different encoders, usage of HD maps and other model design choices.
|
| 485 |
+
|
| 486 |
+
Choice of encoders Unlike fluid simulations (Ummenhofer et al., 2019) where the dynamics are Markovian, human behavior exhibit long-term dependency. We experiment with three different encoders refered to as Enc to model such long-term dependency: (1) concatenating the velocities from the past $m$ frames as input feature, (2) passing the past velocities of each particle to the same LSTM to encode individual behavior of each particle, and (3) implementing continuous convolution LSTM to encode past particle interactions. Our continuous convolution LSTM is similar to convLSTM (Xingjian et al., 2015) but uses continuous convolutions instead of discrete gridded convolutions.
|
| 487 |
+
|
| 488 |
+
We use different encoders to time-aggregate features and compare their performances (Table 3).
|
| 489 |
+
|
| 490 |
+
Use of HD Maps In Table 4, we compare performance with and without map input features.
|
| 491 |
+
|
| 492 |
+
Choice of features for pedestrian Unlike vehicles, people do not have a velocity meter to tell him how fast they actually walk. We realize that people actually tend to adjust their velocities based on others’ relative velocity and relative position. We experiment different combination of features (Table 5), finding using relative velocities and relative positions as feature has the best performance.
|
| 493 |
+
|
| 494 |
+
# A.10 QUALITATIVE RESULTS FOR TRAJNET++
|
| 495 |
+
|
| 496 |
+
Figure 8 show qualitative results for TrajNet++. Note that the non-equivariant baseline (2nd column) depends highly on the global orientation whereas the ground truth and equivariant models do not.
|
| 497 |
+
|
| 498 |
+
Table 3: Ablation study on encoders for Argoverse and TrajNet++. Markovian: Use the velocity from the most recent time step as input feature. LSTM: Used LSTM to encode velocities of 20 timestamps. CtsConvLSTM: Instead of dense layer, the gate functions in LSTM are replaced by CtsConv. CtsConvDLSTM: Replaced gate functions by CtsConv $^ +$ Dense. D-Concat (20t feats): Stacked velocities of 20 time steps as input.
|
| 499 |
+
|
| 500 |
+
<table><tr><td rowspan="2">Encoder</td><td colspan="4">Argoverse</td><td colspan="2">TrajNet++</td></tr><tr><td>ADE</td><td>DE@1s</td><td>DE@2s</td><td>DE@3s</td><td>ADE</td><td>FDE</td></tr><tr><td>Markovian</td><td>4.67</td><td>=</td><td>=</td><td>9.84</td><td>0.969</td><td>1.952</td></tr><tr><td>LSTM</td><td>2.05</td><td>1.06</td><td>2.51</td><td>4.71</td><td>0.909</td><td>1.909</td></tr><tr><td>CtsConvLSTM</td><td>3.98</td><td>2.02</td><td>5.11</td><td>8.40</td><td>0.962</td><td>1.941</td></tr><tr><td>CtsConvDLSTM</td><td>2.02</td><td>1.03</td><td>2.46</td><td>4.58</td><td>0.910</td><td>1.916</td></tr><tr><td>D-Concat(20t feats)</td><td>1.87</td><td>1.01</td><td>2.43</td><td>4.22</td><td>0.895</td><td>1.872</td></tr></table>
|
| 501 |
+
|
| 502 |
+
Table 4: Ablative study on HD maps for Argoverse. Prediction accuracy comparison with and without HD Maps.
|
| 503 |
+
|
| 504 |
+
<table><tr><td rowspan="2">Model</td><td colspan="4">w/o Map</td><td colspan="4">w/Map</td></tr><tr><td>ADE</td><td>DE@1s</td><td>DE@2s</td><td>DE@3s</td><td>ADE</td><td>DE@1s</td><td>DE@2s</td><td>DE@3s</td></tr><tr><td>CtsConv</td><td>1.87</td><td>1.01</td><td>2.43</td><td>4.22</td><td>1.85</td><td>0.99</td><td>2.42</td><td>4.32</td></tr><tr><td>P1-ECCO</td><td>1.81</td><td>1.02</td><td>2.42</td><td>4.14</td><td>1.70</td><td>0.93</td><td>2.22</td><td>3.89</td></tr><tr><td>Preg-ECCO</td><td>1.81</td><td>1.00</td><td>2.38</td><td>4.12</td><td>1.62</td><td>0.89</td><td>2.12</td><td>3.68</td></tr></table>
|
| 505 |
+
|
| 506 |
+
Table 5: Ablative study on features for $\mathrm { T r a j } { + + }$ . Acceleration means whether we used acceleration to make numerically extrapolated position.
|
| 507 |
+
|
| 508 |
+
<table><tr><td>Velocity</td><td>Relative Position丨Acceleration</td><td></td><td>ADE</td><td>FDE</td></tr><tr><td>Absolute</td><td>×</td><td>×</td><td>0.92</td><td>1.95</td></tr><tr><td>Absolute</td><td>×</td><td></td><td>0.90</td><td>1.87</td></tr><tr><td>Relative</td><td>×</td><td>√</td><td>0.89</td><td>1.86</td></tr><tr><td>Relative</td><td>√</td><td>√</td><td>0.86</td><td>1.79</td></tr></table>
|
| 509 |
+
|
| 510 |
+

|
| 511 |
+
Figure 8: The x,y-axes are the position $\mathrm { ( m ) }$ . The dashed line represents the 2s past trajectory. The solid line represents the 3s prediction. Red represents the agent. Top row: The predictions are made on the original data. Bottom row: We rotate the whole scene by $1 6 0 ^ { \circ }$ and make predictions on rotated data. From left to right are visualizations of ground truth, CtsConv, $\rho _ { 1 }$ -ECCO, $\rho _ { \mathrm { r e g } }$ -ECCO.
|
parse/train/J8_GttYLFgr/J8_GttYLFgr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/J8_GttYLFgr/J8_GttYLFgr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/J8_GttYLFgr/J8_GttYLFgr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/TtYSU29zgR/TtYSU29zgR.md
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PRIMAL WASSERSTEIN IMITATION LEARNING
|
| 2 |
+
|
| 3 |
+
Robert Dadashi∗1, Léonard Hussenot1,2, Matthieu Geist1, Olivier Pietquin1
|
| 4 |
+
1Google Research, Brain Team
|
| 5 |
+
2Univ. de Lille, CNRS, Inria Scool, UMR 9189 CRIStAL
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Imitation Learning (IL) methods seek to match the behavior of an agent with that of an expert. In the present work, we propose a new IL method based on a conceptually simple algorithm: Primal Wasserstein Imitation Learning (PWIL), which ties to the primal form of the Wasserstein distance between the expert and the agent state-action distributions. We present a reward function which is derived offline, as opposed to recent adversarial $\mathrm { I L }$ algorithms that learn a reward function through interactions with the environment, and which requires little fine-tuning. We show that we can recover expert behavior on a variety of continuous control tasks of the MuJoCo domain in a sample efficient manner in terms of agent interactions and of expert interactions with the environment. Finally, we show that the behavior of the agent we train matches the behavior of the expert with the Wasserstein distance, rather than the commonly used proxy of performance.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Reinforcement Learning (RL) has solved a number of difficult tasks whether in games (Tesauro, 1995; Mnih et al., 2015; Silver et al., 2016) or robotics (Abbeel & Ng, 2004; Andrychowicz et al., 2020). However, RL relies on the existence of a reward function, that can be either hard to specify or too sparse to be used in practice. Imitation Learning (IL) is a paradigm that applies to these environments with hard to specify rewards: we seek to solve a task by learning a policy from a fixed number of demonstrations generated by an expert.
|
| 14 |
+
|
| 15 |
+
IL methods can typically be folded into two paradigms: Behavioral Cloning, or BC (Pomerleau, 1991; Bagnell et al., 2007; Ross & Bagnell, 2010) and Inverse Reinforcement Learning, or IRL (Russell, 1998; Ng et al., 2000). In BC, we seek to recover the expert’s behavior by directly learning a policy that matches the expert behavior in some sense. In IRL, we assume that the demonstrations come from an agent that acts optimally with respect to an unknown reward function that we seek to recover, to subsequently train an agent on it. Although IRL methods introduce an intermediary problem (i.e. recovering the environment’s reward) they are less sensitive to distributional shift (Pomerleau, 1991), they generalize to environments with different dynamics (Piot et al., 2013), and they can recover a near-optimal agent from suboptimal demonstrations (Brown et al., 2019; Jacq et al., 2019).
|
| 16 |
+
|
| 17 |
+
However, IRL methods are usually based on an iterative process alternating between reward estimation and RL, which might result in poor sample-efficiency. Earlier IRL methods $\mathrm { N g }$ et al., 2000; Abbeel & Ng, 2004; Ziebart et al., 2008) require multiple calls to a Markov decision process solver (Puterman, 2014), whereas recent adversarial IL approaches (Finn et al., 2016; Ho & Ermon, 2016; Fu et al., 2018) interleave the learning of the reward function with the learning process of the agent. Adversarial IL methods are based on an adversarial training paradigm similar to Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), where the learned reward function can be thought of as the confusion of a discriminator that learns to differentiate expert transitions from non expert ones. These methods are well suited to the IL problem since they implicitly minimize an $f$ -divergence between the state-action distribution of an expert and the state-action distribution of the learning agent (Ghasemipour et al., 2019; Ke et al., 2019). However the interaction between a generator (the policy) and the discriminator (the reward function) makes it a minmax optimization problem, and therefore comes with practical challenges that might include training instability, sensitivity to hyperparameters and poor sample efficiency.
|
| 18 |
+
|
| 19 |
+
In this work, we use the Wasserstein distance as a measure between the state-action distributions of the expert and of the agent. Contrary to $f$ -divergences, the Wasserstein distance is a true distance, it is smooth and it is based on the geometry of the metric space it operates on. The Wasserstein distance has gained popularity in GAN approaches (Arjovsky et al., 2017) through its dual formulation which comes with challenges (see Section 5). Our approach is novel in the fact that we consider the problem of minimizing the Wasserstein distance through its primal formulation. Crucially, the primal formulation prevents the minmax optimization problem, and requires little fine tuning.
|
| 20 |
+
|
| 21 |
+
We introduce a reward function computed offline based on an upper bound of the primal form of the Wasserstein distance. As the Wasserstein distance requires a distance between state-action pairs, we show that it can be hand-defined for locomotion tasks, and that it can be learned from pixels for a hand manipulation task. The inferred reward function is non-stationary, like adversarial IL methods, but it is not re-evaluated as the agent interacts with the environment, therefore the reward function we define is computed offline. We present a true distance to compare the behavior of the expert and the behavior of the agent, rather than using the common proxy of performance with respect to the true return of the task we consider (as it is unknown in general). Our method recovers expert behaviour comparably to existing state-of-the-art methods while being based on significantly fewer hyperparameters; it operates even in the extreme low data regime of demonstrations, and is the first method that makes Humanoid run with a single (subsampled) demonstration.
|
| 22 |
+
|
| 23 |
+
# 2 BACKGROUND AND NOTATIONS
|
| 24 |
+
|
| 25 |
+
Markov decision processes. We describe environments as episodic Markov Decision Processes (MDP) with finite time horizon (Sutton & Barto, 2018) $( \mathcal { S } , \mathcal { A } , \mathcal { P } , r , \gamma , \rho _ { 0 } , T )$ , where $s$ is the state space, $\mathcal { A }$ is the action space, $\mathcal { P }$ is the transition kernel, $r$ is the reward function, $\gamma$ is the discount factor, $\rho _ { 0 }$ is the initial state distribution and $T$ is the time horizon. We will denote the dimensionality of $s$ and $\mathcal { A }$ as $| S |$ and $| { \cal A } |$ respectively. A policy $\pi$ is a mapping from states to distributions over actions; we denote the space of all policies by $\Pi$ . In RL, the goal is to learn a policy $\pi ^ { * }$ that maximizes the expected sum of discounted rewards it encounters, that is, the expected return. Depending on the context, we might use the concept of a cost $c$ rather than a reward $r$ (Puterman, 2014), which essentially moves the goal of the policy from maximizing its return to minimizing its cumlative cost.
|
| 26 |
+
|
| 27 |
+
State action distributions. Suppose a policy $\pi$ visits the successive states and actions $s _ { 1 } , a _ { 1 } , \ldots , s _ { T } , a _ { T }$ during an episode, we define the empirical state-action distribution $\hat { \rho } _ { \pi }$ as: $\begin{array} { r } { \hat { \rho } _ { \pi } = \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \delta _ { s _ { t } , a _ { t } } } \end{array}$ , where $\delta _ { s _ { t } , a _ { t } }$ is a Dirac distribution centered on $( s _ { t } , a _ { t } )$ . Similarly, suppose we have a set of expert demonstrations $\mathcal { D } = \{ s ^ { e } , a ^ { e } \}$ of size $D$ , then the associated empirical expert state-action distribution $\hat { \rho } _ { e }$ is defined as: $\begin{array} { r } { \hat { \rho } _ { e } = \frac { 1 } { D } \sum _ { ( s , a ) \in \mathcal { D } } \delta _ { s , a } } \end{array}$ .
|
| 28 |
+
|
| 29 |
+
Wasserstein distance. Suppose we have the metric space $( M , d )$ where $M$ is a set and $d$ is a metric on $M$ . Suppose we have $\mu$ and $\nu$ two distributions on $M$ with finite moments, the $p$ -th order Wasserstein distance (Villani, 2008) is defined as $\begin{array} { r } { \mathcal { W } _ { p } ^ { p } ( \mu , \nu ) = \operatorname* { i n f } _ { \theta \in \Theta ( \mu , \nu ) } \int _ { M \times M } d ( x , y ) ^ { p } d \theta ( x , y ) , } \end{array}$ where $\Theta ( \mu , \nu )$ is the set of all couplings between $\mu$ and $\nu$ . In the remainder, we only consider distributions with finite support. A coupling between two distributions of support cardinal $T$ and $D$ is a doubly stochastic matrix of size $T \times D$ . We note $\Theta$ the set of all doubly stochastic matrices of size $T \times D$ :
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\Theta = \Big \{ \theta \in \mathbb { R } _ { + } ^ { T \times D } \ | \ \forall j \in [ 1 : D ] , \sum _ { i ^ { \prime } = 1 } ^ { T } \theta [ i ^ { \prime } , j ] = \frac { 1 } { D } , \forall i \in [ 1 : T ] , \sum _ { j ^ { \prime } = 1 } ^ { D } \theta [ i , j ^ { \prime } ] = \frac { 1 } { T } \Big \} .
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
The Wasserstein distance between distributions of state-action pairs requires the definition of a metric $d$ in the space $( \cal { S } , \cal { A } )$ . Defining a metric in an MDP is non trivial (Ferns et al., 2004; Mahadevan & Maggioni, 2007); we show an example where the metric is learned from demonstrations in Section 4.4. For now, we assume the existence of a metric $d : ( S , \mathcal { A } ) \times ( S , \mathcal { A } ) \mapsto \mathbb { R } ^ { + }$ .
|
| 36 |
+
|
| 37 |
+
# 3 METHOD
|
| 38 |
+
|
| 39 |
+
We present the theoretical motivation of our approach: the minimization of the Wasserstein distance between the state-action distributions of the agent and the expert. We introduce a reward based on an upper-bound of the primal form of the Wasserstein distance inferred from a relaxation of
|
| 40 |
+
|
| 41 |
+
the optimal coupling condition, and present the resulting algorithm: Primal Wasserstein Imitation Learning (PWIL).
|
| 42 |
+
|
| 43 |
+
# 3.1 WASSERSTEIN DISTANCE MINIMIZATION
|
| 44 |
+
|
| 45 |
+
Central to our approach is the minimization of the Wasserstein distance between the state-action distribution of the policy we seek to train $\hat { \rho } _ { \pi }$ and the state-action distribution of the expert $\hat { \rho } _ { e }$ . In other words, we aim at optimizing the following problem:
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
\operatorname* { i n f } _ { \pi \in \Pi } \mathcal { W } _ { p } ^ { p } ( \hat { \rho } _ { \pi } , \hat { \rho } _ { e } ) = \operatorname* { i n f } _ { \pi \in \Pi } \operatorname* { i n f } _ { \theta \in \Theta } \sum _ { i = 1 } ^ { T } \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) ^ { p } \theta [ i , j ] .
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
In the rest of the paper, we only consider the 1-Wasserstein $p = 1$ in Equation 1) and leave the extensive study of the influence of the order $p$ for future work. We can interpret the Wasserstein distance using the earth’s movers analogy (Villani, 2008). Consider that the state-action pairs of the expert are $D$ holes of mass $D ^ { - 1 }$ and that the state-action pairs of the policy are piles of dirt of mass $T ^ { \dot { - } 1 }$ . A coupling $\theta$ is a transport strategy between the piles of dirt and the holes, where $\theta [ i , j ]$ stands for how much of the pile of dirt $i$ should be moved towards the hole $j$ . The optimal coupling is the one that minimizes the distance that the earth mover travels to put all piles of dirt to holes. Note that to compute the optimal coupling, we need knowledge of the locations of all piles of dirt. In the context of RL, this means having access to the full trajectory generated by $\pi$ . From now on, we write $\theta _ { \pi } ^ { * }$ as the optimal coupling for the policy $\pi$ , that we inject in Equation (1):
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\begin{array} { c } { { \displaystyle \theta _ { \pi } ^ { * } = \arg \operatorname* { m i n } _ { \theta \in \Theta } \sum _ { i = 1 } ^ { T } \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) \theta [ i , j ] } } \\ { { \displaystyle \operatorname* { i n f } _ { \pi \in \Pi } \mathcal { W } _ { 1 } ( \hat { \rho } _ { \pi } , \hat { \rho } _ { e } ) = \operatorname* { i n f } _ { \pi \in \Pi } \sum _ { i = 1 } ^ { T } c _ { i , \pi } ^ { * } \ w \mathrm { i t h } \ c _ { i , \pi } ^ { * } = \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) \theta _ { \pi } ^ { * } [ i , j ] . } } \end{array}
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
In Equation (2), we have introduced $c _ { i , \pi } ^ { * }$ , which we interpret as a cost to minimize using RL. As $c _ { i , \pi } ^ { * }$ depends on the optimal coupling $\theta _ { \pi } ^ { * }$ , we can only define $c _ { i , \pi } ^ { * }$ at the very end of an episode. This can be problematic if an agent learns in an online manner or in large time-horizon tasks. Thus, we introduce an upper bound to the Wasserstein distance that yields a cost we can compute online, based on a suboptimal coupling strategy.
|
| 58 |
+
|
| 59 |
+
# 3.2 GREEDY COUPLING
|
| 60 |
+
|
| 61 |
+
In this section we introduce the greedy coupling $\theta _ { \pi } ^ { g } \in \Theta$ , defined recursively for $1 \leq i \leq T$ as:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\begin{array} { r l } & { \theta _ { \pi } ^ { g } [ i , : ] = \underset { \theta [ i , : ] \in \Theta _ { i } } { \arg \operatorname* { m i n } } \displaystyle \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) \theta [ i , j ] } \\ & { \mathrm { w i t h ~ } \Theta _ { i } = \Big \{ \theta [ i , : ] \in \mathbb { R } _ { + } ^ { D } \Big | \displaystyle \sum _ { j ^ { \prime } = 1 } ^ { D } \theta [ i , j ^ { \prime } ] = \displaystyle \frac { 1 } { T } , \underbrace { \forall k \in [ 1 : D ] , \displaystyle \sum _ { i ^ { \prime } = 1 } ^ { i - 1 } \theta _ { g } [ i ^ { \prime } , k ] + \theta [ i , k ] \le \displaystyle \frac { 1 } { D } } _ { \mathrm { c o n s t r a i n t } ( a ) } \Big \} . } \end{array}
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
Similarly to Equation (1), Equation (3) can be interpreted using the earth mover’s analogy. Contrary to Equation (1) where we assume knowledge of the positions of the $T$ piles of dirts, we now consider that they appear sequentially, and that the earth’s mover needs to transport the new pile of dirt to holes right when it appears. To do so, we derive the distances to all holes and move the new pile of dirt to the closest remaining available holes, hence the greedy nature of it. In Equation (3), the constraint $( a )$ means that all the dirt that appears at the $i$ -th timestep needs to be moved, and the constraint (b) means that we cannot fill the holes more than their capacity $\textstyle { \frac { 1 } { D } }$ . We show the difference between the greedy coupling and the optimal coupling in Figure 1, and provide the pseudo-code to derive it in Algorithm 1.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Figure 1: Illustration of the difference between the a) greedy coupling and the b) optimal coupling. We present an MDP where we drop the dependency on the action. The state space is $\mathbb { R }$ and the metric associated is the Euclidean distance. We note the states visited by the policy: $s _ { 1 } ^ { \pi } , s _ { 2 } ^ { \pi } , s _ { 3 } ^ { \pi }$ and the states visited by the expert: $s _ { 1 } ^ { e } , s _ { 2 } ^ { e } , s _ { 3 } ^ { e }$ . When the policy encounters the state $s _ { 2 } ^ { \pi }$ , and because we do not know $s _ { 3 } ^ { \pi }$ yet, the greedy coupling strategy consists in coupling it with $s _ { 2 } ^ { e }$ although the optimal coupling strategy would be to couple it with $s _ { 3 } ^ { e }$ . Note that the total cost (omitting the constant coupling multiplication factor) with the greedy coupling is 7 whereas the total cost with the optimal coupling is 5 . This highlights that the optimal coupling needs knowledge about the whole policy’s trajectory to be derived.
|
| 71 |
+
|
| 72 |
+
We can now define an upper bound of the Wasserstein distance using the greedy coupling (since by definition it is suboptimal):
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\begin{array} { r l r } & { } & { \underset { \pi \in \Pi } { \operatorname* { i n f } } \ \mathcal { W } _ { 1 } ( \hat { \rho } _ { \pi } , \hat { \rho } _ { e } ) = \underset { \pi \in \Pi } { \operatorname* { i n f } } \sum _ { i = 1 } ^ { T } \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) \theta _ { \pi } ^ { * } [ i , j ] } \\ & { } & { \leq \underset { \pi \in \Pi } { \operatorname* { i n f } } \sum _ { i = 1 } ^ { T } \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) \theta _ { \pi } ^ { g } [ i , j ] . } \end{array}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
In Section 4, we empirically validate this bound. We infer a cost from Equation (1) at each timestep $i$
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
c _ { i , \pi } ^ { g } = \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) \theta _ { \pi } ^ { g } [ i , j ] .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
Note that the greedy coupling $\theta _ { \pi } ^ { g } [ t , . ]$ defined in Equation (3) depends on all the previous state-actions visited by the policy $\pi$ , which makes the cost $c _ { i , \pi } ^ { g }$ non-stationary, similarly to adversarial $\mathrm { I L }$ methods. We can infer a reward from the cost, $r _ { i , \pi } = f ( c _ { i , \pi } ^ { g } )$ where $f$ is a monotonically decreasing function. This reward function is an episodic history dependent reward function $r ( s _ { 0 } , a _ { 0 } , \ldots , s _ { t } , a _ { t } )$ where $r$ is uniquely defined from expert demonstrations (hence is said to be derived offline). Crucially, we have defined a reward function that we seek to maximize, without introducing an inner minimization problem (which is the case with adversarial $\mathrm { I L }$ approaches).
|
| 85 |
+
|
| 86 |
+
We can now derive an algorithm building on this reward function (Algorithm 1). The algorithm presented is written using pseudo-code for a generic agent $A$ which implements a policy $\pi _ { A }$ , it observes tuples $( s , a , r , s ^ { \prime } )$ and possibly updates its components. The runtime of the algorithm for a single reward step computation has complexity $\begin{array} { r } { \mathcal { O } ( ( | S | + | A | ) D + \frac { D ^ { 2 } } { T } ) } \end{array}$ (see Appendix E.2 for details), and therefore has complexity $\mathcal { O } ( ( | S | + | A | ) D T + D ^ { 2 } )$ for computing rewards across the entire episode. Note that in the case where $T = D$ , computing the greedy coupling is simply a lookup of the expert state-action pair that minimizes the distance with the agent state-action pair, followed by a pop-out of this minimizing expert state-action pair from the set of expert demonstrations.
|
| 87 |
+
|
| 88 |
+
Algorithm 1 introduces an agent with the capability to observe and update itself, which is directly inspired from ACME’s formalism of agents (Hoffman et al., 2020), and is general enough to characterize a wide range of agents. We give an example rundown of the algorithm in Section E.1.
|
| 89 |
+
|
| 90 |
+
# 4 EXPERIMENTS
|
| 91 |
+
|
| 92 |
+
In this section, we present the implementation of PWIL and perform an empirical evaluation, based on the ACME framework (Hoffman et al., 2020). We test PWIL on MuJoCo locomotion tasks and compare it to the state-of-the-art GAIL-like algorithm DAC (Kostrikov et al., 2019) and against the common BC baseline. As DAC is based on TD3 (Fujimoto et al., 2018) which is a variant of DDPG (Lillicrap et al., 2016), we use a DDPG-based agent for fair comparison: D4PG (BarthMaron et al., 2018). We also provide a proof-of-concept experiment on a door opening task where the demonstrations do not include actions and are pixel-based and therefore the metric of the
|
| 93 |
+
|
| 94 |
+
Algorithm 1 PWIL: Primal Wasserstein Imitation Learning
|
| 95 |
+
|
| 96 |
+
<table><tr><td>Input: Expert demonstrations D = {s,aj}j∈[1:D],Agent A, number of episodes N for k=1 to N do</td><td>Copy expert demonstrations with weight: D' := {s,a, w}j∈[1:D], with w = D</td></tr><tr><td>Reset environment, initial state s fori=1toTdo</td><td></td></tr><tr><td>Take action a := TA(s), observe next state s' Initialize weight w" := 1, cost c := 0</td><td></td></tr><tr><td>while w" >O do</td><td>Compute se,ae,we := arg min(se,ae,we)∈D' d((s,a),(se,ae))</td></tr><tr><td>if w≥we then</td><td></td></tr><tr><td>C:=c+wed((s,a),(se,ae)) w := wπ- we</td><td></td></tr><tr><td>D'.pop(se,ae,we)</td><td></td></tr><tr><td>else</td><td></td></tr><tr><td>c :=c+wd((s,a),(se,ae))</td><td></td></tr><tr><td>we := we -wπ</td><td></td></tr><tr><td></td><td></td></tr><tr><td>w := 0</td><td></td></tr><tr><td>r := f(c)</td><td></td></tr><tr><td>A observes (s, a,r,s'), updates itself</td><td></td></tr></table>
|
| 97 |
+
|
| 98 |
+
MDP has to be learned. In this setup, we use SAC as the direct RL method. We answer the following questions: 1) Does PWIL recover expert behavior? 2) How sample efficient is PWIL? 3) Does PWIL actually minimize the Wasserstein distance between the distributions of the agent and the expert? 4) Does PWIL extend to visual based observations where the definition of an MDP metric is not straightforward? We also show the dependence of PWIL on multiple of its components through an ablation study. The complete description of the experiments is given in Appendix A. We provide experimental code and videos of the trained agents here: https: //sites.google.com/view/wasserstein-imitation.
|
| 99 |
+
|
| 100 |
+
# 4.1 IMPLEMENTATION
|
| 101 |
+
|
| 102 |
+
We test PWIL following the same evaluation protocol as GAIL and DAC, on six environments from the OpenAI Gym MuJoCo suite (Todorov et al., 2012; Brockman et al., 2016): Reacher-v2, Ant-v2, Humanoid-v2, Walker2d-v2, HalfCheetah-v2 and Hopper-v2. For each environment, multiple demonstrations are gathered using a D4PG agent trained on the actual reward of these environments (which was chosen as it is a base agent in the ACME framework). We subsample demonstrations by a factor of 20: we select one out of every 20 transitions with a random offset at the beginning of the episode (expect for Reacher for which we do not subsample since the episode length is 50). The point of subsampling is to simulate a low data regime, so that a pure behavioral cloning approach suffers the behavioral drift and hence does not perform to the level of the expert. We run experiments with multiple number of demonstrations: $\{ 1 , 4 , 1 1 \}$ (consistently with the evaluation protocol of DAC).
|
| 103 |
+
|
| 104 |
+
Central to our method is a metric between state-action pairs. We use the standardized Euclidean distance which is the L2 distance on the concatenation of the observation and the action, weighted along each dimension by the inverse standard deviation of the expert demonstrations. From the cost $c _ { i }$ defined in Equation (5), we define the following reward:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
r _ { i } = \alpha \exp ( - \frac { \beta T } { \sqrt { | \cal S | + | \cal A | } } c _ { i } ) .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
For all environments, we use $\alpha = 5$ and $\beta = 5$ . The scaling factor $\frac { T } { \sqrt { | { \cal S } | + | { \cal A } | } }$ acts as a normalizer on the dimensionality of the state and action spaces and on the time horizon of the task. We pick $f : x \mapsto \exp ( - x )$ as the monotonically decreasing function.
|
| 111 |
+
|
| 112 |
+
We test our method against a state-of-the-art imitation learning algorithm: DAC and BC. DAC is based on GAIL: it discriminates between expert and non-expert states and it uses an off-policy algorithm TD3 which is a variant of DDPG instead of the on-policy algorithm TRPO (Schulman et al., 2015). We used the open-source code provided by the authors. The Humanoid environment is not studied in the original DAC paper. The hyperparameters the authors provided having poor performance, we led an exhaustive search detailed in Section A.2, and present results for the best hyperparameters found.
|
| 113 |
+
|
| 114 |
+
For our method, we use a D4PG agent (see details in Appendix A) and provide additional experiments with different direct RL agents in Appendix C. We initialize the replay buffer by filling it with expert state-action pairs with maximum reward $\alpha$ (however, note that we used subsampled trajectories which makes it an approximation to replaying the actual trajectories). We train PWIL and DAC in the limit of 1M environment interactions (2.5M for Humanoid) on 10 seeds. Every 10k environment steps, we perform 10-episode rollouts per seed of the policy without exploration noise and report performance with respect to the environment’s original reward in Figure 2.
|
| 115 |
+
|
| 116 |
+
# 4.2 RESULTS
|
| 117 |
+
|
| 118 |
+
In Figure 2, PWIL shows improvement on final performance for Hopper, Ant, HalfCheetah and Humanoid over DAC, similar performance for Walker2d, and is worse on Reacher. On Humanoid, although we ran an exhaustive hyperparameter search (see Section A.2) DAC has poor performance, thus exemplifying the brittleness of GAIL-like approaches. On the contrary, PWIL has near-optimal performance, even with a single demonstration.
|
| 119 |
+
|
| 120 |
+
In terms of sample efficiency, DAC outperforms PWIL on HalfCheetah, Ant and Reacher and has similar performance for Hopper and Walker2d. Note that ablated versions of PWIL are more sampleefficient than DAC on HalfCheetah and Ant (Section B). This seems rather contradictory with the claim that GAIL-like methods have poor sample efficiency. However the reward function defined in DAC requires careful tuning (e.g. architecture, optimizer, regularizers, learning rate schedule) which demands experimental cycles and therefore comes with a large number of environment interactions.
|
| 121 |
+
|
| 122 |
+
Remarkably, PWIL is the first method able to consistently learn policies on Humanoid with an average score over 7000 even with a single demonstration, which means that the agent can actually run, (other works consider Humanoid is "solved" for a score of 5000 wich corresponds to standing).
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
Figure 2: Mean and standard deviation return of the evaluation policy over 10 rollouts and 10 seeds, reported every 10k environment steps. The return is in term of the environment’s original reward. Top row: 1 demonstration, bottom row: 11 demonstrations.
|
| 126 |
+
|
| 127 |
+
Wasserstein distance. In Figure 3, we show the Wasserstein distance to expert demonstrations throughout the learning procedure for PWIL and DAC. The Wasserstein distance is evaluated at the end of an episode using a transportation simplex (Bonneel et al., 2011); we used the implementation from Flamary & Courty (2017). For both methods, we notice that the distance decreases while learning. PWIL leads to a smaller Wasserstein distance than DAC on all environments but HalfCheetah where it is similar and Reacher where it is larger. This should not come as a surprise since PWIL’s objective is to minimize the Wasserstein distance. PWIL defines a reward from an upper bound to the Wasserstein distance between the state-action distributions of the expert and the agent, that we include as well in Figure 3. Notice that our upper bound is “empirically tight”, which validates the choice of the greedy coupling as an approximation to the optimal coupling. We emphasize that this distance is useful in real settings of IL, regardless of the method used, where we cannot have access to the actual reward of the task.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 3: Mean of the Wasserstein distance between the state-action distribution of the evaluation policy and the state-action distribution of the expert over 10 rollouts and 10 seeds. Agents were trained with 11 demonstrations. For PWIL, we include the upper bound on the Wasserstein distance based on the greedy coupling defined in Equation (4).
|
| 131 |
+
|
| 132 |
+
# 4.3 ABLATION STUDY
|
| 133 |
+
|
| 134 |
+
In this section, we present the evaluation performance of PWIL in the presence of ablations and report final performances in Figure 4. The learning curves for all ablations can be found in Appendix B. We keep the hyperparameters of the original PWIL agent fixed.
|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
Figure 4: Mean and standard deviation of the evaluation performance of PWIL and variants at the 1M environment interactions mark (2.5M for Humanoid). Results are computed over 10 seeds and 10 episodes for each seed.
|
| 138 |
+
|
| 139 |
+
PWIL-state. In this version of PWIL, we do not assume that we have access to the actions taken by the expert. Therefore, we try to match the state distribution of the agent with the state distribution of the expert (instead of the state-action distribution). The setup is referred to as Learning from Observation (LfO) (Torabi et al., 2018; Edwards et al., 2019). The reward is defined similarly to PWIL, using a state distance rather than a state-action distance. Note that in this version, we cannot pre-fill the replay buffer with expert state-action pairs since we do not have access to actions. Remarkably, PWIL-state recovers non-trivial behaviors on all environments.
|
| 140 |
+
|
| 141 |
+
PWIL-L2. In this version of PWIL, we use the Euclidean distance between state-action pairs, rather than the standardized Euclidean distance. In other words, we do not weight the state-action distance by the inverse standard deviation of the expert demonstrations along each dimension. There is a significant drop in performance for all environments but Hopper-v2. This shows that the performance of PWIL is sensitive to the quality of the MDP metric.
|
| 142 |
+
|
| 143 |
+
PWIL-nofill. In this version, we do not prefill the replay buffer with expert transitions. This leads to a drop in performance which is significant for Walker and Ant. This should not come as a surprise since a number of $\mathrm { I L }$ methods leverage the idea of expert transitions in the replay buffer (Reddy et al., 2020; Hester et al., 2018).
|
| 144 |
+
|
| 145 |
+
PWIL-support. In this version of PWIL, we define the reward as a function of the following cost:
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\forall i \in [ 1 : T ] , c _ { i , \pi } = \operatorname* { i n f } _ { \tiny \begin{array} { c } { \theta _ { 1 } , \ldots , \theta _ { D } \in \mathbb { R } } \\ { \sum _ { j = 1 } ^ { D } \theta _ { j } \leq \frac { 1 } { T } } \end{array} } \sum _ { j = 1 } ^ { D } d ( ( s _ { i } ^ { \pi } , a _ { i } ^ { \pi } ) , ( s _ { j } ^ { e } , a _ { j } ^ { e } ) ) \theta _ { j } .
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
We can interpret this cost in the context of Section 3 as the problem of moving piles of dirt of mass $\textstyle { \frac { 1 } { T } }$ into holes of infinite capacity. It is thus reminiscent of methods that consider $\mathrm { I L }$ as a support estimation problem (Wang et al., 2019; Brantley et al., 2020). This leads to a significant drop in performance for Ant, Walker and HalfCheetah.
|
| 152 |
+
|
| 153 |
+
4.4 DOOR OPENING TASK: REWARD FROM PIXEL-BASED OBSERVATIONS
|
| 154 |
+
|
| 155 |
+
In this section, we show that PWIL extends to visual-based setups, where the MDP metric has to be learned. We use the door opening task from Rajeswaran et al. (2018), with human demonstrations generated with Haptix (Kumar & Todorov, 2015). The goal of the task is for the controlled hand to open the door (Figure 5) whose location changes at each episode. We add an early termination constraint when the door is opened (hence suppressing the incentive for survival). We assume that we can only access the high-dimensional visual rendering of the demonstrations rather than the internal state (and hence have no access to actions, that is LfO setting).
|
| 156 |
+
|
| 157 |
+
The PWIL reward is therefore defined using a distance between the visual rendering of the current state and the visual rendering of the demonstrations. This distance is learned offline through selfsupervised learning: we construct an embedding of the frames using Temporal Cycle-Consistency Learning (TCC) (Dwibedi et al., 2019); TCC builds an embedding by aligning frames of videos of a task coming from multiple examples (in this case the demonstrations). The distance learned is thus the L2 distance between embeddings. The distance is learned on the 25 human demonstrations provided by Rajeswaran et al. (2018) which are then re-used to define the PWIL reward. From the cost $c _ { i }$ defined in Equation (5), we define the following reward: $r _ { i } = \alpha \exp ( - \beta T c _ { i } )$ , with $\alpha = 5 , \beta = 1$ . We used SAC (Haarnoja et al., 2018a) as the forward RL algorithm, which was more robust than D4PG on the task. We train the agent on 1.5M environment steps and show that we indeed recover expert behaviour and consistently solve the task in Figure 6.
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 5: Visual rendering of the door opening task.
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 6: We present the average and standard deviation of evaluation performance of PWIL on the door environment. Metrics are computed every $1 0 \mathrm { k }$ environment steps and aggregated over 10 seeds and 10 rollouts. Left: the imitation returns of the agent. Center: Wasserstein distance in the embedding space to expert demonstrations. Right: Success rate of the agent, i.e. ratio of episodes where the agent manages to open the door.
|
| 164 |
+
|
| 165 |
+
# 5 RELATED WORK
|
| 166 |
+
|
| 167 |
+
Adversarial IL. Similarly to our method, adversarial IL methods aim at matching the state-action distribution of the agent with the distribution of the expert, using different measures of similarity. For instance, GAIL (Ho & Ermon, 2016) considers the Shannon-Jensen divergence while AIRL (Fu et al., 2018) considers the Kullback-Leibler divergence. In the context of GANs, Arjovsky et al. (2017) show that replacing the $f$ -divergence by the Wasserstein distance through the Kantorovich-Rubinstein duality (Villani, 2008) leads to better training stability, which a number of methods in IL have leveraged (Li et al., 2017; Lacotte et al., 2019; Kostrikov et al., 2019; Xiao et al., 2019; Liu et al., 2020; Pacchiano et al., 2020). However, the Kantorovich-Rubinstein duality only holds for the $\mathcal { W } _ { 1 }$ distance (Peyré et al., 2019), its implementation comes with a number of practical approximations (e.g., weight clipping to ensure Lipchitz continuity). Although these methods are based on the Wasserstein distance through its dual formulation, they drastically differ from ours as they rely on a minmax optimization problem. DAC (Kostrikov et al., 2019) demonstrates that adversarial $\mathrm { I L }$ approaches, while based on GAIL, can be sample efficient. However, they rely on a carefully tuned discriminator (e.g. network architecture, regularization strategy, scheduled learning rates) which requires to interact with the environment. In contrast, the reward function we present relies on only two hyperparameters.
|
| 168 |
+
|
| 169 |
+
Expert support estimation. Another line of research in IL consists in estimating the state-action support of the expert and define a reward that encourages the agent to stay on the support of the expert (Piot et al., 2014; Schroecker & Isbell, 2017; Wang et al., 2019; Brantley et al., 2020; Reddy et al., 2020). Note that the agent might stay on the support of the expert without recovering its state-action distribution. Soft Q Imitation Learning (Reddy et al., 2020) assigns a reward of 1 to all expert transitions and 0 to all transitions the expert encounters; the method learns to recover expert behavior by balancing out the expert transitions with the agent transitions in the replay buffer of a value-based agent. Random Expert Distillation (Wang et al., 2019) estimates the support by using a neural network trained on expert transitions whose target is a fixed random neural network. Disagreement Regularized Imitation Learning (Brantley et al., 2020) estimates the expert support through the variance of an ensemble of BC agents, and use a reward based on the distance to the expert support and the KL divergence with the BC policies. PWIL differs from these methods since it is based on the distance to the support of the expert, with a support that shrinks through “pop-outs” to enforce the agent to visit the whole support. We showed in the ablation study that “pop-outs” are sine qua non for recovering expert behaviour (see PWIL-support).
|
| 170 |
+
|
| 171 |
+
Trajectory-Based IL. Similarly to the door opening experiment, Aytar et al. (2018) learn an embedding offline and reinforces a reward based on the distance in the embedding space to a single demonstration. However, it is well suited for deterministic environments since they use a single trajectory that the agent aims at reproducing while the door experiment shows that PWIL is able to generalize as the door and handle locations are picked at random. Peng et al. (2018) reinforces a temporal reward function (the reward at time $t$ is based on the distance of the state of the agent to the state of the expert at time $t$ ). Contrary to PWIL, the imitation reward function is added to a task-dependent reward function; the distance to expert demonstrations is defined along handpicked dimensions of the observation space; the temporal constraint makes it hard to generalize to environment with stochastic initial states.
|
| 172 |
+
|
| 173 |
+
Offline reward estimation. Existing approaches derive a reward function without interaction with the environment (Boularias et al., 2011; Klein et al., 2013; 2012; Piot et al., 2016). They typically require strong assumptions on the structure of the reward (e.g. linearity in some predefined features). PWIL also derives a reward offline, without structural assumptions, however it is non-stationary since it depends on the state-action visited in the episode.
|
| 174 |
+
|
| 175 |
+
MMD-IL. Generative Moment Matching Imitation Learning (Kim & Park, 2018) assumes a metric on the MDP and aims at minimizing the Maximum Mean Discrepancy (MMD) between the agent and the expert. However, the MMD (like the Wasserstein distance) requires complete rollouts of the agent, and does not present a natural relaxation like the greedy coupling. GMMIL is based on an on-policy agent which makes it significantly less sample-efficient than PWIL. We were not able to implement a version of MMD based on an off-policy agent.
|
| 176 |
+
|
| 177 |
+
# 6 CONCLUSION
|
| 178 |
+
|
| 179 |
+
In this work, we present Imitation Learning as a distribution matching problem and introduce a reward function which is based on an upper bound of the Wasserstein distance between the state-action distributions of the agent and the expert. A number of IL methods are developed on synthetic tasks, where the evaluation of the IL method can be done with the actual return of the task. We emphasize that in our work, we present a direct measure of similarity between the expert and the agent, that we can thus use in real $\mathrm { I L }$ settings, that is in settings where the reward of the task cannot be specified.
|
| 180 |
+
|
| 181 |
+
The reward function we introduce is learned offline, in the sense that it does not need to be updated with interactions with the environment. It requires little tuning (2 hyperparameters) and it can recover near expert performance with as little as 1 demonstration on all considered environments, even the challenging Humanoid. Finally our method extends to the harder visual-based setting, based on a metric learned offline from expert demonstrations using self-supervised learning.
|
| 182 |
+
|
| 183 |
+
# ACKNOWLEDGMENTS
|
| 184 |
+
|
| 185 |
+
We thank Zafarali Ahmed, Adrien Ali Taiga, Gabriel Dulac-Arnold, Johan Ferret, Alexis Jacq and Saurabh Kumar for their feedback on an earlier version of the manuscript. We thank Debidatta Dwibedi and Ilya Kostrikov for helpful discussions.
|
| 186 |
+
|
| 187 |
+
# REFERENCES
|
| 188 |
+
|
| 189 |
+
Pieter Abbeel and Andrew $\mathrm { ~ Y ~ N ~ g ~ }$ . Apprenticeship learning via inverse reinforcement learning. In International Conference on Machine Learning, 2004.
|
| 190 |
+
|
| 191 |
+
OpenAI: Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, et al. Learning dexterous in-hand manipulation. The International Journal of Robotics Research, 2020.
|
| 192 |
+
|
| 193 |
+
Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In International Conference on Machine Learning, 2017.
|
| 194 |
+
|
| 195 |
+
Yusuf Aytar, Tobias Pfaff, David Budden, Thomas Paine, Ziyu Wang, and Nando de Freitas. Playing hard exploration games by watching youtube. In Advances in Neural Information Processing Systems, 2018.
|
| 196 |
+
|
| 197 |
+
Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
|
| 198 |
+
|
| 199 |
+
JA Bagnell, Joel Chestnutt, David M Bradley, and Nathan D Ratliff. Boosting structured prediction for imitation learning. In Advances in Neural Information Processing Systems, 2007.
|
| 200 |
+
|
| 201 |
+
Gabriel Barth-Maron, Matthew W Hoffman, David Budden, Will Dabney, Dan Horgan, Dhruva Tb, Alistair Muldal, Nicolas Heess, and Timothy Lillicrap. Distributed distributional deterministic policy gradients. International Conference on Learning Representations, 2018.
|
| 202 |
+
|
| 203 |
+
Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. In International Conference on Machine Learning, 2017.
|
| 204 |
+
|
| 205 |
+
Nicolas Bonneel, Michiel Van De Panne, Sylvain Paris, and Wolfgang Heidrich. Displacement interpolation using lagrangian mass transport. In Proceedings of the 2011 SIGGRAPH Asia Conference, 2011.
|
| 206 |
+
|
| 207 |
+
Abdeslam Boularias, Jens Kober, and Jan Peters. Relative entropy inverse reinforcement learning. In International Conference on Artificial Intelligence and Statistics, 2011.
|
| 208 |
+
|
| 209 |
+
Kianté Brantley, Wen Sun, and Mikael Henaff. Disagreement-regularized imitation learning. In International Conference on Learning Representations, 2020.
|
| 210 |
+
|
| 211 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym, 2016.
|
| 212 |
+
|
| 213 |
+
Daniel Brown, Wonjoon Goo, Prabhat Nagarajan, and Scott Niekum. Extrapolating beyond suboptimal demonstrations via inverse reinforcement learning from observations. In International Conference on Machine Learning, 2019.
|
| 214 |
+
|
| 215 |
+
Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). International Conference on Learning Representations, 2016.
|
| 216 |
+
|
| 217 |
+
Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. Temporal cycle-consistency learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 218 |
+
|
| 219 |
+
Ashley Edwards, Himanshu Sahni, Yannick Schroecker, and Charles Isbell. Imitating latent policies from observation. In International Conference on Machine Learning, 2019.
|
| 220 |
+
|
| 221 |
+
Norm Ferns, Prakash Panangaden, and Doina Precup. Metrics for finite markov decision processes. In Conference on Uncertainty in Artificial Intelligence, 2004.
|
| 222 |
+
|
| 223 |
+
Chelsea Finn, Sergey Levine, and Pieter Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In International Conference on Machine Learning, 2016.
|
| 224 |
+
|
| 225 |
+
Rémi Flamary and Nicolas Courty. Pot python optimal transport library. GitHub: https://github. com/rflamary/POT, 2017.
|
| 226 |
+
|
| 227 |
+
Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. International Conference on Learning Representations, 2018.
|
| 228 |
+
|
| 229 |
+
Scott Fujimoto, Herke Hoof, and David Meger. Addressing function approximation error in actorcritic methods. In International Conference on Machine Learning, 2018.
|
| 230 |
+
|
| 231 |
+
Seyed Kamyar Seyed Ghasemipour, Richard Zemel, and Shixiang Gu. A divergence minimization perspective on imitation learning methods. Conference on Robot Learning, 2019.
|
| 232 |
+
|
| 233 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, 2014.
|
| 234 |
+
|
| 235 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, 2018a.
|
| 236 |
+
|
| 237 |
+
Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, et al. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018b.
|
| 238 |
+
|
| 239 |
+
Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Ian Osband, et al. Deep q-learning from demonstrations. In AAAI Conference on Artificial Intelligence, 2018.
|
| 240 |
+
|
| 241 |
+
Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems, 2016.
|
| 242 |
+
|
| 243 |
+
Matt Hoffman, Bobak Shahriari, John Aslanides, Gabriel Barth-Maron, Feryal Behbahani, Tamara Norman, Abbas Abdolmaleki, Albin Cassirer, Fan Yang, Kate Baumli, et al. Acme: A research framework for distributed reinforcement learning. arXiv preprint arXiv:2006.00979, 2020.
|
| 244 |
+
|
| 245 |
+
Alexis Jacq, Matthieu Geist, Ana Paiva, and Olivier Pietquin. Learning from a learner. In International Conference on Machine Learning, 2019.
|
| 246 |
+
|
| 247 |
+
Liyiming Ke, Matt Barnes, Wen Sun, Gilwoo Lee, Sanjiban Choudhury, and Siddhartha Srinivasa. Imitation learning as $f$ -divergence minimization. arXiv preprint arXiv:1905.12888, 2019.
|
| 248 |
+
|
| 249 |
+
Kee-Eung Kim and Hyun Soo Park. Imitation learning via kernel mean embedding. In AAAI Conference on Artificial Intelligence, 2018.
|
| 250 |
+
|
| 251 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 2015.
|
| 252 |
+
|
| 253 |
+
Edouard Klein, Matthieu Geist, Bilal Piot, and Olivier Pietquin. Inverse reinforcement learning through structured classification. In Advances in Neural Information Processing Systems, 2012.
|
| 254 |
+
|
| 255 |
+
Edouard Klein, Bilal Piot, Matthieu Geist, and Olivier Pietquin. A cascaded supervised learning approach to inverse reinforcement learning. In Joint European conference on machine learning and knowledge discovery in databases, 2013.
|
| 256 |
+
|
| 257 |
+
Ilya Kostrikov, Kumar Krishna Agrawal, Debidatta Dwibedi, Sergey Levine, and Jonathan Tompson. Discriminator-actor-critic: Addressing sample inefficiency and reward bias in adversarial imitation learning. International Conference on Learning Representations, 2019.
|
| 258 |
+
|
| 259 |
+
V. Kumar and E. Todorov. Mujoco haptix: A virtual reality system for hand manipulation. In 2015 IEEE-RAS 15th International Conference on Humanoid Robots (Humanoids), 2015.
|
| 260 |
+
|
| 261 |
+
Jonathan Lacotte, Mohammad Ghavamzadeh, Yinlam Chow, and Marco Pavone. Risk-sensitive generative adversarial imitation learning. In International Conference on Artificial Intelligence and Statistics, 2019.
|
| 262 |
+
|
| 263 |
+
Yunzhu Li, Jiaming Song, and Stefano Ermon. Infogail: Interpretable imitation learning from visual demonstrations. In Advances in Neural Information Processing Systems, 2017.
|
| 264 |
+
|
| 265 |
+
Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. International Conference on Learning Representations, 2016.
|
| 266 |
+
|
| 267 |
+
Fangchen Liu, Zhan Ling, Tongzhou Mu, and Hao Su. State alignment-based imitation learning. International Conference on Learning Representations, 2020.
|
| 268 |
+
|
| 269 |
+
Sridhar Mahadevan and Mauro Maggioni. Proto-value functions: A laplacian framework for learning representation and control in markov decision processes. Journal of Machine Learning Research, 2007.
|
| 270 |
+
|
| 271 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 2015.
|
| 272 |
+
|
| 273 |
+
Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning. In International Conference on Machine Learning, 2000.
|
| 274 |
+
|
| 275 |
+
Aldo Pacchiano, Jack Parker-Holder, Yunhao Tang, Krzysztof Choromanski, Anna Choromanska, and Michael Jordan. Learning to score behaviors for guided policy optimization. In International Conference on Machine Learning, 2020.
|
| 276 |
+
|
| 277 |
+
Xue Bin Peng, Pieter Abbeel, Sergey Levine, and Michiel van de Panne. Deepmimic: Example-guided deep reinforcement learning of physics-based character skills. ACM Transactions on Graphics (TOG), 2018.
|
| 278 |
+
|
| 279 |
+
Gabriel Peyré, Marco Cuturi, et al. Computational optimal transport. Foundations and Trends in Machine Learning, 2019.
|
| 280 |
+
|
| 281 |
+
Bilal Piot, Matthieu Geist, and Olivier Pietquin. Learning from demonstrations: Is it worth estimating a reward function? In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, 2013.
|
| 282 |
+
|
| 283 |
+
Bilal Piot, Matthieu Geist, and Olivier Pietquin. Boosted and reward-regularized classification for apprenticeship learning. In International conference on autonomous agents and multi-agent systems, 2014.
|
| 284 |
+
|
| 285 |
+
Bilal Piot, Matthieu Geist, and Olivier Pietquin. Bridging the gap between imitation learning and inverse reinforcement learning. IEEE transactions on neural networks and learning systems, 2016.
|
| 286 |
+
|
| 287 |
+
Dean A Pomerleau. Efficient training of artificial neural networks for autonomous navigation. Neural computation, 1991.
|
| 288 |
+
|
| 289 |
+
Martin L Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014.
|
| 290 |
+
|
| 291 |
+
Aravind Rajeswaran, Vikash Kumar, Abhishek Gupta, Giulia Vezzani, John Schulman, Emanuel Todorov, and Sergey Levine. Learning complex dexterous manipulation with deep reinforcement learning and demonstrations. In Proceedings of Robotics: Science and Systems (RSS), 2018.
|
| 292 |
+
|
| 293 |
+
Siddharth Reddy, Anca D Dragan, and Sergey Levine. Sqil: imitation learning via regularized behavioral cloning. International Conference on Learning Representations, 2020.
|
| 294 |
+
|
| 295 |
+
Stéphane Ross and Drew Bagnell. Efficient reductions for imitation learning. In International Conference on Artificial Intelligence and Statistics, 2010.
|
| 296 |
+
|
| 297 |
+
Stuart Russell. Learning agents for uncertain environments. In Conference on Computational learning theory, 1998.
|
| 298 |
+
|
| 299 |
+
Yannick Schroecker and Charles L Isbell. State aware imitation learning. In Advances in Neural Information Processing Systems, 2017.
|
| 300 |
+
|
| 301 |
+
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, 2015.
|
| 302 |
+
|
| 303 |
+
David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 2016.
|
| 304 |
+
|
| 305 |
+
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. 2018.
|
| 306 |
+
|
| 307 |
+
Gerald Tesauro. Temporal difference learning and td-gammon. Communications of the ACM, 1995.
|
| 308 |
+
|
| 309 |
+
Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In International Conference on Intelligent Robots and Systems, 2012.
|
| 310 |
+
|
| 311 |
+
Faraz Torabi, Garrett Warnell, and Peter Stone. Behavioral cloning from observation. In International Joint Conference on Artificial Intelligence, 2018.
|
| 312 |
+
|
| 313 |
+
Cédric Villani. Optimal transport: old and new. 2008.
|
| 314 |
+
|
| 315 |
+
Ruohan Wang, Carlo Ciliberto, Pierluigi Vito Amadori, and Yiannis Demiris. Random expert distillation: Imitation learning via expert policy support estimation. In International Conference on Machine Learning, 2019.
|
| 316 |
+
|
| 317 |
+
Huang Xiao, Michael Herman, Joerg Wagner, Sebastian Ziesche, Jalal Etesami, and Thai Hong Linh. Wasserstein adversarial imitation learning. arXiv preprint arXiv:1906.08113, 2019.
|
| 318 |
+
|
| 319 |
+
Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI Conference on Artificial Intelligence, 2008.
|
| 320 |
+
|
| 321 |
+
# A LOCOMOTION EXPERIMENTS
|
| 322 |
+
|
| 323 |
+
# A.1 PWIL IMPLEMENTATION
|
| 324 |
+
|
| 325 |
+
The agent we use is D4PG (Barth-Maron et al., 2018). We use the default architecture from the ACME framework (Hoffman et al., 2020).
|
| 326 |
+
|
| 327 |
+
The actor architecture is a 4-layer neural network: the first layer has size 256 with tanh activation and layer normalization (Ba et al., 2016), the second layer and third layer have size 256 with elu activation (Clevert et al., 2016), the last layer is of size the dimension of the action space, with a tanh activation scaled to the action range of the environment. To enable sufficient exploration with use a Gaussian noise layer on top of the last layer with standard deviation $\sigma = 0 . 2$ , that we clip to the action range of the environment. We evaluate the agent without exploration noise.
|
| 328 |
+
|
| 329 |
+
For the critic network we use a 4-layer neural network: the first layer has size 512 with tanh activation and layer normalization, the second layer is of size 512 with elu activation, the third layer is of size 256 with elu activation, the last layer is of dimension 201 with a softmax activation. The 201 neurons stand for the weights of the distribution supported within equal distance in the range $[ - 1 5 0 , 1 5 0 ]$ , as a categorical distribution (Bellemare et al., 2017).
|
| 330 |
+
|
| 331 |
+
We use the Adam optimizer (Kingma & Ba, 2015) with $\lambda _ { a } = 5 { \times } 1 0 ^ { - 5 }$ for the actor and $\lambda _ { c } = 7 \times 1 0 ^ { - 5 }$ for the critic. We use a batch size of 256. We clip both gradients from the critic and the actor to limit their L2 norm to 40.
|
| 332 |
+
|
| 333 |
+
We use a replay buffer of size $1 0 ^ { 6 }$ , a discount factor $\theta = 0 . 9 9$ and $n$ step returns with $n = 5$ . We prefill the replay buffer with 50000 state-action pairs from the set of demonstrations (which means that we put multiple times the same expert transitions in the buffer). We perform updates on the actor and the critic every $k = 4$ interactions with the environment. The hyperparameters search is detailed in Table 1.
|
| 334 |
+
|
| 335 |
+
Table 1: DDPG hyperparameters search.
|
| 336 |
+
|
| 337 |
+
<table><tr><td rowspan=1 colspan=1>Parameters</td><td rowspan=1 colspan=1>Values</td></tr><tr><td rowspan=1 colspan=1>入a</td><td rowspan=1 colspan=1>10-5,5×10-5,7× 10-5,10-4</td></tr><tr><td rowspan=1 colspan=1>入c</td><td rowspan=1 colspan=1>10-5,5× 10-5,7× 10-5,10-4</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.1,0.2,0.3</td></tr><tr><td rowspan=1 colspan=1>k</td><td rowspan=1 colspan=1>2,4,8,16</td></tr></table>
|
| 338 |
+
|
| 339 |
+
For the reward function, we did run a hyperparameter search on $\alpha$ and $\beta$ with the following values for $\alpha$ and $\beta$ in $\{ 1 , 5 , 1 0 \}$ .
|
| 340 |
+
|
| 341 |
+
# A.2 DAC IMPLEMENTATION
|
| 342 |
+
|
| 343 |
+
We used the open-source implementation of DAC provided by Kostrikov et al. (2019). For Humanoid (which was not reported in the paper), we did run a large hyperparameter search described in Table 2. Out of the 729 experiments, 7 led to an average performance above 1000 at the $2 . 5 \mathbf { M }$ training environment steps mark.
|
| 344 |
+
|
| 345 |
+
Table 2: Hyperparameter search on Humanoid for 11 demonstrations. (tested/best)
|
| 346 |
+
|
| 347 |
+
<table><tr><td rowspan=1 colspan=1>Actor learning rate (lr)</td><td rowspan=1 colspan=1>Critic lr</td><td rowspan=1 colspan=1>Discriminator lr</td><td rowspan=1 colspan=1>WGAN regularizer</td><td rowspan=1 colspan=1>Exploration noise</td><td rowspan=1 colspan=1>Decay lr</td></tr><tr><td rowspan=1 colspan=1>0.001,0.0005,0.0001</td><td rowspan=1 colspan=1>0.001,0.0005,0.0001</td><td rowspan=1 colspan=1>0.001,0.0005,0.0001</td><td rowspan=1 colspan=1>5,10,20</td><td rowspan=1 colspan=1>0.1,0.2,0.3</td><td rowspan=1 colspan=1>0.3,0.5,0.8</td></tr></table>
|
| 348 |
+
|
| 349 |
+
# A.3 BC IMPLEMENTATION
|
| 350 |
+
|
| 351 |
+
We used a 3-layer neural network, the first layer has size 128 with relu activation, the second layer has size 64 and the last layer has size of the action space with a tanh activation scaled to the action range of the environment. We found out that normalizing the observations with the average and standard deviation of the expert demonstrations’ observations helped performance. We trained the network using the mean squared error as a loss, with an Adam optimizer. We ran an hyperpameter search on the learning rate in $\{ 1 0 ^ { - 5 } , 1 0 ^ { - 4 } , 1 0 ^ { - 3 } \}$ and on the batch size $\{ 1 2 8 , 2 5 6 \}$ .
|
| 352 |
+
|
| 353 |
+
We present the learning curves of PWIL, in terms of the reward defined in Equation 6 as well as the original reward of the task.
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
Figure 7: Mean and standard deviation of the imitation return of the agent. We perform 10 rollouts over 10 seeds every 10k environment steps over 1M steps. The return here is in term of the reward defined with Equation (6). Top row: 1 demonstration, middle row: 4 demonstrations, bottom row 11 demonstrations.
|
| 357 |
+
|
| 358 |
+

|
| 359 |
+
Figure 8: Mean and standard deviation of the original environment returns of the evaluation policy over 10 rollouts and 10 seeds, reported every 10k environment steps over 1M steps. Top row: 1 demonstation, middle row: 4 demonstrations, bottom row: 11 demonstrations.
|
| 360 |
+
|
| 361 |
+

|
| 362 |
+
Figure 9: Mean and standard deviation of the Wasserstein distance between the state-action distribution of the evaluation policy and the state-action distribution of the expert over 10 rollouts and 10 seeds, reported every 10k environment steps. We include the upper bound on the Wasserstein distance based on the greedy coupling defined in Equation (4). Top row: 1 demos, middle row: 4 demos, bottom row: 11 demos.
|
| 363 |
+
|
| 364 |
+
# B ABLATION STUDY
|
| 365 |
+
|
| 366 |
+
We present the learning curves of PWIL in the presence of ablations.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Figure 10: Evaluation performance of different variants of PWIL over 10 rollouts and 10 seeds, reported every 10k environment steps over 1M steps. The return is in term of the environment’s original reward. Top row: 1 demonstration, middle row: 4 demonstrations, bottom row: 11 demonstrations.
|
| 370 |
+
|
| 371 |
+
# C INFLUENCE OF THE DIRECT RL ALGORITHM
|
| 372 |
+
|
| 373 |
+
In this section, we study the influence of the direct RL method on the performance on PWIL on locomotion tasks. We compare the performance of PWIL with D4PG with the performance of PWIL with TD3 and SAC. We use a custom implementation of both SAC and TD3 which is a reproduction of the authors’ implementation. For SAC we used the same default hyperparameters; for TD3 we removed the delayed policy update which led to better performance. We evaluate both methods on the same reward function as D4PG. We remove the pre-warming of the replay buffer for SAC. For TD3, we found out that we need different pre-warming for each environment to get good performance (contrary to D4PG): we used 1000 state-action pairs for Reacher, Hopper and Walker2d and no pre-warming for Humanoid, Ant and HalfCheetah.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
Figure 11: Mean and standard deviation of the evaluation performance of PWIL-D4PG, PWIL-SAC and PWIL-TD3 at the 1M environment interactions mark (2.5M for Humanoid). Results are computed over 10 seeds and 10 episodes for each seed.
|
| 377 |
+
|
| 378 |
+
We show in Figure 11 that both PWIL-SAC and PWIL-TD3 recover expert-like performance on Hopper, Ant and HalfCheetah and Reacher. For Walker2d, there is a large standard deviation in performance, since some seeds lead to near-optimal expert performance, and some seeds lead to poor performance. Remark that we led minimal hyperparameter tuning on the default versions of SAC and TD3, which might explain the differences in performance.
|
| 379 |
+
|
| 380 |
+
# D DOOR OPENING EXPERIMENTS
|
| 381 |
+
|
| 382 |
+
In this section we present the details of the experiment presented in Section 4.4.
|
| 383 |
+
|
| 384 |
+
# D.1 ENVIRONMENT
|
| 385 |
+
|
| 386 |
+
The default door opening environment has a fixed horizon of 200 timesteps. We add an early termination condition to the environment when the door is opened to demonstrate that PWIL extends to tasks where there is no incentive for survival. Note that similarly to AIRL (Fu et al., 2018), early termination states are considered to be absorbing. Therefore if the expert reaches an early termination state early, its state distribution as a large weight on these states, which leads the PWIL agent to similarly reach the early termination state. 25 demonstrations were collected from humans using a virtual reality system (Kumar & Todorov (2015)).
|
| 387 |
+
|
| 388 |
+
# D.2 EMBEDDING
|
| 389 |
+
|
| 390 |
+
As we assume that we only have access to the visual rendering of the demonstrations (with resolution $8 4 \times 8 4 ,$ , we build a lower dimensional latent space. We use a self-supervised learning method: TCC, to learn the latent space. We used the classification version of the algorithm detailed in Dwibedi et al. (2019) (Section 3.2).
|
| 391 |
+
|
| 392 |
+
The encoding network is the following: a convolutional layer with 128 filters of size 8 and stride 4, a relu activation, a convolutional layer with 64 filters of size 4 and stride 2, a relu activation, a convolutional layer with 64 filters of size 3 and stride 1, a relu activation, a linear layer of size 128, a relu activation and an output layer of size 32.
|
| 393 |
+
|
| 394 |
+
We separated the demonstrations into a train set of 20 demonstrations and a validation set of 5 demonstrations. Similarly to Dwibedi et al. (2019), we select the encoding network by taking the one that maximizes the alignment according to Kendall’s tau score on the validation set.
|
| 395 |
+
|
| 396 |
+
We ran an hyperparameter search over the batch size $\{ 1 , 4 , 1 6 , 3 2 \}$ , the subsampling ratio $\{ 1 , 4 , 8 \}$ and the learning rate $\{ 1 0 ^ { - 2 } , 1 0 ^ { - 3 } , 1 0 ^ { - 4 } \}$ (using the Adam optimizer). The best performing encoder had an average Kendall’s tau score of 0.98 on the training set and 0.91 on the validation set.
|
| 397 |
+
|
| 398 |
+
# D.3 AGENT
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
Figure 12: Kendall’s tau score of the encoding network on the train and validation sets. An iteration corresponds to 1000 gradient updates.
|
| 402 |
+
|
| 403 |
+
In this setup, we found that SAC leads to better results than D4PG. We detail the implementation of SAC below.
|
| 404 |
+
|
| 405 |
+
The actor is a 3-layer network that outputs the parameters of a normal distribution with diagonal covariance matrix. We enforce the terms of the covariance matrix to be greater than $1 0 ^ { - 3 }$ . The first layer has size 256 with relu activation, the second layer has size 256 with relu activation and the last layer has size 48 (the action space has size 24).
|
| 406 |
+
|
| 407 |
+
The critic is a 3-layer network. We pass the concatenation of the state and the action of the environment as an input. There are two hidden layers of size 256 with relu activation. We do use a twin critic.
|
| 408 |
+
|
| 409 |
+
We use an adaptive temperature $\alpha$ as described by Haarnoja et al. (2018b).
|
| 410 |
+
|
| 411 |
+
For the three losses we use the Adam optimizer, and we use Polyak averaging for the critic networks with a rate $\tau$ . We ran an hyperparameter search over the learning rates $\lambda _ { a } , \lambda _ { c } , \lambda _ { \alpha }$ in $\{ 1 0 ^ { - 4 } , 3 \times 1 0 ^ { - 4 } \}$ , over $\tau$ $\lbrace 0 . 0 1 , 0 . 0 0 5 \rbrace$ , over the batch size $\{ 6 4 , 1 2 8 , 2 5 6 \}$ and over the number of interactions with the environment between each actor, critic and temperature update $\{ 1 , 4 , 8 \}$ .
|
| 412 |
+
|
| 413 |
+
# E ALGORITHM DETAILS
|
| 414 |
+
|
| 415 |
+
# E.1 RUNDOWN
|
| 416 |
+
|
| 417 |
+
We present an example rundown of PWIL in Figure 13.
|
| 418 |
+
|
| 419 |
+
# Sta! episode.
|
| 420 |
+
|
| 421 |
+

|
| 422 |
+
Figure 13: PWIL example rundown. We drop the dependency on the action. The example task has an horizon $T = 2$ , and the demonstration set has $D = 4$ elements. We take $f : c \mapsto \exp \left( - c \right)$ .
|
| 423 |
+
|
| 424 |
+
# End episode.
|
| 425 |
+
|
| 426 |
+
# E.2 RUNTIME
|
| 427 |
+
|
| 428 |
+
We detail the runtime of PWIL in this section. A single step reward computation consists in computing the distance from the current observation (a vector with dimension $| { \bar { S } } | + | { \cal A } |$ with $D$ vectors (the expert observations), which has complexity $\mathcal { O } ( ( | S | + | A | ) D )$ . The next step is to get the minimum of these distances (complexity $\mathcal { O } ( D ) ,$ ), for $\textstyle \left\lceil { \frac { D } { T } } \right\rceil$ times (the number of times the algorithm executes the while loop). Therefore the complexity of a single step reward computation is $\begin{array} { r } { \mathcal { O } ( ( | S | + | A | ) D + \frac { D ^ { 2 } } { T } ) } \end{array}$ and the complexity of the reward computation of an episode is $\mathcal { O } ( ( | S | + | A | ) D T + D ^ { 2 } )$ .
|
parse/train/TtYSU29zgR/TtYSU29zgR_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/TtYSU29zgR/TtYSU29zgR_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/TtYSU29zgR/TtYSU29zgR_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJe2syrtvS/rJe2syrtvS.md
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# THE INGREDIENTS OF REAL-WORLD ROBOTIC REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Henry $\mathbf { L h u ^ { * 1 } }$ , Justin $\mathbf { V } \mathbf { u } ^ { * 1 }$ , Abhishek Gupta∗1, Dhruv Shah1, Kristian Hartikainen2, Avi Singh1, Vikash Kumar3, Sergey Levine1 1 University of California, Berkeley 2 University of Oxford 3 University of Washington
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
The success of reinforcement learning for real world robotics has been, in many cases limited to instrumented laboratory scenarios, often requiring arduous human effort and oversight to enable continuous learning. In this work, we discuss the elements that are needed for a robotic learning system that can continually and autonomously improve with data collected in the real world. We propose a particular instantiation of such a system, using dexterous manipulation as our case study. Subsequently, we investigate a number of challenges that come up when learning without instrumentation. In such settings, learning must be feasible without manually designed resets, using only on-board perception, and without hand-engineered reward functions. We propose simple and scalable solutions to these challenges, and then demonstrate the efficacy of our proposed system on a set of dexterous robotic manipulation tasks, providing an in-depth analysis of the challenges associated with this learning paradigm. We demonstrate that our complete system can learn without any human intervention, acquiring a variety of vision-based skills with a real-world three-fingered hand. Results and videos can be found at https://sites.google.com/view/realworld-rl/.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Reinforcement learning (RL) can in principle enable autonomous systems, such as robots, to acquire a large repertoire of skills automatically. Perhaps even more importantly, reinforcement learning can enable such systems to continuously improve the proficiency of their skills from experience. However, realizing this in reality has proven challenging: even with reinforcement learning methods that can acquire complex behaviors from high-dimensional low-level observations, such as images, the assumptions of the reinforcement learning problem setting do not fit cleanly into the constraints of the real world. For this reason, most successful robotic learning experiments have employed various kinds of environmental instrumentation in order to define reward functions, reset between trials, and obtain ground truth state (Levine et al., 2016; Haarnoja et al., 2018a; Kumar et al., 2016; Andrychowicz et al., 2018; Zhu et al., 2019; Chebotar et al., 2016; Nagabandi et al., 2019; Gupta et al., 2016). In order to practically and scalably deploy autonomous learning systems that improve continuously through real-world operation, we must lift these limitations and design algorithms that can learn under the constraints of real-world environments, as illustrated in Figure 2.
|
| 12 |
+
|
| 13 |
+
We propose that overcoming these challenges in a scalable way requires designing robotic systems that possess three capabilities: they are able to (1) learn from their own raw sensory inputs, (2) assign rewards to their own trials without hand-designed perception systems or instrumentation, and (3) learn continuously in non-episodic settings without requiring human intervention to manually reset the environment. A system with these capabilities can autonomously collect large amounts of real world data – typically crucial for effective generalization – without significant instrumentation in each training environment, an example of which is shown in Figure 1. If successful, this would lift a major constraint that stands between current reinforcement learning algorithms and the ability to learn scalable, generalizable, and robust real-world behaviors. Such a system would also bring us significantly closer to the goal of embodied learning-based systems that improve continuously through their own real-world experience.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Illustration of our proposed instrumentation-free system requiring minimal human engineering. Human intervention is only required in the goal collection phase (1). The robot is left to train unattended (2) during the learning phase and can be evaluated from arbitrary initial states at the end of training (3). We show sample goal and intermediate images from the training process of a real hardware system
|
| 17 |
+
|
| 18 |
+
Having laid out these requirements, we propose a practical instantiation of such a learning system. While prior works have studied many of these issues in isolation, combining them into a complete real-world learning system presents a number of challenges, as we discuss in Section 3. We provide an empirical analysis of these issues, both in simulation and on a real-world robotic system, and propose a number of simple but effective solutions that together produce a complete robotic learning system. This system can autonomously learn from raw sensory inputs, learn reward functions from easily available supervision, and learn without manually designed reset mechanisms. We show that this system can learn dexterous robotic manipulation tasks in the real world, substantially outperforming ablations and prior work.
|
| 19 |
+
|
| 20 |
+
# 2 THE STRUCTURE OF A REAL-WORLD RL SYSTEM
|
| 21 |
+
|
| 22 |
+
The standard reinforcement learning paradigm assumes that the controlled system is represented as a Markov decision process with a state space $s$ , action space $\mathcal { A }$ , unknown transition dynamics $\tau$ , unknown reward function $\mathcal { R }$ , and a (typically) episodic initial state distribution $\rho$ . The goal is to learn a policy that maximizes the expected sum of rewards via interactions with the environment.
|
| 23 |
+
|
| 24 |
+
Although this formalism is simple and concise, it does not capture all of the complexities of realworld robotic learning problems. If a robotic system is to learn continuously and autonomously in the real world, we must ensure that it can learn under the actual conditions that are imposed by the real world. To move from the idealized MDP formulation to the real world, we require a system that has the following properties. First, all of the information necessary for learning must be obtained from the robot’s own sensors. This includes information about the state and necessitates that the policy must be learned from high-dimensional and low-level sensory observations, such as camera images. Second, the robot must also obtain the reward signal itself from its own sensor readings. This is exceptionally difficult for all but the simplest tasks (e.g., reward functions that depend on interactions with specific objects require perceiving those objects explicitly). Third, we must be able to learn without access to episodic resets. A setup with explicit resets quickly becomes impractical in open-world settings, due to the requirement for significant human engineering of the environment, or direct human intervention during learning. While this list may not exhaustively enumerate all the components necessary for an effective real-world learning system, we posit that the properties listed here are fundamental to building such systems.
|
| 25 |
+
|
| 26 |
+
While some of the components discussed above can be tackled in isolation by current algorithms, there are considerable challenges inherent to assembling all these components into a complete learning system for real world robotic learning. In the rest of this section, we outline the challenges associated with each component, then discuss the challenges associated with combining these components in Section 3, and then proceed to address these challenges in Section 4.
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
Figure 2: We draw a comparison between current real world learning systems which rely on instrumentation versus a system that learns in an environment more representative of the real world, free of instrumentation. While all three prior works utilize instrumentation for resets, state estimation, and reward, the motion capture system of Gupta et al. (2016), sensor attached to the door in Zhu et al. (2019), and auxiliary robot which picks up fallen balls in Nagabandi et al. (2019) are good examples of engineered state estimation, reward estimation, and reset mechanisms respectively.
|
| 30 |
+
|
| 31 |
+
# 2.1 LEARNING FROM RAW SENSORY INPUT
|
| 32 |
+
|
| 33 |
+
To enable learning without complex state estimation systems or environment instrumentation, we require our robotic systems to be able to learn from their own raw sensory observations. Typically, these sensory observations are raw camera images from a camera mounted on the robot, as well as proprioceptive sensory inputs such as the joint angles. These observations do not directly provide the poses of the objects in the scene, which is the typical assumption in simulated robotic environments – any such information must be extracted by the learning system.
|
| 34 |
+
|
| 35 |
+
While in principle many RL frameworks can support learning from raw sensory inputs (Levine et al., 2016; Mnih et al., 2015; Schulman et al., 2015; Lillicrap et al., 2015), it is important to consider the practicalities of this approach. For instance, we can instantiate vision-based RL with policy gradient algorithms such as TRPO (Schulman et al., 2015) and PPO (Schulman et al., 2017), but these have high sample complexities which make them unsuited for real world robotic learning (Haarnoja et al., 2018a). In our work, we consider adopting the general framework of off-policy actor-critic reinforcement learning, using a version of the soft actor critic (SAC) algorithm described by (Haarnoja et al., 2018b). This algorithm effectively uses off-policy data and has been shown to learn some tasks directly from visual inputs. However, while SAC can learn directly from images, we find in our experiments that, as the task complexity increases, the efficiency of direct end-to-end learning (particularly without resets and with learned rewards) still degrades substantially. However, as we will discuss in Section 3, augmenting end-to-end learning with unsupervised representation learning substantially alleviates such challenges.
|
| 36 |
+
|
| 37 |
+
# 2.2 REWARD FUNCTIONS WITHOUT REWARD ENGINEERING
|
| 38 |
+
|
| 39 |
+
Vision-based RL algorithms, such as SAC, rely on a reward function being provided to the system, which is typically manually programmed by a user. While this can be simple to do in simulation by using ground truth state information, it is significantly harder to implement in uninstrumented real world environments. In the real world, the robot must obtain the reward signal itself from its own sensor readings. A few options for tackling this challenge have been discussed in prior work: design complete computer vision systems to detect objects and extract the reward signals (Devin et al., 2018; Nagabandi et al., 2019), engineer reward functions that use various task-specific heuristics to obtain rewards from pixels (Schenck & Fox, 2017; Kalashnikov et al., 2018), or instrument every environment (Chebotar et al., 2017). Many of these solutions are manual and tedious, and a more general approach is needed to scale real-world robotic learning gracefully.
|
| 40 |
+
|
| 41 |
+
# 2.3 LEARNING WITHOUT RESETS
|
| 42 |
+
|
| 43 |
+
While the components described in Section 2.1 and 2.2 are essential to building continuously learning RL systems in the real world, they have often been implemented with the assumption of episodic learning Fu et al. (2018); Haarnoja et al. (2018b). However, natural open-world settings do not provide any such reset mechanism, and in order to enable scalable and autonomous real-world learning we need systems that do not require an episodic formulation of the learning problem.
|
| 44 |
+
|
| 45 |
+
To devise a system that requires minimal human engineering for providing rewards, we must use algorithms that are able to assign themselves rewards, using learned models that operate on the same raw sensory inputs as the policy. One candidate is for a user to specify intended behavior beforehand through examples of desired outcomes (i.e., images). The algorithm can then assign itself rewards based on a measure of how well it is accomplishing the specified goals, with no additional human supervision. This approach can scale well in principle, since it requires minimal human engineering, and goal images are easy to provide.
|
| 46 |
+
|
| 47 |
+
In principle, algorithms such as SAC do not actually require episodic learning; however, in practice, most instantiations use explicit resets, even in simulation, and removing resets has resulted in failure to solve challenging tasks. In our experiments in Section 3 as well, we see that actor-critic methods applied na¨ıvely to the reset free setting do not learn the intended behaviors. Introducing visual observations and classifier based rewards exacerbates these challenges.
|
| 48 |
+
|
| 49 |
+
We propose that these three components – vision-based RL with actor-critic algorithms, visionbased goal classifier for rewards, and reset-free learning – are the fundamental pieces that we need to build a real world robotic learning system. However, when we actually combine the individual components in Sections 3 and 6, we find that learning effective policies is quite challenging. We provide insight into these challenges in Section 3. Based on these insights, we propose simple but important changes in Section 4 to build a system, R3L , that can learn effectively and autonomously in the real world without human intervention.
|
| 50 |
+
|
| 51 |
+
# 3 THE CHALLENGES OF REAL WORLD RL
|
| 52 |
+
|
| 53 |
+
The system design outlined in Section 2 in principle gives us a complete system to perform real world reinforcement learning without instrumentation. However, when utilized for robotic learning problems, we find this basic design to be largely ineffective. To study this, we present results for a simulated robotic manipulation task that requires repositioning a free-floating objects with a threefingered robotic hand, shown in Fig 3. We use this task for our investigative analysis and show that the same insights extend to several other tasks, including real world tasks, in Section 6. The goal in this task is to reposition the object to a target pose from any initial pose in the arena. When the system is instantiated with visionbased soft actor-critic, rewards from goal images using VICE, and run without episodic resets, we see that the algorithm fails to make progress (Fig 4). Although it might appear that this setup fits within the assumptions of all of the components that are used, the complete system is ineffective. Which particular components of this problem make it so difficult?
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
Figure 3: Our object repositioning task. The goal is to move the object from any starting configuration to a particular goal position and orientation.
|
| 57 |
+
|
| 58 |
+
To investigate this issue, we perform experiments investigating the combination of the three main ingredients: varying observation type (visual vs. low-dimensional state), reward structure (VICE vs. hand-defined rewards that utilize ground-truth object state), and the ability to reset (episodic resets vs. reset-free, non-episodic learning). We start by considering the training time reward under each combination of factors as shown in Fig 4, which reveals several trends. First, the results in Fig 4 show that learning with resets achieves high training time reward from both vision and state, while reset-free only achieves high training time reward with low-dimensional state. Second, we find that the policy is able to pass the threshold for training time reward in a non-episodic setting when learning from low-dimensional state, but it is not able to do the same using image observations. This suggests that combining the reset-free learning problem with visual observations makes it significantly more challenging.
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
Figure 4: We report the approximate number of samples needed for a policy learned with a prior offpolicy RL algorithm $( S A C )$ to achieve average training performance of less than 0.15 in pose distance (defined in Appendix C.1.3) across 3 seeds on the repositioning task. We compare training performance after varying three axes: ground truth rewards vs. learned rewards, with vs. without episodic resets, low-level state vs. images as inputs. We observe learning without resets is harder than with resets and is much harder when combined with visual inputs.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 5: We observe that when training reset free to reach a single goal, while the pose distance at training time is quite low, the pose errors obtained at test-time with the learned policy are very high. This indicates that while the object is getting close to the goal at training time, the policies being learned are still not effective.
|
| 65 |
+
|
| 66 |
+
However, the table in Fig 4 paints an incomplete picture. These numbers are related to the performance of the policies at training time, not how effective the learned policies are when being evaluated. When we consider the test-time performance (Fig 5) of the policies that are learned under reset free conditions, we obtain a different set of conclusions. While learning from low-dimensional state in the reset free setting achieves high reward at training time, the test-time performance of the corresponding learned policies is very poor. This can likely be attributed to the fact that when the agent spends all its time stuck at the goal, and sees very little diversity of data in other parts of the state space, which significantly reduces the efficacy of the actual policies being learned. In a sense, the reset encodes some prior information about the task: it tells the policy about what types of states it might be required to succeed from at test time. Without this knowledge, performance is substantially worse. This makes it very challenging to learn policies with completely reset-free schemes, which has prompted prior work to consider schemes such as learning reset controllers (Eysenbach et al., 2018). As we discuss in the following section and in our experiments, these schemes are often insufficient for learning effective policies in the real world without any resets.
|
| 67 |
+
|
| 68 |
+
# 4 A REAL-WORLD ROBOTIC REINFORCEMENT LEARNING SYSTEM
|
| 69 |
+
|
| 70 |
+
To address the challenges identified in Section 3, we present two improvements, which we found to be essential for uninstrumented real-world training: randomized perturbation controllers and unsupervised representation learning. Incorporating these components into the system in Section 2 results in a system that can learn successfully in uninstrumented environments, as we will show in Section 6, and attains good performance both at training time and at test time.
|
| 71 |
+
|
| 72 |
+
# 4.1 RANDOMIZED PERTURBATION CONTROLLER
|
| 73 |
+
|
| 74 |
+
Prior works in addressing the reset free setting problem have considered converting the problem into a more standard episodic problem, by learning a “reset controller,” which is trained to reset the system to a particular initial state (Eysenbach et al., 2018; Han et al., 2015). This scheme has been thought to make the learning problem easier by reducing the variance of the resulting initial state distribution. However, as we will show in our experiments in Section 6, this still results in policies whose success depends heavily on a narrow range of initial states. Indeed, prior reset controller methods all reset to a single initial state (Eysenbach et al., 2018; Han et al., 2015).
|
| 75 |
+
|
| 76 |
+
We take a different approach to learning in a reset-free setting. Rather than attributing the problem to the variance of the initial state distribution, we hypothesize that a major problem with reset-free learning is that the support of the distribution of states visited by the policy is too narrow, which makes the learning problem challenging and doesn’t allow the agent to learn how to perform the desired task from any state it might find itself in. In this view, the goal should not be to reduce the variance of the initial state distribution, but instead to increase it.
|
| 77 |
+
|
| 78 |
+
To this end, we utilize what we call random perturbation controllers: controllers that introduce perturbations intermittently into the system through a policy that is trained to explore the environment. The standard actor $\pi ( a | s )$ is executed for $H$ time-steps, following which we executed the perturbation controller $\pi _ { p } ( a | s )$ for $H$ steps, and repeat. The policy $\pi$ is trained with the VICE-based rewards for reaching the desired goals, while the perturbation controller $\pi _ { p }$ is trained only with an intrinsic motivation objective that encourages visiting under-explored states. In our implementation, we use the random network distillation (RND) objective for training the perturbation controller (Burda et al., 2018), but any effective exploration method can be used for the same. This procedure is described in detail in Appendix A, and is evaluated on the tasks we consider in Fig 6. The perturbation controller ensures that the support of the training distribution grows and as a result the policies can learn the desired behavior much more effectively, as shown in Fig 7.
|
| 79 |
+
|
| 80 |
+
# 4.2 GOAL CLASSIFIER
|
| 81 |
+
|
| 82 |
+
To design a system that requires minimal human engineering for providing reward, we use a datadriven reward specification framework called variational inverse control with events (VICE) introduced by Fu et al. (2018). VICE learns rewards in a task-agnostic way: we provide the algorithm with success examples in the form of images where the task is accomplished, and learn a discriminator that is capable of distinguishing successes from failures. This discriminator can then be used to provide a learning signal to nudge the reinforcement learning agent towards success. This algorithm has been previously considered in the context of learning tasks from raw sensory observations in the real world by (Singh et al., 2019) but we show that it presents unique challenges when used in conjunction with learning without episodic resets. Details and specifics of the algorithms being considered are described in Appendix A and also discussed by Singh et al. (2019).
|
| 83 |
+
|
| 84 |
+
# 4.3 UNSUPERVISED REPRESENTATION LEARNING
|
| 85 |
+
|
| 86 |
+
The perturbation controller discussed above allows us to learn policies that can succeed at the task from a variety of starting states. However, learning from visual observations still present a challenge. Our experiments in Fig 4 show that learning without resets from low-dimensional states is comparatively easier. We therefore aim to convert the vision-based learning problem into one that more closely resembles state-based learning, by training a variational autoencoder (VAE, Kingma & Welling (2013)) and sharing the latent-variable representation across the actor and critic networks (refer to Appendix B for more details). Note that we use a VAE as an instantiation of representation learning techniques that works well in the domains we considered, but other more sophisticated density models proposed in prior work may also be substituted in place of the VAE (Lee et al., 2019; Hjelm et al., 2019; Anand et al., 2019).
|
| 87 |
+
|
| 88 |
+
While several works have also sought to incorporate unsupervised learning into reinforcement learning to make learning from images easier (Nair et al., 2018; Lee et al., 2019), we note that this becomes especially critical in the vision-based, reset-free setting, as motivated by the experiments in Section 3, which indicate that it is precisely this combination of factors – vision and no resets – that presents the most difficult learning problem. Therefore, although the particular solution we use in our system has been studied in prior work, it is brought to bare to address a challenge that arises in real-world learning that we believe has not been explored in prior studies.
|
| 89 |
+
|
| 90 |
+
These two improvements – the perturbation controller and unsupervised learning – combined with the general system described above, give us a complete practical system for real world reinforcement learning. The overall method uses soft-actor critic for learning with visual observations and classifier based rewards with VICE, introduces auxiliary reconstruction objectives or pretrains encoders for unsupervised representation learning, and uses a perturbation controller during training to ensure that the support of visited states grows sufficiently. We term this full system for real-world robotic reinforcement learning R3L. Further implementation details can be found in Appendix A.
|
| 91 |
+
|
| 92 |
+
# 5 RELATED WORK
|
| 93 |
+
|
| 94 |
+
The primary contribution of this work is to propose a paradigm for continual instrumentation-free real world robotic learning and a practical instantiation of such a system. A number of prior works have studied reinforcement learning in the real world for acquiring robotic skills (Levine et al., 2016; Kumar et al., 2016; Gu et al., 2017; Kalashnikov et al., 2018; Haarnoja et al., 2018b; Finn & Levine, 2016; Zhu et al., 2019; Nagabandi et al., 2019). Much of the focus in prior work has been on improving the efficiency and generalization of RL algorithms to make real-world training feasible, or else on utilizing simulation and transferring policies into the real world (Tzeng et al., 2015; Tobin et al., 2017; Peng et al., 2017; Clavera et al., 2018; Kang et al., 2019). The simulation-based methods typically require considerable effort in terms of both simulator design and overcoming the distributional shift between simulated and real-experience, while prior real-world training methods typically require additional instrumentation for either reward function evaluation (Levine & Koltun, 2013) or resetting between trials (Gu et al., 2017; Chebotar et al., 2017; Zhu et al., 2019), or both. In contrast, our work is primarily focused on lifting these requirements, rather than devising more efficient RL methods. We show that removing the need for instrumentation (i.e., for reward evaluation and resets) introduces additional challenges, which in turn require a careful set of design choices. Our complete R3L method is able to learn completely autonomously, without manual resets or reward design.
|
| 95 |
+
|
| 96 |
+
A key component of our system involves learning from raw visual inputs. This has proven to be difficult for policy gradient style algorithms (Pinto et al., 2017a) due to challenging representation learning problems. This has been made easier in simulated domains by using modified objectives, such as auxiliary losses (Jaderberg et al., 2016), or by using more efficient algorithms (Haarnoja et al., 2018a). We show that reinforcement learning on raw visual input, while possible in standard RL settings, becomes significantly more challenging when considered in conjunction with nonepisodic, reset-free scenarios.
|
| 97 |
+
|
| 98 |
+
Reward function design is crucial for any RL system, and is non-trivial to provide in the real world. Prior works have considered instrumenting the environment with additional sensors to evaluate rewards (Gu et al., 2017; Chebotar et al., 2017; Zhu et al., 2019), which is a highly manual process, using demonstrations, which require manual effort to collect (Vecerik et al., 2017; Ng & Russell, 2000; Liu et al., 2018), or using interactive supervision from the user (Christiano et al., 2017). In this work, we leverage the algorithm introduced by Fu et al. (2018) to assign rewards based on the likelihood of a goal classifier. While prior work also applied this method to robotic tasks (Singh et al., 2019), this was done in a setting where manual resets were provided by hand, while we demonstrate that we can use learned rewards in a fully uninstrumented, reset-free setup.
|
| 99 |
+
|
| 100 |
+
Learning without resets has been considered in prior works (Eysenbach et al., 2018; Han et al., 2015), although in different contexts – safe learning and learning compound controllers, respectively. Eysenbach et al. (2018) provide an algorithm to learn a reset controller with the goal of ensuring safe operation, but makes several assumptions that make it difficult to use in the real world: it assumes access to a ground truth reward function, it assumes access to an oracle function that can detect if an attempted reset by the reset policy was successful or not, and it assumes the ability to perform manual resets if the reset policy fails a certain number of times. In contrast, we propose an algorithm that allows for fully automated reinforcement learning in the real world. We compare to an ablation of our method that uses a reset controller similar to Eysenbach et al. (2018), and show that our method performs substantially better. Our perturbation controller also resembles the adversarial RL setup Pinto et al. (2017b); Sukhbaatar et al. (2018). However, while these prior methods explicitly aim to train policies that are robust to perturbations Pinto et al. (2017b) or explore effectively Sukhbaatar et al. (2018), we are concerned with learning without access to resets.
|
| 101 |
+
|
| 102 |
+
While this line of work has connections to developmental robotics (Lungarella et al., 2003; Asada et al., 2009) and its subfields, such as continual (Lesort et al., 2019) and lifelong (Thrun & Mitchell, 1995) learning, the goal of our work is to handle the practicalities of enabling reinforcement learning systems to learn in the real world without instrumentation or interruption, even for a single task setting. Though our work does not directly study continual lifelong learning, nor all facets of developmental robotics, it relates to continual learning (Lesort et al., 2019), intrinsic motivation (Schmidhuber, 2006) and sensory-motor development involving proprioceptive manipulation (Stoica, 2001).
|
| 103 |
+
|
| 104 |
+
# 6 EXPERIMENTS
|
| 105 |
+
|
| 106 |
+
In our experimental evaluation, we study how well the R3L system, described in Sections 2 and 4, can learn under realistic settings – visual observations, no hand-specified rewards, and no resets. We consider the following hypotheses:
|
| 107 |
+
|
| 108 |
+
1. Can we use R3L to learn complex robotic manipulation tasks without instrumentation? Does this system learn skills in both simulation and the real world?
|
| 109 |
+
2. Do the solutions proposed in Section 4 actually enable R3L to perform tasks without instrumentation that would not have been otherwise possible?
|
| 110 |
+
|
| 111 |
+
# 6.1 EXPERIMENTAL SETUP
|
| 112 |
+
|
| 113 |
+
We consider the task of dexterous manipulation with a three fingered robotic hand, the D’Claw (Zhu et al., 2019; Ahn et al., 2019), on a number of simulated and real world tasks. These tasks involve complex coordination of three fingers with 3 DoF each in order to manipulate objects. Prior works that used this robot utilized explicit resets and low-dimensional true state observations, while we consider settings with visual observations, no hand-specified rewards, and no resets.
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Figure 6: Visualizations of the goal configurations of the simulated and real world tasks being considered. From left to right we depict valve rotation, bead manipulation and free object repositioning in simulation, as well as valve rotation and bead manipulation manipulation in the real world.
|
| 117 |
+
|
| 118 |
+
The tasks in our experiments are shown in Fig 6: manipulating beads on an abacus row, valve rotation, and free object repositioning. These tasks represent a wide class of problems that robots might encounter in the real world. For each task, we consider the problem of reaching the depicted goal configuration: moving the abacus beads to a particular position, rotating the valve to a particular angle, and repositioning the free object to a particular goal position. For each task, policies are evaluated from a wide selection of initial configurations. Additional details about the tasks and evaluation procedures are provided in Appendix C. Videos and additional details can be found at https://sites.google.com/view/realworld-rl/
|
| 119 |
+
|
| 120 |
+
# 6.2 LEARNING IN SIMULATION WITHOUT INSTRUMENTATION
|
| 121 |
+
|
| 122 |
+
We compare our entire proposed system implementation (Section 4) with a number of baselines and ablations. Importantly, all methods must operate under the same assumptions: none of the algorithms have access to system instrumentation for state estimation, reward specification, or episodic resets. Firstly, we compare the performance of R3L to a system which uses SAC for vision-based RL from raw pixels, VICE for providing rewards and running reset-free (denoted as “VICE”). This corresponds to the vanilla version of R3L (Section 2), with none of the proposed insights and changes. We then compare with prior reset-free RL algorithms (Eysenbach et al., 2018) that explicitly learn a reset controller to alternate goals in the state space (“Reset Controller $^ +$ VAE”). Lastly, we compare algorithm performance with two ablations: running R3L without the perturbation controller (“VICE $+ \ \mathrm { V A E } ^ { \prime \prime } )$ ) and without the unsupervised learning (“R3L w/o VAE”). This highlights the significance of each of the components of R3L .
|
| 123 |
+
|
| 124 |
+
From the experimental results in Fig 7, it is clear that R3L is able to reach the best performance across tasks, while none of the other methods are able to solve all of the tasks. Different prior methods and ablations fail for different reasons: (1) methods without the reconstruction objective struggle at parsing the high-dimensional input and are unable to solve the harder task; (2) methods without the perturbation controller are ineffective at learning how to reach the goal from novel initialization positions for the more challenging object repositioning tasks, as discussed in Section 4.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 7: Quantitative evaluation of performance in simulation for bead manipulation, valve rotation and free object repositioning (left to right) run with 10 random seeds. The error bars show $9 5 \%$ bootstrap confidence intervals for average performance. While other variants are sufficient to get good evaluation performance on easier tasks, harder tasks like free object repositioning require random perturbations and unsupervised representation learning to learn skills reset-free. See Appendix C.1 for details of evaluation procedures.
|
| 128 |
+
|
| 129 |
+
We note that an explicit reset controller, which can be viewed as a softer version of our perturbation controller with goal-directedness, learns to solve the easier tasks due to the reset controller encouraging exploration of the state space. In our experiments for free object repositioning, performance was reported across 3 choices of reset states. The high variance in evaluation performance indicates that the performance of such a controller (or a goal conditioned variant of it) is highly sensitive to the choice of reset states. A poor choice of reset states, such as two that are very close together, may yield poor exploration leading to performance similar to the single goal VICE baseline. Furthermore, the choice of reset states is highly task dependent and it is often not clear what choice of goals will yield the best performance. On the contrary, our method does not require such task-specific knowledge and uses random perturbations to reset while training without any explicit reset states: this allows for a robust, instrumentation-free controller while also ensuring fast convergence.
|
| 130 |
+
|
| 131 |
+
# 6.3 LEARNING IN THE REAL WORLD WITHOUT INSTRUMENTATION
|
| 132 |
+
|
| 133 |
+
Since the aim of R3L is to enable uninstrumented training in the real world, we next evaluate our method on a real-world robotic system, providing evidence that our insights generalize to the real world without any instrumentation. After providing the initial outcome examples for learning the reward function with VICE, we leave the robot unattended, and the algorithm learns the desired behavior through interaction. The experiments are performed on the D’Claw robotic hand with an RGB camera as the only sensory input. Intermediate policies are saved at regular intervals, and evaluations of all policies is performed after training has completed. For valve rotation, we declare an evaluation rollout a success if the final orientation is within within $1 5 ^ { \circ }$ of the goal. For bead manipulation, we declare success if all the beads are within $2 \mathrm { c m }$ of the goal state. Fig 8 compares the performance of our method without supervised learning (“R3L w/o VAE”) in the real world against a baseline that uses SAC for vision-based RL from raw pixels, VICE for providing rewards, and running reset-free (denoted as “VICE”). We see that our method learns policies that succeed from nearly all the initial configurations, whereas VICE alone fails from most initial configurations. Fig 9 depicts sample evaluation rollouts of the policies learned using our method. For further details about real world experiments see Appendix C.2.
|
| 134 |
+
|
| 135 |
+
# 7 DISCUSSION
|
| 136 |
+
|
| 137 |
+
We presented the design and instantiation of a system for real world reinforcement learning. We identify and investigate the various ingredients required for such a system to scale gracefully with minimal human engineering and supervision. We show that this system must be able to learn from raw sensory observations, learn from very easily specified reward functions without reward engineering, and learn without any episodic resets. We describe the basic elements that are required to construct such a system, and identify unexpected learning challenges that arise from interplay of these elements. We propose simple and scalable fixes to these challenges through introducing unsupervised representation learning and a randomized perturbation controller.
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
Figure 8: Quantitative evaluation of performance in real-world for valve rotation and bead manipulation. Policies trained with perturbation controllers have effectively learned behaviors after 17 and 5 hours of training, respectively. For more fine-grained reporting of results see Figs 13-16.
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
Figure 9: Evaluation rollouts of R3L on the real world tasks for policies trained without instrumentation. Successful evaluation rollouts for bead manipulation (top) and valve rotation (bottom) are shown here.
|
| 144 |
+
|
| 145 |
+
The ability to train robots directly in the real world with minimal instrumentation opens a number of exciting avenues for future research. Robots that can learn unattended, without resets or handdesigned reward functions, can in principle collect very large amounts of experience autonomously, which may enable very broad generalization in the future. However, there are also a number of additional challenges, including sample complexity, optimization and exploration difficulties on more complex tasks, safe operation, communication latency, sensing and actuation noise, and so forth, all of which would need to be addressed in future work in order to enable truly scalable real-world robotic learning.
|
| 146 |
+
|
| 147 |
+
# ACKNOWLEDGMENTS
|
| 148 |
+
|
| 149 |
+
This research is supported by the Office of Naval Research, the National Science Foundation under IIS-1651843 and IIS-1700696, Google, NVIDIA, and Amazon. The authors would like to thank Ignasi Clavera, Gregory Kahn, Coline Devin, Benjamin Eysenbach, Aviral Kumar, Anusha Nagabandi, Marvin Zhang, Ashvin Nair and several others in the RAIL Lab for helpful discussions and feedback.
|
| 150 |
+
|
| 151 |
+
# REFERENCES
|
| 152 |
+
|
| 153 |
+
Michael Ahn, Henry Zhu, Kristian Hartikainen, Hugo Ponte, Abhishek Gupta, Sergey Levine, and Vikash Kumar. ROBEL: RObotics BEnchmarks for Learning with low-cost robots. In Conference on Robot Learning (CoRL), 2019.
|
| 154 |
+
|
| 155 |
+
Ankesh Anand, Evan Racah, Sherjil Ozair, Yoshua Bengio, Marc-Alexandre Cotˆ e, and R. Devon ´ Hjelm. Unsupervised state representation learning in atari. arXiv, 2019.
|
| 156 |
+
|
| 157 |
+
Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, et al. Learning dexterous in-hand manipulation. arXiv preprint arXiv:1808.00177, 2018.
|
| 158 |
+
|
| 159 |
+
Minoru Asada, Koh Hosoda, Yasuo Kuniyoshi, Hiroshi Ishiguro, Toshio Inui, Yuichiro Yoshikawa, Masaki Ogino, and Chisato Yoshida. Cognitive developmental robotics: A survey. IEEE Trans. Autonomous Mental Development, 1(1):12–34, 2009. doi: 10.1109/TAMD.2009.2021702. URL https://doi.org/10.1109/TAMD.2009.2021702.
|
| 160 |
+
|
| 161 |
+
Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018.
|
| 162 |
+
|
| 163 |
+
Yevgen Chebotar, Mrinal Kalakrishnan, Ali Yahya, Adrian Li, Stefan Schaal, and Sergey Levine. Path integral guided policy search. CoRR, abs/1610.00529, 2016.
|
| 164 |
+
|
| 165 |
+
Yevgen Chebotar, Karol Hausman, Marvin Zhang, Gaurav Sukhatme, Stefan Schaal, and Sergey Levine. Combining model-based and model-free updates for trajectory-centric reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 703–711. JMLR. org, 2017.
|
| 166 |
+
|
| 167 |
+
Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems, pp. 4299–4307, 2017.
|
| 168 |
+
|
| 169 |
+
Ignasi Clavera, Jonas Rothfuss, John Schulman, Yasuhiro Fujita, Tamim Asfour, and Pieter Abbeel. Model-Based Reinforcement Learning via Meta-Policy Optimization. arXiv e-prints, art. arXiv:1809.05214, Sep 2018.
|
| 170 |
+
|
| 171 |
+
Coline Devin, Pieter Abbeel, Trevor Darrell, and Sergey Levine. Deep object-centric representations for generalizable robot learning. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 7111–7118. IEEE, 2018.
|
| 172 |
+
|
| 173 |
+
Benjamin Eysenbach, Shixiang Gu, Julian Ibarz, and Sergey Levine. Leave no trace: Learning to reset for safe and autonomous reinforcement learning. In International Conference on Learning Representations (ICLR), 2018.
|
| 174 |
+
|
| 175 |
+
Chelsea Finn and Sergey Levine. Deep visual foresight for planning robot motion. CoRR, abs/1610.00696, 2016. URL http://arxiv.org/abs/1610.00696.
|
| 176 |
+
|
| 177 |
+
Justin Fu, Avi Singh, Dibya Ghosh, Larry Yang, and Sergey Levine. Variational inverse control with events: A general framework for data-driven reward definition. In Advances in Neural Information Processing Systems, 2018.
|
| 178 |
+
|
| 179 |
+
Shixiang Gu, Ethan Holly, Timothy Lillicrap, and Sergey Levine. Deep reinforcement learning for robotic manipulation with asynchronous off-policy updates. In 2017 IEEE international conference on robotics and automation (ICRA), pp. 3389–3396. IEEE, 2017.
|
| 180 |
+
|
| 181 |
+
Abhishek Gupta, Clemens Eppner, Sergey Levine, and Pieter Abbeel. Learning dexterous manipulation for a soft robotic hand from human demonstrations. 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3786–3793, 2016.
|
| 182 |
+
|
| 183 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the 35th International Conference on Machine Learning, 2018a.
|
| 184 |
+
|
| 185 |
+
Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018b.
|
| 186 |
+
|
| 187 |
+
Weiqiao Han, Sergey Levine, and Pieter Abbeel. Learning compound multi-step controllers under unknown dynamics. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 6435–6442. IEEE, 2015.
|
| 188 |
+
|
| 189 |
+
R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ Bklr3j0cKX.
|
| 190 |
+
|
| 191 |
+
Max Jaderberg, Volodymyr Mnih, Wojciech Marian Czarnecki, Tom Schaul, Joel Z Leibo, David Silver, and Koray Kavukcuoglu. Reinforcement learning with unsupervised auxiliary tasks. arXiv preprint arXiv:1611.05397, 2016.
|
| 192 |
+
|
| 193 |
+
Dmitry Kalashnikov, Alex Irpan, Peter Pastor, Julian Ibarz, Alexander Herzog, Eric Jang, Deirdre Quillen, Ethan Holly, Mrinal Kalakrishnan, Vincent Vanhoucke, et al. Qt-opt: Scalable deep reinforcement learning for vision-based robotic manipulation. arXiv preprint arXiv:1806.10293, 2018.
|
| 194 |
+
|
| 195 |
+
Katie Kang, Suneel Belkhale, Gregory Kahn, Pieter Abbeel, and Sergey Levine. Generalization through Simulation: Integrating Simulated and Real Data into Deep Reinforcement Learning for Vision-Based Autonomous Flight. arXiv e-prints, art. arXiv:1902.03701, Feb 2019.
|
| 196 |
+
|
| 197 |
+
Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. CoRR, abs/1312.6114, 2013.
|
| 198 |
+
|
| 199 |
+
Vikash Kumar, Emanuel Todorov, and Sergey Levine. Optimal control with learned local models: Application to dexterous manipulation. In 2016 IEEE International Conference on Robotics and Automation (ICRA), pp. 378–383. IEEE, 2016.
|
| 200 |
+
|
| 201 |
+
Alex X. Lee, Anusha Nagabandi, Pieter Abbeel, and Sergey Levine. Stochastic latent actor-critic: Deep reinforcement learning with a latent variable model. CoRR, abs/1907.00953, 2019.
|
| 202 |
+
|
| 203 |
+
Timothee Lesort, Vincenzo Lomonaco, Andrei Stoian, Davide Maltoni, David Filliat, and Na-´ talia D´ıaz Rodr´ıguez. Continual learning for robotics. CoRR, abs/1907.00182, 2019. URL http://arxiv.org/abs/1907.00182.
|
| 204 |
+
|
| 205 |
+
Sergey Levine and Vladlen Koltun. Guided policy search. In Proceedings of The 30th International Conference on Machine Learning, 2013.
|
| 206 |
+
|
| 207 |
+
Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. J. Mach. Learn. Res., 17(1), 2016. ISSN 1532-4435.
|
| 208 |
+
|
| 209 |
+
Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
|
| 210 |
+
|
| 211 |
+
YuXuan Liu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Imitation from observation: Learning to imitate behaviors from raw video via context translation. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 1118–1125. IEEE, 2018.
|
| 212 |
+
|
| 213 |
+
Max Lungarella, Giorgio Metta, Rolf Pfeifer, and Giulio Sandini. Developmental robotics: a survey. Connection Science, 15(4):151–190, 2003. doi: 10.1080/09540090310001655110.
|
| 214 |
+
|
| 215 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540), 2015.
|
| 216 |
+
|
| 217 |
+
Anusha Nagabandi, Kurt Konoglie, Sergey Levine, and Vikash Kumar. Deep Dynamics Models for Learning Dexterous Manipulation. In Conference on Robot Learning (CoRL), 2019.
|
| 218 |
+
|
| 219 |
+
Ashvin Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. CoRR, abs/1807.04742, 2018.
|
| 220 |
+
|
| 221 |
+
Andrew Y. Ng and Stuart J. Russell. Algorithms for inverse reinforcement learning. In Proceedings of the Seventeenth International Conference on Machine Learning, ICML ’00, 2000. ISBN 1- 55860-707-2.
|
| 222 |
+
|
| 223 |
+
Xue Bin Peng, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Sim-to-Real Transfer of Robotic Control with Dynamics Randomization. arXiv e-prints, art. arXiv:1710.06537, Oct 2017.
|
| 224 |
+
|
| 225 |
+
Lerrel Pinto, Marcin Andrychowicz, Peter Welinder, Wojciech Zaremba, and Pieter Abbeel. Asymmetric actor critic for image-based robot learning. arXiv preprint arXiv:1710.06542, 2017a.
|
| 226 |
+
|
| 227 |
+
Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2817–2826, International Convention Centre, Sydney, Australia, 06–11 Aug 2017b. PMLR. URL http://proceedings.mlr.press/v70/pinto17a.html.
|
| 228 |
+
|
| 229 |
+
Connor Schenck and Dieter Fox. Visual closed-loop control for pouring liquids. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pp. 2629–2636. IEEE, 2017.
|
| 230 |
+
|
| 231 |
+
Jurgen Schmidhuber. Developmental robotics, optimal artificial curiosity, creativity, music, and ¨ the fine arts. Connect. Sci., 18(2):173–187, 2006. doi: 10.1080/09540090600768658. URL https://doi.org/10.1080/09540090600768658.
|
| 232 |
+
|
| 233 |
+
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pp. 1889–1897, 2015.
|
| 234 |
+
|
| 235 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 236 |
+
|
| 237 |
+
Avi Singh, Larry Yang, Kristian Hartikainen, Chelsea Finn, and Sergey Levine. End-to-end robotic reinforcement learning without reward engineering. In Robotics: Science and Systems (RSS), 2019.
|
| 238 |
+
|
| 239 |
+
Adrian Stoica. Robot fostering techniques for sensory-motor development of humanoid robots. Robotics and Autonomous Systems, 37(2-3):127–143, 2001. doi: 10.1016/S0921-8890(01) 00154-3. URL https://doi.org/10.1016/S0921-8890(01)00154-3.
|
| 240 |
+
|
| 241 |
+
Sainbayar Sukhbaatar, Zeming Lin, Ilya Kostrikov, Gabriel Synnaeve, Arthur Szlam, and Rob Fergus. Intrinsic motivation and automatic curricula via asymmetric self-play. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
|
| 242 |
+
|
| 243 |
+
Sebastian Thrun and Tom M. Mitchell. Lifelong robot learning. Robotics and Autonomous Systems, 15(1-2):25–46, 1995. doi: 10.1016/0921-8890(95)00004-Y. URL https://doi.org/10. 1016/0921-8890(95)00004-Y.
|
| 244 |
+
|
| 245 |
+
Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World. arXiv e-prints, art. arXiv:1703.06907, Mar 2017.
|
| 246 |
+
|
| 247 |
+
Eric Tzeng, Coline Devin, Judy Hoffman, Chelsea Finn, Pieter Abbeel, Sergey Levine, Kate Saenko, and Trevor Darrell. Adapting Deep Visuomotor Representations with Weak Pairwise Constraints. arXiv e-prints, art. arXiv:1511.07111, Nov 2015.
|
| 248 |
+
|
| 249 |
+
Matej Vecerik, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothorl, Thomas Lampe, and Martin A. Riedmiller. Leveraging demon- ¨ strations for deep reinforcement learning on robotics problems with sparse rewards. CoRR, abs/1707.08817, 2017. URL http://arxiv.org/abs/1707.08817.
|
| 250 |
+
|
| 251 |
+
Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empiri- ´ cal risk minimization. In International Conference on Learning Representations, 2018.
|
| 252 |
+
|
| 253 |
+
Henry Zhu, Abhishek Gupta, Aravind Rajeswaran, Sergey Levine, and Vikash Kumar. Dexterous manipulation with deep reinforcement learning: Efficient, general, and low-cost. In 2019 International Conference on Robotics and Automation (ICRA), pp. 3651–3657. IEEE, 2019.
|
| 254 |
+
|
| 255 |
+
A ALGORITHM DETAILS
|
| 256 |
+
|
| 257 |
+
# Algorithm 1 Real-World Robotic Reinforcement Learning (R3L)
|
| 258 |
+
|
| 259 |
+
<table><tr><td colspan="2">procedure R3L</td></tr><tr><td>1: 2:</td><td>N ← number of training epochs</td></tr><tr><td>3:</td><td>H ← trajectory length (horizon)</td></tr><tr><td>4:</td><td>nvICE ← number of VICE classifier training iterations per epoch</td></tr><tr><td>5:</td><td>Initialize forward and perturbing policies To,π1</td></tr><tr><td>6:</td><td>Obtain goal states sE and initialize as a goal pool G</td></tr><tr><td>7:</td><td>Initialize RND target and predictor networks f(s), f(s)</td></tr><tr><td>8:</td><td>Initialize VICE reward classifier rvICE(s)</td></tr><tr><td>9:</td><td>Initialize replay buffer D</td></tr><tr><td>10:</td><td>Collect initial exploration data and add to D</td></tr><tr><td>11:</td><td>for i= 1 to 2N do</td></tr><tr><td>12:</td><td>k←i%2</td></tr><tr><td>13:</td><td>for t = 1 to H do</td></tr><tr><td>14:</td><td>Sample at ~ Tk(St)</td></tr><tr><td>15:</td><td>Sample St+1 ~ p(St+1|St,at)</td></tr><tr><td>16:</td><td>if k== O then</td></tr><tr><td>17:</td><td>rt(St)= CVICE * rVICE(St)+ CRND * rRND(St)</td></tr><tr><td>18:</td><td>else if k==1 then</td></tr><tr><td>19:</td><td>rt(St)= rRND(St)</td></tr><tr><td>20:</td><td>end if</td></tr><tr><td>21:</td><td>Sample batch from D</td></tr><tr><td>22:</td><td>Update πk with batch according to SAC</td></tr><tr><td>23:</td><td>Update RND predictor network with batch</td></tr><tr><td>24:</td><td>Update running estimate of standard deviations of classifier and RND reward</td></tr><tr><td>25:</td><td>end for</td></tr><tr><td>26:</td><td>Add experience to the replay buffer with D ← DU Ti</td></tr><tr><td>27:</td><td>Sample an equal number of goal examples from G and negative examples from D</td></tr><tr><td>28:</td><td>for t= 1 to nvice do</td></tr><tr><td>29:</td><td>Train the VICE classifier on this batch with binary labels</td></tr><tr><td>30:</td><td>end for</td></tr><tr><td>31:</td><td>end for</td></tr><tr><td>32: end procedure</td><td></td></tr></table>
|
| 260 |
+
|
| 261 |
+
# B TRAINING DETAILS
|
| 262 |
+
|
| 263 |
+
B.0.1 HYPERPARAMETERS
|
| 264 |
+
|
| 265 |
+
<table><tr><td rowspan=1 colspan=1>General</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Standard deviation up-date coefficientImage Sizes</td><td rowspan=1 colspan=1>0.99[(16, 16,3), (32,32,3), (64, 64, 3)]</td></tr><tr><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Learning RateyBatch SizeConvnet FiltersStrideKernel SizesPoolingActor/Critic FC Lay-ers</td><td rowspan=1 colspan=1>3e-40.99256[(64, 64,64), (16,32, 64)](2,2)(3,3)[MaxPool2D,None][(512,512), (256, 256, 256)]</td></tr><tr><td rowspan=1 colspan=1>VICE</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>nvICEBatch SizeLearning RateMixup αConvnet FiltersStrideKernel SizesPoolingFC Layers</td><td rowspan=1 colspan=1>[1,5,10]1281e-4Uniform(0, 1)[(64, 64,64), (16, 32, 64)](2,2)(3,3)[MaxPool2D,None][(512,512), (256,256,256)]</td></tr><tr><td rowspan=1 colspan=1>RND</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Learning RateBatch SizeConvnet FiltersStrideKernel SizesPoolingFC Layers</td><td rowspan=1 colspan=1>3e-4256(16, 32, 64)(2,2)(3,3)[MaxPool2D, None][(512,512), (256,256,256)]</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Learning RateBatch SizeEncoder (Convnet)FiltersLatent DimensionβStrideKernel SizesPooling</td><td rowspan=1 colspan=1>1e-4256(64, 64, 32)[8, 16,32, 64][1e-3, 0.1, 0.5, 1, 10](2,2)(3,3)[MaxPool2D, None]</td></tr></table>
|
| 266 |
+
|
| 267 |
+
The ranges of values listed above represent the hyperparameters we searched over, and the bolded values are what we use in the Section 6 experiments.
|
| 268 |
+
|
| 269 |
+
# B.0.2 VICE
|
| 270 |
+
|
| 271 |
+
We use a variant of VICE which defines the reward as the logits of the classifier, notably omitting the $- l o g ( \pi ( a | s ) )$ term. We also regularize our classifier with mixup (Zhang et al., 2018). We train all of our experiments using 200 goal images, which takes under an hour to collect in the real world for each task.
|
| 272 |
+
|
| 273 |
+
# B.0.3 RANDOM NETWORK DISTILLATION (RND)
|
| 274 |
+
|
| 275 |
+
We found it important to normalize the predictor errors, just as (Burda et al., 2018) did.
|
| 276 |
+
|
| 277 |
+
# B.0.4 VAE
|
| 278 |
+
|
| 279 |
+
We train a standard beta-VAE to maximize the evidence lower bound, given by:
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
\mathbb { E } _ { z \sim q _ { \phi } ( z | x ) } [ p _ { \theta } ( x | z ) ] - \beta D _ { \mathrm { K L } } ( q _ { \phi } ( z | x ) | | p _ { \theta } ( z ) )
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
To collect training data, we sampled random states in the observation space. In the real world, this sampling can be replaced with training an exploratory policy (i.e. using the RND reward as the policy’s only objective). The learned weights of the encoder of the VAE are frozen, and the latent input is used to train the policy for reset-free RL.
|
| 286 |
+
|
| 287 |
+
# C TASK DETAILS
|
| 288 |
+
|
| 289 |
+
# C.1 SIMULATED TASKS
|
| 290 |
+
|
| 291 |
+
We evaluated our system across three tasks in simulation: bead manipulation, valve rotation, free object repositioning.
|
| 292 |
+
|
| 293 |
+
# C.1.1 BEAD MANIPULATION
|
| 294 |
+
|
| 295 |
+
The bead manipulation task involves an abacus rod with four beads that can slide freely. The goal is to position two beads on each end from any initial configuration of beads. This can take the form of sliding one bead over (if three beads start on one side), two beads over (if all four beads start on one side), splitting beads apart (all four beads start in the middle), or some intermediate combination of those. The true reward is defined as the mean goal distance of all four beads. Policies are evaluated starting from the 8 initial configurations depicted in Fig 10. Evaluation performance reported in Section 6 for this task is defined as the final reward averaged across the 8 evaluation rollouts.
|
| 296 |
+
|
| 297 |
+

|
| 298 |
+
Figure 10: These are the 8 initial positions used for evaluating the performance of the bead manipulation policy. The goal configuration (which is also an initial evaluation position) is highlighted in yellow.
|
| 299 |
+
|
| 300 |
+
# C.1.2 VALVE ROTATION
|
| 301 |
+
|
| 302 |
+
The claw is positioned above a three pronged valve ( $1 5 \mathrm { c m }$ in diameter). The objective is to turn the valve to a given orientation from any initial orientation. The ”true reward” is $\dot { r } = - \log ( | \theta _ { s t a t e } -$ $\theta _ { g o a l } | .$ ). Policies are evaluated starting from the 8 initial configurations depicted in Fig 11. Evaluation performance reported in Section 6 for this task is defined as the final orientation distance averaged across the 8 evaluation rollouts.
|
| 303 |
+
|
| 304 |
+
# C.1.3 FREE OBJECT REPOSITIONING
|
| 305 |
+
|
| 306 |
+
The claw is positioned atop a free $6 ~ \mathrm { D o F } )$ three pronged object ( $1 5 \mathrm { c m }$ in diameter), which can translate and rotate within a $3 0 \mathrm { c m } x 3 0 \mathrm { c m }$ box. The goal is specified by a xy-position as well as a $\mathbf { Z }$ -angle, where the xy-plane is the plane of the arena. The true reward is defined as the weighted sum of the angular and translational distances, $r = - 2 \log ( | | [ x _ { s t a t e } , y _ { s t a t e } ] - [ x _ { g o a l } , y _ { g o a l } ] | | _ { 2 } ) -$ $\log ( | \theta _ { s t a t e } - \theta _ { g o a l } | )$ . In our experiments, $( x , y , \theta ) _ { g o a l } = ( 0 , 0 , - \frac { \pi } { 2 } )$ , where the origin is centered in the arena. Policies are evaluated starting from the 15 initial configurations depicted in Figure 12. Evaluation performance reported in Section 6 for this task is defined as the final pose distance ( ||[xf inal,yf inal]−[xgoal,ygoal]||2 + |θf inal−θgoal| ) averaged across the 15 evaluation rollouts.
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
Figure 11: These are the 8 initial positions used for evaluating the performance of the valve rotation policy. The goal configuration (which is also an initial evaluation position) is highlighted in yellow.
|
| 310 |
+
|
| 311 |
+
In our reset controller experiments, we averaged evaluation performance over three different choices of reset states, where the first reset state is always the goal:
|
| 312 |
+
|
| 313 |
+
1. $( x , y , \theta ) _ { r e s e t , 1 } = ( x , y , \theta ) _ { g o a l } , ( x , y , \theta ) _ { r e s e t , 2 } = ( 0 . 0 5 , 0 . 0 5 , \frac { \pi } { 2 } )$
|
| 314 |
+
2. $\begin{array} { r } { ( x , y , \theta ) _ { r e s e t , 1 } = ( x , y , \theta ) _ { g o a l } , ( x , y , \theta ) _ { r e s e t , 2 } = ( 0 , 0 , - \frac { \pi } { 6 } ) } \end{array}$
|
| 315 |
+
3. $( x , y , \theta ) _ { r e s e t , 1 } = ( x , y , \theta ) _ { g o a l } , ( x , y , \theta ) _ { r e s e t , 2 } = ( - 0 . 0 4 , - 0 . 0 4 , - \frac { \pi } { 2 } )$
|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
Figure 12: These are the 15 initial positions used for evaluating the performance of the free object repositioning policy. The goal configuration $( x , y , \theta ) _ { g o a l }$ which is also an initial evaluation position is highlighted in yellow.
|
| 319 |
+
|
| 320 |
+
# C.2 REAL WORLD TASKS
|
| 321 |
+
|
| 322 |
+
For each setup we use an RGB camera to get images. We execute actions on the DClaw at $1 0 \mathrm { H z }$ . In order to operate at such a high frequency while also training from images we sample and train asynchronously, but limit training to not exceed two gradient steps per transition sampled in the real world. Since direct performance metrics cannot be measured during training due to the lack of object instrumentation, evaluations of performance are done post-training.
|
| 323 |
+
|
| 324 |
+
# C.2.1 VALVE ROTATION
|
| 325 |
+
|
| 326 |
+
The task is identical to the one in simulation. Evaluations were done post-training. An evaluation trajectory was defined as a success if at the last step, the valve was within 15 degrees of the goal. Each policy was evaluated over 8 rollouts, with initial configurations evenly spaced out between at increments of 45 degrees. Results are reported in Figures 13, 14.
|
| 327 |
+
|
| 328 |
+
# C.2.2 BEAD MANIPULATION
|
| 329 |
+
|
| 330 |
+
The rod is $2 2 \mathrm { c m }$ in length, and each bead measures $3 . 5 \mathrm { c m }$ in diameter. Evaluations were done post-training, using the following procedure: the environment was manually reset to each of the 8 specified configurations shown in Figures 15 and 16 (which cover a full range of the state space) at the start of each evaluation rollout. An evaluation trajectory was defined as a success if at the last time step, all beads were within $2 \mathrm { c m }$ of their goal positions. Performance was evaluated at around 20 hours, at which point the policy achieved greater than $80 \%$ success on the 10 evaluation rollouts (a random policy achieved a success rate of $10 \%$ ). Results are reported in Figs 15, 16.
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
Figure 13: These are the results of the evaluation rollouts on the valve rotation task in the real world using our method (without the VAE). Trained policies were saved at regular intervals and evaluated post-training. Each row is a different policy, and each column an evaluation rollout from a different initial configuration. The goal is highlighted in yellow. Our method is able to achieve high success rates after 5 hours of training.
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
Figure 14: These are the results of evaluation rollouts on the valve rotation task in the real world using the VICE single goal baseline. The policies fail to evaluate well, especially from initial positions far from the goal position.
|
| 337 |
+
|
| 338 |
+

|
| 339 |
+
Figure 15: These are the results of the evaluation rollouts on the valve rotation task in the real world using our method (without the VAE). Trained policies were saved at regular intervals and evaluated post-training. Each row is a different policy, and each column an evaluation rollout from a different initial configuration. The goal is highlighted in yellow. Our method is able to achieve high success rates after 17 hours of training.
|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
Figure 16: These are the results of evaluation rollouts on the valve rotation task in the real world using the VICE single goal baseline. The policies fail to evaluate consistently, except when the initial configuration matches the goal configuration.
|
parse/train/rJe2syrtvS/rJe2syrtvS_content_list.json
ADDED
|
@@ -0,0 +1,1935 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "THE INGREDIENTS OF REAL-WORLD ROBOTIC REINFORCEMENT LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
640,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Henry $\\mathbf { L h u ^ { * 1 } }$ , Justin $\\mathbf { V } \\mathbf { u } ^ { * 1 }$ , Abhishek Gupta∗1, Dhruv Shah1, Kristian Hartikainen2, Avi Singh1, Vikash Kumar3, Sergey Levine1 1 University of California, Berkeley 2 University of Oxford 3 University of Washington ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
167,
|
| 20 |
+
774,
|
| 21 |
+
213
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
251,
|
| 32 |
+
544,
|
| 33 |
+
265
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "The success of reinforcement learning for real world robotics has been, in many cases limited to instrumented laboratory scenarios, often requiring arduous human effort and oversight to enable continuous learning. In this work, we discuss the elements that are needed for a robotic learning system that can continually and autonomously improve with data collected in the real world. We propose a particular instantiation of such a system, using dexterous manipulation as our case study. Subsequently, we investigate a number of challenges that come up when learning without instrumentation. In such settings, learning must be feasible without manually designed resets, using only on-board perception, and without hand-engineered reward functions. We propose simple and scalable solutions to these challenges, and then demonstrate the efficacy of our proposed system on a set of dexterous robotic manipulation tasks, providing an in-depth analysis of the challenges associated with this learning paradigm. We demonstrate that our complete system can learn without any human intervention, acquiring a variety of vision-based skills with a real-world three-fingered hand. Results and videos can be found at https://sites.google.com/view/realworld-rl/. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
282,
|
| 43 |
+
764,
|
| 44 |
+
502
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
530,
|
| 55 |
+
336,
|
| 56 |
+
545
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Reinforcement learning (RL) can in principle enable autonomous systems, such as robots, to acquire a large repertoire of skills automatically. Perhaps even more importantly, reinforcement learning can enable such systems to continuously improve the proficiency of their skills from experience. However, realizing this in reality has proven challenging: even with reinforcement learning methods that can acquire complex behaviors from high-dimensional low-level observations, such as images, the assumptions of the reinforcement learning problem setting do not fit cleanly into the constraints of the real world. For this reason, most successful robotic learning experiments have employed various kinds of environmental instrumentation in order to define reward functions, reset between trials, and obtain ground truth state (Levine et al., 2016; Haarnoja et al., 2018a; Kumar et al., 2016; Andrychowicz et al., 2018; Zhu et al., 2019; Chebotar et al., 2016; Nagabandi et al., 2019; Gupta et al., 2016). In order to practically and scalably deploy autonomous learning systems that improve continuously through real-world operation, we must lift these limitations and design algorithms that can learn under the constraints of real-world environments, as illustrated in Figure 2. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
561,
|
| 66 |
+
825,
|
| 67 |
+
741
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "We propose that overcoming these challenges in a scalable way requires designing robotic systems that possess three capabilities: they are able to (1) learn from their own raw sensory inputs, (2) assign rewards to their own trials without hand-designed perception systems or instrumentation, and (3) learn continuously in non-episodic settings without requiring human intervention to manually reset the environment. A system with these capabilities can autonomously collect large amounts of real world data – typically crucial for effective generalization – without significant instrumentation in each training environment, an example of which is shown in Figure 1. If successful, this would lift a major constraint that stands between current reinforcement learning algorithms and the ability to learn scalable, generalizable, and robust real-world behaviors. Such a system would also bring us significantly closer to the goal of embodied learning-based systems that improve continuously through their own real-world experience. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
748,
|
| 77 |
+
825,
|
| 78 |
+
901
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/83c7b9a06c076f3cf373c41b31868ce93909c4644428dbe54f3993fd7de2ca93.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Illustration of our proposed instrumentation-free system requiring minimal human engineering. Human intervention is only required in the goal collection phase (1). The robot is left to train unattended (2) during the learning phase and can be evaluated from arbitrary initial states at the end of training (3). We show sample goal and intermediate images from the training process of a real hardware system "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
191,
|
| 91 |
+
102,
|
| 92 |
+
810,
|
| 93 |
+
257
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "Having laid out these requirements, we propose a practical instantiation of such a learning system. While prior works have studied many of these issues in isolation, combining them into a complete real-world learning system presents a number of challenges, as we discuss in Section 3. We provide an empirical analysis of these issues, both in simulation and on a real-world robotic system, and propose a number of simple but effective solutions that together produce a complete robotic learning system. This system can autonomously learn from raw sensory inputs, learn reward functions from easily available supervision, and learn without manually designed reset mechanisms. We show that this system can learn dexterous robotic manipulation tasks in the real world, substantially outperforming ablations and prior work. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
377,
|
| 103 |
+
825,
|
| 104 |
+
502
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "2 THE STRUCTURE OF A REAL-WORLD RL SYSTEM ",
|
| 111 |
+
"text_level": 1,
|
| 112 |
+
"bbox": [
|
| 113 |
+
176,
|
| 114 |
+
536,
|
| 115 |
+
624,
|
| 116 |
+
553
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "The standard reinforcement learning paradigm assumes that the controlled system is represented as a Markov decision process with a state space $s$ , action space $\\mathcal { A }$ , unknown transition dynamics $\\tau$ , unknown reward function $\\mathcal { R }$ , and a (typically) episodic initial state distribution $\\rho$ . The goal is to learn a policy that maximizes the expected sum of rewards via interactions with the environment. ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
575,
|
| 126 |
+
825,
|
| 127 |
+
631
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "Although this formalism is simple and concise, it does not capture all of the complexities of realworld robotic learning problems. If a robotic system is to learn continuously and autonomously in the real world, we must ensure that it can learn under the actual conditions that are imposed by the real world. To move from the idealized MDP formulation to the real world, we require a system that has the following properties. First, all of the information necessary for learning must be obtained from the robot’s own sensors. This includes information about the state and necessitates that the policy must be learned from high-dimensional and low-level sensory observations, such as camera images. Second, the robot must also obtain the reward signal itself from its own sensor readings. This is exceptionally difficult for all but the simplest tasks (e.g., reward functions that depend on interactions with specific objects require perceiving those objects explicitly). Third, we must be able to learn without access to episodic resets. A setup with explicit resets quickly becomes impractical in open-world settings, due to the requirement for significant human engineering of the environment, or direct human intervention during learning. While this list may not exhaustively enumerate all the components necessary for an effective real-world learning system, we posit that the properties listed here are fundamental to building such systems. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
638,
|
| 137 |
+
825,
|
| 138 |
+
847
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "While some of the components discussed above can be tackled in isolation by current algorithms, there are considerable challenges inherent to assembling all these components into a complete learning system for real world robotic learning. In the rest of this section, we outline the challenges associated with each component, then discuss the challenges associated with combining these components in Section 3, and then proceed to address these challenges in Section 4. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
176,
|
| 147 |
+
854,
|
| 148 |
+
823,
|
| 149 |
+
924
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "image",
|
| 155 |
+
"img_path": "images/c22c53be5af8d2715578d714c982847f8d4f9d12900678fdfd0e7bd3b1d9f31e.jpg",
|
| 156 |
+
"image_caption": [
|
| 157 |
+
"Figure 2: We draw a comparison between current real world learning systems which rely on instrumentation versus a system that learns in an environment more representative of the real world, free of instrumentation. While all three prior works utilize instrumentation for resets, state estimation, and reward, the motion capture system of Gupta et al. (2016), sensor attached to the door in Zhu et al. (2019), and auxiliary robot which picks up fallen balls in Nagabandi et al. (2019) are good examples of engineered state estimation, reward estimation, and reset mechanisms respectively. "
|
| 158 |
+
],
|
| 159 |
+
"image_footnote": [],
|
| 160 |
+
"bbox": [
|
| 161 |
+
179,
|
| 162 |
+
103,
|
| 163 |
+
823,
|
| 164 |
+
290
|
| 165 |
+
],
|
| 166 |
+
"page_idx": 2
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"type": "text",
|
| 170 |
+
"text": "2.1 LEARNING FROM RAW SENSORY INPUT ",
|
| 171 |
+
"text_level": 1,
|
| 172 |
+
"bbox": [
|
| 173 |
+
176,
|
| 174 |
+
431,
|
| 175 |
+
488,
|
| 176 |
+
445
|
| 177 |
+
],
|
| 178 |
+
"page_idx": 2
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"type": "text",
|
| 182 |
+
"text": "To enable learning without complex state estimation systems or environment instrumentation, we require our robotic systems to be able to learn from their own raw sensory observations. Typically, these sensory observations are raw camera images from a camera mounted on the robot, as well as proprioceptive sensory inputs such as the joint angles. These observations do not directly provide the poses of the objects in the scene, which is the typical assumption in simulated robotic environments – any such information must be extracted by the learning system. ",
|
| 183 |
+
"bbox": [
|
| 184 |
+
174,
|
| 185 |
+
460,
|
| 186 |
+
825,
|
| 187 |
+
544
|
| 188 |
+
],
|
| 189 |
+
"page_idx": 2
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"type": "text",
|
| 193 |
+
"text": "While in principle many RL frameworks can support learning from raw sensory inputs (Levine et al., 2016; Mnih et al., 2015; Schulman et al., 2015; Lillicrap et al., 2015), it is important to consider the practicalities of this approach. For instance, we can instantiate vision-based RL with policy gradient algorithms such as TRPO (Schulman et al., 2015) and PPO (Schulman et al., 2017), but these have high sample complexities which make them unsuited for real world robotic learning (Haarnoja et al., 2018a). In our work, we consider adopting the general framework of off-policy actor-critic reinforcement learning, using a version of the soft actor critic (SAC) algorithm described by (Haarnoja et al., 2018b). This algorithm effectively uses off-policy data and has been shown to learn some tasks directly from visual inputs. However, while SAC can learn directly from images, we find in our experiments that, as the task complexity increases, the efficiency of direct end-to-end learning (particularly without resets and with learned rewards) still degrades substantially. However, as we will discuss in Section 3, augmenting end-to-end learning with unsupervised representation learning substantially alleviates such challenges. ",
|
| 194 |
+
"bbox": [
|
| 195 |
+
174,
|
| 196 |
+
551,
|
| 197 |
+
825,
|
| 198 |
+
731
|
| 199 |
+
],
|
| 200 |
+
"page_idx": 2
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"type": "text",
|
| 204 |
+
"text": "2.2 REWARD FUNCTIONS WITHOUT REWARD ENGINEERING ",
|
| 205 |
+
"text_level": 1,
|
| 206 |
+
"bbox": [
|
| 207 |
+
174,
|
| 208 |
+
756,
|
| 209 |
+
602,
|
| 210 |
+
770
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 2
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"text": "Vision-based RL algorithms, such as SAC, rely on a reward function being provided to the system, which is typically manually programmed by a user. While this can be simple to do in simulation by using ground truth state information, it is significantly harder to implement in uninstrumented real world environments. In the real world, the robot must obtain the reward signal itself from its own sensor readings. A few options for tackling this challenge have been discussed in prior work: design complete computer vision systems to detect objects and extract the reward signals (Devin et al., 2018; Nagabandi et al., 2019), engineer reward functions that use various task-specific heuristics to obtain rewards from pixels (Schenck & Fox, 2017; Kalashnikov et al., 2018), or instrument every environment (Chebotar et al., 2017). Many of these solutions are manual and tedious, and a more general approach is needed to scale real-world robotic learning gracefully. ",
|
| 217 |
+
"bbox": [
|
| 218 |
+
174,
|
| 219 |
+
785,
|
| 220 |
+
825,
|
| 221 |
+
924
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 2
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"text": "2.3 LEARNING WITHOUT RESETS ",
|
| 228 |
+
"text_level": 1,
|
| 229 |
+
"bbox": [
|
| 230 |
+
176,
|
| 231 |
+
103,
|
| 232 |
+
421,
|
| 233 |
+
117
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 3
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "text",
|
| 239 |
+
"text": "While the components described in Section 2.1 and 2.2 are essential to building continuously learning RL systems in the real world, they have often been implemented with the assumption of episodic learning Fu et al. (2018); Haarnoja et al. (2018b). However, natural open-world settings do not provide any such reset mechanism, and in order to enable scalable and autonomous real-world learning we need systems that do not require an episodic formulation of the learning problem. ",
|
| 240 |
+
"bbox": [
|
| 241 |
+
174,
|
| 242 |
+
132,
|
| 243 |
+
823,
|
| 244 |
+
203
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 3
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "text",
|
| 250 |
+
"text": "To devise a system that requires minimal human engineering for providing rewards, we must use algorithms that are able to assign themselves rewards, using learned models that operate on the same raw sensory inputs as the policy. One candidate is for a user to specify intended behavior beforehand through examples of desired outcomes (i.e., images). The algorithm can then assign itself rewards based on a measure of how well it is accomplishing the specified goals, with no additional human supervision. This approach can scale well in principle, since it requires minimal human engineering, and goal images are easy to provide. ",
|
| 251 |
+
"bbox": [
|
| 252 |
+
174,
|
| 253 |
+
210,
|
| 254 |
+
825,
|
| 255 |
+
308
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 3
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "In principle, algorithms such as SAC do not actually require episodic learning; however, in practice, most instantiations use explicit resets, even in simulation, and removing resets has resulted in failure to solve challenging tasks. In our experiments in Section 3 as well, we see that actor-critic methods applied na¨ıvely to the reset free setting do not learn the intended behaviors. Introducing visual observations and classifier based rewards exacerbates these challenges. ",
|
| 262 |
+
"bbox": [
|
| 263 |
+
174,
|
| 264 |
+
314,
|
| 265 |
+
825,
|
| 266 |
+
383
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 3
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "We propose that these three components – vision-based RL with actor-critic algorithms, visionbased goal classifier for rewards, and reset-free learning – are the fundamental pieces that we need to build a real world robotic learning system. However, when we actually combine the individual components in Sections 3 and 6, we find that learning effective policies is quite challenging. We provide insight into these challenges in Section 3. Based on these insights, we propose simple but important changes in Section 4 to build a system, R3L , that can learn effectively and autonomously in the real world without human intervention. ",
|
| 273 |
+
"bbox": [
|
| 274 |
+
174,
|
| 275 |
+
391,
|
| 276 |
+
825,
|
| 277 |
+
488
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 3
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "3 THE CHALLENGES OF REAL WORLD RL ",
|
| 284 |
+
"text_level": 1,
|
| 285 |
+
"bbox": [
|
| 286 |
+
174,
|
| 287 |
+
518,
|
| 288 |
+
542,
|
| 289 |
+
535
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 3
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "The system design outlined in Section 2 in principle gives us a complete system to perform real world reinforcement learning without instrumentation. However, when utilized for robotic learning problems, we find this basic design to be largely ineffective. To study this, we present results for a simulated robotic manipulation task that requires repositioning a free-floating objects with a threefingered robotic hand, shown in Fig 3. We use this task for our investigative analysis and show that the same insights extend to several other tasks, including real world tasks, in Section 6. The goal in this task is to reposition the object to a target pose from any initial pose in the arena. When the system is instantiated with visionbased soft actor-critic, rewards from goal images using VICE, and run without episodic resets, we see that the algorithm fails to make progress (Fig 4). Although it might appear that this setup fits within the assumptions of all of the components that are used, the complete system is ineffective. Which particular components of this problem make it so difficult? ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
174,
|
| 298 |
+
556,
|
| 299 |
+
612,
|
| 300 |
+
791
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 3
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "image",
|
| 306 |
+
"img_path": "images/ce6143e57e0a18c5d2bd1944c725d2a94340cd83fa8b365692f4d164208de312.jpg",
|
| 307 |
+
"image_caption": [
|
| 308 |
+
"Figure 3: Our object repositioning task. The goal is to move the object from any starting configuration to a particular goal position and orientation. "
|
| 309 |
+
],
|
| 310 |
+
"image_footnote": [],
|
| 311 |
+
"bbox": [
|
| 312 |
+
627,
|
| 313 |
+
560,
|
| 314 |
+
821,
|
| 315 |
+
704
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 3
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "To investigate this issue, we perform experiments investigating the combination of the three main ingredients: varying observation type (visual vs. low-dimensional state), reward structure (VICE vs. hand-defined rewards that utilize ground-truth object state), and the ability to reset (episodic resets vs. reset-free, non-episodic learning). We start by considering the training time reward under each combination of factors as shown in Fig 4, which reveals several trends. First, the results in Fig 4 show that learning with resets achieves high training time reward from both vision and state, while reset-free only achieves high training time reward with low-dimensional state. Second, we find that the policy is able to pass the threshold for training time reward in a non-episodic setting when learning from low-dimensional state, but it is not able to do the same using image observations. This suggests that combining the reset-free learning problem with visual observations makes it significantly more challenging. ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
173,
|
| 324 |
+
799,
|
| 325 |
+
612,
|
| 326 |
+
827
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "",
|
| 333 |
+
"bbox": [
|
| 334 |
+
174,
|
| 335 |
+
827,
|
| 336 |
+
825,
|
| 337 |
+
924
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 3
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "image",
|
| 343 |
+
"img_path": "images/36fdd05da19a4d308ad35dd47c28e7b98a0467afadb84769d255d7f4310ee98f.jpg",
|
| 344 |
+
"image_caption": [
|
| 345 |
+
"Figure 4: We report the approximate number of samples needed for a policy learned with a prior offpolicy RL algorithm $( S A C )$ to achieve average training performance of less than 0.15 in pose distance (defined in Appendix C.1.3) across 3 seeds on the repositioning task. We compare training performance after varying three axes: ground truth rewards vs. learned rewards, with vs. without episodic resets, low-level state vs. images as inputs. We observe learning without resets is harder than with resets and is much harder when combined with visual inputs. "
|
| 346 |
+
],
|
| 347 |
+
"image_footnote": [],
|
| 348 |
+
"bbox": [
|
| 349 |
+
205,
|
| 350 |
+
101,
|
| 351 |
+
455,
|
| 352 |
+
212
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 4
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "image",
|
| 358 |
+
"img_path": "images/6d70464a38d5696118c55e6558ef0502b8ccea62ff9b88e773c2039834d86d3f.jpg",
|
| 359 |
+
"image_caption": [
|
| 360 |
+
"Figure 5: We observe that when training reset free to reach a single goal, while the pose distance at training time is quite low, the pose errors obtained at test-time with the learned policy are very high. This indicates that while the object is getting close to the goal at training time, the policies being learned are still not effective. "
|
| 361 |
+
],
|
| 362 |
+
"image_footnote": [],
|
| 363 |
+
"bbox": [
|
| 364 |
+
513,
|
| 365 |
+
125,
|
| 366 |
+
816,
|
| 367 |
+
251
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 4
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "",
|
| 374 |
+
"bbox": [
|
| 375 |
+
171,
|
| 376 |
+
378,
|
| 377 |
+
823,
|
| 378 |
+
406
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 4
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "However, the table in Fig 4 paints an incomplete picture. These numbers are related to the performance of the policies at training time, not how effective the learned policies are when being evaluated. When we consider the test-time performance (Fig 5) of the policies that are learned under reset free conditions, we obtain a different set of conclusions. While learning from low-dimensional state in the reset free setting achieves high reward at training time, the test-time performance of the corresponding learned policies is very poor. This can likely be attributed to the fact that when the agent spends all its time stuck at the goal, and sees very little diversity of data in other parts of the state space, which significantly reduces the efficacy of the actual policies being learned. In a sense, the reset encodes some prior information about the task: it tells the policy about what types of states it might be required to succeed from at test time. Without this knowledge, performance is substantially worse. This makes it very challenging to learn policies with completely reset-free schemes, which has prompted prior work to consider schemes such as learning reset controllers (Eysenbach et al., 2018). As we discuss in the following section and in our experiments, these schemes are often insufficient for learning effective policies in the real world without any resets. ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
174,
|
| 387 |
+
414,
|
| 388 |
+
825,
|
| 389 |
+
608
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 4
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "4 A REAL-WORLD ROBOTIC REINFORCEMENT LEARNING SYSTEM ",
|
| 396 |
+
"text_level": 1,
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
630,
|
| 400 |
+
745,
|
| 401 |
+
645
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 4
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "To address the challenges identified in Section 3, we present two improvements, which we found to be essential for uninstrumented real-world training: randomized perturbation controllers and unsupervised representation learning. Incorporating these components into the system in Section 2 results in a system that can learn successfully in uninstrumented environments, as we will show in Section 6, and attains good performance both at training time and at test time. ",
|
| 408 |
+
"bbox": [
|
| 409 |
+
174,
|
| 410 |
+
662,
|
| 411 |
+
825,
|
| 412 |
+
732
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 4
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "4.1 RANDOMIZED PERTURBATION CONTROLLER ",
|
| 419 |
+
"text_level": 1,
|
| 420 |
+
"bbox": [
|
| 421 |
+
174,
|
| 422 |
+
751,
|
| 423 |
+
524,
|
| 424 |
+
765
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 4
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "Prior works in addressing the reset free setting problem have considered converting the problem into a more standard episodic problem, by learning a “reset controller,” which is trained to reset the system to a particular initial state (Eysenbach et al., 2018; Han et al., 2015). This scheme has been thought to make the learning problem easier by reducing the variance of the resulting initial state distribution. However, as we will show in our experiments in Section 6, this still results in policies whose success depends heavily on a narrow range of initial states. Indeed, prior reset controller methods all reset to a single initial state (Eysenbach et al., 2018; Han et al., 2015). ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
174,
|
| 433 |
+
776,
|
| 434 |
+
823,
|
| 435 |
+
875
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 4
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "We take a different approach to learning in a reset-free setting. Rather than attributing the problem to the variance of the initial state distribution, we hypothesize that a major problem with reset-free learning is that the support of the distribution of states visited by the policy is too narrow, which makes the learning problem challenging and doesn’t allow the agent to learn how to perform the desired task from any state it might find itself in. In this view, the goal should not be to reduce the variance of the initial state distribution, but instead to increase it. ",
|
| 442 |
+
"bbox": [
|
| 443 |
+
176,
|
| 444 |
+
882,
|
| 445 |
+
823,
|
| 446 |
+
924
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 4
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "",
|
| 453 |
+
"bbox": [
|
| 454 |
+
176,
|
| 455 |
+
103,
|
| 456 |
+
823,
|
| 457 |
+
145
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 5
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "To this end, we utilize what we call random perturbation controllers: controllers that introduce perturbations intermittently into the system through a policy that is trained to explore the environment. The standard actor $\\pi ( a | s )$ is executed for $H$ time-steps, following which we executed the perturbation controller $\\pi _ { p } ( a | s )$ for $H$ steps, and repeat. The policy $\\pi$ is trained with the VICE-based rewards for reaching the desired goals, while the perturbation controller $\\pi _ { p }$ is trained only with an intrinsic motivation objective that encourages visiting under-explored states. In our implementation, we use the random network distillation (RND) objective for training the perturbation controller (Burda et al., 2018), but any effective exploration method can be used for the same. This procedure is described in detail in Appendix A, and is evaluated on the tasks we consider in Fig 6. The perturbation controller ensures that the support of the training distribution grows and as a result the policies can learn the desired behavior much more effectively, as shown in Fig 7. ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
152,
|
| 467 |
+
825,
|
| 468 |
+
305
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 5
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "4.2 GOAL CLASSIFIER",
|
| 475 |
+
"text_level": 1,
|
| 476 |
+
"bbox": [
|
| 477 |
+
176,
|
| 478 |
+
338,
|
| 479 |
+
341,
|
| 480 |
+
352
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 5
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "To design a system that requires minimal human engineering for providing reward, we use a datadriven reward specification framework called variational inverse control with events (VICE) introduced by Fu et al. (2018). VICE learns rewards in a task-agnostic way: we provide the algorithm with success examples in the form of images where the task is accomplished, and learn a discriminator that is capable of distinguishing successes from failures. This discriminator can then be used to provide a learning signal to nudge the reinforcement learning agent towards success. This algorithm has been previously considered in the context of learning tasks from raw sensory observations in the real world by (Singh et al., 2019) but we show that it presents unique challenges when used in conjunction with learning without episodic resets. Details and specifics of the algorithms being considered are described in Appendix A and also discussed by Singh et al. (2019). ",
|
| 487 |
+
"bbox": [
|
| 488 |
+
174,
|
| 489 |
+
371,
|
| 490 |
+
825,
|
| 491 |
+
511
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 5
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "4.3 UNSUPERVISED REPRESENTATION LEARNING ",
|
| 498 |
+
"text_level": 1,
|
| 499 |
+
"bbox": [
|
| 500 |
+
174,
|
| 501 |
+
544,
|
| 502 |
+
531,
|
| 503 |
+
558
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 5
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "The perturbation controller discussed above allows us to learn policies that can succeed at the task from a variety of starting states. However, learning from visual observations still present a challenge. Our experiments in Fig 4 show that learning without resets from low-dimensional states is comparatively easier. We therefore aim to convert the vision-based learning problem into one that more closely resembles state-based learning, by training a variational autoencoder (VAE, Kingma & Welling (2013)) and sharing the latent-variable representation across the actor and critic networks (refer to Appendix B for more details). Note that we use a VAE as an instantiation of representation learning techniques that works well in the domains we considered, but other more sophisticated density models proposed in prior work may also be substituted in place of the VAE (Lee et al., 2019; Hjelm et al., 2019; Anand et al., 2019). ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
174,
|
| 512 |
+
575,
|
| 513 |
+
825,
|
| 514 |
+
714
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 5
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "While several works have also sought to incorporate unsupervised learning into reinforcement learning to make learning from images easier (Nair et al., 2018; Lee et al., 2019), we note that this becomes especially critical in the vision-based, reset-free setting, as motivated by the experiments in Section 3, which indicate that it is precisely this combination of factors – vision and no resets – that presents the most difficult learning problem. Therefore, although the particular solution we use in our system has been studied in prior work, it is brought to bare to address a challenge that arises in real-world learning that we believe has not been explored in prior studies. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
174,
|
| 523 |
+
722,
|
| 524 |
+
823,
|
| 525 |
+
819
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 5
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "These two improvements – the perturbation controller and unsupervised learning – combined with the general system described above, give us a complete practical system for real world reinforcement learning. The overall method uses soft-actor critic for learning with visual observations and classifier based rewards with VICE, introduces auxiliary reconstruction objectives or pretrains encoders for unsupervised representation learning, and uses a perturbation controller during training to ensure that the support of visited states grows sufficiently. We term this full system for real-world robotic reinforcement learning R3L. Further implementation details can be found in Appendix A. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
174,
|
| 534 |
+
827,
|
| 535 |
+
823,
|
| 536 |
+
924
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 5
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "5 RELATED WORK ",
|
| 543 |
+
"text_level": 1,
|
| 544 |
+
"bbox": [
|
| 545 |
+
176,
|
| 546 |
+
102,
|
| 547 |
+
343,
|
| 548 |
+
117
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 6
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "The primary contribution of this work is to propose a paradigm for continual instrumentation-free real world robotic learning and a practical instantiation of such a system. A number of prior works have studied reinforcement learning in the real world for acquiring robotic skills (Levine et al., 2016; Kumar et al., 2016; Gu et al., 2017; Kalashnikov et al., 2018; Haarnoja et al., 2018b; Finn & Levine, 2016; Zhu et al., 2019; Nagabandi et al., 2019). Much of the focus in prior work has been on improving the efficiency and generalization of RL algorithms to make real-world training feasible, or else on utilizing simulation and transferring policies into the real world (Tzeng et al., 2015; Tobin et al., 2017; Peng et al., 2017; Clavera et al., 2018; Kang et al., 2019). The simulation-based methods typically require considerable effort in terms of both simulator design and overcoming the distributional shift between simulated and real-experience, while prior real-world training methods typically require additional instrumentation for either reward function evaluation (Levine & Koltun, 2013) or resetting between trials (Gu et al., 2017; Chebotar et al., 2017; Zhu et al., 2019), or both. In contrast, our work is primarily focused on lifting these requirements, rather than devising more efficient RL methods. We show that removing the need for instrumentation (i.e., for reward evaluation and resets) introduces additional challenges, which in turn require a careful set of design choices. Our complete R3L method is able to learn completely autonomously, without manual resets or reward design. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
160,
|
| 558 |
+
825,
|
| 559 |
+
395
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 6
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "A key component of our system involves learning from raw visual inputs. This has proven to be difficult for policy gradient style algorithms (Pinto et al., 2017a) due to challenging representation learning problems. This has been made easier in simulated domains by using modified objectives, such as auxiliary losses (Jaderberg et al., 2016), or by using more efficient algorithms (Haarnoja et al., 2018a). We show that reinforcement learning on raw visual input, while possible in standard RL settings, becomes significantly more challenging when considered in conjunction with nonepisodic, reset-free scenarios. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
402,
|
| 569 |
+
825,
|
| 570 |
+
500
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 6
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "Reward function design is crucial for any RL system, and is non-trivial to provide in the real world. Prior works have considered instrumenting the environment with additional sensors to evaluate rewards (Gu et al., 2017; Chebotar et al., 2017; Zhu et al., 2019), which is a highly manual process, using demonstrations, which require manual effort to collect (Vecerik et al., 2017; Ng & Russell, 2000; Liu et al., 2018), or using interactive supervision from the user (Christiano et al., 2017). In this work, we leverage the algorithm introduced by Fu et al. (2018) to assign rewards based on the likelihood of a goal classifier. While prior work also applied this method to robotic tasks (Singh et al., 2019), this was done in a setting where manual resets were provided by hand, while we demonstrate that we can use learned rewards in a fully uninstrumented, reset-free setup. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
174,
|
| 579 |
+
507,
|
| 580 |
+
825,
|
| 581 |
+
632
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 6
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "Learning without resets has been considered in prior works (Eysenbach et al., 2018; Han et al., 2015), although in different contexts – safe learning and learning compound controllers, respectively. Eysenbach et al. (2018) provide an algorithm to learn a reset controller with the goal of ensuring safe operation, but makes several assumptions that make it difficult to use in the real world: it assumes access to a ground truth reward function, it assumes access to an oracle function that can detect if an attempted reset by the reset policy was successful or not, and it assumes the ability to perform manual resets if the reset policy fails a certain number of times. In contrast, we propose an algorithm that allows for fully automated reinforcement learning in the real world. We compare to an ablation of our method that uses a reset controller similar to Eysenbach et al. (2018), and show that our method performs substantially better. Our perturbation controller also resembles the adversarial RL setup Pinto et al. (2017b); Sukhbaatar et al. (2018). However, while these prior methods explicitly aim to train policies that are robust to perturbations Pinto et al. (2017b) or explore effectively Sukhbaatar et al. (2018), we are concerned with learning without access to resets. ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
174,
|
| 590 |
+
638,
|
| 591 |
+
825,
|
| 592 |
+
819
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 6
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "While this line of work has connections to developmental robotics (Lungarella et al., 2003; Asada et al., 2009) and its subfields, such as continual (Lesort et al., 2019) and lifelong (Thrun & Mitchell, 1995) learning, the goal of our work is to handle the practicalities of enabling reinforcement learning systems to learn in the real world without instrumentation or interruption, even for a single task setting. Though our work does not directly study continual lifelong learning, nor all facets of developmental robotics, it relates to continual learning (Lesort et al., 2019), intrinsic motivation (Schmidhuber, 2006) and sensory-motor development involving proprioceptive manipulation (Stoica, 2001). ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
174,
|
| 601 |
+
827,
|
| 602 |
+
823,
|
| 603 |
+
924
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 6
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "6 EXPERIMENTS ",
|
| 610 |
+
"text_level": 1,
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
102,
|
| 614 |
+
326,
|
| 615 |
+
118
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 7
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "In our experimental evaluation, we study how well the R3L system, described in Sections 2 and 4, can learn under realistic settings – visual observations, no hand-specified rewards, and no resets. We consider the following hypotheses: ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
176,
|
| 624 |
+
133,
|
| 625 |
+
825,
|
| 626 |
+
178
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 7
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "1. Can we use R3L to learn complex robotic manipulation tasks without instrumentation? Does this system learn skills in both simulation and the real world? \n2. Do the solutions proposed in Section 4 actually enable R3L to perform tasks without instrumentation that would not have been otherwise possible? ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
212,
|
| 635 |
+
190,
|
| 636 |
+
825,
|
| 637 |
+
253
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 7
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "6.1 EXPERIMENTAL SETUP ",
|
| 644 |
+
"text_level": 1,
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
272,
|
| 648 |
+
375,
|
| 649 |
+
287
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 7
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "We consider the task of dexterous manipulation with a three fingered robotic hand, the D’Claw (Zhu et al., 2019; Ahn et al., 2019), on a number of simulated and real world tasks. These tasks involve complex coordination of three fingers with 3 DoF each in order to manipulate objects. Prior works that used this robot utilized explicit resets and low-dimensional true state observations, while we consider settings with visual observations, no hand-specified rewards, and no resets. ",
|
| 656 |
+
"bbox": [
|
| 657 |
+
173,
|
| 658 |
+
299,
|
| 659 |
+
825,
|
| 660 |
+
369
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 7
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "image",
|
| 666 |
+
"img_path": "images/824a594d6c5e30f9a580b874265c711fa246312d33dda84adff8239823f14ea9.jpg",
|
| 667 |
+
"image_caption": [
|
| 668 |
+
"Figure 6: Visualizations of the goal configurations of the simulated and real world tasks being considered. From left to right we depict valve rotation, bead manipulation and free object repositioning in simulation, as well as valve rotation and bead manipulation manipulation in the real world. "
|
| 669 |
+
],
|
| 670 |
+
"image_footnote": [],
|
| 671 |
+
"bbox": [
|
| 672 |
+
181,
|
| 673 |
+
385,
|
| 674 |
+
813,
|
| 675 |
+
483
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 7
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "The tasks in our experiments are shown in Fig 6: manipulating beads on an abacus row, valve rotation, and free object repositioning. These tasks represent a wide class of problems that robots might encounter in the real world. For each task, we consider the problem of reaching the depicted goal configuration: moving the abacus beads to a particular position, rotating the valve to a particular angle, and repositioning the free object to a particular goal position. For each task, policies are evaluated from a wide selection of initial configurations. Additional details about the tasks and evaluation procedures are provided in Appendix C. Videos and additional details can be found at https://sites.google.com/view/realworld-rl/ ",
|
| 682 |
+
"bbox": [
|
| 683 |
+
174,
|
| 684 |
+
551,
|
| 685 |
+
825,
|
| 686 |
+
662
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 7
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "6.2 LEARNING IN SIMULATION WITHOUT INSTRUMENTATION ",
|
| 693 |
+
"text_level": 1,
|
| 694 |
+
"bbox": [
|
| 695 |
+
174,
|
| 696 |
+
681,
|
| 697 |
+
612,
|
| 698 |
+
695
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 7
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "We compare our entire proposed system implementation (Section 4) with a number of baselines and ablations. Importantly, all methods must operate under the same assumptions: none of the algorithms have access to system instrumentation for state estimation, reward specification, or episodic resets. Firstly, we compare the performance of R3L to a system which uses SAC for vision-based RL from raw pixels, VICE for providing rewards and running reset-free (denoted as “VICE”). This corresponds to the vanilla version of R3L (Section 2), with none of the proposed insights and changes. We then compare with prior reset-free RL algorithms (Eysenbach et al., 2018) that explicitly learn a reset controller to alternate goals in the state space (“Reset Controller $^ +$ VAE”). Lastly, we compare algorithm performance with two ablations: running R3L without the perturbation controller (“VICE $+ \\ \\mathrm { V A E } ^ { \\prime \\prime } )$ ) and without the unsupervised learning (“R3L w/o VAE”). This highlights the significance of each of the components of R3L . ",
|
| 705 |
+
"bbox": [
|
| 706 |
+
173,
|
| 707 |
+
708,
|
| 708 |
+
825,
|
| 709 |
+
861
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 7
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "From the experimental results in Fig 7, it is clear that R3L is able to reach the best performance across tasks, while none of the other methods are able to solve all of the tasks. Different prior methods and ablations fail for different reasons: (1) methods without the reconstruction objective struggle at parsing the high-dimensional input and are unable to solve the harder task; (2) methods without the perturbation controller are ineffective at learning how to reach the goal from novel initialization positions for the more challenging object repositioning tasks, as discussed in Section 4. ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
174,
|
| 718 |
+
867,
|
| 719 |
+
823,
|
| 720 |
+
924
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 7
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "image",
|
| 726 |
+
"img_path": "images/16689f39419185c7ebec5a0ee2e8964bd3a1d3329c8a98a6d5098b217637ce35.jpg",
|
| 727 |
+
"image_caption": [
|
| 728 |
+
"Figure 7: Quantitative evaluation of performance in simulation for bead manipulation, valve rotation and free object repositioning (left to right) run with 10 random seeds. The error bars show $9 5 \\%$ bootstrap confidence intervals for average performance. While other variants are sufficient to get good evaluation performance on easier tasks, harder tasks like free object repositioning require random perturbations and unsupervised representation learning to learn skills reset-free. See Appendix C.1 for details of evaluation procedures. "
|
| 729 |
+
],
|
| 730 |
+
"image_footnote": [],
|
| 731 |
+
"bbox": [
|
| 732 |
+
214,
|
| 733 |
+
99,
|
| 734 |
+
784,
|
| 735 |
+
261
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 8
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "",
|
| 742 |
+
"bbox": [
|
| 743 |
+
176,
|
| 744 |
+
359,
|
| 745 |
+
820,
|
| 746 |
+
388
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 8
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "We note that an explicit reset controller, which can be viewed as a softer version of our perturbation controller with goal-directedness, learns to solve the easier tasks due to the reset controller encouraging exploration of the state space. In our experiments for free object repositioning, performance was reported across 3 choices of reset states. The high variance in evaluation performance indicates that the performance of such a controller (or a goal conditioned variant of it) is highly sensitive to the choice of reset states. A poor choice of reset states, such as two that are very close together, may yield poor exploration leading to performance similar to the single goal VICE baseline. Furthermore, the choice of reset states is highly task dependent and it is often not clear what choice of goals will yield the best performance. On the contrary, our method does not require such task-specific knowledge and uses random perturbations to reset while training without any explicit reset states: this allows for a robust, instrumentation-free controller while also ensuring fast convergence. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
395,
|
| 756 |
+
825,
|
| 757 |
+
547
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 8
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "6.3 LEARNING IN THE REAL WORLD WITHOUT INSTRUMENTATION ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
176,
|
| 767 |
+
565,
|
| 768 |
+
651,
|
| 769 |
+
580
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 8
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Since the aim of R3L is to enable uninstrumented training in the real world, we next evaluate our method on a real-world robotic system, providing evidence that our insights generalize to the real world without any instrumentation. After providing the initial outcome examples for learning the reward function with VICE, we leave the robot unattended, and the algorithm learns the desired behavior through interaction. The experiments are performed on the D’Claw robotic hand with an RGB camera as the only sensory input. Intermediate policies are saved at regular intervals, and evaluations of all policies is performed after training has completed. For valve rotation, we declare an evaluation rollout a success if the final orientation is within within $1 5 ^ { \\circ }$ of the goal. For bead manipulation, we declare success if all the beads are within $2 \\mathrm { c m }$ of the goal state. Fig 8 compares the performance of our method without supervised learning (“R3L w/o VAE”) in the real world against a baseline that uses SAC for vision-based RL from raw pixels, VICE for providing rewards, and running reset-free (denoted as “VICE”). We see that our method learns policies that succeed from nearly all the initial configurations, whereas VICE alone fails from most initial configurations. Fig 9 depicts sample evaluation rollouts of the policies learned using our method. For further details about real world experiments see Appendix C.2. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
592,
|
| 779 |
+
825,
|
| 780 |
+
800
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 8
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "7 DISCUSSION ",
|
| 787 |
+
"text_level": 1,
|
| 788 |
+
"bbox": [
|
| 789 |
+
176,
|
| 790 |
+
821,
|
| 791 |
+
310,
|
| 792 |
+
838
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 8
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "We presented the design and instantiation of a system for real world reinforcement learning. We identify and investigate the various ingredients required for such a system to scale gracefully with minimal human engineering and supervision. We show that this system must be able to learn from raw sensory observations, learn from very easily specified reward functions without reward engineering, and learn without any episodic resets. We describe the basic elements that are required to construct such a system, and identify unexpected learning challenges that arise from interplay of these elements. We propose simple and scalable fixes to these challenges through introducing unsupervised representation learning and a randomized perturbation controller. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
854,
|
| 802 |
+
823,
|
| 803 |
+
924
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 8
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "image",
|
| 809 |
+
"img_path": "images/dad274348320cb8430ec089aa0a9ec78b973c42a0a84d8f326005b3a2f61f71a.jpg",
|
| 810 |
+
"image_caption": [
|
| 811 |
+
"Figure 8: Quantitative evaluation of performance in real-world for valve rotation and bead manipulation. Policies trained with perturbation controllers have effectively learned behaviors after 17 and 5 hours of training, respectively. For more fine-grained reporting of results see Figs 13-16. "
|
| 812 |
+
],
|
| 813 |
+
"image_footnote": [],
|
| 814 |
+
"bbox": [
|
| 815 |
+
178,
|
| 816 |
+
102,
|
| 817 |
+
812,
|
| 818 |
+
250
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 9
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "image",
|
| 824 |
+
"img_path": "images/aa753edabd7a309dd77434d6d462b21f9d280973740211557ec78a0770a770db.jpg",
|
| 825 |
+
"image_caption": [
|
| 826 |
+
"Figure 9: Evaluation rollouts of R3L on the real world tasks for policies trained without instrumentation. Successful evaluation rollouts for bead manipulation (top) and valve rotation (bottom) are shown here. "
|
| 827 |
+
],
|
| 828 |
+
"image_footnote": [],
|
| 829 |
+
"bbox": [
|
| 830 |
+
174,
|
| 831 |
+
321,
|
| 832 |
+
825,
|
| 833 |
+
585
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 9
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "",
|
| 840 |
+
"bbox": [
|
| 841 |
+
176,
|
| 842 |
+
640,
|
| 843 |
+
821,
|
| 844 |
+
683
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 9
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "The ability to train robots directly in the real world with minimal instrumentation opens a number of exciting avenues for future research. Robots that can learn unattended, without resets or handdesigned reward functions, can in principle collect very large amounts of experience autonomously, which may enable very broad generalization in the future. However, there are also a number of additional challenges, including sample complexity, optimization and exploration difficulties on more complex tasks, safe operation, communication latency, sensing and actuation noise, and so forth, all of which would need to be addressed in future work in order to enable truly scalable real-world robotic learning. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
689,
|
| 854 |
+
825,
|
| 855 |
+
800
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 9
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 862 |
+
"text_level": 1,
|
| 863 |
+
"bbox": [
|
| 864 |
+
176,
|
| 865 |
+
823,
|
| 866 |
+
356,
|
| 867 |
+
838
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 9
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "This research is supported by the Office of Naval Research, the National Science Foundation under IIS-1651843 and IIS-1700696, Google, NVIDIA, and Amazon. The authors would like to thank Ignasi Clavera, Gregory Kahn, Coline Devin, Benjamin Eysenbach, Aviral Kumar, Anusha Nagabandi, Marvin Zhang, Ashvin Nair and several others in the RAIL Lab for helpful discussions and feedback. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
174,
|
| 876 |
+
853,
|
| 877 |
+
823,
|
| 878 |
+
922
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 9
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "REFERENCES ",
|
| 885 |
+
"text_level": 1,
|
| 886 |
+
"bbox": [
|
| 887 |
+
176,
|
| 888 |
+
103,
|
| 889 |
+
285,
|
| 890 |
+
117
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 10
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Michael Ahn, Henry Zhu, Kristian Hartikainen, Hugo Ponte, Abhishek Gupta, Sergey Levine, and Vikash Kumar. ROBEL: RObotics BEnchmarks for Learning with low-cost robots. In Conference on Robot Learning (CoRL), 2019. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
174,
|
| 899 |
+
126,
|
| 900 |
+
823,
|
| 901 |
+
169
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 10
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Ankesh Anand, Evan Racah, Sherjil Ozair, Yoshua Bengio, Marc-Alexandre Cotˆ e, and R. Devon ´ Hjelm. Unsupervised state representation learning in atari. arXiv, 2019. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
171,
|
| 910 |
+
178,
|
| 911 |
+
823,
|
| 912 |
+
207
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 10
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, et al. Learning dexterous in-hand manipulation. arXiv preprint arXiv:1808.00177, 2018. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
215,
|
| 922 |
+
823,
|
| 923 |
+
260
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 10
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Minoru Asada, Koh Hosoda, Yasuo Kuniyoshi, Hiroshi Ishiguro, Toshio Inui, Yuichiro Yoshikawa, Masaki Ogino, and Chisato Yoshida. Cognitive developmental robotics: A survey. IEEE Trans. Autonomous Mental Development, 1(1):12–34, 2009. doi: 10.1109/TAMD.2009.2021702. URL https://doi.org/10.1109/TAMD.2009.2021702. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
173,
|
| 932 |
+
268,
|
| 933 |
+
825,
|
| 934 |
+
325
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 10
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
334,
|
| 944 |
+
823,
|
| 945 |
+
363
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 10
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Yevgen Chebotar, Mrinal Kalakrishnan, Ali Yahya, Adrian Li, Stefan Schaal, and Sergey Levine. Path integral guided policy search. CoRR, abs/1610.00529, 2016. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
173,
|
| 954 |
+
372,
|
| 955 |
+
823,
|
| 956 |
+
402
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 10
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Yevgen Chebotar, Karol Hausman, Marvin Zhang, Gaurav Sukhatme, Stefan Schaal, and Sergey Levine. Combining model-based and model-free updates for trajectory-centric reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 703–711. JMLR. org, 2017. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
174,
|
| 965 |
+
411,
|
| 966 |
+
825,
|
| 967 |
+
468
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 10
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems, pp. 4299–4307, 2017. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
477,
|
| 977 |
+
821,
|
| 978 |
+
520
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 10
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Ignasi Clavera, Jonas Rothfuss, John Schulman, Yasuhiro Fujita, Tamim Asfour, and Pieter Abbeel. Model-Based Reinforcement Learning via Meta-Policy Optimization. arXiv e-prints, art. arXiv:1809.05214, Sep 2018. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
176,
|
| 987 |
+
530,
|
| 988 |
+
823,
|
| 989 |
+
573
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 10
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Coline Devin, Pieter Abbeel, Trevor Darrell, and Sergey Levine. Deep object-centric representations for generalizable robot learning. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 7111–7118. IEEE, 2018. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
173,
|
| 998 |
+
582,
|
| 999 |
+
825,
|
| 1000 |
+
625
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 10
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Benjamin Eysenbach, Shixiang Gu, Julian Ibarz, and Sergey Levine. Leave no trace: Learning to reset for safe and autonomous reinforcement learning. In International Conference on Learning Representations (ICLR), 2018. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
633,
|
| 1010 |
+
825,
|
| 1011 |
+
676
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 10
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Chelsea Finn and Sergey Levine. Deep visual foresight for planning robot motion. CoRR, abs/1610.00696, 2016. URL http://arxiv.org/abs/1610.00696. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
171,
|
| 1020 |
+
686,
|
| 1021 |
+
823,
|
| 1022 |
+
715
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 10
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Justin Fu, Avi Singh, Dibya Ghosh, Larry Yang, and Sergey Levine. Variational inverse control with events: A general framework for data-driven reward definition. In Advances in Neural Information Processing Systems, 2018. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
173,
|
| 1031 |
+
724,
|
| 1032 |
+
825,
|
| 1033 |
+
767
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 10
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Shixiang Gu, Ethan Holly, Timothy Lillicrap, and Sergey Levine. Deep reinforcement learning for robotic manipulation with asynchronous off-policy updates. In 2017 IEEE international conference on robotics and automation (ICRA), pp. 3389–3396. IEEE, 2017. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
173,
|
| 1042 |
+
776,
|
| 1043 |
+
823,
|
| 1044 |
+
820
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 10
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Abhishek Gupta, Clemens Eppner, Sergey Levine, and Pieter Abbeel. Learning dexterous manipulation for a soft robotic hand from human demonstrations. 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3786–3793, 2016. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
174,
|
| 1053 |
+
829,
|
| 1054 |
+
821,
|
| 1055 |
+
872
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 10
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the 35th International Conference on Machine Learning, 2018a. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
176,
|
| 1064 |
+
882,
|
| 1065 |
+
825,
|
| 1066 |
+
924
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 10
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018b. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
178,
|
| 1075 |
+
103,
|
| 1076 |
+
823,
|
| 1077 |
+
146
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 11
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Weiqiao Han, Sergey Levine, and Pieter Abbeel. Learning compound multi-step controllers under unknown dynamics. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 6435–6442. IEEE, 2015. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
176,
|
| 1086 |
+
156,
|
| 1087 |
+
823,
|
| 1088 |
+
199
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 11
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ Bklr3j0cKX. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
173,
|
| 1097 |
+
208,
|
| 1098 |
+
826,
|
| 1099 |
+
265
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 11
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Max Jaderberg, Volodymyr Mnih, Wojciech Marian Czarnecki, Tom Schaul, Joel Z Leibo, David Silver, and Koray Kavukcuoglu. Reinforcement learning with unsupervised auxiliary tasks. arXiv preprint arXiv:1611.05397, 2016. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
176,
|
| 1108 |
+
275,
|
| 1109 |
+
823,
|
| 1110 |
+
318
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 11
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "Dmitry Kalashnikov, Alex Irpan, Peter Pastor, Julian Ibarz, Alexander Herzog, Eric Jang, Deirdre Quillen, Ethan Holly, Mrinal Kalakrishnan, Vincent Vanhoucke, et al. Qt-opt: Scalable deep reinforcement learning for vision-based robotic manipulation. arXiv preprint arXiv:1806.10293, 2018. ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
174,
|
| 1119 |
+
328,
|
| 1120 |
+
825,
|
| 1121 |
+
383
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 11
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "Katie Kang, Suneel Belkhale, Gregory Kahn, Pieter Abbeel, and Sergey Levine. Generalization through Simulation: Integrating Simulated and Real Data into Deep Reinforcement Learning for Vision-Based Autonomous Flight. arXiv e-prints, art. arXiv:1902.03701, Feb 2019. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
174,
|
| 1130 |
+
395,
|
| 1131 |
+
825,
|
| 1132 |
+
438
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 11
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. CoRR, abs/1312.6114, 2013. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
173,
|
| 1141 |
+
448,
|
| 1142 |
+
823,
|
| 1143 |
+
477
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 11
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Vikash Kumar, Emanuel Todorov, and Sergey Levine. Optimal control with learned local models: Application to dexterous manipulation. In 2016 IEEE International Conference on Robotics and Automation (ICRA), pp. 378–383. IEEE, 2016. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
174,
|
| 1152 |
+
486,
|
| 1153 |
+
825,
|
| 1154 |
+
530
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 11
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Alex X. Lee, Anusha Nagabandi, Pieter Abbeel, and Sergey Levine. Stochastic latent actor-critic: Deep reinforcement learning with a latent variable model. CoRR, abs/1907.00953, 2019. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
169,
|
| 1163 |
+
540,
|
| 1164 |
+
823,
|
| 1165 |
+
569
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 11
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Timothee Lesort, Vincenzo Lomonaco, Andrei Stoian, Davide Maltoni, David Filliat, and Na-´ talia D´ıaz Rodr´ıguez. Continual learning for robotics. CoRR, abs/1907.00182, 2019. URL http://arxiv.org/abs/1907.00182. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
176,
|
| 1174 |
+
578,
|
| 1175 |
+
823,
|
| 1176 |
+
621
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 11
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Sergey Levine and Vladlen Koltun. Guided policy search. In Proceedings of The 30th International Conference on Machine Learning, 2013. ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
171,
|
| 1185 |
+
631,
|
| 1186 |
+
823,
|
| 1187 |
+
660
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 11
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. J. Mach. Learn. Res., 17(1), 2016. ISSN 1532-4435. ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
173,
|
| 1196 |
+
670,
|
| 1197 |
+
823,
|
| 1198 |
+
699
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 11
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "text",
|
| 1204 |
+
"text": "Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015. ",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
174,
|
| 1207 |
+
709,
|
| 1208 |
+
825,
|
| 1209 |
+
752
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 11
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "YuXuan Liu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Imitation from observation: Learning to imitate behaviors from raw video via context translation. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 1118–1125. IEEE, 2018. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
174,
|
| 1218 |
+
762,
|
| 1219 |
+
825,
|
| 1220 |
+
805
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 11
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Max Lungarella, Giorgio Metta, Rolf Pfeifer, and Giulio Sandini. Developmental robotics: a survey. Connection Science, 15(4):151–190, 2003. doi: 10.1080/09540090310001655110. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
171,
|
| 1229 |
+
814,
|
| 1230 |
+
823,
|
| 1231 |
+
843
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 11
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540), 2015. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
174,
|
| 1240 |
+
853,
|
| 1241 |
+
823,
|
| 1242 |
+
922
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 11
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Anusha Nagabandi, Kurt Konoglie, Sergey Levine, and Vikash Kumar. Deep Dynamics Models for Learning Dexterous Manipulation. In Conference on Robot Learning (CoRL), 2019. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
171,
|
| 1251 |
+
103,
|
| 1252 |
+
823,
|
| 1253 |
+
133
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 12
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Ashvin Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. CoRR, abs/1807.04742, 2018. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
171,
|
| 1262 |
+
140,
|
| 1263 |
+
821,
|
| 1264 |
+
170
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 12
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Andrew Y. Ng and Stuart J. Russell. Algorithms for inverse reinforcement learning. In Proceedings of the Seventeenth International Conference on Machine Learning, ICML ’00, 2000. ISBN 1- 55860-707-2. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
173,
|
| 1273 |
+
178,
|
| 1274 |
+
823,
|
| 1275 |
+
220
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 12
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Xue Bin Peng, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Sim-to-Real Transfer of Robotic Control with Dynamics Randomization. arXiv e-prints, art. arXiv:1710.06537, Oct 2017. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
174,
|
| 1284 |
+
228,
|
| 1285 |
+
823,
|
| 1286 |
+
272
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 12
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Lerrel Pinto, Marcin Andrychowicz, Peter Welinder, Wojciech Zaremba, and Pieter Abbeel. Asymmetric actor critic for image-based robot learning. arXiv preprint arXiv:1710.06542, 2017a. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
173,
|
| 1295 |
+
280,
|
| 1296 |
+
823,
|
| 1297 |
+
310
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 12
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2817–2826, International Convention Centre, Sydney, Australia, 06–11 Aug 2017b. PMLR. URL http://proceedings.mlr.press/v70/pinto17a.html. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
318,
|
| 1307 |
+
825,
|
| 1308 |
+
388
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 12
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Connor Schenck and Dieter Fox. Visual closed-loop control for pouring liquids. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pp. 2629–2636. IEEE, 2017. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
173,
|
| 1317 |
+
396,
|
| 1318 |
+
825,
|
| 1319 |
+
426
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 12
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Jurgen Schmidhuber. Developmental robotics, optimal artificial curiosity, creativity, music, and ¨ the fine arts. Connect. Sci., 18(2):173–187, 2006. doi: 10.1080/09540090600768658. URL https://doi.org/10.1080/09540090600768658. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
173,
|
| 1328 |
+
434,
|
| 1329 |
+
825,
|
| 1330 |
+
477
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 12
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pp. 1889–1897, 2015. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
174,
|
| 1339 |
+
486,
|
| 1340 |
+
821,
|
| 1341 |
+
515
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 12
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
171,
|
| 1350 |
+
522,
|
| 1351 |
+
823,
|
| 1352 |
+
551
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 12
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "Avi Singh, Larry Yang, Kristian Hartikainen, Chelsea Finn, and Sergey Levine. End-to-end robotic reinforcement learning without reward engineering. In Robotics: Science and Systems (RSS), 2019. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
174,
|
| 1361 |
+
559,
|
| 1362 |
+
825,
|
| 1363 |
+
602
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 12
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Adrian Stoica. Robot fostering techniques for sensory-motor development of humanoid robots. Robotics and Autonomous Systems, 37(2-3):127–143, 2001. doi: 10.1016/S0921-8890(01) 00154-3. URL https://doi.org/10.1016/S0921-8890(01)00154-3. ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
174,
|
| 1372 |
+
612,
|
| 1373 |
+
825,
|
| 1374 |
+
655
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 12
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Sainbayar Sukhbaatar, Zeming Lin, Ilya Kostrikov, Gabriel Synnaeve, Arthur Szlam, and Rob Fergus. Intrinsic motivation and automatic curricula via asymmetric self-play. In 6th International Conference on Learning Representations, ICLR 2018, 2018. ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
176,
|
| 1383 |
+
662,
|
| 1384 |
+
825,
|
| 1385 |
+
705
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 12
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "Sebastian Thrun and Tom M. Mitchell. Lifelong robot learning. Robotics and Autonomous Systems, 15(1-2):25–46, 1995. doi: 10.1016/0921-8890(95)00004-Y. URL https://doi.org/10. 1016/0921-8890(95)00004-Y. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
176,
|
| 1394 |
+
713,
|
| 1395 |
+
825,
|
| 1396 |
+
756
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 12
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World. arXiv e-prints, art. arXiv:1703.06907, Mar 2017. ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
173,
|
| 1405 |
+
765,
|
| 1406 |
+
825,
|
| 1407 |
+
808
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 12
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "Eric Tzeng, Coline Devin, Judy Hoffman, Chelsea Finn, Pieter Abbeel, Sergey Levine, Kate Saenko, and Trevor Darrell. Adapting Deep Visuomotor Representations with Weak Pairwise Constraints. arXiv e-prints, art. arXiv:1511.07111, Nov 2015. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
173,
|
| 1416 |
+
815,
|
| 1417 |
+
823,
|
| 1418 |
+
859
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 12
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "Matej Vecerik, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothorl, Thomas Lampe, and Martin A. Riedmiller. Leveraging demon- ¨ strations for deep reinforcement learning on robotics problems with sparse rewards. CoRR, abs/1707.08817, 2017. URL http://arxiv.org/abs/1707.08817. ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
174,
|
| 1427 |
+
867,
|
| 1428 |
+
825,
|
| 1429 |
+
924
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 12
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empiri- ´ cal risk minimization. In International Conference on Learning Representations, 2018. ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
171,
|
| 1438 |
+
103,
|
| 1439 |
+
821,
|
| 1440 |
+
132
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 13
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "Henry Zhu, Abhishek Gupta, Aravind Rajeswaran, Sergey Levine, and Vikash Kumar. Dexterous manipulation with deep reinforcement learning: Efficient, general, and low-cost. In 2019 International Conference on Robotics and Automation (ICRA), pp. 3651–3657. IEEE, 2019. ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
176,
|
| 1449 |
+
141,
|
| 1450 |
+
821,
|
| 1451 |
+
184
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 13
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "A ALGORITHM DETAILS ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
176,
|
| 1460 |
+
102,
|
| 1461 |
+
392,
|
| 1462 |
+
118
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 14
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Algorithm 1 Real-World Robotic Reinforcement Learning (R3L) ",
|
| 1469 |
+
"text_level": 1,
|
| 1470 |
+
"bbox": [
|
| 1471 |
+
173,
|
| 1472 |
+
330,
|
| 1473 |
+
604,
|
| 1474 |
+
345
|
| 1475 |
+
],
|
| 1476 |
+
"page_idx": 14
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"type": "table",
|
| 1480 |
+
"img_path": "images/baf1850fa6349b7599b8ec022f6bccb9bd390a476ca5e34a90523f422e68ac94.jpg",
|
| 1481 |
+
"table_caption": [],
|
| 1482 |
+
"table_footnote": [],
|
| 1483 |
+
"table_body": "<table><tr><td colspan=\"2\">procedure R3L</td></tr><tr><td>1: 2:</td><td>N ← number of training epochs</td></tr><tr><td>3:</td><td>H ← trajectory length (horizon)</td></tr><tr><td>4:</td><td>nvICE ← number of VICE classifier training iterations per epoch</td></tr><tr><td>5:</td><td>Initialize forward and perturbing policies To,π1</td></tr><tr><td>6:</td><td>Obtain goal states sE and initialize as a goal pool G</td></tr><tr><td>7:</td><td>Initialize RND target and predictor networks f(s), f(s)</td></tr><tr><td>8:</td><td>Initialize VICE reward classifier rvICE(s)</td></tr><tr><td>9:</td><td>Initialize replay buffer D</td></tr><tr><td>10:</td><td>Collect initial exploration data and add to D</td></tr><tr><td>11:</td><td>for i= 1 to 2N do</td></tr><tr><td>12:</td><td>k←i%2</td></tr><tr><td>13:</td><td>for t = 1 to H do</td></tr><tr><td>14:</td><td>Sample at ~ Tk(St)</td></tr><tr><td>15:</td><td>Sample St+1 ~ p(St+1|St,at)</td></tr><tr><td>16:</td><td>if k== O then</td></tr><tr><td>17:</td><td>rt(St)= CVICE * rVICE(St)+ CRND * rRND(St)</td></tr><tr><td>18:</td><td>else if k==1 then</td></tr><tr><td>19:</td><td>rt(St)= rRND(St)</td></tr><tr><td>20:</td><td>end if</td></tr><tr><td>21:</td><td>Sample batch from D</td></tr><tr><td>22:</td><td>Update πk with batch according to SAC</td></tr><tr><td>23:</td><td>Update RND predictor network with batch</td></tr><tr><td>24:</td><td>Update running estimate of standard deviations of classifier and RND reward</td></tr><tr><td>25:</td><td>end for</td></tr><tr><td>26:</td><td>Add experience to the replay buffer with D ← DU Ti</td></tr><tr><td>27:</td><td>Sample an equal number of goal examples from G and negative examples from D</td></tr><tr><td>28:</td><td>for t= 1 to nvice do</td></tr><tr><td>29:</td><td>Train the VICE classifier on this batch with binary labels</td></tr><tr><td>30:</td><td>end for</td></tr><tr><td>31:</td><td>end for</td></tr><tr><td>32: end procedure</td><td></td></tr></table>",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
173,
|
| 1486 |
+
348,
|
| 1487 |
+
789,
|
| 1488 |
+
797
|
| 1489 |
+
],
|
| 1490 |
+
"page_idx": 14
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"type": "text",
|
| 1494 |
+
"text": "B TRAINING DETAILS ",
|
| 1495 |
+
"text_level": 1,
|
| 1496 |
+
"bbox": [
|
| 1497 |
+
176,
|
| 1498 |
+
102,
|
| 1499 |
+
370,
|
| 1500 |
+
118
|
| 1501 |
+
],
|
| 1502 |
+
"page_idx": 15
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"type": "table",
|
| 1506 |
+
"img_path": "images/90c9f5d5f162ae6fcf19e4841e2fa5994f44849fc94c92be58b62ccfe3213d0b.jpg",
|
| 1507 |
+
"table_caption": [
|
| 1508 |
+
"B.0.1 HYPERPARAMETERS "
|
| 1509 |
+
],
|
| 1510 |
+
"table_footnote": [],
|
| 1511 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>General</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Standard deviation up-date coefficientImage Sizes</td><td rowspan=1 colspan=1>0.99[(16, 16,3), (32,32,3), (64, 64, 3)]</td></tr><tr><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Learning RateyBatch SizeConvnet FiltersStrideKernel SizesPoolingActor/Critic FC Lay-ers</td><td rowspan=1 colspan=1>3e-40.99256[(64, 64,64), (16,32, 64)](2,2)(3,3)[MaxPool2D,None][(512,512), (256, 256, 256)]</td></tr><tr><td rowspan=1 colspan=1>VICE</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>nvICEBatch SizeLearning RateMixup αConvnet FiltersStrideKernel SizesPoolingFC Layers</td><td rowspan=1 colspan=1>[1,5,10]1281e-4Uniform(0, 1)[(64, 64,64), (16, 32, 64)](2,2)(3,3)[MaxPool2D,None][(512,512), (256,256,256)]</td></tr><tr><td rowspan=1 colspan=1>RND</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Learning RateBatch SizeConvnet FiltersStrideKernel SizesPoolingFC Layers</td><td rowspan=1 colspan=1>3e-4256(16, 32, 64)(2,2)(3,3)[MaxPool2D, None][(512,512), (256,256,256)]</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Learning RateBatch SizeEncoder (Convnet)FiltersLatent DimensionβStrideKernel SizesPooling</td><td rowspan=1 colspan=1>1e-4256(64, 64, 32)[8, 16,32, 64][1e-3, 0.1, 0.5, 1, 10](2,2)(3,3)[MaxPool2D, None]</td></tr></table>",
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
173,
|
| 1514 |
+
151,
|
| 1515 |
+
591,
|
| 1516 |
+
744
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 15
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "The ranges of values listed above represent the hyperparameters we searched over, and the bolded values are what we use in the Section 6 experiments. ",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
178,
|
| 1525 |
+
747,
|
| 1526 |
+
823,
|
| 1527 |
+
776
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 15
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"type": "text",
|
| 1533 |
+
"text": "B.0.2 VICE ",
|
| 1534 |
+
"text_level": 1,
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
174,
|
| 1537 |
+
790,
|
| 1538 |
+
274,
|
| 1539 |
+
804
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 15
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "We use a variant of VICE which defines the reward as the logits of the classifier, notably omitting the $- l o g ( \\pi ( a | s ) )$ term. We also regularize our classifier with mixup (Zhang et al., 2018). We train all of our experiments using 200 goal images, which takes under an hour to collect in the real world for each task. ",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
174,
|
| 1548 |
+
814,
|
| 1549 |
+
825,
|
| 1550 |
+
869
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 15
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "B.0.3 RANDOM NETWORK DISTILLATION (RND) ",
|
| 1557 |
+
"text_level": 1,
|
| 1558 |
+
"bbox": [
|
| 1559 |
+
174,
|
| 1560 |
+
883,
|
| 1561 |
+
532,
|
| 1562 |
+
900
|
| 1563 |
+
],
|
| 1564 |
+
"page_idx": 15
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "text",
|
| 1568 |
+
"text": "We found it important to normalize the predictor errors, just as (Burda et al., 2018) did. ",
|
| 1569 |
+
"bbox": [
|
| 1570 |
+
174,
|
| 1571 |
+
909,
|
| 1572 |
+
743,
|
| 1573 |
+
924
|
| 1574 |
+
],
|
| 1575 |
+
"page_idx": 15
|
| 1576 |
+
},
|
| 1577 |
+
{
|
| 1578 |
+
"type": "text",
|
| 1579 |
+
"text": "B.0.4 VAE ",
|
| 1580 |
+
"text_level": 1,
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
174,
|
| 1583 |
+
103,
|
| 1584 |
+
266,
|
| 1585 |
+
117
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 16
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "We train a standard beta-VAE to maximize the evidence lower bound, given by: ",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
176,
|
| 1594 |
+
127,
|
| 1595 |
+
694,
|
| 1596 |
+
142
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 16
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "equation",
|
| 1602 |
+
"img_path": "images/2a876e28c0f4089cb02fe39cef4ddda4e2f36dc48bd10d209eb88acee4f5cbc4.jpg",
|
| 1603 |
+
"text": "$$\n\\mathbb { E } _ { z \\sim q _ { \\phi } ( z | x ) } [ p _ { \\theta } ( x | z ) ] - \\beta D _ { \\mathrm { K L } } ( q _ { \\phi } ( z | x ) | | p _ { \\theta } ( z ) )\n$$",
|
| 1604 |
+
"text_format": "latex",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
343,
|
| 1607 |
+
148,
|
| 1608 |
+
655,
|
| 1609 |
+
169
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 16
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "text",
|
| 1615 |
+
"text": "To collect training data, we sampled random states in the observation space. In the real world, this sampling can be replaced with training an exploratory policy (i.e. using the RND reward as the policy’s only objective). The learned weights of the encoder of the VAE are frozen, and the latent input is used to train the policy for reset-free RL. ",
|
| 1616 |
+
"bbox": [
|
| 1617 |
+
174,
|
| 1618 |
+
181,
|
| 1619 |
+
825,
|
| 1620 |
+
237
|
| 1621 |
+
],
|
| 1622 |
+
"page_idx": 16
|
| 1623 |
+
},
|
| 1624 |
+
{
|
| 1625 |
+
"type": "text",
|
| 1626 |
+
"text": "C TASK DETAILS ",
|
| 1627 |
+
"text_level": 1,
|
| 1628 |
+
"bbox": [
|
| 1629 |
+
176,
|
| 1630 |
+
257,
|
| 1631 |
+
331,
|
| 1632 |
+
273
|
| 1633 |
+
],
|
| 1634 |
+
"page_idx": 16
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"type": "text",
|
| 1638 |
+
"text": "C.1 SIMULATED TASKS ",
|
| 1639 |
+
"text_level": 1,
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
176,
|
| 1642 |
+
289,
|
| 1643 |
+
351,
|
| 1644 |
+
304
|
| 1645 |
+
],
|
| 1646 |
+
"page_idx": 16
|
| 1647 |
+
},
|
| 1648 |
+
{
|
| 1649 |
+
"type": "text",
|
| 1650 |
+
"text": "We evaluated our system across three tasks in simulation: bead manipulation, valve rotation, free object repositioning. ",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
173,
|
| 1653 |
+
315,
|
| 1654 |
+
825,
|
| 1655 |
+
343
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 16
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "C.1.1 BEAD MANIPULATION ",
|
| 1662 |
+
"text_level": 1,
|
| 1663 |
+
"bbox": [
|
| 1664 |
+
174,
|
| 1665 |
+
358,
|
| 1666 |
+
387,
|
| 1667 |
+
373
|
| 1668 |
+
],
|
| 1669 |
+
"page_idx": 16
|
| 1670 |
+
},
|
| 1671 |
+
{
|
| 1672 |
+
"type": "text",
|
| 1673 |
+
"text": "The bead manipulation task involves an abacus rod with four beads that can slide freely. The goal is to position two beads on each end from any initial configuration of beads. This can take the form of sliding one bead over (if three beads start on one side), two beads over (if all four beads start on one side), splitting beads apart (all four beads start in the middle), or some intermediate combination of those. The true reward is defined as the mean goal distance of all four beads. Policies are evaluated starting from the 8 initial configurations depicted in Fig 10. Evaluation performance reported in Section 6 for this task is defined as the final reward averaged across the 8 evaluation rollouts. ",
|
| 1674 |
+
"bbox": [
|
| 1675 |
+
173,
|
| 1676 |
+
383,
|
| 1677 |
+
825,
|
| 1678 |
+
481
|
| 1679 |
+
],
|
| 1680 |
+
"page_idx": 16
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "image",
|
| 1684 |
+
"img_path": "images/080c6495f909ccd2083348ee2a02e0be2c3e68b87486d16c7fe5e20650758e62.jpg",
|
| 1685 |
+
"image_caption": [
|
| 1686 |
+
"Figure 10: These are the 8 initial positions used for evaluating the performance of the bead manipulation policy. The goal configuration (which is also an initial evaluation position) is highlighted in yellow. "
|
| 1687 |
+
],
|
| 1688 |
+
"image_footnote": [],
|
| 1689 |
+
"bbox": [
|
| 1690 |
+
245,
|
| 1691 |
+
500,
|
| 1692 |
+
750,
|
| 1693 |
+
690
|
| 1694 |
+
],
|
| 1695 |
+
"page_idx": 16
|
| 1696 |
+
},
|
| 1697 |
+
{
|
| 1698 |
+
"type": "text",
|
| 1699 |
+
"text": "C.1.2 VALVE ROTATION ",
|
| 1700 |
+
"text_level": 1,
|
| 1701 |
+
"bbox": [
|
| 1702 |
+
174,
|
| 1703 |
+
733,
|
| 1704 |
+
354,
|
| 1705 |
+
747
|
| 1706 |
+
],
|
| 1707 |
+
"page_idx": 16
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "text",
|
| 1711 |
+
"text": "The claw is positioned above a three pronged valve ( $1 5 \\mathrm { c m }$ in diameter). The objective is to turn the valve to a given orientation from any initial orientation. The ”true reward” is $\\dot { r } = - \\log ( | \\theta _ { s t a t e } -$ $\\theta _ { g o a l } | .$ ). Policies are evaluated starting from the 8 initial configurations depicted in Fig 11. Evaluation performance reported in Section 6 for this task is defined as the final orientation distance averaged across the 8 evaluation rollouts. ",
|
| 1712 |
+
"bbox": [
|
| 1713 |
+
174,
|
| 1714 |
+
758,
|
| 1715 |
+
825,
|
| 1716 |
+
828
|
| 1717 |
+
],
|
| 1718 |
+
"page_idx": 16
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"type": "text",
|
| 1722 |
+
"text": "C.1.3 FREE OBJECT REPOSITIONING ",
|
| 1723 |
+
"text_level": 1,
|
| 1724 |
+
"bbox": [
|
| 1725 |
+
176,
|
| 1726 |
+
843,
|
| 1727 |
+
442,
|
| 1728 |
+
858
|
| 1729 |
+
],
|
| 1730 |
+
"page_idx": 16
|
| 1731 |
+
},
|
| 1732 |
+
{
|
| 1733 |
+
"type": "text",
|
| 1734 |
+
"text": "The claw is positioned atop a free $6 ~ \\mathrm { D o F } )$ three pronged object ( $1 5 \\mathrm { c m }$ in diameter), which can translate and rotate within a $3 0 \\mathrm { c m } x 3 0 \\mathrm { c m }$ box. The goal is specified by a xy-position as well as a $\\mathbf { Z }$ -angle, where the xy-plane is the plane of the arena. The true reward is defined as the weighted sum of the angular and translational distances, $r = - 2 \\log ( | | [ x _ { s t a t e } , y _ { s t a t e } ] - [ x _ { g o a l } , y _ { g o a l } ] | | _ { 2 } ) -$ $\\log ( | \\theta _ { s t a t e } - \\theta _ { g o a l } | )$ . In our experiments, $( x , y , \\theta ) _ { g o a l } = ( 0 , 0 , - \\frac { \\pi } { 2 } )$ , where the origin is centered in the arena. Policies are evaluated starting from the 15 initial configurations depicted in Figure 12. Evaluation performance reported in Section 6 for this task is defined as the final pose distance ( ||[xf inal,yf inal]−[xgoal,ygoal]||2 + |θf inal−θgoal| ) averaged across the 15 evaluation rollouts. ",
|
| 1735 |
+
"bbox": [
|
| 1736 |
+
174,
|
| 1737 |
+
867,
|
| 1738 |
+
825,
|
| 1739 |
+
925
|
| 1740 |
+
],
|
| 1741 |
+
"page_idx": 16
|
| 1742 |
+
},
|
| 1743 |
+
{
|
| 1744 |
+
"type": "image",
|
| 1745 |
+
"img_path": "images/2fc0e811e81e0386a99cca981233798437bab0e05c9f8cf66ad0402316a68fe0.jpg",
|
| 1746 |
+
"image_caption": [
|
| 1747 |
+
"Figure 11: These are the 8 initial positions used for evaluating the performance of the valve rotation policy. The goal configuration (which is also an initial evaluation position) is highlighted in yellow. "
|
| 1748 |
+
],
|
| 1749 |
+
"image_footnote": [],
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
241,
|
| 1752 |
+
104,
|
| 1753 |
+
750,
|
| 1754 |
+
296
|
| 1755 |
+
],
|
| 1756 |
+
"page_idx": 17
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"type": "text",
|
| 1760 |
+
"text": "",
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
173,
|
| 1763 |
+
344,
|
| 1764 |
+
826,
|
| 1765 |
+
407
|
| 1766 |
+
],
|
| 1767 |
+
"page_idx": 17
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"type": "text",
|
| 1771 |
+
"text": "In our reset controller experiments, we averaged evaluation performance over three different choices of reset states, where the first reset state is always the goal: ",
|
| 1772 |
+
"bbox": [
|
| 1773 |
+
173,
|
| 1774 |
+
411,
|
| 1775 |
+
823,
|
| 1776 |
+
440
|
| 1777 |
+
],
|
| 1778 |
+
"page_idx": 17
|
| 1779 |
+
},
|
| 1780 |
+
{
|
| 1781 |
+
"type": "text",
|
| 1782 |
+
"text": "1. $( x , y , \\theta ) _ { r e s e t , 1 } = ( x , y , \\theta ) _ { g o a l } , ( x , y , \\theta ) _ { r e s e t , 2 } = ( 0 . 0 5 , 0 . 0 5 , \\frac { \\pi } { 2 } )$ \n2. $\\begin{array} { r } { ( x , y , \\theta ) _ { r e s e t , 1 } = ( x , y , \\theta ) _ { g o a l } , ( x , y , \\theta ) _ { r e s e t , 2 } = ( 0 , 0 , - \\frac { \\pi } { 6 } ) } \\end{array}$ \n3. $( x , y , \\theta ) _ { r e s e t , 1 } = ( x , y , \\theta ) _ { g o a l } , ( x , y , \\theta ) _ { r e s e t , 2 } = ( - 0 . 0 4 , - 0 . 0 4 , - \\frac { \\pi } { 2 } )$ ",
|
| 1783 |
+
"bbox": [
|
| 1784 |
+
210,
|
| 1785 |
+
453,
|
| 1786 |
+
689,
|
| 1787 |
+
518
|
| 1788 |
+
],
|
| 1789 |
+
"page_idx": 17
|
| 1790 |
+
},
|
| 1791 |
+
{
|
| 1792 |
+
"type": "image",
|
| 1793 |
+
"img_path": "images/1b1a729609dbfdd4bff369f64e48f133a4dc620e897c2ab6a14904cca1c9dbe4.jpg",
|
| 1794 |
+
"image_caption": [
|
| 1795 |
+
"Figure 12: These are the 15 initial positions used for evaluating the performance of the free object repositioning policy. The goal configuration $( x , y , \\theta ) _ { g o a l }$ which is also an initial evaluation position is highlighted in yellow. "
|
| 1796 |
+
],
|
| 1797 |
+
"image_footnote": [],
|
| 1798 |
+
"bbox": [
|
| 1799 |
+
183,
|
| 1800 |
+
547,
|
| 1801 |
+
812,
|
| 1802 |
+
835
|
| 1803 |
+
],
|
| 1804 |
+
"page_idx": 17
|
| 1805 |
+
},
|
| 1806 |
+
{
|
| 1807 |
+
"type": "text",
|
| 1808 |
+
"text": "C.2 REAL WORLD TASKS ",
|
| 1809 |
+
"text_level": 1,
|
| 1810 |
+
"bbox": [
|
| 1811 |
+
176,
|
| 1812 |
+
103,
|
| 1813 |
+
366,
|
| 1814 |
+
117
|
| 1815 |
+
],
|
| 1816 |
+
"page_idx": 18
|
| 1817 |
+
},
|
| 1818 |
+
{
|
| 1819 |
+
"type": "text",
|
| 1820 |
+
"text": "For each setup we use an RGB camera to get images. We execute actions on the DClaw at $1 0 \\mathrm { H z }$ . In order to operate at such a high frequency while also training from images we sample and train asynchronously, but limit training to not exceed two gradient steps per transition sampled in the real world. Since direct performance metrics cannot be measured during training due to the lack of object instrumentation, evaluations of performance are done post-training. ",
|
| 1821 |
+
"bbox": [
|
| 1822 |
+
174,
|
| 1823 |
+
128,
|
| 1824 |
+
825,
|
| 1825 |
+
199
|
| 1826 |
+
],
|
| 1827 |
+
"page_idx": 18
|
| 1828 |
+
},
|
| 1829 |
+
{
|
| 1830 |
+
"type": "text",
|
| 1831 |
+
"text": "C.2.1 VALVE ROTATION ",
|
| 1832 |
+
"text_level": 1,
|
| 1833 |
+
"bbox": [
|
| 1834 |
+
176,
|
| 1835 |
+
214,
|
| 1836 |
+
354,
|
| 1837 |
+
229
|
| 1838 |
+
],
|
| 1839 |
+
"page_idx": 18
|
| 1840 |
+
},
|
| 1841 |
+
{
|
| 1842 |
+
"type": "text",
|
| 1843 |
+
"text": "The task is identical to the one in simulation. Evaluations were done post-training. An evaluation trajectory was defined as a success if at the last step, the valve was within 15 degrees of the goal. Each policy was evaluated over 8 rollouts, with initial configurations evenly spaced out between at increments of 45 degrees. Results are reported in Figures 13, 14. ",
|
| 1844 |
+
"bbox": [
|
| 1845 |
+
176,
|
| 1846 |
+
239,
|
| 1847 |
+
825,
|
| 1848 |
+
295
|
| 1849 |
+
],
|
| 1850 |
+
"page_idx": 18
|
| 1851 |
+
},
|
| 1852 |
+
{
|
| 1853 |
+
"type": "text",
|
| 1854 |
+
"text": "C.2.2 BEAD MANIPULATION ",
|
| 1855 |
+
"text_level": 1,
|
| 1856 |
+
"bbox": [
|
| 1857 |
+
174,
|
| 1858 |
+
310,
|
| 1859 |
+
387,
|
| 1860 |
+
324
|
| 1861 |
+
],
|
| 1862 |
+
"page_idx": 18
|
| 1863 |
+
},
|
| 1864 |
+
{
|
| 1865 |
+
"type": "text",
|
| 1866 |
+
"text": "The rod is $2 2 \\mathrm { c m }$ in length, and each bead measures $3 . 5 \\mathrm { c m }$ in diameter. Evaluations were done post-training, using the following procedure: the environment was manually reset to each of the 8 specified configurations shown in Figures 15 and 16 (which cover a full range of the state space) at the start of each evaluation rollout. An evaluation trajectory was defined as a success if at the last time step, all beads were within $2 \\mathrm { c m }$ of their goal positions. Performance was evaluated at around 20 hours, at which point the policy achieved greater than $80 \\%$ success on the 10 evaluation rollouts (a random policy achieved a success rate of $10 \\%$ ). Results are reported in Figs 15, 16. ",
|
| 1867 |
+
"bbox": [
|
| 1868 |
+
173,
|
| 1869 |
+
334,
|
| 1870 |
+
825,
|
| 1871 |
+
433
|
| 1872 |
+
],
|
| 1873 |
+
"page_idx": 18
|
| 1874 |
+
},
|
| 1875 |
+
{
|
| 1876 |
+
"type": "image",
|
| 1877 |
+
"img_path": "images/7a90b025f1eac655661ca465e4c18b4e9bb25b2a296dbae63b4b880663793aff.jpg",
|
| 1878 |
+
"image_caption": [
|
| 1879 |
+
"Figure 13: These are the results of the evaluation rollouts on the valve rotation task in the real world using our method (without the VAE). Trained policies were saved at regular intervals and evaluated post-training. Each row is a different policy, and each column an evaluation rollout from a different initial configuration. The goal is highlighted in yellow. Our method is able to achieve high success rates after 5 hours of training. "
|
| 1880 |
+
],
|
| 1881 |
+
"image_footnote": [],
|
| 1882 |
+
"bbox": [
|
| 1883 |
+
202,
|
| 1884 |
+
445,
|
| 1885 |
+
790,
|
| 1886 |
+
738
|
| 1887 |
+
],
|
| 1888 |
+
"page_idx": 18
|
| 1889 |
+
},
|
| 1890 |
+
{
|
| 1891 |
+
"type": "image",
|
| 1892 |
+
"img_path": "images/124c852ede375572bcb431d4c7898f2ef36299c9da3133ec70dbeee81eee744d.jpg",
|
| 1893 |
+
"image_caption": [
|
| 1894 |
+
"Figure 14: These are the results of evaluation rollouts on the valve rotation task in the real world using the VICE single goal baseline. The policies fail to evaluate well, especially from initial positions far from the goal position. "
|
| 1895 |
+
],
|
| 1896 |
+
"image_footnote": [],
|
| 1897 |
+
"bbox": [
|
| 1898 |
+
205,
|
| 1899 |
+
130,
|
| 1900 |
+
789,
|
| 1901 |
+
465
|
| 1902 |
+
],
|
| 1903 |
+
"page_idx": 19
|
| 1904 |
+
},
|
| 1905 |
+
{
|
| 1906 |
+
"type": "image",
|
| 1907 |
+
"img_path": "images/30f66949f6e9e5f3f38c8a70eb2082962ea087319babcbeafcf552e09b61101e.jpg",
|
| 1908 |
+
"image_caption": [
|
| 1909 |
+
"Figure 15: These are the results of the evaluation rollouts on the valve rotation task in the real world using our method (without the VAE). Trained policies were saved at regular intervals and evaluated post-training. Each row is a different policy, and each column an evaluation rollout from a different initial configuration. The goal is highlighted in yellow. Our method is able to achieve high success rates after 17 hours of training. "
|
| 1910 |
+
],
|
| 1911 |
+
"image_footnote": [],
|
| 1912 |
+
"bbox": [
|
| 1913 |
+
204,
|
| 1914 |
+
583,
|
| 1915 |
+
789,
|
| 1916 |
+
840
|
| 1917 |
+
],
|
| 1918 |
+
"page_idx": 19
|
| 1919 |
+
},
|
| 1920 |
+
{
|
| 1921 |
+
"type": "image",
|
| 1922 |
+
"img_path": "images/3f8949a077ed83c173449febf904e9b7fa2f6c6fc40c84db953357f2ba8c7515.jpg",
|
| 1923 |
+
"image_caption": [
|
| 1924 |
+
"Figure 16: These are the results of evaluation rollouts on the valve rotation task in the real world using the VICE single goal baseline. The policies fail to evaluate consistently, except when the initial configuration matches the goal configuration. "
|
| 1925 |
+
],
|
| 1926 |
+
"image_footnote": [],
|
| 1927 |
+
"bbox": [
|
| 1928 |
+
173,
|
| 1929 |
+
332,
|
| 1930 |
+
823,
|
| 1931 |
+
650
|
| 1932 |
+
],
|
| 1933 |
+
"page_idx": 20
|
| 1934 |
+
}
|
| 1935 |
+
]
|
parse/train/rydeCEhs-/rydeCEhs-.md
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SMASH: ONE-SHOT MODEL ARCHITECTURESEARCH THROUGH HYPERNETWORKS
|
| 2 |
+
|
| 3 |
+
Andrew Brock, Theodore Lim, & J.M. Ritchie
|
| 4 |
+
|
| 5 |
+
# Nick Weston
|
| 6 |
+
|
| 7 |
+
School of Engineering and Physical Sciences
|
| 8 |
+
Heriot-Watt University
|
| 9 |
+
Edinburgh, UK
|
| 10 |
+
{ajb5, t.lim, j.m.ritchie}@hw.ac.uk
|
| 11 |
+
Renishaw plc
|
| 12 |
+
Research Ave, North
|
| 13 |
+
Edinburgh, UK
|
| 14 |
+
Nick.Weston@renishaw.com
|
| 15 |
+
|
| 16 |
+
# ABSTRACT
|
| 17 |
+
|
| 18 |
+
Designing architectures for deep neural networks requires expert knowledge and substantial computation time. We propose a technique to accelerate architecture selection by learning an auxiliary HyperNet that generates the weights of a main model conditioned on that model’s architecture. By comparing the relative validation performance of networks with HyperNet-generated weights, we can effectively search over a wide range of architectures at the cost of a single training run. To facilitate this search, we develop a flexible mechanism based on memory read-writes that allows us to define a wide range of network connectivity patterns, with ResNet, DenseNet, and FractalNet blocks as special cases. We validate our method (SMASH) on CIFAR-10 and CIFAR-100, STL-10, ModelNet10, and Imagene $3 2 \mathbf { x } 3 2$ , achieving competitive performance with similarly-sized handdesigned networks.
|
| 19 |
+
|
| 20 |
+
# 1 INTRODUCTION
|
| 21 |
+
|
| 22 |
+
The high performance of deep neural nets is tempered by the cost of extensive engineering and validation to find the best architecture for a given problem. High-level design decisions such as depth, units per layer, and layer connectivity are not always obvious, and the success of models such as Inception (Szegedy et al., 2016), ResNets (He et al., 2016), FractalNets (Larsson et al., 2017) and DenseNets (Huang et al., 2017) demonstrates the benefits of intricate design patterns. Even with expert knowledge, determining which design elements to weave together requires ample experimentation.
|
| 23 |
+
|
| 24 |
+
In this work, we propose to bypass the expensive procedure of fully training candidate models by instead training an auxiliary model, a HyperNet (Ha et al., 2017), to dynamically generate the weights of a main model with variable architecture. Though these generated weights are worse than freely learned weights for a fixed architecture, we leverage the observation (Li et al., 2017) that the relative performance of different networks early in training (i.e. some distance from the eventual optimum) often provides a meaningful indication of performance at optimality. By comparing validation performance for a set of architectures using generated weights, we can approximately rank numerous architectures at the cost of a single training run.
|
| 25 |
+
|
| 26 |
+
To facilitate this search, we develop a flexible scheme based on memory read-writes that allows us to define a diverse range of architectures, with ResNets, DenseNets, and FractalNets as special cases. We validate our one-Shot Model Architecture Search through HyperNetworks (SMASH) for Convolutional Neural Networks (CNN) on CIFAR-10 and CIFAR-100 (Krizhevsky and Hinton, 2009), Imagene $3 2 \mathrm { x } 3 2$ (Chrabaszcz et al., 2017), ModelNet10 (Wu et al., 2015), and STL-10 (Coates et al., 2011), achieving competitive performance with similarly-sized hand-designed networks.
|
| 27 |
+
|
| 28 |
+
# 2 RELATED WORK
|
| 29 |
+
|
| 30 |
+
Modern practical methods for optimizing hyperparameters rely on random search (Bergstra and Bengio, 2012) or Bayesian Optimization (BO) (Snoek et al., 2012; 2015), treating the model performance as a black box. While successful, these methods require multiple training runs for evaluation (even when starting with a good initial model) and, in the case of BO, are not typically used to specify variable-length settings such as the connectivity and structure of the model under consideration. Relatedly, bandit-based methods (Li et al., 2017) provide a framework for efficiently exploring the hyperparameter space by employing an adaptive early-stopping strategy, allocating more resources to models which show promise early in training.
|
| 31 |
+
|
| 32 |
+
Evolutionary techniques (Floreano et al.; Stanley et al.; Suganuma et al., 2017; Wierstra et al., 2005) offer a flexible approach for discovering variegated models from trivial initial conditions, but often struggle to scale to deep neural nets where the search space is vast, even with enormous compute (Real et al., 2017).
|
| 33 |
+
|
| 34 |
+
Reinforcement learning methods (Baker et al., 2017; Zoph and Le, 2017) have been used to train an agent to generate network definitions using policy gradients. These methods start from trivial architectures and discover models that achieve very high performance, but can require twelve to fifteen thousand full training runs to arrive at a solution.
|
| 35 |
+
|
| 36 |
+
The method that most resembles our own is that of Saxe et al. (Saxe et al., 2011), who propose to efficiently explore various architectures by training only the output layer of convolutional networks with random convolutional weights. While more efficient than fully training an entire network end-toend, this method does not appear to scale to deeper networks (Yosinski et al., 2014). Our method is conceptually similar, but replaces random weights with weights generated through HyperNets (Ha et al., 2017), which are one of a class of techniques for dynamically adapting weights through use of an auxiliary model (Denil et al., 2013; Jia et al., 2016; Rebuffi et al., 2017; Schmidhuber, 1992). In our case we learn a transform from a binary encoding of an architecture to the weight space, rather than learning to adapt weights based on the model input.
|
| 37 |
+
|
| 38 |
+
Our method is explicitly designed to evaluate a wide range of model configurations (in terms of connectivity patterns, depth, and width) but does not address other hyperparameters such as regularization, learning rate schedule, weight initialization, or data augmentation. Unlike the aforementioned evolutionary or RL methods, we explore a somewhat pre-defined design space, rather than starting with a trivial model and designating a set of available network elements. While we still consider a rich set of architectures, our method cannot discover wholly new structures on its own and is constrained in that it only dynamically generates a specific subset of the model parameters. Additionally, although our method is not evolutionary, our encoding scheme is reminiscent of CGP (Miller and Thomson, 2000).
|
| 39 |
+
|
| 40 |
+
Stochastic regularization techniques such as Dropout (Srivastava et al., 2012), Swapout (Singh et al., 2016), DropPath (Larsson et al., 2017) or stochastic depth (Huang et al., 2016) superficially resemble our method, in that they obtain variable configurations by randomly dropping connectivity paths in a fixed network architecture. Convolutional neural fabrics (Saxena and Verbeek, 2016), for example, leverage this idea to attempt to train one large network as an implicit ensemble of all subnetworks produced through dropping paths. A key element that sets our method apart is that the weights for each node in our network are dynamically generated, rather than fixed; if a Dropout ensemble were to visit a unit that had not previously been trained, the unit’s weights would be completely untuned. Our method generalizes even to previously unseen architectures, and the network we train under stochastic conditions is merely a proxy we use to evaluate network configurations, rather than the final model.
|
| 41 |
+
|
| 42 |
+
# 3 ONE-SHOT MODEL ARCHITECTURE SEARCH THROUGH HYPERNETWORKS
|
| 43 |
+
|
| 44 |
+
In SMASH (Algorithm 1), our goal is to rank a set of neural network configurations relative to one another based on each configuration’s validation performance, which we accomplish using weights generated by an auxiliary network. At each training step, we randomly sample a network architecture, generate the weights for that architecture using a HyperNet, and train the entire system end-to-end through backpropagation. When the model is finished training, we sample a number of random architectures and evaluate their performance on a validation set, using weights generated by the HyperNet. We then select the architecture with the best estimated validation performance and train its weights normally.
|
| 45 |
+
|
| 46 |
+
<table><tr><td>Algorithm1SMASH</td></tr><tr><td></td></tr></table>
|
| 47 |
+
|
| 48 |
+
<table><tr><td>input Space of all candidate architectures, Rc Initialize HyperNet weights H loop</td><td></td></tr><tr><td>Sample input minibatch xi,random architecture c and architecture weights W = H(c) Get training error Et = fc(W,xi)= fc(H(c),xi),backprop and update H</td><td rowspan="3"></td></tr><tr><td>end loop</td></tr><tr><td>loop Sample random c and evaluate error on validation set Ev = fc(H(c),xv)</td></tr><tr><td>end loop</td><td rowspan="3"></td></tr><tr><td>Fix architecture and train normally with freely-varying weights W</td></tr><tr><td></td></tr></table>
|
| 49 |
+
|
| 50 |
+
SMASH comprises two core components: the method by which we sample architectures, and the method by which we sample weights for a given architecture. For the former, we develop a novel "memory-bank" view of feed-forward networks that permits sampling complex, branching topologies, and encoding said topologies as binary vectors. For the latter, we employ a HyperNet (Ha et al., 2017) that learns to map directly from the binary architecture encoding to the weight space.
|
| 51 |
+
|
| 52 |
+
We hypothesize that so long as the HyperNet learns to generate reasonable weights, the validation error of networks with generated weights will correlate with the performance when using normally trained weights, with the difference in architecture being the primary factor of variation. Throughout the paper, we refer to the entire apparatus during the first part of training (the HyperNet, the variable architecture main network, and any freely learned main network weights) as the SMASH network, and we refer to networks trained with freely learned weights in the second stage as resulting networks.
|
| 53 |
+
|
| 54 |
+
# 3.1 DEFINING VARIABLE NETWORK CONFIGURATIONS
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
Figure 1: Memory-Bank representations of ResNet, DenseNet, and FractalNet blocks.
|
| 58 |
+
|
| 59 |
+
In order to explore a broad range of architectures with variable depth, connectivity patterns, layer sizes and beyond, we require a flexible mechanism for defining such architectures, which we can also easily encode into a conditioning vector for the HyperNet. To this end, we introduce a "memory-bank" view of feed-forward networks.
|
| 60 |
+
|
| 61 |
+
Rather than viewing a network as a series of operations applied to a forward-propagating signal, we view a network as having a set of memory banks (initially tensors filled with zeros) which it can read and write. Each layer is thus an operation that reads data from a subset of memory, modifies the data, and writes the result to another subset of memory. For a single-branch architecture, the network has one large memory bank it reads and overwrites (or, for a ResNet, adds to) at each op. A branching architecture such as a DenseNet reads from all previously written banks and writes to an empty bank, and a FractalNet follows a more complex read-write pattern, as shown in Figure 1.
|
| 62 |
+
|
| 63 |
+
Our base network structure consists of multiple blocks (Figure 2(b)), where each block has a set number of memory banks at a given spatial resolution, with successively halved spatial resolutions as in most CNN architectures. Downsampling is accomplished via a 1x1 convolution followed by average pooling (Huang et al., 2017), with the weights of the 1x1 convolution and the fully-connected output layer being freely learned, rather than generated.
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
Figure 2: (a) Structure of one op: A 1x1 conv operating on the memory banks, followed by up to 2 stem block 1 trans block 2 trans block 3parallel paths of 2 convolutions each. (b) Basic network skeleton.
|
| 67 |
+
|
| 68 |
+
Block 1 Block 2 Block 3When sampling an architecture, the number of banks and the number of channels per bank are randomly sampled at each block. When defining each layer within a block, we randomly select the Block 1 Block 2 Block 3read-write pattern and the definition of the op to be performed on the read data. When reading from multiple banks we concatenate the read tensors along the channel axis, and when writing to banks we add to the tensors currently in each bank. For all reported experiments, we only read and write from banks at one block (i.e. one spatial resolution), although one could employ resizing to allow reading and writing from any block, similar to (Saxena and Verbeek, 2016).
|
| 69 |
+
|
| 70 |
+
Each op comprises a 1x1 convolution (reducing the number of incoming channels), followed by a variable number of convolutions interleaved with nonlinearities, as shown in Figure 2(a). We randomly select which of the four convs are active, along with their filter size, dilation factor, number of groups, and the number of output units (i.e. the layer width). The number of output channels of the 1x1 conv is some factor of the width of the op, chosen as the "bottleneck ratio" hyperparameter.
|
| 71 |
+
|
| 72 |
+
The weights for the 1x1 convolution are generated by the HyperNet as described in Section 3.2, while the other convolutions are normally learned parameters. To ensure variable depth, we learn a single set of 4 convolutions for each block, and share it across all ops within a block. We limit the max filter size and number of output units, and when a sampled op uses less than the maximum of either, we simply slice the weight tensor to the required size. The fixed transition convolutions and output layer employ this same slicing based on the number of incoming non-empty memory banks. Exact details regarding this scheme are available in the appendix.
|
| 73 |
+
|
| 74 |
+
In designing our scheme, we strive to minimize the number of static learned parameters, placing the majority of the network’s capacity in the HyperNet. A notable consequence of this goal is that we only employ BatchNorm (Ioffe and Szegedy, 2015) at downsample layers and before the output layer, as the layer-specific running statistics are difficult to dynamically generate. We experimented with several different normalization schemes including WeightNorm (Salimans and Kingma, 2016), LayerNorm (Ba et al., 2016) and NormProp (Arpit et al., 2016) but found them to be unstable in training.
|
| 75 |
+
|
| 76 |
+
Instead, we employ a simplified version of WeightNorm where we divide the entirety of each generated 1x1 filter by its Euclidean norm (rather than normalizing each channel separately), which we find to work well for SMASH and to only result in a minor drop in accuracy when employed in fixed-architecture networks. No other convolution within an op is normalized.
|
| 77 |
+
|
| 78 |
+
# 3.2 LEARNING TO MAP ARCHITECTURES TO WEIGHTS
|
| 79 |
+
|
| 80 |
+
A HyperNet (Ha et al., 2017) is a neural net used to parameterize the weights of another network, the main network. For a Static HyperNet with parameters $H$ , the main network weights $W$ are some function (e.g. a multilayer perceptron) of a learned embedding $z$ , such that the number of learned weights is typically smaller than the full number of weights for the main network. For a Dynamic HyperNet, the weights $W$ are generated conditioned on the network input $x$ , or, for recurrent networks, on the current input $x _ { t }$ and the previous hidden state $h _ { t - 1 }$ .
|
| 81 |
+
|
| 82 |
+
We propose a variant of a Dynamic HyperNet which generates the weights $W$ based on a tensor encoding of the main network architecture $c$ . Our goal is to learn a mapping $W = H ( c )$ that is reasonably close to the optimal $W$ for any given $c$ , such that we can rank each $c$ based on the validation error using HyperNet-generated weights. We thus adopt a scheme for the layout of $c$ to enable sampling of architectures with wildly variable topologies, compatibility with the toolbox available in standard libraries, and to make $c$ ’s dimensions as interpretable as possible.
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 3: An unrolled graph, its equivalent memory-bank representation, and its encoded embedding.
|
| 86 |
+
|
| 87 |
+
Our HyperNet is fully convolutional, such that the dimensionality of the output tensor $W$ varies with the dimensionality of the input $c$ , which we make a 4D tensor of the standard format Batch x Channel x Height $\mathbf { X }$ Width; the batch size is set to 1 so that no output elements are wholly independent. This allows us to vary the depth and width of the main network by increasing the height or width of $c$ Under this scheme, every slice of the spatial dimensions of $W$ corresponds to a specific subset of $c$ Information describing the op that uses that $W$ subset is embedded in the channel dimension of the corresponding $c$ slice.
|
| 88 |
+
|
| 89 |
+
For example, if an op reads from memory banks 1, 2, and 4, then writes to 2 and 4, then the first, second, and fourth channels of the corresponding slice of $c$ will be filled with 1s (indicating the read pattern) and the sixth and eighth channels of that slice will be filled with 1s (indicating the write pattern). The rest of the op description is encoded in the remaining channels in a similar 1-hot fashion. We only encode into the width-wise extent of $c$ based on the number of output units of the op, so elements of $c$ which do not correspond to any elements of $W$ are empty.
|
| 90 |
+
|
| 91 |
+
A naïve implementation of this scheme might require the size of $c$ to be equal to the size of $W$ , or have the HyperNet employ spatial upsampling to produce more elements. We found these choices poor, and instead employ a channel-based weight-compression scheme that reduces the size of $c$ and keeps the representational power of the HyperNet proportional to that of the main networks. We make the spatial extent of $c$ some fraction $k$ of the size of $W$ , and place $k$ units at the output of the HyperNet. We then reshape the resulting $1 \times k \times h e i g h t \times w i d t h$ tensor to the required size of W . $k$ is chosen to be $D N ^ { 2 }$ , where $N$ is the minimum memory bank size, and $D$ is a "depth compression" hyperparameter that represents how many slices of $W$ correspond to a single slice of $c$ . Complete details regarding this scheme (and the rest of the encoding strategy) are available in Appendix B.
|
| 92 |
+
|
| 93 |
+
# 4 EXPERIMENTS
|
| 94 |
+
|
| 95 |
+
We apply SMASH to several datasets, both for the purposes of benchmarking against other techniques, and to investigate the behavior of SMASH networks. Principally, we are interested in determining whether the validation error of a network using SMASH-generated weights (the "SMASH score") correlates with the validation of a normally trained network, and if so, the conditions under which the correlation holds. We are also interested in the transferability of the learned architectures to new datasets and domains, and how this relates to normal (weight-wise) transfer learning.
|
| 96 |
+
|
| 97 |
+
Our publicly available code1 is written in PyTorch (Paszke et al., 2017) to leverage dynamic graphs, and explicitly defines each sampled network in line with the memory-bank view to avoid obfuscating its inner workings behind (potentially more efficient) abstractions. We omit many hyperparameter details for brevity; full details are available in the appendices, along with visualizations of our best-found architectures.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 4: True error and SMASH validation error for 50 different random architectures on CIFAR-100. Red line is a least-squares best fit.
|
| 101 |
+
|
| 102 |
+
# 4.1 TESTING THE SMASH CORRELATION
|
| 103 |
+
|
| 104 |
+
First, we train a SMASH network for 300 epochs on CIFAR-100, using a standard annealing schedule (Huang et al., 2017), then sample 250 random architectures and evaluate their SMASH score on a held-out validation set formed of 5,000 random examples from the original training set. We then sort the architectures by their SMASH score and select every 5th architecture for full training and evaluation, using an accelerated training schedule of 30 epochs. For these networks, which we deem SMASHv1, the architecture uses a fixed memory bank size (though a variable number of banks in each block), a single fixed 3x3 conv in the main body of the op (rather than the variable $2 \mathbf { x } 2$ array of convs), a single group, and a fixed bottleneck ratio of 4. The variable elements comprise the read-write pattern, the number of output units, and the dilation factor of the $3 \mathrm { x } 3$ filter. When sampling architectures, we allocate a random, upper-bounded compute budget to each block.
|
| 105 |
+
|
| 106 |
+
Under these conditions, we observe a correlation (Figure 4) between the SMASH score and the true validation performance, suggesting that SMASH-generated weights can be used to rapidly compare architectures. It is critical not to overstate this claim; this test is arguably a single datapoint indicating that the correlation holds in this scenario, but neither guarantees the correlation’s generality nor implies the range of conditions for which it will hold. We thus conduct a more thorough investigation of this correlation.
|
| 107 |
+
|
| 108 |
+
We expect, based on preliminary experiments detailed in Appendix C, that the two key variables determining the strength of the correlation are the capacity of the HyperNet, and the ratio of HyperNetgenerated weights to freely learned weights. For the former, we reason that if the HyperNet lacks representational capacity, then it will be unable to learn an acceptable mapping between architectures and weights, and the generated weights will be too far from optimal to permit ranking. For the latter, we reason that if the main network has too many freely-learned weights relative to the number of dynamically generated weights, too much of its capacity will be "static" and ill-adapted to the wide range of architectures considered.
|
| 109 |
+
|
| 110 |
+
Following these hypotheses, we repeat the first experiment multiple times, varying the architecture of the HyperNet as well as the $g$ hyperparameter, which controls the maximum layer width and consequentially the ratio of freely-learned vs dynamic weights. A higher value of $g$ corresponds to relatively fewer dynamically generated weights. We consider three different ratios and five different HyperNet configurations. For each setting of $g$ we begin by training five different SMASH networks, each employing one of the candidate configurations. After training, we sample 500 random architectures as before, and then evaluate all five SMASH scores, rank them according to their average, and then train every 10th resulting network normally. We train the resulting networks for a full 100 epochs (as opposed to the previous shortened schedule) and repeat training runs with a total of 5 different random seeds. Finally, we evaluate the strength and significance of the correlation between SMASH score and resulting validation performance (averaged for each architecture across runs) using Pearson’s R.
|
| 111 |
+
|
| 112 |
+
Table 1: Pearson’s R $( \rho )$ and p-values (p) for various settings of $g$ .
|
| 113 |
+
|
| 114 |
+
<table><tr><td>Architecture</td><td>Params</td><td>p,g=4</td><td>p,g=4</td><td>p,g=8</td><td>p,g=8</td><td>p,g=16</td><td>p,g=16</td></tr><tr><td>G=[10,10,10],D=[12,15,8]</td><td>4M</td><td>-0.07</td><td>0.62</td><td>0.25</td><td>0.09</td><td>0.02</td><td>0.9</td></tr><tr><td>G=[20,20,20],D=[8,10,4]</td><td>5M</td><td>0.15</td><td>0.30</td><td>0.20</td><td>0.17</td><td>-0.09</td><td>0.53</td></tr><tr><td>G=[20,20,20],D=[12,15,8]</td><td>7M</td><td>0.31</td><td>0.02</td><td>0.24</td><td>0.09</td><td>0.05</td><td>0.76</td></tr><tr><td>G=[25,25,25],D=[16,16,16]</td><td>12M</td><td>0.38</td><td>0.06</td><td>0.24</td><td>0.09</td><td>0.04</td><td>0.77</td></tr><tr><td>G=[25,25,25],D=[25,25,25]</td><td>24M</td><td>0.04</td><td>0.77</td><td>0.20</td><td>0.17</td><td>0.11</td><td>0.45</td></tr></table>
|
| 115 |
+
|
| 116 |
+
The results of this study are reported in Table 1. The first column details the choices of growth rate and depth for each of the three blocks of the HyperNet, and the second column the number of parameters for each architecture. The values of $g { = } 4$ , $g { = } 8$ , and $g { = } 1 6$ roughly correspond to average freely-learned vs dynamic weight ratios of 1:4, 1:2, and 2:1, though these vary somewhat with individual sampled architectures.
|
| 117 |
+
|
| 118 |
+
Several trends are visible in this table. First, for $g { = } 4$ , we note that the strength of correlation increases with increased HyperNet capacity up to the fourth architecture with 12M parameters, but the correlation breaks down for the largest architecture. This suggests that the strength of correlation can indeed depend on the capacity of the HyperNet, but also that the HyperNet is either potentially susceptible to overfitting or that too large a HyperNet becomes too difficult to train and produces poor weights. Second, for $g { = } 8$ , we note that the correlation varies little with changes in architecture, but is weaker than the best correlations from $g = 4$ . This suggests that for a middling ratio, the capacity of the HyperNet has less effect on the correlation as there are fewer weights for it to adapt, but the strength of the correlation is weaker as each set of sampled weights is consequentially less optimal than for $g = 4$ . Third, we note a complete breakdown of the correlation for $g { = } 1 6$ , which is in line with our expectation that placing too much capacity in a single set of statically learned weights will prevent the SMASH network from properly adapting to individual architectures.
|
| 119 |
+
|
| 120 |
+
# 4.2 ARCHITECTURAL GRADIENT DESCENT BY PROXY
|
| 121 |
+
|
| 122 |
+
As an additional test of our method, we examine whether or not the HyperNet has learned to take into account the architecture definition in $c$ , or whether it ignores $c$ and naively generates an unconditional subspace of weights that happen to work well. We "trick" the HyperNet by sampling one architecture, but asking it to generate the weights for a different architecture by corrupting the encoding tensor $c$ (e.g. by shuffling the dilation values). For a given architecture, we find that SMASH validation performance is consistently highest when using the correct encoding tensor, suggesting that the HyperNet has indeed learned a passable mapping from architecture to weights.
|
| 123 |
+
|
| 124 |
+
Following this, we posit that if the HyperNet learns a meaningful mapping $W = H ( c )$ , then the classification error approximate meas $E = f ( W , x ) = f ( H ( c ) , x )$ can be backpropagated to find to the architecture itself. If thi $\textstyle { \frac { d E } { d c } }$ , providing anolds true, then perturbing the architecture according to the $\frac { \dot { d } E } { d c }$ vector (within the constraints of our scheme) should allow us to guide the architecture search through a gradient descent-like procedure. Our preliminary tests with this idea did not yield better SMASH scores than randomly perturbing the architectural definition, though we suspect that this was in part due to our lack of an intuitively satisfying update rule for the discrete architecture space.
|
| 125 |
+
|
| 126 |
+
# 4.3 TRANSFER LEARNING
|
| 127 |
+
|
| 128 |
+
Models with weights initially learned on one large dataset frequently outperform models trained from scratch on a smaller dataset; it follows that architectures might display the same behavior. We test on STL-10 (Coates et al., 2011), a small dataset of $9 6 \mathbf { x } 9 6$ images similar to the CIFAR datasets. We compare the performance of the best-found architecture from CIFAR-100 (with weights trained from scratch on STL-10) to the best-found architecture from running SMASH on STL-10, and a
|
| 129 |
+
|
| 130 |
+
WRN baseline. For these experiments, we make use of the full 5,000 images in the training set; in the following section we also include comparisons against a WRN baseline using the recommended 10-fold training split.
|
| 131 |
+
|
| 132 |
+
In this case, we find that the best-found architecture from CIFAR-100 outperforms the best-found architecture from STL-10, achieving $1 7 . 5 4 \%$ and $2 0 . 2 7 5 \%$ error, respectively. For reference, a baseline WRN28-10 and WRN40-4 achieve respective $1 5 . 4 3 \%$ and $1 6 . 0 6 \%$ errors. This presents an interesting phenomenon: one the one hand, one might expect the architecture discovered on STL-10 to be better-tuned to STL-10 because it was specifically learned on that dataset. On the other hand, CIFAR-100 has significantly more training examples, potentially making it a better dataset for distinguishing between good architectures, i.e. accuracy on CIFAR-100 is more indicative of generality. The better performance of the architecture found on CIFAR-100 would seem to favor the latter hypothesis, suggesting that architecture search benefits from larger training sets more so than domain specificity.
|
| 133 |
+
|
| 134 |
+
We next investigate how well our best-found CIFAR-100 architecture performs on ModelNet10 (Wu et al., 2015), a 3D object classification benchmark. We train on the voxelated instances of the ModelNet10 training set using the settings of (Brock et al., 2016), and report accuracy on the ModelNet10 test set. Our 8M parameter model achieves an accuracy of $9 3 . 2 8 \%$ , compared to a $9 3 . 6 1 \%$ accuracy from a hand-designed Inception-ResNet (Brock et al., 2016) with 18M parameters trained on the larger ModelNet40 dataset.
|
| 135 |
+
|
| 136 |
+
# 4.4 BENCHMARKING
|
| 137 |
+
|
| 138 |
+
We run SMASH on CIFAR-10 and 100, augmenting our search space from the initial correlation experiment to include variable filter sizes, variable groups, and the full variable op structure shown in Figure 2, and denote the resulting networks SMASHv2. We report the final test performance of the two resulting networks with the highest SMASH scores on CIFAR-10 and 100 in Table 2.
|
| 139 |
+
|
| 140 |
+
Next, we take our best-found SMASHv2 architecture from CIFAR-100 and train it on STL-10 (Coates et al., 2011) using the recommended 10-fold training splits, and ImageNet32x32 (Chrabaszcz et al., 2017). We compare against Wide ResNet baselines from our own experiments in Tables 3 and those reported by (Chrabaszcz et al., 2017) in 4. Noting the better performance of WRN40-4 on STL-10, we also train a variant of our best architecture with only a single main convolution and 3x3 filters, to comparably reduce the number of parameters.
|
| 141 |
+
|
| 142 |
+
Table 2: Error rates $( \% )$ on CIFAR-10 and CIFAR-100 with standard data augmentation $( + )$
|
| 143 |
+
|
| 144 |
+
<table><tr><td>Method</td><td>Resources</td><td>Depth</td><td>Params</td><td>C10+</td><td>C100+</td></tr><tr><td>FractalNet (Larsson et al.,2017)</td><td></td><td>21</td><td>38.6M</td><td>5.22</td><td>23.30</td></tr><tr><td>with Dropout/Drop-path</td><td></td><td>21</td><td>38.6M</td><td>4.60</td><td>23.73</td></tr><tr><td rowspan="2">Stochastic Depth (Huang et al.,2016)</td><td rowspan="2"></td><td>110</td><td>1.7M</td><td>5.23</td><td>24.58</td></tr><tr><td>1202</td><td>10.2M</td><td>4.91</td><td>-</td></tr><tr><td colspan="2">WideResNet (Zagoruyko and Komodakis.,2016)</td><td>16</td><td>11.0M</td><td>4.81</td><td>22.07</td></tr><tr><td colspan="2">DenseNet-BC (k = 24) (Huang et al.,2017)</td><td>28</td><td>36.5M</td><td>4.17</td><td>20.50</td></tr><tr><td colspan="2">DenseNet-BC (k = 40)</td><td>250</td><td>15.3M</td><td>3.62</td><td>17.60</td></tr><tr><td colspan="2">Shake-Shake (Gastaldi,2017)</td><td>190</td><td>25.6M</td><td>3.46</td><td>17.18</td></tr><tr><td colspan="2">NASwRL(Zoph and Le,2017) 800 GPUs,? days</td><td>26</td><td>26.2M</td><td>2.86</td><td>15.85</td></tr><tr><td colspan="2">NASNet-A(Zoph et al.,2017)</td><td>39</td><td>32.0M</td><td>3.84</td><td>--</td></tr><tr><td colspan="2">MetaQNN (Baker et al., 2017) 10 GPUs,8-10 days</td><td>20</td><td>3.3M</td><td>3.41</td><td></td></tr><tr><td colspan="2">Large-Scale Evolution (Real et al., 2017) 250 GPUs,10 days</td><td>9</td><td>11.18M</td><td>6.92</td><td>27.14</td></tr><tr><td colspan="2"></td><td>-</td><td>5.4M</td><td>5.40</td><td>-</td></tr><tr><td colspan="2">CGP-CNN (Suganuma et al.,2017)</td><td>-</td><td>40.4 M</td><td>-</td><td>23.7</td></tr><tr><td colspan="2">SMASHv1 (ours) 1 GPU,3 days</td><td>-</td><td>1.68M</td><td>5.98</td><td>-</td></tr><tr><td colspan="2">SMASHv2 (ours)</td><td>116 211</td><td>4.6M 16M</td><td>5.53 4.03</td><td>22.07</td></tr></table>
|
| 145 |
+
|
| 146 |
+
Our SMASHv2 nets with 16M parameters achieve final test errors of $2 0 . 6 0 \%$ on CIFAR-100 and $4 . 0 3 \%$ on CIFAR-10. This performance is not quite on par with state-of-the-art hand-designed networks, but compares favorably to other automatic design methods that employ RL (Baker et al., 2017; Zoph and Le, 2017) or evolutionary methods (Real et al., 2017; Suganuma et al., 2017). Our networks outperform Large-Scale Evolution (Real et al., 2017) despite requiring significantly less time to discover (though not starting from trivial models) and 10 orders of magnitude less compute. Our method outperforms MetaQNN (Baker et al., 2017) but lags behind Neural Architecture Search (Zoph and Le, 2017), though both methods require vastly more computation time, and unlike Neural Architecture Search, we do not postprocess our discovered architectures through grid search.
|
| 147 |
+
|
| 148 |
+
Table 3: Error rates $( \% )$ on STL-10.
|
| 149 |
+
|
| 150 |
+
<table><tr><td>Model</td><td>Params</td><td>Error</td></tr><tr><td>WRN-40-4</td><td>8.95M</td><td>35.02 ± 1.14</td></tr><tr><td>WRN-28-10</td><td>36.5M</td><td>36.69 ± 2.06</td></tr><tr><td>SMASHv2</td><td>16.2M</td><td>41.52 ± 2.10</td></tr><tr><td>SMASHv2 (3x3)</td><td>4.38M</td><td>37.76 ± 0.58</td></tr></table>
|
| 151 |
+
|
| 152 |
+
Table 4: Error rates $( \% )$ on Imagenet32x32.
|
| 153 |
+
|
| 154 |
+
<table><tr><td>Model</td><td>Params</td><td>Top-1</td><td>Top-5</td></tr><tr><td>WRN-28-2</td><td>1.6M</td><td>56.92</td><td>30.92</td></tr><tr><td>WRN-28-5</td><td>9.5M</td><td>45.36</td><td>21.36</td></tr><tr><td>WRN-28-10</td><td>37.1M</td><td>40.96</td><td>18.87</td></tr><tr><td>SMASHv2</td><td>16.2M</td><td>38.62</td><td>16.33</td></tr></table>
|
| 155 |
+
|
| 156 |
+
# 5 FUTURE WORK
|
| 157 |
+
|
| 158 |
+
We believe this work opens a number of future research paths. The SMASH method itself has several simplistic elements that might easily be improved upon. During training, we sample each element of the configuration one-by-one, independently, and uniformly among all possible choices. A more intelligent method might employ Bayesian Optimization (Snoek et al., 2015) or HyperBand (Li et al., 2017) to guide the sampling with a principled tradeoff between exploring less-frequently sampled architectures against those which are performing well. One might employ a second parallel worker constantly evaluating validation performance throughout training to provide signal to an external optimizer, and change the optimization objective to simultaneously maximize performance while minimizing computational costs. One could also combine this technique with RL methods (Zoph and Le, 2017) and use a policy gradient to guide the sampling. Another simple technique (which our code nominally supports) is using the HyperNet-generated weights to initialize the resulting network and accelerate training, similar to Net2Net (Chen et al., 2016).
|
| 159 |
+
|
| 160 |
+
Our architecture exploration is fairly limited, and for the most part involves variable layer sizes and skip connections. One could envision a multiscale SMASH that also explores low-level design, varying things such as the activation at each layer, the order of operations, the number of convolutions in a given layer, or whether to use convolution, pooling, or more exotic blocks. One might also search over network-wide design patterns rather than randomly selecting the read-write pattern at each layer. Alternatively, one could consider varying which elements of the network are generated by the HyperNet, which are fixed learned parameters, and one might even make use of fixed unlearned parameters such as Gabor Filters or wavelets.
|
| 161 |
+
|
| 162 |
+
Our memory-bank view also opens up new possibilities for network design. Each layer’s read and write operations could be designed to use a learned softmax attention mechanism, such that the read and write locations are determined dynamically at inference time. We also do not make use of memory in the traditional "memory-augmented" sense, but we could easily add in this capacity by allowing information in the memory banks to persist, rather than zeroing them at every training step. We also only explore one definition of reading and writing, and one might for example change the "write" operation to either add to, overwrite, or perhaps even multiply (a la gated networks (Srivastava et al., 2015)) the existing tensor in a given bank.
|
| 163 |
+
|
| 164 |
+
# 6 CONCLUSION
|
| 165 |
+
|
| 166 |
+
In this work, we explore a technique for accelerating architecture selection by learning a model over network parameters, conditioned on the network’s parametric form. We introduce a flexible scheme for defining network connectivity patterns and generating network weights for highly variable architectures. Our results demonstrate a correlation between performance using suboptimal weights generated by the auxiliary model and performance using fully-trained weights, indicating that we can efficiently explore the architectural design space through this proxy model. Our method achieves competitive, though not state-of-the-art performance on several datasets.
|
| 167 |
+
|
| 168 |
+
# ACKNOWLEDGMENTS
|
| 169 |
+
|
| 170 |
+
We would like to thank Harri Edwards, David Ha, Daniel Angelov, Emmanuel Kahembwe, and Iain Murray for their insight. This research was made possible by grants and support from Renishaw plc and the Edinburgh Centre For Robotics. The work presented herein is also partially funded under the European H2020 Programme BEACONING project, Grant Agreement nr. 687676.
|
| 171 |
+
|
| 172 |
+
# REFERENCES
|
| 173 |
+
|
| 174 |
+
D. Arpit, Y. Zhou, B.U. Kota, and V. Govindaraju. Normalization propagation: A parametric technique for removing internal covariate shift in deep networks. In ICML, 2016.
|
| 175 |
+
|
| 176 |
+
J.L. Ba, J.R. Kiros, and G.E. Hinton. Layer normalization. In NIPS, 2016.
|
| 177 |
+
|
| 178 |
+
B. Baker, O. Gupta, N. Naik, and R. Raskar. Designing neural network architectures using reinforcement learning. In ICLR, 2017.
|
| 179 |
+
|
| 180 |
+
J. Bergstra and Y. Bengio. Random search for hyperparameter optimization. In JMLR, 2012.
|
| 181 |
+
|
| 182 |
+
A. Brock, T. Lim, J.M. Ritchie, and N. Weston. Generative and discriminative voxel modeling with convolutiona neural networks. 3D Deep Learning Workshop at NIPS 2016, 2016.
|
| 183 |
+
|
| 184 |
+
T. Chen, I. Goodfellow, and J. Shiens. Net2net: Accelerating learning via knowledge transfer. In ICLR, 2016.
|
| 185 |
+
|
| 186 |
+
P. Chrabaszcz, I. Loshchilov, and F. Hutter. A downsampled variant of imagennet as an altetrnative to the cifar datasets. arXiv Preprint arXiv: 1707.08819, 2017.
|
| 187 |
+
|
| 188 |
+
A. Coates, H. Lee, and A.Y. Ng. n analysis of single layer networks in unsupervised feature learning. In AISTATS, 2011.
|
| 189 |
+
|
| 190 |
+
M. Denil, B. Shakibi, L. Dinh, M. A. Ranzato, and N. de Freitas. Predicting parameters in deep learning. In NIPS, 2013.
|
| 191 |
+
|
| 192 |
+
D. Floreano, P. Durr, and C. Mattiussi. Neuroevolution: from architectures to learning. In Evolutionary Intelligence, 2008.
|
| 193 |
+
|
| 194 |
+
X. Gastaldi. Shake-shake regularization of 3-branch residual networks. ICLR 2017 Workshop, 2017.
|
| 195 |
+
|
| 196 |
+
D. Ha, A. Dai, and Q. Le. Hypernetworks. In ICLR, 2017.
|
| 197 |
+
|
| 198 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016.
|
| 199 |
+
|
| 200 |
+
G. Huang, Y. Sun, Z. Liu, D. Sedra, and K. Q. Weinberger. Deep networks with stochastic depth. In ECCV, 2016.
|
| 201 |
+
|
| 202 |
+
G. Huang, Z. Liu, K.Q. Weinberger, and L. van der Maaten. Densely connected convolutional networks. In CVPR, 2017.
|
| 203 |
+
|
| 204 |
+
S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
|
| 205 |
+
|
| 206 |
+
X. Jia, B. De Brabandere, T. Tuytelaars, and L. V. Gool. Dynamic filter networks. In NIPS, 2016.
|
| 207 |
+
|
| 208 |
+
D.P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv Preprint arXiv: 1412.6980, 2014.
|
| 209 |
+
|
| 210 |
+
A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images, 2009.
|
| 211 |
+
|
| 212 |
+
G. Larsson, M. Maire, and G. Shakhnarovich. Fractalnet: Ultra-deep neural networks without residuals. In ICLR, 2017.
|
| 213 |
+
|
| 214 |
+
L. Li, K. Jamieson, G. DeSalvo, A. Rostamizadeh, and A. Talwalkar. Hyperband: Bandit-based configuration evaluation for hyperparameter optimization. In ICLR, 2017.
|
| 215 |
+
|
| 216 |
+
I. Loshchilov and F. Hutter. Sgdr: Stochastic gradient descent with warm restarts. In ICLR, 2017.
|
| 217 |
+
|
| 218 |
+
J.F. Miller and P. Thomson. Cartesian genetic programming. In EuroGP, 2000.
|
| 219 |
+
|
| 220 |
+
A. Paszke, S. Gross, and S. Chintala. Pytorch. github.com/pytorch/pytorch, 2017.
|
| 221 |
+
|
| 222 |
+
A. Radford, L. Metz, and S. Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
|
| 223 |
+
E. Real, S. Moore, A. Selle, S. Saxena, Y.L. Suematsu, Q. Le, and A. Kurakin. Large-scale evolution of image classifiers. arXiv Preprint arXiv: 1703.01041, 2017.
|
| 224 |
+
S.-A. Rebuffi, H. Bilen, and A. Vedaldi. Learning multiple visual domains with residual adapters. arXiv Preprint arXiv: 1705.08045, 2017.
|
| 225 |
+
T. Salimans and D.P. Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In NIPS, 2016.
|
| 226 |
+
A.M. Saxe, P.W. Koh, Z. Chen, M. Bhand, B. Suresh, and A.Y. Ng. On random weights and unsupervised feature learning. In ICML, 2011.
|
| 227 |
+
S. Saxena and J. Verbeek. Convolutional neural fabrics. In NIPS, 2016.
|
| 228 |
+
J. Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent networks. In Neural Computation, volume 4, pages 131–139, 1992.
|
| 229 |
+
S. Singh, D. Hoiem, and D. Forsyth. Swapout: Learning an ensemble of deep architectures. In NIPS, 2016.
|
| 230 |
+
J. Snoek, H. Larochelle, and R.P. Adams. Practical bayesian optimization of machinelearning algorithms. In NIPS, 2012.
|
| 231 |
+
J. Snoek, O. Rippel, K. Swersky, R. Kiros, N. Satish, N. Sundaram, M.M.A. Patwary, Prabhat, and R. P. Adams. Practical bayesian optimization of machine learning algorithms. In ICML, 2015.
|
| 232 |
+
N. Srivastava, G.E. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv Preprint arXiv: 1207.0580, 2012.
|
| 233 |
+
R. K. Srivastava, K. Greff, and J. Schmidhuber. Training very deep networks. In NIPS, 2015.
|
| 234 |
+
K.O. Stanley, D.B. D’Ambrosio, and J Gauci. A hypercube-based encoding for evolving large-scale neural networks. In Artificial Life, 15(2):185-212, 2009.
|
| 235 |
+
M. Suganuma, S. Shirakawa, and T. Nagao. A genetic programming approach to designing convolutional neural network architectures. In GECCO, 2017.
|
| 236 |
+
C. Szegedy, S. Ioffe, and V. Vanhoucke. Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv Preprint arXiv: 1602.07261, 2016.
|
| 237 |
+
D. Wierstra, F.J. Gomez, and J. Schmidhuber. Modeling systems with internal state using evolino. In GECCO, 2005.
|
| 238 |
+
Z. Wu, S. Song, A. Khosla, F. Yu, L. Zhang, X. Tang, and J. Xiao. 3d shapenets: A deep representation for volumetric shapes. In CVPR, 2015.
|
| 239 |
+
J. Yosinski, J. Clune, Y. Bengio, and H. Lipson. How transferable are features in deep neural networks? In NIPS, 2014.
|
| 240 |
+
S. Zagoruyko and N. Komodakis. Wide residual networks. arXiv Preprint arXiv: 1605.07146, 2016.
|
| 241 |
+
B. Zoph and Q. Le. Neural architecture search with reinforcement learning. In ICLR, 2017.
|
| 242 |
+
B. Zoph, V. Vasudevan, J. Shlens, and Q. Le. Learning transferable architectures for scalable image recognition. arXiv Preprint arXiv: 1707.07012, 2017.
|
| 243 |
+
|
| 244 |
+
# APPENDIX A: HYPERPARAMETERS
|
| 245 |
+
|
| 246 |
+
We briefly describe they hyperparameters used for the SMASH network in our experiments. The SMASHv1 network has memory banks with $N = 6$ channels each, a maximum of 240 memory banks per block (though on average less than half that number), and a depth compression ratio of $D = 3$ . Each layer’s number of units is uniformly sampled between 6 and 42 (along even multiples of 6), and its dilation factor is uniformly sampled between 1 and 3 (with 1 representing no dilation and 3 representing 2 zeros inserted between each filter). We employ a constant bottlneck ratio of 4 as in (Huang et al., 2017), so the output of the HyperNet-generated 1x1 convolution is always 4 times the number of output units. We constrain the main network to have a maximum budget of 16M parameters, though due to our sampling procedure we rarely sample networks with more than 5M parameters.
|
| 247 |
+
|
| 248 |
+
Our SMASHv2 networks have variable memory bank sizes at each blocks, which we constrain to be multiples of $N = 8$ up to $N _ { m a x } = 6 4$ . We sample filter sizes from [3,5,7], and sample dilation values such that the max spatial extent of a filter in any direction is 9. We sample convolutional groups as factors of the base $N$ value (so [1,2,4,8] for these networks). We put some hand-designed priors on the choice of op configuration (i.e. which convolutions are active), giving slight preference to having all four convolutions active. For SMASHv2 nets we employ a slightly more complex bottleneck ratio: the output of the 1x1 conv is equal to the number of incoming channels while that number is less than twice the number of output units, at which point it is capped (so, a maximum bottleneck ratio of 2).
|
| 249 |
+
|
| 250 |
+
Our HyperNet is a DenseNet, designed ad-hoc to resemble the DenseNets in the original paper (Huang et al., 2017) within the confines of our encoding scheme, and to have round numbers of channels. It consists of a standard (non-bottleneck) Dense Block with $8 \ : 3 \mathrm { x } 3 $ convolutional layers and a growth rate of 10, followed by a 1x1 convolution that divides the number of channels in two, a Dense Block with 10 layers and a growth rate of 10, another compressing 1x1 convolution, a Dense Block with 4 layers and a growth rate of 10, and finally a 1x1 convolution with the designated number of output channels. We use Leaky ReLU with a negative slope of 0.02 as a defense against NaNs, as standard ReLU would obfuscate their presence when we had bugs in our early code revisions; we have not experimented with other activations.
|
| 251 |
+
|
| 252 |
+
# APPENDIX B: ENCODING SCHEME DETAILS
|
| 253 |
+
|
| 254 |
+
We adopt a scheme for the layout of the embedding tensor to facilitate flexibility, compatibility with the convolutional toolbox available in standard libraries, and to make each dimension interpretable. First, we place some constraints on the hyperparameters of the main network: each layer’s number of output units must be divisible by the memory bank size $N$ and be less than $N _ { m a x }$ , and the number of input units must be divisible by $D$ , where $N$ is the number of channels in each memory bank, and $N _ { m a x }$ and $D$ are chosen by the user. Applying these constraints allows us to reduce the size of the embedding vector by $D N ^ { 2 }$ , as we will see shortly.
|
| 255 |
+
|
| 256 |
+
The input to a standard 2D CNN is $x \in \mathbb { R } ^ { B \times C \times H \times L }$ , where $B , C , H$ , and $L$ respectively represent the Batch, Channel, Height, and Length dimensions. Our embedding tensor is $c \in \mathbb { R } ^ { 1 \times ( 2 \bar { M } + d _ { m a x } ) \times ( \bar { N } _ { m a x } / N ) ^ { 2 } \times n _ { c h } / { D } }$ where $M$ is the maximum number of memory banks in a block, $d _ { m a x }$ is the maximum kernel dilation, and $n _ { c h }$ is the sum total of input channels to the 1x1 convs of the main network.
|
| 257 |
+
|
| 258 |
+
The conditional embedding $c$ is a one-hot encoding of the memory banks we read and write at each layer. It has $2 M + d _ { m a x }$ channels, where the first $M$ channels represent which banks are being read from, the next $M$ channels represent which banks are being written to, and the final $d _ { m a x }$ channels are a one-hot encoding of the dilation factor applied to the following 3x3 convolution. The height dimension corresponds to the number of units at each layer, and the length dimension corresponds to the network depth in terms of the total number of input channels. We keep the Batch dimension at 1 so that no signals propagate wholly independently through the HyperNet. Figure 3 shows an example of a small randomly sampled network, its equivalent memory bank representation, and how the read-write pattern is encoded in $c$ . The dilation encoding is omitted in Figure 3 for compactness.
|
| 259 |
+
|
| 260 |
+
Our HyperNet has $4 D N ^ { 2 }$ output channels, such that the output of the HyperNet is $W ~ = ~ H ( c ) ~ \in ~$ $\mathbb { R } ^ { 1 \times 4 D \bar { N } ^ { 2 } \times ( N _ { m a x } / N ) ^ { 2 } \times n _ { c h } / D }$ , which we reshape to $W \in \mathbb { R } ^ { N _ { m a x } \times 4 N _ { m a x } n _ { c h } \times 1 \times 1 }$ . We generate the weights for the entire main network in a single pass, allowing the HyperNet to predict weights at a given layer based on weights at nearby layers. The HyperNet’s receptive field represents how far up or down the network it can look to predict parameters at a given layer. As we traverse the main network, we slice $W$ along its second axis according to the number of incoming channels, and slice along the first axis according to the width of the given layer.
|
| 261 |
+
|
| 262 |
+
# APPENDIX C: EXPERIMENT DETAILS
|
| 263 |
+
|
| 264 |
+
At each training step, we sample a network architecture block-by-block, with a random (but upper bounded) computational budget allocated to each block. For SMASHv1, We use memory banks with $N = 6$ channels each, constrain the number of incoming memory banks to be a multiple of 3 $D = 3$ ), and constrain the number of output units at each layer to be a multiple of 6 (with $N _ { m a x } = 4 2$ ) for compatibility with the memory layout.
|
| 265 |
+
|
| 266 |
+
Our HyperNet is a 26 layer DenseNet, each layer of which comprises a Leaky ReLU activation followed by a 3x3 convolution with simplified WeightNorm and no biases. We do not use bottleneck blocks, dropout, or other normalizers in the HyperNet.
|
| 267 |
+
|
| 268 |
+
When sampling our SMASHv2 networks for evaluation, we first sample 500 random architectures, then select the architecture with the highest score for further evaluation. We begin by perturbing this architecture, with a $5 \%$ chance of any individual element being randomly resampled, and evaluate 100 random perturbations from this base. We then proceed with 100 perturbations in a simple Markov Chain, where we only accept an update if it has a better SMASH score on the validation set.
|
| 269 |
+
|
| 270 |
+
When training a resulting network we make all parameters freely learnable and replace simple WeightNorm with standard BatchNorm. We tentatively experimented with using SMASH generated weights to initialize a resulting net, but found standard initialization strategies to work better, either because of a yet-undiscovered bug in our code, or because of the disparity between the dynamics of the SMASH network using WeightNorm and the resulting network using BatchNorm.
|
| 271 |
+
|
| 272 |
+
In line with our claim of "one-shot" model search, we keep our exploration of the SMASH design space to a minimum. We briefly experimented with three different settings for N and D, and use a simple, ad-hoc DenseNet architecture for the HyperNet, which we do not tune. We investigated the choice of architecture while examining the SMASH correlation, but stick to the original ad-hoc design for all benchmark experiments.
|
| 273 |
+
|
| 274 |
+
When training SMASH, we use Adam (Kingma and Ba, 2014) with the initial parameters proposed by (Radford et al., 2015) When training a resulting network, we use Nesterov Momentum with an initial step size of 0.1 and a momentum value of 0.9. For all tests other than the initial SMASHv1 experiments, we employ a cosine annealing schedule (Loshchilov and Hutter, 2017) without restarts (Gastaldi, 2017).
|
| 275 |
+
|
| 276 |
+
For the CIFAR experiments, we train the SMASH network for 100 epochs and the resulting networks for 300 epochs, using a batch size of 50 on a single GPU. On ModelNet10, we train for 100 epochs. On ImageNet32x32, we train for 55 epochs. On STL-10, we train for 300 epochs when using the full training set, and 500 epochs when using the 10-fold training splits.
|
| 277 |
+
|
| 278 |
+
For ModelNet-10 tests, we employ 3x3x3 filters (rather than fully variable filter size) to enable our network to fit into memory and keep compute costs manageable, hence why our model only has 8M parameters compared to the base 16M parameters.
|
| 279 |
+
|
| 280 |
+
All of our networks are pre-activation, following the order BN-ReLU-Conv if BatchNorm is used, or ReLU-Conv if WeightNorm is used. Our code supports both pre- and post-activation, along with a variety of other options such as which hyperparameters to vary and which to keep constant.
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 5: (a) SMASH correlation with a crippled HyperNet. Error bars represent 1 standard deviation. (b) SMASH scores vs. rank using average scores from three HyperNets with different seeds.
|
| 284 |
+
|
| 285 |
+
While investigating the SMASH correlation, we initially conducted two brief experiments to guide the choice of experiments in the remainder of the investigation. First, experiment, we train a low-budget SMASH network (to permit more rapid testing) with a much smaller HyperNet relative to the main network (though still the standard ratio of generated to freely learned weights). We expect the decreased capacity HyperNet to be less able to learn to generate good weights for the full range of architectures, and for the correlation between SMASH score and true performance to therefore be weak or nonexistent. The results of this study are shown in Figure 5(a), where we arguably observe a breakdown of the correlation. In addition to repeat trials for each resulting net, we also train two additional SMASH networks with different random seeds and compare their predicted performance against the initial SMASH net in figure 5(b), to get a brief sense for how these values can vary across training runs.
|
| 286 |
+
|
| 287 |
+
Next, we train a high-budget SMASH network and drastically increase the ratio of normally learned parameters to HyperNet-generated parameters, such that the majority of the net’s model capacity is in non-generated weights. Under these conditions, the validation errors achieved with SMASH-generated weights are much lower than validation errors achieved with an equivalent SMASH network with the typical ratio, but the resulting top models are not as performant and we found that (in the very limited number of correlation tests we performed) the SMASH score did not correlate with true performance. This highlights two potential pitfalls: first, if the HyperNet is not responsible for enough of the network capacity, then the aggregate generated and learned weights may not be sufficiently well-adapted to each sampled architecture, and therefore too far from optimal to be used in comparing architectures. Second, comparing SMASH scores for two separate SMASH networks can be misleading, as the SMASH score is a function of both the normally learned and generated weights, and a network with more fixed weights may achieve better SMASH scores even if the resulting nets are no better.
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
Figure 6: A simplified version of our best-found SMASHv2 architecture from CIFAR-100 with the highest SMASH score. N represents number of output units, op which convolutions are active, groups convolution groups, ks kernel size, and d dilation.
|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
Figure 7: A simplified version of our best-found SMASHv1 architecture. N represents number of output units, and d represents the dilation factor for the $3 { \bf x } 3$ filter.
|
| 294 |
+
|
| 295 |
+

|
| 296 |
+
Figure 8: An expanded (though still partially simplified) view of the first block of our best SMASHv2 net.
|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
Figure 9: An expanded (though still partially simplified) view of the second block of our best SMASHv1 net.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 10: An expanded (though still partially simplified) view of the final block of our best SMASHv2 net. Floating paths are an artifact of the graph generation process, and are actually attached to the nearest rectangular node.
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
Figure 11: An expanded (though still partially simplified) view of the first block of our best SMASHv1 net. Floating paths are an artifact of the graph generation process, and are actually attached to the nearest rectangular node.
|
| 306 |
+
|
| 307 |
+

|
| 308 |
+
Figure 12: An expanded (though still partially simplified) view of the second block of our best SMASHv1 net. Floating paths are an artifact of the graph generation process, and are actually attached to the nearest rectangular node.
|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
Figure 13: An expanded (though still partially simplified) view of the final block of our best SMASHv1 net. Floating paths are an artifact of the graph generation process, and are actually attached to the nearest rectangular node.
|
parse/train/rydeCEhs-/rydeCEhs-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|