Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/B1e-kxSKDH/B1e-kxSKDH.md +352 -0
- parse/train/B1e-kxSKDH/B1e-kxSKDH_content_list.json +0 -0
- parse/train/B1e-kxSKDH/B1e-kxSKDH_middle.json +0 -0
- parse/train/B1e-kxSKDH/B1e-kxSKDH_model.json +0 -0
- parse/train/BJx040EFvH/BJx040EFvH.md +338 -0
- parse/train/BJx040EFvH/BJx040EFvH_content_list.json +1849 -0
- parse/train/BJx040EFvH/BJx040EFvH_middle.json +0 -0
- parse/train/BJx040EFvH/BJx040EFvH_model.json +0 -0
- parse/train/BkisuzWRW/BkisuzWRW.md +308 -0
- parse/train/BkisuzWRW/BkisuzWRW_content_list.json +1624 -0
- parse/train/BkisuzWRW/BkisuzWRW_middle.json +0 -0
- parse/train/BkisuzWRW/BkisuzWRW_model.json +0 -0
- parse/train/HJlxIJBFDr/HJlxIJBFDr.md +0 -0
- parse/train/HJlxIJBFDr/HJlxIJBFDr_content_list.json +0 -0
- parse/train/HJlxIJBFDr/HJlxIJBFDr_middle.json +0 -0
- parse/train/HJlxIJBFDr/HJlxIJBFDr_model.json +0 -0
- parse/train/HyzdRiR9Y7/HyzdRiR9Y7.md +444 -0
- parse/train/HyzdRiR9Y7/HyzdRiR9Y7_content_list.json +1749 -0
- parse/train/HyzdRiR9Y7/HyzdRiR9Y7_middle.json +0 -0
- parse/train/HyzdRiR9Y7/HyzdRiR9Y7_model.json +0 -0
- parse/train/J64lDCrYGi/J64lDCrYGi.md +250 -0
- parse/train/J64lDCrYGi/J64lDCrYGi_content_list.json +1058 -0
- parse/train/J64lDCrYGi/J64lDCrYGi_middle.json +0 -0
- parse/train/J64lDCrYGi/J64lDCrYGi_model.json +0 -0
- parse/train/JrsfBJtDFdI/JrsfBJtDFdI_model.json +0 -0
- parse/train/SJlDDnVKwS/SJlDDnVKwS.md +440 -0
- parse/train/SJlDDnVKwS/SJlDDnVKwS_content_list.json +2099 -0
- parse/train/SJlDDnVKwS/SJlDDnVKwS_middle.json +0 -0
- parse/train/SJlDDnVKwS/SJlDDnVKwS_model.json +0 -0
- parse/train/WoLQsYU8aZ/WoLQsYU8aZ.md +249 -0
- parse/train/WoLQsYU8aZ/WoLQsYU8aZ_content_list.json +1379 -0
- parse/train/WoLQsYU8aZ/WoLQsYU8aZ_middle.json +0 -0
- parse/train/WoLQsYU8aZ/WoLQsYU8aZ_model.json +0 -0
- parse/train/jlgCDIrAv0_/jlgCDIrAv0_.md +403 -0
- parse/train/jlgCDIrAv0_/jlgCDIrAv0__content_list.json +982 -0
- parse/train/jlgCDIrAv0_/jlgCDIrAv0__middle.json +0 -0
- parse/train/jlgCDIrAv0_/jlgCDIrAv0__model.json +0 -0
- parse/train/rJxcBpNKPr/rJxcBpNKPr.md +321 -0
- parse/train/rJxcBpNKPr/rJxcBpNKPr_content_list.json +1681 -0
- parse/train/rJxcBpNKPr/rJxcBpNKPr_middle.json +0 -0
- parse/train/rJxcBpNKPr/rJxcBpNKPr_model.json +0 -0
- parse/train/rkhxwltab/rkhxwltab.md +120 -0
- parse/train/rkhxwltab/rkhxwltab_content_list.json +577 -0
- parse/train/rkhxwltab/rkhxwltab_middle.json +0 -0
- parse/train/rkhxwltab/rkhxwltab_model.json +0 -0
- parse/train/xLExSzfIDmo/xLExSzfIDmo.md +236 -0
- parse/train/xLExSzfIDmo/xLExSzfIDmo_content_list.json +1080 -0
- parse/train/xLExSzfIDmo/xLExSzfIDmo_middle.json +0 -0
- parse/train/xLExSzfIDmo/xLExSzfIDmo_model.json +0 -0
- vlm/dev/1W8UwXAQubL/0.png +3 -0
parse/train/B1e-kxSKDH/B1e-kxSKDH.md
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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LANNING
|
| 2 |
+
|
| 3 |
+
Jannik Kossen∗1, Karl Stelzner∗2, Marcel Hussing3, Claas Voelcker3 & Kristian Kersting2
|
| 4 |
+
|
| 5 |
+
1Department of Physics and Astronomy, Heidelberg University
|
| 6 |
+
1kossen@stud.uni-heidelberg.de
|
| 7 |
+
2,3Department of Computer Science, TU Darmstadt
|
| 8 |
+
2{stelzner,kersting}@cs.tu-darmstadt.de
|
| 9 |
+
3{marcel.hussing,c.voelcker}@stud.tu-darmstadt.de
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
When humans observe a physical system, they can easily locate objects, understand their interactions, and anticipate future behavior. For computers, however, learning such models from videos in an unsupervised fashion is an unsolved research problem. In this paper, we present STOVE, a novel state-space model for videos, which explicitly reasons about objects and their positions, velocities, and interactions. It is constructed by combining an image model and a dynamics model in compositional manner and improves on previous work by reusing the dynamics model for inference, accelerating and regularizing training. STOVE predicts videos with convincing physical behavior over thousands of timesteps, outperforms previous unsupervised models, and even approaches the performance of supervised baselines. We further demonstrate the strength of our model as a simulator for sample efficient model-based control in a task with heavily interacting objects.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Obtaining structured knowledge about the world from unstructured, noisy sensory input is a key challenge in artificial intelligence. Of particular interest is the problem of identifying objects from visual input and understanding their interactions. One longstanding approach to this is the idea of vision as inverse graphics (Grenander, 1976), which postulates a data generating graphics process and phrases vision as posterior inference in the induced distribution. Despite its intuitive appeal, vision as inference has remained largely intractable in practice due to the high-dimensional and multimodal nature of the inference problem. Recently, however, probabilistic models based on deep neural networks have made promising advances in this area. By composing conditional distributions parameterized by neural networks, highly expressive yet structured models have been built. At the same time, advances in general approximate inference, particularly variational techniques, have put the inference problem for these models within reach (Zhang et al., 2019).
|
| 18 |
+
|
| 19 |
+
Based on these advances, a number of probabilistic models for unsupervised scene understanding in single images have recently been proposed. The structured nature of approaches such as AIR (Eslami et al., 2016), MONet (Burgess et al., 2019), or IODINE (Greff et al., 2019) provides two key advantages over unstructured image models such as variational autoencoders (Kingma & Welling, 2014) or generative adversarial networks (Goodfellow et al., 2014). First, it allows for the specification of inductive biases, such as spatial consistency of objects, which constrain the model and act as regularization. Second, it enables the use of semantically meaningful latent variables, such as object positions, which may be used for downstream reasoning tasks.
|
| 20 |
+
|
| 21 |
+
Building such a structured model for videos instead of individual images is the natural next challenge. Not only could such a model be used in more complex domains, such as reinforcement learning, but the additional redundancy in the data can even simplify and regularize the object detection problem (Kosiorek et al., 2018). To this end, the notion of temporal consistency may be leveraged as an additional inductive bias, guiding the model to desirable behavior. In situations where interactions between objects are prevalent, understanding and explicitly modeling these interactions in an object-centric state-space is valuable for obtaining good predictive models (Watters et al., 2017). Existing works in this area, such as SQAIR (Kosiorek et al., 2018), DDPAE (Hsieh et al., 2018), RNEM (Van Steenkiste et al., 2018), and COBRA (Watters et al., 2019) have explored these concepts, but have not demonstrated realistic long term video predictions on par with supervised approaches to modeling physics.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Overview of STOVE’s architecture. (Center left) At time $t$ , the input image $x _ { t }$ is processed by an LSTM in order to obtain a proposal distribution over object states $q ( \boldsymbol { z } _ { t } \mid \boldsymbol { x } _ { t } )$ . (Top) A separate proposal $q \big ( z _ { t } \mid z _ { t - 1 } \big )$ is obtained by propagating the previous state $z _ { t - 1 }$ using the dynamics model. (Center) The multiplication of both proposal distributions yields the final variational distribution $q ( z _ { t } \mid z _ { t - 1 } , x _ { t } )$ . (Right) We sample $z _ { t }$ from this distribution to evaluate the generative distribution $p ( z _ { t } \mid z _ { t - 1 } ) p ( x _ { t } \mid z _ { t } )$ , where $p \big ( z _ { t } \mid z _ { t - 1 } \big )$ shares means – but not variances – with $q \big ( z _ { t } \mid z _ { t - 1 } \big )$ , and $p ( x _ { t } \mid z _ { t } )$ can be obtained by direct evaluation of $x _ { t }$ in the sum-product networks. Not shown is the dependence on $x _ { t - 1 }$ in the inference routine which allows for the inference of velocities. (Best viewed in color.)
|
| 25 |
+
|
| 26 |
+
To push the limits of unsupervised learning of physical interactions, we propose STOVE, a structured, object-aware video model. With STOVE, we combine image and physics modeling into a single state-space modelwhich explicitly reasons about object positions and velocities. It is trained end-to-end on pure video data in a self-supervised fashion and learns to detect objects, to model their interactions, and to predict future states and observations. To facilitate learning via variational inference in this model, we provide a novel inference architecture, which reuses the learned generative physics model in the variational distribution. As we will demonstrate, our model generates convincing rollouts over hundreds of time steps, outperforms other video modeling approaches, and approaches the performance of the supervised baseline which has access to the ground truth object states.
|
| 27 |
+
|
| 28 |
+
Moving beyond unsupervised learning, we also demonstrate how STOVE can be employed for model-based reinforcement learning (RL). Model-based approaches to RL have long been viewed as a potential remedy to the often prohibitive sample complexity of model-free RL, but obtaining learned models of sufficient quality has proven difficult in practice (Sutton & Barto, 2011). By conditioning state predictions on actions and adding reward predictions to our dynamics predictor, we extend our model to the RL setting, allowing it to be used for search or planning. Our empirical evidence shows that an actor based on Monte-Carlo tree search (MCTS) (Coulom, 2007) on top of our model is competitive to model-free approaches such as Proximal Policy Optimization (PPO) (Schulman et al., 2017), while only requiring a fraction of the samples.
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
Figure 2: (Left) Depiction of the graphical model underlying STOVE. Black arrows denote the generative mechanism and red arrows the inference procedure. The variational distribution $q ( z _ { t } \mid z _ { t - 1 } , x _ { t } , x _ { t - 1 } )$ is formed by combining predictions from the dynamics model $p \big ( z _ { t } \mid z _ { t - 1 } \big )$ and the object detection network $q \dot { ( \boldsymbol { z } _ { t } \mid \boldsymbol { x } _ { t } ) }$ . For the RL domain, our approach is extended by action conditioning and reward prediction. (Right) Components of $z _ { t } ^ { o }$ and corresponding variational distributions. Note that the velocities are estimated based on the change in positions between timesteps, inducing a dependency on $x _ { t - 1 }$ .
|
| 32 |
+
|
| 33 |
+
We proceed by introducing the two main components of STOVE: a structured image model and a dynamics model. We show how to perform joint inference and training, as well as how to extend the model to the RL setting. We then present our experimental evaluation, before touching on further related work and concluding.
|
| 34 |
+
|
| 35 |
+
# 2 STRUCTURED OBJECT-AWARE VIDEO MODELING
|
| 36 |
+
|
| 37 |
+
We approach the task of modeling a video with frames $x _ { 1 } , \ldots , x _ { T }$ from a probabilistic perspective, assuming a sequence of Markovian latent states $z _ { 1 } , \dots , z _ { T }$ , which decompose into the properties of a fixed number $O$ of objects, i.e. $\boldsymbol { z } _ { t } = ( z _ { t } ^ { 1 } , \ldots , z _ { t } ^ { O } )$ . In the spirit of compositionality, we propose to specify and train such a model by explicitly combining a dynamics prediction model $p ( z _ { t + 1 } \mid z _ { t } )$ and a scene model $p ( x _ { t } \mid z _ { t } )$ . This yields a state-space model, which can be trained on pure video data, using variational inference and an approximate posterior distribution $q ( z \mid x )$ . Our model differs from previous work that also follows this methodology, most notably SQAIR and DDPAE, in three major ways:
|
| 38 |
+
|
| 39 |
+
• We propose a more compact architecture for the variational distribution $q ( z \mid x )$ , which reuses the dynamics model $p ( z _ { t + 1 } \mid z _ { t } )$ , and avoids the costly double recurrence across time and objects which was present in previous work. We parameterize the dynamics model using a graph neural network, taking advantage of the decomposed nature of the latent state $z$ .
|
| 40 |
+
• Instead of treating each $z _ { t } ^ { o }$ as an arbitrary latent code, we explicitly reserve the first six slots of this vector for the object’s position, size, and velocity, each in $x , y$ direction, and use this information for the dynamics prediction task. We write $z _ { t } ^ { o } = ( z _ { t , \mathrm { p o s } } ^ { o } , z _ { t , \mathrm { s i z e } } ^ { o } , z _ { t , \mathrm { v e l o } } ^ { o } , z _ { t , \mathrm { l a t e n t } } ^ { o } )$ .
|
| 41 |
+
|
| 42 |
+
We begin by briefly introducing the individual components before discussing how they are combined to form our state-space model. Fig. 1 visualises the computational flow of STOVE’s inference and generative routines, Fig. 2 (left) specifies the underlying graphical model.
|
| 43 |
+
|
| 44 |
+
2.1 OBJECT-BASED MODELING OF IMAGES USING SUM-PRODUCT ATTEND-INFER-REPEAT
|
| 45 |
+
|
| 46 |
+
A variety of object-centric image models have recently been proposed, many of which are derivatives of attend-infer-repeat (AIR) (Eslami et al., 2016). AIR postulates that each image consists of a set of $z _ { \mathrm { w h e r e } } ^ { o } = ( z _ { \mathrm { p o s } } ^ { o } , z _ { \mathrm { s i z e } } ^ { o } )$ h occupies a rectangular region in the image, specified by positional . The visual content of each object is described by a latent code ${ z _ { \mathrm { w h a t } } ^ { o } }$ eters. By decoding zowhat with a neural network and rendering the resulting image patches in the prescribed location, a generative model $p ( x \mid z )$ is obtained. Inference is accomplished using a recurrent neural network, which outputs distributions over the latent objects $q ( z ^ { o } \mid { \bar { x } } )$ , attending to one object at a time. AIR is also capable of handling varying numbers of objects, using an additional set of latent variables.
|
| 47 |
+
|
| 48 |
+
Sum-Product Attend-Infer-Repeat (SuPAIR) (Stelzner et al., 2019) utilizes sum-product networks (SPNs) instead of a decoder network to directly model the distribution over object appearances. The tractable inference capabilities of the SPNs used in SuPAIR allow for the exact and efficient computation of $p ( x \mid z _ { \mathrm { w h e r e } } )$ , effectively integrating out the appearance parameters ${ \mathcal { Z } } _ { \mathrm { W h a t } }$ analytically. This has been shown to drastically accelerate learning, as the reduced inference workload significantly lowers the variance of the variational objective. Since the focus of SuPAIR on interpretable object parameters fits our goal of building a structured video model, we apply it as our image model $p ( x _ { t } \mid z _ { t } )$ . Similarly, we use a recurrent inference network as in SuPAIR to model $q ( z _ { t , \mathrm { w h e r e } } \mid x _ { t } )$ . For details on SuPAIR, we refer to Stelzner et al. (2019).
|
| 49 |
+
|
| 50 |
+
# .2 MODELING PHYSICAL INTERACTIONS USING GRAPH NEURAL NETWORK
|
| 51 |
+
|
| 52 |
+
In order to successfully capture complex dynamics, the state transition distribution $p ( z _ { t + 1 } \mid z _ { t } ) =$ $p ( z _ { t + 1 } ^ { 1 } , \ldots , z _ { t + 1 } ^ { O } \mid z _ { t } ^ { 1 } , \ldots , \overline { { z _ { t } ^ { O } } } )$ . . . , z Ot ) needs to be parameterized using a flexible, non-linear estimator. A critical property that should be maintained in the process is permutation invariance, i.e., the output should not depend on the order in which objects appear in the vector $z _ { t }$ . This type of function is well captured by graph neural networks, cf. (Santoro et al., 2017), which posit that the output should depend on the sum of pairwise interactions between objects. Graph neural networks have been extensively used for modeling physical processes in supervised scenarios (Battaglia et al., 2016; 2018; Sanchez-Gonzalez et al., 2018; Zhou et al., 2018).
|
| 53 |
+
|
| 54 |
+
Following this line of work, we build a dynamics model of the basic form
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
\hat { z } _ { t + 1 , \mathrm { p o s } } ^ { o } , \hat { z } _ { t + 1 , \mathrm { v e l o } } ^ { o } , \hat { z } _ { t + 1 , \mathrm { l a t e n t } } ^ { o } = f \left( g ( z _ { t } ^ { o } ) + \sum _ { o ^ { \prime } \neq o } \alpha ( z _ { t } ^ { o } , z _ { t } ^ { o ^ { \prime } } ) h ( z _ { t } ^ { o } , z _ { t } ^ { o ^ { \prime } } ) \right)
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where $f , g , h , \alpha$ represent functions parameterized by dense neural networks. $\alpha$ is an attention mechconstant prior over the objthen given by the Gaussian $\hat { z } _ { t + 1 , \mathrm { s i z e } } ^ { o } = z _ { t , \mathrm { s i z e } } ^ { o }$ . The fullng a fixed tate transition distribution is. $p ( z _ { t + 1 } ^ { o } \mid z _ { t } ^ { o } ) = \mathcal { N } ( \hat { z } _ { t + 1 } ^ { o } , \sigma )$ $\sigma$
|
| 61 |
+
|
| 62 |
+
# 2.3 JOINT STATE-SPACE MODEL
|
| 63 |
+
|
| 64 |
+
Next, we assemble a state-space model from the two separate models for image modeling and physics prediction. The interface between the two components are the latent positions and velocities. The scene model infers them from images and the physics model propagates them forward in time. Combining the two yields the state-space model $\begin{array} { r } { \bar { p ( x , z ) } = p ( z _ { 0 } ) \bar { p } ( \bar { x _ { 0 } } \mid z _ { 0 } ) \prod _ { t } p ( z _ { t } \mid z _ { t - 1 } ) p ( x _ { t } \mid } \end{array}$ $z _ { t } )$ . To initialize the state, we model $p ( z _ { 0 } , z _ { 1 } )$ using simple uniform and Gaussian distributions. Details are given in Appendix C.3.
|
| 65 |
+
|
| 66 |
+
Our model is trained on given video sequences $x$ by maximizing the evidence lower bound (ELBO) $\mathbb { E } _ { q ( z | x ) } \left[ \log p ( x , z ) - \log \bar { q } ( z \mid x ) \right]$ . This requires formulating a variational distribution $q ( z \mid x )$ to approximate the true posterior $p ( z \mid x )$ . A natural approach is to factorize this distribution over time, i.e. $q ( z \mid x ) = q ( z _ { 0 } \mid x _ { 0 } ) \prod _ { t } q ( z _ { t } \mid z _ { t - 1 } , x _ { t } )$ , resembling a Bayesian filter. The distribution $q ( z _ { 0 } \mid x _ { 0 } )$ is then readily available using the inference network provided by SuPAIR.
|
| 67 |
+
|
| 68 |
+
The formulation of $q ( z _ { t } \mid z _ { t - 1 } , x _ { t } )$ , however, is an important design decision. Previous work, including SQAIR and DDPAE, have chosen to unroll this distribution over objects, introducing a costly double recurrence over time and objects, requiring $T \cdot O$ sequential recurrence steps in total. This increases the variance of the gradient estimate, slows down training, and hampers scalability. Inspired by Becker-Ehmck et al. (2019), we avoid this cost by reusing the dynamics model for the variational distribution. First, we construct the variational distribution $\bar { q } ( z _ { t , \mathrm { p o s } } ^ { o } \mid z _ { t - 1 } ^ { o } )$ by slightly adjusting the dynamics prediction $p \big ( z _ { t , \mathrm { p o s } } ^ { o } \mid z _ { t - 1 } ^ { o } \big )$ , using the same mean values but separately predicted standard deviations. Together with an estimate for the same object by the object detection network $q \big ( z _ { t , \mathrm { p o s } } ^ { o } \ | \ x _ { t } \big )$ , we construct a joint estimate by multiplying the two Gaussians and renormalizing, yielding another Gaussian:
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
Figure 3: Visualisation of object positions from the real environment and predictions made by our model, SQAIR, and the supervised baseline, for the billiards and gravity environment after the first 8 frames were given. Our model achieves realistic behaviour, outperforms the unsupervised baselines, and approaches the quality of the supervised baseline, despite being fully unsupervised. For full effect, the reader is encouraged to watch animated versions of the sequences in repository github.com/jlko/STOVE. (Best viewed in color.)
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
q ( z _ { t , \mathrm { p o s } } ^ { o } \mid z _ { t - 1 } , x _ { t } ) \propto q ( z _ { t , \mathrm { p o s } } ^ { o } \mid z _ { t - 1 } ) \cdot q ( z _ { t , \mathrm { p o s } } ^ { o } \mid x _ { t } ) .
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Intuitively, this results in a distribution which reconciles the two proposals. A double recurrence is avoided since $q ( \boldsymbol { z } _ { t } \ | \ \boldsymbol { x } _ { t } )$ does not depend on previous timesteps and may thus be computed in parallel for all frames. Similarly, $q \big ( z _ { t } \mid z _ { t - 1 } \big )$ may be computed in parallel for all objects, leading to only $T + O$ sequential recurrence steps total. An additional benefit of this approach is that the information learned by the dynamics network is reused for inference — if $q ( z _ { t } \mid x _ { t } , z _ { t - 1 } )$ were just another neural network, it would have to essentially relearn the environment’s dynamics from scratch, resulting in a waste of parameters and training time. A further consequence is that the image likelihood $p ( x _ { t } \mid z _ { t } )$ is backpropagated through the dynamics model, which has been shown to be beneficial for efficient training (Karl et al., 2017; Becker-Ehmck et al., 2019). The same procedure is applied to reconcile velocity estimates from the two networks, where for the image model, velocities $z _ { t , \mathrm { v e l o } } ^ { o }$ are estimated from position differences between two consecutive timesteps.o The object scales $z _ { t , \mathrm { s c a l e } } ^ { o }$ are inferred solely from the image model. The latent states increase the modelling capacity of the dynamics network, are initialised to zero-mean Gaussians, and do not interact with the image model. This then gives the inference procedure for the full latent state $z _ { t } ^ { o } = ( z _ { t , \mathrm { p o s } } ^ { o } , z _ { t , \mathrm { s i z e } } ^ { o } , z _ { t , \mathrm { v e l o } } ^ { o } , z _ { t , \mathrm { l a t e n t } } ^ { o } )$ , as illustrated in Fig. 2 (right).
|
| 78 |
+
|
| 79 |
+
Despite its benefits, this technique has thus far only been used in environments with a single object or with known state information. A challenge when applying it in a multi-object video setting is to match up the proposals of the two networks. Since the object detection RNN outputs proposals for object locations in an indeterminate order, it is not immediately clear how to find the corresponding proposals from the dynamics network. We have, however, found that a simple matching procedure results in good performance: For each $z _ { t }$ , we assign the object order that results in the minimal difference of $| | z _ { t , \mathrm { p o s } } - z _ { t - 1 , \mathrm { p o s } } | |$ , where $| | \cdot | |$ is the Euclidean norm. The resulting Euclidean bipartite matching problem can be solved in cubic time using the classic Hungarian algorithm (Kuhn, 1955).
|
| 80 |
+
|
| 81 |
+
# 2.4 CONDITIONING ON ACTIONS
|
| 82 |
+
|
| 83 |
+
In reinforcement learning, an agent interacts with the environment sequentially through actions $a _ { t }$ to optimize a cumulative reward $r$ . To extend STOVE to operate in this setting, we make two changes, yielding a distribution $p ( z _ { t } , r _ { t } \mid z _ { t - 1 } , a _ { t - 1 } )$ .
|
| 84 |
+
|
| 85 |
+
First, we condition the dynamics model on actions $a _ { t }$ , enabling a conditional prediction based on both state and action. To keep the model invariant to the order of the input objects, the action information is concatenated to each object state $z _ { t - 1 } ^ { o }$ before they are fed into the dynamics model. The model has to learn on its own which of the objects in the scene are influenced by the actions. To facilitate this, we have found it helpful to also concatenate appearance information from the extracted object patches to the object state. While this patch-wise code could, in general, be obtained using some neural feature extractor, we achieved satisfactory performance by simply using the mean values per color channel when given colored input.
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
Figure 4: Mean test set performance of our model compared to baselines. Our approach (STOVE) clearly outperforms all unsupervised baselines and is almost indistinguishable from the supervised dynamics model on the billiards task. (Top) Mean squared errors over all pixels in the video prediction setting (the lower, the better). (Bottom) Mean Euclidean distances between predicted and true positions (the lower, the better). All position and pixel values are in $[ 0 , 1 ]$ . In all experiments, the first eight frames are given, all remaining frames are then conditionally generated. The shading indicates the max and min values over multiple training runs with identical hyperparameters. (Best viewed in color.)
|
| 89 |
+
|
| 90 |
+
The second change to the model is the addition of reward prediction. In many RL environments, rewards depend on the interactions between objects. Therefore, the dynamics prediction architecture, presented in Eq. 1, is well suited to also predict rewards. We choose to share the same encoding of object interactions between reward and dynamics prediction and simply apply two different output networks $f$ in Eq. 1) to obtain the dynamics and reward predictions. The total model is again optimized using the ELBO, this time including the reward likelihood $p ( r _ { t } \mid z _ { t - 1 } , a _ { t - 1 } )$ .
|
| 91 |
+
|
| 92 |
+
# 3 EXPERIMENTAL EVIDENCE
|
| 93 |
+
|
| 94 |
+
In order to evaluate our model, we compare it to baselines in three different settings: First, pure video prediction, where the goal is to predict future frames of a video given previous ones. Second, the prediction of future object positions, which may be relevant for downstream tasks. Third, we extend one of the video datasets to a reinforcement learning task and investigate how our physics model may be utilized for sample-efficient, model-based reinforcement learning. With this paper, we also release a PyTorch implementation of STOVE.1
|
| 95 |
+
|
| 96 |
+
# 3.1 VIDEO AND STATE MODELING
|
| 97 |
+
|
| 98 |
+
Inspired by Watters et al. (2017), we consider grayscale videos of objects moving according to physical laws. In particular, we opt for the commonly used bouncing billiards balls dataset, as well as a dataset of gravitationally interacting balls. For further details on the datasets, see Appendix D. When trained using a single GTX 1080 Ti, STOVE converges after about 20 hours. As baselines, we compare to VRNNs (Chung et al., 2015), SQAIR (Kosiorek et al., 2018), and DDPAE (Hsieh et al., 2018). To allow for a fair comparison, we fix the number of objects predicted by SQAIR and DDPAE to the correct amount. Furthermore, we compare to a supervised baseline: Here, we consider the ground truth positions and velocities to be fully observed, and train our dynamics model on them, resembling the setting of Battaglia et al. (2016). Since our model needs to infer object states from pixels, this baseline provides an upper bound on the predictive performance we can hope to achieve with our model. In turn, the size of the performance gap between the two is a good indicator of the quality of our state-space model. We also report the results obtained by combining our image model with a simple linear physics model, which linearly extrapolates the objects’ trajectories. Since VRNN does not reason about object positions, we only evaluate it on the video prediction task. Similarly, the supervised baseline does not reason about images and is considered for the position prediction task only. For more information on the baselines, see Appendix E.
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
Figure 5: Comparison of the kinetic energies of the rollouts predicted by the models, computed based on position differences between successive states. Only STOVE’s predictions reflect the conservation of total kinetic energy in the billiards data set. This is a quantitive measure of the convincing physical behavior in the rollout videos. (Left, center) Averages are over 300 trajectories from the test set. Shaded regions indicate one standard deviation. STOVE correctly predicts trajectories with constant energy, whereas SQAIR and DDPAE quickly diverge. (Right) Rolling average over a single, extremely long-term run. We conjecture that STOVE predicts physical behavior indefinitely. (Best viewed in color.)
|
| 102 |
+
|
| 103 |
+
Fig. 4 depicts the reconstruction and prediction errors of the various models: Each model is given eight frames of video from the test set as input, which it then reconstructs. Conditioned on this input, the models predict the object positions or resulting video frames for the following 92 timesteps. The predictions are evaluated on ground truth data by computing the mean squared error between pixels and the Euclidean distance between positions based on the best available object matching. We outperform all baselines on both the state and the image prediction task by a large margin. Additionally, we perform strikingly close to the supervised model.
|
| 104 |
+
|
| 105 |
+
For the gravitational data, the prediction task appears easier, as all models achieve lower errors than on the billiards task. However, in this regime of easy prediction, precise access to the object states becomes more important, which is likely the reason why the gap between our approach and the supervised baseline is slightly more pronounced. Despite this, STOVE produces high-quality rollouts and outperforms the unsupervised baselines.
|
| 106 |
+
|
| 107 |
+
Table 1 underlines these results with concrete numbers. We also report results for three ablations of STOVE, which are obtained by (a) training a separate dynamics networks for inference with the same graph neural network architecture, instead of sharing weights with the generative model as argued for in section 2.3, (b) no longer explicitly modelling velocities ${ \mathit { z } } _ { \mathrm { v e l o } }$ in the state, and (c) removing the latent state variables $z _ { \mathrm { l a t e n t } }$ . The ablation study shows that each of these components contributes positively to the performance of STOVE. See Appendix F for a comparison of training curves for the ablations.
|
| 108 |
+
|
| 109 |
+
Fig. 3 illustrates predictions on future object positions made by the models, after each of them was given eight consecutive frames from the datasets. Visually, we find that STOVE predicts physically plausible sequences over long timeframes. This desirable property is not captured by the rollout error: Due to the chaotic nature of our environments, infinitesimally close initial states diverge quickly and a model which perfectly follows the ground truth states cannot exist. After this divergence has occurred, the rollout error no longer provides any information on the quality of the learned physical behavior. We therefore turn to investigating the total kinetic energy of the predicted billiards trajectories. Since the collisions in the training set are fully elastic and frictional forces are not present, the initial energy should be conserved. Fig. 5 shows the kinetic energies of trajectories predicted by STOVE and its baselines, computed based on the position differences between consecutive timesteps. While the energies of SQAIR and DDPAE diverge quickly in less than 100 frames, the mean energies of STOVE’s rollouts stay constant and are good estimates of the true energy. We have confirmed that STOVE predicts constant energies – and therefore displays realistic looking behavior – for at least 100 000 steps. This is in stark contrast to the baselines, which predict teleporting, stopping, or overlapping objects after less than 100 frames. In the billiards dataset used by us and the literature, the total energy is the same for all sequences in the training set. See Appendix B for a discussion of how STOVE handles diverse energies.
|
| 110 |
+
|
| 111 |
+
Table 1: Predictive performance of our approach, the baselines, and ablations (lower is better, best unsupervised values are bold). STOVE outperforms all unsupervised baselines and is almost indistinguishable from the supervised model on the billiards task. The values are computed by summing the prediction errors presented in Fig. 4 in the time interval $t \in$ [9, 18], i.e., the first ten predicted timesteps. In parentheses, standard deviations across multiple training runs are given.
|
| 112 |
+
|
| 113 |
+
<table><tr><td></td><td>Billiards (pixels)</td><td>Billiards (positions)</td><td>Gravity (pixels)</td><td>Gravity (positions)</td></tr><tr><td>STOVE (ours)</td><td>0.240(14)</td><td>0.418(20)</td><td>0.040(3)</td><td>0.142(7)</td></tr><tr><td>VRNN</td><td>0.526(14)</td><td></td><td>0.055(12)</td><td></td></tr><tr><td>SQAIR</td><td>0.591</td><td>0.804</td><td>0.070</td><td>0.194</td></tr><tr><td>DDPAE</td><td>0.405</td><td>0.482</td><td>0.120</td><td>0.298</td></tr><tr><td>Linear</td><td>0.844(5)</td><td>1.348(15)</td><td>0.196(2)</td><td>0.493(4)</td></tr><tr><td>Supervised</td><td></td><td>0.232(37)</td><td>一</td><td>0.013(2)</td></tr><tr><td>Abl: Double Dynamics</td><td>0.262</td><td>0.458</td><td>0.042</td><td>0.154</td></tr><tr><td>Abl: No Velocity</td><td>0.272</td><td>0.460</td><td>0.053</td><td>0.174</td></tr><tr><td>Abl: No Latent</td><td>0.338</td><td>0.050</td><td>0.089</td><td>0.235</td></tr></table>
|
| 114 |
+
|
| 115 |
+
# 3.2 MODEL-BASED CONTROL
|
| 116 |
+
|
| 117 |
+
To explore the usefulness of STOVE for reinforcement learning, we extend the billiards dataset into a reinforcement learning task. Now, the agent controls one of the balls using nine actions, which correspond to moving in one of the eight (inter)cardinal directions and staying at rest. The goal is to avoid collisions with the other balls, which elastically bounce off of each other, the walls, and the controlled ball. A negative reward of $- 1$ is given whenever the controlled ball collides with one of the others. To allow the models to recognize the object controlled by the agents we now provide it with RGB input in which the balls are colored differently. Starting with a random policy, we iteratively gather observations from the environment, i. e. sequences of images, actions, and rewards. Using these, we train our model as described in Sec. 2.4. To obtain a policy based on our world model, we use Monte-Carlo tree search (MCTS), leveraging our model as a simulator for planning. Using this policy, we gather more observations and apply them to refine the world model. As an upper bound on the performance achievable in this manner, we report the results obtained by MCTS when the real environment is used for planning. As a model-free baseline, we consider PPO (Schulman et al., 2017), which is a state-of-the-art algorithm on comparable domains such as Atari games. To explore the effect of the availability of state information, we also run PPO on a version of the environment in which, instead of images, the ground-truth object positions and velocities are observed directly.
|
| 118 |
+
|
| 119 |
+
Learning curves for each of the agents are given in Fig. 6 (left), reported at intervals of 10 000 samples taken from the environment, up to a total of 130 000. For our model, we collect the first 50 000 samples using a random policy to provide an initial training set. After that, the described training loop is used, iterating between collecting 10 000 observations using an MCTS-based policy and refining the model using examples sampled from the pool of previously seen observations. After 130 000 samples, PPO has not yet seen enough samples to converge, whereas our model quickly learns to meaningfully model the environment and thus produces a better policy at this stage. Even when PPO is trained on ground truth states, MCTS based on STOVE remains comparable.
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+
Figure 6: Comparison of all models on sample efficiency and final performance. (Left) Mean cumulative reward over 100 steps on the environment, averaged over 100 environments, using the specified policy. The shaded regions correspond to one-tenth of a standard deviation. In addition to the training curves, two constant baselines are shown, one representing a random policy and one corresponding to the MCTS based policy when using the real environment as a simulator. (Right) Final performance of all approaches, after training each model to convergence. The shaded region corresponds to one standard deviation. (Best viewed in color.)
|
| 123 |
+
|
| 124 |
+
After training each model to convergence, the final performance of all approaches is reported in Fig. 6 (right). In this case, PPO achieves slightly better results, however it only converges after training for approximately $4 0 0 0 0 0 0$ steps, while our approach only uses 130 000 samples. After around $1 5 0 0 0 0 0$ steps, PPO does eventually surpass the performance of STOVE-based MCTS. Additionally, we find that MCTS on STOVE yields almost the same performance as on the real environment, indicating that it can be used to anticipate and avoid collisions accurately.
|
| 125 |
+
|
| 126 |
+
# 4 RELATED WORK
|
| 127 |
+
|
| 128 |
+
Multiple lines of work with the goal of video modeling or prediction have emerged recently. Prominently, the supervised modeling of physical interactions from videos has been investigated by Fragkiadaki et al. (2015), who train a model to play billiards with a single ball. Similarly, graph neural networks have been trained in a supervised fashion to predict the dynamics of objects from images (Watters et al., 2017; Sanchez-Gonzalez et al., 2018; Sun et al., 2018; 2019) or ground truth states (Kipf et al., 2018; Wang et al., 2018; Chang et al., 2017). A number of works learn object interactions in games in terms of rules instead of continuous dynamics (Guzdial et al., 2017; Ersen & Sariel, 2014). Janner et al. (2019) show successful planning based on learned interactions, but assume access to image segmentations. Several unsupervised approaches address the problem by fitting the parameters of a physics engine to data (Jaques et al., 2019; Wu et al., 2016; 2015). This necessitates specifying in advance which physical laws govern the observed interactions. In the fully unsupervised setting, mainly unstructured variational approaches have been explored (Babaeizadeh et al., 2017; Chung et al., 2015; Krishnan et al., 2015). However, without the explicit notion of objects, their performance in scenarios with interacting objects remains limited. Nevertheless, unstructured video models have recently been applied to model-based RL and have been shown to improve sample efficiency when used as a simulator for the real environment (Oh et al., 2015; Kaiser et al., 2020).
|
| 129 |
+
|
| 130 |
+
Only a small number of works incorporate objects into unsupervised video models. Xu et al. (2019) and Ehrhardt et al. (2018) take non-probabilistic autoencoding approaches to discovering objects in real-world videos. COBRA (Watters et al., 2019) represents a model-based RL approach based on MONet, but is restricted to environments with non-interacting objects and only uses one-step search to build its policy. Closest to STOVE are a small number of probabilistic models, namely SQAIR (Kosiorek et al., 2018), R-NEM (Van Steenkiste et al., 2018; Greff et al., 2017), and DDPAE (Hsieh et al., 2018). R-NEM learns a mixture model via expectation-maximization unrolled through time and handles interactions between objects in a factorized fashion. However, it lacks an explicitly structured latent space, and requires noise in the input data to avoid local minima. Both DDPAE and SQAIR extend the AIR approach to work on videos using standard recurrent architectures. As discussed, this introduces a double recurrence over objects and time, which is detrimental for performance. However, SQAIR is capable of handling a varying number of objects, which is not something we consider in this paper.
|
| 131 |
+
|
| 132 |
+
# 5 CONCLUSION
|
| 133 |
+
|
| 134 |
+
We introduced STOVE, a structured, object-aware model for unsupervised video modeling and planning. It combines recent advances in unsupervised image modeling and physics prediction into a single compositional state-space model. The resulting joint model explicitly reasons about object positions and velocities, and is capable of generating highly accurate video predictions in domains featuring complicated non-linear interactions between objects. As our experimental evaluation shows, it outperforms previous unsupervised approaches and even approaches the performance and visual quality of a supervised model.
|
| 135 |
+
|
| 136 |
+
Additionally, we presented an extension of the video learning framework to the RL setting. Our experiments demonstrate that our model may be utilized for sample-efficient model-based control in a visual domain, making headway towards a long standing goal of the model-based RL community. In particular, STOVE yields good performance with more than one order of magnitude fewer samples compared to the model-free baseline, even when paired with a relatively simple planning algorithm like MCTS.
|
| 137 |
+
|
| 138 |
+
At the same time, STOVE also makes several assumptions for the sake of simplicity. Relaxing them provides interesting avenues for future research. First, we assume a fixed number of objects, which may be avoided by performing dynamic object propagation and discovery like in SQAIR. Second, we have inherited the assumption of rectangular object masks from AIR. Applying a more flexible model such as MONet (Burgess et al., 2019) or GENESIS (Engelcke et al., 2020) may alleviate this, but also poses additional challenges, especially regarding the explicit modeling of movement. Finally, the availability of high-quality learned state-space models enables the use of more sophisticated planning algorithms in visual domains (Chua et al., 2018). In particular, by combining planning with policy and value networks, model-free and model-based RL may be integrated into a comprehensive system (Buckman et al., 2018).
|
| 139 |
+
|
| 140 |
+
Acknowledgments. The authors thank Adam Kosiorek for his assistance with the SQAIR experiments and Emilien Dupont for helpful discussions about conservation laws in dynamics models. KK acknowledges the support of the Rhine-Main universities’ network for “Deep Continuous-Discrete Machine Learning” (DeCoDeML).
|
| 141 |
+
|
| 142 |
+
# REFERENCES
|
| 143 |
+
|
| 144 |
+
Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. In Proceedings of ICLR, 2017.
|
| 145 |
+
|
| 146 |
+
Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In Proceedings of NeurIPS, pp. 4502–4510, 2016.
|
| 147 |
+
|
| 148 |
+
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.
|
| 149 |
+
|
| 150 |
+
Philip Becker-Ehmck, Jan Peters, and Patrick Van Der Smagt. Switching linear dynamics for variational bayes filtering. In Proceedings of ICML, 2019.
|
| 151 |
+
|
| 152 |
+
Jacob Buckman, Danijar Hafner, George Tucker, Eugene Brevdo, and Honglak Lee. Sampleefficient reinforcement learning with stochastic ensemble value expansion. In Proceedings of NeurIPS, pp. 8224–8234, 2018.
|
| 153 |
+
|
| 154 |
+
Christopher P Burgess, Loic Matthey, Nicholas Watters, Rishabh Kabra, Irina Higgins, Matt Botvinick, and Alexander Lerchner. Monet: Unsupervised scene decomposition and representation. arXiv preprint arXiv:1901.11390, 2019.
|
| 155 |
+
|
| 156 |
+
Michael Chang, Tomer Ullman, Antonio Torralba, and Joshua B Tenenbaum. A compositional object-based approach to learning physical dynamics. In Proceedings of ICLR, 2017.
|
| 157 |
+
|
| 158 |
+
Kurtland Chua, Roberto Calandra, Rowan McAllister, and Sergey Levine. Deep reinforcement learning in a handful of trials using probabilistic dynamics models. In Proceedings of NeurIPS, pp. 4754–4765, 2018.
|
| 159 |
+
|
| 160 |
+
Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Proceedings of NeurIPS, pp. 2980– 2988, 2015.
|
| 161 |
+
|
| 162 |
+
Remi Coulom. Efficient selectivity and backup operators in monte-carlo tree search. In ´ Computers and Games, pp. 72–83. Springer Berlin Heidelberg, 2007.
|
| 163 |
+
|
| 164 |
+
Sebastien Ehrhardt, Aron Monszpart, Niloy Mitra, and Andrea Vedaldi. Unsupervised intuitive physics from visual observations. In Proceedings of ACCV, pp. 700–716, 2018.
|
| 165 |
+
|
| 166 |
+
Martin Engelcke, Adam R. Kosiorek, Oiwi Parker Jones, and Ingmar Posner. Genesis: Generative scene inference and sampling with object-centric latent representations. In Proceedings of ICLR, 2020.
|
| 167 |
+
|
| 168 |
+
Mustafa Ersen and Sanem Sariel. Learning behaviors of and interactions among objects through spatio–temporal reasoning. IEEE TCIAIG, 7(1):75–87, 2014.
|
| 169 |
+
|
| 170 |
+
SM Ali Eslami, Nicolas Heess, Theophane Weber, Yuval Tassa, David Szepesvari, Geoffrey E Hinton, et al. Attend, infer, repeat: Fast scene understanding with generative models. In Proceedings of NeurIPS, pp. 3225–3233, 2016.
|
| 171 |
+
|
| 172 |
+
Katerina Fragkiadaki, Pulkit Agrawal, Sergey Levine, and Jitendra Malik. Learning visual predictive models of physics for playing billiards. arXiv preprint arXiv:1511.07404, 2015.
|
| 173 |
+
|
| 174 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Proceedings of NeurIPS, pp. 2672–2680, 2014.
|
| 175 |
+
|
| 176 |
+
Klaus Greff, Sjoerd van Steenkiste, and Jurgen Schmidhuber. Neural expectation maximization. In ¨ Advances in Neural Information Processing Systems, pp. 6691–6701, 2017.
|
| 177 |
+
|
| 178 |
+
Klaus Greff, Raphael Lopez Kaufmann, Rishab Kabra, Nick Watters, Chris Burgess, Daniel Zoran, ¨ Loic Matthey, Matthew Botvinick, and Alexander Lerchner. Multi-object representation learning with iterative variational inference. In Proceedings of ICML, 2019.
|
| 179 |
+
|
| 180 |
+
U. Grenander. Lectures in Pattern Theory: Vol. 2 Pattern Analysis. Springer-Verlag, 1976.
|
| 181 |
+
|
| 182 |
+
Matthew Guzdial, Boyang Li, and Mark O Riedl. Game engine learning from video. In Proceedings of IJCAI, 2017.
|
| 183 |
+
|
| 184 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
|
| 185 |
+
|
| 186 |
+
Jun-Ting Hsieh, Bingbin Liu, De-An Huang, Li F Fei-Fei, and Juan Carlos Niebles. Learning to decompose and disentangle representations for video prediction. In Proceedings of NeurIPS, pp. 517–526, 2018.
|
| 187 |
+
|
| 188 |
+
Michael Janner, Sergey Levine, William T. Freeman, Joshua B. Tenenbaum, Chelsea Finn, and Jiajun Wu. Reasoning about physical interactions with object-centric models. In Proceedings of ICLR, 2019.
|
| 189 |
+
|
| 190 |
+
Miguel Jaques, Michael Burke, and Timothy Hospedales. Physics-as-inverse-graphics: Joint unsupervised learning of objects and physics from video. arXiv preprint arXiv:1905.11169, 2019.
|
| 191 |
+
|
| 192 |
+
Łukasz Kaiser, Mohammad Babaeizadeh, Piotr Miłos, Błazej Osi ˙ nski, Roy H Campbell, Konrad ´ Czechowski, Dumitru Erhan, Chelsea Finn, Piotr Kozakowski, Sergey Levine, Afroz Mohiuddin, Ryan Sepassi, George Tucker, and Henryk Michalewski. Model based reinforcement learning for atari. In Proceedings of ICLR, 2020.
|
| 193 |
+
|
| 194 |
+
Maximilian Karl, Maximilian Soelch, Justin Bayer, and Patrick van der Smagt. Deep Variational Bayes Filters: Unsupervised Learning of State Space Models from Raw Data. In Proceedings of ICLR, 2017.
|
| 195 |
+
|
| 196 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of ICLR, 2015.
|
| 197 |
+
|
| 198 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of ICLR, 2014.
|
| 199 |
+
|
| 200 |
+
Thomas Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard Zemel. Neural relational inference for interacting systems. In Proceedings of ICML, 2018.
|
| 201 |
+
|
| 202 |
+
Adam Kosiorek, Hyunjik Kim, Yee Whye Teh, and Ingmar Posner. Sequential attend, infer, repeat: Generative modelling of moving objects. In Proceedings of NeurIPS, pp. 8606–8616, 2018.
|
| 203 |
+
|
| 204 |
+
Rahul G. Krishnan, Uri Shalit, and David Sontag. Deep kalman filters. arXiv preprint arXiv:1812.08434, 2015.
|
| 205 |
+
|
| 206 |
+
Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83–97, 1955.
|
| 207 |
+
|
| 208 |
+
Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In Proceedings of NeurIPS, pp. 2845–2853, 2015.
|
| 209 |
+
|
| 210 |
+
Alvaro Sanchez-Gonzalez, Nicolas Heess, Jost Tobias Springenberg, Josh Merel, Martin Riedmiller, Raia Hadsell, and Peter Battaglia. Graph networks as learnable physics engines for inference and control. In Proceedings of ICML, 2018.
|
| 211 |
+
|
| 212 |
+
Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. In Proceedings of NeurIPS, pp. 4967–4976, 2017.
|
| 213 |
+
|
| 214 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 215 |
+
|
| 216 |
+
Karl Stelzner, Robert Peharz, and Kristian Kersting. Faster attend-infer-repeat with tractable probabilistic models. In Proceedings of ICML, pp. 5966–5975, 2019.
|
| 217 |
+
|
| 218 |
+
Chen Sun, Abhinav Shrivastava, Carl Vondrick, Kevin Murphy, Rahul Sukthankar, and Cordelia Schmid. Actor-centric relation network. In Proceedings of ECCV, 2018.
|
| 219 |
+
|
| 220 |
+
Chen Sun, Abhinav Shrivastava, Carl Vondrick, Rahul Sukthankar, Kevin Murphy, and Cordelia Schmid. Relational action forecasting. In Proceedings of CVPR, 2019.
|
| 221 |
+
|
| 222 |
+
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT Press, Cambridge, 2011.
|
| 223 |
+
|
| 224 |
+
Sjoerd Van Steenkiste, Michael Chang, Klaus Greff, and Jurgen Schmidhuber. Relational neural ex- ¨ pectation maximization: Unsupervised discovery of objects and their interactions. In Proceedings of ICLR, 2018.
|
| 225 |
+
|
| 226 |
+
Antonio Vergari, Robert Peharz, Nicola Di Mauro, Alejandro Molina, Kristian Kersting, and Floriana Esposito. Sum-product autoencoding: Encoding and decoding representations using sumproduct networks. In Proceedings of AAAI, 2018.
|
| 227 |
+
|
| 228 |
+
Tingwu Wang, Renjie Liao, Jimmy Ba, and Sanja Fidler. Nervenet: Learning structured policy with graph neural networks. In Proceedings of ICLR, 2018.
|
| 229 |
+
|
| 230 |
+
Nicholas Watters, Daniel Zoran, Theophane Weber, Peter Battaglia, Razvan Pascanu, and Andrea Tacchetti. Visual interaction networks: Learning a physics simulator from video. In Proceedings of NeurIPS, pp. 4539–4547, 2017.
|
| 231 |
+
Nicholas Watters, Loic Matthey, Matko Bosnjak, Christopher P Burgess, and Alexander Lerchner. Cobra: Data-efficient model-based rl through unsupervised object discovery and curiosity-driven exploration. arXiv preprint arXiv:1905.09275, 2019.
|
| 232 |
+
Jiajun Wu, Ilker Yildirim, Joseph J Lim, Bill Freeman, and Josh Tenenbaum. Galileo: Perceiving physical object properties by integrating a physics engine with deep learning. In Proceedings of NeurIPS, pp. 127–135, 2015.
|
| 233 |
+
Jiajun Wu, Joseph J Lim, Hongyi Zhang, Joshua B Tenenbaum, and William T Freeman. Physics 101: Learning physical object properties from unlabeled videos. In Proceedings of BMVC, 2016.
|
| 234 |
+
Zhenjia Xu, Zhijian Liu, Chen Sun, Kevin Murphy, William T. Freeman, Joshua B. Tenenbaum, and Jiajun Wu. Modeling parts, structure, and system dynamics via predictive learning. In Proceedings of ICLR, 2019.
|
| 235 |
+
Cheng Zhang, Judith Butepage, Hedvig Kjellstr ¨ om, and Stephan Mandt. Advances in variational ¨ inference. IEEE TPAMI, 2019.
|
| 236 |
+
Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, and Maosong Sun. Graph neural networks: A review of methods and applications. arXiv preprint arXiv:1812.08434, 2018.
|
| 237 |
+
|
| 238 |
+
# A RECONSTRUCTIONS: SPRITES DATA
|
| 239 |
+
|
| 240 |
+
SuPAIR does not need a latent description of the objects’ appearances. Nevertheless, object reconstructions can be obtained by using a variant of approximate MPE (most probable explanation) in the sum-product networks as proposed by Vergari et al. (2018). We follow the AIR approach and reconstruct each object separately and paste it into the canvas using spatial transformers. Unlike AIR, SuPAIR explicitly models the background using a separate background SPN. A reconstruction of the background is also obtained using MPE.
|
| 241 |
+
|
| 242 |
+
To demonstrate the capabilities of our image model, we also trained our model on a variant of the gravity data in which the round balls were replaced by a random selection of four different sprites of the same size. Fig. 7 shows the reconstructions obtained from SuPAIR when trained on these more complex object shapes.
|
| 243 |
+
|
| 244 |
+
# B STUDY OF ENERGIES
|
| 245 |
+
|
| 246 |
+
As discussed in Sec. 3.1, the energies of the ground truth data were constant for all sequences during the training of STOVE. However, initial velocities are drawn from a random normal distribution. This is the standard procedure of generating the bouncing balls data set as used by previous publications. Under these circumstances, STOVE does indeed learn to discover and replicate the total energies of the system, while SQAIR and DDPAE do not. Even if trained on constant energy data, STOVE does to some extent generalise to unseen energies. Observed velocities and therefore total energies are highly correlated with the true total kinetic energies of the sequences. However as prediction starts, STOVE quickly regresses to the energy of the training set, see Fig. 8 (left). If trained on a dataset of diverse total energies, the performance of modelling sequences of different energies increases, see Fig. 8 (right). Rollouts now initially represent the true energy of the observed sequence, although this estimate of the true energy diverges over a time span of around 500 frames to a constant but wrong energy value. This is an improvement over the model trained on constant energy data, where the regression to the training data energy happens much quicker within around 10 frames. Note that this does not drastically decrease the visual quality of the rollouts as the change of total energy over 500 frames is gradual enough. We leave the reliable prediction of rollouts with physically valid constant energy for sequences of varying energies for future work.
|
| 247 |
+
|
| 248 |
+
# C MODEL DETAILS
|
| 249 |
+
|
| 250 |
+
Here, we present additional details on the architecture and hyperparameters of STOVE.
|
| 251 |
+
|
| 252 |
+
# C.1 INFERENCE ARCHITECTURE
|
| 253 |
+
|
| 254 |
+
The object detection network for $q ( z _ { t , \mathrm { w h e r e } } \mid x _ { t } )$ is realised by an LSTM (Hochreiter & Schmidhuber, 1997) with 256 hidden units, which outputs the mean and standard deviation of the objects’ twodimensional position and size distributions, i.e. $q ( z _ { t , \mathrm { p o s } , \mathrm { s i z e } } ^ { o } \mid x _ { t } )$ with $2 \cdot 2 \cdot 2 = 8$ parameters per object. Given such position distributions for two consecutive timesteps $q ( \boldsymbol { z } _ { t - 1 , \mathrm { p o s } } \mid \boldsymbol { x } _ { t - 1 } ) , q ( \boldsymbol { z } _ { t , \mathrm { p o s } } \mid$ $x _ { t }$ ), with parameters $\mu _ { z _ { t - 1 , \mathrm { p o s } } ^ { o } } , \sigma _ { z _ { t - 1 , \mathrm { p o s } } ^ { o } } , \mu _ { z _ { t , \mathrm { p o s } } ^ { o } } , \sigma _ { z _ { t , \mathrm { p o s } } ^ { o } }$ , the following velocity estimate based on the difference in position is constructed:
|
| 255 |
+
|
| 256 |
+
$$
|
| 257 |
+
q ( z _ { t , \mathrm { v e l o } } ^ { o } \mid x _ { t } , x _ { t - 1 } ) = \mathcal { N } ( \mu _ { z _ { t , \mathrm { p o s } } ^ { o } } - \mu _ { z _ { t - 1 , \mathrm { p o s } } ^ { o } } , \sigma _ { z _ { t , \mathrm { p o s } } ^ { o } } ^ { 2 } + \sigma _ { z _ { t - 1 , \mathrm { p o s } } ^ { o } } ^ { 2 } ) .
|
| 258 |
+
$$
|
| 259 |
+
|
| 260 |
+
As described in Sec. 2.3, positions and velocities are also inferred from the dynamics model as $q \big ( z _ { t , \mathrm { p o s } } ^ { o } \mid z _ { t - 1 } \big )$ and $q \big ( z _ { t , \mathrm { v e l o } } ^ { o } \ \big | \ z _ { t - 1 } \big )$ . A joint estimate, including information from both image model and dynamics prediction, is obtained by multiplying the respective distributions and renormalizing. Since both $q$ -distributions are Gaussian, the normalized product is again Gaussian, with mean and
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
Figure 7: Reconstructions obtained from our image model when using more varied shapes.
|
| 264 |
+
|
| 265 |
+
standard deviation are given by
|
| 266 |
+
|
| 267 |
+
$$
|
| 268 |
+
\begin{array} { r l } & { q ( \boldsymbol { z } _ { t } \mid \boldsymbol { x } _ { t } , \boldsymbol { z } _ { t - 1 } ) \propto q ( \boldsymbol { z } _ { t } \mid \boldsymbol { x } _ { t } ) \cdot q ( \boldsymbol { z } _ { t } \mid \boldsymbol { z } _ { t - 1 } ) } \\ & { \qquad = \mathcal { N } ( \boldsymbol { z } _ { t } ; \boldsymbol { \mu } _ { t , i } , \sigma _ { t , i } ^ { 2 } ) \cdot \mathcal { N } ( \boldsymbol { z } _ { t } ; \boldsymbol { \mu } _ { t , d } , \sigma _ { t , d } ^ { 2 } ) } \\ & { \qquad = \mathcal { N } ( \boldsymbol { z } _ { t } ; \boldsymbol { \mu } _ { t } , \sigma _ { t } ^ { 2 } ) } \\ & { \qquad \mu _ { t } = \frac { \sigma _ { t , d } ^ { 2 } \mu _ { t , i } + \sigma _ { t , i } ^ { 2 } \mu _ { t , d } } { \sigma _ { t , d } ^ { 2 } + \sigma _ { t , i } ^ { 2 } } } \\ & { \qquad \frac { 1 } { \sigma _ { t } ^ { 2 } } = \frac { 1 } { \sigma _ { t , d } ^ { 2 } } + \frac { 1 } { \sigma _ { t , i } ^ { 2 } } , } \end{array}
|
| 269 |
+
$$
|
| 270 |
+
|
| 271 |
+
where we relax our notation for readability $z _ { t } \in [ z _ { t , \mathrm { p o s } } ^ { o } , z _ { t , \mathrm { v e l o } } ^ { o } ]$ and the indices $i$ and $d$ refer to the parameters obtained from the image and dynamics model. This procedure is applied independently for the positions and velocities of each object.
|
| 272 |
+
|
| 273 |
+
For zot,latent, we choose dimension 12, such that a full state $z _ { t } ^ { o } = ( z _ { t , \mathrm { p o s } } ^ { o } , z _ { t , \mathrm { s i z e } } ^ { o } , z _ { t , \mathrm { v e l o } } ^ { o } , z _ { t , \mathrm { l a t e n t } } ^ { o } )$ is 18-dimensional.
|
| 274 |
+
|
| 275 |
+
# C.2 GRAPH NEURAL NETWORK
|
| 276 |
+
|
| 277 |
+
The dynamics prediction is given by the following series of transformations applied to each input state of shape (batch size, number of objects, l), where $l ~ = ~ 1 6$ , since currently, size information is not propagated through the dynamics prediction.
|
| 278 |
+
|
| 279 |
+
• $S _ { 1 }$ : Encode input state with linear layer $[ l , 2 l ]$ .
|
| 280 |
+
• $S _ { 2 }$ : Apply linear layer [2l, 2l] to $S _ { 1 }$ followed by ReLU non-linearity.
|
| 281 |
+
• $S _ { 3 }$ : Apply linear layer [2l, 2l] to $S _ { 2 }$ and add result to $S _ { 2 }$ . This gives the dynamics prediction without relational effects, corresponding to $g ( z _ { t } ^ { o } )$ in Eq. 1. $C _ { 1 }$ : The following steps obtain the relational aspects of dynamics prediction, corresponding to $h ( z _ { t } ^ { o } , z _ { t } ^ { o ^ { \prime } } )$ in Eq. 1. Concatenate the encoded state $S _ { 1 } ^ { o }$ pairwise with all state encoding, yielding a tensor of shape (batch size, number of objects, number of objects, 4l).
|
| 282 |
+
• $C _ { 2 }$ : Apply linear layer [4l, 4l] to $C _ { 1 }$ followed by ReLU.
|
| 283 |
+
• $C _ { 3 }$ : Apply linear layer [4l, 2l] to $C _ { 2 }$ followed by ReLU.
|
| 284 |
+
• $C _ { 4 }$ : Apply linear layer [2l, 2l] to $C _ { 3 }$ and add to $C _ { 3 }$ .
|
| 285 |
+
• $A _ { 1 }$ : To obtain attention coefficients $\alpha \big ( z _ { t } ^ { o } , z _ { t } ^ { o ^ { \prime } } \big )$ , apply linear layer $[ 4 l , 4 l ]$ to $C _ { 1 }$ followed by ReLU.
|
| 286 |
+
• $A _ { 2 }$ : Apply linear layer $[ 4 l , 2 l ]$ to $A _ { 1 }$ followed by ReLU.
|
| 287 |
+
• $A _ { 3 }$ : Apply linear layer [2l, 1] to $A _ { 2 }$ and apply exponential function.
|
| 288 |
+
• $R _ { 1 }$ : Multiply $C _ { 4 }$ with $A _ { 3 }$ , where diagonal elements of $A _ { 3 }$ are masked out to ensure that $R _ { 1 }$ only covers cases where $o \neq o ^ { \prime }$ .
|
| 289 |
+
• $R _ { 2 }$ : Sum over $R _ { 1 }$ for all $o ^ { \prime }$ , to obtain tensor of shape (batch size, number of objects, 2l). This is the relational dynamics prediction. • $D _ { 1 }$ : Sum relational dynamics $R _ { 2 }$ and self-dynamics $S _ { 3 }$ , obtaining the input to $f$ in Eq. 1.
|
| 290 |
+
• $D _ { 2 }$ : Apply linear layer [2l, 2l] to $D _ { 1 }$ followed by tanh non-linearity.
|
| 291 |
+
• $D _ { 3 }$ : Apply linear layer [2l, 2l] to $D _ { 2 }$ followed by tanh non-linearity and add result to $D _ { 2 }$ .
|
| 292 |
+
• $D _ { 4 }$ : Concatenate $D _ { 3 }$ and $S _ { 1 }$ , and apply linear layer [4l, 2l] followed by tanh.
|
| 293 |
+
• $D _ { 5 }$ : Apply linear layer [2l, 2l] to $D _ { 4 }$ and add result to $D _ { 4 }$ to obtain final dynamics prediction.
|
| 294 |
+
|
| 295 |
+

|
| 296 |
+
Figure 8: Mean kinetic energy observed/predicted by STOVE over true energy of the sequences. (left) STOVE is trained on sequences of constant kinetic energy. As can be seen from the blue scatter points, STOVE manages to predict sequences of arbitrary lengths which, on average, preserve the constant energy of the test set. When STOVE is applied to sequences of different energies, it manages to infer these energies from observed frames fairly well, with inaccuracies compounding at larger energies (red). In the following prediction, however, the mean predicted energies diverge quickly to the energy value of the training set (orange and green). (right) STOVE is now trained on sequences of varying energies. Compared to the constant energy training, energies from observed as well as predicted energies improve drastically. The predictions no longer immediately regress towards a specific value (orange). However after 100 frames, the quality of the predicted energies still regresses to a wrong value (green). (all) The observed values refers to energies obtained as the mean energy value over the six initially observed frames. The short (long) time frame refers to an energy obtained as the mean energy over the first 10 (100) frames of prediction. (Best viewed in color.)
|
| 297 |
+
|
| 298 |
+
The output $D _ { 5 }$ has shape (batch size, number of objects, 2l), twice the size of means and standard deviations over the next predicted state.
|
| 299 |
+
|
| 300 |
+
For the model-based control scenario, the one-hot encoded actions (batch size, action space) are transformed with a linear layer [action space, number of objects · encoding size] and reshaped to (action space, number of objects, encoding size). The action embedding and the object appearances (batch size, number of objects, 3) are then concatenated to the input state. The rest of the dynamics prediction follows as above. The reward prediction consists of the following steps:
|
| 301 |
+
|
| 302 |
+
• $H _ { 1 }$ : Apply linear layer [2l, 2l] to $D _ { 1 }$ followed by ReLU.
|
| 303 |
+
• $H _ { 2 }$ : Apply linear layer [2l, 2l] to $H _ { 1 }$ .
|
| 304 |
+
• $H _ { 3 }$ : Sum over object dimension to obtain tensor of shape (batch size, l).
|
| 305 |
+
• $H _ { 4 }$ : Apply linear layer $[ l , l / 2 ]$ to $H _ { 3 }$ followed by ReLU.
|
| 306 |
+
• $H _ { 5 }$ : Apply linear layer $[ l / 2 , l / 4 ]$ to $H _ { 4 }$ followed by ReLU.
|
| 307 |
+
• $H _ { 5 }$ : Apply linear layer $[ l / 4 , l ]$ to $H _ { 4 }$ followed by a sigmoid non-linearity.
|
| 308 |
+
|
| 309 |
+
$H _ { 5 }$ then gives the final reward prediction.
|
| 310 |
+
|
| 311 |
+
# C.3 STATE INITIALIZATION
|
| 312 |
+
|
| 313 |
+
In the first two timesteps, we cannot yet apply STOVE’s main inference step $q ( z _ { t } \mid z _ { t - 1 } , x _ { t } , x _ { t - 1 } )$ as described above. In order to initialize the latent state over the first two frames, we apply a simplified architecture and only use a partial state at $t = 0$ .
|
| 314 |
+
|
| 315 |
+
At $t = 0$ , $z _ { 0 } \sim q ( z _ { 0 , \mathrm { ( p o s , s i z e ) } } \mid x _ { 0 } )$ is given purely by the object detection network, since no previous states, which could be propagated, exist. $z _ { \mathrm { 0 } }$ is incomplete insofar as it does not contain velocity information or latents. At $t = 1$ , $q ( z _ { 1 , \mathrm { p o s , s i z e } } \mid x _ { 1 } , x _ { 0 } )$ is still given purely based on the object detection network. Note that for a dynamics prediction of $z _ { 1 }$ , velocity information at $t = 0$ would need to be available. However, at $t = 1$ , velocities can be constructed based on the differences between the previously inferred object positions. We sample $z _ { 1 , \mathrm { l a t e n t } }$ from the prior Gaussian distribution to assemble the first full initial state $z _ { 1 }$ . At $t \geq 2$ , the full inference network can be run: States are inferred both from the object detection network $q ( \boldsymbol { z } _ { t } \ | \ x _ { t } , \boldsymbol { x } _ { t - 1 } )$ as well as propagated using the dynamics model $q \big ( z _ { t } \mid z _ { t - 1 } \big )$ .
|
| 316 |
+
|
| 317 |
+
In the generative model, similar adjustments are made: $p ( z _ { 0 , \mathrm { p o s , s i z e } } )$ is given by a uniform prior, velocities and latents are omitted. At $t = 1$ , velocities are sampled from a uniform distribution in planar coordinates $p ( z _ { 1 , \mathrm { v e l o } } )$ and positions are given by a simple linear dynamics model $p ( z _ { 1 , \mathrm { p o s } } \ |$ $z _ { 0 , \mathrm { p o s } } , z _ { 1 , \mathrm { v e l o } } ) = \mathcal N ( z _ { 0 , \mathrm { p o s } } + z _ { 1 , \mathrm { v e l o } } , \sigma )$ . Latents $z _ { 1 , \mathrm { l a t e n t } }$ are sampled from a Gaussian prior. Starting at $t = 2$ , the full dynamics model is used.
|
| 318 |
+
|
| 319 |
+
# C.4 TRAINING PROCEDURE
|
| 320 |
+
|
| 321 |
+
Our model was trained using the Adam optimizer (Kingma & Ba, 2015), with a learning rate of $2 \times 1 0 ^ { - 3 } \exp ( - 4 0 \times 1 0 ^ { - 3 } \cdot \mathrm { s t e p } )$ for a total of $8 3 0 0 0$ steps with a batch size of 256.
|
| 322 |
+
|
| 323 |
+
# D DATA DETAILS
|
| 324 |
+
|
| 325 |
+
For the billiards and gravitational data, 1000 sequences of length 100 were generated for training. From these, subsequences of lengths 8 were sampled and used to optimize the ELBO. A test dataset of 300 sequences of length 100 was also generated and used for all evaluations. The pixel resolution of the dataset was $3 2 \times 3 2$ for the billiards data and $5 0 \times 5 0$ for the gravity data. All models for video prediction were learned on grayscale data, with objects of identical appearance. The $O = 3$ balls were initialised with uniformly random positions and velocities, rejecting configurations with overlap. They are rendered using anti-aliasing. The billiards data models the balls as circular objects, which perform elastic collision with each other or the walls of the environment. For the gravity data, the balls are modeled as point masses, where, following Watters et al. (2017), we clip the gravitational force to avoid slingshot effects. Also, we add an additional basin of attraction towards the center of the canvas and model the balls in their center off mass system to avoid drift. Velocities here are initialised orthogonal to the center of the canvas for a stabilising effect. For full details we refer to the file envs.py in the provided code.
|
| 326 |
+
|
| 327 |
+
# E BASELINES FOR VIDEO MODELING
|
| 328 |
+
|
| 329 |
+
Following Kosiorek et al. (2018), we experimented with different hyperparameter configurations for VRNNs. We varied the sizes of the hidden and latent states $[ h , z ]$ , experimenting with the values [256, 16], [512, 32], [1024, 64], and [2048, 32]. We found that increasing the model capacity beyond [512, 32] did not yield large increases in performance, which is why we chose the configuration [512, 32] for our experiments. Our VRNN implementation is written in PyTorch and based on https://github.com/emited/VariationalRecurrentNeuralNetwork.
|
| 330 |
+
|
| 331 |
+
SQAIR can handle a variable number of objects in each sequence. However, to allow for a fairer comparison to STOVE, we fixed the number of objects to the correct number. This means that in the first timestep, exactly three objects are discovered, which are then propagated in all following timesteps, without further discoveries. Our implementation is based on the original implementation provided by the authors at https://github.com/akosiorek/sqair.
|
| 332 |
+
|
| 333 |
+

|
| 334 |
+
Figure 9: Displayed is the mean predicted position error over a rollout length of 8 frames as training progresses for the billiards (left) and gravity (right) scenario for STOVE and its ablations. (Best viewed in color.)
|
| 335 |
+
|
| 336 |
+
The DDPAE experiments were performed using the implementation available at https:// github.com/jthsieh/DDPAE-video-prediction. Default parameters for training DDPAE with billiards datasets are provided with the code. However, the resolution of our billiards (32 pixels) and gravity (64 pixels) datasets is different to the resolution DDPAE expects (64 pixels). While we experimented with adjusting DDPAE parameters such as the latent space dimension to fit our different resolution, best results were obtained when bilinearly scaling our data to the resolution DDPAE expects. DDPAE was trained for 400 000 steps, which sufficed for convergence of the models’ test set error.
|
| 337 |
+
|
| 338 |
+
The linear baseline was obtained as follows: For the first 8 frames, we infer the full model state using STOVE. We then take the last inferred positions and velocities of each object and predict future positions by assuming constant, uniform motions for each object. We do not allow objects to leave the frame, i. e. when objects reach the canvas boundary after some timesteps, they stick to it.
|
| 339 |
+
|
| 340 |
+
Since our dynamics model requires only object positions and velocities as input, it is trivial to construct a supervised baseline for our physics prediction by replacing the SuPAIR-inferred states with real, ground-truth states. On these, the model can then be trained in supervised fashion.
|
| 341 |
+
|
| 342 |
+
# F TRAINING CURVES OF ABLATIONS
|
| 343 |
+
|
| 344 |
+
In Fig. 9 we display learning curves for STOVE and presented ablations. As mentioned in the main text, the ablations demonstrate the value of the reuse of the dynamics model, the explicit inclusion of a velocity value, and the presence of unstructured latent space in the dynamics model. (Best viewed in color.)
|
| 345 |
+
|
| 346 |
+
# G DETAILS ON THE REINFORCEMENT LEARNING MODELS
|
| 347 |
+
|
| 348 |
+
Our MCTS implementation uses the standard UCT formulation for exploration/exploitation. The $c$ parameter is set to 1. in all our experiments. Since the environment does not provide a natural endpoint, we cut off all rollouts at a depth of 20 timesteps. We found this to be a good trade-off between runtime and accuracy.
|
| 349 |
+
|
| 350 |
+
When expanding a node on the true environment, we compute the result of the most promising action, and then start a rollout using a random policy from the resulting state. For the final evaluation, a total of 200 nodes are expanded. To better utilize the GPU, a slightly different approach is used for STOVE. When we expand a node in this setting, we predict the results of all actions simultaneously, and compute a rollout from each resulting position. In turn, only 50 nodes are expanded. To estimate the node value function, the average reward over all rollouts is propagated back to the root and each node’s visit counter is increased by 1. Furthermore, we discount the reward predicted STOVE with a factor of 0.95 per timestep to account for the higher uncertainty of longer rollouts. This is not done in the baseline running on the real environment, since it behaves deterministically.
|
| 351 |
+
|
| 352 |
+
For PPO, we employ a standard convolutional neural network as an actor-critic for the evaluation on images and a MLP for the evaluation on states. The image network consists of two convolutional layers, each using 32 output filters with a kernel size of 4 and 3 respectively and a stride of 2. The MLP consists of two fully connected layers with 128 and 64 hidden units. In both cases, an additional fully connected layer links the outputs of the respective base to an actor and a critic head. For the convolutional base, this linking layer employs 512 hidden units, for the MLP 64. All previously mentioned layers use rectified linear activations. The actor head predicts a probability distribution over next actions using a softmax activation function while the critic head outputs a value estimation for the current state using a linear prediction. We tested several hyperparameter configurations but found the following to be the most efficient one. To update the actor-critic architecture, we sample 32 trajectories of length 16 from separate environments in every batch. The training uses an Adam optimizer with a learning rate of $2 \times 1 0 ^ { - 4 }$ and and $\epsilon$ value of $\mathrm { i } ^ { \cdot } \times \mathrm { 1 0 ^ { - 5 } }$ . The clipping parameter of PPO is set to $1 \times 1 0 ^ { - 1 }$ . We update the network for 4 epochs in each batch using 32 mini-batches of the sampled data. The value loss is weighted at $5 \times 1 0 ^ { - 1 }$ and the entropy coefficient is set to $1 \times 1 0 ^ { - 2 }$ .
|
parse/train/B1e-kxSKDH/B1e-kxSKDH_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1e-kxSKDH/B1e-kxSKDH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1e-kxSKDH/B1e-kxSKDH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJx040EFvH/BJx040EFvH.md
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FAST IS BETTER THAN FREE: REVISITING ADVERSARIAL TRAINING
|
| 2 |
+
|
| 3 |
+
Eric Wong∗ Machine Learning Department Carnegie Mellon University Pittsburgh, PA 15213, USA ericwong@cs.cmu.edu
|
| 4 |
+
|
| 5 |
+
Leslie Rice∗ Computer Science Department Carnegie Mellon University Pittsburgh, PA 15213, USA larice@cs.cmu.edu
|
| 6 |
+
|
| 7 |
+
# J. Zico Kolter
|
| 8 |
+
|
| 9 |
+
Computer Science Department Carnegie Mellon University and Bosch Center for Artifical Intelligence Pittsburgh, PA 15213, USA zkolter@cs.cmu.edu
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Adversarial training, a method for learning robust deep networks, is typically assumed to be more expensive than traditional training due to the necessity of constructing adversarial examples via a first-order method like projected gradient decent (PGD). In this paper, we make the surprising discovery that it is possible to train empirically robust models using a much weaker and cheaper adversary, an approach that was previously believed to be ineffective, rendering the method no more costly than standard training in practice. Specifically, we show that adversarial training with the fast gradient sign method (FGSM), when combined with random initialization, is as effective as PGD-based training but has significantly lower cost. Furthermore we show that FGSM adversarial training can be further accelerated by using standard techniques for efficient training of deep networks, allowing us to learn a robust CIFAR10 classifier with $45 \%$ robust accuracy to PGD attacks with $\epsilon = 8 / 2 5 5$ in 6 minutes, and a robust ImageNet classifier with $43 \%$ robust accuracy at $\epsilon = 2 / 2 5 5$ in 12 hours, in comparison to past work based on “free” adversarial training which took 10 and 50 hours to reach the same respective thresholds. Finally, we identify a failure mode referred to as “catastrophic overfitting” which may have caused previous attempts to use FGSM adversarial training to fail. All code for reproducing the experiments in this paper as well as pretrained model weights are at https://github.com/locuslab/fast_adversarial.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Although deep network architectures continue to be successful in a wide range of applications, the problem of learning robust deep networks remains an active area of research. In particular, safety and security focused applications are concerned about robustness to adversarial examples, data points which have been adversarially perturbed to fool a model (Szegedy et al., 2013). The goal here is to learn a model which is not only accurate on the data, but also accurate on adversarially perturbed versions of the data. To this end, a number of defenses have been proposed to mitigate the problem and improve the robustness of deep networks, with some of the most reliable being certified defenses and adversarial training. However, both of these approaches come at a non-trivial, additional computational cost, often increasing training time by an order of magnitude over standard training. This has slowed progress in researching robustness in deep networks, due to the computational difficulty in scaling to much larger networks and the inability to rapidly train models when experimenting with new ideas. In response to this difficulty, there has been a recent surge in work that tries to to reduce the complexity of generating an adversarial example, which forms the bulk of the additional computation in adversarial training (Zhang et al., 2019; Shafahi et al., 2019). While these works present reasonable improvements to the runtime of adversarial training, they are still significantly slower than standard training, which has been greatly accelerated due to competitions for optimizing both the speed and cost of training (Coleman et al., 2017).
|
| 18 |
+
|
| 19 |
+
In this work, we argue that adversarial training, in fact, is not as hard as has been suggested by this past line of work. In particular, we revisit one of the the first proposed methods for adversarial training, using the Fast Gradient Sign Method (FGSM) to add adversarial examples to the training process (Goodfellow et al., 2014). Although this approach has long been dismissed as ineffective, we show that by simply introducing random initialization points, FGSM-based training is as effective as projected gradient descent based training while being an order of magnitude more efficient. Moreover, FGSM adversarial training (and to a lesser extent, other adversarial training methods) can be drastically accelerated using standard techniques for efficient training of deep networks, including e.g. cyclic learning rates (Smith & Topin, 2018), mixed-precision training (Micikevicius et al., 2017), and other similar techniques. The method has extremely few free parameters to tune, and can be easily adapted to most training procedures. We further identify a failure mode that we call “catastrophic overfitting”, which may have caused previous attempts at FGSM adversarial training to fail against PGD-based attacks.
|
| 20 |
+
|
| 21 |
+
The end result is that, with these approaches, we are able to train (empirically) robust classifiers far faster than in previous work. Specifically, we train an $\ell _ { \infty }$ robust CIFAR10 model to $4 5 \%$ accuracy at $\epsilon = 8 / 2 5 \bar { 5 }$ (the same level attained in previous work) in $6$ minutes; previous papers reported times of 80 hours for PGD-based training (Madry et al., 2017) and 10 hours for the more recent “free” adversarial training method (Shafahi et al., 2019). Similarly, we train an $\ell _ { \infty }$ robust ImageNet classifier to $4 3 \%$ top-1 accuracy at $\epsilon = 2 / 2 5 5$ (again matching previous results) in 12 hours of training (compared to 50 hours in the best reported previous work that we are aware of (Shafahi et al., 2019)). Both of these times roughly match the comparable time for quickly training a standard non-robust model to reasonable accuracy. We extensively evaluate these results against strong $P G D { \mathrm { . } }$ - based attacks, and show that they obtain the same empirical performance as the slower, PGD-based training. Thus, we argue that despite the conventional wisdom, adversarially robust training is not actually more challenging than standard training of deep networks, and can be accomplished with the notoriously weak FGSM attack.
|
| 22 |
+
|
| 23 |
+
# 2 RELATED WORK
|
| 24 |
+
|
| 25 |
+
After the discovery of adversarial examples by Szegedy et al. (2013), Goodfellow et al. (2014) proposed the Fast Gradient Sign Method (FGSM) to generate adversarial examples with a single gradient step. This method was used to perturb the inputs to the model before performing backpropagation as an early form of adversarial training. This attack was enhanced by adding a randomization step, which was referred to as $\mathrm { R + F G S M }$ (Tramer et al., 2017). Later, the Basic Iterative \` Method improved upon FGSM by taking multiple, smaller FGSM steps, ultimately rendering both FGSM-based adversarial training ineffective (Kurakin et al., 2016). This iterative adversarial attack was further strengthened by adding multiple random restarts, and was also incorporated into the adversarial training procedure. These improvements form the basis of what is widely understood today as adversarial training against a projected gradient descent (PGD) adversary, and the resulting method is recognized as an effective approach to learning robust networks (Madry et al., 2017). Since then, the PGD attack and its corresponding adversarial training defense have been augmented with various techniques, such as optimization tricks like momentum to improve the adversary (Dong et al., 2018), combination with other heuristic defenses like matrix estimation (Yang et al., 2019) or logit pairing (Mosbach et al., 2018), and generalization to multiple types of adversarial attacks (Tramer & Boneh, 2019; Maini et al., 2019).\`
|
| 26 |
+
|
| 27 |
+
In addition to adversarial training, a number of other defenses against adversarial attacks have also been proposed. Adversarial defenses span a wide range of methods, such as preprocessing techniques (Guo et al., 2017; Buckman et al., 2018; Song et al., 2017), detection algorithms (Metzen et al., 2017; Feinman et al., 2017; Carlini & Wagner, 2017a), verification and provable defenses (Katz et al., 2017; Sinha et al., 2017; Wong & Kolter, 2017; Raghunathan et al., 2018), and various theoretically motivated heuristics (Xiao et al., 2018; Croce et al., 2018). While certified defenses have been scaled to reasonably sized networks (Wong et al., 2018; Mirman et al., 2018; Gowal et al., 2018; Cohen et al., 2019; Salman et al., 2019), the guarantees don’t match the empirical robustness obtained through adversarial training.
|
| 28 |
+
|
| 29 |
+
With the proposal of many new defense mechanisms, of great concern in the community is the use of strong attacks for evaluating robustness: weak attacks can give a misleading sense of security, and the history of adversarial examples is littered with adversarial defenses (Papernot et al., 2016; Lu et al., 2017; Kannan et al., 2018; Tao et al., 2018) which were ultimately defeated by stronger attacks (Carlini & Wagner, 2016; 2017b; Athalye et al., 2017; Engstrom et al., 2018; Carlini, 2019). This highlights the difficulty of evaluating adversarial robustness, as pointed out by other work which began to defeat proposed defenses en masse (Uesato et al., 2018; Athalye et al., 2018). Since then, several best practices have been proposed to mitigate this problem (Carlini et al., 2019).
|
| 30 |
+
|
| 31 |
+
Despite the eventual defeat of other adversarial defenses, adversarial training with a PGD adversary remains empirically robust to this day. However, running a strong PGD adversary within an inner loop of training is expensive, and some earlier work in this topic found that taking larger but fewer steps did not always significantly change the resulting robustness of a network (Wang, 2018). To combat the increased computational overhead of the PGD defense, some recent work has looked at regressing the $k$ -step PGD adversary to a variation of its single-step FGSM predecessor called “free” adversarial training, which can be computed with little overhead over standard training by using a single backwards pass to simultaneously update both the model weights and also the input perturbation (Shafahi et al., 2019). Finally, when performing a multi-step PGD adversary, it is possible to cut out redundant calculations during backpropagation when computing adversarial examples for additional speedup (Zhang et al., 2019).
|
| 32 |
+
|
| 33 |
+
Although these improvements are certainly faster than the standard adversarial training procedure, they are not much faster than traditional training methods, and can still take hours to days to compute. On the other hand, top performing training methods from the DAWNBench competition (Coleman et al., 2017) are able to train CIFAR10 and ImageNet architectures to standard benchmark metrics in mere minutes and hours respectively, using only a modest amount of computational resources. Although some of the techniques can be quite problem specific for achieving bleedingedge performance, more general techniques such as cyclic learning rates (Smith & Topin, 2018) and half-precision computations (Micikevicius et al., 2017) have been quite successful in the top ranking submissions, and can also be useful for adversarial training.
|
| 34 |
+
|
| 35 |
+
# 3 ADVERSARIAL TRAINING OVERVIEW
|
| 36 |
+
|
| 37 |
+
Adversarial training is a method for learning networks which are robust to adversarial attacks. Given a network $f _ { \theta }$ parameterized by $\theta$ , a dataset $( x _ { i } , y _ { i } )$ , a loss function $\ell$ and a threat model $\Delta$ , the learning problem is typically cast as the following robust optimization problem,
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\operatorname* { m i n } _ { \theta } \sum _ { i } \operatorname* { m a x } _ { \delta \in \Delta } \ell ( f _ { \theta } ( x _ { i } + \delta ) , y _ { i } ) .
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
A typical choice for a threat model is to take $\Delta = \{ \delta : \| \delta \| _ { \infty } \leq \epsilon \}$ for some $\epsilon > 0$ . This is the $\ell _ { \infty }$ threat model used by Madry et al. (2017) and is the setting we study in this paper. The procedure for adversarial training is to use some adversarial attack to approximate the inner maximization over $\Delta$ , followed by some variation of gradient descent on the model parameters $\theta$ . For example, one of the earliest versions of adversarial training used the Fast Gradient Sign Method to approximate the inner maximization. This could be seen as a relatively inaccurate approximation of the inner maximization for $\ell _ { \infty }$ perturbations, and has the following closed form (Goodfellow et al., 2014):
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\delta ^ { \star } = \epsilon \cdot \mathrm { s i g n } \big ( \nabla _ { x } \ell ( f ( x ) , y ) \big ) .
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
A better approximation of the inner maximization is to take multiple, smaller FGSM steps of size $\alpha$ instead. When the iterate leaves the threat model, it is projected back to the set $\Delta$ (for $\ell _ { \infty }$ perturbations. This is equivalent to clipping $\delta$ to the interval $[ - \epsilon , \epsilon ] )$ . Since this is only a local approximation of a non-convex function, multiple random restarts within the threat model $\Delta$ typically improve the approximation of the inner maximization even further. A combination of all these techniques is
|
| 50 |
+
|
| 51 |
+
<table><tr><td>Algorithm 1 PGD adversarial training for T epochs, given some radius ∈,adversarial step size α and N PGD steps and a dataset of size M for a network fe</td></tr><tr><td>fort=1...Tdo fori=1...Mdo</td></tr><tr><td>// Perform PGD adversarial attack</td></tr><tr><td>δ = O // or randomly initialized for j=1...N do</td></tr><tr><td>δ=δ+α·sign(Vsl(fe(xi +δ),yi))</td></tr><tr><td>δ = max(min(δ,ε),-∈) end for</td></tr><tr><td>0 = 0 - Vθl(fe(xi + δ),yi) // Update model weights with some optimizer, e.g. SGD</td></tr><tr><td>end for end for</td></tr></table>
|
| 52 |
+
|
| 53 |
+
Algorithm 2 “Free” adversarial training for $T$ epochs, given some radius , $N$ minibatch replays, and a dataset of size $M$ for a network $f _ { \theta }$
|
| 54 |
+
|
| 55 |
+
$\delta = 0$
|
| 56 |
+
// Iterate T/N times to account for minibatch replays and run for T total epochs
|
| 57 |
+
for $t = 1 \ldots T / N$ do for $i = 1 \dots M$ do // Perform simultaneous FGSM adversarial attack and model weight updates $T$ times for $j = 1 \ldots N$ do // Compute gradients for perturbation and model weights simultaneously $\nabla _ { \boldsymbol { \delta } } , \nabla _ { \boldsymbol { \theta } } = \nabla \ell ( f _ { \boldsymbol { \theta } } ( x _ { i } + \boldsymbol { \delta } ) , y _ { i } )$ $\delta = \delta + \epsilon \cdot \mathrm { s i g n } ( \nabla _ { \delta } )$ $\delta = \operatorname* { m a x } ( \operatorname* { m i n } ( \delta , \epsilon ) , - \epsilon )$ $\theta = \theta - \nabla _ { \theta }$ // Update model weights with some optimizer, e.g. SGD end for end for
|
| 58 |
+
end for
|
| 59 |
+
|
| 60 |
+
known as the PGD adversary (Madry et al., 2017), and its usage in adversarial training is summarized in Algorithm 1.
|
| 61 |
+
|
| 62 |
+
Note that the number of gradient computations here is proportional to $O ( M N )$ in a single epoch, where $M$ is the size of the dataset and $N$ is the number of steps taken by the PGD adversary. This is $N$ times greater than standard training (which has $O ( M )$ gradient computations per epoch), and so adversarial training is typically $N$ times slower than standard training.
|
| 63 |
+
|
| 64 |
+
# 3.1 “FREE” ADVERSARIAL TRAINING
|
| 65 |
+
|
| 66 |
+
To get around this slowdown of a factor of $N$ , Shafahi et al. (2019) instead propose “free” adversarial training. This method takes FGSM steps with full step sizes $\alpha = \epsilon$ followed by updating the model weights for $N$ iterations on the same minibatch (also referred to as “minibatch replays”). The algorithm is summarized in Algorithm 2. Note that perturbations are not reset between minibatches. To account for the additional computational cost of minibatch replay, the total number of epochs is reduced by a factor of $N$ to make the total cost equivalent to $T$ epochs of standard training. Although “free” adversarial training is faster than the standard PGD adversarial training, it is not as fast as we’d like: Shafahi et al. (2019) need to run over 200 epochs in over 10 hours to learn a robust CIFAR10 classifier and two days to learn a robust ImageNet classifier, whereas standard training can be accomplished in minutes and hours for the same respective tasks.
|
| 67 |
+
|
| 68 |
+
# 4 FAST ADVERSARIAL TRAINING
|
| 69 |
+
|
| 70 |
+
To speed up adversarial training and move towards the state of the art in fast standard training methods, we first highlight the main empirical contribution of the paper: that FGSM adversarial training combined with random initialization is just as effective a defense as PGD-based training. Following this, we discuss several techniques from the DAWNBench competition (Coleman et al., 2017) that are applicable to all adversarial training methods, which reduce the total number of epochs needed for convergence with cyclic learning rates and further speed up computations with mixedprecision arithmetic.
|
| 71 |
+
|
| 72 |
+
Algorithm 3 FGSM adversarial training for $T$ epochs, given some radius , $N$ PGD steps, step size $\alpha$ , and a dataset of size $M$ for a network $f _ { \theta }$
|
| 73 |
+
|
| 74 |
+
<table><tr><td>fort=1...Tdo fori=1...Mdo</td><td></td></tr><tr><td>//Perform FGSMadversarial attack</td><td></td></tr><tr><td>δ=Uniform(-∈,∈)</td><td></td></tr><tr><td>δ=δ+α·sign(Vsl(fe(xi+δ),yi))</td><td></td></tr><tr><td>δ = max(min(δ,ε),-∈)</td><td></td></tr><tr><td>end for</td><td>0 = 0- Vθl(fe(xi + δ),yi) // Update model weights with some optimizer, e.g. SGD</td></tr><tr><td>end for</td><td></td></tr></table>
|
| 75 |
+
|
| 76 |
+
Table 1: Standard and robust performance of various adversarial training methods on CIFAR10 for $\epsilon = 8 / 2 5 5$ and their corresponding training times
|
| 77 |
+
|
| 78 |
+
<table><tr><td>Method</td><td>Standard accuracy</td><td>PGD (∈= 8/255)</td><td>Time (min)</td></tr><tr><td>FGSM+ DAWNBench</td><td></td><td></td><td></td></tr><tr><td>+ zero init</td><td>85.18%</td><td>0.00%</td><td>12.37</td></tr><tr><td>+ early stopping</td><td>71.14%</td><td>38.86%</td><td>7.89</td></tr><tr><td>+ previous init</td><td>86.02%</td><td>42.37%</td><td>12.21</td></tr><tr><td>+ random init</td><td>85.32%</td><td>44.01%</td><td>12.33</td></tr><tr><td>+ α = 10/255 step size</td><td>83.81%</td><td>46.06%</td><td>12.17</td></tr><tr><td>+ α = 16/255 step size</td><td>86.05%</td><td>0.00%</td><td>12.06</td></tr><tr><td>+ early stopping</td><td>70.93%</td><td>40.38%</td><td>8.81</td></tr><tr><td>“Free” (m= 8) (Shafahi et al.,2019)1</td><td>85.96%</td><td>46.33%</td><td>785</td></tr><tr><td>+ DAWNBench</td><td>78.38%</td><td>46.18%</td><td>20.91</td></tr><tr><td>PGD-7 (Madry et al., 2017)2</td><td>87.30%</td><td>45.80%</td><td>4965.71</td></tr><tr><td>+ DAWNBench</td><td>82.46%</td><td>50.69%</td><td>68.8</td></tr></table>
|
| 79 |
+
|
| 80 |
+
# 4.1 REVISITING FGSM ADVERSARIAL TRAINING
|
| 81 |
+
|
| 82 |
+
Despite being quite similar to FGSM adversarial training, free adversarial training is empirically robust against PGD attacks whereas FGSM adversarial training is not believed to be robust. To analyze why, we identify a key difference between the methods: a property of free adversarial training is that the perturbation from the previous iteration is used as the initial starting point for the next iteration. However, there is little reason to believe that an adversarial perturbation for a previous minibatch is a reasonable starting point for the next minibatch. As a result, we hypothesize that the main benefit comes from simply starting from a non-zero initial perturbation.
|
| 83 |
+
|
| 84 |
+
In light of this difference, our approach is to use FGSM adversarial training with random initialization for the perturbation, as shown in Algorithm 3. We find that, in contrast to what was previously believed, this simple adjustment to FGSM adversarial training can be used as an effective defense on par with PGD adversarial training. Crucially, we find that starting from a non-zero initial perturbation is the primary driver for success, regardless of the actual initialization. In fact, both starting with the previous minibatch’s perturbation or initializing from a uniformly random perturbation allow FGSM adversarial training to succeed at being robust to full-strength PGD adversarial attacks. Note that randomized initialization for FGSM is not a new idea and was previously studied by Tramer et al. (2017). Crucially, Tram \` er et al. (2017) use a different, more restricted random initial- \` ization and step size, which does not result in models robust to full-strength PGD adversaries. A more detailed comparison of their approach with ours is in Appendix A.
|
| 85 |
+
|
| 86 |
+
To test the effect of initialization in FGSM adversarial training, we train several models to be robust at a radius $\epsilon = 8 / 2 5 5$ on CIFAR10, starting with the most “pure” form of FGSM, which takes steps of size $\alpha = \epsilon$ from a zero-initialized perturbation. The results, given in Table 1, are consistent with the literature, and show that the model trained with zero-initialization is not robust against a PGD adversary. However, surprisingly, simply using a random or previous-minibatch initialization instead of a zero initialization actually results in reasonable robustness levels (with random initialization performing slightly better) that are comparable to both free and PGD adversarial training methods. The adversarial accuracies in Table 1 are calculated using a PGD adversary with 50 iterations, step size $\alpha = 2 / 2 5 5$ , and 10 random restarts. Specific optimization parameters used for training these models can be found in Appendix B.
|
| 87 |
+
|
| 88 |
+
FGSM step size Note that an FGSM step with size $\alpha = \epsilon$ from a non-zero initialization is not guaranteed to lie on the boundary of the $\ell _ { \infty }$ ball, and so this defense could potentially be seen as too weak. We find that increasing the step size by a factor of 1.25 to $\alpha = 1 0 / 2 5 5$ further improved the robustness of the model so that it is on par with the best reported result from free adversarial training. However, we also found that forcing the resulting perturbation to lie on the boundary with a step size of $\alpha = 2 \epsilon$ resulted in catastrophic overfitting: it does not produce a model robust to adversarial attacks. These two failure modes (starting from a zero-initialized perturbation and generating perturbations at the boundary) may explain why previous attempts at FGSM adversarial training failed, as the model overfits to a restricted threat model, and is described in more detail in Section 5.4. A full curve showing the effect of a range of FGSM step sizes on the robust performance can be found in Appendix C.
|
| 89 |
+
|
| 90 |
+
Computational complexity A second key difference between FGSM and free adversarial training is that the latter uses a single backwards pass to compute gradients for both the perturbation and the model weights while repeating the same minibatch $m$ times in a row, called “minibatch replay”. In comparison, the FGSM adversarial training does not need to repeat minibatches, but needs two backwards passes to compute gradients separately for the perturbation and the model weights. As a result, the computational complexity for an epoch of FGSM adversarial training is not truly free and is equivalent to two epochs of standard training.
|
| 91 |
+
|
| 92 |
+
# 4.2 DAWNBENCH IMPROVEMENTS
|
| 93 |
+
|
| 94 |
+
Although free adversarial training is of comparable cost per iteration to traditional standard training methods, it is not quite comparable in total cost to more recent advancements in fast methods for standard training. Notably, top submissions to the DAWNBench competition have shown that CIFAR10 and ImageNet classifiers can be trained at significantly quicker times and at much lower cost than traditional training methods. Although some of the submissions can be quite unique in their approaches, we identify two generally applicable techniques which have a significant impact on the convergence rate and computational speed of standard training.
|
| 95 |
+
|
| 96 |
+
Cyclic learning rate Introduced by Smith (2017) for improving convergence and reducing the amount of tuning required when training networks, a cyclic schedule for a learning rate can drastically reduce the number of epochs required for training deep networks (Smith & Topin, 2018). A simple cyclic learning rate schedules the learning rate linearly from zero, to a maximum learning rate, and back down to zero (examples can be found in Figure 1). Using a cyclic learning rate allows CIFAR10 architectures to converge to benchmark accuracies in tens of epochs instead of hundreds, and is a crucial component of some of the top DAWNBench submissions.
|
| 97 |
+
|
| 98 |
+
Mixed-precision arithmetic With newer GPU architectures coming with tensor cores specifically built for rapid half-precision calculations, using mixed-precision arithmetic when training deep networks can also provide significant speedups for standard training (Micikevicius et al., 2017). This can drastically reduce the memory utilization, and when tensor cores are available, also reduce runtime. In some DAWNBench submissions, switching to mixed-precision computations was key to achieving fast training while keeping costs low.
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
Figure 1: Cyclic learning rates used for FGSM adversarial training on CIFAR10 and ImageNet over epochs. The ImageNet cyclic schedule is decayed further by a factor of 10 in the second and third phases.
|
| 102 |
+
|
| 103 |
+
Table 2: Robustness of FGSM and PGD adversarial training on MNIST
|
| 104 |
+
|
| 105 |
+
<table><tr><td>Method</td><td>Standard accuracy</td><td>PGD (ε = 0.1)</td><td>PGD (ε = 0.3)</td><td>Verified (ε = 0.1)</td></tr><tr><td>PGD</td><td>99.20%</td><td>97.66%</td><td>89.90%</td><td>96.7%</td></tr><tr><td>FGSM</td><td>99.20%</td><td>97.53%</td><td>88.77%</td><td>96.8%</td></tr></table>
|
| 106 |
+
|
| 107 |
+
We adopt these two techniques for use in adversarial training, which allows us to drastically reduce the number of training epochs as well as the runtime on GPU infrastructure with tensor cores, while using modest amounts of computational resources. Notably, both of these improvements can be easily applied to existing implementations of adversarial training by adding a few lines of code with very little additional engineering effort, and so are easily accessible by the general research community.
|
| 108 |
+
|
| 109 |
+
# 5 EXPERIMENTS
|
| 110 |
+
|
| 111 |
+
To demonstrate the effectiveness of FGSM adversarial training with fast training methods, we run a number of experiments on MNIST, CIFAR10, and ImageNet benchmarks. All CIFAR10 experiments in this paper are run on a single GeForce RTX 2080ti using the PreAct ResNet18 architecture, and all ImageNet experiments are run on a single machine with four GeForce RTX 2080tis using the ResNet50 architecture (He et al., 2016). Repositories for reproducing all experiments and the corresponding trained model weights are available at https://github.com/locuslab/fast_ adversarial.
|
| 112 |
+
|
| 113 |
+
All experiments using FGSM adversarial training in this section are carried out with random initial starting points and step size $\alpha = 1 . 2 5 \epsilon$ as described in Section 4.1. All PGD adversaries used at evaluation are run with 10 random restarts for 50 iterations (with the same hyperparameters as those used by Shafahi et al. (2019) but further strengthened with random restarts). Speedup with mixedprecision was incorporated with the Apex amp package at the O1 optimization level for ImageNet experiments and O2 without loss scaling for CIFAR10 experiments.3
|
| 114 |
+
|
| 115 |
+
# 5.1 VERIFIED PERFORMANCE ON MNIST
|
| 116 |
+
|
| 117 |
+
Since the FGSM attack is known to be significantly weaker than the PGD attack, it is understandable if the reader is still skeptical of the true robustness of the models trained using this method. To demonstrate that FGSM adversarial training confers real robustness to the model, in addition to evaluating against a PGD adversary, we leverage mixed-integer linear programming (MILP) methods from formal verification to calculate the exact robustness of small, but verifiable models (Tjeng et al., 2017). We train two convolutional networks with 16 and 32 convolutional filters followed by a fully connected layer of 100 units, the same architecture used by Tjeng et al. (2017). We use both PGD and FGSM adversarial training at $\epsilon = 0 . 3$ , where the PGD adversary for training has 40 iterations with step size 0.01 as done by Madry et al. (2017). The exact verification results can be seen in Table 2, where we find that FGSM adversarial training confers empirical and verified robustness which is nearly indistinguishable to that of PGD adversarial training on MNIST.4
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 2: Performance of models trained on CIFAR10 at $\epsilon = 8 / 2 5 5$ with cyclic learning rates and half precision, given varying numbers of epochs across different adversarial training methods. Each point denotes the average model performance over 3 independent runs, where the $x$ axis denotes the number of epochs $N$ the model was trained for, and the $y$ axis denotes the resulting accuracy. The orange dots measure accuracy on natural images and the blue dots plot the empirical robust accuracy on adversarial images. The vertical dotted line indicates the minimum number of epochs needed to train a model to $45 \%$ robust accuracy.
|
| 121 |
+
|
| 122 |
+
Table 3: Time to train a robust CIFAR10 classifier to $45 \%$ robust accuracy using various adversarial training methods with the DAWNBench techniques of cyclic learning rates and mixed-precision arithmetic, showing significant speedups for all forms of adversarial training.
|
| 123 |
+
|
| 124 |
+
<table><tr><td>Method</td><td>Epochs</td><td>Seconds/epoch</td><td>Total time (minutes)</td></tr><tr><td>DAWNBench +PGD-7</td><td>10</td><td>104.94</td><td>17.49</td></tr><tr><td>DAWNBench + Free (m = 8)</td><td>80</td><td>13.08</td><td>17.44</td></tr><tr><td>DAWNBench + FGSM</td><td>15</td><td>25.36</td><td>6.34</td></tr><tr><td>PGD-7 (Madry et al., 2017)5</td><td>205</td><td>1456.22</td><td>4965.71</td></tr><tr><td>Free (m = 8) (Shafahi et al.,2019)6</td><td>205</td><td>197.77</td><td>674.39</td></tr></table>
|
| 125 |
+
|
| 126 |
+
# 5.2 FAST CIFAR10
|
| 127 |
+
|
| 128 |
+
We begin our CIFAR10 experiments by combining the DAWNBench improvements from Section 4.2 with various forms of adversarial training. For $N$ epochs, we use a cyclic learning rate that increases linearly from 0 to $\lambda$ over the first $N / 2$ epochs, then decreases linearly from $\lambda$ to 0 for the remaining epochs, where $\lambda$ is the maximum learning rate. For each method, we individually tune $\lambda$ to be as large as possible without causing the training loss to diverge, which is the recommended learning rate test from Smith & Topin (2018).
|
| 129 |
+
|
| 130 |
+
To identify the minimum number of epochs needed for each adversarial training method, we repeatedly run each method over a range of maximum epochs $N$ , and then plot the final robustness of each trained model in Figure 2. While all the adversarial training methods benefit greatly from the cyclic learning rate schedule, we find that both FGSM and PGD adversarial training require much fewer epochs than free adversarial training, and consequently reap the greatest speedups.
|
| 131 |
+
|
| 132 |
+
Table 4: Imagenet classifiers trained with adversarial training methods at $\epsilon = 2 / 2 5 5$ and $\epsilon = 4 / 2 5 5$ .
|
| 133 |
+
|
| 134 |
+
<table><tr><td>Method</td><td>E</td><td>Standard acc.</td><td>PGD+1 restart</td><td>PGD+10 restarts</td><td>Total time (hrs)</td></tr><tr><td rowspan="2">FGSM Free (m = 4)</td><td>2/255</td><td>60.90%</td><td>43.46%</td><td>43.43%</td><td>12.14</td></tr><tr><td>2/255</td><td>64.37%</td><td>43.31%</td><td>43.28%</td><td>52.20</td></tr><tr><td>FGSM</td><td>4/255</td><td>55.45%</td><td>30.28%</td><td>30.18%</td><td>12.14</td></tr><tr><td>Free (m = 4)</td><td>4/255</td><td>60.42%</td><td>31.22%</td><td>31.08%</td><td>52.20</td></tr></table>
|
| 135 |
+
|
| 136 |
+
Table 5: Time to train a robust ImageNet classifier using various fast adversarial training methods
|
| 137 |
+
|
| 138 |
+
<table><tr><td>Method</td><td>Precision</td><td>Epochs</td><td>Min/epoch</td><td>Total time (hrs)</td></tr><tr><td>FGSM (phase 1)</td><td>single</td><td>6</td><td>22.65</td><td>2.27</td></tr><tr><td>FGSM (phase 2)</td><td>single</td><td>6</td><td>65.97</td><td>6.60</td></tr><tr><td>FGSM (phase 3)</td><td>single</td><td>3</td><td>114.45</td><td>5.72</td></tr><tr><td>FGSM</td><td>single</td><td>15</td><td>-</td><td>14.59</td></tr><tr><td>Free (m = 4)</td><td>single</td><td>92</td><td>34.04</td><td>52.20</td></tr><tr><td>FGSM (phase 1)</td><td>mixed</td><td>6</td><td>20.07</td><td>2.01</td></tr><tr><td>FGSM (phase 2)</td><td>mixed</td><td>6</td><td>53.39</td><td>5.34</td></tr><tr><td>FGSM (phase 3)</td><td>mixed</td><td>3</td><td>95.93</td><td>4.80</td></tr><tr><td>FGSM</td><td>mixed</td><td>15</td><td>1</td><td>12.14</td></tr><tr><td>Free (m = 4)</td><td>mixed</td><td>92</td><td>25.28</td><td>38.76</td></tr></table>
|
| 139 |
+
|
| 140 |
+
Using the minimum number of epochs needed for each training method to reach a baseline of $45 \%$ robust accuracy, we report the total training time in Table 3. We find that while all adversarial training methods benefit from the DAWNBench improvements, FGSM adversarial training is the fastest, capable of learning a robust CIFAR10 classifier in 6 minutes using only 15 epochs. Interestingly, we also find that PGD and free adversarial training take comparable amounts of time, largely because free adversarial training does not benefit from the cyclic learning rate as much as PGD or FGSM adversarial training.
|
| 141 |
+
|
| 142 |
+
# 5.3 FAST IMAGENET
|
| 143 |
+
|
| 144 |
+
Finally, we apply all of the same techniques (FGSM adversarial training, mixed-precision, and cyclic learning rate) on the ImageNet benchmark. In addition, the top submissions from the DAWNBench competition for ImageNet utilize two more improvements on top of this, the first of which is the removal of weight decay regularization from batch normalization layers. The second addition is to progressively resize images during training, starting with larger batches of smaller images in the beginning and moving on to smaller batches of larger images later. Specifically, training is divided into three phases, where phases 1 and 2 use images resized to 160 and 352 pixels respectively, and phase 3 uses the entire image. We train models to be robust at $\epsilon = 2 / 2 5 5$ and $\epsilon = 4 / 2 5 5$ and compare to free adversarial training in Table 4, showing similar levels of robustness. In addition to using ten restarts, we also report the PGD accuracy with one restart to reproduce the evaluation done by Shafahi et al. (2019).
|
| 145 |
+
|
| 146 |
+
With these techniques, we can train an ImageNet classifier using 15 epochs in 12 hours using FGSM adversarial training, taking a fraction of the cost of free adversarial training as shown in Table 5.7 We compare to the best performing variation of free adversarial training which which uses $m = 4$ minibatch replays over 92 epochs of training (scaled down accordingly to 23 passes over the data). Note that free adversarial training can also be enhanced with mixed-precision arithmetic, which reduces the runtime by $2 5 \%$ , but is still slower than FGSM-based training. Directly combining free adversarial training with the other fast techniques used in FGSM adversarial training for ImageNet results in reduced performance which we describe in Appendix F.
|
| 147 |
+
|
| 148 |
+
# 5.4 CATASTROPHIC OVERFITTING
|
| 149 |
+
|
| 150 |
+
While FGSM adversarial training works in the context of this paper, many other researchers have tried and failed to have FGSM adversarial training work. In addition to using a zero initialization or too large of a step size as seen in Table 1, other design decisions (like specific learning rate schedules or numbers of epochs) for the training procedure can also make it more likely for FGSM adversarial training to fail. However, all of these failure modes result in what we call “catastrophic overfitting”, where the robust accuracy with respect to a PGD adversarial suddenly and drastically drops to $0 \%$ (on the training data). Due to the rapid deterioration of robust performance, these alternative versions of FGSM adversarial training can be salvaged to some degree with a simple early-stopping scheme by measuring PGD accuracy on a small minibatch of training data, and the recovered results for some of these failure modes are shown in Table 1. Catastrophic overfitting and the early-stopping scheme are discussed in more detail in Appendix D.
|
| 151 |
+
|
| 152 |
+
# 5.5 TAKEAWAYS FROM FGSM ADVERSARIAL TRAINING
|
| 153 |
+
|
| 154 |
+
While it may be surprising that FGSM adversarial training can result in robustness to full PGD adversarial attacks, this work highlights some empirical hypotheses and takeaways which we describe below.
|
| 155 |
+
|
| 156 |
+
1. Adversarial examples need to span the entire threat model. One of the reasons why FGSM and $\mathrm { R + F G S M }$ as done by Tramer et al. (2017) may have failed is due to the restricted nature \` of the generated examples: the restricted (or lack of) initialization results in perturbations which perturb each dimension by either 0 or $\pm \epsilon .$ , and so adversarial examples with feature perturbations in between are never seen. This is discussed further in Appendix D. 2. Defenders don’t need strong adversaries during training. This work suggests that rough approximations to the inner optimization problem are sufficient for adversarial training. This is in contrast to the usage of strong adversaries at evaluation time, where it is standard practice to use multiple restarts and a large number of PGD steps.
|
| 157 |
+
|
| 158 |
+
# 6 CONCLUSION
|
| 159 |
+
|
| 160 |
+
Our findings show that FGSM adversarial training, when used with random initialization, can in fact be just as effective as the more costly PGD adversarial training. While a single iteration of FGSM adversarial training is double the cost of free adversarial training, it converges significantly faster, especially with a cyclic learning rate schedule. As a result, we are able to learn adversarially robust classifiers for CIFAR10 in minutes and for ImageNet in hours, even faster than free adversarial training but with comparable levels of robustness. We believe that leveraging these significant reductions in time to train robust models will allow future work to iterate even faster, and accelerate research in learning models which are resistant to adversarial attacks. By demonstrating that extremely weak adversarial training is capable of learning robust models, this work also exposes a new potential direction in more rigorously explaining when approximate solutions to the inner optimization problem are sufficient for robust optimization, and when they fail.
|
| 161 |
+
|
| 162 |
+
# REFERENCES
|
| 163 |
+
|
| 164 |
+
Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. arXiv preprint arXiv:1707.07397, 2017.
|
| 165 |
+
|
| 166 |
+
Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018.
|
| 167 |
+
|
| 168 |
+
Jacob Buckman, Aurko Roy, Colin Raffel, and Ian Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. 2018.
|
| 169 |
+
|
| 170 |
+
Nicholas Carlini. Is ami (attacks meet interpretability) robust to adversarial examples? arXiv preprint arXiv:1902.02322, 2019.
|
| 171 |
+
|
| 172 |
+
Nicholas Carlini and David Wagner. Defensive distillation is not robust to adversarial examples. arXiv preprint arXiv:1607.04311, 2016.
|
| 173 |
+
|
| 174 |
+
Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017a.
|
| 175 |
+
|
| 176 |
+
Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57. IEEE, 2017b.
|
| 177 |
+
|
| 178 |
+
Nicholas Carlini, Anish Athalye, Nicolas Papernot, Wieland Brendel, Jonas Rauber, Dimitris Tsipras, Ian Goodfellow, and Aleksander Madry. On evaluating adversarial robustness. arXiv preprint arXiv:1902.06705, 2019.
|
| 179 |
+
|
| 180 |
+
Jeremy M Cohen, Elan Rosenfeld, and J Zico Kolter. Certified adversarial robustness via randomized smoothing. arXiv preprint arXiv:1902.02918, 2019.
|
| 181 |
+
|
| 182 |
+
Cody Coleman, Deepak Narayanan, Daniel Kang, Tian Zhao, Jian Zhang, Luigi Nardi, Peter Bailis, Kunle Olukotun, Chris Re, and Matei Zaharia. Dawnbench: An end-to-end deep learning bench-´ mark and competition. Training, 100(101):102, 2017.
|
| 183 |
+
|
| 184 |
+
Francesco Croce, Maksym Andriushchenko, and Matthias Hein. Provable robustness of relu networks via maximization of linear regions. arXiv preprint arXiv:1810.07481, 2018.
|
| 185 |
+
|
| 186 |
+
Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 9185–9193, 2018.
|
| 187 |
+
|
| 188 |
+
Logan Engstrom, Andrew Ilyas, and Anish Athalye. Evaluating and understanding the robustness of adversarial logit pairing. arXiv preprint arXiv:1807.10272, 2018.
|
| 189 |
+
|
| 190 |
+
Reuben Feinman, Ryan R Curtin, Saurabh Shintre, and Andrew B Gardner. Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017.
|
| 191 |
+
|
| 192 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
|
| 193 |
+
|
| 194 |
+
Sven Gowal, Krishnamurthy Dvijotham, Robert Stanforth, Rudy Bunel, Chongli Qin, Jonathan Uesato, Timothy Mann, and Pushmeet Kohli. On the effectiveness of interval bound propagation for training verifiably robust models. arXiv preprint arXiv:1810.12715, 2018.
|
| 195 |
+
|
| 196 |
+
Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens Van Der Maaten. Countering adversarial images using input transformations. arXiv preprint arXiv:1711.00117, 2017.
|
| 197 |
+
|
| 198 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 199 |
+
|
| 200 |
+
Harini Kannan, Alexey Kurakin, and Ian Goodfellow. Adversarial logit pairing. arXiv preprint arXiv:1803.06373, 2018.
|
| 201 |
+
|
| 202 |
+
Guy Katz, Clark Barrett, David L Dill, Kyle Julian, and Mykel J Kochenderfer. Reluplex: An efficient smt solver for verifying deep neural networks. In International Conference on Computer Aided Verification, pp. 97–117. Springer, 2017.
|
| 203 |
+
|
| 204 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
|
| 205 |
+
|
| 206 |
+
Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. No need to worry about adversarial examples in object detection in autonomous vehicles. arXiv preprint arXiv:1707.03501, 2017.
|
| 207 |
+
|
| 208 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
|
| 209 |
+
|
| 210 |
+
Pratyush Maini, Eric Wong, and J Zico Kolter. Adversarial robustness against the union of multiple perturbation models. arXiv preprint arXiv:1909.04068, 2019.
|
| 211 |
+
|
| 212 |
+
Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. arXiv preprint arXiv:1702.04267, 2017.
|
| 213 |
+
|
| 214 |
+
Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, et al. Mixed precision training. arXiv preprint arXiv:1710.03740, 2017.
|
| 215 |
+
|
| 216 |
+
Matthew Mirman, Timon Gehr, and Martin Vechev. Differentiable abstract interpretation for provably robust neural networks. In International Conference on Machine Learning, pp. 3575–3583, 2018.
|
| 217 |
+
|
| 218 |
+
Marius Mosbach, Maksym Andriushchenko, Thomas Trost, Matthias Hein, and Dietrich Klakow. Logit pairing methods can fool gradient-based attacks. arXiv preprint arXiv:1810.12042, 2018.
|
| 219 |
+
|
| 220 |
+
Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In 2016 IEEE Symposium on Security and Privacy $( S P )$ , pp. 582–597. IEEE, 2016.
|
| 221 |
+
|
| 222 |
+
Aditi Raghunathan, Jacob Steinhardt, and Percy S Liang. Semidefinite relaxations for certifying robustness to adversarial examples. In Advances in Neural Information Processing Systems, pp. 10877–10887, 2018.
|
| 223 |
+
|
| 224 |
+
Hadi Salman, Greg Yang, Jerry Li, Pengchuan Zhang, Huan Zhang, Ilya Razenshteyn, and Sebastien Bubeck. Provably robust deep learning via adversarially trained smoothed classifiers. arXiv preprint arXiv:1906.04584, 2019.
|
| 225 |
+
|
| 226 |
+
Ali Shafahi, Mahyar Najibi, Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! arXiv preprint arXiv:1904.12843, 2019.
|
| 227 |
+
|
| 228 |
+
Aman Sinha, Hongseok Namkoong, and John Duchi. Certifying some distributional robustness with principled adversarial training. arXiv preprint arXiv:1710.10571, 2017.
|
| 229 |
+
|
| 230 |
+
Leslie N Smith. Cyclical learning rates for training neural networks. In 2017 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 464–472. IEEE, 2017.
|
| 231 |
+
|
| 232 |
+
Leslie N Smith and Nicholay Topin. Super-convergence: Very fast training of residual networks using large learning rates. 2018.
|
| 233 |
+
|
| 234 |
+
Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. arXiv preprint arXiv:1710.10766, 2017.
|
| 235 |
+
|
| 236 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
|
| 237 |
+
|
| 238 |
+
Guanhong Tao, Shiqing Ma, Yingqi Liu, and Xiangyu Zhang. Attacks meet interpretability: Attribute-steered detection of adversarial samples. In Advances in Neural Information Processing Systems, pp. 7717–7728, 2018.
|
| 239 |
+
|
| 240 |
+
Vincent Tjeng, Kai Xiao, and Russ Tedrake. Evaluating robustness of neural networks with mixed integer programming. arXiv preprint arXiv:1711.07356, 2017.
|
| 241 |
+
|
| 242 |
+
Florian Tramer and Dan Boneh. Adversarial training and robustness for multiple perturbations. \` arXiv preprint arXiv:1904.13000, 2019.
|
| 243 |
+
|
| 244 |
+
Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc- \` Daniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
|
| 245 |
+
|
| 246 |
+
Jonathan Uesato, Brendan O’Donoghue, Aaron van den Oord, and Pushmeet Kohli. Adversarial risk and the dangers of evaluating against weak attacks. arXiv preprint arXiv:1802.05666, 2018.
|
| 247 |
+
|
| 248 |
+
Jianyu Wang. Bilateral adversarial training: Towards fast training of more robust models against adversarial attacks. arXiv preprint arXiv:1811.10716, 2018.
|
| 249 |
+
|
| 250 |
+
Eric Wong and J Zico Kolter. Provable defenses against adversarial examples via the convex outer adversarial polytope. arXiv preprint arXiv:1711.00851, 2017.
|
| 251 |
+
|
| 252 |
+
Eric Wong, Frank Schmidt, Jan Hendrik Metzen, and J Zico Kolter. Scaling provable adversarial defenses. In Advances in Neural Information Processing Systems, pp. 8400–8409, 2018.
|
| 253 |
+
|
| 254 |
+
Kai Y Xiao, Vincent Tjeng, Nur Muhammad Shafiullah, and Aleksander Madry. Training for faster adversarial robustness verification via inducing relu stability. arXiv preprint arXiv:1809.03008, 2018.
|
| 255 |
+
|
| 256 |
+
Yuzhe Yang, Guo Zhang, Dina Katabi, and Zhi Xu. Me-net: Towards effective adversarial robustness with matrix estimation. arXiv preprint arXiv:1905.11971, 2019.
|
| 257 |
+
|
| 258 |
+
Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Painless adversarial training using maximal principle. arXiv preprint arXiv:1905.00877, 2019.
|
| 259 |
+
|
| 260 |
+
Table 6: Ablation study showing the performance of $\mathrm { R + F G S M }$ from Tramer et al. (2017) and the \` various changes for the version of FGSM adversarial training done in this paper, over 10 random seeds.
|
| 261 |
+
|
| 262 |
+
<table><tr><td>Method</td><td>Step size</td><td>Initialization</td><td>Robust accuracy</td></tr><tr><td>R+FGSM (Tramer et al., 2017)</td><td>0.15</td><td>Hypercube(0.15)</td><td>34.58 ± 36.06%</td></tr><tr><td>R+FGSM (+full step size)</td><td>0.30</td><td>Hypercube(0.15)</td><td>26.53 ± 32.48%</td></tr><tr><td>R+FGSM(+uniform init.)</td><td>0.15</td><td>Uniform(0.3)</td><td>72.92 ±10.40%</td></tr><tr><td>Uniform + full (ours)</td><td>0.30</td><td>Uniform(0.3)</td><td>86.21 ± 00.75%</td></tr></table>
|
| 263 |
+
|
| 264 |
+
Table 7: Training parameters used for the DAWNBench experiments of Table 1
|
| 265 |
+
|
| 266 |
+
<table><tr><td>Parameter</td><td>FGSM</td><td>PGD</td><td>Free</td></tr><tr><td>Epochs</td><td>30</td><td>40</td><td>96</td></tr><tr><td>Max learning rate</td><td>0.2</td><td>0.2</td><td>0.04</td></tr></table>
|
| 267 |
+
|
| 268 |
+
# A A DIRECT COMPARISON TO $\mathrm { R + F G S M }$ FROM TRAMER ET AL \` . (2017)
|
| 269 |
+
|
| 270 |
+
While a randomized version of FGSM adversarial training was proposed by Tramer et al. (2017), it \` was not shown to be as effective as adversarial training against a PGD adversary. Here, we note the two main differences between our approach and that of Tramer et al. (2017). \`
|
| 271 |
+
|
| 272 |
+
1. The random initialization used is different. For a data point $x$ , we initialize with the uniform distribution in the entire perturbation region with
|
| 273 |
+
|
| 274 |
+
$$
|
| 275 |
+
x ^ { \prime } = x + \mathrm { U n i f o r m } ( - \epsilon , \epsilon ) .
|
| 276 |
+
$$
|
| 277 |
+
|
| 278 |
+
In comparison, Tramer et al. (2017) instead initialize on the surface of a hypercube with \` radius $\epsilon / 2$ with
|
| 279 |
+
|
| 280 |
+
$$
|
| 281 |
+
x ^ { \prime } = x + \frac { \epsilon } { 2 } \mathrm { N o r m a l } ( 0 , 1 ) .
|
| 282 |
+
$$
|
| 283 |
+
|
| 284 |
+
2. The step sizes used for the FGSM step are different. We use a full step size of $\alpha = \epsilon$ whereas Tramer et al. (2017) use a step size of \` $\alpha = \epsilon / 2$ .
|
| 285 |
+
|
| 286 |
+
To study the effect of these two differences, we run all combinations of either initialization with either step size on MNIST. The results are summarized in Table 6.
|
| 287 |
+
|
| 288 |
+
We find that using a uniform initialization adds the greatest marginal improvement to the original $\mathrm { R + F G S M }$ attack, while using a full step size doesn’t seem to help on its own. Implementing both of these improvements results in the form of FGSM adversarial training presented in this paper. Additionally, note that $\mathrm { R + F G S M }$ as done by Tramer et al. (2017) has high variance in robust perfor- \` mance when done over multiple random seeds, whereas our version of FGSM adversarial training is significantly more consistent and has a very low standard deviation over random seeds.
|
| 289 |
+
|
| 290 |
+
# B TRAINING PARAMETERS FOR TABLE 1
|
| 291 |
+
|
| 292 |
+
For all methods, we use a batch size of 128, and SGD optimizer with momentum 0.9 and weight decay $5 * 1 0 ^ { - 4 }$ . We report the average results over 3 random seeds. The remaining parameters for learning rate schedules and number of epochs for the DAWNBench experiments are in Table 7. For runs using early-stopping, we use a 5-step PGD adversary with 1 restart on 1 training minibatch to detect overfitting to the FGSM adversaries, as described in more detail in Section D.
|
| 293 |
+
|
| 294 |
+

|
| 295 |
+
Figure 3: Robust test performance of FGSM adversarial training over different step sizes for $\epsilon =$ 8/255.
|
| 296 |
+
|
| 297 |
+

|
| 298 |
+
Figure 4: Learning curves for FGSM adversarial training plotting the training loss and error rates incurred by an FGSM and PGD adversary when trained with zero-initialization FGSM at $\epsilon = 8 / 2 5 5$ , depicting the catastrophic overfitting where PGD performance suddenly degrades while the model overfits to the FGSM performance.
|
| 299 |
+
|
| 300 |
+
# C OPTIMAL STEP SIZE FOR FGSM ADVERSARIAL TRAINING
|
| 301 |
+
|
| 302 |
+
Here, we test the effect of step size on the performance of FGSM adversarial training. We plot the mean and standard error of the robust accuracy for models trained for 30 epochs over 3 random seeds in Figure 3, and vary the step size from $\alpha = 1 / 2 5 5$ to $\alpha = 1 6 / 2 5 5$ .
|
| 303 |
+
|
| 304 |
+
We find that we get increasing robust performance as we increase the step size up to $\alpha = 1 0 / 2 5 5$ . Beyond this, we see no further benefit, or find that the model is prone to overfitting to the adversarial examples, since the large step size forces the model to overfit to the boundary of the perturbation region.
|
| 305 |
+
|
| 306 |
+
# D CATASTROPHIC OVERFITTING AND THE EFFECT OF EARLY STOPPING
|
| 307 |
+
|
| 308 |
+
While the main experiments in this paper work as is (with the cyclic learning rate and FGSM adversarial training with uniform random initialization), many of the variations of FGSM adversarial training which have been found to not succeed all fail similarly: the model will very rapidly (over the span of a couple epochs) appear to overfit to the FGSM adversarial examples. What was previously a reasonably robust model will quickly transform into a non-robust model which suffers $0 \%$ robust accuracy (with respect to a PGD adversary). This phenomenon, which we call catastrophic overfitting, can be seen in Figure 4 which plots the learning curves for standard, vanilla FGSM adversarial training from zero-initialization.
|
| 309 |
+
|
| 310 |
+
Indeed, one of the reasons for this failure may lie in the lack of diversity in adversarial examples generated by these FGSM adversaries. For example, using a zero initialization or using the random initialization scheme from Tramer et al. (2017) will result in adversarial examples whose features \` have been perturbed by $\{ - \epsilon , 0 , \epsilon \}$ , and so the network learns a decision boundary which is robust only at these perturbation values. This can be verified by running a PGD adversarial attack on models which have catastrophically overfitted, where the perturbations tend to be more in between the origin and the boundary of the threat model (relative to a non-overfitted model, which tends to have perturbations near the boundary), as seen in Figure 5.
|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Figure 5: Histogram of the resulting perturbations from a PGD adversary for each feature for a successfully trained robust CIFAR10 model and a catastrophically overfitted CIFAR10 model.
|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
Figure 6: Robust test performance of FGSM adversarial training over different step sizes for $\epsilon =$ $8 / 2 5 5$ with early stopping to avoid catastrophic overfitting.
|
| 317 |
+
|
| 318 |
+
These failure modes, including the other failure modes discussed in Section 5.4, can be easily detected by evaluating the PGD performance on a small subset of the training data, as the catastrophic failure will result in $0 \%$ robust accuracy for a PGD adversary on the training set. In practice, we find that this can be a simple as a single minibatch with a 5-step PGD adversary, which can be quickly checked at the end of the epoch. If robust accuracy with respect to this adversary suddenly drops, then we have catastrophic overfitting. Using a PGD adversary on a training minibatch to detect catastrophic overfitting, we can early stop to avoid catastrophic overfitting and achieve a reasonable amount of robust performance.
|
| 319 |
+
|
| 320 |
+
For a concrete example, recall from Section C that step sizes larger than $1 1 / 2 5 5$ result in $0 \%$ robust accuracy, due to this catastrophic overfitting phenomenon. By using early stopping to catch the model at its peak performance before overfitting, FGSM adversarial training with larger step sizes can actually achieve some degree of robust accuracy, as shown in Figure 6.
|
| 321 |
+
|
| 322 |
+
Table 8: Training parameters used for Figure 2
|
| 323 |
+
|
| 324 |
+
<table><tr><td>Parameter</td><td>FGSM</td><td>PGD</td><td>Free</td></tr><tr><td>Max learning rate</td><td>0.2</td><td>0.2</td><td>0.04</td></tr></table>
|
| 325 |
+
|
| 326 |
+
Table 9: ImageNet classifiers trained with free adversarial training methods at $m = 3$ minibatch replay when augmented with DAWNBench optimizations, against $\ell _ { \infty }$ perturbations of radius $\epsilon =$ 4/255, where 30 epochs of free training is equivalent to 15 epochs of FGSM training
|
| 327 |
+
|
| 328 |
+
<table><tr><td>Method</td><td>Step size</td><td>Epochs</td><td>Standard acc.</td><td>PGD+1</td><td>PGD+10</td></tr><tr><td>Free+DAWNBench</td><td>4/255</td><td>15</td><td>49.87%</td><td>22.78%</td><td>22.18%</td></tr><tr><td>Free+DAWNBench</td><td>5/255</td><td>15</td><td>50.48%</td><td>22.88%</td><td>22.25%</td></tr><tr><td>Free+DAWNBench</td><td>4/255</td><td>30</td><td>49.87%</td><td>28.17%</td><td>27.08%</td></tr><tr><td>Free+DAWNBench</td><td>5/255</td><td>30</td><td>50.48%</td><td>28.73%</td><td>27.81%</td></tr><tr><td>Free (m = 4)</td><td>4/255</td><td>92</td><td>60.42%</td><td>31.22%</td><td>31.08%</td></tr><tr><td>FGSM</td><td>5/255</td><td>15</td><td>55.45%</td><td>30.28%</td><td>30.18%</td></tr></table>
|
| 329 |
+
|
| 330 |
+
# E TRAINING PARAMETERS FOR FIGURE 2
|
| 331 |
+
|
| 332 |
+
For all methods, we use a batch size of 128, and SGD optimizer with momentum 0.9 and weight decay $5 * 1 0 ^ { - 4 }$ . We report the average results over 3 random seeds. Maximum learning rates used for the cyclic learning rate schedule are shown in Table 8.
|
| 333 |
+
|
| 334 |
+
# F COMBINING FREE ADVERSARIAL TRAINING WITH DAWNBENCH IMPROVEMENTS ON IMAGENET
|
| 335 |
+
|
| 336 |
+
While adding mixed-precision is a direct speedup to free adversarial training without hurting performance, using other optimization tricks such as the cyclic learning rate schedule, progressive resizing, and batch-norm regularization may affect the final performance of free adversarial training. Since ImageNet is too large to run a comprehensive search over the various parameters as was done for CIFAR10 in Table 3, we instead test the performance of free adversarial training when used as a drop-in replacement for FGSM adversarial training with all the same optimizations used for FGSM adversarial training. We use free adversarial training with $m = 3$ minibatch-replay, with 2 epochs for phase one, 2 epochs for phase two, and 1 epoch for phase three to be equivalent to 15 epochs of standard training. $\mathrm { P G D } { + } N$ denotes the accuracy under a PGD adversary with $N$ restarts.
|
| 337 |
+
|
| 338 |
+
A word of caution: this is not to claim that free adversarial training is completely incompatible with the DAWNBench optimizations on ImageNet. By giving free adversarial training more epochs, it may be possible recover the same or better performance. However, tuning the DAWNBench techniques to be optimal for free adversarial training is not the objective of this paper, and so this is merely to show what happens if we naively apply the same DAWNBench tricks used for FGSM adversarial training to free adversarial training. Since free adversarial training requires more epochs even when tuned with DAWNBench improvements for CIFAR10, we suspect that the same behavior occurs here for ImageNet, and so 15 epochs is likely not enough to obtain top performance for free adversarial training. Since one epoch of FGSM adversarial training is equivalent to two epochs of free training, a fairer comparison is to give free adversarial training 30 epochs instead of 15. Even with double the epochs (and thus the same compute time as FGSM adversarial training), we find that it gets closer but doesn’t quite recover the original performance of free adversarial training.
|
parse/train/BJx040EFvH/BJx040EFvH_content_list.json
ADDED
|
@@ -0,0 +1,1849 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "FAST IS BETTER THAN FREE: REVISITING ADVERSARIAL TRAINING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
101,
|
| 9 |
+
627,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Eric Wong∗ Machine Learning Department Carnegie Mellon University Pittsburgh, PA 15213, USA ericwong@cs.cmu.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
387,
|
| 21 |
+
239
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Leslie Rice∗ Computer Science Department Carnegie Mellon University Pittsburgh, PA 15213, USA larice@cs.cmu.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
611,
|
| 30 |
+
170,
|
| 31 |
+
813,
|
| 32 |
+
239
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "J. Zico Kolter ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
184,
|
| 42 |
+
261,
|
| 43 |
+
281,
|
| 44 |
+
275
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Computer Science Department Carnegie Mellon University and Bosch Center for Artifical Intelligence Pittsburgh, PA 15213, USA zkolter@cs.cmu.edu ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
184,
|
| 53 |
+
275,
|
| 54 |
+
436,
|
| 55 |
+
343
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "ABSTRACT ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
454,
|
| 65 |
+
381,
|
| 66 |
+
544,
|
| 67 |
+
396
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Adversarial training, a method for learning robust deep networks, is typically assumed to be more expensive than traditional training due to the necessity of constructing adversarial examples via a first-order method like projected gradient decent (PGD). In this paper, we make the surprising discovery that it is possible to train empirically robust models using a much weaker and cheaper adversary, an approach that was previously believed to be ineffective, rendering the method no more costly than standard training in practice. Specifically, we show that adversarial training with the fast gradient sign method (FGSM), when combined with random initialization, is as effective as PGD-based training but has significantly lower cost. Furthermore we show that FGSM adversarial training can be further accelerated by using standard techniques for efficient training of deep networks, allowing us to learn a robust CIFAR10 classifier with $45 \\%$ robust accuracy to PGD attacks with $\\epsilon = 8 / 2 5 5$ in 6 minutes, and a robust ImageNet classifier with $43 \\%$ robust accuracy at $\\epsilon = 2 / 2 5 5$ in 12 hours, in comparison to past work based on “free” adversarial training which took 10 and 50 hours to reach the same respective thresholds. Finally, we identify a failure mode referred to as “catastrophic overfitting” which may have caused previous attempts to use FGSM adversarial training to fail. All code for reproducing the experiments in this paper as well as pretrained model weights are at https://github.com/locuslab/fast_adversarial. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
233,
|
| 76 |
+
411,
|
| 77 |
+
764,
|
| 78 |
+
676
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "1 INTRODUCTION ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
176,
|
| 88 |
+
703,
|
| 89 |
+
336,
|
| 90 |
+
718
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Although deep network architectures continue to be successful in a wide range of applications, the problem of learning robust deep networks remains an active area of research. In particular, safety and security focused applications are concerned about robustness to adversarial examples, data points which have been adversarially perturbed to fool a model (Szegedy et al., 2013). The goal here is to learn a model which is not only accurate on the data, but also accurate on adversarially perturbed versions of the data. To this end, a number of defenses have been proposed to mitigate the problem and improve the robustness of deep networks, with some of the most reliable being certified defenses and adversarial training. However, both of these approaches come at a non-trivial, additional computational cost, often increasing training time by an order of magnitude over standard training. This has slowed progress in researching robustness in deep networks, due to the computational difficulty in scaling to much larger networks and the inability to rapidly train models when experimenting with new ideas. In response to this difficulty, there has been a recent surge in work that tries to to reduce the complexity of generating an adversarial example, which forms the bulk of the additional computation in adversarial training (Zhang et al., 2019; Shafahi et al., 2019). While these works present reasonable improvements to the runtime of adversarial training, they are still significantly slower than standard training, which has been greatly accelerated due to competitions for optimizing both the speed and cost of training (Coleman et al., 2017). ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
734,
|
| 100 |
+
825,
|
| 101 |
+
901
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
103,
|
| 111 |
+
825,
|
| 112 |
+
174
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "In this work, we argue that adversarial training, in fact, is not as hard as has been suggested by this past line of work. In particular, we revisit one of the the first proposed methods for adversarial training, using the Fast Gradient Sign Method (FGSM) to add adversarial examples to the training process (Goodfellow et al., 2014). Although this approach has long been dismissed as ineffective, we show that by simply introducing random initialization points, FGSM-based training is as effective as projected gradient descent based training while being an order of magnitude more efficient. Moreover, FGSM adversarial training (and to a lesser extent, other adversarial training methods) can be drastically accelerated using standard techniques for efficient training of deep networks, including e.g. cyclic learning rates (Smith & Topin, 2018), mixed-precision training (Micikevicius et al., 2017), and other similar techniques. The method has extremely few free parameters to tune, and can be easily adapted to most training procedures. We further identify a failure mode that we call “catastrophic overfitting”, which may have caused previous attempts at FGSM adversarial training to fail against PGD-based attacks. ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
180,
|
| 122 |
+
825,
|
| 123 |
+
359
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "The end result is that, with these approaches, we are able to train (empirically) robust classifiers far faster than in previous work. Specifically, we train an $\\ell _ { \\infty }$ robust CIFAR10 model to $4 5 \\%$ accuracy at $\\epsilon = 8 / 2 5 \\bar { 5 }$ (the same level attained in previous work) in $6$ minutes; previous papers reported times of 80 hours for PGD-based training (Madry et al., 2017) and 10 hours for the more recent “free” adversarial training method (Shafahi et al., 2019). Similarly, we train an $\\ell _ { \\infty }$ robust ImageNet classifier to $4 3 \\%$ top-1 accuracy at $\\epsilon = 2 / 2 5 5$ (again matching previous results) in 12 hours of training (compared to 50 hours in the best reported previous work that we are aware of (Shafahi et al., 2019)). Both of these times roughly match the comparable time for quickly training a standard non-robust model to reasonable accuracy. We extensively evaluate these results against strong $P G D { \\mathrm { . } }$ - based attacks, and show that they obtain the same empirical performance as the slower, PGD-based training. Thus, we argue that despite the conventional wisdom, adversarially robust training is not actually more challenging than standard training of deep networks, and can be accomplished with the notoriously weak FGSM attack. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
368,
|
| 133 |
+
825,
|
| 134 |
+
547
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "2 RELATED WORK ",
|
| 141 |
+
"text_level": 1,
|
| 142 |
+
"bbox": [
|
| 143 |
+
176,
|
| 144 |
+
575,
|
| 145 |
+
339,
|
| 146 |
+
592
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "After the discovery of adversarial examples by Szegedy et al. (2013), Goodfellow et al. (2014) proposed the Fast Gradient Sign Method (FGSM) to generate adversarial examples with a single gradient step. This method was used to perturb the inputs to the model before performing backpropagation as an early form of adversarial training. This attack was enhanced by adding a randomization step, which was referred to as $\\mathrm { R + F G S M }$ (Tramer et al., 2017). Later, the Basic Iterative \\` Method improved upon FGSM by taking multiple, smaller FGSM steps, ultimately rendering both FGSM-based adversarial training ineffective (Kurakin et al., 2016). This iterative adversarial attack was further strengthened by adding multiple random restarts, and was also incorporated into the adversarial training procedure. These improvements form the basis of what is widely understood today as adversarial training against a projected gradient descent (PGD) adversary, and the resulting method is recognized as an effective approach to learning robust networks (Madry et al., 2017). Since then, the PGD attack and its corresponding adversarial training defense have been augmented with various techniques, such as optimization tricks like momentum to improve the adversary (Dong et al., 2018), combination with other heuristic defenses like matrix estimation (Yang et al., 2019) or logit pairing (Mosbach et al., 2018), and generalization to multiple types of adversarial attacks (Tramer & Boneh, 2019; Maini et al., 2019).\\` ",
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
611,
|
| 156 |
+
825,
|
| 157 |
+
833
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "In addition to adversarial training, a number of other defenses against adversarial attacks have also been proposed. Adversarial defenses span a wide range of methods, such as preprocessing techniques (Guo et al., 2017; Buckman et al., 2018; Song et al., 2017), detection algorithms (Metzen et al., 2017; Feinman et al., 2017; Carlini & Wagner, 2017a), verification and provable defenses (Katz et al., 2017; Sinha et al., 2017; Wong & Kolter, 2017; Raghunathan et al., 2018), and various theoretically motivated heuristics (Xiao et al., 2018; Croce et al., 2018). While certified defenses have been scaled to reasonably sized networks (Wong et al., 2018; Mirman et al., 2018; Gowal et al., 2018; Cohen et al., 2019; Salman et al., 2019), the guarantees don’t match the empirical robustness obtained through adversarial training. ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
840,
|
| 167 |
+
823,
|
| 168 |
+
922
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
103,
|
| 178 |
+
823,
|
| 179 |
+
146
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 2
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "With the proposal of many new defense mechanisms, of great concern in the community is the use of strong attacks for evaluating robustness: weak attacks can give a misleading sense of security, and the history of adversarial examples is littered with adversarial defenses (Papernot et al., 2016; Lu et al., 2017; Kannan et al., 2018; Tao et al., 2018) which were ultimately defeated by stronger attacks (Carlini & Wagner, 2016; 2017b; Athalye et al., 2017; Engstrom et al., 2018; Carlini, 2019). This highlights the difficulty of evaluating adversarial robustness, as pointed out by other work which began to defeat proposed defenses en masse (Uesato et al., 2018; Athalye et al., 2018). Since then, several best practices have been proposed to mitigate this problem (Carlini et al., 2019). ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
152,
|
| 189 |
+
825,
|
| 190 |
+
263
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 2
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Despite the eventual defeat of other adversarial defenses, adversarial training with a PGD adversary remains empirically robust to this day. However, running a strong PGD adversary within an inner loop of training is expensive, and some earlier work in this topic found that taking larger but fewer steps did not always significantly change the resulting robustness of a network (Wang, 2018). To combat the increased computational overhead of the PGD defense, some recent work has looked at regressing the $k$ -step PGD adversary to a variation of its single-step FGSM predecessor called “free” adversarial training, which can be computed with little overhead over standard training by using a single backwards pass to simultaneously update both the model weights and also the input perturbation (Shafahi et al., 2019). Finally, when performing a multi-step PGD adversary, it is possible to cut out redundant calculations during backpropagation when computing adversarial examples for additional speedup (Zhang et al., 2019). ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
174,
|
| 199 |
+
270,
|
| 200 |
+
825,
|
| 201 |
+
424
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 2
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "Although these improvements are certainly faster than the standard adversarial training procedure, they are not much faster than traditional training methods, and can still take hours to days to compute. On the other hand, top performing training methods from the DAWNBench competition (Coleman et al., 2017) are able to train CIFAR10 and ImageNet architectures to standard benchmark metrics in mere minutes and hours respectively, using only a modest amount of computational resources. Although some of the techniques can be quite problem specific for achieving bleedingedge performance, more general techniques such as cyclic learning rates (Smith & Topin, 2018) and half-precision computations (Micikevicius et al., 2017) have been quite successful in the top ranking submissions, and can also be useful for adversarial training. ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
430,
|
| 211 |
+
825,
|
| 212 |
+
556
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 2
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "3 ADVERSARIAL TRAINING OVERVIEW ",
|
| 219 |
+
"text_level": 1,
|
| 220 |
+
"bbox": [
|
| 221 |
+
174,
|
| 222 |
+
577,
|
| 223 |
+
511,
|
| 224 |
+
592
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "Adversarial training is a method for learning networks which are robust to adversarial attacks. Given a network $f _ { \\theta }$ parameterized by $\\theta$ , a dataset $( x _ { i } , y _ { i } )$ , a loss function $\\ell$ and a threat model $\\Delta$ , the learning problem is typically cast as the following robust optimization problem, ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
174,
|
| 233 |
+
607,
|
| 234 |
+
825,
|
| 235 |
+
650
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "equation",
|
| 241 |
+
"img_path": "images/fa46ddd142ee8b788fd55b2be35f7547cfaa21e1dfcb6c02daa547fe63815539.jpg",
|
| 242 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\theta } \\sum _ { i } \\operatorname* { m a x } _ { \\delta \\in \\Delta } \\ell ( f _ { \\theta } ( x _ { i } + \\delta ) , y _ { i } ) .\n$$",
|
| 243 |
+
"text_format": "latex",
|
| 244 |
+
"bbox": [
|
| 245 |
+
395,
|
| 246 |
+
665,
|
| 247 |
+
604,
|
| 248 |
+
699
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "A typical choice for a threat model is to take $\\Delta = \\{ \\delta : \\| \\delta \\| _ { \\infty } \\leq \\epsilon \\}$ for some $\\epsilon > 0$ . This is the $\\ell _ { \\infty }$ threat model used by Madry et al. (2017) and is the setting we study in this paper. The procedure for adversarial training is to use some adversarial attack to approximate the inner maximization over $\\Delta$ , followed by some variation of gradient descent on the model parameters $\\theta$ . For example, one of the earliest versions of adversarial training used the Fast Gradient Sign Method to approximate the inner maximization. This could be seen as a relatively inaccurate approximation of the inner maximization for $\\ell _ { \\infty }$ perturbations, and has the following closed form (Goodfellow et al., 2014): ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
173,
|
| 257 |
+
708,
|
| 258 |
+
825,
|
| 259 |
+
808
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "equation",
|
| 265 |
+
"img_path": "images/c92ee70a12e0bd7ff7e8b68dd3056d50ac3a969baf36235bc6c540a5ccf40681.jpg",
|
| 266 |
+
"text": "$$\n\\delta ^ { \\star } = \\epsilon \\cdot \\mathrm { s i g n } \\big ( \\nabla _ { x } \\ell ( f ( x ) , y ) \\big ) .\n$$",
|
| 267 |
+
"text_format": "latex",
|
| 268 |
+
"bbox": [
|
| 269 |
+
401,
|
| 270 |
+
827,
|
| 271 |
+
596,
|
| 272 |
+
844
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "A better approximation of the inner maximization is to take multiple, smaller FGSM steps of size $\\alpha$ instead. When the iterate leaves the threat model, it is projected back to the set $\\Delta$ (for $\\ell _ { \\infty }$ perturbations. This is equivalent to clipping $\\delta$ to the interval $[ - \\epsilon , \\epsilon ] )$ . Since this is only a local approximation of a non-convex function, multiple random restarts within the threat model $\\Delta$ typically improve the approximation of the inner maximization even further. A combination of all these techniques is ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
853,
|
| 282 |
+
823,
|
| 283 |
+
924
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "table",
|
| 289 |
+
"img_path": "images/bf535434bbef8ae7e539a913355910fd0d26c7f775d8814ea88d36a895054d3f.jpg",
|
| 290 |
+
"table_caption": [],
|
| 291 |
+
"table_footnote": [],
|
| 292 |
+
"table_body": "<table><tr><td>Algorithm 1 PGD adversarial training for T epochs, given some radius ∈,adversarial step size α and N PGD steps and a dataset of size M for a network fe</td></tr><tr><td>fort=1...Tdo fori=1...Mdo</td></tr><tr><td>// Perform PGD adversarial attack</td></tr><tr><td>δ = O // or randomly initialized for j=1...N do</td></tr><tr><td>δ=δ+α·sign(Vsl(fe(xi +δ),yi))</td></tr><tr><td>δ = max(min(δ,ε),-∈) end for</td></tr><tr><td>0 = 0 - Vθl(fe(xi + δ),yi) // Update model weights with some optimizer, e.g. SGD</td></tr><tr><td>end for end for</td></tr></table>",
|
| 293 |
+
"bbox": [
|
| 294 |
+
173,
|
| 295 |
+
101,
|
| 296 |
+
826,
|
| 297 |
+
292
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 3
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "Algorithm 2 “Free” adversarial training for $T$ epochs, given some radius \u000f, $N$ minibatch replays, and a dataset of size $M$ for a network $f _ { \\theta }$ ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
308,
|
| 307 |
+
825,
|
| 308 |
+
338
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "$\\delta = 0$ \n// Iterate T/N times to account for minibatch replays and run for T total epochs \nfor $t = 1 \\ldots T / N$ do for $i = 1 \\dots M$ do // Perform simultaneous FGSM adversarial attack and model weight updates $T$ times for $j = 1 \\ldots N$ do // Compute gradients for perturbation and model weights simultaneously $\\nabla _ { \\boldsymbol { \\delta } } , \\nabla _ { \\boldsymbol { \\theta } } = \\nabla \\ell ( f _ { \\boldsymbol { \\theta } } ( x _ { i } + \\boldsymbol { \\delta } ) , y _ { i } )$ $\\delta = \\delta + \\epsilon \\cdot \\mathrm { s i g n } ( \\nabla _ { \\delta } )$ $\\delta = \\operatorname* { m a x } ( \\operatorname* { m i n } ( \\delta , \\epsilon ) , - \\epsilon )$ $\\theta = \\theta - \\nabla _ { \\theta }$ // Update model weights with some optimizer, e.g. SGD end for end for \nend for ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
179,
|
| 317 |
+
340,
|
| 318 |
+
785,
|
| 319 |
+
539
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "known as the PGD adversary (Madry et al., 2017), and its usage in adversarial training is summarized in Algorithm 1. ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
176,
|
| 328 |
+
565,
|
| 329 |
+
821,
|
| 330 |
+
594
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Note that the number of gradient computations here is proportional to $O ( M N )$ in a single epoch, where $M$ is the size of the dataset and $N$ is the number of steps taken by the PGD adversary. This is $N$ times greater than standard training (which has $O ( M )$ gradient computations per epoch), and so adversarial training is typically $N$ times slower than standard training. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
174,
|
| 339 |
+
602,
|
| 340 |
+
825,
|
| 341 |
+
657
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "3.1 “FREE” ADVERSARIAL TRAINING ",
|
| 348 |
+
"text_level": 1,
|
| 349 |
+
"bbox": [
|
| 350 |
+
176,
|
| 351 |
+
676,
|
| 352 |
+
444,
|
| 353 |
+
690
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "To get around this slowdown of a factor of $N$ , Shafahi et al. (2019) instead propose “free” adversarial training. This method takes FGSM steps with full step sizes $\\alpha = \\epsilon$ followed by updating the model weights for $N$ iterations on the same minibatch (also referred to as “minibatch replays”). The algorithm is summarized in Algorithm 2. Note that perturbations are not reset between minibatches. To account for the additional computational cost of minibatch replay, the total number of epochs is reduced by a factor of $N$ to make the total cost equivalent to $T$ epochs of standard training. Although “free” adversarial training is faster than the standard PGD adversarial training, it is not as fast as we’d like: Shafahi et al. (2019) need to run over 200 epochs in over 10 hours to learn a robust CIFAR10 classifier and two days to learn a robust ImageNet classifier, whereas standard training can be accomplished in minutes and hours for the same respective tasks. ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
174,
|
| 362 |
+
703,
|
| 363 |
+
825,
|
| 364 |
+
842
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "4 FAST ADVERSARIAL TRAINING ",
|
| 371 |
+
"text_level": 1,
|
| 372 |
+
"bbox": [
|
| 373 |
+
176,
|
| 374 |
+
863,
|
| 375 |
+
462,
|
| 376 |
+
878
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "To speed up adversarial training and move towards the state of the art in fast standard training methods, we first highlight the main empirical contribution of the paper: that FGSM adversarial training combined with random initialization is just as effective a defense as PGD-based training. Following this, we discuss several techniques from the DAWNBench competition (Coleman et al., 2017) that are applicable to all adversarial training methods, which reduce the total number of epochs needed for convergence with cyclic learning rates and further speed up computations with mixedprecision arithmetic. ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
173,
|
| 385 |
+
895,
|
| 386 |
+
823,
|
| 387 |
+
924
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 3
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "table",
|
| 393 |
+
"img_path": "images/c156d72fb057c3bbd888dcb1b43ba37e37a4fe777f7db8750720b2be98981c52.jpg",
|
| 394 |
+
"table_caption": [
|
| 395 |
+
"Algorithm 3 FGSM adversarial training for $T$ epochs, given some radius \u000f, $N$ PGD steps, step size $\\alpha$ , and a dataset of size $M$ for a network $f _ { \\theta }$ "
|
| 396 |
+
],
|
| 397 |
+
"table_footnote": [],
|
| 398 |
+
"table_body": "<table><tr><td>fort=1...Tdo fori=1...Mdo</td><td></td></tr><tr><td>//Perform FGSMadversarial attack</td><td></td></tr><tr><td>δ=Uniform(-∈,∈)</td><td></td></tr><tr><td>δ=δ+α·sign(Vsl(fe(xi+δ),yi))</td><td></td></tr><tr><td>δ = max(min(δ,ε),-∈)</td><td></td></tr><tr><td>end for</td><td>0 = 0- Vθl(fe(xi + δ),yi) // Update model weights with some optimizer, e.g. SGD</td></tr><tr><td>end for</td><td></td></tr></table>",
|
| 399 |
+
"bbox": [
|
| 400 |
+
179,
|
| 401 |
+
135,
|
| 402 |
+
792,
|
| 403 |
+
263
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 4
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "table",
|
| 409 |
+
"img_path": "images/957af0f68e9eb25f5dd6724f243ba764ec0adf46c5cda26df75ddf459f1353cc.jpg",
|
| 410 |
+
"table_caption": [
|
| 411 |
+
"Table 1: Standard and robust performance of various adversarial training methods on CIFAR10 for $\\epsilon = 8 / 2 5 5$ and their corresponding training times "
|
| 412 |
+
],
|
| 413 |
+
"table_footnote": [],
|
| 414 |
+
"table_body": "<table><tr><td>Method</td><td>Standard accuracy</td><td>PGD (∈= 8/255)</td><td>Time (min)</td></tr><tr><td>FGSM+ DAWNBench</td><td></td><td></td><td></td></tr><tr><td>+ zero init</td><td>85.18%</td><td>0.00%</td><td>12.37</td></tr><tr><td>+ early stopping</td><td>71.14%</td><td>38.86%</td><td>7.89</td></tr><tr><td>+ previous init</td><td>86.02%</td><td>42.37%</td><td>12.21</td></tr><tr><td>+ random init</td><td>85.32%</td><td>44.01%</td><td>12.33</td></tr><tr><td>+ α = 10/255 step size</td><td>83.81%</td><td>46.06%</td><td>12.17</td></tr><tr><td>+ α = 16/255 step size</td><td>86.05%</td><td>0.00%</td><td>12.06</td></tr><tr><td>+ early stopping</td><td>70.93%</td><td>40.38%</td><td>8.81</td></tr><tr><td>“Free” (m= 8) (Shafahi et al.,2019)1</td><td>85.96%</td><td>46.33%</td><td>785</td></tr><tr><td>+ DAWNBench</td><td>78.38%</td><td>46.18%</td><td>20.91</td></tr><tr><td>PGD-7 (Madry et al., 2017)2</td><td>87.30%</td><td>45.80%</td><td>4965.71</td></tr><tr><td>+ DAWNBench</td><td>82.46%</td><td>50.69%</td><td>68.8</td></tr></table>",
|
| 415 |
+
"bbox": [
|
| 416 |
+
176,
|
| 417 |
+
321,
|
| 418 |
+
823,
|
| 419 |
+
529
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 4
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "",
|
| 426 |
+
"bbox": [
|
| 427 |
+
173,
|
| 428 |
+
559,
|
| 429 |
+
825,
|
| 430 |
+
630
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 4
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "4.1 REVISITING FGSM ADVERSARIAL TRAINING ",
|
| 437 |
+
"text_level": 1,
|
| 438 |
+
"bbox": [
|
| 439 |
+
174,
|
| 440 |
+
647,
|
| 441 |
+
529,
|
| 442 |
+
661
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 4
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "Despite being quite similar to FGSM adversarial training, free adversarial training is empirically robust against PGD attacks whereas FGSM adversarial training is not believed to be robust. To analyze why, we identify a key difference between the methods: a property of free adversarial training is that the perturbation from the previous iteration is used as the initial starting point for the next iteration. However, there is little reason to believe that an adversarial perturbation for a previous minibatch is a reasonable starting point for the next minibatch. As a result, we hypothesize that the main benefit comes from simply starting from a non-zero initial perturbation. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
174,
|
| 451 |
+
672,
|
| 452 |
+
825,
|
| 453 |
+
770
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 4
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "In light of this difference, our approach is to use FGSM adversarial training with random initialization for the perturbation, as shown in Algorithm 3. We find that, in contrast to what was previously believed, this simple adjustment to FGSM adversarial training can be used as an effective defense on par with PGD adversarial training. Crucially, we find that starting from a non-zero initial perturbation is the primary driver for success, regardless of the actual initialization. In fact, both starting with the previous minibatch’s perturbation or initializing from a uniformly random perturbation allow FGSM adversarial training to succeed at being robust to full-strength PGD adversarial attacks. Note that randomized initialization for FGSM is not a new idea and was previously studied by Tramer et al. (2017). Crucially, Tram \\` er et al. (2017) use a different, more restricted random initial- \\` ization and step size, which does not result in models robust to full-strength PGD adversaries. A more detailed comparison of their approach with ours is in Appendix A. ",
|
| 460 |
+
"bbox": [
|
| 461 |
+
174,
|
| 462 |
+
777,
|
| 463 |
+
825,
|
| 464 |
+
861
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "",
|
| 471 |
+
"bbox": [
|
| 472 |
+
174,
|
| 473 |
+
103,
|
| 474 |
+
823,
|
| 475 |
+
172
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 5
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "To test the effect of initialization in FGSM adversarial training, we train several models to be robust at a radius $\\epsilon = 8 / 2 5 5$ on CIFAR10, starting with the most “pure” form of FGSM, which takes steps of size $\\alpha = \\epsilon$ from a zero-initialized perturbation. The results, given in Table 1, are consistent with the literature, and show that the model trained with zero-initialization is not robust against a PGD adversary. However, surprisingly, simply using a random or previous-minibatch initialization instead of a zero initialization actually results in reasonable robustness levels (with random initialization performing slightly better) that are comparable to both free and PGD adversarial training methods. The adversarial accuracies in Table 1 are calculated using a PGD adversary with 50 iterations, step size $\\alpha = 2 / 2 5 5$ , and 10 random restarts. Specific optimization parameters used for training these models can be found in Appendix B. ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
180,
|
| 485 |
+
825,
|
| 486 |
+
319
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 5
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "FGSM step size Note that an FGSM step with size $\\alpha = \\epsilon$ from a non-zero initialization is not guaranteed to lie on the boundary of the $\\ell _ { \\infty }$ ball, and so this defense could potentially be seen as too weak. We find that increasing the step size by a factor of 1.25 to $\\alpha = 1 0 / 2 5 5$ further improved the robustness of the model so that it is on par with the best reported result from free adversarial training. However, we also found that forcing the resulting perturbation to lie on the boundary with a step size of $\\alpha = 2 \\epsilon$ resulted in catastrophic overfitting: it does not produce a model robust to adversarial attacks. These two failure modes (starting from a zero-initialized perturbation and generating perturbations at the boundary) may explain why previous attempts at FGSM adversarial training failed, as the model overfits to a restricted threat model, and is described in more detail in Section 5.4. A full curve showing the effect of a range of FGSM step sizes on the robust performance can be found in Appendix C. ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
174,
|
| 495 |
+
337,
|
| 496 |
+
825,
|
| 497 |
+
489
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 5
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "Computational complexity A second key difference between FGSM and free adversarial training is that the latter uses a single backwards pass to compute gradients for both the perturbation and the model weights while repeating the same minibatch $m$ times in a row, called “minibatch replay”. In comparison, the FGSM adversarial training does not need to repeat minibatches, but needs two backwards passes to compute gradients separately for the perturbation and the model weights. As a result, the computational complexity for an epoch of FGSM adversarial training is not truly free and is equivalent to two epochs of standard training. ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
174,
|
| 506 |
+
507,
|
| 507 |
+
825,
|
| 508 |
+
604
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 5
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "4.2 DAWNBENCH IMPROVEMENTS ",
|
| 515 |
+
"text_level": 1,
|
| 516 |
+
"bbox": [
|
| 517 |
+
176,
|
| 518 |
+
625,
|
| 519 |
+
431,
|
| 520 |
+
638
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 5
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "Although free adversarial training is of comparable cost per iteration to traditional standard training methods, it is not quite comparable in total cost to more recent advancements in fast methods for standard training. Notably, top submissions to the DAWNBench competition have shown that CIFAR10 and ImageNet classifiers can be trained at significantly quicker times and at much lower cost than traditional training methods. Although some of the submissions can be quite unique in their approaches, we identify two generally applicable techniques which have a significant impact on the convergence rate and computational speed of standard training. ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
651,
|
| 530 |
+
825,
|
| 531 |
+
748
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 5
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "Cyclic learning rate Introduced by Smith (2017) for improving convergence and reducing the amount of tuning required when training networks, a cyclic schedule for a learning rate can drastically reduce the number of epochs required for training deep networks (Smith & Topin, 2018). A simple cyclic learning rate schedules the learning rate linearly from zero, to a maximum learning rate, and back down to zero (examples can be found in Figure 1). Using a cyclic learning rate allows CIFAR10 architectures to converge to benchmark accuracies in tens of epochs instead of hundreds, and is a crucial component of some of the top DAWNBench submissions. ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
174,
|
| 540 |
+
766,
|
| 541 |
+
825,
|
| 542 |
+
864
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 5
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Mixed-precision arithmetic With newer GPU architectures coming with tensor cores specifically built for rapid half-precision calculations, using mixed-precision arithmetic when training deep networks can also provide significant speedups for standard training (Micikevicius et al., 2017). This can drastically reduce the memory utilization, and when tensor cores are available, also reduce runtime. In some DAWNBench submissions, switching to mixed-precision computations was key to achieving fast training while keeping costs low. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
176,
|
| 551 |
+
882,
|
| 552 |
+
823,
|
| 553 |
+
924
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 5
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "image",
|
| 559 |
+
"img_path": "images/2d5e9c39d0474672bdef40131c28969bd68a9e2c32dfc5142d5be8b030760579.jpg",
|
| 560 |
+
"image_caption": [
|
| 561 |
+
"Figure 1: Cyclic learning rates used for FGSM adversarial training on CIFAR10 and ImageNet over epochs. The ImageNet cyclic schedule is decayed further by a factor of 10 in the second and third phases. "
|
| 562 |
+
],
|
| 563 |
+
"image_footnote": [],
|
| 564 |
+
"bbox": [
|
| 565 |
+
258,
|
| 566 |
+
97,
|
| 567 |
+
741,
|
| 568 |
+
208
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 6
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "table",
|
| 574 |
+
"img_path": "images/c20b8128223ef34c8f80074dbb6241b08e681c8dd2ab46c0aa67815582f5920d.jpg",
|
| 575 |
+
"table_caption": [
|
| 576 |
+
"Table 2: Robustness of FGSM and PGD adversarial training on MNIST "
|
| 577 |
+
],
|
| 578 |
+
"table_footnote": [],
|
| 579 |
+
"table_body": "<table><tr><td>Method</td><td>Standard accuracy</td><td>PGD (ε = 0.1)</td><td>PGD (ε = 0.3)</td><td>Verified (ε = 0.1)</td></tr><tr><td>PGD</td><td>99.20%</td><td>97.66%</td><td>89.90%</td><td>96.7%</td></tr><tr><td>FGSM</td><td>99.20%</td><td>97.53%</td><td>88.77%</td><td>96.8%</td></tr></table>",
|
| 580 |
+
"bbox": [
|
| 581 |
+
197,
|
| 582 |
+
309,
|
| 583 |
+
802,
|
| 584 |
+
362
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 6
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "",
|
| 591 |
+
"bbox": [
|
| 592 |
+
176,
|
| 593 |
+
395,
|
| 594 |
+
823,
|
| 595 |
+
438
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 6
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "We adopt these two techniques for use in adversarial training, which allows us to drastically reduce the number of training epochs as well as the runtime on GPU infrastructure with tensor cores, while using modest amounts of computational resources. Notably, both of these improvements can be easily applied to existing implementations of adversarial training by adding a few lines of code with very little additional engineering effort, and so are easily accessible by the general research community. ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
174,
|
| 604 |
+
444,
|
| 605 |
+
825,
|
| 606 |
+
527
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 6
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "5 EXPERIMENTS ",
|
| 613 |
+
"text_level": 1,
|
| 614 |
+
"bbox": [
|
| 615 |
+
176,
|
| 616 |
+
549,
|
| 617 |
+
326,
|
| 618 |
+
565
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 6
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "To demonstrate the effectiveness of FGSM adversarial training with fast training methods, we run a number of experiments on MNIST, CIFAR10, and ImageNet benchmarks. All CIFAR10 experiments in this paper are run on a single GeForce RTX 2080ti using the PreAct ResNet18 architecture, and all ImageNet experiments are run on a single machine with four GeForce RTX 2080tis using the ResNet50 architecture (He et al., 2016). Repositories for reproducing all experiments and the corresponding trained model weights are available at https://github.com/locuslab/fast_ adversarial. ",
|
| 625 |
+
"bbox": [
|
| 626 |
+
174,
|
| 627 |
+
582,
|
| 628 |
+
825,
|
| 629 |
+
679
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 6
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "All experiments using FGSM adversarial training in this section are carried out with random initial starting points and step size $\\alpha = 1 . 2 5 \\epsilon$ as described in Section 4.1. All PGD adversaries used at evaluation are run with 10 random restarts for 50 iterations (with the same hyperparameters as those used by Shafahi et al. (2019) but further strengthened with random restarts). Speedup with mixedprecision was incorporated with the Apex amp package at the O1 optimization level for ImageNet experiments and O2 without loss scaling for CIFAR10 experiments.3 ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
174,
|
| 638 |
+
685,
|
| 639 |
+
825,
|
| 640 |
+
770
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 6
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "5.1 VERIFIED PERFORMANCE ON MNIST ",
|
| 647 |
+
"text_level": 1,
|
| 648 |
+
"bbox": [
|
| 649 |
+
178,
|
| 650 |
+
789,
|
| 651 |
+
473,
|
| 652 |
+
803
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "Since the FGSM attack is known to be significantly weaker than the PGD attack, it is understandable if the reader is still skeptical of the true robustness of the models trained using this method. To demonstrate that FGSM adversarial training confers real robustness to the model, in addition to evaluating against a PGD adversary, we leverage mixed-integer linear programming (MILP) methods from formal verification to calculate the exact robustness of small, but verifiable models (Tjeng et al., 2017). We train two convolutional networks with 16 and 32 convolutional filters followed by a fully connected layer of 100 units, the same architecture used by Tjeng et al. (2017). We use both PGD and FGSM adversarial training at $\\epsilon = 0 . 3$ , where the PGD adversary for training has 40 iterations with step size 0.01 as done by Madry et al. (2017). The exact verification results can be seen in Table 2, where we find that FGSM adversarial training confers empirical and verified robustness which is nearly indistinguishable to that of PGD adversarial training on MNIST.4 ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
174,
|
| 661 |
+
815,
|
| 662 |
+
823,
|
| 663 |
+
885
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 6
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "image",
|
| 669 |
+
"img_path": "images/b00d6eb5af7a8fe3ce93e02453db494ae8ae55edcabe39e69549c6716302c36b.jpg",
|
| 670 |
+
"image_caption": [
|
| 671 |
+
"Figure 2: Performance of models trained on CIFAR10 at $\\epsilon = 8 / 2 5 5$ with cyclic learning rates and half precision, given varying numbers of epochs across different adversarial training methods. Each point denotes the average model performance over 3 independent runs, where the $x$ axis denotes the number of epochs $N$ the model was trained for, and the $y$ axis denotes the resulting accuracy. The orange dots measure accuracy on natural images and the blue dots plot the empirical robust accuracy on adversarial images. The vertical dotted line indicates the minimum number of epochs needed to train a model to $45 \\%$ robust accuracy. "
|
| 672 |
+
],
|
| 673 |
+
"image_footnote": [],
|
| 674 |
+
"bbox": [
|
| 675 |
+
196,
|
| 676 |
+
97,
|
| 677 |
+
808,
|
| 678 |
+
209
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 7
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "table",
|
| 684 |
+
"img_path": "images/cd09cef7de15caf031c0adbc0bd64524b341ce051c1c3993ed17f3b9c4c758b3.jpg",
|
| 685 |
+
"table_caption": [
|
| 686 |
+
"Table 3: Time to train a robust CIFAR10 classifier to $45 \\%$ robust accuracy using various adversarial training methods with the DAWNBench techniques of cyclic learning rates and mixed-precision arithmetic, showing significant speedups for all forms of adversarial training. "
|
| 687 |
+
],
|
| 688 |
+
"table_footnote": [],
|
| 689 |
+
"table_body": "<table><tr><td>Method</td><td>Epochs</td><td>Seconds/epoch</td><td>Total time (minutes)</td></tr><tr><td>DAWNBench +PGD-7</td><td>10</td><td>104.94</td><td>17.49</td></tr><tr><td>DAWNBench + Free (m = 8)</td><td>80</td><td>13.08</td><td>17.44</td></tr><tr><td>DAWNBench + FGSM</td><td>15</td><td>25.36</td><td>6.34</td></tr><tr><td>PGD-7 (Madry et al., 2017)5</td><td>205</td><td>1456.22</td><td>4965.71</td></tr><tr><td>Free (m = 8) (Shafahi et al.,2019)6</td><td>205</td><td>197.77</td><td>674.39</td></tr></table>",
|
| 690 |
+
"bbox": [
|
| 691 |
+
192,
|
| 692 |
+
400,
|
| 693 |
+
805,
|
| 694 |
+
503
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 7
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "",
|
| 701 |
+
"bbox": [
|
| 702 |
+
173,
|
| 703 |
+
542,
|
| 704 |
+
825,
|
| 705 |
+
627
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 7
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "5.2 FAST CIFAR10 ",
|
| 712 |
+
"text_level": 1,
|
| 713 |
+
"bbox": [
|
| 714 |
+
176,
|
| 715 |
+
654,
|
| 716 |
+
325,
|
| 717 |
+
667
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 7
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "We begin our CIFAR10 experiments by combining the DAWNBench improvements from Section 4.2 with various forms of adversarial training. For $N$ epochs, we use a cyclic learning rate that increases linearly from 0 to $\\lambda$ over the first $N / 2$ epochs, then decreases linearly from $\\lambda$ to 0 for the remaining epochs, where $\\lambda$ is the maximum learning rate. For each method, we individually tune $\\lambda$ to be as large as possible without causing the training loss to diverge, which is the recommended learning rate test from Smith & Topin (2018). ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
174,
|
| 726 |
+
684,
|
| 727 |
+
825,
|
| 728 |
+
767
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 7
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "To identify the minimum number of epochs needed for each adversarial training method, we repeatedly run each method over a range of maximum epochs $N$ , and then plot the final robustness of each trained model in Figure 2. While all the adversarial training methods benefit greatly from the cyclic learning rate schedule, we find that both FGSM and PGD adversarial training require much fewer epochs than free adversarial training, and consequently reap the greatest speedups. ",
|
| 735 |
+
"bbox": [
|
| 736 |
+
173,
|
| 737 |
+
775,
|
| 738 |
+
825,
|
| 739 |
+
844
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 7
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "table",
|
| 745 |
+
"img_path": "images/4080e8a05d2e102729e9d4377d8b44f0b7615aefe5caec1fbafec178232bd238.jpg",
|
| 746 |
+
"table_caption": [
|
| 747 |
+
"Table 4: Imagenet classifiers trained with adversarial training methods at $\\epsilon = 2 / 2 5 5$ and $\\epsilon = 4 / 2 5 5$ . "
|
| 748 |
+
],
|
| 749 |
+
"table_footnote": [],
|
| 750 |
+
"table_body": "<table><tr><td>Method</td><td>E</td><td>Standard acc.</td><td>PGD+1 restart</td><td>PGD+10 restarts</td><td>Total time (hrs)</td></tr><tr><td rowspan=\"2\">FGSM Free (m = 4)</td><td>2/255</td><td>60.90%</td><td>43.46%</td><td>43.43%</td><td>12.14</td></tr><tr><td>2/255</td><td>64.37%</td><td>43.31%</td><td>43.28%</td><td>52.20</td></tr><tr><td>FGSM</td><td>4/255</td><td>55.45%</td><td>30.28%</td><td>30.18%</td><td>12.14</td></tr><tr><td>Free (m = 4)</td><td>4/255</td><td>60.42%</td><td>31.22%</td><td>31.08%</td><td>52.20</td></tr></table>",
|
| 751 |
+
"bbox": [
|
| 752 |
+
173,
|
| 753 |
+
133,
|
| 754 |
+
825,
|
| 755 |
+
220
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 8
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "table",
|
| 761 |
+
"img_path": "images/bc1d658c24af169e36bab16aafaae03f0a0dc0ebd8ca8c6d2682d3033e4a2c7c.jpg",
|
| 762 |
+
"table_caption": [
|
| 763 |
+
"Table 5: Time to train a robust ImageNet classifier using various fast adversarial training methods "
|
| 764 |
+
],
|
| 765 |
+
"table_footnote": [],
|
| 766 |
+
"table_body": "<table><tr><td>Method</td><td>Precision</td><td>Epochs</td><td>Min/epoch</td><td>Total time (hrs)</td></tr><tr><td>FGSM (phase 1)</td><td>single</td><td>6</td><td>22.65</td><td>2.27</td></tr><tr><td>FGSM (phase 2)</td><td>single</td><td>6</td><td>65.97</td><td>6.60</td></tr><tr><td>FGSM (phase 3)</td><td>single</td><td>3</td><td>114.45</td><td>5.72</td></tr><tr><td>FGSM</td><td>single</td><td>15</td><td>-</td><td>14.59</td></tr><tr><td>Free (m = 4)</td><td>single</td><td>92</td><td>34.04</td><td>52.20</td></tr><tr><td>FGSM (phase 1)</td><td>mixed</td><td>6</td><td>20.07</td><td>2.01</td></tr><tr><td>FGSM (phase 2)</td><td>mixed</td><td>6</td><td>53.39</td><td>5.34</td></tr><tr><td>FGSM (phase 3)</td><td>mixed</td><td>3</td><td>95.93</td><td>4.80</td></tr><tr><td>FGSM</td><td>mixed</td><td>15</td><td>1</td><td>12.14</td></tr><tr><td>Free (m = 4)</td><td>mixed</td><td>92</td><td>25.28</td><td>38.76</td></tr></table>",
|
| 767 |
+
"bbox": [
|
| 768 |
+
246,
|
| 769 |
+
284,
|
| 770 |
+
751,
|
| 771 |
+
478
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 8
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "Using the minimum number of epochs needed for each training method to reach a baseline of $45 \\%$ robust accuracy, we report the total training time in Table 3. We find that while all adversarial training methods benefit from the DAWNBench improvements, FGSM adversarial training is the fastest, capable of learning a robust CIFAR10 classifier in 6 minutes using only 15 epochs. Interestingly, we also find that PGD and free adversarial training take comparable amounts of time, largely because free adversarial training does not benefit from the cyclic learning rate as much as PGD or FGSM adversarial training. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
173,
|
| 780 |
+
522,
|
| 781 |
+
825,
|
| 782 |
+
621
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 8
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "5.3 FAST IMAGENET ",
|
| 789 |
+
"text_level": 1,
|
| 790 |
+
"bbox": [
|
| 791 |
+
176,
|
| 792 |
+
651,
|
| 793 |
+
331,
|
| 794 |
+
665
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 8
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "Finally, we apply all of the same techniques (FGSM adversarial training, mixed-precision, and cyclic learning rate) on the ImageNet benchmark. In addition, the top submissions from the DAWNBench competition for ImageNet utilize two more improvements on top of this, the first of which is the removal of weight decay regularization from batch normalization layers. The second addition is to progressively resize images during training, starting with larger batches of smaller images in the beginning and moving on to smaller batches of larger images later. Specifically, training is divided into three phases, where phases 1 and 2 use images resized to 160 and 352 pixels respectively, and phase 3 uses the entire image. We train models to be robust at $\\epsilon = 2 / 2 5 5$ and $\\epsilon = 4 / 2 5 5$ and compare to free adversarial training in Table 4, showing similar levels of robustness. In addition to using ten restarts, we also report the PGD accuracy with one restart to reproduce the evaluation done by Shafahi et al. (2019). ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
173,
|
| 803 |
+
683,
|
| 804 |
+
825,
|
| 805 |
+
835
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 8
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "With these techniques, we can train an ImageNet classifier using 15 epochs in 12 hours using FGSM adversarial training, taking a fraction of the cost of free adversarial training as shown in Table 5.7 We compare to the best performing variation of free adversarial training which which uses $m = 4$ minibatch replays over 92 epochs of training (scaled down accordingly to 23 passes over the data). Note that free adversarial training can also be enhanced with mixed-precision arithmetic, which reduces the runtime by $2 5 \\%$ , but is still slower than FGSM-based training. Directly combining free adversarial training with the other fast techniques used in FGSM adversarial training for ImageNet results in reduced performance which we describe in Appendix F. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
174,
|
| 814 |
+
103,
|
| 815 |
+
825,
|
| 816 |
+
215
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 9
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "5.4 CATASTROPHIC OVERFITTING ",
|
| 823 |
+
"text_level": 1,
|
| 824 |
+
"bbox": [
|
| 825 |
+
176,
|
| 826 |
+
236,
|
| 827 |
+
419,
|
| 828 |
+
250
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 9
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "While FGSM adversarial training works in the context of this paper, many other researchers have tried and failed to have FGSM adversarial training work. In addition to using a zero initialization or too large of a step size as seen in Table 1, other design decisions (like specific learning rate schedules or numbers of epochs) for the training procedure can also make it more likely for FGSM adversarial training to fail. However, all of these failure modes result in what we call “catastrophic overfitting”, where the robust accuracy with respect to a PGD adversarial suddenly and drastically drops to $0 \\%$ (on the training data). Due to the rapid deterioration of robust performance, these alternative versions of FGSM adversarial training can be salvaged to some degree with a simple early-stopping scheme by measuring PGD accuracy on a small minibatch of training data, and the recovered results for some of these failure modes are shown in Table 1. Catastrophic overfitting and the early-stopping scheme are discussed in more detail in Appendix D. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
263,
|
| 838 |
+
825,
|
| 839 |
+
416
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 9
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "5.5 TAKEAWAYS FROM FGSM ADVERSARIAL TRAINING ",
|
| 846 |
+
"text_level": 1,
|
| 847 |
+
"bbox": [
|
| 848 |
+
174,
|
| 849 |
+
438,
|
| 850 |
+
575,
|
| 851 |
+
452
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 9
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "While it may be surprising that FGSM adversarial training can result in robustness to full PGD adversarial attacks, this work highlights some empirical hypotheses and takeaways which we describe below. ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
178,
|
| 860 |
+
465,
|
| 861 |
+
823,
|
| 862 |
+
507
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 9
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "1. Adversarial examples need to span the entire threat model. One of the reasons why FGSM and $\\mathrm { R + F G S M }$ as done by Tramer et al. (2017) may have failed is due to the restricted nature \\` of the generated examples: the restricted (or lack of) initialization results in perturbations which perturb each dimension by either 0 or $\\pm \\epsilon .$ , and so adversarial examples with feature perturbations in between are never seen. This is discussed further in Appendix D. 2. Defenders don’t need strong adversaries during training. This work suggests that rough approximations to the inner optimization problem are sufficient for adversarial training. This is in contrast to the usage of strong adversaries at evaluation time, where it is standard practice to use multiple restarts and a large number of PGD steps. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
212,
|
| 871 |
+
521,
|
| 872 |
+
825,
|
| 873 |
+
656
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 9
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "6 CONCLUSION ",
|
| 880 |
+
"text_level": 1,
|
| 881 |
+
"bbox": [
|
| 882 |
+
174,
|
| 883 |
+
679,
|
| 884 |
+
318,
|
| 885 |
+
695
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 9
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "Our findings show that FGSM adversarial training, when used with random initialization, can in fact be just as effective as the more costly PGD adversarial training. While a single iteration of FGSM adversarial training is double the cost of free adversarial training, it converges significantly faster, especially with a cyclic learning rate schedule. As a result, we are able to learn adversarially robust classifiers for CIFAR10 in minutes and for ImageNet in hours, even faster than free adversarial training but with comparable levels of robustness. We believe that leveraging these significant reductions in time to train robust models will allow future work to iterate even faster, and accelerate research in learning models which are resistant to adversarial attacks. By demonstrating that extremely weak adversarial training is capable of learning robust models, this work also exposes a new potential direction in more rigorously explaining when approximate solutions to the inner optimization problem are sufficient for robust optimization, and when they fail. ",
|
| 892 |
+
"bbox": [
|
| 893 |
+
174,
|
| 894 |
+
714,
|
| 895 |
+
825,
|
| 896 |
+
867
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 9
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "REFERENCES ",
|
| 903 |
+
"text_level": 1,
|
| 904 |
+
"bbox": [
|
| 905 |
+
176,
|
| 906 |
+
102,
|
| 907 |
+
287,
|
| 908 |
+
117
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 10
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. arXiv preprint arXiv:1707.07397, 2017. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
174,
|
| 917 |
+
126,
|
| 918 |
+
823,
|
| 919 |
+
155
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 10
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
162,
|
| 929 |
+
823,
|
| 930 |
+
204
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 10
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Jacob Buckman, Aurko Roy, Colin Raffel, and Ian Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. 2018. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
171,
|
| 939 |
+
213,
|
| 940 |
+
825,
|
| 941 |
+
243
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 10
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Nicholas Carlini. Is ami (attacks meet interpretability) robust to adversarial examples? arXiv preprint arXiv:1902.02322, 2019. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
173,
|
| 950 |
+
251,
|
| 951 |
+
825,
|
| 952 |
+
280
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 10
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "Nicholas Carlini and David Wagner. Defensive distillation is not robust to adversarial examples. arXiv preprint arXiv:1607.04311, 2016. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
169,
|
| 961 |
+
287,
|
| 962 |
+
823,
|
| 963 |
+
318
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 10
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017a. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
173,
|
| 972 |
+
325,
|
| 973 |
+
821,
|
| 974 |
+
368
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 10
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57. IEEE, 2017b. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
169,
|
| 983 |
+
377,
|
| 984 |
+
823,
|
| 985 |
+
407
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 10
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Nicholas Carlini, Anish Athalye, Nicolas Papernot, Wieland Brendel, Jonas Rauber, Dimitris Tsipras, Ian Goodfellow, and Aleksander Madry. On evaluating adversarial robustness. arXiv preprint arXiv:1902.06705, 2019. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
174,
|
| 994 |
+
414,
|
| 995 |
+
823,
|
| 996 |
+
457
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 10
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "Jeremy M Cohen, Elan Rosenfeld, and J Zico Kolter. Certified adversarial robustness via randomized smoothing. arXiv preprint arXiv:1902.02918, 2019. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
168,
|
| 1005 |
+
465,
|
| 1006 |
+
823,
|
| 1007 |
+
494
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 10
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Cody Coleman, Deepak Narayanan, Daniel Kang, Tian Zhao, Jian Zhang, Luigi Nardi, Peter Bailis, Kunle Olukotun, Chris Re, and Matei Zaharia. Dawnbench: An end-to-end deep learning bench-´ mark and competition. Training, 100(101):102, 2017. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
502,
|
| 1017 |
+
821,
|
| 1018 |
+
546
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 10
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Francesco Croce, Maksym Andriushchenko, and Matthias Hein. Provable robustness of relu networks via maximization of linear regions. arXiv preprint arXiv:1810.07481, 2018. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
169,
|
| 1027 |
+
554,
|
| 1028 |
+
821,
|
| 1029 |
+
584
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 10
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 9185–9193, 2018. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
174,
|
| 1038 |
+
592,
|
| 1039 |
+
821,
|
| 1040 |
+
636
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 10
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Logan Engstrom, Andrew Ilyas, and Anish Athalye. Evaluating and understanding the robustness of adversarial logit pairing. arXiv preprint arXiv:1807.10272, 2018. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
169,
|
| 1049 |
+
642,
|
| 1050 |
+
823,
|
| 1051 |
+
672
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 10
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Reuben Feinman, Ryan R Curtin, Saurabh Shintre, and Andrew B Gardner. Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
171,
|
| 1060 |
+
680,
|
| 1061 |
+
823,
|
| 1062 |
+
709
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 10
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
169,
|
| 1071 |
+
717,
|
| 1072 |
+
825,
|
| 1073 |
+
747
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 10
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Sven Gowal, Krishnamurthy Dvijotham, Robert Stanforth, Rudy Bunel, Chongli Qin, Jonathan Uesato, Timothy Mann, and Pushmeet Kohli. On the effectiveness of interval bound propagation for training verifiably robust models. arXiv preprint arXiv:1810.12715, 2018. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
176,
|
| 1082 |
+
755,
|
| 1083 |
+
823,
|
| 1084 |
+
797
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 10
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens Van Der Maaten. Countering adversarial images using input transformations. arXiv preprint arXiv:1711.00117, 2017. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
173,
|
| 1093 |
+
806,
|
| 1094 |
+
821,
|
| 1095 |
+
837
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 10
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
174,
|
| 1104 |
+
843,
|
| 1105 |
+
821,
|
| 1106 |
+
886
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 10
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "Harini Kannan, Alexey Kurakin, and Ian Goodfellow. Adversarial logit pairing. arXiv preprint arXiv:1803.06373, 2018. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
173,
|
| 1115 |
+
895,
|
| 1116 |
+
821,
|
| 1117 |
+
924
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 10
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Guy Katz, Clark Barrett, David L Dill, Kyle Julian, and Mykel J Kochenderfer. Reluplex: An efficient smt solver for verifying deep neural networks. In International Conference on Computer Aided Verification, pp. 97–117. Springer, 2017. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
173,
|
| 1126 |
+
103,
|
| 1127 |
+
823,
|
| 1128 |
+
147
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 11
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
171,
|
| 1137 |
+
156,
|
| 1138 |
+
821,
|
| 1139 |
+
185
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 11
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. No need to worry about adversarial examples in object detection in autonomous vehicles. arXiv preprint arXiv:1707.03501, 2017. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
171,
|
| 1148 |
+
195,
|
| 1149 |
+
821,
|
| 1150 |
+
224
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 11
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
173,
|
| 1159 |
+
234,
|
| 1160 |
+
825,
|
| 1161 |
+
277
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 11
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Pratyush Maini, Eric Wong, and J Zico Kolter. Adversarial robustness against the union of multiple perturbation models. arXiv preprint arXiv:1909.04068, 2019. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
171,
|
| 1170 |
+
287,
|
| 1171 |
+
825,
|
| 1172 |
+
318
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 11
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. arXiv preprint arXiv:1702.04267, 2017. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
171,
|
| 1181 |
+
327,
|
| 1182 |
+
825,
|
| 1183 |
+
357
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 11
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, et al. Mixed precision training. arXiv preprint arXiv:1710.03740, 2017. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
176,
|
| 1192 |
+
366,
|
| 1193 |
+
825,
|
| 1194 |
+
410
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 11
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Matthew Mirman, Timon Gehr, and Martin Vechev. Differentiable abstract interpretation for provably robust neural networks. In International Conference on Machine Learning, pp. 3575–3583, 2018. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
174,
|
| 1203 |
+
419,
|
| 1204 |
+
825,
|
| 1205 |
+
462
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 11
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Marius Mosbach, Maksym Andriushchenko, Thomas Trost, Matthias Hein, and Dietrich Klakow. Logit pairing methods can fool gradient-based attacks. arXiv preprint arXiv:1810.12042, 2018. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
174,
|
| 1214 |
+
472,
|
| 1215 |
+
823,
|
| 1216 |
+
502
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 11
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In 2016 IEEE Symposium on Security and Privacy $( S P )$ , pp. 582–597. IEEE, 2016. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
174,
|
| 1225 |
+
511,
|
| 1226 |
+
825,
|
| 1227 |
+
555
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 11
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Aditi Raghunathan, Jacob Steinhardt, and Percy S Liang. Semidefinite relaxations for certifying robustness to adversarial examples. In Advances in Neural Information Processing Systems, pp. 10877–10887, 2018. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
174,
|
| 1236 |
+
564,
|
| 1237 |
+
823,
|
| 1238 |
+
608
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 11
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "Hadi Salman, Greg Yang, Jerry Li, Pengchuan Zhang, Huan Zhang, Ilya Razenshteyn, and Sebastien Bubeck. Provably robust deep learning via adversarially trained smoothed classifiers. arXiv preprint arXiv:1906.04584, 2019. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
173,
|
| 1247 |
+
617,
|
| 1248 |
+
825,
|
| 1249 |
+
660
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 11
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Ali Shafahi, Mahyar Najibi, Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! arXiv preprint arXiv:1904.12843, 2019. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
173,
|
| 1258 |
+
670,
|
| 1259 |
+
825,
|
| 1260 |
+
713
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 11
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Aman Sinha, Hongseok Namkoong, and John Duchi. Certifying some distributional robustness with principled adversarial training. arXiv preprint arXiv:1710.10571, 2017. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
171,
|
| 1269 |
+
723,
|
| 1270 |
+
825,
|
| 1271 |
+
753
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 11
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Leslie N Smith. Cyclical learning rates for training neural networks. In 2017 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 464–472. IEEE, 2017. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
173,
|
| 1280 |
+
763,
|
| 1281 |
+
823,
|
| 1282 |
+
792
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 11
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Leslie N Smith and Nicholay Topin. Super-convergence: Very fast training of residual networks using large learning rates. 2018. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
171,
|
| 1291 |
+
803,
|
| 1292 |
+
823,
|
| 1293 |
+
832
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 11
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. arXiv preprint arXiv:1710.10766, 2017. ",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
176,
|
| 1302 |
+
842,
|
| 1303 |
+
825,
|
| 1304 |
+
885
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 11
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
|
| 1311 |
+
"bbox": [
|
| 1312 |
+
174,
|
| 1313 |
+
895,
|
| 1314 |
+
821,
|
| 1315 |
+
924
|
| 1316 |
+
],
|
| 1317 |
+
"page_idx": 11
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"type": "text",
|
| 1321 |
+
"text": "Guanhong Tao, Shiqing Ma, Yingqi Liu, and Xiangyu Zhang. Attacks meet interpretability: Attribute-steered detection of adversarial samples. In Advances in Neural Information Processing Systems, pp. 7717–7728, 2018. ",
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
178,
|
| 1324 |
+
103,
|
| 1325 |
+
821,
|
| 1326 |
+
146
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 12
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "Vincent Tjeng, Kai Xiao, and Russ Tedrake. Evaluating robustness of neural networks with mixed integer programming. arXiv preprint arXiv:1711.07356, 2017. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
173,
|
| 1335 |
+
155,
|
| 1336 |
+
823,
|
| 1337 |
+
184
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 12
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "Florian Tramer and Dan Boneh. Adversarial training and robustness for multiple perturbations. \\` arXiv preprint arXiv:1904.13000, 2019. ",
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
171,
|
| 1346 |
+
193,
|
| 1347 |
+
823,
|
| 1348 |
+
222
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 12
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "text",
|
| 1354 |
+
"text": "Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc- \\` Daniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017. ",
|
| 1355 |
+
"bbox": [
|
| 1356 |
+
176,
|
| 1357 |
+
229,
|
| 1358 |
+
823,
|
| 1359 |
+
272
|
| 1360 |
+
],
|
| 1361 |
+
"page_idx": 12
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"type": "text",
|
| 1365 |
+
"text": "Jonathan Uesato, Brendan O’Donoghue, Aaron van den Oord, and Pushmeet Kohli. Adversarial risk and the dangers of evaluating against weak attacks. arXiv preprint arXiv:1802.05666, 2018. ",
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
173,
|
| 1368 |
+
281,
|
| 1369 |
+
823,
|
| 1370 |
+
310
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 12
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "Jianyu Wang. Bilateral adversarial training: Towards fast training of more robust models against adversarial attacks. arXiv preprint arXiv:1811.10716, 2018. ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
174,
|
| 1379 |
+
319,
|
| 1380 |
+
821,
|
| 1381 |
+
349
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 12
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "Eric Wong and J Zico Kolter. Provable defenses against adversarial examples via the convex outer adversarial polytope. arXiv preprint arXiv:1711.00851, 2017. ",
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
174,
|
| 1390 |
+
357,
|
| 1391 |
+
821,
|
| 1392 |
+
387
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 12
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "Eric Wong, Frank Schmidt, Jan Hendrik Metzen, and J Zico Kolter. Scaling provable adversarial defenses. In Advances in Neural Information Processing Systems, pp. 8400–8409, 2018. ",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
174,
|
| 1401 |
+
395,
|
| 1402 |
+
823,
|
| 1403 |
+
425
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 12
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "Kai Y Xiao, Vincent Tjeng, Nur Muhammad Shafiullah, and Aleksander Madry. Training for faster adversarial robustness verification via inducing relu stability. arXiv preprint arXiv:1809.03008, 2018. ",
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
176,
|
| 1412 |
+
433,
|
| 1413 |
+
823,
|
| 1414 |
+
476
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 12
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "text",
|
| 1420 |
+
"text": "Yuzhe Yang, Guo Zhang, Dina Katabi, and Zhi Xu. Me-net: Towards effective adversarial robustness with matrix estimation. arXiv preprint arXiv:1905.11971, 2019. ",
|
| 1421 |
+
"bbox": [
|
| 1422 |
+
174,
|
| 1423 |
+
484,
|
| 1424 |
+
821,
|
| 1425 |
+
513
|
| 1426 |
+
],
|
| 1427 |
+
"page_idx": 12
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "text",
|
| 1431 |
+
"text": "Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Painless adversarial training using maximal principle. arXiv preprint arXiv:1905.00877, 2019. ",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
174,
|
| 1434 |
+
522,
|
| 1435 |
+
826,
|
| 1436 |
+
564
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 12
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "table",
|
| 1442 |
+
"img_path": "images/cf1cfe5cb14afb5eb0f502182c34291c2d3a31eb97922dc3ecd5ea5050629e5a.jpg",
|
| 1443 |
+
"table_caption": [
|
| 1444 |
+
"Table 6: Ablation study showing the performance of $\\mathrm { R + F G S M }$ from Tramer et al. (2017) and the \\` various changes for the version of FGSM adversarial training done in this paper, over 10 random seeds. "
|
| 1445 |
+
],
|
| 1446 |
+
"table_footnote": [],
|
| 1447 |
+
"table_body": "<table><tr><td>Method</td><td>Step size</td><td>Initialization</td><td>Robust accuracy</td></tr><tr><td>R+FGSM (Tramer et al., 2017)</td><td>0.15</td><td>Hypercube(0.15)</td><td>34.58 ± 36.06%</td></tr><tr><td>R+FGSM (+full step size)</td><td>0.30</td><td>Hypercube(0.15)</td><td>26.53 ± 32.48%</td></tr><tr><td>R+FGSM(+uniform init.)</td><td>0.15</td><td>Uniform(0.3)</td><td>72.92 ±10.40%</td></tr><tr><td>Uniform + full (ours)</td><td>0.30</td><td>Uniform(0.3)</td><td>86.21 ± 00.75%</td></tr></table>",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
217,
|
| 1450 |
+
160,
|
| 1451 |
+
779,
|
| 1452 |
+
241
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 13
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "table",
|
| 1458 |
+
"img_path": "images/9671f005d45c6ef3ea074aa8debe16b5b4b9a96657f64cd6c70bb1bd3d272532.jpg",
|
| 1459 |
+
"table_caption": [
|
| 1460 |
+
"Table 7: Training parameters used for the DAWNBench experiments of Table 1 "
|
| 1461 |
+
],
|
| 1462 |
+
"table_footnote": [],
|
| 1463 |
+
"table_body": "<table><tr><td>Parameter</td><td>FGSM</td><td>PGD</td><td>Free</td></tr><tr><td>Epochs</td><td>30</td><td>40</td><td>96</td></tr><tr><td>Max learning rate</td><td>0.2</td><td>0.2</td><td>0.04</td></tr></table>",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
225,
|
| 1466 |
+
295,
|
| 1467 |
+
772,
|
| 1468 |
+
349
|
| 1469 |
+
],
|
| 1470 |
+
"page_idx": 13
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"type": "text",
|
| 1474 |
+
"text": "A A DIRECT COMPARISON TO $\\mathrm { R + F G S M }$ FROM TRAMER ET AL \\` . (2017) ",
|
| 1475 |
+
"text_level": 1,
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
174,
|
| 1478 |
+
383,
|
| 1479 |
+
776,
|
| 1480 |
+
401
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 13
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "text",
|
| 1486 |
+
"text": "While a randomized version of FGSM adversarial training was proposed by Tramer et al. (2017), it \\` was not shown to be as effective as adversarial training against a PGD adversary. Here, we note the two main differences between our approach and that of Tramer et al. (2017). \\` ",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
176,
|
| 1489 |
+
420,
|
| 1490 |
+
825,
|
| 1491 |
+
463
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 13
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "1. The random initialization used is different. For a data point $x$ , we initialize with the uniform distribution in the entire perturbation region with ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
205,
|
| 1500 |
+
479,
|
| 1501 |
+
825,
|
| 1502 |
+
508
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 13
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "equation",
|
| 1508 |
+
"img_path": "images/185229118465371ee4fa12e254d041d2861df274573ae778fe9daa7373ba74d1.jpg",
|
| 1509 |
+
"text": "$$\nx ^ { \\prime } = x + \\mathrm { U n i f o r m } ( - \\epsilon , \\epsilon ) .\n$$",
|
| 1510 |
+
"text_format": "latex",
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
441,
|
| 1513 |
+
520,
|
| 1514 |
+
616,
|
| 1515 |
+
537
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 13
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "In comparison, Tramer et al. (2017) instead initialize on the surface of a hypercube with \\` radius $\\epsilon / 2$ with ",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
230,
|
| 1524 |
+
549,
|
| 1525 |
+
825,
|
| 1526 |
+
579
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 13
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "equation",
|
| 1532 |
+
"img_path": "images/e977387ac507d5168794d505f3d5e1aa3b94575906d2dc86f2f7d046154b0e51.jpg",
|
| 1533 |
+
"text": "$$\nx ^ { \\prime } = x + \\frac { \\epsilon } { 2 } \\mathrm { N o r m a l } ( 0 , 1 ) .\n$$",
|
| 1534 |
+
"text_format": "latex",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
442,
|
| 1537 |
+
584,
|
| 1538 |
+
614,
|
| 1539 |
+
612
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 13
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "2. The step sizes used for the FGSM step are different. We use a full step size of $\\alpha = \\epsilon$ whereas Tramer et al. (2017) use a step size of \\` $\\alpha = \\epsilon / 2$ . ",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
205,
|
| 1548 |
+
627,
|
| 1549 |
+
823,
|
| 1550 |
+
656
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 13
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "To study the effect of these two differences, we run all combinations of either initialization with either step size on MNIST. The results are summarized in Table 6. ",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
176,
|
| 1559 |
+
672,
|
| 1560 |
+
821,
|
| 1561 |
+
702
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 13
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "text",
|
| 1567 |
+
"text": "We find that using a uniform initialization adds the greatest marginal improvement to the original $\\mathrm { R + F G S M }$ attack, while using a full step size doesn’t seem to help on its own. Implementing both of these improvements results in the form of FGSM adversarial training presented in this paper. Additionally, note that $\\mathrm { R + F G S M }$ as done by Tramer et al. (2017) has high variance in robust perfor- \\` mance when done over multiple random seeds, whereas our version of FGSM adversarial training is significantly more consistent and has a very low standard deviation over random seeds. ",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
174,
|
| 1570 |
+
708,
|
| 1571 |
+
825,
|
| 1572 |
+
792
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 13
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "text",
|
| 1578 |
+
"text": "B TRAINING PARAMETERS FOR TABLE 1 ",
|
| 1579 |
+
"text_level": 1,
|
| 1580 |
+
"bbox": [
|
| 1581 |
+
174,
|
| 1582 |
+
819,
|
| 1583 |
+
526,
|
| 1584 |
+
835
|
| 1585 |
+
],
|
| 1586 |
+
"page_idx": 13
|
| 1587 |
+
},
|
| 1588 |
+
{
|
| 1589 |
+
"type": "text",
|
| 1590 |
+
"text": "For all methods, we use a batch size of 128, and SGD optimizer with momentum 0.9 and weight decay $5 * 1 0 ^ { - 4 }$ . We report the average results over 3 random seeds. The remaining parameters for learning rate schedules and number of epochs for the DAWNBench experiments are in Table 7. For runs using early-stopping, we use a 5-step PGD adversary with 1 restart on 1 training minibatch to detect overfitting to the FGSM adversaries, as described in more detail in Section D. ",
|
| 1591 |
+
"bbox": [
|
| 1592 |
+
174,
|
| 1593 |
+
853,
|
| 1594 |
+
825,
|
| 1595 |
+
924
|
| 1596 |
+
],
|
| 1597 |
+
"page_idx": 13
|
| 1598 |
+
},
|
| 1599 |
+
{
|
| 1600 |
+
"type": "image",
|
| 1601 |
+
"img_path": "images/d1bba9c25633d8962669c3935a2f3466ef9e4efb4a4924d48415fa31a1a505e2.jpg",
|
| 1602 |
+
"image_caption": [
|
| 1603 |
+
"Figure 3: Robust test performance of FGSM adversarial training over different step sizes for $\\epsilon =$ 8/255. "
|
| 1604 |
+
],
|
| 1605 |
+
"image_footnote": [],
|
| 1606 |
+
"bbox": [
|
| 1607 |
+
300,
|
| 1608 |
+
99,
|
| 1609 |
+
696,
|
| 1610 |
+
295
|
| 1611 |
+
],
|
| 1612 |
+
"page_idx": 14
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"type": "image",
|
| 1616 |
+
"img_path": "images/438b9fa287165347faded06d7f88a2848edd6e8d301f039a22b62f0e9f54a0e1.jpg",
|
| 1617 |
+
"image_caption": [
|
| 1618 |
+
"Figure 4: Learning curves for FGSM adversarial training plotting the training loss and error rates incurred by an FGSM and PGD adversary when trained with zero-initialization FGSM at $\\epsilon = 8 / 2 5 5$ , depicting the catastrophic overfitting where PGD performance suddenly degrades while the model overfits to the FGSM performance. "
|
| 1619 |
+
],
|
| 1620 |
+
"image_footnote": [],
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
199,
|
| 1623 |
+
347,
|
| 1624 |
+
820,
|
| 1625 |
+
489
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 14
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "text",
|
| 1631 |
+
"text": "C OPTIMAL STEP SIZE FOR FGSM ADVERSARIAL TRAINING ",
|
| 1632 |
+
"text_level": 1,
|
| 1633 |
+
"bbox": [
|
| 1634 |
+
174,
|
| 1635 |
+
583,
|
| 1636 |
+
689,
|
| 1637 |
+
599
|
| 1638 |
+
],
|
| 1639 |
+
"page_idx": 14
|
| 1640 |
+
},
|
| 1641 |
+
{
|
| 1642 |
+
"type": "text",
|
| 1643 |
+
"text": "Here, we test the effect of step size on the performance of FGSM adversarial training. We plot the mean and standard error of the robust accuracy for models trained for 30 epochs over 3 random seeds in Figure 3, and vary the step size from $\\alpha = 1 / 2 5 5$ to $\\alpha = 1 6 / 2 5 5$ . ",
|
| 1644 |
+
"bbox": [
|
| 1645 |
+
176,
|
| 1646 |
+
616,
|
| 1647 |
+
825,
|
| 1648 |
+
659
|
| 1649 |
+
],
|
| 1650 |
+
"page_idx": 14
|
| 1651 |
+
},
|
| 1652 |
+
{
|
| 1653 |
+
"type": "text",
|
| 1654 |
+
"text": "We find that we get increasing robust performance as we increase the step size up to $\\alpha = 1 0 / 2 5 5$ . Beyond this, we see no further benefit, or find that the model is prone to overfitting to the adversarial examples, since the large step size forces the model to overfit to the boundary of the perturbation region. ",
|
| 1655 |
+
"bbox": [
|
| 1656 |
+
174,
|
| 1657 |
+
665,
|
| 1658 |
+
825,
|
| 1659 |
+
722
|
| 1660 |
+
],
|
| 1661 |
+
"page_idx": 14
|
| 1662 |
+
},
|
| 1663 |
+
{
|
| 1664 |
+
"type": "text",
|
| 1665 |
+
"text": "D CATASTROPHIC OVERFITTING AND THE EFFECT OF EARLY STOPPING ",
|
| 1666 |
+
"text_level": 1,
|
| 1667 |
+
"bbox": [
|
| 1668 |
+
173,
|
| 1669 |
+
746,
|
| 1670 |
+
774,
|
| 1671 |
+
761
|
| 1672 |
+
],
|
| 1673 |
+
"page_idx": 14
|
| 1674 |
+
},
|
| 1675 |
+
{
|
| 1676 |
+
"type": "text",
|
| 1677 |
+
"text": "While the main experiments in this paper work as is (with the cyclic learning rate and FGSM adversarial training with uniform random initialization), many of the variations of FGSM adversarial training which have been found to not succeed all fail similarly: the model will very rapidly (over the span of a couple epochs) appear to overfit to the FGSM adversarial examples. What was previously a reasonably robust model will quickly transform into a non-robust model which suffers $0 \\%$ robust accuracy (with respect to a PGD adversary). This phenomenon, which we call catastrophic overfitting, can be seen in Figure 4 which plots the learning curves for standard, vanilla FGSM adversarial training from zero-initialization. ",
|
| 1678 |
+
"bbox": [
|
| 1679 |
+
174,
|
| 1680 |
+
776,
|
| 1681 |
+
825,
|
| 1682 |
+
888
|
| 1683 |
+
],
|
| 1684 |
+
"page_idx": 14
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"type": "text",
|
| 1688 |
+
"text": "Indeed, one of the reasons for this failure may lie in the lack of diversity in adversarial examples generated by these FGSM adversaries. For example, using a zero initialization or using the random initialization scheme from Tramer et al. (2017) will result in adversarial examples whose features \\` have been perturbed by $\\{ - \\epsilon , 0 , \\epsilon \\}$ , and so the network learns a decision boundary which is robust only at these perturbation values. This can be verified by running a PGD adversarial attack on models which have catastrophically overfitted, where the perturbations tend to be more in between the origin and the boundary of the threat model (relative to a non-overfitted model, which tends to have perturbations near the boundary), as seen in Figure 5. ",
|
| 1689 |
+
"bbox": [
|
| 1690 |
+
174,
|
| 1691 |
+
895,
|
| 1692 |
+
823,
|
| 1693 |
+
924
|
| 1694 |
+
],
|
| 1695 |
+
"page_idx": 14
|
| 1696 |
+
},
|
| 1697 |
+
{
|
| 1698 |
+
"type": "image",
|
| 1699 |
+
"img_path": "images/aa3c7e3e733e662e25a53af4ba6b880dc993f15eb191c30368308466f3cb59bc.jpg",
|
| 1700 |
+
"image_caption": [
|
| 1701 |
+
"Figure 5: Histogram of the resulting perturbations from a PGD adversary for each feature for a successfully trained robust CIFAR10 model and a catastrophically overfitted CIFAR10 model. "
|
| 1702 |
+
],
|
| 1703 |
+
"image_footnote": [],
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
299,
|
| 1706 |
+
99,
|
| 1707 |
+
699,
|
| 1708 |
+
313
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 15
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "image",
|
| 1714 |
+
"img_path": "images/35c4e3ab49eb82d71b381ff6080bbec6986a6fc80d5b8dbfb23fdf77aee5f45d.jpg",
|
| 1715 |
+
"image_caption": [
|
| 1716 |
+
"Figure 6: Robust test performance of FGSM adversarial training over different step sizes for $\\epsilon =$ $8 / 2 5 5$ with early stopping to avoid catastrophic overfitting. "
|
| 1717 |
+
],
|
| 1718 |
+
"image_footnote": [],
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
300,
|
| 1721 |
+
381,
|
| 1722 |
+
696,
|
| 1723 |
+
575
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 15
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "text",
|
| 1729 |
+
"text": "",
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
174,
|
| 1732 |
+
659,
|
| 1733 |
+
825,
|
| 1734 |
+
742
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 15
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "text",
|
| 1740 |
+
"text": "These failure modes, including the other failure modes discussed in Section 5.4, can be easily detected by evaluating the PGD performance on a small subset of the training data, as the catastrophic failure will result in $0 \\%$ robust accuracy for a PGD adversary on the training set. In practice, we find that this can be a simple as a single minibatch with a 5-step PGD adversary, which can be quickly checked at the end of the epoch. If robust accuracy with respect to this adversary suddenly drops, then we have catastrophic overfitting. Using a PGD adversary on a training minibatch to detect catastrophic overfitting, we can early stop to avoid catastrophic overfitting and achieve a reasonable amount of robust performance. ",
|
| 1741 |
+
"bbox": [
|
| 1742 |
+
174,
|
| 1743 |
+
750,
|
| 1744 |
+
825,
|
| 1745 |
+
861
|
| 1746 |
+
],
|
| 1747 |
+
"page_idx": 15
|
| 1748 |
+
},
|
| 1749 |
+
{
|
| 1750 |
+
"type": "text",
|
| 1751 |
+
"text": "For a concrete example, recall from Section C that step sizes larger than $1 1 / 2 5 5$ result in $0 \\%$ robust accuracy, due to this catastrophic overfitting phenomenon. By using early stopping to catch the model at its peak performance before overfitting, FGSM adversarial training with larger step sizes can actually achieve some degree of robust accuracy, as shown in Figure 6. ",
|
| 1752 |
+
"bbox": [
|
| 1753 |
+
174,
|
| 1754 |
+
867,
|
| 1755 |
+
823,
|
| 1756 |
+
924
|
| 1757 |
+
],
|
| 1758 |
+
"page_idx": 15
|
| 1759 |
+
},
|
| 1760 |
+
{
|
| 1761 |
+
"type": "table",
|
| 1762 |
+
"img_path": "images/177a9fb5b030057d78463f7d6824f59d299b5e9154c7dc244200773aff2df42c.jpg",
|
| 1763 |
+
"table_caption": [
|
| 1764 |
+
"Table 8: Training parameters used for Figure 2 "
|
| 1765 |
+
],
|
| 1766 |
+
"table_footnote": [],
|
| 1767 |
+
"table_body": "<table><tr><td>Parameter</td><td>FGSM</td><td>PGD</td><td>Free</td></tr><tr><td>Max learning rate</td><td>0.2</td><td>0.2</td><td>0.04</td></tr></table>",
|
| 1768 |
+
"bbox": [
|
| 1769 |
+
227,
|
| 1770 |
+
126,
|
| 1771 |
+
772,
|
| 1772 |
+
165
|
| 1773 |
+
],
|
| 1774 |
+
"page_idx": 16
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"type": "table",
|
| 1778 |
+
"img_path": "images/a8c4f3c01ab4a9bb5aa8faac7cd4f7e217ec7e50b3cecd00159412f128324032.jpg",
|
| 1779 |
+
"table_caption": [
|
| 1780 |
+
"Table 9: ImageNet classifiers trained with free adversarial training methods at $m = 3$ minibatch replay when augmented with DAWNBench optimizations, against $\\ell _ { \\infty }$ perturbations of radius $\\epsilon =$ 4/255, where 30 epochs of free training is equivalent to 15 epochs of FGSM training "
|
| 1781 |
+
],
|
| 1782 |
+
"table_footnote": [],
|
| 1783 |
+
"table_body": "<table><tr><td>Method</td><td>Step size</td><td>Epochs</td><td>Standard acc.</td><td>PGD+1</td><td>PGD+10</td></tr><tr><td>Free+DAWNBench</td><td>4/255</td><td>15</td><td>49.87%</td><td>22.78%</td><td>22.18%</td></tr><tr><td>Free+DAWNBench</td><td>5/255</td><td>15</td><td>50.48%</td><td>22.88%</td><td>22.25%</td></tr><tr><td>Free+DAWNBench</td><td>4/255</td><td>30</td><td>49.87%</td><td>28.17%</td><td>27.08%</td></tr><tr><td>Free+DAWNBench</td><td>5/255</td><td>30</td><td>50.48%</td><td>28.73%</td><td>27.81%</td></tr><tr><td>Free (m = 4)</td><td>4/255</td><td>92</td><td>60.42%</td><td>31.22%</td><td>31.08%</td></tr><tr><td>FGSM</td><td>5/255</td><td>15</td><td>55.45%</td><td>30.28%</td><td>30.18%</td></tr></table>",
|
| 1784 |
+
"bbox": [
|
| 1785 |
+
217,
|
| 1786 |
+
236,
|
| 1787 |
+
781,
|
| 1788 |
+
352
|
| 1789 |
+
],
|
| 1790 |
+
"page_idx": 16
|
| 1791 |
+
},
|
| 1792 |
+
{
|
| 1793 |
+
"type": "text",
|
| 1794 |
+
"text": "E TRAINING PARAMETERS FOR FIGURE 2 ",
|
| 1795 |
+
"text_level": 1,
|
| 1796 |
+
"bbox": [
|
| 1797 |
+
174,
|
| 1798 |
+
381,
|
| 1799 |
+
534,
|
| 1800 |
+
397
|
| 1801 |
+
],
|
| 1802 |
+
"page_idx": 16
|
| 1803 |
+
},
|
| 1804 |
+
{
|
| 1805 |
+
"type": "text",
|
| 1806 |
+
"text": "For all methods, we use a batch size of 128, and SGD optimizer with momentum 0.9 and weight decay $5 * 1 0 ^ { - 4 }$ . We report the average results over 3 random seeds. Maximum learning rates used for the cyclic learning rate schedule are shown in Table 8. ",
|
| 1807 |
+
"bbox": [
|
| 1808 |
+
173,
|
| 1809 |
+
412,
|
| 1810 |
+
825,
|
| 1811 |
+
455
|
| 1812 |
+
],
|
| 1813 |
+
"page_idx": 16
|
| 1814 |
+
},
|
| 1815 |
+
{
|
| 1816 |
+
"type": "text",
|
| 1817 |
+
"text": "F COMBINING FREE ADVERSARIAL TRAINING WITH DAWNBENCH IMPROVEMENTS ON IMAGENET ",
|
| 1818 |
+
"text_level": 1,
|
| 1819 |
+
"bbox": [
|
| 1820 |
+
173,
|
| 1821 |
+
477,
|
| 1822 |
+
746,
|
| 1823 |
+
508
|
| 1824 |
+
],
|
| 1825 |
+
"page_idx": 16
|
| 1826 |
+
},
|
| 1827 |
+
{
|
| 1828 |
+
"type": "text",
|
| 1829 |
+
"text": "While adding mixed-precision is a direct speedup to free adversarial training without hurting performance, using other optimization tricks such as the cyclic learning rate schedule, progressive resizing, and batch-norm regularization may affect the final performance of free adversarial training. Since ImageNet is too large to run a comprehensive search over the various parameters as was done for CIFAR10 in Table 3, we instead test the performance of free adversarial training when used as a drop-in replacement for FGSM adversarial training with all the same optimizations used for FGSM adversarial training. We use free adversarial training with $m = 3$ minibatch-replay, with 2 epochs for phase one, 2 epochs for phase two, and 1 epoch for phase three to be equivalent to 15 epochs of standard training. $\\mathrm { P G D } { + } N$ denotes the accuracy under a PGD adversary with $N$ restarts. ",
|
| 1830 |
+
"bbox": [
|
| 1831 |
+
173,
|
| 1832 |
+
523,
|
| 1833 |
+
825,
|
| 1834 |
+
650
|
| 1835 |
+
],
|
| 1836 |
+
"page_idx": 16
|
| 1837 |
+
},
|
| 1838 |
+
{
|
| 1839 |
+
"type": "text",
|
| 1840 |
+
"text": "A word of caution: this is not to claim that free adversarial training is completely incompatible with the DAWNBench optimizations on ImageNet. By giving free adversarial training more epochs, it may be possible recover the same or better performance. However, tuning the DAWNBench techniques to be optimal for free adversarial training is not the objective of this paper, and so this is merely to show what happens if we naively apply the same DAWNBench tricks used for FGSM adversarial training to free adversarial training. Since free adversarial training requires more epochs even when tuned with DAWNBench improvements for CIFAR10, we suspect that the same behavior occurs here for ImageNet, and so 15 epochs is likely not enough to obtain top performance for free adversarial training. Since one epoch of FGSM adversarial training is equivalent to two epochs of free training, a fairer comparison is to give free adversarial training 30 epochs instead of 15. Even with double the epochs (and thus the same compute time as FGSM adversarial training), we find that it gets closer but doesn’t quite recover the original performance of free adversarial training. ",
|
| 1841 |
+
"bbox": [
|
| 1842 |
+
174,
|
| 1843 |
+
656,
|
| 1844 |
+
825,
|
| 1845 |
+
824
|
| 1846 |
+
],
|
| 1847 |
+
"page_idx": 16
|
| 1848 |
+
}
|
| 1849 |
+
]
|
parse/train/BJx040EFvH/BJx040EFvH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJx040EFvH/BJx040EFvH_model.json
ADDED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an Shelhamer, Jitendra Malik, Alexei A. Efros, Trevor Darrell
|
| 4 |
+
|
| 5 |
+
UC Berkeley
|
| 6 |
+
|
| 7 |
+
{pathak,parsa.m,michaelluo,pulkitag,dianchen, fredshentu,shelhamer,malik,efros,trevor}@cs.berkeley.edu
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
The current dominant paradigm for imitation learning relies on strong supervision of expert actions to learn both what and how to imitate. We pursue an alternative paradigm wherein an agent first explores the world without any expert supervision and then distills its experience into a goal-conditioned skill policy with a novel forward consistency loss. In our framework, the role of the expert is only to communicate the goals (i.e., what to imitate) during inference. The learned policy is then employed to mimic the expert (i.e., how to imitate) after seeing just a sequence of images demonstrating the desired task. Our method is “zero-shot” in the sense that the agent never has access to expert actions during training or for the task demonstration at inference. We evaluate our zero-shot imitator in two real-world settings: complex rope manipulation with a Baxter robot and navigation in previously unseen office environments with a TurtleBot. Through further experiments in VizDoom simulation, we provide evidence that better mechanisms for exploration lead to learning a more capable policy which in turn improves end task performance. Videos, models, and more details are available at https://pathak22.github.io/zeroshot-imitation/.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Imitating expert demonstration is a powerful mechanism for learning to perform tasks from raw sensory observations. The current dominant paradigm in learning from demonstration (LfD) (Argall et al., 2009; $\mathrm { N g }$ & Russell, 2000; Pomerleau, 1989; Schaal, 1999) requires the expert to either manually move the robot joints (i.e., kinesthetic teaching) or teleoperate the robot to execute the desired task. The expert typically provides multiple demonstrations of a task at training time, and this generates data in the form of observation-action pairs from the agent’s point of view. The agent then distills this data into a policy for performing the task of interest. Such a heavily supervised approach, where it is necessary to provide demonstrations by controlling the robot, is incredibly tedious for the human expert. Moreover, for every new task that the robot needs to execute, the expert is required to provide a new set of demonstrations.
|
| 16 |
+
|
| 17 |
+
Instead of communicating how to perform a task via observation-action pairs, a more general formulation allows the expert to communicate only what needs to be done by providing the observations of the desired world states via a video or a sparse sequence of images. This way, the agent is required to infer how to perform the task (i.e., actions) by itself. In psychology, this is known as observational learning (Bandura & Walters, 1977). While this is a harder learning problem, it is a more interesting setting, because the expert can demonstrate multiple tasks quickly and easily.
|
| 18 |
+
|
| 19 |
+
An agent without any prior knowledge will find it extremely hard to imitate a task by simply watching a visual demonstration in all but the simplest of cases. Thus, the natural question is: in order to imitate, what form of prior knowledge must the agent possess? A large body of work (Breazeal & Scassellati, 2002; Dillmann, 2004; Ikeuchi & Suehiro, 1994; Kuniyoshi et al., 1989; 1994; Yang et al., 2015) has sought to capture prior knowledge by manually pre-defining the state that must be inferred from the observations. The agent then infers how to perform the task (i.e., plan for imitation) using this state. Unfortunately, computer vision systems are often unable to estimate the state variables accurately and it has proven non-trivial for downstream planning systems to be robust to such errors.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: The goal-conditioned skill policy (GSP) takes as input the current and goal observations and outputs an action sequence that would lead to that goal. We compare the performance of the following GSP models: (a) Simple inverse model; (b) Mutli-step GSP with previous action history; (c) Mutli-step GSP with previous action history and a forward model as regularizer, but no forward consistency; (d) Mutli-step GSP with forward consistency loss proposed in this work.
|
| 23 |
+
|
| 24 |
+
In this paper, we follow (Agrawal et al., 2016; Levine et al., 2016; Pinto & Gupta, 2016) in pursuing an alternative paradigm, where an agent explores the environment without any expert supervision and distills this exploration data into goal-directed skills. These skills can then be used to imitate the visual demonstration provided by the expert (Nair et al., 2017). Here, by skill we mean a function that predicts the sequence of actions to take the agent from the current observation to the goal. We call this function a goal-conditioned skill policy (GSP). The GSP is learned in a self-supervised way by re-labeling the states visited during the agent’s exploration of the environment as goals and the actions executed by the agent as the prediction targets, similar to (Agrawal et al., 2016; Andrychowicz et al., 2017). During inference, given goal observations from a demonstration, the GSP can infer how to reach these goals in turn from the current observation, and thereby imitate the task step-by-step.
|
| 25 |
+
|
| 26 |
+
One critical challenge in learning the GSP is that, in general, there are multiple possible ways of going from one state to another: that is, the distribution of trajectories between states is multimodal. We address this issue with our novel forward consistency loss based on the intuition that, for most tasks, reaching the goal is more important than how it is reached. To operationalize this, we first learn a forward model that predicts the next observation given an action and a current observation. We use the difference in the output of the forward model for the GSP-selected action and the ground truth next state to train the GSP. This loss has the effect of making the GSP-predicted action consistent with the ground-truth action instead of exactly matching the actions themselves, thus ensuring that actions that are different from the ground-truth—but lead to the same next state— are not inadvertently penalized. To account for varying number of steps required to reach different goals, we propose to jointly optimize the GSP with a goal recognizer that determines if the current goal has been satisfied. See Figure 1 for a schematic illustration of the GSP architecture.
|
| 27 |
+
|
| 28 |
+
We call our method zero-shot because the agent never has access to expert actions, neither during training of the GSP nor for task demonstration at inference. In contrast, most recent work on oneshot imitation learning requires full knowledge of actions and a wealth of expert demonstrations during training (Duan et al., 2017; Finn et al., 2017). In summary, we propose a method that (1) does not require any extrinsic reward or expert supervision during learning, (2) only needs demonstrations during inference, and (3) restricts demonstrations to visual observations alone rather than full stateactions. Instead of learning by imitation, our agent learns to imitate.
|
| 29 |
+
|
| 30 |
+
We evaluate our zero-shot imitator on real-world robots for rope manipulation tasks using a Baxter and office navigation using a TurtleBot. We show that the proposed forward consistency loss improves the performance on the complex task of knot tying from $3 \hat { 6 } \%$ to $6 0 \%$ accuracy. In navigation experiments, we steer a simple wheeled robot around partially-observable office environments and show that the learned GSP generalizes to unseen environments. Furthermore, using navigation experiments in VizDoom environment, we show that (GSP) learned using curiosity-driven exploration (Oudeyer et al., 2007; Pathak et al., 2017; Schmidhuber, 1991) can more accurately follow demonstrations as compared to using random exploration data for learning the GSP. Overall our experiments show that the forward-consistent GSP can be used to imitate a variety of tasks without making environment or task-specific assumptions.
|
| 31 |
+
|
| 32 |
+
# 2 LEARNING TO IMITATE WITHOUT EXPERT SUPERVISION
|
| 33 |
+
|
| 34 |
+
Let $\boldsymbol { S } : \{ x _ { 1 } , a _ { 1 } , x _ { 2 } , a _ { 2 } , . . . , x _ { T } \}$ be the sequence of observations and actions generated by the agent as it explores its environment using the policy $a = \pi _ { E } ( s )$ . This exploration data is used to learn the goal-conditioned skill policy (GSP) $\pi$ takes as input a pair of observations $( x _ { i } , x _ { g } )$ and outputs sequence of actions $( \vec { a } _ { \tau } : a _ { 1 } , a _ { 2 } . . . a _ { K } )$ required to reach the goal observation $( x _ { g } )$ from the current observation $( x _ { i } )$ .
|
| 35 |
+
|
| 36 |
+
$$
|
| 37 |
+
\vec { a } _ { \tau } = \pi ( x _ { i } , x _ { g } ; \theta _ { \pi } )
|
| 38 |
+
$$
|
| 39 |
+
|
| 40 |
+
where states $x _ { i } , x _ { g }$ are sampled from the $s$ . The number of actions, $K$ , is also inferred by the model. We represent $\pi$ by a deep network with parameters $\theta _ { \pi }$ in order to capture complex mappings from visual observations $( x )$ to actions. $\pi$ can be thought of as a variable-step generalization of the inverse dynamics model (Jordan & Rumelhart, 1992), or as the policy corresponding to a universal value function (Foster & Dayan, 2002; Schaul et al., 2015), with the difference that $x _ { g }$ need not be the end goal of a task but can also be an intermediate sub-goal.
|
| 41 |
+
|
| 42 |
+
Let the task to be imitated be provided as a sequence of images $\mathcal { D } : \{ x _ { 1 } ^ { d } , x _ { 2 } ^ { d } , . . . , x _ { N } ^ { d } \}$ captured when the expert demonstrates the task. This sequence of images $\mathcal { D }$ could either be temporally dense or sparse. Our agent uses the learned $\mathrm { G S P } \pi$ to imitate the sequence of visual observations $\mathcal { D }$ starting from its initial state $x _ { 0 }$ by following actions predicted by $\bar { \pi } ( x _ { 0 } , x _ { 1 } ^ { d } ; \theta _ { \pi } )$ . Let the observation after executing the predicted action be $x _ { 0 } ^ { \bar { \prime } }$ . Since multiple actions might be required to reach close to $x _ { 1 } ^ { d }$ , the agent queries a separate goal recognizer network to ascertain if the current observation is close to the goal or not. If the answer is negative, the agent executes the action $a = \pi ( x _ { 0 } ^ { \prime } , x _ { 1 } ^ { d } ; \theta _ { \pi } )$ . This process is repeated iteratively until the goal recognizer outputs that agent is near the goal, or a maximum number of steps are reached. Let the observation of the agent at this point be ${ \hat { x } } _ { 1 }$ . After reaching close to the first observation $( x _ { 1 } ^ { d } )$ in the demonstration, the agent sets its goal as $( x _ { 2 } ^ { d } )$ and repeats the process. The agent stops when all observations in the demonstrations are processed.
|
| 43 |
+
|
| 44 |
+
Note that in the method of imitation described above, the expert is never required to convey to the agent what actions it performed. In the following subsections we describe how we learn the GSP, forward consistency loss, goal recognizer network and various baseline methods.
|
| 45 |
+
|
| 46 |
+
# 2.1 LEARNING THE GOAL-CONDITIONED SKILL POLICY (GSP)
|
| 47 |
+
|
| 48 |
+
We first describe the one-step version of GSP and then extend it to variable length multi-step skills. One-step trajectories take the form of $( x _ { t } , a _ { t } , x _ { t + 1 } )$ and GSP, $\hat { a _ { t } } = \pi ( x _ { t } , x _ { t + 1 } ; \theta _ { \pi } )$ , is trained by minimizing the standard cross-entropy loss $\mathcal { L } ( a _ { t } , \hat { a } _ { t } )$ ,
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\mathcal { L } ( a _ { t } , \hat { a } _ { t } ) = p ( a _ { t } | x _ { t } , x _ { t + 1 } ) \log ( \hat { a _ { t } } )
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
with respect to parameters $\theta _ { \pi }$ , where $p$ and $\hat { a _ { t } }$ are the ground-truth and predicted action distributions. While we do not have access to true $p$ , we empirically approximate it using samples from the distribution, $a _ { t }$ , that are executed by the agent during exploration. For minimizing the crossentropy loss, it is common to assume $p$ as a delta function at $a _ { t }$ . However, this assumption is notably violated if $p$ is inherently multi-modal and high-dimensional. If we optimize say a deep neural network assuming $p$ to be a delta function, the same inputs will be presented with different targets (due to multi-modality) leading to high-variance in gradients which in turn would make learning challenging.
|
| 55 |
+
|
| 56 |
+
In our setup, such multi-modality can occur because multiple actions can lead the agent to the same future observation from the initial observation. For instance, in navigation, if the agent is stuck against a corner, turning or moving forward all collapse to the same effect. The issue of multimodality becomes more critical as the length of trajectories grow, because more and more paths may take the agent from the initial observation to the goal observation given more time. Furthermore, it would require many samples to even obtain a good empirical estimate of a high-dimensional multimodal action distribution $p$ .
|
| 57 |
+
|
| 58 |
+
# 2.2 FORWARD CONSISTENCY LOSS
|
| 59 |
+
|
| 60 |
+
One way to account for multi-modality is by employing the likes of variational autoencoders (Kingma & Welling, 2013; Rezende et al., 2014). However, in many practical situations it is not feasible to obtain ample data for each mode. In this work, we propose an alternative based on the insight that in many scenarios, we only care about whether the agent reached the final state or not and the exact trajectory is of lesser interest. Instead of penalizing the actions predicted by the GSP to match the ground truth, we propose to learn the parameters of GSP by minimizing the distance between observation $\hat { x } _ { t + 1 }$ resulting by executing the predicted action $\hat { a } _ { t } = \pi ( x _ { t } , x _ { t + 1 } ; \theta _ { \pi } )$ and the observation $x _ { t + 1 }$ , which is the result of executing the ground truth action $a _ { t }$ being used to train the GSP. In this formulation, even if the predicted and ground-truth action are different, the predicted action will not be penalized if it leads to the same next state as the ground-truth action. While this formulation will not explicitly maintain all modes of the action distribution, it will reduce the variance in gradients and thus help learning. We call this penalty the forward consistency loss.
|
| 61 |
+
|
| 62 |
+
Note that it is not immediately obvious as to how to operationalize forward consistency loss for two reasons: (a) we need the access to a good forward dynamics model that can reliably predict the effect of an action (i.e., the next observation state) given the current observation state, and (b) such a dynamics model should be differentiable in order to train the GSP using the state prediction error. Both of these issues could be resolved if an analytic formulation of forward dynamics is known.
|
| 63 |
+
|
| 64 |
+
In many scenarios of interest, especially if states are represented as images, an analytic forward model is not available. In this work, we learn the forward dynamics $f$ model from the data, and is defined as $\tilde { x } _ { t + 1 } = f ( x _ { t } , a _ { t } ; \theta _ { f } )$ . Let $\hat { x } _ { t + 1 } = f ( x _ { t } , \hat { a } _ { t } ; \theta _ { f } )$ be the state prediction for the action predicted by $\pi$ . Because the forward model is not analytic and learned from data, in general, there is no guarantee that $\tilde { x } _ { t + 1 } = \widehat { x } _ { t + 1 }$ , even though executing these two actions, $a _ { t } , { \hat { a } } _ { t }$ , in the real-world will have the same effect. In order to make the outcome of action predicted by the GSP and the ground-truth action to be consistent with each other, we include an additional term, $\lVert x _ { t + 1 } - \hat { x } _ { t + 1 } \rVert _ { 2 } ^ { 2 }$ in our loss function and infer the parameters $\theta _ { f }$ by minimizing $\begin{array} { r l r } { \| x _ { t + 1 } - \tilde { x } _ { t + 1 } \| _ { 2 } ^ { 2 } } & { { } + } & { \lambda \| x _ { t + 1 } - } \end{array}$ $\hat { x } _ { t + 1 } \| _ { 2 } ^ { 2 }$ , where $\lambda$ is a scalar hyper-parameter. The first term ensures that the learned forward model explains ground truth transitions $( x _ { t } , a _ { t } , x _ { t + 1 } )$ collected by the agent and the second term ensures consistency. The joint objective for training GSP with forward model consistency is:
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\begin{array} { r l } { \underset { \theta _ { \pi } , \theta _ { f } } { \operatorname* { m i n } } } & { \| x _ { t + 1 } - \tilde { x } _ { t + 1 } \| _ { 2 } ^ { \overline { { 2 } } } + \lambda \| x _ { t + 1 } - \hat { x } _ { t + 1 } \| _ { 2 } ^ { 2 } + \mathcal { L } ( a _ { t } , \hat { a } _ { t } ) } \\ { \mathrm { s . t . } } & { \tilde { x } _ { t + 1 } = f ( x _ { t } , a _ { t } ; \theta _ { f } ) } \\ & { \hat { x } _ { t + 1 } = f ( x _ { t } , \hat { a } _ { t } ; \theta _ { f } ) } \\ & { \hat { a } _ { t } = \pi ( x _ { t } , x _ { t + 1 } ; \theta _ { \pi } ) } \end{array}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
Note that learning $\theta _ { \pi } , \theta _ { f }$ jointly from scratch is precarious, because the forward model $f$ might not be good in the beginning, and hence could make the gradient updates noisier for $\pi$ . To address this issue, we first pre-train the forward model with only the first term and GSP separately by blocking the gradient flow and then fine-tune jointly.
|
| 71 |
+
|
| 72 |
+
Generalization to feature space dynamics Past work has shown that learning forward dynamics in the feature space as opposed to raw observation space is more robust and leads to better generalization (Agrawal et al., 2016; Pathak et al., 2017). Following these works, we extend the GSP to make predictions in feature representation $\phi ( x _ { t } ) , \phi ( x _ { t + 1 } )$ of the observations $x _ { t } , x _ { t + 1 }$ respectively learned through the self-supervised task of action prediction. The forward consistency loss is then computed by making predictions in this feature space $\phi$ instead of raw observations. The optimization objective for feature space generalization with mutli-step objective is shown in Equation (4).
|
| 73 |
+
|
| 74 |
+
Generalization to multi-step GSP We extend our one-step optimization to variable length sequence of actions in a straightforward manner by having a multi-step GSP $\pi _ { m }$ model with a stepwise forward consistency loss. The GSP $\pi _ { m }$ maintains an internal recurrent memory of the system and outputs actions conditioned on current observation $x _ { t }$ , starting from $x _ { i }$ to reach goal observation $x _ { T }$ . The forward consistency loss is computed at each time step, and jointly optimized with the action prediction loss over the whole trajectory. The final multi-step objective with feature space dynamics is as follows:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\begin{array} { r l } { \underset { \theta _ { \pi } , \theta _ { f } , \theta _ { \phi } } { \operatorname* { m i n } } } & { \displaystyle \sum _ { t = i } ^ { t = T } \Big ( \| \phi ( x _ { t + 1 } ) - \tilde { \phi } ( x _ { t + 1 } ) \| _ { 2 } ^ { 2 } + \lambda \| \phi ( x _ { t + 1 } ) - \hat { \phi } ( x _ { t + 1 } ) \| _ { 2 } ^ { 2 } + \mathcal L ( a _ { t } , \hat { a } _ { t } ) \Big ) } \\ { \mathrm { s . t . } } & { \tilde { \phi } ( x _ { t + 1 } ) = f ( \phi ( x _ { t } ) , a _ { t } ; \theta _ { f } ) } \\ & { \hat { \phi } ( x _ { t + 1 } ) = f ( \phi ( x _ { t } ) , \hat { a } _ { t } ; \theta _ { f } ) } \\ & { \hat { a } _ { t } = \pi ( \phi ( x _ { t } ) , \phi ( x _ { T } ) ; \theta _ { \pi } ) } \end{array}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $\phi ( . )$ is represented by a CNN with parameters $\theta _ { \phi }$ . The number of steps taken by the multistep GSP $\pi _ { m }$ to reach the goal at inference is variable depending on the decision of goal recognizer; described in next subsection. Note that, in this objective, if $\phi$ is identity then the dynamics simply reduces to modeling in raw observation space. We analyze feature space prediction in VizDoom 3D navigation and stick to observation space in the rope manipulation and the office navigation tasks.
|
| 81 |
+
|
| 82 |
+
The multi-step forward-consistent $G S P \pi _ { m }$ is implemented using a recurrent network which at every step takes as input the feature representation of the current $( \phi ( x _ { t } ) )$ state, goal $( \phi ( x _ { T } ) )$ states, action at the previous time step $\left( a _ { t - 1 } \right)$ and the internal hidden representation $h _ { t - 1 }$ of the recurrent units and predicts $\hat { a } _ { t }$ . Note that inputting the previous action to $\mathrm { G S P } \pi _ { m }$ at each time step could be redundant given that hidden representation is already maintaining a history of the trajectory. Nonetheless, it is helpful to explicitly model this history. This formulation amounts to building an auto-regressive model of the joint action that estimates probability $P ( a _ { t } | x _ { 1 } , a _ { 1 } , . . . a _ { t - 1 } , x _ { t } , x _ { g } )$ at every time step. It is possible to further extend our forward-consistent GSP $\pi _ { m }$ to build multi-step forward model, but we leave that direction of future work.
|
| 83 |
+
|
| 84 |
+
# 2.3 GOAL RECOGNIZER
|
| 85 |
+
|
| 86 |
+
We train a goal recognizer network to figure out if the current goal is reached and therefore allow the agent to take variable numbers of steps between goals. Goal recognition is especially critical when the agent has to transit through a sequence of intermediate goals, as is the case for visual imitation, as otherwise compounding error could quickly lead to divergence from the demonstration. This recognition is simple given knowledge of the true physical state, but difficult when working with visual observations. Aside from the usual challenges of visual recognition, the dependence of observations on the agent’s own dynamics further complicates goal recognition, as the same goal can appear different while moving forward or turning during navigation.
|
| 87 |
+
|
| 88 |
+
We pose goal recognition as a binary classification problem that given an observation $x _ { i }$ and the goal $x _ { g }$ infers if $x _ { i }$ is close to $x _ { g }$ or not. Lacking expert supervision of goals, we draw goal observations at random from the agent’s experience during exploration, since they are known to be feasible. For each such pseudo-goal, we consider observations that were only a few actions away to be positives (i.e., close to the goal) and the remaining observations that were more than a fixed number of actions (i.e., a margin) away as negatives. We trained the goal classifier using the standard cross-entropy loss. Like the skill policy, our goal recognizer is conditioned on the goal for generalization across goals. We found that training an independent goal recognition network consistently outperformed the alternative approach that augments the action space with a “stop” action. Making use of temporal proximity as supervision has also been explored for feature learning in the concurrent work of Sermanet et al. (2018).
|
| 89 |
+
|
| 90 |
+
# 2.4 ABLATIONS AND BASELINES
|
| 91 |
+
|
| 92 |
+
Our proposed formulation of GSP composed of following components: (a) recurrent variable-length skill policy network, (b) explicitly encoding previous action in the recurrence, (c) goal recognizer, (d) forward consistency loss function, and (w) learning forward dynamics in the feature space instead of raw observation space. We systematically ablate these components of forward-consistent GSP, to quantitatively review the importance of each component and then perform comparisons to the prior approaches that could be deployed for the task of visual imitation.
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
Figure 2: Qualitative visualization of results for rope manipulation task using Baxter robot. (a) Our robotics system setup. (b) The sequence of human demonstration images provided by the human during inference for the task of knot-tying (top row), and the sequences of observation states reached by the robot while imitating the given demonstration (bottom rows). (c) The sequence of human demonstration images and the ones reached by the robot for the task of manipulating rope into $\mathbf { \partial } ^ { \cdot } \mathbf { S } ^ { \prime }$ shape. Our agent is able to successfully imitate the demonstration.
|
| 96 |
+
|
| 97 |
+
The following methods will be evaluated and compared to in the subsequent experiments section: (1) Classical methods: In visual navigation, we attempted to compare against the state-of-the-art open source classical methods, namely, ORB-SLAM2 (Davison & Murray, 1998; Mur-Artal & Tardos, ´ 2017) and Open-SFM (Mapillary, 2016). (2) Inverse Model: Nair et al. (2017) leverage vanilla inverse dynamics to follow demonstration in rope manipulation setup. We compare to their method in both visual navigation and manipulation. (3) GSP-NoPrevAction-NoFwdConst is the ablation of our recurrent GSP without previous action history and without forward consistency loss. (4) GSP-NoFwdConst refers to our recurrent GSP with previous action history, but without forward consistency objective. (5) GSP-FwdRegularizer refers to the model where forward prediction is only used to regularize the features of GSP but has no role to play in the loss function of predicted actions. The purpose of this variant is to particularly ablate the benefit of consistency loss function with respect to just having forward model as feature regularizer. (6) GSP refers to our complete method with all the components. We now discuss the experiments and evaluate these baselines.
|
| 98 |
+
|
| 99 |
+
# 3 EXPERIMENTS
|
| 100 |
+
|
| 101 |
+
We evaluate our model by testing its performance on: rope manipulation using Baxter robot, navigation of a wheeled robot in cluttered office environments, and simulated 3D navigation. The key requirements of a good skill policy are that it should generalize to unseen environments and new goals while staying robust to irrelevant distractors in the observations. For rope manipulation, we evaluate generalization by testing the ability of the robot to manipulate the rope into configurations such as knots that were not seen during random exploration. For navigation, both real-world and simulation, we check generalization by testing on a novel building/floor.
|
| 102 |
+
|
| 103 |
+
# 3.1 ROPE MANIPULATION
|
| 104 |
+
|
| 105 |
+
Manipulation of non-rigid and deformable objects, e.g., rope, is a challenging problem in robotics. Even humans learn complex rope manipulation such as tying knots, either by observing an expert
|
| 106 |
+
|
| 107 |
+
<table><tr><td>Method</td><td>Success %</td></tr><tr><td>Inverse Model [Nair et.al. 2017]</td><td>36%± 9.6%</td></tr><tr><td>Forward-regularized GSP</td><td>44%± 9.9%</td></tr><tr><td>Forward-consistent GSP [Ours]</td><td>60% ± 9.8%</td></tr><tr><td></td><td></td></tr></table>
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Manipulation of non-rigid and deformable objects, e.g., rope, is a challenging problem iFigure 3: GSP trained using forward consistency loss significantly outperforms the baselines at the Even huperformtask of (a) manipulating rope into $\mathbf { \partial } ^ { 6 } \mathbf { S } ^ { \prime }$ s learn complex rope manipulation such as tying knots, either by observingby receiving explicit instructions. To test whether our agent could manipu shape as measured by TPS-RPM error and (b) knot-tying by simply observing a human, we use the dawhere we report success rate with bootstrap standard deviation.
|
| 111 |
+
|
| 112 |
+
60K interaction pairs of the form (xt, at, xt+1) that are used to train the GSP.perform it or by receiving explicit instructions. We test whether our agent could manipulate ropes During inference, our proposed approach is tasked to follow a visual demonstration provby simply observing a human perform it. We use the data collected by Nair et al. (2017), where human expert for manipulating the rope into a complex ‘S’ shape and tying a knot. Our agea Baxter robot manipulated a rope kept on the table in front of it. During exploration, the robot robot, only gets to observe the image sequence of intermediate states, as human manipinteracts with the rope by using a pick and place primitive that chooses a random point on the rope rope, without any access to the corresponding actions. Note that the knot shape is never enand displaces it by a randomly chosen length and direction. This process is repeated a number of generalize to be able to follow thtimes to collect about 60K interaction pairs of the form $( x _ { t } , a _ { t } , x _ { t + 1 } )$ ration. More details follow in the suppthat are used to train the GSP.
|
| 113 |
+
|
| 114 |
+
During inference, our proposed approach is tasked to follow a visual demonstration provided by a Metric The performance of thhuman expert for manipulating the rope into a complex $\mathbf { \partial } ^ { \bullet } \mathbf { S } ^ { \bullet }$ odel is evaluated by measuring the non-rigid registr shape and tying a knot. Our agent, Baxter the demonstration. The matching cost is measured using the thin plate spline robust pointrobot, only gets to observe the image sequence of intermediate states, as human manipulates the technique (TPS-RPM) described in (Chui & Rangarajan, 2003). While TPS-RPM providrope, without any access to the corresponding actions. Note that the knot shape is never encountered metric for measuring performance for constructing the ‘S’ shape, it is not an appropriateduring the self-supervised data collection phase and therefore the learned GSP model would have to knots because the configuration of the rope in a knot is 3D due to intertwining of the ropegeneralize to be able to follow the human demonstration. More details follow in the supplementary material, Section A.1.
|
| 115 |
+
|
| 116 |
+
Visual Imitation We compare our approach to the previous best method of visual imitMetric The performance of the model is evaluated by measuring the non-rigid registration cost deploys an inverse model which takes as input a pair of current and goal images to between the rope state achieved by the robot and the state demonstrated by the human at every step in for a fair comparison. The comparison is performed apples-to-apples and the only differethe demonstration. The matching cost is measured using the thin plate spline robust point matching we deploy forward-consistency loss for our approach. The results in Figure 2 show that otechnique (TPS-RPM) described in (Chui & Rangarajan, 2003). While TPS-RPM provides a good significantly outperforms the basmetric for measuring performance for constructing the $\mathbf { \epsilon } ^ { 6 } \mathbf { S } ^ { \prime }$ at task of manipulating the rope in the ‘S’ shape and shape, it is not an appropriate metric for an accuracy of 60% in comparison to 36% achieved by the baseline.knots because the configuration of the rope in a knot is 3D due to intertwining of the rope, and it fails to find the correct point correspondences. We, therefore, use success rate as the metric in knot 3.2 NAV IGAT ION IN INDOOR OFFICE ENVIRONMENTStying where the completion of a successful knot is judged by human verification.
|
| 117 |
+
|
| 118 |
+
A natural way to instruct a robot to move in an indoor office environment is to ask it tVisual Imitation Qualitative examples of our agent trying to manipulate rope are shown in Figure 2. command the robot, in this work, we communicate with the robot by either showing it a sinWe compare our approach to the baseline that deploys an inverse model which takes as input a pair of the goal, or a sequence of images leading to faraway goals. In both scenarios, the robot iof current and goal images to output the desired action to reach the goal (Nair et al., 2017). We reto autonomously determine the motor commands for moving to the goal. We used Turtimplement the baseline and train in our setup for a fair comparison. To further ablate the importance navigation using an onboard camera for sensing RGB images. For learning the GSP, an aof consistency loss, we compare to a baseline that just uses a forward model as a regularizer of features. The results in Figure 3 show that our method significantly outperforms the baseline at task twoof manipulating the rope in the $\mathbf { \partial } ^ { \cdot } \mathbf { S } ^ { \prime }$ ors of a academic building in total. We then dep shape and achieves a success rate of $6 0 \%$ the learned model on ain comparison to $3 6 \%$ achieved by the baseline.
|
| 119 |
+
|
| 120 |
+
# 3.2 NAVIGATION IN INDOOR OFFICE ENVIRONMENTS
|
| 121 |
+
|
| 122 |
+
A natural way to instruct a robot to move in an indoor office environment is to ask it to go near a certain location, such as a refrigerator or a someone’s office. Instead of using language to command the robot, in this work, we communicate with the robot by either showing it a single image of the goal, or a sequence of images leading to faraway goals. In both scenarios, the robot is required to autonomously determine the motor commands for moving to the goal. We used TurtleBot2 for navigation using an onboard camera for sensing RGB images. For learning the GSP, an automated
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
Figure 4: Visualization of the TurtleBot trajectory to reach a goal image (right) from the initial image (top-left). Since the initial and goal image have no overlap, the robot first explores the environment by turning in place. Once it detects overlap between its current image and goal image (i.e. step 42 onward), it moves towards the goal. Note that we did not explicitly train the robot to explore and such exploratory behavior naturally emerged from the self-supervised learning.
|
| 126 |
+
|
| 127 |
+
<table><tr><td>Model Name</td><td>Run Id-1</td><td>Run Id-2</td><td>Run Id-3</td><td>Run Id-4</td><td>Run Id-5</td><td>Run Id-6</td><td>Run Id-7</td><td>Run Id-8</td><td>Num Success</td></tr><tr><td>Random Search</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>0</td></tr><tr><td>Inverse Model[Nair et.al. 2017]</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>0</td></tr><tr><td>GSP-NoPrevAction-NoFwdConst</td><td>39 steps</td><td>34 steps</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>2</td></tr><tr><td>GSP-NoFwdConst</td><td>22 steps</td><td>22 steps</td><td>39 steps</td><td>48 steps</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>4</td></tr><tr><td>GSP (Ours)</td><td>119 steps</td><td>66 steps</td><td>144 steps</td><td>67 steps</td><td>51 steps</td><td>Fail</td><td>100 steps</td><td>Fail</td><td>6</td></tr></table>
|
| 128 |
+
|
| 129 |
+
Table 1: Quantitative evaluation of various methods on the task of navigating using a single image of goal in an unseen environment. Each column represents a different run of our system for a different initial/goal image pair. Our full GSP model takes longer to reach the goal on average given a successful run but reaches the goal successfully at a much higher rate.
|
| 130 |
+
|
| 131 |
+
self-supervised scheme for data collection was devised that doesn’t require human supervision. The robot collected a number of navigation trajectories from two floors of a academic building which in total contain 230K interactions data, i.e. $( x _ { t } , a _ { t } , x _ { t + 1 } )$ . We then deployed the learned model on a separate floor of a building with substantially different textures and furniture layout for performing visual imitation at test time. The details of the robotic setup, data collection, and network architecture of GSP are described in supplementary material, Section A.2.
|
| 132 |
+
|
| 133 |
+
1) Goal Finding We first tested if the GSP learned by the TurtleBot can enable it to find its way to a goal that is within the same room from just a single image of the goal. To test the extrapolative generalization, we keep the Turtlebot approximately 20-30 steps away from the target location in a way that current and goal observations have no overlap as shown in Figure 4. We test the robot in an indoor office environment on a different floor that it has never encountered before. We judge the robot to be successful if it stops close to the goal and failure if it crashed into furniture or does not reach the goal within 200 steps. Since the initial and goal images have no overlap, classical techniques such as structure from motion that rely on feature matching cannot be used to infer the executed action. Therefore, in order to reach the goal, the robot must explore its surroundings. We find that our GSP model outperforms the baseline models in reaching the target location. Our model learns the exploratory behavior of rotating in place until it encounters an overlap between its current and goal image. Results are shown in Table 1 and videos are available at the website 1.
|
| 134 |
+
|
| 135 |
+
2) Visual Imitation In the previous paragraph, we saw that the robot can reach a goal that’s within the same room. However, our agent is unable to reach far away goals such as in other rooms using just a single image. In such scenarios, an expert might communicate instructions like go to the door, turn right, go to the closest chair etc. Instead of language instruction, in our setup we provide a sequence of landmark images to convey the same high-level idea. These landmark images were captured from the robot’s camera as the expert moved the robot from the start to a goal location. However, note that it is not necessary for the expert to control the robot to capture the images because we don’t make use of the expert’s actions, but only the images. Instead of providing the image after every action in the demonstration, we only provided every fifth image. The rationale behind this choice is that we want to sample the demonstration sparsely to minimize the agent’s
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 5: The performance of TurtleBot at following a visual demonstration given as a sequence of images (top row). The TurtleBot is positioned in a manner such that the first image in demonstration has no overlap with its current observation. Even under this condition the robot is able to move close to the first demo image (shown as Robot WayPoint-1) and then follow the provided demonstration until the end. This also exemplifies a failure case for classical methods; there are no possible keypoint matches between WayPoint-1 and WayPoint-2, and the initial observation is even farther from WayPoint-1.
|
| 139 |
+
|
| 140 |
+
<table><tr><td></td><td colspan="3">Maze Demonstration</td><td colspan="3">Loop Demonstration</td></tr><tr><td>Model Name</td><td>Run-1</td><td>Run-2</td><td>Run-3</td><td>Run-1</td><td>Run-2</td><td>Run-3</td></tr><tr><td>SIFT</td><td>10%</td><td>5%</td><td>15%</td><td></td><td></td><td></td></tr><tr><td>GSP-NoPrevAction-NoFwdConst</td><td>60%</td><td>70%</td><td>100%</td><td></td><td>一</td><td></td></tr><tr><td>GSP-NoFwdConst</td><td>65%</td><td>90%</td><td>100%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>GSP (ours)</td><td>100%</td><td>60%</td><td>100%</td><td>0%</td><td>100%</td><td>100%</td></tr></table>
|
| 141 |
+
|
| 142 |
+
Table 2: Quantitative evaluation of TurtleBot’s performance at following visual demonstrations in two scenarios: maze and the loop. We report the $\%$ of landmarks reached by the agent across three runs of two different demonstrations. Results show that our method outperforms the baselines. Note that 3 more trials of the loop demonstration were tested under significantly different lighting conditions and neither model succeeded. Detailed results are available in the supplementary materials.
|
| 143 |
+
|
| 144 |
+
reliance on the expert. Such sub-sampling (as shown in Figure 5) provides an easy way to vary the complexity of the task.
|
| 145 |
+
|
| 146 |
+
We evaluate via multiple runs of two demonstrations, namely, maze demonstration where the robot is supposed to navigate through a maze-like path and perturbed loop demonstration, where the robot is supposed to make a complete loop as instructed by demonstration images. The loop demonstration is longer and more difficult than the maze. We start the agent from different starting locations and orientations with respect to that of demonstration. Each orientation is initialized such that no part of the demonstration’s initial frame is visible. Results are shown in Table 2. When we sample every frame, our method and classical structure from motion can both be used to follow the demonstration. However, at sub-sampling rate of five, SIFT-based feature matching approaches did not work and ORBSLAM2 (Mur-Artal & Tardos, 2017) failed to generate a map, whereas our ´ method was successful. Notice that providing sparse landmark images instead of dense video adds robustness to the visual imitation task. In particular, consider the scenario in which the environment has changed since the time the demonstration was recorded. By not requiring the agent to match every demonstration image frame-by-frame, it becomes less sensitive to changes in the environment.
|
| 147 |
+
|
| 148 |
+
# 3.3 3D NAVIGATION IN VIZDOOM
|
| 149 |
+
|
| 150 |
+
We have evaluated our approach on real-robot scenarios thus far. To further analyze the performance and robustness of our approach through large scale experiments, we setup the same navigation task as described in previous subsection in a simulated VizDoom environment. Our goal is to measure: (1) the robustness of each method with proper error bars, (2) the role of initial self-supervised data collection for performance on visual imitation, (3) the quantitative difference in modeling forward consistency loss in feature space in comparison to raw visual space.
|
| 151 |
+
|
| 152 |
+
Table 3: Quantitative evaluation of our proposed GSP and the baseline models at following visual demonstrations in VizDoom 3D Navigation. Medians and $9 5 \%$ confidence intervals are reported for demonstration completion and efficiency over 50 seeds and 5 human paths per environment type.
|
| 153 |
+
|
| 154 |
+
<table><tr><td>Model Name</td><td>Same Map, Same Texture Median%</td><td>Efficiency %</td><td>Same Map,Diff Texture Median %</td><td>Efficiency %</td><td>Diff Map,Diff Texture Median %</td><td>Efficiency %</td></tr><tr><td colspan="7">Random Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>63.2 ± 5.7</td><td>36.4 ± 3.3</td><td>32.2 ± 0.7</td><td>28.9 ± 4.0</td><td>34.5 ± 0.6</td><td>23.1 ± 2.4</td></tr><tr><td>GSP (ours pixels)</td><td>62.2 ± 5.1</td><td>43.0±2.6</td><td>32.4 ± 0.8</td><td>30.9 ± 2.9</td><td>35.4 ± 1.1</td><td>29.3 ± 3.9</td></tr><tr><td>GSP (ours features)</td><td>68.9 ± 6.9</td><td>53.9 ±4.0</td><td>32.4 ± 0.7</td><td>47.4 ± 7.6</td><td>39.1 ± 2.0</td><td>30.4 ± 2.5</td></tr><tr><td colspan="7">Curiosity-driven Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>78.2 ± 2.3</td><td>63.0 ± 4.3</td><td>43.2 ± 2.6</td><td>33.9 ± 3.0</td><td>40.2 ±4.0</td><td>27.3 ±1.9</td></tr><tr><td>GSP-FwdRegularizer</td><td>78.4± 3.4</td><td>59.8 ± 4.1</td><td>50.6 ± 4.7</td><td>30.9 ±3.0</td><td>37.9 ± 1.1</td><td>28.9 ±1.7</td></tr><tr><td>GSP (ours pixels)</td><td>78.2 ± 3.4</td><td>65.2 ± 4.2</td><td>47.1 ± 4.7</td><td>32.4±3.0</td><td>44.8 ± 4.0</td><td>29.5 ± 1.9</td></tr><tr><td>GSP (ours features)</td><td>78.2 ±4.6</td><td>67.0± 3.3</td><td>49.4 ± 4.8</td><td>26.9 ± 1.5</td><td>47.1 ± 3.0</td><td>24.1 ±1.7</td></tr></table>
|
| 155 |
+
|
| 156 |
+
In VizDoom, we collect data by deploying two types of exploration methods: random exploration and curiosity-driven exploration (Pathak et al., 2017). The hypothesis is that if the initial data collected by the robot is driven by a better strategy than just random, this should eventually help the agent follow long demonstrations better. Our environment consists of 2 maps in total. We train on one map with 5 different starting positions for collecting exploration data. For validation, we collect 5 human demonstrations in a map with the same layout as in training but with different textures. For zero-shot generalization, we collect 5 human demonstrations in a novel map layout with novel textures. Exact details for data collection and training setup are in the supplementary, Section A.3.
|
| 157 |
+
|
| 158 |
+
Metric We report the median of maximum distance reached by the robot in following the given sequence of demonstration images. The maximum distance reached is the distance of farthest landmark point that the agent reaches contiguously, i.e., without missing any intermediate landmarks. Measuring the farthest landmark reached does not capture how efficiently it is reached. Hence, we further measure efficiency of the agent as the ratio of number of steps taken by the agent to reach farthest contiguous landmark with respect to the number of steps shown in human demonstrations.
|
| 159 |
+
|
| 160 |
+
Visual Imitation The task here is same as the one in real robot navigation where the agent is shown a sparse sequence of images to imitate. The results are in Table 3. We found that the exploration data collected via curiosity significantly improves the final imitation performance across all methods including the baselines with respect to random exploration. Our baseline GSP model with a forward regularizer instead of consistency loss ends up overfitting to the training layout. In contrast, our forward-consistent GSP model outperforms other methods in generalizing to new map with novel textures. This indicates that the forward consistency is possibly doing more than just regularizing the policy features. Training forward consistency loss in feature space further enhances the generalization even when both pixel and feature space models perform similarly on training environment.
|
| 161 |
+
|
| 162 |
+
# 4 RELATED WORK
|
| 163 |
+
|
| 164 |
+
Our work is closely related to imitation learning, but we address a different problem statement that gives less supervision and requires generalization across tasks during inference.
|
| 165 |
+
|
| 166 |
+
Imitation Learning The two main threads of imitation learning are behavioral cloning (Argall et al., 2009; Pomerleau, 1989), which directly supervises the mapping of states to actions, and inverse reinforcement learning (Abbeel & Ng, 2004; Ho & Ermon, 2016; Levine et al., 2016; $\mathrm { N g }$ & Russell, 2000; Ziebart et al., 2008), which recovers a reward function that makes the demonstration optimal (or nearly optimal). Inverse RL is most commonly achieved with state-actions, and is difficult to extend to fitting the reward to observations alone, though in principle state occupancy could be sufficient. Recent work in imitation learning (Duan et al., 2017; Finn et al., 2017; Gupta et al., 2017) can generalize to novel goals, but require a wealth of demonstrations comprised of expert state-actions for learning. Our approach does not require expert actions at all.
|
| 167 |
+
|
| 168 |
+
Visual Demonstration The common scenario in LfD is to assume full knowledge of expert states and actions during demonstrations, but several papers have focused on relaxing this supervision to visual observations alone. Nair et al. (2017) observe a sequence of images from the expert demonstration for performing rope manipulations. Sermanet et al. (2017; 2018) imitate humans with robots by self-supervised learning but require expert supervision at training time. Third person imitation learning (Stadie et al., 2017) and the concurrent work of imitation-from-observation (Liu et al., 2018) learn to translate expert observations into agent observations such that they can do policy optimization to minimize the distance between the agent trajectory and the translated demonstration, but they require demonstrations for learning. Visual servoing is a standard problem in robotics (Koichi & Tom, 1993) that seeks to take actions that align the agent’s observation with a target configuration of carefully-designed visual features (Wilson et al., 1996; Yoshimi & Allen, 1994) or raw pixel intensities (Caron et al., 2013). Classical methods rely on fixed features or policies, but more recently end-to-end learning has improved results (Lampe & Riedmiller, 2013; Lee et al., 2017).
|
| 169 |
+
|
| 170 |
+
Forward/Inverse Dynamics and Consistency Numerous prior works, such as Ebert et al. (2017); Oh et al. (2015); Watter et al. (2015), have learned forward dynamics model for planning actions. The works of Agrawal et al. (2016); Jordan & Rumelhart (1992); Pathak et al. (2017); Wolpert et al. (1995) jointly learn forward and inverse dynamics model but do not optimize for consistency between the forward and inverse dynamics. We empirically show that learning models by our forward consistency loss significantly improves task performance. Enforcing consistency as a meta-supervision has also been successful in finding visual correspondences (Zhou et al., 2016) or unpaired image translations (Zhu et al., 2017).
|
| 171 |
+
|
| 172 |
+
Goal Conditioning By parameterizing the value or policy function with a goal, an agent can learn and do multiple tasks. The idea of learning goal-conditioned policies has been explored in (Agrawal et al., 2016; Andrychowicz et al., 2017; Nair et al., 2017; Schaul et al., 2015). Similarly to hindsight experience replay (Andrychowicz et al., 2017) we draw goals from experience, but our policy optimization has better sample efficiency through supervised learning and dynamics modeling instead of reinforcement learning. Moreover, we work from high-dimensional visual inputs instead of knowledge of the true states and do not make use of a task reward during training. In our setting, all of the expert goals are followed zero-shot since they are only revealed after learning.
|
| 173 |
+
|
| 174 |
+
# 5 DISCUSSION
|
| 175 |
+
|
| 176 |
+
In this work, we presented a method for imitating expert demonstrations from visual observations alone. In contrast to most work in imitation learning, we never require access to expert actions. The key idea is to learn a GSP using data collected by self-supervised exploration. However, this limits the quality of the learned GSP as per the exploration data. For instance, we deploy random exploration on our real-world navigation robot, which means that it would almost never follow trajectories that go between rooms. Consequently, the learned GSP is unable to navigate towards a goal image taken in another room without requiring intermediate sub-goals. Pathak et al. (2017) show that the agent learns to move along corridors and transition between rooms purely driven by curiosity in VizDoom. Training GSP on such a structured data could equip the agent with more interesting search behaviors, e.g., going across rooms to find a goal. In general, using better methods of exploration for training the GSP could be a fruitful direction toward generalizing zeroshot imitation.
|
| 177 |
+
|
| 178 |
+
One limitation of our approach is that we require first-person view demonstrations. Extension to third-person demonstrations (Liu et al., 2018; Stadie et al., 2017) would make the method applicable in more general scenarios. Another limitation is that, in the current framework, it is implicitly assumed that the statistics of visual observations when the expert demonstrates the task and the agent follows it are similar. For e.g., when the expert performs a demonstration in one setting, say in daylight and the agent needs to imitate say in the evening, the change in the lighting conditions might result in worse performance. Making the GSP robust to such nuisance changes or other changes in environment by domain adaptation would be necessary to scale the method to practical problems. Another thing to note is that, in the current framework, we do not learn from expert demonstrations, but simply imitate them. It would be interesting to investigate ways for an agent to learn from the expert to bias its exploration to more useful parts of the environment.
|
| 179 |
+
|
| 180 |
+
While we used a sequence of images to provide a demonstration, our work makes no image-specific assumptions and can be extended to using formal language for communicating goals. For instance, after training the GSP, instead of transforming an image into features $\phi$ as described in section 2.2, one could possibly learn a mapping to transform language instructions into this feature space.
|
| 181 |
+
|
| 182 |
+
# ACKNOWLEDGMENTS
|
| 183 |
+
|
| 184 |
+
We would like to thank members of BAIR for fruitful discussions and comments. This work was supported in part by DARPA; NSF IIS-1212798, IIS-1427425, IIS-1536003, Berkeley DeepDrive, and an equipment grant from NVIDIA and the Valrhona Reinforcement Learning Fellowship. DP is supported by NVIDIA and Snapchat’s graduate fellowships.
|
| 185 |
+
|
| 186 |
+
REFERENCES
|
| 187 |
+
Pieter Abbeel and Andrew Y. Ng. Apprenticeship learning via inverse reinforcement learning. In ICML, 2004. 10
|
| 188 |
+
Pulkit Agrawal, Ashvin Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. NIPS, 2016. 2, 4, 11
|
| 189 |
+
Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. In NIPS, 2017. 2, 11
|
| 190 |
+
Brenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 2009. 1, 10
|
| 191 |
+
Albert Bandura and Richard H Walters. Social learning theory, volume 1. Prentice-hall Englewood Cliffs, NJ, 1977. 1
|
| 192 |
+
Cynthia Breazeal and Brian Scassellati. Robots that imitate humans. Trends in cognitive sciences, 2002. 1
|
| 193 |
+
Guillaume Caron, Eric Marchand, and El Mustapha Mouaddib. Photometric visual servoing for omnidirectional cameras. Autonomous Robots, 35(2-3):177–193, 2013. 11
|
| 194 |
+
Haili Chui and Anand Rangarajan. A new point matching algorithm for non-rigid registration. CVIU, 2003. 7
|
| 195 |
+
Andrew J Davison and David W Murray. Mobile robot localisation using active vision. In ECCV, 1998. 6
|
| 196 |
+
Rudiger Dillmann. Teaching and learning of robot tasks via observation of human performance. ¨ Robotics and Autonomous Systems, 2004. 1
|
| 197 |
+
Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In NIPS, 2017. 2, 10
|
| 198 |
+
Frederik Ebert, Chelsea Finn, Alex X Lee, and Sergey Levine. Self-supervised visual planning with temporal skip connections. arXiv preprint arXiv:1710.05268, 2017. 11
|
| 199 |
+
Chelsea Finn, Tianhe Yu, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. One-shot visual imitation learning via meta-learning. CoRL, 2017. 2, 10
|
| 200 |
+
David Foster and Peter Dayan. Structure in the space of value functions. Machine Learning, 2002. 3
|
| 201 |
+
Saurabh Gupta, James Davidson, Sergey Levine, Rahul Sukthankar, and Jitendra Malik. Cognitive mapping and planning for visual navigation. CVPR, 2017. 10
|
| 202 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 15
|
| 203 |
+
Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In NIPS, 2016. 10
|
| 204 |
+
Katsushi Ikeuchi and Takashi Suehiro. Toward an assembly plan from observation. i. task recognition with polyhedral objects. IEEE Transactions on Robotics and Automation, 1994. 1
|
| 205 |
+
|
| 206 |
+
Michael I Jordan and David E Rumelhart. Forward models: Supervised learning with a distal teacher. Cognitive science, 1992. 3, 11
|
| 207 |
+
|
| 208 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015. 15
|
| 209 |
+
|
| 210 |
+
Diederik $\mathrm { \bf P }$ Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 4
|
| 211 |
+
|
| 212 |
+
Hashimoto Koichi and Husband Tom. Visual servoing: real-time control of robot manipulators based on visual sensory feedback, volume 7. World scientific, 1993. 11
|
| 213 |
+
|
| 214 |
+
Yasuo Kuniyoshi, Masayuki Inaba, and Hirockika Inoue. Teaching by showing: Generating robot programs by visual observation of human performance. In International Symposium on Industrial Robots, 1989. 1
|
| 215 |
+
|
| 216 |
+
Yasuo Kuniyoshi, Masayuki Inaba, and Hirochika Inoue. Learning by watching: Extracting reusable task knowledge from visual observation of human performance. IEEE Transactions on Robotics and Automation, 1994. 1
|
| 217 |
+
|
| 218 |
+
Thomas Lampe and Martin Riedmiller. Acquiring visual servoing reaching and grasping skills using neural reinforcement learning. In Neural Networks (IJCNN), The 2013 International Joint Conference on, pp. 1–8. IEEE, 2013. 11
|
| 219 |
+
|
| 220 |
+
Alex X Lee, Sergey Levine, and Pieter Abbeel. Learning visual servoing with deep features and fitted q-iteration. arXiv preprint arXiv:1703.11000, 2017. 11
|
| 221 |
+
|
| 222 |
+
Sergey Levine, Peter Pastor, Alex Krizhevsky, and Deirdre Quillen. Learning hand-eye coordination for robotic grasping with large-scale data collection. In ISER, 2016. 2, 10
|
| 223 |
+
|
| 224 |
+
YuXuan Liu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Imitation from observation: Learning to imitate behaviors from raw video via context translation. ICRA, 2018. 11
|
| 225 |
+
|
| 226 |
+
Mapillary. Open source structure from motion pipeline. https://github.com/mapillary/ OpenSfM, 2016. 6
|
| 227 |
+
|
| 228 |
+
Raul Mur-Artal and Juan D Tardos. Orb-slam2: An open-source slam system for monocular, stereo, ´ and rgb-d cameras. IEEE Transactions on Robotics, 2017. 6, 9
|
| 229 |
+
|
| 230 |
+
Ashvin Nair, Dian Chen, Pulkit Agrawal, Phillip Isola, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Combining self-supervised learning and imitation for vision-based rope manipulation. ICRA, 2017. 2, 6, 7, 11, 15
|
| 231 |
+
|
| 232 |
+
Andrew $\mathrm { ~ Y ~ N ~ g ~ }$ and Stuart J Russell. Algorithms for inverse reinforcement learning. In ICML, pp. 663–670, 2000. 1, 10
|
| 233 |
+
|
| 234 |
+
Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In NIPS, 2015. 11
|
| 235 |
+
|
| 236 |
+
Pierre-Yves Oudeyer, Frdric Kaplan, and Verena V Hafner. Intrinsic motivation systems for autonomous mental development. Evolutionary Computation, 2007. 3
|
| 237 |
+
|
| 238 |
+
Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In ICML, 2017. 3, 4, 10, 11, 16
|
| 239 |
+
|
| 240 |
+
Lerrel Pinto and Abhinav Gupta. Supersizing self-supervision: Learning to grasp from 50k tries and 700 robot hours. ICRA, 2016. 2
|
| 241 |
+
|
| 242 |
+
Dean A Pomerleau. ALVINN: An autonomous land vehicle in a neural network. In NIPS, 1989. 1, 10
|
| 243 |
+
|
| 244 |
+
Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. 4
|
| 245 |
+
|
| 246 |
+
Stefan Schaal. Is imitation learning the route to humanoid robots? Trends in cognitive sciences, 1999. 1
|
| 247 |
+
|
| 248 |
+
Tom Schaul, Daniel Horgan, Karol Gregor, and David Silver. Universal value function approximators. In ICML, 2015. 3, 11
|
| 249 |
+
|
| 250 |
+
Jurgen Schmidhuber. A possibility for implementing curiosity and boredom in model-building neural controllers. In From animals to animats: Proceedings of the first international conference on simulation of adaptive behavior, 1991. 3
|
| 251 |
+
|
| 252 |
+
Pierre Sermanet, Kelvin Xu, and Sergey Levine. Unsupervised perceptual rewards for imitation learning. In RSS, 2017. 11
|
| 253 |
+
|
| 254 |
+
Pierre Sermanet, Corey Lynch, Yevgen Chebotar, Jasmine Hsu, Eric Jang, Stefan Schaal, and Sergey Levine. Time-contrastive networks: Self-supervised learning from video. In ICRA, 2018. 5, 11
|
| 255 |
+
|
| 256 |
+
Bradly C. Stadie, Pieter Abbeel, and Ilya Sutskever. Third-person imitation learning. In ICLR, 2017. 11
|
| 257 |
+
|
| 258 |
+
Manuel Watter, Jost Springenberg, Joschka Boedecker, and Martin Riedmiller. Embed to control: A locally linear latent dynamics model for control from raw images. In NIPS, 2015. 11
|
| 259 |
+
|
| 260 |
+
William J Wilson, CC Williams Hulls, and Graham S Bell. Relative end-effector control using cartesian position based visual servoing. IEEE Transactions on Robotics and Automation, 12(5): 684–696, 1996. 11
|
| 261 |
+
|
| 262 |
+
Daniel M Wolpert, Zoubin Ghahramani, and Michael I Jordan. An internal model for sensorimotor integration. Science-AAAS-Weekly Paper Edition, 1995. 11
|
| 263 |
+
|
| 264 |
+
Yezhou Yang, Yi Li, Cornelia Fermuller, and Yiannis Aloimonos. Robot learning manipulation ¨ action plans by ”watching” unconstrained videos from the world wide web. In AAAI, 2015. 1
|
| 265 |
+
|
| 266 |
+
Billibon H Yoshimi and Peter K Allen. Active, uncalibrated visual servoing. In Robotics and Automation, 1994. Proceedings., 1994 IEEE International Conference on, pp. 156–161. IEEE, 1994. 11
|
| 267 |
+
|
| 268 |
+
Tinghui Zhou, Philipp Krahenbuhl, Mathieu Aubry, Qixing Huang, and Alexei A. Efros. Learning dense correspondence via 3d-guided cycle consistency. In CVPR, 2016. 11
|
| 269 |
+
|
| 270 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. ICCV, 2017. 11
|
| 271 |
+
|
| 272 |
+
Brian D. Ziebart, Andrew Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, 2008. 10
|
| 273 |
+
|
| 274 |
+
# A SUPPLEMENTARY MATERIAL
|
| 275 |
+
|
| 276 |
+
We evaluated our proposed approach across number of environments and tasks. In this section, we provide additional details about the experimental task setup and hyperparameters.
|
| 277 |
+
|
| 278 |
+
# A.1 ROPE MANIPUATION
|
| 279 |
+
|
| 280 |
+
Robotic Setup Our setup of Baxter robot for rope manipulation task follows the one described in Nair et al. (2017). We re-use the data that is collected by a Baxter robot interacting with a rope kept on a table in front of it in a self-supervised manner, and consists of approximately 60K interaction pairs.
|
| 281 |
+
|
| 282 |
+
Implementation Details The base architecture for all the methods consists of a pre-trained AlexNet, whose features are fed into a skill policy network that predicts the location of grasp, direction of displacement, and the magnitude of displacement. For the forward regularizer baseline, a forward model is trained to jointly regularize the AlexNet features along with the skill policy network with loss weight of forward model set to 0.1. For our proposed forward-consistent GSP, a forward consistency loss is then applied to the actions predicted by the skill policy network. The forward consistency loss weight is set to 0.1. Since this is a fully observed setup, we did not use recurrence in any of the skill policy networks. All the models are optimized using Adam (Kingma & Ba, 2015) with a learning rate of $1 e - 4$ . For the first 40K iterations, the AlexNet weights were frozen, and then fine-tuned jointly with the later layers.
|
| 283 |
+
|
| 284 |
+
# A.2 NAVIGATION IN INDOOR OFFICE ENVIRONMENTS
|
| 285 |
+
|
| 286 |
+
Robotic Setup We used the TurtleBot2 robot comprising of a wheeled Kobuki base and an Orbbec Astra camera for capturing RGB images for all our experiments. The robot’s action space had four discrete actions: move forward, turn left, turn right, and stand still (i.e., no-op). The forward action is approximately $1 0 \mathrm { c m }$ forward translation and the turning actions are approximately 14-18 degrees of rotation. These numbers vary due to the use of velocity control. A powerful on-board laptop was used to process the images and infer the motor commands. Several modifications were made to the default TurtleBot setup: the base’s batteries were replaced with longer lasting ones, and the default NVIDIA Jetson TK1 embedded board was replaced with a more powerful GigaByte Aero laptop and an accompanying portable charging power bank.
|
| 287 |
+
|
| 288 |
+
Self-supervised Data Collection We devised an automated self-supervised scheme for data collection which does not require any human supervision. In our scheme, the robot first samples one out of four actions and then the number of times to repeat the selected action (i.e. action repeat). The no-op action is sampled with probability 0.05 and the other three actions are sampled with equal probability. In case the no-op action is chosen, an action repeat of $\{ 1 , 2 \}$ steps is uniformly sampled. In case of other actions, an action repeat of 1-5 steps is randomly and uniformly chosen. The robot autonomously repeated this process and collected 230K interactions from two floors of an academic building. If the robot crashes into an object, it performs a reset maneuver by first moving backwards and then turning right/left by a uniformly sampled angle between 90-270 degrees. A separate floor of the building with substantially different furniture layout and visual textures is then used for testing the learned model.
|
| 289 |
+
|
| 290 |
+
Implementation Details The data collected by self-supervised exploration is then used to train our recurrent forward-consistent GSP. The base architecture of our model is an ImageNet pre-trained ResNet-50 (He et al., 2016) network. Input are the images and output are the actions of robot. The forward consistency model is first pre-trained and then fine-tuned together end-to-end with the GSP. The loss weight of the forward model is 0.1, and the objective is minimized using Adam (Kingma & Ba, 2015) with learning rate of $5 e - 4$ .
|
| 291 |
+
|
| 292 |
+
# A.3 3D NAVIGATION IN VIZDOOM
|
| 293 |
+
|
| 294 |
+
Self-supervised Data Collection Our environment consists of two map. One map is used for training and validation, with different textures for validation. Second map has different textures than training and validation and is used for generalization experiments. For both curiosity and random exploration, we collect a total of 1.5 million frames each with action repeat of 4 collected in the standard DoomMyWayHome map used for training in Pathak et al. (2017). $\sim \textstyle { \frac { 2 } { 3 } }$ of the data comes from random-room resets, and $\sim \frac { 1 } { 3 }$ of the data comes from a fixed-room reset (i.e, room number 10). The curiosity policy was half sampled and half greedy with the exact split being $40 \%$ greedy policy random-room reset, $2 5 \%$ sample policy random-room reset, $2 5 \%$ sample policy fixed-room reset, and $10 \%$ greedy policy fixed-room reset.
|
| 295 |
+
|
| 296 |
+
Table 4: Quantitative evaluation of TurtleBot’s performance at following visual demonstrations in two conditions: maze and the loop. The fraction denotes how many landmarks it reaches out of the total number of landmarks in the full demonstration. The bracketed number represents the number of actions the agent took to reach its farthest landmark.
|
| 297 |
+
|
| 298 |
+
<table><tr><td rowspan="2">Model Name</td><td colspan="3">Maze Runs - Optimal Steps: 100</td><td colspan="3">Loop Runs - Optimal Steps: 85</td></tr><tr><td>Run-1</td><td>Run-2</td><td>Run-3</td><td>Run-1</td><td>Run-2</td><td>Run-3</td></tr><tr><td>SIFT</td><td>2/20 (10)</td><td>1/20 (9)</td><td>3/20 (38)</td><td>一</td><td>1</td><td>1</td></tr><tr><td>GSP-NoPrevAction-NoFwdConst</td><td>12/20 (109)</td><td>14/20 (184)</td><td>20/20 (263)</td><td></td><td></td><td></td></tr><tr><td>GSP-NoFwdConst</td><td>13/20 (147)</td><td>18/20 (325)</td><td>20/20 (166)</td><td>0/17 (0)</td><td>0/17 (0)</td><td>0/17 (0)</td></tr><tr><td>GSP (ours)</td><td>20/20 (353)</td><td>12/20 (194)</td><td>20/20 (168)</td><td>0/17 (0)</td><td>17/17 (243)</td><td>17/17 (165)</td></tr></table>
|
| 299 |
+
|
| 300 |
+
Table 5: Quantitative evaluation of our proposed GSP and the baseline models at following visual demonstrations in VizDoom 3D Navigation. Means and standard errors are reported for demonstration completion and efficiency over 50 seeds and 5 human paths per environment type.
|
| 301 |
+
|
| 302 |
+
<table><tr><td>Model Name</td><td>Same Map,Same Texture Mean %</td><td>Efficiency %</td><td>Same Map,Diff Texture Mean %</td><td>Efficiency %</td><td>Diff Map,Diff Texture Mean %</td><td>Efficiency %</td></tr><tr><td colspan="7">Random Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>61.8 ± 0.9</td><td>60.4 ± 2.1</td><td>37.6 ± 0.7</td><td>68.6 ± 2.5</td><td>42.2 ± 0.8</td><td>50.6 ± 1.9</td></tr><tr><td>GSP (ours pixels)</td><td>61.0 ± 1.0</td><td>68.0± 2.2</td><td>38.1 ± 0.7</td><td>69.1 ± 2.5</td><td>40.3 ± 0.9</td><td>64.2 ± 2.3</td></tr><tr><td>GSP (ours features)</td><td>62.0 ± 1.0</td><td>75.8 ± 2.5</td><td>37.0 ± 0.7</td><td>87.1 ± 2.8</td><td>48.7 ± 0.9</td><td>52.5 ± 1.8</td></tr><tr><td colspan="7">Curiosity-driven Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>70.7 ± 0.9</td><td>66.9 ± 1.4</td><td>49.8 ± 0.8</td><td>55.8 ± 2.2</td><td>51.2 ±1.0</td><td>39.5 ± 1.3</td></tr><tr><td>GSP-FwdRegularizer</td><td>70.6 ± 0.9</td><td>67.9 ± 1.6</td><td>51.9 ± 0.8</td><td>49.3 ± 1.6</td><td>48.3 ± 1.0</td><td>49.3 ± 1.8</td></tr><tr><td>GSP (ours pixels)</td><td>71.0 ± 0.9</td><td>73.1 ± 2.7</td><td>53.3 ± 0.9</td><td>53.4 ± 2.0</td><td>52.2 ± 1.0</td><td>44.0 ± 1.5</td></tr><tr><td>GSP (ours features)</td><td>68.8 ±1.0</td><td>72.0 ± 1.7</td><td>53.2 ±0.8</td><td>53.0 ± 2.3</td><td>52.8 ± 0.9</td><td>37.7 ± 1.3</td></tr></table>
|
| 303 |
+
|
| 304 |
+
For each scenario, we collect 5 human demonstrations each and give every 10th frame as input to the agent for the task of visual imitation. For each human path, we evaluate on 50 different seeds where the agent starts with a uniformly sampled orientation. We then get the median across 250 (50x5) total runs for each type of environment and report median of the percentage of the human path reached by the agent and how soon it got to that point relative to the human.
|
| 305 |
+
|
| 306 |
+
In the main paper, we report median accuracy and the confidence interval for median 2. Since the initial position of the agent is randomized in orientation compared to the one in visual demonstration, the mean results suffer from high variance due to outliers. Hence, median accuracy results in a more reliable metric. However, we report mean results in Table 5 for the completion.
|
| 307 |
+
|
| 308 |
+
Implementation Details All models were trained with batch size 64, Adam Solver with 1e-4 learning rate, and landmark slices uniformly sampled between 5 to 15 action steps for each batch. The observations are $4 2 \mathbf { x } 4 2$ resolution, grayscale images with only one-time channel both for goal and current state. All models used the same goal recognizer that was trained on the curiosity data. For selecting the hyper-parameters in forward regularizer, pixel-based forward consistency, and featurebased forward consistency models, we selected the best loss coefficient among $\{ 0 . 0 1 , 0 . 0 5 , 0 . 1 \}$ that achieved the highest median completion on our validation environment which consisted of the training maps with novel textures.
|
parse/train/BkisuzWRW/BkisuzWRW_content_list.json
ADDED
|
@@ -0,0 +1,1624 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ZERO-SHOT VISUAL IMITATION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
557,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Deepak Pathak∗, Parsa Mahmoudieh∗, Guanghao Luo∗, Pulkit Agrawal∗, Dian Chen, Yide Shentu, Evan Shelhamer, Jitendra Malik, Alexei A. Efros, Trevor Darrell ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
143,
|
| 20 |
+
795,
|
| 21 |
+
178
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "UC Berkeley ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
190,
|
| 31 |
+
269,
|
| 32 |
+
204
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "{pathak,parsa.m,michaelluo,pulkitag,dianchen, fredshentu,shelhamer,malik,efros,trevor}@cs.berkeley.edu ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
186,
|
| 41 |
+
208,
|
| 42 |
+
568,
|
| 43 |
+
231
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
268,
|
| 54 |
+
544,
|
| 55 |
+
284
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "The current dominant paradigm for imitation learning relies on strong supervision of expert actions to learn both what and how to imitate. We pursue an alternative paradigm wherein an agent first explores the world without any expert supervision and then distills its experience into a goal-conditioned skill policy with a novel forward consistency loss. In our framework, the role of the expert is only to communicate the goals (i.e., what to imitate) during inference. The learned policy is then employed to mimic the expert (i.e., how to imitate) after seeing just a sequence of images demonstrating the desired task. Our method is “zero-shot” in the sense that the agent never has access to expert actions during training or for the task demonstration at inference. We evaluate our zero-shot imitator in two real-world settings: complex rope manipulation with a Baxter robot and navigation in previously unseen office environments with a TurtleBot. Through further experiments in VizDoom simulation, we provide evidence that better mechanisms for exploration lead to learning a more capable policy which in turn improves end task performance. Videos, models, and more details are available at https://pathak22.github.io/zeroshot-imitation/. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
303,
|
| 65 |
+
764,
|
| 66 |
+
523
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
556,
|
| 77 |
+
336,
|
| 78 |
+
571
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Imitating expert demonstration is a powerful mechanism for learning to perform tasks from raw sensory observations. The current dominant paradigm in learning from demonstration (LfD) (Argall et al., 2009; $\\mathrm { N g }$ & Russell, 2000; Pomerleau, 1989; Schaal, 1999) requires the expert to either manually move the robot joints (i.e., kinesthetic teaching) or teleoperate the robot to execute the desired task. The expert typically provides multiple demonstrations of a task at training time, and this generates data in the form of observation-action pairs from the agent’s point of view. The agent then distills this data into a policy for performing the task of interest. Such a heavily supervised approach, where it is necessary to provide demonstrations by controlling the robot, is incredibly tedious for the human expert. Moreover, for every new task that the robot needs to execute, the expert is required to provide a new set of demonstrations. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
589,
|
| 88 |
+
825,
|
| 89 |
+
728
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Instead of communicating how to perform a task via observation-action pairs, a more general formulation allows the expert to communicate only what needs to be done by providing the observations of the desired world states via a video or a sparse sequence of images. This way, the agent is required to infer how to perform the task (i.e., actions) by itself. In psychology, this is known as observational learning (Bandura & Walters, 1977). While this is a harder learning problem, it is a more interesting setting, because the expert can demonstrate multiple tasks quickly and easily. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
736,
|
| 99 |
+
823,
|
| 100 |
+
819
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "An agent without any prior knowledge will find it extremely hard to imitate a task by simply watching a visual demonstration in all but the simplest of cases. Thus, the natural question is: in order to imitate, what form of prior knowledge must the agent possess? A large body of work (Breazeal & Scassellati, 2002; Dillmann, 2004; Ikeuchi & Suehiro, 1994; Kuniyoshi et al., 1989; 1994; Yang et al., 2015) has sought to capture prior knowledge by manually pre-defining the state that must be inferred from the observations. The agent then infers how to perform the task (i.e., plan for imitation) using this state. Unfortunately, computer vision systems are often unable to estimate the state variables accurately and it has proven non-trivial for downstream planning systems to be robust to such errors. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
825,
|
| 110 |
+
823,
|
| 111 |
+
896
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/434a373c7a71373e1b8cff5cbcc2f991d2bed131753c2fa08b2da192ece06e28.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: The goal-conditioned skill policy (GSP) takes as input the current and goal observations and outputs an action sequence that would lead to that goal. We compare the performance of the following GSP models: (a) Simple inverse model; (b) Mutli-step GSP with previous action history; (c) Mutli-step GSP with previous action history and a forward model as regularizer, but no forward consistency; (d) Mutli-step GSP with forward consistency loss proposed in this work. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
209,
|
| 124 |
+
71,
|
| 125 |
+
790,
|
| 126 |
+
300
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
429,
|
| 136 |
+
825,
|
| 137 |
+
486
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "In this paper, we follow (Agrawal et al., 2016; Levine et al., 2016; Pinto & Gupta, 2016) in pursuing an alternative paradigm, where an agent explores the environment without any expert supervision and distills this exploration data into goal-directed skills. These skills can then be used to imitate the visual demonstration provided by the expert (Nair et al., 2017). Here, by skill we mean a function that predicts the sequence of actions to take the agent from the current observation to the goal. We call this function a goal-conditioned skill policy (GSP). The GSP is learned in a self-supervised way by re-labeling the states visited during the agent’s exploration of the environment as goals and the actions executed by the agent as the prediction targets, similar to (Agrawal et al., 2016; Andrychowicz et al., 2017). During inference, given goal observations from a demonstration, the GSP can infer how to reach these goals in turn from the current observation, and thereby imitate the task step-by-step. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
492,
|
| 147 |
+
825,
|
| 148 |
+
646
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "One critical challenge in learning the GSP is that, in general, there are multiple possible ways of going from one state to another: that is, the distribution of trajectories between states is multimodal. We address this issue with our novel forward consistency loss based on the intuition that, for most tasks, reaching the goal is more important than how it is reached. To operationalize this, we first learn a forward model that predicts the next observation given an action and a current observation. We use the difference in the output of the forward model for the GSP-selected action and the ground truth next state to train the GSP. This loss has the effect of making the GSP-predicted action consistent with the ground-truth action instead of exactly matching the actions themselves, thus ensuring that actions that are different from the ground-truth—but lead to the same next state— are not inadvertently penalized. To account for varying number of steps required to reach different goals, we propose to jointly optimize the GSP with a goal recognizer that determines if the current goal has been satisfied. See Figure 1 for a schematic illustration of the GSP architecture. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
652,
|
| 158 |
+
825,
|
| 159 |
+
819
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "We call our method zero-shot because the agent never has access to expert actions, neither during training of the GSP nor for task demonstration at inference. In contrast, most recent work on oneshot imitation learning requires full knowledge of actions and a wealth of expert demonstrations during training (Duan et al., 2017; Finn et al., 2017). In summary, we propose a method that (1) does not require any extrinsic reward or expert supervision during learning, (2) only needs demonstrations during inference, and (3) restricts demonstrations to visual observations alone rather than full stateactions. Instead of learning by imitation, our agent learns to imitate. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
827,
|
| 169 |
+
823,
|
| 170 |
+
924
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "We evaluate our zero-shot imitator on real-world robots for rope manipulation tasks using a Baxter and office navigation using a TurtleBot. We show that the proposed forward consistency loss improves the performance on the complex task of knot tying from $3 \\hat { 6 } \\%$ to $6 0 \\%$ accuracy. In navigation experiments, we steer a simple wheeled robot around partially-observable office environments and show that the learned GSP generalizes to unseen environments. Furthermore, using navigation experiments in VizDoom environment, we show that (GSP) learned using curiosity-driven exploration (Oudeyer et al., 2007; Pathak et al., 2017; Schmidhuber, 1991) can more accurately follow demonstrations as compared to using random exploration data for learning the GSP. Overall our experiments show that the forward-consistent GSP can be used to imitate a variety of tasks without making environment or task-specific assumptions. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
173,
|
| 179 |
+
103,
|
| 180 |
+
825,
|
| 181 |
+
242
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 2
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "2 LEARNING TO IMITATE WITHOUT EXPERT SUPERVISION ",
|
| 188 |
+
"text_level": 1,
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
263,
|
| 192 |
+
671,
|
| 193 |
+
281
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Let $\\boldsymbol { S } : \\{ x _ { 1 } , a _ { 1 } , x _ { 2 } , a _ { 2 } , . . . , x _ { T } \\}$ be the sequence of observations and actions generated by the agent as it explores its environment using the policy $a = \\pi _ { E } ( s )$ . This exploration data is used to learn the goal-conditioned skill policy (GSP) $\\pi$ takes as input a pair of observations $( x _ { i } , x _ { g } )$ and outputs sequence of actions $( \\vec { a } _ { \\tau } : a _ { 1 } , a _ { 2 } . . . a _ { K } )$ required to reach the goal observation $( x _ { g } )$ from the current observation $( x _ { i } )$ . ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
296,
|
| 203 |
+
825,
|
| 204 |
+
366
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "equation",
|
| 210 |
+
"img_path": "images/b6032d7d1c7505b241c06336a57e65ecdc8290c76a33d7eedd27f43da0cac7f0.jpg",
|
| 211 |
+
"text": "$$\n\\vec { a } _ { \\tau } = \\pi ( x _ { i } , x _ { g } ; \\theta _ { \\pi } )\n$$",
|
| 212 |
+
"text_format": "latex",
|
| 213 |
+
"bbox": [
|
| 214 |
+
436,
|
| 215 |
+
375,
|
| 216 |
+
562,
|
| 217 |
+
392
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "where states $x _ { i } , x _ { g }$ are sampled from the $s$ . The number of actions, $K$ , is also inferred by the model. We represent $\\pi$ by a deep network with parameters $\\theta _ { \\pi }$ in order to capture complex mappings from visual observations $( x )$ to actions. $\\pi$ can be thought of as a variable-step generalization of the inverse dynamics model (Jordan & Rumelhart, 1992), or as the policy corresponding to a universal value function (Foster & Dayan, 2002; Schaul et al., 2015), with the difference that $x _ { g }$ need not be the end goal of a task but can also be an intermediate sub-goal. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
398,
|
| 227 |
+
825,
|
| 228 |
+
484
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Let the task to be imitated be provided as a sequence of images $\\mathcal { D } : \\{ x _ { 1 } ^ { d } , x _ { 2 } ^ { d } , . . . , x _ { N } ^ { d } \\}$ captured when the expert demonstrates the task. This sequence of images $\\mathcal { D }$ could either be temporally dense or sparse. Our agent uses the learned $\\mathrm { G S P } \\pi$ to imitate the sequence of visual observations $\\mathcal { D }$ starting from its initial state $x _ { 0 }$ by following actions predicted by $\\bar { \\pi } ( x _ { 0 } , x _ { 1 } ^ { d } ; \\theta _ { \\pi } )$ . Let the observation after executing the predicted action be $x _ { 0 } ^ { \\bar { \\prime } }$ . Since multiple actions might be required to reach close to $x _ { 1 } ^ { d }$ , the agent queries a separate goal recognizer network to ascertain if the current observation is close to the goal or not. If the answer is negative, the agent executes the action $a = \\pi ( x _ { 0 } ^ { \\prime } , x _ { 1 } ^ { d } ; \\theta _ { \\pi } )$ . This process is repeated iteratively until the goal recognizer outputs that agent is near the goal, or a maximum number of steps are reached. Let the observation of the agent at this point be ${ \\hat { x } } _ { 1 }$ . After reaching close to the first observation $( x _ { 1 } ^ { d } )$ in the demonstration, the agent sets its goal as $( x _ { 2 } ^ { d } )$ and repeats the process. The agent stops when all observations in the demonstrations are processed. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
489,
|
| 238 |
+
825,
|
| 239 |
+
643
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "Note that in the method of imitation described above, the expert is never required to convey to the agent what actions it performed. In the following subsections we describe how we learn the GSP, forward consistency loss, goal recognizer network and various baseline methods. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
650,
|
| 249 |
+
825,
|
| 250 |
+
693
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "2.1 LEARNING THE GOAL-CONDITIONED SKILL POLICY (GSP)",
|
| 257 |
+
"text_level": 1,
|
| 258 |
+
"bbox": [
|
| 259 |
+
174,
|
| 260 |
+
709,
|
| 261 |
+
625,
|
| 262 |
+
724
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "We first describe the one-step version of GSP and then extend it to variable length multi-step skills. One-step trajectories take the form of $( x _ { t } , a _ { t } , x _ { t + 1 } )$ and GSP, $\\hat { a _ { t } } = \\pi ( x _ { t } , x _ { t + 1 } ; \\theta _ { \\pi } )$ , is trained by minimizing the standard cross-entropy loss $\\mathcal { L } ( a _ { t } , \\hat { a } _ { t } )$ , ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
737,
|
| 272 |
+
825,
|
| 273 |
+
780
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "equation",
|
| 279 |
+
"img_path": "images/8bbc8898b74e8d972d59486c8c99f1df5878e09b5c0998228e9cd5b8bc23b5a0.jpg",
|
| 280 |
+
"text": "$$\n\\mathcal { L } ( a _ { t } , \\hat { a } _ { t } ) = p ( a _ { t } | x _ { t } , x _ { t + 1 } ) \\log ( \\hat { a _ { t } } )\n$$",
|
| 281 |
+
"text_format": "latex",
|
| 282 |
+
"bbox": [
|
| 283 |
+
383,
|
| 284 |
+
787,
|
| 285 |
+
614,
|
| 286 |
+
804
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "with respect to parameters $\\theta _ { \\pi }$ , where $p$ and $\\hat { a _ { t } }$ are the ground-truth and predicted action distributions. While we do not have access to true $p$ , we empirically approximate it using samples from the distribution, $a _ { t }$ , that are executed by the agent during exploration. For minimizing the crossentropy loss, it is common to assume $p$ as a delta function at $a _ { t }$ . However, this assumption is notably violated if $p$ is inherently multi-modal and high-dimensional. If we optimize say a deep neural network assuming $p$ to be a delta function, the same inputs will be presented with different targets (due to multi-modality) leading to high-variance in gradients which in turn would make learning challenging. ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
811,
|
| 296 |
+
823,
|
| 297 |
+
924
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "In our setup, such multi-modality can occur because multiple actions can lead the agent to the same future observation from the initial observation. For instance, in navigation, if the agent is stuck against a corner, turning or moving forward all collapse to the same effect. The issue of multimodality becomes more critical as the length of trajectories grow, because more and more paths may take the agent from the initial observation to the goal observation given more time. Furthermore, it would require many samples to even obtain a good empirical estimate of a high-dimensional multimodal action distribution $p$ . ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
103,
|
| 307 |
+
825,
|
| 308 |
+
202
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "2.2 FORWARD CONSISTENCY LOSS ",
|
| 315 |
+
"text_level": 1,
|
| 316 |
+
"bbox": [
|
| 317 |
+
176,
|
| 318 |
+
217,
|
| 319 |
+
429,
|
| 320 |
+
231
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "One way to account for multi-modality is by employing the likes of variational autoencoders (Kingma & Welling, 2013; Rezende et al., 2014). However, in many practical situations it is not feasible to obtain ample data for each mode. In this work, we propose an alternative based on the insight that in many scenarios, we only care about whether the agent reached the final state or not and the exact trajectory is of lesser interest. Instead of penalizing the actions predicted by the GSP to match the ground truth, we propose to learn the parameters of GSP by minimizing the distance between observation $\\hat { x } _ { t + 1 }$ resulting by executing the predicted action $\\hat { a } _ { t } = \\pi ( x _ { t } , x _ { t + 1 } ; \\theta _ { \\pi } )$ and the observation $x _ { t + 1 }$ , which is the result of executing the ground truth action $a _ { t }$ being used to train the GSP. In this formulation, even if the predicted and ground-truth action are different, the predicted action will not be penalized if it leads to the same next state as the ground-truth action. While this formulation will not explicitly maintain all modes of the action distribution, it will reduce the variance in gradients and thus help learning. We call this penalty the forward consistency loss. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
243,
|
| 330 |
+
825,
|
| 331 |
+
410
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "Note that it is not immediately obvious as to how to operationalize forward consistency loss for two reasons: (a) we need the access to a good forward dynamics model that can reliably predict the effect of an action (i.e., the next observation state) given the current observation state, and (b) such a dynamics model should be differentiable in order to train the GSP using the state prediction error. Both of these issues could be resolved if an analytic formulation of forward dynamics is known. ",
|
| 338 |
+
"bbox": [
|
| 339 |
+
174,
|
| 340 |
+
416,
|
| 341 |
+
825,
|
| 342 |
+
486
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "In many scenarios of interest, especially if states are represented as images, an analytic forward model is not available. In this work, we learn the forward dynamics $f$ model from the data, and is defined as $\\tilde { x } _ { t + 1 } = f ( x _ { t } , a _ { t } ; \\theta _ { f } )$ . Let $\\hat { x } _ { t + 1 } = f ( x _ { t } , \\hat { a } _ { t } ; \\theta _ { f } )$ be the state prediction for the action predicted by $\\pi$ . Because the forward model is not analytic and learned from data, in general, there is no guarantee that $\\tilde { x } _ { t + 1 } = \\widehat { x } _ { t + 1 }$ , even though executing these two actions, $a _ { t } , { \\hat { a } } _ { t }$ , in the real-world will have the same effect. In order to make the outcome of action predicted by the GSP and the ground-truth action to be consistent with each other, we include an additional term, $\\lVert x _ { t + 1 } - \\hat { x } _ { t + 1 } \\rVert _ { 2 } ^ { 2 }$ in our loss function and infer the parameters $\\theta _ { f }$ by minimizing $\\begin{array} { r l r } { \\| x _ { t + 1 } - \\tilde { x } _ { t + 1 } \\| _ { 2 } ^ { 2 } } & { { } + } & { \\lambda \\| x _ { t + 1 } - } \\end{array}$ $\\hat { x } _ { t + 1 } \\| _ { 2 } ^ { 2 }$ , where $\\lambda$ is a scalar hyper-parameter. The first term ensures that the learned forward model explains ground truth transitions $( x _ { t } , a _ { t } , x _ { t + 1 } )$ collected by the agent and the second term ensures consistency. The joint objective for training GSP with forward model consistency is: ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
492,
|
| 352 |
+
826,
|
| 353 |
+
647
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "equation",
|
| 359 |
+
"img_path": "images/a56811f00ff5fb2e5b428f9bee9e0c13aa5cd9a0f50f697f6d77d5db3e1722b4.jpg",
|
| 360 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { \\theta _ { \\pi } , \\theta _ { f } } { \\operatorname* { m i n } } } & { \\| x _ { t + 1 } - \\tilde { x } _ { t + 1 } \\| _ { 2 } ^ { \\overline { { 2 } } } + \\lambda \\| x _ { t + 1 } - \\hat { x } _ { t + 1 } \\| _ { 2 } ^ { 2 } + \\mathcal { L } ( a _ { t } , \\hat { a } _ { t } ) } \\\\ { \\mathrm { s . t . } } & { \\tilde { x } _ { t + 1 } = f ( x _ { t } , a _ { t } ; \\theta _ { f } ) } \\\\ & { \\hat { x } _ { t + 1 } = f ( x _ { t } , \\hat { a } _ { t } ; \\theta _ { f } ) } \\\\ & { \\hat { a } _ { t } = \\pi ( x _ { t } , x _ { t + 1 } ; \\theta _ { \\pi } ) } \\end{array}\n$$",
|
| 361 |
+
"text_format": "latex",
|
| 362 |
+
"bbox": [
|
| 363 |
+
308,
|
| 364 |
+
646,
|
| 365 |
+
689,
|
| 366 |
+
728
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "Note that learning $\\theta _ { \\pi } , \\theta _ { f }$ jointly from scratch is precarious, because the forward model $f$ might not be good in the beginning, and hence could make the gradient updates noisier for $\\pi$ . To address this issue, we first pre-train the forward model with only the first term and GSP separately by blocking the gradient flow and then fine-tune jointly. ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
174,
|
| 375 |
+
728,
|
| 376 |
+
820,
|
| 377 |
+
785
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "Generalization to feature space dynamics Past work has shown that learning forward dynamics in the feature space as opposed to raw observation space is more robust and leads to better generalization (Agrawal et al., 2016; Pathak et al., 2017). Following these works, we extend the GSP to make predictions in feature representation $\\phi ( x _ { t } ) , \\phi ( x _ { t + 1 } )$ of the observations $x _ { t } , x _ { t + 1 }$ respectively learned through the self-supervised task of action prediction. The forward consistency loss is then computed by making predictions in this feature space $\\phi$ instead of raw observations. The optimization objective for feature space generalization with mutli-step objective is shown in Equation (4). ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
173,
|
| 386 |
+
790,
|
| 387 |
+
825,
|
| 388 |
+
890
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Generalization to multi-step GSP We extend our one-step optimization to variable length sequence of actions in a straightforward manner by having a multi-step GSP $\\pi _ { m }$ model with a stepwise forward consistency loss. The GSP $\\pi _ { m }$ maintains an internal recurrent memory of the system and outputs actions conditioned on current observation $x _ { t }$ , starting from $x _ { i }$ to reach goal observation $x _ { T }$ . The forward consistency loss is computed at each time step, and jointly optimized with the action prediction loss over the whole trajectory. The final multi-step objective with feature space dynamics is as follows: ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
173,
|
| 397 |
+
895,
|
| 398 |
+
821,
|
| 399 |
+
924
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
103,
|
| 409 |
+
825,
|
| 410 |
+
172
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 4
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "equation",
|
| 416 |
+
"img_path": "images/9bf4f050941243c6f6951ba26f4a6fec7f3900f9f95afec146082f70e8dd8b4d.jpg",
|
| 417 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { \\theta _ { \\pi } , \\theta _ { f } , \\theta _ { \\phi } } { \\operatorname* { m i n } } } & { \\displaystyle \\sum _ { t = i } ^ { t = T } \\Big ( \\| \\phi ( x _ { t + 1 } ) - \\tilde { \\phi } ( x _ { t + 1 } ) \\| _ { 2 } ^ { 2 } + \\lambda \\| \\phi ( x _ { t + 1 } ) - \\hat { \\phi } ( x _ { t + 1 } ) \\| _ { 2 } ^ { 2 } + \\mathcal L ( a _ { t } , \\hat { a } _ { t } ) \\Big ) } \\\\ { \\mathrm { s . t . } } & { \\tilde { \\phi } ( x _ { t + 1 } ) = f ( \\phi ( x _ { t } ) , a _ { t } ; \\theta _ { f } ) } \\\\ & { \\hat { \\phi } ( x _ { t + 1 } ) = f ( \\phi ( x _ { t } ) , \\hat { a } _ { t } ; \\theta _ { f } ) } \\\\ & { \\hat { a } _ { t } = \\pi ( \\phi ( x _ { t } ) , \\phi ( x _ { T } ) ; \\theta _ { \\pi } ) } \\end{array}\n$$",
|
| 418 |
+
"text_format": "latex",
|
| 419 |
+
"bbox": [
|
| 420 |
+
223,
|
| 421 |
+
176,
|
| 422 |
+
772,
|
| 423 |
+
280
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 4
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "where $\\phi ( . )$ is represented by a CNN with parameters $\\theta _ { \\phi }$ . The number of steps taken by the multistep GSP $\\pi _ { m }$ to reach the goal at inference is variable depending on the decision of goal recognizer; described in next subsection. Note that, in this objective, if $\\phi$ is identity then the dynamics simply reduces to modeling in raw observation space. We analyze feature space prediction in VizDoom 3D navigation and stick to observation space in the rope manipulation and the office navigation tasks. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
281,
|
| 433 |
+
825,
|
| 434 |
+
352
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 4
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "The multi-step forward-consistent $G S P \\pi _ { m }$ is implemented using a recurrent network which at every step takes as input the feature representation of the current $( \\phi ( x _ { t } ) )$ state, goal $( \\phi ( x _ { T } ) )$ states, action at the previous time step $\\left( a _ { t - 1 } \\right)$ and the internal hidden representation $h _ { t - 1 }$ of the recurrent units and predicts $\\hat { a } _ { t }$ . Note that inputting the previous action to $\\mathrm { G S P } \\pi _ { m }$ at each time step could be redundant given that hidden representation is already maintaining a history of the trajectory. Nonetheless, it is helpful to explicitly model this history. This formulation amounts to building an auto-regressive model of the joint action that estimates probability $P ( a _ { t } | x _ { 1 } , a _ { 1 } , . . . a _ { t - 1 } , x _ { t } , x _ { g } )$ at every time step. It is possible to further extend our forward-consistent GSP $\\pi _ { m }$ to build multi-step forward model, but we leave that direction of future work. ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
174,
|
| 443 |
+
358,
|
| 444 |
+
825,
|
| 445 |
+
484
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 4
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "2.3 GOAL RECOGNIZER",
|
| 452 |
+
"text_level": 1,
|
| 453 |
+
"bbox": [
|
| 454 |
+
174,
|
| 455 |
+
501,
|
| 456 |
+
352,
|
| 457 |
+
515
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 4
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "We train a goal recognizer network to figure out if the current goal is reached and therefore allow the agent to take variable numbers of steps between goals. Goal recognition is especially critical when the agent has to transit through a sequence of intermediate goals, as is the case for visual imitation, as otherwise compounding error could quickly lead to divergence from the demonstration. This recognition is simple given knowledge of the true physical state, but difficult when working with visual observations. Aside from the usual challenges of visual recognition, the dependence of observations on the agent’s own dynamics further complicates goal recognition, as the same goal can appear different while moving forward or turning during navigation. ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
526,
|
| 467 |
+
825,
|
| 468 |
+
638
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 4
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "We pose goal recognition as a binary classification problem that given an observation $x _ { i }$ and the goal $x _ { g }$ infers if $x _ { i }$ is close to $x _ { g }$ or not. Lacking expert supervision of goals, we draw goal observations at random from the agent’s experience during exploration, since they are known to be feasible. For each such pseudo-goal, we consider observations that were only a few actions away to be positives (i.e., close to the goal) and the remaining observations that were more than a fixed number of actions (i.e., a margin) away as negatives. We trained the goal classifier using the standard cross-entropy loss. Like the skill policy, our goal recognizer is conditioned on the goal for generalization across goals. We found that training an independent goal recognition network consistently outperformed the alternative approach that augments the action space with a “stop” action. Making use of temporal proximity as supervision has also been explored for feature learning in the concurrent work of Sermanet et al. (2018). ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
173,
|
| 477 |
+
645,
|
| 478 |
+
825,
|
| 479 |
+
797
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 4
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "2.4 ABLATIONS AND BASELINES ",
|
| 486 |
+
"text_level": 1,
|
| 487 |
+
"bbox": [
|
| 488 |
+
176,
|
| 489 |
+
814,
|
| 490 |
+
415,
|
| 491 |
+
828
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 4
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "Our proposed formulation of GSP composed of following components: (a) recurrent variable-length skill policy network, (b) explicitly encoding previous action in the recurrence, (c) goal recognizer, (d) forward consistency loss function, and (w) learning forward dynamics in the feature space instead of raw observation space. We systematically ablate these components of forward-consistent GSP, to quantitatively review the importance of each component and then perform comparisons to the prior approaches that could be deployed for the task of visual imitation. ",
|
| 498 |
+
"bbox": [
|
| 499 |
+
174,
|
| 500 |
+
839,
|
| 501 |
+
825,
|
| 502 |
+
924
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 4
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "image",
|
| 508 |
+
"img_path": "images/eae4b6382f956de78ccfb3d61bb1504645c7601322aa79336c4ca70b4e33e508.jpg",
|
| 509 |
+
"image_caption": [
|
| 510 |
+
"Figure 2: Qualitative visualization of results for rope manipulation task using Baxter robot. (a) Our robotics system setup. (b) The sequence of human demonstration images provided by the human during inference for the task of knot-tying (top row), and the sequences of observation states reached by the robot while imitating the given demonstration (bottom rows). (c) The sequence of human demonstration images and the ones reached by the robot for the task of manipulating rope into $\\mathbf { \\partial } ^ { \\cdot } \\mathbf { S } ^ { \\prime }$ shape. Our agent is able to successfully imitate the demonstration. "
|
| 511 |
+
],
|
| 512 |
+
"image_footnote": [],
|
| 513 |
+
"bbox": [
|
| 514 |
+
223,
|
| 515 |
+
74,
|
| 516 |
+
772,
|
| 517 |
+
401
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 5
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "The following methods will be evaluated and compared to in the subsequent experiments section: (1) Classical methods: In visual navigation, we attempted to compare against the state-of-the-art open source classical methods, namely, ORB-SLAM2 (Davison & Murray, 1998; Mur-Artal & Tardos, ´ 2017) and Open-SFM (Mapillary, 2016). (2) Inverse Model: Nair et al. (2017) leverage vanilla inverse dynamics to follow demonstration in rope manipulation setup. We compare to their method in both visual navigation and manipulation. (3) GSP-NoPrevAction-NoFwdConst is the ablation of our recurrent GSP without previous action history and without forward consistency loss. (4) GSP-NoFwdConst refers to our recurrent GSP with previous action history, but without forward consistency objective. (5) GSP-FwdRegularizer refers to the model where forward prediction is only used to regularize the features of GSP but has no role to play in the loss function of predicted actions. The purpose of this variant is to particularly ablate the benefit of consistency loss function with respect to just having forward model as feature regularizer. (6) GSP refers to our complete method with all the components. We now discuss the experiments and evaluate these baselines. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
520,
|
| 527 |
+
825,
|
| 528 |
+
700
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 5
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "3 EXPERIMENTS ",
|
| 535 |
+
"text_level": 1,
|
| 536 |
+
"bbox": [
|
| 537 |
+
176,
|
| 538 |
+
722,
|
| 539 |
+
326,
|
| 540 |
+
738
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 5
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "We evaluate our model by testing its performance on: rope manipulation using Baxter robot, navigation of a wheeled robot in cluttered office environments, and simulated 3D navigation. The key requirements of a good skill policy are that it should generalize to unseen environments and new goals while staying robust to irrelevant distractors in the observations. For rope manipulation, we evaluate generalization by testing the ability of the robot to manipulate the rope into configurations such as knots that were not seen during random exploration. For navigation, both real-world and simulation, we check generalization by testing on a novel building/floor. ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
753,
|
| 550 |
+
825,
|
| 551 |
+
852
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 5
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "3.1 ROPE MANIPULATION ",
|
| 558 |
+
"text_level": 1,
|
| 559 |
+
"bbox": [
|
| 560 |
+
176,
|
| 561 |
+
869,
|
| 562 |
+
367,
|
| 563 |
+
882
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "Manipulation of non-rigid and deformable objects, e.g., rope, is a challenging problem in robotics. Even humans learn complex rope manipulation such as tying knots, either by observing an expert ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
176,
|
| 572 |
+
895,
|
| 573 |
+
823,
|
| 574 |
+
924
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "table",
|
| 580 |
+
"img_path": "images/fae6edfc37d3577a3315f693038849eed414e21d7abb39711c71306fd37ceffe.jpg",
|
| 581 |
+
"table_caption": [],
|
| 582 |
+
"table_footnote": [],
|
| 583 |
+
"table_body": "<table><tr><td>Method</td><td>Success %</td></tr><tr><td>Inverse Model [Nair et.al. 2017]</td><td>36%± 9.6%</td></tr><tr><td>Forward-regularized GSP</td><td>44%± 9.9%</td></tr><tr><td>Forward-consistent GSP [Ours]</td><td>60% ± 9.8%</td></tr><tr><td></td><td></td></tr></table>",
|
| 584 |
+
"bbox": [
|
| 585 |
+
482,
|
| 586 |
+
156,
|
| 587 |
+
756,
|
| 588 |
+
213
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 6
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "image",
|
| 594 |
+
"img_path": "images/c118b28d8a83c13253a4b46c69b0cdd73a3ab2269efb886b97d23af45a7c11ed.jpg",
|
| 595 |
+
"image_caption": [
|
| 596 |
+
"Manipulation of non-rigid and deformable objects, e.g., rope, is a challenging problem iFigure 3: GSP trained using forward consistency loss significantly outperforms the baselines at the Even huperformtask of (a) manipulating rope into $\\mathbf { \\partial } ^ { 6 } \\mathbf { S } ^ { \\prime }$ s learn complex rope manipulation such as tying knots, either by observingby receiving explicit instructions. To test whether our agent could manipu shape as measured by TPS-RPM error and (b) knot-tying by simply observing a human, we use the dawhere we report success rate with bootstrap standard deviation. "
|
| 597 |
+
],
|
| 598 |
+
"image_footnote": [],
|
| 599 |
+
"bbox": [
|
| 600 |
+
238,
|
| 601 |
+
103,
|
| 602 |
+
462,
|
| 603 |
+
280
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 6
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "60K interaction pairs of the form (xt, at, xt+1) that are used to train the GSP.perform it or by receiving explicit instructions. We test whether our agent could manipulate ropes During inference, our proposed approach is tasked to follow a visual demonstration provby simply observing a human perform it. We use the data collected by Nair et al. (2017), where human expert for manipulating the rope into a complex ‘S’ shape and tying a knot. Our agea Baxter robot manipulated a rope kept on the table in front of it. During exploration, the robot robot, only gets to observe the image sequence of intermediate states, as human manipinteracts with the rope by using a pick and place primitive that chooses a random point on the rope rope, without any access to the corresponding actions. Note that the knot shape is never enand displaces it by a randomly chosen length and direction. This process is repeated a number of generalize to be able to follow thtimes to collect about 60K interaction pairs of the form $( x _ { t } , a _ { t } , x _ { t + 1 } )$ ration. More details follow in the suppthat are used to train the GSP. ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
174,
|
| 612 |
+
364,
|
| 613 |
+
825,
|
| 614 |
+
449
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 6
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "During inference, our proposed approach is tasked to follow a visual demonstration provided by a Metric The performance of thhuman expert for manipulating the rope into a complex $\\mathbf { \\partial } ^ { \\bullet } \\mathbf { S } ^ { \\bullet }$ odel is evaluated by measuring the non-rigid registr shape and tying a knot. Our agent, Baxter the demonstration. The matching cost is measured using the thin plate spline robust pointrobot, only gets to observe the image sequence of intermediate states, as human manipulates the technique (TPS-RPM) described in (Chui & Rangarajan, 2003). While TPS-RPM providrope, without any access to the corresponding actions. Note that the knot shape is never encountered metric for measuring performance for constructing the ‘S’ shape, it is not an appropriateduring the self-supervised data collection phase and therefore the learned GSP model would have to knots because the configuration of the rope in a knot is 3D due to intertwining of the ropegeneralize to be able to follow the human demonstration. More details follow in the supplementary material, Section A.1. ",
|
| 621 |
+
"bbox": [
|
| 622 |
+
174,
|
| 623 |
+
457,
|
| 624 |
+
825,
|
| 625 |
+
554
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 6
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "Visual Imitation We compare our approach to the previous best method of visual imitMetric The performance of the model is evaluated by measuring the non-rigid registration cost deploys an inverse model which takes as input a pair of current and goal images to between the rope state achieved by the robot and the state demonstrated by the human at every step in for a fair comparison. The comparison is performed apples-to-apples and the only differethe demonstration. The matching cost is measured using the thin plate spline robust point matching we deploy forward-consistency loss for our approach. The results in Figure 2 show that otechnique (TPS-RPM) described in (Chui & Rangarajan, 2003). While TPS-RPM provides a good significantly outperforms the basmetric for measuring performance for constructing the $\\mathbf { \\epsilon } ^ { 6 } \\mathbf { S } ^ { \\prime }$ at task of manipulating the rope in the ‘S’ shape and shape, it is not an appropriate metric for an accuracy of 60% in comparison to 36% achieved by the baseline.knots because the configuration of the rope in a knot is 3D due to intertwining of the rope, and it fails to find the correct point correspondences. We, therefore, use success rate as the metric in knot 3.2 NAV IGAT ION IN INDOOR OFFICE ENVIRONMENTStying where the completion of a successful knot is judged by human verification. ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
173,
|
| 634 |
+
560,
|
| 635 |
+
825,
|
| 636 |
+
672
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 6
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "A natural way to instruct a robot to move in an indoor office environment is to ask it tVisual Imitation Qualitative examples of our agent trying to manipulate rope are shown in Figure 2. command the robot, in this work, we communicate with the robot by either showing it a sinWe compare our approach to the baseline that deploys an inverse model which takes as input a pair of the goal, or a sequence of images leading to faraway goals. In both scenarios, the robot iof current and goal images to output the desired action to reach the goal (Nair et al., 2017). We reto autonomously determine the motor commands for moving to the goal. We used Turtimplement the baseline and train in our setup for a fair comparison. To further ablate the importance navigation using an onboard camera for sensing RGB images. For learning the GSP, an aof consistency loss, we compare to a baseline that just uses a forward model as a regularizer of features. The results in Figure 3 show that our method significantly outperforms the baseline at task twoof manipulating the rope in the $\\mathbf { \\partial } ^ { \\cdot } \\mathbf { S } ^ { \\prime }$ ors of a academic building in total. We then dep shape and achieves a success rate of $6 0 \\%$ the learned model on ain comparison to $3 6 \\%$ achieved by the baseline. ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
174,
|
| 645 |
+
679,
|
| 646 |
+
825,
|
| 647 |
+
790
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 6
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "3.2 NAVIGATION IN INDOOR OFFICE ENVIRONMENTS ",
|
| 654 |
+
"text_level": 1,
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
811,
|
| 658 |
+
557,
|
| 659 |
+
827
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 6
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "A natural way to instruct a robot to move in an indoor office environment is to ask it to go near a certain location, such as a refrigerator or a someone’s office. Instead of using language to command the robot, in this work, we communicate with the robot by either showing it a single image of the goal, or a sequence of images leading to faraway goals. In both scenarios, the robot is required to autonomously determine the motor commands for moving to the goal. We used TurtleBot2 for navigation using an onboard camera for sensing RGB images. For learning the GSP, an automated ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
840,
|
| 669 |
+
825,
|
| 670 |
+
924
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 6
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "image",
|
| 676 |
+
"img_path": "images/a29bde948214b45c66c17edaa9b35cd33f80620e6ae9d7303d434715280bc509.jpg",
|
| 677 |
+
"image_caption": [
|
| 678 |
+
"Figure 4: Visualization of the TurtleBot trajectory to reach a goal image (right) from the initial image (top-left). Since the initial and goal image have no overlap, the robot first explores the environment by turning in place. Once it detects overlap between its current image and goal image (i.e. step 42 onward), it moves towards the goal. Note that we did not explicitly train the robot to explore and such exploratory behavior naturally emerged from the self-supervised learning. "
|
| 679 |
+
],
|
| 680 |
+
"image_footnote": [],
|
| 681 |
+
"bbox": [
|
| 682 |
+
176,
|
| 683 |
+
103,
|
| 684 |
+
818,
|
| 685 |
+
228
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 7
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "table",
|
| 691 |
+
"img_path": "images/7e3457bf79942d614f60545cf6d5b9311c124a1a0bb3d293032d238a8d64fcf2.jpg",
|
| 692 |
+
"table_caption": [],
|
| 693 |
+
"table_footnote": [],
|
| 694 |
+
"table_body": "<table><tr><td>Model Name</td><td>Run Id-1</td><td>Run Id-2</td><td>Run Id-3</td><td>Run Id-4</td><td>Run Id-5</td><td>Run Id-6</td><td>Run Id-7</td><td>Run Id-8</td><td>Num Success</td></tr><tr><td>Random Search</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>0</td></tr><tr><td>Inverse Model[Nair et.al. 2017]</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>0</td></tr><tr><td>GSP-NoPrevAction-NoFwdConst</td><td>39 steps</td><td>34 steps</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>2</td></tr><tr><td>GSP-NoFwdConst</td><td>22 steps</td><td>22 steps</td><td>39 steps</td><td>48 steps</td><td>Fail</td><td>Fail</td><td>Fail</td><td>Fail</td><td>4</td></tr><tr><td>GSP (Ours)</td><td>119 steps</td><td>66 steps</td><td>144 steps</td><td>67 steps</td><td>51 steps</td><td>Fail</td><td>100 steps</td><td>Fail</td><td>6</td></tr></table>",
|
| 695 |
+
"bbox": [
|
| 696 |
+
173,
|
| 697 |
+
325,
|
| 698 |
+
825,
|
| 699 |
+
400
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 7
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "Table 1: Quantitative evaluation of various methods on the task of navigating using a single image of goal in an unseen environment. Each column represents a different run of our system for a different initial/goal image pair. Our full GSP model takes longer to reach the goal on average given a successful run but reaches the goal successfully at a much higher rate. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
173,
|
| 708 |
+
410,
|
| 709 |
+
825,
|
| 710 |
+
465
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 7
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "self-supervised scheme for data collection was devised that doesn’t require human supervision. The robot collected a number of navigation trajectories from two floors of a academic building which in total contain 230K interactions data, i.e. $( x _ { t } , a _ { t } , x _ { t + 1 } )$ . We then deployed the learned model on a separate floor of a building with substantially different textures and furniture layout for performing visual imitation at test time. The details of the robotic setup, data collection, and network architecture of GSP are described in supplementary material, Section A.2. ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
494,
|
| 720 |
+
825,
|
| 721 |
+
578
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 7
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "1) Goal Finding We first tested if the GSP learned by the TurtleBot can enable it to find its way to a goal that is within the same room from just a single image of the goal. To test the extrapolative generalization, we keep the Turtlebot approximately 20-30 steps away from the target location in a way that current and goal observations have no overlap as shown in Figure 4. We test the robot in an indoor office environment on a different floor that it has never encountered before. We judge the robot to be successful if it stops close to the goal and failure if it crashed into furniture or does not reach the goal within 200 steps. Since the initial and goal images have no overlap, classical techniques such as structure from motion that rely on feature matching cannot be used to infer the executed action. Therefore, in order to reach the goal, the robot must explore its surroundings. We find that our GSP model outperforms the baseline models in reaching the target location. Our model learns the exploratory behavior of rotating in place until it encounters an overlap between its current and goal image. Results are shown in Table 1 and videos are available at the website 1. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
174,
|
| 730 |
+
585,
|
| 731 |
+
825,
|
| 732 |
+
751
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 7
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "2) Visual Imitation In the previous paragraph, we saw that the robot can reach a goal that’s within the same room. However, our agent is unable to reach far away goals such as in other rooms using just a single image. In such scenarios, an expert might communicate instructions like go to the door, turn right, go to the closest chair etc. Instead of language instruction, in our setup we provide a sequence of landmark images to convey the same high-level idea. These landmark images were captured from the robot’s camera as the expert moved the robot from the start to a goal location. However, note that it is not necessary for the expert to control the robot to capture the images because we don’t make use of the expert’s actions, but only the images. Instead of providing the image after every action in the demonstration, we only provided every fifth image. The rationale behind this choice is that we want to sample the demonstration sparsely to minimize the agent’s ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
174,
|
| 741 |
+
758,
|
| 742 |
+
825,
|
| 743 |
+
897
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 7
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "image",
|
| 749 |
+
"img_path": "images/d73cebcd59f84f7349737b59d7c4d067bdee1cbd515f7bbb88ec98234df23365.jpg",
|
| 750 |
+
"image_caption": [
|
| 751 |
+
"Figure 5: The performance of TurtleBot at following a visual demonstration given as a sequence of images (top row). The TurtleBot is positioned in a manner such that the first image in demonstration has no overlap with its current observation. Even under this condition the robot is able to move close to the first demo image (shown as Robot WayPoint-1) and then follow the provided demonstration until the end. This also exemplifies a failure case for classical methods; there are no possible keypoint matches between WayPoint-1 and WayPoint-2, and the initial observation is even farther from WayPoint-1. "
|
| 752 |
+
],
|
| 753 |
+
"image_footnote": [],
|
| 754 |
+
"bbox": [
|
| 755 |
+
176,
|
| 756 |
+
103,
|
| 757 |
+
821,
|
| 758 |
+
238
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 8
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "table",
|
| 764 |
+
"img_path": "images/e6637016712eb47f00af02c43fdf86e8481b5611502ee7ca82643d6994762216.jpg",
|
| 765 |
+
"table_caption": [],
|
| 766 |
+
"table_footnote": [],
|
| 767 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Maze Demonstration</td><td colspan=\"3\">Loop Demonstration</td></tr><tr><td>Model Name</td><td>Run-1</td><td>Run-2</td><td>Run-3</td><td>Run-1</td><td>Run-2</td><td>Run-3</td></tr><tr><td>SIFT</td><td>10%</td><td>5%</td><td>15%</td><td></td><td></td><td></td></tr><tr><td>GSP-NoPrevAction-NoFwdConst</td><td>60%</td><td>70%</td><td>100%</td><td></td><td>一</td><td></td></tr><tr><td>GSP-NoFwdConst</td><td>65%</td><td>90%</td><td>100%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>GSP (ours)</td><td>100%</td><td>60%</td><td>100%</td><td>0%</td><td>100%</td><td>100%</td></tr></table>",
|
| 768 |
+
"bbox": [
|
| 769 |
+
204,
|
| 770 |
+
364,
|
| 771 |
+
794,
|
| 772 |
+
467
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 8
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "Table 2: Quantitative evaluation of TurtleBot’s performance at following visual demonstrations in two scenarios: maze and the loop. We report the $\\%$ of landmarks reached by the agent across three runs of two different demonstrations. Results show that our method outperforms the baselines. Note that 3 more trials of the loop demonstration were tested under significantly different lighting conditions and neither model succeeded. Detailed results are available in the supplementary materials. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
173,
|
| 781 |
+
477,
|
| 782 |
+
825,
|
| 783 |
+
547
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 8
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "reliance on the expert. Such sub-sampling (as shown in Figure 5) provides an easy way to vary the complexity of the task. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
174,
|
| 792 |
+
577,
|
| 793 |
+
823,
|
| 794 |
+
604
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 8
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "We evaluate via multiple runs of two demonstrations, namely, maze demonstration where the robot is supposed to navigate through a maze-like path and perturbed loop demonstration, where the robot is supposed to make a complete loop as instructed by demonstration images. The loop demonstration is longer and more difficult than the maze. We start the agent from different starting locations and orientations with respect to that of demonstration. Each orientation is initialized such that no part of the demonstration’s initial frame is visible. Results are shown in Table 2. When we sample every frame, our method and classical structure from motion can both be used to follow the demonstration. However, at sub-sampling rate of five, SIFT-based feature matching approaches did not work and ORBSLAM2 (Mur-Artal & Tardos, 2017) failed to generate a map, whereas our ´ method was successful. Notice that providing sparse landmark images instead of dense video adds robustness to the visual imitation task. In particular, consider the scenario in which the environment has changed since the time the demonstration was recorded. By not requiring the agent to match every demonstration image frame-by-frame, it becomes less sensitive to changes in the environment. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
173,
|
| 803 |
+
613,
|
| 804 |
+
825,
|
| 805 |
+
792
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 8
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "3.3 3D NAVIGATION IN VIZDOOM ",
|
| 812 |
+
"text_level": 1,
|
| 813 |
+
"bbox": [
|
| 814 |
+
176,
|
| 815 |
+
813,
|
| 816 |
+
423,
|
| 817 |
+
827
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 8
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "We have evaluated our approach on real-robot scenarios thus far. To further analyze the performance and robustness of our approach through large scale experiments, we setup the same navigation task as described in previous subsection in a simulated VizDoom environment. Our goal is to measure: (1) the robustness of each method with proper error bars, (2) the role of initial self-supervised data collection for performance on visual imitation, (3) the quantitative difference in modeling forward consistency loss in feature space in comparison to raw visual space. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
174,
|
| 826 |
+
840,
|
| 827 |
+
825,
|
| 828 |
+
924
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 8
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "table",
|
| 834 |
+
"img_path": "images/4b21af28d70c143c16b16856c4772d6a723406f7c9874cf0ca5104442fffde88.jpg",
|
| 835 |
+
"table_caption": [
|
| 836 |
+
"Table 3: Quantitative evaluation of our proposed GSP and the baseline models at following visual demonstrations in VizDoom 3D Navigation. Medians and $9 5 \\%$ confidence intervals are reported for demonstration completion and efficiency over 50 seeds and 5 human paths per environment type. "
|
| 837 |
+
],
|
| 838 |
+
"table_footnote": [],
|
| 839 |
+
"table_body": "<table><tr><td>Model Name</td><td>Same Map, Same Texture Median%</td><td>Efficiency %</td><td>Same Map,Diff Texture Median %</td><td>Efficiency %</td><td>Diff Map,Diff Texture Median %</td><td>Efficiency %</td></tr><tr><td colspan=\"7\">Random Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>63.2 ± 5.7</td><td>36.4 ± 3.3</td><td>32.2 ± 0.7</td><td>28.9 ± 4.0</td><td>34.5 ± 0.6</td><td>23.1 ± 2.4</td></tr><tr><td>GSP (ours pixels)</td><td>62.2 ± 5.1</td><td>43.0±2.6</td><td>32.4 ± 0.8</td><td>30.9 ± 2.9</td><td>35.4 ± 1.1</td><td>29.3 ± 3.9</td></tr><tr><td>GSP (ours features)</td><td>68.9 ± 6.9</td><td>53.9 ±4.0</td><td>32.4 ± 0.7</td><td>47.4 ± 7.6</td><td>39.1 ± 2.0</td><td>30.4 ± 2.5</td></tr><tr><td colspan=\"7\">Curiosity-driven Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>78.2 ± 2.3</td><td>63.0 ± 4.3</td><td>43.2 ± 2.6</td><td>33.9 ± 3.0</td><td>40.2 ±4.0</td><td>27.3 ±1.9</td></tr><tr><td>GSP-FwdRegularizer</td><td>78.4± 3.4</td><td>59.8 ± 4.1</td><td>50.6 ± 4.7</td><td>30.9 ±3.0</td><td>37.9 ± 1.1</td><td>28.9 ±1.7</td></tr><tr><td>GSP (ours pixels)</td><td>78.2 ± 3.4</td><td>65.2 ± 4.2</td><td>47.1 ± 4.7</td><td>32.4±3.0</td><td>44.8 ± 4.0</td><td>29.5 ± 1.9</td></tr><tr><td>GSP (ours features)</td><td>78.2 ±4.6</td><td>67.0± 3.3</td><td>49.4 ± 4.8</td><td>26.9 ± 1.5</td><td>47.1 ± 3.0</td><td>24.1 ±1.7</td></tr></table>",
|
| 840 |
+
"bbox": [
|
| 841 |
+
176,
|
| 842 |
+
101,
|
| 843 |
+
825,
|
| 844 |
+
260
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 9
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "In VizDoom, we collect data by deploying two types of exploration methods: random exploration and curiosity-driven exploration (Pathak et al., 2017). The hypothesis is that if the initial data collected by the robot is driven by a better strategy than just random, this should eventually help the agent follow long demonstrations better. Our environment consists of 2 maps in total. We train on one map with 5 different starting positions for collecting exploration data. For validation, we collect 5 human demonstrations in a map with the same layout as in training but with different textures. For zero-shot generalization, we collect 5 human demonstrations in a novel map layout with novel textures. Exact details for data collection and training setup are in the supplementary, Section A.3. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
340,
|
| 854 |
+
825,
|
| 855 |
+
452
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 9
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Metric We report the median of maximum distance reached by the robot in following the given sequence of demonstration images. The maximum distance reached is the distance of farthest landmark point that the agent reaches contiguously, i.e., without missing any intermediate landmarks. Measuring the farthest landmark reached does not capture how efficiently it is reached. Hence, we further measure efficiency of the agent as the ratio of number of steps taken by the agent to reach farthest contiguous landmark with respect to the number of steps shown in human demonstrations. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
458,
|
| 865 |
+
825,
|
| 866 |
+
541
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 9
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "Visual Imitation The task here is same as the one in real robot navigation where the agent is shown a sparse sequence of images to imitate. The results are in Table 3. We found that the exploration data collected via curiosity significantly improves the final imitation performance across all methods including the baselines with respect to random exploration. Our baseline GSP model with a forward regularizer instead of consistency loss ends up overfitting to the training layout. In contrast, our forward-consistent GSP model outperforms other methods in generalizing to new map with novel textures. This indicates that the forward consistency is possibly doing more than just regularizing the policy features. Training forward consistency loss in feature space further enhances the generalization even when both pixel and feature space models perform similarly on training environment. ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
173,
|
| 875 |
+
549,
|
| 876 |
+
825,
|
| 877 |
+
674
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 9
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "4 RELATED WORK ",
|
| 884 |
+
"text_level": 1,
|
| 885 |
+
"bbox": [
|
| 886 |
+
176,
|
| 887 |
+
695,
|
| 888 |
+
344,
|
| 889 |
+
712
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 9
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Our work is closely related to imitation learning, but we address a different problem statement that gives less supervision and requires generalization across tasks during inference. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
173,
|
| 898 |
+
728,
|
| 899 |
+
823,
|
| 900 |
+
756
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 9
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "Imitation Learning The two main threads of imitation learning are behavioral cloning (Argall et al., 2009; Pomerleau, 1989), which directly supervises the mapping of states to actions, and inverse reinforcement learning (Abbeel & Ng, 2004; Ho & Ermon, 2016; Levine et al., 2016; $\\mathrm { N g }$ & Russell, 2000; Ziebart et al., 2008), which recovers a reward function that makes the demonstration optimal (or nearly optimal). Inverse RL is most commonly achieved with state-actions, and is difficult to extend to fitting the reward to observations alone, though in principle state occupancy could be sufficient. Recent work in imitation learning (Duan et al., 2017; Finn et al., 2017; Gupta et al., 2017) can generalize to novel goals, but require a wealth of demonstrations comprised of expert state-actions for learning. Our approach does not require expert actions at all. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
762,
|
| 910 |
+
825,
|
| 911 |
+
888
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 9
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Visual Demonstration The common scenario in LfD is to assume full knowledge of expert states and actions during demonstrations, but several papers have focused on relaxing this supervision to visual observations alone. Nair et al. (2017) observe a sequence of images from the expert demonstration for performing rope manipulations. Sermanet et al. (2017; 2018) imitate humans with robots by self-supervised learning but require expert supervision at training time. Third person imitation learning (Stadie et al., 2017) and the concurrent work of imitation-from-observation (Liu et al., 2018) learn to translate expert observations into agent observations such that they can do policy optimization to minimize the distance between the agent trajectory and the translated demonstration, but they require demonstrations for learning. Visual servoing is a standard problem in robotics (Koichi & Tom, 1993) that seeks to take actions that align the agent’s observation with a target configuration of carefully-designed visual features (Wilson et al., 1996; Yoshimi & Allen, 1994) or raw pixel intensities (Caron et al., 2013). Classical methods rely on fixed features or policies, but more recently end-to-end learning has improved results (Lampe & Riedmiller, 2013; Lee et al., 2017). ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
173,
|
| 920 |
+
895,
|
| 921 |
+
823,
|
| 922 |
+
924
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 9
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "",
|
| 929 |
+
"bbox": [
|
| 930 |
+
174,
|
| 931 |
+
103,
|
| 932 |
+
825,
|
| 933 |
+
256
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 10
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "Forward/Inverse Dynamics and Consistency Numerous prior works, such as Ebert et al. (2017); Oh et al. (2015); Watter et al. (2015), have learned forward dynamics model for planning actions. The works of Agrawal et al. (2016); Jordan & Rumelhart (1992); Pathak et al. (2017); Wolpert et al. (1995) jointly learn forward and inverse dynamics model but do not optimize for consistency between the forward and inverse dynamics. We empirically show that learning models by our forward consistency loss significantly improves task performance. Enforcing consistency as a meta-supervision has also been successful in finding visual correspondences (Zhou et al., 2016) or unpaired image translations (Zhu et al., 2017). ",
|
| 940 |
+
"bbox": [
|
| 941 |
+
174,
|
| 942 |
+
263,
|
| 943 |
+
825,
|
| 944 |
+
375
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 10
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "Goal Conditioning By parameterizing the value or policy function with a goal, an agent can learn and do multiple tasks. The idea of learning goal-conditioned policies has been explored in (Agrawal et al., 2016; Andrychowicz et al., 2017; Nair et al., 2017; Schaul et al., 2015). Similarly to hindsight experience replay (Andrychowicz et al., 2017) we draw goals from experience, but our policy optimization has better sample efficiency through supervised learning and dynamics modeling instead of reinforcement learning. Moreover, we work from high-dimensional visual inputs instead of knowledge of the true states and do not make use of a task reward during training. In our setting, all of the expert goals are followed zero-shot since they are only revealed after learning. ",
|
| 951 |
+
"bbox": [
|
| 952 |
+
174,
|
| 953 |
+
382,
|
| 954 |
+
823,
|
| 955 |
+
493
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 10
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "5 DISCUSSION ",
|
| 962 |
+
"text_level": 1,
|
| 963 |
+
"bbox": [
|
| 964 |
+
176,
|
| 965 |
+
516,
|
| 966 |
+
310,
|
| 967 |
+
532
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 10
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "In this work, we presented a method for imitating expert demonstrations from visual observations alone. In contrast to most work in imitation learning, we never require access to expert actions. The key idea is to learn a GSP using data collected by self-supervised exploration. However, this limits the quality of the learned GSP as per the exploration data. For instance, we deploy random exploration on our real-world navigation robot, which means that it would almost never follow trajectories that go between rooms. Consequently, the learned GSP is unable to navigate towards a goal image taken in another room without requiring intermediate sub-goals. Pathak et al. (2017) show that the agent learns to move along corridors and transition between rooms purely driven by curiosity in VizDoom. Training GSP on such a structured data could equip the agent with more interesting search behaviors, e.g., going across rooms to find a goal. In general, using better methods of exploration for training the GSP could be a fruitful direction toward generalizing zeroshot imitation. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
547,
|
| 977 |
+
825,
|
| 978 |
+
702
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 10
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "One limitation of our approach is that we require first-person view demonstrations. Extension to third-person demonstrations (Liu et al., 2018; Stadie et al., 2017) would make the method applicable in more general scenarios. Another limitation is that, in the current framework, it is implicitly assumed that the statistics of visual observations when the expert demonstrates the task and the agent follows it are similar. For e.g., when the expert performs a demonstration in one setting, say in daylight and the agent needs to imitate say in the evening, the change in the lighting conditions might result in worse performance. Making the GSP robust to such nuisance changes or other changes in environment by domain adaptation would be necessary to scale the method to practical problems. Another thing to note is that, in the current framework, we do not learn from expert demonstrations, but simply imitate them. It would be interesting to investigate ways for an agent to learn from the expert to bias its exploration to more useful parts of the environment. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
174,
|
| 987 |
+
708,
|
| 988 |
+
825,
|
| 989 |
+
861
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 10
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "While we used a sequence of images to provide a demonstration, our work makes no image-specific assumptions and can be extended to using formal language for communicating goals. For instance, after training the GSP, instead of transforming an image into features $\\phi$ as described in section 2.2, one could possibly learn a mapping to transform language instructions into this feature space. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
176,
|
| 998 |
+
868,
|
| 999 |
+
823,
|
| 1000 |
+
924
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 10
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 1007 |
+
"text_level": 1,
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
176,
|
| 1010 |
+
104,
|
| 1011 |
+
326,
|
| 1012 |
+
117
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 11
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "We would like to thank members of BAIR for fruitful discussions and comments. This work was supported in part by DARPA; NSF IIS-1212798, IIS-1427425, IIS-1536003, Berkeley DeepDrive, and an equipment grant from NVIDIA and the Valrhona Reinforcement Learning Fellowship. DP is supported by NVIDIA and Snapchat’s graduate fellowships. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
174,
|
| 1021 |
+
128,
|
| 1022 |
+
825,
|
| 1023 |
+
184
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 11
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "REFERENCES \nPieter Abbeel and Andrew Y. Ng. Apprenticeship learning via inverse reinforcement learning. In ICML, 2004. 10 \nPulkit Agrawal, Ashvin Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. NIPS, 2016. 2, 4, 11 \nMarcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. In NIPS, 2017. 2, 11 \nBrenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 2009. 1, 10 \nAlbert Bandura and Richard H Walters. Social learning theory, volume 1. Prentice-hall Englewood Cliffs, NJ, 1977. 1 \nCynthia Breazeal and Brian Scassellati. Robots that imitate humans. Trends in cognitive sciences, 2002. 1 \nGuillaume Caron, Eric Marchand, and El Mustapha Mouaddib. Photometric visual servoing for omnidirectional cameras. Autonomous Robots, 35(2-3):177–193, 2013. 11 \nHaili Chui and Anand Rangarajan. A new point matching algorithm for non-rigid registration. CVIU, 2003. 7 \nAndrew J Davison and David W Murray. Mobile robot localisation using active vision. In ECCV, 1998. 6 \nRudiger Dillmann. Teaching and learning of robot tasks via observation of human performance. ¨ Robotics and Autonomous Systems, 2004. 1 \nYan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In NIPS, 2017. 2, 10 \nFrederik Ebert, Chelsea Finn, Alex X Lee, and Sergey Levine. Self-supervised visual planning with temporal skip connections. arXiv preprint arXiv:1710.05268, 2017. 11 \nChelsea Finn, Tianhe Yu, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. One-shot visual imitation learning via meta-learning. CoRL, 2017. 2, 10 \nDavid Foster and Peter Dayan. Structure in the space of value functions. Machine Learning, 2002. 3 \nSaurabh Gupta, James Davidson, Sergey Levine, Rahul Sukthankar, and Jitendra Malik. Cognitive mapping and planning for visual navigation. CVPR, 2017. 10 \nKaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 15 \nJonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In NIPS, 2016. 10 \nKatsushi Ikeuchi and Takashi Suehiro. Toward an assembly plan from observation. i. task recognition with polyhedral objects. IEEE Transactions on Robotics and Automation, 1994. 1 ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
171,
|
| 1032 |
+
204,
|
| 1033 |
+
826,
|
| 1034 |
+
917
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 11
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
173,
|
| 1043 |
+
895,
|
| 1044 |
+
825,
|
| 1045 |
+
924
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 11
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Michael I Jordan and David E Rumelhart. Forward models: Supervised learning with a distal teacher. Cognitive science, 1992. 3, 11 ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
173,
|
| 1054 |
+
103,
|
| 1055 |
+
821,
|
| 1056 |
+
132
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 12
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015. 15 ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
174,
|
| 1065 |
+
140,
|
| 1066 |
+
805,
|
| 1067 |
+
156
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 12
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Diederik $\\mathrm { \\bf P }$ Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 4 ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
173,
|
| 1076 |
+
165,
|
| 1077 |
+
823,
|
| 1078 |
+
194
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 12
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Hashimoto Koichi and Husband Tom. Visual servoing: real-time control of robot manipulators based on visual sensory feedback, volume 7. World scientific, 1993. 11 ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
169,
|
| 1087 |
+
202,
|
| 1088 |
+
823,
|
| 1089 |
+
232
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 12
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Yasuo Kuniyoshi, Masayuki Inaba, and Hirockika Inoue. Teaching by showing: Generating robot programs by visual observation of human performance. In International Symposium on Industrial Robots, 1989. 1 ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
173,
|
| 1098 |
+
239,
|
| 1099 |
+
825,
|
| 1100 |
+
282
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 12
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Yasuo Kuniyoshi, Masayuki Inaba, and Hirochika Inoue. Learning by watching: Extracting reusable task knowledge from visual observation of human performance. IEEE Transactions on Robotics and Automation, 1994. 1 ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
173,
|
| 1109 |
+
290,
|
| 1110 |
+
825,
|
| 1111 |
+
333
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 12
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Thomas Lampe and Martin Riedmiller. Acquiring visual servoing reaching and grasping skills using neural reinforcement learning. In Neural Networks (IJCNN), The 2013 International Joint Conference on, pp. 1–8. IEEE, 2013. 11 ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
174,
|
| 1120 |
+
342,
|
| 1121 |
+
825,
|
| 1122 |
+
386
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 12
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Alex X Lee, Sergey Levine, and Pieter Abbeel. Learning visual servoing with deep features and fitted q-iteration. arXiv preprint arXiv:1703.11000, 2017. 11 ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
169,
|
| 1131 |
+
393,
|
| 1132 |
+
823,
|
| 1133 |
+
422
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 12
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Sergey Levine, Peter Pastor, Alex Krizhevsky, and Deirdre Quillen. Learning hand-eye coordination for robotic grasping with large-scale data collection. In ISER, 2016. 2, 10 ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
171,
|
| 1142 |
+
430,
|
| 1143 |
+
823,
|
| 1144 |
+
460
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 12
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "YuXuan Liu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Imitation from observation: Learning to imitate behaviors from raw video via context translation. ICRA, 2018. 11 ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
173,
|
| 1153 |
+
468,
|
| 1154 |
+
823,
|
| 1155 |
+
497
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 12
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Mapillary. Open source structure from motion pipeline. https://github.com/mapillary/ OpenSfM, 2016. 6 ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
173,
|
| 1164 |
+
506,
|
| 1165 |
+
823,
|
| 1166 |
+
535
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 12
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Raul Mur-Artal and Juan D Tardos. Orb-slam2: An open-source slam system for monocular, stereo, ´ and rgb-d cameras. IEEE Transactions on Robotics, 2017. 6, 9 ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
173,
|
| 1175 |
+
544,
|
| 1176 |
+
823,
|
| 1177 |
+
573
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 12
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Ashvin Nair, Dian Chen, Pulkit Agrawal, Phillip Isola, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Combining self-supervised learning and imitation for vision-based rope manipulation. ICRA, 2017. 2, 6, 7, 11, 15 ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
176,
|
| 1186 |
+
580,
|
| 1187 |
+
823,
|
| 1188 |
+
625
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 12
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Andrew $\\mathrm { ~ Y ~ N ~ g ~ }$ and Stuart J Russell. Algorithms for inverse reinforcement learning. In ICML, pp. 663–670, 2000. 1, 10 ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
173,
|
| 1197 |
+
632,
|
| 1198 |
+
821,
|
| 1199 |
+
661
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 12
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In NIPS, 2015. 11 ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
171,
|
| 1208 |
+
670,
|
| 1209 |
+
823,
|
| 1210 |
+
699
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 12
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Pierre-Yves Oudeyer, Frdric Kaplan, and Verena V Hafner. Intrinsic motivation systems for autonomous mental development. Evolutionary Computation, 2007. 3 ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
173,
|
| 1219 |
+
707,
|
| 1220 |
+
823,
|
| 1221 |
+
737
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 12
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In ICML, 2017. 3, 4, 10, 11, 16 ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
174,
|
| 1230 |
+
744,
|
| 1231 |
+
823,
|
| 1232 |
+
775
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 12
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Lerrel Pinto and Abhinav Gupta. Supersizing self-supervision: Learning to grasp from 50k tries and 700 robot hours. ICRA, 2016. 2 ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
782,
|
| 1242 |
+
823,
|
| 1243 |
+
811
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 12
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Dean A Pomerleau. ALVINN: An autonomous land vehicle in a neural network. In NIPS, 1989. 1, 10 ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
173,
|
| 1252 |
+
820,
|
| 1253 |
+
821,
|
| 1254 |
+
849
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 12
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. 4 ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
173,
|
| 1263 |
+
857,
|
| 1264 |
+
823,
|
| 1265 |
+
887
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 12
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Stefan Schaal. Is imitation learning the route to humanoid robots? Trends in cognitive sciences, 1999. 1 ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
174,
|
| 1274 |
+
895,
|
| 1275 |
+
823,
|
| 1276 |
+
924
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 12
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Tom Schaul, Daniel Horgan, Karol Gregor, and David Silver. Universal value function approximators. In ICML, 2015. 3, 11 ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
171,
|
| 1285 |
+
103,
|
| 1286 |
+
823,
|
| 1287 |
+
132
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 13
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Jurgen Schmidhuber. A possibility for implementing curiosity and boredom in model-building neural controllers. In From animals to animats: Proceedings of the first international conference on simulation of adaptive behavior, 1991. 3 ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
174,
|
| 1296 |
+
140,
|
| 1297 |
+
821,
|
| 1298 |
+
184
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 13
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Pierre Sermanet, Kelvin Xu, and Sergey Levine. Unsupervised perceptual rewards for imitation learning. In RSS, 2017. 11 ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
171,
|
| 1307 |
+
193,
|
| 1308 |
+
825,
|
| 1309 |
+
222
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 13
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Pierre Sermanet, Corey Lynch, Yevgen Chebotar, Jasmine Hsu, Eric Jang, Stefan Schaal, and Sergey Levine. Time-contrastive networks: Self-supervised learning from video. In ICRA, 2018. 5, 11 ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
173,
|
| 1318 |
+
231,
|
| 1319 |
+
823,
|
| 1320 |
+
260
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 13
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Bradly C. Stadie, Pieter Abbeel, and Ilya Sutskever. Third-person imitation learning. In ICLR, 2017. 11 ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
174,
|
| 1329 |
+
267,
|
| 1330 |
+
823,
|
| 1331 |
+
296
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 13
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Manuel Watter, Jost Springenberg, Joschka Boedecker, and Martin Riedmiller. Embed to control: A locally linear latent dynamics model for control from raw images. In NIPS, 2015. 11 ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
173,
|
| 1340 |
+
306,
|
| 1341 |
+
823,
|
| 1342 |
+
335
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 13
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "William J Wilson, CC Williams Hulls, and Graham S Bell. Relative end-effector control using cartesian position based visual servoing. IEEE Transactions on Robotics and Automation, 12(5): 684–696, 1996. 11 ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
173,
|
| 1351 |
+
343,
|
| 1352 |
+
823,
|
| 1353 |
+
386
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 13
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Daniel M Wolpert, Zoubin Ghahramani, and Michael I Jordan. An internal model for sensorimotor integration. Science-AAAS-Weekly Paper Edition, 1995. 11 ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
173,
|
| 1362 |
+
395,
|
| 1363 |
+
823,
|
| 1364 |
+
424
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 13
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Yezhou Yang, Yi Li, Cornelia Fermuller, and Yiannis Aloimonos. Robot learning manipulation ¨ action plans by ”watching” unconstrained videos from the world wide web. In AAAI, 2015. 1 ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
171,
|
| 1373 |
+
433,
|
| 1374 |
+
825,
|
| 1375 |
+
462
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 13
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Billibon H Yoshimi and Peter K Allen. Active, uncalibrated visual servoing. In Robotics and Automation, 1994. Proceedings., 1994 IEEE International Conference on, pp. 156–161. IEEE, 1994. 11 ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
173,
|
| 1384 |
+
469,
|
| 1385 |
+
823,
|
| 1386 |
+
513
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 13
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Tinghui Zhou, Philipp Krahenbuhl, Mathieu Aubry, Qixing Huang, and Alexei A. Efros. Learning dense correspondence via 3d-guided cycle consistency. In CVPR, 2016. 11 ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
171,
|
| 1395 |
+
522,
|
| 1396 |
+
823,
|
| 1397 |
+
551
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 13
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. ICCV, 2017. 11 ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
171,
|
| 1406 |
+
559,
|
| 1407 |
+
821,
|
| 1408 |
+
589
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 13
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "Brian D. Ziebart, Andrew Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, 2008. 10 ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
173,
|
| 1417 |
+
598,
|
| 1418 |
+
823,
|
| 1419 |
+
627
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 13
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "A SUPPLEMENTARY MATERIAL ",
|
| 1426 |
+
"text_level": 1,
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
178,
|
| 1429 |
+
102,
|
| 1430 |
+
450,
|
| 1431 |
+
117
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 14
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "We evaluated our proposed approach across number of environments and tasks. In this section, we provide additional details about the experimental task setup and hyperparameters. ",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
174,
|
| 1440 |
+
133,
|
| 1441 |
+
823,
|
| 1442 |
+
161
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 14
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "A.1 ROPE MANIPUATION ",
|
| 1449 |
+
"text_level": 1,
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
176,
|
| 1452 |
+
179,
|
| 1453 |
+
362,
|
| 1454 |
+
193
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 14
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "text",
|
| 1460 |
+
"text": "Robotic Setup Our setup of Baxter robot for rope manipulation task follows the one described in Nair et al. (2017). We re-use the data that is collected by a Baxter robot interacting with a rope kept on a table in front of it in a self-supervised manner, and consists of approximately 60K interaction pairs. ",
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
174,
|
| 1463 |
+
204,
|
| 1464 |
+
825,
|
| 1465 |
+
261
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 14
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "text",
|
| 1471 |
+
"text": "Implementation Details The base architecture for all the methods consists of a pre-trained AlexNet, whose features are fed into a skill policy network that predicts the location of grasp, direction of displacement, and the magnitude of displacement. For the forward regularizer baseline, a forward model is trained to jointly regularize the AlexNet features along with the skill policy network with loss weight of forward model set to 0.1. For our proposed forward-consistent GSP, a forward consistency loss is then applied to the actions predicted by the skill policy network. The forward consistency loss weight is set to 0.1. Since this is a fully observed setup, we did not use recurrence in any of the skill policy networks. All the models are optimized using Adam (Kingma & Ba, 2015) with a learning rate of $1 e - 4$ . For the first 40K iterations, the AlexNet weights were frozen, and then fine-tuned jointly with the later layers. ",
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
174,
|
| 1474 |
+
267,
|
| 1475 |
+
825,
|
| 1476 |
+
406
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 14
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "A.2 NAVIGATION IN INDOOR OFFICE ENVIRONMENTS ",
|
| 1483 |
+
"text_level": 1,
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
174,
|
| 1486 |
+
422,
|
| 1487 |
+
560,
|
| 1488 |
+
438
|
| 1489 |
+
],
|
| 1490 |
+
"page_idx": 14
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"type": "text",
|
| 1494 |
+
"text": "Robotic Setup We used the TurtleBot2 robot comprising of a wheeled Kobuki base and an Orbbec Astra camera for capturing RGB images for all our experiments. The robot’s action space had four discrete actions: move forward, turn left, turn right, and stand still (i.e., no-op). The forward action is approximately $1 0 \\mathrm { c m }$ forward translation and the turning actions are approximately 14-18 degrees of rotation. These numbers vary due to the use of velocity control. A powerful on-board laptop was used to process the images and infer the motor commands. Several modifications were made to the default TurtleBot setup: the base’s batteries were replaced with longer lasting ones, and the default NVIDIA Jetson TK1 embedded board was replaced with a more powerful GigaByte Aero laptop and an accompanying portable charging power bank. ",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
174,
|
| 1497 |
+
449,
|
| 1498 |
+
825,
|
| 1499 |
+
574
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 14
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "Self-supervised Data Collection We devised an automated self-supervised scheme for data collection which does not require any human supervision. In our scheme, the robot first samples one out of four actions and then the number of times to repeat the selected action (i.e. action repeat). The no-op action is sampled with probability 0.05 and the other three actions are sampled with equal probability. In case the no-op action is chosen, an action repeat of $\\{ 1 , 2 \\}$ steps is uniformly sampled. In case of other actions, an action repeat of 1-5 steps is randomly and uniformly chosen. The robot autonomously repeated this process and collected 230K interactions from two floors of an academic building. If the robot crashes into an object, it performs a reset maneuver by first moving backwards and then turning right/left by a uniformly sampled angle between 90-270 degrees. A separate floor of the building with substantially different furniture layout and visual textures is then used for testing the learned model. ",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
174,
|
| 1508 |
+
582,
|
| 1509 |
+
825,
|
| 1510 |
+
733
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 14
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "Implementation Details The data collected by self-supervised exploration is then used to train our recurrent forward-consistent GSP. The base architecture of our model is an ImageNet pre-trained ResNet-50 (He et al., 2016) network. Input are the images and output are the actions of robot. The forward consistency model is first pre-trained and then fine-tuned together end-to-end with the GSP. The loss weight of the forward model is 0.1, and the objective is minimized using Adam (Kingma & Ba, 2015) with learning rate of $5 e - 4$ . ",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
174,
|
| 1519 |
+
741,
|
| 1520 |
+
825,
|
| 1521 |
+
824
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 14
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "text",
|
| 1527 |
+
"text": "A.3 3D NAVIGATION IN VIZDOOM ",
|
| 1528 |
+
"text_level": 1,
|
| 1529 |
+
"bbox": [
|
| 1530 |
+
176,
|
| 1531 |
+
842,
|
| 1532 |
+
428,
|
| 1533 |
+
856
|
| 1534 |
+
],
|
| 1535 |
+
"page_idx": 14
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "text",
|
| 1539 |
+
"text": "Self-supervised Data Collection Our environment consists of two map. One map is used for training and validation, with different textures for validation. Second map has different textures than training and validation and is used for generalization experiments. For both curiosity and random exploration, we collect a total of 1.5 million frames each with action repeat of 4 collected in the standard DoomMyWayHome map used for training in Pathak et al. (2017). $\\sim \\textstyle { \\frac { 2 } { 3 } }$ of the data comes from random-room resets, and $\\sim \\frac { 1 } { 3 }$ of the data comes from a fixed-room reset (i.e, room number 10). The curiosity policy was half sampled and half greedy with the exact split being $40 \\%$ greedy policy random-room reset, $2 5 \\%$ sample policy random-room reset, $2 5 \\%$ sample policy fixed-room reset, and $10 \\%$ greedy policy fixed-room reset. ",
|
| 1540 |
+
"bbox": [
|
| 1541 |
+
174,
|
| 1542 |
+
867,
|
| 1543 |
+
823,
|
| 1544 |
+
922
|
| 1545 |
+
],
|
| 1546 |
+
"page_idx": 14
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "table",
|
| 1550 |
+
"img_path": "images/13c8a8a5e5a57f8b98178c209c9fe8410c5e949ef7a24dbeb3a43da4e0808836.jpg",
|
| 1551 |
+
"table_caption": [
|
| 1552 |
+
"Table 4: Quantitative evaluation of TurtleBot’s performance at following visual demonstrations in two conditions: maze and the loop. The fraction denotes how many landmarks it reaches out of the total number of landmarks in the full demonstration. The bracketed number represents the number of actions the agent took to reach its farthest landmark. "
|
| 1553 |
+
],
|
| 1554 |
+
"table_footnote": [],
|
| 1555 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model Name</td><td colspan=\"3\">Maze Runs - Optimal Steps: 100</td><td colspan=\"3\">Loop Runs - Optimal Steps: 85</td></tr><tr><td>Run-1</td><td>Run-2</td><td>Run-3</td><td>Run-1</td><td>Run-2</td><td>Run-3</td></tr><tr><td>SIFT</td><td>2/20 (10)</td><td>1/20 (9)</td><td>3/20 (38)</td><td>一</td><td>1</td><td>1</td></tr><tr><td>GSP-NoPrevAction-NoFwdConst</td><td>12/20 (109)</td><td>14/20 (184)</td><td>20/20 (263)</td><td></td><td></td><td></td></tr><tr><td>GSP-NoFwdConst</td><td>13/20 (147)</td><td>18/20 (325)</td><td>20/20 (166)</td><td>0/17 (0)</td><td>0/17 (0)</td><td>0/17 (0)</td></tr><tr><td>GSP (ours)</td><td>20/20 (353)</td><td>12/20 (194)</td><td>20/20 (168)</td><td>0/17 (0)</td><td>17/17 (243)</td><td>17/17 (165)</td></tr></table>",
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
173,
|
| 1558 |
+
101,
|
| 1559 |
+
825,
|
| 1560 |
+
188
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 15
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "table",
|
| 1566 |
+
"img_path": "images/252de2c5ce6451b36efb6827e3a71a283634b337e7664643620d8df4c65e8355.jpg",
|
| 1567 |
+
"table_caption": [
|
| 1568 |
+
"Table 5: Quantitative evaluation of our proposed GSP and the baseline models at following visual demonstrations in VizDoom 3D Navigation. Means and standard errors are reported for demonstration completion and efficiency over 50 seeds and 5 human paths per environment type. "
|
| 1569 |
+
],
|
| 1570 |
+
"table_footnote": [],
|
| 1571 |
+
"table_body": "<table><tr><td>Model Name</td><td>Same Map,Same Texture Mean %</td><td>Efficiency %</td><td>Same Map,Diff Texture Mean %</td><td>Efficiency %</td><td>Diff Map,Diff Texture Mean %</td><td>Efficiency %</td></tr><tr><td colspan=\"7\">Random Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>61.8 ± 0.9</td><td>60.4 ± 2.1</td><td>37.6 ± 0.7</td><td>68.6 ± 2.5</td><td>42.2 ± 0.8</td><td>50.6 ± 1.9</td></tr><tr><td>GSP (ours pixels)</td><td>61.0 ± 1.0</td><td>68.0± 2.2</td><td>38.1 ± 0.7</td><td>69.1 ± 2.5</td><td>40.3 ± 0.9</td><td>64.2 ± 2.3</td></tr><tr><td>GSP (ours features)</td><td>62.0 ± 1.0</td><td>75.8 ± 2.5</td><td>37.0 ± 0.7</td><td>87.1 ± 2.8</td><td>48.7 ± 0.9</td><td>52.5 ± 1.8</td></tr><tr><td colspan=\"7\">Curiosity-driven Exploration for Data Collection:</td></tr><tr><td>GSP-NoFwdConst</td><td>70.7 ± 0.9</td><td>66.9 ± 1.4</td><td>49.8 ± 0.8</td><td>55.8 ± 2.2</td><td>51.2 ±1.0</td><td>39.5 ± 1.3</td></tr><tr><td>GSP-FwdRegularizer</td><td>70.6 ± 0.9</td><td>67.9 ± 1.6</td><td>51.9 ± 0.8</td><td>49.3 ± 1.6</td><td>48.3 ± 1.0</td><td>49.3 ± 1.8</td></tr><tr><td>GSP (ours pixels)</td><td>71.0 ± 0.9</td><td>73.1 ± 2.7</td><td>53.3 ± 0.9</td><td>53.4 ± 2.0</td><td>52.2 ± 1.0</td><td>44.0 ± 1.5</td></tr><tr><td>GSP (ours features)</td><td>68.8 ±1.0</td><td>72.0 ± 1.7</td><td>53.2 ±0.8</td><td>53.0 ± 2.3</td><td>52.8 ± 0.9</td><td>37.7 ± 1.3</td></tr></table>",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
174,
|
| 1574 |
+
267,
|
| 1575 |
+
826,
|
| 1576 |
+
428
|
| 1577 |
+
],
|
| 1578 |
+
"page_idx": 15
|
| 1579 |
+
},
|
| 1580 |
+
{
|
| 1581 |
+
"type": "text",
|
| 1582 |
+
"text": "",
|
| 1583 |
+
"bbox": [
|
| 1584 |
+
174,
|
| 1585 |
+
506,
|
| 1586 |
+
825,
|
| 1587 |
+
579
|
| 1588 |
+
],
|
| 1589 |
+
"page_idx": 15
|
| 1590 |
+
},
|
| 1591 |
+
{
|
| 1592 |
+
"type": "text",
|
| 1593 |
+
"text": "For each scenario, we collect 5 human demonstrations each and give every 10th frame as input to the agent for the task of visual imitation. For each human path, we evaluate on 50 different seeds where the agent starts with a uniformly sampled orientation. We then get the median across 250 (50x5) total runs for each type of environment and report median of the percentage of the human path reached by the agent and how soon it got to that point relative to the human. ",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
174,
|
| 1596 |
+
585,
|
| 1597 |
+
825,
|
| 1598 |
+
656
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 15
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "In the main paper, we report median accuracy and the confidence interval for median 2. Since the initial position of the agent is randomized in orientation compared to the one in visual demonstration, the mean results suffer from high variance due to outliers. Hence, median accuracy results in a more reliable metric. However, we report mean results in Table 5 for the completion. ",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
174,
|
| 1607 |
+
662,
|
| 1608 |
+
825,
|
| 1609 |
+
718
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 15
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "text",
|
| 1615 |
+
"text": "Implementation Details All models were trained with batch size 64, Adam Solver with 1e-4 learning rate, and landmark slices uniformly sampled between 5 to 15 action steps for each batch. The observations are $4 2 \\mathbf { x } 4 2$ resolution, grayscale images with only one-time channel both for goal and current state. All models used the same goal recognizer that was trained on the curiosity data. For selecting the hyper-parameters in forward regularizer, pixel-based forward consistency, and featurebased forward consistency models, we selected the best loss coefficient among $\\{ 0 . 0 1 , 0 . 0 5 , 0 . 1 \\}$ that achieved the highest median completion on our validation environment which consisted of the training maps with novel textures. ",
|
| 1616 |
+
"bbox": [
|
| 1617 |
+
173,
|
| 1618 |
+
724,
|
| 1619 |
+
825,
|
| 1620 |
+
837
|
| 1621 |
+
],
|
| 1622 |
+
"page_idx": 15
|
| 1623 |
+
}
|
| 1624 |
+
]
|
parse/train/BkisuzWRW/BkisuzWRW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkisuzWRW/BkisuzWRW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJlxIJBFDr/HJlxIJBFDr.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJlxIJBFDr/HJlxIJBFDr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJlxIJBFDr/HJlxIJBFDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJlxIJBFDr/HJlxIJBFDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyzdRiR9Y7/HyzdRiR9Y7.md
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNIVERSAL TRANSFORMERS
|
| 2 |
+
|
| 3 |
+
Mostafa Dehghani∗† University of Amsterdam dehghani@uva.nl
|
| 4 |
+
|
| 5 |
+
Stephan Gouws∗ DeepMind sgouws@google.com
|
| 6 |
+
|
| 7 |
+
Oriol Vinyals
|
| 8 |
+
DeepMind
|
| 9 |
+
vinyals@google.com
|
| 10 |
+
|
| 11 |
+
Jakob Uszkoreit Google Brain usz@google.com
|
| 12 |
+
|
| 13 |
+
Łukasz Kaiser
|
| 14 |
+
Google Brain
|
| 15 |
+
lukaszkaiser@google.com
|
| 16 |
+
|
| 17 |
+
# ABSTRACT
|
| 18 |
+
|
| 19 |
+
Recurrent neural networks (RNNs) sequentially process data by updating their state with each new data point, and have long been the de facto choice for sequence modeling tasks. However, their inherently sequential computation makes them slow to train. Feed-forward and convolutional architectures have recently been shown to achieve superior results on some sequence modeling tasks such as machine translation, with the added advantage that they concurrently process all inputs in the sequence, leading to easy parallelization and faster training times. Despite these successes, however, popular feed-forward sequence models like the Transformer fail to generalize in many simple tasks that recurrent models handle with ease, e.g. copying strings or even simple logical inference when the string or formula lengths exceed those observed at training time. We propose the Universal Transformer (UT), a parallel-in-time self-attentive recurrent sequence model which can be cast as a generalization of the Transformer model and which addresses these issues. UTs combine the parallelizability and global receptive field of feed-forward sequence models like the Transformer with the recurrent inductive bias of RNNs. We also add a dynamic per-position halting mechanism and find that it improves accuracy on several tasks. In contrast to the standard Transformer, under certain assumptions UTs can be shown to be Turing-complete. Our experiments show that UTs outperform standard Transformers on a wide range of algorithmic and language understanding tasks, including the challenging LAMBADA language modeling task where UTs achieve a new state of the art, and machine translation where UTs achieve a 0.9 BLEU improvement over Transformers on the WMT14 En-De dataset.
|
| 20 |
+
|
| 21 |
+
# 1 INTRODUCTION
|
| 22 |
+
|
| 23 |
+
Convolutional and fully-attentional feed-forward architectures like the Transformer have recently emerged as viable alternatives to recurrent neural networks (RNNs) for a range of sequence modeling tasks, notably machine translation (Gehring et al., 2017; Vaswani et al., 2017). These parallel-in-time architectures address a significant shortcoming of RNNs, namely their inherently sequential computation which prevents parallelization across elements of the input sequence, whilst still addressing the vanishing gradients problem as the sequence length gets longer (Hochreiter et al., 2003). The Transformer model in particular relies entirely on a self-attention mechanism (Parikh et al., 2016; Lin et al., 2017) to compute a series of context-informed vector-space representations of the symbols in its input and output, which are then used to predict distributions over subsequent symbols as the model predicts the output sequence symbol-by-symbol. Not only is this mechanism straightforward to parallelize, but as each symbol’s representation is also directly informed by all other symbols’ representations, this results in an effectively global receptive field across the whole sequence. This stands in contrast to e.g. convolutional architectures which typically only have a limited receptive field.
|
| 24 |
+
|
| 25 |
+
Notably, however, the Transformer with its fixed stack of distinct layers foregoes RNNs’ inductive bias towards learning iterative or recursive transformations. Our experiments indicate that this inductive bias may be crucial for several algorithmic and language understanding tasks of varying complexity: in contrast to models such as the Neural Turing Machine (Graves et al., 2014), the Neural GPU (Kaiser & Sutskever, 2016) or Stack RNNs (Joulin & Mikolov, 2015), the Transformer does not generalize well to input lengths not encountered during training.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: The Universal Transformer repeatedly refines a series of vector representations for each position of the sequence in parallel, by combining information from different positions using self-attention (see Eqn 2) and applying a recurrent transition function (see Eqn 4) across all time steps $1 \leq t \leq T$ . We show this process over two recurrent time-steps. Arrows denote dependencies between operations. Initially, $\hat { h } ^ { 0 }$ is initialized with the embedding for each symbol in the sequence. $h _ { i } ^ { t }$ represents the representation for input symbol $1 \leq i \leq m$ at recurrent time-step $t$ . With dynamic halting, $T$ is dynamically determined for each position (Section 2.2).
|
| 29 |
+
|
| 30 |
+
In this paper, we introduce the Universal Transformer $( U T )$ , a parallel-in-time recurrent self-attentive sequence model which can be cast as a generalization of the Transformer model, yielding increased theoretical capabilities and improved results on a wide range of challenging sequence-to-sequence tasks. UTs combine the parallelizability and global receptive field of feed-forward sequence models like the Transformer with the recurrent inductive bias of RNNs, which seems to be better suited to a range of algorithmic and natural language understanding sequence-to-sequence problems. As the name implies, and in contrast to the standard Transformer, under certain assumptions UTs can be shown to be Turing-complete (or “computationally universal”, as shown in Section 4).
|
| 31 |
+
|
| 32 |
+
In each recurrent step, the Universal Transformer iteratively refines its representations for all symbols in the sequence in parallel using a self-attention mechanism (Parikh et al., 2016; Lin et al., 2017), followed by a transformation (shared across all positions and time-steps) consisting of a depth-wise separable convolution (Chollet, 2016; Kaiser et al., 2017) or a position-wise fully-connected layer (see Fig 1). We also add a dynamic per-position halting mechanism (Graves, 2016), allowing the model to choose the required number of refinement steps for each symbol dynamically, and show for the first time that such a conditional computation mechanism can in fact improve accuracy on several smaller, structured algorithmic and linguistic inference tasks (although it marginally degraded results on MT).
|
| 33 |
+
|
| 34 |
+
Our strong experimental results show that UTs outperform Transformers and LSTMs across a wide range of tasks. The added recurrence yields improved results in machine translation where UTs outperform the standard Transformer. In experiments on several algorithmic tasks and the bAbI language understanding task, UTs also consistently and significantly improve over LSTMs and the standard Transformer. Furthermore, on the challenging LAMBADA text understanding data set UTs with dynamic halting achieve a new state of the art.
|
| 35 |
+
|
| 36 |
+
# 2 MODEL DESCRIPTION
|
| 37 |
+
|
| 38 |
+
# 2.1 THE UNIVERSAL TRANSFORMER
|
| 39 |
+
|
| 40 |
+
The Universal Transformer (UT; see Fig. 2) is based on the popular encoder-decoder architecture commonly used in most neural sequence-to-sequence models (Sutskever et al., 2014; Cho et al., 2014; Vaswani et al., 2017). Both the encoder and decoder of the UT operate by applying a recurrent neural network to the representations of each of the positions of the input and output sequence, respectively. However, in contrast to most applications of recurrent neural networks to sequential data, the UT does not recur over positions in the sequence, but over consecutive revisions of the vector representations of each position (i.e., over “depth”). In other words, the UT is not computationally bound by the number of symbols in the sequence, but only by the number of revisions made to each symbol’s representation.
|
| 41 |
+
|
| 42 |
+
In each recurrent time-step, the representation of every position is concurrently (in parallel) revised in two sub-steps: first, using a self-attention mechanism to exchange information across all positions in the sequence, thereby generating a vector representation for each position that is informed by the representations of all other positions at the previous time-step. Then, by applying a transition function (shared across position and time) to the outputs of the self-attention mechanism, independently at each position. As the recurrent transition function can be applied any number of times, this implies that UTs can have variable depth (number of per-symbol processing steps). Crucially, this is in contrast to most popular neural sequence models, including the Transformer (Vaswani et al., 2017) or deep RNNs, which have constant depth as a result of applying a fixed stack of layers. We now describe the encoder and decoder in more detail.
|
| 43 |
+
|
| 44 |
+
ENCODER: Given an input sequence of length $m$ , we start with a matrix whose rows are initialized as the $d$ -dimensional embeddings of the symbols at each position of the sequence $H ^ { 0 } \in \mathbb { R } ^ { m \times d }$ . The UT then iteratively computes representations $H ^ { t }$ at step $t$ for all $m$ positions in parallel by applying the multi-headed dot-product self-attention mechanism from Vaswani et al. (2017), followed by a recurrent transition function. We also add residual connections around each of these function blocks and apply dropout and layer normalization (Srivastava et al., 2014; Ba et al., 2016) (see Fig. 2 for a simplified diagram, and Fig. 4 in the Appendix A for the complete model.).
|
| 45 |
+
|
| 46 |
+
More specifically, we use the scaled dot-product attention which combines queries $Q$ , keys $K$ and values $V$ as follows
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\mathrm { A T T E N T I O N } ( Q , K , V ) = \mathrm { S O F T M A X } \left( \frac { Q K ^ { T } } { \sqrt { d } } \right) V ,
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $d$ is the number of columns of $Q$ , $K$ and $V$ . We use the multi-head version with $k$ heads, as introduced in (Vaswani et al., 2017),
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\begin{array} { r l } & { \mathbf { M U L T I H E A D S E L F A T T E N T I O N } ( H ^ { t } ) = \mathbf { C O N C A T ( h e a d _ { 1 } , . . . , h e a d _ { k } ) } W ^ { O } } \\ & { \qquad \mathrm { w h e r e ~ h e a d _ { i } = A T T E N T I O N } ( H ^ { t } W _ { i } ^ { Q } , H ^ { t } W _ { i } ^ { K } , H ^ { t } W _ { i } ^ { V } ) } \end{array}
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
and we map the state $H ^ { t }$ to queries, keys and values with affine projections using learned parameter matrices $\bar { W } ^ { Q } \in \mathbb { R } ^ { d \times d / k }$ , $W ^ { \bar { K } } \in \mathbb { R } ^ { d \times d / \bar { k } }$ , $W ^ { V } \in \mathbb { R } ^ { d \times d / k }$ and $W ^ { O } \in \mathbb { R } ^ { d \times d }$ .
|
| 59 |
+
|
| 60 |
+
At step $t$ , the UT then computes revised representations $H ^ { t } \in \mathbb { R } ^ { m \times d }$ for all $m$ input positions as follows
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\begin{array} { r l } & { \quad H ^ { t } = \mathrm { L A Y E R N O R M } ( A ^ { t } + \mathrm { T R A N S I T I O N } ( A ^ { t } ) ) } \\ & { \mathrm { e } A ^ { t } = \mathrm { L A Y E R N O R M } ( ( H ^ { t - 1 } + P ^ { t } ) + \mathrm { M U L T I H E A D S E L F A T T E N T I O N } ( H ^ { t - 1 } + P ^ { t } ) ) , } \end{array}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where LAYERNORM() is defined in Ba et al. (2016), and TRANSITION() and $P ^ { t }$ are discussed below.
|
| 67 |
+
|
| 68 |
+
Depending on the task, we use one of two different transition functions: either a separable convolution (Chollet, 2016) or a fully-connected neural network that consists of a single rectified-linear activation function between two affine transformations, applied position-wise, i.e. individually to each row of $A ^ { t }$ .
|
| 69 |
+
|
| 70 |
+
$P ^ { t } \in \mathbb { R } ^ { m \times d }$ above are fixed, constant, two-dimensional (position, time) coordinate embeddings, obtained by computing the sinusoidal position embedding vectors as defined in (Vaswani et al., 2017) for the positions $1 \leq i \leq m$ and the time-step $1 \leq t \leq T$ separately for each vector-dimension $1 \leq j \leq d$ and summing:
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\begin{array} { r } { P _ { i , 2 j } ^ { t } = \sin ( i / 1 0 0 0 0 ^ { 2 j / d } ) + \sin ( t / 1 0 0 0 0 ^ { 2 j / d } ) } \\ { P _ { i , 2 j + 1 } ^ { t } = \cos ( i / 1 0 0 0 0 ^ { 2 j / d } ) + \cos ( t / 1 0 0 0 0 ^ { 2 j / d } ) . } \end{array}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
Figure 2: The recurrent blocks of the Universal Transformer encoder and decoder. This diagram omits position and time-step encodings as well as dropout, residual connections and layer normalization. A complete version can be found in Appendix A. The Universal Transformer with dynamic halting determines the number of steps $T$ for each position individually using ACT (Graves, 2016).
|
| 78 |
+
|
| 79 |
+
After $T$ steps (each updating all positions of the input sequence in parallel), the final output of the Universal Transformer encoder is a matrix of $d$ -dimensional vector representations $H ^ { T } \in \mathbf { \bar { \mathbb { R } } } ^ { m \times d }$ for the $m$ symbols of the input sequence.
|
| 80 |
+
|
| 81 |
+
DECODER: The decoder shares the same basic recurrent structure of the encoder. However, after the self-attention function, the decoder additionally also attends to the final encoder representation $H ^ { T }$ of each position in the input sequence using the same multihead dot-product attention function from Equation 2, but with queries $Q$ obtained from projecting the decoder representations, and keys and values ( $K$ and $V$ ) obtained from projecting the encoder representations (this process is akin to standard attention (Bahdanau et al., 2014)).
|
| 82 |
+
|
| 83 |
+
Like the Transformer model, the UT is autoregressive (Graves, 2013). Trained using teacher-forcing, at generation time it produces its output one symbol at a time, with the decoder consuming the previously produced output positions. During training, the decoder input is the target output, shifted to the right by one position. The decoder self-attention distributions are further masked so that the model can only attend to positions to the left of any predicted symbol. Finally, the per-symbol target distributions are obtained by applying an affine transformation $O \in \mathbb { R } ^ { d \times V }$ from the final decoder state to the output vocabulary size $V$ , followed by a softmax which yields an $( m \times V )$ -dimensional output matrix normalized over its rows:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
p \big ( y _ { p o s } | y _ { [ 1 : p o s - 1 ] } , H ^ { T } \big ) = \mathrm { s O F T M A X } ( O H ^ { T } ) ^ { 1 }
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
To generate from the model, the encoder is run once for the conditioning input sequence. Then the decoder is run repeatedly, consuming all already-generated symbols, while generating one additional distribution over the vocabulary for the symbol at the next output position per iteration. We then typically sample or select the highest probability symbol as the next symbol.
|
| 90 |
+
|
| 91 |
+
# 2.2 DYNAMIC HALTING
|
| 92 |
+
|
| 93 |
+
In sequence processing systems, certain symbols (e.g. some words or phonemes) are usually more ambiguous than others. It is therefore reasonable to allocate more processing resources to these more ambiguous symbols. Adaptive Computation Time (ACT) (Graves, 2016) is a mechanism for dynamically modulating the number of computational steps needed to process each input symbol (called the “ponder time”) in standard recurrent neural networks based on a scalar halting probability predicted by the model at each step.
|
| 94 |
+
|
| 95 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">10K examples</td><td colspan="2">1K examples</td></tr><tr><td>train single</td><td>train joint</td><td>train single</td><td>train joint</td></tr><tr><td colspan="5">Previous best results:</td></tr><tr><td>QRNet (Seo et al., 2016)</td><td>0.3 (0/20)</td><td></td><td></td><td></td></tr><tr><td>Sparse DNC (Rae et al.,2016)</td><td></td><td>2.9 (1/20)</td><td></td><td></td></tr><tr><td>GA+MAGE Dhingra et al. (2017)</td><td></td><td></td><td>8.7 (5/20)</td><td></td></tr><tr><td>MemN2N Sukhbaatar et al. (2015)</td><td></td><td></td><td></td><td>12.4 (11/20)</td></tr><tr><td colspan="5">Our Results:</td></tr><tr><td>Transformer (Vaswani et al.,2017)</td><td>15.2 (10/20)</td><td>22.1 (12/20)</td><td>21.8 (5/20)</td><td>26.8 (14/20)</td></tr><tr><td>Universal Transformer (this work)</td><td>0.23 (0/20)</td><td>0.47 (0/20)</td><td>5.31 (5/20)</td><td>8.50 (8/20)</td></tr><tr><td>UT w/ dynamic halting (this work)</td><td>0.21 (0/20)</td><td>0.29 (0/20)</td><td>4.55 (3/20)</td><td>7.78 (5/20)</td></tr></table>
|
| 96 |
+
|
| 97 |
+
Table 1: Average error and number of failed tasks $( > 5 \%$ error) out of 20 (in parentheses; lower is better in both cases) on the bAbI dataset under the different training/evaluation setups. We indicate state-of-the-art where available for each, or ‘-’ otherwise.
|
| 98 |
+
|
| 99 |
+
Inspired by the interpretation of Universal Transformers as applying self-attentive RNNs in parallel to all positions in the sequence, we also add a dynamic ACT halting mechanism to each position (i.e. to each per-symbol self-attentive RNN; see Appendix C for more details). Once the per-symbol recurrent block halts, its state is simply copied to the next step until all blocks halt, or we reach a maximum number of steps. The final output of the encoder is then the final layer of representations produced in this way.
|
| 100 |
+
|
| 101 |
+
# 3 EXPERIMENTS AND ANALYSIS
|
| 102 |
+
|
| 103 |
+
We evaluated the Universal Transformer on a range of algorithmic and language understanding tasks, as well as on machine translation. We describe these tasks and datasets in more detail in Appendix D.
|
| 104 |
+
|
| 105 |
+
# 3.1 BABI QUESTION-ANSWERING
|
| 106 |
+
|
| 107 |
+
The bAbi question answering dataset (Weston et al., 2015) consists of 20 different tasks, where the goal is to answer a question given a number of English sentences that encode potentially multiple supporting facts. The goal is to measure various forms of language understanding by requiring a certain type of reasoning over the linguistic facts presented in each story. A standard Transformer does not achieve good results on this task2. However, we have designed a model based on the Universal Transformer which achieves state-of-the-art results on this task.
|
| 108 |
+
|
| 109 |
+
To encode the input, similar to Henaff et al. (2016), we first encode each fact in the story by applying a learned multiplicative positional mask to each word’s embedding, and summing up all embeddings. We embed the question in the same way, and then feed the (Universal) Transformer with these embeddings of the facts and questions.
|
| 110 |
+
|
| 111 |
+
As originally proposed, models can either be trained on each task separately (“train single”) or jointly on all tasks (“train joint”). Table 1 summarizes our results. We conducted 10 runs with different initializations and picked the best model based on performance on the validation set, similar to previous work. Both the UT and UT with dynamic halting achieve state-of-the-art results on all tasks in terms of average error and number of failed tasks3, in both the 10K and 1K training regime (see Appendix E for breakdown by task).
|
| 112 |
+
|
| 113 |
+
To understand the working of the model better, we analyzed both the attention distributions and the average ACT ponder times for this task (see Appendix F for details). First, we observe that the attention distributions start out very uniform, but get progressively sharper in later steps around the correct supporting facts that are required to answer each question, which is indeed very similar to how humans would solve the task. Second, with dynamic halting we observe that the average ponder time (i.e. depth of the per-symbol recurrent processing chain) over all positions in all samples in the test data for tasks requiring three supporting facts is higher $( 3 . 8 { \pm } 2 . 2 ) $ than for tasks requiring only two $( 3 . 1 { \pm } 1 . 1 ) $ , which is in turn higher than for tasks requiring only one supporting fact $( 2 . 3 { \pm } 0 . 8 ) $ . This indicates that the model adjusts the number of processing steps with the number of supporting facts required to answer the questions. Finally, we observe that the histogram of ponder times at different positions is more uniform in tasks requiring only one supporting fact compared to two and three, and likewise for tasks requiring two compared to three. Especially for tasks requiring three supporting facts, many positions halt at step 1 or 2 already and only a few get transformed for more steps (see for example Fig 3). This is particularly interesting as the length of stories is indeed much higher in this setting, with more irrelevant facts which the model seems to successfully learn to ignore in this way.
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Figure 3: Ponder time of UT with dynamic halting for encoding facts in a story and question in a bAbI task requiring three supporting facts.
|
| 117 |
+
|
| 118 |
+
Similar to dynamic memory networks (Kumar et al., 2016), there is an iterative attention process in UTs that allows the model to condition its attention over memory on the result of previous iterations. Appendix F presents some examples illustrating that there is a notion of temporal states in UT, where the model updates its states (memory) in each step based on the output of previous steps, and this chain of updates can also be viewed as steps in a multi-hop reasoning process.
|
| 119 |
+
|
| 120 |
+
# 3.2 SUBJECT-VERB AGREEMENT
|
| 121 |
+
|
| 122 |
+
Next, we consider the task of predicting number-agreement between subjects and verbs in English sentences (Linzen et al., 2016). This task acts as a proxy for measuring the ability of a model to capture hierarchical (dependency) structure in natural language sentences. We use the dataset provided by (Linzen et al., 2016) and follow their experimental protocol of solving the task using a language modeling training setup, i.e. a next word prediction objective, followed by calculating the ranking accuracy of the target verb at test time. We evaluated our model on subsets of the test data with different task difficulty, measured in terms of agreement attractors – the number of intervening nouns with the opposite number from the subject (meant to confuse the model). For example, given the sentence The keys to the cabinet4, the objective during training is to predict the verb are (plural). At test time, we then evaluate the ranking accuracy of the agreement attractors: i.e. the goal is to rank are higher than is in this case.
|
| 123 |
+
|
| 124 |
+
Our results are summarized in Table 2. The best LSTM with attention from the literature achieves $9 9 . 1 8 \%$ on this task (Yogatama et al., 2018), outperforming a vanilla Transformer (Tran et al., 2018). UTs significantly outperform standard Transformers, and achieve an average result comparable to the current state of the art $( 9 9 . 2 \% )$ . However, we see that UTs (and particularly with dynamic halting) perform progressively better than all other models as the number of attractors increases (see the last row, $\Delta$ ).
|
| 125 |
+
|
| 126 |
+
# 3.3 LAMBADA LANGUAGE MODELING
|
| 127 |
+
|
| 128 |
+
The LAMBADA task (Paperno et al., 2016) is a language modeling task consisting of predicting a missing target word given a broader context of 4-5 preceding sentences. The dataset was specifically designed so that humans are able to accurately predict the target word when shown the full context, but not when only shown the target sentence in which it appears. It therefore goes beyond language modeling, and tests the ability of a model to incorporate broader discourse and longer term context when predicting the target word.
|
| 129 |
+
|
| 130 |
+
<table><tr><td rowspan="2">Model</td><td colspan="7">Number of attractors</td><td rowspan="2">Total</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td colspan="9">Previous best results (Yogatama et al., 2018):</td></tr><tr><td>Best Stack-RNN</td><td>0.994</td><td>0.979</td><td>0.965</td><td>0.935</td><td>0.916</td><td>0.880</td><td></td><td>0.992</td></tr><tr><td>Best LSTM</td><td>0.993</td><td>0.972</td><td>0.950</td><td></td><td>0.922</td><td>0.900</td><td>0.842</td><td>0.991</td></tr><tr><td>Best Attention</td><td>0.994</td><td>0.977</td><td>0.959</td><td></td><td>0.929</td><td>0.907</td><td>0.842</td><td>0.992</td></tr><tr><td colspan="9">Our results:</td></tr><tr><td>Transformer</td><td>0.973</td><td>0.941</td><td>0.932</td><td></td><td>0.917</td><td>0.901</td><td>0.883</td><td>0.962</td></tr><tr><td>Universal Transformer</td><td>0.993</td><td>0.971</td><td>0.969</td><td></td><td>0.940</td><td>0.921</td><td>0.892</td><td>0.992</td></tr><tr><td>UT w/ ACT</td><td>0.994</td><td>0.969</td><td>0.967</td><td></td><td>0.944</td><td>0.932</td><td>0.907</td><td>0.992</td></tr><tr><td>△(UT w/ACT- Best)</td><td>0</td><td>-0.008</td><td>0.002</td><td></td><td>0.009</td><td>0.016</td><td>0.027</td><td>-</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Table 2: Accuracy on the subject-verb agreement number prediction task (higher is better).
|
| 133 |
+
|
| 134 |
+
<table><tr><td rowspan="2">Model</td><td colspan="3">LM Perplexity & (Accuracy)</td><td colspan="3">RC Accuracy</td></tr><tr><td>control</td><td>dev</td><td>test</td><td>control</td><td>dev</td><td>test</td></tr><tr><td>Neural Cache (Grave et al.,2016) Dhingra et al. Dhingra et al. (2018)</td><td>129 1</td><td>139 1</td><td></td><td></td><td></td><td>- 0.5569</td></tr><tr><td>Transformer</td><td>142 (0.19)</td><td>5122 (0.0)</td><td>7321 (0.0)</td><td>0.4102</td><td>0.4401</td><td>0.3988</td></tr><tr><td>LSTM</td><td>138 (0.23)</td><td>4966 (0.0)</td><td>5174 (0.0)</td><td>0.1103</td><td>0.2316</td><td>0.2007</td></tr><tr><td>UT base,6 steps (fixed)</td><td>131 (0.32)</td><td>279 (0.18)</td><td>319 (0.17)</td><td>0.4801</td><td>0.5422</td><td>0.5216</td></tr><tr><td>UT w/ dynamic halting</td><td>130 (0.32)</td><td>134 (0.22)</td><td>142 (0.19)</td><td>0.4603</td><td>0.5831</td><td>0.5625</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>UT base,8 steps (fixed) UT base,9 steps (fixed)</td><td>129(0.32) 129(0.33)</td><td>192 (0.21) 214 (0.21)</td><td>202 (0.18) 239 (0.17)</td><td></td><td></td><td></td></tr></table>
|
| 135 |
+
|
| 136 |
+
Table 3: LAMBADA language modeling (LM) perplexity (lower better) with accuracy in parentheses (higher better), and Reading Comprehension (RC) accuracy results (higher better). ‘-’ indicates no reported results in that setting.
|
| 137 |
+
|
| 138 |
+
The task is evaluated in two settings: as language modeling (the standard setup) and as reading comprehension. In the former (more challenging) case, a model is simply trained for next-word prediction on the training data, and evaluated on the target words at test time (i.e. the model is trained to predict all words, not specifically challenging target words). In the latter setting, introduced by Chu et al. Chu et al. (2017), the target sentence (minus the last word) is used as query for selecting the target word from the context sentences. Note that the target word appears in the context $81 \%$ of the time, making this setup much simpler. However the task is impossible in the remaining $19 \%$ of the cases.
|
| 139 |
+
|
| 140 |
+
The results are shown in Table 3. Universal Transformer achieves state-of-the-art results in both the language modeling and reading comprehension setup, outperforming both LSTMs and vanilla Transformers. Note that the control set was constructed similar to the LAMBADA development and test sets, but without filtering them in any way, so achieving good results on this set shows a model’s strength in standard language modeling.
|
| 141 |
+
|
| 142 |
+
Our best fixed UT results used 6 steps. However, the average number of steps that the best UT with dynamic halting took on the test data over all positions and examples was $8 . 2 { \pm } 2 . 1 $ . In order to see if the dynamic model did better simply because it took more steps, we trained two fixed UT models with 8 and 9 steps respectively (see last two rows). Interestingly, these two models achieve better results compared to the model with 6 steps, but do not outperform the UT with dynamic halting. This leads us to believe that dynamic halting may act as a useful regularizer for the model via incentivizing a smaller numbers of steps for some of the input symbols, while allowing more computation for others.
|
| 143 |
+
|
| 144 |
+
# 3.4 ALGORITHMIC TASKS
|
| 145 |
+
|
| 146 |
+
We trained UTs on three algorithmic tasks, namely Copy, Reverse, and (integer) Addition, all on strings composed of decimal symbols $( ^ { \cdot } 0 ^ { \cdot } - ^ { \cdot } 9 ^ { \cdot } )$ . In all the experiments, we train the models on sequences of length 40 and evaluated on sequences of length 400 (Kaiser & Sutskever, 2016). We train UTs using positions starting with randomized offsets to further encourage the model to learn position-relative transformations. Results are shown in Table 4. The UT outperforms both LSTM and vanilla Transformer by a wide margin on all three tasks. The Neural GPU reports perfect results on this task (Kaiser & Sutskever, 2016), however we note that this result required a special curriculum-based training protocol which was not used for other models.
|
| 147 |
+
|
| 148 |
+
Table 4: Accuracy (higher better) on the algorithmic tasks. ∗Note that the Neural GPU was trained with a special curriculum to obtain the perfect result, while other models are trained without any curriculum.
|
| 149 |
+
|
| 150 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">Copy</td><td colspan="2">Reverse</td><td colspan="2">Addition</td></tr><tr><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td></tr><tr><td>LSTM</td><td>0.45</td><td>0.09</td><td>0.66</td><td>0.11</td><td>0.08</td><td>0.0</td></tr><tr><td>Transformer</td><td>0.53</td><td>0.03</td><td>0.13</td><td>0.06</td><td>0.07</td><td>0.0</td></tr><tr><td>Universal Transformer</td><td>0.91</td><td>0.35</td><td>0.96</td><td>0.46</td><td>0.34</td><td>0.02</td></tr><tr><td>Neural GPU*</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>
|
| 151 |
+
|
| 152 |
+
Table 5: Character-level (char-acc) and sequence-level accuracy (seq-acc) results on the Memorization LTE tasks, with maximum length of 55.
|
| 153 |
+
|
| 154 |
+
<table><tr><td></td><td colspan="2">Copy</td><td colspan="2">Double</td><td colspan="2">Reverse</td></tr><tr><td>Model</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td></tr><tr><td>LSTM</td><td>0.78</td><td>0.11</td><td>0.51</td><td>0.047</td><td>0.91</td><td>0.32</td></tr><tr><td>Transformer</td><td>0.98</td><td>0.63</td><td>0.94</td><td>0.55</td><td>0.81</td><td>0.26</td></tr><tr><td>Universal Transformer</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>
|
| 155 |
+
|
| 156 |
+
<table><tr><td></td><td colspan="2">Program</td><td colspan="2">Control</td><td colspan="2">Addition</td></tr><tr><td>Model</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td></tr><tr><td>LSTM</td><td>0.53</td><td>0.12</td><td>0.68</td><td>0.21</td><td>0.83</td><td>0.11</td></tr><tr><td>Transformer</td><td>0.71</td><td>0.29</td><td>0.93</td><td>0.66</td><td>1.0</td><td>1.0</td></tr><tr><td>Universal Transformer</td><td>0.89</td><td>0.63</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>
|
| 157 |
+
|
| 158 |
+
Table 6: Character-level (char-acc) and sequence-level accuracy (seq-acc) results on the Program Evaluation LTE tasks with maximum nesting of 2 and length of 5.
|
| 159 |
+
|
| 160 |
+
# 3.5 LEARNING TO EXECUTE (LTE)
|
| 161 |
+
|
| 162 |
+
As another class of sequence-to-sequence learning problems, we also evaluate UTs on tasks indicating the ability of a model to learn to execute computer programs, as proposed in (Zaremba & Sutskever, 2015). These tasks include program evaluation tasks (program, control, and addition), and memorization tasks (copy, double, and reverse).
|
| 163 |
+
|
| 164 |
+
We use the mix-strategy discussed in (Zaremba & Sutskever, 2015) to generate the datasets. Unlike (Zaremba & Sutskever, 2015), we do not use any curriculum learning strategy during training and we make no use of target sequences at test time. Tables 5 and 6 present the performance of an LSTM model, Transformer, and Universal Transformer on the program evaluation and memorization tasks, respectively. UT achieves perfect scores in all the memorization tasks and also outperforms both LSTMs and Transformers in all program evaluation tasks by a wide margin.
|
| 165 |
+
|
| 166 |
+
# 3.6 MACHINE TRANSLATION
|
| 167 |
+
|
| 168 |
+
We trained a UT on the WMT 2014 English-German translation task using the same setup as reported in (Vaswani et al., 2017) in order to evaluate its performance on a large-scale sequence-to-sequence task. Results are summarized in Table 7. The UT with a fully-connected recurrent transition function (instead of separable convolution) and without ACT improves by 0.9 BLEU over a Transformer and 0.5 BLEU over a Weighted Transformer with approximately the same number of parameters (Ahmed et al., 2017).
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Model</td><td>BLEU</td></tr><tr><td>Universal Transformer small</td><td>26.8</td></tr><tr><td>Transformer base (Vaswani et al.,2017)</td><td>28.0</td></tr><tr><td>Weighted Transformer base (Ahmed etal.,2017)</td><td>28.4</td></tr><tr><td>Universal Transformer base</td><td>28.9</td></tr></table>
|
| 171 |
+
|
| 172 |
+
Table 7: Machine translation results on the WMT14 En-De translation task trained on 8xP100 GPUs in comparable training setups. All base results have the same number of parameters.
|
| 173 |
+
|
| 174 |
+
# 4 DISCUSSION
|
| 175 |
+
|
| 176 |
+
When running for a fixed number of steps, the Universal Transformer is equivalent to a multi-layer Transformer with tied parameters across all its layers. This is partly similar to the Recursive Transformer, which ties the weights of its self-attention layers across depth (Gulcehre et al., 2018)5. However, as the per-symbol recurrent transition functions can be applied any number of times, another and possibly more informative way of characterizing the UT is as a block of parallel RNNs (one for each symbol, with shared parameters) evolving per-symbol hidden states concurrently, generated at each step by attending to the sequence of hidden states at the previous step. In this way, it is related to architectures such as the Neural GPU (Kaiser & Sutskever, 2016) and the Neural Turing Machine (Graves et al., 2014). UTs thereby retain the attractive computational efficiency of the original feedforward Transformer model, but with the added recurrent inductive bias of RNNs. Furthermore, using a dynamic halting mechanism, UTs can choose the number of processing steps based on the input data.
|
| 177 |
+
|
| 178 |
+
The connection between the Universal Transformer and other sequence models is apparent from the architecture: if we limited the recurrent steps to one, it would be a Transformer. But it is more interesting to consider the relationship between the Universal Transformer and RNNs and other networks where recurrence happens over the time dimension. Superficially these models may seem closely related since they are recurrent as well. But there is a crucial difference: time-recurrent models like RNNs cannot access memory in the recurrent steps. This makes them computationally more similar to automata, since the only memory available in the recurrent part is a fixed-size state vector. UTs on the other hand can attend to the whole previous layer, allowing it to access memory in the recurrent step.
|
| 179 |
+
|
| 180 |
+
Given sufficient memory the Universal Transformer is computationally universal – i.e. it belongs to the class of models that can be used to simulate any Turing machine, thereby addressing a shortcoming of the standard Transformer model 6. In addition to being theoretically appealing, our results show that this added expressivity also leads to improved accuracy on several challenging sequence modeling tasks. This closes the gap between practical sequence models competitive on large-scale tasks such as machine translation, and computationally universal models such as the Neural Turing Machine or the Neural GPU (Graves et al., 2014; Kaiser & Sutskever, 2016), which can be trained using gradient descent to perform algorithmic tasks.
|
| 181 |
+
|
| 182 |
+
To show this, we can reduce a Neural GPU to a Universal Transformer. Ignoring the decoder and parameterizing the self-attention module, i.e. self-attention with the residual connection, to be the identity function, we assume the transition function to be a convolution. If we now set the total number of recurrent steps $T$ to be equal to the input length, we obtain exactly a Neural GPU. Note that the last step is where the Universal Transformer crucially differs from the vanilla Transformer whose depth cannot scale dynamically with the size of the input. A similar relationship exists between the Universal Transformer and the Neural Turing Machine, whose single read/write operations per step can be expressed by the global, parallel representation revisions of the Universal Transformer. In contrast to these models, however, which only perform well on algorithmic tasks, the Universal Transformer also achieves competitive results on realistic natural language tasks such as LAMBADA and machine translation.
|
| 183 |
+
|
| 184 |
+
Another related model architecture is that of end-to-end Memory Networks (Sukhbaatar et al., 2015). In contrast to end-to-end memory networks, however, the Universal Transformer uses memory corresponding to states aligned to individual positions of its inputs or outputs. Furthermore, the Universal Transformer follows the encoder-decoder configuration and achieves competitive performance in large-scale sequence-to-sequence tasks.
|
| 185 |
+
|
| 186 |
+
# 5 CONCLUSION
|
| 187 |
+
|
| 188 |
+
This paper introduces the Universal Transformer, a generalization of the Transformer model that extends its theoretical capabilities and produces state-of-the-art results on a wide range of challenging sequence modeling tasks, such as language understanding but also a variety of algorithmic tasks, thereby addressing a key shortcoming of the standard Transformer. The Universal Transformer combines the following key properties into one model:
|
| 189 |
+
|
| 190 |
+
Weight sharing: Following intuitions behind weight sharing found in CNNs and RNNs, we extend the Transformer with a simple form of weight sharing that strikes an effective balance between inductive bias and model expressivity, which we show extensively on both small and large-scale experiments.
|
| 191 |
+
|
| 192 |
+
Conditional computation: In our goal to build a computationally universal machine, we equipped the Universal Transformer with the ability to halt or continue computation through a recently introduced mechanism, which shows stronger results compared to the fixed-depth Universal Transformer.
|
| 193 |
+
|
| 194 |
+
We are enthusiastic about the recent developments on parallel-in-time sequence models. By adding computational capacity and recurrence in processing depth, we hope that further improvements beyond the basic Universal Transformer presented here will help us build learning algorithms that are both more powerful, data efficient, and generalize beyond the current state-of-the-art.
|
| 195 |
+
|
| 196 |
+
The code used to train and evaluate Universal Transformers is available at https: //github.com/tensorflow/tensor2tensor (Vaswani et al., 2018).
|
| 197 |
+
|
| 198 |
+
Acknowledgements We are grateful to Ashish Vaswani, Douglas Eck, and David Dohan for their fruitful comments and inspiration.
|
| 199 |
+
|
| 200 |
+
# REFERENCES
|
| 201 |
+
|
| 202 |
+
Karim Ahmed, Nitish Shirish Keskar, and Richard Socher. Weighted transformer network for machine translation. arXiv preprint arXiv:1711.02132, 2017.
|
| 203 |
+
Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. URL http://arxiv.org/abs/1607.06450.
|
| 204 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. URL http://arxiv.org/abs/1409.0473.
|
| 205 |
+
Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. URL http://arxiv.org/abs/1406.1078.
|
| 206 |
+
Francois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016.
|
| 207 |
+
Zewei Chu, Hai Wang, Kevin Gimpel, and David McAllester. Broad context language modeling as reading comprehension. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, volume 2, pp. 52–57, 2017.
|
| 208 |
+
Bhuwan Dhingra, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Linguistic knowledge as memory for recurrent neural networks. arXiv preprint arXiv:1703.02620, 2017.
|
| 209 |
+
Bhuwan Dhingra, Qiao Jin, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Neural models for reasoning over multiple mentions using coreference. arXiv preprint arXiv:1804.05922, 2018.
|
| 210 |
+
Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. CoRR, abs/1705.03122, 2017. URL http://arxiv.org/abs/1705.03122.
|
| 211 |
+
Edouard Grave, Armand Joulin, and Nicolas Usunier. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016.
|
| 212 |
+
Alex Graves. Generating sequences with recurrent neural networks. CoRR, abs/1308.0850, 2013. URL http://arxiv.org/abs/1308.0850.
|
| 213 |
+
Alex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016.
|
| 214 |
+
Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. CoRR, abs/1410.5401, 2014. URL http://arxiv.org/abs/1410.5401.
|
| 215 |
+
Caglar Gulcehre, Misha Denil, Mateusz Malinowski, Ali Razavi, Razvan Pascanu, Karl Moritz Hermann, Peter Battaglia, Victor Bapst, David Raposo, Adam Santoro, et al. Hyperbolic attention networks. arXiv preprint arXiv:1805.09786, 2018.
|
| 216 |
+
Mikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. arXiv preprint arXiv:1612.03969, 2016.
|
| 217 |
+
Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies. A Field Guide to Dynamical Recurrent Neural Networks, 2003.
|
| 218 |
+
A. Joulin and T. Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Advances in Neural Information Processing Systems, (NIPS), 2015.
|
| 219 |
+
Łukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016. URL https://arxiv.org/abs/1511.08228.
|
| 220 |
+
Łukasz Kaiser, Aidan N. Gomez, and Francois Chollet. Depthwise separable convolutions for neural machine translation. CoRR, abs/1706.03059, 2017. URL http://arxiv.org/abs/1706.03059.
|
| 221 |
+
Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In International Conference on Machine Learning, pp. 1378–1387, 2016.
|
| 222 |
+
Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017.
|
| 223 |
+
Tal Linzen, Emmanuel Dupoux, and Yoav Goldberg. Assessing the ability of lstms to learn syntax-sensitive dependencies. Transactions of the Association of Computational Linguistics, 4(1):521–535, 2016.
|
| 224 |
+
Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernandez. The lambada dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1525–1534, 2016.
|
| 225 |
+
Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing, 2016. URL https: //arxiv.org/pdf/1606.01933.pdf.
|
| 226 |
+
Jack Rae, Jonathan J Hunt, Ivo Danihelka, Timothy Harley, Andrew W Senior, Gregory Wayne, Alex Graves, and Tim Lillicrap. Scaling memory-augmented neural networks with sparse reads and writes. In Advances in Neural Information Processing Systems, pp. 3621–3629, 2016.
|
| 227 |
+
Minjoon Seo, Sewon Min, Ali Farhadi, and Hannaneh Hajishirzi. Query-reduction networks for question answering. arXiv preprint arXiv:1606.04582, 2016.
|
| 228 |
+
Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1): 1929–1958, 2014.
|
| 229 |
+
Sainbayar Sukhbaatar, arthur szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2440–2448. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/5846-end-to-end-memory-networks.pdf.
|
| 230 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pp. 3104–3112, 2014. URL http://arxiv.org/abs/1409.3215.
|
| 231 |
+
Ke Tran, Arianna Bisazza, and Christof Monz. The importance of being recurrent for modeling hierarchical structure. In Proceedings of NAACL’18, 2018.
|
| 232 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. CoRR, 2017. URL http://arxiv.org/abs/1706.03762.
|
| 233 |
+
Ashish Vaswani, Samy Bengio, Eugene Brevdo, Francois Chollet, Aidan N. Gomez, Stephan Gouws, Llion Jones, Łukasz Kaiser, Nal Kalchbrenner, Niki Parmar, Ryan Sepassi, Noam Shazeer, and Jakob Uszkoreit. Tensor2tensor for neural machine translation. CoRR, abs/1803.07416, 2018.
|
| 234 |
+
|
| 235 |
+
Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merriënboer, Armand Joulin, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015.
|
| 236 |
+
|
| 237 |
+
Dani Yogatama, Yishu Miao, Gabor Melis, Wang Ling, Adhiguna Kuncoro, Chris Dyer, and Phil Blunsom. Memory architectures in recurrent neural network language models. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ SkFqf0lAZ.
|
| 238 |
+
|
| 239 |
+
Wojciech Zaremba and Ilya Sutskever. Learning to execute. CoRR, abs/1410.4615, 2015. URL http://arxiv.org/abs/1410.4615.
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 4: The Universal Transformer with position and step embeddings as well as dropout and layer normalization.
|
| 243 |
+
|
| 244 |
+
# APPENDIX B ON THE COMPUTATIONAL POWER OF UT VS TRANSFORMER
|
| 245 |
+
|
| 246 |
+
With respect to their computational power, the key difference between the Transformer and the Universal Transformer lies in the number of sequential steps of computation (i.e. in depth). While a standard Transformer executes a total number of operations that scales with the input size, the number of sequential operations is constant, independent of the input size and determined solely by the number of layers. Assuming finite precision, this property implies that the standard Transformer cannot be computationally universal. When choosing a number of steps as a function of the input length, however, the Universal Transformer does not suffer from this limitation. Note that this holds independently of whether or not adaptive computation time is employed but does assume a non-constant, even if possibly deterministic, number of steps. Varying the number of steps dynamically after training is enabled by sharing weights across sequential computation steps in the Universal Transformer.
|
| 247 |
+
|
| 248 |
+
An intuitive example are functions whose execution requires the sequential processing of each input element. In this case, for any given choice of depth $T$ , one can construct an input sequence of length $N > T$ that cannot be processed correctly by a standard Transformer. With an appropriate, input-length dependent choice of sequential steps, however, a Universal Transformer, RNNs or Neural GPUs can execute such a function.
|
| 249 |
+
|
| 250 |
+

|
| 251 |
+
|
| 252 |
+
# APPENDIX C UT WITH DYNAMIC HALTING
|
| 253 |
+
|
| 254 |
+
We implement the dynamic halting based on ACT (Graves, 2016) as follows in TensorFlow. In each step of the UT with dynamic halting, we are given the halting probabilities, remainders, number of updates up to that point, and the previous state (all initialized as zeros), as well as a scalar threshold between 0 and 1 (a hyper-parameter). We then compute the new state for each position and calculate the new per-position halting probabilities based on the state for each position. The UT then decides to halt for some positions that crossed the threshold, and updates the state of other positions until the model halts for all positions or reaches a predefined maximum number of steps:
|
| 255 |
+
|
| 256 |
+
# W h i l e−l o o p s t o p s when t h i s p r e d i c a t e i s FALSE
|
| 257 |
+
2 # i . e . a l l ( ( p r o b a b i l i t y $<$ t h r e s h o l d ) & ( c o u n t e r $<$ m a x _ s t e p s ) ) a r e f a l s e d e f s h o u l d _ c o n t i n u e ( u0 , u1 , h a l t i n g _ p r o b a b i l i t y , u2 , n _ u p d a t e s , u 3 ) : r e t u r n t f . r e d u c e _ a n y (
|
| 258 |
+
5 t f . l o g i c a l _ a n d (
|
| 259 |
+
6 t f . l e s s ( h a l t i n g _ p r o b a b i l i t y , t h r e s h o l d ) ,
|
| 260 |
+
7 t f . l e s s ( n _ u p d a t e s , m a x _ s t e p s ) ) )
|
| 261 |
+
8 # Do w h i l e l o o p i t e r a t i o n s u n t i l p r e d i c a t e a b o v e i s f a l s e
|
| 262 |
+
9 _ , _ , r e m a i n d e r , n _ u p d a t e s , n e w _ s t a t e ) $=$ t f . w h i l e _ l o o p (
|
| 263 |
+
10 s h o u l d _ c o n t i n u e , u t _ w i t h _ d y n a m i c _ h a l t i n g , ( s t a t e ,
|
| 264 |
+
11 s t e p , h a l t i n g _ p r o b a b i l i t y , r e m a i n d e r s , n _ u p d a t e s , p r e v i o u s _ s t a t e ) )
|
| 265 |
+
|
| 266 |
+
The following shows the computations in each step:
|
| 267 |
+
|
| 268 |
+
d e f u t _ w i t h _ d y n a m i c _ h a l t i n g ( s t a t e , s t e p , h a l t i n g _ p r o b a b i l i t y ,
|
| 269 |
+
2 r e m a i n d e r s , n _ u p d a t e s , p r e v i o u s _ s t a t e ) :
|
| 270 |
+
3 # C a l c u l a t e t h e p r o b a b i l i t i e s b a s e d o n t h e s t a t e
|
| 271 |
+
4 $\mathrm { ~ \bf ~ p ~ } =$ c o m m o n _ l a y e r s . d e n s e ( s t a t e , 1 , a c t i v a t i o $\mathbf { n } = 1$ t f . n n . s i g m o i d ,
|
| 272 |
+
5 u s e _ b i a ${ \bf { S } } =$ T r u e )
|
| 273 |
+
6 # Mask f o r i n p u t s w h i c h h a v e n o t h a l t e d y e t
|
| 274 |
+
7 s t i l l _ r u n n i n g $=$ t f . c a s t (
|
| 275 |
+
9 8 # Mask o f i n p u t s w h i c h h a l t e d a t t h i s s t e p t f . l e s s ( h a l t i n g _ p r o b a b i l i t y , 1 . 0 ) , t f . f l o a t 3 2 )
|
| 276 |
+
10 n e w _ h a l t e d $=$ t f . c a s t (
|
| 277 |
+
11 t f . g r e a t e r ( h a l t i n g _ p r o b a b i l i t y $^ +$ p $^ *$ s t i l l _ r u n n i n g , t h r e s h o l d ) ,
|
| 278 |
+
12 t f . f l o a t 3 2 ) $^ *$ s t i l l _ r u n n i n g
|
| 279 |
+
13 # Mask o f i n p u t s w h i c h h a v e n ’ t h a l t e d , a n d d i d n ’ t h a l t t h i s s t e p
|
| 280 |
+
14 s t i l l _ r u n n i n g $=$ t f . c a s t (
|
| 281 |
+
15 t f . l e s s _ e q u a l ( h a l t i n g _ p r o b a b i l i t y + p ∗ s t i l l _ r u n n i n g ,
|
| 282 |
+
16 t h r e s h o l d ) , t f . f l o a t 3 2 ) $^ *$ s t i l l _ r u n n i n g
|
| 283 |
+
17 # Add t h e h a l t i n g p r o b a b i l i t y f o r t h i s s t e p t o t h e h a l t i n g
|
| 284 |
+
18 # p r o b a b i l i t i e s f o r t h o s e i n p u t s w h i c h h a v e n ’ t h a l t e d y e t
|
| 285 |
+
19 h a l t i n g _ p r o b a b i l i t y $+ = \texttt { p } *$ s t i l l _ r u n n i n g
|
| 286 |
+
20 # Compute r e m a i n d e r s f o r t h e i n p u t s w h i c h h a l t e d a t t h i s s t e p
|
| 287 |
+
21 r e m a i n d e r s $+ =$ n e w _ h a l t e d $^ *$ ( 1 − h a l t i n g _ p r o b a b i l i t y )
|
| 288 |
+
22 # Add t h e r e m a i n d e r s t o t h o s e i n p u t s w h i c h h a l t e d a t t h i s s t e p
|
| 289 |
+
23 h a l t i n g _ p r o b a b i l i t y $+ =$ n e w _ h a l t e d $^ *$ r e m a i n d e r s
|
| 290 |
+
24 # I n c r e m e n t n _ u p d a t e s f o r a l l i n p u t s w h i c h a r e s t i l l r u n n i n g
|
| 291 |
+
25 n _ u p d a t e s $+ =$ s t i l l _ r u n n i n g $^ +$ n e w _ h a l t e d
|
| 292 |
+
26 # Compute t h e w e i g h t t o b e a p p l i e d t o t h e new s t a t e a n d o u t p u t :
|
| 293 |
+
27 # 0 when t h e i n p u t h a s a l r e a d y h a l t e d ,
|
| 294 |
+
28 # p when t h e i n p u t h a s n ’ t h a l t e d y e t ,
|
| 295 |
+
29 # t h e r e m a i n d e r s when i t h a l t e d t h i s s t e p .
|
| 296 |
+
30 u p d a t e _ w e i g h t s $=$ t f . e x p a n d _ d i m s ( p $^ *$ s t i l l _ r u n n i n g +
|
| 297 |
+
31 n e w _ h a l t e d $^ *$ r e m a i n d e r s , −1)
|
| 298 |
+
32 $\#$ A p p l y t r a n s f o r m a t i o n t o t h e s t a t e
|
| 299 |
+
33 t r a n s f o r m e d _ s t a t e $=$ t r a n s i t i o n _ f u n c t i o n ( s e l f _ a t t e n t i o n ( s t a t e ) )
|
| 300 |
+
34 # I n t e r p o l a t e t r a n s f o r m e d a n d p r e v i o u s s t a t e s f o r non−h a l t e d i n p u t s
|
| 301 |
+
35 n e w _ s t a t e $=$ ( ( t r a n s f o r m e d _ s t a t e $^ *$ u p d a t e _ w e i g h t s ) $^ +$
|
| 302 |
+
36 ( p r e v i o u s _ s t a t e $^ *$ ( 1 − u p d a t e _ w e i g h t s ) ) )
|
| 303 |
+
37 s t e p $+ = ~ 1$
|
| 304 |
+
38 r e t u r n ( t r a n s f o r m e d _ s t a t e , s t e p , h a l t i n g _ p r o b a b i l i t y ,
|
| 305 |
+
39 r e m a i n d e r s , n _ u p d a t e s , n e w _ s t a t e )
|
| 306 |
+
|
| 307 |
+
Listing 2: Computations in each step of the UT with dynamic halting.
|
| 308 |
+
|
| 309 |
+
# APPENDIX D DESCRIPTION OF SOME OF THE TASKS/DATASETS
|
| 310 |
+
|
| 311 |
+
Here, we provide some additional details on the bAbI, subject-verb agreement, LAMBADA language modeling, and learning to execute (LTE) tasks.
|
| 312 |
+
|
| 313 |
+
# D.1 BABI QUESTION-ANSWERING
|
| 314 |
+
|
| 315 |
+
The bAbi question answering dataset (Weston et al., 2015) consists of 20 different synthetic tasks7. The aim is that each task tests a unique aspect of language understanding and reasoning, including the ability of: reasoning from supporting facts in a story, answering true/false type questions, counting, understanding negation and indefinite knowledge, understanding coreferences, time reasoning, positional and size reasoning, path-finding, and understanding motivations (to see examples for each of these tasks, please refer to Table 1 in (Weston et al., 2015)).
|
| 316 |
+
|
| 317 |
+
There are two versions of the dataset, one with 1k training examples and the other with 10k examples. It is important for a model to be data-efficient to achieve good results using only the 1k training examples. Moreover, the original idea is that a single model should be evaluated across all the tasks (not tuning per task), which is the train joint setup in Table 1, and the tables presented in Appendix E.
|
| 318 |
+
|
| 319 |
+
# D.2 SUBJECT-VERB AGREEMENT
|
| 320 |
+
|
| 321 |
+
Subject-verb agreement is the task of predicting number agreement between subject and verb in English sentences. Succeeding in this task is a strong indicator that a model can learn to approximate syntactic structure and therefore it was proposed by Linzen et al. (2016) as proxy for assessing the ability of different models to capture hierarchical structure in natural language.
|
| 322 |
+
|
| 323 |
+
Two experimental setups were proposed by Linzen et al. (2016) for training a model on this task: 1) training with a language modeling objective, i.e., next word prediction, and 2) as binary classification, i.e. predicting the number of the verb given the sentence. In this paper, we use the language modeling objective, meaning that we provide the model with an implicit supervision and evaluate based on the ranking accuracy of the correct form of the verb compared to the incorrect form of the verb.
|
| 324 |
+
|
| 325 |
+
In this task, in order to have different levels of difficulty, “agreement attractors” are used, i.e. one or more intervening nouns with the opposite number from the subject with the goal of confusing the model. In this case, the model needs to correctly identify the head of the syntactic subject that corresponds to a given verb and ignore the intervening attractors in order to predict the correct form of that verb. Here are some examples for this task in which subjects and the corresponding verbs are in boldface and agreement attractors are underlined:
|
| 326 |
+
|
| 327 |
+
No attractor: The boy smiles.
|
| 328 |
+
One attractor: The number of men is not clear.
|
| 329 |
+
Two attractors: The ratio of men to women is not clear.
|
| 330 |
+
Three attractors: The ratio of men to women and children is not clear.
|
| 331 |
+
|
| 332 |
+
# D.3 LAMBADA LANGUAGE MODELING
|
| 333 |
+
|
| 334 |
+
The LAMBADA task (Paperno et al., 2016) is a broad context language modeling task. In this task, given a narrative passage, the goal is to predict the last word (target word) of the last sentence (target sentence) in the passage. These passages are specifically selected in a way that human subjects are easily able to guess their last word if they are exposed to a long passage, but not if they only see the target sentence preceding the target word8. Here is a sample from the dataset:
|
| 335 |
+
|
| 336 |
+
# Context:
|
| 337 |
+
|
| 338 |
+
“Yes, I thought I was going to lose the baby.” “I was scared too,” he stated, sincerity flooding his eyes. “You were?” “Yes, of course. Why do you even ask?” “This baby wasn’t exactly planned for.”
|
| 339 |
+
Target sentence: “Do you honestly think that I would want you to have a _?”
|
| 340 |
+
Target word: miscarriage
|
| 341 |
+
|
| 342 |
+
The LAMBADA task consists in predicting the target word given the whole passage (i.e., the context plus the target sentence). A “control set” is also provided which was constructed by randomly sampling passages of the same shape and size as the ones used to build LAMBADA, but without filtering them in any way. The control set is used to evaluate the models at standard language modeling before testing on the LAMBADA task, and therefore to ensure that low performance on the latter cannot be attributed simply to poor language modeling.
|
| 343 |
+
|
| 344 |
+
The task is evaluated in two settings: as language modeling (the standard setup) and as reading comprehension. In the former (more challenging) case, a model is simply trained for the next word prediction on the training data, and evaluated on the target words at test time (i.e. the model is trained to predict all words, not specifically challenging target words). In this paper, we report the results of the Universal Transformer in both setups.
|
| 345 |
+
|
| 346 |
+
# D.4 LEARNING TO EXECUTE (LTE)
|
| 347 |
+
|
| 348 |
+
LTE is a set of tasks indicating the ability of a model to learn to execute computer programs and was proposed by Zaremba & Sutskever (2015). These tasks include two subsets: 1) program evaluation tasks (program, control, and addition) that are designed to assess the ability of models for understanding numerical operations, if-statements, variable assignments, the compositionality of operations, and more, as well as 2) memorization tasks (copy, double, and reverse).
|
| 349 |
+
|
| 350 |
+
The difficulty of the program evaluation tasks is parameterized by their length and nesting. The length parameter is the number of digits in the integers that appear in the programs (so the integers are chosen uniformly from [1, length]), and the nesting parameter is the number of times we are allowed to combine the operations with each other. Higher values of nesting yield programs with deeper parse trees. For instance, here is a program that is generated with length $= 4$ and nesting $= 3$ .
|
| 351 |
+
|
| 352 |
+
Input: $\dot { ] } = 8 5 8 4$ for x in range(8): $y + = 9 2 0$ $b = ( 1 5 0 0 + \mathrm { j }$ ) print((b+7567))
|
| 353 |
+
Target: 25011
|
| 354 |
+
|
| 355 |
+
APPENDIX E BABI DETAILED RESULTS
|
| 356 |
+
|
| 357 |
+
<table><tr><td colspan="5">Best seed run for each task (out of 1O runs)</td></tr><tr><td rowspan="2">Task id</td><td colspan="2">10K</td><td colspan="2">1K</td></tr><tr><td> train single</td><td>train joint</td><td> train single</td><td>train joint</td></tr><tr><td>1</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>2</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>3</td><td>0.4</td><td>1.2</td><td>3.7</td><td>5.4</td></tr><tr><td>4</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>5</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>6</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>7</td><td>0.0</td><td>0.0</td><td>0.0</td><td>3.2</td></tr><tr><td>8</td><td>0.0</td><td>0.0</td><td>0.0</td><td>1.6</td></tr><tr><td>9</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.2</td></tr><tr><td>10</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.4</td></tr><tr><td>11</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.1</td></tr><tr><td>12</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>13</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.6</td></tr><tr><td>14</td><td>0.0</td><td>0.0</td><td>0.0</td><td>3.8</td></tr><tr><td>15</td><td>0.0</td><td>0.0</td><td>0.0</td><td>5.9</td></tr><tr><td>16</td><td>0.4</td><td>1.2</td><td>5.8</td><td>15.4</td></tr><tr><td>17</td><td>0.6</td><td>0.2</td><td>32.0</td><td>42.9</td></tr><tr><td>18</td><td>0.0</td><td>0.0</td><td>0.0</td><td>4.1</td></tr><tr><td>19</td><td>2.8</td><td>3.1</td><td>47.1</td><td>68.2</td></tr><tr><td>20</td><td>0.0</td><td>0.0</td><td>2.4</td><td>2.4</td></tr><tr><td>avg err</td><td>0.21</td><td>0.29</td><td>4.55</td><td>7.78</td></tr><tr><td>failed</td><td>0</td><td>0</td><td>3</td><td>5</td></tr></table>
|
| 358 |
+
|
| 359 |
+
<table><tr><td colspan="5">Average (±var) over all seeds (for 1O runs)</td></tr><tr><td rowspan="2">Task id</td><td colspan="2">10K</td><td colspan="2">1K</td></tr><tr><td>train single</td><td>train joint</td><td>train single</td><td>train joint</td></tr><tr><td>1</td><td>0.0±0.0</td><td>0.0±0.0</td><td>0.2 ±0.3</td><td>0.1±0.2</td></tr><tr><td>2</td><td>0.2 ±0.4</td><td>1.7 ±2.6</td><td>3.2 ±4.1</td><td>4.3 ±11.6</td></tr><tr><td>3</td><td>1.8 ±1.8</td><td>4.6 ±7.3</td><td>9.1 ±12.7</td><td>14.3 ±18.1</td></tr><tr><td>4</td><td>0.1 ±0.1</td><td>0.2 ±0.1</td><td>0.3 ±0.3</td><td>0.4±0.6</td></tr><tr><td>5</td><td>0.2 ±0.3</td><td>0.8 ±0.5</td><td>1.1 ±1.3</td><td>4.3 ±5.6</td></tr><tr><td>6</td><td>0.1 ±0.2</td><td>0.1±0.2</td><td>1.2 ±2.1</td><td>0.8 ±0.4</td></tr><tr><td>7</td><td>0.3 ±0.5</td><td>1.1 ±1.5</td><td>0.0 ±0.0</td><td>4.1 ±2.9</td></tr><tr><td>8</td><td>0.3 ±0.2</td><td>0.5 ±1.1</td><td>0.1±0.2</td><td>3.9 ±4.2</td></tr><tr><td>9</td><td>0.0±0.0</td><td>0.0±0.0</td><td>0.1 ±0.1</td><td>0.3 ±0.3</td></tr><tr><td>10</td><td>0.1 ±0.2</td><td>0.5 ±0.4</td><td>0.7 ±0.8</td><td>1.3 ±1.6</td></tr><tr><td>11</td><td>0.0±0.0</td><td>0.1 ±0.1</td><td>0.4±0.8</td><td>0.3 ±0.9</td></tr><tr><td>12</td><td>0.2 ±0.1</td><td>0.4±0.4</td><td>0.6 ±0.9</td><td>0.3 ±0.4</td></tr><tr><td>13</td><td>0.2 ±0.5</td><td>0.3 ±0.4</td><td>0.8 ±0.9</td><td>1.1 ±0.9</td></tr><tr><td>14</td><td>1.8 ±2.6</td><td>1.3 ±1.6</td><td>0.1 ±0.2</td><td>4.7 ±5.2</td></tr><tr><td>15</td><td>2.1 ±3.4</td><td>1.6 ±2.8</td><td>0.3 ±0.5</td><td>10.3 ±8.6</td></tr><tr><td>16</td><td>1.9 ±2.2</td><td>0.9 ±1.3</td><td>9.1 ±8.1</td><td>34.1 ±22.8</td></tr><tr><td>17</td><td>1.6 ±0.8</td><td>1.4 ±3.4</td><td>43.7 ±18.6</td><td>51.1 ±12.9</td></tr><tr><td>18</td><td>0.3 ±0.4</td><td>0.7 ±1.4</td><td>2.3 ±3.6</td><td>12.8 ±9.0</td></tr><tr><td>19</td><td>3.4 ±4.0</td><td>6.1 ±7.3</td><td>50.2 ±8.4</td><td>73.1 ±23.9</td></tr><tr><td>20</td><td>0.0±0.0</td><td>0.0±0.0</td><td>3.2 ±2.5</td><td>2.6 ±2.8</td></tr><tr><td>avg</td><td>0.73 ±0.89</td><td>1.12 ±1.62</td><td>6.34 ±3.32</td><td>11.21 ±6.65</td></tr></table>
|
| 360 |
+
|
| 361 |
+
# APPENDIX F BABI ATTENTION VISUALIZATION
|
| 362 |
+
|
| 363 |
+
We present a visualization of the attention distributions on bAbI tasks for a couple of examples. The visualization of attention weights is over different time steps based on different heads over all the facts in the story and a question. Different color bars on the left side indicate attention weights based on different heads (4 heads in total).
|
| 364 |
+
|
| 365 |
+

|
| 366 |
+
Figure 5: Visualization of the attention distributions, when encoding the question: “Where is Mary?”.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Figure 6: Visualization of the attention distributions, when encoding the question: “Where is the apple?”.
|
| 370 |
+
|
| 371 |
+
# An example from tasks 2:
|
| 372 |
+
|
| 373 |
+
# (requiring two supportive facts to solve)
|
| 374 |
+
|
| 375 |
+
Story:
|
| 376 |
+
|
| 377 |
+
John went to the hallway.
|
| 378 |
+
John went back to the bathroom.
|
| 379 |
+
John grabbed the milk there.
|
| 380 |
+
Sandra went back to the office.
|
| 381 |
+
Sandra journeyed to the kitchen.
|
| 382 |
+
Sandra got the apple there.
|
| 383 |
+
Sandra dropped the apple there.
|
| 384 |
+
John dropped the milk.
|
| 385 |
+
|
| 386 |
+
# Question:
|
| 387 |
+
|
| 388 |
+
Model’s output:
|
| 389 |
+
|
| 390 |
+

|
| 391 |
+
Figure 7: Visualization of the attention distributions, when encoding the question: “Where is the milk?”.
|
| 392 |
+
|
| 393 |
+
# Story:
|
| 394 |
+
|
| 395 |
+
Mary got the milk.
|
| 396 |
+
|
| 397 |
+
John moved to the bedroom.
|
| 398 |
+
Daniel journeyed to the office.
|
| 399 |
+
John grabbed the apple there.
|
| 400 |
+
John got the football.
|
| 401 |
+
John journeyed to the garden.
|
| 402 |
+
Mary left the milk.
|
| 403 |
+
John left the football.
|
| 404 |
+
Daniel moved to the garden.
|
| 405 |
+
Daniel grabbed the football.
|
| 406 |
+
Mary moved to the hallway.
|
| 407 |
+
Mary went to the kitchen.
|
| 408 |
+
John put down the apple there.
|
| 409 |
+
John picked up the apple.
|
| 410 |
+
Sandra moved to the hallway.
|
| 411 |
+
Daniel left the football there.
|
| 412 |
+
Daniel took the football.
|
| 413 |
+
John travelled to the kitchen.
|
| 414 |
+
Daniel dropped the football.
|
| 415 |
+
John dropped the apple.
|
| 416 |
+
John grabbed the apple.
|
| 417 |
+
John went to the office.
|
| 418 |
+
Sandra went back to the bedroom.
|
| 419 |
+
Sandra took the milk.
|
| 420 |
+
John journeyed to the bathroom.
|
| 421 |
+
John travelled to the office.
|
| 422 |
+
Sandra left the milk.
|
| 423 |
+
Mary went to the bedroom.
|
| 424 |
+
Mary moved to the office.
|
| 425 |
+
John travelled to the hallway.
|
| 426 |
+
Sandra moved to the garden.
|
| 427 |
+
Mary moved to the kitchen.
|
| 428 |
+
Daniel took the football.
|
| 429 |
+
Mary journeyed to the bedroom.
|
| 430 |
+
Mary grabbed the milk there.
|
| 431 |
+
Mary discarded the milk.
|
| 432 |
+
John went to the garden.
|
| 433 |
+
John discarded the apple there.
|
| 434 |
+
|
| 435 |
+
# Question:
|
| 436 |
+
|
| 437 |
+
Where was the apple before the bathroom?
|
| 438 |
+
|
| 439 |
+

|
| 440 |
+
|
| 441 |
+

|
| 442 |
+
Figure 7: Visualization of the attention distributions, when encoding the question: “Where was the apple before the bathroom?”.
|
| 443 |
+
|
| 444 |
+
(h) Step 4
|
parse/train/HyzdRiR9Y7/HyzdRiR9Y7_content_list.json
ADDED
|
@@ -0,0 +1,1749 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ox": [
|
| 18 |
+
191,
|
| 19 |
+
141,
|
| 20 |
+
356,
|
| 21 |
+
186
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Stephan Gouws∗ DeepMind sgouws@google.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
374,
|
| 30 |
+
141,
|
| 31 |
+
542,
|
| 32 |
+
186
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Oriol Vinyals \nDeepMind \nvinyals@google.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
562,
|
| 41 |
+
141,
|
| 42 |
+
743,
|
| 43 |
+
188
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Jakob Uszkoreit Google Brain usz@google.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
191,
|
| 52 |
+
204,
|
| 53 |
+
331,
|
| 54 |
+
250
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Łukasz Kaiser \nGoogle Brain \nlukaszkaiser@google.com ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
372,
|
| 63 |
+
204,
|
| 64 |
+
602,
|
| 65 |
+
250
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "ABSTRACT ",
|
| 72 |
+
"text_level": 1,
|
| 73 |
+
"bbox": [
|
| 74 |
+
454,
|
| 75 |
+
286,
|
| 76 |
+
544,
|
| 77 |
+
301
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "Recurrent neural networks (RNNs) sequentially process data by updating their state with each new data point, and have long been the de facto choice for sequence modeling tasks. However, their inherently sequential computation makes them slow to train. Feed-forward and convolutional architectures have recently been shown to achieve superior results on some sequence modeling tasks such as machine translation, with the added advantage that they concurrently process all inputs in the sequence, leading to easy parallelization and faster training times. Despite these successes, however, popular feed-forward sequence models like the Transformer fail to generalize in many simple tasks that recurrent models handle with ease, e.g. copying strings or even simple logical inference when the string or formula lengths exceed those observed at training time. We propose the Universal Transformer (UT), a parallel-in-time self-attentive recurrent sequence model which can be cast as a generalization of the Transformer model and which addresses these issues. UTs combine the parallelizability and global receptive field of feed-forward sequence models like the Transformer with the recurrent inductive bias of RNNs. We also add a dynamic per-position halting mechanism and find that it improves accuracy on several tasks. In contrast to the standard Transformer, under certain assumptions UTs can be shown to be Turing-complete. Our experiments show that UTs outperform standard Transformers on a wide range of algorithmic and language understanding tasks, including the challenging LAMBADA language modeling task where UTs achieve a new state of the art, and machine translation where UTs achieve a 0.9 BLEU improvement over Transformers on the WMT14 En-De dataset. ",
|
| 84 |
+
"bbox": [
|
| 85 |
+
232,
|
| 86 |
+
319,
|
| 87 |
+
766,
|
| 88 |
+
618
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "1 INTRODUCTION ",
|
| 95 |
+
"text_level": 1,
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
646,
|
| 99 |
+
336,
|
| 100 |
+
662
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Convolutional and fully-attentional feed-forward architectures like the Transformer have recently emerged as viable alternatives to recurrent neural networks (RNNs) for a range of sequence modeling tasks, notably machine translation (Gehring et al., 2017; Vaswani et al., 2017). These parallel-in-time architectures address a significant shortcoming of RNNs, namely their inherently sequential computation which prevents parallelization across elements of the input sequence, whilst still addressing the vanishing gradients problem as the sequence length gets longer (Hochreiter et al., 2003). The Transformer model in particular relies entirely on a self-attention mechanism (Parikh et al., 2016; Lin et al., 2017) to compute a series of context-informed vector-space representations of the symbols in its input and output, which are then used to predict distributions over subsequent symbols as the model predicts the output sequence symbol-by-symbol. Not only is this mechanism straightforward to parallelize, but as each symbol’s representation is also directly informed by all other symbols’ representations, this results in an effectively global receptive field across the whole sequence. This stands in contrast to e.g. convolutional architectures which typically only have a limited receptive field. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
676,
|
| 110 |
+
825,
|
| 111 |
+
853
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Notably, however, the Transformer with its fixed stack of distinct layers foregoes RNNs’ inductive bias towards learning iterative or recursive transformations. Our experiments indicate that this inductive bias may be crucial for several algorithmic and language understanding tasks of varying complexity: in contrast to models such as the Neural Turing Machine (Graves et al., 2014), the Neural GPU (Kaiser & Sutskever, 2016) or Stack RNNs (Joulin & Mikolov, 2015), the Transformer does not generalize well to input lengths not encountered during training. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
176,
|
| 120 |
+
861,
|
| 121 |
+
823,
|
| 122 |
+
888
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "image",
|
| 128 |
+
"img_path": "images/507dd2051da74f742d60f292c7b40056ad899fd54839be5a4b69dae12188a93b.jpg",
|
| 129 |
+
"image_caption": [
|
| 130 |
+
"Figure 1: The Universal Transformer repeatedly refines a series of vector representations for each position of the sequence in parallel, by combining information from different positions using self-attention (see Eqn 2) and applying a recurrent transition function (see Eqn 4) across all time steps $1 \\leq t \\leq T$ . We show this process over two recurrent time-steps. Arrows denote dependencies between operations. Initially, $\\hat { h } ^ { 0 }$ is initialized with the embedding for each symbol in the sequence. $h _ { i } ^ { t }$ represents the representation for input symbol $1 \\leq i \\leq m$ at recurrent time-step $t$ . With dynamic halting, $T$ is dynamically determined for each position (Section 2.2). "
|
| 131 |
+
],
|
| 132 |
+
"image_footnote": [],
|
| 133 |
+
"bbox": [
|
| 134 |
+
178,
|
| 135 |
+
104,
|
| 136 |
+
818,
|
| 137 |
+
234
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
361,
|
| 147 |
+
825,
|
| 148 |
+
416
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "In this paper, we introduce the Universal Transformer $( U T )$ , a parallel-in-time recurrent self-attentive sequence model which can be cast as a generalization of the Transformer model, yielding increased theoretical capabilities and improved results on a wide range of challenging sequence-to-sequence tasks. UTs combine the parallelizability and global receptive field of feed-forward sequence models like the Transformer with the recurrent inductive bias of RNNs, which seems to be better suited to a range of algorithmic and natural language understanding sequence-to-sequence problems. As the name implies, and in contrast to the standard Transformer, under certain assumptions UTs can be shown to be Turing-complete (or “computationally universal”, as shown in Section 4). ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
422,
|
| 158 |
+
825,
|
| 159 |
+
532
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "In each recurrent step, the Universal Transformer iteratively refines its representations for all symbols in the sequence in parallel using a self-attention mechanism (Parikh et al., 2016; Lin et al., 2017), followed by a transformation (shared across all positions and time-steps) consisting of a depth-wise separable convolution (Chollet, 2016; Kaiser et al., 2017) or a position-wise fully-connected layer (see Fig 1). We also add a dynamic per-position halting mechanism (Graves, 2016), allowing the model to choose the required number of refinement steps for each symbol dynamically, and show for the first time that such a conditional computation mechanism can in fact improve accuracy on several smaller, structured algorithmic and linguistic inference tasks (although it marginally degraded results on MT). ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
539,
|
| 169 |
+
825,
|
| 170 |
+
648
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Our strong experimental results show that UTs outperform Transformers and LSTMs across a wide range of tasks. The added recurrence yields improved results in machine translation where UTs outperform the standard Transformer. In experiments on several algorithmic tasks and the bAbI language understanding task, UTs also consistently and significantly improve over LSTMs and the standard Transformer. Furthermore, on the challenging LAMBADA text understanding data set UTs with dynamic halting achieve a new state of the art. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
655,
|
| 180 |
+
825,
|
| 181 |
+
737
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "2 MODEL DESCRIPTION ",
|
| 188 |
+
"text_level": 1,
|
| 189 |
+
"bbox": [
|
| 190 |
+
176,
|
| 191 |
+
757,
|
| 192 |
+
388,
|
| 193 |
+
773
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "2.1 THE UNIVERSAL TRANSFORMER ",
|
| 200 |
+
"text_level": 1,
|
| 201 |
+
"bbox": [
|
| 202 |
+
176,
|
| 203 |
+
787,
|
| 204 |
+
441,
|
| 205 |
+
803
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "The Universal Transformer (UT; see Fig. 2) is based on the popular encoder-decoder architecture commonly used in most neural sequence-to-sequence models (Sutskever et al., 2014; Cho et al., 2014; Vaswani et al., 2017). Both the encoder and decoder of the UT operate by applying a recurrent neural network to the representations of each of the positions of the input and output sequence, respectively. However, in contrast to most applications of recurrent neural networks to sequential data, the UT does not recur over positions in the sequence, but over consecutive revisions of the vector representations of each position (i.e., over “depth”). In other words, the UT is not computationally bound by the number of symbols in the sequence, but only by the number of revisions made to each symbol’s representation. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
814,
|
| 215 |
+
825,
|
| 216 |
+
924
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "In each recurrent time-step, the representation of every position is concurrently (in parallel) revised in two sub-steps: first, using a self-attention mechanism to exchange information across all positions in the sequence, thereby generating a vector representation for each position that is informed by the representations of all other positions at the previous time-step. Then, by applying a transition function (shared across position and time) to the outputs of the self-attention mechanism, independently at each position. As the recurrent transition function can be applied any number of times, this implies that UTs can have variable depth (number of per-symbol processing steps). Crucially, this is in contrast to most popular neural sequence models, including the Transformer (Vaswani et al., 2017) or deep RNNs, which have constant depth as a result of applying a fixed stack of layers. We now describe the encoder and decoder in more detail. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
173,
|
| 225 |
+
103,
|
| 226 |
+
825,
|
| 227 |
+
241
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "ENCODER: Given an input sequence of length $m$ , we start with a matrix whose rows are initialized as the $d$ -dimensional embeddings of the symbols at each position of the sequence $H ^ { 0 } \\in \\mathbb { R } ^ { m \\times d }$ . The UT then iteratively computes representations $H ^ { t }$ at step $t$ for all $m$ positions in parallel by applying the multi-headed dot-product self-attention mechanism from Vaswani et al. (2017), followed by a recurrent transition function. We also add residual connections around each of these function blocks and apply dropout and layer normalization (Srivastava et al., 2014; Ba et al., 2016) (see Fig. 2 for a simplified diagram, and Fig. 4 in the Appendix A for the complete model.). ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
246,
|
| 237 |
+
825,
|
| 238 |
+
343
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "More specifically, we use the scaled dot-product attention which combines queries $Q$ , keys $K$ and values $V$ as follows ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
348,
|
| 248 |
+
825,
|
| 249 |
+
377
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "equation",
|
| 255 |
+
"img_path": "images/888aa0eec78961625a960f340e13c1f9bdff20285e2b5c5720857ed775e4a0d7.jpg",
|
| 256 |
+
"text": "$$\n\\mathrm { A T T E N T I O N } ( Q , K , V ) = \\mathrm { S O F T M A X } \\left( \\frac { Q K ^ { T } } { \\sqrt { d } } \\right) V ,\n$$",
|
| 257 |
+
"text_format": "latex",
|
| 258 |
+
"bbox": [
|
| 259 |
+
343,
|
| 260 |
+
393,
|
| 261 |
+
655,
|
| 262 |
+
429
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "where $d$ is the number of columns of $Q$ , $K$ and $V$ . We use the multi-head version with $k$ heads, as introduced in (Vaswani et al., 2017), ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
171,
|
| 271 |
+
440,
|
| 272 |
+
823,
|
| 273 |
+
469
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "equation",
|
| 279 |
+
"img_path": "images/269c9f8d387fd4dad449842455048f9976ce81ad7df0f1290d780a15abff4882.jpg",
|
| 280 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbf { M U L T I H E A D S E L F A T T E N T I O N } ( H ^ { t } ) = \\mathbf { C O N C A T ( h e a d _ { 1 } , . . . , h e a d _ { k } ) } W ^ { O } } \\\\ & { \\qquad \\mathrm { w h e r e ~ h e a d _ { i } = A T T E N T I O N } ( H ^ { t } W _ { i } ^ { Q } , H ^ { t } W _ { i } ^ { K } , H ^ { t } W _ { i } ^ { V } ) } \\end{array}\n$$",
|
| 281 |
+
"text_format": "latex",
|
| 282 |
+
"bbox": [
|
| 283 |
+
241,
|
| 284 |
+
497,
|
| 285 |
+
754,
|
| 286 |
+
541
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "and we map the state $H ^ { t }$ to queries, keys and values with affine projections using learned parameter matrices $\\bar { W } ^ { Q } \\in \\mathbb { R } ^ { d \\times d / k }$ , $W ^ { \\bar { K } } \\in \\mathbb { R } ^ { d \\times d / \\bar { k } }$ , $W ^ { V } \\in \\mathbb { R } ^ { d \\times d / k }$ and $W ^ { O } \\in \\mathbb { R } ^ { d \\times d }$ . ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
558,
|
| 296 |
+
823,
|
| 297 |
+
587
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "At step $t$ , the UT then computes revised representations $H ^ { t } \\in \\mathbb { R } ^ { m \\times d }$ for all $m$ input positions as follows ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
593,
|
| 307 |
+
823,
|
| 308 |
+
609
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "equation",
|
| 314 |
+
"img_path": "images/09127e6b29f44c8f653b3dae19d6e10ae5e1ddbe85932f198a65b0b9c1ac3b98.jpg",
|
| 315 |
+
"text": "$$\n\\begin{array} { r l } & { \\quad H ^ { t } = \\mathrm { L A Y E R N O R M } ( A ^ { t } + \\mathrm { T R A N S I T I O N } ( A ^ { t } ) ) } \\\\ & { \\mathrm { e } A ^ { t } = \\mathrm { L A Y E R N O R M } ( ( H ^ { t - 1 } + P ^ { t } ) + \\mathrm { M U L T I H E A D S E L F A T T E N T I O N } ( H ^ { t - 1 } + P ^ { t } ) ) , } \\end{array}\n$$",
|
| 316 |
+
"text_format": "latex",
|
| 317 |
+
"bbox": [
|
| 318 |
+
236,
|
| 319 |
+
637,
|
| 320 |
+
779,
|
| 321 |
+
679
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "where LAYERNORM() is defined in Ba et al. (2016), and TRANSITION() and $P ^ { t }$ are discussed below. ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
178,
|
| 330 |
+
688,
|
| 331 |
+
823,
|
| 332 |
+
704
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "Depending on the task, we use one of two different transition functions: either a separable convolution (Chollet, 2016) or a fully-connected neural network that consists of a single rectified-linear activation function between two affine transformations, applied position-wise, i.e. individually to each row of $A ^ { t }$ . ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
174,
|
| 341 |
+
709,
|
| 342 |
+
825,
|
| 343 |
+
765
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "$P ^ { t } \\in \\mathbb { R } ^ { m \\times d }$ above are fixed, constant, two-dimensional (position, time) coordinate embeddings, obtained by computing the sinusoidal position embedding vectors as defined in (Vaswani et al., 2017) for the positions $1 \\leq i \\leq m$ and the time-step $1 \\leq t \\leq T$ separately for each vector-dimension $1 \\leq j \\leq d$ and summing: ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
174,
|
| 352 |
+
771,
|
| 353 |
+
825,
|
| 354 |
+
828
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 2
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "equation",
|
| 360 |
+
"img_path": "images/24a86bbbf6ddc41ba3b4ed24932adf74f0fb07bce354bfc6645e2f402980ef1c.jpg",
|
| 361 |
+
"text": "$$\n\\begin{array} { r } { P _ { i , 2 j } ^ { t } = \\sin ( i / 1 0 0 0 0 ^ { 2 j / d } ) + \\sin ( t / 1 0 0 0 0 ^ { 2 j / d } ) } \\\\ { P _ { i , 2 j + 1 } ^ { t } = \\cos ( i / 1 0 0 0 0 ^ { 2 j / d } ) + \\cos ( t / 1 0 0 0 0 ^ { 2 j / d } ) . } \\end{array}\n$$",
|
| 362 |
+
"text_format": "latex",
|
| 363 |
+
"bbox": [
|
| 364 |
+
338,
|
| 365 |
+
835,
|
| 366 |
+
658,
|
| 367 |
+
881
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 2
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "image",
|
| 373 |
+
"img_path": "images/921913d43679c74453a009ab5038b5a9fb452c9b7a70037826c1dfb32a69f5b9.jpg",
|
| 374 |
+
"image_caption": [
|
| 375 |
+
"Figure 2: The recurrent blocks of the Universal Transformer encoder and decoder. This diagram omits position and time-step encodings as well as dropout, residual connections and layer normalization. A complete version can be found in Appendix A. The Universal Transformer with dynamic halting determines the number of steps $T$ for each position individually using ACT (Graves, 2016). "
|
| 376 |
+
],
|
| 377 |
+
"image_footnote": [],
|
| 378 |
+
"bbox": [
|
| 379 |
+
173,
|
| 380 |
+
103,
|
| 381 |
+
820,
|
| 382 |
+
353
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 3
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "After $T$ steps (each updating all positions of the input sequence in parallel), the final output of the Universal Transformer encoder is a matrix of $d$ -dimensional vector representations $H ^ { T } \\in \\mathbf { \\bar { \\mathbb { R } } } ^ { m \\times d }$ for the $m$ symbols of the input sequence. ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
443,
|
| 392 |
+
823,
|
| 393 |
+
484
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "DECODER: The decoder shares the same basic recurrent structure of the encoder. However, after the self-attention function, the decoder additionally also attends to the final encoder representation $H ^ { T }$ of each position in the input sequence using the same multihead dot-product attention function from Equation 2, but with queries $Q$ obtained from projecting the decoder representations, and keys and values ( $K$ and $V$ ) obtained from projecting the encoder representations (this process is akin to standard attention (Bahdanau et al., 2014)). ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
173,
|
| 402 |
+
491,
|
| 403 |
+
825,
|
| 404 |
+
571
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "Like the Transformer model, the UT is autoregressive (Graves, 2013). Trained using teacher-forcing, at generation time it produces its output one symbol at a time, with the decoder consuming the previously produced output positions. During training, the decoder input is the target output, shifted to the right by one position. The decoder self-attention distributions are further masked so that the model can only attend to positions to the left of any predicted symbol. Finally, the per-symbol target distributions are obtained by applying an affine transformation $O \\in \\mathbb { R } ^ { d \\times V }$ from the final decoder state to the output vocabulary size $V$ , followed by a softmax which yields an $( m \\times V )$ -dimensional output matrix normalized over its rows: ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
579,
|
| 414 |
+
825,
|
| 415 |
+
689
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "equation",
|
| 421 |
+
"img_path": "images/5ef8d84574282abdaa8eb989e0bda667e840e3aa2aecb5e6820feb3fbb48f2b5.jpg",
|
| 422 |
+
"text": "$$\np \\big ( y _ { p o s } | y _ { [ 1 : p o s - 1 ] } , H ^ { T } \\big ) = \\mathrm { s O F T M A X } ( O H ^ { T } ) ^ { 1 }\n$$",
|
| 423 |
+
"text_format": "latex",
|
| 424 |
+
"bbox": [
|
| 425 |
+
352,
|
| 426 |
+
705,
|
| 427 |
+
645,
|
| 428 |
+
727
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "To generate from the model, the encoder is run once for the conditioning input sequence. Then the decoder is run repeatedly, consuming all already-generated symbols, while generating one additional distribution over the vocabulary for the symbol at the next output position per iteration. We then typically sample or select the highest probability symbol as the next symbol. ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
174,
|
| 437 |
+
738,
|
| 438 |
+
825,
|
| 439 |
+
792
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 3
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "2.2 DYNAMIC HALTING ",
|
| 446 |
+
"text_level": 1,
|
| 447 |
+
"bbox": [
|
| 448 |
+
176,
|
| 449 |
+
813,
|
| 450 |
+
351,
|
| 451 |
+
827
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "In sequence processing systems, certain symbols (e.g. some words or phonemes) are usually more ambiguous than others. It is therefore reasonable to allocate more processing resources to these more ambiguous symbols. Adaptive Computation Time (ACT) (Graves, 2016) is a mechanism for dynamically modulating the number of computational steps needed to process each input symbol (called the “ponder time”) in standard recurrent neural networks based on a scalar halting probability predicted by the model at each step. ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
174,
|
| 460 |
+
839,
|
| 461 |
+
825,
|
| 462 |
+
895
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 3
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "table",
|
| 468 |
+
"img_path": "images/51d5d56e4f78e3a0a071084a9b43d582a43ffb2712e6a44a55c8f815f626b836.jpg",
|
| 469 |
+
"table_caption": [],
|
| 470 |
+
"table_footnote": [
|
| 471 |
+
"Table 1: Average error and number of failed tasks $( > 5 \\%$ error) out of 20 (in parentheses; lower is better in both cases) on the bAbI dataset under the different training/evaluation setups. We indicate state-of-the-art where available for each, or ‘-’ otherwise. "
|
| 472 |
+
],
|
| 473 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">10K examples</td><td colspan=\"2\">1K examples</td></tr><tr><td>train single</td><td>train joint</td><td>train single</td><td>train joint</td></tr><tr><td colspan=\"5\">Previous best results:</td></tr><tr><td>QRNet (Seo et al., 2016)</td><td>0.3 (0/20)</td><td></td><td></td><td></td></tr><tr><td>Sparse DNC (Rae et al.,2016)</td><td></td><td>2.9 (1/20)</td><td></td><td></td></tr><tr><td>GA+MAGE Dhingra et al. (2017)</td><td></td><td></td><td>8.7 (5/20)</td><td></td></tr><tr><td>MemN2N Sukhbaatar et al. (2015)</td><td></td><td></td><td></td><td>12.4 (11/20)</td></tr><tr><td colspan=\"5\">Our Results:</td></tr><tr><td>Transformer (Vaswani et al.,2017)</td><td>15.2 (10/20)</td><td>22.1 (12/20)</td><td>21.8 (5/20)</td><td>26.8 (14/20)</td></tr><tr><td>Universal Transformer (this work)</td><td>0.23 (0/20)</td><td>0.47 (0/20)</td><td>5.31 (5/20)</td><td>8.50 (8/20)</td></tr><tr><td>UT w/ dynamic halting (this work)</td><td>0.21 (0/20)</td><td>0.29 (0/20)</td><td>4.55 (3/20)</td><td>7.78 (5/20)</td></tr></table>",
|
| 474 |
+
"bbox": [
|
| 475 |
+
205,
|
| 476 |
+
113,
|
| 477 |
+
790,
|
| 478 |
+
292
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "",
|
| 485 |
+
"bbox": [
|
| 486 |
+
173,
|
| 487 |
+
353,
|
| 488 |
+
823,
|
| 489 |
+
381
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "Inspired by the interpretation of Universal Transformers as applying self-attentive RNNs in parallel to all positions in the sequence, we also add a dynamic ACT halting mechanism to each position (i.e. to each per-symbol self-attentive RNN; see Appendix C for more details). Once the per-symbol recurrent block halts, its state is simply copied to the next step until all blocks halt, or we reach a maximum number of steps. The final output of the encoder is then the final layer of representations produced in this way. ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
174,
|
| 498 |
+
387,
|
| 499 |
+
825,
|
| 500 |
+
457
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "3 EXPERIMENTS AND ANALYSIS ",
|
| 507 |
+
"text_level": 1,
|
| 508 |
+
"bbox": [
|
| 509 |
+
176,
|
| 510 |
+
477,
|
| 511 |
+
457,
|
| 512 |
+
492
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "We evaluated the Universal Transformer on a range of algorithmic and language understanding tasks, as well as on machine translation. We describe these tasks and datasets in more detail in Appendix D. ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
174,
|
| 521 |
+
507,
|
| 522 |
+
823,
|
| 523 |
+
535
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "3.1 BABI QUESTION-ANSWERING ",
|
| 530 |
+
"text_level": 1,
|
| 531 |
+
"bbox": [
|
| 532 |
+
176,
|
| 533 |
+
551,
|
| 534 |
+
423,
|
| 535 |
+
566
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "The bAbi question answering dataset (Weston et al., 2015) consists of 20 different tasks, where the goal is to answer a question given a number of English sentences that encode potentially multiple supporting facts. The goal is to measure various forms of language understanding by requiring a certain type of reasoning over the linguistic facts presented in each story. A standard Transformer does not achieve good results on this task2. However, we have designed a model based on the Universal Transformer which achieves state-of-the-art results on this task. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
174,
|
| 544 |
+
578,
|
| 545 |
+
825,
|
| 546 |
+
660
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "To encode the input, similar to Henaff et al. (2016), we first encode each fact in the story by applying a learned multiplicative positional mask to each word’s embedding, and summing up all embeddings. We embed the question in the same way, and then feed the (Universal) Transformer with these embeddings of the facts and questions. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
174,
|
| 555 |
+
666,
|
| 556 |
+
825,
|
| 557 |
+
722
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "As originally proposed, models can either be trained on each task separately (“train single”) or jointly on all tasks (“train joint”). Table 1 summarizes our results. We conducted 10 runs with different initializations and picked the best model based on performance on the validation set, similar to previous work. Both the UT and UT with dynamic halting achieve state-of-the-art results on all tasks in terms of average error and number of failed tasks3, in both the 10K and 1K training regime (see Appendix E for breakdown by task). ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
174,
|
| 566 |
+
728,
|
| 567 |
+
825,
|
| 568 |
+
810
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "To understand the working of the model better, we analyzed both the attention distributions and the average ACT ponder times for this task (see Appendix F for details). First, we observe that the attention distributions start out very uniform, but get progressively sharper in later steps around the correct supporting facts that are required to answer each question, which is indeed very similar to how humans would solve the task. Second, with dynamic halting we observe that the average ponder time (i.e. depth of the per-symbol recurrent processing chain) over all positions in all samples in the test data for tasks requiring three supporting facts is higher $( 3 . 8 { \\pm } 2 . 2 ) $ than for tasks requiring only two $( 3 . 1 { \\pm } 1 . 1 ) $ , which is in turn higher than for tasks requiring only one supporting fact $( 2 . 3 { \\pm } 0 . 8 ) $ . This indicates that the model adjusts the number of processing steps with the number of supporting facts required to answer the questions. Finally, we observe that the histogram of ponder times at different positions is more uniform in tasks requiring only one supporting fact compared to two and three, and likewise for tasks requiring two compared to three. Especially for tasks requiring three supporting facts, many positions halt at step 1 or 2 already and only a few get transformed for more steps (see for example Fig 3). This is particularly interesting as the length of stories is indeed much higher in this setting, with more irrelevant facts which the model seems to successfully learn to ignore in this way. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
818,
|
| 578 |
+
823,
|
| 579 |
+
886
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "image",
|
| 585 |
+
"img_path": "images/79cd643b79ebf6e2857e1b7faa9e0dfee2764a5ad06f0203090a8a37ddf605ac.jpg",
|
| 586 |
+
"image_caption": [
|
| 587 |
+
"Figure 3: Ponder time of UT with dynamic halting for encoding facts in a story and question in a bAbI task requiring three supporting facts. "
|
| 588 |
+
],
|
| 589 |
+
"image_footnote": [],
|
| 590 |
+
"bbox": [
|
| 591 |
+
176,
|
| 592 |
+
99,
|
| 593 |
+
821,
|
| 594 |
+
252
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 5
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "",
|
| 601 |
+
"bbox": [
|
| 602 |
+
173,
|
| 603 |
+
318,
|
| 604 |
+
825,
|
| 605 |
+
454
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 5
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "Similar to dynamic memory networks (Kumar et al., 2016), there is an iterative attention process in UTs that allows the model to condition its attention over memory on the result of previous iterations. Appendix F presents some examples illustrating that there is a notion of temporal states in UT, where the model updates its states (memory) in each step based on the output of previous steps, and this chain of updates can also be viewed as steps in a multi-hop reasoning process. ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
174,
|
| 614 |
+
460,
|
| 615 |
+
825,
|
| 616 |
+
530
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 5
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "3.2 SUBJECT-VERB AGREEMENT ",
|
| 623 |
+
"text_level": 1,
|
| 624 |
+
"bbox": [
|
| 625 |
+
176,
|
| 626 |
+
550,
|
| 627 |
+
415,
|
| 628 |
+
564
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 5
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "Next, we consider the task of predicting number-agreement between subjects and verbs in English sentences (Linzen et al., 2016). This task acts as a proxy for measuring the ability of a model to capture hierarchical (dependency) structure in natural language sentences. We use the dataset provided by (Linzen et al., 2016) and follow their experimental protocol of solving the task using a language modeling training setup, i.e. a next word prediction objective, followed by calculating the ranking accuracy of the target verb at test time. We evaluated our model on subsets of the test data with different task difficulty, measured in terms of agreement attractors – the number of intervening nouns with the opposite number from the subject (meant to confuse the model). For example, given the sentence The keys to the cabinet4, the objective during training is to predict the verb are (plural). At test time, we then evaluate the ranking accuracy of the agreement attractors: i.e. the goal is to rank are higher than is in this case. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
578,
|
| 638 |
+
825,
|
| 639 |
+
714
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 5
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "Our results are summarized in Table 2. The best LSTM with attention from the literature achieves $9 9 . 1 8 \\%$ on this task (Yogatama et al., 2018), outperforming a vanilla Transformer (Tran et al., 2018). UTs significantly outperform standard Transformers, and achieve an average result comparable to the current state of the art $( 9 9 . 2 \\% )$ . However, we see that UTs (and particularly with dynamic halting) perform progressively better than all other models as the number of attractors increases (see the last row, $\\Delta$ ). ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
174,
|
| 648 |
+
720,
|
| 649 |
+
826,
|
| 650 |
+
789
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 5
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "3.3 LAMBADA LANGUAGE MODELING ",
|
| 657 |
+
"text_level": 1,
|
| 658 |
+
"bbox": [
|
| 659 |
+
176,
|
| 660 |
+
810,
|
| 661 |
+
465,
|
| 662 |
+
824
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 5
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "The LAMBADA task (Paperno et al., 2016) is a language modeling task consisting of predicting a missing target word given a broader context of 4-5 preceding sentences. The dataset was specifically designed so that humans are able to accurately predict the target word when shown the full context, but not when only shown the target sentence in which it appears. It therefore goes beyond language modeling, and tests the ability of a model to incorporate broader discourse and longer term context when predicting the target word. ",
|
| 669 |
+
"bbox": [
|
| 670 |
+
174,
|
| 671 |
+
837,
|
| 672 |
+
825,
|
| 673 |
+
892
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 5
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "table",
|
| 679 |
+
"img_path": "images/ef2169d8f79cc987440d2e099ea821c1b11a62b71bd69ca2bb5f46b9ca991864.jpg",
|
| 680 |
+
"table_caption": [],
|
| 681 |
+
"table_footnote": [],
|
| 682 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"7\">Number of attractors</td><td rowspan=\"2\">Total</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td colspan=\"9\">Previous best results (Yogatama et al., 2018):</td></tr><tr><td>Best Stack-RNN</td><td>0.994</td><td>0.979</td><td>0.965</td><td>0.935</td><td>0.916</td><td>0.880</td><td></td><td>0.992</td></tr><tr><td>Best LSTM</td><td>0.993</td><td>0.972</td><td>0.950</td><td></td><td>0.922</td><td>0.900</td><td>0.842</td><td>0.991</td></tr><tr><td>Best Attention</td><td>0.994</td><td>0.977</td><td>0.959</td><td></td><td>0.929</td><td>0.907</td><td>0.842</td><td>0.992</td></tr><tr><td colspan=\"9\">Our results:</td></tr><tr><td>Transformer</td><td>0.973</td><td>0.941</td><td>0.932</td><td></td><td>0.917</td><td>0.901</td><td>0.883</td><td>0.962</td></tr><tr><td>Universal Transformer</td><td>0.993</td><td>0.971</td><td>0.969</td><td></td><td>0.940</td><td>0.921</td><td>0.892</td><td>0.992</td></tr><tr><td>UT w/ ACT</td><td>0.994</td><td>0.969</td><td>0.967</td><td></td><td>0.944</td><td>0.932</td><td>0.907</td><td>0.992</td></tr><tr><td>△(UT w/ACT- Best)</td><td>0</td><td>-0.008</td><td>0.002</td><td></td><td>0.009</td><td>0.016</td><td>0.027</td><td>-</td></tr></table>",
|
| 683 |
+
"bbox": [
|
| 684 |
+
232,
|
| 685 |
+
101,
|
| 686 |
+
763,
|
| 687 |
+
286
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 6
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "table",
|
| 693 |
+
"img_path": "images/fc194652941c06f78321d40d184cd47b108acfc256136d7f68721c88ae32c443.jpg",
|
| 694 |
+
"table_caption": [
|
| 695 |
+
"Table 2: Accuracy on the subject-verb agreement number prediction task (higher is better). "
|
| 696 |
+
],
|
| 697 |
+
"table_footnote": [
|
| 698 |
+
"Table 3: LAMBADA language modeling (LM) perplexity (lower better) with accuracy in parentheses (higher better), and Reading Comprehension (RC) accuracy results (higher better). ‘-’ indicates no reported results in that setting. "
|
| 699 |
+
],
|
| 700 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"3\">LM Perplexity & (Accuracy)</td><td colspan=\"3\">RC Accuracy</td></tr><tr><td>control</td><td>dev</td><td>test</td><td>control</td><td>dev</td><td>test</td></tr><tr><td>Neural Cache (Grave et al.,2016) Dhingra et al. Dhingra et al. (2018)</td><td>129 1</td><td>139 1</td><td></td><td></td><td></td><td>- 0.5569</td></tr><tr><td>Transformer</td><td>142 (0.19)</td><td>5122 (0.0)</td><td>7321 (0.0)</td><td>0.4102</td><td>0.4401</td><td>0.3988</td></tr><tr><td>LSTM</td><td>138 (0.23)</td><td>4966 (0.0)</td><td>5174 (0.0)</td><td>0.1103</td><td>0.2316</td><td>0.2007</td></tr><tr><td>UT base,6 steps (fixed)</td><td>131 (0.32)</td><td>279 (0.18)</td><td>319 (0.17)</td><td>0.4801</td><td>0.5422</td><td>0.5216</td></tr><tr><td>UT w/ dynamic halting</td><td>130 (0.32)</td><td>134 (0.22)</td><td>142 (0.19)</td><td>0.4603</td><td>0.5831</td><td>0.5625</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>UT base,8 steps (fixed) UT base,9 steps (fixed)</td><td>129(0.32) 129(0.33)</td><td>192 (0.21) 214 (0.21)</td><td>202 (0.18) 239 (0.17)</td><td></td><td></td><td></td></tr></table>",
|
| 701 |
+
"bbox": [
|
| 702 |
+
176,
|
| 703 |
+
308,
|
| 704 |
+
821,
|
| 705 |
+
468
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 6
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "",
|
| 712 |
+
"bbox": [
|
| 713 |
+
174,
|
| 714 |
+
531,
|
| 715 |
+
821,
|
| 716 |
+
559
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 6
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "The task is evaluated in two settings: as language modeling (the standard setup) and as reading comprehension. In the former (more challenging) case, a model is simply trained for next-word prediction on the training data, and evaluated on the target words at test time (i.e. the model is trained to predict all words, not specifically challenging target words). In the latter setting, introduced by Chu et al. Chu et al. (2017), the target sentence (minus the last word) is used as query for selecting the target word from the context sentences. Note that the target word appears in the context $81 \\%$ of the time, making this setup much simpler. However the task is impossible in the remaining $19 \\%$ of the cases. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
174,
|
| 725 |
+
565,
|
| 726 |
+
825,
|
| 727 |
+
661
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "The results are shown in Table 3. Universal Transformer achieves state-of-the-art results in both the language modeling and reading comprehension setup, outperforming both LSTMs and vanilla Transformers. Note that the control set was constructed similar to the LAMBADA development and test sets, but without filtering them in any way, so achieving good results on this set shows a model’s strength in standard language modeling. ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
174,
|
| 736 |
+
667,
|
| 737 |
+
825,
|
| 738 |
+
737
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 6
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "Our best fixed UT results used 6 steps. However, the average number of steps that the best UT with dynamic halting took on the test data over all positions and examples was $8 . 2 { \\pm } 2 . 1 $ . In order to see if the dynamic model did better simply because it took more steps, we trained two fixed UT models with 8 and 9 steps respectively (see last two rows). Interestingly, these two models achieve better results compared to the model with 6 steps, but do not outperform the UT with dynamic halting. This leads us to believe that dynamic halting may act as a useful regularizer for the model via incentivizing a smaller numbers of steps for some of the input symbols, while allowing more computation for others. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
743,
|
| 748 |
+
825,
|
| 749 |
+
839
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 6
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "3.4 ALGORITHMIC TASKS ",
|
| 756 |
+
"text_level": 1,
|
| 757 |
+
"bbox": [
|
| 758 |
+
176,
|
| 759 |
+
856,
|
| 760 |
+
366,
|
| 761 |
+
871
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 6
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "We trained UTs on three algorithmic tasks, namely Copy, Reverse, and (integer) Addition, all on strings composed of decimal symbols $( ^ { \\cdot } 0 ^ { \\cdot } - ^ { \\cdot } 9 ^ { \\cdot } )$ . In all the experiments, we train the models on sequences of length 40 and evaluated on sequences of length 400 (Kaiser & Sutskever, 2016). We train UTs using positions starting with randomized offsets to further encourage the model to learn position-relative transformations. Results are shown in Table 4. The UT outperforms both LSTM and vanilla Transformer by a wide margin on all three tasks. The Neural GPU reports perfect results on this task (Kaiser & Sutskever, 2016), however we note that this result required a special curriculum-based training protocol which was not used for other models. ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
176,
|
| 770 |
+
882,
|
| 771 |
+
823,
|
| 772 |
+
924
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 6
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "table",
|
| 778 |
+
"img_path": "images/1b90b1185b2b903c67a138af3fdf579dd033a1a95c134a476af8db094a1dc2ec.jpg",
|
| 779 |
+
"table_caption": [
|
| 780 |
+
"Table 4: Accuracy (higher better) on the algorithmic tasks. ∗Note that the Neural GPU was trained with a special curriculum to obtain the perfect result, while other models are trained without any curriculum. "
|
| 781 |
+
],
|
| 782 |
+
"table_footnote": [],
|
| 783 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Copy</td><td colspan=\"2\">Reverse</td><td colspan=\"2\">Addition</td></tr><tr><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td></tr><tr><td>LSTM</td><td>0.45</td><td>0.09</td><td>0.66</td><td>0.11</td><td>0.08</td><td>0.0</td></tr><tr><td>Transformer</td><td>0.53</td><td>0.03</td><td>0.13</td><td>0.06</td><td>0.07</td><td>0.0</td></tr><tr><td>Universal Transformer</td><td>0.91</td><td>0.35</td><td>0.96</td><td>0.46</td><td>0.34</td><td>0.02</td></tr><tr><td>Neural GPU*</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>",
|
| 784 |
+
"bbox": [
|
| 785 |
+
222,
|
| 786 |
+
113,
|
| 787 |
+
774,
|
| 788 |
+
212
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 7
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "table",
|
| 794 |
+
"img_path": "images/9e15d01bff4909a1ef6f53289ff3213927179cb682f47427d472066da438451d.jpg",
|
| 795 |
+
"table_caption": [
|
| 796 |
+
"Table 5: Character-level (char-acc) and sequence-level accuracy (seq-acc) results on the Memorization LTE tasks, with maximum length of 55. "
|
| 797 |
+
],
|
| 798 |
+
"table_footnote": [],
|
| 799 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">Copy</td><td colspan=\"2\">Double</td><td colspan=\"2\">Reverse</td></tr><tr><td>Model</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td></tr><tr><td>LSTM</td><td>0.78</td><td>0.11</td><td>0.51</td><td>0.047</td><td>0.91</td><td>0.32</td></tr><tr><td>Transformer</td><td>0.98</td><td>0.63</td><td>0.94</td><td>0.55</td><td>0.81</td><td>0.26</td></tr><tr><td>Universal Transformer</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>",
|
| 800 |
+
"bbox": [
|
| 801 |
+
222,
|
| 802 |
+
255,
|
| 803 |
+
774,
|
| 804 |
+
340
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 7
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "table",
|
| 810 |
+
"img_path": "images/f2b1e076b1f694afa1e69b3a016ec625a26ae2aca583a35f363bad271f7e367c.jpg",
|
| 811 |
+
"table_caption": [],
|
| 812 |
+
"table_footnote": [
|
| 813 |
+
"Table 6: Character-level (char-acc) and sequence-level accuracy (seq-acc) results on the Program Evaluation LTE tasks with maximum nesting of 2 and length of 5. "
|
| 814 |
+
],
|
| 815 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">Program</td><td colspan=\"2\">Control</td><td colspan=\"2\">Addition</td></tr><tr><td>Model</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td><td>char-acc</td><td>seq-acc</td></tr><tr><td>LSTM</td><td>0.53</td><td>0.12</td><td>0.68</td><td>0.21</td><td>0.83</td><td>0.11</td></tr><tr><td>Transformer</td><td>0.71</td><td>0.29</td><td>0.93</td><td>0.66</td><td>1.0</td><td>1.0</td></tr><tr><td>Universal Transformer</td><td>0.89</td><td>0.63</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>",
|
| 816 |
+
"bbox": [
|
| 817 |
+
220,
|
| 818 |
+
383,
|
| 819 |
+
774,
|
| 820 |
+
470
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 7
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "",
|
| 827 |
+
"bbox": [
|
| 828 |
+
174,
|
| 829 |
+
526,
|
| 830 |
+
825,
|
| 831 |
+
594
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 7
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "3.5 LEARNING TO EXECUTE (LTE) ",
|
| 838 |
+
"text_level": 1,
|
| 839 |
+
"bbox": [
|
| 840 |
+
176,
|
| 841 |
+
622,
|
| 842 |
+
428,
|
| 843 |
+
637
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 7
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "As another class of sequence-to-sequence learning problems, we also evaluate UTs on tasks indicating the ability of a model to learn to execute computer programs, as proposed in (Zaremba & Sutskever, 2015). These tasks include program evaluation tasks (program, control, and addition), and memorization tasks (copy, double, and reverse). ",
|
| 850 |
+
"bbox": [
|
| 851 |
+
174,
|
| 852 |
+
652,
|
| 853 |
+
825,
|
| 854 |
+
708
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 7
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "We use the mix-strategy discussed in (Zaremba & Sutskever, 2015) to generate the datasets. Unlike (Zaremba & Sutskever, 2015), we do not use any curriculum learning strategy during training and we make no use of target sequences at test time. Tables 5 and 6 present the performance of an LSTM model, Transformer, and Universal Transformer on the program evaluation and memorization tasks, respectively. UT achieves perfect scores in all the memorization tasks and also outperforms both LSTMs and Transformers in all program evaluation tasks by a wide margin. ",
|
| 861 |
+
"bbox": [
|
| 862 |
+
174,
|
| 863 |
+
714,
|
| 864 |
+
825,
|
| 865 |
+
797
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 7
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "3.6 MACHINE TRANSLATION ",
|
| 872 |
+
"text_level": 1,
|
| 873 |
+
"bbox": [
|
| 874 |
+
176,
|
| 875 |
+
825,
|
| 876 |
+
387,
|
| 877 |
+
839
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 7
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "We trained a UT on the WMT 2014 English-German translation task using the same setup as reported in (Vaswani et al., 2017) in order to evaluate its performance on a large-scale sequence-to-sequence task. Results are summarized in Table 7. The UT with a fully-connected recurrent transition function (instead of separable convolution) and without ACT improves by 0.9 BLEU over a Transformer and 0.5 BLEU over a Weighted Transformer with approximately the same number of parameters (Ahmed et al., 2017). ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
174,
|
| 886 |
+
854,
|
| 887 |
+
825,
|
| 888 |
+
924
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 7
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "table",
|
| 894 |
+
"img_path": "images/52b057d5336a0a53077ac512df32473f843ec58180d0f5b31ad97a1c477cd211.jpg",
|
| 895 |
+
"table_caption": [],
|
| 896 |
+
"table_footnote": [
|
| 897 |
+
"Table 7: Machine translation results on the WMT14 En-De translation task trained on 8xP100 GPUs in comparable training setups. All base results have the same number of parameters. "
|
| 898 |
+
],
|
| 899 |
+
"table_body": "<table><tr><td>Model</td><td>BLEU</td></tr><tr><td>Universal Transformer small</td><td>26.8</td></tr><tr><td>Transformer base (Vaswani et al.,2017)</td><td>28.0</td></tr><tr><td>Weighted Transformer base (Ahmed etal.,2017)</td><td>28.4</td></tr><tr><td>Universal Transformer base</td><td>28.9</td></tr></table>",
|
| 900 |
+
"bbox": [
|
| 901 |
+
313,
|
| 902 |
+
101,
|
| 903 |
+
681,
|
| 904 |
+
181
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 8
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "4 DISCUSSION ",
|
| 911 |
+
"text_level": 1,
|
| 912 |
+
"bbox": [
|
| 913 |
+
174,
|
| 914 |
+
233,
|
| 915 |
+
310,
|
| 916 |
+
250
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 8
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "When running for a fixed number of steps, the Universal Transformer is equivalent to a multi-layer Transformer with tied parameters across all its layers. This is partly similar to the Recursive Transformer, which ties the weights of its self-attention layers across depth (Gulcehre et al., 2018)5. However, as the per-symbol recurrent transition functions can be applied any number of times, another and possibly more informative way of characterizing the UT is as a block of parallel RNNs (one for each symbol, with shared parameters) evolving per-symbol hidden states concurrently, generated at each step by attending to the sequence of hidden states at the previous step. In this way, it is related to architectures such as the Neural GPU (Kaiser & Sutskever, 2016) and the Neural Turing Machine (Graves et al., 2014). UTs thereby retain the attractive computational efficiency of the original feedforward Transformer model, but with the added recurrent inductive bias of RNNs. Furthermore, using a dynamic halting mechanism, UTs can choose the number of processing steps based on the input data. ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
174,
|
| 925 |
+
270,
|
| 926 |
+
825,
|
| 927 |
+
420
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 8
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "The connection between the Universal Transformer and other sequence models is apparent from the architecture: if we limited the recurrent steps to one, it would be a Transformer. But it is more interesting to consider the relationship between the Universal Transformer and RNNs and other networks where recurrence happens over the time dimension. Superficially these models may seem closely related since they are recurrent as well. But there is a crucial difference: time-recurrent models like RNNs cannot access memory in the recurrent steps. This makes them computationally more similar to automata, since the only memory available in the recurrent part is a fixed-size state vector. UTs on the other hand can attend to the whole previous layer, allowing it to access memory in the recurrent step. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
174,
|
| 936 |
+
426,
|
| 937 |
+
825,
|
| 938 |
+
536
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 8
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Given sufficient memory the Universal Transformer is computationally universal – i.e. it belongs to the class of models that can be used to simulate any Turing machine, thereby addressing a shortcoming of the standard Transformer model 6. In addition to being theoretically appealing, our results show that this added expressivity also leads to improved accuracy on several challenging sequence modeling tasks. This closes the gap between practical sequence models competitive on large-scale tasks such as machine translation, and computationally universal models such as the Neural Turing Machine or the Neural GPU (Graves et al., 2014; Kaiser & Sutskever, 2016), which can be trained using gradient descent to perform algorithmic tasks. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
173,
|
| 947 |
+
542,
|
| 948 |
+
825,
|
| 949 |
+
651
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 8
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "To show this, we can reduce a Neural GPU to a Universal Transformer. Ignoring the decoder and parameterizing the self-attention module, i.e. self-attention with the residual connection, to be the identity function, we assume the transition function to be a convolution. If we now set the total number of recurrent steps $T$ to be equal to the input length, we obtain exactly a Neural GPU. Note that the last step is where the Universal Transformer crucially differs from the vanilla Transformer whose depth cannot scale dynamically with the size of the input. A similar relationship exists between the Universal Transformer and the Neural Turing Machine, whose single read/write operations per step can be expressed by the global, parallel representation revisions of the Universal Transformer. In contrast to these models, however, which only perform well on algorithmic tasks, the Universal Transformer also achieves competitive results on realistic natural language tasks such as LAMBADA and machine translation. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
659,
|
| 959 |
+
825,
|
| 960 |
+
795
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 8
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "Another related model architecture is that of end-to-end Memory Networks (Sukhbaatar et al., 2015). In contrast to end-to-end memory networks, however, the Universal Transformer uses memory corresponding to states aligned to individual positions of its inputs or outputs. Furthermore, the Universal Transformer follows the encoder-decoder configuration and achieves competitive performance in large-scale sequence-to-sequence tasks. ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
174,
|
| 969 |
+
801,
|
| 970 |
+
825,
|
| 971 |
+
869
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 8
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "5 CONCLUSION ",
|
| 978 |
+
"text_level": 1,
|
| 979 |
+
"bbox": [
|
| 980 |
+
176,
|
| 981 |
+
102,
|
| 982 |
+
318,
|
| 983 |
+
118
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 9
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "This paper introduces the Universal Transformer, a generalization of the Transformer model that extends its theoretical capabilities and produces state-of-the-art results on a wide range of challenging sequence modeling tasks, such as language understanding but also a variety of algorithmic tasks, thereby addressing a key shortcoming of the standard Transformer. The Universal Transformer combines the following key properties into one model: ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
174,
|
| 992 |
+
133,
|
| 993 |
+
825,
|
| 994 |
+
202
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 9
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Weight sharing: Following intuitions behind weight sharing found in CNNs and RNNs, we extend the Transformer with a simple form of weight sharing that strikes an effective balance between inductive bias and model expressivity, which we show extensively on both small and large-scale experiments. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
174,
|
| 1003 |
+
208,
|
| 1004 |
+
825,
|
| 1005 |
+
251
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 9
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Conditional computation: In our goal to build a computationally universal machine, we equipped the Universal Transformer with the ability to halt or continue computation through a recently introduced mechanism, which shows stronger results compared to the fixed-depth Universal Transformer. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
176,
|
| 1014 |
+
257,
|
| 1015 |
+
825,
|
| 1016 |
+
297
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 9
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "We are enthusiastic about the recent developments on parallel-in-time sequence models. By adding computational capacity and recurrence in processing depth, we hope that further improvements beyond the basic Universal Transformer presented here will help us build learning algorithms that are both more powerful, data efficient, and generalize beyond the current state-of-the-art. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
305,
|
| 1026 |
+
825,
|
| 1027 |
+
359
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 9
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "The code used to train and evaluate Universal Transformers is available at https: //github.com/tensorflow/tensor2tensor (Vaswani et al., 2018). ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
174,
|
| 1036 |
+
375,
|
| 1037 |
+
821,
|
| 1038 |
+
402
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 9
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Acknowledgements We are grateful to Ashish Vaswani, Douglas Eck, and David Dohan for their fruitful comments and inspiration. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
173,
|
| 1047 |
+
426,
|
| 1048 |
+
825,
|
| 1049 |
+
454
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 9
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "REFERENCES ",
|
| 1056 |
+
"text_level": 1,
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
176,
|
| 1059 |
+
474,
|
| 1060 |
+
285,
|
| 1061 |
+
489
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 9
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Karim Ahmed, Nitish Shirish Keskar, and Richard Socher. Weighted transformer network for machine translation. arXiv preprint arXiv:1711.02132, 2017. \nJimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. URL http://arxiv.org/abs/1607.06450. \nDzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. URL http://arxiv.org/abs/1409.0473. \nKyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. URL http://arxiv.org/abs/1406.1078. \nFrancois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. \nZewei Chu, Hai Wang, Kevin Gimpel, and David McAllester. Broad context language modeling as reading comprehension. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, volume 2, pp. 52–57, 2017. \nBhuwan Dhingra, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Linguistic knowledge as memory for recurrent neural networks. arXiv preprint arXiv:1703.02620, 2017. \nBhuwan Dhingra, Qiao Jin, Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Neural models for reasoning over multiple mentions using coreference. arXiv preprint arXiv:1804.05922, 2018. \nJonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. CoRR, abs/1705.03122, 2017. URL http://arxiv.org/abs/1705.03122. \nEdouard Grave, Armand Joulin, and Nicolas Usunier. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016. \nAlex Graves. Generating sequences with recurrent neural networks. CoRR, abs/1308.0850, 2013. URL http://arxiv.org/abs/1308.0850. \nAlex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016. \nAlex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. CoRR, abs/1410.5401, 2014. URL http://arxiv.org/abs/1410.5401. \nCaglar Gulcehre, Misha Denil, Mateusz Malinowski, Ali Razavi, Razvan Pascanu, Karl Moritz Hermann, Peter Battaglia, Victor Bapst, David Raposo, Adam Santoro, et al. Hyperbolic attention networks. arXiv preprint arXiv:1805.09786, 2018. \nMikael Henaff, Jason Weston, Arthur Szlam, Antoine Bordes, and Yann LeCun. Tracking the world state with recurrent entity networks. arXiv preprint arXiv:1612.03969, 2016. \nSepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies. A Field Guide to Dynamical Recurrent Neural Networks, 2003. \nA. Joulin and T. Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Advances in Neural Information Processing Systems, (NIPS), 2015. \nŁukasz Kaiser and Ilya Sutskever. Neural GPUs learn algorithms. In International Conference on Learning Representations (ICLR), 2016. URL https://arxiv.org/abs/1511.08228. \nŁukasz Kaiser, Aidan N. Gomez, and Francois Chollet. Depthwise separable convolutions for neural machine translation. CoRR, abs/1706.03059, 2017. URL http://arxiv.org/abs/1706.03059. \nAnkit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In International Conference on Machine Learning, pp. 1378–1387, 2016. \nZhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. \nTal Linzen, Emmanuel Dupoux, and Yoav Goldberg. Assessing the ability of lstms to learn syntax-sensitive dependencies. Transactions of the Association of Computational Linguistics, 4(1):521–535, 2016. \nDenis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernandez. The lambada dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1525–1534, 2016. \nAnkur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing, 2016. URL https: //arxiv.org/pdf/1606.01933.pdf. \nJack Rae, Jonathan J Hunt, Ivo Danihelka, Timothy Harley, Andrew W Senior, Gregory Wayne, Alex Graves, and Tim Lillicrap. Scaling memory-augmented neural networks with sparse reads and writes. In Advances in Neural Information Processing Systems, pp. 3621–3629, 2016. \nMinjoon Seo, Sewon Min, Ali Farhadi, and Hannaneh Hajishirzi. Query-reduction networks for question answering. arXiv preprint arXiv:1606.04582, 2016. \nNitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1): 1929–1958, 2014. \nSainbayar Sukhbaatar, arthur szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2440–2448. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/5846-end-to-end-memory-networks.pdf. \nIlya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pp. 3104–3112, 2014. URL http://arxiv.org/abs/1409.3215. \nKe Tran, Arianna Bisazza, and Christof Monz. The importance of being recurrent for modeling hierarchical structure. In Proceedings of NAACL’18, 2018. \nAshish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. CoRR, 2017. URL http://arxiv.org/abs/1706.03762. \nAshish Vaswani, Samy Bengio, Eugene Brevdo, Francois Chollet, Aidan N. Gomez, Stephan Gouws, Llion Jones, Łukasz Kaiser, Nal Kalchbrenner, Niki Parmar, Ryan Sepassi, Noam Shazeer, and Jakob Uszkoreit. Tensor2tensor for neural machine translation. CoRR, abs/1803.07416, 2018. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
171,
|
| 1070 |
+
497,
|
| 1071 |
+
826,
|
| 1072 |
+
924
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 9
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
171,
|
| 1081 |
+
63,
|
| 1082 |
+
828,
|
| 1083 |
+
928
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 10
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merriënboer, Armand Joulin, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
173,
|
| 1092 |
+
104,
|
| 1093 |
+
825,
|
| 1094 |
+
142
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 11
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Dani Yogatama, Yishu Miao, Gabor Melis, Wang Ling, Adhiguna Kuncoro, Chris Dyer, and Phil Blunsom. Memory architectures in recurrent neural network language models. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ SkFqf0lAZ. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
176,
|
| 1103 |
+
151,
|
| 1104 |
+
821,
|
| 1105 |
+
190
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 11
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Wojciech Zaremba and Ilya Sutskever. Learning to execute. CoRR, abs/1410.4615, 2015. URL http://arxiv.org/abs/1410.4615. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
174,
|
| 1114 |
+
199,
|
| 1115 |
+
825,
|
| 1116 |
+
224
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 11
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "image",
|
| 1122 |
+
"img_path": "images/5f564a4ed338c4ad846f158feb7380a4bf03826b912138eb324e8a3f5e31016b.jpg",
|
| 1123 |
+
"image_caption": [
|
| 1124 |
+
"Figure 4: The Universal Transformer with position and step embeddings as well as dropout and layer normalization. "
|
| 1125 |
+
],
|
| 1126 |
+
"image_footnote": [],
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
187,
|
| 1129 |
+
140,
|
| 1130 |
+
808,
|
| 1131 |
+
622
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 12
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "APPENDIX B ON THE COMPUTATIONAL POWER OF UT VS TRANSFORMER ",
|
| 1138 |
+
"text_level": 1,
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
173,
|
| 1141 |
+
690,
|
| 1142 |
+
795,
|
| 1143 |
+
708
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 12
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "With respect to their computational power, the key difference between the Transformer and the Universal Transformer lies in the number of sequential steps of computation (i.e. in depth). While a standard Transformer executes a total number of operations that scales with the input size, the number of sequential operations is constant, independent of the input size and determined solely by the number of layers. Assuming finite precision, this property implies that the standard Transformer cannot be computationally universal. When choosing a number of steps as a function of the input length, however, the Universal Transformer does not suffer from this limitation. Note that this holds independently of whether or not adaptive computation time is employed but does assume a non-constant, even if possibly deterministic, number of steps. Varying the number of steps dynamically after training is enabled by sharing weights across sequential computation steps in the Universal Transformer. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
173,
|
| 1152 |
+
723,
|
| 1153 |
+
826,
|
| 1154 |
+
837
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 12
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "An intuitive example are functions whose execution requires the sequential processing of each input element. In this case, for any given choice of depth $T$ , one can construct an input sequence of length $N > T$ that cannot be processed correctly by a standard Transformer. With an appropriate, input-length dependent choice of sequential steps, however, a Universal Transformer, RNNs or Neural GPUs can execute such a function. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
174,
|
| 1163 |
+
843,
|
| 1164 |
+
565,
|
| 1165 |
+
929
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 12
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "image",
|
| 1171 |
+
"img_path": "images/97c3cbbe9fcf8d4d7ee8b9d381cd5a87ee67d792e9d0b1b91f1288ddc76c6b98.jpg",
|
| 1172 |
+
"image_caption": [],
|
| 1173 |
+
"image_footnote": [],
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
604,
|
| 1176 |
+
842,
|
| 1177 |
+
777,
|
| 1178 |
+
945
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 12
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "APPENDIX C UT WITH DYNAMIC HALTING ",
|
| 1185 |
+
"text_level": 1,
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
174,
|
| 1188 |
+
102,
|
| 1189 |
+
547,
|
| 1190 |
+
118
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 13
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "We implement the dynamic halting based on ACT (Graves, 2016) as follows in TensorFlow. In each step of the UT with dynamic halting, we are given the halting probabilities, remainders, number of updates up to that point, and the previous state (all initialized as zeros), as well as a scalar threshold between 0 and 1 (a hyper-parameter). We then compute the new state for each position and calculate the new per-position halting probabilities based on the state for each position. The UT then decides to halt for some positions that crossed the threshold, and updates the state of other positions until the model halts for all positions or reaches a predefined maximum number of steps: ",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
173,
|
| 1199 |
+
132,
|
| 1200 |
+
825,
|
| 1201 |
+
208
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 13
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "# W h i l e−l o o p s t o p s when t h i s p r e d i c a t e i s FALSE \n2 # i . e . a l l ( ( p r o b a b i l i t y $<$ t h r e s h o l d ) & ( c o u n t e r $<$ m a x _ s t e p s ) ) a r e f a l s e d e f s h o u l d _ c o n t i n u e ( u0 , u1 , h a l t i n g _ p r o b a b i l i t y , u2 , n _ u p d a t e s , u 3 ) : r e t u r n t f . r e d u c e _ a n y ( \n5 t f . l o g i c a l _ a n d ( \n6 t f . l e s s ( h a l t i n g _ p r o b a b i l i t y , t h r e s h o l d ) , \n7 t f . l e s s ( n _ u p d a t e s , m a x _ s t e p s ) ) ) \n8 # Do w h i l e l o o p i t e r a t i o n s u n t i l p r e d i c a t e a b o v e i s f a l s e \n9 _ , _ , r e m a i n d e r , n _ u p d a t e s , n e w _ s t a t e ) $=$ t f . w h i l e _ l o o p ( \n10 s h o u l d _ c o n t i n u e , u t _ w i t h _ d y n a m i c _ h a l t i n g , ( s t a t e , \n11 s t e p , h a l t i n g _ p r o b a b i l i t y , r e m a i n d e r s , n _ u p d a t e s , p r e v i o u s _ s t a t e ) ) ",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
158,
|
| 1210 |
+
215,
|
| 1211 |
+
815,
|
| 1212 |
+
353
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 13
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "The following shows the computations in each step: ",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
174,
|
| 1221 |
+
387,
|
| 1222 |
+
473,
|
| 1223 |
+
401
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 13
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "d e f u t _ w i t h _ d y n a m i c _ h a l t i n g ( s t a t e , s t e p , h a l t i n g _ p r o b a b i l i t y , \n2 r e m a i n d e r s , n _ u p d a t e s , p r e v i o u s _ s t a t e ) : \n3 # C a l c u l a t e t h e p r o b a b i l i t i e s b a s e d o n t h e s t a t e \n4 $\\mathrm { ~ \\bf ~ p ~ } =$ c o m m o n _ l a y e r s . d e n s e ( s t a t e , 1 , a c t i v a t i o $\\mathbf { n } = 1$ t f . n n . s i g m o i d , \n5 u s e _ b i a ${ \\bf { S } } =$ T r u e ) \n6 # Mask f o r i n p u t s w h i c h h a v e n o t h a l t e d y e t \n7 s t i l l _ r u n n i n g $=$ t f . c a s t ( \n9 8 # Mask o f i n p u t s w h i c h h a l t e d a t t h i s s t e p t f . l e s s ( h a l t i n g _ p r o b a b i l i t y , 1 . 0 ) , t f . f l o a t 3 2 ) \n10 n e w _ h a l t e d $=$ t f . c a s t ( \n11 t f . g r e a t e r ( h a l t i n g _ p r o b a b i l i t y $^ +$ p $^ *$ s t i l l _ r u n n i n g , t h r e s h o l d ) , \n12 t f . f l o a t 3 2 ) $^ *$ s t i l l _ r u n n i n g \n13 # Mask o f i n p u t s w h i c h h a v e n ’ t h a l t e d , a n d d i d n ’ t h a l t t h i s s t e p \n14 s t i l l _ r u n n i n g $=$ t f . c a s t ( \n15 t f . l e s s _ e q u a l ( h a l t i n g _ p r o b a b i l i t y + p ∗ s t i l l _ r u n n i n g , \n16 t h r e s h o l d ) , t f . f l o a t 3 2 ) $^ *$ s t i l l _ r u n n i n g \n17 # Add t h e h a l t i n g p r o b a b i l i t y f o r t h i s s t e p t o t h e h a l t i n g \n18 # p r o b a b i l i t i e s f o r t h o s e i n p u t s w h i c h h a v e n ’ t h a l t e d y e t \n19 h a l t i n g _ p r o b a b i l i t y $+ = \\texttt { p } *$ s t i l l _ r u n n i n g \n20 # Compute r e m a i n d e r s f o r t h e i n p u t s w h i c h h a l t e d a t t h i s s t e p \n21 r e m a i n d e r s $+ =$ n e w _ h a l t e d $^ *$ ( 1 − h a l t i n g _ p r o b a b i l i t y ) \n22 # Add t h e r e m a i n d e r s t o t h o s e i n p u t s w h i c h h a l t e d a t t h i s s t e p \n23 h a l t i n g _ p r o b a b i l i t y $+ =$ n e w _ h a l t e d $^ *$ r e m a i n d e r s \n24 # I n c r e m e n t n _ u p d a t e s f o r a l l i n p u t s w h i c h a r e s t i l l r u n n i n g \n25 n _ u p d a t e s $+ =$ s t i l l _ r u n n i n g $^ +$ n e w _ h a l t e d \n26 # Compute t h e w e i g h t t o b e a p p l i e d t o t h e new s t a t e a n d o u t p u t : \n27 # 0 when t h e i n p u t h a s a l r e a d y h a l t e d , \n28 # p when t h e i n p u t h a s n ’ t h a l t e d y e t , \n29 # t h e r e m a i n d e r s when i t h a l t e d t h i s s t e p . \n30 u p d a t e _ w e i g h t s $=$ t f . e x p a n d _ d i m s ( p $^ *$ s t i l l _ r u n n i n g + \n31 n e w _ h a l t e d $^ *$ r e m a i n d e r s , −1) \n32 $\\#$ A p p l y t r a n s f o r m a t i o n t o t h e s t a t e \n33 t r a n s f o r m e d _ s t a t e $=$ t r a n s i t i o n _ f u n c t i o n ( s e l f _ a t t e n t i o n ( s t a t e ) ) \n34 # I n t e r p o l a t e t r a n s f o r m e d a n d p r e v i o u s s t a t e s f o r non−h a l t e d i n p u t s \n35 n e w _ s t a t e $=$ ( ( t r a n s f o r m e d _ s t a t e $^ *$ u p d a t e _ w e i g h t s ) $^ +$ \n36 ( p r e v i o u s _ s t a t e $^ *$ ( 1 − u p d a t e _ w e i g h t s ) ) ) \n37 s t e p $+ = ~ 1$ \n38 r e t u r n ( t r a n s f o r m e d _ s t a t e , s t e p , h a l t i n g _ p r o b a b i l i t y , \n39 r e m a i n d e r s , n _ u p d a t e s , n e w _ s t a t e ) ",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
151,
|
| 1232 |
+
404,
|
| 1233 |
+
816,
|
| 1234 |
+
893
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 13
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "Listing 2: Computations in each step of the UT with dynamic halting. ",
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
272,
|
| 1243 |
+
893,
|
| 1244 |
+
722,
|
| 1245 |
+
909
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 13
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "APPENDIX D DESCRIPTION OF SOME OF THE TASKS/DATASETS ",
|
| 1252 |
+
"text_level": 1,
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
174,
|
| 1255 |
+
102,
|
| 1256 |
+
709,
|
| 1257 |
+
118
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 14
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Here, we provide some additional details on the bAbI, subject-verb agreement, LAMBADA language modeling, and learning to execute (LTE) tasks. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
132,
|
| 1267 |
+
825,
|
| 1268 |
+
157
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 14
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "D.1 BABI QUESTION-ANSWERING ",
|
| 1275 |
+
"text_level": 1,
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
176,
|
| 1278 |
+
174,
|
| 1279 |
+
426,
|
| 1280 |
+
189
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 14
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "The bAbi question answering dataset (Weston et al., 2015) consists of 20 different synthetic tasks7. The aim is that each task tests a unique aspect of language understanding and reasoning, including the ability of: reasoning from supporting facts in a story, answering true/false type questions, counting, understanding negation and indefinite knowledge, understanding coreferences, time reasoning, positional and size reasoning, path-finding, and understanding motivations (to see examples for each of these tasks, please refer to Table 1 in (Weston et al., 2015)). ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
174,
|
| 1289 |
+
199,
|
| 1290 |
+
825,
|
| 1291 |
+
262
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 14
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "There are two versions of the dataset, one with 1k training examples and the other with 10k examples. It is important for a model to be data-efficient to achieve good results using only the 1k training examples. Moreover, the original idea is that a single model should be evaluated across all the tasks (not tuning per task), which is the train joint setup in Table 1, and the tables presented in Appendix E. ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
174,
|
| 1300 |
+
268,
|
| 1301 |
+
825,
|
| 1302 |
+
319
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 14
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "D.2 SUBJECT-VERB AGREEMENT ",
|
| 1309 |
+
"text_level": 1,
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
176,
|
| 1312 |
+
335,
|
| 1313 |
+
418,
|
| 1314 |
+
349
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 14
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "Subject-verb agreement is the task of predicting number agreement between subject and verb in English sentences. Succeeding in this task is a strong indicator that a model can learn to approximate syntactic structure and therefore it was proposed by Linzen et al. (2016) as proxy for assessing the ability of different models to capture hierarchical structure in natural language. ",
|
| 1321 |
+
"bbox": [
|
| 1322 |
+
176,
|
| 1323 |
+
361,
|
| 1324 |
+
825,
|
| 1325 |
+
411
|
| 1326 |
+
],
|
| 1327 |
+
"page_idx": 14
|
| 1328 |
+
},
|
| 1329 |
+
{
|
| 1330 |
+
"type": "text",
|
| 1331 |
+
"text": "Two experimental setups were proposed by Linzen et al. (2016) for training a model on this task: 1) training with a language modeling objective, i.e., next word prediction, and 2) as binary classification, i.e. predicting the number of the verb given the sentence. In this paper, we use the language modeling objective, meaning that we provide the model with an implicit supervision and evaluate based on the ranking accuracy of the correct form of the verb compared to the incorrect form of the verb. ",
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
174,
|
| 1334 |
+
417,
|
| 1335 |
+
825,
|
| 1336 |
+
479
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 14
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "In this task, in order to have different levels of difficulty, “agreement attractors” are used, i.e. one or more intervening nouns with the opposite number from the subject with the goal of confusing the model. In this case, the model needs to correctly identify the head of the syntactic subject that corresponds to a given verb and ignore the intervening attractors in order to predict the correct form of that verb. Here are some examples for this task in which subjects and the corresponding verbs are in boldface and agreement attractors are underlined: ",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
174,
|
| 1345 |
+
487,
|
| 1346 |
+
821,
|
| 1347 |
+
549
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 14
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "text",
|
| 1353 |
+
"text": "No attractor: The boy smiles. \nOne attractor: The number of men is not clear. \nTwo attractors: The ratio of men to women is not clear. \nThree attractors: The ratio of men to women and children is not clear. ",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
183,
|
| 1356 |
+
563,
|
| 1357 |
+
725,
|
| 1358 |
+
604
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 14
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "D.3 LAMBADA LANGUAGE MODELING ",
|
| 1365 |
+
"text_level": 1,
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
176,
|
| 1368 |
+
637,
|
| 1369 |
+
468,
|
| 1370 |
+
651
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 14
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "The LAMBADA task (Paperno et al., 2016) is a broad context language modeling task. In this task, given a narrative passage, the goal is to predict the last word (target word) of the last sentence (target sentence) in the passage. These passages are specifically selected in a way that human subjects are easily able to guess their last word if they are exposed to a long passage, but not if they only see the target sentence preceding the target word8. Here is a sample from the dataset: ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
174,
|
| 1379 |
+
662,
|
| 1380 |
+
826,
|
| 1381 |
+
727
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 14
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "Context: ",
|
| 1388 |
+
"text_level": 1,
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
183,
|
| 1391 |
+
741,
|
| 1392 |
+
246,
|
| 1393 |
+
751
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 14
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "“Yes, I thought I was going to lose the baby.” “I was scared too,” he stated, sincerity flooding his eyes. “You were?” “Yes, of course. Why do you even ask?” “This baby wasn’t exactly planned for.” \nTarget sentence: “Do you honestly think that I would want you to have a _?” \nTarget word: miscarriage ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
183,
|
| 1402 |
+
747,
|
| 1403 |
+
816,
|
| 1404 |
+
833
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 14
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "The LAMBADA task consists in predicting the target word given the whole passage (i.e., the context plus the target sentence). A “control set” is also provided which was constructed by randomly sampling passages of the same shape and size as the ones used to build LAMBADA, but without filtering them in any way. The control set is used to evaluate the models at standard language modeling before testing on the LAMBADA task, and therefore to ensure that low performance on the latter cannot be attributed simply to poor language modeling. ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
176,
|
| 1413 |
+
848,
|
| 1414 |
+
823,
|
| 1415 |
+
886
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 14
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
171,
|
| 1424 |
+
104,
|
| 1425 |
+
823,
|
| 1426 |
+
131
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 15
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "The task is evaluated in two settings: as language modeling (the standard setup) and as reading comprehension. In the former (more challenging) case, a model is simply trained for the next word prediction on the training data, and evaluated on the target words at test time (i.e. the model is trained to predict all words, not specifically challenging target words). In this paper, we report the results of the Universal Transformer in both setups. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
174,
|
| 1435 |
+
137,
|
| 1436 |
+
825,
|
| 1437 |
+
186
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 15
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "D.4 LEARNING TO EXECUTE (LTE) ",
|
| 1444 |
+
"text_level": 1,
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
176,
|
| 1447 |
+
203,
|
| 1448 |
+
431,
|
| 1449 |
+
217
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 15
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "LTE is a set of tasks indicating the ability of a model to learn to execute computer programs and was proposed by Zaremba & Sutskever (2015). These tasks include two subsets: 1) program evaluation tasks (program, control, and addition) that are designed to assess the ability of models for understanding numerical operations, if-statements, variable assignments, the compositionality of operations, and more, as well as 2) memorization tasks (copy, double, and reverse). ",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
174,
|
| 1458 |
+
228,
|
| 1459 |
+
825,
|
| 1460 |
+
290
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 15
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "The difficulty of the program evaluation tasks is parameterized by their length and nesting. The length parameter is the number of digits in the integers that appear in the programs (so the integers are chosen uniformly from [1, length]), and the nesting parameter is the number of times we are allowed to combine the operations with each other. Higher values of nesting yield programs with deeper parse trees. For instance, here is a program that is generated with length $= 4$ and nesting $= 3$ . ",
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
174,
|
| 1469 |
+
297,
|
| 1470 |
+
825,
|
| 1471 |
+
359
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 15
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "text",
|
| 1477 |
+
"text": "Input: $\\dot { ] } = 8 5 8 4$ for x in range(8): $y + = 9 2 0$ $b = ( 1 5 0 0 + \\mathrm { j }$ ) print((b+7567)) \nTarget: 25011 ",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
181,
|
| 1480 |
+
373,
|
| 1481 |
+
395,
|
| 1482 |
+
454
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 15
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "table",
|
| 1488 |
+
"img_path": "images/4f51958984b0e4ab087723c7f61119ab3025a76fb92070a61db6cd4924c45a24.jpg",
|
| 1489 |
+
"table_caption": [
|
| 1490 |
+
"APPENDIX E BABI DETAILED RESULTS "
|
| 1491 |
+
],
|
| 1492 |
+
"table_footnote": [],
|
| 1493 |
+
"table_body": "<table><tr><td colspan=\"5\">Best seed run for each task (out of 1O runs)</td></tr><tr><td rowspan=\"2\">Task id</td><td colspan=\"2\">10K</td><td colspan=\"2\">1K</td></tr><tr><td> train single</td><td>train joint</td><td> train single</td><td>train joint</td></tr><tr><td>1</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>2</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>3</td><td>0.4</td><td>1.2</td><td>3.7</td><td>5.4</td></tr><tr><td>4</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>5</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>6</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>7</td><td>0.0</td><td>0.0</td><td>0.0</td><td>3.2</td></tr><tr><td>8</td><td>0.0</td><td>0.0</td><td>0.0</td><td>1.6</td></tr><tr><td>9</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.2</td></tr><tr><td>10</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.4</td></tr><tr><td>11</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.1</td></tr><tr><td>12</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>13</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.6</td></tr><tr><td>14</td><td>0.0</td><td>0.0</td><td>0.0</td><td>3.8</td></tr><tr><td>15</td><td>0.0</td><td>0.0</td><td>0.0</td><td>5.9</td></tr><tr><td>16</td><td>0.4</td><td>1.2</td><td>5.8</td><td>15.4</td></tr><tr><td>17</td><td>0.6</td><td>0.2</td><td>32.0</td><td>42.9</td></tr><tr><td>18</td><td>0.0</td><td>0.0</td><td>0.0</td><td>4.1</td></tr><tr><td>19</td><td>2.8</td><td>3.1</td><td>47.1</td><td>68.2</td></tr><tr><td>20</td><td>0.0</td><td>0.0</td><td>2.4</td><td>2.4</td></tr><tr><td>avg err</td><td>0.21</td><td>0.29</td><td>4.55</td><td>7.78</td></tr><tr><td>failed</td><td>0</td><td>0</td><td>3</td><td>5</td></tr></table>",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
287,
|
| 1496 |
+
125,
|
| 1497 |
+
712,
|
| 1498 |
+
511
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 16
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "table",
|
| 1504 |
+
"img_path": "images/707cb91ca7d4a6505bceacec0f78c21dad5887a956d574c135fece37c961afc0.jpg",
|
| 1505 |
+
"table_caption": [],
|
| 1506 |
+
"table_footnote": [],
|
| 1507 |
+
"table_body": "<table><tr><td colspan=\"5\">Average (±var) over all seeds (for 1O runs)</td></tr><tr><td rowspan=\"2\">Task id</td><td colspan=\"2\">10K</td><td colspan=\"2\">1K</td></tr><tr><td>train single</td><td>train joint</td><td>train single</td><td>train joint</td></tr><tr><td>1</td><td>0.0±0.0</td><td>0.0±0.0</td><td>0.2 ±0.3</td><td>0.1±0.2</td></tr><tr><td>2</td><td>0.2 ±0.4</td><td>1.7 ±2.6</td><td>3.2 ±4.1</td><td>4.3 ±11.6</td></tr><tr><td>3</td><td>1.8 ±1.8</td><td>4.6 ±7.3</td><td>9.1 ±12.7</td><td>14.3 ±18.1</td></tr><tr><td>4</td><td>0.1 ±0.1</td><td>0.2 ±0.1</td><td>0.3 ±0.3</td><td>0.4±0.6</td></tr><tr><td>5</td><td>0.2 ±0.3</td><td>0.8 ±0.5</td><td>1.1 ±1.3</td><td>4.3 ±5.6</td></tr><tr><td>6</td><td>0.1 ±0.2</td><td>0.1±0.2</td><td>1.2 ±2.1</td><td>0.8 ±0.4</td></tr><tr><td>7</td><td>0.3 ±0.5</td><td>1.1 ±1.5</td><td>0.0 ±0.0</td><td>4.1 ±2.9</td></tr><tr><td>8</td><td>0.3 ±0.2</td><td>0.5 ±1.1</td><td>0.1±0.2</td><td>3.9 ±4.2</td></tr><tr><td>9</td><td>0.0±0.0</td><td>0.0±0.0</td><td>0.1 ±0.1</td><td>0.3 ±0.3</td></tr><tr><td>10</td><td>0.1 ±0.2</td><td>0.5 ±0.4</td><td>0.7 ±0.8</td><td>1.3 ±1.6</td></tr><tr><td>11</td><td>0.0±0.0</td><td>0.1 ±0.1</td><td>0.4±0.8</td><td>0.3 ±0.9</td></tr><tr><td>12</td><td>0.2 ±0.1</td><td>0.4±0.4</td><td>0.6 ±0.9</td><td>0.3 ±0.4</td></tr><tr><td>13</td><td>0.2 ±0.5</td><td>0.3 ±0.4</td><td>0.8 ±0.9</td><td>1.1 ±0.9</td></tr><tr><td>14</td><td>1.8 ±2.6</td><td>1.3 ±1.6</td><td>0.1 ±0.2</td><td>4.7 ±5.2</td></tr><tr><td>15</td><td>2.1 ±3.4</td><td>1.6 ±2.8</td><td>0.3 ±0.5</td><td>10.3 ±8.6</td></tr><tr><td>16</td><td>1.9 ±2.2</td><td>0.9 ±1.3</td><td>9.1 ±8.1</td><td>34.1 ±22.8</td></tr><tr><td>17</td><td>1.6 ±0.8</td><td>1.4 ±3.4</td><td>43.7 ±18.6</td><td>51.1 ±12.9</td></tr><tr><td>18</td><td>0.3 ±0.4</td><td>0.7 ±1.4</td><td>2.3 ±3.6</td><td>12.8 ±9.0</td></tr><tr><td>19</td><td>3.4 ±4.0</td><td>6.1 ±7.3</td><td>50.2 ±8.4</td><td>73.1 ±23.9</td></tr><tr><td>20</td><td>0.0±0.0</td><td>0.0±0.0</td><td>3.2 ±2.5</td><td>2.6 ±2.8</td></tr><tr><td>avg</td><td>0.73 ±0.89</td><td>1.12 ±1.62</td><td>6.34 ±3.32</td><td>11.21 ±6.65</td></tr></table>",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
276,
|
| 1510 |
+
534,
|
| 1511 |
+
725,
|
| 1512 |
+
897
|
| 1513 |
+
],
|
| 1514 |
+
"page_idx": 16
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"type": "text",
|
| 1518 |
+
"text": "APPENDIX F BABI ATTENTION VISUALIZATION ",
|
| 1519 |
+
"text_level": 1,
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
174,
|
| 1522 |
+
102,
|
| 1523 |
+
583,
|
| 1524 |
+
118
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 17
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "text",
|
| 1530 |
+
"text": "We present a visualization of the attention distributions on bAbI tasks for a couple of examples. The visualization of attention weights is over different time steps based on different heads over all the facts in the story and a question. Different color bars on the left side indicate attention weights based on different heads (4 heads in total). ",
|
| 1531 |
+
"bbox": [
|
| 1532 |
+
173,
|
| 1533 |
+
132,
|
| 1534 |
+
825,
|
| 1535 |
+
170
|
| 1536 |
+
],
|
| 1537 |
+
"page_idx": 17
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "image",
|
| 1541 |
+
"img_path": "images/f3a8b180baa16b5f9ca5ac95879283ae0e32e4a8ef49f091fa354a9fde3e930f.jpg",
|
| 1542 |
+
"image_caption": [
|
| 1543 |
+
"Figure 5: Visualization of the attention distributions, when encoding the question: “Where is Mary?”. "
|
| 1544 |
+
],
|
| 1545 |
+
"image_footnote": [],
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
176,
|
| 1548 |
+
176,
|
| 1549 |
+
821,
|
| 1550 |
+
715
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 17
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "image",
|
| 1556 |
+
"img_path": "images/633232030ca5d5b1aa8ec04cd5838358dadf985ee0d80a2f625cf4954a6e4396.jpg",
|
| 1557 |
+
"image_caption": [
|
| 1558 |
+
"Figure 6: Visualization of the attention distributions, when encoding the question: “Where is the apple?”. "
|
| 1559 |
+
],
|
| 1560 |
+
"image_footnote": [],
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
183,
|
| 1563 |
+
227,
|
| 1564 |
+
803,
|
| 1565 |
+
756
|
| 1566 |
+
],
|
| 1567 |
+
"page_idx": 18
|
| 1568 |
+
},
|
| 1569 |
+
{
|
| 1570 |
+
"type": "text",
|
| 1571 |
+
"text": "An example from tasks 2: ",
|
| 1572 |
+
"text_level": 1,
|
| 1573 |
+
"bbox": [
|
| 1574 |
+
184,
|
| 1575 |
+
125,
|
| 1576 |
+
364,
|
| 1577 |
+
136
|
| 1578 |
+
],
|
| 1579 |
+
"page_idx": 19
|
| 1580 |
+
},
|
| 1581 |
+
{
|
| 1582 |
+
"type": "text",
|
| 1583 |
+
"text": "(requiring two supportive facts to solve) ",
|
| 1584 |
+
"text_level": 1,
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
383,
|
| 1587 |
+
123,
|
| 1588 |
+
697,
|
| 1589 |
+
136
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 19
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "Story: ",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
184,
|
| 1598 |
+
145,
|
| 1599 |
+
230,
|
| 1600 |
+
155
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 19
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "John went to the hallway. \nJohn went back to the bathroom. \nJohn grabbed the milk there. \nSandra went back to the office. \nSandra journeyed to the kitchen. \nSandra got the apple there. \nSandra dropped the apple there. \nJohn dropped the milk. ",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
383,
|
| 1609 |
+
154,
|
| 1610 |
+
629,
|
| 1611 |
+
236
|
| 1612 |
+
],
|
| 1613 |
+
"page_idx": 19
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"type": "text",
|
| 1617 |
+
"text": "Question: ",
|
| 1618 |
+
"text_level": 1,
|
| 1619 |
+
"bbox": [
|
| 1620 |
+
184,
|
| 1621 |
+
244,
|
| 1622 |
+
254,
|
| 1623 |
+
256
|
| 1624 |
+
],
|
| 1625 |
+
"page_idx": 19
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "text",
|
| 1629 |
+
"text": "Model’s output: ",
|
| 1630 |
+
"bbox": [
|
| 1631 |
+
184,
|
| 1632 |
+
265,
|
| 1633 |
+
299,
|
| 1634 |
+
276
|
| 1635 |
+
],
|
| 1636 |
+
"page_idx": 19
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"type": "image",
|
| 1640 |
+
"img_path": "images/e1033d6c9551721f801f303de488b01d8481d1a4c75f090a3c4b7004f0a66c0b.jpg",
|
| 1641 |
+
"image_caption": [
|
| 1642 |
+
"Figure 7: Visualization of the attention distributions, when encoding the question: “Where is the milk?”. "
|
| 1643 |
+
],
|
| 1644 |
+
"image_footnote": [],
|
| 1645 |
+
"bbox": [
|
| 1646 |
+
220,
|
| 1647 |
+
296,
|
| 1648 |
+
779,
|
| 1649 |
+
868
|
| 1650 |
+
],
|
| 1651 |
+
"page_idx": 19
|
| 1652 |
+
},
|
| 1653 |
+
{
|
| 1654 |
+
"type": "text",
|
| 1655 |
+
"text": "Story: ",
|
| 1656 |
+
"text_level": 1,
|
| 1657 |
+
"bbox": [
|
| 1658 |
+
184,
|
| 1659 |
+
299,
|
| 1660 |
+
230,
|
| 1661 |
+
309
|
| 1662 |
+
],
|
| 1663 |
+
"page_idx": 20
|
| 1664 |
+
},
|
| 1665 |
+
{
|
| 1666 |
+
"type": "text",
|
| 1667 |
+
"text": "Mary got the milk. ",
|
| 1668 |
+
"bbox": [
|
| 1669 |
+
184,
|
| 1670 |
+
310,
|
| 1671 |
+
320,
|
| 1672 |
+
319
|
| 1673 |
+
],
|
| 1674 |
+
"page_idx": 20
|
| 1675 |
+
},
|
| 1676 |
+
{
|
| 1677 |
+
"type": "text",
|
| 1678 |
+
"text": "John moved to the bedroom. \nDaniel journeyed to the office. \nJohn grabbed the apple there. \nJohn got the football. \nJohn journeyed to the garden. \nMary left the milk. \nJohn left the football. \nDaniel moved to the garden. \nDaniel grabbed the football. \nMary moved to the hallway. \nMary went to the kitchen. \nJohn put down the apple there. \nJohn picked up the apple. \nSandra moved to the hallway. \nDaniel left the football there. \nDaniel took the football. \nJohn travelled to the kitchen. \nDaniel dropped the football. \nJohn dropped the apple. \nJohn grabbed the apple. \nJohn went to the office. \nSandra went back to the bedroom. \nSandra took the milk. \nJohn journeyed to the bathroom. \nJohn travelled to the office. \nSandra left the milk. \nMary went to the bedroom. \nMary moved to the office. \nJohn travelled to the hallway. \nSandra moved to the garden. \nMary moved to the kitchen. \nDaniel took the football. \nMary journeyed to the bedroom. \nMary grabbed the milk there. \nMary discarded the milk. \nJohn went to the garden. \nJohn discarded the apple there. ",
|
| 1679 |
+
"bbox": [
|
| 1680 |
+
383,
|
| 1681 |
+
320,
|
| 1682 |
+
629,
|
| 1683 |
+
693
|
| 1684 |
+
],
|
| 1685 |
+
"page_idx": 20
|
| 1686 |
+
},
|
| 1687 |
+
{
|
| 1688 |
+
"type": "text",
|
| 1689 |
+
"text": "Question: ",
|
| 1690 |
+
"text_level": 1,
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
184,
|
| 1693 |
+
702,
|
| 1694 |
+
253,
|
| 1695 |
+
712
|
| 1696 |
+
],
|
| 1697 |
+
"page_idx": 20
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"type": "text",
|
| 1701 |
+
"text": "Where was the apple before the bathroom? ",
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
385,
|
| 1704 |
+
712,
|
| 1705 |
+
689,
|
| 1706 |
+
722
|
| 1707 |
+
],
|
| 1708 |
+
"page_idx": 20
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "image",
|
| 1712 |
+
"img_path": "images/b072cbbf76149611a54d835b355af8121aa707b153136394fa096a079be84ab8.jpg",
|
| 1713 |
+
"image_caption": [],
|
| 1714 |
+
"image_footnote": [],
|
| 1715 |
+
"bbox": [
|
| 1716 |
+
258,
|
| 1717 |
+
108,
|
| 1718 |
+
736,
|
| 1719 |
+
920
|
| 1720 |
+
],
|
| 1721 |
+
"page_idx": 21
|
| 1722 |
+
},
|
| 1723 |
+
{
|
| 1724 |
+
"type": "image",
|
| 1725 |
+
"img_path": "images/b8ba124e3521a9107c4162d947a1456357f1f27d682af41ebbed2927c36d6c8c.jpg",
|
| 1726 |
+
"image_caption": [
|
| 1727 |
+
"Figure 7: Visualization of the attention distributions, when encoding the question: “Where was the apple before the bathroom?”. "
|
| 1728 |
+
],
|
| 1729 |
+
"image_footnote": [],
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
261,
|
| 1732 |
+
102,
|
| 1733 |
+
735,
|
| 1734 |
+
900
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 22
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "text",
|
| 1740 |
+
"text": "(h) Step 4 ",
|
| 1741 |
+
"bbox": [
|
| 1742 |
+
468,
|
| 1743 |
+
893,
|
| 1744 |
+
527,
|
| 1745 |
+
906
|
| 1746 |
+
],
|
| 1747 |
+
"page_idx": 22
|
| 1748 |
+
}
|
| 1749 |
+
]
|
parse/train/HyzdRiR9Y7/HyzdRiR9Y7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyzdRiR9Y7/HyzdRiR9Y7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/J64lDCrYGi/J64lDCrYGi.md
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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transformer: A One-step Approach to Multi-task Visual Grounding
|
| 2 |
+
|
| 3 |
+
Muchen Li1,2 muchenli@cs.ubc.ca
|
| 4 |
+
|
| 5 |
+
Leonid Sigal1,2,3,4 lsigal@cs.ubc.ca
|
| 6 |
+
|
| 7 |
+
1Department of Computer Science, University of British Columbia
|
| 8 |
+
2Vector Institute for AI 3CIFAR AI Chair 4NSERC CRC Chair
|
| 9 |
+
|
| 10 |
+
# Abstract
|
| 11 |
+
|
| 12 |
+
As an important step towards visual reasoning, visual grounding (e.g., phrase localization, referring expression comprehension / segmentation) has been widely explored. Previous approaches to referring expression comprehension (REC) or segmentation (RES) either suffer from limited performance, due to a two-stage setup, or require the designing of complex task-specific one-stage architectures. In this paper, we propose a simple one-stage multi-task framework for visual grounding tasks. Specifically, we leverage a transformer architecture, where two modalities are fused in a visual-lingual encoder. In the decoder, the model learns to generate contextualized lingual queries which are then decoded and used to directly regress the bounding box and produce a segmentation mask for the corresponding referred regions. With this simple but highly contextualized model, we outperform state-of-the-art methods by a large margin on both REC and RES tasks. We also show that a simple pre-training schedule (on an external dataset) further improves the performance. Extensive experiments and ablations illustrate that our model benefits greatly from contextualized information and multi-task training.
|
| 13 |
+
|
| 14 |
+
# 1 Introduction
|
| 15 |
+
|
| 16 |
+
Multi-modal grounding1 tasks (e.g., phrase localization [1, 3, 9, 41, 48], referring expression comprehension [17, 19, 24, 26, 29, 30, 37, 51, 52, 55, 56] and segmentation [6, 18, 20, 21, 29, 38, 53, 56]) aim to generalize traditional object detection and segmentation to localization of regions (rectangular or at a pixel level) in images that correspond to free-form linguistic expressions. These tasks have emerged as core problems in vision and ML due to the breadth of applications that can make use of such techniques, spanning image captioning, visual question answering, visual reasoning and others.
|
| 17 |
+
|
| 18 |
+
The majority of multi-modal grounding architectures, to date, take the form of two-stage approaches, inspired by Faster RCNN [44] and others, which first generate a set of image region proposals and then associate/ground one, or more, of these regions to a phrase by considering how well the content matches the query phrase. Context among the regions and multiple query phrases, which often come parsed from a single sentence, has also been considered in various ways (e.g., using LSTM stacks [9], graph neural networks [1] and others). More recent variants leverage pre-trained multi-modal Transformers (e.g., ViLBERT [33, 34]) to fine-tune to the grounding tasks. Such models have an added benefit of being able to learn sophisticated cross-modal feature representations from external large-scale data, which further improve the performance. However, a significant limitation of all such two-stage methods is their inability to condition the proposal mechanism on the query phrase itself, which inherently limits the upper bound of performance (see Table 3 in [51]).
|
| 19 |
+
|
| 20 |
+
To address these limitations, more recently, a number of one-stage approaches have been introduced [22, 36, 51, 52]. Most of these take inspiration from Yolo [43] and the variants, and rely on more integrated visual-linguistic fusion and a dense anchoring mechanism to directly predict the grounding regions. While this alleviates the need for a proposal stage, it instead requires somewhat ad hoc anchor definitions, often obtained by clustering of labeled regions, and also limits ability to contextualize grounding decisions as each query phrase is effectively processed independently. Finally, little attention in the literature has been given to leveraging relationship among the REC and RES tasks.
|
| 21 |
+
|
| 22 |
+
In this work we propose an end-to-end one-stage architecture, inspired by the recent DETR [2] detection framework, which is capable of simultaneous language grounding at both a boundingbox and segmentation level, without requiring dense anchor definitions. This model also enables contextualized reasoning by taking into account the entire image, all referring query phrases of interest and (optionally) lingual context (e.g., a sentence from which referring phrases are parsed). Specifically, we leverage a transfomer architecture, with a visual-lingual encoder, to encode image and lingual context, and a two-headed (detection and segmentation) custom contextualized tranformer decoder. The contextualized decoder takes as input learned contextualized phrase queries and decodes them directly to bounding boxes and segmentation masks. Implicit 1-to-1 correspondence between input referring phrases and resulting outputs also enables a more direct formulation of the loss without requiring Hungarian matching. With this simple model we outperform state-of-the-art methods by a large margin on both REC and RES tasks. We also show that a simple pre-training schedule (on an external dataset) further improves the performance. Extensive experiments and ablations illustrate that our model benefit greatly from the contextualized information and the multi-task training.
|
| 23 |
+
|
| 24 |
+
Contributions. Our contributions are: (1) We propose a simple and general one-stage transformerbased architecture for referring expression comprehension and segmentation. The core of this model is the novel transformer decoder that leverages contextualized phrase queries and is able to directly decode those, subject to contextualized image embeddings, into corresponding image regions and segments; (2) Our approach is unique in enabling simultaneous REC and RES using a single trained model (the only other method capable of this is [36]); showing that such multi-task learning leads to improvements on both tasks; (3) As with other transformer-based architectures, we show that pre-training can further improve the performance and both vanila and pre-trained models outperform state-of-the-art on both tasks by significant margins (up to $8 . 5 \%$ on RefCOCO dataset for REC and $1 9 . 4 \%$ for RES). We also thoroughly validate our design in detailed ablations.
|
| 25 |
+
|
| 26 |
+
# 2 Related works
|
| 27 |
+
|
| 28 |
+
Referring Expression Comprehension (REC). REC focuses on producing an image bounding box tightly encompassing a language query. Previous two-staged works [17, 19, 29, 30, 56] reformulate this as a ranking task with a set of candidate regions predicted from a pre-trained proposal mechanism. Despite achieving great success, the performance of two-staged methods is capped by the speed and accuracy of region proposals in the first stage. More recently, one-stage approaches [26, 51, 52] have been used to alleviate the aforementioned limitations. Yang et al. [51, 52] proposed to fuse query information with visual features and pick the bounding box with maximum activation scores from YOLOv3 [43]. Yang et al. [50] explore language structure guided propagation in the context of one stage grounding. Liao et al. [26] utilizes CenterNet [11] to perform correlation filtering for region center localization. However, such methods either require manually tuned anchor boxes or suffer from semantic loss due to modality misalignment. In contrast, our model learns to better align modalities using a cross-modal transformer and directly decode bounding boxes for each query.
|
| 29 |
+
|
| 30 |
+
Referring Expression Segmentation (RES). Similar to REC, RES, proposed in [18], aims to predict segmentation masks to better describe the shape of the referred region. A typical solution for referring expression segmentation is to fuse multi-modal information with a segmentation network (e.g., [16, 31]) and train it to output the segmented masks [18, 29, 38, 53, 56]. More recent approaches focus on designing module to enable better multi-modal interactions, e.g., progressive multi-scale fusion used in [21] and cross-modal attention block used in [20]. Since localization information matters in predicting instance segmentations (as noted in Mask RCNN [16]), very recent work [22] aims to explicitly localize object before doing segmentation. Despite the relatively high performance being achieved in RES, existing approaches still struggle to determine the correct referent region and tend to output noisy segmentation results with an irregular shape, while our model is able to produce segmentations with fine-grained shapes even on challenging scenarios with occlusions or shadows.
|
| 31 |
+
|
| 32 |
+
Multi-task Learning for REC and RES. Multi-task learning is widely applied in object detection and segmentation [2, 16], often, by leveraging shared backbone and task-specific heads. Building on this idea, Luo et al. [36] proposed a multi-task collaborative network (MCN) to jointly address REC and RES. They introduce consistency energy maximization loss that constrains the feature activation map in REC and RES to be similar. While our model is also set up to learn REC and RES tasks jointly, we argue that an explicit constraint tends to downplay the quality of the final predicted mask since the feature map from the REC branch can blur out fine-grained region shape information needed by the RES branch (see Figure 2). Hence, we use an implicit constraint where tasks head of REC and RES are trained to output corresponding bounding box and mask from the same joint multi-modal representation. We illustrate that our model can benefit from multi-task supervision, leading to more accurate results as compared to single-task variants.
|
| 33 |
+
|
| 34 |
+
Pretrained Multi-modal Transformers. Transformer-based pretrained models [5, 12, 33, 47, 54] have recently showed strong potential in multi-modal understanding. LXMERT [47] and ViLBERT [33] use two stream transformers with cross-attention transformer layers on top for multimodal fusion. More recent works, [5, 12] advocate a single-stream design to fuse two modalities earlier. The success of the aforementioned models can largely be attributed to the cross-modal representations obtained by multi-task pretraining on a large amount of aligned image-text pairs. Despite state-of-the-art performance of such models on the downstream REC task, these models, fundamentally, are still a form of a two-stage pipeline where image features are extracted using pretrained detectors or proposal mechanisms. We focus on a one-stage architecture variant that allows visual and lingual features to be aligned at the early stages. Although the focus of our work is not to design a better pretraining scheme, we show that our model can outperform the existing state-of-the-art with proper pretraining.
|
| 35 |
+
|
| 36 |
+
Transformer-based Detectors. More recently, DETR [2] and its variants [13, 58], were proposed to enable end-to-end object detection. DETR reformulates detection as a set prediction tasks and uses transformers to decode learnable queries to bounding boxes. Despite state-of-art performance, DETR is disadvantaged by its optimization difficulty and, usually, extra-long training time. While adopting a similar pipeline, our model focus on aligning different modalities to generate contextualized expression-specific referring queries. We also design our model to get rid of Hungarian matching loss by leveraging one-to-one correspondences between predicted bounding boxes and referring expressions, which leads to faster convergence for our model.
|
| 37 |
+
|
| 38 |
+
# 3 Approach
|
| 39 |
+
|
| 40 |
+
Given an image $\mathcal { T }$ and a set of query phrases $\mathcal { Q } _ { p } = \{ \mathbf { p } _ { i } \} _ { i = 1 , \dots , M }$ , that we assume to come from an (optional) contextual text source2 $\mathcal { Q }$ , our goal is to predict a set of bounding boxes $B = \{ \mathbf { b } _ { i } \} _ { i = 1 , \dots , M }$ and corresponding segmentation masks ${ \cal S } = \{ { \bf s } _ { i } \} _ { i = 1 , \dots , M }$ , one for each query phrase $i$ that localizes that phrase in the image. Note, $M$ is the number of phrases / referring expressions for a given image $\mathcal { T }$ and is typically between 1 and 16 for the Flick $3 0 \mathrm { k }$ [41] dataset.
|
| 41 |
+
|
| 42 |
+
As shown in Figure 1, our referring transformer is composed of four components. Given an image(con)text pair, $< { \mathcal { T } } , { \mathcal { Q } } >$ , a cross-modal encoder generates joint image-text embeddings for each visual and textual token – feature columns and word embeddings respectively. Query phrases $\mathcal { Q } _ { p }$ and image-text embeddings are then fed into a query encoder which produces query phrase embeddings. The decoder jointly reasons across all these query phrase embeddings and decodes multi-task feature, which is then sent to the detection and segmentation head to produce a set of boxes $\boldsymbol { B }$ and masks $s$ The result is a one-staged end-to-end model that solves the REC and RES tasks at the same time. We will now introduce constituent architectural components for the four stages briefly described above.
|
| 43 |
+
|
| 44 |
+
# 3.1 Feature Extraction
|
| 45 |
+
|
| 46 |
+
Visual & Text Backbone. Starting from an initial image $\mathcal { T } \in \mathbb { R } ^ { 3 \times H _ { 0 } \times W _ { 0 } }$ , we adopt the widely used ResNet [15] to generate its low-resolution feature map $\mathbf { f } _ { I } \in \mathbb { R } ^ { C _ { i } \times H W }$ . For the corresponding expression or sentence, we use the uncased base of BERT [8] to obtain the representation $\mathbf { f } _ { Q } \in$ $\mathbb { R } ^ { C _ { t } \times N }$ , while $N$ is the length of the input context sentence.
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
Figure 1: Referring Transformer. An overview of the proposed architecture is shown in (a). For an image and (con)text input, a visual-lingual encoder is used to refine image features, extracted from a convolutional backbone, and lingual features, extracted by a BERT. A query encoder and decoder produce features for REC and RES heads, given multi-modal features and query phrases. The detailed structure of the query encoder and decoder is shown in (b). Colored squares denote embeddings for corresponding query phrases.
|
| 50 |
+
|
| 51 |
+
Visual-Lingual Encoder. The visual-lingual encoder is designed to fuse information from multimodal sources. For cross-modality encoding, we use a transformer encoder based model, which is composed of 6 transformer encoder layers. Specifically, given both image and text features, multi-layer perceptrons are applied first to project different modalities to a joint embedding space with a hidden dimension of $C$ . To provide transformer encoders with positional information, we follow [2, 8] to add cosine positional embedding $P _ { i m g }$ for image features and learnable positional embedding $P _ { t e x t }$ for text features. We then concatenate the projected features into a single sequence $\mathbf { f } ~ \in ~ \mathbb { R } ^ { C \times ( H W + N ) }$ . To distinguish between modalities, we also deign a learnable modal label embedding $E _ { l a b e l } : \{ E _ { i m g } , E _ { t e x t } ^ { - } \}$ which is added to the original sequences. The visual-lingual encoder then takes a sequence as input, and $\{ P _ { i m g } , P _ { t e x t } , E _ { l a b e l } \}$ are fed into each encoder layer. The encoder output is a multi-modal feature sequence $\mathbf { f } _ { v l } \in \mathbb { R } ^ { C \times ( H W + N ) }$ .
|
| 52 |
+
|
| 53 |
+
# 3.2 Query Encoder and Decoder
|
| 54 |
+
|
| 55 |
+
The query encoder and decoder aims to encode / decode query phrases, conditioned on visual-lingual features from the encoder, into an output bounding box and segmentation. In this stage, we first generate embeddings corresponding to each query phrase. These query phrase embeddings are then fed into the decoder together with the visual-lingual features from the encoder to generate outputs.
|
| 56 |
+
|
| 57 |
+
Encoding Query Phrases. To enable the decoder to generate the desired output (bounding box and/or segmentation) the queries must encode several bits of crucial information. Mainly, (1) encoding of the query phrases, (2) image encoding and (3) phrase-specific optional (con)text information. For phrase encoding in (1) we use a BERT model with pooling heads which share weights with (con)text encoder; this results in the phrase feature vector $\mathbf { f _ { p } } _ { i } \in \mathbb { R } ^ { C }$ for the $i$ -th referring phrase. We note that because we use visual-lingual encoder, (2) and (3) are jointly encoded in multi-modal features $\mathbf { f } _ { v l }$ described in Section 3.1 above. However, $\mathbf { f } _ { v l }$ is phrase-agnostic encoding of the image and (con)text. To generate phrase-specific context, given a phrase $\mathbf { p } _ { i }$ , average pooling is used to extract the phrase-specific context information $\mathbf { f } _ { c } ( \mathbf { p } _ { i } )$ from the visual-lingual feature sequence as follows:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\mathbf { f } _ { c } ( \mathbf { p } _ { i } ) = \frac { \sum \mathbf { f } _ { v l } [ l _ { \mathbf { p } _ { i } } : r _ { \mathbf { p } _ { i } } ] } { r _ { \mathbf { p } _ { i } } - l _ { \mathbf { p } _ { i } } }
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where $l _ { \mathbf { p } _ { i } }$ and $r _ { \mathbf { p } _ { i } }$ denotes the left and right bounds of phrase $\mathbf { p } _ { i }$ in the original (con)text sentence. Finally, given phrase encoding $\mathbf { f _ { p } } _ { i }$ and phrase-specific context $\mathbf { f } _ { c } ( \mathbf { p } _ { i } )$ we construct our phrase queries
|
| 64 |
+
|
| 65 |
+
using a multi-later perceptron:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\widehat { Q _ { { \bf p } i } } = \mathtt { M L P } \left( [ { \bf f } _ { c } ( { \bf p } _ { i } ) ; { \bf f _ { p } } _ { i } ] \right) + E _ { p } ,
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $E _ { p } \in \mathbb { R } ^ { C }$ is a learnable embedding which serves as a bias to the formed query.
|
| 72 |
+
|
| 73 |
+
Decoding. In the decoder, self attention layers are used to enable information flow in a dense connected graph of phrase queries. This allows phrase queries to contextualize and refine each other; the inspiration for this step is taken from [1]. After that, a cross attention layer decodes visual-lingual information given the updated phrase query and feature sequence from the encoder. The design of our decoder is similar to the transformer decoder, except attention is non-causal.
|
| 74 |
+
|
| 75 |
+
# 3.3 Multi-task training
|
| 76 |
+
|
| 77 |
+
In this section, we demonstrate how the decoded phrase-specific query features can be naturally used to train multiple heads for different referring tasks (regression for REC and segmentation for RES).
|
| 78 |
+
|
| 79 |
+
Referring Comprehension/Detection (REC). For referring detection tasks, the final output is computed by a simple two-layer perceptron over the decoded phrase-specific query features. We let the detection head directly output center coordinates $\tilde { \mathbf { b } } = ( x , y , h , w )$ for the referred image. To supervise the training, we use a weighted sum of an L1 loss and a Generalized IOU loss [45]:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\begin{array} { r } { \mathcal { L } _ { d e t } = \lambda _ { i o u } \mathcal { L } _ { i o u } ( \mathbf { b } , \tilde { \mathbf { b } } ) + \lambda _ { L 1 } | | \mathbf { b } - \tilde { \mathbf { b } } | | _ { 1 } . } \end{array}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
The $\lambda _ { i o u }$ and $\lambda _ { L 1 }$ control the relative weighting of the two losses in the REC objective.
|
| 86 |
+
|
| 87 |
+
Referring Segmentation (RES). Following previous work [2], we design an FPN-like architecture to predict a referring segmentation mask for each phrase expression. Attention masks from the decoder and image features from the visual-lingual encoder are concatenated as the FPN input, while features from different stages of image backbones are used as skip connections to refine the final output. The last linear layer project the upsampled feature to a single channel heatmap and a sigmoid function is used to map the feature to mask scores $\tilde { \mathbf { s } } \in \mathbb { R } ^ { H _ { 0 } / 4 \times W _ { 0 } / 4 }$ . The loss for training RES task is:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\begin{array} { r } { \mathcal { L } _ { s e g } = \lambda _ { f o c a l } \mathcal { L } _ { f o c a l } ( \mathbf { s } , \tilde { \mathbf { s } } ) + \lambda _ { d i c e } \mathcal { L } _ { d i c e } ( \mathbf { s } , \tilde { \mathbf { s } } ) . } \end{array}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Here $\mathcal { L } _ { f o c a l }$ is the focal loss for classifying pixels used in [28], $\mathcal { L } _ { d i c e }$ is the DICE/F-1 loss proposed in [39]; $\lambda _ { f o c a l }$ and $\lambda _ { d i c e }$ are hyper-parameters controlling the relative importance of the two losses.
|
| 94 |
+
|
| 95 |
+
Joint Training. While it is possible to train referring segmentation and referring detection tasks separately, we find that joint training is highly beneficial. Therefore the combined training loss which we optimize is $\mathcal { L } = \mathcal { L } _ { s e g } + \mathcal { L } _ { d e t }$ .
|
| 96 |
+
|
| 97 |
+
Pretraining the Transformer. Transformers are generally data hungry and requires a lot of data to train [5, 33]. Although in this paper we do not use a large pretraining model and a lot of data. We found that simple pretraining strategy on the region description splits of Visual-Genome dataset [25] makes our model achieve comparable and even better performance against some of state-of-the-art pretrained models. Interestingly, we found that although there is no ground truth segmentation provided in Visual-Genome, the RES task can still benefit greatly from pretrained models, likely due to the fine-tuned multi-task representation.
|
| 98 |
+
|
| 99 |
+
# 4 Experiments
|
| 100 |
+
|
| 101 |
+
# 4.1 Datasets
|
| 102 |
+
|
| 103 |
+
RefCOCO/RefCOCO $^ +$ /RefCOCOg (REC&RES). RefCOCO, RefCOCO $^ +$ [55] and RefCOCOg [40] are collections of images and referred objects from MSCOCO [27]. On RefCOCO and Ref$\mathrm { C O C O + }$ we follow the split used in [55] and report scores on the validation, testA and testB splits. On RefCOCOg, we use the RefCOCO-umd splits proposed in [40].
|
| 104 |
+
|
| 105 |
+
Flickr30k Entities (REC). Flickr30k Entities [41] contains 31,783 images and $1 5 8 \mathrm { k }$ caption sentences with 427k annotated phrase. We use splits from [41, 42]. Bounding boxes and phrase annotations are consistent with the previous one-stage approaches [51, 52] for fair comparisons.
|
| 106 |
+
|
| 107 |
+
ReferIt (REC). The ReferItGame dataset [24] contains 20,000 images. We follow setup in [3] for splitting train, validation and test set; resulting in 54k, 6k and 6k referring expressions respectively.
|
| 108 |
+
|
| 109 |
+
Table 1: Comparison on REC task. Performance on RefCOCO/RefCOCO+/RefCOCOg datasets [55] is reported. Ours∗ denotes that pretraining is used. RN50 and RN101 refer to ResNet50 and ResNet101 [15] respectively; DN53 refers to DarkNet53 [43] backbone.
|
| 110 |
+
|
| 111 |
+
<table><tr><td rowspan="2">Models</td><td rowspan="2">Visual Features</td><td rowspan="2">Pretrain Images</td><td rowspan="2">Multi- task</td><td colspan="3">RefCOCO</td><td colspan="3">RefCOCO+</td><td rowspan="2">RefCOCOg</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB val-u</td></tr><tr><td>Two-stage:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>test-u</td></tr><tr><td>CMN[19]</td><td>VGG16</td><td>None</td><td>×</td><td>-</td><td>71.03</td><td>65.77</td><td>-</td><td>54.32</td><td>47.76</td><td>-</td><td>-</td></tr><tr><td>RvG-Tree [17]</td><td>RN101</td><td>None</td><td>×</td><td>75.06</td><td>78.61</td><td>69.85</td><td>63.51</td><td>67.45</td><td>56.66</td><td>66.95</td><td>66.51</td></tr><tr><td>CM-Att-Erase [30]</td><td>RN101</td><td>None</td><td>×</td><td>78.35</td><td>83.14</td><td>71.32</td><td>68.09</td><td>73.65</td><td>58.03</td><td>67.99</td><td>68.67</td></tr><tr><td>MAttNet [56]</td><td>RN101</td><td>None</td><td>√</td><td>76.65</td><td>81.14</td><td>69.99</td><td>65.33</td><td>71.62</td><td>56.02</td><td>66.58</td><td>67.27</td></tr><tr><td>NMTree [29]</td><td>RN101</td><td>None</td><td>√</td><td>76.41</td><td>81.21</td><td>70.09</td><td>66.46</td><td>72.02</td><td>57.52</td><td>65.87</td><td>66.44</td></tr><tr><td>One-stage:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>RCCF[26]</td><td>DLA34</td><td>None</td><td>×</td><td>-</td><td>81.06</td><td>71.85</td><td>-</td><td>70.35</td><td>56.32</td><td>-</td><td>65.73</td></tr><tr><td>SSG [4]</td><td>DN53</td><td>None</td><td>×</td><td>=</td><td>76.51</td><td>67.50</td><td>-</td><td>62.14</td><td>49.27</td><td>58.80</td><td>-</td></tr><tr><td>FAOA [51]</td><td>DN53</td><td>None</td><td>×</td><td>72.54</td><td>74.35</td><td>68.50</td><td>56.81</td><td>60.23</td><td>49.60</td><td>61.33</td><td>60.36</td></tr><tr><td>ReSC-Large [52]</td><td>DN53</td><td>None</td><td>×</td><td>77.63</td><td>80.45</td><td>72.30</td><td>63.59</td><td>68.36</td><td>56.81</td><td>67.30</td><td>67.20</td></tr><tr><td>MCN[36]</td><td>DN53</td><td>None</td><td>√</td><td>80.08</td><td>82.29</td><td>74.98</td><td>67.16</td><td>72.86</td><td>57.31</td><td>66.46</td><td>66.01</td></tr><tr><td>Ours</td><td>RN50</td><td>None</td><td>√</td><td>81.82</td><td>85.33</td><td>76.31</td><td>71.13</td><td>75.58</td><td>61.91</td><td>69.32</td><td>69.10</td></tr><tr><td>Ours</td><td>RN101</td><td>None</td><td>√</td><td>82.23</td><td>85.59</td><td>76.57</td><td>71.58</td><td>75.96</td><td>62.16</td><td>69.41</td><td>69.40</td></tr><tr><td>Pretrained:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>VilBERT[33]</td><td>RN101</td><td>3.3M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>RN101</td><td></td><td>×</td><td>-</td><td>=</td><td>-</td><td>72.34</td><td>78.52</td><td>62.61</td><td>1</td><td>-</td></tr><tr><td>ERNIE-ViL_L[54]</td><td>RN101</td><td>4.3M 4.6M</td><td>×</td><td>=</td><td></td><td></td><td>75.89</td><td>82.37</td><td>66.91</td><td></td><td></td></tr><tr><td>UNTIER_L[5]</td><td>RN101</td><td>4.6M</td><td>×</td><td>81.41</td><td>87.04</td><td>74.17</td><td>75.90</td><td>81.45</td><td>66.70</td><td>74.86</td><td>75.77</td></tr><tr><td>VILLA_L[12]</td><td>RN50</td><td></td><td>×</td><td>82.39</td><td>87.48</td><td>74.84</td><td>76.17</td><td>81.54</td><td>66.84</td><td>76.18</td><td>76.71</td></tr><tr><td>Ours*</td><td></td><td>100k</td><td>√</td><td>85.43</td><td>87.48</td><td>79.86</td><td>76.40</td><td>81.35</td><td>66.59</td><td>78.43</td><td>77.86</td></tr><tr><td>Ours*</td><td>RN101</td><td>100k</td><td>√</td><td>85.65</td><td>88.73</td><td>81.16</td><td>77.55</td><td>82.26</td><td>68.99</td><td>79.25</td><td>80.01</td></tr></table>
|
| 112 |
+
|
| 113 |
+
# 4.2 Implementing Details
|
| 114 |
+
|
| 115 |
+
We train our model with AdamW [32]. The initial learning rate is set to 1e-4 while the learning rate of image backbone and context encoder is set to 1e-5. We initialized weights in the transformer encoder and decoder with Xavier initialization [14]. For image backbone, we experiment with the popular ResNet-50 and ResNet-101 networks [15] where weights are initialized from corresponding ImageNet-pretrained models. For the context encoder and phrase encoder, we use an uncased version of BERT model [8] with weights initialized from pretrained checkpoints provided by HuggingFace [49]. For data augmentation, we scale images such that the longest side is 640 pixels and follow [51] to do random intensity saturation and affine transforms. We remove the random horizontal flip augmentation used in previous work [51] since we notice it causes semantic ambiguity on RefCOCO, likely due to relative location (e.g., left of/right of) specific queries in the dataset.
|
| 116 |
+
|
| 117 |
+
On Flickr30k dataset, we set the maxium length of context sentence to 90 and maximum number of referring phrases to 16. On the ReferIt and the RefCOCO dataset, only phrase expressions are provided and the task aims to predict a single bounding box for each of the expressions. In those cases, the context sentence is taken as the referring phrase expression itself. We set the maximum length of context sentence on these two datasets to 40. To fairly compare with pretrained methods, we use region description split in the VisualGenome [25] to pretrain our model. The dataset contains approximately $1 0 0 \mathrm { k }$ images and we remove the images that appear in Flickr30k Entities and RefCOCO/RefCOCOg/RefCOCO+’s validation and test set to avoid potential test data leak. For all the pretrained methods, we train the model on pretraining dataset for 6 epoches. We find that longer pretraining schedule gives better performance, but since the focus of this paper is not on pretraining methods, we stick to shorter pretraining schedules to save computational resources. All experiments are conducted using 4 Nvidia 2080TI GPU with batch size as 32. For all the results given, we run experiments several times with random seeds and the error bars are within $\pm 0 . 5 \%$ .
|
| 118 |
+
|
| 119 |
+
# 4.3 Quantitative Analysis
|
| 120 |
+
|
| 121 |
+
Evaluation Metrics. For referring expression comprehension (REC), consistent with prior works, we use precision as the evaluation metric. We mark a referring detection as correct when the intersection-over-union (IoU) between the predicted bounding box and ground truth is larger than 0.5. For referring expression segmentation (RES), we reported the Mean IoU (MIoU) between the predicted segmentation mask and ground truth mask.
|
| 122 |
+
|
| 123 |
+
REC and RES on RefCOCO/RefCOCO $+$ /RefCOCOg. Our model addresses REC and RES tasks jointly. We compare their respective performances with the state-of-the-art in Table 1 and 2.
|
| 124 |
+
|
| 125 |
+
Table 2: Comparison on RES tasks. Performance on RefCOCO/RefCOCO $+$ /RefCOCOg datasets [55] is reported. Ours∗ denotes that pretraining is used. RN50 abd RN101 refer to ResNet50 and ResNet101 [15] respectively; DN53 refers to DarkNet53 [43] backbone.
|
| 126 |
+
|
| 127 |
+
<table><tr><td rowspan="2">Methods</td><td rowspan="2">Backbone</td><td colspan="3">RefCOCO</td><td colspan="3">RefCOCO+</td><td colspan="2">RefCOCOg</td><td rowspan="2">Inference time(ms)</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>DMN [38]</td><td>RN101</td><td>49.78</td><td>54.83</td><td>45.13</td><td>38.88</td><td>44.22</td><td>32.29</td><td>-</td><td>-</td><td>-</td></tr><tr><td>MAttNet [56]</td><td>RN101</td><td>56.51</td><td>62.37</td><td>51.70</td><td>46.67</td><td>52.39</td><td>40.08</td><td>47.64</td><td>48.61</td><td>378</td></tr><tr><td>NMTree [29]</td><td>RN101</td><td>56.59</td><td>63.02</td><td>52.06</td><td>47.40</td><td>53.01</td><td>41.56</td><td>46.59</td><td>47.88</td><td>1</td></tr><tr><td>Lang2seg [6]</td><td>RN101</td><td>58.90</td><td>61.77</td><td>53.81</td><td>-</td><td>-</td><td>-</td><td>46.37</td><td>46.95</td><td></td></tr><tr><td>BCAM[20]</td><td>RN101</td><td>61.35</td><td>63.37</td><td>59.57</td><td>48.57</td><td>52.87</td><td>42.13</td><td>-</td><td>=</td><td></td></tr><tr><td>CMPC[21]</td><td>RN101</td><td>61.36</td><td>64.53</td><td>59.64</td><td>49.56</td><td>53.44</td><td>43.23</td><td>=</td><td>=</td><td>=</td></tr><tr><td>MCN+ASNLS [36]</td><td>DN53</td><td>62.44</td><td>64.20</td><td>59.71</td><td>50.62</td><td>54.99</td><td>44.69</td><td>49.22</td><td>49.40</td><td>56</td></tr><tr><td>CGAN [35]</td><td>DN53</td><td>64.86</td><td>68.04</td><td>62.07</td><td>51.03</td><td>55.51</td><td>44.06</td><td>51.01</td><td>51.69</td><td>-</td></tr><tr><td>LTS [22]</td><td>DN53</td><td>65.43</td><td>67.76</td><td>63.08</td><td>54.21</td><td>58.32</td><td>48.02</td><td>54.40</td><td>54.25</td><td>1</td></tr><tr><td>Ours</td><td>RN50</td><td>69.94</td><td>72.80</td><td>66.13</td><td>60.9</td><td>65.20</td><td>53.45</td><td>57.69</td><td>58.37</td><td>38</td></tr><tr><td>Ours</td><td>RN101</td><td>70.56</td><td>73.49</td><td>66.57</td><td>61.08</td><td>64.69</td><td>52.73</td><td>58.73</td><td>58.51</td><td>41</td></tr><tr><td>Ours*</td><td>RN50</td><td>73.61</td><td>75.22</td><td>69.80</td><td>65.30</td><td>69.69</td><td>56.98</td><td>65.70</td><td>65.41</td><td>38</td></tr><tr><td>Ours*</td><td>RN101</td><td>74.34</td><td>76.77</td><td>70.87</td><td>66.75</td><td>70.58</td><td>59.40</td><td>66.63</td><td>67.39</td><td>41</td></tr></table>
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 2: Qualitative Evaluation. In (a) comparison to MCN [36] on REC is shown; orange, blue and red bounding boxes correspond to outputs from MCN, our model and the ground truth. In (b) similar comparison on RES is made. The attention map is drawn from the last layer of the decoder. We add mosaic to all human face to protect personal information.
|
| 131 |
+
|
| 132 |
+
In Table 1, the model is first compared with previous one-stage and two-stage approaches for REC. Without bells and whistles, we observe a consistent performance boost of $+ 2 . 7 \% / + 4 \% / + 2 . 1 \%$ on RefCOCO, $+ 6 . 6 \% / + 4 . 3 \% / + 8 . 5 \%$ on $\operatorname { R e f C O C O + }$ and $+ 4 . 4 \% / + 5 . 1 \%$ on RefCOCOg. To compare with pretrained BERT methods, we use the pretraining strategy discussed in Section 3.3. As results show, our model achieves comprehensive advantage and shows distinct improvement on some splits, even compared to advance BERT models that use $4 0 \times$ more data in pretraining. Table 2 illustrates results on RES task in terms of MIoU score. It can be seen that our model achieves the best performance; substantially better than the state-of-art. We further observe that pretraining on the REC task gives a huge performance boost to the RES task, even when no segmentation mask is used in pre-training. Multi-task training enables the model to leverage performance boost in one task to improve the other.
|
| 133 |
+
|
| 134 |
+
We show the inference time for our model in Table 2. Our model can directly decode all query phrases in an image in parallel, allowing it to reach real-time performance. Importantly, note the corresponding scores for our model in Table 1 and Table 2 are based on the output of a single multitask model that predicts referring detection box and segmentation mask simultaneously. The only related work that shares this property is the MCN [36], which has substantially inferior performance.
|
| 135 |
+
|
| 136 |
+
Table 3: Comparison with State-of-The-Art Methods. Table illustrates performance on the test set of ReferItGame [24] and Flickr30K Entities [41] datasets in terms of top-1 accuracy $( \% )$ .
|
| 137 |
+
|
| 138 |
+
<table><tr><td>Models</td><td>Backbone</td><td>ReferItGame test</td><td>Flickr30K test</td><td>Inference time on Flickr30k(ms)</td></tr><tr><td colspan="5">Two-stage</td></tr><tr><td>MAttNet [56]</td><td>RN101</td><td>29.04</td><td>-</td><td>320</td></tr><tr><td>Similarity Net [48]</td><td>RN101</td><td>34.54</td><td>60.89</td><td>184</td></tr><tr><td>CITE [42]</td><td>RN101</td><td>35.07</td><td>61.33</td><td>196</td></tr><tr><td>DDPN[57]</td><td>RN101</td><td>63.00</td><td>73.30</td><td>-</td></tr><tr><td colspan="5">One-stage</td></tr><tr><td>SSG[4]</td><td>DN53</td><td>54.24</td><td>-</td><td>25</td></tr><tr><td>ZSGNet [46]</td><td>RN50</td><td>58.63</td><td>58.63</td><td>-</td></tr><tr><td>FAOA [51]</td><td>DN53</td><td>60.67</td><td>68.71</td><td>23</td></tr><tr><td>RCCF[26]</td><td>DLA34</td><td>63.79</td><td>-</td><td>25</td></tr><tr><td>ReSC-Large [52]</td><td>DN53</td><td>64.60</td><td>69.28</td><td>36</td></tr><tr><td>Ours</td><td>RN50</td><td>70.81</td><td>78.13</td><td>37(14)</td></tr><tr><td>Ours</td><td>RN101</td><td>71.42</td><td>78.66</td><td>40(15)</td></tr><tr><td>Ours*</td><td>RN50</td><td>75.49</td><td>79.46</td><td>37(14)</td></tr><tr><td>Ours*</td><td>RN101</td><td>76.18</td><td>81.18</td><td>40(15)</td></tr></table>
|
| 139 |
+
|
| 140 |
+
REC on Flickr30k-Entities. For Flickr30k dataset, previous one-stage works [51, 52] extract short phrases from sentences and treated them as separate referring expression comprehension tasks. We argue that in this setting, queries are mostly short phrases and therefore cannot well reflect the model’s ability to comprehend them in context. In contrast, our model, given an image and a caption (con)text sentence, aims to predict bounding boxes for all referred entities in the sentence. Doing so gives several advantages: 1. We are able to contextualize referring expressions given all other referring expressions and (con)text provided by the sentence. 2. Locations for all phrases can be inferred in one forward pass of the network, which saves a lot of computation as compared to previous one-stage approaches [51, 52] that process one phrase at a time. Note that our task formulation is consistent with some two-stage models [1, 9], but is unique for a one stage approach.
|
| 141 |
+
|
| 142 |
+
In Table 3 we compare our results with state-of-the-art methods. Without pretraining, we obtain a huge performance boost compared to both previous one-stage $( + 1 3 . 5 4 \% )$ and two-stage $( + 7 . 3 1 \% )$ state-of-the art methods. By using pretrained models, we observe that our model tends to generalize better on the test set and gives even better performance. We also provide comparison of inference time both per image and (per-expression), since our model can amortize inference across expressions. Per-expression, our inference time is substantially lower than all prior methods.
|
| 143 |
+
|
| 144 |
+
REC on ReferIt. Since ReferIt is a relative small dataset, we use a slightly smaller model which contains 3 cross attention layers in the query decoder. The results are shown in Table 3. Our model is able to perform better, by a large margin, than even the latest one-stage methods. We also observe a consistent boost brought by pretraining.
|
| 145 |
+
|
| 146 |
+
# 4.4 Qualitative Analysis
|
| 147 |
+
|
| 148 |
+
In Figure 2, we show our qualitative comparison with previous state-of-the-art multi-task model – MCN [36]. The first two rows of Figure 2(a) show failure cases of MCN that can be better handled by our model. We observe that MCN appears to fail because it neglects some attributes in referring expression (e.g., "yellow drink" and "blue striped shirt"), while our model is able to better model the query and pay attention to object attributes. In the last row, we shows several failure cases of our model. For the first case, the query requires the model to have the ability to recognize number $" 4 4 "$ . For the second and third case, there is visual ambiguity to identify the nearest glass to the bowl or to determine which bear(brown or white) has the longest leg.
|
| 149 |
+
|
| 150 |
+
In Figure 2(b), we show qualitative comparison in terms of referred segmentation mask. Compared to MCN, our model is able to output more detailed object shape and finer outlines. Moreover, our model shows the ability to handle shadows (e.g., the right bottom of the donut) and occlusions (e.g., the man occluded by another man’s arm) and predict smoother segmentation mask. We also give a result on a challenging case in the last row, where the texture boundary of the two giraffe is hard to distinguish. Despite imperfections, our model is still able to focus on the giraffe’s head in the foreground and performs much better than MCN. Part of our model’s ability to generate fine-grained mask can be explained by better localization ability brought by the REC task, in which case the RES head can focus on tuning the shape and boundary of the mask.
|
| 151 |
+
|
| 152 |
+
Table 4: Ablation studies. Table on the top ablates our multi-task and pretraining schehme on $\operatorname { R e f C O C O } / + / \mathrm { g }$ validation set. Table on the bottom ablates on core components of our model.
|
| 153 |
+
|
| 154 |
+
<table><tr><td>REC</td><td>RES Pretrain</td><td>REC Acc↑</td><td>RESMiou↑</td><td>IE</td></tr><tr><td>√</td><td>√</td><td>81.08 /70.02/68.15</td><td>66.03/58.39/54.61 =</td><td>23.52%</td></tr><tr><td>√</td><td>√</td><td>81.82 / 71.13 /69.32</td><td>69.94 / 60.90 / 57.69</td><td>4.73%</td></tr><tr><td>√</td><td>√</td><td>85.01/75.46/77.96</td><td>=</td><td></td></tr><tr><td>√</td><td>√ √</td><td>85.43 / 76.40 / 78.43</td><td>73.61 / 65.30 / 65.70</td><td>4.48%</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Table 5: Results on RefCOCO $^ +$ Dataset with Different Input Resolutions. Our methods correspond to the RN50 model without pretraining.
|
| 157 |
+
|
| 158 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Flickr30k</td></tr><tr><td rowspan=1 colspan=1>Model component-w/o Query Decoder-w/o Context Encoder</td><td rowspan=1 colspan=1>49.3873.68</td></tr><tr><td rowspan=1 colspan=1>Query Encoder-w/o Context&Phrase Feature-w/o Context Feature-w/o Phrase Feature</td><td rowspan=1 colspan=1>42.0576.6477.02</td></tr><tr><td rowspan=1 colspan=1>Full model</td><td rowspan=1 colspan=1>78.13</td></tr></table>
|
| 159 |
+
|
| 160 |
+
<table><tr><td rowspan="2">Models</td><td rowspan="2">Resolution</td><td colspan="3">REC(prec@0.5)</td><td colspan="3">RES(MIoU)</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>FAOA [51]</td><td>256× 256</td><td>56.81</td><td>60.23</td><td>49.60</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ReSC-Large [52]</td><td>256× 256</td><td>63.59</td><td>68.36</td><td>56.81</td><td>-</td><td>-</td><td>1</td></tr><tr><td>CMPC[21]</td><td>320×320</td><td>1</td><td>-</td><td>1</td><td>49.56</td><td>53.44</td><td>43.23</td></tr><tr><td>LTS [22]</td><td>416× 416</td><td>-</td><td>=</td><td>=</td><td>54.21</td><td>58.32</td><td>48.02</td></tr><tr><td>MCN [36]</td><td>416× 416</td><td>67.16</td><td>72.86</td><td>57.31</td><td>50.62</td><td>54.99</td><td>44.69</td></tr><tr><td>Ours</td><td>256× 256</td><td>70.05</td><td>73.29</td><td>61.48</td><td>58.26</td><td>61.09</td><td>52.20</td></tr><tr><td>Ours</td><td>320×320</td><td>70.03</td><td>73.23</td><td>61.52</td><td>58.42</td><td>61.48</td><td>52.34</td></tr><tr><td>Ours</td><td>416× 416</td><td>71.50</td><td>75.87</td><td>61.71</td><td>61.00</td><td>64.48</td><td>52.44</td></tr><tr><td>Ours</td><td>640× 640</td><td>71.58</td><td>75.96</td><td>62.16</td><td>61.08</td><td>64.69</td><td>52.73</td></tr></table>
|
| 161 |
+
|
| 162 |
+
# 4.5 Ablation Studies
|
| 163 |
+
|
| 164 |
+
We first consider the importance of the multi-task setup in Table 4 (top). Results indicate that multi-task training consistently boosts both REC and RES performance on Refcoco $/ + / \mathrm { g }$ datasets by a considerable margin. More specifically, we observe that REC loss helps the transformer to better locate the referred object and converge faster in early stages of training. At the same time, RES loss aids the model with more fine-grained information on the shape of the referred region, which helps to further enhance the accuracy. IE here is Inconsistency Error metric originally used in [36] to measure the prediction conflict between the REC and RES task. We can see that joint training of RES and REC greatly reduce the inconsistency between the two tasks. Note that our model also has a much lower multi-task inconsistency compared to MCN [36], with a corresponding IE score of $7 . 5 4 \% ( - 4 0 \% )$ . This shows that our model can do better collaborative learning.
|
| 165 |
+
|
| 166 |
+
Next, we validate the design of our network architecture. We report our scores on the Flickr30k test sets. In Table 4 (bottom), we ablate the model’s major components and features used to form the query. Without (w/o) context encoder indicates that we directly use learnable embedding to encode text; w/o Query Decoder means that we directly use the average pooled feature from the encoder to predict a single referred output. We can see that the context encoder plays an important role in providing good textual representation for further multi-modal fusion. Query encoders are also quite important without which we also observe a big performance drop. For the ablation on query features, we observe that both context feature and phrase features are crucial without which the performance will decrease considerably. The table also showed that the network will not work without guidance of both context and phrase features since we cannot establish a correspondence between multiple queries and outputs in such a case.
|
| 167 |
+
|
| 168 |
+
In RES and REC tasks, the size of input image is a matter of trade off between performance and speed, which is largely effected by the network architecture. Despite that our model is designed to be able to process $6 4 0 \times 6 4 0$ images at real time speed, we also test our model at different input resolution for reference, as showed in Table 5. Note that for resolution 256 and 320, we adjust strides in the final stage of ResNet to keep the number of visual features sent into visual-lingual encoder roughly the same.
|
| 169 |
+
|
| 170 |
+
Table 6: Comparison with Concurrent Work. Performance on RefCOCO/RefCOCO $\left| + \right.$ /RefCOCOg datasets [55]. Ours∗ denotes that pretraining is used. All methods use ResNet101 image backbone.
|
| 171 |
+
|
| 172 |
+
<table><tr><td rowspan="2">Models</td><td rowspan="2">Visual Features</td><td rowspan="2">Pretrain Images</td><td rowspan="2">Multi- task</td><td colspan="3">RefCOCO</td><td colspan="3">RefCOCO+</td><td rowspan="2">RefC0COg</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>testA</td><td>testB</td><td>val-u</td></tr><tr><td>One-stage:</td><td></td><td></td><td></td><td></td><td></td><td></td><td>val</td><td></td><td></td><td></td><td>test-u</td></tr><tr><td>VGTR [10]</td><td>Bi-LSTM</td><td>None</td><td>×</td><td>79.20</td><td>82.32</td><td>73.78</td><td>63.91</td><td>70.09</td><td>56.51</td><td>65.73</td><td>67.23</td></tr><tr><td>TransVG [7]</td><td>BERT</td><td>None</td><td>×</td><td>81.02</td><td>82.72</td><td>78.35</td><td>64.82</td><td>70.70</td><td>56.94</td><td>68.67</td><td>67.73</td></tr><tr><td>Ours</td><td>BERT</td><td>None</td><td>√</td><td>82.23</td><td>85.59</td><td>76.57</td><td>71.58</td><td>75.96</td><td>62.16</td><td>69.41</td><td>69.40</td></tr><tr><td>Pretrained:</td><td></td><td></td><td>√</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>MDETR [23] Ours*</td><td>RoBERTa BERT</td><td>200k 100k</td><td>√</td><td>86.75 85.65</td><td>89.58 88.73</td><td>81.41 81.16</td><td>79.52 77.55</td><td>84.09 82.26</td><td>70.62 68.99</td><td>81.64 79.25</td><td>80.89 80.01</td></tr></table>
|
| 173 |
+
|
| 174 |
+
# 4.6 Comparison with Contemporaneous Work
|
| 175 |
+
|
| 176 |
+
Concurrent and independent to us, very recently, there are some closely related works that use transformers for visual referring tasks [7, 10, 23]. We will briefly discuss some of the differences.
|
| 177 |
+
|
| 178 |
+
To begin, [7, 10] focus on REC, while our approach is formulated in multi-task setting and solves both REC and RES tasks simultaneously. In addition, our model is faster and is capable of grounding multiple contextualized phrases, while [7, 10] follow previous one-stage approaches and are only able to infer a single expression at a time; leading, in our case, to more accurate results. MDETR [23] leverages contrastive loss and soft token loss to help better match bounding boxes to phrases. In contrast, our method adopts a simple and straightforward method to pre-match bounding boxes to phrases using a one-to-one matching; this leads to simpler learning objective.
|
| 179 |
+
|
| 180 |
+
We provide quantitative comparison on REC task with these approaches, based on their reported numbers in Table 6. Compared to [7, 10], our model performs substantially better in all, with an exception of RefCOCO testB (where [7] is marginally better), datasets and splits. The biggest improvements can be seen on $\operatorname { R e f C O C O + }$ , where our model is $1 0 . 4 \%$ better (or 6.76 points better), than the closest concurrent work of [7], on the Val split; similar sizable improvements are illustrated on other splits, e.g., $9 . 2 \%$ on $\operatorname { R e f C O C O + }$ testB. In addition, our approach is considerably faster in runtime, since our model is able to handle multiple queries simultaneously (unlike [7, 10]). Compared to [23], in a pretrained model setting, we see that our model performs similarly on RefCOCO and marginally worse on $\operatorname { R e f C O C O + }$ and $\operatorname { R e f C O C O g }$ . This difference can perhaps be attributed to two factors: (1) larger pretrain dataset and longer triaining schedule. (As reported in [23], MDETR takes 224 GPU days to pretrain, while the pretraining for our model is roughly 28 GPU days) (2) using more sophisticated language model (RoBERTa for [23] vs. BERT for us). Limited experiments in Supplemental Material show that indeed, the use of RoBERTa leads to certain improvements. In addition, we setup our method in multi-task setting to solve RES and REC task at the same time, so our formulation while perhaps marginally inferior on REC is more general overall.
|
| 181 |
+
|
| 182 |
+
# 5 Conclusions and Future Work
|
| 183 |
+
|
| 184 |
+
In this work, we present Referring Transformer, a one-step approach to referring expression comprehension (REC) and segmentation (RES). We jointly train our model for RES and REC tasks while enabling contextualized multi-expression references. Our models outperform state-of-the-art by a large margin on five / three datasets for REC / RES respectively, while achieving real-time runtime.
|
| 185 |
+
|
| 186 |
+
One limitation for our model is that we follow the setup in previous works [51, 52] and assume that each expression refers to only one region. In the future, we plan to explore learning to predict multiple regions for each referring entity if necessary. Large-scale multi-task pretraining has been demonstrated to be very effective for ViLBEERT and other similar architectures; this is complementary to our focus in this paper, and we expect such strategies to further improve the performance.
|
| 187 |
+
|
| 188 |
+
# 6 Acknowledgments and Disclosure of Funding
|
| 189 |
+
|
| 190 |
+
This work was funded, in part, by the Vector Institute for AI, Canada CIFAR AI Chair, NSERC CRC, NSERC Discovery and Discovery Accelerator Grants. Resources used in preparing this research were provided, in part, by the Province of Ontario, the Government of Canada through CIFAR, and companies sponsoring the Vector Institute www.vectorinstitute.ai/#partners. Additional hardware support was provided by John R. Evans Leaders Fund CFI grant and Compute Canada under the Resource Allocation Competition award.
|
| 191 |
+
|
| 192 |
+
References
|
| 193 |
+
[1] M. Bajaj, L. Wang, and L. Sigal. G3raphground: Graph-based language grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4281–4290, 2019.
|
| 194 |
+
[2] N. Carion, F. Massa, G. Synnaeve, N. Usunier, A. Kirillov, and S. Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision (ECCV), pages 213–229, 2020.
|
| 195 |
+
[3] K. Chen, R. Kovvuri, and R. Nevatia. Query-guided regression network with context policy for phrase grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 824–832, 2017.
|
| 196 |
+
[4] X. Chen, L. Ma, J. Chen, Z. Jie, W. Liu, and J. Luo. Real-time referring expression comprehension by single-stage grounding network. arXiv preprint arXiv:1812.03426, 2018.
|
| 197 |
+
[5] Y.-C. Chen, L. Li, L. Yu, A. El Kholy, F. Ahmed, Z. Gan, Y. Cheng, and J. Liu. Uniter: Universal image-text representation learning. In European Conference on Computer Vision (ECCV), pages 104–120, 2020.
|
| 198 |
+
[6] Y. W. Chen, Y. H. Tsai, T. Wang, Y. Y. Lin, and M. H. Yang. Referring expression object segmentation with caption-aware consistency. In Proceedings of the British Machine Vision Conference (BMVC), 2019.
|
| 199 |
+
[7] J. Deng, Z. Yang, T. Chen, W. Zhou, and H. Li. TransVG: End-to-end visual grounding with transformers. arXiv preprint arXiv:2104.08541, 2021.
|
| 200 |
+
[8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, 2019.
|
| 201 |
+
[9] P. Dogan, L. Sigal, and M. Gross. Neural sequential phrase grounding (seqground). In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4175–4184, 2019.
|
| 202 |
+
[10] Y. Du, Z. Fu, Q. Liu, and Y. Wang. Visual grounding with transformers. arXiv preprint arXiv:2105.04281, 2021.
|
| 203 |
+
[11] K. Duan, S. Bai, L. Xie, H. Qi, Q. Huang, and Q. Tian. Centernet: Keypoint triplets for object detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 6569–6578, 2019.
|
| 204 |
+
[12] Z. Gan, Y.-C. Chen, L. Li, C. Zhu, Y. Cheng, and J. Liu. Large-scale adversarial training for vision-andlanguage representation learning. In Proceedings of the International Conference on Neural Information Processing Systems (NeurIPS), 2020.
|
| 205 |
+
[13] P. Gao, M. Zheng, X. Wang, J. Dai, and H. Li. Fast convergence of detr with spatially modulated co-attention. arXiv preprint arXiv:2101.07448, 2021.
|
| 206 |
+
[14] X. Glorot and Y. Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pages 249–256, 2010.
|
| 207 |
+
[15] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016.
|
| 208 |
+
[16] K. He, G. Gkioxari, P. Dollár, and R. Girshick. Mask r-cnn. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2961–2969, 2017.
|
| 209 |
+
[17] R. Hong, D. Liu, X. Mo, X. He, and H. Zhang. Learning to compose and reason with language tree structures for visual grounding. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2019.
|
| 210 |
+
[18] R. Hu, M. Rohrbach, and T. Darrell. Segmentation from natural language expressions. In European Conference on Computer Vision (ECCV), pages 108–124, 2016.
|
| 211 |
+
[19] R. Hu, M. Rohrbach, J. Andreas, T. Darrell, and K. Saenko. Modeling relationships in referential expressions with compositional modular networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1115–1124, 2017.
|
| 212 |
+
[20] Z. Hu, G. Feng, J. Sun, L. Zhang, and H. Lu. Bi-directional relationship inferring network for referring image segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
|
| 213 |
+
[21] S. Huang, T. Hui, S. Liu, G. Li, Y. Wei, J. Han, L. Liu, and B. Li. Referring image segmentation via cross-modal progressive comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
|
| 214 |
+
[22] Y. Jing, T. Kong, W. Wang, L. Wang, L. Li, and T. Tan. Locate then segment: A strong pipeline for referring image segmentation. arXiv preprint arXiv:2103.16284, 2021.
|
| 215 |
+
[23] A. Kamath, M. Singh, Y. LeCun, I. Misra, G. Synnaeve, and N. Carion. MDETR–modulated detection for end-to-end multi-modal understanding. arXiv preprint arXiv:2104.12763, 2021.
|
| 216 |
+
[24] S. Kazemzadeh, V. Ordonez, M. Matten, and T. Berg. Referitgame: Referring to objects in photographs of natural scenes. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 787–798, 2014.
|
| 217 |
+
[25] R. Krishna, Y. Zhu, O. Groth, J. Johnson, K. Hata, J. Kravitz, S. Chen, Y. Kalantidis, L.-J. Li, D. A. Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision (IJCV), 123(1):32–73, 2017.
|
| 218 |
+
[26] Y. Liao, S. Liu, G. Li, F. Wang, Y. Chen, C. Qian, and B. Li. A real-time cross-modality correlation filtering method for referring expression comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
|
| 219 |
+
[27] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft coco: Common objects in context. In European Conference on Computer Vision (ECCV), pages 740–755, 2014.
|
| 220 |
+
[28] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollár. Focal loss for dense object detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2980–2988, 2017.
|
| 221 |
+
[29] D. Liu, H. Zhang, F. Wu, and Z.-J. Zha. Learning to assemble neural module tree networks for visual grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4673–4682, 2019.
|
| 222 |
+
[30] X. Liu, Z. Wang, J. Shao, X. Wang, and H. Li. Improving referring expression grounding with crossmodal attention-guided erasing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1950–1959, 2019.
|
| 223 |
+
[31] J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3431– 3440, 2015.
|
| 224 |
+
[32] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019.
|
| 225 |
+
[33] J. Lu, D. Batra, D. Parikh, and S. Lee. ViLBERT: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Proceedings of the International Conference on Neural Information Processing Systems (NeurIPS), pages 13–23, 2019.
|
| 226 |
+
[34] J. Lu, V. Goswami, M. Rohrbach, D. Parikh, and S. Lee. 12-in-1: Multi-task vision and language representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 10437–10446, 2020.
|
| 227 |
+
[35] G. Luo, Y. Zhou, R. Ji, X. Sun, J. Su, C.-W. Lin, and Q. Tian. Cascade grouped attention network for referring expression segmentation. In ACM International Conference on Multimedia, 2020.
|
| 228 |
+
[36] G. Luo, Y. Zhou, X. Sun, L. Cao, C. Wu, C. Deng, and R. Ji. Multi-task collaborative network for joint referring expression comprehension and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
|
| 229 |
+
[37] J. Mao, J. Huang, A. Toshev, O. Camburu, A. L. Yuille, and K. Murphy. Generation and comprehension of unambiguous object descriptions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11–20, 2016.
|
| 230 |
+
[38] E. Margffoy-Tuay, J. C. Pérez, E. Botero, and P. Arbeláez. Dynamic multimodal instance segmentation guided by natural language queries. In European Conference on Computer Vision (ECCV), 2018.
|
| 231 |
+
[39] F. Milletari, N. Navab, and S.-A. Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In International Conference on 3D Vision (3DV), pages 565–571, 2016.
|
| 232 |
+
[40] V. K. Nagaraja, V. I. Morariu, and L. S. Davis. Modeling context between objects for referring expression understanding. In European Conference on Computer Vision (ECCV), pages 792–807, 2016.
|
| 233 |
+
[41] B. A. Plummer, L. Wang, C. M. Cervantes, J. C. Caicedo, J. Hockenmaier, and S. Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2641–2649, 2015.
|
| 234 |
+
[42] B. A. Plummer, P. Kordas, M. H. Kiapour, S. Zheng, R. Piramuthu, and S. Lazebnik. Conditional image-text embedding networks. In European Conference on Computer Vision (ECCV), pages 249–264, 2018.
|
| 235 |
+
[43] J. Redmon and A. Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018.
|
| 236 |
+
[44] S. Ren, K. He, R. Girshick, and J. Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 39(6): 1137–1149, 2017.
|
| 237 |
+
[45] H. Rezatofighi, N. Tsoi, J. Gwak, A. Sadeghian, I. Reid, and S. Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 658–666, 2019.
|
| 238 |
+
[46] A. Sadhu, K. Chen, and R. Nevatia. Zero-shot grounding of objects from natural language queries. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4694–4703, 2019.
|
| 239 |
+
[47] H. Tan and M. Bansal. Lxmert: Learning cross-modality encoder representations from transformers. Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019.
|
| 240 |
+
[48] L. Wang, Y. Li, J. Huang, and S. Lazebnik. Learning two-branch neural networks for image-text matching tasks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 41(2):394–407, 2018.
|
| 241 |
+
[49] T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, J. Davison, S. Shleifer, P. von Platen, C. Ma, Y. Jernite, J. Plu, C. Xu, T. L. Scao, S. Gugger, M. Drame, Q. Lhoest, and A. M. Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 38–45, 2020.
|
| 242 |
+
[50] S. Yang, G. Li, and Y. Yu. Propagating over phrase relations for one-stage visual grounding. In European Conference on Computer Vision, pages 589–605. Springer, 2020.
|
| 243 |
+
[51] Z. Yang, B. Gong, L. Wang, W. Huang, D. Yu, and J. Luo. A fast and accurate one-stage approach to visual grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4683–4693, 2019.
|
| 244 |
+
[52] Z. Yang, T. Chen, L. Wang, and J. Luo. Improving one-stage visual grounding by recursive sub-query construction. In European Conference on Computer Vision (ECCV), 2020.
|
| 245 |
+
[53] L. Ye, M. Rochan, Z. Liu, and Y. Wang. Cross-modal self-attention network for referring image segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
|
| 246 |
+
[54] F. Yu, J. Tang, W. Yin, Y. Sun, H. Tian, H. Wu, and H. Wang. Ernie-vil: Knowledge enhanced visionlanguage representations through scene graph. arXiv preprint arXiv:2006.16934, 2020.
|
| 247 |
+
[55] L. Yu, P. Poirson, S. Yang, A. C. Berg, and T. L. Berg. Modeling context in referring expressions. In European Conference on Computer Vision (ECCV), pages 69–85, 2016.
|
| 248 |
+
[56] L. Yu, Z. Lin, X. Shen, J. Yang, X. Lu, M. Bansal, and T. L. Berg. Mattnet: Modular attention network for referring expression comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1307–1315, 2018.
|
| 249 |
+
[57] Z. Yu, J. Yu, C. Xiang, Z. Zhao, Q. Tian, and D. Tao. Rethinking diversified and discriminative proposal generation for visual grounding. International Joint Conference on Artificial Intelligence (IJCAI), 2018.
|
| 250 |
+
[58] X. Zhu, W. Su, L. Lu, B. Li, X. Wang, and J. Dai. Deformable detr: Deformable transformers for end-to-end object detection. In International Conference on Learning Representations (ICLR), 2021.
|
parse/train/J64lDCrYGi/J64lDCrYGi_content_list.json
ADDED
|
@@ -0,0 +1,1058 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Referring Transformer: A One-step Approach to Multi-task Visual Grounding ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
204,
|
| 8 |
+
122,
|
| 9 |
+
795,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Muchen Li1,2 muchenli@cs.ubc.ca ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
292,
|
| 19 |
+
224,
|
| 20 |
+
457,
|
| 21 |
+
253
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Leonid Sigal1,2,3,4 lsigal@cs.ubc.ca ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
547,
|
| 30 |
+
224,
|
| 31 |
+
684,
|
| 32 |
+
255
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "1Department of Computer Science, University of British Columbia \n2Vector Institute for AI 3CIFAR AI Chair 4NSERC CRC Chair ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
263,
|
| 41 |
+
258,
|
| 42 |
+
735,
|
| 43 |
+
287
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
462,
|
| 53 |
+
323,
|
| 54 |
+
535,
|
| 55 |
+
339
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "As an important step towards visual reasoning, visual grounding (e.g., phrase localization, referring expression comprehension / segmentation) has been widely explored. Previous approaches to referring expression comprehension (REC) or segmentation (RES) either suffer from limited performance, due to a two-stage setup, or require the designing of complex task-specific one-stage architectures. In this paper, we propose a simple one-stage multi-task framework for visual grounding tasks. Specifically, we leverage a transformer architecture, where two modalities are fused in a visual-lingual encoder. In the decoder, the model learns to generate contextualized lingual queries which are then decoded and used to directly regress the bounding box and produce a segmentation mask for the corresponding referred regions. With this simple but highly contextualized model, we outperform state-of-the-art methods by a large margin on both REC and RES tasks. We also show that a simple pre-training schedule (on an external dataset) further improves the performance. Extensive experiments and ablations illustrate that our model benefits greatly from contextualized information and multi-task training. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
356,
|
| 65 |
+
766,
|
| 66 |
+
563
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
589,
|
| 77 |
+
310,
|
| 78 |
+
607
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Multi-modal grounding1 tasks (e.g., phrase localization [1, 3, 9, 41, 48], referring expression comprehension [17, 19, 24, 26, 29, 30, 37, 51, 52, 55, 56] and segmentation [6, 18, 20, 21, 29, 38, 53, 56]) aim to generalize traditional object detection and segmentation to localization of regions (rectangular or at a pixel level) in images that correspond to free-form linguistic expressions. These tasks have emerged as core problems in vision and ML due to the breadth of applications that can make use of such techniques, spanning image captioning, visual question answering, visual reasoning and others. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
622,
|
| 88 |
+
825,
|
| 89 |
+
705
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "The majority of multi-modal grounding architectures, to date, take the form of two-stage approaches, inspired by Faster RCNN [44] and others, which first generate a set of image region proposals and then associate/ground one, or more, of these regions to a phrase by considering how well the content matches the query phrase. Context among the regions and multiple query phrases, which often come parsed from a single sentence, has also been considered in various ways (e.g., using LSTM stacks [9], graph neural networks [1] and others). More recent variants leverage pre-trained multi-modal Transformers (e.g., ViLBERT [33, 34]) to fine-tune to the grounding tasks. Such models have an added benefit of being able to learn sophisticated cross-modal feature representations from external large-scale data, which further improve the performance. However, a significant limitation of all such two-stage methods is their inability to condition the proposal mechanism on the query phrase itself, which inherently limits the upper bound of performance (see Table 3 in [51]). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
712,
|
| 99 |
+
825,
|
| 100 |
+
823
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
92,
|
| 110 |
+
823,
|
| 111 |
+
133
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "To address these limitations, more recently, a number of one-stage approaches have been introduced [22, 36, 51, 52]. Most of these take inspiration from Yolo [43] and the variants, and rely on more integrated visual-linguistic fusion and a dense anchoring mechanism to directly predict the grounding regions. While this alleviates the need for a proposal stage, it instead requires somewhat ad hoc anchor definitions, often obtained by clustering of labeled regions, and also limits ability to contextualize grounding decisions as each query phrase is effectively processed independently. Finally, little attention in the literature has been given to leveraging relationship among the REC and RES tasks. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
140,
|
| 121 |
+
825,
|
| 122 |
+
237
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In this work we propose an end-to-end one-stage architecture, inspired by the recent DETR [2] detection framework, which is capable of simultaneous language grounding at both a boundingbox and segmentation level, without requiring dense anchor definitions. This model also enables contextualized reasoning by taking into account the entire image, all referring query phrases of interest and (optionally) lingual context (e.g., a sentence from which referring phrases are parsed). Specifically, we leverage a transfomer architecture, with a visual-lingual encoder, to encode image and lingual context, and a two-headed (detection and segmentation) custom contextualized tranformer decoder. The contextualized decoder takes as input learned contextualized phrase queries and decodes them directly to bounding boxes and segmentation masks. Implicit 1-to-1 correspondence between input referring phrases and resulting outputs also enables a more direct formulation of the loss without requiring Hungarian matching. With this simple model we outperform state-of-the-art methods by a large margin on both REC and RES tasks. We also show that a simple pre-training schedule (on an external dataset) further improves the performance. Extensive experiments and ablations illustrate that our model benefit greatly from the contextualized information and the multi-task training. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
242,
|
| 132 |
+
825,
|
| 133 |
+
435
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "Contributions. Our contributions are: (1) We propose a simple and general one-stage transformerbased architecture for referring expression comprehension and segmentation. The core of this model is the novel transformer decoder that leverages contextualized phrase queries and is able to directly decode those, subject to contextualized image embeddings, into corresponding image regions and segments; (2) Our approach is unique in enabling simultaneous REC and RES using a single trained model (the only other method capable of this is [36]); showing that such multi-task learning leads to improvements on both tasks; (3) As with other transformer-based architectures, we show that pre-training can further improve the performance and both vanila and pre-trained models outperform state-of-the-art on both tasks by significant margins (up to $8 . 5 \\%$ on RefCOCO dataset for REC and $1 9 . 4 \\%$ for RES). We also thoroughly validate our design in detailed ablations. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
443,
|
| 143 |
+
825,
|
| 144 |
+
580
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 Related works ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
599,
|
| 155 |
+
325,
|
| 156 |
+
616
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Referring Expression Comprehension (REC). REC focuses on producing an image bounding box tightly encompassing a language query. Previous two-staged works [17, 19, 29, 30, 56] reformulate this as a ranking task with a set of candidate regions predicted from a pre-trained proposal mechanism. Despite achieving great success, the performance of two-staged methods is capped by the speed and accuracy of region proposals in the first stage. More recently, one-stage approaches [26, 51, 52] have been used to alleviate the aforementioned limitations. Yang et al. [51, 52] proposed to fuse query information with visual features and pick the bounding box with maximum activation scores from YOLOv3 [43]. Yang et al. [50] explore language structure guided propagation in the context of one stage grounding. Liao et al. [26] utilizes CenterNet [11] to perform correlation filtering for region center localization. However, such methods either require manually tuned anchor boxes or suffer from semantic loss due to modality misalignment. In contrast, our model learns to better align modalities using a cross-modal transformer and directly decode bounding boxes for each query. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
628,
|
| 166 |
+
825,
|
| 167 |
+
794
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Referring Expression Segmentation (RES). Similar to REC, RES, proposed in [18], aims to predict segmentation masks to better describe the shape of the referred region. A typical solution for referring expression segmentation is to fuse multi-modal information with a segmentation network (e.g., [16, 31]) and train it to output the segmented masks [18, 29, 38, 53, 56]. More recent approaches focus on designing module to enable better multi-modal interactions, e.g., progressive multi-scale fusion used in [21] and cross-modal attention block used in [20]. Since localization information matters in predicting instance segmentations (as noted in Mask RCNN [16]), very recent work [22] aims to explicitly localize object before doing segmentation. Despite the relatively high performance being achieved in RES, existing approaches still struggle to determine the correct referent region and tend to output noisy segmentation results with an irregular shape, while our model is able to produce segmentations with fine-grained shapes even on challenging scenarios with occlusions or shadows. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
800,
|
| 177 |
+
825,
|
| 178 |
+
911
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
92,
|
| 188 |
+
823,
|
| 189 |
+
133
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 2
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Multi-task Learning for REC and RES. Multi-task learning is widely applied in object detection and segmentation [2, 16], often, by leveraging shared backbone and task-specific heads. Building on this idea, Luo et al. [36] proposed a multi-task collaborative network (MCN) to jointly address REC and RES. They introduce consistency energy maximization loss that constrains the feature activation map in REC and RES to be similar. While our model is also set up to learn REC and RES tasks jointly, we argue that an explicit constraint tends to downplay the quality of the final predicted mask since the feature map from the REC branch can blur out fine-grained region shape information needed by the RES branch (see Figure 2). Hence, we use an implicit constraint where tasks head of REC and RES are trained to output corresponding bounding box and mask from the same joint multi-modal representation. We illustrate that our model can benefit from multi-task supervision, leading to more accurate results as compared to single-task variants. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
138,
|
| 199 |
+
825,
|
| 200 |
+
291
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 2
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "Pretrained Multi-modal Transformers. Transformer-based pretrained models [5, 12, 33, 47, 54] have recently showed strong potential in multi-modal understanding. LXMERT [47] and ViLBERT [33] use two stream transformers with cross-attention transformer layers on top for multimodal fusion. More recent works, [5, 12] advocate a single-stream design to fuse two modalities earlier. The success of the aforementioned models can largely be attributed to the cross-modal representations obtained by multi-task pretraining on a large amount of aligned image-text pairs. Despite state-of-the-art performance of such models on the downstream REC task, these models, fundamentally, are still a form of a two-stage pipeline where image features are extracted using pretrained detectors or proposal mechanisms. We focus on a one-stage architecture variant that allows visual and lingual features to be aligned at the early stages. Although the focus of our work is not to design a better pretraining scheme, we show that our model can outperform the existing state-of-the-art with proper pretraining. ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
297,
|
| 210 |
+
825,
|
| 211 |
+
450
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 2
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "Transformer-based Detectors. More recently, DETR [2] and its variants [13, 58], were proposed to enable end-to-end object detection. DETR reformulates detection as a set prediction tasks and uses transformers to decode learnable queries to bounding boxes. Despite state-of-art performance, DETR is disadvantaged by its optimization difficulty and, usually, extra-long training time. While adopting a similar pipeline, our model focus on aligning different modalities to generate contextualized expression-specific referring queries. We also design our model to get rid of Hungarian matching loss by leveraging one-to-one correspondences between predicted bounding boxes and referring expressions, which leads to faster convergence for our model. ",
|
| 218 |
+
"bbox": [
|
| 219 |
+
174,
|
| 220 |
+
455,
|
| 221 |
+
825,
|
| 222 |
+
566
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 2
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "text",
|
| 228 |
+
"text": "3 Approach ",
|
| 229 |
+
"text_level": 1,
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
582,
|
| 233 |
+
289,
|
| 234 |
+
599
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 2
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "Given an image $\\mathcal { T }$ and a set of query phrases $\\mathcal { Q } _ { p } = \\{ \\mathbf { p } _ { i } \\} _ { i = 1 , \\dots , M }$ , that we assume to come from an (optional) contextual text source2 $\\mathcal { Q }$ , our goal is to predict a set of bounding boxes $B = \\{ \\mathbf { b } _ { i } \\} _ { i = 1 , \\dots , M }$ and corresponding segmentation masks ${ \\cal S } = \\{ { \\bf s } _ { i } \\} _ { i = 1 , \\dots , M }$ , one for each query phrase $i$ that localizes that phrase in the image. Note, $M$ is the number of phrases / referring expressions for a given image $\\mathcal { T }$ and is typically between 1 and 16 for the Flick $3 0 \\mathrm { k }$ [41] dataset. ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
174,
|
| 243 |
+
608,
|
| 244 |
+
823,
|
| 245 |
+
680
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "As shown in Figure 1, our referring transformer is composed of four components. Given an image(con)text pair, $< { \\mathcal { T } } , { \\mathcal { Q } } >$ , a cross-modal encoder generates joint image-text embeddings for each visual and textual token – feature columns and word embeddings respectively. Query phrases $\\mathcal { Q } _ { p }$ and image-text embeddings are then fed into a query encoder which produces query phrase embeddings. The decoder jointly reasons across all these query phrase embeddings and decodes multi-task feature, which is then sent to the detection and segmentation head to produce a set of boxes $\\boldsymbol { B }$ and masks $s$ The result is a one-staged end-to-end model that solves the REC and RES tasks at the same time. We will now introduce constituent architectural components for the four stages briefly described above. ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
174,
|
| 254 |
+
685,
|
| 255 |
+
825,
|
| 256 |
+
797
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "3.1 Feature Extraction ",
|
| 263 |
+
"text_level": 1,
|
| 264 |
+
"bbox": [
|
| 265 |
+
174,
|
| 266 |
+
815,
|
| 267 |
+
344,
|
| 268 |
+
830
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 2
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "text",
|
| 274 |
+
"text": "Visual & Text Backbone. Starting from an initial image $\\mathcal { T } \\in \\mathbb { R } ^ { 3 \\times H _ { 0 } \\times W _ { 0 } }$ , we adopt the widely used ResNet [15] to generate its low-resolution feature map $\\mathbf { f } _ { I } \\in \\mathbb { R } ^ { C _ { i } \\times H W }$ . For the corresponding expression or sentence, we use the uncased base of BERT [8] to obtain the representation $\\mathbf { f } _ { Q } \\in$ $\\mathbb { R } ^ { C _ { t } \\times N }$ , while $N$ is the length of the input context sentence. ",
|
| 275 |
+
"bbox": [
|
| 276 |
+
174,
|
| 277 |
+
842,
|
| 278 |
+
823,
|
| 279 |
+
871
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 2
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "image",
|
| 285 |
+
"img_path": "images/e40ae0a0b3ed22270911f094dd1b90cc0e55acb591f3e2843ed7485181a3033e.jpg",
|
| 286 |
+
"image_caption": [
|
| 287 |
+
"Figure 1: Referring Transformer. An overview of the proposed architecture is shown in (a). For an image and (con)text input, a visual-lingual encoder is used to refine image features, extracted from a convolutional backbone, and lingual features, extracted by a BERT. A query encoder and decoder produce features for REC and RES heads, given multi-modal features and query phrases. The detailed structure of the query encoder and decoder is shown in (b). Colored squares denote embeddings for corresponding query phrases. "
|
| 288 |
+
],
|
| 289 |
+
"image_footnote": [],
|
| 290 |
+
"bbox": [
|
| 291 |
+
181,
|
| 292 |
+
90,
|
| 293 |
+
816,
|
| 294 |
+
314
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 3
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "",
|
| 301 |
+
"bbox": [
|
| 302 |
+
173,
|
| 303 |
+
417,
|
| 304 |
+
821,
|
| 305 |
+
448
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Visual-Lingual Encoder. The visual-lingual encoder is designed to fuse information from multimodal sources. For cross-modality encoding, we use a transformer encoder based model, which is composed of 6 transformer encoder layers. Specifically, given both image and text features, multi-layer perceptrons are applied first to project different modalities to a joint embedding space with a hidden dimension of $C$ . To provide transformer encoders with positional information, we follow [2, 8] to add cosine positional embedding $P _ { i m g }$ for image features and learnable positional embedding $P _ { t e x t }$ for text features. We then concatenate the projected features into a single sequence $\\mathbf { f } ~ \\in ~ \\mathbb { R } ^ { C \\times ( H W + N ) }$ . To distinguish between modalities, we also deign a learnable modal label embedding $E _ { l a b e l } : \\{ E _ { i m g } , E _ { t e x t } ^ { - } \\}$ which is added to the original sequences. The visual-lingual encoder then takes a sequence as input, and $\\{ P _ { i m g } , P _ { t e x t } , E _ { l a b e l } \\}$ are fed into each encoder layer. The encoder output is a multi-modal feature sequence $\\mathbf { f } _ { v l } \\in \\mathbb { R } ^ { C \\times ( H W + N ) }$ . ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
173,
|
| 314 |
+
454,
|
| 315 |
+
825,
|
| 316 |
+
609
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 3
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "3.2 Query Encoder and Decoder ",
|
| 323 |
+
"text_level": 1,
|
| 324 |
+
"bbox": [
|
| 325 |
+
176,
|
| 326 |
+
626,
|
| 327 |
+
411,
|
| 328 |
+
640
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 3
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "The query encoder and decoder aims to encode / decode query phrases, conditioned on visual-lingual features from the encoder, into an output bounding box and segmentation. In this stage, we first generate embeddings corresponding to each query phrase. These query phrase embeddings are then fed into the decoder together with the visual-lingual features from the encoder to generate outputs. ",
|
| 335 |
+
"bbox": [
|
| 336 |
+
174,
|
| 337 |
+
651,
|
| 338 |
+
825,
|
| 339 |
+
707
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 3
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "Encoding Query Phrases. To enable the decoder to generate the desired output (bounding box and/or segmentation) the queries must encode several bits of crucial information. Mainly, (1) encoding of the query phrases, (2) image encoding and (3) phrase-specific optional (con)text information. For phrase encoding in (1) we use a BERT model with pooling heads which share weights with (con)text encoder; this results in the phrase feature vector $\\mathbf { f _ { p } } _ { i } \\in \\mathbb { R } ^ { C }$ for the $i$ -th referring phrase. We note that because we use visual-lingual encoder, (2) and (3) are jointly encoded in multi-modal features $\\mathbf { f } _ { v l }$ described in Section 3.1 above. However, $\\mathbf { f } _ { v l }$ is phrase-agnostic encoding of the image and (con)text. To generate phrase-specific context, given a phrase $\\mathbf { p } _ { i }$ , average pooling is used to extract the phrase-specific context information $\\mathbf { f } _ { c } ( \\mathbf { p } _ { i } )$ from the visual-lingual feature sequence as follows: ",
|
| 346 |
+
"bbox": [
|
| 347 |
+
173,
|
| 348 |
+
712,
|
| 349 |
+
825,
|
| 350 |
+
849
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 3
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "equation",
|
| 356 |
+
"img_path": "images/e2e90a85e446958d0263727e66978780d9c6e97128c1945208a61a1ccb2a6aab.jpg",
|
| 357 |
+
"text": "$$\n\\mathbf { f } _ { c } ( \\mathbf { p } _ { i } ) = \\frac { \\sum \\mathbf { f } _ { v l } [ l _ { \\mathbf { p } _ { i } } : r _ { \\mathbf { p } _ { i } } ] } { r _ { \\mathbf { p } _ { i } } - l _ { \\mathbf { p } _ { i } } }\n$$",
|
| 358 |
+
"text_format": "latex",
|
| 359 |
+
"bbox": [
|
| 360 |
+
413,
|
| 361 |
+
845,
|
| 362 |
+
583,
|
| 363 |
+
881
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "where $l _ { \\mathbf { p } _ { i } }$ and $r _ { \\mathbf { p } _ { i } }$ denotes the left and right bounds of phrase $\\mathbf { p } _ { i }$ in the original (con)text sentence. Finally, given phrase encoding $\\mathbf { f _ { p } } _ { i }$ and phrase-specific context $\\mathbf { f } _ { c } ( \\mathbf { p } _ { i } )$ we construct our phrase queries ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
173,
|
| 372 |
+
883,
|
| 373 |
+
823,
|
| 374 |
+
912
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "using a multi-later perceptron: ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
92,
|
| 384 |
+
374,
|
| 385 |
+
106
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 4
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "equation",
|
| 391 |
+
"img_path": "images/a7e972d95010fe1816927ef162a16a71463820f5e002b9992c2e318c810ad631.jpg",
|
| 392 |
+
"text": "$$\n\\widehat { Q _ { { \\bf p } i } } = \\mathtt { M L P } \\left( [ { \\bf f } _ { c } ( { \\bf p } _ { i } ) ; { \\bf f _ { p } } _ { i } ] \\right) + E _ { p } ,\n$$",
|
| 393 |
+
"text_format": "latex",
|
| 394 |
+
"bbox": [
|
| 395 |
+
392,
|
| 396 |
+
111,
|
| 397 |
+
606,
|
| 398 |
+
132
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 4
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "where $E _ { p } \\in \\mathbb { R } ^ { C }$ is a learnable embedding which serves as a bias to the formed query. ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
166,
|
| 407 |
+
138,
|
| 408 |
+
732,
|
| 409 |
+
154
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 4
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "Decoding. In the decoder, self attention layers are used to enable information flow in a dense connected graph of phrase queries. This allows phrase queries to contextualize and refine each other; the inspiration for this step is taken from [1]. After that, a cross attention layer decodes visual-lingual information given the updated phrase query and feature sequence from the encoder. The design of our decoder is similar to the transformer decoder, except attention is non-causal. ",
|
| 416 |
+
"bbox": [
|
| 417 |
+
174,
|
| 418 |
+
159,
|
| 419 |
+
825,
|
| 420 |
+
229
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 4
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "3.3 Multi-task training ",
|
| 427 |
+
"text_level": 1,
|
| 428 |
+
"bbox": [
|
| 429 |
+
174,
|
| 430 |
+
244,
|
| 431 |
+
348,
|
| 432 |
+
261
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 4
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "In this section, we demonstrate how the decoded phrase-specific query features can be naturally used to train multiple heads for different referring tasks (regression for REC and segmentation for RES). ",
|
| 439 |
+
"bbox": [
|
| 440 |
+
174,
|
| 441 |
+
270,
|
| 442 |
+
823,
|
| 443 |
+
299
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 4
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "Referring Comprehension/Detection (REC). For referring detection tasks, the final output is computed by a simple two-layer perceptron over the decoded phrase-specific query features. We let the detection head directly output center coordinates $\\tilde { \\mathbf { b } } = ( x , y , h , w )$ for the referred image. To supervise the training, we use a weighted sum of an L1 loss and a Generalized IOU loss [45]: ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
173,
|
| 452 |
+
304,
|
| 453 |
+
825,
|
| 454 |
+
363
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 4
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "equation",
|
| 460 |
+
"img_path": "images/7ea9297155a964ddb353e7cc07414bc35845c0b4ae41fa86e3421fff6e0be1aa.jpg",
|
| 461 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { d e t } = \\lambda _ { i o u } \\mathcal { L } _ { i o u } ( \\mathbf { b } , \\tilde { \\mathbf { b } } ) + \\lambda _ { L 1 } | | \\mathbf { b } - \\tilde { \\mathbf { b } } | | _ { 1 } . } \\end{array}\n$$",
|
| 462 |
+
"text_format": "latex",
|
| 463 |
+
"bbox": [
|
| 464 |
+
362,
|
| 465 |
+
368,
|
| 466 |
+
635,
|
| 467 |
+
387
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 4
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "The $\\lambda _ { i o u }$ and $\\lambda _ { L 1 }$ control the relative weighting of the two losses in the REC objective. ",
|
| 474 |
+
"bbox": [
|
| 475 |
+
173,
|
| 476 |
+
393,
|
| 477 |
+
741,
|
| 478 |
+
409
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "Referring Segmentation (RES). Following previous work [2], we design an FPN-like architecture to predict a referring segmentation mask for each phrase expression. Attention masks from the decoder and image features from the visual-lingual encoder are concatenated as the FPN input, while features from different stages of image backbones are used as skip connections to refine the final output. The last linear layer project the upsampled feature to a single channel heatmap and a sigmoid function is used to map the feature to mask scores $\\tilde { \\mathbf { s } } \\in \\mathbb { R } ^ { H _ { 0 } / 4 \\times W _ { 0 } / 4 }$ . The loss for training RES task is: ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
173,
|
| 487 |
+
412,
|
| 488 |
+
825,
|
| 489 |
+
511
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "equation",
|
| 495 |
+
"img_path": "images/466a7fada956653e94f48a3f0d9f757580f9b7da25dd7e13ff9bf3b38ad226a6.jpg",
|
| 496 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { s e g } = \\lambda _ { f o c a l } \\mathcal { L } _ { f o c a l } ( \\mathbf { s } , \\tilde { \\mathbf { s } } ) + \\lambda _ { d i c e } \\mathcal { L } _ { d i c e } ( \\mathbf { s } , \\tilde { \\mathbf { s } } ) . } \\end{array}\n$$",
|
| 497 |
+
"text_format": "latex",
|
| 498 |
+
"bbox": [
|
| 499 |
+
346,
|
| 500 |
+
511,
|
| 501 |
+
650,
|
| 502 |
+
529
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 4
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "Here $\\mathcal { L } _ { f o c a l }$ is the focal loss for classifying pixels used in [28], $\\mathcal { L } _ { d i c e }$ is the DICE/F-1 loss proposed in [39]; $\\lambda _ { f o c a l }$ and $\\lambda _ { d i c e }$ are hyper-parameters controlling the relative importance of the two losses. ",
|
| 509 |
+
"bbox": [
|
| 510 |
+
171,
|
| 511 |
+
530,
|
| 512 |
+
823,
|
| 513 |
+
559
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 4
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "Joint Training. While it is possible to train referring segmentation and referring detection tasks separately, we find that joint training is highly beneficial. Therefore the combined training loss which we optimize is $\\mathcal { L } = \\mathcal { L } _ { s e g } + \\mathcal { L } _ { d e t }$ . ",
|
| 520 |
+
"bbox": [
|
| 521 |
+
174,
|
| 522 |
+
564,
|
| 523 |
+
823,
|
| 524 |
+
608
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "Pretraining the Transformer. Transformers are generally data hungry and requires a lot of data to train [5, 33]. Although in this paper we do not use a large pretraining model and a lot of data. We found that simple pretraining strategy on the region description splits of Visual-Genome dataset [25] makes our model achieve comparable and even better performance against some of state-of-the-art pretrained models. Interestingly, we found that although there is no ground truth segmentation provided in Visual-Genome, the RES task can still benefit greatly from pretrained models, likely due to the fine-tuned multi-task representation. ",
|
| 531 |
+
"bbox": [
|
| 532 |
+
173,
|
| 533 |
+
613,
|
| 534 |
+
825,
|
| 535 |
+
710
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "4 Experiments ",
|
| 542 |
+
"text_level": 1,
|
| 543 |
+
"bbox": [
|
| 544 |
+
174,
|
| 545 |
+
723,
|
| 546 |
+
312,
|
| 547 |
+
739
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "4.1 Datasets ",
|
| 554 |
+
"text_level": 1,
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
747,
|
| 558 |
+
272,
|
| 559 |
+
762
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 4
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "RefCOCO/RefCOCO $^ +$ /RefCOCOg (REC&RES). RefCOCO, RefCOCO $^ +$ [55] and RefCOCOg [40] are collections of images and referred objects from MSCOCO [27]. On RefCOCO and Ref$\\mathrm { C O C O + }$ we follow the split used in [55] and report scores on the validation, testA and testB splits. On RefCOCOg, we use the RefCOCO-umd splits proposed in [40]. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
772,
|
| 569 |
+
826,
|
| 570 |
+
829
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "Flickr30k Entities (REC). Flickr30k Entities [41] contains 31,783 images and $1 5 8 \\mathrm { k }$ caption sentences with 427k annotated phrase. We use splits from [41, 42]. Bounding boxes and phrase annotations are consistent with the previous one-stage approaches [51, 52] for fair comparisons. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
174,
|
| 579 |
+
834,
|
| 580 |
+
825,
|
| 581 |
+
877
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "ReferIt (REC). The ReferItGame dataset [24] contains 20,000 images. We follow setup in [3] for splitting train, validation and test set; resulting in 54k, 6k and 6k referring expressions respectively. ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
173,
|
| 590 |
+
882,
|
| 591 |
+
821,
|
| 592 |
+
911
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "table",
|
| 598 |
+
"img_path": "images/fe6ad8c71f4e1ea98a00788df050322d5fad0606b76dc406574e4f9a44fec78c.jpg",
|
| 599 |
+
"table_caption": [
|
| 600 |
+
"Table 1: Comparison on REC task. Performance on RefCOCO/RefCOCO+/RefCOCOg datasets [55] is reported. Ours∗ denotes that pretraining is used. RN50 and RN101 refer to ResNet50 and ResNet101 [15] respectively; DN53 refers to DarkNet53 [43] backbone. "
|
| 601 |
+
],
|
| 602 |
+
"table_footnote": [],
|
| 603 |
+
"table_body": "<table><tr><td rowspan=\"2\">Models</td><td rowspan=\"2\">Visual Features</td><td rowspan=\"2\">Pretrain Images</td><td rowspan=\"2\">Multi- task</td><td colspan=\"3\">RefCOCO</td><td colspan=\"3\">RefCOCO+</td><td rowspan=\"2\">RefCOCOg</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB val-u</td></tr><tr><td>Two-stage:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>test-u</td></tr><tr><td>CMN[19]</td><td>VGG16</td><td>None</td><td>×</td><td>-</td><td>71.03</td><td>65.77</td><td>-</td><td>54.32</td><td>47.76</td><td>-</td><td>-</td></tr><tr><td>RvG-Tree [17]</td><td>RN101</td><td>None</td><td>×</td><td>75.06</td><td>78.61</td><td>69.85</td><td>63.51</td><td>67.45</td><td>56.66</td><td>66.95</td><td>66.51</td></tr><tr><td>CM-Att-Erase [30]</td><td>RN101</td><td>None</td><td>×</td><td>78.35</td><td>83.14</td><td>71.32</td><td>68.09</td><td>73.65</td><td>58.03</td><td>67.99</td><td>68.67</td></tr><tr><td>MAttNet [56]</td><td>RN101</td><td>None</td><td>√</td><td>76.65</td><td>81.14</td><td>69.99</td><td>65.33</td><td>71.62</td><td>56.02</td><td>66.58</td><td>67.27</td></tr><tr><td>NMTree [29]</td><td>RN101</td><td>None</td><td>√</td><td>76.41</td><td>81.21</td><td>70.09</td><td>66.46</td><td>72.02</td><td>57.52</td><td>65.87</td><td>66.44</td></tr><tr><td>One-stage:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>RCCF[26]</td><td>DLA34</td><td>None</td><td>×</td><td>-</td><td>81.06</td><td>71.85</td><td>-</td><td>70.35</td><td>56.32</td><td>-</td><td>65.73</td></tr><tr><td>SSG [4]</td><td>DN53</td><td>None</td><td>×</td><td>=</td><td>76.51</td><td>67.50</td><td>-</td><td>62.14</td><td>49.27</td><td>58.80</td><td>-</td></tr><tr><td>FAOA [51]</td><td>DN53</td><td>None</td><td>×</td><td>72.54</td><td>74.35</td><td>68.50</td><td>56.81</td><td>60.23</td><td>49.60</td><td>61.33</td><td>60.36</td></tr><tr><td>ReSC-Large [52]</td><td>DN53</td><td>None</td><td>×</td><td>77.63</td><td>80.45</td><td>72.30</td><td>63.59</td><td>68.36</td><td>56.81</td><td>67.30</td><td>67.20</td></tr><tr><td>MCN[36]</td><td>DN53</td><td>None</td><td>√</td><td>80.08</td><td>82.29</td><td>74.98</td><td>67.16</td><td>72.86</td><td>57.31</td><td>66.46</td><td>66.01</td></tr><tr><td>Ours</td><td>RN50</td><td>None</td><td>√</td><td>81.82</td><td>85.33</td><td>76.31</td><td>71.13</td><td>75.58</td><td>61.91</td><td>69.32</td><td>69.10</td></tr><tr><td>Ours</td><td>RN101</td><td>None</td><td>√</td><td>82.23</td><td>85.59</td><td>76.57</td><td>71.58</td><td>75.96</td><td>62.16</td><td>69.41</td><td>69.40</td></tr><tr><td>Pretrained:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>VilBERT[33]</td><td>RN101</td><td>3.3M</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>RN101</td><td></td><td>×</td><td>-</td><td>=</td><td>-</td><td>72.34</td><td>78.52</td><td>62.61</td><td>1</td><td>-</td></tr><tr><td>ERNIE-ViL_L[54]</td><td>RN101</td><td>4.3M 4.6M</td><td>×</td><td>=</td><td></td><td></td><td>75.89</td><td>82.37</td><td>66.91</td><td></td><td></td></tr><tr><td>UNTIER_L[5]</td><td>RN101</td><td>4.6M</td><td>×</td><td>81.41</td><td>87.04</td><td>74.17</td><td>75.90</td><td>81.45</td><td>66.70</td><td>74.86</td><td>75.77</td></tr><tr><td>VILLA_L[12]</td><td>RN50</td><td></td><td>×</td><td>82.39</td><td>87.48</td><td>74.84</td><td>76.17</td><td>81.54</td><td>66.84</td><td>76.18</td><td>76.71</td></tr><tr><td>Ours*</td><td></td><td>100k</td><td>√</td><td>85.43</td><td>87.48</td><td>79.86</td><td>76.40</td><td>81.35</td><td>66.59</td><td>78.43</td><td>77.86</td></tr><tr><td>Ours*</td><td>RN101</td><td>100k</td><td>√</td><td>85.65</td><td>88.73</td><td>81.16</td><td>77.55</td><td>82.26</td><td>68.99</td><td>79.25</td><td>80.01</td></tr></table>",
|
| 604 |
+
"bbox": [
|
| 605 |
+
187,
|
| 606 |
+
140,
|
| 607 |
+
805,
|
| 608 |
+
387
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 5
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "4.2 Implementing Details ",
|
| 615 |
+
"text_level": 1,
|
| 616 |
+
"bbox": [
|
| 617 |
+
174,
|
| 618 |
+
411,
|
| 619 |
+
362,
|
| 620 |
+
426
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 5
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "We train our model with AdamW [32]. The initial learning rate is set to 1e-4 while the learning rate of image backbone and context encoder is set to 1e-5. We initialized weights in the transformer encoder and decoder with Xavier initialization [14]. For image backbone, we experiment with the popular ResNet-50 and ResNet-101 networks [15] where weights are initialized from corresponding ImageNet-pretrained models. For the context encoder and phrase encoder, we use an uncased version of BERT model [8] with weights initialized from pretrained checkpoints provided by HuggingFace [49]. For data augmentation, we scale images such that the longest side is 640 pixels and follow [51] to do random intensity saturation and affine transforms. We remove the random horizontal flip augmentation used in previous work [51] since we notice it causes semantic ambiguity on RefCOCO, likely due to relative location (e.g., left of/right of) specific queries in the dataset. ",
|
| 627 |
+
"bbox": [
|
| 628 |
+
173,
|
| 629 |
+
438,
|
| 630 |
+
825,
|
| 631 |
+
577
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "On Flickr30k dataset, we set the maxium length of context sentence to 90 and maximum number of referring phrases to 16. On the ReferIt and the RefCOCO dataset, only phrase expressions are provided and the task aims to predict a single bounding box for each of the expressions. In those cases, the context sentence is taken as the referring phrase expression itself. We set the maximum length of context sentence on these two datasets to 40. To fairly compare with pretrained methods, we use region description split in the VisualGenome [25] to pretrain our model. The dataset contains approximately $1 0 0 \\mathrm { k }$ images and we remove the images that appear in Flickr30k Entities and RefCOCO/RefCOCOg/RefCOCO+’s validation and test set to avoid potential test data leak. For all the pretrained methods, we train the model on pretraining dataset for 6 epoches. We find that longer pretraining schedule gives better performance, but since the focus of this paper is not on pretraining methods, we stick to shorter pretraining schedules to save computational resources. All experiments are conducted using 4 Nvidia 2080TI GPU with batch size as 32. For all the results given, we run experiments several times with random seeds and the error bars are within $\\pm 0 . 5 \\%$ . ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
174,
|
| 640 |
+
583,
|
| 641 |
+
825,
|
| 642 |
+
762
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 5
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "4.3 Quantitative Analysis ",
|
| 649 |
+
"text_level": 1,
|
| 650 |
+
"bbox": [
|
| 651 |
+
176,
|
| 652 |
+
781,
|
| 653 |
+
362,
|
| 654 |
+
796
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 5
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "Evaluation Metrics. For referring expression comprehension (REC), consistent with prior works, we use precision as the evaluation metric. We mark a referring detection as correct when the intersection-over-union (IoU) between the predicted bounding box and ground truth is larger than 0.5. For referring expression segmentation (RES), we reported the Mean IoU (MIoU) between the predicted segmentation mask and ground truth mask. ",
|
| 661 |
+
"bbox": [
|
| 662 |
+
174,
|
| 663 |
+
808,
|
| 664 |
+
825,
|
| 665 |
+
877
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 5
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "REC and RES on RefCOCO/RefCOCO $+$ /RefCOCOg. Our model addresses REC and RES tasks jointly. We compare their respective performances with the state-of-the-art in Table 1 and 2. ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
173,
|
| 674 |
+
882,
|
| 675 |
+
820,
|
| 676 |
+
911
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 5
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "table",
|
| 682 |
+
"img_path": "images/7b6d9ab4f318c2df954e6974ae07467e62e3ebb51838ea47c231e15ae55d7e80.jpg",
|
| 683 |
+
"table_caption": [
|
| 684 |
+
"Table 2: Comparison on RES tasks. Performance on RefCOCO/RefCOCO $+$ /RefCOCOg datasets [55] is reported. Ours∗ denotes that pretraining is used. RN50 abd RN101 refer to ResNet50 and ResNet101 [15] respectively; DN53 refers to DarkNet53 [43] backbone. "
|
| 685 |
+
],
|
| 686 |
+
"table_footnote": [],
|
| 687 |
+
"table_body": "<table><tr><td rowspan=\"2\">Methods</td><td rowspan=\"2\">Backbone</td><td colspan=\"3\">RefCOCO</td><td colspan=\"3\">RefCOCO+</td><td colspan=\"2\">RefCOCOg</td><td rowspan=\"2\">Inference time(ms)</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>DMN [38]</td><td>RN101</td><td>49.78</td><td>54.83</td><td>45.13</td><td>38.88</td><td>44.22</td><td>32.29</td><td>-</td><td>-</td><td>-</td></tr><tr><td>MAttNet [56]</td><td>RN101</td><td>56.51</td><td>62.37</td><td>51.70</td><td>46.67</td><td>52.39</td><td>40.08</td><td>47.64</td><td>48.61</td><td>378</td></tr><tr><td>NMTree [29]</td><td>RN101</td><td>56.59</td><td>63.02</td><td>52.06</td><td>47.40</td><td>53.01</td><td>41.56</td><td>46.59</td><td>47.88</td><td>1</td></tr><tr><td>Lang2seg [6]</td><td>RN101</td><td>58.90</td><td>61.77</td><td>53.81</td><td>-</td><td>-</td><td>-</td><td>46.37</td><td>46.95</td><td></td></tr><tr><td>BCAM[20]</td><td>RN101</td><td>61.35</td><td>63.37</td><td>59.57</td><td>48.57</td><td>52.87</td><td>42.13</td><td>-</td><td>=</td><td></td></tr><tr><td>CMPC[21]</td><td>RN101</td><td>61.36</td><td>64.53</td><td>59.64</td><td>49.56</td><td>53.44</td><td>43.23</td><td>=</td><td>=</td><td>=</td></tr><tr><td>MCN+ASNLS [36]</td><td>DN53</td><td>62.44</td><td>64.20</td><td>59.71</td><td>50.62</td><td>54.99</td><td>44.69</td><td>49.22</td><td>49.40</td><td>56</td></tr><tr><td>CGAN [35]</td><td>DN53</td><td>64.86</td><td>68.04</td><td>62.07</td><td>51.03</td><td>55.51</td><td>44.06</td><td>51.01</td><td>51.69</td><td>-</td></tr><tr><td>LTS [22]</td><td>DN53</td><td>65.43</td><td>67.76</td><td>63.08</td><td>54.21</td><td>58.32</td><td>48.02</td><td>54.40</td><td>54.25</td><td>1</td></tr><tr><td>Ours</td><td>RN50</td><td>69.94</td><td>72.80</td><td>66.13</td><td>60.9</td><td>65.20</td><td>53.45</td><td>57.69</td><td>58.37</td><td>38</td></tr><tr><td>Ours</td><td>RN101</td><td>70.56</td><td>73.49</td><td>66.57</td><td>61.08</td><td>64.69</td><td>52.73</td><td>58.73</td><td>58.51</td><td>41</td></tr><tr><td>Ours*</td><td>RN50</td><td>73.61</td><td>75.22</td><td>69.80</td><td>65.30</td><td>69.69</td><td>56.98</td><td>65.70</td><td>65.41</td><td>38</td></tr><tr><td>Ours*</td><td>RN101</td><td>74.34</td><td>76.77</td><td>70.87</td><td>66.75</td><td>70.58</td><td>59.40</td><td>66.63</td><td>67.39</td><td>41</td></tr></table>",
|
| 688 |
+
"bbox": [
|
| 689 |
+
207,
|
| 690 |
+
137,
|
| 691 |
+
789,
|
| 692 |
+
295
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 6
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "image",
|
| 698 |
+
"img_path": "images/ae52ea765ab73627d130406f12ccbc83f1847c53fe2d5875520aa3f4dee6d22d.jpg",
|
| 699 |
+
"image_caption": [
|
| 700 |
+
"Figure 2: Qualitative Evaluation. In (a) comparison to MCN [36] on REC is shown; orange, blue and red bounding boxes correspond to outputs from MCN, our model and the ground truth. In (b) similar comparison on RES is made. The attention map is drawn from the last layer of the decoder. We add mosaic to all human face to protect personal information. "
|
| 701 |
+
],
|
| 702 |
+
"image_footnote": [],
|
| 703 |
+
"bbox": [
|
| 704 |
+
187,
|
| 705 |
+
323,
|
| 706 |
+
807,
|
| 707 |
+
585
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 6
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "In Table 1, the model is first compared with previous one-stage and two-stage approaches for REC. Without bells and whistles, we observe a consistent performance boost of $+ 2 . 7 \\% / + 4 \\% / + 2 . 1 \\%$ on RefCOCO, $+ 6 . 6 \\% / + 4 . 3 \\% / + 8 . 5 \\%$ on $\\operatorname { R e f C O C O + }$ and $+ 4 . 4 \\% / + 5 . 1 \\%$ on RefCOCOg. To compare with pretrained BERT methods, we use the pretraining strategy discussed in Section 3.3. As results show, our model achieves comprehensive advantage and shows distinct improvement on some splits, even compared to advance BERT models that use $4 0 \\times$ more data in pretraining. Table 2 illustrates results on RES task in terms of MIoU score. It can be seen that our model achieves the best performance; substantially better than the state-of-art. We further observe that pretraining on the REC task gives a huge performance boost to the RES task, even when no segmentation mask is used in pre-training. Multi-task training enables the model to leverage performance boost in one task to improve the other. ",
|
| 714 |
+
"bbox": [
|
| 715 |
+
173,
|
| 716 |
+
683,
|
| 717 |
+
825,
|
| 718 |
+
835
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 6
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "We show the inference time for our model in Table 2. Our model can directly decode all query phrases in an image in parallel, allowing it to reach real-time performance. Importantly, note the corresponding scores for our model in Table 1 and Table 2 are based on the output of a single multitask model that predicts referring detection box and segmentation mask simultaneously. The only related work that shares this property is the MCN [36], which has substantially inferior performance. ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
174,
|
| 727 |
+
842,
|
| 728 |
+
825,
|
| 729 |
+
911
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 6
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "table",
|
| 735 |
+
"img_path": "images/2f7d735b2d283889a4ea7c36cfc744f5cda137142070389476e1db0424a715ec.jpg",
|
| 736 |
+
"table_caption": [
|
| 737 |
+
"Table 3: Comparison with State-of-The-Art Methods. Table illustrates performance on the test set of ReferItGame [24] and Flickr30K Entities [41] datasets in terms of top-1 accuracy $( \\% )$ . "
|
| 738 |
+
],
|
| 739 |
+
"table_footnote": [],
|
| 740 |
+
"table_body": "<table><tr><td>Models</td><td>Backbone</td><td>ReferItGame test</td><td>Flickr30K test</td><td>Inference time on Flickr30k(ms)</td></tr><tr><td colspan=\"5\">Two-stage</td></tr><tr><td>MAttNet [56]</td><td>RN101</td><td>29.04</td><td>-</td><td>320</td></tr><tr><td>Similarity Net [48]</td><td>RN101</td><td>34.54</td><td>60.89</td><td>184</td></tr><tr><td>CITE [42]</td><td>RN101</td><td>35.07</td><td>61.33</td><td>196</td></tr><tr><td>DDPN[57]</td><td>RN101</td><td>63.00</td><td>73.30</td><td>-</td></tr><tr><td colspan=\"5\">One-stage</td></tr><tr><td>SSG[4]</td><td>DN53</td><td>54.24</td><td>-</td><td>25</td></tr><tr><td>ZSGNet [46]</td><td>RN50</td><td>58.63</td><td>58.63</td><td>-</td></tr><tr><td>FAOA [51]</td><td>DN53</td><td>60.67</td><td>68.71</td><td>23</td></tr><tr><td>RCCF[26]</td><td>DLA34</td><td>63.79</td><td>-</td><td>25</td></tr><tr><td>ReSC-Large [52]</td><td>DN53</td><td>64.60</td><td>69.28</td><td>36</td></tr><tr><td>Ours</td><td>RN50</td><td>70.81</td><td>78.13</td><td>37(14)</td></tr><tr><td>Ours</td><td>RN101</td><td>71.42</td><td>78.66</td><td>40(15)</td></tr><tr><td>Ours*</td><td>RN50</td><td>75.49</td><td>79.46</td><td>37(14)</td></tr><tr><td>Ours*</td><td>RN101</td><td>76.18</td><td>81.18</td><td>40(15)</td></tr></table>",
|
| 741 |
+
"bbox": [
|
| 742 |
+
305,
|
| 743 |
+
123,
|
| 744 |
+
692,
|
| 745 |
+
291
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 7
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "REC on Flickr30k-Entities. For Flickr30k dataset, previous one-stage works [51, 52] extract short phrases from sentences and treated them as separate referring expression comprehension tasks. We argue that in this setting, queries are mostly short phrases and therefore cannot well reflect the model’s ability to comprehend them in context. In contrast, our model, given an image and a caption (con)text sentence, aims to predict bounding boxes for all referred entities in the sentence. Doing so gives several advantages: 1. We are able to contextualize referring expressions given all other referring expressions and (con)text provided by the sentence. 2. Locations for all phrases can be inferred in one forward pass of the network, which saves a lot of computation as compared to previous one-stage approaches [51, 52] that process one phrase at a time. Note that our task formulation is consistent with some two-stage models [1, 9], but is unique for a one stage approach. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
173,
|
| 754 |
+
318,
|
| 755 |
+
825,
|
| 756 |
+
457
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 7
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "In Table 3 we compare our results with state-of-the-art methods. Without pretraining, we obtain a huge performance boost compared to both previous one-stage $( + 1 3 . 5 4 \\% )$ and two-stage $( + 7 . 3 1 \\% )$ state-of-the art methods. By using pretrained models, we observe that our model tends to generalize better on the test set and gives even better performance. We also provide comparison of inference time both per image and (per-expression), since our model can amortize inference across expressions. Per-expression, our inference time is substantially lower than all prior methods. ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
174,
|
| 765 |
+
463,
|
| 766 |
+
825,
|
| 767 |
+
546
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 7
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "REC on ReferIt. Since ReferIt is a relative small dataset, we use a slightly smaller model which contains 3 cross attention layers in the query decoder. The results are shown in Table 3. Our model is able to perform better, by a large margin, than even the latest one-stage methods. We also observe a consistent boost brought by pretraining. ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
174,
|
| 776 |
+
553,
|
| 777 |
+
825,
|
| 778 |
+
608
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 7
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "4.4 Qualitative Analysis ",
|
| 785 |
+
"text_level": 1,
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
638,
|
| 789 |
+
352,
|
| 790 |
+
654
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 7
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "In Figure 2, we show our qualitative comparison with previous state-of-the-art multi-task model – MCN [36]. The first two rows of Figure 2(a) show failure cases of MCN that can be better handled by our model. We observe that MCN appears to fail because it neglects some attributes in referring expression (e.g., \"yellow drink\" and \"blue striped shirt\"), while our model is able to better model the query and pay attention to object attributes. In the last row, we shows several failure cases of our model. For the first case, the query requires the model to have the ability to recognize number $\" 4 4 \"$ . For the second and third case, there is visual ambiguity to identify the nearest glass to the bowl or to determine which bear(brown or white) has the longest leg. ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
173,
|
| 799 |
+
669,
|
| 800 |
+
826,
|
| 801 |
+
781
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 7
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "In Figure 2(b), we show qualitative comparison in terms of referred segmentation mask. Compared to MCN, our model is able to output more detailed object shape and finer outlines. Moreover, our model shows the ability to handle shadows (e.g., the right bottom of the donut) and occlusions (e.g., the man occluded by another man’s arm) and predict smoother segmentation mask. We also give a result on a challenging case in the last row, where the texture boundary of the two giraffe is hard to distinguish. Despite imperfections, our model is still able to focus on the giraffe’s head in the foreground and performs much better than MCN. Part of our model’s ability to generate fine-grained mask can be explained by better localization ability brought by the REC task, in which case the RES head can focus on tuning the shape and boundary of the mask. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
786,
|
| 811 |
+
825,
|
| 812 |
+
911
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 7
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "table",
|
| 818 |
+
"img_path": "images/62b5dbc5a955b227a6187f9be9633628854e5042bfc8f0b7374e39cf046f79d9.jpg",
|
| 819 |
+
"table_caption": [
|
| 820 |
+
"Table 4: Ablation studies. Table on the top ablates our multi-task and pretraining schehme on $\\operatorname { R e f C O C O } / + / \\mathrm { g }$ validation set. Table on the bottom ablates on core components of our model. "
|
| 821 |
+
],
|
| 822 |
+
"table_footnote": [],
|
| 823 |
+
"table_body": "<table><tr><td>REC</td><td>RES Pretrain</td><td>REC Acc↑</td><td>RESMiou↑</td><td>IE</td></tr><tr><td>√</td><td>√</td><td>81.08 /70.02/68.15</td><td>66.03/58.39/54.61 =</td><td>23.52%</td></tr><tr><td>√</td><td>√</td><td>81.82 / 71.13 /69.32</td><td>69.94 / 60.90 / 57.69</td><td>4.73%</td></tr><tr><td>√</td><td>√</td><td>85.01/75.46/77.96</td><td>=</td><td></td></tr><tr><td>√</td><td>√ √</td><td>85.43 / 76.40 / 78.43</td><td>73.61 / 65.30 / 65.70</td><td>4.48%</td></tr></table>",
|
| 824 |
+
"bbox": [
|
| 825 |
+
272,
|
| 826 |
+
123,
|
| 827 |
+
725,
|
| 828 |
+
194
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 8
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "table",
|
| 834 |
+
"img_path": "images/e38a4a08de5d04aa5bdeaeb4f9cfc37b461ee0174c095a29856c670714270bce.jpg",
|
| 835 |
+
"table_caption": [
|
| 836 |
+
"Table 5: Results on RefCOCO $^ +$ Dataset with Different Input Resolutions. Our methods correspond to the RN50 model without pretraining. "
|
| 837 |
+
],
|
| 838 |
+
"table_footnote": [],
|
| 839 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Flickr30k</td></tr><tr><td rowspan=1 colspan=1>Model component-w/o Query Decoder-w/o Context Encoder</td><td rowspan=1 colspan=1>49.3873.68</td></tr><tr><td rowspan=1 colspan=1>Query Encoder-w/o Context&Phrase Feature-w/o Context Feature-w/o Phrase Feature</td><td rowspan=1 colspan=1>42.0576.6477.02</td></tr><tr><td rowspan=1 colspan=1>Full model</td><td rowspan=1 colspan=1>78.13</td></tr></table>",
|
| 840 |
+
"bbox": [
|
| 841 |
+
370,
|
| 842 |
+
198,
|
| 843 |
+
625,
|
| 844 |
+
304
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 8
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "table",
|
| 850 |
+
"img_path": "images/0ef955392457586b7b877d1bc31b2791dfcab262386f5c6b8f7d22096d7eb881.jpg",
|
| 851 |
+
"table_caption": [],
|
| 852 |
+
"table_footnote": [],
|
| 853 |
+
"table_body": "<table><tr><td rowspan=\"2\">Models</td><td rowspan=\"2\">Resolution</td><td colspan=\"3\">REC(prec@0.5)</td><td colspan=\"3\">RES(MIoU)</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>FAOA [51]</td><td>256× 256</td><td>56.81</td><td>60.23</td><td>49.60</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ReSC-Large [52]</td><td>256× 256</td><td>63.59</td><td>68.36</td><td>56.81</td><td>-</td><td>-</td><td>1</td></tr><tr><td>CMPC[21]</td><td>320×320</td><td>1</td><td>-</td><td>1</td><td>49.56</td><td>53.44</td><td>43.23</td></tr><tr><td>LTS [22]</td><td>416× 416</td><td>-</td><td>=</td><td>=</td><td>54.21</td><td>58.32</td><td>48.02</td></tr><tr><td>MCN [36]</td><td>416× 416</td><td>67.16</td><td>72.86</td><td>57.31</td><td>50.62</td><td>54.99</td><td>44.69</td></tr><tr><td>Ours</td><td>256× 256</td><td>70.05</td><td>73.29</td><td>61.48</td><td>58.26</td><td>61.09</td><td>52.20</td></tr><tr><td>Ours</td><td>320×320</td><td>70.03</td><td>73.23</td><td>61.52</td><td>58.42</td><td>61.48</td><td>52.34</td></tr><tr><td>Ours</td><td>416× 416</td><td>71.50</td><td>75.87</td><td>61.71</td><td>61.00</td><td>64.48</td><td>52.44</td></tr><tr><td>Ours</td><td>640× 640</td><td>71.58</td><td>75.96</td><td>62.16</td><td>61.08</td><td>64.69</td><td>52.73</td></tr></table>",
|
| 854 |
+
"bbox": [
|
| 855 |
+
254,
|
| 856 |
+
344,
|
| 857 |
+
738,
|
| 858 |
+
477
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 8
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "4.5 Ablation Studies ",
|
| 865 |
+
"text_level": 1,
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
496,
|
| 869 |
+
328,
|
| 870 |
+
511
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 8
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "We first consider the importance of the multi-task setup in Table 4 (top). Results indicate that multi-task training consistently boosts both REC and RES performance on Refcoco $/ + / \\mathrm { g }$ datasets by a considerable margin. More specifically, we observe that REC loss helps the transformer to better locate the referred object and converge faster in early stages of training. At the same time, RES loss aids the model with more fine-grained information on the shape of the referred region, which helps to further enhance the accuracy. IE here is Inconsistency Error metric originally used in [36] to measure the prediction conflict between the REC and RES task. We can see that joint training of RES and REC greatly reduce the inconsistency between the two tasks. Note that our model also has a much lower multi-task inconsistency compared to MCN [36], with a corresponding IE score of $7 . 5 4 \\% ( - 4 0 \\% )$ . This shows that our model can do better collaborative learning. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
174,
|
| 879 |
+
525,
|
| 880 |
+
825,
|
| 881 |
+
662
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 8
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Next, we validate the design of our network architecture. We report our scores on the Flickr30k test sets. In Table 4 (bottom), we ablate the model’s major components and features used to form the query. Without (w/o) context encoder indicates that we directly use learnable embedding to encode text; w/o Query Decoder means that we directly use the average pooled feature from the encoder to predict a single referred output. We can see that the context encoder plays an important role in providing good textual representation for further multi-modal fusion. Query encoders are also quite important without which we also observe a big performance drop. For the ablation on query features, we observe that both context feature and phrase features are crucial without which the performance will decrease considerably. The table also showed that the network will not work without guidance of both context and phrase features since we cannot establish a correspondence between multiple queries and outputs in such a case. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
173,
|
| 890 |
+
670,
|
| 891 |
+
825,
|
| 892 |
+
821
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 8
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "In RES and REC tasks, the size of input image is a matter of trade off between performance and speed, which is largely effected by the network architecture. Despite that our model is designed to be able to process $6 4 0 \\times 6 4 0$ images at real time speed, we also test our model at different input resolution for reference, as showed in Table 5. Note that for resolution 256 and 320, we adjust strides in the final stage of ResNet to keep the number of visual features sent into visual-lingual encoder roughly the same. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
174,
|
| 901 |
+
828,
|
| 902 |
+
825,
|
| 903 |
+
911
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 8
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "table",
|
| 909 |
+
"img_path": "images/58ec28f4d7afef6e00fce8a5ad66983ca0d90677dabd3a4a9fc9cdfc16a77265.jpg",
|
| 910 |
+
"table_caption": [
|
| 911 |
+
"Table 6: Comparison with Concurrent Work. Performance on RefCOCO/RefCOCO $\\left| + \\right.$ /RefCOCOg datasets [55]. Ours∗ denotes that pretraining is used. All methods use ResNet101 image backbone. "
|
| 912 |
+
],
|
| 913 |
+
"table_footnote": [],
|
| 914 |
+
"table_body": "<table><tr><td rowspan=\"2\">Models</td><td rowspan=\"2\">Visual Features</td><td rowspan=\"2\">Pretrain Images</td><td rowspan=\"2\">Multi- task</td><td colspan=\"3\">RefCOCO</td><td colspan=\"3\">RefCOCO+</td><td rowspan=\"2\">RefC0COg</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>testA</td><td>testB</td><td>val-u</td></tr><tr><td>One-stage:</td><td></td><td></td><td></td><td></td><td></td><td></td><td>val</td><td></td><td></td><td></td><td>test-u</td></tr><tr><td>VGTR [10]</td><td>Bi-LSTM</td><td>None</td><td>×</td><td>79.20</td><td>82.32</td><td>73.78</td><td>63.91</td><td>70.09</td><td>56.51</td><td>65.73</td><td>67.23</td></tr><tr><td>TransVG [7]</td><td>BERT</td><td>None</td><td>×</td><td>81.02</td><td>82.72</td><td>78.35</td><td>64.82</td><td>70.70</td><td>56.94</td><td>68.67</td><td>67.73</td></tr><tr><td>Ours</td><td>BERT</td><td>None</td><td>√</td><td>82.23</td><td>85.59</td><td>76.57</td><td>71.58</td><td>75.96</td><td>62.16</td><td>69.41</td><td>69.40</td></tr><tr><td>Pretrained:</td><td></td><td></td><td>√</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>MDETR [23] Ours*</td><td>RoBERTa BERT</td><td>200k 100k</td><td>√</td><td>86.75 85.65</td><td>89.58 88.73</td><td>81.41 81.16</td><td>79.52 77.55</td><td>84.09 82.26</td><td>70.62 68.99</td><td>81.64 79.25</td><td>80.89 80.01</td></tr></table>",
|
| 915 |
+
"bbox": [
|
| 916 |
+
191,
|
| 917 |
+
125,
|
| 918 |
+
805,
|
| 919 |
+
227
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 9
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "4.6 Comparison with Contemporaneous Work ",
|
| 926 |
+
"text_level": 1,
|
| 927 |
+
"bbox": [
|
| 928 |
+
173,
|
| 929 |
+
238,
|
| 930 |
+
508,
|
| 931 |
+
253
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 9
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "Concurrent and independent to us, very recently, there are some closely related works that use transformers for visual referring tasks [7, 10, 23]. We will briefly discuss some of the differences. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
174,
|
| 940 |
+
263,
|
| 941 |
+
821,
|
| 942 |
+
292
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 9
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "To begin, [7, 10] focus on REC, while our approach is formulated in multi-task setting and solves both REC and RES tasks simultaneously. In addition, our model is faster and is capable of grounding multiple contextualized phrases, while [7, 10] follow previous one-stage approaches and are only able to infer a single expression at a time; leading, in our case, to more accurate results. MDETR [23] leverages contrastive loss and soft token loss to help better match bounding boxes to phrases. In contrast, our method adopts a simple and straightforward method to pre-match bounding boxes to phrases using a one-to-one matching; this leads to simpler learning objective. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
174,
|
| 951 |
+
297,
|
| 952 |
+
825,
|
| 953 |
+
396
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 9
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "We provide quantitative comparison on REC task with these approaches, based on their reported numbers in Table 6. Compared to [7, 10], our model performs substantially better in all, with an exception of RefCOCO testB (where [7] is marginally better), datasets and splits. The biggest improvements can be seen on $\\operatorname { R e f C O C O + }$ , where our model is $1 0 . 4 \\%$ better (or 6.76 points better), than the closest concurrent work of [7], on the Val split; similar sizable improvements are illustrated on other splits, e.g., $9 . 2 \\%$ on $\\operatorname { R e f C O C O + }$ testB. In addition, our approach is considerably faster in runtime, since our model is able to handle multiple queries simultaneously (unlike [7, 10]). Compared to [23], in a pretrained model setting, we see that our model performs similarly on RefCOCO and marginally worse on $\\operatorname { R e f C O C O + }$ and $\\operatorname { R e f C O C O g }$ . This difference can perhaps be attributed to two factors: (1) larger pretrain dataset and longer triaining schedule. (As reported in [23], MDETR takes 224 GPU days to pretrain, while the pretraining for our model is roughly 28 GPU days) (2) using more sophisticated language model (RoBERTa for [23] vs. BERT for us). Limited experiments in Supplemental Material show that indeed, the use of RoBERTa leads to certain improvements. In addition, we setup our method in multi-task setting to solve RES and REC task at the same time, so our formulation while perhaps marginally inferior on REC is more general overall. ",
|
| 960 |
+
"bbox": [
|
| 961 |
+
174,
|
| 962 |
+
401,
|
| 963 |
+
825,
|
| 964 |
+
609
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 9
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "5 Conclusions and Future Work ",
|
| 971 |
+
"text_level": 1,
|
| 972 |
+
"bbox": [
|
| 973 |
+
174,
|
| 974 |
+
622,
|
| 975 |
+
459,
|
| 976 |
+
638
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 9
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "In this work, we present Referring Transformer, a one-step approach to referring expression comprehension (REC) and segmentation (RES). We jointly train our model for RES and REC tasks while enabling contextualized multi-expression references. Our models outperform state-of-the-art by a large margin on five / three datasets for REC / RES respectively, while achieving real-time runtime. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
174,
|
| 985 |
+
646,
|
| 986 |
+
825,
|
| 987 |
+
702
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 9
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "One limitation for our model is that we follow the setup in previous works [51, 52] and assume that each expression refers to only one region. In the future, we plan to explore learning to predict multiple regions for each referring entity if necessary. Large-scale multi-task pretraining has been demonstrated to be very effective for ViLBEERT and other similar architectures; this is complementary to our focus in this paper, and we expect such strategies to further improve the performance. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
174,
|
| 996 |
+
708,
|
| 997 |
+
825,
|
| 998 |
+
779
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 9
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "6 Acknowledgments and Disclosure of Funding ",
|
| 1005 |
+
"text_level": 1,
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
174,
|
| 1008 |
+
796,
|
| 1009 |
+
583,
|
| 1010 |
+
814
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 9
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "This work was funded, in part, by the Vector Institute for AI, Canada CIFAR AI Chair, NSERC CRC, NSERC Discovery and Discovery Accelerator Grants. Resources used in preparing this research were provided, in part, by the Province of Ontario, the Government of Canada through CIFAR, and companies sponsoring the Vector Institute www.vectorinstitute.ai/#partners. Additional hardware support was provided by John R. Evans Leaders Fund CFI grant and Compute Canada under the Resource Allocation Competition award. ",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
174,
|
| 1019 |
+
827,
|
| 1020 |
+
825,
|
| 1021 |
+
911
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 9
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "References \n[1] M. Bajaj, L. Wang, and L. Sigal. G3raphground: Graph-based language grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4281–4290, 2019. \n[2] N. Carion, F. Massa, G. Synnaeve, N. Usunier, A. Kirillov, and S. Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision (ECCV), pages 213–229, 2020. \n[3] K. Chen, R. Kovvuri, and R. Nevatia. Query-guided regression network with context policy for phrase grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 824–832, 2017. \n[4] X. Chen, L. Ma, J. Chen, Z. Jie, W. Liu, and J. Luo. Real-time referring expression comprehension by single-stage grounding network. arXiv preprint arXiv:1812.03426, 2018. \n[5] Y.-C. Chen, L. Li, L. Yu, A. El Kholy, F. Ahmed, Z. Gan, Y. Cheng, and J. Liu. Uniter: Universal image-text representation learning. In European Conference on Computer Vision (ECCV), pages 104–120, 2020. \n[6] Y. W. Chen, Y. H. Tsai, T. Wang, Y. Y. Lin, and M. H. Yang. Referring expression object segmentation with caption-aware consistency. In Proceedings of the British Machine Vision Conference (BMVC), 2019. \n[7] J. Deng, Z. Yang, T. Chen, W. Zhou, and H. Li. TransVG: End-to-end visual grounding with transformers. arXiv preprint arXiv:2104.08541, 2021. \n[8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, 2019. \n[9] P. Dogan, L. Sigal, and M. Gross. Neural sequential phrase grounding (seqground). In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4175–4184, 2019. \n[10] Y. Du, Z. Fu, Q. Liu, and Y. Wang. Visual grounding with transformers. arXiv preprint arXiv:2105.04281, 2021. \n[11] K. Duan, S. Bai, L. Xie, H. Qi, Q. Huang, and Q. Tian. Centernet: Keypoint triplets for object detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 6569–6578, 2019. \n[12] Z. Gan, Y.-C. Chen, L. Li, C. Zhu, Y. Cheng, and J. Liu. Large-scale adversarial training for vision-andlanguage representation learning. In Proceedings of the International Conference on Neural Information Processing Systems (NeurIPS), 2020. \n[13] P. Gao, M. Zheng, X. Wang, J. Dai, and H. Li. Fast convergence of detr with spatially modulated co-attention. arXiv preprint arXiv:2101.07448, 2021. \n[14] X. Glorot and Y. Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pages 249–256, 2010. \n[15] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016. \n[16] K. He, G. Gkioxari, P. Dollár, and R. Girshick. Mask r-cnn. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2961–2969, 2017. \n[17] R. Hong, D. Liu, X. Mo, X. He, and H. Zhang. Learning to compose and reason with language tree structures for visual grounding. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2019. \n[18] R. Hu, M. Rohrbach, and T. Darrell. Segmentation from natural language expressions. In European Conference on Computer Vision (ECCV), pages 108–124, 2016. \n[19] R. Hu, M. Rohrbach, J. Andreas, T. Darrell, and K. Saenko. Modeling relationships in referential expressions with compositional modular networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1115–1124, 2017. \n[20] Z. Hu, G. Feng, J. Sun, L. Zhang, and H. Lu. Bi-directional relationship inferring network for referring image segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. \n[21] S. Huang, T. Hui, S. Liu, G. Li, Y. Wei, J. Han, L. Liu, and B. Li. Referring image segmentation via cross-modal progressive comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. \n[22] Y. Jing, T. Kong, W. Wang, L. Wang, L. Li, and T. Tan. Locate then segment: A strong pipeline for referring image segmentation. arXiv preprint arXiv:2103.16284, 2021. \n[23] A. Kamath, M. Singh, Y. LeCun, I. Misra, G. Synnaeve, and N. Carion. MDETR–modulated detection for end-to-end multi-modal understanding. arXiv preprint arXiv:2104.12763, 2021. \n[24] S. Kazemzadeh, V. Ordonez, M. Matten, and T. Berg. Referitgame: Referring to objects in photographs of natural scenes. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 787–798, 2014. \n[25] R. Krishna, Y. Zhu, O. Groth, J. Johnson, K. Hata, J. Kravitz, S. Chen, Y. Kalantidis, L.-J. Li, D. A. Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision (IJCV), 123(1):32–73, 2017. \n[26] Y. Liao, S. Liu, G. Li, F. Wang, Y. Chen, C. Qian, and B. Li. A real-time cross-modality correlation filtering method for referring expression comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. \n[27] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft coco: Common objects in context. In European Conference on Computer Vision (ECCV), pages 740–755, 2014. \n[28] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollár. Focal loss for dense object detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2980–2988, 2017. \n[29] D. Liu, H. Zhang, F. Wu, and Z.-J. Zha. Learning to assemble neural module tree networks for visual grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4673–4682, 2019. \n[30] X. Liu, Z. Wang, J. Shao, X. Wang, and H. Li. Improving referring expression grounding with crossmodal attention-guided erasing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1950–1959, 2019. \n[31] J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3431– 3440, 2015. \n[32] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019. \n[33] J. Lu, D. Batra, D. Parikh, and S. Lee. ViLBERT: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Proceedings of the International Conference on Neural Information Processing Systems (NeurIPS), pages 13–23, 2019. \n[34] J. Lu, V. Goswami, M. Rohrbach, D. Parikh, and S. Lee. 12-in-1: Multi-task vision and language representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 10437–10446, 2020. \n[35] G. Luo, Y. Zhou, R. Ji, X. Sun, J. Su, C.-W. Lin, and Q. Tian. Cascade grouped attention network for referring expression segmentation. In ACM International Conference on Multimedia, 2020. \n[36] G. Luo, Y. Zhou, X. Sun, L. Cao, C. Wu, C. Deng, and R. Ji. Multi-task collaborative network for joint referring expression comprehension and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. \n[37] J. Mao, J. Huang, A. Toshev, O. Camburu, A. L. Yuille, and K. Murphy. Generation and comprehension of unambiguous object descriptions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11–20, 2016. \n[38] E. Margffoy-Tuay, J. C. Pérez, E. Botero, and P. Arbeláez. Dynamic multimodal instance segmentation guided by natural language queries. In European Conference on Computer Vision (ECCV), 2018. \n[39] F. Milletari, N. Navab, and S.-A. Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In International Conference on 3D Vision (3DV), pages 565–571, 2016. \n[40] V. K. Nagaraja, V. I. Morariu, and L. S. Davis. Modeling context between objects for referring expression understanding. In European Conference on Computer Vision (ECCV), pages 792–807, 2016. \n[41] B. A. Plummer, L. Wang, C. M. Cervantes, J. C. Caicedo, J. Hockenmaier, and S. Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2641–2649, 2015. \n[42] B. A. Plummer, P. Kordas, M. H. Kiapour, S. Zheng, R. Piramuthu, and S. Lazebnik. Conditional image-text embedding networks. In European Conference on Computer Vision (ECCV), pages 249–264, 2018. \n[43] J. Redmon and A. Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018. \n[44] S. Ren, K. He, R. Girshick, and J. Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 39(6): 1137–1149, 2017. \n[45] H. Rezatofighi, N. Tsoi, J. Gwak, A. Sadeghian, I. Reid, and S. Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 658–666, 2019. \n[46] A. Sadhu, K. Chen, and R. Nevatia. Zero-shot grounding of objects from natural language queries. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4694–4703, 2019. \n[47] H. Tan and M. Bansal. Lxmert: Learning cross-modality encoder representations from transformers. Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019. \n[48] L. Wang, Y. Li, J. Huang, and S. Lazebnik. Learning two-branch neural networks for image-text matching tasks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 41(2):394–407, 2018. \n[49] T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, J. Davison, S. Shleifer, P. von Platen, C. Ma, Y. Jernite, J. Plu, C. Xu, T. L. Scao, S. Gugger, M. Drame, Q. Lhoest, and A. M. Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 38–45, 2020. \n[50] S. Yang, G. Li, and Y. Yu. Propagating over phrase relations for one-stage visual grounding. In European Conference on Computer Vision, pages 589–605. Springer, 2020. \n[51] Z. Yang, B. Gong, L. Wang, W. Huang, D. Yu, and J. Luo. A fast and accurate one-stage approach to visual grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4683–4693, 2019. \n[52] Z. Yang, T. Chen, L. Wang, and J. Luo. Improving one-stage visual grounding by recursive sub-query construction. In European Conference on Computer Vision (ECCV), 2020. \n[53] L. Ye, M. Rochan, Z. Liu, and Y. Wang. Cross-modal self-attention network for referring image segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. \n[54] F. Yu, J. Tang, W. Yin, Y. Sun, H. Tian, H. Wu, and H. Wang. Ernie-vil: Knowledge enhanced visionlanguage representations through scene graph. arXiv preprint arXiv:2006.16934, 2020. \n[55] L. Yu, P. Poirson, S. Yang, A. C. Berg, and T. L. Berg. Modeling context in referring expressions. In European Conference on Computer Vision (ECCV), pages 69–85, 2016. \n[56] L. Yu, Z. Lin, X. Shen, J. Yang, X. Lu, M. Bansal, and T. L. Berg. Mattnet: Modular attention network for referring expression comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1307–1315, 2018. \n[57] Z. Yu, J. Yu, C. Xiang, Z. Zhao, Q. Tian, and D. Tao. Rethinking diversified and discriminative proposal generation for visual grounding. International Joint Conference on Artificial Intelligence (IJCAI), 2018. \n[58] X. Zhu, W. Su, L. Lu, B. Li, X. Wang, and J. Dai. Deformable detr: Deformable transformers for end-to-end object detection. In International Conference on Learning Representations (ICLR), 2021. ",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
171,
|
| 1030 |
+
74,
|
| 1031 |
+
828,
|
| 1032 |
+
916
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 10
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
169,
|
| 1041 |
+
69,
|
| 1042 |
+
828,
|
| 1043 |
+
920
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 11
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
171,
|
| 1052 |
+
56,
|
| 1053 |
+
828,
|
| 1054 |
+
857
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 12
|
| 1057 |
+
}
|
| 1058 |
+
]
|
parse/train/J64lDCrYGi/J64lDCrYGi_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/J64lDCrYGi/J64lDCrYGi_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/JrsfBJtDFdI/JrsfBJtDFdI_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJlDDnVKwS/SJlDDnVKwS.md
ADDED
|
@@ -0,0 +1,440 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# IMPROVING EVOLUTIONARY STRATEGIES WITH GENERATIVE NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Evolutionary Strategies (ES) are a popular family of black-box zeroth-order optimization algorithms which rely on search distributions to efficiently optimize a large variety of objective functions. This paper investigates the potential benefits of using highly flexible search distributions in ES algorithms, in contrast to standard ones (typically Gaussians). We model such distributions with Generative Neural Networks (GNNs) and introduce a new ES algorithm that leverages their expressiveness to accelerate the stochastic search. Because it acts as a plug-in, our approach allows to augment virtually any standard ES algorithm with flexible search distributions. We demonstrate the empirical advantages of this method on a diversity of objective functions.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
We are interested in the global minimization of a black-box objective function, only accessible through a zeroth-order oracle. In many instances of this problem the objective is expensive to evaluate, which excludes brute force methods as a reasonable mean of optimization. Also, as the objective is potentially non-convex and multi-modal, its global optimization cannot be done greedily but requires a careful balance between exploitation and exploration of the optimization landscape (the surface defined by the objective).
|
| 12 |
+
|
| 13 |
+
The family of algorithms used to tackle such a problem is usually dictated by the cost of one evaluation of the objective function (or equivalently, by the maximum number of function evaluations that are reasonable to make) and by a precision requirement. For instance, Bayesian Optimization (Jones et al., 1998; Shahriari et al., 2016) targets problems of very high evaluation cost, where the global minimum must be approximately discovered after a few hundreds of function evaluations. When aiming for a higher precision and hence having a larger budget (e.g. thousands of function evaluations), a popular algorithm class is the one of Evolutionary Strategies (ES) (Rechenberg, 1978; Schwefel, 1977), a family of heuristic search procedures.
|
| 14 |
+
|
| 15 |
+
ES algorithms rely on a search distribution, which role is to propose queries of potentially small value of the objective function. This search distribution is almost always chosen to be a multivariate Gaussian. It is namely the case of the Covariance Matrix Adaptation Evolution Strategies (CMA-ES) (Hansen & Ostermeier, 2001), a state-of-the-art ES algorithm made popular in the machine learning community by its good results on hyper-parameter tuning (Friedrichs & Igel, 2005; Loshchilov & Hutter, 2016). It is also the case for Natural Evolution Strategies (NES) (Wierstra et al., 2008) algorithms, which were recently used for direct policy search in Reinforcement Learning (RL) and shown to compete with state-of-the-art MDP-based RL techniques (Salimans et al., 2017). Occasionally, other distributions have been used; e.g. fat-tails distributions like the Cauchy were shown to outperform the Gaussian for highly multi-modal objectives (Schaul et al., 2011).
|
| 16 |
+
|
| 17 |
+
We argue in this paper that in ES algorithms, the choice of a standard parametric search distribution (Gaussian, Cauchy, ..) constitutes a potentially harmful implicit constraint for the stochastic search of a global minimum. To overcome the limitations of classical parametric search distributions, we propose using flexible distributions generated by bijective Generative Neural Networks (GNNs), with computable and differentiable log-probabilities. We discuss why common existing optimization methods in ES algorithms cannot be directly used to train such models and design a tailored algorithm that efficiently train GNNs for an ES objective. We show how this new algorithm can readily incorporate existing ES algorithms that operates on simple search distributions,
|
| 18 |
+
|
| 19 |
+
# Algorithm 1: Generic ES procedure
|
| 20 |
+
|
| 21 |
+
input: zeroth-order oracle on $f$ , distribution $\pi _ { 0 }$ , population size $\lambda$ repeat
|
| 22 |
+
|
| 23 |
+
(Sampling) Sample $x _ { 1 } , \dotsc , x _ { \lambda } \stackrel { \mathrm { i . i . d } } { \sim } \pi _ { t }$
|
| 24 |
+
(Evaluation) Evaluate $f ( x _ { 1 } ) , \ldots , f ( x _ { n } )$ .
|
| 25 |
+
(Update) Update $\pi _ { t }$ to produce $x$ of potentially smaller objective values. ntil convergence;
|
| 26 |
+
|
| 27 |
+
like the Gaussian. On a variety of objective functions, we show that this extension can significantly accelerate ES algorithms.
|
| 28 |
+
|
| 29 |
+
We formally introduce the problem and provide background on Evolutionary Strategies in Section 2. We discuss the role of GNNs in generating flexible search distributions in Section 3. We explain why usual algorithms fail to train GNNs for an ES objective and introduce a new algorithm in Section 4. Finally we report experimental results in Section 5.
|
| 30 |
+
|
| 31 |
+
# 2 PRELIMINARIES
|
| 32 |
+
|
| 33 |
+
In what follows, the real-valued objective function $f$ is defined over a compact $\mathcal { X }$ and $\pi$ will generically denote a probability density function over $\mathcal { X }$ . We consider the global optimization of $f$ :
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
x ^ { * } \in \operatorname { a r g m i n } _ { x \in \mathcal { X } } f ( x )
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
# 2.1 EVOLUTIONARY STRATEGIES
|
| 40 |
+
|
| 41 |
+
The generic procedure followed by ES algorithms is presented in Algorithm 1. To make the update step tractable, the search distribution is tied to a family of distributions and parametrized by a realvalued parameter vector $\theta$ (e.g. the mean and covariance matrix of a Gaussian), and is referred to as $\pi _ { \theta }$ . This update step constitutes the main difference between ES algorithms.
|
| 42 |
+
|
| 43 |
+
Natural Evolution Strategies One principled way to perform that update is to minimize the expected objective value over samples $x$ drawn from $\pi _ { \theta }$ . Indeed, when the search distribution is parametric and tied to a parameter $\theta$ , this objective can be differentiated with respect to $\theta$ thanks to the log-trick:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
J ( \theta ) \triangleq \mathbb { E } _ { \pi _ { \theta } } \left[ f ( x ) \right] \qquad { \mathrm { ~ a n d ~ } } \qquad { \frac { \partial J ( \theta ) } { \partial \theta } } = \mathbb { E } _ { \pi _ { \theta } } \left[ f ( x ) { \frac { \partial \log \pi _ { \theta } ( x ) } { \partial \theta } } \right]
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
This quantity can be approximated from samples - it is known as the score-function or REINFORCE (Williams, 1992) estimator, and provides a direction of update for $\theta$ . Unfortunately, naively following a stochastic version of the gradient $( 2 ) - \mathtt { a }$ procedure called Plain Gradient Evolutionary Strategies (PGES) – is known to be highly ineffective. PGES main limitation resides in its instability when the search distribution is concentrating, making it unable to precisely locate any local minimum. To improve over the PGES algorithm the authors of Wierstra et al. (2008) proposed to descend $J ( \theta )$ along its natural gradient (Amari, 1998). More precisely, they introduce a trust-region optimization scheme to limit the instability of PGES, and minimize a linear approximation of $J ( \theta )$ under a Kullback-Leibler (KL) divergence constraint:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\begin{array} { r l } { \underset { \delta \theta } { \operatorname { a r g m i n } } } & { { } J ( \theta + \delta \theta ) \simeq J ( \theta ) + \delta \theta ^ { T } \nabla _ { \theta } J ( \theta ) \quad \mathrm { s . t } \quad \mathrm { K L } ( \pi _ { \theta + \delta \theta } | | \pi _ { \theta } ) \leq \epsilon } \end{array}
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
To avoid solving analytically the trust region problem (3), Wierstra et al. (2008) shows that its solution can be approximated by:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\begin{array} { r } { \delta \theta ^ { * } \propto - F _ { \theta } ^ { - 1 } \nabla _ { \theta } J ( \theta ) \quad \mathrm { w h e r e } \quad F _ { \theta } = \mathbb { E } _ { \pi _ { \theta } } \left[ \nabla _ { \theta } \log \pi _ { \theta } ( x ) \nabla _ { \theta } \log \pi _ { \theta } ( x ) ^ { T } \right] } \end{array}
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
is the Fischer Information Matrix (FIM) of $\pi _ { \theta }$ . The parameter $\theta$ is therefore not updated along the negative gradient of $J$ but rather along $F _ { \theta } ^ { - 1 } \nabla _ { \theta } J ( \theta )$ , a quantity known as the natural gradient. The FIM $F _ { \theta }$ is known analytically when $\pi _ { \theta }$ is a multivariate Gaussian and the resulting algorithm, Exponential Natural Evolutionary Strategies (xNES) (Glasmachers et al., 2010) has been shown to reach state-of-the-art performances on a large ES benchmark.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 2: Example of an undesirable behavior of a Gaussian search distribution. The dashed lines represent density level lines of the search distribution. Because the latter cannot have a curved profile, it is forced to drastically reduce its entropy until it reaches the straight part of the valley.
|
| 65 |
+
|
| 66 |
+
CMA-ES Naturally, there exist other strategies to update the search distribution $\pi _ { \theta }$ . For instance, CMA-ES relies on a variety of heuristic mechanisms like covariance matrix adaptation and evolution paths, but is only defined when $\pi _ { \theta }$ is a multivariate Gaussian. Explaining such mechanisms would be out of the scope of this paper, but the interested reader is referred to the work of Hansen (2016) for a detailed tutorial on CMA-ES.
|
| 67 |
+
|
| 68 |
+
# 2.2 LIMITATIONS OF CLASSICAL SEARCH DISTRIBUTIONS
|
| 69 |
+
|
| 70 |
+
ES implicitly balance the need for exploration and exploitation of the optimization landscape. The exploitation phase consists in updating the search distribution, and exploration happens when samples are drawn from the search distribution’s tails. The key role of the search distribution is therefore to produce a support adapted to the landscape’s structure, so that new points are likely to improve over previous samples.
|
| 71 |
+
|
| 72 |
+
We argue here that the choice of a given parametric distribution (the multivariate Gaussian distribution being overwhelmingly represented in state-of-the-art ES algorithms) constitutes a potentially harmful implicit constraint for the stochastic search of a global minimum. For instance, a Gaussian distribution is not adapted to navigate a curved valley because of its inability to continuously curve its density. This lack of flexibility will lead it to drastically reduce its entropy, until the curved valley looks locally straight. At this point, the ES algorithm resembles a hill-climber and barely takes advantage of the exploration abilities of the search distribution. An illustration of this phenomenon is presented in Figure 2 on the Rosenbrock function. Another limitation of classical search distribution is their inability to follow multiple hypothesis, that is to explore at the same time different local minima. Even if mixture models can show such flexibility, hyper-parameters like the number of mixtures have optimal values that are impossible to guess a priori.
|
| 73 |
+
|
| 74 |
+
We want to introduce flexible search distributions to overcome these limitations. Such distributions should, despite their expressiveness, be easily trainable. We should also be concerned when designing them with their role in the exploration/exploitation trade off: a search distribution with too much capacity could over-fit some seemingly good samples, leading to premature convergence. To sum-up, we want to design search-distributions that are:
|
| 75 |
+
|
| 76 |
+
• more flexible than classical distributions
|
| 77 |
+
• yet easily trainable
|
| 78 |
+
• while keeping control over the exploration / exploitation trade-off
|
| 79 |
+
|
| 80 |
+
In the following section, we carefully investigate the class of Generative Neural Networks (GNNs) to find a parametric class of distributions satisfying such properties.
|
| 81 |
+
|
| 82 |
+
# 3 FLEXIBLE SEARCH DISTRIBUTIONS WITH GNNS
|
| 83 |
+
|
| 84 |
+
Generative Neural Networks (MacKay, 1995) have been studied in the context of density estimation and shown to be able to model complex and highly multimodal distributions (Srivastava et al., 2017). We propose here to leverage their expressiveness for ES, and train them in a principled way thanks to the ES objective:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
J ( \pi ) = \mathbb { E } _ { \pi } \left[ f ( x ) \right]
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
As discussed in Section 2, optimizing $J ( \pi )$ with gradient-based methods is possible through the score-function estimator, which requires to be able to compute and efficiently differentiate the logprobabilities of $\pi$ .
|
| 91 |
+
|
| 92 |
+
# 3.1 GNN BACKGROUND
|
| 93 |
+
|
| 94 |
+
The core idea behind a GNN is to map a latent variable $z \in { \mathcal { Z } }$ drawn from a known distribution $\nu _ { \omega }$ to an output variable $x = g _ { \eta } ( z )$ where $g _ { \eta }$ is the forward-pass of a neural network. The parameter $\eta$ represents the weights of this neural network while $\omega$ describe the degrees of freedom of the latent space distribution $\nu _ { \omega }$ . We denote $\theta = ( \omega , \eta )$ and $\pi _ { \boldsymbol { \theta } } ( \boldsymbol { x } )$ the density of the output variable $x$ .
|
| 95 |
+
|
| 96 |
+
For general neural network architectures, it is impossible to compute $\pi _ { \boldsymbol { \theta } } ( \boldsymbol { x } )$ for samples $x$ drawn from the GNN. This is namely why their are often trained with adversarial methods (Goodfellow et al., 2014) for sample generation purposes, bypassing the need of computing densities, but at the expense of a good density estimation (mode-dropping). An alternative to adversarial methods was proposed with variational auto-encoders (Kingma & Welling, 2013) however at the cost of learning two neural networks (an encoder and a decoder). A less computationally expensive method consists in restricting the possible architectures to build bijective GNNs, also known as Normalizing Flows (NF) (Rezende & Mohamed, 2015; Papamakarios et al., 2017), which allows the exact computation of the distribution’s density. Indeed, if $g _ { \eta }$ is a bijection from $\mathcal { Z }$ to $\mathcal { X }$ with inverse $h _ { \eta } \triangleq g _ { \eta } ^ { - 1 }$ , the change of variable formula provides a way to compute $\pi _ { \boldsymbol { \theta } } ( \boldsymbol { x } )$ :
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\pi _ { \boldsymbol { \theta } } ( x ) = \nu _ { \omega } ( h _ { \eta } ( x ) ) \cdot \left| \frac { \partial h _ { \eta } ( x ) } { \partial x } \right|
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
To have a tractable density one therefore needs to ensure that the determinant of the Jacobian $| \partial h _ { \eta } ( x ) / \partial x |$ is easily computable. Several models satisfying these two properties $i . e$ bijectivity and computable Jacobian) have been proposed for density estimation (Rippel & Adams, 2013; Dinh et al., 2014; 2016), and proved their expressiveness despite their relatively simple structure.
|
| 103 |
+
|
| 104 |
+
NFs therefore answer two of our needs when building our new search distribution: flexibility and easiness to train. In this work, we will focus on one NF model: the Non-Linear Independent Component Estimation (Dinh et al., 2014) (NICE) model, for its numerical stability and volume preserving properties.
|
| 105 |
+
|
| 106 |
+
# 3.2 NICE MODEL
|
| 107 |
+
|
| 108 |
+
The authors of NICE proposed to build complex yet invertible transformations through the use of additive coupling layers. An additive coupling layer leaves half of its input unchanged, and adds a non-linear transformation of the first half to the second half. More formally, by noting $\boldsymbol { v } = [ v _ { 1 } , v _ { 2 } ]$ the output of a coupling layer and $u = [ u _ { 1 } , u _ { 2 } ]$ its input, one has:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
v _ { 1 } = u _ { 1 } \quad \mathrm { a n d } \quad v _ { 2 } = u _ { 2 } + t ( u _ { 1 } )
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
where $t$ is an arbitrarily complex transformation - modelled by a Multi-Layer Perceptron (MLP) with learnable weights and biases. This transformation has unit Jacobian determinant and is easily invertible:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
u _ { 1 } = v _ { 1 } \quad \mathrm { a n d } \quad u _ { 2 } = v _ { 2 } - t ( v _ { 1 } )
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
and only requires a feed-forward pass on the MLP $t$ . The choice of the decomposition $u = [ u _ { 1 } , u _ { 2 } ]$ can be arbitrary, and is performed by applying a binary filter to the input. By stacking additive coupling layers, one can create complex distributions, and the inversion of the resulting mapping is independent of the complexity of the neural networks $t$ . The density of the resulting distribution is readily computable thanks to the inverse transform theorem (5).
|
| 121 |
+
|
| 122 |
+
# 3.3 VOLUME PRESERVING PROPERTIES
|
| 123 |
+
|
| 124 |
+
The transformation induced by NICE is volume preserving (it has a unitary Jacobian determinant). This is quite desirable in a ES context, as the role of concentrating the distribution on a minimum can be left to the latent space distribution $\nu _ { \omega }$ . The role of the additive coupling layers is therefore only to introduce non-linearities in the inverse transform $h _ { \eta }$ so that the distribution is better adapted to the optimization landscape. The fact that this fit is volume-preserving (every subset of the latent space has an image in the data space with the same probability mass) encourages the search distribution to align its tails with regions of small value of the optimization landscape, which is likely to improve the quality of future exploration steps. The NICE model therefore fits perfectly our needs for a flexible search distribution that is easy to train, and that provides enough control on the exploration / exploitation trade-off. Other bijective GNN models like the Real-NVP (Dinh et al., 2016) introduce non-volume preserving transformations, which cannot provide such a control. In practice, we observed that using such transformations for ES led to early concentration and premature convergence.
|
| 125 |
+
|
| 126 |
+
# 4 AN EFFICIENT TRAINING ALGORITHM
|
| 127 |
+
|
| 128 |
+
We are now equipped with enough tools to use GNNs for ES: an adapted model (NICE) for our search distribution $\pi _ { \theta }$ , and an objective to train it with:
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
J ( \theta ) = \mathbb { E } _ { \pi _ { \theta } } \left[ f ( x ) \right]
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
Here, $\theta$ describes jointly the free parameters of the latent distribution $\nu _ { \omega }$ and $\eta$ , the weights and biases of the MLPs forming the additive coupling layers.
|
| 135 |
+
|
| 136 |
+
We start this section by explaining why existing training strategies based on the objective (8) are not sufficient to truly leverage the flexibility of GNNs for ES, before introducing a new algorithm tailored for this task.
|
| 137 |
+
|
| 138 |
+
# 4.1 LIMITATIONS OF EXISTING TRAINING STRATEGIES
|
| 139 |
+
|
| 140 |
+
We found that the PGES algorithm (naive stochastic gradient descent of (8) with the score-function estimator) applied to the NICE distribution suffers from the same limitations as when applied to the Gaussian; it is inable to precisely locate any local minimum. As for the Gaussian, training the NICE distribution for ES requires employing more sophisticated algorithms - such as NES.
|
| 141 |
+
|
| 142 |
+
However, using the natural gradient for the GNNs distributions is not trivial. First the Fischer Information Matrix $F _ { \theta }$ is not known analytically and must be estimated via Monte-Carlo sampling, thereby introducing approximation errors. Also, we found that the approximations justifying to follow the descent direction provided by the natural gradient are not adapted to the NICE distribution. Indeed, the assumption behind the NES update (4) is that the loss $\bar { \boldsymbol { J } } ( \theta )$ can be (locally) well approximated by the quadratic objective:
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
J ( \theta + \delta \theta ) = J ( \theta ) + \delta \theta ^ { T } \nabla _ { \theta } J ( \theta ) + \frac { \gamma } { 2 } \delta \theta ^ { T } F _ { \theta } \delta \theta
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
where $\gamma$ is a given non-negative Lagrange multiplier. For NICE, given the highly non-linear nature of $\pi _ { \theta }$ this approximation is bound to fail even close to the current parameter $\theta$ and will lead to spurious updates. A classical technique (Martens, 2010) to avoid such updates is to artificially increase the curvature of the quadratic term, and is known as damping. Practically, this implies using $F _ { \theta } + \beta I$ instead of $F _ { \theta }$ as the local curvature metric, with $\beta$ a non-negative damping parameter.
|
| 149 |
+
|
| 150 |
+
We found that to ensure continuous decrease of $J ( \theta )$ , and because of its highly non-linear nature when using the GNNs, the damping parameter $\beta$ has to be set to such high values that the modifications of the search distribution are too small to quickly make progress and by no means reaches state-of-the-art performances. We observed that even if the training of the additive coupling layers is performed correctly (i.e the distribution has the correct shape), high damping of the latent space parameters prevents the distribution from quickly concentrating when a minimum is found.
|
| 151 |
+
|
| 152 |
+
It is unclear how the damping parameter should be adapted to avoid spurious update, while still allowing the distribution to make large step in the latent space and ensure fast concentration when needed. In the following, we present an alternated minimization scheme to bypass the issues raised by natural gradient training for GNN distributions in a ES context.
|
| 153 |
+
|
| 154 |
+
# 4.2 ALTERNATING MINIMIZATION
|
| 155 |
+
|
| 156 |
+
So far, we used the parameter $\theta$ to describe both $\omega$ and $\eta$ (respectively, the free parameters of the latent space distribution $\nu _ { \omega }$ and the degrees of freedom of the non-linear mapping $g _ { \eta , \ l }$ ), and the
|
| 157 |
+
|
| 158 |
+
optimization over all these parameters was performed jointly. Separating the roles of $\omega$ and $\eta$ , the initial objective (2) can be rewritten as follows:
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
J ( \theta ) = \mathbb { E } _ { z \sim \nu _ { \omega } } \left[ f ( g _ { \eta } ( z ) ) \right] = J ( \omega , \eta )
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
Therefore, the initial objective can be rewritten as the expected value of samples drawn from the latent distribution, under the objective $f \circ g _ { \eta }$ - that is, the representation of the objective function $f$ in the latent space. If $\nu _ { \omega }$ is a standard distribution (i.e efficiently trainable with the natural gradient) and $f \circ g _ { \eta }$ is a well structured function (i.e one for which $\nu _ { \omega }$ is an efficient search distribution), then the single optimization of $\omega$ by classical methods (such as the natural gradient) should avoid the limitations discussed in 2.2. This new representation motivates the design of a new training algorithm that optimizes the parameters $\omega$ and $\eta$ separately.
|
| 165 |
+
|
| 166 |
+
Alternating Minimization In the following, we will replace the notation $\pi _ { \theta }$ with $\pi _ { \omega , \eta }$ to refer to the NICE distribution with parameter $\theta = ( \omega , \eta )$ . We want to optimize $\omega$ and $\eta$ in an alternate fashion, which means performing the following updates at every step of the ES procedure:
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\begin{array} { l } { \omega _ { t + 1 } = \underset { \omega } { \operatorname { a r g m i n } } J ( \omega , \eta _ { t } ) } \\ { \eta _ { t + 1 } = \underset { \eta } { \operatorname { a r g m i n } } J ( \omega _ { t + 1 } , \eta ) } \end{array}
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
This means that at iteration $t$ , samples are drawn from $\pi _ { \omega _ { t } , \eta _ { t } }$ and serve to first optimize the latent space distribution parameters $\omega$ , and then the additive coupling layers parameters $\eta$ . For the following iteration, the population is sampled under πωt+1,ηt+1 .
|
| 173 |
+
|
| 174 |
+
The update (11a) of the latent space parameters is naturally derived from the new representation (10) of the initial objective. Indeed, $\omega$ can be updated via natural gradient ascent of $J ( \omega , \eta _ { t } )$ - that is with keeping $\eta = \eta _ { t }$ fixed. Practically, this therefore reduces to applying a NES algorithm to the latent distribution $\nu _ { \omega }$ on the modified objective function $f \circ g _ { \eta _ { t } }$ .
|
| 175 |
+
|
| 176 |
+
Once the latent space parameters updated, the coupling layers parameters should be optimized with respect to:
|
| 177 |
+
|
| 178 |
+
$$
|
| 179 |
+
J ( \omega _ { t + 1 } , \eta ) = \mathbb { E } _ { \pi _ { \omega _ { t + 1 } , \eta } } \left[ f ( x ) \right]
|
| 180 |
+
$$
|
| 181 |
+
|
| 182 |
+
At this stage, the only available samples are drawn under $\pi _ { \omega _ { t } , \eta _ { t } }$ . To estimate, based on these samples, expectations under $\pi _ { \omega _ { t + 1 } , \eta _ { t } }$ one must use importance propensity scores:
|
| 183 |
+
|
| 184 |
+
$$
|
| 185 |
+
J ( \omega _ { t + 1 } , \eta ) = \mathbb { E } _ { \pi _ { \omega _ { t } , \eta _ { t } } } \left[ f ( x ) \frac { \pi _ { \omega _ { t + 1 } , \eta } ( x ) } { \pi _ { \omega _ { t } , \eta _ { t } } ( x ) } \right]
|
| 186 |
+
$$
|
| 187 |
+
|
| 188 |
+
The straightforward minimization of this off-line objective is known to lead to degeneracies (Swaminathan & Joachims, 2015, Section 4), and must therefore be regularized. For our application, it is also desirable to make sure that the update $\eta$ does not undo the progress made in the latent space - in other words, we want to regularize the change in $f \circ g _ { \eta }$ . To that extent, we adopt a technique proposed in Schulman et al. (2017) and minimize a modification on the initial objective with clipped propensity weights:
|
| 189 |
+
|
| 190 |
+
$$
|
| 191 |
+
\eta _ { t + 1 } = \underset { \eta } { \mathrm { a r g m i n } } \quad \mathbb { E } _ { \pi _ { \omega _ { t + 1 } } , \eta _ { t } } \left[ f ( x ) \mathrm { c l i p } _ { \varepsilon } \left( \frac { \pi _ { \omega _ { t + 1 } , \eta } ( x ) } { \pi _ { \omega _ { t + 1 } , \eta _ { t } } ( x ) } \right) \right]
|
| 192 |
+
$$
|
| 193 |
+
|
| 194 |
+
${ \mathrm { c l i p } } _ { \varepsilon } ( x )$ clips the value of $x$ between $1 - \epsilon$ and $1 + \epsilon$ . The parameter $\varepsilon$ is an hyper-parameter that controls the change in distribution, and the program (14) can be efficiently solved via a gradient descent type algorithm, such as Adam (Kingma & Ba, 2014).
|
| 195 |
+
|
| 196 |
+
To sum up, we propose optimizing the latent distribution and the coupling layers separately. The latent space is optimized by natural gradient descent, and the coupling layers via an off-policy objective with clipped propensity weights. We call this algorithm GNN-ES for Generative Neural Networks Evolutionary Strategies.
|
| 197 |
+
|
| 198 |
+
Latent space optimization It turns out the GNN-ES can be readily modified to incorporate virtually any existing ES algorithms that operates on the simple distribution $\nu _ { \omega }$ . For instance, if $\nu _ { \omega }$ is set to be a multivariate Gaussian with learnable mean and covariance matrix, the latent space optimization (11a) can be performed by either xNES or CMA-ES. This holds for any standard distribution $\nu _ { \omega }$ and any ES algorithm operating on that distribution. This remark allows us to place GNN-ES in a more general framework and to understand it as a way to improve existing ES algorithm, by providing a principled way to learn complex, non-linear transformations on top of rather standard search distributions (like the Gaussian). In what follows, we will use the GNN prefix in front of existing ES algorithm to describe its augmented version with our algorithm, working as a plug-in. Pseudo-code for this general algorithm can be found in Appendix B.
|
| 199 |
+
|
| 200 |
+
# 4.3 ADDITIONAL TOOLS
|
| 201 |
+
|
| 202 |
+
Using historic data ES algorithms typically use small populations of samples to estimate expectations. Such small sample sizes don’t allow for enough data exposure for the GNN to build a meaningful transformation $g _ { \eta }$ . To circumvent this problem, we augment the off-line program (14) with samples for past generations thanks to the fused importance sampling estimator (Peshkin & Shelton, 2002). This technique is classical in similar settings like MDP-based reinforcement learning and counterfactual reasoning (Nedelec et al., 2017; Agarwal et al., 2017) and proves to be essential for our problem. Formally, for a given horizon $T$ that controls how far we look in the past, this amounts to storing the samples $x$ drawn from $\pi _ { \theta _ { t - T + 1 } } , \ldots , \pi _ { \theta _ { t } }$ (as well as their respective scores) in a buffer $\mathcal { H } _ { T }$ . The objective (13) can then be rewritten as:
|
| 203 |
+
|
| 204 |
+
$$
|
| 205 |
+
\mathbb { E } _ { \pi _ { \omega _ { t } , \eta _ { t } } } \left[ f ( x ) \frac { \pi _ { \omega _ { t + 1 } , \eta } ( x ) } { \pi _ { \omega _ { t } , \eta _ { t } } ( x ) } \right] = T \cdot \mathbb { E } _ { x , f ( x ) \in \mathcal { H } _ { T } } \left[ f ( x ) \frac { \pi _ { \omega _ { t + 1 } , \eta } ( x ) } { \pi _ { \theta _ { t - T + 1 } } ( x ) + \dots + \pi _ { \theta _ { t } } ( x ) } \right]
|
| 206 |
+
$$
|
| 207 |
+
|
| 208 |
+
This technique allows to increase the data exposure of the GNN by using past samples (and therefore does not require additional function evaluations) and to reduce the variance of the off-line estimator of the original expectation (12) (Nedelec et al., 2017). To control the change in distribution, the fused propensity weights can then be clipped in a similar fashion than in the program (14).
|
| 209 |
+
|
| 210 |
+
Mode preserving properties To achieve improved exploration, the search distribution should align its tails with the level sets of the objective function. This is not guaranteed when performing the update step (14) since the GNN’s update could simply move the mean of the search distribution without shaping the tails. One way to encourage the GNN’s capacity to be allocated to the tails is to impose a mode-preserving property. If $\mu$ denotes the location of a mode of the latent distribution, then the mode of the distribution $\pi _ { \theta }$ generated by the NICE model is located in $g _ { \eta } ( \mu )$ (see Appendix A for the proof). It is therefore easy to build a map $f _ { \eta }$ based on the initial $g _ { \eta }$ that is mode-preserving:
|
| 211 |
+
|
| 212 |
+
$$
|
| 213 |
+
f _ { \eta } ( z ) \triangleq g _ { \eta } ( z ) - g _ { \eta } ( \mu ) + f _ { \eta _ { t } } ( \mu )
|
| 214 |
+
$$
|
| 215 |
+
|
| 216 |
+
where $\mu _ { t }$ denotes the mode of the latent distribution $\nu _ { \omega }$ at iteration $t$ . Defined as such, $f _ { \eta }$ preserves the mode of the previous search distribution (since $f _ { \eta _ { t + 1 } } ( \mu ) = f _ { \eta _ { t } } ( \mu ) )$ , is trivially still a bijection and remains volume preserving. Using the push-forward map $f _ { \eta }$ instead of $g _ { \eta }$ , we explicitly push the flexibility brought by the GNN to impact only the tails of the search distribution. As detailed in an ablation study presented in Appendix F, this additional tool turns out to be essential in order to use GNNs for ES.
|
| 217 |
+
|
| 218 |
+
# 5 EXPERIMENTAL RESULTS
|
| 219 |
+
|
| 220 |
+
In all that follows, we build the NICE model with three coupling layers. Each coupling layer’s nonlinear mapping $t$ is built with a one hidden layer MLP, with 128 neurons and leaky ReLU (Maas et al., 2013) activation functions. This architecture is kept constant in all our experiments.
|
| 221 |
+
|
| 222 |
+
# 5.1 VISUALIZATION
|
| 223 |
+
|
| 224 |
+
We present here two-dimensional visualizations of the behavior of a GNN distribution trained with GNN-xNES - the latent distribution is therefore Gaussian. Figure 3a displays the density level lines
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
Figure 3: Rosenbrock
|
| 228 |
+
Figure 4: Rastrigin
|
| 229 |
+
|
| 230 |
+
Density level curves (dotted lines) in the data space and in the latent space of the resulting search distribution on the Rosenbrock function. Figure 3b displays the density level lines of the latent distribution, as well as the learned representation of the objective in the latent space. The search distribution is able to have curved density isolines, enabling better exploration. In the latent space, the global minimum can be reached without navigating a curved valley. Figures 4a and 4b provide similar visualizations on the Rastrigin function, a highly multimodal but symmetric objective. The GNN lowers the barriers between local minima, making it easier to escape a local minimum to the global minimum.
|
| 231 |
+
|
| 232 |
+
# 5.2 SYNTHETIC OBJECTIVES
|
| 233 |
+
|
| 234 |
+
Experimental set-up We present experiments on both unimodal and multimodal objectives for xNES and GNN-xNES. We use the official implementation of ${ \bf x } { \bf N } { \bf E } { \bf S } ^ { 1 }$ with default hyper-parameters (such as the population size $\lambda$ ), both as a baseline and as an inner optimization method for GNNxNES. All experiments are run on the COmparing Continous Optimizers (COCO) (Hansen et al., 2016) platform, a popular framework for comparing black-box optimization algorithms. It namely allows to benchmark different algorithms on translated and rotated versions of the same objectives, in order to evaluate multiple configurations with different global minimum positions. We compare xNES and GNN-xNES on functions from the 2018 Black-Box Optimization Benchmark (BBOB) (Hansen et al., 2010) suite. When comparing these two algorithms, we impose that their initial search distributions are close in order to ensure fair comparison. We insist on the fact that the xNES algorithm has the exact same configuration whether it is used by itself or as an inner-optimization algorithm for GNN-xNES. Further experimental details, including additional hyper-parameters value for GNN-xNES are provided in Appendix C.
|
| 235 |
+
|
| 236 |
+
Unimodal landscapes We run the different algorithms on two unimodal landscapes where we expect GNN search distributions to bring a significant improvement over the Gaussian - as discussed in 2.2. These objectives functions are the Rotated Rosenbrock function (a curved valley with high conditioning) and the Bent Cigar (an asymmetric and curved Cigar function). Extensive details on these objective functions can be found in the BBOB documentation (Hansen et al., 2010). Results on additional unimodal functions can be found in Appendix E.
|
| 237 |
+
|
| 238 |
+
Performance is measured through Empirical Cumulative Distribution Functions (ECDFs) of the runtime, also known as data profiles (More & Wild, 2009). Such curves report the fraction of problems ´ solved as a function of the number of objective evaluations. For a given precision $\Delta$ , a problem is said to be solved if the best function evaluation made so far is smaller than $f ( x ^ { * } ) + \Delta$ . We create 200 problems, equally spaced on a log-scale from $\Delta = 1 0 ^ { 2 }$ to $\Delta = 1 0 ^ { - 5 }$ and, as in the COCO framework, aggregate them over 15 function instances. Results are presented in Figure 5 for the two benchmark functions and in dimensions $d = 2 , 5 , 1 0$ .
|
| 239 |
+
|
| 240 |
+
Multimodal landscapes We now compare the performances of the different algorithms on a collection of three multimodal objectives: the Rastrigin function, the Griewank-Rosenbrock function and the Schwefel function. Extensive details about these objectives can be found in Hansen et al. (2010).
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
Figure 5: ECDFs curves comparing GNN-xNES and xNES on the Rotated Rosenbrock and Bent Cigar functions, in dimensions $d { = } 2 , 5 , 1 0$ .
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
Figure 6: Scaling comparison of GNN-xNES and xNES on the Rastrigin, Griewank-Rosenbrock and Schwefel functions, $d { = } 2 , 5 , 1 0$ .
|
| 247 |
+
|
| 248 |
+
When using ES algorithms to optimize multimodal functions, it is usual to augment them with restart strategies (Hansen, 2016). When convergence is detected, the search distribution is re-initialized in order to search another part of the landscape, and often the population size is increased. This allows to fairly compared algorithms that converge fast to potentially bad local minima, and algorithms that converges slower to better minima. Their exist a large variety of restart strategies (Loshchilov et al., 2012; Auger & Hansen, 2005); as the official implementation of xNES is not equipped with a default one, we trigger a restart whenever the algorithm makes no progress for more than $3 0 \times d$ iterations. The standard deviation of the search distribution is set back to 1, and its mean sampled uniformly within the compact $\mathcal { X }$ of interest (defined by the COCO framework). At each restart, the population size of the algorithm is multiplied by 2, as in Auger & Hansen (2005). This restart strategy is used for both xNES and GNN-xNES.
|
| 249 |
+
|
| 250 |
+
We measure performance as the number of functions evaluations to find an objective value smaller than $f ( x ^ { * } ) \stackrel { * } { + } 1 0 ^ { - 5 }$ within a budget of $d \times 1 0 ^ { 5 }$ function evaluations, averaged over 15 function instances. When an algorithm is not able to discover the global minimum within the given budget, we use the maximum number of evaluations as its performance. For visualization purposes, this measure of performance is divided by $d ^ { 2 }$ . Results are reported in Figure 6. On all objectives, and for all dimensions, GNN-xNES discovers (in average) the global minimum faster than xNES. Additional results on others multimodal functions are presented in Appendix E.
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Figure 7: Direct Policy Search experiments
|
| 254 |
+
|
| 255 |
+
# 5.3 REINFORCEMENT LEARNING EXPERIMENTS
|
| 256 |
+
|
| 257 |
+
The goal of this section is to present additional comparison between xNES and GNN-xNES on RL-based objective functions - less synthetic than the previously considered BBOB functions. ES algorithms have recently been used for direct policy search in Reinforcement Learning (RL) and shown to reach performances comparable with state-of-the-art MDP-based techniques (Liu et al., 2019; Salimans et al., 2017). Direct Policy Search ignores the MDP structure of the RL environment and rather considers it as a black-box. The search for the optimal policy is performed directly in parameter space to maximize the average reward per trajectory:
|
| 258 |
+
|
| 259 |
+
$$
|
| 260 |
+
f ( \boldsymbol { x } ) = \mathbb { E } _ { \tau \sim p _ { \boldsymbol { x } } } \left[ \sum _ { j \in \tau } \boldsymbol { r } _ { j } \right]
|
| 261 |
+
$$
|
| 262 |
+
|
| 263 |
+
where $p _ { x }$ is the distribution of trajectories induced by the policy (the state-conditional distribution over actions) parametrized by $x$ , and $r$ the rewards generated by the environment. The objective (17) can readily be approximated from samples by simply rolling out $M$ trajectories, and optimized using ES. In our experiments2, we set $M = 1 0$ and optimize deterministic linear policies (as in Rajeswaran et al. (2017)).
|
| 264 |
+
|
| 265 |
+
In Figures $\mathrm { 7 a }$ and 7b we report results of the GNN-xNES algorithm compared to xNES, when run on the Mujoco locomotion tasks Swimmer and InvertedDoublePendulum, both from the OpenAI Gym (Brockman et al., 2016). Performance is measured by the average reward per trajectory as a function of the number of evaluations of the objective $f$ . Results are averaged over 5 random seeds (ruling the initialization of the environment and the initial distribution over the policy parameters $x$ ). In all three environments, GNN-xNES discovers behaviors of high rewards faster than xNES.
|
| 266 |
+
|
| 267 |
+
# 6 CONCLUSION
|
| 268 |
+
|
| 269 |
+
In this work, we motivate the use of GNNs for improving Evolutionary Strategies by pinpointing the limitations of classical search distributions, commonly used by standard ES algorithms. We propose a new algorithm that leverages the high flexibility of distributions generated by bijective GNNs with an ES objective. We highlight that this algorithm can be seen as a plug-in extension to existing ES algorithms, and therefore can virtually incorporate any of them. Finally, we show its empirical advantages across a diversity of synthetic objective functions, as well as from objectives coming from Reinforcement Learning. Beyond the proposal of this algorithm, we believe that our work highlights the role of expressiveness in exploration for optimization tasks. This idea could be leverage in other settings where exploration is crucial, such a MDP-based policy search methods. An interesting line of future work could focus on optimizing GNN-based conditional distribution for RL tasks - an idea already developed in Ward et al. (2019); Mazoure et al. (2019). Other possible extensions to our work could focus on investigating first-order and mixed oracles, such as in Grathwohl et al. (2017); Faury et al. (2018).
|
| 270 |
+
|
| 271 |
+
REFERENCES
|
| 272 |
+
Aman Agarwal, Soumya Basu, Tobias Schnabel, and Thorsten Joachims. Effective evaluation using logged bandit feedback from multiple loggers. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 687–696. ACM, 2017.
|
| 273 |
+
Shun-Ichi Amari. Natural gradient works efficiently in learning. Neural Computation, 10(2):251– 276, 1998.
|
| 274 |
+
Anne Auger and Nikolaus Hansen. A restart cma evolution strategy with increasing population size. In 2005 IEEE congress on evolutionary computation, volume 2, pp. 1769–1776. IEEE, 2005.
|
| 275 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. OpenAi Gym. arXiv preprint arXiv:1606.01540, 2016.
|
| 276 |
+
Laurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-Linear Independent Components Estimation. arXiv preprint arXiv:1410.8516, 2014.
|
| 277 |
+
Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density Estimation using Real NVP. arXiv preprint arXiv:1605.08803, 2016.
|
| 278 |
+
Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking Deep Reinforcement Learning for Continuous Control. In International Conference on Machine Learning, pp. 1329–1338, 2016.
|
| 279 |
+
Louis Faury, Flavian Vasile, Clement Calauz ´ enes, and Oliver Fercoq. Neural Generative Models for \` Global Optimization with Gradients. arXiv preprint arXiv:1805.08594, 2018.
|
| 280 |
+
Frauke Friedrichs and Christian Igel. Evolutionary tuning of multiple SVM parameters. Neurocomputing, 64:107–117, 2005.
|
| 281 |
+
Tobias Glasmachers, Tom Schaul, Sun Yi, Daan Wierstra, and Jurgen Schmidhuber. Exponential ¨ natural evolution strategies. In Proceedings of the 12th annual conference on Genetic and evolutionary computation, pp. 393–400. ACM, 2010.
|
| 282 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative Adversarial Nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014.
|
| 283 |
+
Will Grathwohl, Dami Choi, Yuhuai Wu, Geoff Roeder, and David Duvenaud. Backpropagation through the void: Optimizing control variates for black-box gradient estimation. arXiv preprint arXiv:1711.00123, 2017.
|
| 284 |
+
Nikolaus Hansen. The CMA Evolution Strategy: a tutorial. arXiv preprint arXiv:1604.00772, 2016.
|
| 285 |
+
Nikolaus Hansen and Andreas Ostermeier. Completely derandomized self-adaptation in Evolution Strategies. Evolutionary Computation, 9(2):159–195, 2001.
|
| 286 |
+
Nikolaus Hansen, Anne Auger, Steffen Finck, and Raymond Ros. Real-parameter black-box optimization benchmarking 2010: Experimental setup. PhD thesis, INRIA, 2010.
|
| 287 |
+
Nikolaus Hansen, Anne Auger, Olaf Mersmann, Tea Tusar, and Dimo Brockhoff. Coco: A platform for comparing continuous optimizers in a black-box setting. arXiv preprint arXiv:1603.08785, 2016.
|
| 288 |
+
Nikolaus Hansen, Youhei Akimoto, and Petr Baudis. CMA-ES/pycma on Github. Zenodo, DOI:10.5281/zenodo.2559634, February 2019. URL https://doi.org/10.5281/ zenodo.2559634.
|
| 289 |
+
Donald R Jones, Matthias Schonlau, and William J Welch. Efficient global optimization of expensive black-box functions. Journal of Global optimization, 13(4):455–492, 1998.
|
| 290 |
+
Diederik P Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 291 |
+
Diederik $\mathrm { \bf P }$ Kingma and Max Welling. Auto-encoding Variational Bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 292 |
+
|
| 293 |
+
Guoqing Liu, Li Zhao, Feidiao Yang, Jiang Bian, Tao Qin, Nenghai Yu, and Tie-Yan Liu. Trust Region Evolution Strategies. Association for the Advancement of Artificial Intelligence, 2019.
|
| 294 |
+
|
| 295 |
+
Ilya Loshchilov and Frank Hutter. CMA-ES for hyperparameter optimization of deep neural networks. arXiv preprint arXiv:1604.07269, 2016.
|
| 296 |
+
|
| 297 |
+
Ilya Loshchilov, Marc Schoenauer, and Michele Sebag. Alternative restart strategies for cma-es. In International Conference on Parallel Problem Solving from Nature, pp. 296–305. Springer, 2012.
|
| 298 |
+
|
| 299 |
+
Andrew L Maas, Awni Y Hannun, and Andrew Y Ng. Rectifier nonlinearities improve neural network acoustic models. In ICML Workshop on Deep Learning for Audio, Speech and Language Processing. Citeseer, 2013.
|
| 300 |
+
|
| 301 |
+
David JC MacKay. Bayesian neural networks and density networks. Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment, 354(1):73–80, 1995.
|
| 302 |
+
|
| 303 |
+
James Martens. Deep Learning via Hessian-free Optimization. In International Conference of Machine Learning, volume 27, pp. 735–742, 2010.
|
| 304 |
+
|
| 305 |
+
Bogdan Mazoure, Thang Doan, Audrey Durand, R Devon Hjelm, and Joelle Pineau. Leveraging exploration in off-policy algorithms via normalizing flows. arXiv preprint arXiv:1905.06893, 2019.
|
| 306 |
+
|
| 307 |
+
Jorge J More and Stefan M Wild. Benchmarking derivative-free optimization algorithms. ´ SIAM Journal on Optimization, 20(1):172–191, 2009.
|
| 308 |
+
|
| 309 |
+
Thomas Nedelec, Nicolas Le Roux, and Vianney Perchet. A Comparative Study of Counterfactual Estimators. arXiv preprint arXiv:1704.00773, 2017.
|
| 310 |
+
|
| 311 |
+
George Papamakarios, Theo Pavlakou, and Iain Murray. Masked autoregressive flow for density estimation. In Advances in Neural Information Processing Systems, pp. 2338–2347, 2017.
|
| 312 |
+
|
| 313 |
+
Leonid Peshkin and Christian R Shelton. Learning from scarce experience. In Proceedings of the Nineteenth International Conference on Machine Learning, pp. 498–505. Morgan Kaufmann Publishers Inc., 2002.
|
| 314 |
+
|
| 315 |
+
Aravind Rajeswaran, Kendall Lowrey, Emanuel V Todorov, and Sham M Kakade. Towards generalization and simplicity in continuous control. In Advances in Neural Information Processing Systems, pp. 6550–6561, 2017.
|
| 316 |
+
|
| 317 |
+
Ingo Rechenberg. Evolutionsstrategien. In Simulationsmethoden in der Medizin und Biologie, pp. 83–114. Springer, 1978.
|
| 318 |
+
|
| 319 |
+
Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International Conference on Machine Learning, pp. 1530–1538, 2015.
|
| 320 |
+
|
| 321 |
+
Oren Rippel and Ryan Prescott Adams. High-dimensional Probability Estimation with Deep Density Models. arXiv preprint arXiv:1302.5125, 2013.
|
| 322 |
+
|
| 323 |
+
Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution Strategies as a scalable alternative to Reinforcement Learning. arXiv preprint arXiv:1703.03864, 2017.
|
| 324 |
+
|
| 325 |
+
Tom Schaul, Justin Bayer, Daan Wierstra, Yi Sun, Martin Felder, Frank Sehnke, Thomas Ruckstieß, ¨ and Jurgen Schmidhuber. PyBrain. ¨ Journal of Machine Learning Research, 11:743–746, 2010.
|
| 326 |
+
|
| 327 |
+
Tom Schaul, Tobias Glasmachers, and Jurgen Schmidhuber. High dimensions and heavy tails for ¨ Natural Evolution Strategies. In Proceedings of the 13th annual conference on Genetic and Evolutionary Computation, pp. 845–852. ACM, 2011.
|
| 328 |
+
|
| 329 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 330 |
+
|
| 331 |
+
Hans-Paul Schwefel. Numerische Optimierung von Computer-Modellen mittels der Evolutionsstrategie: mit einer vergleichenden Einfuhrung in die Hill-Climbing-und Zufallsstrategie ¨ . Birkhauser, 1977. ¨
|
| 332 |
+
|
| 333 |
+
Bobak Shahriari, Kevin Swersky, Ziyu Wang, Ryan P Adams, and Nando De Freitas. Taking the human out of the loop: A review of Bayesian Optimization. Proceedings of the IEEE, 104(1): 148–175, 2016.
|
| 334 |
+
Akash Srivastava, Lazar Valkoz, Chris Russell, Michael U Gutmann, and Charles Sutton. Veegan: Reducing mode collapse in GANs using Implicit Variational Learning. In Advances in Neural Information Processing Systems, pp. 3308–3318, 2017.
|
| 335 |
+
Adith Swaminathan and Thorsten Joachims. Counterfactual Risk Minimization: Learning from Logged Bandit Feedback. In International Conference on Machine Learning, pp. 814–823, 2015.
|
| 336 |
+
Patrick Nadeem Ward, Ariella Smofsky, and Avishek Joey Bose. Improving exploration in softactor-critic with normalizing flows policies. arXiv preprint arXiv:1906.02771, 2019.
|
| 337 |
+
Daan Wierstra, Tom Schaul, Jan Peters, and Juergen Schmidhuber. Natural Evolution Strategies. In Evolutionary omputation, 2008. CEC 2008.(IEEE World Congress on Computational Intelligence), pp. 3381–3387. IEEE, 2008.
|
| 338 |
+
Ronald J Williams. Simple statistical gradient-following algorithms for connectionist Reinforcement Learning. Machine Learning, 8(3-4):229–256, 1992.
|
| 339 |
+
|
| 340 |
+
# A COMPUTING THE MODE OF THE SEARCH DISTRIBUTION
|
| 341 |
+
|
| 342 |
+
We prove here the fact that if $\mu$ denotes the location of the mode of the latent distribution $\nu _ { \omega }$ , then $g _ { \eta } ( \mu )$ is a mode for $\pi _ { \omega , \eta }$ . Indeed, under reasonable smoothness assumptions, one has that $y$ is a mode for $\pi _ { \omega , \eta }$ if and only if:
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
\frac { \partial \pi _ { \omega , \eta } ( x ) } { \partial x } \bigg | _ { x = y } = 0
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
Since $\pi _ { \omega , \eta } ( x ) = \nu _ { \omega } ( h _ { \eta } ( x ) )$ , this is therefore equivalent to:
|
| 349 |
+
|
| 350 |
+
$$
|
| 351 |
+
\frac { \partial h _ { \eta } ( x ) } { \partial x } \bigg | _ { x = y } \cdot \frac { \partial \nu _ { \omega } ( z ) } { \partial z } \bigg | _ { z = h _ { \eta } ( y ) } = 0
|
| 352 |
+
$$
|
| 353 |
+
|
| 354 |
+
In the NICE model, we have that $\begin{array} { r } { \left| \frac { \partial h _ { \eta } ( x ) } { \partial x } \right| = 1 } \end{array}$ for all $x$ hence the matrix $\left. \frac { \partial h _ { \eta } ( x ) } { \partial x } \right| _ { x = y }$ is invertible and its kernel is reduced to the null vector. Therefore:
|
| 355 |
+
|
| 356 |
+
$$
|
| 357 |
+
\frac { \partial \nu _ { \omega } ( z ) } { \partial z } \bigg | _ { z = h _ { \eta } ( y ) } = 0
|
| 358 |
+
$$
|
| 359 |
+
|
| 360 |
+
and therefore $\mu = h _ { \eta } ( y )$ by definition of $\mu$ (the only critical point of $\nu _ { \omega }$ ). Hence since $h _ { \eta } ^ { - 1 } = g _ { \eta }$ , we have that $y = g _ { \eta } ( \mu )$ which concludes the proof.
|
| 361 |
+
|
| 362 |
+
# B ALGORITHM PSEUDO-CODE
|
| 363 |
+
|
| 364 |
+
We provide below the pseudo-code for the generic algorithm GNN- $\mathcal { A }$ -ES, where $\mathcal { A }$ is a generic ES algorithm operating on a parametric distribution $\nu _ { \omega }$ . The additional hyper-parameters are the horizon $T$ as well as the clipping constant $\varepsilon$ . The function ${ \mathrm { c l i p } } ( x , l b , u b )$ clips the input $x$ between a lower-bound $l b$ and an upper-bound $u b$ .
|
| 365 |
+
|
| 366 |
+
Algorithm 2: GNN-A-ES (ex: GNN-xNES, GNN-CMA-ES)
|
| 367 |
+
|
| 368 |
+
<table><tr><td>inputs : objective function f,distribution Vω and its related ES algorithm A hyper-parameters: clipping constant ε, NICE model architecture, initial parameters Wo, initial weights no, horizon T, population size 入 (Initialization) Initialize NICE MLPs weights and biases with 7o. Let Hbe a circular buffer of length T × 入</td></tr></table>
|
| 369 |
+
|
| 370 |
+
∗The (GNN iteration) step can be performed with virtually any gradient descent solver. In all our experiments, we used Adam (Kingma & Ba, 2014) with learning rate 1e-4 for 500 epochs.
|
| 371 |
+
|
| 372 |
+
Algorithm 2 does not detail the mode-preserving addition for the sake of readability and clarity. We provide additional details on this procedure here. Let $\mu _ { t }$ be the mode of the latent distribution $\nu _ { \omega _ { t } }$ . At the (Initialization) step, set $\alpha _ { 0 } = g _ { \eta _ { 0 } } ( \mu _ { 0 } )$ where $g _ { \eta } ( \cdot )$ is the push-forward map on the NICE model described in Section 3.2. For all round $t \geq 1$ , let $\dot { f } _ { \eta } ( z ) = \bar { g } _ { \eta } ( z ) - g _ { \eta } ( \mu _ { t } ) \bar { + } \alpha _ { t }$ . The variable $\alpha _ { t }$ represent the push forward mapping of the latent distribution’s mean under the current model. Every time the latent space is updated - the $_ { E S }$ update) step, let $\alpha _ { t + 1 } = f _ { \eta _ { t } } ( \mu _ { t + 1 } )$ . Then, for the (GNN update), optimize the forward-map $f _ { \eta } ( z ) = g _ { \eta } ( z ) - g _ { \eta } ( \mu _ { t + 1 } ) + \alpha _ { t + 1 }$ . After this update, we have $\bar { f } _ { \eta _ { t + 1 } } ( \mu _ { t + 1 } ) = \alpha _ { t + 1 } = f _ { \eta _ { t } } ( \mu _ { t + 1 } ) \bar { { \bf \Phi } }$ , which means that the mode of the search distribution (which is the image of the latent distribution mode) has not been impacted by the GNN update.
|
| 373 |
+
|
| 374 |
+
# C EXPERIMENTAL DETAILS
|
| 375 |
+
|
| 376 |
+
# C.1 HYPER-PARAMETERS
|
| 377 |
+
|
| 378 |
+
Baselines We use xNES with its default (adapted) hyper-parameters (described in Wierstra et al. (2008)) for both its baselines versions and its inner optimization parts in GNN-xNES. The population size $\lambda$ is one such hyper-parameters, and is therefore set to $\lambda = 4 + \lfloor 3 \log ( d ) \rfloor$ . Also, as it is classically done in ES algorithms, we use a rank-based fitness shaping, designed to make the algorithm invariant with respect to order-preserving cost transformations. We use the same fitnessshaping function as in Wierstra et al. (2008).
|
| 379 |
+
|
| 380 |
+
GNN-ES Across all experiments, we use the same hyper-parameters for GNN-xNES without fine tuning for each tasks. We use three coupling layers, each with a single hidden layer MLP with 128 hidden neurons and Leaky ReLU activations. The MLPs are initialized via Glorot initialization, and the clipping constant is set to $\varepsilon = 0 . 0 5$ . The history size $T$ was determined experimentally, and set to $T = \bar { \lfloor 3 * ( 1 + \log ( d ) ) \rfloor }$ . When restarts are used, this history size is divided by the numbers of restart so far (as the population size grows larger).
|
| 381 |
+
|
| 382 |
+
# C.2 SYNTHETIC OBJECTIVES
|
| 383 |
+
|
| 384 |
+
Every synthetic objective we used in this work was taken from the BBOB2019 benchmark dataset. Their expression as well as additional details on the framework can be found in Hansen et al. (2010; 2016). At the beginning of each experiment, we set the Gaussian search distribution (for xNES) and the Gaussian latent distribution (for GNN-xNES) to a standard normal, with a mean uniformly sampled within the compact $\mathcal { X }$ of interest (defined by the COCO framework).
|
| 385 |
+
|
| 386 |
+
# C.3 RL ENVIRONMENTS
|
| 387 |
+
|
| 388 |
+
Table 1 provides details on the RL environment used to compare GNN-xNES and xNES, like the dimensions of the state space $s$ and action space $\mathcal { A }$ , the number $d$ of the policy’s degrees of freedom and the maximum number of steps $m$ per trajectory. At the beginning of each experiment, we set the Gaussian search distribution (for xNES) and the Gaussian latent distribution (for GNN-xNES) to a standard normal with zero mean. In this particular case, where the function evaluations are noisy, we kept the default population size of the xNES algorithm.
|
| 389 |
+
|
| 390 |
+
Table 1: Reinforcement Learning environments
|
| 391 |
+
|
| 392 |
+
<table><tr><td>Name</td><td>|S|</td><td>|A|</td><td>d</td><td>m</td></tr><tr><td>Swimmer-v1</td><td>13</td><td>21</td><td>28</td><td>1000</td></tr><tr><td>InvertedDoublePendulum-v1</td><td>11</td><td></td><td>12</td><td>1000</td></tr><tr><td>HalfCheetah-v1</td><td>20</td><td>6</td><td>126</td><td>1000</td></tr></table>
|
| 393 |
+
|
| 394 |
+
# D TWO-DIMENSIONAL VISUALIZATIONS
|
| 395 |
+
|
| 396 |
+
We provide in Figure 8 additional two-dimensional visualizations of the behavior of GNN-xNES, on the Rosenbrock, Rastrigin, Beale and Bent-Cigar functions. We see that the NICE distributions can
|
| 397 |
+
|
| 398 |
+

|
| 399 |
+
(d) (Doubly asymmetric) Bent Cigar, global optimum at $( 0 , 0 )$
|
| 400 |
+
|
| 401 |
+

|
| 402 |
+
(a) Rosenbrock, global op- (b) Rastrigin, global opti- (c) Beale, global optimum timum at $( 1 , 1 )$ mum at $( 0 , 0 )$ at (3, 0.5)
|
| 403 |
+
|
| 404 |
+
Figure 8: Two-dimensional visualizations. The black dotted lines represent the isolines of the level curves of a NICE search distribution trained with GNN-xNES.
|
| 405 |
+
|
| 406 |
+
<table><tr><td>Algorithm</td><td>mean(# restarts), d=2</td><td>mean(# restarts), d=5</td><td>mean(# restarts),d=10</td></tr><tr><td>xNES</td><td>2.3</td><td>2.7</td><td>3.4</td></tr><tr><td>GNN-xNES</td><td>1.3</td><td>2.5</td><td>2.9</td></tr></table>
|
| 407 |
+
|
| 408 |
+
Table 2: Mean number of restarts needed to discover the global minimum on the Rastrigin function.
|
| 409 |
+
|
| 410 |
+
efficiently fit each optimization landscapes, without having to reduce its entropy like a multivariate normal would.
|
| 411 |
+
|
| 412 |
+
# E ADDITIONAL RESULTS
|
| 413 |
+
|
| 414 |
+
We present here some additional results on some unimodal and multimodal synthetic functions. Figure 9 present ECDFs curve obtained from the Attractive Sector function, a highly asymmetrical function around its global minimum. On such a function, GNN-xNES seems to accelerate xNES in small dimensions, however this speed-up disappears in higher dimensions. Figure 10 presents results on the Rosenbrock function (without random rotations). Again, GNN-xNES accelerates the xNES algorithm. Figure 11 present results on the multimodal functions Gallagher’s Gaussian 101 Peaks and Gallagher’s Gaussian 21 Peaks. Again, GNN-xNES discovers the global minimum faster (on average) than xNES.
|
| 415 |
+
|
| 416 |
+
In our multimodal experiments, we used simulated restarts as a fair mean of comparing different algorithm (this is common practice in order to fairly compare algorithms that converge fast to potentially bad local minima to algorithms that converge slowly to the global minimum). If the empirical results prove that GNN-xNES accelerate xNES in the discovery of the global minimum, it does not prove that GNN-xNES leverages the flexibility of the GNN to detect the global minimum when xNES misses it. In an attempt to prove that it is indeed the case, we report in Table 2 the number of restarts needed by both GNN-xNES and xNES to discover the global minimum on the Rastrigin function (averaged over the 15 randomly initialized run). For this instance, GNN-xNES consistently discovers the global minimum with less restarts than xNES.
|
| 417 |
+
|
| 418 |
+
As detailed in Section 4, one can apply Algorithm 2 as a plug-in to any ES method. So far, we empirically evaluated the benefits of our approach by comparing xNES against its GNN extension (GNN-xNES). We present in Figure 12 additional evaluations obtained by comparing CMA-ES and its GNN extension (denoted GNN-CMA-ES) on the Rosenbrock function in dimension 2,5 and 10. CMA-ES is considered to be the state-of-the-art ES algorithm, and improving its performances is a non-trivial task. On the considered example GNN-CMA-ES improves CMA-ES, highlighting the empirical benefit of our approach for a large class of ES algorithm. One can however observe that the performance boost brought by the GNN extension is milder for GNN-CMA-ES then for GNNxNES. We suspect that this is due to the use of cumulation via an evolution path in ${ \mathrm { C M A } } – \mathbf { E S } ^ { 3 }$ , which basically introduces a momentum-like update when optimizing the latent distribution. While using an evolution path makes a lot of sense when optimizing a stationary objective, it can be quite harmful for non-stationary ones. We therefore believe that the cumulation step in CMA-ES (for the latent distribution) and the GNN optimization (making the objective optimized by CMA-ES in the latent space non-stationary) can lead to conflicting updates and might hinder the benefits brought by the GNN’s additional flexibility. Designing a GNN update strategy complying with the use of evolution paths could therefore be a way of further improving GNN-CMA-ES, and is left for future work.
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
Figure 9: ECDFs curve for the Attractive Sector function, $d { = } 2 , 5 , 1 0$
|
| 422 |
+
|
| 423 |
+

|
| 424 |
+
Figure 10: ECDFs curve for the Rosenbrock function, $\mathrm { d } { = } 2 , 5 { , } 1 0$
|
| 425 |
+
|
| 426 |
+
# F ABLATION STUDY
|
| 427 |
+
|
| 428 |
+
We present here an ablation study for two additional tools that we introduced after the alternating optimization view: the mode preserving (16) extension as well as the history augmentation (15). Figure 13 presents ECDFs curves on the Rosenbrock, Rotated Rosenbrock and Bent Cigar functions in 2D, for a version of GNN-xNES that doesn’t use history but only the current population. Using history and therefore exposing the GNN to larger datasets improves the procedure. Figure 14 present similar results on a version of GNN-xNES without the mode preserving property (16). Again, one can notice that ensuring that the GNN training is mode-preserving is crucial to improve experimental results.
|
| 429 |
+
|
| 430 |
+

|
| 431 |
+
Figure 11: Scaling comparison of GNN-xNES and xNES on the Gallagher’s Gaussian 101 Peaks and Gallagher’s Gaussian 21 Peaks functions, $d { = } 2 , 5 , 1 0$ .
|
| 432 |
+
|
| 433 |
+

|
| 434 |
+
Figure 12: ECDFs curves for the Rosenbrock function, $\mathrm { ( d } { = } 2 , 5 , 1 0 \mathrm { ) }$ comparing the CMA-ES and GNN-CMA-ES
|
| 435 |
+
|
| 436 |
+

|
| 437 |
+
Figure 13: ECDFs curves for xNES, GNN-xNES and GNN-xNES-no-history, for which the history size $T = 1$ . Using past populations to estimate expectations improves the optimization.
|
| 438 |
+
|
| 439 |
+

|
| 440 |
+
Figure 14: ECDFs curves for xNES, GNN-xNES and GNN-xNES-nmp, which is not mode preserving. Ensuring that the training of the GNN doesn’t impact the mode of the search distribution improves the optimization.
|
parse/train/SJlDDnVKwS/SJlDDnVKwS_content_list.json
ADDED
|
@@ -0,0 +1,2099 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 4 |
+
"text": "IMPROVING EVOLUTIONARY STRATEGIES WITH GENERATIVE NEURAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Evolutionary Strategies (ES) are a popular family of black-box zeroth-order optimization algorithms which rely on search distributions to efficiently optimize a large variety of objective functions. This paper investigates the potential benefits of using highly flexible search distributions in ES algorithms, in contrast to standard ones (typically Gaussians). We model such distributions with Generative Neural Networks (GNNs) and introduce a new ES algorithm that leverages their expressiveness to accelerate the stochastic search. Because it acts as a plug-in, our approach allows to augment virtually any standard ES algorithm with flexible search distributions. We demonstrate the empirical advantages of this method on a diversity of objective functions. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
263,
|
| 43 |
+
764,
|
| 44 |
+
404
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
426,
|
| 55 |
+
336,
|
| 56 |
+
443
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "We are interested in the global minimization of a black-box objective function, only accessible through a zeroth-order oracle. In many instances of this problem the objective is expensive to evaluate, which excludes brute force methods as a reasonable mean of optimization. Also, as the objective is potentially non-convex and multi-modal, its global optimization cannot be done greedily but requires a careful balance between exploitation and exploration of the optimization landscape (the surface defined by the objective). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
457,
|
| 66 |
+
823,
|
| 67 |
+
541
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The family of algorithms used to tackle such a problem is usually dictated by the cost of one evaluation of the objective function (or equivalently, by the maximum number of function evaluations that are reasonable to make) and by a precision requirement. For instance, Bayesian Optimization (Jones et al., 1998; Shahriari et al., 2016) targets problems of very high evaluation cost, where the global minimum must be approximately discovered after a few hundreds of function evaluations. When aiming for a higher precision and hence having a larger budget (e.g. thousands of function evaluations), a popular algorithm class is the one of Evolutionary Strategies (ES) (Rechenberg, 1978; Schwefel, 1977), a family of heuristic search procedures. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
547,
|
| 77 |
+
825,
|
| 78 |
+
659
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "ES algorithms rely on a search distribution, which role is to propose queries of potentially small value of the objective function. This search distribution is almost always chosen to be a multivariate Gaussian. It is namely the case of the Covariance Matrix Adaptation Evolution Strategies (CMA-ES) (Hansen & Ostermeier, 2001), a state-of-the-art ES algorithm made popular in the machine learning community by its good results on hyper-parameter tuning (Friedrichs & Igel, 2005; Loshchilov & Hutter, 2016). It is also the case for Natural Evolution Strategies (NES) (Wierstra et al., 2008) algorithms, which were recently used for direct policy search in Reinforcement Learning (RL) and shown to compete with state-of-the-art MDP-based RL techniques (Salimans et al., 2017). Occasionally, other distributions have been used; e.g. fat-tails distributions like the Cauchy were shown to outperform the Gaussian for highly multi-modal objectives (Schaul et al., 2011). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
666,
|
| 88 |
+
825,
|
| 89 |
+
805
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "We argue in this paper that in ES algorithms, the choice of a standard parametric search distribution (Gaussian, Cauchy, ..) constitutes a potentially harmful implicit constraint for the stochastic search of a global minimum. To overcome the limitations of classical parametric search distributions, we propose using flexible distributions generated by bijective Generative Neural Networks (GNNs), with computable and differentiable log-probabilities. We discuss why common existing optimization methods in ES algorithms cannot be directly used to train such models and design a tailored algorithm that efficiently train GNNs for an ES objective. We show how this new algorithm can readily incorporate existing ES algorithms that operates on simple search distributions, ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
811,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Algorithm 1: Generic ES procedure ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
176,
|
| 110 |
+
107,
|
| 111 |
+
415,
|
| 112 |
+
122
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "input: zeroth-order oracle on $f$ , distribution $\\pi _ { 0 }$ , population size $\\lambda$ repeat ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
173,
|
| 121 |
+
125,
|
| 122 |
+
609,
|
| 123 |
+
152
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "(Sampling) Sample $x _ { 1 } , \\dotsc , x _ { \\lambda } \\stackrel { \\mathrm { i . i . d } } { \\sim } \\pi _ { t }$ \n(Evaluation) Evaluate $f ( x _ { 1 } ) , \\ldots , f ( x _ { n } )$ . \n(Update) Update $\\pi _ { t }$ to produce $x$ of potentially smaller objective values. ntil convergence; ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
187,
|
| 132 |
+
154,
|
| 133 |
+
671,
|
| 134 |
+
213
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "like the Gaussian. On a variety of objective functions, we show that this extension can significantly accelerate ES algorithms. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
173,
|
| 143 |
+
243,
|
| 144 |
+
823,
|
| 145 |
+
272
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "We formally introduce the problem and provide background on Evolutionary Strategies in Section 2. We discuss the role of GNNs in generating flexible search distributions in Section 3. We explain why usual algorithms fail to train GNNs for an ES objective and introduce a new algorithm in Section 4. Finally we report experimental results in Section 5. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
279,
|
| 155 |
+
825,
|
| 156 |
+
335
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2 PRELIMINARIES ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
176,
|
| 166 |
+
354,
|
| 167 |
+
339,
|
| 168 |
+
371
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "In what follows, the real-valued objective function $f$ is defined over a compact $\\mathcal { X }$ and $\\pi$ will generically denote a probability density function over $\\mathcal { X }$ . We consider the global optimization of $f$ : ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
173,
|
| 177 |
+
383,
|
| 178 |
+
821,
|
| 179 |
+
414
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "equation",
|
| 185 |
+
"img_path": "images/824182357f2acba869e9b3b0fad5dacbb4ab8a6fec4acc110a8df6d6b06809a2.jpg",
|
| 186 |
+
"text": "$$\nx ^ { * } \\in \\operatorname { a r g m i n } _ { x \\in \\mathcal { X } } f ( x )\n$$",
|
| 187 |
+
"text_format": "latex",
|
| 188 |
+
"bbox": [
|
| 189 |
+
436,
|
| 190 |
+
416,
|
| 191 |
+
562,
|
| 192 |
+
441
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "2.1 EVOLUTIONARY STRATEGIES ",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
176,
|
| 202 |
+
455,
|
| 203 |
+
418,
|
| 204 |
+
470
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "The generic procedure followed by ES algorithms is presented in Algorithm 1. To make the update step tractable, the search distribution is tied to a family of distributions and parametrized by a realvalued parameter vector $\\theta$ (e.g. the mean and covariance matrix of a Gaussian), and is referred to as $\\pi _ { \\theta }$ . This update step constitutes the main difference between ES algorithms. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
173,
|
| 213 |
+
482,
|
| 214 |
+
825,
|
| 215 |
+
537
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Natural Evolution Strategies One principled way to perform that update is to minimize the expected objective value over samples $x$ drawn from $\\pi _ { \\theta }$ . Indeed, when the search distribution is parametric and tied to a parameter $\\theta$ , this objective can be differentiated with respect to $\\theta$ thanks to the log-trick: ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
173,
|
| 224 |
+
553,
|
| 225 |
+
825,
|
| 226 |
+
608
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 1
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "equation",
|
| 232 |
+
"img_path": "images/f9837d63d0a91cc2d318e10a059cb8c549cd62dd22e7277988ffe5a2e4ad98ed.jpg",
|
| 233 |
+
"text": "$$\nJ ( \\theta ) \\triangleq \\mathbb { E } _ { \\pi _ { \\theta } } \\left[ f ( x ) \\right] \\qquad { \\mathrm { ~ a n d ~ } } \\qquad { \\frac { \\partial J ( \\theta ) } { \\partial \\theta } } = \\mathbb { E } _ { \\pi _ { \\theta } } \\left[ f ( x ) { \\frac { \\partial \\log \\pi _ { \\theta } ( x ) } { \\partial \\theta } } \\right]\n$$",
|
| 234 |
+
"text_format": "latex",
|
| 235 |
+
"bbox": [
|
| 236 |
+
269,
|
| 237 |
+
611,
|
| 238 |
+
727,
|
| 239 |
+
645
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 1
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "This quantity can be approximated from samples - it is known as the score-function or REINFORCE (Williams, 1992) estimator, and provides a direction of update for $\\theta$ . Unfortunately, naively following a stochastic version of the gradient $( 2 ) - \\mathtt { a }$ procedure called Plain Gradient Evolutionary Strategies (PGES) – is known to be highly ineffective. PGES main limitation resides in its instability when the search distribution is concentrating, making it unable to precisely locate any local minimum. To improve over the PGES algorithm the authors of Wierstra et al. (2008) proposed to descend $J ( \\theta )$ along its natural gradient (Amari, 1998). More precisely, they introduce a trust-region optimization scheme to limit the instability of PGES, and minimize a linear approximation of $J ( \\theta )$ under a Kullback-Leibler (KL) divergence constraint: ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
646,
|
| 249 |
+
825,
|
| 250 |
+
772
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 1
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "equation",
|
| 256 |
+
"img_path": "images/b02cab4fb5c022c21926cb74919e7cf6122c85b25b79becf9ac72935bbeb1f9d.jpg",
|
| 257 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { \\delta \\theta } { \\operatorname { a r g m i n } } } & { { } J ( \\theta + \\delta \\theta ) \\simeq J ( \\theta ) + \\delta \\theta ^ { T } \\nabla _ { \\theta } J ( \\theta ) \\quad \\mathrm { s . t } \\quad \\mathrm { K L } ( \\pi _ { \\theta + \\delta \\theta } | | \\pi _ { \\theta } ) \\leq \\epsilon } \\end{array}\n$$",
|
| 258 |
+
"text_format": "latex",
|
| 259 |
+
"bbox": [
|
| 260 |
+
264,
|
| 261 |
+
773,
|
| 262 |
+
732,
|
| 263 |
+
801
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 1
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "To avoid solving analytically the trust region problem (3), Wierstra et al. (2008) shows that its solution can be approximated by: ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
178,
|
| 272 |
+
803,
|
| 273 |
+
825,
|
| 274 |
+
832
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 1
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "equation",
|
| 280 |
+
"img_path": "images/7c43f84021de5e06124819a8b8fb9210dbf9208cd6b213c5cc7d67b73f85d62d.jpg",
|
| 281 |
+
"text": "$$\n\\begin{array} { r } { \\delta \\theta ^ { * } \\propto - F _ { \\theta } ^ { - 1 } \\nabla _ { \\theta } J ( \\theta ) \\quad \\mathrm { w h e r e } \\quad F _ { \\theta } = \\mathbb { E } _ { \\pi _ { \\theta } } \\left[ \\nabla _ { \\theta } \\log \\pi _ { \\theta } ( x ) \\nabla _ { \\theta } \\log \\pi _ { \\theta } ( x ) ^ { T } \\right] } \\end{array}\n$$",
|
| 282 |
+
"text_format": "latex",
|
| 283 |
+
"bbox": [
|
| 284 |
+
258,
|
| 285 |
+
833,
|
| 286 |
+
738,
|
| 287 |
+
853
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 1
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "is the Fischer Information Matrix (FIM) of $\\pi _ { \\theta }$ . The parameter $\\theta$ is therefore not updated along the negative gradient of $J$ but rather along $F _ { \\theta } ^ { - 1 } \\nabla _ { \\theta } J ( \\theta )$ , a quantity known as the natural gradient. The FIM $F _ { \\theta }$ is known analytically when $\\pi _ { \\theta }$ is a multivariate Gaussian and the resulting algorithm, Exponential Natural Evolutionary Strategies (xNES) (Glasmachers et al., 2010) has been shown to reach state-of-the-art performances on a large ES benchmark. ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
173,
|
| 296 |
+
854,
|
| 297 |
+
825,
|
| 298 |
+
924
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 1
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "image",
|
| 304 |
+
"img_path": "images/4a34bd041023d6a274a1434d891b09ef4bfa2b2897ede2637a57dec5d6d07344.jpg",
|
| 305 |
+
"image_caption": [
|
| 306 |
+
"Figure 2: Example of an undesirable behavior of a Gaussian search distribution. The dashed lines represent density level lines of the search distribution. Because the latter cannot have a curved profile, it is forced to drastically reduce its entropy until it reaches the straight part of the valley. "
|
| 307 |
+
],
|
| 308 |
+
"image_footnote": [],
|
| 309 |
+
"bbox": [
|
| 310 |
+
176,
|
| 311 |
+
102,
|
| 312 |
+
802,
|
| 313 |
+
214
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "CMA-ES Naturally, there exist other strategies to update the search distribution $\\pi _ { \\theta }$ . For instance, CMA-ES relies on a variety of heuristic mechanisms like covariance matrix adaptation and evolution paths, but is only defined when $\\pi _ { \\theta }$ is a multivariate Gaussian. Explaining such mechanisms would be out of the scope of this paper, but the interested reader is referred to the work of Hansen (2016) for a detailed tutorial on CMA-ES. ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
295,
|
| 323 |
+
825,
|
| 324 |
+
364
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "2.2 LIMITATIONS OF CLASSICAL SEARCH DISTRIBUTIONS ",
|
| 331 |
+
"text_level": 1,
|
| 332 |
+
"bbox": [
|
| 333 |
+
174,
|
| 334 |
+
382,
|
| 335 |
+
584,
|
| 336 |
+
395
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "text",
|
| 342 |
+
"text": "ES implicitly balance the need for exploration and exploitation of the optimization landscape. The exploitation phase consists in updating the search distribution, and exploration happens when samples are drawn from the search distribution’s tails. The key role of the search distribution is therefore to produce a support adapted to the landscape’s structure, so that new points are likely to improve over previous samples. ",
|
| 343 |
+
"bbox": [
|
| 344 |
+
174,
|
| 345 |
+
406,
|
| 346 |
+
825,
|
| 347 |
+
477
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "We argue here that the choice of a given parametric distribution (the multivariate Gaussian distribution being overwhelmingly represented in state-of-the-art ES algorithms) constitutes a potentially harmful implicit constraint for the stochastic search of a global minimum. For instance, a Gaussian distribution is not adapted to navigate a curved valley because of its inability to continuously curve its density. This lack of flexibility will lead it to drastically reduce its entropy, until the curved valley looks locally straight. At this point, the ES algorithm resembles a hill-climber and barely takes advantage of the exploration abilities of the search distribution. An illustration of this phenomenon is presented in Figure 2 on the Rosenbrock function. Another limitation of classical search distribution is their inability to follow multiple hypothesis, that is to explore at the same time different local minima. Even if mixture models can show such flexibility, hyper-parameters like the number of mixtures have optimal values that are impossible to guess a priori. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
483,
|
| 357 |
+
825,
|
| 358 |
+
637
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "We want to introduce flexible search distributions to overcome these limitations. Such distributions should, despite their expressiveness, be easily trainable. We should also be concerned when designing them with their role in the exploration/exploitation trade off: a search distribution with too much capacity could over-fit some seemingly good samples, leading to premature convergence. To sum-up, we want to design search-distributions that are: ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
643,
|
| 368 |
+
823,
|
| 369 |
+
713
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "• more flexible than classical distributions \n• yet easily trainable \n• while keeping control over the exploration / exploitation trade-off ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
215,
|
| 378 |
+
724,
|
| 379 |
+
663,
|
| 380 |
+
763
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 2
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "In the following section, we carefully investigate the class of Generative Neural Networks (GNNs) to find a parametric class of distributions satisfying such properties. ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
173,
|
| 389 |
+
775,
|
| 390 |
+
823,
|
| 391 |
+
803
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 2
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "3 FLEXIBLE SEARCH DISTRIBUTIONS WITH GNNS ",
|
| 398 |
+
"text_level": 1,
|
| 399 |
+
"bbox": [
|
| 400 |
+
174,
|
| 401 |
+
823,
|
| 402 |
+
607,
|
| 403 |
+
838
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 2
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "Generative Neural Networks (MacKay, 1995) have been studied in the context of density estimation and shown to be able to model complex and highly multimodal distributions (Srivastava et al., 2017). We propose here to leverage their expressiveness for ES, and train them in a principled way thanks to the ES objective: ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
174,
|
| 412 |
+
853,
|
| 413 |
+
825,
|
| 414 |
+
909
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 2
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "equation",
|
| 420 |
+
"img_path": "images/7e5fd06f3309d842ca29b445163727d22b8bc8ca6216622977218ef1d1aee296.jpg",
|
| 421 |
+
"text": "$$\nJ ( \\pi ) = \\mathbb { E } _ { \\pi } \\left[ f ( x ) \\right]\n$$",
|
| 422 |
+
"text_format": "latex",
|
| 423 |
+
"bbox": [
|
| 424 |
+
437,
|
| 425 |
+
907,
|
| 426 |
+
560,
|
| 427 |
+
925
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 2
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "As discussed in Section 2, optimizing $J ( \\pi )$ with gradient-based methods is possible through the score-function estimator, which requires to be able to compute and efficiently differentiate the logprobabilities of $\\pi$ . ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
103,
|
| 437 |
+
823,
|
| 438 |
+
145
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "3.1 GNN BACKGROUND ",
|
| 445 |
+
"text_level": 1,
|
| 446 |
+
"bbox": [
|
| 447 |
+
176,
|
| 448 |
+
162,
|
| 449 |
+
354,
|
| 450 |
+
178
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "The core idea behind a GNN is to map a latent variable $z \\in { \\mathcal { Z } }$ drawn from a known distribution $\\nu _ { \\omega }$ to an output variable $x = g _ { \\eta } ( z )$ where $g _ { \\eta }$ is the forward-pass of a neural network. The parameter $\\eta$ represents the weights of this neural network while $\\omega$ describe the degrees of freedom of the latent space distribution $\\nu _ { \\omega }$ . We denote $\\theta = ( \\omega , \\eta )$ and $\\pi _ { \\boldsymbol { \\theta } } ( \\boldsymbol { x } )$ the density of the output variable $x$ . ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
174,
|
| 459 |
+
189,
|
| 460 |
+
823,
|
| 461 |
+
246
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "For general neural network architectures, it is impossible to compute $\\pi _ { \\boldsymbol { \\theta } } ( \\boldsymbol { x } )$ for samples $x$ drawn from the GNN. This is namely why their are often trained with adversarial methods (Goodfellow et al., 2014) for sample generation purposes, bypassing the need of computing densities, but at the expense of a good density estimation (mode-dropping). An alternative to adversarial methods was proposed with variational auto-encoders (Kingma & Welling, 2013) however at the cost of learning two neural networks (an encoder and a decoder). A less computationally expensive method consists in restricting the possible architectures to build bijective GNNs, also known as Normalizing Flows (NF) (Rezende & Mohamed, 2015; Papamakarios et al., 2017), which allows the exact computation of the distribution’s density. Indeed, if $g _ { \\eta }$ is a bijection from $\\mathcal { Z }$ to $\\mathcal { X }$ with inverse $h _ { \\eta } \\triangleq g _ { \\eta } ^ { - 1 }$ , the change of variable formula provides a way to compute $\\pi _ { \\boldsymbol { \\theta } } ( \\boldsymbol { x } )$ : ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
173,
|
| 470 |
+
252,
|
| 471 |
+
825,
|
| 472 |
+
395
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "equation",
|
| 478 |
+
"img_path": "images/abeeee5741be5bdc13b231dd8901c4de1a8e582d215616beb83c1ded0e15b5f5.jpg",
|
| 479 |
+
"text": "$$\n\\pi _ { \\boldsymbol { \\theta } } ( x ) = \\nu _ { \\omega } ( h _ { \\eta } ( x ) ) \\cdot \\left| \\frac { \\partial h _ { \\eta } ( x ) } { \\partial x } \\right|\n$$",
|
| 480 |
+
"text_format": "latex",
|
| 481 |
+
"bbox": [
|
| 482 |
+
393,
|
| 483 |
+
401,
|
| 484 |
+
604,
|
| 485 |
+
436
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "To have a tractable density one therefore needs to ensure that the determinant of the Jacobian $| \\partial h _ { \\eta } ( x ) / \\partial x |$ is easily computable. Several models satisfying these two properties $i . e$ bijectivity and computable Jacobian) have been proposed for density estimation (Rippel & Adams, 2013; Dinh et al., 2014; 2016), and proved their expressiveness despite their relatively simple structure. ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
443,
|
| 495 |
+
825,
|
| 496 |
+
500
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "NFs therefore answer two of our needs when building our new search distribution: flexibility and easiness to train. In this work, we will focus on one NF model: the Non-Linear Independent Component Estimation (Dinh et al., 2014) (NICE) model, for its numerical stability and volume preserving properties. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
506,
|
| 506 |
+
823,
|
| 507 |
+
561
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 3
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "3.2 NICE MODEL ",
|
| 514 |
+
"text_level": 1,
|
| 515 |
+
"bbox": [
|
| 516 |
+
174,
|
| 517 |
+
579,
|
| 518 |
+
310,
|
| 519 |
+
593
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 3
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "The authors of NICE proposed to build complex yet invertible transformations through the use of additive coupling layers. An additive coupling layer leaves half of its input unchanged, and adds a non-linear transformation of the first half to the second half. More formally, by noting $\\boldsymbol { v } = [ v _ { 1 } , v _ { 2 } ]$ the output of a coupling layer and $u = [ u _ { 1 } , u _ { 2 } ]$ its input, one has: ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
174,
|
| 528 |
+
604,
|
| 529 |
+
825,
|
| 530 |
+
661
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 3
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "equation",
|
| 536 |
+
"img_path": "images/2ed20fc116b40d84853d62f4e9c5bac1f994d5e4bbcd1f496eaf6cd3ea9fa762.jpg",
|
| 537 |
+
"text": "$$\nv _ { 1 } = u _ { 1 } \\quad \\mathrm { a n d } \\quad v _ { 2 } = u _ { 2 } + t ( u _ { 1 } )\n$$",
|
| 538 |
+
"text_format": "latex",
|
| 539 |
+
"bbox": [
|
| 540 |
+
387,
|
| 541 |
+
667,
|
| 542 |
+
611,
|
| 543 |
+
686
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 3
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "where $t$ is an arbitrarily complex transformation - modelled by a Multi-Layer Perceptron (MLP) with learnable weights and biases. This transformation has unit Jacobian determinant and is easily invertible: ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
693,
|
| 553 |
+
825,
|
| 554 |
+
734
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 3
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "equation",
|
| 560 |
+
"img_path": "images/674a318f173be90b63cae55d85e9f3096dc3c4c26ab8b0791ba33ee2eb34617e.jpg",
|
| 561 |
+
"text": "$$\nu _ { 1 } = v _ { 1 } \\quad \\mathrm { a n d } \\quad u _ { 2 } = v _ { 2 } - t ( v _ { 1 } )\n$$",
|
| 562 |
+
"text_format": "latex",
|
| 563 |
+
"bbox": [
|
| 564 |
+
388,
|
| 565 |
+
733,
|
| 566 |
+
609,
|
| 567 |
+
751
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 3
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "and only requires a feed-forward pass on the MLP $t$ . The choice of the decomposition $u = [ u _ { 1 } , u _ { 2 } ]$ can be arbitrary, and is performed by applying a binary filter to the input. By stacking additive coupling layers, one can create complex distributions, and the inversion of the resulting mapping is independent of the complexity of the neural networks $t$ . The density of the resulting distribution is readily computable thanks to the inverse transform theorem (5). ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
174,
|
| 576 |
+
753,
|
| 577 |
+
823,
|
| 578 |
+
824
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 3
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "3.3 VOLUME PRESERVING PROPERTIES",
|
| 585 |
+
"text_level": 1,
|
| 586 |
+
"bbox": [
|
| 587 |
+
176,
|
| 588 |
+
842,
|
| 589 |
+
455,
|
| 590 |
+
856
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 3
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "The transformation induced by NICE is volume preserving (it has a unitary Jacobian determinant). This is quite desirable in a ES context, as the role of concentrating the distribution on a minimum can be left to the latent space distribution $\\nu _ { \\omega }$ . The role of the additive coupling layers is therefore only to introduce non-linearities in the inverse transform $h _ { \\eta }$ so that the distribution is better adapted to the optimization landscape. The fact that this fit is volume-preserving (every subset of the latent space has an image in the data space with the same probability mass) encourages the search distribution to align its tails with regions of small value of the optimization landscape, which is likely to improve the quality of future exploration steps. The NICE model therefore fits perfectly our needs for a flexible search distribution that is easy to train, and that provides enough control on the exploration / exploitation trade-off. Other bijective GNN models like the Real-NVP (Dinh et al., 2016) introduce non-volume preserving transformations, which cannot provide such a control. In practice, we observed that using such transformations for ES led to early concentration and premature convergence. ",
|
| 597 |
+
"bbox": [
|
| 598 |
+
174,
|
| 599 |
+
867,
|
| 600 |
+
823,
|
| 601 |
+
924
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 3
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "",
|
| 608 |
+
"bbox": [
|
| 609 |
+
173,
|
| 610 |
+
103,
|
| 611 |
+
825,
|
| 612 |
+
229
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 4
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "4 AN EFFICIENT TRAINING ALGORITHM ",
|
| 619 |
+
"text_level": 1,
|
| 620 |
+
"bbox": [
|
| 621 |
+
174,
|
| 622 |
+
250,
|
| 623 |
+
519,
|
| 624 |
+
265
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "We are now equipped with enough tools to use GNNs for ES: an adapted model (NICE) for our search distribution $\\pi _ { \\theta }$ , and an objective to train it with: ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
173,
|
| 633 |
+
279,
|
| 634 |
+
823,
|
| 635 |
+
306
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 4
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "equation",
|
| 641 |
+
"img_path": "images/acc0e4d3035f85f37af9edc31a40644238e7cab149c5789581fdcdc5a380dae0.jpg",
|
| 642 |
+
"text": "$$\nJ ( \\theta ) = \\mathbb { E } _ { \\pi _ { \\theta } } \\left[ f ( x ) \\right]\n$$",
|
| 643 |
+
"text_format": "latex",
|
| 644 |
+
"bbox": [
|
| 645 |
+
436,
|
| 646 |
+
310,
|
| 647 |
+
562,
|
| 648 |
+
328
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 4
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "Here, $\\theta$ describes jointly the free parameters of the latent distribution $\\nu _ { \\omega }$ and $\\eta$ , the weights and biases of the MLPs forming the additive coupling layers. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
173,
|
| 657 |
+
332,
|
| 658 |
+
823,
|
| 659 |
+
359
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "We start this section by explaining why existing training strategies based on the objective (8) are not sufficient to truly leverage the flexibility of GNNs for ES, before introducing a new algorithm tailored for this task. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
366,
|
| 669 |
+
825,
|
| 670 |
+
409
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 4
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "4.1 LIMITATIONS OF EXISTING TRAINING STRATEGIES ",
|
| 677 |
+
"text_level": 1,
|
| 678 |
+
"bbox": [
|
| 679 |
+
174,
|
| 680 |
+
425,
|
| 681 |
+
562,
|
| 682 |
+
439
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 4
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "We found that the PGES algorithm (naive stochastic gradient descent of (8) with the score-function estimator) applied to the NICE distribution suffers from the same limitations as when applied to the Gaussian; it is inable to precisely locate any local minimum. As for the Gaussian, training the NICE distribution for ES requires employing more sophisticated algorithms - such as NES. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
173,
|
| 691 |
+
450,
|
| 692 |
+
825,
|
| 693 |
+
507
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 4
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "However, using the natural gradient for the GNNs distributions is not trivial. First the Fischer Information Matrix $F _ { \\theta }$ is not known analytically and must be estimated via Monte-Carlo sampling, thereby introducing approximation errors. Also, we found that the approximations justifying to follow the descent direction provided by the natural gradient are not adapted to the NICE distribution. Indeed, the assumption behind the NES update (4) is that the loss $\\bar { \\boldsymbol { J } } ( \\theta )$ can be (locally) well approximated by the quadratic objective: ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
173,
|
| 702 |
+
513,
|
| 703 |
+
825,
|
| 704 |
+
597
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 4
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "equation",
|
| 710 |
+
"img_path": "images/84a9bcb1bd2938b7ee40528a5bde608db5859f2e8e173dd5f4d8775da7957fdf.jpg",
|
| 711 |
+
"text": "$$\nJ ( \\theta + \\delta \\theta ) = J ( \\theta ) + \\delta \\theta ^ { T } \\nabla _ { \\theta } J ( \\theta ) + \\frac { \\gamma } { 2 } \\delta \\theta ^ { T } F _ { \\theta } \\delta \\theta\n$$",
|
| 712 |
+
"text_format": "latex",
|
| 713 |
+
"bbox": [
|
| 714 |
+
341,
|
| 715 |
+
601,
|
| 716 |
+
658,
|
| 717 |
+
627
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 4
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "where $\\gamma$ is a given non-negative Lagrange multiplier. For NICE, given the highly non-linear nature of $\\pi _ { \\theta }$ this approximation is bound to fail even close to the current parameter $\\theta$ and will lead to spurious updates. A classical technique (Martens, 2010) to avoid such updates is to artificially increase the curvature of the quadratic term, and is known as damping. Practically, this implies using $F _ { \\theta } + \\beta I$ instead of $F _ { \\theta }$ as the local curvature metric, with $\\beta$ a non-negative damping parameter. ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
174,
|
| 726 |
+
630,
|
| 727 |
+
825,
|
| 728 |
+
700
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 4
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "We found that to ensure continuous decrease of $J ( \\theta )$ , and because of its highly non-linear nature when using the GNNs, the damping parameter $\\beta$ has to be set to such high values that the modifications of the search distribution are too small to quickly make progress and by no means reaches state-of-the-art performances. We observed that even if the training of the additive coupling layers is performed correctly (i.e the distribution has the correct shape), high damping of the latent space parameters prevents the distribution from quickly concentrating when a minimum is found. ",
|
| 735 |
+
"bbox": [
|
| 736 |
+
174,
|
| 737 |
+
705,
|
| 738 |
+
823,
|
| 739 |
+
790
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 4
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "It is unclear how the damping parameter should be adapted to avoid spurious update, while still allowing the distribution to make large step in the latent space and ensure fast concentration when needed. In the following, we present an alternated minimization scheme to bypass the issues raised by natural gradient training for GNN distributions in a ES context. ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
174,
|
| 748 |
+
797,
|
| 749 |
+
825,
|
| 750 |
+
853
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 4
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "4.2 ALTERNATING MINIMIZATION ",
|
| 757 |
+
"text_level": 1,
|
| 758 |
+
"bbox": [
|
| 759 |
+
176,
|
| 760 |
+
869,
|
| 761 |
+
421,
|
| 762 |
+
883
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 4
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "So far, we used the parameter $\\theta$ to describe both $\\omega$ and $\\eta$ (respectively, the free parameters of the latent space distribution $\\nu _ { \\omega }$ and the degrees of freedom of the non-linear mapping $g _ { \\eta , \\ l }$ ), and the ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
176,
|
| 771 |
+
895,
|
| 772 |
+
823,
|
| 773 |
+
924
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 4
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "optimization over all these parameters was performed jointly. Separating the roles of $\\omega$ and $\\eta$ , the initial objective (2) can be rewritten as follows: ",
|
| 780 |
+
"bbox": [
|
| 781 |
+
171,
|
| 782 |
+
103,
|
| 783 |
+
823,
|
| 784 |
+
132
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 5
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "equation",
|
| 790 |
+
"img_path": "images/71a1fe73425079bbb6e34cda1ae2decab6a6d51a49675e5305e08d7aa8c31584.jpg",
|
| 791 |
+
"text": "$$\nJ ( \\theta ) = \\mathbb { E } _ { z \\sim \\nu _ { \\omega } } \\left[ f ( g _ { \\eta } ( z ) ) \\right] = J ( \\omega , \\eta )\n$$",
|
| 792 |
+
"text_format": "latex",
|
| 793 |
+
"bbox": [
|
| 794 |
+
377,
|
| 795 |
+
141,
|
| 796 |
+
620,
|
| 797 |
+
160
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 5
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Therefore, the initial objective can be rewritten as the expected value of samples drawn from the latent distribution, under the objective $f \\circ g _ { \\eta }$ - that is, the representation of the objective function $f$ in the latent space. If $\\nu _ { \\omega }$ is a standard distribution (i.e efficiently trainable with the natural gradient) and $f \\circ g _ { \\eta }$ is a well structured function (i.e one for which $\\nu _ { \\omega }$ is an efficient search distribution), then the single optimization of $\\omega$ by classical methods (such as the natural gradient) should avoid the limitations discussed in 2.2. This new representation motivates the design of a new training algorithm that optimizes the parameters $\\omega$ and $\\eta$ separately. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
173,
|
| 806 |
+
167,
|
| 807 |
+
825,
|
| 808 |
+
267
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 5
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "Alternating Minimization In the following, we will replace the notation $\\pi _ { \\theta }$ with $\\pi _ { \\omega , \\eta }$ to refer to the NICE distribution with parameter $\\theta = ( \\omega , \\eta )$ . We want to optimize $\\omega$ and $\\eta$ in an alternate fashion, which means performing the following updates at every step of the ES procedure: ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
285,
|
| 818 |
+
825,
|
| 819 |
+
328
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 5
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "equation",
|
| 825 |
+
"img_path": "images/805c5bef08c9c60bfa1727fcabc3d38ad1785db617653f7e8d85c389ce1bb501.jpg",
|
| 826 |
+
"text": "$$\n\\begin{array} { l } { \\omega _ { t + 1 } = \\underset { \\omega } { \\operatorname { a r g m i n } } J ( \\omega , \\eta _ { t } ) } \\\\ { \\eta _ { t + 1 } = \\underset { \\eta } { \\operatorname { a r g m i n } } J ( \\omega _ { t + 1 } , \\eta ) } \\end{array}\n$$",
|
| 827 |
+
"text_format": "latex",
|
| 828 |
+
"bbox": [
|
| 829 |
+
408,
|
| 830 |
+
337,
|
| 831 |
+
589,
|
| 832 |
+
391
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 5
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "This means that at iteration $t$ , samples are drawn from $\\pi _ { \\omega _ { t } , \\eta _ { t } }$ and serve to first optimize the latent space distribution parameters $\\omega$ , and then the additive coupling layers parameters $\\eta$ . For the following iteration, the population is sampled under πωt+1,ηt+1 . ",
|
| 839 |
+
"bbox": [
|
| 840 |
+
174,
|
| 841 |
+
407,
|
| 842 |
+
825,
|
| 843 |
+
452
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 5
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "The update (11a) of the latent space parameters is naturally derived from the new representation (10) of the initial objective. Indeed, $\\omega$ can be updated via natural gradient ascent of $J ( \\omega , \\eta _ { t } )$ - that is with keeping $\\eta = \\eta _ { t }$ fixed. Practically, this therefore reduces to applying a NES algorithm to the latent distribution $\\nu _ { \\omega }$ on the modified objective function $f \\circ g _ { \\eta _ { t } }$ . ",
|
| 850 |
+
"bbox": [
|
| 851 |
+
174,
|
| 852 |
+
457,
|
| 853 |
+
825,
|
| 854 |
+
513
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 5
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "Once the latent space parameters updated, the coupling layers parameters should be optimized with respect to: ",
|
| 861 |
+
"bbox": [
|
| 862 |
+
173,
|
| 863 |
+
518,
|
| 864 |
+
823,
|
| 865 |
+
547
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 5
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "equation",
|
| 871 |
+
"img_path": "images/6ee1f3122aeab8b1135eb6277e09dca80341915130cc75ce72af8dcbd498bdf3.jpg",
|
| 872 |
+
"text": "$$\nJ ( \\omega _ { t + 1 } , \\eta ) = \\mathbb { E } _ { \\pi _ { \\omega _ { t + 1 } , \\eta } } \\left[ f ( x ) \\right]\n$$",
|
| 873 |
+
"text_format": "latex",
|
| 874 |
+
"bbox": [
|
| 875 |
+
400,
|
| 876 |
+
558,
|
| 877 |
+
598,
|
| 878 |
+
578
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 5
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "At this stage, the only available samples are drawn under $\\pi _ { \\omega _ { t } , \\eta _ { t } }$ . To estimate, based on these samples, expectations under $\\pi _ { \\omega _ { t + 1 } , \\eta _ { t } }$ one must use importance propensity scores: ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
174,
|
| 887 |
+
594,
|
| 888 |
+
825,
|
| 889 |
+
625
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 5
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "equation",
|
| 895 |
+
"img_path": "images/b3df600c032dd501889546b46edfcf535bc8910f10cb77e37cbaa41d16c112dd.jpg",
|
| 896 |
+
"text": "$$\nJ ( \\omega _ { t + 1 } , \\eta ) = \\mathbb { E } _ { \\pi _ { \\omega _ { t } , \\eta _ { t } } } \\left[ f ( x ) \\frac { \\pi _ { \\omega _ { t + 1 } , \\eta } ( x ) } { \\pi _ { \\omega _ { t } , \\eta _ { t } } ( x ) } \\right]\n$$",
|
| 897 |
+
"text_format": "latex",
|
| 898 |
+
"bbox": [
|
| 899 |
+
362,
|
| 900 |
+
635,
|
| 901 |
+
633,
|
| 902 |
+
670
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 5
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "The straightforward minimization of this off-line objective is known to lead to degeneracies (Swaminathan & Joachims, 2015, Section 4), and must therefore be regularized. For our application, it is also desirable to make sure that the update $\\eta$ does not undo the progress made in the latent space - in other words, we want to regularize the change in $f \\circ g _ { \\eta }$ . To that extent, we adopt a technique proposed in Schulman et al. (2017) and minimize a modification on the initial objective with clipped propensity weights: ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
173,
|
| 911 |
+
678,
|
| 912 |
+
825,
|
| 913 |
+
763
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 5
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "equation",
|
| 919 |
+
"img_path": "images/9aa2b0918cecdcb933d25941d6acd337bf4206360a59e55db0dd0f1bad0aa689.jpg",
|
| 920 |
+
"text": "$$\n\\eta _ { t + 1 } = \\underset { \\eta } { \\mathrm { a r g m i n } } \\quad \\mathbb { E } _ { \\pi _ { \\omega _ { t + 1 } } , \\eta _ { t } } \\left[ f ( x ) \\mathrm { c l i p } _ { \\varepsilon } \\left( \\frac { \\pi _ { \\omega _ { t + 1 } , \\eta } ( x ) } { \\pi _ { \\omega _ { t + 1 } , \\eta _ { t } } ( x ) } \\right) \\right]\n$$",
|
| 921 |
+
"text_format": "latex",
|
| 922 |
+
"bbox": [
|
| 923 |
+
303,
|
| 924 |
+
772,
|
| 925 |
+
676,
|
| 926 |
+
809
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 5
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "${ \\mathrm { c l i p } } _ { \\varepsilon } ( x )$ clips the value of $x$ between $1 - \\epsilon$ and $1 + \\epsilon$ . The parameter $\\varepsilon$ is an hyper-parameter that controls the change in distribution, and the program (14) can be efficiently solved via a gradient descent type algorithm, such as Adam (Kingma & Ba, 2014). ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
174,
|
| 935 |
+
818,
|
| 936 |
+
825,
|
| 937 |
+
861
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 5
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "To sum up, we propose optimizing the latent distribution and the coupling layers separately. The latent space is optimized by natural gradient descent, and the coupling layers via an off-policy objective with clipped propensity weights. We call this algorithm GNN-ES for Generative Neural Networks Evolutionary Strategies. ",
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
867,
|
| 947 |
+
823,
|
| 948 |
+
924
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 5
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Latent space optimization It turns out the GNN-ES can be readily modified to incorporate virtually any existing ES algorithms that operates on the simple distribution $\\nu _ { \\omega }$ . For instance, if $\\nu _ { \\omega }$ is set to be a multivariate Gaussian with learnable mean and covariance matrix, the latent space optimization (11a) can be performed by either xNES or CMA-ES. This holds for any standard distribution $\\nu _ { \\omega }$ and any ES algorithm operating on that distribution. This remark allows us to place GNN-ES in a more general framework and to understand it as a way to improve existing ES algorithm, by providing a principled way to learn complex, non-linear transformations on top of rather standard search distributions (like the Gaussian). In what follows, we will use the GNN prefix in front of existing ES algorithm to describe its augmented version with our algorithm, working as a plug-in. Pseudo-code for this general algorithm can be found in Appendix B. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
173,
|
| 957 |
+
103,
|
| 958 |
+
825,
|
| 959 |
+
243
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 6
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "4.3 ADDITIONAL TOOLS ",
|
| 966 |
+
"text_level": 1,
|
| 967 |
+
"bbox": [
|
| 968 |
+
174,
|
| 969 |
+
260,
|
| 970 |
+
356,
|
| 971 |
+
273
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 6
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "Using historic data ES algorithms typically use small populations of samples to estimate expectations. Such small sample sizes don’t allow for enough data exposure for the GNN to build a meaningful transformation $g _ { \\eta }$ . To circumvent this problem, we augment the off-line program (14) with samples for past generations thanks to the fused importance sampling estimator (Peshkin & Shelton, 2002). This technique is classical in similar settings like MDP-based reinforcement learning and counterfactual reasoning (Nedelec et al., 2017; Agarwal et al., 2017) and proves to be essential for our problem. Formally, for a given horizon $T$ that controls how far we look in the past, this amounts to storing the samples $x$ drawn from $\\pi _ { \\theta _ { t - T + 1 } } , \\ldots , \\pi _ { \\theta _ { t } }$ (as well as their respective scores) in a buffer $\\mathcal { H } _ { T }$ . The objective (13) can then be rewritten as: ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
173,
|
| 980 |
+
285,
|
| 981 |
+
825,
|
| 982 |
+
411
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 6
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "equation",
|
| 988 |
+
"img_path": "images/acff45464ba0ddd601df29dedca3931a94c54f8f0099d81a1fa8c4572970aca1.jpg",
|
| 989 |
+
"text": "$$\n\\mathbb { E } _ { \\pi _ { \\omega _ { t } , \\eta _ { t } } } \\left[ f ( x ) \\frac { \\pi _ { \\omega _ { t + 1 } , \\eta } ( x ) } { \\pi _ { \\omega _ { t } , \\eta _ { t } } ( x ) } \\right] = T \\cdot \\mathbb { E } _ { x , f ( x ) \\in \\mathcal { H } _ { T } } \\left[ f ( x ) \\frac { \\pi _ { \\omega _ { t + 1 } , \\eta } ( x ) } { \\pi _ { \\theta _ { t - T + 1 } } ( x ) + \\dots + \\pi _ { \\theta _ { t } } ( x ) } \\right]\n$$",
|
| 990 |
+
"text_format": "latex",
|
| 991 |
+
"bbox": [
|
| 992 |
+
232,
|
| 993 |
+
417,
|
| 994 |
+
766,
|
| 995 |
+
453
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 6
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "This technique allows to increase the data exposure of the GNN by using past samples (and therefore does not require additional function evaluations) and to reduce the variance of the off-line estimator of the original expectation (12) (Nedelec et al., 2017). To control the change in distribution, the fused propensity weights can then be clipped in a similar fashion than in the program (14). ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
458,
|
| 1005 |
+
823,
|
| 1006 |
+
516
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 6
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Mode preserving properties To achieve improved exploration, the search distribution should align its tails with the level sets of the objective function. This is not guaranteed when performing the update step (14) since the GNN’s update could simply move the mean of the search distribution without shaping the tails. One way to encourage the GNN’s capacity to be allocated to the tails is to impose a mode-preserving property. If $\\mu$ denotes the location of a mode of the latent distribution, then the mode of the distribution $\\pi _ { \\theta }$ generated by the NICE model is located in $g _ { \\eta } ( \\mu )$ (see Appendix A for the proof). It is therefore easy to build a map $f _ { \\eta }$ based on the initial $g _ { \\eta }$ that is mode-preserving: ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
173,
|
| 1015 |
+
530,
|
| 1016 |
+
825,
|
| 1017 |
+
642
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 6
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "equation",
|
| 1023 |
+
"img_path": "images/da4c51102ed3f49c6193d7f8d4565a6718342ad484683c41d42cc76bf29b080e.jpg",
|
| 1024 |
+
"text": "$$\nf _ { \\eta } ( z ) \\triangleq g _ { \\eta } ( z ) - g _ { \\eta } ( \\mu ) + f _ { \\eta _ { t } } ( \\mu )\n$$",
|
| 1025 |
+
"text_format": "latex",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
388,
|
| 1028 |
+
648,
|
| 1029 |
+
609,
|
| 1030 |
+
669
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 6
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "where $\\mu _ { t }$ denotes the mode of the latent distribution $\\nu _ { \\omega }$ at iteration $t$ . Defined as such, $f _ { \\eta }$ preserves the mode of the previous search distribution (since $f _ { \\eta _ { t + 1 } } ( \\mu ) = f _ { \\eta _ { t } } ( \\mu ) )$ , is trivially still a bijection and remains volume preserving. Using the push-forward map $f _ { \\eta }$ instead of $g _ { \\eta }$ , we explicitly push the flexibility brought by the GNN to impact only the tails of the search distribution. As detailed in an ablation study presented in Appendix F, this additional tool turns out to be essential in order to use GNNs for ES. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
174,
|
| 1039 |
+
674,
|
| 1040 |
+
825,
|
| 1041 |
+
758
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 6
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "5 EXPERIMENTAL RESULTS ",
|
| 1048 |
+
"text_level": 1,
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
176,
|
| 1051 |
+
779,
|
| 1052 |
+
415,
|
| 1053 |
+
795
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 6
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "In all that follows, we build the NICE model with three coupling layers. Each coupling layer’s nonlinear mapping $t$ is built with a one hidden layer MLP, with 128 neurons and leaky ReLU (Maas et al., 2013) activation functions. This architecture is kept constant in all our experiments. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
174,
|
| 1062 |
+
809,
|
| 1063 |
+
823,
|
| 1064 |
+
852
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 6
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "5.1 VISUALIZATION ",
|
| 1071 |
+
"text_level": 1,
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
174,
|
| 1074 |
+
869,
|
| 1075 |
+
326,
|
| 1076 |
+
883
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 6
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "text",
|
| 1082 |
+
"text": "We present here two-dimensional visualizations of the behavior of a GNN distribution trained with GNN-xNES - the latent distribution is therefore Gaussian. Figure 3a displays the density level lines ",
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
174,
|
| 1085 |
+
895,
|
| 1086 |
+
823,
|
| 1087 |
+
924
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 6
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "image",
|
| 1093 |
+
"img_path": "images/73234a4420b6789f163034662822ec21c1faba1f0a0927942dab0d95c31b19fb.jpg",
|
| 1094 |
+
"image_caption": [
|
| 1095 |
+
"Figure 3: Rosenbrock ",
|
| 1096 |
+
"Figure 4: Rastrigin "
|
| 1097 |
+
],
|
| 1098 |
+
"image_footnote": [],
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
176,
|
| 1101 |
+
103,
|
| 1102 |
+
810,
|
| 1103 |
+
213
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 7
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Density level curves (dotted lines) in the data space and in the latent space of the resulting search distribution on the Rosenbrock function. Figure 3b displays the density level lines of the latent distribution, as well as the learned representation of the objective in the latent space. The search distribution is able to have curved density isolines, enabling better exploration. In the latent space, the global minimum can be reached without navigating a curved valley. Figures 4a and 4b provide similar visualizations on the Rastrigin function, a highly multimodal but symmetric objective. The GNN lowers the barriers between local minima, making it easier to escape a local minimum to the global minimum. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
254,
|
| 1112 |
+
251,
|
| 1113 |
+
741,
|
| 1114 |
+
265
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 7
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
174,
|
| 1123 |
+
294,
|
| 1124 |
+
825,
|
| 1125 |
+
392
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 7
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "5.2 SYNTHETIC OBJECTIVES ",
|
| 1132 |
+
"text_level": 1,
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
176,
|
| 1135 |
+
411,
|
| 1136 |
+
385,
|
| 1137 |
+
425
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 7
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Experimental set-up We present experiments on both unimodal and multimodal objectives for xNES and GNN-xNES. We use the official implementation of ${ \\bf x } { \\bf N } { \\bf E } { \\bf S } ^ { 1 }$ with default hyper-parameters (such as the population size $\\lambda$ ), both as a baseline and as an inner optimization method for GNNxNES. All experiments are run on the COmparing Continous Optimizers (COCO) (Hansen et al., 2016) platform, a popular framework for comparing black-box optimization algorithms. It namely allows to benchmark different algorithms on translated and rotated versions of the same objectives, in order to evaluate multiple configurations with different global minimum positions. We compare xNES and GNN-xNES on functions from the 2018 Black-Box Optimization Benchmark (BBOB) (Hansen et al., 2010) suite. When comparing these two algorithms, we impose that their initial search distributions are close in order to ensure fair comparison. We insist on the fact that the xNES algorithm has the exact same configuration whether it is used by itself or as an inner-optimization algorithm for GNN-xNES. Further experimental details, including additional hyper-parameters value for GNN-xNES are provided in Appendix C. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
173,
|
| 1146 |
+
438,
|
| 1147 |
+
825,
|
| 1148 |
+
617
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 7
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Unimodal landscapes We run the different algorithms on two unimodal landscapes where we expect GNN search distributions to bring a significant improvement over the Gaussian - as discussed in 2.2. These objectives functions are the Rotated Rosenbrock function (a curved valley with high conditioning) and the Bent Cigar (an asymmetric and curved Cigar function). Extensive details on these objective functions can be found in the BBOB documentation (Hansen et al., 2010). Results on additional unimodal functions can be found in Appendix E. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
174,
|
| 1157 |
+
636,
|
| 1158 |
+
825,
|
| 1159 |
+
718
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 7
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Performance is measured through Empirical Cumulative Distribution Functions (ECDFs) of the runtime, also known as data profiles (More & Wild, 2009). Such curves report the fraction of problems ´ solved as a function of the number of objective evaluations. For a given precision $\\Delta$ , a problem is said to be solved if the best function evaluation made so far is smaller than $f ( x ^ { * } ) + \\Delta$ . We create 200 problems, equally spaced on a log-scale from $\\Delta = 1 0 ^ { 2 }$ to $\\Delta = 1 0 ^ { - 5 }$ and, as in the COCO framework, aggregate them over 15 function instances. Results are presented in Figure 5 for the two benchmark functions and in dimensions $d = 2 , 5 , 1 0$ . ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
173,
|
| 1168 |
+
726,
|
| 1169 |
+
825,
|
| 1170 |
+
824
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 7
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Multimodal landscapes We now compare the performances of the different algorithms on a collection of three multimodal objectives: the Rastrigin function, the Griewank-Rosenbrock function and the Schwefel function. Extensive details about these objectives can be found in Hansen et al. (2010). ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
174,
|
| 1179 |
+
842,
|
| 1180 |
+
823,
|
| 1181 |
+
896
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 7
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "image",
|
| 1187 |
+
"img_path": "images/b10c47e6f87a4ca1484e4dbb8fb856ef523e7d90d0615d3965dadde266b9716d.jpg",
|
| 1188 |
+
"image_caption": [
|
| 1189 |
+
"Figure 5: ECDFs curves comparing GNN-xNES and xNES on the Rotated Rosenbrock and Bent Cigar functions, in dimensions $d { = } 2 , 5 , 1 0$ . "
|
| 1190 |
+
],
|
| 1191 |
+
"image_footnote": [],
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
173,
|
| 1194 |
+
103,
|
| 1195 |
+
820,
|
| 1196 |
+
386
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 8
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "image",
|
| 1202 |
+
"img_path": "images/c5a2dc2c1f95397fa76ee16194d3cf2e62ba52dae3659fc6be5207f67bc1c1f3.jpg",
|
| 1203 |
+
"image_caption": [
|
| 1204 |
+
"Figure 6: Scaling comparison of GNN-xNES and xNES on the Rastrigin, Griewank-Rosenbrock and Schwefel functions, $d { = } 2 , 5 , 1 0$ . "
|
| 1205 |
+
],
|
| 1206 |
+
"image_footnote": [],
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
174,
|
| 1209 |
+
449,
|
| 1210 |
+
823,
|
| 1211 |
+
589
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 8
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "When using ES algorithms to optimize multimodal functions, it is usual to augment them with restart strategies (Hansen, 2016). When convergence is detected, the search distribution is re-initialized in order to search another part of the landscape, and often the population size is increased. This allows to fairly compared algorithms that converge fast to potentially bad local minima, and algorithms that converges slower to better minima. Their exist a large variety of restart strategies (Loshchilov et al., 2012; Auger & Hansen, 2005); as the official implementation of xNES is not equipped with a default one, we trigger a restart whenever the algorithm makes no progress for more than $3 0 \\times d$ iterations. The standard deviation of the search distribution is set back to 1, and its mean sampled uniformly within the compact $\\mathcal { X }$ of interest (defined by the COCO framework). At each restart, the population size of the algorithm is multiplied by 2, as in Auger & Hansen (2005). This restart strategy is used for both xNES and GNN-xNES. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
173,
|
| 1220 |
+
665,
|
| 1221 |
+
825,
|
| 1222 |
+
819
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 8
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "We measure performance as the number of functions evaluations to find an objective value smaller than $f ( x ^ { * } ) \\stackrel { * } { + } 1 0 ^ { - 5 }$ within a budget of $d \\times 1 0 ^ { 5 }$ function evaluations, averaged over 15 function instances. When an algorithm is not able to discover the global minimum within the given budget, we use the maximum number of evaluations as its performance. For visualization purposes, this measure of performance is divided by $d ^ { 2 }$ . Results are reported in Figure 6. On all objectives, and for all dimensions, GNN-xNES discovers (in average) the global minimum faster than xNES. Additional results on others multimodal functions are presented in Appendix E. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
174,
|
| 1231 |
+
827,
|
| 1232 |
+
825,
|
| 1233 |
+
924
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 8
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "image",
|
| 1239 |
+
"img_path": "images/3f18464dcb8a92d8644bf09066084cf2ba259edb116ef3954c7026137fe015d3.jpg",
|
| 1240 |
+
"image_caption": [
|
| 1241 |
+
"Figure 7: Direct Policy Search experiments "
|
| 1242 |
+
],
|
| 1243 |
+
"image_footnote": [],
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
176,
|
| 1246 |
+
103,
|
| 1247 |
+
823,
|
| 1248 |
+
251
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 9
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "5.3 REINFORCEMENT LEARNING EXPERIMENTS ",
|
| 1255 |
+
"text_level": 1,
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
174,
|
| 1258 |
+
306,
|
| 1259 |
+
519,
|
| 1260 |
+
320
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 9
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "The goal of this section is to present additional comparison between xNES and GNN-xNES on RL-based objective functions - less synthetic than the previously considered BBOB functions. ES algorithms have recently been used for direct policy search in Reinforcement Learning (RL) and shown to reach performances comparable with state-of-the-art MDP-based techniques (Liu et al., 2019; Salimans et al., 2017). Direct Policy Search ignores the MDP structure of the RL environment and rather considers it as a black-box. The search for the optimal policy is performed directly in parameter space to maximize the average reward per trajectory: ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
173,
|
| 1269 |
+
333,
|
| 1270 |
+
825,
|
| 1271 |
+
431
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 9
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "equation",
|
| 1277 |
+
"img_path": "images/33c5df91c10725a19f74849fd1fb770369c283df12f61a9ba55c8d67ae4e49fc.jpg",
|
| 1278 |
+
"text": "$$\nf ( \\boldsymbol { x } ) = \\mathbb { E } _ { \\tau \\sim p _ { \\boldsymbol { x } } } \\left[ \\sum _ { j \\in \\tau } \\boldsymbol { r } _ { j } \\right]\n$$",
|
| 1279 |
+
"text_format": "latex",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
415,
|
| 1282 |
+
439,
|
| 1283 |
+
581,
|
| 1284 |
+
491
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 9
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "where $p _ { x }$ is the distribution of trajectories induced by the policy (the state-conditional distribution over actions) parametrized by $x$ , and $r$ the rewards generated by the environment. The objective (17) can readily be approximated from samples by simply rolling out $M$ trajectories, and optimized using ES. In our experiments2, we set $M = 1 0$ and optimize deterministic linear policies (as in Rajeswaran et al. (2017)). ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
173,
|
| 1293 |
+
497,
|
| 1294 |
+
825,
|
| 1295 |
+
568
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 9
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "In Figures $\\mathrm { 7 a }$ and 7b we report results of the GNN-xNES algorithm compared to xNES, when run on the Mujoco locomotion tasks Swimmer and InvertedDoublePendulum, both from the OpenAI Gym (Brockman et al., 2016). Performance is measured by the average reward per trajectory as a function of the number of evaluations of the objective $f$ . Results are averaged over 5 random seeds (ruling the initialization of the environment and the initial distribution over the policy parameters $x$ ). In all three environments, GNN-xNES discovers behaviors of high rewards faster than xNES. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
173,
|
| 1304 |
+
574,
|
| 1305 |
+
825,
|
| 1306 |
+
659
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 9
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "6 CONCLUSION ",
|
| 1313 |
+
"text_level": 1,
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
174,
|
| 1316 |
+
681,
|
| 1317 |
+
318,
|
| 1318 |
+
696
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 9
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "In this work, we motivate the use of GNNs for improving Evolutionary Strategies by pinpointing the limitations of classical search distributions, commonly used by standard ES algorithms. We propose a new algorithm that leverages the high flexibility of distributions generated by bijective GNNs with an ES objective. We highlight that this algorithm can be seen as a plug-in extension to existing ES algorithms, and therefore can virtually incorporate any of them. Finally, we show its empirical advantages across a diversity of synthetic objective functions, as well as from objectives coming from Reinforcement Learning. Beyond the proposal of this algorithm, we believe that our work highlights the role of expressiveness in exploration for optimization tasks. This idea could be leverage in other settings where exploration is crucial, such a MDP-based policy search methods. An interesting line of future work could focus on optimizing GNN-based conditional distribution for RL tasks - an idea already developed in Ward et al. (2019); Mazoure et al. (2019). Other possible extensions to our work could focus on investigating first-order and mixed oracles, such as in Grathwohl et al. (2017); Faury et al. (2018). ",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
173,
|
| 1327 |
+
714,
|
| 1328 |
+
825,
|
| 1329 |
+
893
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 9
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "REFERENCES \nAman Agarwal, Soumya Basu, Tobias Schnabel, and Thorsten Joachims. Effective evaluation using logged bandit feedback from multiple loggers. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 687–696. ACM, 2017. \nShun-Ichi Amari. Natural gradient works efficiently in learning. Neural Computation, 10(2):251– 276, 1998. \nAnne Auger and Nikolaus Hansen. A restart cma evolution strategy with increasing population size. In 2005 IEEE congress on evolutionary computation, volume 2, pp. 1769–1776. IEEE, 2005. \nGreg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. OpenAi Gym. arXiv preprint arXiv:1606.01540, 2016. \nLaurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-Linear Independent Components Estimation. arXiv preprint arXiv:1410.8516, 2014. \nLaurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density Estimation using Real NVP. arXiv preprint arXiv:1605.08803, 2016. \nYan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking Deep Reinforcement Learning for Continuous Control. In International Conference on Machine Learning, pp. 1329–1338, 2016. \nLouis Faury, Flavian Vasile, Clement Calauz ´ enes, and Oliver Fercoq. Neural Generative Models for \\` Global Optimization with Gradients. arXiv preprint arXiv:1805.08594, 2018. \nFrauke Friedrichs and Christian Igel. Evolutionary tuning of multiple SVM parameters. Neurocomputing, 64:107–117, 2005. \nTobias Glasmachers, Tom Schaul, Sun Yi, Daan Wierstra, and Jurgen Schmidhuber. Exponential ¨ natural evolution strategies. In Proceedings of the 12th annual conference on Genetic and evolutionary computation, pp. 393–400. ACM, 2010. \nIan Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative Adversarial Nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014. \nWill Grathwohl, Dami Choi, Yuhuai Wu, Geoff Roeder, and David Duvenaud. Backpropagation through the void: Optimizing control variates for black-box gradient estimation. arXiv preprint arXiv:1711.00123, 2017. \nNikolaus Hansen. The CMA Evolution Strategy: a tutorial. arXiv preprint arXiv:1604.00772, 2016. \nNikolaus Hansen and Andreas Ostermeier. Completely derandomized self-adaptation in Evolution Strategies. Evolutionary Computation, 9(2):159–195, 2001. \nNikolaus Hansen, Anne Auger, Steffen Finck, and Raymond Ros. Real-parameter black-box optimization benchmarking 2010: Experimental setup. PhD thesis, INRIA, 2010. \nNikolaus Hansen, Anne Auger, Olaf Mersmann, Tea Tusar, and Dimo Brockhoff. Coco: A platform for comparing continuous optimizers in a black-box setting. arXiv preprint arXiv:1603.08785, 2016. \nNikolaus Hansen, Youhei Akimoto, and Petr Baudis. CMA-ES/pycma on Github. Zenodo, DOI:10.5281/zenodo.2559634, February 2019. URL https://doi.org/10.5281/ zenodo.2559634. \nDonald R Jones, Matthias Schonlau, and William J Welch. Efficient global optimization of expensive black-box functions. Journal of Global optimization, 13(4):455–492, 1998. \nDiederik P Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. arXiv preprint arXiv:1412.6980, 2014. \nDiederik $\\mathrm { \\bf P }$ Kingma and Max Welling. Auto-encoding Variational Bayes. arXiv preprint arXiv:1312.6114, 2013. ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
171,
|
| 1338 |
+
77,
|
| 1339 |
+
826,
|
| 1340 |
+
931
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 10
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "Guoqing Liu, Li Zhao, Feidiao Yang, Jiang Bian, Tao Qin, Nenghai Yu, and Tie-Yan Liu. Trust Region Evolution Strategies. Association for the Advancement of Artificial Intelligence, 2019. ",
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
173,
|
| 1349 |
+
103,
|
| 1350 |
+
825,
|
| 1351 |
+
133
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 11
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"text": "Ilya Loshchilov and Frank Hutter. CMA-ES for hyperparameter optimization of deep neural networks. arXiv preprint arXiv:1604.07269, 2016. ",
|
| 1358 |
+
"bbox": [
|
| 1359 |
+
173,
|
| 1360 |
+
140,
|
| 1361 |
+
821,
|
| 1362 |
+
169
|
| 1363 |
+
],
|
| 1364 |
+
"page_idx": 11
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "text",
|
| 1368 |
+
"text": "Ilya Loshchilov, Marc Schoenauer, and Michele Sebag. Alternative restart strategies for cma-es. In International Conference on Parallel Problem Solving from Nature, pp. 296–305. Springer, 2012. ",
|
| 1369 |
+
"bbox": [
|
| 1370 |
+
174,
|
| 1371 |
+
176,
|
| 1372 |
+
823,
|
| 1373 |
+
205
|
| 1374 |
+
],
|
| 1375 |
+
"page_idx": 11
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "text",
|
| 1379 |
+
"text": "Andrew L Maas, Awni Y Hannun, and Andrew Y Ng. Rectifier nonlinearities improve neural network acoustic models. In ICML Workshop on Deep Learning for Audio, Speech and Language Processing. Citeseer, 2013. ",
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
174,
|
| 1382 |
+
212,
|
| 1383 |
+
825,
|
| 1384 |
+
256
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 11
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"text": "David JC MacKay. Bayesian neural networks and density networks. Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment, 354(1):73–80, 1995. ",
|
| 1391 |
+
"bbox": [
|
| 1392 |
+
174,
|
| 1393 |
+
263,
|
| 1394 |
+
825,
|
| 1395 |
+
306
|
| 1396 |
+
],
|
| 1397 |
+
"page_idx": 11
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"type": "text",
|
| 1401 |
+
"text": "James Martens. Deep Learning via Hessian-free Optimization. In International Conference of Machine Learning, volume 27, pp. 735–742, 2010. ",
|
| 1402 |
+
"bbox": [
|
| 1403 |
+
171,
|
| 1404 |
+
313,
|
| 1405 |
+
825,
|
| 1406 |
+
343
|
| 1407 |
+
],
|
| 1408 |
+
"page_idx": 11
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"type": "text",
|
| 1412 |
+
"text": "Bogdan Mazoure, Thang Doan, Audrey Durand, R Devon Hjelm, and Joelle Pineau. Leveraging exploration in off-policy algorithms via normalizing flows. arXiv preprint arXiv:1905.06893, 2019. ",
|
| 1413 |
+
"bbox": [
|
| 1414 |
+
174,
|
| 1415 |
+
351,
|
| 1416 |
+
823,
|
| 1417 |
+
392
|
| 1418 |
+
],
|
| 1419 |
+
"page_idx": 11
|
| 1420 |
+
},
|
| 1421 |
+
{
|
| 1422 |
+
"type": "text",
|
| 1423 |
+
"text": "Jorge J More and Stefan M Wild. Benchmarking derivative-free optimization algorithms. ´ SIAM Journal on Optimization, 20(1):172–191, 2009. ",
|
| 1424 |
+
"bbox": [
|
| 1425 |
+
173,
|
| 1426 |
+
400,
|
| 1427 |
+
823,
|
| 1428 |
+
430
|
| 1429 |
+
],
|
| 1430 |
+
"page_idx": 11
|
| 1431 |
+
},
|
| 1432 |
+
{
|
| 1433 |
+
"type": "text",
|
| 1434 |
+
"text": "Thomas Nedelec, Nicolas Le Roux, and Vianney Perchet. A Comparative Study of Counterfactual Estimators. arXiv preprint arXiv:1704.00773, 2017. ",
|
| 1435 |
+
"bbox": [
|
| 1436 |
+
176,
|
| 1437 |
+
436,
|
| 1438 |
+
821,
|
| 1439 |
+
467
|
| 1440 |
+
],
|
| 1441 |
+
"page_idx": 11
|
| 1442 |
+
},
|
| 1443 |
+
{
|
| 1444 |
+
"type": "text",
|
| 1445 |
+
"text": "George Papamakarios, Theo Pavlakou, and Iain Murray. Masked autoregressive flow for density estimation. In Advances in Neural Information Processing Systems, pp. 2338–2347, 2017. ",
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
174,
|
| 1448 |
+
473,
|
| 1449 |
+
823,
|
| 1450 |
+
503
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 11
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "text",
|
| 1456 |
+
"text": "Leonid Peshkin and Christian R Shelton. Learning from scarce experience. In Proceedings of the Nineteenth International Conference on Machine Learning, pp. 498–505. Morgan Kaufmann Publishers Inc., 2002. ",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
173,
|
| 1459 |
+
510,
|
| 1460 |
+
823,
|
| 1461 |
+
553
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 11
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "text",
|
| 1467 |
+
"text": "Aravind Rajeswaran, Kendall Lowrey, Emanuel V Todorov, and Sham M Kakade. Towards generalization and simplicity in continuous control. In Advances in Neural Information Processing Systems, pp. 6550–6561, 2017. ",
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
173,
|
| 1470 |
+
560,
|
| 1471 |
+
823,
|
| 1472 |
+
604
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 11
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "text",
|
| 1478 |
+
"text": "Ingo Rechenberg. Evolutionsstrategien. In Simulationsmethoden in der Medizin und Biologie, pp. 83–114. Springer, 1978. ",
|
| 1479 |
+
"bbox": [
|
| 1480 |
+
173,
|
| 1481 |
+
611,
|
| 1482 |
+
821,
|
| 1483 |
+
640
|
| 1484 |
+
],
|
| 1485 |
+
"page_idx": 11
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"type": "text",
|
| 1489 |
+
"text": "Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In International Conference on Machine Learning, pp. 1530–1538, 2015. ",
|
| 1490 |
+
"bbox": [
|
| 1491 |
+
171,
|
| 1492 |
+
647,
|
| 1493 |
+
823,
|
| 1494 |
+
678
|
| 1495 |
+
],
|
| 1496 |
+
"page_idx": 11
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"type": "text",
|
| 1500 |
+
"text": "Oren Rippel and Ryan Prescott Adams. High-dimensional Probability Estimation with Deep Density Models. arXiv preprint arXiv:1302.5125, 2013. ",
|
| 1501 |
+
"bbox": [
|
| 1502 |
+
173,
|
| 1503 |
+
684,
|
| 1504 |
+
821,
|
| 1505 |
+
714
|
| 1506 |
+
],
|
| 1507 |
+
"page_idx": 11
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"type": "text",
|
| 1511 |
+
"text": "Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution Strategies as a scalable alternative to Reinforcement Learning. arXiv preprint arXiv:1703.03864, 2017. ",
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
173,
|
| 1514 |
+
720,
|
| 1515 |
+
823,
|
| 1516 |
+
751
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 11
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "Tom Schaul, Justin Bayer, Daan Wierstra, Yi Sun, Martin Felder, Frank Sehnke, Thomas Ruckstieß, ¨ and Jurgen Schmidhuber. PyBrain. ¨ Journal of Machine Learning Research, 11:743–746, 2010. ",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
173,
|
| 1525 |
+
757,
|
| 1526 |
+
823,
|
| 1527 |
+
787
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 11
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"type": "text",
|
| 1533 |
+
"text": "Tom Schaul, Tobias Glasmachers, and Jurgen Schmidhuber. High dimensions and heavy tails for ¨ Natural Evolution Strategies. In Proceedings of the 13th annual conference on Genetic and Evolutionary Computation, pp. 845–852. ACM, 2011. ",
|
| 1534 |
+
"bbox": [
|
| 1535 |
+
173,
|
| 1536 |
+
794,
|
| 1537 |
+
823,
|
| 1538 |
+
838
|
| 1539 |
+
],
|
| 1540 |
+
"page_idx": 11
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"type": "text",
|
| 1544 |
+
"text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
|
| 1545 |
+
"bbox": [
|
| 1546 |
+
171,
|
| 1547 |
+
844,
|
| 1548 |
+
821,
|
| 1549 |
+
873
|
| 1550 |
+
],
|
| 1551 |
+
"page_idx": 11
|
| 1552 |
+
},
|
| 1553 |
+
{
|
| 1554 |
+
"type": "text",
|
| 1555 |
+
"text": "Hans-Paul Schwefel. Numerische Optimierung von Computer-Modellen mittels der Evolutionsstrategie: mit einer vergleichenden Einfuhrung in die Hill-Climbing-und Zufallsstrategie ¨ . Birkhauser, 1977. ¨ ",
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
174,
|
| 1558 |
+
882,
|
| 1559 |
+
823,
|
| 1560 |
+
924
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 11
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "text",
|
| 1566 |
+
"text": "Bobak Shahriari, Kevin Swersky, Ziyu Wang, Ryan P Adams, and Nando De Freitas. Taking the human out of the loop: A review of Bayesian Optimization. Proceedings of the IEEE, 104(1): 148–175, 2016. \nAkash Srivastava, Lazar Valkoz, Chris Russell, Michael U Gutmann, and Charles Sutton. Veegan: Reducing mode collapse in GANs using Implicit Variational Learning. In Advances in Neural Information Processing Systems, pp. 3308–3318, 2017. \nAdith Swaminathan and Thorsten Joachims. Counterfactual Risk Minimization: Learning from Logged Bandit Feedback. In International Conference on Machine Learning, pp. 814–823, 2015. \nPatrick Nadeem Ward, Ariella Smofsky, and Avishek Joey Bose. Improving exploration in softactor-critic with normalizing flows policies. arXiv preprint arXiv:1906.02771, 2019. \nDaan Wierstra, Tom Schaul, Jan Peters, and Juergen Schmidhuber. Natural Evolution Strategies. In Evolutionary omputation, 2008. CEC 2008.(IEEE World Congress on Computational Intelligence), pp. 3381–3387. IEEE, 2008. \nRonald J Williams. Simple statistical gradient-following algorithms for connectionist Reinforcement Learning. Machine Learning, 8(3-4):229–256, 1992. ",
|
| 1567 |
+
"bbox": [
|
| 1568 |
+
171,
|
| 1569 |
+
103,
|
| 1570 |
+
826,
|
| 1571 |
+
352
|
| 1572 |
+
],
|
| 1573 |
+
"page_idx": 12
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "A COMPUTING THE MODE OF THE SEARCH DISTRIBUTION ",
|
| 1578 |
+
"text_level": 1,
|
| 1579 |
+
"bbox": [
|
| 1580 |
+
174,
|
| 1581 |
+
102,
|
| 1582 |
+
671,
|
| 1583 |
+
118
|
| 1584 |
+
],
|
| 1585 |
+
"page_idx": 13
|
| 1586 |
+
},
|
| 1587 |
+
{
|
| 1588 |
+
"type": "text",
|
| 1589 |
+
"text": "We prove here the fact that if $\\mu$ denotes the location of the mode of the latent distribution $\\nu _ { \\omega }$ , then $g _ { \\eta } ( \\mu )$ is a mode for $\\pi _ { \\omega , \\eta }$ . Indeed, under reasonable smoothness assumptions, one has that $y$ is a mode for $\\pi _ { \\omega , \\eta }$ if and only if: ",
|
| 1590 |
+
"bbox": [
|
| 1591 |
+
174,
|
| 1592 |
+
132,
|
| 1593 |
+
825,
|
| 1594 |
+
176
|
| 1595 |
+
],
|
| 1596 |
+
"page_idx": 13
|
| 1597 |
+
},
|
| 1598 |
+
{
|
| 1599 |
+
"type": "equation",
|
| 1600 |
+
"img_path": "images/e7d459d7568fdfb5c698ff36a8b7432bcad37ee4a3d84f69db62465920a87492.jpg",
|
| 1601 |
+
"text": "$$\n\\frac { \\partial \\pi _ { \\omega , \\eta } ( x ) } { \\partial x } \\bigg | _ { x = y } = 0\n$$",
|
| 1602 |
+
"text_format": "latex",
|
| 1603 |
+
"bbox": [
|
| 1604 |
+
434,
|
| 1605 |
+
183,
|
| 1606 |
+
565,
|
| 1607 |
+
220
|
| 1608 |
+
],
|
| 1609 |
+
"page_idx": 13
|
| 1610 |
+
},
|
| 1611 |
+
{
|
| 1612 |
+
"type": "text",
|
| 1613 |
+
"text": "Since $\\pi _ { \\omega , \\eta } ( x ) = \\nu _ { \\omega } ( h _ { \\eta } ( x ) )$ , this is therefore equivalent to: ",
|
| 1614 |
+
"bbox": [
|
| 1615 |
+
173,
|
| 1616 |
+
226,
|
| 1617 |
+
562,
|
| 1618 |
+
242
|
| 1619 |
+
],
|
| 1620 |
+
"page_idx": 13
|
| 1621 |
+
},
|
| 1622 |
+
{
|
| 1623 |
+
"type": "equation",
|
| 1624 |
+
"img_path": "images/755e95fef3f867ca1edfea716890b24f3aee11d13f1037e66abbea9720d5161f.jpg",
|
| 1625 |
+
"text": "$$\n\\frac { \\partial h _ { \\eta } ( x ) } { \\partial x } \\bigg | _ { x = y } \\cdot \\frac { \\partial \\nu _ { \\omega } ( z ) } { \\partial z } \\bigg | _ { z = h _ { \\eta } ( y ) } = 0\n$$",
|
| 1626 |
+
"text_format": "latex",
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
380,
|
| 1629 |
+
247,
|
| 1630 |
+
619,
|
| 1631 |
+
286
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 13
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "text",
|
| 1637 |
+
"text": "In the NICE model, we have that $\\begin{array} { r } { \\left| \\frac { \\partial h _ { \\eta } ( x ) } { \\partial x } \\right| = 1 } \\end{array}$ for all $x$ hence the matrix $\\left. \\frac { \\partial h _ { \\eta } ( x ) } { \\partial x } \\right| _ { x = y }$ is invertible and its kernel is reduced to the null vector. Therefore: ",
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
171,
|
| 1640 |
+
292,
|
| 1641 |
+
826,
|
| 1642 |
+
333
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 13
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "equation",
|
| 1648 |
+
"img_path": "images/f14d8dae3ea10653dd45cf17f3f6536ea7e8f6fcfcd12e83f7e1249afde48f2a.jpg",
|
| 1649 |
+
"text": "$$\n\\frac { \\partial \\nu _ { \\omega } ( z ) } { \\partial z } \\bigg | _ { z = h _ { \\eta } ( y ) } = 0\n$$",
|
| 1650 |
+
"text_format": "latex",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
429,
|
| 1653 |
+
335,
|
| 1654 |
+
571,
|
| 1655 |
+
375
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 13
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "and therefore $\\mu = h _ { \\eta } ( y )$ by definition of $\\mu$ (the only critical point of $\\nu _ { \\omega }$ ). Hence since $h _ { \\eta } ^ { - 1 } = g _ { \\eta }$ , we have that $y = g _ { \\eta } ( \\mu )$ which concludes the proof. ",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
173,
|
| 1664 |
+
381,
|
| 1665 |
+
825,
|
| 1666 |
+
412
|
| 1667 |
+
],
|
| 1668 |
+
"page_idx": 13
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"type": "text",
|
| 1672 |
+
"text": "B ALGORITHM PSEUDO-CODE ",
|
| 1673 |
+
"text_level": 1,
|
| 1674 |
+
"bbox": [
|
| 1675 |
+
174,
|
| 1676 |
+
433,
|
| 1677 |
+
441,
|
| 1678 |
+
449
|
| 1679 |
+
],
|
| 1680 |
+
"page_idx": 13
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "text",
|
| 1684 |
+
"text": "We provide below the pseudo-code for the generic algorithm GNN- $\\mathcal { A }$ -ES, where $\\mathcal { A }$ is a generic ES algorithm operating on a parametric distribution $\\nu _ { \\omega }$ . The additional hyper-parameters are the horizon $T$ as well as the clipping constant $\\varepsilon$ . The function ${ \\mathrm { c l i p } } ( x , l b , u b )$ clips the input $x$ between a lower-bound $l b$ and an upper-bound $u b$ . ",
|
| 1685 |
+
"bbox": [
|
| 1686 |
+
173,
|
| 1687 |
+
463,
|
| 1688 |
+
825,
|
| 1689 |
+
520
|
| 1690 |
+
],
|
| 1691 |
+
"page_idx": 13
|
| 1692 |
+
},
|
| 1693 |
+
{
|
| 1694 |
+
"type": "table",
|
| 1695 |
+
"img_path": "images/f95eb85313ceb6ea54daa795075ff1e25cba0c0dded282646c083bb24988ba60.jpg",
|
| 1696 |
+
"table_caption": [
|
| 1697 |
+
"Algorithm 2: GNN-A-ES (ex: GNN-xNES, GNN-CMA-ES) "
|
| 1698 |
+
],
|
| 1699 |
+
"table_footnote": [],
|
| 1700 |
+
"table_body": "<table><tr><td>inputs : objective function f,distribution Vω and its related ES algorithm A hyper-parameters: clipping constant ε, NICE model architecture, initial parameters Wo, initial weights no, horizon T, population size 入 (Initialization) Initialize NICE MLPs weights and biases with 7o. Let Hbe a circular buffer of length T × 入</td></tr></table>",
|
| 1701 |
+
"bbox": [
|
| 1702 |
+
171,
|
| 1703 |
+
554,
|
| 1704 |
+
807,
|
| 1705 |
+
876
|
| 1706 |
+
],
|
| 1707 |
+
"page_idx": 13
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "text",
|
| 1711 |
+
"text": "∗The (GNN iteration) step can be performed with virtually any gradient descent solver. In all our experiments, we used Adam (Kingma & Ba, 2014) with learning rate 1e-4 for 500 epochs. ",
|
| 1712 |
+
"bbox": [
|
| 1713 |
+
173,
|
| 1714 |
+
895,
|
| 1715 |
+
823,
|
| 1716 |
+
924
|
| 1717 |
+
],
|
| 1718 |
+
"page_idx": 13
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"type": "text",
|
| 1722 |
+
"text": "Algorithm 2 does not detail the mode-preserving addition for the sake of readability and clarity. We provide additional details on this procedure here. Let $\\mu _ { t }$ be the mode of the latent distribution $\\nu _ { \\omega _ { t } }$ . At the (Initialization) step, set $\\alpha _ { 0 } = g _ { \\eta _ { 0 } } ( \\mu _ { 0 } )$ where $g _ { \\eta } ( \\cdot )$ is the push-forward map on the NICE model described in Section 3.2. For all round $t \\geq 1$ , let $\\dot { f } _ { \\eta } ( z ) = \\bar { g } _ { \\eta } ( z ) - g _ { \\eta } ( \\mu _ { t } ) \\bar { + } \\alpha _ { t }$ . The variable $\\alpha _ { t }$ represent the push forward mapping of the latent distribution’s mean under the current model. Every time the latent space is updated - the $_ { E S }$ update) step, let $\\alpha _ { t + 1 } = f _ { \\eta _ { t } } ( \\mu _ { t + 1 } )$ . Then, for the (GNN update), optimize the forward-map $f _ { \\eta } ( z ) = g _ { \\eta } ( z ) - g _ { \\eta } ( \\mu _ { t + 1 } ) + \\alpha _ { t + 1 }$ . After this update, we have $\\bar { f } _ { \\eta _ { t + 1 } } ( \\mu _ { t + 1 } ) = \\alpha _ { t + 1 } = f _ { \\eta _ { t } } ( \\mu _ { t + 1 } ) \\bar { { \\bf \\Phi } }$ , which means that the mode of the search distribution (which is the image of the latent distribution mode) has not been impacted by the GNN update. ",
|
| 1723 |
+
"bbox": [
|
| 1724 |
+
173,
|
| 1725 |
+
103,
|
| 1726 |
+
825,
|
| 1727 |
+
229
|
| 1728 |
+
],
|
| 1729 |
+
"page_idx": 14
|
| 1730 |
+
},
|
| 1731 |
+
{
|
| 1732 |
+
"type": "text",
|
| 1733 |
+
"text": "C EXPERIMENTAL DETAILS ",
|
| 1734 |
+
"text_level": 1,
|
| 1735 |
+
"bbox": [
|
| 1736 |
+
176,
|
| 1737 |
+
250,
|
| 1738 |
+
416,
|
| 1739 |
+
266
|
| 1740 |
+
],
|
| 1741 |
+
"page_idx": 14
|
| 1742 |
+
},
|
| 1743 |
+
{
|
| 1744 |
+
"type": "text",
|
| 1745 |
+
"text": "C.1 HYPER-PARAMETERS ",
|
| 1746 |
+
"text_level": 1,
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
176,
|
| 1749 |
+
281,
|
| 1750 |
+
366,
|
| 1751 |
+
296
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 14
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "text",
|
| 1757 |
+
"text": "Baselines We use xNES with its default (adapted) hyper-parameters (described in Wierstra et al. (2008)) for both its baselines versions and its inner optimization parts in GNN-xNES. The population size $\\lambda$ is one such hyper-parameters, and is therefore set to $\\lambda = 4 + \\lfloor 3 \\log ( d ) \\rfloor$ . Also, as it is classically done in ES algorithms, we use a rank-based fitness shaping, designed to make the algorithm invariant with respect to order-preserving cost transformations. We use the same fitnessshaping function as in Wierstra et al. (2008). ",
|
| 1758 |
+
"bbox": [
|
| 1759 |
+
174,
|
| 1760 |
+
308,
|
| 1761 |
+
825,
|
| 1762 |
+
392
|
| 1763 |
+
],
|
| 1764 |
+
"page_idx": 14
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"type": "text",
|
| 1768 |
+
"text": "GNN-ES Across all experiments, we use the same hyper-parameters for GNN-xNES without fine tuning for each tasks. We use three coupling layers, each with a single hidden layer MLP with 128 hidden neurons and Leaky ReLU activations. The MLPs are initialized via Glorot initialization, and the clipping constant is set to $\\varepsilon = 0 . 0 5$ . The history size $T$ was determined experimentally, and set to $T = \\bar { \\lfloor 3 * ( 1 + \\log ( d ) ) \\rfloor }$ . When restarts are used, this history size is divided by the numbers of restart so far (as the population size grows larger). ",
|
| 1769 |
+
"bbox": [
|
| 1770 |
+
174,
|
| 1771 |
+
409,
|
| 1772 |
+
825,
|
| 1773 |
+
493
|
| 1774 |
+
],
|
| 1775 |
+
"page_idx": 14
|
| 1776 |
+
},
|
| 1777 |
+
{
|
| 1778 |
+
"type": "text",
|
| 1779 |
+
"text": "C.2 SYNTHETIC OBJECTIVES ",
|
| 1780 |
+
"text_level": 1,
|
| 1781 |
+
"bbox": [
|
| 1782 |
+
174,
|
| 1783 |
+
511,
|
| 1784 |
+
388,
|
| 1785 |
+
525
|
| 1786 |
+
],
|
| 1787 |
+
"page_idx": 14
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"type": "text",
|
| 1791 |
+
"text": "Every synthetic objective we used in this work was taken from the BBOB2019 benchmark dataset. Their expression as well as additional details on the framework can be found in Hansen et al. (2010; 2016). At the beginning of each experiment, we set the Gaussian search distribution (for xNES) and the Gaussian latent distribution (for GNN-xNES) to a standard normal, with a mean uniformly sampled within the compact $\\mathcal { X }$ of interest (defined by the COCO framework). ",
|
| 1792 |
+
"bbox": [
|
| 1793 |
+
174,
|
| 1794 |
+
536,
|
| 1795 |
+
825,
|
| 1796 |
+
607
|
| 1797 |
+
],
|
| 1798 |
+
"page_idx": 14
|
| 1799 |
+
},
|
| 1800 |
+
{
|
| 1801 |
+
"type": "text",
|
| 1802 |
+
"text": "C.3 RL ENVIRONMENTS ",
|
| 1803 |
+
"text_level": 1,
|
| 1804 |
+
"bbox": [
|
| 1805 |
+
176,
|
| 1806 |
+
625,
|
| 1807 |
+
356,
|
| 1808 |
+
638
|
| 1809 |
+
],
|
| 1810 |
+
"page_idx": 14
|
| 1811 |
+
},
|
| 1812 |
+
{
|
| 1813 |
+
"type": "text",
|
| 1814 |
+
"text": "Table 1 provides details on the RL environment used to compare GNN-xNES and xNES, like the dimensions of the state space $s$ and action space $\\mathcal { A }$ , the number $d$ of the policy’s degrees of freedom and the maximum number of steps $m$ per trajectory. At the beginning of each experiment, we set the Gaussian search distribution (for xNES) and the Gaussian latent distribution (for GNN-xNES) to a standard normal with zero mean. In this particular case, where the function evaluations are noisy, we kept the default population size of the xNES algorithm. ",
|
| 1815 |
+
"bbox": [
|
| 1816 |
+
174,
|
| 1817 |
+
651,
|
| 1818 |
+
825,
|
| 1819 |
+
736
|
| 1820 |
+
],
|
| 1821 |
+
"page_idx": 14
|
| 1822 |
+
},
|
| 1823 |
+
{
|
| 1824 |
+
"type": "table",
|
| 1825 |
+
"img_path": "images/29c798382ab442c8ec3018c8fd9040ffa63004e6623833d5376d1231f82eebbc.jpg",
|
| 1826 |
+
"table_caption": [
|
| 1827 |
+
"Table 1: Reinforcement Learning environments "
|
| 1828 |
+
],
|
| 1829 |
+
"table_footnote": [],
|
| 1830 |
+
"table_body": "<table><tr><td>Name</td><td>|S|</td><td>|A|</td><td>d</td><td>m</td></tr><tr><td>Swimmer-v1</td><td>13</td><td>21</td><td>28</td><td>1000</td></tr><tr><td>InvertedDoublePendulum-v1</td><td>11</td><td></td><td>12</td><td>1000</td></tr><tr><td>HalfCheetah-v1</td><td>20</td><td>6</td><td>126</td><td>1000</td></tr></table>",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
303,
|
| 1833 |
+
747,
|
| 1834 |
+
694,
|
| 1835 |
+
808
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 14
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "text",
|
| 1841 |
+
"text": "D TWO-DIMENSIONAL VISUALIZATIONS ",
|
| 1842 |
+
"text_level": 1,
|
| 1843 |
+
"bbox": [
|
| 1844 |
+
174,
|
| 1845 |
+
864,
|
| 1846 |
+
522,
|
| 1847 |
+
880
|
| 1848 |
+
],
|
| 1849 |
+
"page_idx": 14
|
| 1850 |
+
},
|
| 1851 |
+
{
|
| 1852 |
+
"type": "text",
|
| 1853 |
+
"text": "We provide in Figure 8 additional two-dimensional visualizations of the behavior of GNN-xNES, on the Rosenbrock, Rastrigin, Beale and Bent-Cigar functions. We see that the NICE distributions can ",
|
| 1854 |
+
"bbox": [
|
| 1855 |
+
174,
|
| 1856 |
+
895,
|
| 1857 |
+
825,
|
| 1858 |
+
924
|
| 1859 |
+
],
|
| 1860 |
+
"page_idx": 14
|
| 1861 |
+
},
|
| 1862 |
+
{
|
| 1863 |
+
"type": "image",
|
| 1864 |
+
"img_path": "images/311d594c3ec6e8fb78527803e6d60d271d737b730c251be035e25006765a1219.jpg",
|
| 1865 |
+
"image_caption": [
|
| 1866 |
+
"(d) (Doubly asymmetric) Bent Cigar, global optimum at $( 0 , 0 )$ "
|
| 1867 |
+
],
|
| 1868 |
+
"image_footnote": [],
|
| 1869 |
+
"bbox": [
|
| 1870 |
+
181,
|
| 1871 |
+
109,
|
| 1872 |
+
663,
|
| 1873 |
+
199
|
| 1874 |
+
],
|
| 1875 |
+
"page_idx": 15
|
| 1876 |
+
},
|
| 1877 |
+
{
|
| 1878 |
+
"type": "image",
|
| 1879 |
+
"img_path": "images/da2a20cb2e51968ad3673c4e04b747ac7345cc1e02f779521621aacac09f74da.jpg",
|
| 1880 |
+
"image_caption": [
|
| 1881 |
+
"(a) Rosenbrock, global op- (b) Rastrigin, global opti- (c) Beale, global optimum timum at $( 1 , 1 )$ mum at $( 0 , 0 )$ at (3, 0.5) "
|
| 1882 |
+
],
|
| 1883 |
+
"image_footnote": [],
|
| 1884 |
+
"bbox": [
|
| 1885 |
+
661,
|
| 1886 |
+
104,
|
| 1887 |
+
813,
|
| 1888 |
+
193
|
| 1889 |
+
],
|
| 1890 |
+
"page_idx": 15
|
| 1891 |
+
},
|
| 1892 |
+
{
|
| 1893 |
+
"type": "table",
|
| 1894 |
+
"img_path": "images/d5adbb73a2df878260f9cdcde53f6875bbf3ce54a9fef534390de7898000fc03.jpg",
|
| 1895 |
+
"table_caption": [
|
| 1896 |
+
"Figure 8: Two-dimensional visualizations. The black dotted lines represent the isolines of the level curves of a NICE search distribution trained with GNN-xNES. "
|
| 1897 |
+
],
|
| 1898 |
+
"table_footnote": [],
|
| 1899 |
+
"table_body": "<table><tr><td>Algorithm</td><td>mean(# restarts), d=2</td><td>mean(# restarts), d=5</td><td>mean(# restarts),d=10</td></tr><tr><td>xNES</td><td>2.3</td><td>2.7</td><td>3.4</td></tr><tr><td>GNN-xNES</td><td>1.3</td><td>2.5</td><td>2.9</td></tr></table>",
|
| 1900 |
+
"bbox": [
|
| 1901 |
+
200,
|
| 1902 |
+
291,
|
| 1903 |
+
797,
|
| 1904 |
+
337
|
| 1905 |
+
],
|
| 1906 |
+
"page_idx": 15
|
| 1907 |
+
},
|
| 1908 |
+
{
|
| 1909 |
+
"type": "text",
|
| 1910 |
+
"text": "Table 2: Mean number of restarts needed to discover the global minimum on the Rastrigin function. ",
|
| 1911 |
+
"bbox": [
|
| 1912 |
+
173,
|
| 1913 |
+
347,
|
| 1914 |
+
821,
|
| 1915 |
+
361
|
| 1916 |
+
],
|
| 1917 |
+
"page_idx": 15
|
| 1918 |
+
},
|
| 1919 |
+
{
|
| 1920 |
+
"type": "text",
|
| 1921 |
+
"text": "efficiently fit each optimization landscapes, without having to reduce its entropy like a multivariate normal would. ",
|
| 1922 |
+
"bbox": [
|
| 1923 |
+
176,
|
| 1924 |
+
388,
|
| 1925 |
+
823,
|
| 1926 |
+
416
|
| 1927 |
+
],
|
| 1928 |
+
"page_idx": 15
|
| 1929 |
+
},
|
| 1930 |
+
{
|
| 1931 |
+
"type": "text",
|
| 1932 |
+
"text": "E ADDITIONAL RESULTS ",
|
| 1933 |
+
"text_level": 1,
|
| 1934 |
+
"bbox": [
|
| 1935 |
+
176,
|
| 1936 |
+
438,
|
| 1937 |
+
395,
|
| 1938 |
+
453
|
| 1939 |
+
],
|
| 1940 |
+
"page_idx": 15
|
| 1941 |
+
},
|
| 1942 |
+
{
|
| 1943 |
+
"type": "text",
|
| 1944 |
+
"text": "We present here some additional results on some unimodal and multimodal synthetic functions. Figure 9 present ECDFs curve obtained from the Attractive Sector function, a highly asymmetrical function around its global minimum. On such a function, GNN-xNES seems to accelerate xNES in small dimensions, however this speed-up disappears in higher dimensions. Figure 10 presents results on the Rosenbrock function (without random rotations). Again, GNN-xNES accelerates the xNES algorithm. Figure 11 present results on the multimodal functions Gallagher’s Gaussian 101 Peaks and Gallagher’s Gaussian 21 Peaks. Again, GNN-xNES discovers the global minimum faster (on average) than xNES. ",
|
| 1945 |
+
"bbox": [
|
| 1946 |
+
174,
|
| 1947 |
+
468,
|
| 1948 |
+
825,
|
| 1949 |
+
580
|
| 1950 |
+
],
|
| 1951 |
+
"page_idx": 15
|
| 1952 |
+
},
|
| 1953 |
+
{
|
| 1954 |
+
"type": "text",
|
| 1955 |
+
"text": "In our multimodal experiments, we used simulated restarts as a fair mean of comparing different algorithm (this is common practice in order to fairly compare algorithms that converge fast to potentially bad local minima to algorithms that converge slowly to the global minimum). If the empirical results prove that GNN-xNES accelerate xNES in the discovery of the global minimum, it does not prove that GNN-xNES leverages the flexibility of the GNN to detect the global minimum when xNES misses it. In an attempt to prove that it is indeed the case, we report in Table 2 the number of restarts needed by both GNN-xNES and xNES to discover the global minimum on the Rastrigin function (averaged over the 15 randomly initialized run). For this instance, GNN-xNES consistently discovers the global minimum with less restarts than xNES. ",
|
| 1956 |
+
"bbox": [
|
| 1957 |
+
174,
|
| 1958 |
+
587,
|
| 1959 |
+
825,
|
| 1960 |
+
712
|
| 1961 |
+
],
|
| 1962 |
+
"page_idx": 15
|
| 1963 |
+
},
|
| 1964 |
+
{
|
| 1965 |
+
"type": "text",
|
| 1966 |
+
"text": "As detailed in Section 4, one can apply Algorithm 2 as a plug-in to any ES method. So far, we empirically evaluated the benefits of our approach by comparing xNES against its GNN extension (GNN-xNES). We present in Figure 12 additional evaluations obtained by comparing CMA-ES and its GNN extension (denoted GNN-CMA-ES) on the Rosenbrock function in dimension 2,5 and 10. CMA-ES is considered to be the state-of-the-art ES algorithm, and improving its performances is a non-trivial task. On the considered example GNN-CMA-ES improves CMA-ES, highlighting the empirical benefit of our approach for a large class of ES algorithm. One can however observe that the performance boost brought by the GNN extension is milder for GNN-CMA-ES then for GNNxNES. We suspect that this is due to the use of cumulation via an evolution path in ${ \\mathrm { C M A } } – \\mathbf { E S } ^ { 3 }$ , which basically introduces a momentum-like update when optimizing the latent distribution. While using an evolution path makes a lot of sense when optimizing a stationary objective, it can be quite harmful for non-stationary ones. We therefore believe that the cumulation step in CMA-ES (for the latent distribution) and the GNN optimization (making the objective optimized by CMA-ES in the latent space non-stationary) can lead to conflicting updates and might hinder the benefits brought by the GNN’s additional flexibility. Designing a GNN update strategy complying with the use of evolution paths could therefore be a way of further improving GNN-CMA-ES, and is left for future work. ",
|
| 1967 |
+
"bbox": [
|
| 1968 |
+
174,
|
| 1969 |
+
719,
|
| 1970 |
+
825,
|
| 1971 |
+
900
|
| 1972 |
+
],
|
| 1973 |
+
"page_idx": 15
|
| 1974 |
+
},
|
| 1975 |
+
{
|
| 1976 |
+
"type": "image",
|
| 1977 |
+
"img_path": "images/4780aff2f18f49f8bd5ac4ccf8d08c815faa7980e56dd2a9c4d6ffed6c3bb3dc.jpg",
|
| 1978 |
+
"image_caption": [
|
| 1979 |
+
"Figure 9: ECDFs curve for the Attractive Sector function, $d { = } 2 , 5 , 1 0$ "
|
| 1980 |
+
],
|
| 1981 |
+
"image_footnote": [],
|
| 1982 |
+
"bbox": [
|
| 1983 |
+
174,
|
| 1984 |
+
102,
|
| 1985 |
+
820,
|
| 1986 |
+
242
|
| 1987 |
+
],
|
| 1988 |
+
"page_idx": 16
|
| 1989 |
+
},
|
| 1990 |
+
{
|
| 1991 |
+
"type": "image",
|
| 1992 |
+
"img_path": "images/15d5a43dad711006f45eb3c63a9311ee94135c357e7b775f9513f021c1f1efe7.jpg",
|
| 1993 |
+
"image_caption": [
|
| 1994 |
+
"Figure 10: ECDFs curve for the Rosenbrock function, $\\mathrm { d } { = } 2 , 5 { , } 1 0$ "
|
| 1995 |
+
],
|
| 1996 |
+
"image_footnote": [],
|
| 1997 |
+
"bbox": [
|
| 1998 |
+
174,
|
| 1999 |
+
284,
|
| 2000 |
+
821,
|
| 2001 |
+
426
|
| 2002 |
+
],
|
| 2003 |
+
"page_idx": 16
|
| 2004 |
+
},
|
| 2005 |
+
{
|
| 2006 |
+
"type": "text",
|
| 2007 |
+
"text": "",
|
| 2008 |
+
"bbox": [
|
| 2009 |
+
174,
|
| 2010 |
+
479,
|
| 2011 |
+
825,
|
| 2012 |
+
536
|
| 2013 |
+
],
|
| 2014 |
+
"page_idx": 16
|
| 2015 |
+
},
|
| 2016 |
+
{
|
| 2017 |
+
"type": "text",
|
| 2018 |
+
"text": "F ABLATION STUDY ",
|
| 2019 |
+
"text_level": 1,
|
| 2020 |
+
"bbox": [
|
| 2021 |
+
176,
|
| 2022 |
+
556,
|
| 2023 |
+
356,
|
| 2024 |
+
571
|
| 2025 |
+
],
|
| 2026 |
+
"page_idx": 16
|
| 2027 |
+
},
|
| 2028 |
+
{
|
| 2029 |
+
"type": "text",
|
| 2030 |
+
"text": "We present here an ablation study for two additional tools that we introduced after the alternating optimization view: the mode preserving (16) extension as well as the history augmentation (15). Figure 13 presents ECDFs curves on the Rosenbrock, Rotated Rosenbrock and Bent Cigar functions in 2D, for a version of GNN-xNES that doesn’t use history but only the current population. Using history and therefore exposing the GNN to larger datasets improves the procedure. Figure 14 present similar results on a version of GNN-xNES without the mode preserving property (16). Again, one can notice that ensuring that the GNN training is mode-preserving is crucial to improve experimental results. ",
|
| 2031 |
+
"bbox": [
|
| 2032 |
+
173,
|
| 2033 |
+
588,
|
| 2034 |
+
826,
|
| 2035 |
+
699
|
| 2036 |
+
],
|
| 2037 |
+
"page_idx": 16
|
| 2038 |
+
},
|
| 2039 |
+
{
|
| 2040 |
+
"type": "image",
|
| 2041 |
+
"img_path": "images/9e572d17a157ffd117415bd0f15a63c7cb309d9c5abf2d26176f23925a1ac64f.jpg",
|
| 2042 |
+
"image_caption": [
|
| 2043 |
+
"Figure 11: Scaling comparison of GNN-xNES and xNES on the Gallagher’s Gaussian 101 Peaks and Gallagher’s Gaussian 21 Peaks functions, $d { = } 2 , 5 , 1 0$ . "
|
| 2044 |
+
],
|
| 2045 |
+
"image_footnote": [],
|
| 2046 |
+
"bbox": [
|
| 2047 |
+
267,
|
| 2048 |
+
734,
|
| 2049 |
+
723,
|
| 2050 |
+
873
|
| 2051 |
+
],
|
| 2052 |
+
"page_idx": 16
|
| 2053 |
+
},
|
| 2054 |
+
{
|
| 2055 |
+
"type": "image",
|
| 2056 |
+
"img_path": "images/68ddd1cc5a7162a527451ccc1288b466f524bac93c83284b277804ec4d168823.jpg",
|
| 2057 |
+
"image_caption": [
|
| 2058 |
+
"Figure 12: ECDFs curves for the Rosenbrock function, $\\mathrm { ( d } { = } 2 , 5 , 1 0 \\mathrm { ) }$ comparing the CMA-ES and GNN-CMA-ES "
|
| 2059 |
+
],
|
| 2060 |
+
"image_footnote": [],
|
| 2061 |
+
"bbox": [
|
| 2062 |
+
174,
|
| 2063 |
+
142,
|
| 2064 |
+
823,
|
| 2065 |
+
285
|
| 2066 |
+
],
|
| 2067 |
+
"page_idx": 17
|
| 2068 |
+
},
|
| 2069 |
+
{
|
| 2070 |
+
"type": "image",
|
| 2071 |
+
"img_path": "images/ce5f379c22f570a949ae5a5c15dc76ba8c84c7e12ffc5755ca17c0d20d6b8274.jpg",
|
| 2072 |
+
"image_caption": [
|
| 2073 |
+
"Figure 13: ECDFs curves for xNES, GNN-xNES and GNN-xNES-no-history, for which the history size $T = 1$ . Using past populations to estimate expectations improves the optimization. "
|
| 2074 |
+
],
|
| 2075 |
+
"image_footnote": [],
|
| 2076 |
+
"bbox": [
|
| 2077 |
+
173,
|
| 2078 |
+
349,
|
| 2079 |
+
821,
|
| 2080 |
+
555
|
| 2081 |
+
],
|
| 2082 |
+
"page_idx": 17
|
| 2083 |
+
},
|
| 2084 |
+
{
|
| 2085 |
+
"type": "image",
|
| 2086 |
+
"img_path": "images/6c05e70bd63b61ad177ed55b672b85c9bdf4e56871bfb862f80ad4ae8ca57013.jpg",
|
| 2087 |
+
"image_caption": [
|
| 2088 |
+
"Figure 14: ECDFs curves for xNES, GNN-xNES and GNN-xNES-nmp, which is not mode preserving. Ensuring that the training of the GNN doesn’t impact the mode of the search distribution improves the optimization. "
|
| 2089 |
+
],
|
| 2090 |
+
"image_footnote": [],
|
| 2091 |
+
"bbox": [
|
| 2092 |
+
173,
|
| 2093 |
+
619,
|
| 2094 |
+
821,
|
| 2095 |
+
827
|
| 2096 |
+
],
|
| 2097 |
+
"page_idx": 17
|
| 2098 |
+
}
|
| 2099 |
+
]
|
parse/train/SJlDDnVKwS/SJlDDnVKwS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJlDDnVKwS/SJlDDnVKwS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/WoLQsYU8aZ/WoLQsYU8aZ.md
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PETTINGZOO: GYM FOR MULTI-AGENT REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
This paper introduces PettingZoo, a library of diverse sets of multi-agent environments under a single elegant Python API. PettingZoo was developed with the goal of accelerating research in multi-agent reinforcement learning, by creating a set of benchmark environments easily accessible to all researchers and a standardized API for the field. This goal is inspired by what OpenAI’s Gym library did for accelerating research in single-agent reinforcement learning, and PettingZoo draws heavily from Gym in terms of API and user experience. PettingZoo is unique from other multi-agent environment libraries in that it’s API is based on the model of Agent Environment Cycle (“AEC”) games, which allows for the sensible representation of all varieties of games under one API for the first time. While retaining a very simple and Gym-like API, PettingZoo still allows access to low-level environment properties required by non-traditional learning methods.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Reinforcement Learning (“RL”) considers learning a policy — a function that takes in an observation from an environment and emits an action — that achieves the maximum expected discounted reward when acting in an environment, and it’s capabilities have been one of the great success of modern machine learning. Multi-Agent Reinforcement Learning (MARL) in particular has been behind many of the most publicized achievements of modern machine learning — AlphaGo Zero (Silver et al., 2017), OpenAI Five (OpenAI, 2018), AlphaStar (Vinyals et al., 2019) — and has seen a boom in recent years. However, popular benchmark environments are scattered across many different locations (or made from scratch), are based around heterogeneous APIs, and are often in unmaintained states. Because of this, highly influential research in the field is generally restricted to institutions with dedicated engineering teams, research into new methods generally aren’t compared in like environments, and progress has been slow compared to single agent reinforcement learning (though this obviously cannot be attributed to benchmarks alone).
|
| 12 |
+
|
| 13 |
+
Motivated by this, we introduce PettingZoo — a Python library collecting maintained versions of all popular MARL environments under a single simple Python API similar to that of OpenAI’s Gym library. It’s available on PyPI and can be installed via pip install pettingzoo.
|
| 14 |
+
|
| 15 |
+
# 2 A TALE OF TOO MANY LIBRARIES
|
| 16 |
+
|
| 17 |
+
OpenAI Gym (Brockman et al., 2016) was introduced shortly after the potential of reinforcement learning became widely known with Mnih et al. (2015). At the time, doing basic research in reinforcement learning was a large engineering challenge. The most popular set of environments were Atari games as part of the Arcade Learning Environment (“ALE”) (Bellemare et al., 2013). The ALE originally was challenging to compile and install, and had an involved C API and later an unofficial fork with a Python wrapper (Goodrich, 2015). A scattering of other environments existed as independent projects, in various languages, all with unique APIs. This level of heterogeneity meant that reinforcement learning code had to be adapted to every environment (including bridging programming languages). Accordingly, standardized reinforcement learning implementations weren’t possible, comparisons against a wide variety of environments were very difficult, and doing simple research in reinforcement learning was generally restricted to organizations with software engineering divisions. Gym was created to promote research in reinforcement learning by making comprehensive benchmarking more accessible, by allowing algorithm reuse, and by letting average machine learning researchers access the environments. This last point was achieved by putting every environment that a researcher would want to benchmark with (at the time of creation) under one simple API that anyone could understand, in Python (which was just starting to be the lingua-de-franca for machine learning). This lead to a mass proliferation of reinforcement learning research (especially at smaller institutions), many environments compliant with the API (Kidzinski et al., 2018; Leurent, 2018; Zamora et al., ´ 2016), and many RL libraries based around the API (Hill et al., 2018; Liang et al., 2018; Kuhnle et al., 2017).
|
| 18 |
+
|
| 19 |
+
In the multiagent space, a similar level of fragmentation currently exists. Notable heterogenous sets of environments include OpenAI’s Competitive Multi-Agent Environments for competitive robotic control (Bansal et al., 2017), Sequential Social Dilemma Games for games where cooperation is difficult in a game theoretic sense (Leibo et al., 2017), RLCard for various card games Zha et al. (2019), MAgent for huge numbers of agents (Zheng et al., 2017), Multi-Particle Environments (”MPE") for diverse agent roles (Mordatch and Abbeel, 2017; Lowe et al., 2017), the Starcraft Multi-Agent Challenge (Samvelyan et al., 2019), and dozens more.
|
| 20 |
+
|
| 21 |
+
# 3 RELATED WORKS
|
| 22 |
+
|
| 23 |
+
Two attempts at some level of unification in the multi-agent space have been made. The first is OpenSpiel, released by Deepmind in 2019 (Lanctot et al., 2019), which includes excellent implementations of 45 classic games under one sensible API. However, their framework is limited to supporting simple discrete games due to its modeling of games as trees (which is impractical to represent for more continuous environments such as Atari). However, in the space of discrete games it has managed to encourage high quality and fair evaluations of general game solving methods.
|
| 24 |
+
|
| 25 |
+
The second is the multi-agent API of RLlib Liang et al. (2018), an ambitious distributed RL framework. While the API is powerful, it has very minimal feature support and cannot sensibly represent strictly turn based games (i.e. Hananbi or Go). However, we do maintain PettingZoo support within RLlib so that users can easily leverage the learning methods included on our environments.
|
| 26 |
+
|
| 27 |
+
# 4 DESIGN PHILOSOPHY
|
| 28 |
+
|
| 29 |
+
# Simplicity and Similarity to Gym
|
| 30 |
+
|
| 31 |
+
The ability for the Gym API to be near instantly understood has been a large driving factor in it’s widespread adoption. While a multi-agent API will inherently add complexity, we wanted to create a similarly simple API, and one that would be instantly familiar to researchers who have worked with Gym.
|
| 32 |
+
|
| 33 |
+
# Agent Environment Cycle Games Based API
|
| 34 |
+
|
| 35 |
+
Most environments have APIs that model agents as all stepping at once (Lowe et al., 2017; Zheng et al., 2017; Gupta et al., 2017; Liu et al., 2019; Liang et al., 2018), based on the Partially Observable Stochastic Games (POSGs) model. It turns out this easily results in bugs (Terry et al., 2020b) and is undesirable for handling strictly turn-based games, like chess, since agents aren’t allowed to step simultaneously. We instead model our API after the new Agent Environment Cycle games model, an equivalent model where agents step sequentially. That is, an agent performs an action, the environment responds, the next agent acts, the environment responds again, and the cycle repeats. This model allows for the sensible interactions with both strictly turn based games like chess and games where agents truly step simultaneously. A POSG can be easily converted to an equivalent sequential game by having each agent take a step in a cycle, and then updating the rewards and observations of the AEC game at the end of a cycle. For a formal proof of equivalence see (Terry et al., 2020b).
|
| 36 |
+
|
| 37 |
+
# Variable Number of Agents
|
| 38 |
+
|
| 39 |
+
We designed our API to robustly support the widest range of multi-agent scenarios possible, including agent generation and death. No general API currently supports this, but it is such an integral feature of so many environments that this support is essential.
|
| 40 |
+
|
| 41 |
+
# Sufficient Configurability
|
| 42 |
+
|
| 43 |
+
We wanted to make environments that are highly configurable by arguments the norm. In Gym, environments are generally not configurable, and arguments at generation are not used at all. However, playing with various environment properties is often highly desirable, and has accordingly been embraced by Gym environments outside the official library, as this makes research easier and aids reproducibility. Accordingly, we tried to make every reasonable environment parameter an option for users in PettingZoo.
|
| 44 |
+
|
| 45 |
+
This notion of configuration extends beyond environment configuration to how learning methods interact with the environment. Due to the wide diversity of optimizations and different strategies applied for MARL, we wanted our API to allow for low level access to rewards, observations, done states and other info, while still being very simple for normal applications. Cyclically expansive curriculum learning from Terry et al. (2020b) is a good example of an interesting method that requires this sort of low level access.
|
| 46 |
+
|
| 47 |
+
# Quality of Life Improvements
|
| 48 |
+
|
| 49 |
+
Being users of Gym ourselves, we sought to add several "quality of life" improvements in PettingZoo motivated by frustrations we faced as users. These are:
|
| 50 |
+
|
| 51 |
+
• Comprehensive, production-grade continuous integration testing. Testing in Gym is arguably lacking compared to other major libraries.
|
| 52 |
+
Tests of environments for API compliance and proper functionality, both for end users and for continuous integration testing of the library. We also provide detailed recommendations for better practices, inspired by the well liked messages of the Rust compiler.
|
| 53 |
+
Good error messages and warnings. When using Gym, triggering an error yields a trace back that needs to be slowly decoded to find the actual problem. We added speciality error messages and warnings for all common errors (that we’re aware of) to make development and debugging easier. This is again inspired by the Rust compiler.
|
| 54 |
+
Detailed, comprehensive documentation. Documentation is a fundamental part of a userfriendly software library. Observation space, action space, reward schemes, and other notable environment details are something you generally need to know to begin conducting even the most basic research with an environment. One criticism of Gym is that almost all information is only found in the source code, something especially problematic when working with sets of environments. To solve this in PettingZoo, we created a user friendly wiki-styled website that clearly includes all relevant information for an environment, as well as general information for sets of environments. Our website also includes details about tests, comprehensive API documentation, and so on. This is discussed further in section 7.
|
| 55 |
+
|
| 56 |
+
# 5 API
|
| 57 |
+
|
| 58 |
+
# 5.1 MAIN API
|
| 59 |
+
|
| 60 |
+
Per our discussion above, we sought to create a simple API that could encapsulate all games and be instantly understood to any Gym user, illustrated by comparing Figure 1 and Figure 2. We use the observation/action space objects from Gym, as well as the same seeding method because they are well designed and familiar to researchers.
|
| 61 |
+
|
| 62 |
+
Figure 1: Basic Usage of Gym
|
| 63 |
+
|
| 64 |
+
import gym
|
| 65 |
+
env $=$ gym.make(’CartPole-v0’)
|
| 66 |
+
observation $=$ env.reset()
|
| 67 |
+
for _ in range(1000): env.render() action $=$ policy(observation) observation, reward, done, info $=$ env.step(action)
|
| 68 |
+
env.close()
|
| 69 |
+
|
| 70 |
+
Figure 2: Basic Usage of PettingZoo
|
| 71 |
+
|
| 72 |
+
from pettingzoo.butterfly import pistonball_v0
|
| 73 |
+
env $=$ pistonball_v0.env()
|
| 74 |
+
env.reset()
|
| 75 |
+
for agent in env.agent_iter(1000): env.render() observation, reward, done, info $=$ env.last() action $=$ policy(observation, agent) env.step(action)
|
| 76 |
+
env.close()
|
| 77 |
+
|
| 78 |
+
# 5.2 PARALLEL API
|
| 79 |
+
|
| 80 |
+
In addition to our main API, for certain environments we offer a separate API based off of the POSG model. It supports games and methods that assume this model very nicely. In style, it is very similar to RLlib’s multi-agent API (Liang et al., 2018), accepting and returning dictionaries keyed on agent names. The primary motivation for including this secondary API is because in games where it’s applicable, it can allow for parallelization features which can lead to large performance improvements.
|
| 81 |
+
|
| 82 |
+
# 5.3 ADDITIONAL API FEATURES
|
| 83 |
+
|
| 84 |
+
While the API is elegant for simple cases, it’s still able to handle important edge cases. This is achieved through lower level API calls for specific attributes: rewards emitted at any time are included for every agent in the rewards dictionary attributes, and dones and infos dictionaries can similarly be used. We additionally have an observe(agent) function. render() and close() function identically to Gym for rendering environments being played by a policy. agents is a list of the names of all agents in the game, and due to considerations regarding variable numbers of agents possible_agents is an additional list attribute. Finally, observation_spaces and action_spaces are dictionaries of the Gym observation/action spaces for all agents in possible_agents.
|
| 85 |
+
|
| 86 |
+
When an agent dies, its done is set to True, it will become the next selected agent to act, and the action taken is required to be None. After this dummy step is taken, the agent will be removed from agents and all dictionary attributes. Note than a whole environment is done if and only if agents is empty. Agent generation can be implemented by simply adding an agent to the agents list and allowing its rewards and observations to be accessed.
|
| 87 |
+
|
| 88 |
+
Finally, environment configuration is handled by passing arguments to the .env() constructor, a standard that all third-party Gym environments have adapted. These arguments can fundamentally change environment behavior, such as the number of agents, the reward structure, and even its action and observation spaces. All environments in PettingZoo allow for some degree of customization in this manner, with many allowing quite a bit.
|
| 89 |
+
|
| 90 |
+
# 5.4 IMPLEMENTING AN ENVIRONMENT
|
| 91 |
+
|
| 92 |
+
Compliant environments inherit from a general class (AECEnv). To allow for sufficient flexibility, environments only expose lower level attributes (dictionaries of values for all agents — dones, infos, rewards) and an observe method that takes an agent. These are then wrapped to provide the more general functions you see above by the base class. This low level functionality allows for entirely new APIs to be efficiently added on top of PettingZoo environments should the need arise. We’ve done this ourselves with the secondary parallel POSG based API, which have wrappers that convert both to and from the parallel and standard APIs.
|
| 93 |
+
|
| 94 |
+
# 6 ENVIRONMENTS
|
| 95 |
+
|
| 96 |
+
Similar to Gym, we wanted to include popular and interesting environments within one package, in an easily usable format. Half of the environment classes we include (MPE, MAgent, and SISL),
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 3: Example Environments From Each Class
|
| 100 |
+
|
| 101 |
+
(e) MPE: Simple Adversary
|
| 102 |
+
|
| 103 |
+
despite their popularity, have previously only existed as unmaintained “research grade” code, have not been available for installation via pip, have required large amounts of maintenance to run at all, and have required large amounts of debugging, code review, code cleanup and documentation to bring to a production-grade state. The Multi-Agent Atari and Butterfly classes are new environments that we believe pose important and novel challenges to multi-agent reinforcement learning. Finally, we include the Classic class — classic board and card games popular within the RL literature.
|
| 104 |
+
|
| 105 |
+
# Atari
|
| 106 |
+
|
| 107 |
+
Atari games represent the single most popular and iconic class of benchmarks in reinforcement learning. Recently, a multi-agent fork of the Atari Learning Environment was created that allows programmatic control and reward collection of Atari’s iconic multi-player games (Terry and Black, 2020). As in the single player Atari environments, the observation is the rendered frame of the game, which is shared between all agents, so there is no partial observability. Most of these games have competitive or mixed reward structures, making them suitable for general study of adversarial and mixed reinforcement learning. In particular, Terry and Black (2020) categorizes the games into 7 different types: 1v1 tournament games, mixed sum survival games (Space Invaders, shown in Figure 3a. is an example of this), competitive racing games, long term strategy games, 2v2 tournament games, a four-player free-for-all game and a cooperative game. For easy ROM installation, AutoROM, a separate PyPI package, can be used to easily install the needed Atari ROMs in an automated manner.
|
| 108 |
+
|
| 109 |
+
# Butterfly
|
| 110 |
+
|
| 111 |
+
Of all the environments included, the majority of them are competitive. We wanted to supplement this with a set of interesting graphical cooperative environments. Pistonball, depicted in Figure 3b, where the pistons need to coordinate to move the ball to the left, while only being able to observe a local part of the screen, requires learning nontrivial emergent behavior and indirect communication to perform well. Knights Archers Zombies is a game in which players work together to defeat approaching zombies before they can reach the players. It is designed to be a fast paced graphically interesting combat game with partial observability and heterogeneous agents, where achieving good performance requires extraordinarily high levels of agent coordination. Cooperative pong, where two dissimilar paddles work together to keep the ball in play as long as possible, was intended to be a be very simple cooperative continuous control-type task, with heterogeneous agents. Prison was designed to be the simplest possible game in MARL, and to be used as a debugging tool. Prospector was included to intentionally be a very challenging game for conventional methods—it has two classes of agents, with different goals, action spaces, and observation spaces (something many current cooperative MARL algorithms struggle with), and has very sparse rewards (something all RL algorithms struggle with). It is intended to be an very difficult benchmark for MARL, in the same vein of Montezuma’s Revenge.
|
| 112 |
+
|
| 113 |
+
# Classic
|
| 114 |
+
|
| 115 |
+
Classical board and card games have long been some of the most popular environments in reinforcement learning (Tesauro, 1995; Silver et al., 2016; Bard et al., 2019). We include all of the standard multiplayer games in RLCard (Zha et al., 2019): Dou Dizhu, Gin Rummy, Leduc Hold’em, Limit Texas Hold’em, Mahjong, No-limit Texas Hold’em, and Uno. We additionally include all AlphaZero games, using the same observation and action spaces—Chess and Go. We finally included Backgammon, Connect Four, Checkers, Rock Paper Scissors, Rock Paper Scissors Lizard Spock, and Tic Tac Toe to add a diverse set of simple, popular games to allow for more robust benchmarking of RL methods.
|
| 116 |
+
|
| 117 |
+
# MAgent
|
| 118 |
+
|
| 119 |
+
The MAgent library, from Zheng et al. (2017) was introduced as a configurable and scalable environment that could support thousands of interactive agents. These environments have mostly been studied as a setting for emergent behavior (Pokle, 2018), heterogeneous agents (Subramanian et al., 2020), and efficient learning methods with many agents (Chen et al., 2019). We include a number of preset configurations, for example the Adversarial Pursuit environment shown in Figure 3d. We make a few changes to the preset configurations used in the original MAgent paper. The global "minimap" observations in the battle environment are turned off by default, requiring implicit communication between the agents for complex emergent behavior to occur. The rewards in Gather and Tiger-Deer are also slightly changed to prevent emergent behavior from being a direct result of the reward structure.
|
| 120 |
+
|
| 121 |
+
# MPE
|
| 122 |
+
|
| 123 |
+
The Multi-Agent Particle Environments (MPE) were introduced as part of Mordatch and Abbeel (2017) and first released as part of Lowe et al. (2017). These are 9 communication oriented environments where particle agents can (sometimes) move, communicate, see each other, push each other around, and interact with fixed landmarks. Environments are cooperative, competitive, or require team play. They have been popular in research for general MARL methods Lowe et al. (2017), emergent communication (Mordatch and Abbeel, 2017), team play (Palmer, 2020), and much more. As part of their inclusion in PettingZoo, we converted the action spaces to a discrete space which is the Cartesian product of the movement and communication action possibilities. We also added comprehensive documentation, parameterized any local reward shaping (with the default setting being the same as in Lowe et al. (2017)), and made a single render window which captures all the activities of all agents (including communication), making it easier to visualize.
|
| 124 |
+
|
| 125 |
+
# SISL
|
| 126 |
+
|
| 127 |
+
We finally included the three cooperative environments introduced in Gupta et al. (2017): Pursuit, Waterworld, and Multiwalker. Pursuit is a standard pursuit-evasion game Vidal et al. (2002) where pursuers and controlled in a randomly generated map. Pursuer agents are rewarded for capturing randomly generated evaders by surrounding them on all sides. Waterworld is a continuous control game where the pursuing agents cooperatively hunt down food targets while trying to avoid poison targets. Multiwalker (Figure 3f) is a more challenging continuous control task that is based on Gym’s BipedalWalker environment. In Multiwalker, a package is placed on three independently controlled robot legs. Each robot is given a small positive reward for every unit of forward horizontal movement of the package, while they receive a large penalty for dropping the package.
|
| 128 |
+
|
| 129 |
+
# 7 DOCUMENTATION
|
| 130 |
+
|
| 131 |
+
Documentation is a fundamental part of a user-friendly software library. There’s a tremendous amount of useful information about these environments, especially due to their diversity, so we sought to create as detailed documentation as possible, while designing it in a way to ensure it’s still useful and approachable. PettingZoo includes comprehensive documentation for the API, the continuous integration tests, and each environment. A majority of popular libraries do not have extensive documentation. For example, OpenAI’s popular Gym library only lists the observation space shape on each environment’s documentation page. PettingZoo’s documentation thoroughly explains each environment’s observation and action spaces, and includes relevant information to help researchers. The goal is to allow people to compare environments easily, and for developers to very rarely need to refer to source.
|
| 132 |
+
|
| 133 |
+
Our design for displaying so much information was inspired by Wikipedia’s familiar and well-known layout. This is illustrated in Figure 4. All documentation is included in the supplemental materials to facilitate anonymous review.
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 4: The beginning PettingZoo documentation for the Go environment, illustrating how we used the design metaphor of a Wikipedia page to include a large amount of detail in a manner that isn’t overwhelming
|
| 137 |
+
|
| 138 |
+
# 8 BASELINES
|
| 139 |
+
|
| 140 |
+
All environments implemented in PettingZoo include baselines to provide a general sense of the difficulty of the environment, and for something to initially compare against. We do this here for the
|
| 141 |
+
|
| 142 |
+
Butterfly environments that this library introduces for the first time; similar baselines exist in the papers introducing all other environments. We used parameter sharing (Terry et al., $2 0 2 0 \mathrm { c }$ ; Gupta et al., 2017) with Ape-X DQN (Horgan et al., 2018), with RLLib (Liang et al., 2018). Our results are shown in Figure 5. Preprocessing and hyperparameter details are included in Appendix A. All preprocessing was done with the SuperSuit wrapper library (Terry et al., 2020a), which has recently added support for PettingZoo based multi-agent environments based. Code for the environments, training logs, and saved policies are available at https://github.com/pettingzoopaper/ pettingzoopaper.
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 5: Total reward when learning on each Butterfly environment via parameter shared Ape-X DQN (a-d) and parameter shared PPO (e).
|
| 146 |
+
|
| 147 |
+
# 9 CONCLUSION
|
| 148 |
+
|
| 149 |
+
This paper introduces PettingZoo, a Python library of many diverse multi-agent reinforcement learning environments under one simple API, akin to a multi-agent version of OpenAI’s Gym library.
|
| 150 |
+
|
| 151 |
+
Reinforcement learning systems have two main components, the environment and the agent(s) that learn. Without a standardized environment base, research progresses by designing and building both the environment and the agent (as has been the case for MARL). The main contribution of PettingZoo is that it enables more research which focuses on agents by standardizing and democratizing the environments. We hope that this allows for research in multi-agent reinforcement learning to accelerate and flourish.
|
| 152 |
+
|
| 153 |
+
We’re aware of two notable limitations of PettingZoo. The first is that games with significantly more than 10,000 agents (or potential agents) will have meaningful performance issues. This arises from needing to prespecify observation/action spaces and potential agent names. We view this as a practically acceptable limitation. The second notable limitation is that PettingZoo does not currently allow users to access the global environment state, a feature required by some centralized critic methods. We’re actively working on supporting this via a .state() method.
|
| 154 |
+
|
| 155 |
+
We see three obvious directions for future work. The first is additions of more interesting environments under our API (possibly from by the community, as has happened with Gym). While we’ve included a large number of environments, there are additional sets that would be valuable to include: the open-source implementations of social sequential dilemma games (Vinitsky et al., 2019), and the StarCraft 2 Multi-Agent Challenge (“SMAC“) environments (Samvelyan et al., 2019). The second direction we envision is a service to allow different researchers’ agents to play against each other in competitive games, leveraging the standardized API and environment set. Finally, we envision the development of procedurally generated multi-agent environments to test how well methods generalize, akin to the Gym procgen environments. (Cobbe et al., 2019).
|
| 156 |
+
|
| 157 |
+
# ACKNOWLEDGMENTS
|
| 158 |
+
|
| 159 |
+
Thank you to Deepthi Raghunandan and Kevin Hogan for many helpful discussions surrounding what testing should look like. Thank you to Nathaniel Grammel for many helpful discussions in the early planning stages of the project. Thank you to Ross Allen and his group for reporting numerous bugs.
|
| 160 |
+
|
| 161 |
+
# REFERENCES
|
| 162 |
+
|
| 163 |
+
Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. CoRR, abs/1710.03748, 2017. URL http://arxiv.org/ abs/1710.03748.
|
| 164 |
+
|
| 165 |
+
Nolan Bard, Jakob N. Foerster, Sarath Chandar, Neil Burch, Marc Lanctot, H. Francis Song, Emilio Parisotto, Vincent Dumoulin, Subhodeep Moitra, Edward Hughes, Iain Dunning, Shibl Mourad, Hugo Larochelle, Marc G. Bellemare, and Michael Bowling. The hanabi challenge: A new frontier for AI research. CoRR, abs/1902.00506, 2019. URL http://arxiv.org/abs/ 1902.00506.
|
| 166 |
+
|
| 167 |
+
Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47: 253–279, 2013.
|
| 168 |
+
|
| 169 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
|
| 170 |
+
|
| 171 |
+
Y. Chen, M. Zhou, Ying Wen, Y. Yang, Y. Su, W. Zhang, Dell Zhang, J. Wang, and Han Liu. Factorized q-learning for large-scale multi-agent systems. In DAI ’19, 2019.
|
| 172 |
+
|
| 173 |
+
Karl Cobbe, Christopher Hesse, Jacob Hilton, and John Schulman. Leveraging procedural generation to benchmark reinforcement learning. arXiv preprint arXiv:1912.01588, 2019.
|
| 174 |
+
|
| 175 |
+
Ben Goodrich. ale_python_interface. https://github.com/bbitmaster/ale_python_ interface, 2015. GitHub repository.
|
| 176 |
+
|
| 177 |
+
Jayesh K Gupta, Maxim Egorov, and Mykel Kochenderfer. Cooperative multi-agent control using deep reinforcement learning. In International Conference on Autonomous Agents and Multiagent Systems, pages 66–83. Springer, 2017.
|
| 178 |
+
|
| 179 |
+
Ashley Hill, Antonin Raffin, Maximilian Ernestus, Adam Gleave, Anssi Kanervisto, Rene Traore, Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Stable baselines. https://github.com/ hill-a/stable-baselines, 2018.
|
| 180 |
+
|
| 181 |
+
Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado van Hasselt, and David Silver. Distributed prioritized experience replay. CoRR, abs/1803.00933, 2018. URL http://arxiv.org/abs/1803.00933.
|
| 182 |
+
|
| 183 |
+
Łukasz Kidzinski, Sharada P Mohanty, Carmichael Ong, Jennifer Hicks, Sean Francis, Sergey Levine, ´ Marcel Salathé, and Scott Delp. Learning to run challenge: Synthesizing physiologically accurate motion using deep reinforcement learning. In Sergio Escalera and Markus Weimer, editors, NIPS 2017 Competition Book. Springer, Springer, 2018.
|
| 184 |
+
|
| 185 |
+
Alexander Kuhnle, Michael Schaarschmidt, and Kai Fricke. Tensorforce: a tensorflow library for applied reinforcement learning. Web page, 2017. URL https://github.com/ tensorforce/tensorforce.
|
| 186 |
+
|
| 187 |
+
Marc Lanctot, Edward Lockhart, Jean-Baptiste Lespiau, Vinícius Flores Zambaldi, Satyaki Upadhyay, Julien Pérolat, Sriram Srinivasan, Finbarr Timbers, Karl Tuyls, Shayegan Omidshafiei, Daniel Hennes, Dustin Morrill, Paul Muller, Timo Ewalds, Ryan Faulkner, János Kramár, Bart De Vylder, Brennan Saeta, James Bradbury, David Ding, Sebastian Borgeaud, Matthew Lai, Julian Schrittwieser, Thomas W. Anthony, Edward Hughes, Ivo Danihelka, and Jonah Ryan-Davis. Openspiel: A framework for reinforcement learning in games. CoRR, abs/1908.09453, 2019. URL http://arxiv.org/abs/1908.09453.
|
| 188 |
+
|
| 189 |
+
Joel Z. Leibo, Vinícius Flores Zambaldi, Marc Lanctot, Janusz Marecki, and Thore Graepel. Multiagent reinforcement learning in sequential social dilemmas. CoRR, abs/1702.03037, 2017. URL http://arxiv.org/abs/1702.03037.
|
| 190 |
+
|
| 191 |
+
Edouard Leurent. An environment for autonomous driving decision-making. https://github. com/eleurent/highway-env, 2018.
|
| 192 |
+
|
| 193 |
+
Eric Liang, Richard Liaw, Robert Nishihara, Philipp Moritz, Roy Fox, Ken Goldberg, Joseph E. Gonzalez, Michael I. Jordan, and Ion Stoica. RLlib: Abstractions for distributed reinforcement learning. In International Conference on Machine Learning (ICML), 2018.
|
| 194 |
+
|
| 195 |
+
Siqi Liu, Guy Lever, Josh Merel, Saran Tunyasuvunakool, Nicolas Heess, and Thore Graepel. Emergent coordination through competition. CoRR, abs/1902.07151, 2019. URL http:// arxiv.org/abs/1902.07151.
|
| 196 |
+
|
| 197 |
+
Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, and Igor Mordatch. Multi-agent actorcritic for mixed cooperative-competitive environments. Neural Information Processing Systems (NIPS), 2017.
|
| 198 |
+
|
| 199 |
+
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, 518(7540):529–533, 2015.
|
| 200 |
+
|
| 201 |
+
Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. arXiv preprint arXiv:1703.04908, 2017.
|
| 202 |
+
|
| 203 |
+
OpenAI. Openai five. https://blog.openai.com/openai-five/, 2018.
|
| 204 |
+
|
| 205 |
+
G. Palmer. Independent learning approaches: Overcoming multi-agent learning pathologies in team-games. 2020.
|
| 206 |
+
|
| 207 |
+
Stefanie Anna Baby Ling Li Ashwini Pokle. Analysis of emergent behavior in multi agent environments using deep reinforcement learning. 2018.
|
| 208 |
+
|
| 209 |
+
Mikayel Samvelyan, Tabish Rashid, Christian Schröder de Witt, Gregory Farquhar, Nantas Nardelli, Tim G. J. Rudner, Chia-Man Hung, Philip H. S. Torr, Jakob N. Foerster, and Shimon Whiteson. The starcraft multi-agent challenge. CoRR, abs/1902.04043, 2019. URL http://arxiv.org/ abs/1902.04043.
|
| 210 |
+
|
| 211 |
+
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, 529(7587):484–489, 2016.
|
| 212 |
+
|
| 213 |
+
David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017.
|
| 214 |
+
|
| 215 |
+
Sriram Ganapathi Subramanian, P. Poupart, Matthew E. Taylor, and N. Hegde. Multi type mean field reinforcement learning. In AAMAS, 2020.
|
| 216 |
+
|
| 217 |
+
Justin K Terry and Benjamin Black. Multiplayer support for the arcade learning environment. arXiv preprint arXiv:2009.09341, 2020.
|
| 218 |
+
|
| 219 |
+
Justin K Terry, Benjamin Black, and Ananth Hari. Supersuit: Simple microwrappers for reinforcement learning environments. arXiv preprint arXiv:2008.08932, 2020a.
|
| 220 |
+
|
| 221 |
+
Justin K Terry, Nathaniel Grammel, Benjamin Black, Ananth Hari, Luis Santos, and Caroline Horsch. Agent environment cycle games. arXiv preprint arXiv:2009.13051, 2020b.
|
| 222 |
+
|
| 223 |
+
Justin K Terry, Nathaniel Grammel, Ananth Hari, Luis Santos, and Benjamin Black. Revisiting parameter sharing in multi-agent deep reinforcement learning. arXiv preprint arXiv:2005.13625, 2020c.
|
| 224 |
+
|
| 225 |
+
Gerald Tesauro. Temporal difference learning and td-gammon. Commun. ACM, 38(3):58–68, March 1995. ISSN 0001-0782. doi: 10.1145/203330.203343. URL https://doi.org/10.1145/ 203330.203343.
|
| 226 |
+
|
| 227 |
+
Rene Vidal, Omid Shakernia, H Jin Kim, David Hyunchul Shim, and Shankar Sastry. Probabilistic pursuit-evasion games: theory, implementation, and experimental evaluation. IEEE transactions on robotics and automation, 18(5):662–669, 2002.
|
| 228 |
+
|
| 229 |
+
Eugene Vinitsky, Natasha Jaques, Joel Leibo, Antonio Castenada, and Edward Hughes. An open source implementation of sequential social dilemma games. https://github.com/ eugenevinitsky/sequential_social_dilemma_games/, 2019. GitHub repository.
|
| 230 |
+
|
| 231 |
+
Oriol Vinyals, Igor Babuschkin, Wojciech M Czarnecki, Michaël Mathieu, Andrew Dudzik, Junyoung Chung, David H Choi, Richard Powell, Timo Ewalds, Petko Georgiev, et al. Grandmaster level in starcraft ii using multi-agent reinforcement learning. Nature, 575(7782):350–354, 2019.
|
| 232 |
+
|
| 233 |
+
Iker Zamora, Nestor Gonzalez Lopez, Victor Mayoral Vilches, and Alejandro Hernandez Cordero. Extending the openai gym for robotics: a toolkit for reinforcement learning using ros and gazebo. arXiv preprint arXiv:1608.05742, 2016.
|
| 234 |
+
|
| 235 |
+
Daochen Zha, Kwei-Herng Lai, Yuanpu Cao, Songyi Huang, Ruzhe Wei, Junyu Guo, and Xia Hu. Rlcard: A toolkit for reinforcement learning in card games. arXiv preprint arXiv:1910.04376, 2019.
|
| 236 |
+
|
| 237 |
+
Lianmin Zheng, Jiacheng Yang, Han Cai, Weinan Zhang, Jun Wang, and Yong Yu. Magent: A many-agent reinforcement learning platform for artificial collective intelligence. arXiv preprint arXiv:1712.00600, 2017.
|
| 238 |
+
|
| 239 |
+
# A BASELINE EXPERIMENT HYPERPARAMETERS AND PREPROCESSING
|
| 240 |
+
|
| 241 |
+
All of the environments were preprocessed in the following way: observations were resized to 84x84 images with linear interpolation, converted to grayscale, then normalized. This preprocessing was performed with SuperSuit (Terry et al., 2020a).
|
| 242 |
+
|
| 243 |
+
The graphically subtle environments (Knights Archers Zombies, Prospector and Cooperative Pong) had their observations processed with the RLlib default network: A convolutional layer with a $8 \mathrm { x } 8$ kernel, stride of 4, and 16 filters, followed by a convolutional layer with a 4x4 kernel, stride of 2, and 32 filters, followed by a convolutional layer with n 11x11 kernel, stride of 1, and 256 filters.
|
| 244 |
+
|
| 245 |
+
The graphically simple environments (Prison, Pistonball) were resized to $3 2 \mathrm { x } 3 2 $ and flattened in addition to the above preprocessing. The observation was processed with a network with two hidden linear layers, 400 and 300 neurons wide, respectively.
|
| 246 |
+
|
| 247 |
+
Table 1: Hyperparameters for ApeX DQN and PPO on each Butterfly environment.
|
| 248 |
+
|
| 249 |
+
<table><tr><td>RL method</td><td>Hyperparameter</td><td>Value</td></tr><tr><td>ApeX-DQN</td><td>adam_epsilon</td><td>0.00015</td></tr><tr><td></td><td>buffer_size</td><td>400000</td></tr><tr><td></td><td>double_q</td><td>True</td></tr><tr><td></td><td>dueling</td><td>True</td></tr><tr><td></td><td>epsilon_timesteps</td><td>200000</td></tr><tr><td></td><td>final_epsilon</td><td>0.01</td></tr><tr><td></td><td>final_prioritized_replay_beta</td><td>1.0</td></tr><tr><td></td><td>gamma</td><td>0.99</td></tr><tr><td></td><td>learning_starts</td><td>10000</td></tr><tr><td></td><td>lr</td><td>0.0001</td></tr><tr><td></td><td>n_step</td><td>3</td></tr><tr><td></td><td>num_atoms</td><td>1</td></tr><tr><td></td><td>num_envs_per_worker</td><td>4</td></tr><tr><td></td><td>num_gpus</td><td>1</td></tr><tr><td></td><td>num_workers</td><td>12</td></tr><tr><td></td><td>prioritized_replay</td><td>True</td></tr><tr><td></td><td>prioritized_replay_alpha</td><td>0.5</td></tr><tr><td></td><td>prioritized_replay_beta</td><td>0.4</td></tr><tr><td></td><td>prioritized_replay_beta_annealing_timesteps</td><td>2000000</td></tr><tr><td></td><td>rollout_fragment_length</td><td>32</td></tr><tr><td></td><td>target_network_update_freq</td><td>10000</td></tr><tr><td></td><td>timesteps_per_iteration</td><td>15000</td></tr><tr><td></td><td>train_batch_size</td><td>512</td></tr><tr><td>PPO</td><td>gamma</td><td>0.99</td></tr><tr><td></td><td>num_envs_per_worker</td><td>4</td></tr><tr><td></td><td>num_gpus</td><td>1</td></tr><tr><td></td><td>num_workers</td><td>12</td></tr><tr><td></td><td>compress_observations</td><td>False</td></tr><tr><td></td><td>lambda</td><td>0.95</td></tr><tr><td></td><td>kl_coeff</td><td>0.5</td></tr><tr><td></td><td>clip_rewards</td><td>True</td></tr><tr><td></td><td>clip_param</td><td>0.1</td></tr><tr><td></td><td>vf_clip_param</td><td>10.0</td></tr><tr><td></td><td>entropy_coeff</td><td>0.01</td></tr><tr><td></td><td>train_batch_size</td><td>5000</td></tr><tr><td></td><td>sample_batch_size</td><td>25</td></tr><tr><td></td><td>sgd_minibatch_size</td><td>256</td></tr><tr><td></td><td>num_sgd_iter</td><td>100</td></tr><tr><td></td><td>batch_mode</td><td>truncate_episodes</td></tr><tr><td></td><td>vf_share_layers</td><td>True</td></tr></table>
|
parse/train/WoLQsYU8aZ/WoLQsYU8aZ_content_list.json
ADDED
|
@@ -0,0 +1,1379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
826,
|
| 10 |
+
145
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "This paper introduces PettingZoo, a library of diverse sets of multi-agent environments under a single elegant Python API. PettingZoo was developed with the goal of accelerating research in multi-agent reinforcement learning, by creating a set of benchmark environments easily accessible to all researchers and a standardized API for the field. This goal is inspired by what OpenAI’s Gym library did for accelerating research in single-agent reinforcement learning, and PettingZoo draws heavily from Gym in terms of API and user experience. PettingZoo is unique from other multi-agent environment libraries in that it’s API is based on the model of Agent Environment Cycle (“AEC”) games, which allows for the sensible representation of all varieties of games under one API for the first time. While retaining a very simple and Gym-like API, PettingZoo still allows access to low-level environment properties required by non-traditional learning methods. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
265,
|
| 43 |
+
766,
|
| 44 |
+
433
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
458,
|
| 55 |
+
336,
|
| 56 |
+
474
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Reinforcement Learning (“RL”) considers learning a policy — a function that takes in an observation from an environment and emits an action — that achieves the maximum expected discounted reward when acting in an environment, and it’s capabilities have been one of the great success of modern machine learning. Multi-Agent Reinforcement Learning (MARL) in particular has been behind many of the most publicized achievements of modern machine learning — AlphaGo Zero (Silver et al., 2017), OpenAI Five (OpenAI, 2018), AlphaStar (Vinyals et al., 2019) — and has seen a boom in recent years. However, popular benchmark environments are scattered across many different locations (or made from scratch), are based around heterogeneous APIs, and are often in unmaintained states. Because of this, highly influential research in the field is generally restricted to institutions with dedicated engineering teams, research into new methods generally aren’t compared in like environments, and progress has been slow compared to single agent reinforcement learning (though this obviously cannot be attributed to benchmarks alone). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
489,
|
| 66 |
+
825,
|
| 67 |
+
656
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Motivated by this, we introduce PettingZoo — a Python library collecting maintained versions of all popular MARL environments under a single simple Python API similar to that of OpenAI’s Gym library. It’s available on PyPI and can be installed via pip install pettingzoo. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
664,
|
| 77 |
+
825,
|
| 78 |
+
705
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "2 A TALE OF TOO MANY LIBRARIES ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
726,
|
| 89 |
+
496,
|
| 90 |
+
742
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "OpenAI Gym (Brockman et al., 2016) was introduced shortly after the potential of reinforcement learning became widely known with Mnih et al. (2015). At the time, doing basic research in reinforcement learning was a large engineering challenge. The most popular set of environments were Atari games as part of the Arcade Learning Environment (“ALE”) (Bellemare et al., 2013). The ALE originally was challenging to compile and install, and had an involved C API and later an unofficial fork with a Python wrapper (Goodrich, 2015). A scattering of other environments existed as independent projects, in various languages, all with unique APIs. This level of heterogeneity meant that reinforcement learning code had to be adapted to every environment (including bridging programming languages). Accordingly, standardized reinforcement learning implementations weren’t possible, comparisons against a wide variety of environments were very difficult, and doing simple research in reinforcement learning was generally restricted to organizations with software engineering divisions. Gym was created to promote research in reinforcement learning by making comprehensive benchmarking more accessible, by allowing algorithm reuse, and by letting average machine learning researchers access the environments. This last point was achieved by putting every environment that a researcher would want to benchmark with (at the time of creation) under one simple API that anyone could understand, in Python (which was just starting to be the lingua-de-franca for machine learning). This lead to a mass proliferation of reinforcement learning research (especially at smaller institutions), many environments compliant with the API (Kidzinski et al., 2018; Leurent, 2018; Zamora et al., ´ 2016), and many RL libraries based around the API (Hill et al., 2018; Liang et al., 2018; Kuhnle et al., 2017). ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
757,
|
| 100 |
+
825,
|
| 101 |
+
924
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
103,
|
| 111 |
+
825,
|
| 112 |
+
214
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "In the multiagent space, a similar level of fragmentation currently exists. Notable heterogenous sets of environments include OpenAI’s Competitive Multi-Agent Environments for competitive robotic control (Bansal et al., 2017), Sequential Social Dilemma Games for games where cooperation is difficult in a game theoretic sense (Leibo et al., 2017), RLCard for various card games Zha et al. (2019), MAgent for huge numbers of agents (Zheng et al., 2017), Multi-Particle Environments (”MPE\") for diverse agent roles (Mordatch and Abbeel, 2017; Lowe et al., 2017), the Starcraft Multi-Agent Challenge (Samvelyan et al., 2019), and dozens more. ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
222,
|
| 122 |
+
825,
|
| 123 |
+
319
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "3 RELATED WORKS ",
|
| 130 |
+
"text_level": 1,
|
| 131 |
+
"bbox": [
|
| 132 |
+
176,
|
| 133 |
+
343,
|
| 134 |
+
354,
|
| 135 |
+
359
|
| 136 |
+
],
|
| 137 |
+
"page_idx": 1
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "text",
|
| 141 |
+
"text": "Two attempts at some level of unification in the multi-agent space have been made. The first is OpenSpiel, released by Deepmind in 2019 (Lanctot et al., 2019), which includes excellent implementations of 45 classic games under one sensible API. However, their framework is limited to supporting simple discrete games due to its modeling of games as trees (which is impractical to represent for more continuous environments such as Atari). However, in the space of discrete games it has managed to encourage high quality and fair evaluations of general game solving methods. ",
|
| 142 |
+
"bbox": [
|
| 143 |
+
174,
|
| 144 |
+
376,
|
| 145 |
+
825,
|
| 146 |
+
460
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "The second is the multi-agent API of RLlib Liang et al. (2018), an ambitious distributed RL framework. While the API is powerful, it has very minimal feature support and cannot sensibly represent strictly turn based games (i.e. Hananbi or Go). However, we do maintain PettingZoo support within RLlib so that users can easily leverage the learning methods included on our environments. ",
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
467,
|
| 156 |
+
825,
|
| 157 |
+
523
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "4 DESIGN PHILOSOPHY ",
|
| 164 |
+
"text_level": 1,
|
| 165 |
+
"bbox": [
|
| 166 |
+
176,
|
| 167 |
+
547,
|
| 168 |
+
385,
|
| 169 |
+
564
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "Simplicity and Similarity to Gym ",
|
| 176 |
+
"text_level": 1,
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
580,
|
| 180 |
+
406,
|
| 181 |
+
595
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "The ability for the Gym API to be near instantly understood has been a large driving factor in it’s widespread adoption. While a multi-agent API will inherently add complexity, we wanted to create a similarly simple API, and one that would be instantly familiar to researchers who have worked with Gym. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
602,
|
| 191 |
+
825,
|
| 192 |
+
657
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "Agent Environment Cycle Games Based API ",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
665,
|
| 203 |
+
485,
|
| 204 |
+
680
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Most environments have APIs that model agents as all stepping at once (Lowe et al., 2017; Zheng et al., 2017; Gupta et al., 2017; Liu et al., 2019; Liang et al., 2018), based on the Partially Observable Stochastic Games (POSGs) model. It turns out this easily results in bugs (Terry et al., 2020b) and is undesirable for handling strictly turn-based games, like chess, since agents aren’t allowed to step simultaneously. We instead model our API after the new Agent Environment Cycle games model, an equivalent model where agents step sequentially. That is, an agent performs an action, the environment responds, the next agent acts, the environment responds again, and the cycle repeats. This model allows for the sensible interactions with both strictly turn based games like chess and games where agents truly step simultaneously. A POSG can be easily converted to an equivalent sequential game by having each agent take a step in a cycle, and then updating the rewards and observations of the AEC game at the end of a cycle. For a formal proof of equivalence see (Terry et al., 2020b). ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
686,
|
| 214 |
+
825,
|
| 215 |
+
853
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Variable Number of Agents ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
176,
|
| 225 |
+
859,
|
| 226 |
+
366,
|
| 227 |
+
875
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "We designed our API to robustly support the widest range of multi-agent scenarios possible, including agent generation and death. No general API currently supports this, but it is such an integral feature of so many environments that this support is essential. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
176,
|
| 236 |
+
882,
|
| 237 |
+
823,
|
| 238 |
+
924
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Sufficient Configurability ",
|
| 245 |
+
"text_level": 1,
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
103,
|
| 249 |
+
352,
|
| 250 |
+
118
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "We wanted to make environments that are highly configurable by arguments the norm. In Gym, environments are generally not configurable, and arguments at generation are not used at all. However, playing with various environment properties is often highly desirable, and has accordingly been embraced by Gym environments outside the official library, as this makes research easier and aids reproducibility. Accordingly, we tried to make every reasonable environment parameter an option for users in PettingZoo. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
125,
|
| 260 |
+
825,
|
| 261 |
+
208
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "This notion of configuration extends beyond environment configuration to how learning methods interact with the environment. Due to the wide diversity of optimizations and different strategies applied for MARL, we wanted our API to allow for low level access to rewards, observations, done states and other info, while still being very simple for normal applications. Cyclically expansive curriculum learning from Terry et al. (2020b) is a good example of an interesting method that requires this sort of low level access. ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
215,
|
| 271 |
+
825,
|
| 272 |
+
299
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Quality of Life Improvements ",
|
| 279 |
+
"text_level": 1,
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
306,
|
| 283 |
+
383,
|
| 284 |
+
320
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Being users of Gym ourselves, we sought to add several \"quality of life\" improvements in PettingZoo motivated by frustrations we faced as users. These are: ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
328,
|
| 294 |
+
823,
|
| 295 |
+
356
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "• Comprehensive, production-grade continuous integration testing. Testing in Gym is arguably lacking compared to other major libraries. \nTests of environments for API compliance and proper functionality, both for end users and for continuous integration testing of the library. We also provide detailed recommendations for better practices, inspired by the well liked messages of the Rust compiler. \nGood error messages and warnings. When using Gym, triggering an error yields a trace back that needs to be slowly decoded to find the actual problem. We added speciality error messages and warnings for all common errors (that we’re aware of) to make development and debugging easier. This is again inspired by the Rust compiler. \nDetailed, comprehensive documentation. Documentation is a fundamental part of a userfriendly software library. Observation space, action space, reward schemes, and other notable environment details are something you generally need to know to begin conducting even the most basic research with an environment. One criticism of Gym is that almost all information is only found in the source code, something especially problematic when working with sets of environments. To solve this in PettingZoo, we created a user friendly wiki-styled website that clearly includes all relevant information for an environment, as well as general information for sets of environments. Our website also includes details about tests, comprehensive API documentation, and so on. This is discussed further in section 7. ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
215,
|
| 304 |
+
367,
|
| 305 |
+
825,
|
| 306 |
+
637
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 2
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "5 API ",
|
| 313 |
+
"text_level": 1,
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
659,
|
| 317 |
+
240,
|
| 318 |
+
674
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "5.1 MAIN API ",
|
| 325 |
+
"text_level": 1,
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
690,
|
| 329 |
+
289,
|
| 330 |
+
704
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Per our discussion above, we sought to create a simple API that could encapsulate all games and be instantly understood to any Gym user, illustrated by comparing Figure 1 and Figure 2. We use the observation/action space objects from Gym, as well as the same seeding method because they are well designed and familiar to researchers. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
174,
|
| 339 |
+
717,
|
| 340 |
+
825,
|
| 341 |
+
772
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 2
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "Figure 1: Basic Usage of Gym ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
398,
|
| 350 |
+
786,
|
| 351 |
+
601,
|
| 352 |
+
801
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 2
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "import gym \nenv $=$ gym.make(’CartPole-v0’) \nobservation $=$ env.reset() \nfor _ in range(1000): env.render() action $=$ policy(observation) observation, reward, done, info $=$ env.step(action) \nenv.close() ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
259,
|
| 361 |
+
814,
|
| 362 |
+
735,
|
| 363 |
+
915
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "Figure 2: Basic Usage of PettingZoo ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
377,
|
| 372 |
+
101,
|
| 373 |
+
620,
|
| 374 |
+
116
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "from pettingzoo.butterfly import pistonball_v0 \nenv $=$ pistonball_v0.env() \nenv.reset() \nfor agent in env.agent_iter(1000): env.render() observation, reward, done, info $=$ env.last() action $=$ policy(observation, agent) env.step(action) \nenv.close() ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
287,
|
| 383 |
+
126,
|
| 384 |
+
709,
|
| 385 |
+
241
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 3
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "5.2 PARALLEL API ",
|
| 392 |
+
"text_level": 1,
|
| 393 |
+
"bbox": [
|
| 394 |
+
174,
|
| 395 |
+
265,
|
| 396 |
+
321,
|
| 397 |
+
280
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "In addition to our main API, for certain environments we offer a separate API based off of the POSG model. It supports games and methods that assume this model very nicely. In style, it is very similar to RLlib’s multi-agent API (Liang et al., 2018), accepting and returning dictionaries keyed on agent names. The primary motivation for including this secondary API is because in games where it’s applicable, it can allow for parallelization features which can lead to large performance improvements. ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
173,
|
| 406 |
+
292,
|
| 407 |
+
825,
|
| 408 |
+
376
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "5.3 ADDITIONAL API FEATURES ",
|
| 415 |
+
"text_level": 1,
|
| 416 |
+
"bbox": [
|
| 417 |
+
176,
|
| 418 |
+
393,
|
| 419 |
+
415,
|
| 420 |
+
407
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 3
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "While the API is elegant for simple cases, it’s still able to handle important edge cases. This is achieved through lower level API calls for specific attributes: rewards emitted at any time are included for every agent in the rewards dictionary attributes, and dones and infos dictionaries can similarly be used. We additionally have an observe(agent) function. render() and close() function identically to Gym for rendering environments being played by a policy. agents is a list of the names of all agents in the game, and due to considerations regarding variable numbers of agents possible_agents is an additional list attribute. Finally, observation_spaces and action_spaces are dictionaries of the Gym observation/action spaces for all agents in possible_agents. ",
|
| 427 |
+
"bbox": [
|
| 428 |
+
174,
|
| 429 |
+
420,
|
| 430 |
+
825,
|
| 431 |
+
545
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 3
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "When an agent dies, its done is set to True, it will become the next selected agent to act, and the action taken is required to be None. After this dummy step is taken, the agent will be removed from agents and all dictionary attributes. Note than a whole environment is done if and only if agents is empty. Agent generation can be implemented by simply adding an agent to the agents list and allowing its rewards and observations to be accessed. ",
|
| 438 |
+
"bbox": [
|
| 439 |
+
174,
|
| 440 |
+
553,
|
| 441 |
+
825,
|
| 442 |
+
622
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 3
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "Finally, environment configuration is handled by passing arguments to the .env() constructor, a standard that all third-party Gym environments have adapted. These arguments can fundamentally change environment behavior, such as the number of agents, the reward structure, and even its action and observation spaces. All environments in PettingZoo allow for some degree of customization in this manner, with many allowing quite a bit. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
174,
|
| 451 |
+
630,
|
| 452 |
+
825,
|
| 453 |
+
699
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 3
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "5.4 IMPLEMENTING AN ENVIRONMENT ",
|
| 460 |
+
"text_level": 1,
|
| 461 |
+
"bbox": [
|
| 462 |
+
176,
|
| 463 |
+
718,
|
| 464 |
+
455,
|
| 465 |
+
732
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "Compliant environments inherit from a general class (AECEnv). To allow for sufficient flexibility, environments only expose lower level attributes (dictionaries of values for all agents — dones, infos, rewards) and an observe method that takes an agent. These are then wrapped to provide the more general functions you see above by the base class. This low level functionality allows for entirely new APIs to be efficiently added on top of PettingZoo environments should the need arise. We’ve done this ourselves with the secondary parallel POSG based API, which have wrappers that convert both to and from the parallel and standard APIs. ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
174,
|
| 474 |
+
743,
|
| 475 |
+
826,
|
| 476 |
+
842
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "6 ENVIRONMENTS ",
|
| 483 |
+
"text_level": 1,
|
| 484 |
+
"bbox": [
|
| 485 |
+
176,
|
| 486 |
+
863,
|
| 487 |
+
343,
|
| 488 |
+
878
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Similar to Gym, we wanted to include popular and interesting environments within one package, in an easily usable format. Half of the environment classes we include (MPE, MAgent, and SISL), ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
895,
|
| 498 |
+
825,
|
| 499 |
+
924
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "image",
|
| 505 |
+
"img_path": "images/a9b02e128eced92955f661e47951b0e0b1815a7263f73d2e088a212111264a40.jpg",
|
| 506 |
+
"image_caption": [
|
| 507 |
+
"Figure 3: Example Environments From Each Class "
|
| 508 |
+
],
|
| 509 |
+
"image_footnote": [],
|
| 510 |
+
"bbox": [
|
| 511 |
+
256,
|
| 512 |
+
127,
|
| 513 |
+
761,
|
| 514 |
+
601
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "(e) MPE: Simple Adversary ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
250,
|
| 523 |
+
613,
|
| 524 |
+
416,
|
| 525 |
+
627
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "despite their popularity, have previously only existed as unmaintained “research grade” code, have not been available for installation via pip, have required large amounts of maintenance to run at all, and have required large amounts of debugging, code review, code cleanup and documentation to bring to a production-grade state. The Multi-Agent Atari and Butterfly classes are new environments that we believe pose important and novel challenges to multi-agent reinforcement learning. Finally, we include the Classic class — classic board and card games popular within the RL literature. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
174,
|
| 534 |
+
686,
|
| 535 |
+
825,
|
| 536 |
+
770
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "Atari ",
|
| 543 |
+
"text_level": 1,
|
| 544 |
+
"bbox": [
|
| 545 |
+
174,
|
| 546 |
+
777,
|
| 547 |
+
214,
|
| 548 |
+
791
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 4
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "Atari games represent the single most popular and iconic class of benchmarks in reinforcement learning. Recently, a multi-agent fork of the Atari Learning Environment was created that allows programmatic control and reward collection of Atari’s iconic multi-player games (Terry and Black, 2020). As in the single player Atari environments, the observation is the rendered frame of the game, which is shared between all agents, so there is no partial observability. Most of these games have competitive or mixed reward structures, making them suitable for general study of adversarial and mixed reinforcement learning. In particular, Terry and Black (2020) categorizes the games into 7 different types: 1v1 tournament games, mixed sum survival games (Space Invaders, shown in Figure 3a. is an example of this), competitive racing games, long term strategy games, 2v2 tournament games, a four-player free-for-all game and a cooperative game. For easy ROM installation, AutoROM, a separate PyPI package, can be used to easily install the needed Atari ROMs in an automated manner. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
799,
|
| 558 |
+
825,
|
| 559 |
+
924
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 4
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
103,
|
| 569 |
+
825,
|
| 570 |
+
132
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 5
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "Butterfly ",
|
| 577 |
+
"text_level": 1,
|
| 578 |
+
"bbox": [
|
| 579 |
+
174,
|
| 580 |
+
140,
|
| 581 |
+
238,
|
| 582 |
+
154
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 5
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "Of all the environments included, the majority of them are competitive. We wanted to supplement this with a set of interesting graphical cooperative environments. Pistonball, depicted in Figure 3b, where the pistons need to coordinate to move the ball to the left, while only being able to observe a local part of the screen, requires learning nontrivial emergent behavior and indirect communication to perform well. Knights Archers Zombies is a game in which players work together to defeat approaching zombies before they can reach the players. It is designed to be a fast paced graphically interesting combat game with partial observability and heterogeneous agents, where achieving good performance requires extraordinarily high levels of agent coordination. Cooperative pong, where two dissimilar paddles work together to keep the ball in play as long as possible, was intended to be a be very simple cooperative continuous control-type task, with heterogeneous agents. Prison was designed to be the simplest possible game in MARL, and to be used as a debugging tool. Prospector was included to intentionally be a very challenging game for conventional methods—it has two classes of agents, with different goals, action spaces, and observation spaces (something many current cooperative MARL algorithms struggle with), and has very sparse rewards (something all RL algorithms struggle with). It is intended to be an very difficult benchmark for MARL, in the same vein of Montezuma’s Revenge. ",
|
| 589 |
+
"bbox": [
|
| 590 |
+
174,
|
| 591 |
+
161,
|
| 592 |
+
825,
|
| 593 |
+
381
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 5
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "Classic ",
|
| 600 |
+
"text_level": 1,
|
| 601 |
+
"bbox": [
|
| 602 |
+
174,
|
| 603 |
+
388,
|
| 604 |
+
225,
|
| 605 |
+
404
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 5
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "Classical board and card games have long been some of the most popular environments in reinforcement learning (Tesauro, 1995; Silver et al., 2016; Bard et al., 2019). We include all of the standard multiplayer games in RLCard (Zha et al., 2019): Dou Dizhu, Gin Rummy, Leduc Hold’em, Limit Texas Hold’em, Mahjong, No-limit Texas Hold’em, and Uno. We additionally include all AlphaZero games, using the same observation and action spaces—Chess and Go. We finally included Backgammon, Connect Four, Checkers, Rock Paper Scissors, Rock Paper Scissors Lizard Spock, and Tic Tac Toe to add a diverse set of simple, popular games to allow for more robust benchmarking of RL methods. ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
174,
|
| 614 |
+
410,
|
| 615 |
+
826,
|
| 616 |
+
508
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 5
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "MAgent ",
|
| 623 |
+
"text_level": 1,
|
| 624 |
+
"bbox": [
|
| 625 |
+
174,
|
| 626 |
+
515,
|
| 627 |
+
233,
|
| 628 |
+
530
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 5
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "The MAgent library, from Zheng et al. (2017) was introduced as a configurable and scalable environment that could support thousands of interactive agents. These environments have mostly been studied as a setting for emergent behavior (Pokle, 2018), heterogeneous agents (Subramanian et al., 2020), and efficient learning methods with many agents (Chen et al., 2019). We include a number of preset configurations, for example the Adversarial Pursuit environment shown in Figure 3d. We make a few changes to the preset configurations used in the original MAgent paper. The global \"minimap\" observations in the battle environment are turned off by default, requiring implicit communication between the agents for complex emergent behavior to occur. The rewards in Gather and Tiger-Deer are also slightly changed to prevent emergent behavior from being a direct result of the reward structure. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
536,
|
| 638 |
+
825,
|
| 639 |
+
675
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 5
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "MPE ",
|
| 646 |
+
"text_level": 1,
|
| 647 |
+
"bbox": [
|
| 648 |
+
174,
|
| 649 |
+
683,
|
| 650 |
+
212,
|
| 651 |
+
695
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 5
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "The Multi-Agent Particle Environments (MPE) were introduced as part of Mordatch and Abbeel (2017) and first released as part of Lowe et al. (2017). These are 9 communication oriented environments where particle agents can (sometimes) move, communicate, see each other, push each other around, and interact with fixed landmarks. Environments are cooperative, competitive, or require team play. They have been popular in research for general MARL methods Lowe et al. (2017), emergent communication (Mordatch and Abbeel, 2017), team play (Palmer, 2020), and much more. As part of their inclusion in PettingZoo, we converted the action spaces to a discrete space which is the Cartesian product of the movement and communication action possibilities. We also added comprehensive documentation, parameterized any local reward shaping (with the default setting being the same as in Lowe et al. (2017)), and made a single render window which captures all the activities of all agents (including communication), making it easier to visualize. ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
174,
|
| 660 |
+
704,
|
| 661 |
+
826,
|
| 662 |
+
856
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 5
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "SISL ",
|
| 669 |
+
"text_level": 1,
|
| 670 |
+
"bbox": [
|
| 671 |
+
174,
|
| 672 |
+
864,
|
| 673 |
+
210,
|
| 674 |
+
877
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 5
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "We finally included the three cooperative environments introduced in Gupta et al. (2017): Pursuit, Waterworld, and Multiwalker. Pursuit is a standard pursuit-evasion game Vidal et al. (2002) where pursuers and controlled in a randomly generated map. Pursuer agents are rewarded for capturing randomly generated evaders by surrounding them on all sides. Waterworld is a continuous control game where the pursuing agents cooperatively hunt down food targets while trying to avoid poison targets. Multiwalker (Figure 3f) is a more challenging continuous control task that is based on Gym’s BipedalWalker environment. In Multiwalker, a package is placed on three independently controlled robot legs. Each robot is given a small positive reward for every unit of forward horizontal movement of the package, while they receive a large penalty for dropping the package. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
174,
|
| 683 |
+
886,
|
| 684 |
+
825,
|
| 685 |
+
912
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 5
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "",
|
| 692 |
+
"bbox": [
|
| 693 |
+
174,
|
| 694 |
+
103,
|
| 695 |
+
825,
|
| 696 |
+
202
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 6
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "7 DOCUMENTATION ",
|
| 703 |
+
"text_level": 1,
|
| 704 |
+
"bbox": [
|
| 705 |
+
176,
|
| 706 |
+
222,
|
| 707 |
+
354,
|
| 708 |
+
237
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 6
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "Documentation is a fundamental part of a user-friendly software library. There’s a tremendous amount of useful information about these environments, especially due to their diversity, so we sought to create as detailed documentation as possible, while designing it in a way to ensure it’s still useful and approachable. PettingZoo includes comprehensive documentation for the API, the continuous integration tests, and each environment. A majority of popular libraries do not have extensive documentation. For example, OpenAI’s popular Gym library only lists the observation space shape on each environment’s documentation page. PettingZoo’s documentation thoroughly explains each environment’s observation and action spaces, and includes relevant information to help researchers. The goal is to allow people to compare environments easily, and for developers to very rarely need to refer to source. ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
174,
|
| 717 |
+
252,
|
| 718 |
+
825,
|
| 719 |
+
391
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "Our design for displaying so much information was inspired by Wikipedia’s familiar and well-known layout. This is illustrated in Figure 4. All documentation is included in the supplemental materials to facilitate anonymous review. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
174,
|
| 728 |
+
398,
|
| 729 |
+
825,
|
| 730 |
+
440
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "image",
|
| 736 |
+
"img_path": "images/65c3896c46cc6a5513b1379dc1ff0e650eff5b67976670bb54346138584a2bef.jpg",
|
| 737 |
+
"image_caption": [
|
| 738 |
+
"Figure 4: The beginning PettingZoo documentation for the Go environment, illustrating how we used the design metaphor of a Wikipedia page to include a large amount of detail in a manner that isn’t overwhelming "
|
| 739 |
+
],
|
| 740 |
+
"image_footnote": [],
|
| 741 |
+
"bbox": [
|
| 742 |
+
334,
|
| 743 |
+
454,
|
| 744 |
+
656,
|
| 745 |
+
784
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 6
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "8 BASELINES",
|
| 752 |
+
"text_level": 1,
|
| 753 |
+
"bbox": [
|
| 754 |
+
176,
|
| 755 |
+
864,
|
| 756 |
+
300,
|
| 757 |
+
880
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "All environments implemented in PettingZoo include baselines to provide a general sense of the difficulty of the environment, and for something to initially compare against. We do this here for the ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
174,
|
| 766 |
+
895,
|
| 767 |
+
823,
|
| 768 |
+
924
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 6
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Butterfly environments that this library introduces for the first time; similar baselines exist in the papers introducing all other environments. We used parameter sharing (Terry et al., $2 0 2 0 \\mathrm { c }$ ; Gupta et al., 2017) with Ape-X DQN (Horgan et al., 2018), with RLLib (Liang et al., 2018). Our results are shown in Figure 5. Preprocessing and hyperparameter details are included in Appendix A. All preprocessing was done with the SuperSuit wrapper library (Terry et al., 2020a), which has recently added support for PettingZoo based multi-agent environments based. Code for the environments, training logs, and saved policies are available at https://github.com/pettingzoopaper/ pettingzoopaper. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
173,
|
| 777 |
+
103,
|
| 778 |
+
826,
|
| 779 |
+
215
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 7
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "image",
|
| 785 |
+
"img_path": "images/78f54dc3d5e43fd64d01736df70d1bcbc1373c913c6dbfeaa93b6e82297c602b.jpg",
|
| 786 |
+
"image_caption": [
|
| 787 |
+
"Figure 5: Total reward when learning on each Butterfly environment via parameter shared Ape-X DQN (a-d) and parameter shared PPO (e). "
|
| 788 |
+
],
|
| 789 |
+
"image_footnote": [],
|
| 790 |
+
"bbox": [
|
| 791 |
+
179,
|
| 792 |
+
227,
|
| 793 |
+
820,
|
| 794 |
+
665
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 7
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "9 CONCLUSION ",
|
| 801 |
+
"text_level": 1,
|
| 802 |
+
"bbox": [
|
| 803 |
+
174,
|
| 804 |
+
737,
|
| 805 |
+
318,
|
| 806 |
+
753
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 7
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "This paper introduces PettingZoo, a Python library of many diverse multi-agent reinforcement learning environments under one simple API, akin to a multi-agent version of OpenAI’s Gym library. ",
|
| 813 |
+
"bbox": [
|
| 814 |
+
174,
|
| 815 |
+
768,
|
| 816 |
+
823,
|
| 817 |
+
797
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 7
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "Reinforcement learning systems have two main components, the environment and the agent(s) that learn. Without a standardized environment base, research progresses by designing and building both the environment and the agent (as has been the case for MARL). The main contribution of PettingZoo is that it enables more research which focuses on agents by standardizing and democratizing the environments. We hope that this allows for research in multi-agent reinforcement learning to accelerate and flourish. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
174,
|
| 826 |
+
804,
|
| 827 |
+
825,
|
| 828 |
+
888
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 7
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "We’re aware of two notable limitations of PettingZoo. The first is that games with significantly more than 10,000 agents (or potential agents) will have meaningful performance issues. This arises from needing to prespecify observation/action spaces and potential agent names. We view this as a practically acceptable limitation. The second notable limitation is that PettingZoo does not currently allow users to access the global environment state, a feature required by some centralized critic methods. We’re actively working on supporting this via a .state() method. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
895,
|
| 838 |
+
823,
|
| 839 |
+
924
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 7
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "",
|
| 846 |
+
"bbox": [
|
| 847 |
+
174,
|
| 848 |
+
103,
|
| 849 |
+
823,
|
| 850 |
+
159
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 8
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "text",
|
| 856 |
+
"text": "We see three obvious directions for future work. The first is additions of more interesting environments under our API (possibly from by the community, as has happened with Gym). While we’ve included a large number of environments, there are additional sets that would be valuable to include: the open-source implementations of social sequential dilemma games (Vinitsky et al., 2019), and the StarCraft 2 Multi-Agent Challenge (“SMAC“) environments (Samvelyan et al., 2019). The second direction we envision is a service to allow different researchers’ agents to play against each other in competitive games, leveraging the standardized API and environment set. Finally, we envision the development of procedurally generated multi-agent environments to test how well methods generalize, akin to the Gym procgen environments. (Cobbe et al., 2019). ",
|
| 857 |
+
"bbox": [
|
| 858 |
+
174,
|
| 859 |
+
166,
|
| 860 |
+
825,
|
| 861 |
+
291
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 8
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 868 |
+
"text_level": 1,
|
| 869 |
+
"bbox": [
|
| 870 |
+
176,
|
| 871 |
+
309,
|
| 872 |
+
326,
|
| 873 |
+
321
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 8
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "Thank you to Deepthi Raghunandan and Kevin Hogan for many helpful discussions surrounding what testing should look like. Thank you to Nathaniel Grammel for many helpful discussions in the early planning stages of the project. Thank you to Ross Allen and his group for reporting numerous bugs. ",
|
| 880 |
+
"bbox": [
|
| 881 |
+
176,
|
| 882 |
+
332,
|
| 883 |
+
825,
|
| 884 |
+
375
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 8
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "REFERENCES ",
|
| 891 |
+
"text_level": 1,
|
| 892 |
+
"bbox": [
|
| 893 |
+
176,
|
| 894 |
+
397,
|
| 895 |
+
285,
|
| 896 |
+
411
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 8
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. CoRR, abs/1710.03748, 2017. URL http://arxiv.org/ abs/1710.03748. ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
176,
|
| 905 |
+
420,
|
| 906 |
+
826,
|
| 907 |
+
462
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 8
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "Nolan Bard, Jakob N. Foerster, Sarath Chandar, Neil Burch, Marc Lanctot, H. Francis Song, Emilio Parisotto, Vincent Dumoulin, Subhodeep Moitra, Edward Hughes, Iain Dunning, Shibl Mourad, Hugo Larochelle, Marc G. Bellemare, and Michael Bowling. The hanabi challenge: A new frontier for AI research. CoRR, abs/1902.00506, 2019. URL http://arxiv.org/abs/ 1902.00506. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
173,
|
| 916 |
+
472,
|
| 917 |
+
826,
|
| 918 |
+
542
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 8
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47: 253–279, 2013. ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
173,
|
| 927 |
+
553,
|
| 928 |
+
823,
|
| 929 |
+
594
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
171,
|
| 938 |
+
606,
|
| 939 |
+
825,
|
| 940 |
+
635
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "Y. Chen, M. Zhou, Ying Wen, Y. Yang, Y. Su, W. Zhang, Dell Zhang, J. Wang, and Han Liu. Factorized q-learning for large-scale multi-agent systems. In DAI ’19, 2019. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
176,
|
| 949 |
+
643,
|
| 950 |
+
823,
|
| 951 |
+
674
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 8
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "Karl Cobbe, Christopher Hesse, Jacob Hilton, and John Schulman. Leveraging procedural generation to benchmark reinforcement learning. arXiv preprint arXiv:1912.01588, 2019. ",
|
| 958 |
+
"bbox": [
|
| 959 |
+
174,
|
| 960 |
+
684,
|
| 961 |
+
820,
|
| 962 |
+
713
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 8
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "Ben Goodrich. ale_python_interface. https://github.com/bbitmaster/ale_python_ interface, 2015. GitHub repository. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
174,
|
| 971 |
+
723,
|
| 972 |
+
821,
|
| 973 |
+
752
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 8
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Jayesh K Gupta, Maxim Egorov, and Mykel Kochenderfer. Cooperative multi-agent control using deep reinforcement learning. In International Conference on Autonomous Agents and Multiagent Systems, pages 66–83. Springer, 2017. ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
174,
|
| 982 |
+
762,
|
| 983 |
+
825,
|
| 984 |
+
804
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 8
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Ashley Hill, Antonin Raffin, Maximilian Ernestus, Adam Gleave, Anssi Kanervisto, Rene Traore, Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Stable baselines. https://github.com/ hill-a/stable-baselines, 2018. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
814,
|
| 994 |
+
826,
|
| 995 |
+
869
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 8
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado van Hasselt, and David Silver. Distributed prioritized experience replay. CoRR, abs/1803.00933, 2018. URL http://arxiv.org/abs/1803.00933. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
176,
|
| 1004 |
+
882,
|
| 1005 |
+
825,
|
| 1006 |
+
924
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 8
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Łukasz Kidzinski, Sharada P Mohanty, Carmichael Ong, Jennifer Hicks, Sean Francis, Sergey Levine, ´ Marcel Salathé, and Scott Delp. Learning to run challenge: Synthesizing physiologically accurate motion using deep reinforcement learning. In Sergio Escalera and Markus Weimer, editors, NIPS 2017 Competition Book. Springer, Springer, 2018. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
174,
|
| 1015 |
+
103,
|
| 1016 |
+
826,
|
| 1017 |
+
160
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 9
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Alexander Kuhnle, Michael Schaarschmidt, and Kai Fricke. Tensorforce: a tensorflow library for applied reinforcement learning. Web page, 2017. URL https://github.com/ tensorforce/tensorforce. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
170,
|
| 1027 |
+
826,
|
| 1028 |
+
212
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Marc Lanctot, Edward Lockhart, Jean-Baptiste Lespiau, Vinícius Flores Zambaldi, Satyaki Upadhyay, Julien Pérolat, Sriram Srinivasan, Finbarr Timbers, Karl Tuyls, Shayegan Omidshafiei, Daniel Hennes, Dustin Morrill, Paul Muller, Timo Ewalds, Ryan Faulkner, János Kramár, Bart De Vylder, Brennan Saeta, James Bradbury, David Ding, Sebastian Borgeaud, Matthew Lai, Julian Schrittwieser, Thomas W. Anthony, Edward Hughes, Ivo Danihelka, and Jonah Ryan-Davis. Openspiel: A framework for reinforcement learning in games. CoRR, abs/1908.09453, 2019. URL http://arxiv.org/abs/1908.09453. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
222,
|
| 1038 |
+
826,
|
| 1039 |
+
319
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Joel Z. Leibo, Vinícius Flores Zambaldi, Marc Lanctot, Janusz Marecki, and Thore Graepel. Multiagent reinforcement learning in sequential social dilemmas. CoRR, abs/1702.03037, 2017. URL http://arxiv.org/abs/1702.03037. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
173,
|
| 1048 |
+
328,
|
| 1049 |
+
823,
|
| 1050 |
+
371
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 9
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Edouard Leurent. An environment for autonomous driving decision-making. https://github. com/eleurent/highway-env, 2018. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
171,
|
| 1059 |
+
380,
|
| 1060 |
+
825,
|
| 1061 |
+
409
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 9
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Eric Liang, Richard Liaw, Robert Nishihara, Philipp Moritz, Roy Fox, Ken Goldberg, Joseph E. Gonzalez, Michael I. Jordan, and Ion Stoica. RLlib: Abstractions for distributed reinforcement learning. In International Conference on Machine Learning (ICML), 2018. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
176,
|
| 1070 |
+
417,
|
| 1071 |
+
823,
|
| 1072 |
+
460
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 9
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Siqi Liu, Guy Lever, Josh Merel, Saran Tunyasuvunakool, Nicolas Heess, and Thore Graepel. Emergent coordination through competition. CoRR, abs/1902.07151, 2019. URL http:// arxiv.org/abs/1902.07151. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
174,
|
| 1081 |
+
469,
|
| 1082 |
+
826,
|
| 1083 |
+
512
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, and Igor Mordatch. Multi-agent actorcritic for mixed cooperative-competitive environments. Neural Information Processing Systems (NIPS), 2017. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
174,
|
| 1092 |
+
522,
|
| 1093 |
+
826,
|
| 1094 |
+
564
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "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, 518(7540):529–533, 2015. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
174,
|
| 1103 |
+
573,
|
| 1104 |
+
826,
|
| 1105 |
+
616
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 9
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. arXiv preprint arXiv:1703.04908, 2017. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
171,
|
| 1114 |
+
626,
|
| 1115 |
+
823,
|
| 1116 |
+
654
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 9
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "OpenAI. Openai five. https://blog.openai.com/openai-five/, 2018. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
173,
|
| 1125 |
+
664,
|
| 1126 |
+
722,
|
| 1127 |
+
679
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 9
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "G. Palmer. Independent learning approaches: Overcoming multi-agent learning pathologies in team-games. 2020. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
174,
|
| 1136 |
+
688,
|
| 1137 |
+
825,
|
| 1138 |
+
717
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 9
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Stefanie Anna Baby Ling Li Ashwini Pokle. Analysis of emergent behavior in multi agent environments using deep reinforcement learning. 2018. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
173,
|
| 1147 |
+
726,
|
| 1148 |
+
825,
|
| 1149 |
+
755
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 9
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Mikayel Samvelyan, Tabish Rashid, Christian Schröder de Witt, Gregory Farquhar, Nantas Nardelli, Tim G. J. Rudner, Chia-Man Hung, Philip H. S. Torr, Jakob N. Foerster, and Shimon Whiteson. The starcraft multi-agent challenge. CoRR, abs/1902.04043, 2019. URL http://arxiv.org/ abs/1902.04043. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
174,
|
| 1158 |
+
763,
|
| 1159 |
+
826,
|
| 1160 |
+
819
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 9
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "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, 529(7587):484–489, 2016. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
176,
|
| 1169 |
+
829,
|
| 1170 |
+
825,
|
| 1171 |
+
872
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 9
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
176,
|
| 1180 |
+
882,
|
| 1181 |
+
825,
|
| 1182 |
+
924
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 9
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Sriram Ganapathi Subramanian, P. Poupart, Matthew E. Taylor, and N. Hegde. Multi type mean field reinforcement learning. In AAMAS, 2020. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
171,
|
| 1191 |
+
103,
|
| 1192 |
+
825,
|
| 1193 |
+
132
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 10
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Justin K Terry and Benjamin Black. Multiplayer support for the arcade learning environment. arXiv preprint arXiv:2009.09341, 2020. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
171,
|
| 1202 |
+
141,
|
| 1203 |
+
823,
|
| 1204 |
+
170
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 10
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Justin K Terry, Benjamin Black, and Ananth Hari. Supersuit: Simple microwrappers for reinforcement learning environments. arXiv preprint arXiv:2008.08932, 2020a. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
173,
|
| 1213 |
+
179,
|
| 1214 |
+
823,
|
| 1215 |
+
208
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 10
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Justin K Terry, Nathaniel Grammel, Benjamin Black, Ananth Hari, Luis Santos, and Caroline Horsch. Agent environment cycle games. arXiv preprint arXiv:2009.13051, 2020b. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
171,
|
| 1224 |
+
215,
|
| 1225 |
+
825,
|
| 1226 |
+
246
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 10
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Justin K Terry, Nathaniel Grammel, Ananth Hari, Luis Santos, and Benjamin Black. Revisiting parameter sharing in multi-agent deep reinforcement learning. arXiv preprint arXiv:2005.13625, 2020c. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
173,
|
| 1235 |
+
253,
|
| 1236 |
+
825,
|
| 1237 |
+
296
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 10
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Gerald Tesauro. Temporal difference learning and td-gammon. Commun. ACM, 38(3):58–68, March 1995. ISSN 0001-0782. doi: 10.1145/203330.203343. URL https://doi.org/10.1145/ 203330.203343. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
174,
|
| 1246 |
+
306,
|
| 1247 |
+
825,
|
| 1248 |
+
348
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 10
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Rene Vidal, Omid Shakernia, H Jin Kim, David Hyunchul Shim, and Shankar Sastry. Probabilistic pursuit-evasion games: theory, implementation, and experimental evaluation. IEEE transactions on robotics and automation, 18(5):662–669, 2002. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
173,
|
| 1257 |
+
357,
|
| 1258 |
+
826,
|
| 1259 |
+
400
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 10
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "Eugene Vinitsky, Natasha Jaques, Joel Leibo, Antonio Castenada, and Edward Hughes. An open source implementation of sequential social dilemma games. https://github.com/ eugenevinitsky/sequential_social_dilemma_games/, 2019. GitHub repository. ",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
174,
|
| 1268 |
+
410,
|
| 1269 |
+
826,
|
| 1270 |
+
452
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 10
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "Oriol Vinyals, Igor Babuschkin, Wojciech M Czarnecki, Michaël Mathieu, Andrew Dudzik, Junyoung Chung, David H Choi, Richard Powell, Timo Ewalds, Petko Georgiev, et al. Grandmaster level in starcraft ii using multi-agent reinforcement learning. Nature, 575(7782):350–354, 2019. ",
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
173,
|
| 1279 |
+
460,
|
| 1280 |
+
826,
|
| 1281 |
+
503
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 10
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "Iker Zamora, Nestor Gonzalez Lopez, Victor Mayoral Vilches, and Alejandro Hernandez Cordero. Extending the openai gym for robotics: a toolkit for reinforcement learning using ros and gazebo. arXiv preprint arXiv:1608.05742, 2016. ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
176,
|
| 1290 |
+
512,
|
| 1291 |
+
825,
|
| 1292 |
+
554
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 10
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "Daochen Zha, Kwei-Herng Lai, Yuanpu Cao, Songyi Huang, Ruzhe Wei, Junyu Guo, and Xia Hu. Rlcard: A toolkit for reinforcement learning in card games. arXiv preprint arXiv:1910.04376, 2019. ",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
173,
|
| 1301 |
+
564,
|
| 1302 |
+
825,
|
| 1303 |
+
606
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 10
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Lianmin Zheng, Jiacheng Yang, Han Cai, Weinan Zhang, Jun Wang, and Yong Yu. Magent: A many-agent reinforcement learning platform for artificial collective intelligence. arXiv preprint arXiv:1712.00600, 2017. ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
173,
|
| 1312 |
+
614,
|
| 1313 |
+
825,
|
| 1314 |
+
657
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 10
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "A BASELINE EXPERIMENT HYPERPARAMETERS AND PREPROCESSING ",
|
| 1321 |
+
"text_level": 1,
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
173,
|
| 1324 |
+
684,
|
| 1325 |
+
771,
|
| 1326 |
+
700
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 10
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "All of the environments were preprocessed in the following way: observations were resized to 84x84 images with linear interpolation, converted to grayscale, then normalized. This preprocessing was performed with SuperSuit (Terry et al., 2020a). ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
174,
|
| 1335 |
+
715,
|
| 1336 |
+
825,
|
| 1337 |
+
758
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 10
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "The graphically subtle environments (Knights Archers Zombies, Prospector and Cooperative Pong) had their observations processed with the RLlib default network: A convolutional layer with a $8 \\mathrm { x } 8$ kernel, stride of 4, and 16 filters, followed by a convolutional layer with a 4x4 kernel, stride of 2, and 32 filters, followed by a convolutional layer with n 11x11 kernel, stride of 1, and 256 filters. ",
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
174,
|
| 1346 |
+
765,
|
| 1347 |
+
825,
|
| 1348 |
+
820
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 10
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "text",
|
| 1354 |
+
"text": "The graphically simple environments (Prison, Pistonball) were resized to $3 2 \\mathrm { x } 3 2 $ and flattened in addition to the above preprocessing. The observation was processed with a network with two hidden linear layers, 400 and 300 neurons wide, respectively. ",
|
| 1355 |
+
"bbox": [
|
| 1356 |
+
174,
|
| 1357 |
+
827,
|
| 1358 |
+
823,
|
| 1359 |
+
871
|
| 1360 |
+
],
|
| 1361 |
+
"page_idx": 10
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"type": "table",
|
| 1365 |
+
"img_path": "images/52c152e8848a769588faab322facfb3559767d7615f0fe1ae03e7afd67af5b9a.jpg",
|
| 1366 |
+
"table_caption": [
|
| 1367 |
+
"Table 1: Hyperparameters for ApeX DQN and PPO on each Butterfly environment. "
|
| 1368 |
+
],
|
| 1369 |
+
"table_footnote": [],
|
| 1370 |
+
"table_body": "<table><tr><td>RL method</td><td>Hyperparameter</td><td>Value</td></tr><tr><td>ApeX-DQN</td><td>adam_epsilon</td><td>0.00015</td></tr><tr><td></td><td>buffer_size</td><td>400000</td></tr><tr><td></td><td>double_q</td><td>True</td></tr><tr><td></td><td>dueling</td><td>True</td></tr><tr><td></td><td>epsilon_timesteps</td><td>200000</td></tr><tr><td></td><td>final_epsilon</td><td>0.01</td></tr><tr><td></td><td>final_prioritized_replay_beta</td><td>1.0</td></tr><tr><td></td><td>gamma</td><td>0.99</td></tr><tr><td></td><td>learning_starts</td><td>10000</td></tr><tr><td></td><td>lr</td><td>0.0001</td></tr><tr><td></td><td>n_step</td><td>3</td></tr><tr><td></td><td>num_atoms</td><td>1</td></tr><tr><td></td><td>num_envs_per_worker</td><td>4</td></tr><tr><td></td><td>num_gpus</td><td>1</td></tr><tr><td></td><td>num_workers</td><td>12</td></tr><tr><td></td><td>prioritized_replay</td><td>True</td></tr><tr><td></td><td>prioritized_replay_alpha</td><td>0.5</td></tr><tr><td></td><td>prioritized_replay_beta</td><td>0.4</td></tr><tr><td></td><td>prioritized_replay_beta_annealing_timesteps</td><td>2000000</td></tr><tr><td></td><td>rollout_fragment_length</td><td>32</td></tr><tr><td></td><td>target_network_update_freq</td><td>10000</td></tr><tr><td></td><td>timesteps_per_iteration</td><td>15000</td></tr><tr><td></td><td>train_batch_size</td><td>512</td></tr><tr><td>PPO</td><td>gamma</td><td>0.99</td></tr><tr><td></td><td>num_envs_per_worker</td><td>4</td></tr><tr><td></td><td>num_gpus</td><td>1</td></tr><tr><td></td><td>num_workers</td><td>12</td></tr><tr><td></td><td>compress_observations</td><td>False</td></tr><tr><td></td><td>lambda</td><td>0.95</td></tr><tr><td></td><td>kl_coeff</td><td>0.5</td></tr><tr><td></td><td>clip_rewards</td><td>True</td></tr><tr><td></td><td>clip_param</td><td>0.1</td></tr><tr><td></td><td>vf_clip_param</td><td>10.0</td></tr><tr><td></td><td>entropy_coeff</td><td>0.01</td></tr><tr><td></td><td>train_batch_size</td><td>5000</td></tr><tr><td></td><td>sample_batch_size</td><td>25</td></tr><tr><td></td><td>sgd_minibatch_size</td><td>256</td></tr><tr><td></td><td>num_sgd_iter</td><td>100</td></tr><tr><td></td><td>batch_mode</td><td>truncate_episodes</td></tr><tr><td></td><td>vf_share_layers</td><td>True</td></tr></table>",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
173,
|
| 1373 |
+
194,
|
| 1374 |
+
923,
|
| 1375 |
+
800
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 11
|
| 1378 |
+
}
|
| 1379 |
+
]
|
parse/train/WoLQsYU8aZ/WoLQsYU8aZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/WoLQsYU8aZ/WoLQsYU8aZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/jlgCDIrAv0_/jlgCDIrAv0_.md
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 5 |
+
Address
|
| 6 |
+
email
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
1 Exploration remains a central challenge for reinforcement learning (RL). Virtually
|
| 11 |
+
2 all existing methods share the feature of a monolithic behaviour policy that changes
|
| 12 |
+
3 only gradually (at best). In contrast, the exploratory behaviours of animals and hu
|
| 13 |
+
4 mans exhibit a rich diversity, namely including forms of switching between modes.
|
| 14 |
+
5 This paper presents an initial study of mode-switching, non-monolithic exploration
|
| 15 |
+
6 for RL. We investigate different modes to switch between, at what timescales it
|
| 16 |
+
7 makes sense to switch, and what signals make for good switching triggers. We
|
| 17 |
+
8 also propose practical algorithmic components that make the switching mechanism
|
| 18 |
+
9 adaptive and robust, which enables flexibility without an accompanying hyper
|
| 19 |
+
10 parameter-tuning burden. Finally, we report a promising and detailed analysis on
|
| 20 |
+
11 Atari, using two-mode exploration and switching at sub-episodic time-scales.
|
| 21 |
+
|
| 22 |
+
# 12 1 Introduction
|
| 23 |
+
|
| 24 |
+
13 The trade-off between exploration and exploitation is described as the crux of learning and behaviour
|
| 25 |
+
14 across many domains, not just reinforcement learning [Sutton and Barto, 2018], but also in decision
|
| 26 |
+
15 making [Cohen et al., 2007], evolutionary biology [Cremer et al., 2019], ecology [Kembro et al.,
|
| 27 |
+
16 2019], neuroscience (e.g., focused versus diffuse search in visual attention [Wolfe et al., 1989],
|
| 28 |
+
17 dopamine regulations [Chakroun et al., 2020]), cognitive sciences [Hills et al., 2015], as well as
|
| 29 |
+
18 psychology and psychiatry [Addicott et al., 2017]. In a nutshell, exploration is about the balance
|
| 30 |
+
19 between taking the familiar choice that is known to be rewarding and learning about unfamiliar
|
| 31 |
+
20 options of uncertain reward, but which could ultimately be more valuable than the familiar options.
|
| 32 |
+
21 Ample literature has studied the question of how much to explore, that is how to set the overall
|
| 33 |
+
22 trade-off (and how to adjust it over the course of learning) [Jaksch et al., 2010, Cappé et al., 2013,
|
| 34 |
+
23 Lattimore and Szepesvári, 2020, Thrun, 1992], and the question of how to explore, namely how
|
| 35 |
+
24 to choose exploratory actions (e.g., randomly, optimistically, intrinsically motivated, or otherwise)
|
| 36 |
+
25 [Schmidhuber, 1991, Oudeyer and Kaplan, 2009, Linke et al., 2019]. In contrast, the question of when
|
| 37 |
+
26 to explore has been studied very little, possibly because it does not arise in bandit problems, where a
|
| 38 |
+
27 lot of exploration methods are rooted. The ‘when’ question and its multiple facets are the subjects of
|
| 39 |
+
28 this paper. We believe that addressing it could lead to more intentional forms of exploration.
|
| 40 |
+
29 Consider an agent that has access to two modes of behaviour, an ‘explore’ mode and an ‘exploit’
|
| 41 |
+
30 mode (e.g., a random policy and a greedy policy, as in $\varepsilon$ -greedy). Even when assuming that the
|
| 42 |
+
31 overall proportion of exploratory steps is fixed, the agent still has multiple degrees of freedom: it
|
| 43 |
+
32 can explore more at the beginning of training and less in later phases; it may take single exploratory
|
| 44 |
+
33 steps or execute prolonged periods of exploration; it may prefer exploratory steps early or late within
|
| 45 |
+
34 an episode; and it could trigger the onset (or end) of an exploratory period based on various criteria.
|
| 46 |
+
35 Animals and humans exhibit non-trivial behaviour in all of these dimensions, presumably encoding
|
| 47 |
+
36 useful inductive biases that way [Power, 1999]. Humans make use of multiple effective strategies,
|
| 48 |
+
37 such as selectively exploring options with high uncertainty (a form of directed, or information-seeking
|
| 49 |
+
38 exploration), and increasing the randomness of their choices when they are more uncertain [Gershman,
|
| 50 |
+
39 2018, Gershman and Tzovaras, 2018, Ebitz et al., 2019]. Monkeys use directed exploration to manage
|
| 51 |
+
40 explore-exploit trade-offs, and these signals are coded in motivational brain regions [Costa et al.,
|
| 52 |
+
41 2019]. Patients with schizophrenia register changes in directed exploration and experience low-grade
|
| 53 |
+
42 inflammation when shifting from exploitation to random exploration [Waltz et al., 2020, Cathomas
|
| 54 |
+
43 et al., 2021]. This diversity is what motivates us to study which of these can benefit RL agents in turn,
|
| 55 |
+
44 by expanding the class of exploratory behaviours beyond the commonly used monolithic ones (where
|
| 56 |
+
45 modes are merged homogeneously in time).
|
| 57 |
+
|
| 58 |
+
# 46 2 Methods
|
| 59 |
+
|
| 60 |
+
47 The objective of an RL agent is to learn a policy that maximises external reward. At the high level,
|
| 61 |
+
48 it achieves this by interleaving two processes: generating new experience by interacting with the
|
| 62 |
+
49 environment using a behaviour policy (exploration) and updating its policy using this experience
|
| 63 |
+
50 (learning). As RL is applied to increasingly ambitious tasks, the challenge for exploration becomes
|
| 64 |
+
51 to keep producing diverse experience, because if something has not been encountered, it cannot be
|
| 65 |
+
52 learned. Our central argument is therefore simple: a monolithic, time-homogeneous behaviour policy
|
| 66 |
+
53 is strictly less diverse than a heterogeneous mode-switching one, and the former may hamstring
|
| 67 |
+
54 the agent’s performance. As an illustrative example, consider a human learning how to ride a bike
|
| 68 |
+
55 (explore), while maintaining their usual happiness through food, sleep, work (exploit): there is a stark
|
| 69 |
+
56 contrast between a monolithic, time-homogeneous behaviour that interleaves a twist of the handlebar
|
| 70 |
+
57 or a turn of a pedal once every few minutes or so, and the mode-switching behaviour that dedicates
|
| 71 |
+
58 prolonged periods of time exclusively to acquiring the new skill of cycling.
|
| 72 |
+
|
| 73 |
+
# 59 2.1 Exploration modes
|
| 74 |
+
|
| 75 |
+
60 While the choice of behaviour in pure exploit mode is straightforward, namely the greedy pursuit
|
| 76 |
+
of external reward (or best guess thereof), denoted by $\mathcal { G }$ , there are numerous viable choices for
|
| 77 |
+
62 behaviour in a pure explore mode (denoted by $\mathcal { X }$ ). In this paper we consider two standard ones:
|
| 78 |
+
63 $\mathcal { X } _ { U }$ , the naive uniform random policy, and $\mathcal { X } _ { I }$ , an intrinsically motivated behaviour that exclusively
|
| 79 |
+
64 pursues a novelty measure based on random network distillation (RND, [Burda et al., 2018]). See
|
| 80 |
+
65 Section 4 and Appendix B for additional possibilities of $\mathcal { X }$ . In this paper we choose fixed behaviours
|
| 81 |
+
66 for these modes, and focus solely on the question of when to switch between them. In our setting,
|
| 82 |
+
67 overall proportion of exploratory steps (the how much), denoted by $p _ { \mathcal { X } }$ , is not directly controlled but
|
| 83 |
+
68 derives from the when.
|
| 84 |
+
|
| 85 |
+
# 2.2 Granularity
|
| 86 |
+
|
| 87 |
+
An exploration period is an uninterrupted sequence of steps in explore mode. We consider four choices of temporal granularity for exploratory periods, also illustrated on Figure 1:
|
| 88 |
+
|
| 89 |
+
Step-level exploration is the most common scenario, where the decision to explore is taken independently at each step, affecting one action.1 The canonical example is $\varepsilon$ -greedy (Fig.1:C).
|
| 90 |
+
|
| 91 |
+
Experiment-level exploration is the other extreme, where all behaviour during training is produced in explore mode, and learning is off-policy (the greedy policy is only used for evaluation). This scenario is also very common, with most forms of intrinsic motivation falling into this category, namely pursuing reward with an intrinsic bonus throughout training (Fig.1:A).2
|
| 92 |
+
|
| 93 |
+
Episode-level exploration is the case where the mode is fixed for an entire episode at a time (e.g., training games versus tournament matches in a sport), see Fig.1:B. This has been investigated for simple cases, where the policy’s level of stochasticity is sampled at the beginning of each episode [Horgan et al., 2018, Kapturowski et al., 2019, Zha et al., 2021].
|
| 94 |
+
|
| 95 |
+
Intra-episodic exploration is what falls in-between step- and episode-level exploration, where exploration periods last for multiple steps, but less than a full episode. This is the least commonly studied scenario, and will form the bulk of our investigations (Fig.1:D,E,F,G).
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
Figure 1: Illustration of different types of temporal structure for two-mode exploration. Left: Each line A-G depicts an excerpt of an experiment (black lines show episode boundaries, experiment continues on the right), with colour denoting the active mode (blue is exploit, magenta is explore). A is of experiment-level granularity, $\mathbf { B }$ episode-level, $\mathbf { C }$ step-level, and D-G are of intra-episodic exploration granularity. Right: The same examples, mapped onto a characteristic plot of summary statistics: overall exploratory proportion $p _ { \mathcal { X } }$ versus typical length of an exploratory period ${ \mathrm { m e d } } _ { \mathcal { X } }$ . The yellow-shaded area highlights the intra-episodic part of space studied in this paper (some points are not realisable, e.g., when $p _ { \mathcal { X } } \approx 1$ then ${ \mathrm { m e d } } _ { \mathcal { X } }$ must be large). C, D, E, F share the same $p _ { \mathscr { X } } \approx 0 . 2$ , while interleaving exploration modes in different ways. $\mathbf { D }$ and $\mathbf { E }$ share the same ${ \mathrm { m e d } } _ { \mathcal { X } }$ value, and differ only on whether exploration periods are spread out, or happen toward the end of episode.
|
| 99 |
+
|
| 100 |
+
85 We denote the length of an exploratory period by $n _ { \mathcal { X } }$ (and similarly $n _ { \mathcal { G } }$ for exploit mode). To
|
| 101 |
+
86 characterise granularity, our summary statistic of choice is ${ \mathrm { m e d } } _ { \mathcal { X } } : = { \mathrm { m e d i a n } } ( n _ { \mathcal { X } } )$ . Note that there
|
| 102 |
+
87 are two possible units for these statistics: the raw steps or the proportion of the episode length $L$ .
|
| 103 |
+
88 The latter has different (relative) semantics, but may be more appropriate when episode lengths vary
|
| 104 |
+
89 widely across training. We denote it as $\mathrm { r m e d } _ { \mathcal { X } } : = \mathrm { \bar { m e d i a n } } ( n _ { \mathcal { X } } / L )$ .
|
| 105 |
+
|
| 106 |
+
# 2.3 Switching for intra-episodic exploration
|
| 107 |
+
|
| 108 |
+
Granularity is but the coarsest facet of the ‘when’ question, but more precise intra-episode timings (when to start and when to stop an exploratory period) are important aspects too.
|
| 109 |
+
|
| 110 |
+
93 Blind switching The simplest type of switching mechanism does not take state or time into account
|
| 111 |
+
94 (thus we call it blind), and is only concerned with producing switches at some desired time resolution.
|
| 112 |
+
95 It can be implemented deterministically through a counter (e.g., enter explore mode after 100 exploit
|
| 113 |
+
96 mode steps), or probabilistically (e.g., at each step, enter explore mode with probability 0.01). Its
|
| 114 |
+
97 expected duration can be parameterised in terms of raw steps, or in terms of fractional episode length.
|
| 115 |
+
98 The opposite of blind switching is informed switching, as discussed in Section 2.4.
|
| 116 |
+
99 Asymmetry In general, the mechanism for entering the explore mode can differ from the one
|
| 117 |
+
100 for exiting it (to enter the exploit mode), and this is crucial to obtain flexible overall amounts of
|
| 118 |
+
101 exploration – if switching were symmetric, the proportion would be $p _ { \mathscr { X } } \approx 0 . 5$ .
|
| 119 |
+
102 Starting mode When periods last for a significant fraction of episode length, it also matters how
|
| 120 |
+
103 the sequence is initialised, i.e., whether an episode starts in explore or in exploit mode, or more
|
| 121 |
+
104 generally, whether the agent explores more early in an episode or more later on. It is conceivable
|
| 122 |
+
105 that the best choice among these is domain dependent (see Figure 6): in most scenarios, the states at
|
| 123 |
+
106 the beginning of an episode have been visited many times, thus starting with exploit mode can be
|
| 124 |
+
107 beneficial; in other domains however, early actions may disproportionately determine the available
|
| 125 |
+
108 future paths (e.g., build orders in StarCraft [Churchill and Buro, 2011]).
|
| 126 |
+
|
| 127 |
+
# 2.4 Informed switching with triggers
|
| 128 |
+
|
| 129 |
+
110 Going beyond blind switching opens up another rich set of design choices. We decompose the
|
| 130 |
+
111 mechanism into two parts. First, a scalar trigger signal is produced by the agent at each step, based on
|
| 131 |
+
112 its current information – drawing inspiration from human behaviour, the triggering signal is intended
|
| 132 |
+
113 to be a proxy for uncertainty [Schulz et al., 2019]. Second, a binary switching decision is taken based
|
| 133 |
+
114 on the trigger signal, for example by comparing it to a threshold. Again, the type of trigger and its
|
| 134 |
+
115 configuration will in general not be symmetric between entering and exiting an exploratory period.
|
| 135 |
+
116 Value promise trigger To keep this paper focused, we will look at one such trigger, dubbed ‘value
|
| 136 |
+
117 promise discrepancy’ (see Appendix B for additional competitive variants). This is an online proxy
|
| 137 |
+
118 of how much of the reward that the agent’s past value estimate promised ( $k$ steps ago) have actually
|
| 138 |
+
119 come about. The intuition is that in uncertain parts of state space, this discrepancy will generally be
|
| 139 |
+
120 larger than when everything goes as expected. Formally,
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
D _ { \mathrm { p r o m i s e } } ( t - k , t ) : = \left| V ( s _ { t - k } ) - \sum _ { i = 0 } ^ { k - 1 } \gamma ^ { i } R _ { t - i } - V ( s _ { t } ) \right|
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
121 where $V ( s )$ is the agent’s value estimate at state $s , R$ is the reward, and $\gamma$ is a discount factor.
|
| 146 |
+
|
| 147 |
+
122 Homeostasis In practice, the scales of trigger signals may vary substantially across domains, and
|
| 148 |
+
123 across training time, for example, the magnitude of $D _ { \mathrm { p r o m i s e } }$ will depend on reward scales and
|
| 149 |
+
124 density, and can decrease over time as accuracy improves (the signals could also be noisy). This
|
| 150 |
+
125 means that naively setting a threshold hyper-parameter is impractical. For a simple remedy, we have
|
| 151 |
+
126 taken inspiration from neuroscience [Turrigiano and Nelson, 2004] to add homeostasis to the binary
|
| 152 |
+
127 switching mechanism, which tracks recent values of the signal and adapts the threshold for switching
|
| 153 |
+
128 so that a specific average target rate is obtained. This functions as an adaptive threshold, making
|
| 154 |
+
129 tuning straightforward because the target rate of switching can be configured independently of the
|
| 155 |
+
130 scales of the trigger signal. See Appendix A for the details of the implementation.
|
| 156 |
+
|
| 157 |
+
# 2.5 Adaptation instead of tuning
|
| 158 |
+
|
| 159 |
+
Our approach introduces additional flexibility to the exploration process, even when holding the specifics of the learning algorithm and the exploration mode fixed. The two main added dimensions are when (or how often) to enter explore mode, and when (or how quickly) to exit it. To avoid this becoming a hyper-parameter tuning burden, we propose to follow [Schaul et al., 2019] and [Badia et al., 2020a], and delegate the adaptation of these settings to a meta-controller (implemented as a non-stationary multi-armed bandit that maximises episodic return). As an added benefit, the ‘when’ of exploration can now become adaptive to both the task, and the stage of learning.
|
| 160 |
+
|
| 161 |
+
# 3 Results
|
| 162 |
+
|
| 163 |
+
40 The design space we propose contains a number of atypical ideas for how to structure exploration.
|
| 164 |
+
1 For this reason, we opted to keep the rest of our experimental setup very conventional, and include
|
| 165 |
+
42 multiple comparable baselines, ablations and variations.
|
| 166 |
+
143 Setup: R2D2 on Atari We conduct our investigations on a subset of games of the Atari Learning
|
| 167 |
+
144 Environment [Bellemare et al., 2013], a common benchmark for the study of exploration. All
|
| 168 |
+
145 experiments are conducted across 7 games (FROSTBITE, GRAVITAR, H.E.R.O., MONTEZUMA’S
|
| 169 |
+
146 REVENGE, MS. PAC-MAN, PHOENIX, STAR GUNNER), the first 5 of which are classified as hard
|
| 170 |
+
147 exploration games [Bellemare et al., 2016], using 3 seeds per game. For our agent, we use the R2D2
|
| 171 |
+
148 architecture [Kapturowski et al., 2019], which is a modern, distributed version of DQN [Mnih et al.,
|
| 172 |
+
149 2015] that employs a recurrent network to approximate its Q-value function. This is a common
|
| 173 |
+
150 basis used in exploration studies, e.g., [Dabney et al., 2020, Badia et al., 2020b,a]. The only major
|
| 174 |
+
151 modification to conventional R2D2 is its exploration mechanism, where instead we implement all the
|
| 175 |
+
152 variants of mode-switching introduced in Section 2. Separately from the experience collected for
|
| 176 |
+
153 learning, we run an evaluator process that assesses the performance of the current greedy policy. This
|
| 177 |
+
154 is what we report in all our performance curves (see Appendix A for more details).
|
| 178 |
+
155 Baselines There are a few simple baselines worth comparing to, namely the pure explore mode
|
| 179 |
+
156 $\boldsymbol { p } _ { \mathcal { X } } = 1$ , Fig.1:A) and the pure exploit mode $p _ { \mathscr { X } } = 0 .$ ), as well as the step-wise interleaved $\varepsilon$ -greedy
|
| 180 |
+
157 execution (Fig.1:C), where $p _ { \mathcal { X } } = 0 . 0 1 = \varepsilon$ (without additional episodic or intra-episodic structure).
|
| 181 |
+
158 Given its wide adoption in well-tuned prior work, we expect the latter to perform well overall.
|
| 182 |
+
159 The fourth baseline picks a mode for an entire episode at a time (Fig.1:B), with the probability of
|
| 183 |
+
160 picking $\mathcal { X }$ being adapted by a bandit meta-controller. We denote these as experiment-level-X,
|
| 184 |
+
161 experiment-level-G, step-level-0.01 and episode-level- $^ *$ respectively. For each of these,
|
| 185 |
+
162 we have a version with uniform $( \mathcal { X } _ { U } )$ and intrinsic $( \mathcal { X } _ { I } )$ explore mode.
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
Figure 2: Illustrating the space of design decisions for intra-episodic exploration.
|
| 189 |
+
|
| 190 |
+
# 63 3.1 Variants of intra-episodic exploration
|
| 191 |
+
|
| 192 |
+
As discussed in Section 2, there are multiple dimensions along which two-mode intra-episodic exploration can vary. The concrete ones for our experiments are:
|
| 193 |
+
|
| 194 |
+
• Explore mode: uniform random $\mathcal { X } _ { U }$ , or RND intrinsic reward $\mathcal { X } _ { I }$ (denoted XU and XI). • Explore duration $( n _ { \mathcal { X } } )$ : this can be a fixed number of steps $( 1 , 1 0 , 1 0 0 )$ , or one of these is adaptively picked by a bandit (denoted by $^ *$ ), or the switching is symmetric between entering end exiting explore mode (denoted by $\ c =$ ). • Trigger type: either blind or informed (based on value promise, see Section 2.4). • Exploit duration $( n g )$ : for blind triggers, the exploit duration can be parameterised by fixed number of steps (10, 100, 1000, 10000), indirectly defined by a probability of terminating $( 0 . 1 , 0 . 0 1 , 0 . 0 0 1 , 0 . 0 0 0 1 )$ , or adaptively picked by a bandit over these choices (denoted by $^ { \mathtt { n * } }$ or $\mathtt { p } ^ { * }$ , respectively). For informed triggers, the exploit duration is indirectly parameterised by a target rate in $( 0 . 1 , 0 . 0 1 , 0 . 0 0 1 , 0 . 0 0 0 1 )$ , or a bandit over them $\left( \mathtt { p } \ast \right)$ , which is in turn transformed into an adaptive switching threshold by homeostasis (Section 2.4). • Starting mode: $\mathcal { G }$ greedy (default) or $\mathcal { X }$ explore (denoted by G or X).
|
| 195 |
+
|
| 196 |
+
178 We can concisely refer to a particular instance by a tuple that lists these choices. For example,
|
| 197 |
+
179 XU-intra(100,informed, $\mathtt { p } ^ { * } , \mathtt { X } )$ denotes uniform random exploration $\mathcal { X } _ { U }$ , with fixed 100-step
|
| 198 |
+
180 explore periods, triggered by the value-promise signal at a bandit-determined rate, and starting in
|
| 199 |
+
181 explore mode. See Figure 2 for an illustration.
|
| 200 |
+
|
| 201 |
+
# 3.2 Performance results
|
| 202 |
+
|
| 203 |
+
We start by reporting overall performance results, to reassure the reader that our method is viable (and convince them to keep reading the more detailed and qualitative results in the following sections). Figure 3 shows performance across 7 Atari games according to two human-normalised aggregation metrics (mean and median), comparing one form of intra-episodic exploration to all the baselines, separately for each explore mode ( $\mathcal { X } _ { U }$ and $\mathcal { X } _ { I }$ ). The headline result is that intra-episodic exploration improves over both step-level and episode-level baselines (as well as the pure experiment-level modes that we would not expect to be very competitive). The full learning curves per game are found in the appendix, and show scores on hard exploration games like MONTEZUMA’S REVENGE or PHOENIX that are also competitive in absolute terms (at our compute budget of 1B frames).
|
| 204 |
+
|
| 205 |
+
192 Note that there is a subtle difference to the learning setups between $\mathcal { X } _ { U }$ and $\mathcal { X } _ { I }$ , as the latter requires
|
| 206 |
+
193 training a separate head to estimate intrinsic reward values. This is present even in pure exploit mode,
|
| 207 |
+
194 where it acts as an auxiliary task only [Jaderberg et al., 2016], hence the differences in pure greedy
|
| 208 |
+
195 curves in Figure 3. For details, see Appendix A.
|
| 209 |
+
|
| 210 |
+
# 3.3 Diversity results
|
| 211 |
+
|
| 212 |
+
197 In a study like ours, the emphasis is not on measuring raw performance, but rather on characterising
|
| 213 |
+
198 the diversity of behaviours arising from the spectrum of proposed variants. A starting point is to
|
| 214 |
+
199 return to Figure 1 (right), and assess how much of the previously untouched space is now filled
|
| 215 |
+
200 by intra-episodic variants, and how the ‘when’ characteristics translate into performance. Figure 4
|
| 216 |
+
201 answers these questions, and raises some new ones. First off, the raw amount of exploration $p _ { \mathcal { X } }$ is
|
| 217 |
+
202 not a sufficient predictor of performance, implying that the temporal structure matters. It also shows
|
| 218 |
+
203 substantial bandit adaptation at work: compare the exploration statistics at the start (squares) and
|
| 219 |
+
204 end-points of training (crosses), and how these trajectories differ per game; a common pattern is
|
| 220 |
+
205 that reducing $p _ { \mathcal { X } }$ far below 0.5 is needed for high performance. Interestingly, these adaptations are
|
| 221 |
+
206 similar between $\mathcal { X } _ { U }$ and $\mathcal { X } _ { I }$ , despite very different explore modes (and differing performance results).
|
| 222 |
+
207 We would expect prolonged intrinsic exploration periods to be more useful than prolonged random
|
| 223 |
+
208 ones, and indeed, comparing the high- $\mathrm { . r m e d } _ { \mathcal { X } }$ variant (purple) across $\mathcal { X } _ { U }$ and $\mathcal { X } _ { I }$ , it appears more
|
| 224 |
+
|
| 225 |
+

|
| 226 |
+
Figure 3: Human-normalized performance results aggregated over 7 Atari games and 3 seeds, comparing the four levels of exploration granularity. Left two: uniform explore mode $\mathcal { X } _ { U }$ . Right two: RND intrinsic reward explore mode $\mathcal { X } _ { I }$ . In each case, the baselines are pure modes $\mathcal { X }$ and $\mathcal { G }$ , step-level switching with $\varepsilon$ -greedy, and episodic switching (with a bandit-adapted proportion). In each setting, intra-episodic exploration is on par or better than the baselines.
|
| 227 |
+
|
| 228 |
+

|
| 229 |
+
Figure 4: Rows 1 and 3: Summary characteristics $p _ { \mathcal { X } }$ and $\operatorname { r m e d } _ { \mathcal { X } }$ of induced exploration behaviour, for different variants of intra-episodic exploration (and an episodic baseline for comparison), on a subset of 4 Atari games. Bandit adaptation can change these statistics over time, hence square and cross markers show averages over first and last $1 0 \%$ of training, respectively. Rows 2 and 4: Corresponding final scores (averaged over final $1 0 \%$ of training). Error bars show the span between min and max performance across 3 seeds. Note how different variants cover different parts of characteristic space, and how the bandit adaptation shifts the statistics into different directions for different games. See main text for further discussion of these results and Appendix C for other games and variants.
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
Figure 5: Left and center: Illustration of detailed temporal structure within individual episodes, on FROSTBITE (top) and GRAVITAR (bottom), contrasting two trigger mechanisms. Each subplot shows 15 randomly selected episodes (one per row) that share the same overall exploration amount $p _ { \mathscr { X } } = 0 . 1$ . Each vertical bar (magenta) represents an exploration period of fixed length $n _ { \mathscr { X } } = 1 0$ ; each blue chunk represents an exploitation period. Left: blind, step-based trigger leads to equally spaced exploration periods. Center: a trigger signal informed by value promise leads to very different within-episode patterns, with some parts being densely explored, and others remaining in exploit mode for very long. Right: the corresponding learning curves show a clear performance benefit for the informed trigger variant (orange) in this particular setting. Appendix C has similar plots for many more variants and games.
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 6: Starting mode effect. Final mean episode return for two blind intra-episode experiments that differ only in start mode, greedy (blue) or explore (orange). Scores are normalised so that 1 is the maximum result across the two start modes. Either choice can reliably boost or harm performance, depending on the game. Left: uniform explore mode $\mathcal { X } _ { U }$ . Right: intrinsic reward explore mode $\mathcal { X } _ { I }$ .
|
| 236 |
+
|
| 237 |
+
beneficial for the latter. Zooming in on specific games, a few results stand out: in $\mathcal { X } _ { U }$ mode, the only variant that escapes the inherent local optimum of PHOENIX is the blind, doubly adaptive one (purple), with the bandits radically shifting the exploration statistics over the course of training. In contrast, the best results on MONTEZUMA’S REVENGE are produced by the symmetric trigger variant (blue), which is forced to retain a high $p _ { \mathcal { X } }$ . Finally, FROSTBITE is the one game where an informed trigger (red) clearly outperforms its blind equivalent (purple).
|
| 238 |
+
|
| 239 |
+
215 These insights are still limited to summary statistics, so Figure 5 looks in more depth at the detailed
|
| 240 |
+
216 temporal structure within episodes (as in Figure 1, left). Here the main comparison is between blind
|
| 241 |
+
217 and informed triggers, illustrating that the characteristics of the fine-grained within-episode structure
|
| 242 |
+
218 can differ massively, despite attaining the same high-level statistics $p _ { \mathcal { X } }$ and ${ \mathrm { m e d } } _ { \mathcal { X } }$ . We can see quite
|
| 243 |
+
219 a lot of variation in the trigger structure – the moments we enter exploration are not evenly spaced
|
| 244 |
+
220 anymore. As a bonus, the less rigid structure of the informed trigger (and possibly the more carefully
|
| 245 |
+
221 chosen switch points) end up producing better performance too.
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
Figure 7: Left and center: Contrasting the behavioural characteristics between two forms of blind switching, step-based (left) and probabilistic (center), on the example of FROSTBITE. Each point is an actor episode, with colour indicating time in training (blue for early, red for late). Note the higher diversity of $p _ { \mathcal { X } }$ when switching probabilistically. Right: Corresponding performance curves indicate that the probabilistic switching (red) has a performance benefit, possibly because it creates the opportunity for ‘lucky’ episodes with much less randomness in a game where random actions can easily kill the agent. For more games, please see the Appendix C.
|
| 249 |
+
|
| 250 |
+
Figure 6 sheds light on a complementary dimension, differentiating the effects of starting in explore or exploit mode. In brief, each of these can be consistently beneficial in some games, and consistently harmful in others. Another observation here is the dynamics of the bandit adaptation: when starting in exploit mode, it exhibits a preference for long initial exploit periods in many games (up to 10000 steps), but that effect vanishes when starting in explore mode (see also Appendix C). More subtle effects arise from the choice of parameterisation of switching rates. Figure 7 shows a stark qualitative difference on how probabilistic switching differs from step-count based switching, with the former spanning a much wider diversity of outcomes, which improves performance.
|
| 251 |
+
|
| 252 |
+
# 3.4 Take-aways
|
| 253 |
+
|
| 254 |
+
Summarising the empirical results in this section, two messages stand out. First, there seems to be a sweet spot in terms of temporal granularity, and intra-episodic exploration is the right step towards finding it. Second, the vastly increased design space of our proposed family of methods gives rise to a large diversity of behavioural characteristics; and this diversity is not superficial, it also translates to meaningful performance differences, with different effects in different games, which cannot be reduced to simplistic metrics, such as $p _ { \mathcal { X } }$ . In addition, we provide some sensible rules-of-thumb for practitioners willing to join us on the journey of intra-episodic exploration. In general, it is useful to let a bandit figure out the precise settings, but it is worth curating its choices to at most a handful. Jointly using two bandits across factored dimensions is very adaptive, but can sometimes be harmful when they decrease the signal-to-noise ratio in each other’s learning signal. Finally, the choice of the uncertainty-based trigger should be informed by the switching modes (see Appendix B for details).
|
| 255 |
+
|
| 256 |
+
# 242 4 Discussion
|
| 257 |
+
|
| 258 |
+
Time-based exploration control The emphasis of our paper has been on the potential benefits of heterogeneous temporal structure in mode-switching exploration. But there is another, more mundane potential advantage over monolithic approaches: it may be easier and more natural to tune hyper-parameters related to an explicit exploration budget (e.g., via $p _ { \mathcal { X } }$ ) than to tune an intrinsic reward coefficient, especially if extrinsic reward scales change across tasks or across time, and if the non-stationarity of the intrinsic reward affects its overall scale.
|
| 259 |
+
|
| 260 |
+
249 Diversity for diversity’s sake One role of a general-purpose exploration method is to allow an
|
| 261 |
+
250 agent to get off the ground in a wide variety of domains. While this may clash with sample-efficient
|
| 262 |
+
|
| 263 |
+
learning on specific domains, we believe that the former objective will come to dominate in the long 2 run. In this light, methods that exhibit more diverse behaviour are preferable for that reason alone, 3 because they are more likely to escape local optima or misaligned priors.
|
| 264 |
+
|
| 265 |
+
Related work While not the most common approach to exploration in RL, we are aware of some notable work that has investigated non-trivial temporal structure. The $\epsilon z$ -greedy algorithm [Dabney et al., 2020] is inspired by Levy flights in nature [Baronchelli and Radicchi, 2013] and initiates contiguous chunks of directed behaviour (‘flights’) with the length sampled from a heavy-tailed distribution. In contrast to our proposal, these flights act with a single constant action, instead of invoking an explore mode. [Campos et al., 2021] pursue a similar idea, but with flights along pre-trained coverage policies, while [Ecoffet et al., 2021] chain a ‘return-to-state’ policy to an explore mode. Maybe closest to our $\mathcal { X } _ { I }$ setting is [Bagot et al., 2020], where periods of intrinsic reward pursuit are explicitly invoked by the agent. Exploration with gradual change instead of abrupt mode switches, appears generally at long time-scales, such as when pursuing intrinsic rewards [Schmidhuber, 2010, Oudeyer and Kaplan, 2009], but can also be effective at shorter time-scales e.g., Never-Give-Up [Badia et al., 2020b]. Related work on the question of which states to prefer for exploratory decisions [Tokic, 2010] tends to not consider starting prolonged exploratory periods.
|
| 266 |
+
|
| 267 |
+
267 Relation to options Ideas related to switching behaviours at intra-episodic time-scales are well
|
| 268 |
+
268 known outside of the context of exploration, the best-known framework being options in hierarchical
|
| 269 |
+
269 RL, where the goal is to chain together a sequence of sub-behaviours into a reward-maximising
|
| 270 |
+
270 policy [Sutton et al., 1999, Mankowitz et al., 2016]; but some work has looked at using options for
|
| 271 |
+
271 exploration too [Jinnai et al., 2019a, Bougie and Ichise, 2021]. In its full generality, the options
|
| 272 |
+
272 framework is a substantially more ambitious endeavour than our proposal, as it requires learning a
|
| 273 |
+
273 full state-dependent hierarchical policy that picks which option to start (and when), as well as jointly
|
| 274 |
+
274 learning the options themselves.
|
| 275 |
+
|
| 276 |
+
Limitations Our proposed approach inherits many of the challenges that are typical for exploration methods, such as sample efficiency or trading off risk. An aspect that is particular to the intra-episode switching case is the different nature of the off-policy-ness. The resulting effective policy can produce state distributions that differ substantially from those of either of the two base mode behaviours that are being interleaved. It can potentially visit parts of the state space that neither base policy would reach if followed from the beginning of the episode. While a boon for exploration, this might pose a challenge to learning, as it could require off-policy corrections that treat those states differently and do not only correct for differences in action space. We leave this as an intriguing consideration for future work; this paper does not use any non-trivial off-policy correction (see Appendix A).
|
| 277 |
+
|
| 278 |
+
Future work With the dimensions laid out in Section 2, it should be clear that this paper can but scratch the surface. We see numerous opportunities for future work, on some of which we already carried out initial investigations, see Appendix B. For starters, there is no inherent need to restrict the mechanism to just two modes: A richer form of exploration could switch between exploit, explore, novelty and mastery [Thomaz and Breazeal, 2008], or between many diverse forms of exploration (such as different levels of optimism [Derman et al., 2020, Moskovitz et al., 2021]). It is also conceivable to switch less abruptly; for example, if both exploit- and explore-mode behaviours are induced by a reward function, a Q-value-based agent with successor features [Barreto et al., 2017, Borsa et al., 2019] could interpolate between them to make switching more gradual [Barreto et al., 2019]. Triggers are another aspect that could be expanded or refined: there are different candidates for estimating uncertainty, such as ensemble discrepancy [Wiering and Van Hasselt, 2008, Buckman et al., 2018], amortised value errors [Flennerhag et al., 2020], or density models [Bellemare et al., 2016, Ostrovski et al., 2017]; also, triggers could be based on other signals that are not derived from uncertainty, such as salience [Downar et al., 2002], minimal coverage [Jinnai et al., 2019a,b], or empowerment [Klyubin et al., 2005, Gregor et al., 2016, Houthooft et al., 2016].
|
| 279 |
+
|
| 280 |
+
299 Conclusion We have presented an initial study of intra-episodic exploration, centred on the scenario
|
| 281 |
+
300 of switching between an explore and an exploit mode. We hope this has broadened the available
|
| 282 |
+
301 forms of temporal structure in behaviour, leading to more diverse, adaptive and intentional forms of
|
| 283 |
+
302 exploration, in turn enabling RL to scale to ever more complex domains.
|
| 284 |
+
304 M. A. Addicott, J. M. Pearson, M. M. Sweitzer, D. L. Barack, and M. L. Platt. A Primer on Foraging
|
| 285 |
+
305 and the Explore/Exploit Trade-Off for Psychiatry Research. Neuropsychopharmacology, 42(10):
|
| 286 |
+
306 1931–1939, Sep 2017.
|
| 287 |
+
307 A. P. Badia, B. Piot, S. Kapturowski, P. Sprechmann, A. Vitvitskyi, D. Guo, and C. Blundell. Agent57:
|
| 288 |
+
308 Outperforming the Atari human benchmark, 2020a.
|
| 289 |
+
309 A. P. Badia, P. Sprechmann, A. Vitvitskyi, D. Guo, B. Piot, S. Kapturowski, O. Tieleman, M. Arjovsky,
|
| 290 |
+
310 A. Pritzel, A. Bolt, and C. Blundell. Never give up: Learning directed exploration strategies,
|
| 291 |
+
311 2020b.
|
| 292 |
+
312 L. Bagot, K. Mets, and S. Latré. Learning intrinsically motivated options to stimulate policy
|
| 293 |
+
313 exploration, 2020.
|
| 294 |
+
314 A. Baronchelli and F. Radicchi. Lévy flights in human behavior and cognition. Chaos, Solitons &
|
| 295 |
+
315 Fractals, 56:101–105, 2013.
|
| 296 |
+
316 A. Barreto, W. Dabney, R. Munos, J. J. Hunt, T. Schaul, H. P. van Hasselt, and D. Silver. Successor
|
| 297 |
+
317 features for transfer in reinforcement learning. In Advances in neural information processing
|
| 298 |
+
318 systems, pages 4055–4065, 2017.
|
| 299 |
+
319 A. Barreto, D. Borsa, S. Hou, G. Comanici, E. Aygün, P. Hamel, D. Toyama, J. hunt, S. Mourad,
|
| 300 |
+
320 D. Silver, and D. Precup. The option keyboard: Combining skills in reinforcement learning. In
|
| 301 |
+
321 Advances in Neural Information Processing Systems 32, pages 13052–13062, 2019.
|
| 302 |
+
322 M. G. Bellemare, Y. Naddaf, J. Veness, and M. Bowling. The arcade learning environment: An
|
| 303 |
+
323 evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279,
|
| 304 |
+
324 2013.
|
| 305 |
+
325 M. G. Bellemare, S. Srinivasan, G. Ostrovski, T. Schaul, D. Saxton, and R. Munos. Unifying
|
| 306 |
+
326 count-based exploration and intrinsic motivation. In Neural Information Processing Systems, 2016.
|
| 307 |
+
327 D. Borsa, A. Barreto, J. Quan, D. J. Mankowitz, H. van Hasselt, R. Munos, D. Silver, and T. Schaul.
|
| 308 |
+
328 Universal successor features approximators. In International Conference on Learning Representa
|
| 309 |
+
329 tions, 2019.
|
| 310 |
+
330 N. Bougie and R. Ichise. Fast and slow curiosity for high-level exploration in reinforcement learning.
|
| 311 |
+
331 Applied Intelligence, 51(2):1086–1107, 2021.
|
| 312 |
+
332 J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke,
|
| 313 |
+
333 J. VanderPlas, S. Wanderman-Milne, and Q. Zhang. JAX: composable transformations of
|
| 314 |
+
334 Python+NumPy programs, 2018. URL http://github.com/google/jax.
|
| 315 |
+
335 J. Buckman, D. Hafner, G. Tucker, E. Brevdo, and H. Lee. Sample-efficient reinforcement learning
|
| 316 |
+
336 with stochastic ensemble value expansion. arXiv preprint arXiv:1807.01675, 2018.
|
| 317 |
+
337 D. Budden, M. Hessel, I. Kemaev, S. Spencer, and F. Viola. Chex: Testing made fun, in jax!, 2020a.
|
| 318 |
+
338 URL http://github.com/deepmind/chex.
|
| 319 |
+
339 D. Budden, M. Hessel, J. Quan, S. Kapturowski, K. Baumli, S. Bhupatiraju, A. Guy, and M. King.
|
| 320 |
+
340 RLax: Reinforcement Learning in JAX, 2020b. URL http://github.com/deepmind/rlax.
|
| 321 |
+
341 Y. Burda, H. Edwards, A. J. Storkey, and O. Klimov. Exploration by random network distillation.
|
| 322 |
+
342 CoRR, abs/1810.12894, 2018.
|
| 323 |
+
343 V. Campos, P. Sprechmann, S. Hansen, A. Barreto, S. Kapturowski, A. Vitvitskyi, A. P. Badia,
|
| 324 |
+
344 and C. Blundell. Coverage as a principle for discovering transferable behavior in reinforcement
|
| 325 |
+
345 learning. arXiv preprint arXiv:2102.13515, 2021.
|
| 326 |
+
346 O. Cappé, A. Garivier, O.-A. Maillard, R. Munos, G. Stoltz, et al. Kullback–leibler upper confidence
|
| 327 |
+
347 bounds for optimal sequential allocation. Annals of Statistics, 41(3):1516–1541, 2013.
|
| 328 |
+
|
| 329 |
+
348 A. Cassirer, G. Barth-Maron, T. Sottiaux, M. Kroiss, and E. Brevdo. Reverb: An efficient data storage and transport system for ml research, 2020. URL https://github.com/deepmind/reverb.
|
| 330 |
+
350 F. Cathomas, F. Klaus, K. Guetter, H.-K. Chung, A. Raja Beharelle, T. R. Spiller, R. Schlegel, E. Seifritz, M. N. Hartmann-Riemer, P. N. Tobler, and S. Kaiser. Increased random exploration in schizophrenia is associated with inflammation. npj Schizophrenia, 7(1):6, Feb 2021.
|
| 331 |
+
353 K. Chakroun, D. Mathar, A. Wiehler, F. Ganzer, and J. Peters. Dopaminergic modulation of the exploration/exploitation trade-off in human decision-making. Elife, 9, 06 2020.
|
| 332 |
+
355 D. Churchill and M. Buro. Build order optimization in starcraft. In Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, volume 6(1), 2011. J. D. Cohen, S. M. McClure, and A. J. Yu. Should I stay or should I go? How the human brain manages the trade-off between exploitation and exploration. Philosophical Transactions of the Royal Society B: Biological Sciences, 362(1481):933–942, 2007.
|
| 333 |
+
360 V. D. Costa, A. R. Mitz, and B. B. Averbeck. Subcortical substrates of explore-exploit decisions in primates. Neuron, 103(3):533–545.e5, Aug. 2019.
|
| 334 |
+
362 J. Cremer, T. Honda, Y. Tang, J. Wong-Ng, M. Vergassola, and T. Hwa. Chemotaxis as a navigation strategy to boost range expansion. Nature, 575(7784):658–663, 11 2019.
|
| 335 |
+
364 W. Dabney, G. Ostrovski, and A. Barreto. Temporally-extended $\epsilon$ -greedy exploration, 2020.
|
| 336 |
+
365 E. Derman, D. Mankowitz, T. Mann, and S. Mannor. A bayesian approach to robust reinforcement learning. In Uncertainty in Artificial Intelligence, pages 648–658. PMLR, 2020.
|
| 337 |
+
367 J. Downar, A. P. Crawley, D. J. Mikulis, and K. D. Davis. A cortical network sensitive to stimulus salience in a neutral behavioral context across multiple sensory modalities. Journal of neurophysiology, 87(1):615–620, 2002.
|
| 338 |
+
370 R. B. Ebitz, B. J. Sleezer, H. P. Jedema, C. W. Bradberry, and B. Y. Hayden. Tonic exploration governs both flexibility and lapses. PLOS Computational Biology, 15(11):e1007475, Nov. 2019.
|
| 339 |
+
372 A. Ecoffet, J. Huizinga, J. Lehman, K. O. Stanley, and J. Clune. Go-explore: a new approach for hard-exploration problems, 2021.
|
| 340 |
+
374 S. Flennerhag, J. X. Wang, P. Sprechmann, F. Visin, A. Galashov, S. Kapturowski, D. L. Borsa, N. Heess, A. Barreto, and R. Pascanu. Temporal difference uncertainties as a signal for exploration. arXiv preprint arXiv:2010.02255, 2020.
|
| 341 |
+
377 S. J. Gershman. Deconstructing the human algorithms for exploration. Cognition, 173:34–42, 2018. ISSN 0010-0277.
|
| 342 |
+
379 S. J. Gershman and B. G. Tzovaras. Dopaminergic genes are associated with both directed and random exploration. bioRxiv, 2018.
|
| 343 |
+
381 K. Gregor, D. J. Rezende, and D. Wierstra. Variational intrinsic control. arXiv preprint arXiv:1611.07507, 2016.
|
| 344 |
+
383 T. Hennigan, T. Cai, T. Norman, and I. Babuschkin. Haiku: Sonnet for JAX, 2020. URL http: //github.com/deepmind/dm-haiku.
|
| 345 |
+
385 M. Hessel, D. Budden, F. Viola, M. Rosca, E. Sezener, and T. Hennigan. Optax: Composable gradient transformation and optimisation, in JAX!, 2020. URL http://github.com/deepmind/optax. T. T. Hills, P. M. Todd, D. Lazer, A. D. Redish, and I. D. Couzin. Exploration versus exploitation in space, mind, and society. Trends Cogn Sci, 19(1):46–54, Jan 2015.
|
| 346 |
+
389 S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
|
| 347 |
+
391 D. Horgan, J. Quan, D. Budden, G. Barth-Maron, M. Hessel, H. Van Hasselt, and D. Silver. Distributed prioritized experience replay. arXiv preprint arXiv:1803.00933, 2018.
|
| 348 |
+
393 R. Houthooft, X. Chen, Y. Duan, J. Schulman, F. De Turck, and P. Abbeel. Vime: Variational information maximizing exploration. arXiv preprint arXiv:1605.09674, 2016.
|
| 349 |
+
395 M. Jaderberg, V. Mnih, W. M. Czarnecki, T. Schaul, J. Z. Leibo, D. Silver, and K. Kavukcuoglu. Reinforcement learning with unsupervised auxiliary tasks. arXiv preprint arXiv:1611.05397, 2016. T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(4), 2010.
|
| 350 |
+
399 Y. Jinnai, J. W. Park, D. Abel, and G. Konidaris. Discovering options for exploration by minimizing cover time. In International Conference on Machine Learning, pages 3130–3139. PMLR, 2019a. Y. Jinnai, J. W. Park, M. C. Machado, and G. Konidaris. Exploration in reinforcement learning with deep covering options. In International Conference on Learning Representations, 2019b.
|
| 351 |
+
403 S. Kapturowski, G. Ostrovski, W. Dabney, J. Quan, and R. Munos. Recurrent experience replay in distributed reinforcement learning. In International Conference on Learning Representations, 2019.
|
| 352 |
+
406 J. M. Kembro, M. Lihoreau, J. Garriga, E. P. Raposo, and F. Bartumeus. Bumblebees learn foraging routes through exploitation-exploration cycles. J R Soc Interface, 16(156):20190103, 07 2019.
|
| 353 |
+
408 D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 354 |
+
410 A. S. Klyubin, D. Polani, and C. L. Nehaniv. Empowerment: A universal agent-centric measure of control. In 2005 IEEE Congress on Evolutionary Computation, volume 1, pages 128–135. IEEE, 2005.
|
| 355 |
+
413 T. Lattimore and C. Szepesvári. Bandit algorithms. Cambridge University Press, 2020.
|
| 356 |
+
414 C. Linke, N. M. Ady, M. White, T. Degris, and A. White. Adapting behaviour via intrinsic reward: A survey and empirical study, 2019.
|
| 357 |
+
416 M. C. Machado, M. G. Bellemare, E. Talvitie, J. Veness, M. Hausknecht, and M. Bowling. Revisiting the arcade learning environment: Evaluation protocols and open problems for general agents. Journal of Artificial Intelligence Research, 61:523–562, 2018.
|
| 358 |
+
419 D. J. Mankowitz, T. A. Mann, and S. Mannor. Adaptive skills adaptive partitions (ASAP). In Neural Information Processing Systems, 2016. V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, S. Petersen, C. Beattie, A. Sadik, I. Antonoglou, H. King, D. Kumaran, D. Wierstra, S. Legg, and D. Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
|
| 359 |
+
425 T. Moskovitz, J. Parker-Holder, A. Pacchiano, and M. Arbel. Deep reinforcement learning with dynamic optimism. arXiv preprint arXiv:2102.03765, 2021.
|
| 360 |
+
427 G. Ostrovski, M. G. Bellemare, A. van den Oord, and R. Munos. Count-based exploration with neural density models. CoRR, abs/1703.01310, 2017.
|
| 361 |
+
429 P.-Y. Oudeyer and F. Kaplan. What is intrinsic motivation? a typology of computational approaches. Frontiers in neurorobotics, 1:6, 2009. T. G. Power. Play and exploration in children and animals. Psychology Press, 1999.
|
| 362 |
+
432 T. Schaul, J. Quan, I. Antonoglou, and D. Silver. Prioritized experience replay. In International Conference on Learning Representations, Puerto Rico, 2016.
|
| 363 |
+
434 T. Schaul, D. Borsa, D. Ding, D. Szepesvari, G. Ostrovski, W. Dabney, and S. Osindero. Adapting behaviour for learning progress, 2019.
|
| 364 |
+
436 T. Schaul, G. Ostrovski, I. Kemaev, and D. Borsa. Return-based scaling: Yet another normalisation trick for deep RL. arXiv preprint arXiv:2105.05347, 2021.
|
| 365 |
+
8 J. Schmidhuber. Curious model-building control systems. In Proc. international joint conference on neural networks, pages 1458–1463, 1991.
|
| 366 |
+
0 J. Schmidhuber. Formal theory of creativity, fun, and intrinsic motivation (1990–2010). IEEE Transactions on Autonomous Mental Development, 2(3):230–247, 2010. E. Schulz, R. Bhui, B. C. Love, B. Brier, M. T. Todd, and S. J. Gershman. Structured, uncertaintydriven exploration in real-world consumer choice. Proceedings of the National Academy of Sciences, 116(28):13903–13908, June 2019. R. S. Sutton and A. G. Barto. Reinforcement learning: An introduction. MIT press, 2018.
|
| 367 |
+
6 R. S. Sutton, D. Precup, and S. Singh. Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181–211, 1999.
|
| 368 |
+
8 A. L. Thomaz and C. Breazeal. Experiments in socially guided exploration: Lessons learned in building robots that learn with and without human teachers. Connection Science, 20(2-3):91–110, 2008. S. B. Thrun. Efficient exploration in reinforcement learning, 1992. M. Tokic. Adaptive $\varepsilon$ -greedy exploration in reinforcement learning based on value differences. In Annual Conference on Artificial Intelligence, pages 203–210. Springer, 2010. G. G. Turrigiano and S. B. Nelson. Homeostatic plasticity in the developing nervous system. Nature reviews neuroscience, 5(2):97–107, 2004.
|
| 369 |
+
6 J. A. Waltz, R. C. Wilson, M. A. Albrecht, M. J. Frank, and J. M. Gold. Differential effects of psychotic illness on directed and random exploration. Computational Psychiatry, 4(0):18, Aug. 2020. Z. Wang, T. Schaul, M. Hessel, H. Hasselt, M. Lanctot, and N. Freitas. Dueling network architectures for deep reinforcement learning. In M. F. Balcan and K. Q. Weinberger, editors, Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 1995–2003, New York, New York, USA, 20–22 Jun 2016. PMLR. M. A. Wiering and H. Van Hasselt. Ensemble algorithms in reinforcement learning. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 38(4):930–936, 2008.
|
| 370 |
+
5 J. M. Wolfe, K. R. Cave, and S. L. Franzel. Guided search: an alternative to the feature integration model for visual search. J Exp Psychol Hum Percept Perform, 15(3):419–433, 1989.
|
| 371 |
+
67 D. Zha, W. Ma, L. Yuan, X. Hu, and J. Liu. Rank the episodes: A simple approach for exploration in procedurally-generated environments. In International Conference on Learning Representations, 2021.
|
| 372 |
+
|
| 373 |
+
1. For all authors...
|
| 374 |
+
|
| 375 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 376 |
+
(b) Did you describe the limitations of your work? [Yes] See Section 4
|
| 377 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 378 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 379 |
+
|
| 380 |
+
2. If you are including theoretical results...
|
| 381 |
+
|
| 382 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 383 |
+
|
| 384 |
+
3. If you ran experiments...
|
| 385 |
+
|
| 386 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] We did not include code, but described the specifics of our methods in sufficient detail to reproduce results.
|
| 387 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix A.
|
| 388 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Appendix A.
|
| 389 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix A.
|
| 390 |
+
|
| 391 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 392 |
+
|
| 393 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] We cite all opensource libraries used, see Appendix A.
|
| 394 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 395 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 396 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 397 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 398 |
+
|
| 399 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 400 |
+
|
| 401 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 402 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 403 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/jlgCDIrAv0_/jlgCDIrAv0__content_list.json
ADDED
|
@@ -0,0 +1,982 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "When should agents explore? ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
321,
|
| 8 |
+
123,
|
| 9 |
+
676,
|
| 10 |
+
147
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
423,
|
| 19 |
+
200,
|
| 20 |
+
580,
|
| 21 |
+
256
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
292,
|
| 32 |
+
535,
|
| 33 |
+
309
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "1 Exploration remains a central challenge for reinforcement learning (RL). Virtually \n2 all existing methods share the feature of a monolithic behaviour policy that changes \n3 only gradually (at best). In contrast, the exploratory behaviours of animals and hu \n4 mans exhibit a rich diversity, namely including forms of switching between modes. \n5 This paper presents an initial study of mode-switching, non-monolithic exploration \n6 for RL. We investigate different modes to switch between, at what timescales it \n7 makes sense to switch, and what signals make for good switching triggers. We \n8 also propose practical algorithmic components that make the switching mechanism \n9 adaptive and robust, which enables flexibility without an accompanying hyper \n10 parameter-tuning burden. Finally, we report a promising and detailed analysis on \n11 Atari, using two-mode exploration and switching at sub-episodic time-scales. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
148,
|
| 42 |
+
321,
|
| 43 |
+
767,
|
| 44 |
+
476
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "12 1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
148,
|
| 54 |
+
500,
|
| 55 |
+
312,
|
| 56 |
+
516
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "13 The trade-off between exploration and exploitation is described as the crux of learning and behaviour \n14 across many domains, not just reinforcement learning [Sutton and Barto, 2018], but also in decision \n15 making [Cohen et al., 2007], evolutionary biology [Cremer et al., 2019], ecology [Kembro et al., \n16 2019], neuroscience (e.g., focused versus diffuse search in visual attention [Wolfe et al., 1989], \n17 dopamine regulations [Chakroun et al., 2020]), cognitive sciences [Hills et al., 2015], as well as \n18 psychology and psychiatry [Addicott et al., 2017]. In a nutshell, exploration is about the balance \n19 between taking the familiar choice that is known to be rewarding and learning about unfamiliar \n20 options of uncertain reward, but which could ultimately be more valuable than the familiar options. \n21 Ample literature has studied the question of how much to explore, that is how to set the overall \n22 trade-off (and how to adjust it over the course of learning) [Jaksch et al., 2010, Cappé et al., 2013, \n23 Lattimore and Szepesvári, 2020, Thrun, 1992], and the question of how to explore, namely how \n24 to choose exploratory actions (e.g., randomly, optimistically, intrinsically motivated, or otherwise) \n25 [Schmidhuber, 1991, Oudeyer and Kaplan, 2009, Linke et al., 2019]. In contrast, the question of when \n26 to explore has been studied very little, possibly because it does not arise in bandit problems, where a \n27 lot of exploration methods are rooted. The ‘when’ question and its multiple facets are the subjects of \n28 this paper. We believe that addressing it could lead to more intentional forms of exploration. \n29 Consider an agent that has access to two modes of behaviour, an ‘explore’ mode and an ‘exploit’ \n30 mode (e.g., a random policy and a greedy policy, as in $\\varepsilon$ -greedy). Even when assuming that the \n31 overall proportion of exploratory steps is fixed, the agent still has multiple degrees of freedom: it \n32 can explore more at the beginning of training and less in later phases; it may take single exploratory \n33 steps or execute prolonged periods of exploration; it may prefer exploratory steps early or late within \n34 an episode; and it could trigger the onset (or end) of an exploratory period based on various criteria. \n35 Animals and humans exhibit non-trivial behaviour in all of these dimensions, presumably encoding \n36 useful inductive biases that way [Power, 1999]. Humans make use of multiple effective strategies, \n37 such as selectively exploring options with high uncertainty (a form of directed, or information-seeking \n38 exploration), and increasing the randomness of their choices when they are more uncertain [Gershman, \n39 2018, Gershman and Tzovaras, 2018, Ebitz et al., 2019]. Monkeys use directed exploration to manage \n40 explore-exploit trade-offs, and these signals are coded in motivational brain regions [Costa et al., \n41 2019]. Patients with schizophrenia register changes in directed exploration and experience low-grade \n42 inflammation when shifting from exploitation to random exploration [Waltz et al., 2020, Cathomas \n43 et al., 2021]. This diversity is what motivates us to study which of these can benefit RL agents in turn, \n44 by expanding the class of exploratory behaviours beyond the commonly used monolithic ones (where \n45 modes are merged homogeneously in time). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
147,
|
| 65 |
+
530,
|
| 66 |
+
825,
|
| 67 |
+
641
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "",
|
| 74 |
+
"bbox": [
|
| 75 |
+
147,
|
| 76 |
+
647,
|
| 77 |
+
825,
|
| 78 |
+
758
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
147,
|
| 87 |
+
763,
|
| 88 |
+
825,
|
| 89 |
+
902
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
147,
|
| 98 |
+
92,
|
| 99 |
+
825,
|
| 100 |
+
189
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "46 2 Methods ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
148,
|
| 110 |
+
208,
|
| 111 |
+
279,
|
| 112 |
+
224
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "47 The objective of an RL agent is to learn a policy that maximises external reward. At the high level, \n48 it achieves this by interleaving two processes: generating new experience by interacting with the \n49 environment using a behaviour policy (exploration) and updating its policy using this experience \n50 (learning). As RL is applied to increasingly ambitious tasks, the challenge for exploration becomes \n51 to keep producing diverse experience, because if something has not been encountered, it cannot be \n52 learned. Our central argument is therefore simple: a monolithic, time-homogeneous behaviour policy \n53 is strictly less diverse than a heterogeneous mode-switching one, and the former may hamstring \n54 the agent’s performance. As an illustrative example, consider a human learning how to ride a bike \n55 (explore), while maintaining their usual happiness through food, sleep, work (exploit): there is a stark \n56 contrast between a monolithic, time-homogeneous behaviour that interleaves a twist of the handlebar \n57 or a turn of a pedal once every few minutes or so, and the mode-switching behaviour that dedicates \n58 prolonged periods of time exclusively to acquiring the new skill of cycling. ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
147,
|
| 121 |
+
239,
|
| 122 |
+
825,
|
| 123 |
+
405
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "59 2.1 Exploration modes ",
|
| 130 |
+
"text_level": 1,
|
| 131 |
+
"bbox": [
|
| 132 |
+
150,
|
| 133 |
+
421,
|
| 134 |
+
344,
|
| 135 |
+
436
|
| 136 |
+
],
|
| 137 |
+
"page_idx": 1
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "text",
|
| 141 |
+
"text": "60 While the choice of behaviour in pure exploit mode is straightforward, namely the greedy pursuit \nof external reward (or best guess thereof), denoted by $\\mathcal { G }$ , there are numerous viable choices for \n62 behaviour in a pure explore mode (denoted by $\\mathcal { X }$ ). In this paper we consider two standard ones: \n63 $\\mathcal { X } _ { U }$ , the naive uniform random policy, and $\\mathcal { X } _ { I }$ , an intrinsically motivated behaviour that exclusively \n64 pursues a novelty measure based on random network distillation (RND, [Burda et al., 2018]). See \n65 Section 4 and Appendix B for additional possibilities of $\\mathcal { X }$ . In this paper we choose fixed behaviours \n66 for these modes, and focus solely on the question of when to switch between them. In our setting, \n67 overall proportion of exploratory steps (the how much), denoted by $p _ { \\mathcal { X } }$ , is not directly controlled but \n68 derives from the when. ",
|
| 142 |
+
"bbox": [
|
| 143 |
+
153,
|
| 144 |
+
446,
|
| 145 |
+
825,
|
| 146 |
+
571
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "2.2 Granularity ",
|
| 153 |
+
"text_level": 1,
|
| 154 |
+
"bbox": [
|
| 155 |
+
176,
|
| 156 |
+
588,
|
| 157 |
+
297,
|
| 158 |
+
603
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "An exploration period is an uninterrupted sequence of steps in explore mode. We consider four choices of temporal granularity for exploratory periods, also illustrated on Figure 1: ",
|
| 165 |
+
"bbox": [
|
| 166 |
+
165,
|
| 167 |
+
613,
|
| 168 |
+
823,
|
| 169 |
+
642
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "Step-level exploration is the most common scenario, where the decision to explore is taken independently at each step, affecting one action.1 The canonical example is $\\varepsilon$ -greedy (Fig.1:C). ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
166,
|
| 178 |
+
654,
|
| 179 |
+
823,
|
| 180 |
+
681
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "Experiment-level exploration is the other extreme, where all behaviour during training is produced in explore mode, and learning is off-policy (the greedy policy is only used for evaluation). This scenario is also very common, with most forms of intrinsic motivation falling into this category, namely pursuing reward with an intrinsic bonus throughout training (Fig.1:A).2 ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
174,
|
| 189 |
+
685,
|
| 190 |
+
825,
|
| 191 |
+
742
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Episode-level exploration is the case where the mode is fixed for an entire episode at a time (e.g., training games versus tournament matches in a sport), see Fig.1:B. This has been investigated for simple cases, where the policy’s level of stochasticity is sampled at the beginning of each episode [Horgan et al., 2018, Kapturowski et al., 2019, Zha et al., 2021]. ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
176,
|
| 200 |
+
746,
|
| 201 |
+
825,
|
| 202 |
+
801
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "Intra-episodic exploration is what falls in-between step- and episode-level exploration, where exploration periods last for multiple steps, but less than a full episode. This is the least commonly studied scenario, and will form the bulk of our investigations (Fig.1:D,E,F,G). ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
158,
|
| 211 |
+
806,
|
| 212 |
+
821,
|
| 213 |
+
848
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 1
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "image",
|
| 219 |
+
"img_path": "images/8c0dc4b02ecfa1c683fbb2be16c7afbac87ee7c5ef3e2ee1fb1d100e51c4cb1d.jpg",
|
| 220 |
+
"image_caption": [
|
| 221 |
+
"Figure 1: Illustration of different types of temporal structure for two-mode exploration. Left: Each line A-G depicts an excerpt of an experiment (black lines show episode boundaries, experiment continues on the right), with colour denoting the active mode (blue is exploit, magenta is explore). A is of experiment-level granularity, $\\mathbf { B }$ episode-level, $\\mathbf { C }$ step-level, and D-G are of intra-episodic exploration granularity. Right: The same examples, mapped onto a characteristic plot of summary statistics: overall exploratory proportion $p _ { \\mathcal { X } }$ versus typical length of an exploratory period ${ \\mathrm { m e d } } _ { \\mathcal { X } }$ . The yellow-shaded area highlights the intra-episodic part of space studied in this paper (some points are not realisable, e.g., when $p _ { \\mathcal { X } } \\approx 1$ then ${ \\mathrm { m e d } } _ { \\mathcal { X } }$ must be large). C, D, E, F share the same $p _ { \\mathscr { X } } \\approx 0 . 2$ , while interleaving exploration modes in different ways. $\\mathbf { D }$ and $\\mathbf { E }$ share the same ${ \\mathrm { m e d } } _ { \\mathcal { X } }$ value, and differ only on whether exploration periods are spread out, or happen toward the end of episode. "
|
| 222 |
+
],
|
| 223 |
+
"image_footnote": [],
|
| 224 |
+
"bbox": [
|
| 225 |
+
176,
|
| 226 |
+
79,
|
| 227 |
+
826,
|
| 228 |
+
250
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "85 We denote the length of an exploratory period by $n _ { \\mathcal { X } }$ (and similarly $n _ { \\mathcal { G } }$ for exploit mode). To \n86 characterise granularity, our summary statistic of choice is ${ \\mathrm { m e d } } _ { \\mathcal { X } } : = { \\mathrm { m e d i a n } } ( n _ { \\mathcal { X } } )$ . Note that there \n87 are two possible units for these statistics: the raw steps or the proportion of the episode length $L$ . \n88 The latter has different (relative) semantics, but may be more appropriate when episode lengths vary \n89 widely across training. We denote it as $\\mathrm { r m e d } _ { \\mathcal { X } } : = \\mathrm { \\bar { m e d i a n } } ( n _ { \\mathcal { X } } / L )$ . ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
147,
|
| 237 |
+
415,
|
| 238 |
+
825,
|
| 239 |
+
484
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "2.3 Switching for intra-episodic exploration ",
|
| 246 |
+
"text_level": 1,
|
| 247 |
+
"bbox": [
|
| 248 |
+
165,
|
| 249 |
+
502,
|
| 250 |
+
490,
|
| 251 |
+
516
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "Granularity is but the coarsest facet of the ‘when’ question, but more precise intra-episode timings (when to start and when to stop an exploratory period) are important aspects too. ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
158,
|
| 260 |
+
527,
|
| 261 |
+
823,
|
| 262 |
+
556
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "93 Blind switching The simplest type of switching mechanism does not take state or time into account \n94 (thus we call it blind), and is only concerned with producing switches at some desired time resolution. \n95 It can be implemented deterministically through a counter (e.g., enter explore mode after 100 exploit \n96 mode steps), or probabilistically (e.g., at each step, enter explore mode with probability 0.01). Its \n97 expected duration can be parameterised in terms of raw steps, or in terms of fractional episode length. \n98 The opposite of blind switching is informed switching, as discussed in Section 2.4. \n99 Asymmetry In general, the mechanism for entering the explore mode can differ from the one \n100 for exiting it (to enter the exploit mode), and this is crucial to obtain flexible overall amounts of \n101 exploration – if switching were symmetric, the proportion would be $p _ { \\mathscr { X } } \\approx 0 . 5$ . \n102 Starting mode When periods last for a significant fraction of episode length, it also matters how \n103 the sequence is initialised, i.e., whether an episode starts in explore or in exploit mode, or more \n104 generally, whether the agent explores more early in an episode or more later on. It is conceivable \n105 that the best choice among these is domain dependent (see Figure 6): in most scenarios, the states at \n106 the beginning of an episode have been visited many times, thus starting with exploit mode can be \n107 beneficial; in other domains however, early actions may disproportionately determine the available \n108 future paths (e.g., build orders in StarCraft [Churchill and Buro, 2011]). ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
147,
|
| 271 |
+
571,
|
| 272 |
+
825,
|
| 273 |
+
655
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "",
|
| 280 |
+
"bbox": [
|
| 281 |
+
143,
|
| 282 |
+
671,
|
| 283 |
+
825,
|
| 284 |
+
713
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "",
|
| 291 |
+
"bbox": [
|
| 292 |
+
142,
|
| 293 |
+
729,
|
| 294 |
+
825,
|
| 295 |
+
825
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "2.4 Informed switching with triggers ",
|
| 302 |
+
"text_level": 1,
|
| 303 |
+
"bbox": [
|
| 304 |
+
161,
|
| 305 |
+
843,
|
| 306 |
+
442,
|
| 307 |
+
858
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "110 Going beyond blind switching opens up another rich set of design choices. We decompose the \n111 mechanism into two parts. First, a scalar trigger signal is produced by the agent at each step, based on \n112 its current information – drawing inspiration from human behaviour, the triggering signal is intended \n113 to be a proxy for uncertainty [Schulz et al., 2019]. Second, a binary switching decision is taken based \n114 on the trigger signal, for example by comparing it to a threshold. Again, the type of trigger and its \n115 configuration will in general not be symmetric between entering and exiting an exploratory period. \n116 Value promise trigger To keep this paper focused, we will look at one such trigger, dubbed ‘value \n117 promise discrepancy’ (see Appendix B for additional competitive variants). This is an online proxy \n118 of how much of the reward that the agent’s past value estimate promised ( $k$ steps ago) have actually \n119 come about. The intuition is that in uncertain parts of state space, this discrepancy will generally be \n120 larger than when everything goes as expected. Formally, ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
142,
|
| 316 |
+
869,
|
| 317 |
+
825,
|
| 318 |
+
911
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "",
|
| 325 |
+
"bbox": [
|
| 326 |
+
143,
|
| 327 |
+
90,
|
| 328 |
+
828,
|
| 329 |
+
133
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "",
|
| 336 |
+
"bbox": [
|
| 337 |
+
142,
|
| 338 |
+
147,
|
| 339 |
+
825,
|
| 340 |
+
218
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "equation",
|
| 346 |
+
"img_path": "images/ca3a183e428b23d3ec88910ab8e1738975d80f883aab79d1fb6f8d67d8b35d08.jpg",
|
| 347 |
+
"text": "$$\nD _ { \\mathrm { p r o m i s e } } ( t - k , t ) : = \\left| V ( s _ { t - k } ) - \\sum _ { i = 0 } ^ { k - 1 } \\gamma ^ { i } R _ { t - i } - V ( s _ { t } ) \\right|\n$$",
|
| 348 |
+
"text_format": "latex",
|
| 349 |
+
"bbox": [
|
| 350 |
+
313,
|
| 351 |
+
223,
|
| 352 |
+
684,
|
| 353 |
+
268
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "121 where $V ( s )$ is the agent’s value estimate at state $s , R$ is the reward, and $\\gamma$ is a discount factor. ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
142,
|
| 362 |
+
273,
|
| 363 |
+
784,
|
| 364 |
+
290
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "122 Homeostasis In practice, the scales of trigger signals may vary substantially across domains, and \n123 across training time, for example, the magnitude of $D _ { \\mathrm { p r o m i s e } }$ will depend on reward scales and \n124 density, and can decrease over time as accuracy improves (the signals could also be noisy). This \n125 means that naively setting a threshold hyper-parameter is impractical. For a simple remedy, we have \n126 taken inspiration from neuroscience [Turrigiano and Nelson, 2004] to add homeostasis to the binary \n127 switching mechanism, which tracks recent values of the signal and adapts the threshold for switching \n128 so that a specific average target rate is obtained. This functions as an adaptive threshold, making \n129 tuning straightforward because the target rate of switching can be configured independently of the \n130 scales of the trigger signal. See Appendix A for the details of the implementation. ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
143,
|
| 373 |
+
304,
|
| 374 |
+
825,
|
| 375 |
+
429
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "2.5 Adaptation instead of tuning ",
|
| 382 |
+
"text_level": 1,
|
| 383 |
+
"bbox": [
|
| 384 |
+
169,
|
| 385 |
+
445,
|
| 386 |
+
413,
|
| 387 |
+
459
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 3
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "Our approach introduces additional flexibility to the exploration process, even when holding the specifics of the learning algorithm and the exploration mode fixed. The two main added dimensions are when (or how often) to enter explore mode, and when (or how quickly) to exit it. To avoid this becoming a hyper-parameter tuning burden, we propose to follow [Schaul et al., 2019] and [Badia et al., 2020a], and delegate the adaptation of these settings to a meta-controller (implemented as a non-stationary multi-armed bandit that maximises episodic return). As an added benefit, the ‘when’ of exploration can now become adaptive to both the task, and the stage of learning. ",
|
| 394 |
+
"bbox": [
|
| 395 |
+
158,
|
| 396 |
+
470,
|
| 397 |
+
825,
|
| 398 |
+
568
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 3
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "3 Results ",
|
| 405 |
+
"text_level": 1,
|
| 406 |
+
"bbox": [
|
| 407 |
+
171,
|
| 408 |
+
587,
|
| 409 |
+
266,
|
| 410 |
+
603
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "40 The design space we propose contains a number of atypical ideas for how to structure exploration. \n1 For this reason, we opted to keep the rest of our experimental setup very conventional, and include \n42 multiple comparable baselines, ablations and variations. \n143 Setup: R2D2 on Atari We conduct our investigations on a subset of games of the Atari Learning \n144 Environment [Bellemare et al., 2013], a common benchmark for the study of exploration. All \n145 experiments are conducted across 7 games (FROSTBITE, GRAVITAR, H.E.R.O., MONTEZUMA’S \n146 REVENGE, MS. PAC-MAN, PHOENIX, STAR GUNNER), the first 5 of which are classified as hard \n147 exploration games [Bellemare et al., 2016], using 3 seeds per game. For our agent, we use the R2D2 \n148 architecture [Kapturowski et al., 2019], which is a modern, distributed version of DQN [Mnih et al., \n149 2015] that employs a recurrent network to approximate its Q-value function. This is a common \n150 basis used in exploration studies, e.g., [Dabney et al., 2020, Badia et al., 2020b,a]. The only major \n151 modification to conventional R2D2 is its exploration mechanism, where instead we implement all the \n152 variants of mode-switching introduced in Section 2. Separately from the experience collected for \n153 learning, we run an evaluator process that assesses the performance of the current greedy policy. This \n154 is what we report in all our performance curves (see Appendix A for more details). \n155 Baselines There are a few simple baselines worth comparing to, namely the pure explore mode \n156 $\\boldsymbol { p } _ { \\mathcal { X } } = 1$ , Fig.1:A) and the pure exploit mode $p _ { \\mathscr { X } } = 0 .$ ), as well as the step-wise interleaved $\\varepsilon$ -greedy \n157 execution (Fig.1:C), where $p _ { \\mathcal { X } } = 0 . 0 1 = \\varepsilon$ (without additional episodic or intra-episodic structure). \n158 Given its wide adoption in well-tuned prior work, we expect the latter to perform well overall. \n159 The fourth baseline picks a mode for an entire episode at a time (Fig.1:B), with the probability of \n160 picking $\\mathcal { X }$ being adapted by a bandit meta-controller. We denote these as experiment-level-X, \n161 experiment-level-G, step-level-0.01 and episode-level- $^ *$ respectively. For each of these, \n162 we have a version with uniform $( \\mathcal { X } _ { U } )$ and intrinsic $( \\mathcal { X } _ { I } )$ explore mode. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
153,
|
| 419 |
+
618,
|
| 420 |
+
826,
|
| 421 |
+
660
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "",
|
| 428 |
+
"bbox": [
|
| 429 |
+
140,
|
| 430 |
+
674,
|
| 431 |
+
825,
|
| 432 |
+
840
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "",
|
| 439 |
+
"bbox": [
|
| 440 |
+
142,
|
| 441 |
+
856,
|
| 442 |
+
825,
|
| 443 |
+
911
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "image",
|
| 449 |
+
"img_path": "images/0ec10c7a43b0585750463f161deba6cba9e93ea6199ed2845db7df67e8dd8c6b.jpg",
|
| 450 |
+
"image_caption": [
|
| 451 |
+
"Figure 2: Illustrating the space of design decisions for intra-episodic exploration. "
|
| 452 |
+
],
|
| 453 |
+
"image_footnote": [],
|
| 454 |
+
"bbox": [
|
| 455 |
+
209,
|
| 456 |
+
79,
|
| 457 |
+
789,
|
| 458 |
+
179
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 4
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "",
|
| 465 |
+
"bbox": [
|
| 466 |
+
142,
|
| 467 |
+
218,
|
| 468 |
+
826,
|
| 469 |
+
273
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 4
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "63 3.1 Variants of intra-episodic exploration ",
|
| 476 |
+
"text_level": 1,
|
| 477 |
+
"bbox": [
|
| 478 |
+
156,
|
| 479 |
+
290,
|
| 480 |
+
473,
|
| 481 |
+
305
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 4
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "As discussed in Section 2, there are multiple dimensions along which two-mode intra-episodic exploration can vary. The concrete ones for our experiments are: ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
160,
|
| 490 |
+
315,
|
| 491 |
+
825,
|
| 492 |
+
344
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "• Explore mode: uniform random $\\mathcal { X } _ { U }$ , or RND intrinsic reward $\\mathcal { X } _ { I }$ (denoted XU and XI). • Explore duration $( n _ { \\mathcal { X } } )$ : this can be a fixed number of steps $( 1 , 1 0 , 1 0 0 )$ , or one of these is adaptively picked by a bandit (denoted by $^ *$ ), or the switching is symmetric between entering end exiting explore mode (denoted by $\\ c =$ ). • Trigger type: either blind or informed (based on value promise, see Section 2.4). • Exploit duration $( n g )$ : for blind triggers, the exploit duration can be parameterised by fixed number of steps (10, 100, 1000, 10000), indirectly defined by a probability of terminating $( 0 . 1 , 0 . 0 1 , 0 . 0 0 1 , 0 . 0 0 0 1 )$ , or adaptively picked by a bandit over these choices (denoted by $^ { \\mathtt { n * } }$ or $\\mathtt { p } ^ { * }$ , respectively). For informed triggers, the exploit duration is indirectly parameterised by a target rate in $( 0 . 1 , 0 . 0 1 , 0 . 0 0 1 , 0 . 0 0 0 1 )$ , or a bandit over them $\\left( \\mathtt { p } \\ast \\right)$ , which is in turn transformed into an adaptive switching threshold by homeostasis (Section 2.4). • Starting mode: $\\mathcal { G }$ greedy (default) or $\\mathcal { X }$ explore (denoted by G or X). ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
215,
|
| 501 |
+
356,
|
| 502 |
+
825,
|
| 503 |
+
546
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "178 We can concisely refer to a particular instance by a tuple that lists these choices. For example, \n179 XU-intra(100,informed, $\\mathtt { p } ^ { * } , \\mathtt { X } )$ denotes uniform random exploration $\\mathcal { X } _ { U }$ , with fixed 100-step \n180 explore periods, triggered by the value-promise signal at a bandit-determined rate, and starting in \n181 explore mode. See Figure 2 for an illustration. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
143,
|
| 512 |
+
555,
|
| 513 |
+
825,
|
| 514 |
+
611
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "3.2 Performance results ",
|
| 521 |
+
"text_level": 1,
|
| 522 |
+
"bbox": [
|
| 523 |
+
169,
|
| 524 |
+
628,
|
| 525 |
+
352,
|
| 526 |
+
642
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 4
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "We start by reporting overall performance results, to reassure the reader that our method is viable (and convince them to keep reading the more detailed and qualitative results in the following sections). Figure 3 shows performance across 7 Atari games according to two human-normalised aggregation metrics (mean and median), comparing one form of intra-episodic exploration to all the baselines, separately for each explore mode ( $\\mathcal { X } _ { U }$ and $\\mathcal { X } _ { I }$ ). The headline result is that intra-episodic exploration improves over both step-level and episode-level baselines (as well as the pure experiment-level modes that we would not expect to be very competitive). The full learning curves per game are found in the appendix, and show scores on hard exploration games like MONTEZUMA’S REVENGE or PHOENIX that are also competitive in absolute terms (at our compute budget of 1B frames). ",
|
| 533 |
+
"bbox": [
|
| 534 |
+
158,
|
| 535 |
+
654,
|
| 536 |
+
825,
|
| 537 |
+
779
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 4
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "192 Note that there is a subtle difference to the learning setups between $\\mathcal { X } _ { U }$ and $\\mathcal { X } _ { I }$ , as the latter requires \n193 training a separate head to estimate intrinsic reward values. This is present even in pure exploit mode, \n194 where it acts as an auxiliary task only [Jaderberg et al., 2016], hence the differences in pure greedy \n195 curves in Figure 3. For details, see Appendix A. ",
|
| 544 |
+
"bbox": [
|
| 545 |
+
142,
|
| 546 |
+
785,
|
| 547 |
+
825,
|
| 548 |
+
840
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 4
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "3.3 Diversity results ",
|
| 555 |
+
"text_level": 1,
|
| 556 |
+
"bbox": [
|
| 557 |
+
173,
|
| 558 |
+
858,
|
| 559 |
+
326,
|
| 560 |
+
872
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 4
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "197 In a study like ours, the emphasis is not on measuring raw performance, but rather on characterising \n198 the diversity of behaviours arising from the spectrum of proposed variants. A starting point is to \n199 return to Figure 1 (right), and assess how much of the previously untouched space is now filled \n200 by intra-episodic variants, and how the ‘when’ characteristics translate into performance. Figure 4 \n201 answers these questions, and raises some new ones. First off, the raw amount of exploration $p _ { \\mathcal { X } }$ is \n202 not a sufficient predictor of performance, implying that the temporal structure matters. It also shows \n203 substantial bandit adaptation at work: compare the exploration statistics at the start (squares) and \n204 end-points of training (crosses), and how these trajectories differ per game; a common pattern is \n205 that reducing $p _ { \\mathcal { X } }$ far below 0.5 is needed for high performance. Interestingly, these adaptations are \n206 similar between $\\mathcal { X } _ { U }$ and $\\mathcal { X } _ { I }$ , despite very different explore modes (and differing performance results). \n207 We would expect prolonged intrinsic exploration periods to be more useful than prolonged random \n208 ones, and indeed, comparing the high- $\\mathrm { . r m e d } _ { \\mathcal { X } }$ variant (purple) across $\\mathcal { X } _ { U }$ and $\\mathcal { X } _ { I }$ , it appears more ",
|
| 567 |
+
"bbox": [
|
| 568 |
+
147,
|
| 569 |
+
883,
|
| 570 |
+
825,
|
| 571 |
+
911
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 4
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "image",
|
| 577 |
+
"img_path": "images/2e3e37231674973ebcfbecf615bc11913d4ac4465daae0f9c09bf8fc8413fcf3.jpg",
|
| 578 |
+
"image_caption": [
|
| 579 |
+
"Figure 3: Human-normalized performance results aggregated over 7 Atari games and 3 seeds, comparing the four levels of exploration granularity. Left two: uniform explore mode $\\mathcal { X } _ { U }$ . Right two: RND intrinsic reward explore mode $\\mathcal { X } _ { I }$ . In each case, the baselines are pure modes $\\mathcal { X }$ and $\\mathcal { G }$ , step-level switching with $\\varepsilon$ -greedy, and episodic switching (with a bandit-adapted proportion). In each setting, intra-episodic exploration is on par or better than the baselines. "
|
| 580 |
+
],
|
| 581 |
+
"image_footnote": [],
|
| 582 |
+
"bbox": [
|
| 583 |
+
173,
|
| 584 |
+
77,
|
| 585 |
+
823,
|
| 586 |
+
222
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 5
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "image",
|
| 592 |
+
"img_path": "images/8f6e5d185b2080f29e74ac904d04b9a9f6735ca50f8ae6f064d2ba15008aedb0.jpg",
|
| 593 |
+
"image_caption": [
|
| 594 |
+
"Figure 4: Rows 1 and 3: Summary characteristics $p _ { \\mathcal { X } }$ and $\\operatorname { r m e d } _ { \\mathcal { X } }$ of induced exploration behaviour, for different variants of intra-episodic exploration (and an episodic baseline for comparison), on a subset of 4 Atari games. Bandit adaptation can change these statistics over time, hence square and cross markers show averages over first and last $1 0 \\%$ of training, respectively. Rows 2 and 4: Corresponding final scores (averaged over final $1 0 \\%$ of training). Error bars show the span between min and max performance across 3 seeds. Note how different variants cover different parts of characteristic space, and how the bandit adaptation shifts the statistics into different directions for different games. See main text for further discussion of these results and Appendix C for other games and variants. "
|
| 595 |
+
],
|
| 596 |
+
"image_footnote": [],
|
| 597 |
+
"bbox": [
|
| 598 |
+
171,
|
| 599 |
+
308,
|
| 600 |
+
826,
|
| 601 |
+
618
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 5
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "",
|
| 608 |
+
"bbox": [
|
| 609 |
+
140,
|
| 610 |
+
772,
|
| 611 |
+
825,
|
| 612 |
+
912
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 5
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "image",
|
| 618 |
+
"img_path": "images/2e7c30f208d9c226fb1e5e9eb9b24f286f74936c543f1b7382dbf958faf30b28.jpg",
|
| 619 |
+
"image_caption": [
|
| 620 |
+
"Figure 5: Left and center: Illustration of detailed temporal structure within individual episodes, on FROSTBITE (top) and GRAVITAR (bottom), contrasting two trigger mechanisms. Each subplot shows 15 randomly selected episodes (one per row) that share the same overall exploration amount $p _ { \\mathscr { X } } = 0 . 1$ . Each vertical bar (magenta) represents an exploration period of fixed length $n _ { \\mathscr { X } } = 1 0$ ; each blue chunk represents an exploitation period. Left: blind, step-based trigger leads to equally spaced exploration periods. Center: a trigger signal informed by value promise leads to very different within-episode patterns, with some parts being densely explored, and others remaining in exploit mode for very long. Right: the corresponding learning curves show a clear performance benefit for the informed trigger variant (orange) in this particular setting. Appendix C has similar plots for many more variants and games. "
|
| 621 |
+
],
|
| 622 |
+
"image_footnote": [],
|
| 623 |
+
"bbox": [
|
| 624 |
+
205,
|
| 625 |
+
75,
|
| 626 |
+
792,
|
| 627 |
+
381
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 6
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "image",
|
| 633 |
+
"img_path": "images/439eb6c39b354c86c38a420c9ee49d921703f16114f8271a6ea288b2d3c28870.jpg",
|
| 634 |
+
"image_caption": [
|
| 635 |
+
"Figure 6: Starting mode effect. Final mean episode return for two blind intra-episode experiments that differ only in start mode, greedy (blue) or explore (orange). Scores are normalised so that 1 is the maximum result across the two start modes. Either choice can reliably boost or harm performance, depending on the game. Left: uniform explore mode $\\mathcal { X } _ { U }$ . Right: intrinsic reward explore mode $\\mathcal { X } _ { I }$ . "
|
| 636 |
+
],
|
| 637 |
+
"image_footnote": [],
|
| 638 |
+
"bbox": [
|
| 639 |
+
179,
|
| 640 |
+
532,
|
| 641 |
+
818,
|
| 642 |
+
714
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 6
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "beneficial for the latter. Zooming in on specific games, a few results stand out: in $\\mathcal { X } _ { U }$ mode, the only variant that escapes the inherent local optimum of PHOENIX is the blind, doubly adaptive one (purple), with the bandits radically shifting the exploration statistics over the course of training. In contrast, the best results on MONTEZUMA’S REVENGE are produced by the symmetric trigger variant (blue), which is forced to retain a high $p _ { \\mathcal { X } }$ . Finally, FROSTBITE is the one game where an informed trigger (red) clearly outperforms its blind equivalent (purple). ",
|
| 649 |
+
"bbox": [
|
| 650 |
+
156,
|
| 651 |
+
794,
|
| 652 |
+
825,
|
| 653 |
+
877
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 6
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "215 These insights are still limited to summary statistics, so Figure 5 looks in more depth at the detailed \n216 temporal structure within episodes (as in Figure 1, left). Here the main comparison is between blind \n217 and informed triggers, illustrating that the characteristics of the fine-grained within-episode structure \n218 can differ massively, despite attaining the same high-level statistics $p _ { \\mathcal { X } }$ and ${ \\mathrm { m e d } } _ { \\mathcal { X } }$ . We can see quite \n219 a lot of variation in the trigger structure – the moments we enter exploration are not evenly spaced \n220 anymore. As a bonus, the less rigid structure of the informed trigger (and possibly the more carefully \n221 chosen switch points) end up producing better performance too. ",
|
| 660 |
+
"bbox": [
|
| 661 |
+
142,
|
| 662 |
+
883,
|
| 663 |
+
825,
|
| 664 |
+
911
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 6
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "image",
|
| 670 |
+
"img_path": "images/af30d1598c7b4e0b9f2642ac65952ee36cf9f32080b93083bfa4069313aec9ed.jpg",
|
| 671 |
+
"image_caption": [
|
| 672 |
+
"Figure 7: Left and center: Contrasting the behavioural characteristics between two forms of blind switching, step-based (left) and probabilistic (center), on the example of FROSTBITE. Each point is an actor episode, with colour indicating time in training (blue for early, red for late). Note the higher diversity of $p _ { \\mathcal { X } }$ when switching probabilistically. Right: Corresponding performance curves indicate that the probabilistic switching (red) has a performance benefit, possibly because it creates the opportunity for ‘lucky’ episodes with much less randomness in a game where random actions can easily kill the agent. For more games, please see the Appendix C. "
|
| 673 |
+
],
|
| 674 |
+
"image_footnote": [],
|
| 675 |
+
"bbox": [
|
| 676 |
+
202,
|
| 677 |
+
77,
|
| 678 |
+
794,
|
| 679 |
+
227
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 7
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "",
|
| 686 |
+
"bbox": [
|
| 687 |
+
140,
|
| 688 |
+
348,
|
| 689 |
+
825,
|
| 690 |
+
417
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 7
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "Figure 6 sheds light on a complementary dimension, differentiating the effects of starting in explore or exploit mode. In brief, each of these can be consistently beneficial in some games, and consistently harmful in others. Another observation here is the dynamics of the bandit adaptation: when starting in exploit mode, it exhibits a preference for long initial exploit periods in many games (up to 10000 steps), but that effect vanishes when starting in explore mode (see also Appendix C). More subtle effects arise from the choice of parameterisation of switching rates. Figure 7 shows a stark qualitative difference on how probabilistic switching differs from step-count based switching, with the former spanning a much wider diversity of outcomes, which improves performance. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
173,
|
| 699 |
+
424,
|
| 700 |
+
825,
|
| 701 |
+
535
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 7
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "3.4 Take-aways ",
|
| 708 |
+
"text_level": 1,
|
| 709 |
+
"bbox": [
|
| 710 |
+
168,
|
| 711 |
+
553,
|
| 712 |
+
294,
|
| 713 |
+
568
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 7
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "Summarising the empirical results in this section, two messages stand out. First, there seems to be a sweet spot in terms of temporal granularity, and intra-episodic exploration is the right step towards finding it. Second, the vastly increased design space of our proposed family of methods gives rise to a large diversity of behavioural characteristics; and this diversity is not superficial, it also translates to meaningful performance differences, with different effects in different games, which cannot be reduced to simplistic metrics, such as $p _ { \\mathcal { X } }$ . In addition, we provide some sensible rules-of-thumb for practitioners willing to join us on the journey of intra-episodic exploration. In general, it is useful to let a bandit figure out the precise settings, but it is worth curating its choices to at most a handful. Jointly using two bandits across factored dimensions is very adaptive, but can sometimes be harmful when they decrease the signal-to-noise ratio in each other’s learning signal. Finally, the choice of the uncertainty-based trigger should be informed by the switching modes (see Appendix B for details). ",
|
| 720 |
+
"bbox": [
|
| 721 |
+
173,
|
| 722 |
+
579,
|
| 723 |
+
825,
|
| 724 |
+
731
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 7
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "242 4 Discussion ",
|
| 731 |
+
"text_level": 1,
|
| 732 |
+
"bbox": [
|
| 733 |
+
150,
|
| 734 |
+
751,
|
| 735 |
+
292,
|
| 736 |
+
768
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 7
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "Time-based exploration control The emphasis of our paper has been on the potential benefits of heterogeneous temporal structure in mode-switching exploration. But there is another, more mundane potential advantage over monolithic approaches: it may be easier and more natural to tune hyper-parameters related to an explicit exploration budget (e.g., via $p _ { \\mathcal { X } }$ ) than to tune an intrinsic reward coefficient, especially if extrinsic reward scales change across tasks or across time, and if the non-stationarity of the intrinsic reward affects its overall scale. ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
173,
|
| 745 |
+
784,
|
| 746 |
+
823,
|
| 747 |
+
867
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 7
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "249 Diversity for diversity’s sake One role of a general-purpose exploration method is to allow an \n250 agent to get off the ground in a wide variety of domains. While this may clash with sample-efficient ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
148,
|
| 756 |
+
883,
|
| 757 |
+
823,
|
| 758 |
+
911
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 7
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "learning on specific domains, we believe that the former objective will come to dominate in the long 2 run. In this light, methods that exhibit more diverse behaviour are preferable for that reason alone, 3 because they are more likely to escape local optima or misaligned priors. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
156,
|
| 767 |
+
92,
|
| 768 |
+
823,
|
| 769 |
+
133
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 8
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Related work While not the most common approach to exploration in RL, we are aware of some notable work that has investigated non-trivial temporal structure. The $\\epsilon z$ -greedy algorithm [Dabney et al., 2020] is inspired by Levy flights in nature [Baronchelli and Radicchi, 2013] and initiates contiguous chunks of directed behaviour (‘flights’) with the length sampled from a heavy-tailed distribution. In contrast to our proposal, these flights act with a single constant action, instead of invoking an explore mode. [Campos et al., 2021] pursue a similar idea, but with flights along pre-trained coverage policies, while [Ecoffet et al., 2021] chain a ‘return-to-state’ policy to an explore mode. Maybe closest to our $\\mathcal { X } _ { I }$ setting is [Bagot et al., 2020], where periods of intrinsic reward pursuit are explicitly invoked by the agent. Exploration with gradual change instead of abrupt mode switches, appears generally at long time-scales, such as when pursuing intrinsic rewards [Schmidhuber, 2010, Oudeyer and Kaplan, 2009], but can also be effective at shorter time-scales e.g., Never-Give-Up [Badia et al., 2020b]. Related work on the question of which states to prefer for exploratory decisions [Tokic, 2010] tends to not consider starting prolonged exploratory periods. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
171,
|
| 778 |
+
148,
|
| 779 |
+
825,
|
| 780 |
+
328
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 8
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "267 Relation to options Ideas related to switching behaviours at intra-episodic time-scales are well \n268 known outside of the context of exploration, the best-known framework being options in hierarchical \n269 RL, where the goal is to chain together a sequence of sub-behaviours into a reward-maximising \n270 policy [Sutton et al., 1999, Mankowitz et al., 2016]; but some work has looked at using options for \n271 exploration too [Jinnai et al., 2019a, Bougie and Ichise, 2021]. In its full generality, the options \n272 framework is a substantially more ambitious endeavour than our proposal, as it requires learning a \n273 full state-dependent hierarchical policy that picks which option to start (and when), as well as jointly \n274 learning the options themselves. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
140,
|
| 789 |
+
342,
|
| 790 |
+
825,
|
| 791 |
+
453
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 8
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Limitations Our proposed approach inherits many of the challenges that are typical for exploration methods, such as sample efficiency or trading off risk. An aspect that is particular to the intra-episode switching case is the different nature of the off-policy-ness. The resulting effective policy can produce state distributions that differ substantially from those of either of the two base mode behaviours that are being interleaved. It can potentially visit parts of the state space that neither base policy would reach if followed from the beginning of the episode. While a boon for exploration, this might pose a challenge to learning, as it could require off-policy corrections that treat those states differently and do not only correct for differences in action space. We leave this as an intriguing consideration for future work; this paper does not use any non-trivial off-policy correction (see Appendix A). ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
161,
|
| 800 |
+
468,
|
| 801 |
+
825,
|
| 802 |
+
593
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 8
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Future work With the dimensions laid out in Section 2, it should be clear that this paper can but scratch the surface. We see numerous opportunities for future work, on some of which we already carried out initial investigations, see Appendix B. For starters, there is no inherent need to restrict the mechanism to just two modes: A richer form of exploration could switch between exploit, explore, novelty and mastery [Thomaz and Breazeal, 2008], or between many diverse forms of exploration (such as different levels of optimism [Derman et al., 2020, Moskovitz et al., 2021]). It is also conceivable to switch less abruptly; for example, if both exploit- and explore-mode behaviours are induced by a reward function, a Q-value-based agent with successor features [Barreto et al., 2017, Borsa et al., 2019] could interpolate between them to make switching more gradual [Barreto et al., 2019]. Triggers are another aspect that could be expanded or refined: there are different candidates for estimating uncertainty, such as ensemble discrepancy [Wiering and Van Hasselt, 2008, Buckman et al., 2018], amortised value errors [Flennerhag et al., 2020], or density models [Bellemare et al., 2016, Ostrovski et al., 2017]; also, triggers could be based on other signals that are not derived from uncertainty, such as salience [Downar et al., 2002], minimal coverage [Jinnai et al., 2019a,b], or empowerment [Klyubin et al., 2005, Gregor et al., 2016, Houthooft et al., 2016]. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
169,
|
| 811 |
+
608,
|
| 812 |
+
825,
|
| 813 |
+
815
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 8
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "299 Conclusion We have presented an initial study of intra-episodic exploration, centred on the scenario \n300 of switching between an explore and an exploit mode. We hope this has broadened the available \n301 forms of temporal structure in behaviour, leading to more diverse, adaptive and intentional forms of \n302 exploration, in turn enabling RL to scale to ever more complex domains. \n304 M. A. Addicott, J. M. Pearson, M. M. Sweitzer, D. L. Barack, and M. L. Platt. A Primer on Foraging \n305 and the Explore/Exploit Trade-Off for Psychiatry Research. Neuropsychopharmacology, 42(10): \n306 1931–1939, Sep 2017. \n307 A. P. Badia, B. Piot, S. Kapturowski, P. Sprechmann, A. Vitvitskyi, D. Guo, and C. Blundell. Agent57: \n308 Outperforming the Atari human benchmark, 2020a. \n309 A. P. Badia, P. Sprechmann, A. Vitvitskyi, D. Guo, B. Piot, S. Kapturowski, O. Tieleman, M. Arjovsky, \n310 A. Pritzel, A. Bolt, and C. Blundell. Never give up: Learning directed exploration strategies, \n311 2020b. \n312 L. Bagot, K. Mets, and S. Latré. Learning intrinsically motivated options to stimulate policy \n313 exploration, 2020. \n314 A. Baronchelli and F. Radicchi. Lévy flights in human behavior and cognition. Chaos, Solitons & \n315 Fractals, 56:101–105, 2013. \n316 A. Barreto, W. Dabney, R. Munos, J. J. Hunt, T. Schaul, H. P. van Hasselt, and D. Silver. Successor \n317 features for transfer in reinforcement learning. In Advances in neural information processing \n318 systems, pages 4055–4065, 2017. \n319 A. Barreto, D. Borsa, S. Hou, G. Comanici, E. Aygün, P. Hamel, D. Toyama, J. hunt, S. Mourad, \n320 D. Silver, and D. Precup. The option keyboard: Combining skills in reinforcement learning. In \n321 Advances in Neural Information Processing Systems 32, pages 13052–13062, 2019. \n322 M. G. Bellemare, Y. Naddaf, J. Veness, and M. Bowling. The arcade learning environment: An \n323 evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, \n324 2013. \n325 M. G. Bellemare, S. Srinivasan, G. Ostrovski, T. Schaul, D. Saxton, and R. Munos. Unifying \n326 count-based exploration and intrinsic motivation. In Neural Information Processing Systems, 2016. \n327 D. Borsa, A. Barreto, J. Quan, D. J. Mankowitz, H. van Hasselt, R. Munos, D. Silver, and T. Schaul. \n328 Universal successor features approximators. In International Conference on Learning Representa \n329 tions, 2019. \n330 N. Bougie and R. Ichise. Fast and slow curiosity for high-level exploration in reinforcement learning. \n331 Applied Intelligence, 51(2):1086–1107, 2021. \n332 J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, \n333 J. VanderPlas, S. Wanderman-Milne, and Q. Zhang. JAX: composable transformations of \n334 Python+NumPy programs, 2018. URL http://github.com/google/jax. \n335 J. Buckman, D. Hafner, G. Tucker, E. Brevdo, and H. Lee. Sample-efficient reinforcement learning \n336 with stochastic ensemble value expansion. arXiv preprint arXiv:1807.01675, 2018. \n337 D. Budden, M. Hessel, I. Kemaev, S. Spencer, and F. Viola. Chex: Testing made fun, in jax!, 2020a. \n338 URL http://github.com/deepmind/chex. \n339 D. Budden, M. Hessel, J. Quan, S. Kapturowski, K. Baumli, S. Bhupatiraju, A. Guy, and M. King. \n340 RLax: Reinforcement Learning in JAX, 2020b. URL http://github.com/deepmind/rlax. \n341 Y. Burda, H. Edwards, A. J. Storkey, and O. Klimov. Exploration by random network distillation. \n342 CoRR, abs/1810.12894, 2018. \n343 V. Campos, P. Sprechmann, S. Hansen, A. Barreto, S. Kapturowski, A. Vitvitskyi, A. P. Badia, \n344 and C. Blundell. Coverage as a principle for discovering transferable behavior in reinforcement \n345 learning. arXiv preprint arXiv:2102.13515, 2021. \n346 O. Cappé, A. Garivier, O.-A. Maillard, R. Munos, G. Stoltz, et al. Kullback–leibler upper confidence \n347 bounds for optimal sequential allocation. Annals of Statistics, 41(3):1516–1541, 2013. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
142,
|
| 822 |
+
829,
|
| 823 |
+
825,
|
| 824 |
+
886
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 8
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "",
|
| 831 |
+
"bbox": [
|
| 832 |
+
137,
|
| 833 |
+
94,
|
| 834 |
+
828,
|
| 835 |
+
916
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 9
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "348 A. Cassirer, G. Barth-Maron, T. Sottiaux, M. Kroiss, and E. Brevdo. Reverb: An efficient data storage and transport system for ml research, 2020. URL https://github.com/deepmind/reverb. \n350 F. Cathomas, F. Klaus, K. Guetter, H.-K. Chung, A. Raja Beharelle, T. R. Spiller, R. Schlegel, E. Seifritz, M. N. Hartmann-Riemer, P. N. Tobler, and S. Kaiser. Increased random exploration in schizophrenia is associated with inflammation. npj Schizophrenia, 7(1):6, Feb 2021. \n353 K. Chakroun, D. Mathar, A. Wiehler, F. Ganzer, and J. Peters. Dopaminergic modulation of the exploration/exploitation trade-off in human decision-making. Elife, 9, 06 2020. \n355 D. Churchill and M. Buro. Build order optimization in starcraft. In Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, volume 6(1), 2011. J. D. Cohen, S. M. McClure, and A. J. Yu. Should I stay or should I go? How the human brain manages the trade-off between exploitation and exploration. Philosophical Transactions of the Royal Society B: Biological Sciences, 362(1481):933–942, 2007. \n360 V. D. Costa, A. R. Mitz, and B. B. Averbeck. Subcortical substrates of explore-exploit decisions in primates. Neuron, 103(3):533–545.e5, Aug. 2019. \n362 J. Cremer, T. Honda, Y. Tang, J. Wong-Ng, M. Vergassola, and T. Hwa. Chemotaxis as a navigation strategy to boost range expansion. Nature, 575(7784):658–663, 11 2019. \n364 W. Dabney, G. Ostrovski, and A. Barreto. Temporally-extended $\\epsilon$ -greedy exploration, 2020. \n365 E. Derman, D. Mankowitz, T. Mann, and S. Mannor. A bayesian approach to robust reinforcement learning. In Uncertainty in Artificial Intelligence, pages 648–658. PMLR, 2020. \n367 J. Downar, A. P. Crawley, D. J. Mikulis, and K. D. Davis. A cortical network sensitive to stimulus salience in a neutral behavioral context across multiple sensory modalities. Journal of neurophysiology, 87(1):615–620, 2002. \n370 R. B. Ebitz, B. J. Sleezer, H. P. Jedema, C. W. Bradberry, and B. Y. Hayden. Tonic exploration governs both flexibility and lapses. PLOS Computational Biology, 15(11):e1007475, Nov. 2019. \n372 A. Ecoffet, J. Huizinga, J. Lehman, K. O. Stanley, and J. Clune. Go-explore: a new approach for hard-exploration problems, 2021. \n374 S. Flennerhag, J. X. Wang, P. Sprechmann, F. Visin, A. Galashov, S. Kapturowski, D. L. Borsa, N. Heess, A. Barreto, and R. Pascanu. Temporal difference uncertainties as a signal for exploration. arXiv preprint arXiv:2010.02255, 2020. \n377 S. J. Gershman. Deconstructing the human algorithms for exploration. Cognition, 173:34–42, 2018. ISSN 0010-0277. \n379 S. J. Gershman and B. G. Tzovaras. Dopaminergic genes are associated with both directed and random exploration. bioRxiv, 2018. \n381 K. Gregor, D. J. Rezende, and D. Wierstra. Variational intrinsic control. arXiv preprint arXiv:1611.07507, 2016. \n383 T. Hennigan, T. Cai, T. Norman, and I. Babuschkin. Haiku: Sonnet for JAX, 2020. URL http: //github.com/deepmind/dm-haiku. \n385 M. Hessel, D. Budden, F. Viola, M. Rosca, E. Sezener, and T. Hennigan. Optax: Composable gradient transformation and optimisation, in JAX!, 2020. URL http://github.com/deepmind/optax. T. T. Hills, P. M. Todd, D. Lazer, A. D. Redish, and I. D. Couzin. Exploration versus exploitation in space, mind, and society. Trends Cogn Sci, 19(1):46–54, Jan 2015. \n389 S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. \n391 D. Horgan, J. Quan, D. Budden, G. Barth-Maron, M. Hessel, H. Van Hasselt, and D. Silver. Distributed prioritized experience replay. arXiv preprint arXiv:1803.00933, 2018. \n393 R. Houthooft, X. Chen, Y. Duan, J. Schulman, F. De Turck, and P. Abbeel. Vime: Variational information maximizing exploration. arXiv preprint arXiv:1605.09674, 2016. \n395 M. Jaderberg, V. Mnih, W. M. Czarnecki, T. Schaul, J. Z. Leibo, D. Silver, and K. Kavukcuoglu. Reinforcement learning with unsupervised auxiliary tasks. arXiv preprint arXiv:1611.05397, 2016. T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(4), 2010. \n399 Y. Jinnai, J. W. Park, D. Abel, and G. Konidaris. Discovering options for exploration by minimizing cover time. In International Conference on Machine Learning, pages 3130–3139. PMLR, 2019a. Y. Jinnai, J. W. Park, M. C. Machado, and G. Konidaris. Exploration in reinforcement learning with deep covering options. In International Conference on Learning Representations, 2019b. \n403 S. Kapturowski, G. Ostrovski, W. Dabney, J. Quan, and R. Munos. Recurrent experience replay in distributed reinforcement learning. In International Conference on Learning Representations, 2019. \n406 J. M. Kembro, M. Lihoreau, J. Garriga, E. P. Raposo, and F. Bartumeus. Bumblebees learn foraging routes through exploitation-exploration cycles. J R Soc Interface, 16(156):20190103, 07 2019. \n408 D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \n410 A. S. Klyubin, D. Polani, and C. L. Nehaniv. Empowerment: A universal agent-centric measure of control. In 2005 IEEE Congress on Evolutionary Computation, volume 1, pages 128–135. IEEE, 2005. \n413 T. Lattimore and C. Szepesvári. Bandit algorithms. Cambridge University Press, 2020. \n414 C. Linke, N. M. Ady, M. White, T. Degris, and A. White. Adapting behaviour via intrinsic reward: A survey and empirical study, 2019. \n416 M. C. Machado, M. G. Bellemare, E. Talvitie, J. Veness, M. Hausknecht, and M. Bowling. Revisiting the arcade learning environment: Evaluation protocols and open problems for general agents. Journal of Artificial Intelligence Research, 61:523–562, 2018. \n419 D. J. Mankowitz, T. A. Mann, and S. Mannor. Adaptive skills adaptive partitions (ASAP). In Neural Information Processing Systems, 2016. V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, S. Petersen, C. Beattie, A. Sadik, I. Antonoglou, H. King, D. Kumaran, D. Wierstra, S. Legg, and D. Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. \n425 T. Moskovitz, J. Parker-Holder, A. Pacchiano, and M. Arbel. Deep reinforcement learning with dynamic optimism. arXiv preprint arXiv:2102.03765, 2021. \n427 G. Ostrovski, M. G. Bellemare, A. van den Oord, and R. Munos. Count-based exploration with neural density models. CoRR, abs/1703.01310, 2017. \n429 P.-Y. Oudeyer and F. Kaplan. What is intrinsic motivation? a typology of computational approaches. Frontiers in neurorobotics, 1:6, 2009. T. G. Power. Play and exploration in children and animals. Psychology Press, 1999. \n432 T. Schaul, J. Quan, I. Antonoglou, and D. Silver. Prioritized experience replay. In International Conference on Learning Representations, Puerto Rico, 2016. \n434 T. Schaul, D. Borsa, D. Ding, D. Szepesvari, G. Ostrovski, W. Dabney, and S. Osindero. Adapting behaviour for learning progress, 2019. \n436 T. Schaul, G. Ostrovski, I. Kemaev, and D. Borsa. Return-based scaling: Yet another normalisation trick for deep RL. arXiv preprint arXiv:2105.05347, 2021. \n8 J. Schmidhuber. Curious model-building control systems. In Proc. international joint conference on neural networks, pages 1458–1463, 1991. \n0 J. Schmidhuber. Formal theory of creativity, fun, and intrinsic motivation (1990–2010). IEEE Transactions on Autonomous Mental Development, 2(3):230–247, 2010. E. Schulz, R. Bhui, B. C. Love, B. Brier, M. T. Todd, and S. J. Gershman. Structured, uncertaintydriven exploration in real-world consumer choice. Proceedings of the National Academy of Sciences, 116(28):13903–13908, June 2019. R. S. Sutton and A. G. Barto. Reinforcement learning: An introduction. MIT press, 2018. \n6 R. S. Sutton, D. Precup, and S. Singh. Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181–211, 1999. \n8 A. L. Thomaz and C. Breazeal. Experiments in socially guided exploration: Lessons learned in building robots that learn with and without human teachers. Connection Science, 20(2-3):91–110, 2008. S. B. Thrun. Efficient exploration in reinforcement learning, 1992. M. Tokic. Adaptive $\\varepsilon$ -greedy exploration in reinforcement learning based on value differences. In Annual Conference on Artificial Intelligence, pages 203–210. Springer, 2010. G. G. Turrigiano and S. B. Nelson. Homeostatic plasticity in the developing nervous system. Nature reviews neuroscience, 5(2):97–107, 2004. \n6 J. A. Waltz, R. C. Wilson, M. A. Albrecht, M. J. Frank, and J. M. Gold. Differential effects of psychotic illness on directed and random exploration. Computational Psychiatry, 4(0):18, Aug. 2020. Z. Wang, T. Schaul, M. Hessel, H. Hasselt, M. Lanctot, and N. Freitas. Dueling network architectures for deep reinforcement learning. In M. F. Balcan and K. Q. Weinberger, editors, Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 1995–2003, New York, New York, USA, 20–22 Jun 2016. PMLR. M. A. Wiering and H. Van Hasselt. Ensemble algorithms in reinforcement learning. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 38(4):930–936, 2008. \n5 J. M. Wolfe, K. R. Cave, and S. L. Franzel. Guided search: an alternative to the feature integration model for visual search. J Exp Psychol Hum Percept Perform, 15(3):419–433, 1989. \n67 D. Zha, W. Ma, L. Yuan, X. Hu, and J. Liu. Rank the episodes: A simple approach for exploration in procedurally-generated environments. In International Conference on Learning Representations, 2021. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
143,
|
| 844 |
+
80,
|
| 845 |
+
828,
|
| 846 |
+
922
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 10
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "",
|
| 853 |
+
"bbox": [
|
| 854 |
+
147,
|
| 855 |
+
80,
|
| 856 |
+
830,
|
| 857 |
+
919
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 11
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "",
|
| 864 |
+
"bbox": [
|
| 865 |
+
155,
|
| 866 |
+
83,
|
| 867 |
+
828,
|
| 868 |
+
670
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 12
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "1. For all authors... ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
214,
|
| 877 |
+
116,
|
| 878 |
+
339,
|
| 879 |
+
131
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 13
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Section 4 \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
238,
|
| 888 |
+
135,
|
| 889 |
+
825,
|
| 890 |
+
227
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 13
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "2. If you are including theoretical results... ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
214,
|
| 899 |
+
231,
|
| 900 |
+
493,
|
| 901 |
+
244
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 13
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
236,
|
| 910 |
+
248,
|
| 911 |
+
738,
|
| 912 |
+
280
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 13
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "3. If you ran experiments... ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
212,
|
| 921 |
+
285,
|
| 922 |
+
393,
|
| 923 |
+
299
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 13
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] We did not include code, but described the specifics of our methods in sufficient detail to reproduce results. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix A. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Appendix A. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix A. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
238,
|
| 932 |
+
303,
|
| 933 |
+
825,
|
| 934 |
+
449
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 13
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
217,
|
| 943 |
+
453,
|
| 944 |
+
823,
|
| 945 |
+
468
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 13
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We cite all opensource libraries used, see Appendix A. \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
238,
|
| 954 |
+
472,
|
| 955 |
+
825,
|
| 956 |
+
607
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 13
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
212,
|
| 965 |
+
611,
|
| 966 |
+
705,
|
| 967 |
+
626
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 13
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
238,
|
| 976 |
+
630,
|
| 977 |
+
825,
|
| 978 |
+
719
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 13
|
| 981 |
+
}
|
| 982 |
+
]
|
parse/train/jlgCDIrAv0_/jlgCDIrAv0__middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/jlgCDIrAv0_/jlgCDIrAv0__model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJxcBpNKPr/rJxcBpNKPr.md
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OVA-INN: CONTINUAL LEARNING WITH INVERTIBLE NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In the field of Continual Learning, the objective is to learn several tasks one after the other without access to the data from previous tasks. Several solutions have been proposed to tackle this problem but they usually assume that the user knows which of the tasks to perform at test time on a particular sample, or rely on small samples from previous data and most of them suffer of a substantial drop in accuracy when updated with batches of only one class at a time. In this article, we propose a new method, OvA-INN, which is able to learn one class at a time and without storing any of the previous data. To achieve this, for each class, we train a specific Invertible Neural Network to extract the relevant features to compute the likelihood on this class. At test time, we can predict the class of a sample by identifying the network which predicted the highest likelihood. With this method, we show that we can take advantage of pretrained models by stacking an Invertible Network on top of a features extractor. This way, we are able to outperform stateof-the-art approaches that rely on features learning for the Continual Learning of MNIST and CIFAR-100 datasets. In our experiments, we reach $72 \%$ accuracy on CIFAR-100 after training our model one class at a time.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
A typical Deep Learning workflow consists in gathering data, training a model on this data and finally deploying the model in the real world (Goodfellow et al., 2016). If one would need to update the model with new data, it would require to merge the old and new data and process a training from scratch on this new dataset. Nevertheless, there are circumstances where this method may not apply. For example, it may not be possible to store the old data because of privacy issues (health records, sensible data) or memory limitations (embedded systems, very large datasets). In order to address those limitations, recent works propose a variety of approaches in a setting called Continual Learning (Parisi et al., 2018).
|
| 12 |
+
|
| 13 |
+
In Continual Learning, we aim to learn the parameters $w$ of a model on a sequence of datasets $\mathcal { D } _ { i } = \{ ( x _ { i } ^ { j } , y _ { i } ^ { j } ) \} _ { j = 1 } ^ { n _ { i } }$ with the inputs $x _ { i } ^ { j } \in \mathcal { X } ^ { i }$ and the labels $y _ { i } ^ { j } \in \mathcal { V } ^ { i }$ , to predict $p ( y ^ { * } | w , x ^ { * } )$ for an unseen pair $( x ^ { * } , y ^ { * } )$ . The training has to be done on each dataset, one after the other, without the possibility to reuse previous datasets. The performance of a Continual Learning algorithm can then be measured with two protocols : multi-head or single-head. In the multi-head scenario, the task identifier $i$ is known at test time. For evaluating performances on task $i$ , the set of all possible labels is then $\mathcal { V } = \mathcal { V } ^ { i }$ . Whilst in the single-head scenario, the task identifier is unknown, in that case we have $\mathcal { V } = \cup _ { i = 1 } ^ { N } \mathcal { V } ^ { i }$ with $N$ the number of tasks learned so far. For example, let us say that the goal is to learn MNIST sequentially with two batches: using only the data from the first five classes and then only the data from the remaining five other classes. In multi-head learning, one asks at test time to be able to recognize samples of 0-4 among the classes 0-4 and samples of 5-9 among classes 5-9. On the other hand, in single-head learning, one can not assume from which batch a sample is coming from, hence the need to be able to recognize any samples of 0-9 among classes 0-9. Although the former one has received the most attention from researchers, the last one fits better to the desiderata of a Continual Learning system as expressed in Farquhar & Gal (2018) and (van de Ven & Tolias, 2019). The single-head scenario is also notoriously harder than its multi-head counterpart (Chaudhry et al., 2018) and is the focus of the present work.
|
| 14 |
+
|
| 15 |
+
Updating the parameters with data from a new dataset exposes the model to drastically deteriorate its performance on previous data, a phenomenon known as catastrophic forgetting (McCloskey & Cohen, 1989). To alleviate this problem, researchers have proposed a variety of approaches such as storing a few samples from previous datasets (Rebuffi et al., 2017), adding distillation regularization (Li & Hoiem, 2018), updating the parameters according to their usefulness on previous datasets (Kirkpatrick et al., 2017), using a generative model to produce samples from previous datasets (Kemker & Kanan, 2017). Despite those efforts toward a more realistic setting of Continual Learning, one can notice that, most of the time, results are proposed in the case of a sequence of batches of multiple classes. This scenario often ends up with better accuracy (because the learning procedure highly benefits of the diversity of classes to find the best tuning of parameters) but it does not illustrate the behavior of those methods in the worst case scenario. In fact, Continual Learning algorithms should be robust in the size of the batch of classes.
|
| 16 |
+
|
| 17 |
+
In this work, we propose to implement a method specially designed to handle the case where each task consists of only one class. It will therefore be evaluated in the single-head scenario. Our approach, named One-versus-All Invertible Neural Networks (OvA-INN), is based on an invertible neural network architecture proposed by Dinh et al. (2014). We use it in a One-versus-All strategy : each network is trained to make a prediction of a class and the most confident one on a sample is used to identify the class of the sample. In contrast to most other methods, the training phase of each class can be independently executed from one another.
|
| 18 |
+
|
| 19 |
+
The contributions of our work are : (i) a new approach for Continual Learning with one class per batch; (ii) a neural architecture based on Invertible Networks that does not require to store any of the previous data; (iii) state-of-the-art results on several tasks of Continual Learning for Computer Vision (CIFAR-100, MNIST) in this setting.
|
| 20 |
+
|
| 21 |
+
We start by reviewing the closest methods to our approach in Section 2, then explain our method in Section 3, analyse its performances in Section 4 and identify limitations and possible extensions in Section 5.
|
| 22 |
+
|
| 23 |
+
# 2 RELATED WORK
|
| 24 |
+
|
| 25 |
+
Generative models Inspired by biological mechanisms such as the hippocampal system that rapidly encodes recent experiences and the memory of the neocortex that is consolidated during sleep phases, a natural approach is to produce samples of previous data that can be added to the new data to learn a new task. FearNet (Kemker & Kanan, 2017) relies on an architecture based on an autoencoder, whereas Deep Generative Replay (Shin et al., 2017) and Parameter Generation and Model Adaptation (Hu et al., 2018) propose to use a generative adversarial network. Those methods present good results but require complex models to be able to generate reliable data. Furthermore, it is difficult to assess the relevance of the generated data to conduct subsequent training iterations.
|
| 26 |
+
|
| 27 |
+
Coreset-based models These approaches alleviate the constraint on the availability of data by allowing the storage of a few samples from previous data (which are called coreset). iCaRL (Rebuffi et al., 2017) and End-to-end IL (Castro et al., 2018) store 2000 samples from previous batches and rely on respectively a distillation loss and a mixture of cross-entropy and distillation loss to alleviate forgetting. The authors of SupportNet (Li et al., 2018) have also proposed a strategy to select relevant samples for the coreset. Gradient Episodic Memory (Lopez-Paz et al., 2017) ensures that gradients computed on new tasks do not interfere with the loss of previous tasks. Those approaches give the best results for single-head learning. But, similarly to generated data, it is not clear which data may be useful to conduct further training iterations. In this paper, we are challenging the need of the coreset for single-head learning.
|
| 28 |
+
|
| 29 |
+
Distance-based models These methods propose to embed the data in a space which can be used to identify the class of a sample by computing a distance between the embedding of the sample and a reference for each class. Among the most popular, we can cite Matching Networks (Vinyals et al., 2016) and Prototypical Networks (Snell et al., 2017), but these methods have been mostly applied to few-shot learning scenarios rather than continual.
|
| 30 |
+
|
| 31 |
+
Regularization-based approaches These approaches present an attempt to mitigate the effect of catastrophic forgetting by imposing some constraints on the loss function when training subsequent classes. Elastic Weight Consolidation (Kirkpatrick et al., 2017), Synaptic Intelligence (Zenke et al., 2017) and Memory Aware Synapses (Aljundi et al., 2018) all seek to prevent the update of weights that were the most useful to discriminate between previous classes. Hence, it is possible to constrain the learning of a new task in such a way that the most relevant weights for the previous tasks are less susceptible to be updated. Learning without forgetting (Li & Hoiem, 2018) proposes to use knowledge distillation to preserve previous performances. The network is divided in two parts : the shared weights and the dedicated weights for each task. When learning a new task A, the data of A get assigned “soft” labels by computing the output by the network with the dedicated weight for each previous task. Then the network is trained with the loss of task A and is also constrained to reproduce the recorded output for each other tasks. In Rannen et al. (2017), the authors propose to use an autoencoder to reconstruct the extracted features for each task. When learning a new task, the features extractor is adapted but has to make sure that the autoencoder of the other tasks are still able to reconstruct the extracted features from the current samples. While these methods obtain good results for learning one new task, they become limited when it comes to learn several new tasks, especially in the one class per batch setting.
|
| 32 |
+
|
| 33 |
+
Expandable models In the case of the multi-head setting, it has been proposed to use the previously learned layers and complete them with new layers trained on a new task. This strategy is presented in Progressive Networks (Rusu et al., 2016). In order to reduce the growth in memory caused by the new layers, the authors of Dynamically Expandable Networks (Yoon et al., 2018) proposed an hybrid method which retrains some of the previous weights and add new ones when necessary. Although these approaches work very well in the case of multi-head learning, they can not be adapted to single-head and are therefore not included in benchmarks with OvA-INN.
|
| 34 |
+
|
| 35 |
+
# 3 CLASS-BY-CLASS CONTINUAL LEARNING WITH INVERTIBLE NETWORKS
|
| 36 |
+
|
| 37 |
+
# 3.1 MOTIVATIONS AND CHALLENGE
|
| 38 |
+
|
| 39 |
+
We investigate the problem of training several datasets in a sequential fashion with batches of only one class at a time. Most approaches of the state-of-the-art rely on updating a features extractor when data from a new class is available. But this strategy is unreliable in the special case we are interested in, namely batches of data from only one class. With few or no sample of negative data, it is very inefficient to update the weights of a network because the setting of deep learning normally involves vast amounts of data to be able to learn to extract valuable features. Without enough negative samples, the training is prone to overfit the new class. Recent works have proposed to rely on generative models to overcome this lack of data by generating samples of old classes. Nevertheless, updating a network with sampled data is not as efficient as with real data and, on the long run, the generative quality of early classes suffer from the multiple updates.
|
| 40 |
+
|
| 41 |
+
# 3.2 OUT-OF-DISTRIBUTION DETECTION FOR CONTINUAL LEARNING
|
| 42 |
+
|
| 43 |
+
Our approach consists in interpreting a Continual Learning problem as several out-of-distribution (OOD) detection problems. OOD detection has already been studied for neural networks and can be formulated as a binary classification problem which consists in predicting if an input $x$ was sampled from the same distribution as the training data or from a different distribution (Lee et al., 2017; Liang et al., 2017). Hence, for each class, we can train a network to predict if an input $x$ is likely to have been sampled from the distribution of this class. The class with the highest confidence can be used as the prediction of the class of $x$ . This training procedure is particularly suitable for Continual Learning since the training of each network does not require any negative sample.
|
| 44 |
+
|
| 45 |
+
Using the same protocol as NICE (Dinh et al., 2014), for a class $i$ , it is possible to train a neural network $f _ { i }$ to fit a prior distribution $p$ and compute the exact log-likelihood $l _ { i }$ on a sample $x$ :
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
l _ { i } ( x ) = \log ( p ( f _ { i } ( x ) )
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
To obtain the formulation of log-likelihood as expressed in Equation 1, the network $f _ { i }$ has to respect some constraints discussed in Section 3.3. Keeping the same hypothesis as NICE, we consider the
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
Figure 1: Forward pass in an invertible block. $x$ is split in $x _ { 0 : n / 2 }$ and $x _ { n / 2 : n }$ . $f _ { 1 }$ and $f _ { 2 }$ can be any type of Neural Networks as long as the dimension of their output dimension is the same as their input dimension. In our experiments, we stack two of these blocks one after the other and use fully-connected feedforward layers for $f _ { 1 }$ and $f _ { 2 }$ .
|
| 55 |
+
|
| 56 |
+
case where $p$ is a distribution with independent components $p _ { d }$
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
p ( f _ { i } ( x ) ) = \prod _ { d } p _ { d } ( f _ { i , d } ( x ) )
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
In our experiments, we considered $p _ { d }$ to be standard normal distributions. Although, it is possible to learn the parameters of the distributions, we found experimentally that doing so decreases the results. Under these design choices, the computation of the log-likelihood becomes :
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
l _ { i } ( x ) = \sum _ { d } \log ( p _ { d } ( f _ { i , d } ( x ) ) = - \sum _ { d } \frac { 1 } { 2 } f _ { i , d } ( x ) ^ { 2 } + \sum _ { d } \log \left( \frac { 1 } { \sqrt { 2 \pi } } \right) = - \frac { 1 } { 2 } \| f _ { i } ( x ) \| _ { 2 } ^ { 2 } + \beta
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
where $\beta = - n \log \left( { \sqrt { 2 \pi } } \right)$ is a constant term.
|
| 69 |
+
|
| 70 |
+
Hence, identifying the network with the highest log-likelihood is equivalent to find the network with the smallest output norm.
|
| 71 |
+
|
| 72 |
+
# 3.3 INVERTIBLE NEURAL NETWORKS
|
| 73 |
+
|
| 74 |
+
The neural network architecture proposed by NICE is designed to operate a change of variables between two density functions. This assumes that the network is invertible and respect some constraints to make it efficiently computable.
|
| 75 |
+
|
| 76 |
+
An invertible block (see Figure 1) consists in splitting the input $x$ into two subvectors $x _ { 1 }$ and $x _ { 2 }$ of equal size; then successively applying two (non necessarily invertible) networks $f _ { 1 }$ and $f _ { 2 }$ following the equation :
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\left\{ \begin{array} { l l } { y _ { 1 } = f _ { 1 } ( x _ { 2 } ) + x _ { 1 } } \\ { y _ { 2 } = f _ { 2 } ( y _ { 1 } ) + x _ { 2 } , } \end{array} \right.
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
and finally, concatenate $y _ { 1 }$ and $y _ { 2 }$ . The inverse operation can be computed with :
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\left\{ \begin{array} { l l } { x _ { 2 } = y _ { 2 } - f _ { 2 } ( y _ { 1 } ) } \\ { x _ { 1 } = y _ { 1 } - f _ { 1 } ( x _ { 2 } ) . } \end{array} \right.
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
These invertible equations illustrate how Invertible Networks operate a bijection between their input and their output.
|
| 89 |
+
|
| 90 |
+
# 3.4 CONTINUAL LEARNING SETTING
|
| 91 |
+
|
| 92 |
+
We propose to specialize each Invertible Network to a specific class by training them to output a vector with small norm when presented with data samples from their class. Given a dataset $\mathcal { X } _ { i }$ of class $i$ and an Invertible Network $f _ { i }$ , our objective is to minimize the loss $\mathcal { L }$ :
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\mathcal { L } ( \mathcal { X } _ { i } ) = \frac { 1 } { \vert \mathcal { X } _ { i } \vert } \sum _ { x \in \mathcal { X } _ { i } } \Vert f _ { i } ( x ) \Vert _ { 2 } ^ { 2 }
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
Once the training has converged, the weights of this network won’t be updated when new classes will be added. At inference time, after learning $t$ classes, the predicted class $y ^ { * }$ for a sample $x$ is obtained by running each network and identifying the one with the smallest output :
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\boldsymbol { y } ^ { * } = \underset { \boldsymbol { y } = 1 , \ldots t } { \arg \operatorname* { m i n } } \| \boldsymbol { f } _ { \boldsymbol { y } } ( \boldsymbol { x } ) \| _ { 2 } ^ { 2 }
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
As it is common practice in image processing, one can also use a preprocessing step by applying a fixed pretrained features extractor beforehand.
|
| 105 |
+
|
| 106 |
+
# 4 EXPERIMENTAL RESULTS
|
| 107 |
+
|
| 108 |
+
We compare our method against several state-of-the-art baselines for single-head learning on MNIST and CIFAR-100 datasets.
|
| 109 |
+
|
| 110 |
+
# 4.1 IMPLEMENTATION DETAILS
|
| 111 |
+
|
| 112 |
+
Topology of OvA-INN Due to the bijective nature of Invertible Networks, their output size is the same as their input size, hence the only way to change their size is by changing the depth or by compressing the parameters of the intermediate networks $f _ { 1 }$ and $f _ { 2 }$ . In our experiments, these networks are fully connected layers. To reduce memory footprint, we replace the square matrix of parameters $W$ of size $n \times n$ by a product of matrices $A B$ of sizes $n \times m$ and $m \times n$ (with a compressing factor for the first and second block $m = 1 6$ for MNIST and $m = 3 2$ for CIFAR-100). More details on the memory cost can be found in Appendix A.
|
| 113 |
+
|
| 114 |
+
Regularization When performing learning one class at a time, the amount of training data can be highly reduced: only 500 training samples per class for CIFAR-100. To avoid overfitting the training set, we found that adding a weight decay regularization could increase the validation accuracy. More details on the hyperparameters choices can be found in Appendix B.
|
| 115 |
+
|
| 116 |
+
Rescaling As ResNet has been trained on images of size $2 2 4 \times 2 2 4$ , we rescale CIFAR-100 images to match the size of images from Imagenet.
|
| 117 |
+
|
| 118 |
+
# 4.2 EVALUATION ON MNIST
|
| 119 |
+
|
| 120 |
+
We start by considering the MNIST dataset (LeCun et al., 1998), as it is a common benchmark that remains challenging in the case of single-head Continual Learning.
|
| 121 |
+
|
| 122 |
+
# Baselines
|
| 123 |
+
|
| 124 |
+
Generative models: - Parameter Generation and Model Adaptation (PGMA) (Hu et al., 2018) - Deep Generative Replay (DGR) (Shin et al., 2017)
|
| 125 |
+
|
| 126 |
+
Coreset-based models: - iCaRL (Rebuffi et al., 2017) - SupportNet (Li et al., 2018)
|
| 127 |
+
|
| 128 |
+
For Parameter Generation and Model Adaptation (PGMA) (Hu et al., 2018) and Deep Generative Replay (DGR) (Shin et al., 2017), we report the results from the original papers; whereas we use the provided code of SupportNet to compute the results for iCaRL and SupportNet with the conventional architecture of two layers of convolutions with poolings and a fully connected last layer. We have also set the coreset size to $s = 8 0 0$ samples.
|
| 129 |
+
|
| 130 |
+
Table 1: Comparison of accuracy and memory cost in number of parameters (and memory usage for storing samples if relevant) of different approaches on MNIST at the end of the Continual Learning. The Learning type column indicates the number of classes used at each training step.
|
| 131 |
+
|
| 132 |
+
<table><tr><td>Model</td><td>Accuracy (%)</td><td>Memory cost</td><td>Learning type</td></tr><tr><td>PGMA (Hu et al., 2018)</td><td>81.7</td><td>6.000k</td><td>2 by 2</td></tr><tr><td>SupportNet (Li et al.,2018)</td><td>89.9</td><td>940k</td><td>2 by2</td></tr><tr><td>DGR (Shin et al., 2017)</td><td>95.8</td><td>12.700k</td><td>2 by 2</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>96.0</td><td>940k</td><td>2 by2</td></tr><tr><td>OvA-INN (this work)</td><td>96.4</td><td>520k</td><td>1by1</td></tr></table>
|
| 133 |
+
|
| 134 |
+
# Analysis
|
| 135 |
+
|
| 136 |
+
We report the average accuracy over all the classes after the networks have been trained on all batches (See Table 1). Our architecture does not use any pretrained features extractor common to every classes (contrarily to our CIFAR-100 experiment) : each sample is processed through an Invertible Network, composed of two stacked invertible blocks.
|
| 137 |
+
|
| 138 |
+
Our approach presents better results than all the other reference methods while having a smaller cost in memory (see Appendix A) and being trained by batches of only one class. Also, our architecture relies on simple fully-connected layers (as parts of invertible layers) whilst the other baselines implement convolutional layers.
|
| 139 |
+
|
| 140 |
+
# 4.3 EVALUATION ON CIFAR-100
|
| 141 |
+
|
| 142 |
+
We now consider a more complex image dataset with a greater number of classes. This allows us to make comparisons in the case of a long sequence of data batches and to illustrate the value of using a pretrained features extractor for Continual Learning.
|
| 143 |
+
|
| 144 |
+
# Baselines
|
| 145 |
+
|
| 146 |
+
Distance-based model:
|
| 147 |
+
|
| 148 |
+
- Nearest prototype : our implementation of the method consisting in computing the mean vector (prototype) of the output of a pretrained ResNet32 for each class at train time. Inference is performed by finding the closest prototype to the ResNet output of a given sample.
|
| 149 |
+
|
| 150 |
+
Generative model:
|
| 151 |
+
|
| 152 |
+
- FearNet (Kemker & Kanan, 2017) : uses a pretrained ResNet48 features extractor. FearNet is trained with a warm-up phase. Namely, the network is first trained with the all the first 50 classes of CIFAR-100, and subsequently learns the next 50 classes one by one in a continual fashion.
|
| 153 |
+
|
| 154 |
+
Coreset-based models:
|
| 155 |
+
|
| 156 |
+
- iCaRL (Rebuffi et al., 2017) : retrains a ResNet32 architecture on new data with a distillation loss. - End-to-end IL (Castro et al., 2018) $:$ retrains a ResNet32 architecture on new data with a crossentropy together with distillation loss.
|
| 157 |
+
|
| 158 |
+
# Analysis
|
| 159 |
+
|
| 160 |
+
The data is provided by batch of classes. When the training on a batch $( \mathcal { D } _ { i } )$ is completed, the accuracy of the classifier is evaluated on the test data of classes from all previous batches $( \mathcal { D } _ { 1 } , . . . , \mathcal { D } _ { i } )$ . We report the results from the literature with various size of batch when they are available.
|
| 161 |
+
|
| 162 |
+
OvA-INN uses the weights of a ResNet32 pretrained on ImageNet and never update them. FearNet also uses pretrained weights from a ResNet. iCaRL and End-to-End IL use this architecture but retrain it from scratch at the beginning and fine-tune it with each new batch.
|
| 163 |
+
|
| 164 |
+
The performance of the Nearest prototype baseline proves that there is high benefit in using pretrained features extractor on this kind of dataset. FearNet shows better performance by taking advantage of a warm-up phase with 50 classes. Still, we can see that OvA-INN is able to clearly outperform all the other approaches, reaching $72 \%$ accuracy after training on 100 classes. We can see that the performances of methods retraining ResNet from scratch (iCaRL and End-to-End IL)
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 2: Comparison of the accuracy of several Continual Learning methods on CIFAR-100 with various batches of classes. FearNet’s curve has no point before 50 classes because the first 50 classes are learned in a non-continous fashion.
|
| 168 |
+
|
| 169 |
+
quickly deteriorate compared to those using pretrained parameters. Even with larger batches of classes, the gap is still present.
|
| 170 |
+
|
| 171 |
+
It can be surpising that at the end of its warm-up phase, FearNet still has an accuracy bellow OvAINN, even though it has been trained on all the data available at this point. It should be noted that FearNet is training an autoencoder and uses its encoding part as a features extractor (stacked on the ResNet) before classifying a sample. This can diminish the discriminative power of the network since it is also constrained to reproduce its input (only a single autoencoder is used for all classes).
|
| 172 |
+
|
| 173 |
+
To further understand the effect of an Invertible Network on the feature space of a sample, we propose to project the different features spaces in 2D using t-SNE (Maaten & Hinton, 2008). We project the features of the five first classes of CIFAR-100 test set (see Figure 3). Classes that are already well represented in a cluster with ResNet features (like violet class) are clearly separated from the clusters of Invertible Networks. Classes represented with ambiguity with ResNet features (like light green and red) are better clustered in the Invertible Network space.
|
| 174 |
+
|
| 175 |
+
# 5 DISCUSSION
|
| 176 |
+
|
| 177 |
+
A limiting factor in our approach is the necessity to add a new network each time one wants to learn a new class. This makes the memory and computational cost of OvA-INN linear with the number of classes. Recent works in networks merging could alleviate the memory issue by sharing weights (Chou et al., 2018) or relying on weights superposition (Cheung et al., 2019). This being said, we showed that Ova-INN was able to achieve superior accuracy on CIFAR-100 class-by-class training than approaches reported in the literature, while using less parameters.
|
| 178 |
+
|
| 179 |
+
Another constraint of using Invertible Networks is to keep the size of the output equal to the size of the input. When one wants to apply a features extractor with a high number of output channels, it can have a very negative impact on the memory consumption of the invertible layers. Feature Selection or Feature Aggregation techniques may help to alleviate this issue (Tang et al., 2014).
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
Figure 3: t-SNE projections of features spaces for five classes from CIFAR-100 test set (colors are given by the ground truth). (a): features space before applying Invertible Networks (black crosses are the clusters centers). $( b ) , ( c ) , ( d ) , ( e ) , ( f )$ : each features space after the Invertible Network of each class. The samples of a class represented by a network are clustered around the zero vector (black cross) whilst the samples from other classes appear further away from the cluster. Another visualization highlighting the differences between OvA-INN and Nearest Prototype is presented in Appendix D.
|
| 183 |
+
|
| 184 |
+
Finally, we can notice that our approach is highly dependent on the quality of the pretrained features extractor. In our CIFAR-100, we had to rescale the input to make it compatible with ResNet. Nonetheless, recent research works show promising results in training features extractors in very efficient ways (Asano et al., 2019). Because it does not require to retrain its features extractor, we can foresee better performance in class-by-class learning with OvA-INN as new and more efficient features extractors are discovered.
|
| 185 |
+
|
| 186 |
+
As a future research direction, one could try to incorporate our method in a Reinforcement Learning scenario where various situations can be learned separately in a first phase (each situation with its own Invertible Network). Then during a second phase where any situation can appear without the agent explicitly told in which situation it is in, the agent could rely on previously trained Invertible Networks to improve its policy. This setting is closely related to Options in Reinforcement Learning. Also, in a regression setting, one can add a fully connected layer after an intermediate layer of an Invertible Network and use it to predict the output for the trained class. At test time, one only need to read the output from the regression layer of the Invertible Network that had the highest confidence.
|
| 187 |
+
|
| 188 |
+
# 6 CONCLUSION
|
| 189 |
+
|
| 190 |
+
In this paper, we proposed a new approach for the challenging problem of single-head Continual Learning without storing any of the previous data. On top of a fixed pretrained neural network, we trained for each class an Invertible Network to refine the extracted features and maximize the loglikelihood on samples from its class. This way, we show that we can predict the class of a sample by running each Invertible Network and identifying the one with the highest log-likelihood. This setting allows us to take full benefit of pretrained models, which results in very good performances on the class-by-class training of CIFAR-100 compared to prior works.
|
| 191 |
+
|
| 192 |
+
# REFERENCES
|
| 193 |
+
|
| 194 |
+
Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 139–154, 2018.
|
| 195 |
+
|
| 196 |
+
Yuki M Asano, Christian Rupprecht, and Andrea Vedaldi. Surprising effectiveness of few-image unsupervised feature learning. arXiv preprint arXiv:1904.13132, 2019.
|
| 197 |
+
|
| 198 |
+
Francisco M Castro, Manuel J Mar´ın-Jimenez, Nicol ´ as Guil, Cordelia Schmid, and Karteek Alahari.´ End-to-end incremental learning. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 233–248, 2018.
|
| 199 |
+
|
| 200 |
+
Arslan Chaudhry, Puneet K Dokania, Thalaiyasingam Ajanthan, and Philip HS Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. arXiv preprint arXiv:1801.10112, 2018.
|
| 201 |
+
|
| 202 |
+
Brian Cheung, Alex Terekhov, Yubei Chen, Pulkit Agrawal, and Bruno A. Olshausen. Superposition of many models into one. CoRR, abs/1902.05522, 2019. URL http://arxiv.org/abs/ 1902.05522.
|
| 203 |
+
|
| 204 |
+
Yi-Min Chou, Yi-Ming Chan, Jia-Hong Lee, Chih-Yi Chiu, and Chu-Song Chen. Unifying and merging well-trained deep neural networks for inference stage. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, pp. 2049– 2056. International Joint Conferences on Artificial Intelligence Organization, 7 2018. doi: 10.24963/ijcai.2018/283. URL https://doi.org/10.24963/ijcai.2018/283.
|
| 205 |
+
|
| 206 |
+
Laurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-linear independent components estimation. arXiv preprint arXiv:1410.8516, 2014.
|
| 207 |
+
|
| 208 |
+
Sebastian Farquhar and Yarin Gal. Towards robust evaluations of continual learning. arXiv preprint arXiv:1805.09733, 2018.
|
| 209 |
+
|
| 210 |
+
Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. 2016.
|
| 211 |
+
|
| 212 |
+
Wenpeng Hu, Zhou Lin, Bing Liu, Chongyang Tao, Zhengwei Tao, Jinwen Ma, Dongyan Zhao, and Rui Yan. Overcoming catastrophic forgetting via model adaptation. 2018.
|
| 213 |
+
|
| 214 |
+
Ronald Kemker and Christopher Kanan. FearNet: Brain-inspired model for incremental learning. arXiv preprint arXiv:1711.10563, 2017.
|
| 215 |
+
|
| 216 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 217 |
+
|
| 218 |
+
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, pp. 201611835, 2017.
|
| 219 |
+
|
| 220 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 221 |
+
|
| 222 |
+
Kimin Lee, Honglak Lee, Kibok Lee, and Jinwoo Shin. Training confidence-calibrated classifiers for detecting out-of-distribution samples. arXiv preprint arXiv:1711.09325, 2017.
|
| 223 |
+
|
| 224 |
+
Yu Li, Zhongxiao Li, Lizhong Ding, Peng Yang, Yuhui Hu, Wei Chen, and Xin Gao. SupportNet: solving catastrophic forgetting in class incremental learning with support data. arXiv preprint arXiv:1806.02942, 2018.
|
| 225 |
+
|
| 226 |
+
Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935–2947, 2018.
|
| 227 |
+
|
| 228 |
+
Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. arXiv preprint arXiv:1706.02690, 2017.
|
| 229 |
+
|
| 230 |
+
David Lopez-Paz et al. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, pp. 6467–6476, 2017.
|
| 231 |
+
|
| 232 |
+
Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of machine learning research, 9(Nov):2579–2605, 2008.
|
| 233 |
+
|
| 234 |
+
Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. 24:109–165, 1989.
|
| 235 |
+
|
| 236 |
+
German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. arXiv preprint arXiv:1802.07569, 2018.
|
| 237 |
+
|
| 238 |
+
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.
|
| 239 |
+
|
| 240 |
+
Amal Rannen, Rahaf Aljundi, Matthew B Blaschko, and Tinne Tuytelaars. Encoder based lifelong learning. pp. 1320–1328, 2017.
|
| 241 |
+
|
| 242 |
+
Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. iCaRL: Incremental classifier and representation learning. pp. 5533–5542, 2017.
|
| 243 |
+
|
| 244 |
+
Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
|
| 245 |
+
|
| 246 |
+
Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. pp. 2990–2999, 2017.
|
| 247 |
+
|
| 248 |
+
Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. pp. 4077–4087, 2017.
|
| 249 |
+
|
| 250 |
+
Jiliang Tang, Salem Alelyani, and Huan Liu. Feature selection for classification: A review. Data classification: Algorithms and applications, pp. 37, 2014.
|
| 251 |
+
|
| 252 |
+
Gido M. van de Ven and Andreas S. Tolias. Three scenarios for continual learning. CoRR, abs/1904.07734, 2019. URL http://arxiv.org/abs/1904.07734.
|
| 253 |
+
|
| 254 |
+
Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. pp. 3630–3638, 2016.
|
| 255 |
+
|
| 256 |
+
Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. arXiv preprint arXiv:1708.01547, 2017.
|
| 257 |
+
|
| 258 |
+
Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. 2018.
|
| 259 |
+
|
| 260 |
+
Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. pp. 3987–3995, 2017.
|
| 261 |
+
|
| 262 |
+
# A MEMORY USAGE
|
| 263 |
+
|
| 264 |
+
A.1 MNIST
|
| 265 |
+
|
| 266 |
+
OvA-INN uses 2 blocks with 2 layers ( $f _ { 1 }$ and $f _ { 2 , }$ ) for 10 classes. The weight matrix of each layer $W$ is a product of two matrices $A$ and $B$ of size $3 9 2 \times 1 6$ and $1 6 \times 3 9 2$ . The memory required for OvA-INN is :
|
| 267 |
+
|
| 268 |
+
$$
|
| 269 |
+
S _ { \mathrm { O v A - I N N , M N I S T } } = ( 3 9 2 \times 1 6 \times 2 + 3 9 2 ) \times 2 \times 2 \times 1 0 = 5 1 7 4 4 0
|
| 270 |
+
$$
|
| 271 |
+
|
| 272 |
+
We set the coreset size of iCaRL and SupportNet to $s = 8 0 0$ with each image of size $2 8 \times 2 8$ , the convolutional network is composed of a layer of 64 channels with $5 \times 5$ kernel, a layer of 32
|
| 273 |
+
|
| 274 |
+
channels with $5 \times 5$ kernel, a fully-connected layer with 100 channels applied on an input of size $7 \times 7$ and a final layer of 10 channels :
|
| 275 |
+
|
| 276 |
+
${ \mathfrak { H } } _ { \mathrm { i C a R , M N I S T } } = 2 8 \times 2 8 \times 8 0 0 + ( 5 \times 5 + 1 ) \times 3 2 + ( 5 \times 5 + 1 ) \times 6 4 + ( 7 \times 7 \times 6 4 + 1 ) \times 1 0 0 + ( 1 \times 1 0 0 ) \times 2 = 2 4$ $( 1 0 0 + 1 ) \times 1 0 = 9 4 4 4 0 6$
|
| 277 |
+
|
| 278 |
+
# A.2 CIFAR-100
|
| 279 |
+
|
| 280 |
+
Since every method rely on a ResNet32 (around 20M parameters) to compute their features (except FearNet which uses ResNet48). We do not count the features extractor in the memory consumption.
|
| 281 |
+
|
| 282 |
+
OvA-INN uses 2 blocks with 2 layers ( $f _ { 1 }$ and $f _ { 2 } ^ { \mathrm { ~ ~ } } ,$ ) for 100 classes. The weight matrix of each layer $W$ is a product of two matrices $A$ and $B$ of size $2 5 6 \times 3 2$ and $3 2 \times 2 5 6$ . The memory required is :
|
| 283 |
+
|
| 284 |
+
$$
|
| 285 |
+
S _ { \mathrm { O v A - I N N , C I F A R } } = ( 2 5 6 \times 3 2 \times 2 + 2 5 6 ) \times 2 \times 2 \times 1 0 0 = 6 6 5 6 0 0 0
|
| 286 |
+
$$
|
| 287 |
+
|
| 288 |
+
We use the default coreset size $s = 2 0 0 0$ of iCaRL and End-to-End $\mathrm { I L }$ with each image of size $3 2 \times 3 2$ :
|
| 289 |
+
|
| 290 |
+
$$
|
| 291 |
+
S _ { \mathrm { i C a R L , C I F A R } } = 3 2 \times 3 2 \times 3 \times 2 0 0 0 = 6 1 4 4 0 0 0
|
| 292 |
+
$$
|
| 293 |
+
|
| 294 |
+
# B HYPERPARAMETERS SETTINGS
|
| 295 |
+
|
| 296 |
+
Our implementation is done with Pytorch (Paszke et al., 2017), using the Adam optimizer (Kingma & Ba, 2014) and a scheduler that reduces the learning rate by a factor of 0.5 when the loss stops improving. We use the resize transformation from torchvision with the default bilinear interpolation.
|
| 297 |
+
|
| 298 |
+
Table 2: MNIST Hyperparameters
|
| 299 |
+
|
| 300 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Learning Rate</td><td>0.002</td></tr><tr><td>Number of epochs</td><td>200</td></tr><tr><td>Weight decay</td><td>0.0</td></tr><tr><td>Patience</td><td>20</td></tr></table>
|
| 301 |
+
|
| 302 |
+
Table 3: CIFAR-100 Hyperparameters
|
| 303 |
+
|
| 304 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td></td><td></td></tr><tr><td>Learning Rate</td><td>0.002</td></tr><tr><td>Number of epochs Weight decay</td><td>1000 0.0002</td></tr><tr><td>Patience</td><td>30</td></tr></table>
|
| 305 |
+
|
| 306 |
+
Table 4: t-SNE Hyperparameters
|
| 307 |
+
|
| 308 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td></td><td></td></tr><tr><td>Perplexity</td><td>15.0</td></tr><tr><td>Principal Components</td><td>50</td></tr><tr><td>Steps</td><td>400</td></tr></table>
|
| 309 |
+
|
| 310 |
+
# C TASK-BY-TASK LEARNING
|
| 311 |
+
|
| 312 |
+
We provide additional experimental results on the multi-head learning of CIFAR100 with 10 tasks of 10 classes each. The training procedure of OvA-INN does not change from the usual single-head learning but, at test time, the evaluation is processed by batches of 10 classes. The accuracy score is the average accuracy over all 10 tasks. We report the results from (Yoon et al., 2017). Although our approach is able to match state-of-the-art results in accuracy, it should be noticed that it is drastically more memory and time consuming than the other baselines.
|
| 313 |
+
|
| 314 |
+
<table><tr><td>Model</td><td>Accuracy (%)</td></tr><tr><td></td><td></td></tr><tr><td>EWC(Kirkpatrick et al., 2017)</td><td>81.34</td></tr><tr><td>Progressive Networks (Rusu et al., 2016)</td><td>88.19</td></tr><tr><td>DEN (Yoon et al., 2017)</td><td>92.25</td></tr><tr><td>OvA-INN</td><td>92.58</td></tr></table>
|
| 315 |
+
|
| 316 |
+
# D VISUALIZATION
|
| 317 |
+
|
| 318 |
+
We highlight the differences between OvA-INN and Nearest Prototype when classifying 20 classes of CIFAR-100 in Figure 4.
|
| 319 |
+
|
| 320 |
+

|
| 321 |
+
Figure 4: top: t-SNE projection of the features space before applying Invertible Networks (black crosses are the clusters centers) for 20 classes from CIFAR-100 test set (colors are given by the ground truth). bottom: in blue and yellow are the samples correctly and wrongly classified by both Nearest Prototype and OvA-INN, in green the samples better classified by OvA-INN than Nearest Prototype and orange the samples better classified by Nearest Prototype than OvA-INN.
|
parse/train/rJxcBpNKPr/rJxcBpNKPr_content_list.json
ADDED
|
@@ -0,0 +1,1681 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "OVA-INN: CONTINUAL LEARNING WITH INVERTIBLE NEURAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
823,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "In the field of Continual Learning, the objective is to learn several tasks one after the other without access to the data from previous tasks. Several solutions have been proposed to tackle this problem but they usually assume that the user knows which of the tasks to perform at test time on a particular sample, or rely on small samples from previous data and most of them suffer of a substantial drop in accuracy when updated with batches of only one class at a time. In this article, we propose a new method, OvA-INN, which is able to learn one class at a time and without storing any of the previous data. To achieve this, for each class, we train a specific Invertible Neural Network to extract the relevant features to compute the likelihood on this class. At test time, we can predict the class of a sample by identifying the network which predicted the highest likelihood. With this method, we show that we can take advantage of pretrained models by stacking an Invertible Network on top of a features extractor. This way, we are able to outperform stateof-the-art approaches that rely on features learning for the Continual Learning of MNIST and CIFAR-100 datasets. In our experiments, we reach $72 \\%$ accuracy on CIFAR-100 after training our model one class at a time. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
270,
|
| 43 |
+
764,
|
| 44 |
+
493
|
| 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 |
+
334,
|
| 56 |
+
546
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "A typical Deep Learning workflow consists in gathering data, training a model on this data and finally deploying the model in the real world (Goodfellow et al., 2016). If one would need to update the model with new data, it would require to merge the old and new data and process a training from scratch on this new dataset. Nevertheless, there are circumstances where this method may not apply. For example, it may not be possible to store the old data because of privacy issues (health records, sensible data) or memory limitations (embedded systems, very large datasets). In order to address those limitations, recent works propose a variety of approaches in a setting called Continual Learning (Parisi et al., 2018). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
565,
|
| 66 |
+
825,
|
| 67 |
+
676
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In Continual Learning, we aim to learn the parameters $w$ of a model on a sequence of datasets $\\mathcal { D } _ { i } = \\{ ( x _ { i } ^ { j } , y _ { i } ^ { j } ) \\} _ { j = 1 } ^ { n _ { i } }$ with the inputs $x _ { i } ^ { j } \\in \\mathcal { X } ^ { i }$ and the labels $y _ { i } ^ { j } \\in \\mathcal { V } ^ { i }$ , to predict $p ( y ^ { * } | w , x ^ { * } )$ for an unseen pair $( x ^ { * } , y ^ { * } )$ . The training has to be done on each dataset, one after the other, without the possibility to reuse previous datasets. The performance of a Continual Learning algorithm can then be measured with two protocols : multi-head or single-head. In the multi-head scenario, the task identifier $i$ is known at test time. For evaluating performances on task $i$ , the set of all possible labels is then $\\mathcal { V } = \\mathcal { V } ^ { i }$ . Whilst in the single-head scenario, the task identifier is unknown, in that case we have $\\mathcal { V } = \\cup _ { i = 1 } ^ { N } \\mathcal { V } ^ { i }$ with $N$ the number of tasks learned so far. For example, let us say that the goal is to learn MNIST sequentially with two batches: using only the data from the first five classes and then only the data from the remaining five other classes. In multi-head learning, one asks at test time to be able to recognize samples of 0-4 among the classes 0-4 and samples of 5-9 among classes 5-9. On the other hand, in single-head learning, one can not assume from which batch a sample is coming from, hence the need to be able to recognize any samples of 0-9 among classes 0-9. Although the former one has received the most attention from researchers, the last one fits better to the desiderata of a Continual Learning system as expressed in Farquhar & Gal (2018) and (van de Ven & Tolias, 2019). The single-head scenario is also notoriously harder than its multi-head counterpart (Chaudhry et al., 2018) and is the focus of the present work. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
684,
|
| 77 |
+
825,
|
| 78 |
+
924
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Updating the parameters with data from a new dataset exposes the model to drastically deteriorate its performance on previous data, a phenomenon known as catastrophic forgetting (McCloskey & Cohen, 1989). To alleviate this problem, researchers have proposed a variety of approaches such as storing a few samples from previous datasets (Rebuffi et al., 2017), adding distillation regularization (Li & Hoiem, 2018), updating the parameters according to their usefulness on previous datasets (Kirkpatrick et al., 2017), using a generative model to produce samples from previous datasets (Kemker & Kanan, 2017). Despite those efforts toward a more realistic setting of Continual Learning, one can notice that, most of the time, results are proposed in the case of a sequence of batches of multiple classes. This scenario often ends up with better accuracy (because the learning procedure highly benefits of the diversity of classes to find the best tuning of parameters) but it does not illustrate the behavior of those methods in the worst case scenario. In fact, Continual Learning algorithms should be robust in the size of the batch of classes. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
103,
|
| 88 |
+
825,
|
| 89 |
+
270
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work, we propose to implement a method specially designed to handle the case where each task consists of only one class. It will therefore be evaluated in the single-head scenario. Our approach, named One-versus-All Invertible Neural Networks (OvA-INN), is based on an invertible neural network architecture proposed by Dinh et al. (2014). We use it in a One-versus-All strategy : each network is trained to make a prediction of a class and the most confident one on a sample is used to identify the class of the sample. In contrast to most other methods, the training phase of each class can be independently executed from one another. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
277,
|
| 99 |
+
825,
|
| 100 |
+
375
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "The contributions of our work are : (i) a new approach for Continual Learning with one class per batch; (ii) a neural architecture based on Invertible Networks that does not require to store any of the previous data; (iii) state-of-the-art results on several tasks of Continual Learning for Computer Vision (CIFAR-100, MNIST) in this setting. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
382,
|
| 110 |
+
825,
|
| 111 |
+
438
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "We start by reviewing the closest methods to our approach in Section 2, then explain our method in Section 3, analyse its performances in Section 4 and identify limitations and possible extensions in Section 5. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
176,
|
| 120 |
+
444,
|
| 121 |
+
825,
|
| 122 |
+
486
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 RELATED WORK ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
176,
|
| 132 |
+
516,
|
| 133 |
+
339,
|
| 134 |
+
532
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Generative models Inspired by biological mechanisms such as the hippocampal system that rapidly encodes recent experiences and the memory of the neocortex that is consolidated during sleep phases, a natural approach is to produce samples of previous data that can be added to the new data to learn a new task. FearNet (Kemker & Kanan, 2017) relies on an architecture based on an autoencoder, whereas Deep Generative Replay (Shin et al., 2017) and Parameter Generation and Model Adaptation (Hu et al., 2018) propose to use a generative adversarial network. Those methods present good results but require complex models to be able to generate reliable data. Furthermore, it is difficult to assess the relevance of the generated data to conduct subsequent training iterations. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
553,
|
| 144 |
+
825,
|
| 145 |
+
665
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Coreset-based models These approaches alleviate the constraint on the availability of data by allowing the storage of a few samples from previous data (which are called coreset). iCaRL (Rebuffi et al., 2017) and End-to-end IL (Castro et al., 2018) store 2000 samples from previous batches and rely on respectively a distillation loss and a mixture of cross-entropy and distillation loss to alleviate forgetting. The authors of SupportNet (Li et al., 2018) have also proposed a strategy to select relevant samples for the coreset. Gradient Episodic Memory (Lopez-Paz et al., 2017) ensures that gradients computed on new tasks do not interfere with the loss of previous tasks. Those approaches give the best results for single-head learning. But, similarly to generated data, it is not clear which data may be useful to conduct further training iterations. In this paper, we are challenging the need of the coreset for single-head learning. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
689,
|
| 155 |
+
825,
|
| 156 |
+
829
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Distance-based models These methods propose to embed the data in a space which can be used to identify the class of a sample by computing a distance between the embedding of the sample and a reference for each class. Among the most popular, we can cite Matching Networks (Vinyals et al., 2016) and Prototypical Networks (Snell et al., 2017), but these methods have been mostly applied to few-shot learning scenarios rather than continual. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
854,
|
| 166 |
+
823,
|
| 167 |
+
924
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Regularization-based approaches These approaches present an attempt to mitigate the effect of catastrophic forgetting by imposing some constraints on the loss function when training subsequent classes. Elastic Weight Consolidation (Kirkpatrick et al., 2017), Synaptic Intelligence (Zenke et al., 2017) and Memory Aware Synapses (Aljundi et al., 2018) all seek to prevent the update of weights that were the most useful to discriminate between previous classes. Hence, it is possible to constrain the learning of a new task in such a way that the most relevant weights for the previous tasks are less susceptible to be updated. Learning without forgetting (Li & Hoiem, 2018) proposes to use knowledge distillation to preserve previous performances. The network is divided in two parts : the shared weights and the dedicated weights for each task. When learning a new task A, the data of A get assigned “soft” labels by computing the output by the network with the dedicated weight for each previous task. Then the network is trained with the loss of task A and is also constrained to reproduce the recorded output for each other tasks. In Rannen et al. (2017), the authors propose to use an autoencoder to reconstruct the extracted features for each task. When learning a new task, the features extractor is adapted but has to make sure that the autoencoder of the other tasks are still able to reconstruct the extracted features from the current samples. While these methods obtain good results for learning one new task, they become limited when it comes to learn several new tasks, especially in the one class per batch setting. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
104,
|
| 177 |
+
825,
|
| 178 |
+
339
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 2
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Expandable models In the case of the multi-head setting, it has been proposed to use the previously learned layers and complete them with new layers trained on a new task. This strategy is presented in Progressive Networks (Rusu et al., 2016). In order to reduce the growth in memory caused by the new layers, the authors of Dynamically Expandable Networks (Yoon et al., 2018) proposed an hybrid method which retrains some of the previous weights and add new ones when necessary. Although these approaches work very well in the case of multi-head learning, they can not be adapted to single-head and are therefore not included in benchmarks with OvA-INN. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
356,
|
| 188 |
+
825,
|
| 189 |
+
453
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 2
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "3 CLASS-BY-CLASS CONTINUAL LEARNING WITH INVERTIBLE NETWORKS ",
|
| 196 |
+
"text_level": 1,
|
| 197 |
+
"bbox": [
|
| 198 |
+
176,
|
| 199 |
+
474,
|
| 200 |
+
813,
|
| 201 |
+
491
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 2
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "3.1 MOTIVATIONS AND CHALLENGE ",
|
| 208 |
+
"text_level": 1,
|
| 209 |
+
"bbox": [
|
| 210 |
+
176,
|
| 211 |
+
506,
|
| 212 |
+
437,
|
| 213 |
+
521
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "We investigate the problem of training several datasets in a sequential fashion with batches of only one class at a time. Most approaches of the state-of-the-art rely on updating a features extractor when data from a new class is available. But this strategy is unreliable in the special case we are interested in, namely batches of data from only one class. With few or no sample of negative data, it is very inefficient to update the weights of a network because the setting of deep learning normally involves vast amounts of data to be able to learn to extract valuable features. Without enough negative samples, the training is prone to overfit the new class. Recent works have proposed to rely on generative models to overcome this lack of data by generating samples of old classes. Nevertheless, updating a network with sampled data is not as efficient as with real data and, on the long run, the generative quality of early classes suffer from the multiple updates. ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
174,
|
| 222 |
+
532,
|
| 223 |
+
825,
|
| 224 |
+
672
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "3.2 OUT-OF-DISTRIBUTION DETECTION FOR CONTINUAL LEARNING ",
|
| 231 |
+
"text_level": 1,
|
| 232 |
+
"bbox": [
|
| 233 |
+
176,
|
| 234 |
+
690,
|
| 235 |
+
661,
|
| 236 |
+
704
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "Our approach consists in interpreting a Continual Learning problem as several out-of-distribution (OOD) detection problems. OOD detection has already been studied for neural networks and can be formulated as a binary classification problem which consists in predicting if an input $x$ was sampled from the same distribution as the training data or from a different distribution (Lee et al., 2017; Liang et al., 2017). Hence, for each class, we can train a network to predict if an input $x$ is likely to have been sampled from the distribution of this class. The class with the highest confidence can be used as the prediction of the class of $x$ . This training procedure is particularly suitable for Continual Learning since the training of each network does not require any negative sample. ",
|
| 243 |
+
"bbox": [
|
| 244 |
+
174,
|
| 245 |
+
715,
|
| 246 |
+
825,
|
| 247 |
+
828
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "Using the same protocol as NICE (Dinh et al., 2014), for a class $i$ , it is possible to train a neural network $f _ { i }$ to fit a prior distribution $p$ and compute the exact log-likelihood $l _ { i }$ on a sample $x$ : ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
174,
|
| 256 |
+
834,
|
| 257 |
+
823,
|
| 258 |
+
863
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 2
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "equation",
|
| 264 |
+
"img_path": "images/43c30d9c3e00602b4e6d9c5f2e42c83430b1b11223e0a9ae91e3ed42bdc5ff13.jpg",
|
| 265 |
+
"text": "$$\nl _ { i } ( x ) = \\log ( p ( f _ { i } ( x ) )\n$$",
|
| 266 |
+
"text_format": "latex",
|
| 267 |
+
"bbox": [
|
| 268 |
+
428,
|
| 269 |
+
871,
|
| 270 |
+
570,
|
| 271 |
+
887
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "To obtain the formulation of log-likelihood as expressed in Equation 1, the network $f _ { i }$ has to respect some constraints discussed in Section 3.3. Keeping the same hypothesis as NICE, we consider the ",
|
| 278 |
+
"bbox": [
|
| 279 |
+
174,
|
| 280 |
+
895,
|
| 281 |
+
826,
|
| 282 |
+
924
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "image",
|
| 288 |
+
"img_path": "images/456f595d06cc297885c00ffc2d7ac7a9d223257fc4e9981da6bb6f6b36e45733.jpg",
|
| 289 |
+
"image_caption": [
|
| 290 |
+
"Figure 1: Forward pass in an invertible block. $x$ is split in $x _ { 0 : n / 2 }$ and $x _ { n / 2 : n }$ . $f _ { 1 }$ and $f _ { 2 }$ can be any type of Neural Networks as long as the dimension of their output dimension is the same as their input dimension. In our experiments, we stack two of these blocks one after the other and use fully-connected feedforward layers for $f _ { 1 }$ and $f _ { 2 }$ . "
|
| 291 |
+
],
|
| 292 |
+
"image_footnote": [],
|
| 293 |
+
"bbox": [
|
| 294 |
+
236,
|
| 295 |
+
98,
|
| 296 |
+
763,
|
| 297 |
+
284
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 3
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "case where $p$ is a distribution with independent components $p _ { d }$ ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
173,
|
| 306 |
+
375,
|
| 307 |
+
593,
|
| 308 |
+
390
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "equation",
|
| 314 |
+
"img_path": "images/f4ea07454527597db7b56dd1acc9daa314cfc30cc50a250a65fbc45c3cca8023.jpg",
|
| 315 |
+
"text": "$$\np ( f _ { i } ( x ) ) = \\prod _ { d } p _ { d } ( f _ { i , d } ( x ) )\n$$",
|
| 316 |
+
"text_format": "latex",
|
| 317 |
+
"bbox": [
|
| 318 |
+
408,
|
| 319 |
+
393,
|
| 320 |
+
589,
|
| 321 |
+
426
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 3
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "In our experiments, we considered $p _ { d }$ to be standard normal distributions. Although, it is possible to learn the parameters of the distributions, we found experimentally that doing so decreases the results. Under these design choices, the computation of the log-likelihood becomes : ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
174,
|
| 330 |
+
429,
|
| 331 |
+
826,
|
| 332 |
+
472
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 3
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "equation",
|
| 338 |
+
"img_path": "images/905404cdf9a3072485d8a7978035dbc9d5a3b0c17e8e1b7966c4b92fc16ea8c3.jpg",
|
| 339 |
+
"text": "$$\nl _ { i } ( x ) = \\sum _ { d } \\log ( p _ { d } ( f _ { i , d } ( x ) ) = - \\sum _ { d } \\frac { 1 } { 2 } f _ { i , d } ( x ) ^ { 2 } + \\sum _ { d } \\log \\left( \\frac { 1 } { \\sqrt { 2 \\pi } } \\right) = - \\frac { 1 } { 2 } \\| f _ { i } ( x ) \\| _ { 2 } ^ { 2 } + \\beta\n$$",
|
| 340 |
+
"text_format": "latex",
|
| 341 |
+
"bbox": [
|
| 342 |
+
199,
|
| 343 |
+
474,
|
| 344 |
+
779,
|
| 345 |
+
513
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 3
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "where $\\beta = - n \\log \\left( { \\sqrt { 2 \\pi } } \\right)$ is a constant term. ",
|
| 352 |
+
"bbox": [
|
| 353 |
+
173,
|
| 354 |
+
517,
|
| 355 |
+
473,
|
| 356 |
+
541
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "Hence, identifying the network with the highest log-likelihood is equivalent to find the network with the smallest output norm. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
174,
|
| 365 |
+
546,
|
| 366 |
+
825,
|
| 367 |
+
577
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "3.3 INVERTIBLE NEURAL NETWORKS ",
|
| 374 |
+
"text_level": 1,
|
| 375 |
+
"bbox": [
|
| 376 |
+
176,
|
| 377 |
+
592,
|
| 378 |
+
449,
|
| 379 |
+
607
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "The neural network architecture proposed by NICE is designed to operate a change of variables between two density functions. This assumes that the network is invertible and respect some constraints to make it efficiently computable. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
617,
|
| 389 |
+
825,
|
| 390 |
+
661
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "An invertible block (see Figure 1) consists in splitting the input $x$ into two subvectors $x _ { 1 }$ and $x _ { 2 }$ of equal size; then successively applying two (non necessarily invertible) networks $f _ { 1 }$ and $f _ { 2 }$ following the equation : ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
667,
|
| 400 |
+
825,
|
| 401 |
+
709
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "equation",
|
| 407 |
+
"img_path": "images/0f55c08a231df525d2c774f44b2bac4db3e1882df5d041bf65b13d9085fc12c8.jpg",
|
| 408 |
+
"text": "$$\n\\left\\{ \\begin{array} { l l } { y _ { 1 } = f _ { 1 } ( x _ { 2 } ) + x _ { 1 } } \\\\ { y _ { 2 } = f _ { 2 } ( y _ { 1 } ) + x _ { 2 } , } \\end{array} \\right.\n$$",
|
| 409 |
+
"text_format": "latex",
|
| 410 |
+
"bbox": [
|
| 411 |
+
421,
|
| 412 |
+
708,
|
| 413 |
+
558,
|
| 414 |
+
744
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "and finally, concatenate $y _ { 1 }$ and $y _ { 2 }$ . The inverse operation can be computed with : ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
171,
|
| 423 |
+
746,
|
| 424 |
+
700,
|
| 425 |
+
761
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "equation",
|
| 431 |
+
"img_path": "images/e32f665b9e80973f13595fef454e73cacb83a06ba0fc89f3381cda452ef5669b.jpg",
|
| 432 |
+
"text": "$$\n\\left\\{ \\begin{array} { l l } { x _ { 2 } = y _ { 2 } - f _ { 2 } ( y _ { 1 } ) } \\\\ { x _ { 1 } = y _ { 1 } - f _ { 1 } ( x _ { 2 } ) . } \\end{array} \\right.\n$$",
|
| 433 |
+
"text_format": "latex",
|
| 434 |
+
"bbox": [
|
| 435 |
+
419,
|
| 436 |
+
763,
|
| 437 |
+
560,
|
| 438 |
+
800
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "These invertible equations illustrate how Invertible Networks operate a bijection between their input and their output. ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
174,
|
| 447 |
+
810,
|
| 448 |
+
825,
|
| 449 |
+
840
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "3.4 CONTINUAL LEARNING SETTING ",
|
| 456 |
+
"text_level": 1,
|
| 457 |
+
"bbox": [
|
| 458 |
+
176,
|
| 459 |
+
856,
|
| 460 |
+
442,
|
| 461 |
+
871
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "We propose to specialize each Invertible Network to a specific class by training them to output a vector with small norm when presented with data samples from their class. Given a dataset $\\mathcal { X } _ { i }$ of class $i$ and an Invertible Network $f _ { i }$ , our objective is to minimize the loss $\\mathcal { L }$ : ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
881,
|
| 471 |
+
825,
|
| 472 |
+
924
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "equation",
|
| 478 |
+
"img_path": "images/8b70135a37387263ebf0d993e8242ad9b0476bfc069ddf65ba48bc60f89e36d7.jpg",
|
| 479 |
+
"text": "$$\n\\mathcal { L } ( \\mathcal { X } _ { i } ) = \\frac { 1 } { \\vert \\mathcal { X } _ { i } \\vert } \\sum _ { x \\in \\mathcal { X } _ { i } } \\Vert f _ { i } ( x ) \\Vert _ { 2 } ^ { 2 }\n$$",
|
| 480 |
+
"text_format": "latex",
|
| 481 |
+
"bbox": [
|
| 482 |
+
403,
|
| 483 |
+
114,
|
| 484 |
+
594,
|
| 485 |
+
155
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Once the training has converged, the weights of this network won’t be updated when new classes will be added. At inference time, after learning $t$ classes, the predicted class $y ^ { * }$ for a sample $x$ is obtained by running each network and identifying the one with the smallest output : ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
173,
|
| 494 |
+
166,
|
| 495 |
+
826,
|
| 496 |
+
209
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/85fc653e05e139d51c30f28ff999f84a5bba7f6be8204bf6da4a2d568368b385.jpg",
|
| 503 |
+
"text": "$$\n\\boldsymbol { y } ^ { * } = \\underset { \\boldsymbol { y } = 1 , \\ldots t } { \\arg \\operatorname* { m i n } } \\| \\boldsymbol { f } _ { \\boldsymbol { y } } ( \\boldsymbol { x } ) \\| _ { 2 } ^ { 2 }\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
421,
|
| 507 |
+
229,
|
| 508 |
+
578,
|
| 509 |
+
257
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "As it is common practice in image processing, one can also use a preprocessing step by applying a fixed pretrained features extractor beforehand. ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
270,
|
| 519 |
+
825,
|
| 520 |
+
297
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "4 EXPERIMENTAL RESULTS ",
|
| 527 |
+
"text_level": 1,
|
| 528 |
+
"bbox": [
|
| 529 |
+
176,
|
| 530 |
+
320,
|
| 531 |
+
419,
|
| 532 |
+
337
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 4
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "We compare our method against several state-of-the-art baselines for single-head learning on MNIST and CIFAR-100 datasets. ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
173,
|
| 541 |
+
353,
|
| 542 |
+
823,
|
| 543 |
+
381
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 4
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "4.1 IMPLEMENTATION DETAILS ",
|
| 550 |
+
"text_level": 1,
|
| 551 |
+
"bbox": [
|
| 552 |
+
176,
|
| 553 |
+
400,
|
| 554 |
+
403,
|
| 555 |
+
414
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "Topology of OvA-INN Due to the bijective nature of Invertible Networks, their output size is the same as their input size, hence the only way to change their size is by changing the depth or by compressing the parameters of the intermediate networks $f _ { 1 }$ and $f _ { 2 }$ . In our experiments, these networks are fully connected layers. To reduce memory footprint, we replace the square matrix of parameters $W$ of size $n \\times n$ by a product of matrices $A B$ of sizes $n \\times m$ and $m \\times n$ (with a compressing factor for the first and second block $m = 1 6$ for MNIST and $m = 3 2$ for CIFAR-100). More details on the memory cost can be found in Appendix A. ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
173,
|
| 564 |
+
426,
|
| 565 |
+
825,
|
| 566 |
+
525
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "Regularization When performing learning one class at a time, the amount of training data can be highly reduced: only 500 training samples per class for CIFAR-100. To avoid overfitting the training set, we found that adding a weight decay regularization could increase the validation accuracy. More details on the hyperparameters choices can be found in Appendix B. ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
174,
|
| 575 |
+
541,
|
| 576 |
+
825,
|
| 577 |
+
597
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "Rescaling As ResNet has been trained on images of size $2 2 4 \\times 2 2 4$ , we rescale CIFAR-100 images to match the size of images from Imagenet. ",
|
| 584 |
+
"bbox": [
|
| 585 |
+
174,
|
| 586 |
+
614,
|
| 587 |
+
823,
|
| 588 |
+
643
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "4.2 EVALUATION ON MNIST ",
|
| 595 |
+
"text_level": 1,
|
| 596 |
+
"bbox": [
|
| 597 |
+
176,
|
| 598 |
+
661,
|
| 599 |
+
390,
|
| 600 |
+
676
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "We start by considering the MNIST dataset (LeCun et al., 1998), as it is a common benchmark that remains challenging in the case of single-head Continual Learning. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
174,
|
| 609 |
+
688,
|
| 610 |
+
823,
|
| 611 |
+
717
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 4
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "Baselines ",
|
| 618 |
+
"text_level": 1,
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
734,
|
| 622 |
+
240,
|
| 623 |
+
748
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 4
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "text",
|
| 629 |
+
"text": "Generative models: - Parameter Generation and Model Adaptation (PGMA) (Hu et al., 2018) - Deep Generative Replay (DGR) (Shin et al., 2017) ",
|
| 630 |
+
"bbox": [
|
| 631 |
+
173,
|
| 632 |
+
756,
|
| 633 |
+
651,
|
| 634 |
+
797
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 4
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "Coreset-based models: - iCaRL (Rebuffi et al., 2017) - SupportNet (Li et al., 2018) ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
173,
|
| 643 |
+
805,
|
| 644 |
+
369,
|
| 645 |
+
847
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 4
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "For Parameter Generation and Model Adaptation (PGMA) (Hu et al., 2018) and Deep Generative Replay (DGR) (Shin et al., 2017), we report the results from the original papers; whereas we use the provided code of SupportNet to compute the results for iCaRL and SupportNet with the conventional architecture of two layers of convolutions with poolings and a fully connected last layer. We have also set the coreset size to $s = 8 0 0$ samples. ",
|
| 652 |
+
"bbox": [
|
| 653 |
+
174,
|
| 654 |
+
854,
|
| 655 |
+
825,
|
| 656 |
+
924
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 4
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "table",
|
| 662 |
+
"img_path": "images/b169d333a9c7beecfeef621dc8e364f81be3aff2fa48631ec7b835a47e1db142.jpg",
|
| 663 |
+
"table_caption": [
|
| 664 |
+
"Table 1: Comparison of accuracy and memory cost in number of parameters (and memory usage for storing samples if relevant) of different approaches on MNIST at the end of the Continual Learning. The Learning type column indicates the number of classes used at each training step. "
|
| 665 |
+
],
|
| 666 |
+
"table_footnote": [],
|
| 667 |
+
"table_body": "<table><tr><td>Model</td><td>Accuracy (%)</td><td>Memory cost</td><td>Learning type</td></tr><tr><td>PGMA (Hu et al., 2018)</td><td>81.7</td><td>6.000k</td><td>2 by 2</td></tr><tr><td>SupportNet (Li et al.,2018)</td><td>89.9</td><td>940k</td><td>2 by2</td></tr><tr><td>DGR (Shin et al., 2017)</td><td>95.8</td><td>12.700k</td><td>2 by 2</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>96.0</td><td>940k</td><td>2 by2</td></tr><tr><td>OvA-INN (this work)</td><td>96.4</td><td>520k</td><td>1by1</td></tr></table>",
|
| 668 |
+
"bbox": [
|
| 669 |
+
174,
|
| 670 |
+
155,
|
| 671 |
+
813,
|
| 672 |
+
242
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 5
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "Analysis ",
|
| 679 |
+
"text_level": 1,
|
| 680 |
+
"bbox": [
|
| 681 |
+
174,
|
| 682 |
+
268,
|
| 683 |
+
235,
|
| 684 |
+
284
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 5
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "We report the average accuracy over all the classes after the networks have been trained on all batches (See Table 1). Our architecture does not use any pretrained features extractor common to every classes (contrarily to our CIFAR-100 experiment) : each sample is processed through an Invertible Network, composed of two stacked invertible blocks. ",
|
| 691 |
+
"bbox": [
|
| 692 |
+
174,
|
| 693 |
+
290,
|
| 694 |
+
825,
|
| 695 |
+
345
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 5
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "Our approach presents better results than all the other reference methods while having a smaller cost in memory (see Appendix A) and being trained by batches of only one class. Also, our architecture relies on simple fully-connected layers (as parts of invertible layers) whilst the other baselines implement convolutional layers. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
174,
|
| 704 |
+
353,
|
| 705 |
+
823,
|
| 706 |
+
410
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "4.3 EVALUATION ON CIFAR-100 ",
|
| 713 |
+
"text_level": 1,
|
| 714 |
+
"bbox": [
|
| 715 |
+
176,
|
| 716 |
+
428,
|
| 717 |
+
418,
|
| 718 |
+
443
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 5
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "We now consider a more complex image dataset with a greater number of classes. This allows us to make comparisons in the case of a long sequence of data batches and to illustrate the value of using a pretrained features extractor for Continual Learning. ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
176,
|
| 727 |
+
455,
|
| 728 |
+
823,
|
| 729 |
+
497
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 5
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "Baselines ",
|
| 736 |
+
"text_level": 1,
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
513,
|
| 740 |
+
240,
|
| 741 |
+
529
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 5
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "Distance-based model: ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
536,
|
| 751 |
+
325,
|
| 752 |
+
549
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 5
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "- Nearest prototype : our implementation of the method consisting in computing the mean vector (prototype) of the output of a pretrained ResNet32 for each class at train time. Inference is performed by finding the closest prototype to the ResNet output of a given sample. ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
174,
|
| 761 |
+
550,
|
| 762 |
+
825,
|
| 763 |
+
592
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 5
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "Generative model: ",
|
| 770 |
+
"bbox": [
|
| 771 |
+
174,
|
| 772 |
+
599,
|
| 773 |
+
295,
|
| 774 |
+
612
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 5
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "- FearNet (Kemker & Kanan, 2017) : uses a pretrained ResNet48 features extractor. FearNet is trained with a warm-up phase. Namely, the network is first trained with the all the first 50 classes of CIFAR-100, and subsequently learns the next 50 classes one by one in a continual fashion. ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
174,
|
| 783 |
+
613,
|
| 784 |
+
825,
|
| 785 |
+
655
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 5
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "Coreset-based models: ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
174,
|
| 794 |
+
661,
|
| 795 |
+
323,
|
| 796 |
+
675
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 5
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "- iCaRL (Rebuffi et al., 2017) : retrains a ResNet32 architecture on new data with a distillation loss. - End-to-end IL (Castro et al., 2018) $:$ retrains a ResNet32 architecture on new data with a crossentropy together with distillation loss. ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
174,
|
| 805 |
+
674,
|
| 806 |
+
825,
|
| 807 |
+
717
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 5
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Analysis ",
|
| 814 |
+
"text_level": 1,
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
734,
|
| 818 |
+
235,
|
| 819 |
+
750
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 5
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "The data is provided by batch of classes. When the training on a batch $( \\mathcal { D } _ { i } )$ is completed, the accuracy of the classifier is evaluated on the test data of classes from all previous batches $( \\mathcal { D } _ { 1 } , . . . , \\mathcal { D } _ { i } )$ . We report the results from the literature with various size of batch when they are available. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
756,
|
| 829 |
+
823,
|
| 830 |
+
797
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 5
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "OvA-INN uses the weights of a ResNet32 pretrained on ImageNet and never update them. FearNet also uses pretrained weights from a ResNet. iCaRL and End-to-End IL use this architecture but retrain it from scratch at the beginning and fine-tune it with each new batch. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
176,
|
| 839 |
+
804,
|
| 840 |
+
821,
|
| 841 |
+
847
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 5
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "The performance of the Nearest prototype baseline proves that there is high benefit in using pretrained features extractor on this kind of dataset. FearNet shows better performance by taking advantage of a warm-up phase with 50 classes. Still, we can see that OvA-INN is able to clearly outperform all the other approaches, reaching $72 \\%$ accuracy after training on 100 classes. We can see that the performances of methods retraining ResNet from scratch (iCaRL and End-to-End IL) ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
854,
|
| 851 |
+
823,
|
| 852 |
+
924
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 5
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "image",
|
| 858 |
+
"img_path": "images/1ba544fef104c5dd97354bd844d1fe64150594f8aa4df798546373c629f875ae.jpg",
|
| 859 |
+
"image_caption": [
|
| 860 |
+
"Figure 2: Comparison of the accuracy of several Continual Learning methods on CIFAR-100 with various batches of classes. FearNet’s curve has no point before 50 classes because the first 50 classes are learned in a non-continous fashion. "
|
| 861 |
+
],
|
| 862 |
+
"image_footnote": [],
|
| 863 |
+
"bbox": [
|
| 864 |
+
215,
|
| 865 |
+
106,
|
| 866 |
+
779,
|
| 867 |
+
435
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 6
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "quickly deteriorate compared to those using pretrained parameters. Even with larger batches of classes, the gap is still present. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
173,
|
| 876 |
+
526,
|
| 877 |
+
823,
|
| 878 |
+
554
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 6
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "It can be surpising that at the end of its warm-up phase, FearNet still has an accuracy bellow OvAINN, even though it has been trained on all the data available at this point. It should be noted that FearNet is training an autoencoder and uses its encoding part as a features extractor (stacked on the ResNet) before classifying a sample. This can diminish the discriminative power of the network since it is also constrained to reproduce its input (only a single autoencoder is used for all classes). ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
174,
|
| 887 |
+
561,
|
| 888 |
+
825,
|
| 889 |
+
631
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 6
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "To further understand the effect of an Invertible Network on the feature space of a sample, we propose to project the different features spaces in 2D using t-SNE (Maaten & Hinton, 2008). We project the features of the five first classes of CIFAR-100 test set (see Figure 3). Classes that are already well represented in a cluster with ResNet features (like violet class) are clearly separated from the clusters of Invertible Networks. Classes represented with ambiguity with ResNet features (like light green and red) are better clustered in the Invertible Network space. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
637,
|
| 899 |
+
825,
|
| 900 |
+
722
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 6
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "5 DISCUSSION ",
|
| 907 |
+
"text_level": 1,
|
| 908 |
+
"bbox": [
|
| 909 |
+
176,
|
| 910 |
+
743,
|
| 911 |
+
310,
|
| 912 |
+
760
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 6
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "A limiting factor in our approach is the necessity to add a new network each time one wants to learn a new class. This makes the memory and computational cost of OvA-INN linear with the number of classes. Recent works in networks merging could alleviate the memory issue by sharing weights (Chou et al., 2018) or relying on weights superposition (Cheung et al., 2019). This being said, we showed that Ova-INN was able to achieve superior accuracy on CIFAR-100 class-by-class training than approaches reported in the literature, while using less parameters. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
776,
|
| 922 |
+
825,
|
| 923 |
+
861
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 6
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Another constraint of using Invertible Networks is to keep the size of the output equal to the size of the input. When one wants to apply a features extractor with a high number of output channels, it can have a very negative impact on the memory consumption of the invertible layers. Feature Selection or Feature Aggregation techniques may help to alleviate this issue (Tang et al., 2014). ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
176,
|
| 932 |
+
867,
|
| 933 |
+
825,
|
| 934 |
+
924
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 6
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "image",
|
| 940 |
+
"img_path": "images/8240c52921b53eac8428576bec9b09b1519e4387d4ff5ef7cd1dcc1943ce5920.jpg",
|
| 941 |
+
"image_caption": [
|
| 942 |
+
"Figure 3: t-SNE projections of features spaces for five classes from CIFAR-100 test set (colors are given by the ground truth). (a): features space before applying Invertible Networks (black crosses are the clusters centers). $( b ) , ( c ) , ( d ) , ( e ) , ( f )$ : each features space after the Invertible Network of each class. The samples of a class represented by a network are clustered around the zero vector (black cross) whilst the samples from other classes appear further away from the cluster. Another visualization highlighting the differences between OvA-INN and Nearest Prototype is presented in Appendix D. "
|
| 943 |
+
],
|
| 944 |
+
"image_footnote": [],
|
| 945 |
+
"bbox": [
|
| 946 |
+
199,
|
| 947 |
+
103,
|
| 948 |
+
812,
|
| 949 |
+
388
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 7
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Finally, we can notice that our approach is highly dependent on the quality of the pretrained features extractor. In our CIFAR-100, we had to rescale the input to make it compatible with ResNet. Nonetheless, recent research works show promising results in training features extractors in very efficient ways (Asano et al., 2019). Because it does not require to retrain its features extractor, we can foresee better performance in class-by-class learning with OvA-INN as new and more efficient features extractors are discovered. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
541,
|
| 959 |
+
825,
|
| 960 |
+
626
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 7
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "As a future research direction, one could try to incorporate our method in a Reinforcement Learning scenario where various situations can be learned separately in a first phase (each situation with its own Invertible Network). Then during a second phase where any situation can appear without the agent explicitly told in which situation it is in, the agent could rely on previously trained Invertible Networks to improve its policy. This setting is closely related to Options in Reinforcement Learning. Also, in a regression setting, one can add a fully connected layer after an intermediate layer of an Invertible Network and use it to predict the output for the trained class. At test time, one only need to read the output from the regression layer of the Invertible Network that had the highest confidence. ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
174,
|
| 969 |
+
633,
|
| 970 |
+
825,
|
| 971 |
+
744
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 7
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "6 CONCLUSION ",
|
| 978 |
+
"text_level": 1,
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
784,
|
| 982 |
+
318,
|
| 983 |
+
799
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 7
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "In this paper, we proposed a new approach for the challenging problem of single-head Continual Learning without storing any of the previous data. On top of a fixed pretrained neural network, we trained for each class an Invertible Network to refine the extracted features and maximize the loglikelihood on samples from its class. This way, we show that we can predict the class of a sample by running each Invertible Network and identifying the one with the highest log-likelihood. This setting allows us to take full benefit of pretrained models, which results in very good performances on the class-by-class training of CIFAR-100 compared to prior works. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
174,
|
| 992 |
+
825,
|
| 993 |
+
825,
|
| 994 |
+
924
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 7
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "REFERENCES ",
|
| 1001 |
+
"text_level": 1,
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
102,
|
| 1005 |
+
287,
|
| 1006 |
+
117
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 8
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 139–154, 2018. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
174,
|
| 1015 |
+
126,
|
| 1016 |
+
821,
|
| 1017 |
+
169
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 8
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Yuki M Asano, Christian Rupprecht, and Andrea Vedaldi. Surprising effectiveness of few-image unsupervised feature learning. arXiv preprint arXiv:1904.13132, 2019. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
169,
|
| 1026 |
+
176,
|
| 1027 |
+
823,
|
| 1028 |
+
207
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 8
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Francisco M Castro, Manuel J Mar´ın-Jimenez, Nicol ´ as Guil, Cordelia Schmid, and Karteek Alahari.´ End-to-end incremental learning. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 233–248, 2018. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
173,
|
| 1037 |
+
215,
|
| 1038 |
+
825,
|
| 1039 |
+
258
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 8
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Arslan Chaudhry, Puneet K Dokania, Thalaiyasingam Ajanthan, and Philip HS Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. arXiv preprint arXiv:1801.10112, 2018. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
171,
|
| 1048 |
+
267,
|
| 1049 |
+
823,
|
| 1050 |
+
309
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 8
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Brian Cheung, Alex Terekhov, Yubei Chen, Pulkit Agrawal, and Bruno A. Olshausen. Superposition of many models into one. CoRR, abs/1902.05522, 2019. URL http://arxiv.org/abs/ 1902.05522. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
173,
|
| 1059 |
+
318,
|
| 1060 |
+
826,
|
| 1061 |
+
361
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 8
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Yi-Min Chou, Yi-Ming Chan, Jia-Hong Lee, Chih-Yi Chiu, and Chu-Song Chen. Unifying and merging well-trained deep neural networks for inference stage. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, pp. 2049– 2056. International Joint Conferences on Artificial Intelligence Organization, 7 2018. doi: 10.24963/ijcai.2018/283. URL https://doi.org/10.24963/ijcai.2018/283. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
173,
|
| 1070 |
+
369,
|
| 1071 |
+
825,
|
| 1072 |
+
441
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 8
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Laurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-linear independent components estimation. arXiv preprint arXiv:1410.8516, 2014. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
174,
|
| 1081 |
+
450,
|
| 1082 |
+
823,
|
| 1083 |
+
479
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 8
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Sebastian Farquhar and Yarin Gal. Towards robust evaluations of continual learning. arXiv preprint arXiv:1805.09733, 2018. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
174,
|
| 1092 |
+
488,
|
| 1093 |
+
821,
|
| 1094 |
+
517
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 8
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. 2016. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
174,
|
| 1103 |
+
525,
|
| 1104 |
+
678,
|
| 1105 |
+
541
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 8
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Wenpeng Hu, Zhou Lin, Bing Liu, Chongyang Tao, Zhengwei Tao, Jinwen Ma, Dongyan Zhao, and Rui Yan. Overcoming catastrophic forgetting via model adaptation. 2018. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
174,
|
| 1114 |
+
549,
|
| 1115 |
+
825,
|
| 1116 |
+
579
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 8
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Ronald Kemker and Christopher Kanan. FearNet: Brain-inspired model for incremental learning. arXiv preprint arXiv:1711.10563, 2017. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
173,
|
| 1125 |
+
588,
|
| 1126 |
+
823,
|
| 1127 |
+
617
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 8
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
169,
|
| 1136 |
+
626,
|
| 1137 |
+
825,
|
| 1138 |
+
655
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 8
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, pp. 201611835, 2017. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
173,
|
| 1147 |
+
662,
|
| 1148 |
+
825,
|
| 1149 |
+
719
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 8
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Yann LeCun, Leon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
173,
|
| 1158 |
+
729,
|
| 1159 |
+
823,
|
| 1160 |
+
758
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 8
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Kimin Lee, Honglak Lee, Kibok Lee, and Jinwoo Shin. Training confidence-calibrated classifiers for detecting out-of-distribution samples. arXiv preprint arXiv:1711.09325, 2017. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
171,
|
| 1169 |
+
767,
|
| 1170 |
+
823,
|
| 1171 |
+
796
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 8
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Yu Li, Zhongxiao Li, Lizhong Ding, Peng Yang, Yuhui Hu, Wei Chen, and Xin Gao. SupportNet: solving catastrophic forgetting in class incremental learning with support data. arXiv preprint arXiv:1806.02942, 2018. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
173,
|
| 1180 |
+
805,
|
| 1181 |
+
825,
|
| 1182 |
+
848
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 8
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935–2947, 2018. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
173,
|
| 1191 |
+
857,
|
| 1192 |
+
823,
|
| 1193 |
+
886
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 8
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. arXiv preprint arXiv:1706.02690, 2017. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
174,
|
| 1202 |
+
895,
|
| 1203 |
+
821,
|
| 1204 |
+
924
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 8
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "David Lopez-Paz et al. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, pp. 6467–6476, 2017. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
171,
|
| 1213 |
+
103,
|
| 1214 |
+
825,
|
| 1215 |
+
132
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 9
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of machine learning research, 9(Nov):2579–2605, 2008. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
173,
|
| 1224 |
+
141,
|
| 1225 |
+
823,
|
| 1226 |
+
171
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 9
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. 24:109–165, 1989. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
171,
|
| 1235 |
+
180,
|
| 1236 |
+
825,
|
| 1237 |
+
210
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 9
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. arXiv preprint arXiv:1802.07569, 2018. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
173,
|
| 1246 |
+
218,
|
| 1247 |
+
823,
|
| 1248 |
+
248
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 9
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "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. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
173,
|
| 1257 |
+
257,
|
| 1258 |
+
825,
|
| 1259 |
+
301
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 9
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "Amal Rannen, Rahaf Aljundi, Matthew B Blaschko, and Tinne Tuytelaars. Encoder based lifelong learning. pp. 1320–1328, 2017. ",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
174,
|
| 1268 |
+
310,
|
| 1269 |
+
823,
|
| 1270 |
+
339
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 9
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. iCaRL: Incremental classifier and representation learning. pp. 5533–5542, 2017. ",
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
173,
|
| 1279 |
+
348,
|
| 1280 |
+
823,
|
| 1281 |
+
378
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 9
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016. ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
174,
|
| 1290 |
+
387,
|
| 1291 |
+
823,
|
| 1292 |
+
430
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 9
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. pp. 2990–2999, 2017. ",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
171,
|
| 1301 |
+
439,
|
| 1302 |
+
823,
|
| 1303 |
+
469
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 9
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. pp. 4077–4087, 2017. ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
171,
|
| 1312 |
+
478,
|
| 1313 |
+
825,
|
| 1314 |
+
508
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 9
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "Jiliang Tang, Salem Alelyani, and Huan Liu. Feature selection for classification: A review. Data classification: Algorithms and applications, pp. 37, 2014. ",
|
| 1321 |
+
"bbox": [
|
| 1322 |
+
169,
|
| 1323 |
+
517,
|
| 1324 |
+
825,
|
| 1325 |
+
547
|
| 1326 |
+
],
|
| 1327 |
+
"page_idx": 9
|
| 1328 |
+
},
|
| 1329 |
+
{
|
| 1330 |
+
"type": "text",
|
| 1331 |
+
"text": "Gido M. van de Ven and Andreas S. Tolias. Three scenarios for continual learning. CoRR, abs/1904.07734, 2019. URL http://arxiv.org/abs/1904.07734. ",
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
174,
|
| 1334 |
+
555,
|
| 1335 |
+
823,
|
| 1336 |
+
585
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 9
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. pp. 3630–3638, 2016. ",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
174,
|
| 1345 |
+
594,
|
| 1346 |
+
821,
|
| 1347 |
+
625
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 9
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "text",
|
| 1353 |
+
"text": "Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. arXiv preprint arXiv:1708.01547, 2017. ",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
173,
|
| 1356 |
+
633,
|
| 1357 |
+
823,
|
| 1358 |
+
662
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 9
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. 2018. ",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
173,
|
| 1367 |
+
671,
|
| 1368 |
+
823,
|
| 1369 |
+
700
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 9
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. pp. 3987–3995, 2017. ",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
174,
|
| 1378 |
+
710,
|
| 1379 |
+
823,
|
| 1380 |
+
739
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 9
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "A MEMORY USAGE ",
|
| 1387 |
+
"text_level": 1,
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
176,
|
| 1390 |
+
767,
|
| 1391 |
+
351,
|
| 1392 |
+
784
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 9
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "A.1 MNIST ",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
174,
|
| 1401 |
+
797,
|
| 1402 |
+
274,
|
| 1403 |
+
814
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 9
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "OvA-INN uses 2 blocks with 2 layers ( $f _ { 1 }$ and $f _ { 2 , }$ ) for 10 classes. The weight matrix of each layer $W$ is a product of two matrices $A$ and $B$ of size $3 9 2 \\times 1 6$ and $1 6 \\times 3 9 2$ . The memory required for OvA-INN is : ",
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
174,
|
| 1412 |
+
824,
|
| 1413 |
+
825,
|
| 1414 |
+
866
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 9
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "equation",
|
| 1420 |
+
"img_path": "images/2a960a87a85f038729480dc6246da9d6350148811a9da47285b6740929ac0a93.jpg",
|
| 1421 |
+
"text": "$$\nS _ { \\mathrm { O v A - I N N , M N I S T } } = ( 3 9 2 \\times 1 6 \\times 2 + 3 9 2 ) \\times 2 \\times 2 \\times 1 0 = 5 1 7 4 4 0\n$$",
|
| 1422 |
+
"text_format": "latex",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
171,
|
| 1425 |
+
872,
|
| 1426 |
+
607,
|
| 1427 |
+
890
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 9
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "text",
|
| 1433 |
+
"text": "We set the coreset size of iCaRL and SupportNet to $s = 8 0 0$ with each image of size $2 8 \\times 2 8$ , the convolutional network is composed of a layer of 64 channels with $5 \\times 5$ kernel, a layer of 32 ",
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
173,
|
| 1436 |
+
895,
|
| 1437 |
+
825,
|
| 1438 |
+
924
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 9
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "channels with $5 \\times 5$ kernel, a fully-connected layer with 100 channels applied on an input of size $7 \\times 7$ and a final layer of 10 channels : ",
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
174,
|
| 1447 |
+
103,
|
| 1448 |
+
823,
|
| 1449 |
+
132
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 10
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "${ \\mathfrak { H } } _ { \\mathrm { i C a R , M N I S T } } = 2 8 \\times 2 8 \\times 8 0 0 + ( 5 \\times 5 + 1 ) \\times 3 2 + ( 5 \\times 5 + 1 ) \\times 6 4 + ( 7 \\times 7 \\times 6 4 + 1 ) \\times 1 0 0 + ( 1 \\times 1 0 0 ) \\times 2 = 2 4$ $( 1 0 0 + 1 ) \\times 1 0 = 9 4 4 4 0 6$ ",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
174,
|
| 1458 |
+
137,
|
| 1459 |
+
826,
|
| 1460 |
+
167
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 10
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "A.2 CIFAR-100 ",
|
| 1467 |
+
"text_level": 1,
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
176,
|
| 1470 |
+
183,
|
| 1471 |
+
303,
|
| 1472 |
+
196
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 10
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "text",
|
| 1478 |
+
"text": "Since every method rely on a ResNet32 (around 20M parameters) to compute their features (except FearNet which uses ResNet48). We do not count the features extractor in the memory consumption. ",
|
| 1479 |
+
"bbox": [
|
| 1480 |
+
174,
|
| 1481 |
+
208,
|
| 1482 |
+
823,
|
| 1483 |
+
238
|
| 1484 |
+
],
|
| 1485 |
+
"page_idx": 10
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"type": "text",
|
| 1489 |
+
"text": "OvA-INN uses 2 blocks with 2 layers ( $f _ { 1 }$ and $f _ { 2 } ^ { \\mathrm { ~ ~ } } ,$ ) for 100 classes. The weight matrix of each layer $W$ is a product of two matrices $A$ and $B$ of size $2 5 6 \\times 3 2$ and $3 2 \\times 2 5 6$ . The memory required is : ",
|
| 1490 |
+
"bbox": [
|
| 1491 |
+
174,
|
| 1492 |
+
244,
|
| 1493 |
+
823,
|
| 1494 |
+
272
|
| 1495 |
+
],
|
| 1496 |
+
"page_idx": 10
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"type": "equation",
|
| 1500 |
+
"img_path": "images/bb00d4db58cce288315dcbc5ddb3dca4efb28c31a6ec23bb05022fa76a28fe5c.jpg",
|
| 1501 |
+
"text": "$$\nS _ { \\mathrm { O v A - I N N , C I F A R } } = ( 2 5 6 \\times 3 2 \\times 2 + 2 5 6 ) \\times 2 \\times 2 \\times 1 0 0 = 6 6 5 6 0 0 0\n$$",
|
| 1502 |
+
"text_format": "latex",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
173,
|
| 1505 |
+
279,
|
| 1506 |
+
617,
|
| 1507 |
+
296
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 10
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "We use the default coreset size $s = 2 0 0 0$ of iCaRL and End-to-End $\\mathrm { I L }$ with each image of size $3 2 \\times 3 2$ : ",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
174,
|
| 1516 |
+
300,
|
| 1517 |
+
823,
|
| 1518 |
+
329
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 10
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "equation",
|
| 1524 |
+
"img_path": "images/ffa383e4f8dde4eef1832f78278c40de6c4f29c0f6332536cbb50b4311fe6484.jpg",
|
| 1525 |
+
"text": "$$\nS _ { \\mathrm { i C a R L , C I F A R } } = 3 2 \\times 3 2 \\times 3 \\times 2 0 0 0 = 6 1 4 4 0 0 0\n$$",
|
| 1526 |
+
"text_format": "latex",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
171,
|
| 1529 |
+
335,
|
| 1530 |
+
488,
|
| 1531 |
+
352
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 10
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "B HYPERPARAMETERS SETTINGS ",
|
| 1538 |
+
"text_level": 1,
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
176,
|
| 1541 |
+
371,
|
| 1542 |
+
467,
|
| 1543 |
+
386
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 10
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "text",
|
| 1549 |
+
"text": "Our implementation is done with Pytorch (Paszke et al., 2017), using the Adam optimizer (Kingma & Ba, 2014) and a scheduler that reduces the learning rate by a factor of 0.5 when the loss stops improving. We use the resize transformation from torchvision with the default bilinear interpolation. ",
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
174,
|
| 1552 |
+
400,
|
| 1553 |
+
826,
|
| 1554 |
+
443
|
| 1555 |
+
],
|
| 1556 |
+
"page_idx": 10
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"type": "table",
|
| 1560 |
+
"img_path": "images/3531ccd04d69ceeb5b243eee02a993c4d046aa9b1c5b929f8c8cd5f3c7bb79e3.jpg",
|
| 1561 |
+
"table_caption": [
|
| 1562 |
+
"Table 2: MNIST Hyperparameters "
|
| 1563 |
+
],
|
| 1564 |
+
"table_footnote": [],
|
| 1565 |
+
"table_body": "<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Learning Rate</td><td>0.002</td></tr><tr><td>Number of epochs</td><td>200</td></tr><tr><td>Weight decay</td><td>0.0</td></tr><tr><td>Patience</td><td>20</td></tr></table>",
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
235,
|
| 1568 |
+
478,
|
| 1569 |
+
442,
|
| 1570 |
+
564
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 10
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "table",
|
| 1576 |
+
"img_path": "images/0b86cb57ae8e14bf8c5dd0c03635932c1e9c643239fd82e81a1d49897c164f3f.jpg",
|
| 1577 |
+
"table_caption": [
|
| 1578 |
+
"Table 3: CIFAR-100 Hyperparameters "
|
| 1579 |
+
],
|
| 1580 |
+
"table_footnote": [],
|
| 1581 |
+
"table_body": "<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td></td><td></td></tr><tr><td>Learning Rate</td><td>0.002</td></tr><tr><td>Number of epochs Weight decay</td><td>1000 0.0002</td></tr><tr><td>Patience</td><td>30</td></tr></table>",
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
555,
|
| 1584 |
+
478,
|
| 1585 |
+
764,
|
| 1586 |
+
565
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 10
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"type": "table",
|
| 1592 |
+
"img_path": "images/85c9d3a15f6fbe4495ec6fd998025d6c17217d5cc5cdd553b10cc00f28507d3b.jpg",
|
| 1593 |
+
"table_caption": [
|
| 1594 |
+
"Table 4: t-SNE Hyperparameters "
|
| 1595 |
+
],
|
| 1596 |
+
"table_footnote": [],
|
| 1597 |
+
"table_body": "<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td></td><td></td></tr><tr><td>Perplexity</td><td>15.0</td></tr><tr><td>Principal Components</td><td>50</td></tr><tr><td>Steps</td><td>400</td></tr></table>",
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
385,
|
| 1600 |
+
611,
|
| 1601 |
+
612,
|
| 1602 |
+
688
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 10
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "C TASK-BY-TASK LEARNING ",
|
| 1609 |
+
"text_level": 1,
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
174,
|
| 1612 |
+
717,
|
| 1613 |
+
431,
|
| 1614 |
+
733
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 10
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "text",
|
| 1620 |
+
"text": "We provide additional experimental results on the multi-head learning of CIFAR100 with 10 tasks of 10 classes each. The training procedure of OvA-INN does not change from the usual single-head learning but, at test time, the evaluation is processed by batches of 10 classes. The accuracy score is the average accuracy over all 10 tasks. We report the results from (Yoon et al., 2017). Although our approach is able to match state-of-the-art results in accuracy, it should be noticed that it is drastically more memory and time consuming than the other baselines. ",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
173,
|
| 1623 |
+
747,
|
| 1624 |
+
826,
|
| 1625 |
+
832
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 10
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "table",
|
| 1631 |
+
"img_path": "images/a76702783845620b847ec7d8ac05d4a5100b5f9e8cb9184db8341dc0d9bbc787.jpg",
|
| 1632 |
+
"table_caption": [],
|
| 1633 |
+
"table_footnote": [],
|
| 1634 |
+
"table_body": "<table><tr><td>Model</td><td>Accuracy (%)</td></tr><tr><td></td><td></td></tr><tr><td>EWC(Kirkpatrick et al., 2017)</td><td>81.34</td></tr><tr><td>Progressive Networks (Rusu et al., 2016)</td><td>88.19</td></tr><tr><td>DEN (Yoon et al., 2017)</td><td>92.25</td></tr><tr><td>OvA-INN</td><td>92.58</td></tr></table>",
|
| 1635 |
+
"bbox": [
|
| 1636 |
+
295,
|
| 1637 |
+
840,
|
| 1638 |
+
700,
|
| 1639 |
+
926
|
| 1640 |
+
],
|
| 1641 |
+
"page_idx": 10
|
| 1642 |
+
},
|
| 1643 |
+
{
|
| 1644 |
+
"type": "text",
|
| 1645 |
+
"text": "D VISUALIZATION ",
|
| 1646 |
+
"text_level": 1,
|
| 1647 |
+
"bbox": [
|
| 1648 |
+
176,
|
| 1649 |
+
102,
|
| 1650 |
+
344,
|
| 1651 |
+
117
|
| 1652 |
+
],
|
| 1653 |
+
"page_idx": 11
|
| 1654 |
+
},
|
| 1655 |
+
{
|
| 1656 |
+
"type": "text",
|
| 1657 |
+
"text": "We highlight the differences between OvA-INN and Nearest Prototype when classifying 20 classes of CIFAR-100 in Figure 4. ",
|
| 1658 |
+
"bbox": [
|
| 1659 |
+
174,
|
| 1660 |
+
133,
|
| 1661 |
+
825,
|
| 1662 |
+
162
|
| 1663 |
+
],
|
| 1664 |
+
"page_idx": 11
|
| 1665 |
+
},
|
| 1666 |
+
{
|
| 1667 |
+
"type": "image",
|
| 1668 |
+
"img_path": "images/02e4c855ccb13188bd983f8e9f0b207a784e5a6405a1adf39e60f6c338389052.jpg",
|
| 1669 |
+
"image_caption": [
|
| 1670 |
+
"Figure 4: top: t-SNE projection of the features space before applying Invertible Networks (black crosses are the clusters centers) for 20 classes from CIFAR-100 test set (colors are given by the ground truth). bottom: in blue and yellow are the samples correctly and wrongly classified by both Nearest Prototype and OvA-INN, in green the samples better classified by OvA-INN than Nearest Prototype and orange the samples better classified by Nearest Prototype than OvA-INN. "
|
| 1671 |
+
],
|
| 1672 |
+
"image_footnote": [],
|
| 1673 |
+
"bbox": [
|
| 1674 |
+
297,
|
| 1675 |
+
179,
|
| 1676 |
+
730,
|
| 1677 |
+
751
|
| 1678 |
+
],
|
| 1679 |
+
"page_idx": 11
|
| 1680 |
+
}
|
| 1681 |
+
]
|
parse/train/rJxcBpNKPr/rJxcBpNKPr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJxcBpNKPr/rJxcBpNKPr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkhxwltab/rkhxwltab.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AANN: ABSOLUTE ARTIFICIAL NEURAL NETWORK
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
This research paper describes a simplistic architecture named as AANN: Absolute Artificial Neural Network, which can be used to create highly interpretable representations of the input data. These representations are generated by penalizing the learning of the network in such a way that those learned representations correspond to the respective labels present in the labelled dataset used for supervised training; thereby, simultaneously giving the network the ability to classify the input data. The network can be used in the reverse direction to generate data that closely resembles the input by feeding in representation vectors as required. This research paper also explores the use of mathematical abs (absolute valued) functions as activation functions which constitutes the core part of this neural network architecture. Finally the results obtained on the MNIST dataset by using this technique are presented and discussed in brief.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
In the field of philosophy, there has been a principle known as ’Ockham’s Razor’ which, in a simplified relevant language states that ”Among the available multiple solutions to the same problem, the simplest one is the best one”. For instance, if there are multiple polynomial functions that fit a given data distribution, the lowest degree one would be preferred (Russell & Norvig, 2015). The technique AANN is driven by this principle. In spite of being elementary in its construction, an AANN is able to classify inputs in the forward direction while being able to generate them back in the reverse direction. It can be visualized to be doing classification in the forward direction whereas performing a regression task in the backward direction.
|
| 12 |
+
|
| 13 |
+
A standalone GAN (Generative Adversarial Network) described in Goodfellow et al. (2014) is able to create representations of the input data by using a novel technique of generating a distribution that contains the original data points as well as data points generated by the Generator part of the network; the distribution is then used by the Discriminator part of the network to classify the data points as genuine or generated. The representations generated by a GAN, although being very effective in creating undistinguishable data points, are however not interpretable and also highly entangled (Chen et al., 2016) (Makhzani et al., 2016). Using an InfoGAN, the problem of entanglement is solved by training in such a way that the network maximises mutual information within small clusters of related latent representations (Chen et al., 2016). Auto-encoder is another technique that uses the concept of encoder-decoder architecture for creating low dimensional representations of the originally very high dimensional input data points. A VAE: Variational Auto-Encoder tries to make the learned representations sparse by using the KL-divergence cost as a regularizer on the final cost of an autoencoder (Kingma & Welling, 2014). Various attempts at combining the two techniques of GAN and VAE have also been made in the unsupervised as well as semi-supervised learning directions (Makhzani et al., 2016) (Larsen et al., 2016). However, these techniques kept getting more and more complicated and somewhere in synthesizing these techniques, it is felt that the ’striving for simplicity’ principle has been neglected.
|
| 14 |
+
|
| 15 |
+
The Absolute Artificial Neural Network exploits all possible information available in the labelled training datasets to structure the learned representations of the input data. Structurally, an AANN is very similar to a feed forward Neural Network with the distinction that AANN uses the abs function as the activation function of the neurons. Due to this, all the activations produced, including the hidden layer activations, contain positive real number values. Thus, the network runs on the assumption that the input data as well as the label information comes from a positive data distribution. This doesn’t create an issue for the computer vision based tasks. However, for those situations, where this is not possible, the feature values in the input dataset can be easily moved 1 into the positive region of the multi-dimensional input data space.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Example of learned representation space created by AANN
|
| 19 |
+
|
| 20 |
+
The AANN transforms the n-dimensional input data into a space whose number of dimensions are equal to the number of labels used in the training dataset. For instance, presume that, the task is to classify images of cats and dogs and there is a labelled dataset present for achieving this classification. So, the learned representations will contain two dimensions corresponing to each label: cat and dog. The input images are transformed into 2-dimensional vectors by the AANN in such a way that the vectors are as close as possible to their ideal axes. This is achieved by constructing the cost function in a manner that it maximises the cosine value of the angle formed by the vector with its ideal axis. As a result, the representation space generated by this AANN can be visualized as shown in the Figure 1. The label axes in the representation space are mutually orthogonal; thus the resulting representation vectors become very interpretable.
|
| 21 |
+
|
| 22 |
+
# 2 AANN DESCRIPTION
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
Figure 2: Bidirectional artificial neuron: the building block of an AANN.
|
| 26 |
+
|
| 27 |
+
The AANN is constructed by using a ’Bidirectional Neuron’ (Figure 2) as the building block for the hidden layers of a preliminary feed forward neural network. This bidirectional neuron uses the abs (mathematical absolute valued) function as the activation function. The computation performed by the neuron is similar in the forward and the backward directions. In the forward direction, the computation is given by:
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
A _ { f o r w a r d } = \mid ( W _ { l e f t } * X _ { i n } ) + b _ { f o r w a r d } \mid
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
Whereas, in the backward direction, the neuron computes:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
A _ { r e v e r s e } = \mid ( W _ { r i g h t } * X _ { i n . r e v } ) + b _ { r e v e r s e } \mid
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
The weights of the hidden layers of the AANN in forward direction learn to compute a function for transforming the input data into the representation vectors. While in the reverse direction, the weights constitute a function for constructing data points that closely resemble the data points belonging to the input dataset from the representation vectors. It is highly intriguing, and at the same time enigmatic, that the same set of weights constitute two entirely distinct functions.
|
| 40 |
+
|
| 41 |
+
# 2.1 FORWARD PASS
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 3: Forward pass of the AANN.
|
| 45 |
+
|
| 46 |
+
The input n-dimensional feature vector is passed through the neural network consisting of hidden layers, constructed from the bidirectional neurons, to obtain an m-dimensional representation vector; where m corresponds to the number of labels. The obtained representation vector is then converted into a unit vector, which primarily corresponds to the cosines of the angles made by the representation vector with the coordinate axes. Finally, the forward cost ${ J } _ { f o r w a r d }$ can be computed as either the Euclidean distance or just the mean absoulte difference, which is an estimate of the euclidean distance, between the unit representation vector $Y ^ { \prime }$ and the one-hot-encoded-label vector $Y$ .
|
| 47 |
+
|
| 48 |
+
The direction cosines of the vector can be obtained by using the formula:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\begin{array} { c } { { \mathrm { i f } \ A = [ x _ { 1 } , x _ { 2 } , x _ { 3 } , . . . , x _ { m } ] ; \mathrm { t h e n } \mid \overline { { { A } } } \mid = \sqrt { x _ { 1 } ^ { 2 } + x _ { 2 } ^ { 2 } + x _ { 3 } ^ { 2 } + . . . + x _ { m } ^ { 2 } } } } \\ { { A _ { c o s i n e } = \displaystyle \frac { \overline { { { A } } } } { | \overline { { { A } } } | } } } \end{array}
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
i.e. by scaling every activation value present in the representation vector by the inverse of the magnitude of the vector. This results in a unit vector that only corresponds to the direction of the original vector. As per the forward cost, it is intended to bring this direction vector as close as possible to the ideal label coordinate axis. Due to which, the label axis encodes the input information as representation vectors of different magnitudes converge on it. [link] 2 This visualization demonstrates how information gets encoded along the label axis in various real valued magnitude ranges. The visualization was generated by interpolating a small of range of values, precisely $[ 0 - 1 0 0 )$ , along all 10 different axes corresponding to the 10 digits, present in an MNIST dataset, in a sequence by using a trained AANN. It is clearly evident from the visualization that the network creates more than just input output mappings; it creates a function of the learned representations as apparent from the smooth transitions between the different forms of a digit along it’s dedicated axis.
|
| 55 |
+
|
| 56 |
+
# 2.2 REVERSE PASS
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
Figure 4: Reverse pass of the AANN.
|
| 60 |
+
|
| 61 |
+
During the reverse pass of the AANN, the representation vector emitted by the network of hidden layers in the forward pass is fed back into the network in the reverse direction 3. The network then performs transpose operations to give off a new vector $X ^ { \prime }$ in the input $\mathbf { n }$ -dimensional space. The reverse cost $J _ { r e v e r s e }$ is computed as either the euclidean distance or the mean absolute difference between the vectors $X ^ { \prime }$ and $X$ . By defining the reverse cost in such a way, it is intended to obtain the vector $X ^ { \prime }$ as close as possible to the original input vector $X$ . This accords the network the ability to generate data points in the input space in the reverse direction.
|
| 62 |
+
|
| 63 |
+
# 2.3 TRAINING:
|
| 64 |
+
|
| 65 |
+
The network is trained by using the Backpropagation (Rumelhart et al., 1986) algorithm to minimise the final cost $J _ { f i n a l }$ . The final cost is defined as the sum of the forward and the reverse costs.
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
J _ { f i n a l } = J _ { f o r w a r d } + J _ { r e v e r s e }
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
It is ultimately this cost with respect to whom the partial derivatives of the parameters are computed. The parameters are then adjusted by using the computed derivatives according to the Adam optimization as described in Kingma & Ba (2017).
|
| 72 |
+
|
| 73 |
+
This action of performing the forward pass to calculate the forward cost followed by the reverse pass to obtain the reverse cost and then performing backpropagation on the final cost constitutes a single pass of the AANN. The term AANN: Absolute Artificial Neural Network, which is also the title of the paper, thus refers to this unified process of training a neural network in such a way.
|
| 74 |
+
|
| 75 |
+
# 3 EXPERIMENTATION WITH OTHER ACTIVATION FUNCTIONS
|
| 76 |
+
|
| 77 |
+
This section attempts to succinctly describe the process of, and findings attained by, using other activation functions for the neural network architecture described in the previous section. Since the actual reasons why these activation functions behave in the manner that they do are not fully known, it has been tried to remain fatihful while describing the experiments and not to make any unproven, or otherwise philosophical, remarks in this section. The programming implementations of these experiments have been made available at [link].
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+
Figure 5: Images generated in the reverse direction by different activation function settings of an AANN. (a) Use of ReLU activation function. (b) Linear activation function. (c) ReLU in the forward direction and Abs in the backward direction. (d) Abs forward and ReLU backward. (e) Use of Sigmoid activation function.
|
| 81 |
+
|
| 82 |
+
Upon using the ReLU, i.e. Rectified Linear-Unit, function (Nair & Hinton, 2010) as the activation function for this architecture, all the activations shoot to nan 4 in the forward direction leading to proliferation of nan in the reverse direction as well. If the Linear activation function is used, the network performs poorly in the forward direction, leading to very high classification error rates, while, the network converges to the point that it outputs the same structure as shown in $( b )$ of Figure 5 for every possible representation vector. On activating the hidden neurons with a ReLU in the forward direction and with an Abs in the reverse direction, the network kills all the activations, i.e. outputs the zero vector for every input, in the forward direction. In the backward direction, the network converges to the (c) structure. Upon using the Abs function in the forward direction and the ReLU in the backward direction, the network this time kills all the activations in the backward direction as visualized in (d). The (e) in Figure 5 is the output achieved by using the Sigmoid activation function in the network. The result obtained is very similar to the result of using Linear activation function, as in $( b )$ .
|
| 83 |
+
|
| 84 |
+
# 4 RESULTS ON MNIST DATASET
|
| 85 |
+
|
| 86 |
+
The AANN architecture was trained on the MNIST digit recognition dataset5. The dataset contains [ $\left( 2 8 \mathrm { ~ x ~ } 2 8 \right)$ pixels] sized images of handwritten digits from 0 - 9. The programming implementation using the Tensorflow framework (Abadi et al., 2015) has been made available at [link].
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
Figure 6: Cost plots obtained upon training the AANN on the MNIST digit dataset. (a) Forward cost. (b) Reverse cost. (c) Final cost.
|
| 90 |
+
|
| 91 |
+
There are 42000 images in the training set, of which, $9 5 \%$ were used for train set and remaining $5 \%$ images were used for the dev set. i.e. 39900 in the train set and 2100 in the dev set. The network was trained using the Adam (Kingma & Ba, 2017) optimizer with $\alpha = 0 . 0 0 1$ , $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ and $\epsilon = 1 0 ^ { - 8 }$ .
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
Figure 7: Outputs generated by the AANN in the reverse direction. (a) Original images fed into the network. (b) Images reconstructed by the network in the reverse direction.
|
| 95 |
+
|
| 96 |
+
The network achieved a classification accuracy score of $9 9 . 8 6 \%$ on the train set and $9 7 . 4 3 \%$ on the dev set in the forward direction. The unseen test set of this version of the dataset used contains another 28000 images for which the network achieved an accuracy of $9 7 . 6 7 1 \%$ . Figure 7 shows the images generated by the network in the reverse direction against the original images fed to the network. It is perceived that the capability of the network should not be evaluated only on the basis of it’s forward accuracy scores but should be evaluated on the basis of a unified metric that not only measures the network’s forward performance but also the faithfulness with which the network is able to generate input data points in the reverse direction.
|
| 97 |
+
|
| 98 |
+
# 5 CONCLUSIONS AND FUTURE SCOPE
|
| 99 |
+
|
| 100 |
+
This research paper put forth an elementary but potent neural network architecture, named as AANN, that has the ability to learn in the forward as well as the backward direction. It also proposed the Abs function as a viable activation function for a neural network architecture. Due to lack of hardware resources, the experimentation had to be limited to the preliminary MNIST dataset, but it is firmly believed that the technique will perform equally well upon tackling other robust datasets, because of the theoretical evidence shown in the performed experiments.
|
| 101 |
+
|
| 102 |
+
The AANN presently encodes the information in real number valued ranges across the the dedicated label axes in the the representation space. Certain regularization functions can be synthesized in order to stretch these ranges so that more information can be incorporated in them. The number of dimensions of the learned representations can be manually controlled by setting certain number of dedicated axes to a single label and by modifiying the forward cost function in such a way that the representation vectors lie inside the space generated by the coordinate axes dedicated to the ideal label. An in depth mathematical study of the Abs activation function could reveal the underlying behaviour of AANN. This forms the future scope for research.
|
| 103 |
+
|
| 104 |
+
This technique also opens up new research opportunities for considering the AANN architectural modifications to certain network architectures like Rasmus et al. (2015) for semi-supervised learning. Moreover, it would be interesting to note the implications of applying the corresponding modifications to more advanced architectures such as Conv-nets (Krizhevsky et al., 2012) and Recurrent Nets with LSTM cells (Hochreiter & Schmidhuber, 1997).
|
| 105 |
+
|
| 106 |
+
# REFERENCES
|
| 107 |
+
|
| 108 |
+
M. Abadi et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. Preliminary White Paper, 2015.
|
| 109 |
+
X. Chen et al. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. arXiv:1606.03657v1 [cs.LG], 2016.
|
| 110 |
+
I. Goodfellow et al. Generative adversarial nets. arXiv:1406.2661v1 [stat.ML], 2014.
|
| 111 |
+
S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation 9(8):1735-1780, 1997.
|
| 112 |
+
D. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv:1412.6980v9 [cs.LG], 2017.
|
| 113 |
+
D. Kingma and M. Welling. Auto-encoding variational bayes. arXiv:1312.6114v10 [stat.ML], 2014.
|
| 114 |
+
A. Krizhevsky et al. Imagenet classification with deep convolutional neural networks. In Proceedings of the Neural Information Processing Systems Conference, 2012.
|
| 115 |
+
A. Larsen et al. Autoencoding beyond pixels using a learned similarity metric. arXiv:1512.09300v2, 2016.
|
| 116 |
+
A. Makhzani et al. Adversarial autoencoders. arXiv:1511.05644v2, 2016.
|
| 117 |
+
V. Nair and G. Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27 th International Conference on Machine Learning, Haifa, Israel, 2010.
|
| 118 |
+
A. Rasmus et al. Semi-supervised learning with ladder networks. arXiv:1507.02672v2 [cs.NE], 2015.
|
| 119 |
+
D. Rumelhart et al. Learning representations by back-propagating errors. Nature, 323:533–536, October 1986.
|
| 120 |
+
S. Russell and P. Norvig. Artificial Intelligence A Modern Approach, chapter 18: Learning from examples. Person publications, 3rd edition, 2015.
|
parse/train/rkhxwltab/rkhxwltab_content_list.json
ADDED
|
@@ -0,0 +1,577 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
398,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
226
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "This research paper describes a simplistic architecture named as AANN: Absolute Artificial Neural Network, which can be used to create highly interpretable representations of the input data. These representations are generated by penalizing the learning of the network in such a way that those learned representations correspond to the respective labels present in the labelled dataset used for supervised training; thereby, simultaneously giving the network the ability to classify the input data. The network can be used in the reverse direction to generate data that closely resembles the input by feeding in representation vectors as required. This research paper also explores the use of mathematical abs (absolute valued) functions as activation functions which constitutes the core part of this neural network architecture. Finally the results obtained on the MNIST dataset by using this technique are presented and discussed in brief. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
241,
|
| 43 |
+
764,
|
| 44 |
+
407
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
434,
|
| 55 |
+
336,
|
| 56 |
+
449
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "In the field of philosophy, there has been a principle known as ’Ockham’s Razor’ which, in a simplified relevant language states that ”Among the available multiple solutions to the same problem, the simplest one is the best one”. For instance, if there are multiple polynomial functions that fit a given data distribution, the lowest degree one would be preferred (Russell & Norvig, 2015). The technique AANN is driven by this principle. In spite of being elementary in its construction, an AANN is able to classify inputs in the forward direction while being able to generate them back in the reverse direction. It can be visualized to be doing classification in the forward direction whereas performing a regression task in the backward direction. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
465,
|
| 66 |
+
825,
|
| 67 |
+
577
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "A standalone GAN (Generative Adversarial Network) described in Goodfellow et al. (2014) is able to create representations of the input data by using a novel technique of generating a distribution that contains the original data points as well as data points generated by the Generator part of the network; the distribution is then used by the Discriminator part of the network to classify the data points as genuine or generated. The representations generated by a GAN, although being very effective in creating undistinguishable data points, are however not interpretable and also highly entangled (Chen et al., 2016) (Makhzani et al., 2016). Using an InfoGAN, the problem of entanglement is solved by training in such a way that the network maximises mutual information within small clusters of related latent representations (Chen et al., 2016). Auto-encoder is another technique that uses the concept of encoder-decoder architecture for creating low dimensional representations of the originally very high dimensional input data points. A VAE: Variational Auto-Encoder tries to make the learned representations sparse by using the KL-divergence cost as a regularizer on the final cost of an autoencoder (Kingma & Welling, 2014). Various attempts at combining the two techniques of GAN and VAE have also been made in the unsupervised as well as semi-supervised learning directions (Makhzani et al., 2016) (Larsen et al., 2016). However, these techniques kept getting more and more complicated and somewhere in synthesizing these techniques, it is felt that the ’striving for simplicity’ principle has been neglected. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
583,
|
| 77 |
+
825,
|
| 78 |
+
819
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The Absolute Artificial Neural Network exploits all possible information available in the labelled training datasets to structure the learned representations of the input data. Structurally, an AANN is very similar to a feed forward Neural Network with the distinction that AANN uses the abs function as the activation function of the neurons. Due to this, all the activations produced, including the hidden layer activations, contain positive real number values. Thus, the network runs on the assumption that the input data as well as the label information comes from a positive data distribution. This doesn’t create an issue for the computer vision based tasks. However, for those situations, where this is not possible, the feature values in the input dataset can be easily moved 1 into the positive region of the multi-dimensional input data space. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
827,
|
| 88 |
+
823,
|
| 89 |
+
922
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
169,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/9e516f408ea128ec3cb7efc48252ab9cd78db307a514d2b33acbf6439cc47ff0.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Example of learned representation space created by AANN "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
351,
|
| 113 |
+
147,
|
| 114 |
+
647,
|
| 115 |
+
281
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "The AANN transforms the n-dimensional input data into a space whose number of dimensions are equal to the number of labels used in the training dataset. For instance, presume that, the task is to classify images of cats and dogs and there is a labelled dataset present for achieving this classification. So, the learned representations will contain two dimensions corresponing to each label: cat and dog. The input images are transformed into 2-dimensional vectors by the AANN in such a way that the vectors are as close as possible to their ideal axes. This is achieved by constructing the cost function in a manner that it maximises the cosine value of the angle formed by the vector with its ideal axis. As a result, the representation space generated by this AANN can be visualized as shown in the Figure 1. The label axes in the representation space are mutually orthogonal; thus the resulting representation vectors become very interpretable. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
330,
|
| 125 |
+
825,
|
| 126 |
+
470
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "2 AANN DESCRIPTION ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
176,
|
| 136 |
+
491,
|
| 137 |
+
383,
|
| 138 |
+
507
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "image",
|
| 144 |
+
"img_path": "images/359604c9065dac6121f4e5adc1c9c2d3e1623fbc026483f0b41d9cdb344763bd.jpg",
|
| 145 |
+
"image_caption": [
|
| 146 |
+
"Figure 2: Bidirectional artificial neuron: the building block of an AANN. "
|
| 147 |
+
],
|
| 148 |
+
"image_footnote": [],
|
| 149 |
+
"bbox": [
|
| 150 |
+
351,
|
| 151 |
+
529,
|
| 152 |
+
647,
|
| 153 |
+
680
|
| 154 |
+
],
|
| 155 |
+
"page_idx": 1
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "text",
|
| 159 |
+
"text": "The AANN is constructed by using a ’Bidirectional Neuron’ (Figure 2) as the building block for the hidden layers of a preliminary feed forward neural network. This bidirectional neuron uses the abs (mathematical absolute valued) function as the activation function. The computation performed by the neuron is similar in the forward and the backward directions. In the forward direction, the computation is given by: ",
|
| 160 |
+
"bbox": [
|
| 161 |
+
173,
|
| 162 |
+
732,
|
| 163 |
+
825,
|
| 164 |
+
803
|
| 165 |
+
],
|
| 166 |
+
"page_idx": 1
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"type": "equation",
|
| 170 |
+
"img_path": "images/52e31640fd0dfdb9e07a7b6b1887169e9737451238b3dad3440d1329ed0ae0f6.jpg",
|
| 171 |
+
"text": "$$\nA _ { f o r w a r d } = \\mid ( W _ { l e f t } * X _ { i n } ) + b _ { f o r w a r d } \\mid\n$$",
|
| 172 |
+
"text_format": "latex",
|
| 173 |
+
"bbox": [
|
| 174 |
+
361,
|
| 175 |
+
813,
|
| 176 |
+
635,
|
| 177 |
+
832
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "Whereas, in the backward direction, the neuron computes: ",
|
| 184 |
+
"bbox": [
|
| 185 |
+
174,
|
| 186 |
+
842,
|
| 187 |
+
557,
|
| 188 |
+
857
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "equation",
|
| 194 |
+
"img_path": "images/beba11b70bed727e4e4d283b80f952e3ffadfba2a4f97f93726aeae281ebb7ad.jpg",
|
| 195 |
+
"text": "$$\nA _ { r e v e r s e } = \\mid ( W _ { r i g h t } * X _ { i n . r e v } ) + b _ { r e v e r s e } \\mid\n$$",
|
| 196 |
+
"text_format": "latex",
|
| 197 |
+
"bbox": [
|
| 198 |
+
351,
|
| 199 |
+
867,
|
| 200 |
+
647,
|
| 201 |
+
886
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "The weights of the hidden layers of the AANN in forward direction learn to compute a function for transforming the input data into the representation vectors. While in the reverse direction, the weights constitute a function for constructing data points that closely resemble the data points belonging to the input dataset from the representation vectors. It is highly intriguing, and at the same time enigmatic, that the same set of weights constitute two entirely distinct functions. ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
173,
|
| 210 |
+
103,
|
| 211 |
+
825,
|
| 212 |
+
174
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 2
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "2.1 FORWARD PASS ",
|
| 219 |
+
"text_level": 1,
|
| 220 |
+
"bbox": [
|
| 221 |
+
174,
|
| 222 |
+
190,
|
| 223 |
+
323,
|
| 224 |
+
204
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "image",
|
| 230 |
+
"img_path": "images/dff8d6b8ccfc906505cac767387504510ebae557eaf0ac4af2e6af9224969142.jpg",
|
| 231 |
+
"image_caption": [
|
| 232 |
+
"Figure 3: Forward pass of the AANN. "
|
| 233 |
+
],
|
| 234 |
+
"image_footnote": [],
|
| 235 |
+
"bbox": [
|
| 236 |
+
171,
|
| 237 |
+
219,
|
| 238 |
+
826,
|
| 239 |
+
431
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "The input n-dimensional feature vector is passed through the neural network consisting of hidden layers, constructed from the bidirectional neurons, to obtain an m-dimensional representation vector; where m corresponds to the number of labels. The obtained representation vector is then converted into a unit vector, which primarily corresponds to the cosines of the angles made by the representation vector with the coordinate axes. Finally, the forward cost ${ J } _ { f o r w a r d }$ can be computed as either the Euclidean distance or just the mean absoulte difference, which is an estimate of the euclidean distance, between the unit representation vector $Y ^ { \\prime }$ and the one-hot-encoded-label vector $Y$ . ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
481,
|
| 249 |
+
825,
|
| 250 |
+
579
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "The direction cosines of the vector can be obtained by using the formula: ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
585,
|
| 260 |
+
651,
|
| 261 |
+
601
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "equation",
|
| 267 |
+
"img_path": "images/05bb924eb64a7f0f7de31aaaa5859cf6a66ad9e1b0a6816fcc28d2894056ccbc.jpg",
|
| 268 |
+
"text": "$$\n\\begin{array} { c } { { \\mathrm { i f } \\ A = [ x _ { 1 } , x _ { 2 } , x _ { 3 } , . . . , x _ { m } ] ; \\mathrm { t h e n } \\mid \\overline { { { A } } } \\mid = \\sqrt { x _ { 1 } ^ { 2 } + x _ { 2 } ^ { 2 } + x _ { 3 } ^ { 2 } + . . . + x _ { m } ^ { 2 } } } } \\\\ { { A _ { c o s i n e } = \\displaystyle \\frac { \\overline { { { A } } } } { | \\overline { { { A } } } | } } } \\end{array}\n$$",
|
| 269 |
+
"text_format": "latex",
|
| 270 |
+
"bbox": [
|
| 271 |
+
281,
|
| 272 |
+
609,
|
| 273 |
+
722,
|
| 274 |
+
666
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "i.e. by scaling every activation value present in the representation vector by the inverse of the magnitude of the vector. This results in a unit vector that only corresponds to the direction of the original vector. As per the forward cost, it is intended to bring this direction vector as close as possible to the ideal label coordinate axis. Due to which, the label axis encodes the input information as representation vectors of different magnitudes converge on it. [link] 2 This visualization demonstrates how information gets encoded along the label axis in various real valued magnitude ranges. The visualization was generated by interpolating a small of range of values, precisely $[ 0 - 1 0 0 )$ , along all 10 different axes corresponding to the 10 digits, present in an MNIST dataset, in a sequence by using a trained AANN. It is clearly evident from the visualization that the network creates more than just input output mappings; it creates a function of the learned representations as apparent from the smooth transitions between the different forms of a digit along it’s dedicated axis. ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
173,
|
| 283 |
+
672,
|
| 284 |
+
825,
|
| 285 |
+
828
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "2.2 REVERSE PASS ",
|
| 292 |
+
"text_level": 1,
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
103,
|
| 296 |
+
318,
|
| 297 |
+
117
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 3
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "image",
|
| 303 |
+
"img_path": "images/3b043c784a3574cf25fb0579037985e41ccf00771bd8816517c2f231a45baf65.jpg",
|
| 304 |
+
"image_caption": [
|
| 305 |
+
"Figure 4: Reverse pass of the AANN. "
|
| 306 |
+
],
|
| 307 |
+
"image_footnote": [],
|
| 308 |
+
"bbox": [
|
| 309 |
+
204,
|
| 310 |
+
130,
|
| 311 |
+
789,
|
| 312 |
+
400
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "During the reverse pass of the AANN, the representation vector emitted by the network of hidden layers in the forward pass is fed back into the network in the reverse direction 3. The network then performs transpose operations to give off a new vector $X ^ { \\prime }$ in the input $\\mathbf { n }$ -dimensional space. The reverse cost $J _ { r e v e r s e }$ is computed as either the euclidean distance or the mean absolute difference between the vectors $X ^ { \\prime }$ and $X$ . By defining the reverse cost in such a way, it is intended to obtain the vector $X ^ { \\prime }$ as close as possible to the original input vector $X$ . This accords the network the ability to generate data points in the input space in the reverse direction. ",
|
| 319 |
+
"bbox": [
|
| 320 |
+
173,
|
| 321 |
+
446,
|
| 322 |
+
825,
|
| 323 |
+
545
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 3
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "2.3 TRAINING: ",
|
| 330 |
+
"text_level": 1,
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
560,
|
| 334 |
+
290,
|
| 335 |
+
574
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "The network is trained by using the Backpropagation (Rumelhart et al., 1986) algorithm to minimise the final cost $J _ { f i n a l }$ . The final cost is defined as the sum of the forward and the reverse costs. ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
173,
|
| 344 |
+
587,
|
| 345 |
+
823,
|
| 346 |
+
614
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "equation",
|
| 352 |
+
"img_path": "images/3eb086ab7bb51613bc5a10d3cacc65f3e375589e3d29505896d1ef4e082b3cce.jpg",
|
| 353 |
+
"text": "$$\nJ _ { f i n a l } = J _ { f o r w a r d } + J _ { r e v e r s e }\n$$",
|
| 354 |
+
"text_format": "latex",
|
| 355 |
+
"bbox": [
|
| 356 |
+
398,
|
| 357 |
+
625,
|
| 358 |
+
598,
|
| 359 |
+
642
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "It is ultimately this cost with respect to whom the partial derivatives of the parameters are computed. The parameters are then adjusted by using the computed derivatives according to the Adam optimization as described in Kingma & Ba (2017). ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
173,
|
| 368 |
+
650,
|
| 369 |
+
825,
|
| 370 |
+
693
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "This action of performing the forward pass to calculate the forward cost followed by the reverse pass to obtain the reverse cost and then performing backpropagation on the final cost constitutes a single pass of the AANN. The term AANN: Absolute Artificial Neural Network, which is also the title of the paper, thus refers to this unified process of training a neural network in such a way. ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
699,
|
| 380 |
+
825,
|
| 381 |
+
756
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "3 EXPERIMENTATION WITH OTHER ACTIVATION FUNCTIONS ",
|
| 388 |
+
"text_level": 1,
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
776,
|
| 392 |
+
686,
|
| 393 |
+
791
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "This section attempts to succinctly describe the process of, and findings attained by, using other activation functions for the neural network architecture described in the previous section. Since the actual reasons why these activation functions behave in the manner that they do are not fully known, it has been tried to remain fatihful while describing the experiments and not to make any unproven, or otherwise philosophical, remarks in this section. The programming implementations of these experiments have been made available at [link]. ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
174,
|
| 402 |
+
805,
|
| 403 |
+
825,
|
| 404 |
+
888
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "image",
|
| 410 |
+
"img_path": "images/596e25eefa272612e440f8d064ec7cf59ce75d79b3fdceaf04724cfad3c1f354.jpg",
|
| 411 |
+
"image_caption": [
|
| 412 |
+
"Figure 5: Images generated in the reverse direction by different activation function settings of an AANN. (a) Use of ReLU activation function. (b) Linear activation function. (c) ReLU in the forward direction and Abs in the backward direction. (d) Abs forward and ReLU backward. (e) Use of Sigmoid activation function. "
|
| 413 |
+
],
|
| 414 |
+
"image_footnote": [],
|
| 415 |
+
"bbox": [
|
| 416 |
+
174,
|
| 417 |
+
99,
|
| 418 |
+
823,
|
| 419 |
+
238
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 4
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "Upon using the ReLU, i.e. Rectified Linear-Unit, function (Nair & Hinton, 2010) as the activation function for this architecture, all the activations shoot to nan 4 in the forward direction leading to proliferation of nan in the reverse direction as well. If the Linear activation function is used, the network performs poorly in the forward direction, leading to very high classification error rates, while, the network converges to the point that it outputs the same structure as shown in $( b )$ of Figure 5 for every possible representation vector. On activating the hidden neurons with a ReLU in the forward direction and with an Abs in the reverse direction, the network kills all the activations, i.e. outputs the zero vector for every input, in the forward direction. In the backward direction, the network converges to the (c) structure. Upon using the Abs function in the forward direction and the ReLU in the backward direction, the network this time kills all the activations in the backward direction as visualized in (d). The (e) in Figure 5 is the output achieved by using the Sigmoid activation function in the network. The result obtained is very similar to the result of using Linear activation function, as in $( b )$ . ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
173,
|
| 428 |
+
342,
|
| 429 |
+
825,
|
| 430 |
+
523
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 4
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "4 RESULTS ON MNIST DATASET ",
|
| 437 |
+
"text_level": 1,
|
| 438 |
+
"bbox": [
|
| 439 |
+
176,
|
| 440 |
+
545,
|
| 441 |
+
459,
|
| 442 |
+
561
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 4
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "The AANN architecture was trained on the MNIST digit recognition dataset5. The dataset contains [ $\\left( 2 8 \\mathrm { ~ x ~ } 2 8 \\right)$ pixels] sized images of handwritten digits from 0 - 9. The programming implementation using the Tensorflow framework (Abadi et al., 2015) has been made available at [link]. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
173,
|
| 451 |
+
578,
|
| 452 |
+
826,
|
| 453 |
+
621
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 4
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "image",
|
| 459 |
+
"img_path": "images/bc1942491702a458469b6590db474193393b2a515a8519d047c7c1a9350115bf.jpg",
|
| 460 |
+
"image_caption": [
|
| 461 |
+
"Figure 6: Cost plots obtained upon training the AANN on the MNIST digit dataset. (a) Forward cost. (b) Reverse cost. (c) Final cost. "
|
| 462 |
+
],
|
| 463 |
+
"image_footnote": [],
|
| 464 |
+
"bbox": [
|
| 465 |
+
176,
|
| 466 |
+
638,
|
| 467 |
+
812,
|
| 468 |
+
763
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 4
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "There are 42000 images in the training set, of which, $9 5 \\%$ were used for train set and remaining $5 \\%$ images were used for the dev set. i.e. 39900 in the train set and 2100 in the dev set. The network was trained using the Adam (Kingma & Ba, 2017) optimizer with $\\alpha = 0 . 0 0 1$ , $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ and $\\epsilon = 1 0 ^ { - 8 }$ . ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
829,
|
| 478 |
+
825,
|
| 479 |
+
885
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 4
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "image",
|
| 485 |
+
"img_path": "images/7b041a1c377c55f2ff507a06fac5793de8f57d47815f2a938d5d017569b36e93.jpg",
|
| 486 |
+
"image_caption": [
|
| 487 |
+
"Figure 7: Outputs generated by the AANN in the reverse direction. (a) Original images fed into the network. (b) Images reconstructed by the network in the reverse direction. "
|
| 488 |
+
],
|
| 489 |
+
"image_footnote": [],
|
| 490 |
+
"bbox": [
|
| 491 |
+
174,
|
| 492 |
+
99,
|
| 493 |
+
823,
|
| 494 |
+
342
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 5
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "The network achieved a classification accuracy score of $9 9 . 8 6 \\%$ on the train set and $9 7 . 4 3 \\%$ on the dev set in the forward direction. The unseen test set of this version of the dataset used contains another 28000 images for which the network achieved an accuracy of $9 7 . 6 7 1 \\%$ . Figure 7 shows the images generated by the network in the reverse direction against the original images fed to the network. It is perceived that the capability of the network should not be evaluated only on the basis of it’s forward accuracy scores but should be evaluated on the basis of a unified metric that not only measures the network’s forward performance but also the faithfulness with which the network is able to generate input data points in the reverse direction. ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
174,
|
| 503 |
+
438,
|
| 504 |
+
825,
|
| 505 |
+
551
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 5
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "5 CONCLUSIONS AND FUTURE SCOPE ",
|
| 512 |
+
"text_level": 1,
|
| 513 |
+
"bbox": [
|
| 514 |
+
174,
|
| 515 |
+
598,
|
| 516 |
+
500,
|
| 517 |
+
613
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 5
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "This research paper put forth an elementary but potent neural network architecture, named as AANN, that has the ability to learn in the forward as well as the backward direction. It also proposed the Abs function as a viable activation function for a neural network architecture. Due to lack of hardware resources, the experimentation had to be limited to the preliminary MNIST dataset, but it is firmly believed that the technique will perform equally well upon tackling other robust datasets, because of the theoretical evidence shown in the performed experiments. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
645,
|
| 527 |
+
825,
|
| 528 |
+
728
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 5
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "The AANN presently encodes the information in real number valued ranges across the the dedicated label axes in the the representation space. Certain regularization functions can be synthesized in order to stretch these ranges so that more information can be incorporated in them. The number of dimensions of the learned representations can be manually controlled by setting certain number of dedicated axes to a single label and by modifiying the forward cost function in such a way that the representation vectors lie inside the space generated by the coordinate axes dedicated to the ideal label. An in depth mathematical study of the Abs activation function could reveal the underlying behaviour of AANN. This forms the future scope for research. ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
174,
|
| 537 |
+
736,
|
| 538 |
+
825,
|
| 539 |
+
847
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 5
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "This technique also opens up new research opportunities for considering the AANN architectural modifications to certain network architectures like Rasmus et al. (2015) for semi-supervised learning. Moreover, it would be interesting to note the implications of applying the corresponding modifications to more advanced architectures such as Conv-nets (Krizhevsky et al., 2012) and Recurrent Nets with LSTM cells (Hochreiter & Schmidhuber, 1997). ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
176,
|
| 548 |
+
854,
|
| 549 |
+
823,
|
| 550 |
+
922
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 5
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "REFERENCES ",
|
| 557 |
+
"text_level": 1,
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
103,
|
| 561 |
+
287,
|
| 562 |
+
118
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 6
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "M. Abadi et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. Preliminary White Paper, 2015. \nX. Chen et al. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. arXiv:1606.03657v1 [cs.LG], 2016. \nI. Goodfellow et al. Generative adversarial nets. arXiv:1406.2661v1 [stat.ML], 2014. \nS. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation 9(8):1735-1780, 1997. \nD. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv:1412.6980v9 [cs.LG], 2017. \nD. Kingma and M. Welling. Auto-encoding variational bayes. arXiv:1312.6114v10 [stat.ML], 2014. \nA. Krizhevsky et al. Imagenet classification with deep convolutional neural networks. In Proceedings of the Neural Information Processing Systems Conference, 2012. \nA. Larsen et al. Autoencoding beyond pixels using a learned similarity metric. arXiv:1512.09300v2, 2016. \nA. Makhzani et al. Adversarial autoencoders. arXiv:1511.05644v2, 2016. \nV. Nair and G. Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27 th International Conference on Machine Learning, Haifa, Israel, 2010. \nA. Rasmus et al. Semi-supervised learning with ladder networks. arXiv:1507.02672v2 [cs.NE], 2015. \nD. Rumelhart et al. Learning representations by back-propagating errors. Nature, 323:533–536, October 1986. \nS. Russell and P. Norvig. Artificial Intelligence A Modern Approach, chapter 18: Learning from examples. Person publications, 3rd edition, 2015. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
171,
|
| 571 |
+
125,
|
| 572 |
+
828,
|
| 573 |
+
569
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 6
|
| 576 |
+
}
|
| 577 |
+
]
|
parse/train/rkhxwltab/rkhxwltab_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkhxwltab/rkhxwltab_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/xLExSzfIDmo/xLExSzfIDmo.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
| 3 |
+
Songwei Ge Univeristy of Maryland songweig@cs.umd.edu
|
| 4 |
+
|
| 5 |
+
Shlok Mishra Univeristy of Maryland shlokm@cs.umd.edu
|
| 6 |
+
|
| 7 |
+
Haohan Wang Carnegie Mellon University haohanw@cs.cmu.edu
|
| 8 |
+
|
| 9 |
+
Chun-Liang Li Google Cloud AI chunliang@google.com
|
| 10 |
+
|
| 11 |
+
David Jacobs Univeristy of Maryland dwj@cs.umd.edu
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Unsupervised learning has recently made exceptional progress because of the development of more effective contrastive learning methods. However, CNNs are prone to depend on low-level features that humans deem non-semantic. This dependency has been conjectured to induce a lack of robustness to image perturbations or domain shift. In this paper, we show that by generating carefully designed negative samples, contrastive learning can learn more robust representations with less dependence on such features. Contrastive learning utilizes positive pairs that preserve semantic information while perturbing superficial features in the training images. Similarly, we propose to generate negative samples in a reversed way, where only the superfluous instead of the semantic features are preserved. We develop two methods, texture-based and patch-based augmentations, to generate negative samples. These samples achieve better generalization, especially under out-of-domain settings. We also analyze our method and the generated texture-based samples, showing that texture features are indispensable in classifying particular ImageNet classes and especially finer classes. We also show that model bias favors texture and shape features differently under different test settings. Our code, trained models, and ImageNet-Texture dataset can be found at https://github.com/ SongweiGe/Contrastive-Learning-with-Non-Semantic-Negatives.
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
Recent studies on self-supervised learning have shown great success in learning visual representations without human annotations. The gap between unsupervised and supervised learning has been progressively closed by contrastive learning [53, 48, 7, 18, 49, 6, 16, 56]. In the meantime, CNNs trained in the supervised setting are known to learn correlations between labels and superfluous features such as local patches [4, 3], texture [14], high-frequency components [51], and even artificially added features [26], which has raised concerns about deploying these models in a real scenario [30, 15]. CNNs trained by contrastive learning methods are no exception [23]. In this paper, we propose to construct negative samples that only preserve non-semantic features. We show that using contrastive learning methods trained with these negative samples can mitigate these concerns.
|
| 20 |
+
|
| 21 |
+
Contrastive learning methods exploit carefully designed augmentations to construct positive pairs and pull their representations together. These augmentations are crucial to contrastive learning [7, 6]. A common assumption behind these augmentations is to preserve the semantics of the input images while perturbing other superficial signals. This inspires us to generate negative samples and inject additional implicit biases on the visual features learned by the models. Specifically, we utilize augmentations that diminish the semantic features while keeping the undesired features such as texture. By pushing apart the representations of such negative samples and input images, the models are expected to rely more on the semantics of the images and less on superficial features.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: We propose to construct negative samples (NS) from input images for contrastive learning with augmentations that only preserve non-semantic information such as texture and local features.
|
| 25 |
+
|
| 26 |
+
Inspired by the non-semantic features, we propose two methods to craft negative samples. The first method relies on texture synthesis tools from classic approaches [12, 52]. It generates realistic texture images based on two patches extracted from input images, as shown in Figure 1(d). For each image in ImageNet, we generate its texture version and form a dataset which we call ImageNet-Texture. The second method constructs non-semantic images by tiling randomly sampled patches of different sizes from the input image, as shown in Figure 1(e). Comparing the non-semantic negative samples with two semantic positive samples in Figure 1(b) and Figure 1(c), the dog from the input image is still recognizable in the positive samples but hard to understand from negative samples. Instead, local statistics such as the fur and color of the dog are preserved in the negative samples.
|
| 27 |
+
|
| 28 |
+
The generated non-semantic samples can be readily used with existing contrastive learning methods that distinguish positive pairs from negative pairs such as MoCo [18] and SimCLR [7]. Despite their simplicity, we show that these non-semantic negative samples are actually harder than the standard negative samples used by these methods, which are inefficient at leveraging hard negatives [13, 31]. Further, our negative pairs can also be used by contrastive learning methods that do not explicitly use negative samples, such as BYOL [16]. We evaluate our methods with two contrastive learning methods, MoCo [18, 8] and BYOL [16], on three datasets, ImageNet-100, ImageNet-1K and STL10. When using our proposed augmentations to generate negative samples and minimize their representation similarity to the input images, we notice a consistent improvement on the generalization performance over backbone methods [8, 16] and previous negative example generation strategies [31, 43], especially under out-of-distribution (OOD) settings.
|
| 29 |
+
|
| 30 |
+
We conduct a systematic analysis of how the shape-texture trade-off influences model performance based on the proposed ImageNet-Texture dataset. We control the penalty on similarities between the non-semantic negative examples and the query samples. This impacts the trade-off between using shape and texture features. We find that the relative importance of texture and shape features varies across different datasets. For example, shape bias benefits ImageNet-Sketch [50] more than the original ImageNet validation set. On the other hand, texture bias benefits finer-grained classification more, such as dog breed classification included in ImageNet. These results complement previous evidence showing the effectiveness of shape features in classifying 16 coarse classes [14]. Such preference for one feature over the other is also observed intra-dataset: the texture is more important for some classes such as dishrag and plaque. These observations make us question the relationship between shape and texture features as the implicitly necessary bias of CNNs and advocate for an adaptive combination of both when deploying the model in real scenarios. In summary:
|
| 31 |
+
|
| 32 |
+
• We propose texture-based and patch-based augmentations to generate negative samples from input images, and show that these negative samples improve the generalization of contrastive learning.
|
| 33 |
+
• We introduce the ImageNet-Texture dataset, which contains texture versions of ImageNet images generated by texture synthesis tools.
|
| 34 |
+
• We provide fine-grained analysis on the shape-texture trade-off of CNNs, and show different scenarios when one is preferred over the other.
|
| 35 |
+
|
| 36 |
+
# 2 Negative Samples with Diminished Semantics
|
| 37 |
+
|
| 38 |
+
CNNs are apt to learn low level features such as texture under supervised settings [3, 14, 51]; this has been recently witnessed under the contrastive learning setting as well [23]. To mitigate this problem, we propose two methods, texture-based and patch-based augmentations, to generate negative samples for contrastive learning. Texture-based augmentation generates realistic images based on texture synthesis and patch-based augmentation exploits more comprehensive local features by sampling patches from input images. By penalizing learned similarities between the representations of images and their non-semantic counterparts, the model is encouraged to rely less on the undesired features and focus more on the semantics. In practice, we find the two negative samples play similar roles and the patch-based method works slightly better. In this section, we start with an overview of contrastive learning and show how non-semantic negatives are used in these frameworks. Then we elaborate on the two approaches to generate negative samples with diminished semantics.
|
| 39 |
+
|
| 40 |
+
# 2.1 Contrastive learning with non-semantic negatives
|
| 41 |
+
|
| 42 |
+
Given an encoder network $f$ and an image $\mathbf { x }$ , we denote the output of the network as $\mathbf { z } = f ( \mathbf { x } )$ . We use $z _ { i }$ and $z _ { p }$ to denote the representations of the query sample $\mathbf { \boldsymbol { x } } _ { i }$ and a positive sample $\mathbf { \boldsymbol { x } } _ { p }$ generated from the same input image with augmentations that preserve semantics. For contrastive learning methods like MoCo [18] and SimCLR [7], $z _ { n }$ denotes the representation of the standard negative sample ${ \pmb x } _ { n }$ extracted from the memory bank (MoCo) or other images in the current batch (SimCLR). $z _ { n s }$ is the representation of the proposed negative sample $\mathbf { \Delta x } _ { n s }$ which contains particular non-semantic features of the input image with the semantic part weakened. We extend the noise-contrastive estimation (NCE) loss as below:
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
\mathcal { L } _ { \mathrm { N C E } } = - \sum _ { i \in I } \log \frac { \exp { \left( z _ { i } ^ { T } z _ { p } / \tau \right) } } { \exp { \left( z _ { i } ^ { T } z _ { p } / \tau \right) } + \exp { \left( \alpha z _ { i } ^ { T } z _ { n s } / \tau \right) } + \sum _ { n \in N } \exp { \left( z _ { i } ^ { T } z _ { n } / \tau \right) } } ,
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
where $\tau$ is a temperature parameter and $\alpha$ is an additional scaling parameter for non-semantic negatives. A larger $\alpha$ implies a stronger penalty on the similarity between the representations of the query image and its non-semantic version. In Appendix B.1 we discuss other possible ways to apply $\alpha$ .
|
| 49 |
+
|
| 50 |
+
Methods like BYOL [16] do not explicitly rely on negative samples. Nevertheless, BYOL adapts the loss to maximize the agreement of positive pairs. Therefore, we explicitly use the non-semantic negative sample with their loss to minimize its similarity to the query sample:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\mathcal { L } _ { \mathrm { B Y O L } } = | | z _ { i } - z _ { p } | | - \alpha | | z _ { i } - z _ { n s } | | = 2 - 2 \alpha - 2 z _ { i } ^ { T } z _ { p } + 2 \alpha z _ { i } ^ { T } z _ { n s } .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
We overload $\alpha$ to be the parameter that controls the penalty on the similarity between the representations of input image and its non-semantic version under BYOL, with similar intention as MoCo and SimCLR above. To minimize either $\mathcal { L } _ { \mathrm { N C E } }$ or $\mathcal { L } _ { \mathrm { B Y O L } }$ , the encoder must learn features from $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ that are not contained in $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { n s } }$ but shared with $\mathbf { \boldsymbol { x } } _ { p }$ .
|
| 57 |
+
|
| 58 |
+
# 2.2 Texture-based negative sample generation
|
| 59 |
+
|
| 60 |
+
We use texture synthesis tools to generate negative samples. Texture synthesis aims to generate realistic images that preserve as much local structure as possible from an example image [19, 11, 42]. For instance, as shown in Figure 1(d), the texture of the input dog image preserves the fur and colors of the dog. Notably, in previous discussion of robustness [3, 50], such local structure has often been recognized as highly correlated with the labels yet superfluous to generalization. For example, under large domain shift due to lighting, motion, and even modality, the texture is more apt to change than the semantic features, such as the shape. Furthermore, CNNs trained on ImageNet are more likely to classify images based on the texture features rather than the shape features which are instead preferred by humans due to their transferability [14]. To encourage the model to rely more on the shape features, we propose a two-step method to generate the texture image of input images as the negative samples for contrastive learning.
|
| 61 |
+
|
| 62 |
+
To be specific, we first sample two patches from given images as the input to the texture synthesis algorithms. One patch is extracted from the center of the image. This patch is expected to reflect the texture of the object according to the implicit bias contained in the ImageNet dataset that most of the objects are center-oriented in the images [2]. The other patch is extracted from a random location to reflect other possible textures of the image (e.g. background, peripheral region of the object). In this work, we extract patches with size $9 6 \times 9 6$ when image size allows, otherwise $4 8 \times 4 8$ patches are extracted. Second, we adopt off-the-shelf texture synthesis algorithms [12, 52, 1] to generate texture images based on the two patches. These non-parametric algorithms iteratively sample pixels from given patches that share a similar neighborhood with the current pixel. Specifically, we use the open-source software built on these methods [12, 52, 1] with multi-threaded CPU support implemented in Rust 1. For each sample in the ImageNet dataset, we generate one $2 2 4 \times 2 2 4$ texture image to construct a dataset that has the same training and validation size as the ImageNet dataset. We call this dataset ImageNet-Texture. More examples can be found in Appendix A.1.
|
| 63 |
+
|
| 64 |
+
# 2.3 Patch-based negative sample generation
|
| 65 |
+
|
| 66 |
+
To simulate the local information contained in the images [4, 3], we propose an efficient patch-based method to generate non-semantic images. Given an image and a patch size $d$ , we sample patches of size $d$ from $\textstyle { \left( \lceil \frac { 2 2 4 } { d } \rceil \right) ^ { 2 } }$ non-overlapping random locations that lie entirely in the image. The patches are then tiled and cropped into $2 2 4 \times 2 2 4$ as negative samples. Compared with the texture-based method, this generation process takes negligible time, therefore it can be implemented as part of the data loading process in parallel with training. By doing so, each training sample can be paired with different negative samples generated from different patches every time it is used, compared with the two fixed patches selected when generating texture images.
|
| 67 |
+
|
| 68 |
+
Different from the texture-based method that generates realistic images, the patch-based method generates images with artificial lines as shown in Figure 1e. One might be concerned with possible degenerate solution where the model outputs a low similarity whenever it detects the repeated sharp changes in the horizontal or vertical directions, which could be done with a single layer of convolution. However, interestingly, we find that the model does not find such a simple solution in practice. This is also noticed in a previous study where the image and its copy with a patch cut out are non-trivially distinguished by the model [34]. To mitigate this potential issue, we randomly sample patch size $d$ from a prior distribution instead of using a fixed $d$ in practice, which allows the model to look at texture at different scales.
|
| 69 |
+
|
| 70 |
+
# 2.4 How hard are the texture-based and patch-based negative samples?
|
| 71 |
+
|
| 72 |
+
Constrastive learning methods are known to struggle with finding hard negative samples [13, 31] and researchers have proposed several ways to better leverage hard negatives [31, 43]. An intermediate question is how hard are our proposed negative samples compared with those standard negative samples used in previous constrastive learning methods [7, 18], i.e. random training samples.
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 2: The histogram of cosine similarity between the representations of query sample and its paired samples, namely positive sample and standard, texture-based, and patch-based negative samples (NS), using MoCo-v2 model trained on the ImageNet-1K dataset for 200 epochs.
|
| 76 |
+
|
| 77 |
+
We use the official MoCo-v2 model pretrained on the ImageNet-1K dataset for 200 epochs to calculate the cosine similarities between different kinds of pairs across the ImageNet training set. We plot the histogram of these similarities in Figure 2. As shown in the Figures 2a and 2b, most positive pairs and negative pairs have similarity close to 1 and 0 respectively. Specifically, the average similarities across the training samples are 0.94257 and 0.00018 for positive and negative pairs. As shown in the Figures 2d and 2c, the distributions of patch-based and texture-based negative samples are very different from those of standard negative samples; their similarity distributions have heavy tails in the positive region. Specifically, the distribution of patch-based and texture-based negative samples have average similarity 0.29503 and 0.35248 across the dataset, which shows that they remain difficult after training with standard negative examples.
|
| 78 |
+
|
| 79 |
+
# 3 Experiments
|
| 80 |
+
|
| 81 |
+
In this section, we evaluate the two kinds of non-semantic negative samples with two contrastive learning methods, MoCo and BYOL, on the ImageNet dataset. We also experiment using its subset, the ImageNet-100 dataset [48, 31], which allows us to perform more comprehensive experiments. We report accuracy on out-of-domain (OOD) datasets including the ImageNet-C(orruption) [22], ImageNet-S(ketch) [50], Stylized-ImageNet [14], and ImageNet-R(endition)[21] datasets as an evaluation of the model’s robustness to domain shifts. ImageNet-C and Stylized-ImageNet contain images transformed from the images in the ImageNet validation set with common corruption and transferred style. ImageNet-S and ImageNet-R are collected independently from the ImageNet dataset and share all or a subset of the classes in the ImageNet dataset with a focus on sketch and other rendering modalities. We show that with our proposed non-semantic negatives, contrastive learning generalizes better under domain shifts. For patch-based negatives, it also improves the performance on the in-domain dataset.
|
| 82 |
+
|
| 83 |
+
# 3.1 ImageNet-100
|
| 84 |
+
|
| 85 |
+
Table 1: Top-1 accuracy on the ImageNet-100 dataset and its OOD variants. We consider the supervised baseline as well as several self-supervised baselines including MoCo-v2, BYOL, InsDis, CMC, and InfoMIN. For our main comparison using MoCo-v2 and BYOL, we also report the standard deviation of 3 runs. For MoCo models, $k$ represents the size of the memory bank. We use \* to denote the experiments that use the training setting in a concurrent work IFM [44].
|
| 86 |
+
|
| 87 |
+
<table><tr><td></td><td>ImageNet</td><td>ImageNet-C</td><td>ImageNet-S</td><td>Stylized-ImageNet</td><td>ImageNet-R</td></tr><tr><td>MoCo-v2-k=16384</td><td>77.88±0.28</td><td>43.08±0.27</td><td>28.24±0.58</td><td>16.20±0.55</td><td>32.92±0.12</td></tr><tr><td>+ Texture-based -α = 2</td><td>77.76±0.17</td><td>43.58±0.33</td><td>29.11±0.39</td><td>16.59±0.17</td><td>33.36±0.15</td></tr><tr><td>+Patch-based -α = 2</td><td>79.35±0.12</td><td>45.13±0.35</td><td>31.76±0.88</td><td>17.37±0.19</td><td>34.78±0.15</td></tr><tr><td>+ Patch-based -α=3</td><td>75.58±0.52</td><td>44.45±0.15</td><td>34.03±0.58</td><td>18.60±0.26</td><td>36.89±0.11</td></tr><tr><td>MoCo-v2-k=8192</td><td>77.73±0.38</td><td>43.22±0.39</td><td>28.45±0.36</td><td>16.83±0.12</td><td>33.19±0.44</td></tr><tr><td>+ Patch-based -α = 2</td><td>79.54±0.32</td><td>45.48±0.20</td><td>33.36±0.45</td><td>17.81±0.32</td><td>36.31±0.37</td></tr><tr><td>MoCo-v2*</td><td>80.00±0.14</td><td>45.15±0.42</td><td>30.38±0.30</td><td>16.68±0.39</td><td>30.38±0.30</td></tr><tr><td>+ IFM[44]- ε = 0.05</td><td>80.86</td><td>47.36</td><td>31.35</td><td>18.18</td><td>36.79</td></tr><tr><td>+ IFM[44] - ε= 0.1</td><td>81.22</td><td>47.46</td><td>31.87</td><td>18.42</td><td>37.23</td></tr><tr><td>+ IFM[44] - ε = 0.2</td><td>81.02</td><td>47.19</td><td>31.55</td><td>18.68</td><td>37.14</td></tr><tr><td>+ Patch-based -α = 2</td><td>81.49±0.11</td><td>47.48±0.20</td><td>34.20±0.40</td><td>17.95±0.41</td><td>38.45±0.19</td></tr><tr><td>BYOL</td><td>78.76±0.28</td><td>44.43±0.35</td><td>35.84±0.38</td><td>15.01±0.19</td><td>39.53±0.51</td></tr><tr><td>+ Patch-based -α = 0.05</td><td>78.81±0.33</td><td>44.60±0.21</td><td>36.76±0.51</td><td>15.52±0.22</td><td>41.16±0.39</td></tr><tr><td>InsDis [53]</td><td>68.52</td><td>28.93</td><td>16.67</td><td>9.86</td><td>19.60</td></tr><tr><td>CMC [48]</td><td>79.34</td><td>39.28</td><td>24.04</td><td>13.88</td><td>32.68</td></tr><tr><td>InfoMin [49]</td><td>82.74</td><td>48.87</td><td>38.43</td><td>18.14</td><td>40.68</td></tr><tr><td>Supervised</td><td>86.26</td><td>49.17</td><td>34.95</td><td>21.20</td><td>39.76</td></tr></table>
|
| 88 |
+
|
| 89 |
+
We follow the hyperparameters used in [31] to train MoCo-v2 on the ImageNet-100 dataset with a memory bank size $k = 1 6 3 8 4$ or a halved memory bank size. We also conduct experiments following the hyperparameters in a concurrent study [44] except that we keep $k = 1 6 3 8 4$ for our method. For patch-based augmentation parameters, we use patch size sampled from a uniform distribution $d \sim \mathcal { U } ( 1 6 , 7 2 )$ . The parameter $\alpha$ is indicated behind each model name. We discuss the impact of $\alpha$ in detail in the next section. More ablations on the patch-based augmentations can be found in Appendix C.3. For ImageNet-C, we report the average accuracy across 5 levels of corruption severity.
|
| 90 |
+
|
| 91 |
+
We repeat the experiments, including both the pretraining and linear evaluation, for 3 runs and report the mean and standard deviation in Table 1. As shown in the table, when following the previous memory bank size, using both patch-based and texture-based negatives improve the OOD generalizations. Specifically, patch-based augmentation increases the accuracy on ImageNet-S by ${ \bar { 5 } } . 7 9 \%$ and ImageNet-R by $5 . 9 7 \%$ when $\alpha = 3$ . When $\alpha = 2$ , it also increases the in-domain accuracy by $1 . 4 7 \%$ and accuracy on ImageNet-C by $2 . 0 5 \%$ . The similar trend shared by standard ImageNet and ImageNet-C with different $\alpha$ can be attributed to the resemblance of the images in the two dataset, especially those corrupted images with a lower level of severity. We show the performance of the model with $\alpha = 3$ is actually better on the highest corruption level as shown in Appendix C.2. The improvement achieved using texture-based negatives is less, probably because the information contained in the texture image is restricted due to the limited access to the two fixed patches. When the memory bank is halved to be 8, 192, the baseline MoCo model has slightly worse performance, decreasing from 77.88 to 77.73. But with patch-based hard negative samples, the MoCo-v2 model instead achieved the best accuracy 79.54 on the ImageNet-100 validation set, IamgeNet-C and IamgeNet-R. We discuss this more in a later section.
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
Figure 3: Histogram of cosine similarity between the representations of query sample and its paired positive sample, standard, texture-based, and patch-based negative samples (NS), using models trained without (blue) and with patch-based negative samples (red: $\alpha = 2$ , green: $\alpha = 3$ ).
|
| 95 |
+
|
| 96 |
+
Similar to Figure 2, in Figure 3 we visualize the distribution of the cosine similarity between the query sample and both semantic and non-semantic samples calculated based on the models trained with and without patch-based negative samples. The shift of the distribution towards the origin in Figure 3d meets the expectation that our method reduces the similarity of input images and patch-based negative samples. Specifically, the average similarity decreases from 0.4040 to 0.3252 to 0.1593 when $\alpha$ increases from 0, namely no patched-based negatives, to 2 to 3. Interestingly, we notice in Figure 3c that the similarity to texture-based negative samples also decreases, and the average similarity decreases from 0.4114 to 0.3541 to 0.1896, although we did not explicitly penalize it. This demonstrates the resemblance of patch-based negative samples to texture-based negative samples. Given the better performance achieved with patch-based negative samples, for the rest of the experiments, we mainly focus on the patch-based methods. But we still conduct our analysis on the texture-based samples. We also find a marginal decrease in the positive similarity $( - 0 . 0 0 6 8 )$ and negative similarity $( - 0 . 0 0 0 8 )$ when $\alpha = 2$ and a substantial decrease in the positive similarity $( - 0 . 0 7 3 7 )$ and increase in the negative similarity (0.0036) when $\alpha = 3$ . A similar figure for texture-based negative samples can be found in the Appendix in Figure 12.
|
| 97 |
+
|
| 98 |
+
# 3.2 ImageNet-1K
|
| 99 |
+
|
| 100 |
+
<table><tr><td></td><td>ImageNet</td><td>ImageNet-C</td><td>ImageNet-S</td><td>Stylized-ImageNet</td><td>ImageNet-R</td></tr><tr><td>MoCo-v2 [8]</td><td>67.60</td><td>87.7</td><td>17.47</td><td>5.55</td><td>27.81</td></tr><tr><td>+ MoCHi [31]</td><td>67.56</td><td>88.7</td><td>16.32</td><td>5.94</td><td>25.71</td></tr><tr><td>+ Patch-base NS -α = 2</td><td>67.92</td><td>87.6</td><td>18.58</td><td>6.34</td><td>28.95</td></tr></table>
|
| 101 |
+
|
| 102 |
+
Table 2: Top-1 accuracy on the ImageNet-1K dataset and its sketch, stylized, rendition variants, and mCE on the ImageNet-C dataset.
|
| 103 |
+
|
| 104 |
+
We follow the official hyperparameters [8] to train MoCo-v2 with our patch-based negative samples on the ImageNet-1K dataset. For the parameter $\alpha$ and patch size $d$ , we follow the same configuration used on the ImageNet-100 dataset. We compare our results against the MoCo-v2 baseline [8] and the hard negative mixing algorithm, MoCHi [31]. Due to limited computational resources, we report the metrics evaluated with the official model without repeated runs. The results are shown in Table 2.
|
| 105 |
+
|
| 106 |
+
More results can be found in Appendix C.6. Note that for ImageNet-C, we show the mCE metric [22], for which smaller is better. For the other datasets, we show the top-1 accuracy.
|
| 107 |
+
|
| 108 |
+
# 3.3 Extension to other non-semantic features
|
| 109 |
+
|
| 110 |
+
Non-semantic features are sometimes referred to as “shortcuts” in the contrastive learning literature [6, 7]. Models that leverage such features often exhibit unfavorable generalization to downstream tasks. For example, without color jittering, SimCLR [9] tends to utilize color histograms to reduce the training loss. In this section, we show that models trained with nonsemantic negatives are coerced to avoid the shortcuts shared between query images and their non-semantic counterparts. In the example of the color shortcut, we
|
| 111 |
+
|
| 112 |
+
<table><tr><td>Model</td><td>Top-1 Accuracy</td></tr><tr><td>MoCo-v2 [8]</td><td>70.44</td></tr><tr><td>+ Patch-based NS</td><td>76.42</td></tr></table>
|
| 113 |
+
|
| 114 |
+
Table 3: Test accuracy of MoCo-v2 on the ImageNet-100 dataset after removing color jittering and adding patch-based negatives.
|
| 115 |
+
|
| 116 |
+
note that the expected color distribution of our patch-based negatives is identical to that of the query images, and the actual distribution of samples is close. We conduct experiments with MoCo-v2 on the ImageNet-100 dataset while removing the color jittering from the augmentations. The accuracy of models with and without patch-based negatives are reported in Table 3. We found that patch-based negatives contribute significant effectiveness in preventing the models from learning such a color distribution shortcut.
|
| 117 |
+
|
| 118 |
+
# 3.4 Memory bank size
|
| 119 |
+
|
| 120 |
+
Contrastive learning methods based on negative samples suffer from ineffective excavation of hard negatives [13, 31] and resort to large batch sizes [7] or memory bank [18]. In this section, we study whether our proposed negative samples can mitigate this problem on the STL-10 and ImageNet-100 datasets. We keep the hyperparameters intact and vary the memory bank size. We report the accuracy of the MoCo-v2 baseline with and without patch-based negative samples on STL-10 dataset in Table 4. We also compare with [43] which exploits hard negatives through reweighting. We found that with proper hyperparameters the MoCo-v2 baseline already beats the reweighting results with SimCLR.
|
| 121 |
+
|
| 122 |
+
<table><tr><td>SimCLR[7] + Debiased [10] + Hard [43]</td><td>80.16 84.908 87.428</td></tr><tr><td>MoCo-v2 [8]</td><td>88.00</td></tr><tr><td>+ Patch-based NS</td><td>89.36</td></tr></table>
|
| 123 |
+
|
| 124 |
+
Table 4: Top-1 accuracy on the STL-10 dataset.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 4: Top-1 accuracy on the STL-10 dataset with different memory bank sizes.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 5: Top-1 accuracy on the ImageNet-100 dataset with different memory bank sizes.
|
| 131 |
+
|
| 132 |
+
§ denotes results visually extracted from Figure 2 in [43].
|
| 133 |
+
|
| 134 |
+
As shown in Figures 4 and 5, using patch-based non-semantic negatives consistently improves the MoCo baseline when the number of standard negatives varies. When slightly decreasing the memory bank size on the STL-10 dataset as shown in Figure 4 and ImageNet-100 in Table 1, the performance with patch-based negatives increases. This is probably because, according to Eq. 1 and analysis in Appendix B.1, a smaller memory bank size causes a larger contribution of non-semantic negatives to the loss, and consequently a larger regularization. To further demystify this observation, we conduct experiments with evenly sampled memory bank sizes between 4096 and 16384 and report the average and standard deviation across 3 runs in Figure 5. We confirm a consistent recession of baseline accuracy when decreasing memory back sizes [18, 43]. However, the steady improvement led by the non-semantic negatives effectively mitigates the problem - the decrease caused by a smaller memory bank is less substantial and using patch-based negatives always beats the baseline.
|
| 135 |
+
|
| 136 |
+
# 4 Discussion
|
| 137 |
+
|
| 138 |
+
# 4.1 Controlling the shape-texture trade-off with $\alpha$
|
| 139 |
+
|
| 140 |
+
There has been a growing interest in understanding the cause and impact of the trade-off between shape and texture bias of CNNs [14, 23, 35, 27]. CNNs trained on ImageNet are known to be over-reliant on the texture features [14]. Contrastive learning with our non-semantic negatives serve as not only an effective method to reduce such reliance, but a natural tool to study such a trade-off.
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
Figure 6: Larger $\alpha$ monotonically increases the model bias to shape features over texture features. Model performance is impacted by such a trade-off differently under different settings. In all scenarios, slightly calibrated shape bias improves model performance. The test settings represented in the red lines gain more from the increased shape bias than the settings represented in the green lines.
|
| 144 |
+
|
| 145 |
+
We train MoCo-v2 models with different $\alpha$ from 1 to 5 on the ImageNet-100 dataset. As shown in Figure 6a, we find that $\alpha$ effectively controls the trade-off on the model bias to the shape and texture features. $\alpha = 0$ is used to denote the baseline method. Specifically, a larger $\alpha$ in the loss function 1 leads to a larger penalty on the similarity between the representations of query samples and non-semantic samples, consequently a larger shape bias. We follow [14] to calculate shape bias on the stimuli images with conflicted shape and texture clues generated by style transfer. We show the corresponding accuracy on the shape and texture labels in Figure 6b.
|
| 146 |
+
|
| 147 |
+
As shown in Figure 6b, when $\alpha$ increases the texture accuracy on the stimuli dataset monotonically decreases while the shape accuracy monotonically increases. To further study how the trade-off between shape and texture bias impacts the model performance, we first compare the accuracy on the ImageNet validation dataset and ImageNet-Sketch dataset [50] when $\alpha$ varies in Figure 6c. We find that on both datasets, slightly increased shape bias over baseline $\alpha = 2$ ) improves performances. Interestingly, the accuracy peak on the ImageNet-Sketch appears at $\alpha = 3$ while the peak appears at $\alpha = 2$ on the ImageNet validation dataset. In addition, for even larger $\alpha$ the accuracy on the ImageNet-Sketch dataset still outperforms the baseline while the standard accuracy gets hurt. This shows that different downstream tasks may benefit differently from differently shape-biased models.
|
| 148 |
+
|
| 149 |
+
We plot the histograms of similarities calculated by the models trained with different $\alpha$ in Appendix Figure 13. We find that large $\alpha$ makes the original pretext task challenging - the model cannot effectively pull together the representations of positive pairs. Specifically, when $\alpha$ increases from 1 to 5, the average similarity of the positive pairs decrease from 0.9267 to 0.7541. This demonstrates that it is hard for the model to learn representations that are completely independent of the texture features contained in the non-semantic images.
|
| 150 |
+
|
| 151 |
+
# 4.2 Rethinking the shape-texture trade-off through class-based analysis
|
| 152 |
+
|
| 153 |
+
The initial discussion on the shape-texture trade-off shows that humans rely more on the shape features while CNNs rely more on texture features and increasing shape bias can improve accuracy and robustness [14]. However, similar to [40, 23], we notice that increasing shape bias does not always improve the generalization and robustness of the models. To better understand this phenomenon, we provide two observations based on the analysis of the ImageNet-Texture dataset and our method to explain why a texture-biased model is helpful with classification on the ImageNet dataset.
|
| 154 |
+
|
| 155 |
+
First, we find that an increasing shape bias often leads to more errors among the fine-grained classes. The initial discussion of the shape-bias [14] only pays attention to the selected 16 coarse classes. We thus compare the finer and coarse class accuracy on the dog images of ImageNet dataset as in Figure 6d. For coarse class accuracy, the predictions are counted to be correct whenever the image is classified as a dog class, no matter which dog class is predicted, while for the finer class accuracy, only those predictions of target dog classes are counted to be correct. We notice that the finer class accuracy drops more significantly when shape bias increases as opposed to the coarse class accuracy. For example, when $\alpha = 3$ , the finer class accuracy drops from 72.9 to 67.6 while the coarse class accuracy slightly decreases from 97.8 to 97.7. Therefore, for datasets with numerous fine-grained classes like ImageNet, a texture-biased model is more helpful for a higher accuracy, which confirms the previous conjecture [54] . Second, in Appendix Figure 9, we show a scatter plot of texture accuracy vs. standard accuracy of different model architectures and a histogram of accuracy on individual ImageNet-Texture classes. We identify several classes where using only texture features is sufficient to achieve a high classification accuracy. These classes are all missing in the previous study [14]. As shown in Figure 7 and Appendix Figure 10, texture serves as a more important clue than the shape for these classes.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 7: A ResNet-50 model trained on the ImageNet dataset achieves decent accuracy when only texture features are available on some classes. A normal image and its texture version are displayed for some of these classes. The caption indicates the class ID, name, and accuracy on texture images.
|
| 159 |
+
|
| 160 |
+
# 5 Related Work
|
| 161 |
+
|
| 162 |
+
Contrastive learning based self-supervised learning Recent contrastive learning based selfsupervised learning methods including MoCo [18], SimCLR [7], InfoMin[49], SimSiam[9], BYOL [16], SwAV [6], Barlow Twins [56] have proven helpful in learning visual representations. These methods rely on different pretext tasks to increase the agreement among the different views of the same image. The augmentations used to generate these views are essential to the success of these contrastive learning methods [7, 6] by preventing shortcuts such as the use of simple color histogram [7]. There is an ongoing trend of developing novel augmentations [6, 49] or adaptively applying augmentations [54] and consistent improvement has been achieved with these studies. However, it is intractable to eliminate every shortcut and sometimes tricky to craft the correct positive pairs. Different from these methods, we show that augmentations that perturb the semantic features and craft negative samples can be more effective to impose additional regularization. For example, to prevent models from relying on local features, it is much easier to destroy global features and create negatives than to remove all the local features and create positives. Furthermore, by maximizing the difference between natural images and their non-semantic versions in the representation space, the models are coerced to avoid any potential shortcuts shared by them.
|
| 163 |
+
|
| 164 |
+
Methods like MoCo [18] and SimCLR [7] distinguish positive pairs from negative pairs that are picked from the rest of the dataset. However, most of the negatives prove to be unnecessary and insufficient [13, 31]. To excavate effective negative samples, these methods heavily depend on the large batch sizes [7] or memory bank [18]. Utilizing hard negative samples has long been recognized as an effective approach to boost model performance [17, 29, 55, 46]. In the contrastive learning studies, [10, 43] modify the contrastive learning loss to make it assign greater weights to the hard negative samples. [31] proposes to synthesize hard negative samples by taking linear combinations of the hardest negative samples. Our work is orthogonal to these ideas in the way that we propose to generate negative samples from given images themselves to reduce the reliance on the undesired features. In addition, two recent works [25, 32] study the application of adversarial examples as hard positive and negative samples in contrastive learning. [45] augments the images by manipulating their foregrounds and backgrounds to generate negative and positive samples. Compared with these studies, we mainly focus on the OOD evaluation of the models. In addition, our patch-based augmentation is also related to the self-Supervised learning methods that adopt the pretext task based on jigsaw [41, 39, 20], which we discuss in the Appendix B.2.
|
| 165 |
+
|
| 166 |
+
Robustness and out-of-domain generalization of CNNs High test accuracy provides no guarantee that a network learns high-level semantic features instead of low-level superfluous features that exist in both training and test dataset [30]. An increasing number of studies have corroborated such concerns and found that CNNs can rely on local patches [4, 3], texture [14], high-frequency components [51] and even artificially added features [26] to achieve high test accuracy. These superficial correlations become brittle under large domain shifts [22, 21]. This still remains an unsolved problem [47] and is rarely discussed in the contrastive learning setting.
|
| 167 |
+
|
| 168 |
+
Among all these undesired features, the shape-texture bias has been widely discussed in recent studies [14, 36]. Previous work has shown that CNNs trained on the ImageNet dataset are biased to texture features and such over-reliance can hurt the generalization performance of CNNs [14, 24]. Several studies have aimed at mitigating this problem [38, 35] or providing a better understanding [23, 27]. In this paper, we introduce a dataset called ImageNet-Texture, which can help future studies on these problems. Our method also effectively controls the trade-off between shape and texture bias. We provide new insights about this problem based on the analysis of our method and dataset.
|
| 169 |
+
|
| 170 |
+
# 6 Closing Remarks
|
| 171 |
+
|
| 172 |
+
Conclusion CNNs are prone to learn discriminative features that are vulnerable under domain shifts. In this paper, we first demonstrate the regularization power of contrastive learning to discard any undesired features by generating appropriate negative samples. We explore two approaches, the patch-based and texture-based augmentations, to craft negative samples with only local features preserved. We show that the representations learned by contrastive learning with such negative samples depend less on the local features, and consequently generalize better under OOD settings. We hope this paper can encourage people to rethink the role that negative samples play in contrastive learning, which hopefully leads to more efficient methods to generate negative samples.
|
| 173 |
+
|
| 174 |
+
Limitations The problem of dependence on superficial features exists in various domains beyond vision, such as language [37, 28]. Therefore, it is intriguing to consider generalizing such an idea to other modalities. In addition, as the mechanism to ensure that contrastive learning models trained on large datasets to discard the bias of the datasets is yet to be invented, severe social issues in fairness or privacy may be raised as a result [5, 33]. In this paper, we show how to calibrate the bias towards texture features using proposed negative samples. It is also worth considering whether contrastive learning can be used to address any of these negative effects triggered by bias in datasets.
|
| 175 |
+
|
| 176 |
+
# Acknowledgments and Disclosure of Funding
|
| 177 |
+
|
| 178 |
+
The authors thank the National Science Foundation, grant no. IIS-1910132 and the Guaranteeing AI Robustness Against Deception (GARD) program from DARPA for their support of this project. The authors thank Yannis Kalantidis for his help with reproducing MoCo-v2 on the ImageNet-100 dataset and Joshua Robinson for providing the checkpoints of IFM models for comparison.
|
| 179 |
+
|
| 180 |
+
# References
|
| 181 |
+
|
| 182 |
+
[1] M. Ashikhmin. Synthesizing natural textures. In Proceedings of the 2001 symposium on Interactive 3D graphics, pages 217–226, 2001.
|
| 183 |
+
[2] L. Beyer, O. J. Hénaff, A. Kolesnikov, X. Zhai, and A. van den Oord. Are we done with imagenet?, 2020.
|
| 184 |
+
[3] W. Brendel and M. Bethge. Approximating CNNs with bag-of-local-features models works surprisingly well on imagenet. In International Conference on Learning Representations, 2019.
|
| 185 |
+
[4] T. B. Brown, D. Mané, A. Roy, M. Abadi, and J. Gilmer. Adversarial patch. arXiv preprint arXiv:1712.09665, 2017.
|
| 186 |
+
[5] J. Buolamwini and T. Gebru. Gender shades: Intersectional accuracy disparities in commercial gender classification. In Conference on fairness, accountability and transparency, pages 77–91. PMLR, 2018.
|
| 187 |
+
[6] M. Caron, I. Misra, J. Mairal, P. Goyal, P. Bojanowski, and A. Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020.
|
| 188 |
+
[7] T. Chen, S. Kornblith, M. Norouzi, and G. Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020. [8] X. Chen, H. Fan, R. Girshick, and K. He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020.
|
| 189 |
+
[9] X. Chen and K. He. Exploring simple siamese representation learning. arXiv preprint arXiv:2011.10566, 2020.
|
| 190 |
+
[10] C.-Y. Chuang, J. Robinson, Y.-C. Lin, A. Torralba, and S. Jegelka. Debiased contrastive learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 8765–8775. Curran Associates, Inc., 2020.
|
| 191 |
+
[11] J. S. De Bonet. Multiresolution sampling procedure for analysis and synthesis of texture images. In Proceedings of the 24th annual conference on Computer graphics and interactive techniques, pages 361–368, 1997.
|
| 192 |
+
[12] A. A. Efros and T. K. Leung. Texture synthesis by non-parametric sampling. In Proceedings of the seventh IEEE international conference on computer vision, volume 2, pages 1033–1038. IEEE, 1999.
|
| 193 |
+
[13] J. Frankle, D. J. Schwab, A. S. Morcos, et al. Are all negatives created equal in contrastive instance discrimination? arXiv preprint arXiv:2010.06682, 2020.
|
| 194 |
+
[14] R. Geirhos, P. Rubisch, C. Michaelis, M. Bethge, F. A. Wichmann, and W. Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In International Conference on Learning Representations, 2019.
|
| 195 |
+
[15] R. Geirhos, C. R. M. Temme, J. Rauber, H. H. Schütt, M. Bethge, and F. A. Wichmann. Generalisation in humans and deep neural networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7549–7561, 2018.
|
| 196 |
+
[16] J.-B. Grill, F. Strub, F. Altché, C. Tallec, P. Richemond, E. Buchatskaya, C. Doersch, B. Avila Pires, Z. Guo, M. Gheshlaghi Azar, B. Piot, k. kavukcuoglu, R. Munos, and M. Valko. Bootstrap your own latent - a new approach to self-supervised learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 21271–21284. Curran Associates, Inc., 2020.
|
| 197 |
+
[17] B. Harwood, V. Kumar B G, G. Carneiro, I. Reid, and T. Drummond. Smart mining for deep metric learning. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 198 |
+
[18] K. He, H. Fan, Y. Wu, S. Xie, and R. Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9729–9738, 2020.
|
| 199 |
+
[19] D. J. Heeger and J. R. Bergen. Pyramid-based texture analysis/synthesis. In Proceedings of the 22nd annual conference on Computer graphics and interactive techniques, pages 229–238, 1995.
|
| 200 |
+
[20] O. Henaff. Data-efficient image recognition with contrastive predictive coding. In International Conference on Machine Learning, pages 4182–4192. PMLR, 2020.
|
| 201 |
+
[21] D. Hendrycks, S. Basart, N. Mu, S. Kadavath, F. Wang, E. Dorundo, R. Desai, T. Zhu, S. Parajuli, M. Guo, D. Song, J. Steinhardt, and J. Gilmer. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020.
|
| 202 |
+
[22] D. Hendrycks and T. Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. Proceedings of the International Conference on Learning Representations, 2019.
|
| 203 |
+
[23] K. Hermann, T. Chen, and S. Kornblith. The origins and prevalence of texture bias in convolutional neural networks. Advances in Neural Information Processing Systems, 33, 2020.
|
| 204 |
+
[24] K. L. Hermann and A. K. Lampinen. What shapes feature representations? exploring datasets, architectures, and training, 2020.
|
| 205 |
+
[25] C.-H. Ho and N. Nvasconcelos. Contrastive learning with adversarial examples. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 17081–17093. Curran Associates, Inc., 2020.
|
| 206 |
+
[26] H. Huang, X. Ma, S. M. Erfani, J. Bailey, and Y. Wang. Unlearnable examples: Making personal data unexploitable. In International Conference on Learning Representations, 2021.
|
| 207 |
+
[27] M. A. Islam, M. Kowal, P. Esser, S. Jia, B. Ommer, K. G. Derpanis, and N. Bruce. Shape or texture: Understanding discriminative features in {cnn}s. In International Conference on Learning Representations, 2021.
|
| 208 |
+
[28] R. Jia and P. Liang. Adversarial examples for evaluating reading comprehension systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2021–2031, 2017.
|
| 209 |
+
[29] S. Jin, A. RoyChowdhury, H. Jiang, A. Singh, A. Prasad, D. Chakraborty, and E. Learned-Miller. Unsupervised hard example mining from videos for improved object detection. In Proceedings of the European Conference on Computer Vision (ECCV), pages 307–324, 2018.
|
| 210 |
+
[30] J. Jo and Y. Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017.
|
| 211 |
+
[31] Y. Kalantidis, M. B. Sariyildiz, N. Pion, P. Weinzaepfel, and D. Larlus. Hard negative mixing for contrastive learning. In Neural Information Processing Systems (NeurIPS), 2020.
|
| 212 |
+
[32] M. Kim, J. Tack, and S. J. Hwang. Adversarial self-supervised contrastive learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 2983–2994. Curran Associates, Inc., 2020.
|
| 213 |
+
[33] S. Kiritchenko and S. M. Mohammad. Examining gender and race bias in two hundred sentiment analysis systems. arXiv preprint arXiv:1805.04508, 2018.
|
| 214 |
+
[34] C.-L. Li, K. Sohn, J. Yoon, and T. Pfister. Cutpaste: Self-supervised learning for anomaly detection and localization. arXiv preprint arXiv:2104.04015, 2021.
|
| 215 |
+
[35] Y. Li, Q. Yu, M. Tan, J. Mei, P. Tang, W. Shen, A. Yuille, and cihang xie. Shape-texture debiased neural network training. In International Conference on Learning Representations, 2021.
|
| 216 |
+
[36] G. Malhotra and J. Bowers. The contrasting roles of shape in human vision and convolutional neural networks. In CogSci, 2019.
|
| 217 |
+
[37] T. McCoy, E. Pavlick, and T. Linzen. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3428–3448, 2019.
|
| 218 |
+
[38] S. Mishra, A. Shah, A. Bansal, J. Choi, A. Shrivastava, A. Sharma, and D. Jacobs. Learning visual representations for transfer learning by suppressing texture. arXiv preprint arXiv:2011.01901, 2020.
|
| 219 |
+
[39] I. Misra and L. v. d. Maaten. Self-supervised learning of pretext-invariant representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6707–6717, 2020.
|
| 220 |
+
[40] C. K. Mummadi, R. Subramaniam, R. Hutmacher, J. Vitay, V. Fischer, and J. H. Metzen. Does enhanced shape bias improve neural network robustness to common corruptions? In ICLR, 2021.
|
| 221 |
+
[41] M. Noroozi and P. Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European conference on computer vision, pages 69–84. Springer, 2016.
|
| 222 |
+
[42] J. Portilla and E. P. Simoncelli. A parametric texture model based on joint statistics of complex wavelet coefficients. International journal of computer vision, 40(1):49–70, 2000.
|
| 223 |
+
[43] J. Robinson, C.-Y. Chuang, S. Sra, and S. Jegelka. Contrastive learning with hard negative samples. International Conference on Learning Representations, 2021.
|
| 224 |
+
[44] J. Robinson, L. Sun, K. Yu, K. Batmanghelich, S. Jegelka, and S. Sra. Can contrastive learning avoid shortcut solutions? NeurIPS, 2021.
|
| 225 |
+
[45] C. K. Ryali, D. J. Schwab, and A. S. Morcos. Leveraging background augmentations to encourage semantic focus in self-supervised contrastive learning. arXiv preprint arXiv:2103.12719, 2021.
|
| 226 |
+
[46] E. Simo-Serra, E. Trulls, L. Ferraz, I. Kokkinos, P. Fua, and F. Moreno-Noguer. Discriminative learning of deep convolutional feature point descriptors. In Proceedings of the IEEE International Conference on Computer Vision, pages 118–126, 2015.
|
| 227 |
+
[47] R. Taori, A. Dave, V. Shankar, N. Carlini, B. Recht, and L. Schmidt. Measuring robustness to natural distribution shifts in image classification. Advances in Neural Information Processing Systems, 33, 2020.
|
| 228 |
+
[48] Y. Tian, D. Krishnan, and P. Isola. Contrastive multiview coding. In ECCV, 2020.
|
| 229 |
+
[49] Y. Tian, C. Sun, B. Poole, D. Krishnan, C. Schmid, and P. Isola. What makes for good views for contrastive learning. arXiv preprint arXiv:2005.10243, 2020.
|
| 230 |
+
[50] H. Wang, S. Ge, Z. Lipton, and E. P. Xing. Learning robust global representations by penalizing local predictive power. In Advances in Neural Information Processing Systems, pages 10506–10518, 2019.
|
| 231 |
+
[51] H. Wang, X. Wu, Z. Huang, and E. P. Xing. High-frequency component helps explain the generalization of convolutional neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8684–8694, 2020.
|
| 232 |
+
[52] L.-Y. Wei and M. Levoy. Fast texture synthesis using tree-structured vector quantization. In Proceedings of the 27th annual conference on Computer graphics and interactive techniques, pages 479–488, 2000.
|
| 233 |
+
[53] Z. Wu, Y. Xiong, S. X. Yu, and D. Lin. Unsupervised feature learning via non-parametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3733–3742, 2018.
|
| 234 |
+
[54] T. Xiao, X. Wang, A. A. Efros, and T. Darrell. What should not be contrastive in contrastive learning. In International Conference on Learning Representations, 2020.
|
| 235 |
+
[55] H. Xuan, A. Stylianou, X. Liu, and R. Pless. Hard negative examples are hard, but useful. In European Conference on Computer Vision, pages 126–142. Springer, 2020.
|
| 236 |
+
[56] J. Zbontar, L. Jing, I. Misra, Y. LeCun, and S. Deny. Barlow twins: Self-supervised learning via redundancy reduction. arXiv preprint arXiv:2103.03230, 2021.
|
parse/train/xLExSzfIDmo/xLExSzfIDmo_content_list.json
ADDED
|
@@ -0,0 +1,1080 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Robust Contrastive Learning Using Negative Samples with Diminished Semantics ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
122,
|
| 9 |
+
823,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Songwei Ge Univeristy of Maryland songweig@cs.umd.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
207,
|
| 19 |
+
222,
|
| 20 |
+
370,
|
| 21 |
+
263
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Shlok Mishra Univeristy of Maryland shlokm@cs.umd.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
413,
|
| 30 |
+
222,
|
| 31 |
+
566,
|
| 32 |
+
262
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Haohan Wang Carnegie Mellon University haohanw@cs.cmu.edu ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
606,
|
| 41 |
+
222,
|
| 42 |
+
790,
|
| 43 |
+
263
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Chun-Liang Li Google Cloud AI chunliang@google.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
279,
|
| 52 |
+
285,
|
| 53 |
+
450,
|
| 54 |
+
327
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "David Jacobs Univeristy of Maryland dwj@cs.umd.edu ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
563,
|
| 63 |
+
285,
|
| 64 |
+
720,
|
| 65 |
+
327
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Abstract ",
|
| 72 |
+
"text_level": 1,
|
| 73 |
+
"bbox": [
|
| 74 |
+
462,
|
| 75 |
+
363,
|
| 76 |
+
535,
|
| 77 |
+
378
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "Unsupervised learning has recently made exceptional progress because of the development of more effective contrastive learning methods. However, CNNs are prone to depend on low-level features that humans deem non-semantic. This dependency has been conjectured to induce a lack of robustness to image perturbations or domain shift. In this paper, we show that by generating carefully designed negative samples, contrastive learning can learn more robust representations with less dependence on such features. Contrastive learning utilizes positive pairs that preserve semantic information while perturbing superficial features in the training images. Similarly, we propose to generate negative samples in a reversed way, where only the superfluous instead of the semantic features are preserved. We develop two methods, texture-based and patch-based augmentations, to generate negative samples. These samples achieve better generalization, especially under out-of-domain settings. We also analyze our method and the generated texture-based samples, showing that texture features are indispensable in classifying particular ImageNet classes and especially finer classes. We also show that model bias favors texture and shape features differently under different test settings. Our code, trained models, and ImageNet-Texture dataset can be found at https://github.com/ SongweiGe/Contrastive-Learning-with-Non-Semantic-Negatives. ",
|
| 84 |
+
"bbox": [
|
| 85 |
+
232,
|
| 86 |
+
393,
|
| 87 |
+
766,
|
| 88 |
+
642
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "1 Introduction ",
|
| 95 |
+
"text_level": 1,
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
667,
|
| 99 |
+
312,
|
| 100 |
+
685
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Recent studies on self-supervised learning have shown great success in learning visual representations without human annotations. The gap between unsupervised and supervised learning has been progressively closed by contrastive learning [53, 48, 7, 18, 49, 6, 16, 56]. In the meantime, CNNs trained in the supervised setting are known to learn correlations between labels and superfluous features such as local patches [4, 3], texture [14], high-frequency components [51], and even artificially added features [26], which has raised concerns about deploying these models in a real scenario [30, 15]. CNNs trained by contrastive learning methods are no exception [23]. In this paper, we propose to construct negative samples that only preserve non-semantic features. We show that using contrastive learning methods trained with these negative samples can mitigate these concerns. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
700,
|
| 110 |
+
825,
|
| 111 |
+
824
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Contrastive learning methods exploit carefully designed augmentations to construct positive pairs and pull their representations together. These augmentations are crucial to contrastive learning [7, 6]. A common assumption behind these augmentations is to preserve the semantics of the input images while perturbing other superficial signals. This inspires us to generate negative samples and inject additional implicit biases on the visual features learned by the models. Specifically, we utilize augmentations that diminish the semantic features while keeping the undesired features such as texture. By pushing apart the representations of such negative samples and input images, the models are expected to rely more on the semantics of the images and less on superficial features. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
832,
|
| 121 |
+
825,
|
| 122 |
+
901
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "image",
|
| 128 |
+
"img_path": "images/9ecd5d9e861959c25ccbf6de85b64fafde48ebc920f7eb10ffdb9ee9fce236a0.jpg",
|
| 129 |
+
"image_caption": [
|
| 130 |
+
"Figure 1: We propose to construct negative samples (NS) from input images for contrastive learning with augmentations that only preserve non-semantic information such as texture and local features. "
|
| 131 |
+
],
|
| 132 |
+
"image_footnote": [],
|
| 133 |
+
"bbox": [
|
| 134 |
+
179,
|
| 135 |
+
87,
|
| 136 |
+
821,
|
| 137 |
+
215
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
281,
|
| 147 |
+
825,
|
| 148 |
+
324
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Inspired by the non-semantic features, we propose two methods to craft negative samples. The first method relies on texture synthesis tools from classic approaches [12, 52]. It generates realistic texture images based on two patches extracted from input images, as shown in Figure 1(d). For each image in ImageNet, we generate its texture version and form a dataset which we call ImageNet-Texture. The second method constructs non-semantic images by tiling randomly sampled patches of different sizes from the input image, as shown in Figure 1(e). Comparing the non-semantic negative samples with two semantic positive samples in Figure 1(b) and Figure 1(c), the dog from the input image is still recognizable in the positive samples but hard to understand from negative samples. Instead, local statistics such as the fur and color of the dog are preserved in the negative samples. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
329,
|
| 158 |
+
825,
|
| 159 |
+
454
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "The generated non-semantic samples can be readily used with existing contrastive learning methods that distinguish positive pairs from negative pairs such as MoCo [18] and SimCLR [7]. Despite their simplicity, we show that these non-semantic negative samples are actually harder than the standard negative samples used by these methods, which are inefficient at leveraging hard negatives [13, 31]. Further, our negative pairs can also be used by contrastive learning methods that do not explicitly use negative samples, such as BYOL [16]. We evaluate our methods with two contrastive learning methods, MoCo [18, 8] and BYOL [16], on three datasets, ImageNet-100, ImageNet-1K and STL10. When using our proposed augmentations to generate negative samples and minimize their representation similarity to the input images, we notice a consistent improvement on the generalization performance over backbone methods [8, 16] and previous negative example generation strategies [31, 43], especially under out-of-distribution (OOD) settings. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
460,
|
| 169 |
+
825,
|
| 170 |
+
612
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "We conduct a systematic analysis of how the shape-texture trade-off influences model performance based on the proposed ImageNet-Texture dataset. We control the penalty on similarities between the non-semantic negative examples and the query samples. This impacts the trade-off between using shape and texture features. We find that the relative importance of texture and shape features varies across different datasets. For example, shape bias benefits ImageNet-Sketch [50] more than the original ImageNet validation set. On the other hand, texture bias benefits finer-grained classification more, such as dog breed classification included in ImageNet. These results complement previous evidence showing the effectiveness of shape features in classifying 16 coarse classes [14]. Such preference for one feature over the other is also observed intra-dataset: the texture is more important for some classes such as dishrag and plaque. These observations make us question the relationship between shape and texture features as the implicitly necessary bias of CNNs and advocate for an adaptive combination of both when deploying the model in real scenarios. In summary: ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
619,
|
| 180 |
+
825,
|
| 181 |
+
785
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "• We propose texture-based and patch-based augmentations to generate negative samples from input images, and show that these negative samples improve the generalization of contrastive learning. \n• We introduce the ImageNet-Texture dataset, which contains texture versions of ImageNet images generated by texture synthesis tools. \n• We provide fine-grained analysis on the shape-texture trade-off of CNNs, and show different scenarios when one is preferred over the other. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
217,
|
| 190 |
+
799,
|
| 191 |
+
825,
|
| 192 |
+
911
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "2 Negative Samples with Diminished Semantics ",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
88,
|
| 203 |
+
584,
|
| 204 |
+
107
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "CNNs are apt to learn low level features such as texture under supervised settings [3, 14, 51]; this has been recently witnessed under the contrastive learning setting as well [23]. To mitigate this problem, we propose two methods, texture-based and patch-based augmentations, to generate negative samples for contrastive learning. Texture-based augmentation generates realistic images based on texture synthesis and patch-based augmentation exploits more comprehensive local features by sampling patches from input images. By penalizing learned similarities between the representations of images and their non-semantic counterparts, the model is encouraged to rely less on the undesired features and focus more on the semantics. In practice, we find the two negative samples play similar roles and the patch-based method works slightly better. In this section, we start with an overview of contrastive learning and show how non-semantic negatives are used in these frameworks. Then we elaborate on the two approaches to generate negative samples with diminished semantics. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
173,
|
| 213 |
+
119,
|
| 214 |
+
825,
|
| 215 |
+
272
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "2.1 Contrastive learning with non-semantic negatives ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
173,
|
| 225 |
+
289,
|
| 226 |
+
557,
|
| 227 |
+
304
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Given an encoder network $f$ and an image $\\mathbf { x }$ , we denote the output of the network as $\\mathbf { z } = f ( \\mathbf { x } )$ . We use $z _ { i }$ and $z _ { p }$ to denote the representations of the query sample $\\mathbf { \\boldsymbol { x } } _ { i }$ and a positive sample $\\mathbf { \\boldsymbol { x } } _ { p }$ generated from the same input image with augmentations that preserve semantics. For contrastive learning methods like MoCo [18] and SimCLR [7], $z _ { n }$ denotes the representation of the standard negative sample ${ \\pmb x } _ { n }$ extracted from the memory bank (MoCo) or other images in the current batch (SimCLR). $z _ { n s }$ is the representation of the proposed negative sample $\\mathbf { \\Delta x } _ { n s }$ which contains particular non-semantic features of the input image with the semantic part weakened. We extend the noise-contrastive estimation (NCE) loss as below: ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
173,
|
| 236 |
+
313,
|
| 237 |
+
826,
|
| 238 |
+
425
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "equation",
|
| 244 |
+
"img_path": "images/cbbfb8c7fa237865ecb31cc890b223ff67f775a962402f90b0ac7cd93da2ea71.jpg",
|
| 245 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { N C E } } = - \\sum _ { i \\in I } \\log \\frac { \\exp { \\left( z _ { i } ^ { T } z _ { p } / \\tau \\right) } } { \\exp { \\left( z _ { i } ^ { T } z _ { p } / \\tau \\right) } + \\exp { \\left( \\alpha z _ { i } ^ { T } z _ { n s } / \\tau \\right) } + \\sum _ { n \\in N } \\exp { \\left( z _ { i } ^ { T } z _ { n } / \\tau \\right) } } ,\n$$",
|
| 246 |
+
"text_format": "latex",
|
| 247 |
+
"bbox": [
|
| 248 |
+
232,
|
| 249 |
+
430,
|
| 250 |
+
764,
|
| 251 |
+
472
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "where $\\tau$ is a temperature parameter and $\\alpha$ is an additional scaling parameter for non-semantic negatives. A larger $\\alpha$ implies a stronger penalty on the similarity between the representations of the query image and its non-semantic version. In Appendix B.1 we discuss other possible ways to apply $\\alpha$ . ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
173,
|
| 260 |
+
478,
|
| 261 |
+
823,
|
| 262 |
+
534
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "Methods like BYOL [16] do not explicitly rely on negative samples. Nevertheless, BYOL adapts the loss to maximize the agreement of positive pairs. Therefore, we explicitly use the non-semantic negative sample with their loss to minimize its similarity to the query sample: ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
540,
|
| 272 |
+
823,
|
| 273 |
+
582
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "equation",
|
| 279 |
+
"img_path": "images/19fe78939eaf76d9c7af49d8f43880a0d98a2c5089d2d6a0a138b17d9bb9df87.jpg",
|
| 280 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { B Y O L } } = | | z _ { i } - z _ { p } | | - \\alpha | | z _ { i } - z _ { n s } | | = 2 - 2 \\alpha - 2 z _ { i } ^ { T } z _ { p } + 2 \\alpha z _ { i } ^ { T } z _ { n s } .\n$$",
|
| 281 |
+
"text_format": "latex",
|
| 282 |
+
"bbox": [
|
| 283 |
+
266,
|
| 284 |
+
588,
|
| 285 |
+
732,
|
| 286 |
+
608
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "We overload $\\alpha$ to be the parameter that controls the penalty on the similarity between the representations of input image and its non-semantic version under BYOL, with similar intention as MoCo and SimCLR above. To minimize either $\\mathcal { L } _ { \\mathrm { N C E } }$ or $\\mathcal { L } _ { \\mathrm { B Y O L } }$ , the encoder must learn features from $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ that are not contained in $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { n s } }$ but shared with $\\mathbf { \\boldsymbol { x } } _ { p }$ . ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
613,
|
| 296 |
+
825,
|
| 297 |
+
670
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "2.2 Texture-based negative sample generation ",
|
| 304 |
+
"text_level": 1,
|
| 305 |
+
"bbox": [
|
| 306 |
+
174,
|
| 307 |
+
685,
|
| 308 |
+
504,
|
| 309 |
+
700
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "We use texture synthesis tools to generate negative samples. Texture synthesis aims to generate realistic images that preserve as much local structure as possible from an example image [19, 11, 42]. For instance, as shown in Figure 1(d), the texture of the input dog image preserves the fur and colors of the dog. Notably, in previous discussion of robustness [3, 50], such local structure has often been recognized as highly correlated with the labels yet superfluous to generalization. For example, under large domain shift due to lighting, motion, and even modality, the texture is more apt to change than the semantic features, such as the shape. Furthermore, CNNs trained on ImageNet are more likely to classify images based on the texture features rather than the shape features which are instead preferred by humans due to their transferability [14]. To encourage the model to rely more on the shape features, we propose a two-step method to generate the texture image of input images as the negative samples for contrastive learning. ",
|
| 316 |
+
"bbox": [
|
| 317 |
+
173,
|
| 318 |
+
710,
|
| 319 |
+
825,
|
| 320 |
+
863
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "To be specific, we first sample two patches from given images as the input to the texture synthesis algorithms. One patch is extracted from the center of the image. This patch is expected to reflect the texture of the object according to the implicit bias contained in the ImageNet dataset that most of the objects are center-oriented in the images [2]. The other patch is extracted from a random location to reflect other possible textures of the image (e.g. background, peripheral region of the object). In this work, we extract patches with size $9 6 \\times 9 6$ when image size allows, otherwise $4 8 \\times 4 8$ patches are extracted. Second, we adopt off-the-shelf texture synthesis algorithms [12, 52, 1] to generate texture images based on the two patches. These non-parametric algorithms iteratively sample pixels from given patches that share a similar neighborhood with the current pixel. Specifically, we use the open-source software built on these methods [12, 52, 1] with multi-threaded CPU support implemented in Rust 1. For each sample in the ImageNet dataset, we generate one $2 2 4 \\times 2 2 4$ texture image to construct a dataset that has the same training and validation size as the ImageNet dataset. We call this dataset ImageNet-Texture. More examples can be found in Appendix A.1. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
174,
|
| 329 |
+
869,
|
| 330 |
+
825,
|
| 331 |
+
911
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "",
|
| 338 |
+
"bbox": [
|
| 339 |
+
173,
|
| 340 |
+
90,
|
| 341 |
+
825,
|
| 342 |
+
229
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "2.3 Patch-based negative sample generation ",
|
| 349 |
+
"text_level": 1,
|
| 350 |
+
"bbox": [
|
| 351 |
+
174,
|
| 352 |
+
247,
|
| 353 |
+
490,
|
| 354 |
+
262
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "To simulate the local information contained in the images [4, 3], we propose an efficient patch-based method to generate non-semantic images. Given an image and a patch size $d$ , we sample patches of size $d$ from $\\textstyle { \\left( \\lceil \\frac { 2 2 4 } { d } \\rceil \\right) ^ { 2 } }$ non-overlapping random locations that lie entirely in the image. The patches are then tiled and cropped into $2 2 4 \\times 2 2 4$ as negative samples. Compared with the texture-based method, this generation process takes negligible time, therefore it can be implemented as part of the data loading process in parallel with training. By doing so, each training sample can be paired with different negative samples generated from different patches every time it is used, compared with the two fixed patches selected when generating texture images. ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
174,
|
| 363 |
+
273,
|
| 364 |
+
825,
|
| 365 |
+
385
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "Different from the texture-based method that generates realistic images, the patch-based method generates images with artificial lines as shown in Figure 1e. One might be concerned with possible degenerate solution where the model outputs a low similarity whenever it detects the repeated sharp changes in the horizontal or vertical directions, which could be done with a single layer of convolution. However, interestingly, we find that the model does not find such a simple solution in practice. This is also noticed in a previous study where the image and its copy with a patch cut out are non-trivially distinguished by the model [34]. To mitigate this potential issue, we randomly sample patch size $d$ from a prior distribution instead of using a fixed $d$ in practice, which allows the model to look at texture at different scales. ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
174,
|
| 374 |
+
390,
|
| 375 |
+
825,
|
| 376 |
+
515
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "2.4 How hard are the texture-based and patch-based negative samples? ",
|
| 383 |
+
"text_level": 1,
|
| 384 |
+
"bbox": [
|
| 385 |
+
176,
|
| 386 |
+
534,
|
| 387 |
+
681,
|
| 388 |
+
547
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Constrastive learning methods are known to struggle with finding hard negative samples [13, 31] and researchers have proposed several ways to better leverage hard negatives [31, 43]. An intermediate question is how hard are our proposed negative samples compared with those standard negative samples used in previous constrastive learning methods [7, 18], i.e. random training samples. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
559,
|
| 398 |
+
825,
|
| 399 |
+
614
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "image",
|
| 405 |
+
"img_path": "images/053ffd820a486e3452bda8b348ec62db7db59f94587e6cc554e2bef9504f7767.jpg",
|
| 406 |
+
"image_caption": [
|
| 407 |
+
"Figure 2: The histogram of cosine similarity between the representations of query sample and its paired samples, namely positive sample and standard, texture-based, and patch-based negative samples (NS), using MoCo-v2 model trained on the ImageNet-1K dataset for 200 epochs. "
|
| 408 |
+
],
|
| 409 |
+
"image_footnote": [],
|
| 410 |
+
"bbox": [
|
| 411 |
+
178,
|
| 412 |
+
631,
|
| 413 |
+
821,
|
| 414 |
+
739
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "We use the official MoCo-v2 model pretrained on the ImageNet-1K dataset for 200 epochs to calculate the cosine similarities between different kinds of pairs across the ImageNet training set. We plot the histogram of these similarities in Figure 2. As shown in the Figures 2a and 2b, most positive pairs and negative pairs have similarity close to 1 and 0 respectively. Specifically, the average similarities across the training samples are 0.94257 and 0.00018 for positive and negative pairs. As shown in the Figures 2d and 2c, the distributions of patch-based and texture-based negative samples are very different from those of standard negative samples; their similarity distributions have heavy tails in the positive region. Specifically, the distribution of patch-based and texture-based negative samples have average similarity 0.29503 and 0.35248 across the dataset, which shows that they remain difficult after training with standard negative examples. ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
174,
|
| 423 |
+
815,
|
| 424 |
+
825,
|
| 425 |
+
885
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "",
|
| 432 |
+
"bbox": [
|
| 433 |
+
174,
|
| 434 |
+
92,
|
| 435 |
+
825,
|
| 436 |
+
161
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 4
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "3 Experiments ",
|
| 443 |
+
"text_level": 1,
|
| 444 |
+
"bbox": [
|
| 445 |
+
174,
|
| 446 |
+
181,
|
| 447 |
+
312,
|
| 448 |
+
198
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 4
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "In this section, we evaluate the two kinds of non-semantic negative samples with two contrastive learning methods, MoCo and BYOL, on the ImageNet dataset. We also experiment using its subset, the ImageNet-100 dataset [48, 31], which allows us to perform more comprehensive experiments. We report accuracy on out-of-domain (OOD) datasets including the ImageNet-C(orruption) [22], ImageNet-S(ketch) [50], Stylized-ImageNet [14], and ImageNet-R(endition)[21] datasets as an evaluation of the model’s robustness to domain shifts. ImageNet-C and Stylized-ImageNet contain images transformed from the images in the ImageNet validation set with common corruption and transferred style. ImageNet-S and ImageNet-R are collected independently from the ImageNet dataset and share all or a subset of the classes in the ImageNet dataset with a focus on sketch and other rendering modalities. We show that with our proposed non-semantic negatives, contrastive learning generalizes better under domain shifts. For patch-based negatives, it also improves the performance on the in-domain dataset. ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
174,
|
| 457 |
+
213,
|
| 458 |
+
826,
|
| 459 |
+
378
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "3.1 ImageNet-100 ",
|
| 466 |
+
"text_level": 1,
|
| 467 |
+
"bbox": [
|
| 468 |
+
173,
|
| 469 |
+
396,
|
| 470 |
+
312,
|
| 471 |
+
411
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 4
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "table",
|
| 477 |
+
"img_path": "images/1b4022cccb9baf8b252bf560a8187b717e08bc7e5cf4d980a7ed9d5a65b7d48f.jpg",
|
| 478 |
+
"table_caption": [
|
| 479 |
+
"Table 1: Top-1 accuracy on the ImageNet-100 dataset and its OOD variants. We consider the supervised baseline as well as several self-supervised baselines including MoCo-v2, BYOL, InsDis, CMC, and InfoMIN. For our main comparison using MoCo-v2 and BYOL, we also report the standard deviation of 3 runs. For MoCo models, $k$ represents the size of the memory bank. We use \\* to denote the experiments that use the training setting in a concurrent work IFM [44]. "
|
| 480 |
+
],
|
| 481 |
+
"table_footnote": [],
|
| 482 |
+
"table_body": "<table><tr><td></td><td>ImageNet</td><td>ImageNet-C</td><td>ImageNet-S</td><td>Stylized-ImageNet</td><td>ImageNet-R</td></tr><tr><td>MoCo-v2-k=16384</td><td>77.88±0.28</td><td>43.08±0.27</td><td>28.24±0.58</td><td>16.20±0.55</td><td>32.92±0.12</td></tr><tr><td>+ Texture-based -α = 2</td><td>77.76±0.17</td><td>43.58±0.33</td><td>29.11±0.39</td><td>16.59±0.17</td><td>33.36±0.15</td></tr><tr><td>+Patch-based -α = 2</td><td>79.35±0.12</td><td>45.13±0.35</td><td>31.76±0.88</td><td>17.37±0.19</td><td>34.78±0.15</td></tr><tr><td>+ Patch-based -α=3</td><td>75.58±0.52</td><td>44.45±0.15</td><td>34.03±0.58</td><td>18.60±0.26</td><td>36.89±0.11</td></tr><tr><td>MoCo-v2-k=8192</td><td>77.73±0.38</td><td>43.22±0.39</td><td>28.45±0.36</td><td>16.83±0.12</td><td>33.19±0.44</td></tr><tr><td>+ Patch-based -α = 2</td><td>79.54±0.32</td><td>45.48±0.20</td><td>33.36±0.45</td><td>17.81±0.32</td><td>36.31±0.37</td></tr><tr><td>MoCo-v2*</td><td>80.00±0.14</td><td>45.15±0.42</td><td>30.38±0.30</td><td>16.68±0.39</td><td>30.38±0.30</td></tr><tr><td>+ IFM[44]- ε = 0.05</td><td>80.86</td><td>47.36</td><td>31.35</td><td>18.18</td><td>36.79</td></tr><tr><td>+ IFM[44] - ε= 0.1</td><td>81.22</td><td>47.46</td><td>31.87</td><td>18.42</td><td>37.23</td></tr><tr><td>+ IFM[44] - ε = 0.2</td><td>81.02</td><td>47.19</td><td>31.55</td><td>18.68</td><td>37.14</td></tr><tr><td>+ Patch-based -α = 2</td><td>81.49±0.11</td><td>47.48±0.20</td><td>34.20±0.40</td><td>17.95±0.41</td><td>38.45±0.19</td></tr><tr><td>BYOL</td><td>78.76±0.28</td><td>44.43±0.35</td><td>35.84±0.38</td><td>15.01±0.19</td><td>39.53±0.51</td></tr><tr><td>+ Patch-based -α = 0.05</td><td>78.81±0.33</td><td>44.60±0.21</td><td>36.76±0.51</td><td>15.52±0.22</td><td>41.16±0.39</td></tr><tr><td>InsDis [53]</td><td>68.52</td><td>28.93</td><td>16.67</td><td>9.86</td><td>19.60</td></tr><tr><td>CMC [48]</td><td>79.34</td><td>39.28</td><td>24.04</td><td>13.88</td><td>32.68</td></tr><tr><td>InfoMin [49]</td><td>82.74</td><td>48.87</td><td>38.43</td><td>18.14</td><td>40.68</td></tr><tr><td>Supervised</td><td>86.26</td><td>49.17</td><td>34.95</td><td>21.20</td><td>39.76</td></tr></table>",
|
| 483 |
+
"bbox": [
|
| 484 |
+
173,
|
| 485 |
+
430,
|
| 486 |
+
838,
|
| 487 |
+
676
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "We follow the hyperparameters used in [31] to train MoCo-v2 on the ImageNet-100 dataset with a memory bank size $k = 1 6 3 8 4$ or a halved memory bank size. We also conduct experiments following the hyperparameters in a concurrent study [44] except that we keep $k = 1 6 3 8 4$ for our method. For patch-based augmentation parameters, we use patch size sampled from a uniform distribution $d \\sim \\mathcal { U } ( 1 6 , 7 2 )$ . The parameter $\\alpha$ is indicated behind each model name. We discuss the impact of $\\alpha$ in detail in the next section. More ablations on the patch-based augmentations can be found in Appendix C.3. For ImageNet-C, we report the average accuracy across 5 levels of corruption severity. ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
779,
|
| 497 |
+
825,
|
| 498 |
+
877
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 4
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "We repeat the experiments, including both the pretraining and linear evaluation, for 3 runs and report the mean and standard deviation in Table 1. As shown in the table, when following the previous memory bank size, using both patch-based and texture-based negatives improve the OOD generalizations. Specifically, patch-based augmentation increases the accuracy on ImageNet-S by ${ \\bar { 5 } } . 7 9 \\%$ and ImageNet-R by $5 . 9 7 \\%$ when $\\alpha = 3$ . When $\\alpha = 2$ , it also increases the in-domain accuracy by $1 . 4 7 \\%$ and accuracy on ImageNet-C by $2 . 0 5 \\%$ . The similar trend shared by standard ImageNet and ImageNet-C with different $\\alpha$ can be attributed to the resemblance of the images in the two dataset, especially those corrupted images with a lower level of severity. We show the performance of the model with $\\alpha = 3$ is actually better on the highest corruption level as shown in Appendix C.2. The improvement achieved using texture-based negatives is less, probably because the information contained in the texture image is restricted due to the limited access to the two fixed patches. When the memory bank is halved to be 8, 192, the baseline MoCo model has slightly worse performance, decreasing from 77.88 to 77.73. But with patch-based hard negative samples, the MoCo-v2 model instead achieved the best accuracy 79.54 on the ImageNet-100 validation set, IamgeNet-C and IamgeNet-R. We discuss this more in a later section. ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
174,
|
| 507 |
+
883,
|
| 508 |
+
823,
|
| 509 |
+
911
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "",
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
90,
|
| 519 |
+
825,
|
| 520 |
+
271
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 5
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "image",
|
| 526 |
+
"img_path": "images/13e0947ad2247e9e55fca29e31f1da4e0662f238e8457ce44311671fec0a3e71.jpg",
|
| 527 |
+
"image_caption": [
|
| 528 |
+
"Figure 3: Histogram of cosine similarity between the representations of query sample and its paired positive sample, standard, texture-based, and patch-based negative samples (NS), using models trained without (blue) and with patch-based negative samples (red: $\\alpha = 2$ , green: $\\alpha = 3$ ). "
|
| 529 |
+
],
|
| 530 |
+
"image_footnote": [],
|
| 531 |
+
"bbox": [
|
| 532 |
+
176,
|
| 533 |
+
286,
|
| 534 |
+
825,
|
| 535 |
+
391
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 5
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Similar to Figure 2, in Figure 3 we visualize the distribution of the cosine similarity between the query sample and both semantic and non-semantic samples calculated based on the models trained with and without patch-based negative samples. The shift of the distribution towards the origin in Figure 3d meets the expectation that our method reduces the similarity of input images and patch-based negative samples. Specifically, the average similarity decreases from 0.4040 to 0.3252 to 0.1593 when $\\alpha$ increases from 0, namely no patched-based negatives, to 2 to 3. Interestingly, we notice in Figure 3c that the similarity to texture-based negative samples also decreases, and the average similarity decreases from 0.4114 to 0.3541 to 0.1896, although we did not explicitly penalize it. This demonstrates the resemblance of patch-based negative samples to texture-based negative samples. Given the better performance achieved with patch-based negative samples, for the rest of the experiments, we mainly focus on the patch-based methods. But we still conduct our analysis on the texture-based samples. We also find a marginal decrease in the positive similarity $( - 0 . 0 0 6 8 )$ and negative similarity $( - 0 . 0 0 0 8 )$ when $\\alpha = 2$ and a substantial decrease in the positive similarity $( - 0 . 0 7 3 7 )$ and increase in the negative similarity (0.0036) when $\\alpha = 3$ . A similar figure for texture-based negative samples can be found in the Appendix in Figure 12. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
459,
|
| 545 |
+
826,
|
| 546 |
+
666
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 5
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "3.2 ImageNet-1K ",
|
| 553 |
+
"text_level": 1,
|
| 554 |
+
"bbox": [
|
| 555 |
+
173,
|
| 556 |
+
683,
|
| 557 |
+
307,
|
| 558 |
+
698
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 5
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "table",
|
| 564 |
+
"img_path": "images/09df562da9d5f3932868fb638cff3b365dade5d2d4404d70fec416a0390f2892.jpg",
|
| 565 |
+
"table_caption": [],
|
| 566 |
+
"table_footnote": [],
|
| 567 |
+
"table_body": "<table><tr><td></td><td>ImageNet</td><td>ImageNet-C</td><td>ImageNet-S</td><td>Stylized-ImageNet</td><td>ImageNet-R</td></tr><tr><td>MoCo-v2 [8]</td><td>67.60</td><td>87.7</td><td>17.47</td><td>5.55</td><td>27.81</td></tr><tr><td>+ MoCHi [31]</td><td>67.56</td><td>88.7</td><td>16.32</td><td>5.94</td><td>25.71</td></tr><tr><td>+ Patch-base NS -α = 2</td><td>67.92</td><td>87.6</td><td>18.58</td><td>6.34</td><td>28.95</td></tr></table>",
|
| 568 |
+
"bbox": [
|
| 569 |
+
173,
|
| 570 |
+
720,
|
| 571 |
+
825,
|
| 572 |
+
789
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 5
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "Table 2: Top-1 accuracy on the ImageNet-1K dataset and its sketch, stylized, rendition variants, and mCE on the ImageNet-C dataset. ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
173,
|
| 581 |
+
799,
|
| 582 |
+
825,
|
| 583 |
+
827
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 5
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "We follow the official hyperparameters [8] to train MoCo-v2 with our patch-based negative samples on the ImageNet-1K dataset. For the parameter $\\alpha$ and patch size $d$ , we follow the same configuration used on the ImageNet-100 dataset. We compare our results against the MoCo-v2 baseline [8] and the hard negative mixing algorithm, MoCHi [31]. Due to limited computational resources, we report the metrics evaluated with the official model without repeated runs. The results are shown in Table 2. ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
174,
|
| 592 |
+
842,
|
| 593 |
+
825,
|
| 594 |
+
911
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 5
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "More results can be found in Appendix C.6. Note that for ImageNet-C, we show the mCE metric [22], for which smaller is better. For the other datasets, we show the top-1 accuracy. ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
171,
|
| 603 |
+
90,
|
| 604 |
+
825,
|
| 605 |
+
119
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 6
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "3.3 Extension to other non-semantic features ",
|
| 612 |
+
"text_level": 1,
|
| 613 |
+
"bbox": [
|
| 614 |
+
173,
|
| 615 |
+
159,
|
| 616 |
+
498,
|
| 617 |
+
174
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 6
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "Non-semantic features are sometimes referred to as “shortcuts” in the contrastive learning literature [6, 7]. Models that leverage such features often exhibit unfavorable generalization to downstream tasks. For example, without color jittering, SimCLR [9] tends to utilize color histograms to reduce the training loss. In this section, we show that models trained with nonsemantic negatives are coerced to avoid the shortcuts shared between query images and their non-semantic counterparts. In the example of the color shortcut, we ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
173,
|
| 626 |
+
194,
|
| 627 |
+
517,
|
| 628 |
+
332
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 6
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "table",
|
| 634 |
+
"img_path": "images/2b99f75c21ed8bb1b7252f4e63273240e332ea6a190a0dc9cd9470f3c0dc6acd.jpg",
|
| 635 |
+
"table_caption": [],
|
| 636 |
+
"table_footnote": [],
|
| 637 |
+
"table_body": "<table><tr><td>Model</td><td>Top-1 Accuracy</td></tr><tr><td>MoCo-v2 [8]</td><td>70.44</td></tr><tr><td>+ Patch-based NS</td><td>76.42</td></tr></table>",
|
| 638 |
+
"bbox": [
|
| 639 |
+
555,
|
| 640 |
+
210,
|
| 641 |
+
797,
|
| 642 |
+
265
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 6
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "Table 3: Test accuracy of MoCo-v2 on the ImageNet-100 dataset after removing color jittering and adding patch-based negatives. ",
|
| 649 |
+
"bbox": [
|
| 650 |
+
529,
|
| 651 |
+
276,
|
| 652 |
+
823,
|
| 653 |
+
318
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 6
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "note that the expected color distribution of our patch-based negatives is identical to that of the query images, and the actual distribution of samples is close. We conduct experiments with MoCo-v2 on the ImageNet-100 dataset while removing the color jittering from the augmentations. The accuracy of models with and without patch-based negatives are reported in Table 3. We found that patch-based negatives contribute significant effectiveness in preventing the models from learning such a color distribution shortcut. ",
|
| 660 |
+
"bbox": [
|
| 661 |
+
174,
|
| 662 |
+
332,
|
| 663 |
+
825,
|
| 664 |
+
415
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 6
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "3.4 Memory bank size ",
|
| 671 |
+
"text_level": 1,
|
| 672 |
+
"bbox": [
|
| 673 |
+
174,
|
| 674 |
+
454,
|
| 675 |
+
341,
|
| 676 |
+
469
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 6
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "Contrastive learning methods based on negative samples suffer from ineffective excavation of hard negatives [13, 31] and resort to large batch sizes [7] or memory bank [18]. In this section, we study whether our proposed negative samples can mitigate this problem on the STL-10 and ImageNet-100 datasets. We keep the hyperparameters intact and vary the memory bank size. We report the accuracy of the MoCo-v2 baseline with and without patch-based negative samples on STL-10 dataset in Table 4. We also compare with [43] which exploits hard negatives through reweighting. We found that with proper hyperparameters the MoCo-v2 baseline already beats the reweighting results with SimCLR. ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
173,
|
| 685 |
+
489,
|
| 686 |
+
825,
|
| 687 |
+
585
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 6
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "table",
|
| 693 |
+
"img_path": "images/c3768478063a67864900f7ea6a3aa15d480ad530feb6a142c45345142d61fe4c.jpg",
|
| 694 |
+
"table_caption": [],
|
| 695 |
+
"table_footnote": [],
|
| 696 |
+
"table_body": "<table><tr><td>SimCLR[7] + Debiased [10] + Hard [43]</td><td>80.16 84.908 87.428</td></tr><tr><td>MoCo-v2 [8]</td><td>88.00</td></tr><tr><td>+ Patch-based NS</td><td>89.36</td></tr></table>",
|
| 697 |
+
"bbox": [
|
| 698 |
+
173,
|
| 699 |
+
594,
|
| 700 |
+
361,
|
| 701 |
+
676
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 6
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Table 4: Top-1 accuracy on the STL-10 dataset. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
173,
|
| 710 |
+
684,
|
| 711 |
+
357,
|
| 712 |
+
710
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 6
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "image",
|
| 718 |
+
"img_path": "images/0b38077e0c3c65a670fda2ace37e180bbbbb07800ff1f071f7779145860a5cbc.jpg",
|
| 719 |
+
"image_caption": [
|
| 720 |
+
"Figure 4: Top-1 accuracy on the STL-10 dataset with different memory bank sizes. "
|
| 721 |
+
],
|
| 722 |
+
"image_footnote": [],
|
| 723 |
+
"bbox": [
|
| 724 |
+
379,
|
| 725 |
+
598,
|
| 726 |
+
578,
|
| 727 |
+
704
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "image",
|
| 733 |
+
"img_path": "images/8da6d9ec1b551ab8ff2c66031e55c4aae98dcc8dfc11c58806b92f2b9972ce8c.jpg",
|
| 734 |
+
"image_caption": [
|
| 735 |
+
"Figure 5: Top-1 accuracy on the ImageNet-100 dataset with different memory bank sizes. "
|
| 736 |
+
],
|
| 737 |
+
"image_footnote": [],
|
| 738 |
+
"bbox": [
|
| 739 |
+
612,
|
| 740 |
+
598,
|
| 741 |
+
815,
|
| 742 |
+
704
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 6
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "§ denotes results visually extracted from Figure 2 in [43]. ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
712,
|
| 752 |
+
357,
|
| 753 |
+
752
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "As shown in Figures 4 and 5, using patch-based non-semantic negatives consistently improves the MoCo baseline when the number of standard negatives varies. When slightly decreasing the memory bank size on the STL-10 dataset as shown in Figure 4 and ImageNet-100 in Table 1, the performance with patch-based negatives increases. This is probably because, according to Eq. 1 and analysis in Appendix B.1, a smaller memory bank size causes a larger contribution of non-semantic negatives to the loss, and consequently a larger regularization. To further demystify this observation, we conduct experiments with evenly sampled memory bank sizes between 4096 and 16384 and report the average and standard deviation across 3 runs in Figure 5. We confirm a consistent recession of baseline accuracy when decreasing memory back sizes [18, 43]. However, the steady improvement led by the non-semantic negatives effectively mitigates the problem - the decrease caused by a smaller memory bank is less substantial and using patch-based negatives always beats the baseline. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
173,
|
| 762 |
+
760,
|
| 763 |
+
825,
|
| 764 |
+
911
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "4 Discussion ",
|
| 771 |
+
"text_level": 1,
|
| 772 |
+
"bbox": [
|
| 773 |
+
174,
|
| 774 |
+
89,
|
| 775 |
+
294,
|
| 776 |
+
106
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 7
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "4.1 Controlling the shape-texture trade-off with $\\alpha$ ",
|
| 783 |
+
"text_level": 1,
|
| 784 |
+
"bbox": [
|
| 785 |
+
174,
|
| 786 |
+
121,
|
| 787 |
+
532,
|
| 788 |
+
136
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 7
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "There has been a growing interest in understanding the cause and impact of the trade-off between shape and texture bias of CNNs [14, 23, 35, 27]. CNNs trained on ImageNet are known to be over-reliant on the texture features [14]. Contrastive learning with our non-semantic negatives serve as not only an effective method to reduce such reliance, but a natural tool to study such a trade-off. ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
173,
|
| 797 |
+
147,
|
| 798 |
+
825,
|
| 799 |
+
203
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 7
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "image",
|
| 805 |
+
"img_path": "images/4992b7aa00d082da0b5210f824275b6074f9ac4af7a1f2f7c2d058ec5fc6a667.jpg",
|
| 806 |
+
"image_caption": [
|
| 807 |
+
"Figure 6: Larger $\\alpha$ monotonically increases the model bias to shape features over texture features. Model performance is impacted by such a trade-off differently under different settings. In all scenarios, slightly calibrated shape bias improves model performance. The test settings represented in the red lines gain more from the increased shape bias than the settings represented in the green lines. "
|
| 808 |
+
],
|
| 809 |
+
"image_footnote": [],
|
| 810 |
+
"bbox": [
|
| 811 |
+
176,
|
| 812 |
+
219,
|
| 813 |
+
821,
|
| 814 |
+
321
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 7
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "We train MoCo-v2 models with different $\\alpha$ from 1 to 5 on the ImageNet-100 dataset. As shown in Figure 6a, we find that $\\alpha$ effectively controls the trade-off on the model bias to the shape and texture features. $\\alpha = 0$ is used to denote the baseline method. Specifically, a larger $\\alpha$ in the loss function 1 leads to a larger penalty on the similarity between the representations of query samples and non-semantic samples, consequently a larger shape bias. We follow [14] to calculate shape bias on the stimuli images with conflicted shape and texture clues generated by style transfer. We show the corresponding accuracy on the shape and texture labels in Figure 6b. ",
|
| 821 |
+
"bbox": [
|
| 822 |
+
173,
|
| 823 |
+
405,
|
| 824 |
+
825,
|
| 825 |
+
502
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 7
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "As shown in Figure 6b, when $\\alpha$ increases the texture accuracy on the stimuli dataset monotonically decreases while the shape accuracy monotonically increases. To further study how the trade-off between shape and texture bias impacts the model performance, we first compare the accuracy on the ImageNet validation dataset and ImageNet-Sketch dataset [50] when $\\alpha$ varies in Figure 6c. We find that on both datasets, slightly increased shape bias over baseline $\\alpha = 2$ ) improves performances. Interestingly, the accuracy peak on the ImageNet-Sketch appears at $\\alpha = 3$ while the peak appears at $\\alpha = 2$ on the ImageNet validation dataset. In addition, for even larger $\\alpha$ the accuracy on the ImageNet-Sketch dataset still outperforms the baseline while the standard accuracy gets hurt. This shows that different downstream tasks may benefit differently from differently shape-biased models. ",
|
| 832 |
+
"bbox": [
|
| 833 |
+
174,
|
| 834 |
+
508,
|
| 835 |
+
825,
|
| 836 |
+
633
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 7
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "We plot the histograms of similarities calculated by the models trained with different $\\alpha$ in Appendix Figure 13. We find that large $\\alpha$ makes the original pretext task challenging - the model cannot effectively pull together the representations of positive pairs. Specifically, when $\\alpha$ increases from 1 to 5, the average similarity of the positive pairs decrease from 0.9267 to 0.7541. This demonstrates that it is hard for the model to learn representations that are completely independent of the texture features contained in the non-semantic images. ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
174,
|
| 845 |
+
638,
|
| 846 |
+
825,
|
| 847 |
+
723
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 7
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "4.2 Rethinking the shape-texture trade-off through class-based analysis ",
|
| 854 |
+
"text_level": 1,
|
| 855 |
+
"bbox": [
|
| 856 |
+
174,
|
| 857 |
+
739,
|
| 858 |
+
681,
|
| 859 |
+
755
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 7
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "The initial discussion on the shape-texture trade-off shows that humans rely more on the shape features while CNNs rely more on texture features and increasing shape bias can improve accuracy and robustness [14]. However, similar to [40, 23], we notice that increasing shape bias does not always improve the generalization and robustness of the models. To better understand this phenomenon, we provide two observations based on the analysis of the ImageNet-Texture dataset and our method to explain why a texture-biased model is helpful with classification on the ImageNet dataset. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
766,
|
| 869 |
+
825,
|
| 870 |
+
849
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 7
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "First, we find that an increasing shape bias often leads to more errors among the fine-grained classes. The initial discussion of the shape-bias [14] only pays attention to the selected 16 coarse classes. We thus compare the finer and coarse class accuracy on the dog images of ImageNet dataset as in Figure 6d. For coarse class accuracy, the predictions are counted to be correct whenever the image is classified as a dog class, no matter which dog class is predicted, while for the finer class accuracy, only those predictions of target dog classes are counted to be correct. We notice that the finer class accuracy drops more significantly when shape bias increases as opposed to the coarse class accuracy. For example, when $\\alpha = 3$ , the finer class accuracy drops from 72.9 to 67.6 while the coarse class accuracy slightly decreases from 97.8 to 97.7. Therefore, for datasets with numerous fine-grained classes like ImageNet, a texture-biased model is more helpful for a higher accuracy, which confirms the previous conjecture [54] . Second, in Appendix Figure 9, we show a scatter plot of texture accuracy vs. standard accuracy of different model architectures and a histogram of accuracy on individual ImageNet-Texture classes. We identify several classes where using only texture features is sufficient to achieve a high classification accuracy. These classes are all missing in the previous study [14]. As shown in Figure 7 and Appendix Figure 10, texture serves as a more important clue than the shape for these classes. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
174,
|
| 879 |
+
856,
|
| 880 |
+
825,
|
| 881 |
+
911
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "image",
|
| 887 |
+
"img_path": "images/c6ba57412c923a730dcc67460ee2fbfd0c28a8d9834c454fafc9b5d28ea800bd.jpg",
|
| 888 |
+
"image_caption": [
|
| 889 |
+
"Figure 7: A ResNet-50 model trained on the ImageNet dataset achieves decent accuracy when only texture features are available on some classes. A normal image and its texture version are displayed for some of these classes. The caption indicates the class ID, name, and accuracy on texture images. "
|
| 890 |
+
],
|
| 891 |
+
"image_footnote": [],
|
| 892 |
+
"bbox": [
|
| 893 |
+
176,
|
| 894 |
+
92,
|
| 895 |
+
821,
|
| 896 |
+
179
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 8
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "",
|
| 903 |
+
"bbox": [
|
| 904 |
+
174,
|
| 905 |
+
262,
|
| 906 |
+
825,
|
| 907 |
+
429
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 8
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "5 Related Work ",
|
| 914 |
+
"text_level": 1,
|
| 915 |
+
"bbox": [
|
| 916 |
+
174,
|
| 917 |
+
455,
|
| 918 |
+
321,
|
| 919 |
+
472
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Contrastive learning based self-supervised learning Recent contrastive learning based selfsupervised learning methods including MoCo [18], SimCLR [7], InfoMin[49], SimSiam[9], BYOL [16], SwAV [6], Barlow Twins [56] have proven helpful in learning visual representations. These methods rely on different pretext tasks to increase the agreement among the different views of the same image. The augmentations used to generate these views are essential to the success of these contrastive learning methods [7, 6] by preventing shortcuts such as the use of simple color histogram [7]. There is an ongoing trend of developing novel augmentations [6, 49] or adaptively applying augmentations [54] and consistent improvement has been achieved with these studies. However, it is intractable to eliminate every shortcut and sometimes tricky to craft the correct positive pairs. Different from these methods, we show that augmentations that perturb the semantic features and craft negative samples can be more effective to impose additional regularization. For example, to prevent models from relying on local features, it is much easier to destroy global features and create negatives than to remove all the local features and create positives. Furthermore, by maximizing the difference between natural images and their non-semantic versions in the representation space, the models are coerced to avoid any potential shortcuts shared by them. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
491,
|
| 929 |
+
825,
|
| 930 |
+
696
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 8
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Methods like MoCo [18] and SimCLR [7] distinguish positive pairs from negative pairs that are picked from the rest of the dataset. However, most of the negatives prove to be unnecessary and insufficient [13, 31]. To excavate effective negative samples, these methods heavily depend on the large batch sizes [7] or memory bank [18]. Utilizing hard negative samples has long been recognized as an effective approach to boost model performance [17, 29, 55, 46]. In the contrastive learning studies, [10, 43] modify the contrastive learning loss to make it assign greater weights to the hard negative samples. [31] proposes to synthesize hard negative samples by taking linear combinations of the hardest negative samples. Our work is orthogonal to these ideas in the way that we propose to generate negative samples from given images themselves to reduce the reliance on the undesired features. In addition, two recent works [25, 32] study the application of adversarial examples as hard positive and negative samples in contrastive learning. [45] augments the images by manipulating their foregrounds and backgrounds to generate negative and positive samples. Compared with these studies, we mainly focus on the OOD evaluation of the models. In addition, our patch-based augmentation is also related to the self-Supervised learning methods that adopt the pretext task based on jigsaw [41, 39, 20], which we discuss in the Appendix B.2. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
174,
|
| 939 |
+
704,
|
| 940 |
+
825,
|
| 941 |
+
911
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 8
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Robustness and out-of-domain generalization of CNNs High test accuracy provides no guarantee that a network learns high-level semantic features instead of low-level superfluous features that exist in both training and test dataset [30]. An increasing number of studies have corroborated such concerns and found that CNNs can rely on local patches [4, 3], texture [14], high-frequency components [51] and even artificially added features [26] to achieve high test accuracy. These superficial correlations become brittle under large domain shifts [22, 21]. This still remains an unsolved problem [47] and is rarely discussed in the contrastive learning setting. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
174,
|
| 950 |
+
92,
|
| 951 |
+
825,
|
| 952 |
+
188
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 9
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "Among all these undesired features, the shape-texture bias has been widely discussed in recent studies [14, 36]. Previous work has shown that CNNs trained on the ImageNet dataset are biased to texture features and such over-reliance can hurt the generalization performance of CNNs [14, 24]. Several studies have aimed at mitigating this problem [38, 35] or providing a better understanding [23, 27]. In this paper, we introduce a dataset called ImageNet-Texture, which can help future studies on these problems. Our method also effectively controls the trade-off between shape and texture bias. We provide new insights about this problem based on the analysis of our method and dataset. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
174,
|
| 961 |
+
194,
|
| 962 |
+
825,
|
| 963 |
+
291
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 9
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "6 Closing Remarks ",
|
| 970 |
+
"text_level": 1,
|
| 971 |
+
"bbox": [
|
| 972 |
+
176,
|
| 973 |
+
310,
|
| 974 |
+
349,
|
| 975 |
+
328
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 9
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "Conclusion CNNs are prone to learn discriminative features that are vulnerable under domain shifts. In this paper, we first demonstrate the regularization power of contrastive learning to discard any undesired features by generating appropriate negative samples. We explore two approaches, the patch-based and texture-based augmentations, to craft negative samples with only local features preserved. We show that the representations learned by contrastive learning with such negative samples depend less on the local features, and consequently generalize better under OOD settings. We hope this paper can encourage people to rethink the role that negative samples play in contrastive learning, which hopefully leads to more efficient methods to generate negative samples. ",
|
| 982 |
+
"bbox": [
|
| 983 |
+
174,
|
| 984 |
+
343,
|
| 985 |
+
825,
|
| 986 |
+
454
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 9
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "Limitations The problem of dependence on superficial features exists in various domains beyond vision, such as language [37, 28]. Therefore, it is intriguing to consider generalizing such an idea to other modalities. In addition, as the mechanism to ensure that contrastive learning models trained on large datasets to discard the bias of the datasets is yet to be invented, severe social issues in fairness or privacy may be raised as a result [5, 33]. In this paper, we show how to calibrate the bias towards texture features using proposed negative samples. It is also worth considering whether contrastive learning can be used to address any of these negative effects triggered by bias in datasets. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
174,
|
| 995 |
+
468,
|
| 996 |
+
825,
|
| 997 |
+
565
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 9
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1004 |
+
"text_level": 1,
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
174,
|
| 1007 |
+
585,
|
| 1008 |
+
553,
|
| 1009 |
+
603
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 9
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "The authors thank the National Science Foundation, grant no. IIS-1910132 and the Guaranteeing AI Robustness Against Deception (GARD) program from DARPA for their support of this project. The authors thank Yannis Kalantidis for his help with reproducing MoCo-v2 on the ImageNet-100 dataset and Joshua Robinson for providing the checkpoints of IFM models for comparison. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
174,
|
| 1018 |
+
617,
|
| 1019 |
+
825,
|
| 1020 |
+
672
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 9
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "References ",
|
| 1027 |
+
"text_level": 1,
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
174,
|
| 1030 |
+
691,
|
| 1031 |
+
266,
|
| 1032 |
+
707
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 9
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "[1] M. Ashikhmin. Synthesizing natural textures. In Proceedings of the 2001 symposium on Interactive 3D graphics, pages 217–226, 2001. \n[2] L. Beyer, O. J. Hénaff, A. Kolesnikov, X. Zhai, and A. van den Oord. Are we done with imagenet?, 2020. \n[3] W. Brendel and M. Bethge. Approximating CNNs with bag-of-local-features models works surprisingly well on imagenet. In International Conference on Learning Representations, 2019. \n[4] T. B. Brown, D. Mané, A. Roy, M. Abadi, and J. Gilmer. Adversarial patch. arXiv preprint arXiv:1712.09665, 2017. \n[5] J. Buolamwini and T. Gebru. Gender shades: Intersectional accuracy disparities in commercial gender classification. In Conference on fairness, accountability and transparency, pages 77–91. PMLR, 2018. \n[6] M. Caron, I. Misra, J. Mairal, P. Goyal, P. Bojanowski, and A. Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020. \n[7] T. Chen, S. Kornblith, M. Norouzi, and G. Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020. [8] X. Chen, H. Fan, R. Girshick, and K. He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020. \n[9] X. Chen and K. He. Exploring simple siamese representation learning. arXiv preprint arXiv:2011.10566, 2020. \n[10] C.-Y. Chuang, J. Robinson, Y.-C. Lin, A. Torralba, and S. Jegelka. Debiased contrastive learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 8765–8775. Curran Associates, Inc., 2020. \n[11] J. S. De Bonet. Multiresolution sampling procedure for analysis and synthesis of texture images. In Proceedings of the 24th annual conference on Computer graphics and interactive techniques, pages 361–368, 1997. \n[12] A. A. Efros and T. K. Leung. Texture synthesis by non-parametric sampling. In Proceedings of the seventh IEEE international conference on computer vision, volume 2, pages 1033–1038. IEEE, 1999. \n[13] J. Frankle, D. J. Schwab, A. S. Morcos, et al. Are all negatives created equal in contrastive instance discrimination? arXiv preprint arXiv:2010.06682, 2020. \n[14] R. Geirhos, P. Rubisch, C. Michaelis, M. Bethge, F. A. Wichmann, and W. Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In International Conference on Learning Representations, 2019. \n[15] R. Geirhos, C. R. M. Temme, J. Rauber, H. H. Schütt, M. Bethge, and F. A. Wichmann. Generalisation in humans and deep neural networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7549–7561, 2018. \n[16] J.-B. Grill, F. Strub, F. Altché, C. Tallec, P. Richemond, E. Buchatskaya, C. Doersch, B. Avila Pires, Z. Guo, M. Gheshlaghi Azar, B. Piot, k. kavukcuoglu, R. Munos, and M. Valko. Bootstrap your own latent - a new approach to self-supervised learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 21271–21284. Curran Associates, Inc., 2020. \n[17] B. Harwood, V. Kumar B G, G. Carneiro, I. Reid, and T. Drummond. Smart mining for deep metric learning. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2017. \n[18] K. He, H. Fan, Y. Wu, S. Xie, and R. Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9729–9738, 2020. \n[19] D. J. Heeger and J. R. Bergen. Pyramid-based texture analysis/synthesis. In Proceedings of the 22nd annual conference on Computer graphics and interactive techniques, pages 229–238, 1995. \n[20] O. Henaff. Data-efficient image recognition with contrastive predictive coding. In International Conference on Machine Learning, pages 4182–4192. PMLR, 2020. \n[21] D. Hendrycks, S. Basart, N. Mu, S. Kadavath, F. Wang, E. Dorundo, R. Desai, T. Zhu, S. Parajuli, M. Guo, D. Song, J. Steinhardt, and J. Gilmer. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020. \n[22] D. Hendrycks and T. Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. Proceedings of the International Conference on Learning Representations, 2019. \n[23] K. Hermann, T. Chen, and S. Kornblith. The origins and prevalence of texture bias in convolutional neural networks. Advances in Neural Information Processing Systems, 33, 2020. \n[24] K. L. Hermann and A. K. Lampinen. What shapes feature representations? exploring datasets, architectures, and training, 2020. \n[25] C.-H. Ho and N. Nvasconcelos. Contrastive learning with adversarial examples. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 17081–17093. Curran Associates, Inc., 2020. \n[26] H. Huang, X. Ma, S. M. Erfani, J. Bailey, and Y. Wang. Unlearnable examples: Making personal data unexploitable. In International Conference on Learning Representations, 2021. \n[27] M. A. Islam, M. Kowal, P. Esser, S. Jia, B. Ommer, K. G. Derpanis, and N. Bruce. Shape or texture: Understanding discriminative features in {cnn}s. In International Conference on Learning Representations, 2021. \n[28] R. Jia and P. Liang. Adversarial examples for evaluating reading comprehension systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2021–2031, 2017. \n[29] S. Jin, A. RoyChowdhury, H. Jiang, A. Singh, A. Prasad, D. Chakraborty, and E. Learned-Miller. Unsupervised hard example mining from videos for improved object detection. In Proceedings of the European Conference on Computer Vision (ECCV), pages 307–324, 2018. \n[30] J. Jo and Y. Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017. \n[31] Y. Kalantidis, M. B. Sariyildiz, N. Pion, P. Weinzaepfel, and D. Larlus. Hard negative mixing for contrastive learning. In Neural Information Processing Systems (NeurIPS), 2020. \n[32] M. Kim, J. Tack, and S. J. Hwang. Adversarial self-supervised contrastive learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 2983–2994. Curran Associates, Inc., 2020. \n[33] S. Kiritchenko and S. M. Mohammad. Examining gender and race bias in two hundred sentiment analysis systems. arXiv preprint arXiv:1805.04508, 2018. \n[34] C.-L. Li, K. Sohn, J. Yoon, and T. Pfister. Cutpaste: Self-supervised learning for anomaly detection and localization. arXiv preprint arXiv:2104.04015, 2021. \n[35] Y. Li, Q. Yu, M. Tan, J. Mei, P. Tang, W. Shen, A. Yuille, and cihang xie. Shape-texture debiased neural network training. In International Conference on Learning Representations, 2021. \n[36] G. Malhotra and J. Bowers. The contrasting roles of shape in human vision and convolutional neural networks. In CogSci, 2019. \n[37] T. McCoy, E. Pavlick, and T. Linzen. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3428–3448, 2019. \n[38] S. Mishra, A. Shah, A. Bansal, J. Choi, A. Shrivastava, A. Sharma, and D. Jacobs. Learning visual representations for transfer learning by suppressing texture. arXiv preprint arXiv:2011.01901, 2020. \n[39] I. Misra and L. v. d. Maaten. Self-supervised learning of pretext-invariant representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6707–6717, 2020. \n[40] C. K. Mummadi, R. Subramaniam, R. Hutmacher, J. Vitay, V. Fischer, and J. H. Metzen. Does enhanced shape bias improve neural network robustness to common corruptions? In ICLR, 2021. \n[41] M. Noroozi and P. Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European conference on computer vision, pages 69–84. Springer, 2016. \n[42] J. Portilla and E. P. Simoncelli. A parametric texture model based on joint statistics of complex wavelet coefficients. International journal of computer vision, 40(1):49–70, 2000. \n[43] J. Robinson, C.-Y. Chuang, S. Sra, and S. Jegelka. Contrastive learning with hard negative samples. International Conference on Learning Representations, 2021. \n[44] J. Robinson, L. Sun, K. Yu, K. Batmanghelich, S. Jegelka, and S. Sra. Can contrastive learning avoid shortcut solutions? NeurIPS, 2021. \n[45] C. K. Ryali, D. J. Schwab, and A. S. Morcos. Leveraging background augmentations to encourage semantic focus in self-supervised contrastive learning. arXiv preprint arXiv:2103.12719, 2021. \n[46] E. Simo-Serra, E. Trulls, L. Ferraz, I. Kokkinos, P. Fua, and F. Moreno-Noguer. Discriminative learning of deep convolutional feature point descriptors. In Proceedings of the IEEE International Conference on Computer Vision, pages 118–126, 2015. \n[47] R. Taori, A. Dave, V. Shankar, N. Carlini, B. Recht, and L. Schmidt. Measuring robustness to natural distribution shifts in image classification. Advances in Neural Information Processing Systems, 33, 2020. \n[48] Y. Tian, D. Krishnan, and P. Isola. Contrastive multiview coding. In ECCV, 2020. \n[49] Y. Tian, C. Sun, B. Poole, D. Krishnan, C. Schmid, and P. Isola. What makes for good views for contrastive learning. arXiv preprint arXiv:2005.10243, 2020. \n[50] H. Wang, S. Ge, Z. Lipton, and E. P. Xing. Learning robust global representations by penalizing local predictive power. In Advances in Neural Information Processing Systems, pages 10506–10518, 2019. \n[51] H. Wang, X. Wu, Z. Huang, and E. P. Xing. High-frequency component helps explain the generalization of convolutional neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8684–8694, 2020. \n[52] L.-Y. Wei and M. Levoy. Fast texture synthesis using tree-structured vector quantization. In Proceedings of the 27th annual conference on Computer graphics and interactive techniques, pages 479–488, 2000. \n[53] Z. Wu, Y. Xiong, S. X. Yu, and D. Lin. Unsupervised feature learning via non-parametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3733–3742, 2018. \n[54] T. Xiao, X. Wang, A. A. Efros, and T. Darrell. What should not be contrastive in contrastive learning. In International Conference on Learning Representations, 2020. \n[55] H. Xuan, A. Stylianou, X. Liu, and R. Pless. Hard negative examples are hard, but useful. In European Conference on Computer Vision, pages 126–142. Springer, 2020. \n[56] J. Zbontar, L. Jing, I. Misra, Y. LeCun, and S. Deny. Barlow twins: Self-supervised learning via redundancy reduction. arXiv preprint arXiv:2103.03230, 2021. ",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
176,
|
| 1041 |
+
714,
|
| 1042 |
+
826,
|
| 1043 |
+
911
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 9
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
171,
|
| 1052 |
+
87,
|
| 1053 |
+
828,
|
| 1054 |
+
916
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 10
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
171,
|
| 1063 |
+
75,
|
| 1064 |
+
828,
|
| 1065 |
+
919
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 11
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
171,
|
| 1074 |
+
92,
|
| 1075 |
+
825,
|
| 1076 |
+
148
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 12
|
| 1079 |
+
}
|
| 1080 |
+
]
|
parse/train/xLExSzfIDmo/xLExSzfIDmo_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/xLExSzfIDmo/xLExSzfIDmo_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlm/dev/1W8UwXAQubL/0.png
ADDED
|
Git LFS Details
|