Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/9z_dNsC4B5t/9z_dNsC4B5t_content_list.json +0 -0
- parse/train/B1esx6EYvr/B1esx6EYvr_content_list.json +1222 -0
- parse/train/B1esx6EYvr/B1esx6EYvr_model.json +0 -0
- parse/train/BJxhLAuxg/BJxhLAuxg.md +232 -0
- parse/train/BJxhLAuxg/BJxhLAuxg_content_list.json +1246 -0
- parse/train/BJxhLAuxg/BJxhLAuxg_middle.json +0 -0
- parse/train/BJxhLAuxg/BJxhLAuxg_model.json +0 -0
- parse/train/HyTqHL5xg/HyTqHL5xg.md +384 -0
- parse/train/HyTqHL5xg/HyTqHL5xg_content_list.json +1812 -0
- parse/train/HyTqHL5xg/HyTqHL5xg_middle.json +0 -0
- parse/train/HyTqHL5xg/HyTqHL5xg_model.json +0 -0
- parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z.md +266 -0
- parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_content_list.json +1336 -0
- parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_middle.json +0 -0
- parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_model.json +0 -0
- parse/train/_RnHyIeu5Y5/_RnHyIeu5Y5_content_list.json +1010 -0
- parse/train/rkeS1RVtPS/rkeS1RVtPS.md +0 -0
- parse/train/rkeS1RVtPS/rkeS1RVtPS_content_list.json +0 -0
- parse/train/rkeS1RVtPS/rkeS1RVtPS_middle.json +0 -0
- parse/train/rkeS1RVtPS/rkeS1RVtPS_model.json +0 -0
parse/train/9z_dNsC4B5t/9z_dNsC4B5t_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1esx6EYvr/B1esx6EYvr_content_list.json
ADDED
|
@@ -0,0 +1,1222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "A CRITICAL ANALYSIS OF SELF-SUPERVISION, ORWHAT WE CAN LEARN FROM A SINGLE IMAGE",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
101,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yuki M. Asano Christian Rupprecht ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
491,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Andrea Vedaldi ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
547,
|
| 30 |
+
170,
|
| 31 |
+
656,
|
| 32 |
+
184
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Visual Geometry Group \nUniversity of Oxford \n{yuki,chrisr,vedaldi}@robots.ox.ac.uk ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
198,
|
| 42 |
+
508,
|
| 43 |
+
239
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
276,
|
| 54 |
+
544,
|
| 55 |
+
291
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "We look critically at popular self-supervision techniques for learning deep convolutional neural networks without manual labels. We show that three different and representative methods, BiGAN, RotNet and DeepCluster, can learn the first few layers of a convolutional network from a single image as well as using millions of images and manual labels, provided that strong data augmentation is used. However, for deeper layers the gap with manual supervision cannot be closed even if millions of unlabelled images are used for training. We conclude that: (1) the weights of the early layers of deep networks contain limited information about the statistics of natural images, that (2) such low-level statistics can be learned through self-supervision just as well as through strong supervision, and that (3) the low-level statistics can be captured via synthetic transformations instead of using a large image dataset. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
308,
|
| 65 |
+
764,
|
| 66 |
+
474
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
496,
|
| 77 |
+
336,
|
| 78 |
+
511
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Despite tremendous progress in supervised learning, learning without external supervision remains difficult. Self-supervision has recently emerged as one of the most promising approaches to address this limitation. Self-supervision builds on the fact that convolutional neural networks (CNNs) transfer well between tasks (Shin et al., 2016; Oquab et al., 2014; Girshick, 2015; Huh et al., 2016). The idea then is to pre-train networks via pretext tasks that do not require expensive manual annotations and can be automatically generated from the data itself. Once pre-trained, networks can be applied to a target task by using only a modest amount of labelled data. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
518,
|
| 88 |
+
825,
|
| 89 |
+
617
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Early successes in self-supervision have encouraged authors to develop a large variety of pretext tasks, from colorization to rotation estimation and image autoencoding. Recent papers have shown performance competitive with supervised learning by learning complex neural networks on very large image datasets. Nevertheless, for a given model complexity, pre-training by using an off-theshelf annotated image datasets such as ImageNet remains much more efficient. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
623,
|
| 99 |
+
823,
|
| 100 |
+
693
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this paper, we aim to investigate the effectiveness of current self-supervised approaches by characterizing how much information they can extract from a given dataset of images. Since deep networks learn a hierarchy of representations, we further break down this investigation on a per-layer basis. We are motivated by the fact that the first few layers of most networks extract low-level information (Yosinski et al., 2014), and thus learning them may not require the high-level semantic information captured by manual labels. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
700,
|
| 110 |
+
823,
|
| 111 |
+
784
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Concretely, in this paper we answer the following simple question: “is self-supervision able to exploit the information contained in a large number of images in order to learn different parts of a neural network?” ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
176,
|
| 120 |
+
790,
|
| 121 |
+
821,
|
| 122 |
+
833
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "We contribute two key findings. First, we show that as little as a single image is sufficient, when combined with self-supervision and data augmentation, to learn the first few layers of standard deep networks as well as using millions of images and full supervision (Figure 1). Hence, while selfsupervised learning works well for these layers, this may be due more to the limited complexity of such features than the strength of the supervisory technique. This also confirms the intuition that early layers in a convolutional network amounts to low-level feature extractors, analogous to early learned and hand-crafted features for visual recognition (Olshausen & Field, 1997; Lowe, 2004; Dalal & Triggs, 2005). Finally, it demonstrates the importance of image transformations in learning such low-level features as opposed to image diversity.1 ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
840,
|
| 132 |
+
825,
|
| 133 |
+
922
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "image",
|
| 139 |
+
"img_path": "images/170a22e5e719a53efa60993ee606484b35b4465c1a6a9fe2204b521c8d69c3b5.jpg",
|
| 140 |
+
"image_caption": [],
|
| 141 |
+
"image_footnote": [],
|
| 142 |
+
"bbox": [
|
| 143 |
+
173,
|
| 144 |
+
106,
|
| 145 |
+
475,
|
| 146 |
+
282
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "image",
|
| 152 |
+
"img_path": "images/f6e9438a75e6c4530cb249d7647d3dfd569bce7aadafc4b938fc22c16106a227.jpg",
|
| 153 |
+
"image_caption": [
|
| 154 |
+
"Figure 1: Single-image self-supervision. We show that several self-supervision methods can be used to train the first few layers of a deep neural networks using a single training image, such as this Image A, B or even C (above), provided that sufficient data augmentation is used. "
|
| 155 |
+
],
|
| 156 |
+
"image_footnote": [],
|
| 157 |
+
"bbox": [
|
| 158 |
+
501,
|
| 159 |
+
112,
|
| 160 |
+
820,
|
| 161 |
+
212
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "",
|
| 168 |
+
"bbox": [
|
| 169 |
+
173,
|
| 170 |
+
310,
|
| 171 |
+
825,
|
| 172 |
+
353
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "Our second finding is about the deeper layers of the network. For these, self-supervision remains inferior to strong supervision even if millions of images are used for training. Our finding is that this is unlikely to change with the addition of more data. In particular, we show that training these layers with self-supervision and a single image already achieves as much as two thirds of the performance that can be achieved by using a million different images. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
359,
|
| 182 |
+
825,
|
| 183 |
+
429
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "We show that these conclusions hold true for three different self-supervised methods, BiGAN (Donahue et al., 2017), RotNet (Gidaris et al., 2018) and DeepCluster (Caron et al., 2018), which are representative of the spectrum of techniques that are currently popular. We find that performance as a function of the amount of data is dependent on the method, but all three methods can indeed leverage a single image to learn the first few layers of a deep network almost “perfectly”. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
436,
|
| 193 |
+
825,
|
| 194 |
+
506
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Overall, while our results do not improve self-supervision per-se, they help to characterize the limitations of current methods and to better focus on the important open challenges. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
512,
|
| 204 |
+
821,
|
| 205 |
+
541
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "2 RELATED WORK ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
176,
|
| 215 |
+
556,
|
| 216 |
+
344,
|
| 217 |
+
573
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "Our paper relates to three broad areas of research: (a) self-supervised/unsupervised learning, (b) learning from a single sample, and (c) designing/learning low-level feature extractors. We discuss closely related work for each. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
582,
|
| 227 |
+
825,
|
| 228 |
+
623
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Self-supervised learning: A wide variety of proxy tasks, requiring no manual annotations, have been proposed for the self-training of deep convolutional neural networks. These methods use various cues and tasks namely, in-painting (Pathak et al., 2016), patch context and jigsaw puzzles (Doersch et al., 2015; Noroozi & Favaro, 2016; Noroozi et al., 2018; Mundhenk et al., 2017), clustering (Caron et al., 2018), noise-as-targets (Bojanowski & Joulin, 2017), colorization (Zhang et al., 2016; Larsson et al., 2017), generation (Jenni & Favaro, 2018; Ren & Lee, 2018; Donahue et al., 2017), geometry (Dosovitskiy et al., 2016; Gidaris et al., 2018) and counting (Noroozi et al., 2017). The idea is that the pretext task can be constructed automatically and easily on images alone. Thus, methods often modify information in the images and require the network to recover them. Inpainting or colorization techniques fall in this category. However these methods have the downside that the features are learned on modified images which potentially harms the generalization to unmodified ones. For example, colorization uses a gray scale image as input, thus the network cannot learn to extract color information, which can be important for other tasks. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
173,
|
| 237 |
+
641,
|
| 238 |
+
825,
|
| 239 |
+
820
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 1
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "Slightly less related are methods that use additional information to learn features. Here, often temporal information is used in the form of videos. Typical pretext tasks are based on temporalcontext (Misra et al., 2016; Wei et al., 2018; Lee et al., 2017; Sermanet et al., 2018), spatio-temporal cues (Isola et al., 2015; Gao et al., 2016; Wang et al., 2017), foreground-background segmentation via video segmentation (Pathak et al., 2017), optical-flow (Gan et al., 2018; Mahendran et al., 2018), future-frame synthesis (Srivastava et al., 2015), audio prediction from video (de Sa, 1994; Owens et al., 2016), audio-video alignment (Arandjelovic & Zisserman ´ , 2017), ego-motion estimation (Jayaraman & Grauman, 2015), slow feature analysis with higher order temporal coherence (Jayaraman & Grauman, 2016), transformation between frames (Agrawal et al., 2015) and patch tracking in videos (Wang & Gupta, 2015). Since we are interested in learning features from as little data as one image, we cannot make use of methods that rely on video input. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
176,
|
| 248 |
+
828,
|
| 249 |
+
820,
|
| 250 |
+
871
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 1
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
103,
|
| 260 |
+
825,
|
| 261 |
+
215
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "Our contribution inspects three unsupervised feature learning methods that use very different means of extracting information from the data: BiGAN (Donahue et al., 2017) utilizes a generative adversarial task, RotNet (Gidaris et al., 2018) exploits the photographic bias in the dataset and DeepCluster (Caron et al., 2018) learns stable feature representations under a number of image transformations by proxy labels obtained from clustering. These are described in more detail in the Methods section. ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
222,
|
| 271 |
+
825,
|
| 272 |
+
291
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Learning from a single sample: In some applications of computer vision, the bold idea of learning from a single sample comes out of necessity. For general object tracking, methods such as max margin correlation filters (Rodriguez et al., 2013) learn robust tracking templates from a single sample of the patch. A single image can also be used to learn and interpolate multi-scale textures with a GAN framework (Rott Shaham et al., 2019). Single sample learning was pursued by the semi-parametric exemplar SVM model (Malisiewicz et al., 2011). They learn one SVM per positive sample separating it from all negative patches mined from the background. While only one sample is used for the positive set, the negative set consists of thousands of images and is a necessary component of their method. The negative space was approximated by a multi-dimensional Gaussian by the Exemplar LDA (Hariharan et al., 2012). These SVMs, one per positive sample, are pooled together using a max aggregation. We differ from both of these approaches in that we do not use a large collection of negative images to train our model. Instead we restrict ourselves to a single or a few images with a systematic augmentation strategy. ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
173,
|
| 281 |
+
328,
|
| 282 |
+
825,
|
| 283 |
+
508
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "Classical learned and hand-crafted low-level feature extractors: Learning and hand-crafting features pre-dates modern deep learning approaches and self-supervision techniques. For example the classical work of (Olshausen & Field, 1997) shows that edge-like filters can be learned via sparse coding of just 10 natural scene images. SIFT (Lowe, 2004) and HOG (Dalal & Triggs, 2005) have been used extensively before the advent of convolutional neural networks and, in many ways, they resemble the first layers of these networks. The scatter transform of Bruna & Mallat (2013); Oyallon et al. (2017) is an handcrafted design that aims at replacing at least the first few layers of a deep network. While these results show that effective low-level features can be handcrafted, this is insufficient to clarify the power and limitation of self-supervision in deep networks. For instance, it is not obvious whether deep networks can learn better low level features than these, how many images may be required to learn them, and how effective self-supervision may be in doing so. For instance, as we also show in the experiments, replacing low-level layers in a convolutional networks with handcrafted features such as Oyallon et al. (2017) may still decrease the overall performance of the model. Furthermore, this says little about deeper layers, which we also investigate. ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
173,
|
| 292 |
+
545,
|
| 293 |
+
825,
|
| 294 |
+
739
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "In this work we show that current deep learning methods learn slightly better low-level representations than hand crafted features such as the scattering transform. Additionally, these representations can be learned from one single image with augmentations and without supervision. The results show how current self-supervised learning approaches that use one million images yield only relatively small gains when compared to what can be achieved from one image and augmentations, and motivates a renewed focus on augmentations and incorporating prior knowledge into feature extractors. ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
174,
|
| 303 |
+
746,
|
| 304 |
+
825,
|
| 305 |
+
844
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "3 METHODS ",
|
| 312 |
+
"text_level": 1,
|
| 313 |
+
"bbox": [
|
| 314 |
+
174,
|
| 315 |
+
871,
|
| 316 |
+
290,
|
| 317 |
+
887
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 2
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "We discuss first our data and data augmentation strategy (section 3.1) and then we summarize the three different methods for unsupervised feature learning used in the experiments (section 3.2). ",
|
| 324 |
+
"bbox": [
|
| 325 |
+
174,
|
| 326 |
+
895,
|
| 327 |
+
825,
|
| 328 |
+
924
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 2
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "3.1 DATA ",
|
| 335 |
+
"text_level": 1,
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
103,
|
| 339 |
+
253,
|
| 340 |
+
117
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "Our goal is to understand the performance of representation learning methods as a function of the image data used to train them. To make comparisons as fair as possible, we develop a protocol where only the nature of the training data is changed, but all other parameters remain fixed. ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
174,
|
| 349 |
+
125,
|
| 350 |
+
825,
|
| 351 |
+
166
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "In order to do so, given a baseline method trained on $d$ source images, we replace those with another set of $d$ images. Of these, now only $N \\ll d$ are source images (i.e. i.i.d. samples), while the remaining $d - N$ are augmentations of the source ones. Thus, the amount of information in the training data is controlled by $N$ and we can generate a continuum of datasets that vary from one extreme, utilizing a single source image $N = 1$ , to the other extreme, using all $N { = } d$ original training set images. For example, if the baseline method is trained on ImageNet, then $d = 1 , 2 8 1 , 1 6 7$ . When $N = 1$ , it means that we train the method using a single source image and generate the remaining 1,281,166 images via augmentation. Other baselines use CIFAR-10/100 images, so in those cases $d = 5 0 , 0 0 0$ instead. ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
174,
|
| 360 |
+
174,
|
| 361 |
+
825,
|
| 362 |
+
285
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 3
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "The data augmentation protocol, is an extreme version of augmentations already employed by most deep learning protocols. Each method we test, in fact, already performs some data augmentation internally. Thus, when the method is applied on our augmented data, this can be equivalently thought of as incrementing these “native” augmentations by concatenating them with our own. ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
174,
|
| 371 |
+
292,
|
| 372 |
+
825,
|
| 373 |
+
348
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 3
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "Choice of augmentations. Next, we describe how the $N$ source images are expanded to additional $d - N$ images so that the models can be trained on exactly $d$ images, independent from the choice of $N$ . The idea is to use an aggressive form of data augmentation involving cropping, scaling, rotation, contrast changes, and adding noise. These transformations are representative of invariances that one may wish to incorporate in the features. Augmentation can be seen as imposing a prior on how we expect the manifold of natural images to look like. When training with very few images, these priors become more important since the model cannot extract them directly from data. ",
|
| 380 |
+
"bbox": [
|
| 381 |
+
174,
|
| 382 |
+
368,
|
| 383 |
+
825,
|
| 384 |
+
465
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 3
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "text",
|
| 390 |
+
"text": "Given a source image of size size $H \\times W$ , we first extract a certain number of random patches of size $( w , h )$ , where $w \\leq W$ and $h \\leq H$ satisfy the additional constraints $\\beta \\le \\frac { w h } { W H }$ and $\\begin{array} { r } { \\gamma \\leq \\frac { h } { w } \\leq \\gamma ^ { - 1 } } \\end{array}$ . Thus, the smallest size of the crops is limited to be at least $\\beta W H$ and at most the whole image. Additionally, changes to the aspect ratio are limited by $\\gamma$ . In practice we use $\\beta = 1 0 ^ { - 3 }$ and $\\textstyle \\gamma = { \\frac { 3 } { 4 } }$ . ",
|
| 391 |
+
"bbox": [
|
| 392 |
+
174,
|
| 393 |
+
473,
|
| 394 |
+
825,
|
| 395 |
+
529
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "Second, good features should not change much by small image rotations, so images are rotated (before cropping to avoid border artifacts) by $\\alpha \\in \\mathsf { \\Gamma } ( - 3 5 , 3 5 )$ degrees. Due to symmetry in image statistics, images are also flipped left-to-right with $50 \\%$ probability. ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
174,
|
| 404 |
+
535,
|
| 405 |
+
825,
|
| 406 |
+
577
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "Illumination changes are common in natural images, we thus expect image features to be robust to color and contrast changes. Thus, we employ a set of linear transformations in RGB space to model this variability in real data. Additionally, the color/intensity of single pixels should not affect the feature representation, as this does not change the contents of the image. To this end, color jitter with additive brightness, contrast and saturation are sampled from three uniform distributions in (0.6, 1.4) and hue noise from $( - 0 . 1 , 0 . 1 )$ is applied to the image patches. Finally, the cropped and transformed patches are scaled to the color range $( - 1 , 1 )$ and then rescaled to full $S \\times S$ resolution to be supplied to each representation learning method, using bilinear interpolation. This formulation ensures that the patches are created in the target resolution $S$ , independent from the size and aspect ratio $W , H$ of the source image. ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
174,
|
| 415 |
+
584,
|
| 416 |
+
825,
|
| 417 |
+
723
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "Real samples. The images used for the $N { = } 1$ and $N { = } 1 0$ experiments are shown in Figure 1 and the appendix respectively (this is all the training data used in such experiments). For the special case of using a single training image, i.e. $N { = } 1$ , we have chosen one photographic $( 2 5 6 0 \\times 1 9 2 0 )$ ) and one drawn image $( 6 0 0 \\times 2 2 5 )$ , which we call Image A and Image $B$ , respectively. The two images were manually selected as they contain rich texture and are diverse, but their choice was not optimized for performance. We test only two images due to the cost of running a full set of experiments (each image is expanded up to $1 . 2 \\mathbf { M }$ times for training some of the models, as explained above). However, this is sufficient to prove our main points. We also test another $( 1 1 6 5 \\times 5 8 5 )$ ) Image $C$ to ablate the “crowdedness” of an image, as this latter contains large areas covering no objects. While resolution matters to some extent as a bigger image contains more pixels, the information within is still far more correlated, and thus more redundant than sampling several smaller images. In particular, the resolution difference in Image $\\mathtt { A }$ and $_ \\mathrm { B }$ appears to be negligible in our experiments. For CIFAR-10, where $S = 3 2$ we only use Image B due to the resolution difference. In direct comparison, Image B is the size of about 132 CIFAR images which is still much less than $d = 5 0 { , } 0 0 0$ . For $N > 1$ , we select the source images randomly from each method’s training set. ",
|
| 424 |
+
"bbox": [
|
| 425 |
+
173,
|
| 426 |
+
743,
|
| 427 |
+
825,
|
| 428 |
+
922
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "",
|
| 435 |
+
"bbox": [
|
| 436 |
+
171,
|
| 437 |
+
103,
|
| 438 |
+
823,
|
| 439 |
+
132
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "3.2 REPRESENTATION LEARNING METHODS ",
|
| 446 |
+
"text_level": 1,
|
| 447 |
+
"bbox": [
|
| 448 |
+
178,
|
| 449 |
+
145,
|
| 450 |
+
493,
|
| 451 |
+
160
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 4
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "Generative models. Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) learn to generate images using an adversarial objective: a generator network maps noise samples to image samples, approximating a target image distribution and a discriminator network is tasked with distinguishing generated and real samples. Generator and discriminator are pitched one against the other and learned together; when an equilibrium is reached, the generator produces images indistinguishable (at least from the viewpoint of the discriminator) from real ones. ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
174,
|
| 460 |
+
166,
|
| 461 |
+
825,
|
| 462 |
+
250
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "Bidirectional Generative Adversarial Networks (BiGAN) (Donahue et al., 2017; Dumoulin et al., 2016) are an extension of GANs designed to learn a useful image representation as an approximate inverse of the generator through joint inference on an encoding and the image. This method’s native augmentation uses random crops and random horizontal flips to learn features from $S = 1 2 8$ sized images. As opposed to the other two methods discussed below it employs leaky ReLU nonlinearities as is typical in GAN discriminators. ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
257,
|
| 472 |
+
825,
|
| 473 |
+
340
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "Rotation. Most image datasets contain pictures that are ‘upright’ as this is how humans prefer to take and look at them. This photographer bias can be understood as a form of implicit data labelling. RotNet (Gidaris et al., 2018) exploits this by tasking a network with predicting the upright direction of a picture after applying to it a random rotation multiple of 90 degrees (in practice this is formulated as a 4-way classification problem). The authors reason that the concept of ‘upright’ requires learning high level concepts in the image and hence this method is not vulnerable to exploiting low-level visual information, encouraging the network to learn more abstract features. In our experiments, we test this hypothesis by learning from impoverished datasets that may lack the photographer bias. The native augmentations that RotNet uses on the $S { = } 2 5 6$ inputs only comprise horizontal flips and non-scaled random crops to $2 2 4 \\times 2 2 4$ . ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
173,
|
| 482 |
+
358,
|
| 483 |
+
825,
|
| 484 |
+
496
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 4
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "Clustering. DeepCluster (Caron et al., 2018) is a recent state-of-the-art unsupervised representation learning method. This approach alternates $k$ -means clustering to produce pseudo-labels for the data and feature learning to fit the representation to these labels. The authors attribute the success of the method to the prior knowledge ingrained in the structure of the convolutional neural network (Ulyanov et al., 2018). ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
174,
|
| 493 |
+
513,
|
| 494 |
+
823,
|
| 495 |
+
583
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "The method alternatives between a clustering step, in which $k$ -means is applied on the PCA-reduced features with ID for each i $k = 1 0 ^ { 4 }$ , and a learning step, in which the network is trainedder a set of augmentations (random resized crops with usterand $\\beta { \\dot { = } } 0 . 0 8 , \\gamma = { \\textstyle \\frac { 3 } { 4 } }$ horizontal flips) that constitute its native augmentations used on top of the $S { = } 2 5 6$ input images. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
174,
|
| 504 |
+
590,
|
| 505 |
+
825,
|
| 506 |
+
646
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "4 EXPERIMENTS ",
|
| 513 |
+
"text_level": 1,
|
| 514 |
+
"bbox": [
|
| 515 |
+
176,
|
| 516 |
+
662,
|
| 517 |
+
326,
|
| 518 |
+
678
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "We evaluate the representation learning methods on ImageNet and CIFAR-10/100 using linear probes (Section 4.1). After ablating various choices of transformations in our augmentation protocol (Section 4.2), we move to the core question of the paper: whether a large dataset is beneficial to unsupervised learning, especially for learning early convolutional features (Section 4.3). ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
176,
|
| 527 |
+
686,
|
| 528 |
+
823,
|
| 529 |
+
742
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 4
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "4.1 LINEAR PROBES AND BASELINE ARCHITECTURE ",
|
| 536 |
+
"text_level": 1,
|
| 537 |
+
"bbox": [
|
| 538 |
+
174,
|
| 539 |
+
756,
|
| 540 |
+
549,
|
| 541 |
+
770
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 4
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "In order to quantify if a neural network has learned useful feature representations, we follow the standard approach of using linear probes (Zhang et al., 2017). This amounts to solving a difficult task such as ImageNet classification by training a linear classifier on top of pre-trained feature representations, which are kept fixed. Linear classifiers heavily rely on the quality of the representation since their discriminative power is low. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
777,
|
| 551 |
+
825,
|
| 552 |
+
847
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 4
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "We apply linear probes to all intermediate convolutional layers of networks and train on the ImageNet LSVRC-12 (Deng et al., 2009) and CIFAR-10/100 (Krizhevsky, 2009) datasets, which are the standard benchmarks for evaluation in self-supervised learning. Our base encoder architecture is AlexNet (Krizhevsky et al., 2012) with BatchNorm, since this is a good representative model and is most often used in other unsupervised learning work for the purpose of benchmarking. This model has five convolutional blocks (each comprising a linear convolution later followed by ReLU and optionally max pooling). We insert the probes right after the ReLU layer in each block, and denote these entry points conv1 to conv5. Applying the linear probes at each convolutional layer allows studying the quality of the representation learned at different depths of the network. ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
174,
|
| 561 |
+
854,
|
| 562 |
+
823,
|
| 563 |
+
924
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 4
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "table",
|
| 569 |
+
"img_path": "images/8f49cf50080a267d745206dbd0f3fd7fb56e91ae459841585e50dd72d5746eb5.jpg",
|
| 570 |
+
"table_caption": [
|
| 571 |
+
"Table 1: Ablating data augmentation using MonoGAN (left). Training a linear classifier on the features extracted at different depths of the network for CIFAR-10. "
|
| 572 |
+
],
|
| 573 |
+
"table_footnote": [],
|
| 574 |
+
"table_body": "<table><tr><td></td><td colspan=\"4\">CIFAR-10</td></tr><tr><td></td><td>conv1</td><td>conv2</td><td>conv3</td><td>conv4</td></tr><tr><td>(a) Fully sup.</td><td>66.5</td><td>70.1</td><td>72.4</td><td>75.9</td></tr><tr><td>(b) Random feat.</td><td>57.8</td><td>55.5</td><td>54.2</td><td>47.3</td></tr><tr><td>(c) No aug.</td><td>57.9</td><td>56.2</td><td>54.2</td><td>47.8</td></tr><tr><td>d) Jitter</td><td>58.9</td><td>58.0</td><td>57.0</td><td>49.8</td></tr><tr><td>通 Rotation</td><td>61.4</td><td>58.8</td><td>56.1</td><td>47.5</td></tr><tr><td>(f) Scale</td><td>67.9</td><td>69.3</td><td>67.9</td><td>59.1</td></tr><tr><td>(g) Rot.&jitter</td><td>64.9</td><td>63.6</td><td>61.0</td><td>53.4</td></tr><tr><td>? Rot.& scale</td><td>67.6</td><td>69.9</td><td>68.0</td><td>60.7</td></tr><tr><td>i Jitter & scale</td><td>68.1</td><td>71.3</td><td>69.5</td><td>62.4</td></tr><tr><td>i All</td><td>68.1</td><td>72.3</td><td>70.8</td><td>63.5</td></tr></table>",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
101,
|
| 578 |
+
508,
|
| 579 |
+
279
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 5
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "table",
|
| 585 |
+
"img_path": "images/652e1c5ace61ceee759f48ca8164a750521ce098c222c7bbe403837161179ea0.jpg",
|
| 586 |
+
"table_caption": [
|
| 587 |
+
"Table 2: ImageNet LSVRC-12 linear probing evaluation (below). A linear classifier is trained on the (downsampled) activations of each layer in the pretrained model. We report classification accuracy averaged over 10 crops. The ‡ indicated that numbers are taken from (Zhang et al., 2017). "
|
| 588 |
+
],
|
| 589 |
+
"table_footnote": [],
|
| 590 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method, Reference</td><td rowspan=\"2\"></td><td colspan=\"6\">ILSVRC-12</td></tr><tr><td>#images</td><td>conv1</td><td>conv2</td><td>conv3</td><td>conv4</td><td>conv5</td></tr><tr><td>(a)</td><td>Full-supervision‡</td><td>1,281,167</td><td>19.3</td><td>36.3</td><td>44.2</td><td>48.3</td><td>50.5</td></tr><tr><td>(b)</td><td>(Oyallon et al., 2017): Scattering</td><td>0</td><td>-</td><td>18.9</td><td>-</td><td>1</td><td>1</td></tr><tr><td>(c)</td><td>Random*</td><td>0</td><td>11.6</td><td>17.1</td><td>16.9</td><td>16.3</td><td>14.1</td></tr><tr><td>(d)</td><td>(Krahenbuhl et al., 2016):k-means‡</td><td>~160</td><td>17.5</td><td>23.0</td><td>24.5</td><td>23.2</td><td>20.6</td></tr><tr><td>(e)</td><td>(Donahue et al., 2017): BiGAN‡</td><td>1,281,167</td><td>17.7</td><td>24.5</td><td>31.0</td><td>29.9</td><td>28.0</td></tr><tr><td>(f)</td><td>mono,Image A</td><td>1</td><td>20.4</td><td>30.9</td><td>33.4</td><td>28.4</td><td>16.0</td></tr><tr><td>(g)</td><td>mono, Image B</td><td>1</td><td>20.5</td><td>30.4</td><td>31.6</td><td>27.0</td><td>16.8</td></tr><tr><td>(h)</td><td>deka</td><td>10</td><td>16.2</td><td>16.5</td><td>16.5</td><td>13.1</td><td>7.5</td></tr><tr><td>(i</td><td>kilo</td><td>1,000</td><td>16.1</td><td>17.7</td><td>18.3</td><td>17.6</td><td>13.5</td></tr><tr><td>i</td><td>(Gidaris et al., 2018): RotNet</td><td>1,281,167</td><td>18.8</td><td>31.7</td><td>38.7</td><td>38.2</td><td>36.5</td></tr><tr><td>()</td><td>mono,Image A</td><td>1</td><td>19.9</td><td>30.2</td><td>30.6</td><td>27.6</td><td>21.9</td></tr><tr><td>1</td><td>mono, Image B</td><td>1</td><td>17.8</td><td>27.6</td><td>27.9</td><td>25.4</td><td>20.2</td></tr><tr><td>(m)</td><td>deka</td><td>10</td><td>19.6</td><td>30.7</td><td>32.6</td><td>28.9</td><td>22.6</td></tr><tr><td>(n)</td><td>kilo</td><td>1,000</td><td>21.0</td><td>33.5</td><td>36.5</td><td>34.0</td><td>29.4</td></tr><tr><td>(0)</td><td>(Caron et al., 2018): DeepCluster</td><td>1,281,167</td><td>18.0</td><td>32.5</td><td>39.2</td><td>37.2</td><td>30.6</td></tr><tr><td>(p)</td><td>mono, Image A</td><td>1</td><td>20.7</td><td>31.5</td><td>32.5</td><td>28.5</td><td>21.0</td></tr><tr><td>(q)</td><td>mono,Image B</td><td>1</td><td>19.7</td><td>30.1</td><td>31.6</td><td>28.5</td><td>20.4</td></tr><tr><td>(r)</td><td>mono, Image C</td><td>1</td><td>18.9</td><td>29.2</td><td>31.5</td><td>28.9</td><td>23.5</td></tr><tr><td>(s)</td><td>deka</td><td>10</td><td>18.5</td><td>29.0</td><td>31.1</td><td>28.2</td><td>21.9</td></tr><tr><td>(t</td><td>kilo</td><td>1,000</td><td>19.5</td><td>29.8</td><td>33.0</td><td>31.7</td><td>26.8</td></tr></table>",
|
| 591 |
+
"bbox": [
|
| 592 |
+
173,
|
| 593 |
+
296,
|
| 594 |
+
828,
|
| 595 |
+
593
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 5
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "table",
|
| 601 |
+
"img_path": "images/c6ff862e7d503119a0134343e3d173d41752a58b13a62c81d6d1a18dd3608986.jpg",
|
| 602 |
+
"table_caption": [
|
| 603 |
+
"Table 3: CIFAR-10/100. Accuracy of linear classifiers on different network layers. "
|
| 604 |
+
],
|
| 605 |
+
"table_footnote": [],
|
| 606 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"4\"></td><td colspan=\"4\">CIFAR-100</td></tr><tr><td>conv1</td><td>conv2</td><td>CIFAR-10 conv3</td><td>conv4</td><td>conv1</td><td>conv2</td><td>conv3</td><td>conv4</td></tr><tr><td>Fully supervised</td><td>66.5</td><td>70.1</td><td>72.4</td><td>75.9</td><td>38.7</td><td>43.6</td><td>44.4</td><td>46.5</td></tr><tr><td>Random</td><td>57.8</td><td>55.5</td><td>54.2</td><td>47.3</td><td>30.9</td><td>29.8</td><td>28.6</td><td>24.1</td></tr><tr><td>RotNet</td><td>64.4</td><td>65.6</td><td>65.6</td><td>59.1</td><td>36.0</td><td>35.9</td><td>34.2</td><td>25.8</td></tr><tr><td>GAN (CIFAR-10)</td><td>67.7</td><td>73.0</td><td>72.5</td><td>69.2</td><td>39.6</td><td>46.0</td><td>45.1</td><td>39.9</td></tr><tr><td>GAN (CIFAR-100)</td><td>1</td><td>1</td><td>1</td><td>1</td><td>38.1</td><td>42.2</td><td>44.0</td><td>46.6</td></tr><tr><td>MonoGAN</td><td>68.1</td><td>72.3</td><td>70.8</td><td>63.5</td><td>39.9</td><td>46.9</td><td>44.5</td><td>38.8</td></tr></table>",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
619,
|
| 610 |
+
828,
|
| 611 |
+
742
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "",
|
| 618 |
+
"bbox": [
|
| 619 |
+
174,
|
| 620 |
+
755,
|
| 621 |
+
825,
|
| 622 |
+
810
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Details. While linear probes are conceptually straightforward, there are several technical details that affect the final accuracy by a few percentage points. Unfortunately, prior work has used several slightly different setups, so that comparing results of different publications must be done with caution. To make matters more difficult, not all papers released evaluation source code. We prove this standardized testing code here2. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
174,
|
| 631 |
+
827,
|
| 632 |
+
825,
|
| 633 |
+
897
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "In our implementation, we follow the original proposal (Zhang et al., 2017) in pooling each representation to a vector with 9600, 9216, 9600, 9600, 9216 dimensions for $\\mathtt { c o n v l - 5 }$ using adaptive max-pooling, and absorb the batch normalization weights into the preceding convolutions. For evaluation on ImageNet we follow RotNet to train linear probes: images are resized such that the shorter edge has a length of 256 pixels, random crops of $2 2 4 \\times 2 2 4$ are computed and flipped horizontally with $5 0 \\%$ probability. Learning lasts for 36 epochs and the learning rate schedule starts from 0.01 and is divided by five at epochs 5, 15 and 25. The top-1 accuracy of the linear classifier is then measured on the ImageNet validation subset. This uses DeepCluster’s protocol, extracting 10 crops for each validation image (four at the corners and one at the center along with their horizontal flips) and averaging the prediction scores before the accuracy is computed. For CIFAR-10/100 data, we follow the same learning rate schedule and for both training and evaluation we do not reduce the dimensionality of the representations and keep the images’ original size of $3 2 \\times 3 2$ . ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
103,
|
| 643 |
+
825,
|
| 644 |
+
270
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 6
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "4.2 EFFECT OF AUGMENTATIONS ",
|
| 651 |
+
"text_level": 1,
|
| 652 |
+
"bbox": [
|
| 653 |
+
176,
|
| 654 |
+
284,
|
| 655 |
+
416,
|
| 656 |
+
296
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 6
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "In order to better understand which image transformations are important to learn a good feature representations, we analyze the impact of augmentation settings. For speed, these experiments are conducted using the CIFAR-10 images $Q = 5 0$ , 000 in the training set) and with the smaller source Image $_ \\mathrm { B }$ and a GAN using the Wasserstein GAN formulation with gradient penalty (Gulrajani et al., 2017). The encoder is a smaller AlexNet-like CNN consisting of four convolutional layers (kernel sizes: $7 , 5 , 3 , 3$ ; strides: 3, 2, 2, 1) followed by a single fully connected layer as the discriminator. Given that the GAN is trained on a single image (w/ augmentations), we call this setting MonoGAN. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
173,
|
| 665 |
+
304,
|
| 666 |
+
825,
|
| 667 |
+
401
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 6
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "Table 1 reports all $2 ^ { 3 }$ combinations of the three main augmentations (scale, rotation, and jitter) and a randomly initialized network baseline (see Table 1 (b)) using the linear probes protocol discussed above. Without data augmentation the model only achieves marginally better performance than the random network (which also achieves a non-negligible level of performance (Ulyanov et al., 2017; Caron et al., 2018)). This is understandable since the dataset literally consists of a single training image cloned $d$ times. Color jitter and rotation slightly improve the performance of all probes by 1- $2 \\%$ points, but random rescaling adds at least ten points at every depth (see Table 1 (f,h,i)) and is the most important single augmentation. A similar conclusion can be drawn when two augmentations are combined, although there are diminishing returns as more augmentations are combined. Overall, we find all three types of augmentations are of importance when training in the ultra-low data setting. ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
174,
|
| 676 |
+
407,
|
| 677 |
+
825,
|
| 678 |
+
547
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 6
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "4.3 BENCHMARK EVALUATION ",
|
| 685 |
+
"text_level": 1,
|
| 686 |
+
"bbox": [
|
| 687 |
+
176,
|
| 688 |
+
560,
|
| 689 |
+
400,
|
| 690 |
+
574
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 6
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "We analyze how performance varies as a function $N$ , the number of actual samples that are used to generated the augmented datasets, and compare it to the gold-standard setup (in terms of choice of training data) defined in the papers that introduced each method. The evaluation is again based on linear probes (Section 4.1). ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
580,
|
| 700 |
+
825,
|
| 701 |
+
636
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 6
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Mono is enough. From Table 2 we make the following observations. Training with just a single source image (f,g,k,l,p,q) is much better than random initialization (c) for all layers. Notably, these models also outperform Gabor-like filters from Scattering networks (Bruna & Mallat, 2013), which are hand crafted image features, replacing the first two convolutional layers as in (Oyallon et al., 2017). Using the same protocol as in the paper, this only achieves an accuracy of $1 8 . 9 \\%$ compared to (p)’s conv $2 > 3 0 \\%$ . ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
651,
|
| 711 |
+
825,
|
| 712 |
+
734
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 6
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "More importantly, when comparing within pretext task, even with one image we are able to improve the quality of conv1–conv3 features compared to full (unsupervised) ImageNet training for GAN based self-supervision (e-i). For the other methods $( \\mathrm { j \\cdot }$ -n, o-s) we reach and also surpass the performance for the first layer and are within $1 . 5 \\%$ points for the second. Given that the best unsupervised performance for conv2 is 32.5, our method using a single source Image A (Table 2, p) is remarkably close with 31.5. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
173,
|
| 721 |
+
742,
|
| 722 |
+
825,
|
| 723 |
+
825
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 6
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "Image contents. While we surpass the GAN based approach of (Donahue et al., 2017) for both single source images, we find more nuanced results for the other two methods: For RotNet, as expected, the photographic bias cannot be extracted from a single image. Thus its performance is low with little training data and increases together with the number of images (Table 2, j-n). When comparing Image A and B trained networks for RotNet, we find that the photograph yields better performance than the hand drawn animal image. This indicates that the method can extract rotation information from low level image features such as patches which is at first counter intuitive. Considering that the hand-drawn image does not work well, we can assume that lighting and shadows even in small patches can indeed give important cues on the up direction which can be learned even from a single (real) image. DeepCluster shows poor performance in conv1 which we can improve upon in the single image setting (Table 2, o-r). Naturally, the image content matters: a trivial image without any image gradient (e.g. picture of a white wall) would not provide enough signal for any method. To better understand this issue, we also train DeepCluster on the much less cluttered Image C to analyze how much the image influences our claims. We find that even though this image contains large parts of sky and sea, the performance is only slightly lower than that of Image A. This finding indicates that the augmentations can even compensate for large untextured areas and the exact choice of image is not critical. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
173,
|
| 732 |
+
839,
|
| 733 |
+
825,
|
| 734 |
+
924
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 6
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "image",
|
| 740 |
+
"img_path": "images/47da3d26c9e9068651078be6be738408c464663bb72932691e02010a521e8e9a.jpg",
|
| 741 |
+
"image_caption": [
|
| 742 |
+
"Figure 2: conv1 filters trained using a single image. The 96 learned $( 3 \\times 1 1 \\times 1 1 )$ filters for the first layer of AlexNet are shown for each single training image and method along with their linear classifier performance. For visualization, each filter is normalized to be in the range of $( - 1 , 1 )$ . "
|
| 743 |
+
],
|
| 744 |
+
"image_footnote": [],
|
| 745 |
+
"bbox": [
|
| 746 |
+
179,
|
| 747 |
+
101,
|
| 748 |
+
820,
|
| 749 |
+
268
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 7
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "",
|
| 756 |
+
"bbox": [
|
| 757 |
+
174,
|
| 758 |
+
325,
|
| 759 |
+
825,
|
| 760 |
+
478
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 7
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "More than one image. While BiGAN fails to converge for $N \\in \\{ 1 0 , 1 0 0 0 \\}$ , most likely due to issues in learning from a distribution which is neither whole images nor only patches, we find that both RotNet and DeepCluster improve their performance in deeper layers when increasing the number of training images. However, for conv1 and conv2, a single image is enough. In deeper layers, DeepCluster seems to require large amounts of source images to yield the reported results as the deka- and kilo- variants start improving over the single image case (Table 2, o-t). This need for data also explains the gap between the two input images which have different resolutions. Summarizing Table 2, we can conclude that learning conv1, conv2 and for the most part conv3 (33.4 vs. 39.4) on over 1M images does not yield a significant performance increase over using one single training image — a highly unexpected result. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
173,
|
| 769 |
+
496,
|
| 770 |
+
825,
|
| 771 |
+
635
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 7
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "Generalization. In Table 3, we show the results of training linear classifiers for the CIFAR-10 dataset and compare against various baselines. We find that the GAN trained on the smaller Image B outperforms all other methods including the fully-supervised trained one for the first convolutional layer. We also outperform the same architecture trained on the full CIFAR-10 training set using RotNet, which might be due to the fact that either CIFAR images do not contain much information about the orientation of the picture or because they do not contain as many objects as in ImageNet. While the GAN trained on the whole dataset outperforms the MonoGAN on the deeper layers, the gap stays very small until the last layer. These findings are also reflected in the experiments on the CIFAR-100 dataset shown in Table 3. We find that our method obtains the best performance for the first two layers, even against the fully supervised version. The gap between our mono variant and the other methods increases again with deeper layers, hinting to the fact that we cannot learn very high level concepts in deeper layers from just one single image. These results corroborate the finding that our method allows learning very generalizable early features that are not domain dependent. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
173,
|
| 780 |
+
652,
|
| 781 |
+
825,
|
| 782 |
+
833
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "4.4 QUALITATIVE ANALYSIS ",
|
| 789 |
+
"text_level": 1,
|
| 790 |
+
"bbox": [
|
| 791 |
+
174,
|
| 792 |
+
847,
|
| 793 |
+
387,
|
| 794 |
+
861
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 7
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "Visual comparison of weights. In Figure 2, we compare the learned filters of all first-layer convolutions of an AlexNet trained with the different methods and a single image. First, we find that the filters closely resemble those obtained via supervised training: Gabor-like edge detectors and various color blobs. Second, we find that the look is not easily predictive of its performance, e.g. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
867,
|
| 804 |
+
823,
|
| 805 |
+
924
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 7
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "while generatively learned filters (BiGAN) show many edge detectors, its linear probes performance is about the same as that of DeepCluster which seems to learn many somewhat redundant point features. However, we also find that some edge detectors are required, as we can confirm from RotNet and DeepCluster trained on Image B, which yield less crisp filters and worse performances. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
174,
|
| 814 |
+
103,
|
| 815 |
+
825,
|
| 816 |
+
160
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 8
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "table",
|
| 822 |
+
"img_path": "images/2c370a153095606da7a5c1e8357c729b3eb85f8f83933eccd9bd9e4d360e376a.jpg",
|
| 823 |
+
"table_caption": [
|
| 824 |
+
"Table 4: Finetuning experiments The pretrained model’s first two convolutions are left frozen (or replaced by the Scattering transform) and the nework is retrained using ImageNet LSVRC-12 training set. "
|
| 825 |
+
],
|
| 826 |
+
"table_footnote": [],
|
| 827 |
+
"table_body": "<table><tr><td></td><td>Top-1</td></tr><tr><td>Full sup.</td><td>59.4</td></tr><tr><td>Random</td><td>42.6</td></tr><tr><td>Scattering</td><td>49.2</td></tr><tr><td>BiGAN, A</td><td>51.4</td></tr><tr><td>RotNet, A</td><td>49.5</td></tr><tr><td>DeepCluster A</td><td>52.5</td></tr></table>",
|
| 828 |
+
"bbox": [
|
| 829 |
+
251,
|
| 830 |
+
242,
|
| 831 |
+
403,
|
| 832 |
+
367
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 8
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "image",
|
| 838 |
+
"img_path": "images/28641601f8b033094919f1f4d9ec2805f166320615575ce7240f102b217c3607.jpg",
|
| 839 |
+
"image_caption": [
|
| 840 |
+
"Figure 3: Style transfer with single-image pretraining. We show two style transfer results using the Image A trained BiGAN and the ImageNet pretrained AlexNet. "
|
| 841 |
+
],
|
| 842 |
+
"image_footnote": [],
|
| 843 |
+
"bbox": [
|
| 844 |
+
501,
|
| 845 |
+
184,
|
| 846 |
+
818,
|
| 847 |
+
313
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 8
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "Fine-tuning instead of freezing. In Tab. 4, we show the results of retraining a network with the first two convolutional filters, or the scattering transform from (Oyallon et al., 2017), left frozen. We observe that our single image trained DeepCluster and BiGAN models achieve performances closes to the supervised benchmark. Notably, the scattering transform as a replacement for conv1-2 performs slightly worse than the analyzed single image methods. We also show in the appendix the results of retraining a network initialized with the first two convolutional layers obtained from a single image and subsequently linearly probing the model. The results are shown in Appendix Tab. 5 and we find that we can recover the performance of fully-supervised networks, i.e. the first two convolutional filters trained from just a single image generalize well and do not get stuck in an image specific minimum. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
173,
|
| 856 |
+
406,
|
| 857 |
+
825,
|
| 858 |
+
545
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 8
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "Neural style transfer. Lastly, we show how our features trained on only a single image can be used for other applications. In Figure 3 we show two basic style transfers using the method of (Gatys et al., 2016) from an official PyTorch tutorial3. Image content and style are separated and the style is transferred from the source to target image using all CNN features, not just the shallow layers. We visually compare the results of using our features and from full ImageNet supervision. We find almost no visual differences in the stylized images and can conclude that our early features are equally powerful as fully supervised ones for this task. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
173,
|
| 867 |
+
564,
|
| 868 |
+
825,
|
| 869 |
+
661
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 8
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "5 CONCLUSIONS ",
|
| 876 |
+
"text_level": 1,
|
| 877 |
+
"bbox": [
|
| 878 |
+
176,
|
| 879 |
+
678,
|
| 880 |
+
328,
|
| 881 |
+
694
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 8
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "We have made the surprising observation that we can learn good and generalizable features through self-supervision from one single source image, provided that sufficient data augmentation is used. Our results complement recent works (Mahajan et al., 2018; Goyal et al., 2019) that have investigated self-supervision in the very large data regime. Our main conclusion is that these methods succeed perfectly in capturing the simplest image statistics, but that for deeper layers a gap exist with strong supervision which is compensated only in limited manner by using large datasets. This novel finding motivates a renewed focus on the role of augmentations in self-supervised learning and critical rethinking of how to better leverage the available data. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
173,
|
| 890 |
+
702,
|
| 891 |
+
825,
|
| 892 |
+
814
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 8
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "ACKNOWLEDGEMENTS. ",
|
| 899 |
+
"text_level": 1,
|
| 900 |
+
"bbox": [
|
| 901 |
+
176,
|
| 902 |
+
830,
|
| 903 |
+
339,
|
| 904 |
+
843
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 8
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "We thank Aravindh Mahendran for fruitful discussions. Yuki Asano gratefully acknowledges support from the EPSRC Centre for Doctoral Training in Autonomous Intelligent Machines & Systems (EP/L015897/1). The work is supported by ERC IDIU-638009. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
176,
|
| 913 |
+
851,
|
| 914 |
+
825,
|
| 915 |
+
892
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 8
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "REFERENCES \nPulkit Agrawal, Joao Carreira, and Jitendra Malik. Learning to see by moving. In Proc. ICCV, pp. 37–45. IEEE, 2015. 3 \nR. Arandjelovic and A. Zisserman. Look, listen and learn. In ´ Proc. ICCV, 2017. 3 \nPiotr Bojanowski and Armand Joulin. Unsupervised learning by predicting noise. In Proc. ICML, pp. 517–526. PMLR, 2017. 2 \nJoan Bruna and Stephane Mallat. Invariant scattering convolution networks. ´ IEEE transactions on pattern analysis and machine intelligence, 35(8):1872–1886, 2013. 3, 7 \nM. Caron, P. Bojanowski, A. Joulin, and M. Douze. Deep clustering for unsupervised learning of visual features. In Proc. ECCV, 2018. 2, 3, 5, 6, 7, 13 \nN. Dalal and B Triggs. Histogram of Oriented Gradients for Human Detection. In Proc. CVPR, volume 2, pp. 886–893, 2005. 2, 3 \nVirginia R de Sa. Learning classification with unlabeled data. In NIPS, pp. 112–119, 1994. 3 \nJ. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proc. CVPR, 2009. 5 \nCarl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Proc. ICCV, pp. 1422–1430, 2015. 2 \nJeff Donahue, Philipp Krhenbhl, and Trevor Darrell. Adversarial feature learning. Proc. ICLR, 2017. 2, 3, 5, 6, 7 \nA. Dosovitskiy, P. Fischer, J. T. Springenberg, M. Riedmiller, and T. Brox. Discriminative unsupervised feature learning with exemplar convolutional neural networks. IEEE PAMI, 38(9):1734–1747, Sept 2016. ISSN 0162-8828. doi: 10.1109/TPAMI.2015.2496141. 2 \nV. Dumoulin, I. Belghazi, B. Poole, O. Mastropietro, A. Lamb, M. Arjovsky, and A. Courville. Adversarially learned inference. arXiv preprint arXiv:1606.00704, 2016. 5 \nD. Erhan, Y. Bengio, A. Courville, and P. Vincent. Visualizing higher-layer features of a deep network. Technical Report 1341, University of Montreal, Jun 2009. 13 \nChuang Gan, Boqing Gong, Kun Liu, Hao Su, and Leonidas J Guibas. Geometry guided convolutional neural networks for self-supervised video representation learning. In Proc. CVPR, 2018. 3 \nRouhan Gao, Dinesh Jayaraman, and Kristen Grauman. Object-centric representation learning from unlabeled videos. In Proc. ACCV, 2016. 3 \nLeon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proc. CVPR, pp. 2414–2423, 2016. 2, 9 \nR. 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. 14 \nSpyros Gidaris, Praveen Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In Proc. ICLR, 2018. 2, 3, 5, 6 \nR. B. Girshick. Fast R-CNN. In Proc. ICCV, 2015. 1 \nIan Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, pp. 2672–2680, 2014. 5 \nPriya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra. Scaling and benchmarking self-supervised visual representation learning. arXiv preprint arXiv:1905.01235, 2019. 9 \nIshaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In NIPS, pp. 5767–5777, 2017. 7 \nB. Hariharan, J. Malik, and D. Ramanan. Discriminative decorrelation for clustering and classification. In Proc. ECCV, 2012. 3 \nM. Huh, P. Agrawal, and A. A. Efros. What makes imagenet good for transfer learning? arXiv preprint arXiv:1608.08614, 2016. 1 \nPhillip Isola, Daniel Zoran, Dilip Krishnan, and Edward H Adelson. Learning visual groups from cooccurrences in space and time. In Proc. ICLR, 2015. 3 \nDinesh Jayaraman and Kristen Grauman. Learning image representations tied to ego-motion. In Proc. ICCV, 2015. 3 \nDinesh Jayaraman and Kristen Grauman. Slow and steady feature analysis: higher order temporal coherence in video. In Proc. CVPR, 2016. 3 \nSimon Jenni and Paolo Favaro. Self-supervised feature learning by learning to spot artifacts. In Proc. CVPR, 2018. 2 \nJ. Johnson, A. Alahi, and L. Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proc. ECCV, pp. 694–711, 2016. 2 \nR. Kat, R. Jevnisek, and S. Avidan. Matching pixels using co-occurrence statistics. In Proc. ICCV, pp. 1751– 1759, 2018. 2 \nPhilipp Krahenb ¨ uhl, Carl Doersch, Jeff Donahue, and Trevor Darrell. Data-dependent initializations of convo-¨ lutional neural networks. Proc. ICLR, 2016. 6 \nA. Krizhevsky, I. Sutskever, and G. E. Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, pp. 1106–1114, 2012. 5 \nAlex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. 5 \nGustav Larsson, Michael Maire, and Gregory Shakhnarovich. Colorization as a proxy task for visual understanding. In Proc. CVPR, 2017. 2 \nHsin-Ying Lee, Jia-Bin Huang, Maneesh Kumar Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequence. In Proc. ICCV, 2017. 2 \nD. Lowe. Distinctive image features from scale-invariant keypoints. IJCV, 60(2):91–110, 2004. 2, 3 \nDhruv Mahajan, Ross Girshick, Vignesh Ramanathan, Kaiming He, Manohar Paluri, Yixuan Li, Ashwin Bharambe, and Laurens van der Maaten. Exploring the limits of weakly supervised pretraining. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 181–196, 2018. 9 \nA. Mahendran, J. Thewlis, and A. Vedaldi. Cross pixel optical-flow similarity for self-supervised learning. In Proc. ACCV, 2018. 3 \nT. Malisiewicz, A. Gupta, and A. A. Efros. Ensemble of exemplar-SVMs for object detection and beyond. In Proc. ICCV, 2011. 3 \nIshan Misra, C. Lawrence Zitnick, and Martial Hebert. Shuffle and learn: Unsupervised learning using temporal order verification. In Proc. ECCV, 2016. 2 \nT Mundhenk, Daniel Ho, and Barry Y. Chen. Improvements to context based self-supervised learning. In Proc. CVPR, 2017. 2 \nMehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In Proc. ECCV, pp. 69–84. Springer, 2016. 2 \nMehdi Noroozi, Hamed Pirsiavash, and Paolo Favaro. Representation learning by learning to count. In Proc. ICCV, 2017. 2 \nMehdi Noroozi, Ananth Vinjimoor, Paolo Favaro, and Hamed Pirsiavash. Boosting self-supervised learning via knowledge transfer. In Proc. CVPR, 2018. 2 \nChris Olah, Arvind Satyanarayan, Ian Johnson, Shan Carter, Ludwig Schubert, Katherine Ye, and Alexander Mordvintsev. The building blocks of interpretability. Distill, 3(3):e10, 2018. 13 \nB. A. Olshausen and D. J. Field. Sparse coding with an overcomplete basis set: A strategy employed by V1? Vision Research, 37(23):3311–3325, 1997. 2, 3 \nM. Oquab, L. Bottou, I. Laptev, and J. Sivic. Learning and Transferring Mid-Level Image Representations using Convolutional Neural Networks. In Proc. CVPR, 2014. 1 \nAndrew Owens, Phillip Isola, Josh H. McDermott, Antonio Torralba, Edward H. Adelson, and William T. Freeman. Visually indicated sounds. In Proc. CVPR, pp. 2405–2413, 2016. 3 \nEdouard Oyallon, Eugene Belilovsky, and Sergey Zagoruyko. Scaling the scattering transform: Deep hybrid networks. pp. 5618–5627, 2017. 3, 6, 7, 9 \nDeepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei A Efros. Context encoders: Feature learning by inpainting. In Proc. CVPR, pp. 2536–2544, 2016. 2 \nDeepak Pathak, Ross Girshick, Piotr Dollar, Trevor Darrell, and Bharath Hariharan. Learning features by ´ watching objects move. In Proc. CVPR, 2017. 3 \nZhongzheng Ren and Yong Jae Lee. Cross-domain self-supervised multi-task feature learning using synthetic imagery. In Proc. CVPR, 2018. 2 \nA. Rodriguez, V. Naresh Boddeti, BVK V. Kumar, and A. Mahalanobis. Maximum margin correlation filter: A new approach for localization and classification. IEEE Transactions on Image Processing, 22(2):631–643, 2013. 3 \nTamar Rott Shaham, Tali Dekel, and Tomer Michaeli. Singan: Learning a generative model from a single natural image. In Computer Vision (ICCV), IEEE International Conference on, 2019. 3 \nPierre Sermanet et al. Time-contrastive networks: Self-supervised learning from video. In Proc. Intl. Conf. on Robotics and Automation, 2018. 2 \nH. Shin, H. R. Roth, M. Gao, L. Lu, Z. Xu, I. Nogues, J. Yao, D. Mollura, and R. M. Summers. Deep convolutional neural networks for computer-aided detection: Cnn architectures, dataset characteristics and transfer learning. IEEE Trans. on Medical Imaging, 35(5):1285–1298, May 2016. ISSN 0278-0062. 1 \nN. Srivastava, E. Mansimov, and R. Salakhudinov. Unsupervised learning of video representations using lstms. In Proc. ICML, 2015. 3 \nI. Talmi, R. Mechrez, and L. Zelnik-Manor. Template matching with deformable diversity similarity. In Proc. CVPR, pp. 175–183, 2017. 2 \nD. Ulyanov, A. Vedaldi, and V. Lempitsky. Improved texture networks: Maximizing quality and diversity in feed-forward stylization and texture synthesis. In Proc. CVPR, 2017. 7 \nD. Ulyanov, A. Vedaldi, and V. Lempitsky. Deep image prior. In Proc. CVPR, 2018. 5 \nX. Wang and A. Gupta. Unsupervised learning of visual representations using videos. In Proc. ICCV, pp. 2794–2802, 2015. 3 \nXiaolong Wang, Kaiming He, and Abhinav Gupta. Transitive invariance for self-supervised visual representation learning. In Proc. ICCV, 2017. 3 \nD. Wei, J. Lim, A. Zisserman, and W. T. Freeman. Learning and using the arrow of time. In Proc. CVPR, 2018. 2 \nJ. Yosinski, J. Clune, Y. Bengio, and H. Lipson. How transferable are features in deep neural networks? In NIPS, pp. 3320–3328, 2014. 1 \nM. D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In Proc. ECCV, 2014. 13 \nRichard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In Proc. ECCV, pp. 649–666. Springer, 2016. 2 \nRichard Zhang, Phillip Isola, and Alexei A. Efros. Split-brain autoencoders: Unsupervised learning by crosschannel prediction. In Proc. CVPR, 2017. 5, 6, 7, 13 ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
169,
|
| 924 |
+
69,
|
| 925 |
+
826,
|
| 926 |
+
926
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 9
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "",
|
| 933 |
+
"bbox": [
|
| 934 |
+
169,
|
| 935 |
+
66,
|
| 936 |
+
828,
|
| 937 |
+
925
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 10
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "",
|
| 944 |
+
"bbox": [
|
| 945 |
+
171,
|
| 946 |
+
68,
|
| 947 |
+
826,
|
| 948 |
+
820
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 11
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "A APPENDIX ",
|
| 955 |
+
"text_level": 1,
|
| 956 |
+
"bbox": [
|
| 957 |
+
176,
|
| 958 |
+
102,
|
| 959 |
+
299,
|
| 960 |
+
117
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 12
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "A.1 IMAGENET TRAINING IMAGES ",
|
| 967 |
+
"text_level": 1,
|
| 968 |
+
"bbox": [
|
| 969 |
+
176,
|
| 970 |
+
127,
|
| 971 |
+
428,
|
| 972 |
+
142
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 12
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "image",
|
| 978 |
+
"img_path": "images/046e21f8bf046efcf2184e9d1086c428f27cb732dddd0a050c1fa62dee848678.jpg",
|
| 979 |
+
"image_caption": [
|
| 980 |
+
"Figure 4: ImageNet images for the $N { = } 1 0$ experiments. "
|
| 981 |
+
],
|
| 982 |
+
"image_footnote": [],
|
| 983 |
+
"bbox": [
|
| 984 |
+
196,
|
| 985 |
+
154,
|
| 986 |
+
802,
|
| 987 |
+
343
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 12
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "The images used for the $N { = } 1 0$ experiments are shown in fig. 4. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
174,
|
| 996 |
+
368,
|
| 997 |
+
596,
|
| 998 |
+
382
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 12
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "A.2 VISUAL COMPARISON OF FILTERS ",
|
| 1005 |
+
"text_level": 1,
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
176,
|
| 1008 |
+
395,
|
| 1009 |
+
455,
|
| 1010 |
+
409
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 12
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "image",
|
| 1016 |
+
"img_path": "images/2f5f075fffec40a9fe974918f1470779b27b8abdc86af77cd7e6cd3a644973b5.jpg",
|
| 1017 |
+
"image_caption": [
|
| 1018 |
+
"Figure 5: Filter visualization. We show activation maximization (left) and retrieval of top 9 activated images from the training set of ImageNet (right) for four random non-cherrypicked target filters. From top to bottom: conv1-5 of the BiGAN trained on a single image A. The filter visualization is obtained by learning a (regularized) input image that maximizes the response to the target filter using the library Lucid (Olah et al., 2018). "
|
| 1019 |
+
],
|
| 1020 |
+
"image_footnote": [],
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
202,
|
| 1023 |
+
420,
|
| 1024 |
+
802,
|
| 1025 |
+
693
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 12
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "In order to understand what deeper neurons are responding to in our model, we visualize random neurons via activation maximization (Erhan et al., 2009; Zeiler & Fergus, 2014) in each layer. Additionally, we retrieve the top-9 images in the ImageNet training set that activate each neuron most in Figure 5. Since the mono networks are not trained on the ImageNet dataset, it can be used here for visualization. From the first convolutional layer we find typical neurons strongly reacting to oriented edges. In layers 2-4 we find patterns such as grids (conv2:3), and textures such as leopard skin (conv2:2) and round grid cover (conv4:4). Confirming our hypothesis that the neural network is only extracting patterns and not semantic information, we do not find any neurons particularly specialized to certain objects even in higher levels as for example dog faces or similar which can be fund in supervised networks. This finding aligns with the observations of other unsupervised methods (Caron et al., 2018; Zhang et al., 2017). As most neurons extract simple patterns and textures, the surprising effectiveness of training a network using a single image can be explained by the recent finding that even CNNs trained on ImageNet rely on texture (as opposed to shape) information to classify (Geirhos et al., 2019). ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
173,
|
| 1034 |
+
771,
|
| 1035 |
+
825,
|
| 1036 |
+
924
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 12
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "table",
|
| 1042 |
+
"img_path": "images/db7792bca0ef4f121dd6e4838a7b37a14eb207c3068087942d03dcf53f008e47.jpg",
|
| 1043 |
+
"table_caption": [
|
| 1044 |
+
"Table 5: Finetuning experiments Models are initialized using conv1 and conv2 from various single image trained models and the whole network is fine-tuned using ImageNet LSVRC-12 training set. Accuracy is averaged over 10 crops. "
|
| 1045 |
+
],
|
| 1046 |
+
"table_footnote": [],
|
| 1047 |
+
"table_body": "<table><tr><td>c1</td><td>c2 c3</td><td>c4</td><td>c5</td></tr><tr><td>Full sup.</td><td>19.3 36.3 44.2</td><td>48.3 50.5</td><td></td></tr><tr><td>BiGAN, A</td><td>22.5 37.6 44.2</td><td>47.6 48.3</td><td></td></tr><tr><td>RotNet, A</td><td>22.0 38.2</td><td>44.8 49.2 51.8</td><td></td></tr><tr><td>DeepCluster, A 21.8 35.9</td><td>43.6</td><td>48.8</td><td>50.4</td></tr></table>",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
352,
|
| 1050 |
+
143,
|
| 1051 |
+
645,
|
| 1052 |
+
236
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 13
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
174,
|
| 1061 |
+
258,
|
| 1062 |
+
825,
|
| 1063 |
+
301
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 13
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "A.3 RETRAINING FROM SINGLE IMAGE INITIALIZATION",
|
| 1070 |
+
"text_level": 1,
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
174,
|
| 1073 |
+
314,
|
| 1074 |
+
573,
|
| 1075 |
+
328
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 13
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "In Table 5, we initialize AlexNet models using the first two convolutional filters learned from a single image and retrain them using ImageNet. We find that the networks recover their performance fully and the first filters do not make the network stuck in a bad local minimum despite having been trained on a single image from a different distribution. The difference from the BiGAN to the full supervision model is likely due to it using a smaller input resolution (112 instead of 224), as the BiGAN’s output resolution is limited. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
174,
|
| 1084 |
+
334,
|
| 1085 |
+
825,
|
| 1086 |
+
417
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 13
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "A.4 LINEAR PROBES ON IMAGENET ",
|
| 1093 |
+
"text_level": 1,
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
176,
|
| 1096 |
+
430,
|
| 1097 |
+
437,
|
| 1098 |
+
445
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 13
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "We show two plots of the ImageNet linear probes results (Table 2 of the paper) in fig. 6. On the left we plot performance per layer in absolute scale. Naturally the performance of the supervised model improves with depth, while all unsupervised models degrade after conv3. From the relative plot on the right, it becomes clear that with our training scheme, we can even slightly surpass supervised performance on conv1 presumably since our model is trained with sometimes very small patches, thus receiving an emphasis on learning good low level filters. The gap between all self-supervised methods and the supervised baseline increases with depth, due to the fact that the supervised model is trained for this specific task, whereas the self-supervised models learn from a surrogate task without labels. ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
173,
|
| 1107 |
+
452,
|
| 1108 |
+
825,
|
| 1109 |
+
577
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 13
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "image",
|
| 1115 |
+
"img_path": "images/9bb9bbb4170ebecfa72682345ec6c7569f3b6ee0c4cf53fa2ee208649efb83a1.jpg",
|
| 1116 |
+
"image_caption": [
|
| 1117 |
+
"Figure 6: Linear Classifiers on ImageNet. Classification accuracies of linear classifiers trained on the representations from Table 2 are shown in absolute scale. "
|
| 1118 |
+
],
|
| 1119 |
+
"image_footnote": [],
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
303,
|
| 1122 |
+
598,
|
| 1123 |
+
669,
|
| 1124 |
+
815
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 13
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "A.5 EXAMPLE AUGMENTED TRAINING DATA ",
|
| 1131 |
+
"text_level": 1,
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
173,
|
| 1134 |
+
873,
|
| 1135 |
+
501,
|
| 1136 |
+
888
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 13
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "In figs. 7 to 10 we show example patches generated by our augmentation strategy for the datasets with different N. Even though the images and patches are very different in color and shape distribu",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
176,
|
| 1145 |
+
895,
|
| 1146 |
+
823,
|
| 1147 |
+
924
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 13
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "tion, our model learns weights that perform similarly in the linear probes benchmark (see Table 2 in the paper). ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
174,
|
| 1156 |
+
103,
|
| 1157 |
+
823,
|
| 1158 |
+
132
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 14
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "image",
|
| 1164 |
+
"img_path": "images/d7b4139a73a054c21258fc27b0228d0a962fd351f9792c2826ceaccf0656d21e.jpg",
|
| 1165 |
+
"image_caption": [
|
| 1166 |
+
"Figure 7: Example crops of Image A ( $N = 1$ ) dataset. "
|
| 1167 |
+
],
|
| 1168 |
+
"image_footnote": [],
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
186,
|
| 1171 |
+
138,
|
| 1172 |
+
810,
|
| 1173 |
+
381
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 14
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "image",
|
| 1179 |
+
"img_path": "images/edd8e1f5572325341cf862f150b4183d8a280538461d8991f5f2d6aa06e81d59.jpg",
|
| 1180 |
+
"image_caption": [
|
| 1181 |
+
"Figure 8: Example crops of Image B $N = 1$ ) dataset. 50 samples were selected randomly. "
|
| 1182 |
+
],
|
| 1183 |
+
"image_footnote": [],
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
187,
|
| 1186 |
+
107,
|
| 1187 |
+
810,
|
| 1188 |
+
347
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 15
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "image",
|
| 1194 |
+
"img_path": "images/181050cf9ad7ded511060047fb8ebdbc14b65be193fdd00679f0687df8f35d45.jpg",
|
| 1195 |
+
"image_caption": [
|
| 1196 |
+
"Figure 9: Example crops of deka $N = 1 0$ ) dataset. 50 samples were selected randomly. "
|
| 1197 |
+
],
|
| 1198 |
+
"image_footnote": [],
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
187,
|
| 1201 |
+
383,
|
| 1202 |
+
810,
|
| 1203 |
+
623
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 15
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "image",
|
| 1209 |
+
"img_path": "images/5f1fd0a8bdc394bef8d19a152e1205bbd6f49971803be773b209278e19a9fa63.jpg",
|
| 1210 |
+
"image_caption": [
|
| 1211 |
+
"Figure 10: Example crops of kilo ( $\\overline { { N = 1 0 0 0 } }$ ) dataset. 50 samples were selected randomly. "
|
| 1212 |
+
],
|
| 1213 |
+
"image_footnote": [],
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
187,
|
| 1216 |
+
659,
|
| 1217 |
+
810,
|
| 1218 |
+
898
|
| 1219 |
+
],
|
| 1220 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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A DEEP LEARNING APPROACH FOR JOINT VIDEOFRAME AND REWARD PREDICTION IN ATARI GAMES
|
| 2 |
+
|
| 3 |
+
Felix Leibfried ∗
|
| 4 |
+
Max Planck Institute for Intelligent Systems
|
| 5 |
+
Max Planck Institute for Biological Cybernetics
|
| 6 |
+
Graduate Training Center of Neuroscience
|
| 7 |
+
Tuebingen, Germany
|
| 8 |
+
felix.leibfried@gmail.com
|
| 9 |
+
|
| 10 |
+
Nate Kushman & Katja Hofmann
|
| 11 |
+
|
| 12 |
+
Microsoft Research
|
| 13 |
+
Cambridge, UK
|
| 14 |
+
nkushman@microsoft.com
|
| 15 |
+
katja.hofmann@microsoft.com
|
| 16 |
+
|
| 17 |
+
# ABSTRACT
|
| 18 |
+
|
| 19 |
+
Reinforcement learning is concerned with learning to interact with environments that are initially unknown. State-of-the-art reinforcement learning approaches, such as DQN, are model-free and learn to act effectively across a wide range of environments such as Atari games, but require huge amounts of data. Modelbased techniques are more data-efficient, but need to acquire explicit knowledge about the environment dynamics or the reward structure.
|
| 20 |
+
|
| 21 |
+
In this paper we take a step towards using model-based techniques in environments with high-dimensional visual state space when system dynamics and the reward structure are both unknown and need to be learned, by demonstrating that it is possible to learn both jointly. Empirical evaluation on five Atari games demonstrate accurate cumulative reward prediction of up to 200 frames. We consider these positive results as opening up important directions for model-based RL in complex, initially unknown environments.
|
| 22 |
+
|
| 23 |
+
# 1 INTRODUCTION
|
| 24 |
+
|
| 25 |
+
When humans or animals receive reward for taking a particular action in a given situation, the probability is increased that they will act similarly in similar situations in the future. This is described by principles such as the law of effect (Thorndike, 1898), operant conditioning (Skinner, 1938) and trial-and-error learning (Thorpe, 1979) in behaviorist psychology, and has inspired a discipline of artificial intelligence called reinforcement learning (RL, Sutton & Barto (1998)). RL is concerned with finding optimal behavior policies in order to maximize agents’ cumulative future reward.
|
| 26 |
+
|
| 27 |
+
Approaches to RL can be divided into model-free and model-based approaches. In model-free approaches, agents learn by trial and error but do not aim to explicitly capture the dynamics of the environment or the structure of the reward function underlying the environment. State-of-the-art modelfree approaches, such as DQN (Mnih et al., 2015), effectively approximate so-called Q-values, i.e., the value of taking specific actions in a given state, using deep neural networks. The impressive effectiveness of these approaches comes from their ability to learn complex policies directly from high-dimensional input (e.g., video frames). Despite their effectiveness, model-free approaches require large amounts of training data that have to be collected through direct interactions with the environment, which makes them expensive to apply in settings where interactions are costly (such as most real-world applications). Additionally, model-free RL requires access to reward observations during training, which is problematic in environments with sparse reward structure—unless coupled with an explicit exploration mechanism.
|
| 28 |
+
|
| 29 |
+
RL approaches that explicitly learn statistics about the environment or the reward are generally referred to as model-based—in a more narrow definition these statistics comprise environment dynamics and the reward function. In recent work, model-based techniques were successfully used to learn statistics about cumulative future reward (Veness et al., 2015) and to improve exploration by favoring actions that are likely to lead to novel states (Bellemare et al., 2016; Oh et al., 2015), resulting in substantially more data efficient learning compared to model-free approaches. When an accurate model of the true environment dynamics and the true reward function is available, modelbased approaches, such as planning via Monte-Carlo tree search (Browne et al., 2012) outperform model-free state-of-the-art approaches (Guo et al., 2014).
|
| 30 |
+
|
| 31 |
+
A key open question is whether effective model-based RL is possible in complex settings where the environment dynamics and the reward function are initially unknown, and the agent has to acquire such knowledge through experience. In this paper, we take a step towards addressing this question by extending recent work on video frame prediction (Oh et al., 2015), which has been demonstrated to effectively learn system dynamics, to enable joint prediction of future states and rewards using a single latent representation. We propose a network architecture and training procedure for joint state and reward prediction, and evaluate our approach in the Arcade Learning Environment (ALE, Bellemare et al. (2013)).
|
| 32 |
+
|
| 33 |
+
Our empirical results on five Atari games demonstrate that our approach can successfully predict cumulative reward up to roughly 200 frames. We complement our quantitative results with a detailed error analysis by visualizing example predictions. Our results are the first to demonstrate the feasibility of using a learned dynamics and reward model for accurate planning. We see this as a significant step towards data efficient RL in high-dimensional environments without prior knowledge.
|
| 34 |
+
|
| 35 |
+
# 2 RELATED WORK AND MOTIVATION
|
| 36 |
+
|
| 37 |
+
Two lines of research are related to the work presented in this paper: model-based RL and optimal control theory. Model-based RL utilizes a given or learned model of some aspect of a task to, e.g., reduce data or exploration requirements (Bellemare et al., 2016; Oh et al., 2015; Veness et al., 2015). Optimal control theory describes mathematical principles for deriving control policies in continuous action spaces that maximize cumulative future reward in scenarios with known system dynamics and known reward structure (Bertsekas, 2007; 2005).
|
| 38 |
+
|
| 39 |
+
There has been recent interest in combining principles from optimal control theory and model-based learning in settings where no information on system dynamics is available a priori and instead has to be acquired from visual data (Finn et al., 2016; Wahlstrom et al., 2015; Watter et al., 2015). The ¨ general idea behind these approaches is to learn a compressed latent representation of the visual state space from raw images through autoencoder networks (Bengio, 2009) and to utilize the acquired latent representation to infer system dynamics. System dynamics are then used to specify a planning problem which can be solved by optimization techniques to derive optimal policies. Watter et al. (2015) introduce an approach for learning system dynamics from raw visual data by jointly training a variational autoencoder (Kingma & Welling, 2014; Rezende et al., 2014) and a state prediction model that operates in the autoencoder’s compressed latent state representation. A similar approach for jointly learning a compressed state representation and a predictive model is pursued by Wahlstrom et al. (2015).Finn et al. (2016) devise a sequential approach that first learns a latent state ¨ representation from visual data and that subsequently exploits this latent representation to augment a robot’s initial state space describing joint angles and end-effector positions. The augmented state space is then used to improve estimates of local system dynamics for planning.
|
| 40 |
+
|
| 41 |
+
The approaches presented above assume knowledge of the functional form of the true reward signal and are hence not directly applicable in settings like ALE (and many real-world settings) where the reward function is initially unknown. Planning in such settings therefore necessitates learning both system dynamics and reward function in order to infer optimal behavioral policies. Recent work by Oh et al. (2015) introduced an approach for learning environment dynamics from pixel images and demonstrated that this enabled successful video frame prediction over up to 400 frames. In our current paper, we extend this recent work to enable reward prediction as well by modifying the network’s architecture and training objective accordingly. The modification of the training objective bears a positive side effect: since our network must optimize a compound loss consisting of the video frame reconstruction loss and the reward loss, reward-relevant aspects in the video frames to which the reconstruction loss alone might be insensitive are explicitly captured by the optimization objective. In the subsequent section, we elucidate the approach from Oh et al. (2015) as well as our extensions for reward prediction in more detail.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 1: Network architecture for joint video frame and reward prediction. The architecture comprises three stages: an encoding stage mapping current input frames to some compressed latent representation, a transformation stage integrating the current action into the latent representation through element-wise vector multiplication denoted by $" \times "$ , and a final predictive stage for reconstructing the frame of the next time step and the current reward. The network uses three different types of neuron layers (’Conv’ for convolutional, ’Deconv’ for deconvolutional and ’Fc’ for forward connection) in combination with three different types of activation functions (’ReLU’, ’Softmax’ and ’Lin’ for linear activations). The dimensional extend of individual layers is either depicted beneath or within layers. The network part coloured in red highlights the extension for reward prediction.
|
| 45 |
+
|
| 46 |
+
# 3 NETWORK ARCHITECTURE AND TRAINING
|
| 47 |
+
|
| 48 |
+
The deep network proposed by Oh et al. (2015) for video frame prediction in Atari games aims at learning a function that predicts the video frame $\mathbf { s } _ { t + 1 }$ at the next time step $t + 1$ , given the current history of frames $\mathbf { S } _ { t - h + 1 : t }$ with time horizon $h$ and the current action $\mathbf { a } _ { t }$ taken by the agent—see Section 3.1. Here, we extend this work to enable joint video frame and reward prediction such that the network anticipates the current reward $\mathbf { r } _ { t }$ as well—see Sections 3.2 and 3.3.
|
| 49 |
+
|
| 50 |
+
# 3.1 VIDEO FRAME PREDICTION
|
| 51 |
+
|
| 52 |
+
The video-frame-predictive architecture from Oh et al. (2015) comprises three informationprocessing stages: an encoding stage that maps input frames to some compressed latent representation, a transformation stage that integrates the current action into the compressed latent representation, and a decoding stage that maps the compressed latent representation to the predicted next frame—see Figure 1. The initial encoding stage is a sequence of convolutional and forward operations that map the current frame history $\mathbf { S } _ { t - h + 1 : t }$ —a three-dimensional tensor—to a compressed feature vector $\mathbf { h } _ { t } ^ { \mathrm { e n c } }$ . The transformation stage converts this compressed feature vector $\mathbf { h } _ { t } ^ { \mathrm { e n c } }$ into an action-conditional representation $\mathbf { h } _ { t } ^ { \mathrm { d e c } }$ in vectorized form by integrating the current action $\mathbf { a } _ { t }$ . The current action $\mathbf { a } _ { t }$ is represented as a one-hot vector with length varying from game to game since there are at least 3 and at most 18 actions in ALE. The integration of the current action into the compressed feature vector includes an element-wise vector multiplication—depicted as $\because \mathbf { \nabla } _ { \times } ,$ in Figure 1—with the particularity that the two neuron layers involved in this element-wise multiplication are the only layers in the entire network without bias parameters, see Section 3.2 in Oh et al. (2015). Finally, the decoding stage performs a series of forward and deconvolutional operations (Dosovitskiy et al., 2015; Zeiler et al., 2010) by mapping the action-conditional representation $\mathbf { h } _ { t } ^ { \mathrm { d e c } }$ of the current frame history $\mathbf { S } _ { t - h + 1 : t }$ and the current action $\mathbf { a } _ { t }$ to the predicted video frame $\mathbf { s } _ { t + 1 }$ of the next time step $t + 1$ . Note that this necessitates a reshape operation at the beginning of the decoding cascade in order to transform the vectorized hidden representation into a three-dimensional tensor. The whole network uses linear and rectified linear units (Glorot et al., 2011) only. In all our experiments, following DQN (Mnih et al., 2015), the video frames processed by the network are $8 4 \times 8 4$ grey-scale images down-sampled from the full-resolution $2 1 0 \times 1 6 0$ Atari RGB images from ALE. Following Mnih et al. (2015) and Oh et al. (2015), the history frame time horizon $h$ is set to 4.
|
| 53 |
+
|
| 54 |
+
# 3.2 REWARD PREDICTION
|
| 55 |
+
|
| 56 |
+
In this section we detail our proposed network architecture for joint state and reward prediction. Our model assumes ternary rewards which result from reward clipping in line with Mnih et al. (2015). Original game scores in ALE are integers that can vary significantly between different Atari games and the corresponding original rewards are clipped to assume one of three values: $- 1$ for negative rewards, 0 for no reward and 1 for positive rewards. Because of reward clipping, rewards can be represented as vectors $\mathbf { r } _ { t }$ in one-hot encoding of size 3.
|
| 57 |
+
|
| 58 |
+
In Figure 1, our extension of the video-frame-predictive architecture from Oh et al. (2015) to enable reward prediction is highlighted in red. We add an additional softmax layer to predict the current reward $\mathbf { r } _ { t }$ with information contained in the action-conditional encoding $\dot { \mathbf { h } } _ { t } ^ { \mathrm { d e c } }$ . The motivation behind this extension is twofold. First, our extension makes it possible to jointly train the network with a compound objective that emphasizes both video frame reconstruction and reward prediction, and thus encourages the network to not abstract away reward-relevant features to which the reconstruction loss alone might be insensitive. Second, this formulation facilitates the future use of the model for reward prediction through virtual roll-outs in the compressed latent space, without the computational expensive necessity of reconstructing video frames explicitly—note that this requires another ”shortcut” predictive model to map from $\mathbf { h } _ { t } ^ { \mathrm { d e c } }$ to $\mathbf { h } _ { t + 1 } ^ { \mathrm { e n c } }$ .
|
| 59 |
+
|
| 60 |
+
Following previous work (Oh et al., 2015; Mnih et al., 2015), actions are chosen by the agent on every fourth frame and are repeated on frames that were skipped. Skipped frames and repeated actions are hence not part of the data sets used to train and test the predictive network on, and original reward values are accumulated over four frames before clipping.
|
| 61 |
+
|
| 62 |
+
# 3.3 TRAINING
|
| 63 |
+
|
| 64 |
+
Training the model for joint video frame and reward prediction requires trajectory samples $\left\{ \left( \mathbf { s } _ { n } ^ { ( i ) } , \mathbf { a } _ { n } ^ { ( i ) } , \mathbf { r } _ { n } ^ { ( i ) } \right) _ { n = 1 } ^ { N } \right\} _ { i = 1 } ^ { I }$ collected by some agent playing the Atari game, where $i$ is an index over trajectories and $n$ is a time index over samples within one trajectory $i$ . The parameter $I$ denotes the number of trajectories in the training set or the minibatch respectively and the parameter $N$ denotes the length of an individual trajectory. In our case, we use agents trained according to Mnih et al. (2015) in order to collect trajectory samples.
|
| 65 |
+
|
| 66 |
+
The original training objective in Oh et al. (2015) consists of a video frame reconstruction loss in terms of a squared loss function aimed at minimizing the quadratic $l ^ { 2 }$ -norm of the difference vector between the ground truth image and its action-conditional reconstruction. We extend this training objective to enable joint reward prediction. This results in a compound training loss consisting of the original video frame reconstruction loss and a reward prediction loss given by the cross entropy (Simard et al., 2003) between the ground truth reward and the corresponding prediction:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
L _ { K } ( \boldsymbol \theta ) = \frac { 1 } { 2 \cdot I \cdot T \cdot K } \sum _ { i = 1 } ^ { I } \sum _ { t = 0 } ^ { T - 1 } \sum _ { k = 1 } ^ { K } ( \underbrace { | \mathbf { s } _ { t + k } ^ { ( i ) } - \hat { \mathbf { s } } _ { t + k } ^ { ( i ) } | | _ { 2 } ^ { 2 } } _ { \mathrm { v i d e o f r a m e r e c o n s t u c t i o n 1 0 s s } } + \underbrace { \lambda \cdot ( - 1 ) \sum _ { l = 1 } ^ { 3 } \mathbf { r } _ { t + k } ^ { ( i ) } [ l ] \cdot \ln \mathbf { p } _ { t + k } ^ { ( i ) } [ l ] } _ { \mathrm { r e w a r d p r e d i c i t i o n 1 l o s s } } ) ,
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
where $\hat { \mathbf { s } } _ { t + k } ^ { ( i ) }$ denotes the $k$ -step look ahead frame prediction with target video frame $\mathbf { s } _ { t + k } ^ { ( i ) }$ and p(i)t+k denotes the in red in Fi -step look ahead probability vare1—with target reward vector $\mathbf { r } _ { t + k } ^ { ( i ) }$ f the reward-p. The paramete $\lambda > 0$ softmax layer—depicted controls the trade-off between video frame reconstruction and reward loss. The parameter $T$ determines how often a single trajectory sample $i$ is unrolled into the future, and $K$ determines the look ahead prediction horizon dictating how far the network predicts into the future by using its own video frame predicted output as input for the next time step. Following Oh et al. (2015) and Michalski et al. (2014), we apply a curriculum learning (Bengio et al., 2009) scheme by successively increasing $K$ in the course of training such that the network initially learns to predict over a short time horizon and becomes fine-tuned on longer-term predictions as training advances (see Section A.1 for details). The network parameters $\theta$ are updated by stochastic gradient descent, derivatives of the training objective w.r.t. $\theta$ are computed with backpropagation through time (Werbos, 1988).
|
| 73 |
+
|
| 74 |
+
# 4 RESULTS
|
| 75 |
+
|
| 76 |
+
In our evaluations, we investigate cumulative reward predictions quantitatively and qualitatively on five different Atari games (Q\*bert, Seaquest, Freeway, Ms Pacman and Space Invaders). The quantitative analysis comprises evaluating the cumulative reward prediction error—see Section 4.1. The qualitative analysis comprises visualizations of example predictions in Seaquest—see Section 4.2.
|
| 77 |
+
|
| 78 |
+
4.1 QUANTITATIVE REWARD PREDICTION ANALYSIS: CUMULATIVE REWARD ERROR
|
| 79 |
+
|
| 80 |
+
Our quantitative evaluation examines whether our joint model of system dynamics and reward function results in a shared latent representation that enables accurate cumulative reward prediction. We assess cumulative reward prediction on test sets consisting of approximately 50,000 video frames per game, including actions and rewards. Each network is evaluated on 1,000 trajectories—suitable to analyze up to 100-step ahead prediction—drawn randomly from the test set. Look ahead prediction is measured in terms of the cumulative reward error which is the difference between ground truth cumulative reward and predicted cumulative reward. For each game, this results in 100 empirical distributions over the cumulative reward error—one distribution for each look ahead step—consisting of 1,000 samples each (one for each trajectory). We compare our model predictions to a baseline model that samples rewards from the marginal reward distribution observed on the test set for each game. Note that negative reward values are absent in the games investigated for this study.
|
| 81 |
+
|
| 82 |
+
Figure 2 illustrates 20 of the 100 empirical cumulative reward error distributions in all games for our network model in blue and for the baseline model in red (histograms, bottom), together with the median and the 5 to 95 percentiles of the cumulative reward error over look ahead steps (top). Across all games, we observe that our joint state and reward prediction model accurately predicts future cumulative rewards at least 20 look ahead steps, and that it predicts future rewards substantially more accurately than the baseline model. This is evidenced by cumulative reward error distributions that maintain a unimodal form with mode zero and do not flatten out as quickly as the distributions for the random-prediction baseline model. Best results are achieved in Freeway and $\boldsymbol { \mathrm { Q } } ^ { * } \boldsymbol { \mathrm { b e r t } }$ where the probability of zero cumulative reward error at 51 look ahead steps is still around $8 0 \%$ and $6 0 \%$ respectively—see Figure 2. Note that 51 look ahead steps correspond to 204 frames because the underlying DQN agent, collecting trajectory samples for training and testing our model, skipped every fourth frame when choosing an action—see Section 3.2. Lowest performance is obtained in Seaquest where the probability of zero cumulative reward error at 26 steps (104 frames) is around $4 0 \%$ and begins to flatten out soon thereafter—see Figure 2. Running the ALE emulator at a frequency of 60fps, 26 steps correspond to more than 1 second real-time game play because of frame skipping. Since our model is capable of predicting 26 steps ahead in less than 1 second, our model enables real-time planning and could be therefore utilized in an online fashion.
|
| 83 |
+
|
| 84 |
+
We now turn our attention to error analysis. While the look ahead step at which errors become prominent differs substantially from game to game, we find that overall our model underestimates cumulative reward. This can be seen in the asymmetry towards positive cumulative reward error values when inspecting the 5 to 95 percentile intervals in the first plot per each game in Figure 2. We identify a likely cause in (pseudo-)stochastic transitions inherent in these games. Considering Seaquest as our running example, objects such as divers and submarines can enter the scene randomly from the right and from the left and at the same time have an essential impact on which rewards the agent can potentially collect. In the ground truth trajectories, the agent’s actions are reactions to these objects. If the predicted future trajectory deviates from the ground truth, targeted actions such as shooting will miss their target, leading to underestimating true reward. We analyze this effect in more detail in Section 4.2.
|
| 85 |
+
|
| 86 |
+
All our experiments were conducted in triplicate with different initial random seeds. Different initial random seeds did not have a significant impact on cumulative reward prediction in all games except Freeway—see Section A.5 for a detailed analysis. So far, we discussed results concerning reward prediction only. In the appendix, we also evaluate the joint performance of reward and video frame prediction on the test set in terms of the optimization objective as in Oh et al. (2015), where the authors report successful video frame reconstruction up to approximately 100 steps (400 frames), and observe similar results—see Section A.6.
|
| 87 |
+
|
| 88 |
+
In the previous section, we identified stochasticity in state transitions as a likely cause for relatively low performance in long-term cumulative reward prediction in games such as Seaquest. In Seaquest objects may randomly enter a scene in a non-deterministic fashion. Errors in predicting these events result in predicted possible futures that do not match actually observed future states, resulting in inaccurate reward predictions. Here, we support this hypothesis by visualizations in Seaquest illustrating joint video frame and reward prediction for a single network over 20 steps (80 frames)—see Figure 3 where ground truth video frames are compared to predicted video frames in terms of error maps. Error maps emphasize the difference between ground truth and predicted frames through squared error values between pixels in black or white depending on whether objects are absent or present by mistake in the network’s prediction. Actions, ground truth rewards and model-predicted rewards are shown between state transitions. Peculiarities in the prediction process are shown in red.
|
| 89 |
+
|
| 90 |
+
In step 2, the model predicts reward by mistake because the agent barely misses its target. Steps 4 to 6 report how the model predicts reward correctly but is off by one time step. Steps 7 to 14 depict problems caused by objects randomly entering the scene from the right which the model cannot predict. Steps 26 to 30 show how the model has problems to predict rewards at steps 26 and 28 as these rewards are attached to objects the model failed to notice entering the scene earlier.
|
| 91 |
+
|
| 92 |
+
# 5 CONCLUSION AND FUTURE WORK
|
| 93 |
+
|
| 94 |
+
In this paper, we extended recent work on video frame prediction (Oh et al., 2015) in Atari games to enable reward prediction. Our approach can be used to jointly predict video frames and cumulative rewards up to a horizon of approximately 200 frames in five different games ( $\mathbf { Q } ^ { * }$ bert, Seaquest, Freeway, Ms Pacman and Space Invaders). We achieved best results in Freeway and $\mathbf { Q } ^ { * }$ bert where the probability of zero cumulative reward error after 200 frames is still around $8 0 \%$ and $6 0 \%$ respectively, and worst results in Seaquest where the probability of zero cumulative reward error after 100 frames is around $4 0 \%$ . Our study fits into the general line of research using autoencoder networks to learn a latent representation from visual data (Finn et al., 2016; Goroshin et al., 2015; Gregor et al., 2015; Kulkarni et al., 2015; Srivastava et al., 2015; Wahlstrom et al., 2015; Watter et al., 2015; ¨ Kingma & Welling, 2014; Rezende et al., 2014; Lange et al., 2012; Hinton et al., 2011; Ranzato et al., 2007), and extends this line of research by showing that autoencoder networks are capable of learning a combined representation for system dynamics and the reward function in reinforcement learning settings with high-dimensional visual state spaces—a first step towards applying modelbased techniques for planning in environments where the reward function is not initially known.
|
| 95 |
+
|
| 96 |
+
Our positive results open up intriguing directions for future work. Our long-term goal is the integration of model-based and model-free approaches for effective interactive learning and planning in complex environments. Directions for achieving this long-standing challenge include the Dyna method (Sutton, 1990), which uses a predictive model to artificially augment expensive training data, and has been shown to lead to substantial reductions in data requirements in tabular RL approaches. Alternatively, the model could be could be utilized for planning via Monte-Carlo tree search (Guo et al., 2014; Browne et al., 2012). We hypothesize that such an approach would be particularly beneficial in multi-task or life-long learning scenarios where the reward function changes but the environment dynamics are stationary. Testing this hypothesis requires a flexible learning framework where the reward function and the artificial environment can be changed by the experimenter in an arbitrary fashion, which is not possible in ALE where the environment and the reward function are fixed per game. A learning environment providing such a flexibility is the recently released Malmo platform for Minecraft (Johnson et al., 2016) where researchers can create user-defined en-¨ vironments and tasks in order to evaluate the performance of artificial agents. In the shorter-term, we envision improving the prediction performance of our network by regularization methods such as dropout and max norm regularization (Srivastava et al., 2014)—a state-of-the-art regularizer in supervised learning—and by modifying the optimization objective to enforce similarity between hidden encodings in multi-step ahead prediction and one-step ahead prediction—see Watter et al. (2015). Finally, extensions of our model to non-deterministic state transitions through dropout and variational autoencoder schemes (Kingma & Welling, 2014; Rezende et al., 2014) is a promising direction to alleviate the limitations highlighted in Section 4.2—paving the way for models that adequately predict and reason over alternative possible future trajectories.
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
two plots for each game. The top plot per game shows how the median and the 5 to 95 percentiles of the cumulative reward error evolve over look ahead steps for both our model (in blue) and a baseline model that samples rewards from the marginal reward distribution of the test set (in red). Each vertical slice of this concise representation corresponds to a single empirical distribution over the cumulative reward error. We depict these for every fifth look ahead step in the compound plots below for both models. These empirical error distributions demonstrate successful cumulative reward prediction over at least 20 steps (80 frames) in all five games as evidenced by their zero-centered and unimodal shape in the first column of each compound plot per game.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 3: Example predictions in Seaquest. Ground truth video frames, model predictions and error maps emphasizing differences between ground truth and predicted frames—in form of the squared error between pixel values—are compared column-wise. Error maps highlight objects in black or white respectively depending on whether these objects are absent by mistake or present by mistake in the model’s prediction. Actions taken by the agent as well as ground truth rewards (’rew’) and reward predictions (’pred’) are shown below video and error frames. Peculiarities in the prediction process are marked in red. The figure demonstrates how our predictive model fails to anticipate objects that randomly enter the scene from the right and rewards associated to these objects.
|
| 103 |
+
|
| 104 |
+
# REFERENCES
|
| 105 |
+
|
| 106 |
+
M G Bellemare, Y Naddaf, J Veness, and M Bowling. The Arcade Learning Environment: an evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013.
|
| 107 |
+
|
| 108 |
+
M G Bellemare, S Srinivasan, G Ostrovski, T Schaul, D Saxton, and R Munos. Unifying count-based exploration and intrinsic motivation. arXiv preprint arXiv:1606.01868, 2016.
|
| 109 |
+
|
| 110 |
+
Y Bengio. Learning deep architectures for AI. Foundations and Trends in Machine Learning, 2(1): 1–127, 2009.
|
| 111 |
+
|
| 112 |
+
Y Bengio, J Louradour, R Collobert, and J Weston. Curriculum learning. In Proceedings of the International Conference on Machine Learning, 2009.
|
| 113 |
+
|
| 114 |
+
D P Bertsekas. Dynamic programming & optimal control, volume 1. Athena Scientific, 2005.
|
| 115 |
+
|
| 116 |
+
D P Bertsekas. Dynamic programming & optimal control, volume 2. Athena Scientific, 2007.
|
| 117 |
+
|
| 118 |
+
C Browne, E Powley, D Whitehouse, S Lucas, P I Cowling, P Rohlfshagen, S Tavener, D Perez, S Samothrakis, and S Colton. A survey of monte carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in Games, 4(1):1–49, 2012.
|
| 119 |
+
|
| 120 |
+
A Dosovitskiy, J T Springenberg, and T Brox. Learning to generate chairs with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015.
|
| 121 |
+
|
| 122 |
+
C Finn, X Y Tan, Y Duan, T Darrell, S Levine, and P Abbeel. Deep spatial autoencoders for visuomotor learning. In Proceedings of the IEEE International Conference on Robotics and Automation, 2016.
|
| 123 |
+
|
| 124 |
+
X Glorot and Y Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the International Conference on Artificial Intelligence and Statistics, 2010.
|
| 125 |
+
|
| 126 |
+
X Glorot, A Bordes, and Y Bengio. Deep sparse rectifier neural networks. In Proceedings of the International Conference on Artificial Intelligence and Statistics, 2011.
|
| 127 |
+
|
| 128 |
+
R Goroshin, M Mathieu, and Y LeCun. Learning to linearize under uncertainty. Advances in Neural Information Processing Systems, 2015.
|
| 129 |
+
|
| 130 |
+
K Gregor, I Danihelka, A Graves, D J Rezende, and D Wierstra. DRAW: a recurrent neural network for image generation. In Proceedings of the International Conference on Machine Learning, 2015.
|
| 131 |
+
|
| 132 |
+
X Guo, S Singh, H Lee, R Lewis, and X Wang. Deep learning for real-time Atari game play using offline Monte-Carlo tree search planning. In Advances in Neural Information Processing Systems, 2014.
|
| 133 |
+
|
| 134 |
+
G E Hinton, A Krizhevsky, and S D Wang. Transforming auto-encoders. In Proceedings of the International Conference on Artificial Neural Networks, 2011.
|
| 135 |
+
|
| 136 |
+
M Johnson, K Hofmann, T Hutton, and D Bignell. The Malmo platform for artificial intelligence experimentation. In Proceedings of the International Joint Conference on Artificial Intelligence, 2016.
|
| 137 |
+
|
| 138 |
+
D P Kingma and J Ba. Adam: a method for stochastic optimization. In Proceedings of the International Conference on Learning Representations, 2015.
|
| 139 |
+
|
| 140 |
+
D P Kingma and M Welling. Auto-encoding variational Bayes. In Proceedings of the International Conference on Learning Representations, 2014.
|
| 141 |
+
|
| 142 |
+
T D Kulkarni, W F Whitney, P Kohli, and J B Tenenbaum. Deep convolutional inverse graphics network. In Advances in Neural Information Processing Systems, 2015.
|
| 143 |
+
|
| 144 |
+
S Lange, M Riedmiller, and A Voigtlander. Autonomous reinforcement learning on raw visual input ¨ data in a real world application. In Proceedings of the International Joint Conference on Neural Networks, 2012.
|
| 145 |
+
|
| 146 |
+
V Michalski, R Memisevic, and K Konda. Modeling deep temporal dependencies with recurrent grammar cells. In Advances in Neural Information Processing Systems, 2014.
|
| 147 |
+
|
| 148 |
+
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.
|
| 149 |
+
|
| 150 |
+
J Oh, X Guo, H Lee, R Lewis, and S Singh. Action-conditional video prediction using deep networks in Atari games. In Advances in Neural Information Processing Systems, 2015.
|
| 151 |
+
|
| 152 |
+
R Pascanu, T Mikolov, and Y Bengio. On the difficulty of training recurrent neural networks. In Proceedings of the International Conference on Machine Learning, 2013.
|
| 153 |
+
|
| 154 |
+
M Ranzato, F J Huang, Y-L Boureau, and Y LeCun. Unsupervised learning of invariant feature hierarchies with applications to object recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2007.
|
| 155 |
+
|
| 156 |
+
D J Rezende, S Mohamed, and D Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the International Conference on Machine Learning, 2014.
|
| 157 |
+
|
| 158 |
+
P Y Simard, D Steinkraus, and J C Platt. Best practices for convolutional neural networks applied to visual document analysis. In Proceedings of the International Conference on Document Analysis and Recognition, 2003.
|
| 159 |
+
|
| 160 |
+
B F Skinner. The behavior of organisms: an experimental analysis. Appleton-Century-Crofts, 1938.
|
| 161 |
+
|
| 162 |
+
N Srivastava, G E Hinton, A Krizhevsky, I Sutskever, and R Salakhutdinov. Dropout : a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15: 1929–1958, 2014.
|
| 163 |
+
|
| 164 |
+
N Srivastava, E Mansimov, and R Salakhutdinov. Unsupervised learning of video representations using LSTMs. In Proceedings of the International Conference on Machine Learning, 2015.
|
| 165 |
+
|
| 166 |
+
R S Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In Proceedings of the International Conference on Machine Learning, 1990.
|
| 167 |
+
|
| 168 |
+
R S Sutton and A G Barto. Reinforcement learning: an introduction. MIT Press, 1998.
|
| 169 |
+
|
| 170 |
+
E L Thorndike. Animal intelligence: an experimental study of the associative processes in animals. The Psychological Review: Monograph Supplements, 2(4):1–107, 1898.
|
| 171 |
+
|
| 172 |
+
W H Thorpe. The origins and rise of ethology. Heinemann Educational Books, 1979.
|
| 173 |
+
|
| 174 |
+
J Veness, M G Bellemare, M Hutter, A Chua, and G Desjardins. Compress and control. In Proceedings of the AAAI Conference on Artificial Intelligence, 2015.
|
| 175 |
+
|
| 176 |
+
N Wahlstrom, T B Sch ¨ on, and M P Deisenroth. From pixels to torques: policy learning with deep ¨ dynamical models. arXiv preprint arXiv:1502.02251, 2015.
|
| 177 |
+
|
| 178 |
+
M Watter, J T Springenberg, J Boedecker, and M Riedmiller. Embed to control: a locally linear latent dynamics model for control from raw images. In Advances in Neural Information Processing Systems, 2015.
|
| 179 |
+
|
| 180 |
+
P J Werbos. Generalization of backpropagation with application to a recurrent gas market model. Neural Networks, 1(4):339–356, 1988.
|
| 181 |
+
|
| 182 |
+
M D Zeiler, D Krishnan, G W Taylor, and R Fergus. Deconvolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2010.
|
| 183 |
+
|
| 184 |
+
# A APPENDIX
|
| 185 |
+
|
| 186 |
+
# A.1 TRAINING DETAILS
|
| 187 |
+
|
| 188 |
+
We performed all our experiments in Python with Chainer and adhered to the instructions in Oh et al. (2015) as close as possible. Trajectory samples for learning the network parameters were obtained from a previously trained DQN agent according to Mnih et al. (2015). The dataset for training comprised around 500, 000 video frames per game in addition to actions chosen by the DQN agent and rewards collected during game play. Video frames used as network input were $8 4 \times 8 4$ grey-scale images with pixel values between 0 and 255 down-sampled from the full-resolution $2 1 0 \times 1 6 0$ ALE RGB images. We applied a further preprocessing step by dividing each pixel by 255 and subtracting mean pixel values from each image leading to final pixel values $\in \ [ - 1 ; 1 ]$ . A detailed network architecture is shown in Figure 1 in the main paper. All weights in the network were initialized according to Glorot & Bengio (2010) except for those two layers that participate in the element-wise multiplication in Figure 1: the weights of the action-processing layer were initialized uniformly in the range $[ - 0 . 1 ; 0 . { \bar { 1 } } ]$ and the weights of the layer receiving the latent encoding of the input video frames were initialized uniformly in the range $[ - 1 ; 1 ]$ . Training was performed for $1 , 5 0 0 , 0 0 0$ minibatch iterations with a curriculum learning scheme increasing the look ahead parameter $K$ every 500, 000 iterations from 1 to 3 to 5. When increasing the look ahead parameter $K$ for the first time after 500, 000 iterations, the minibatch size $I$ was also altered from 32 to 8 as was the learning rate for parameter updates from $1 0 ^ { - 4 }$ to $1 0 ^ { - 5 }$ . Throughout the entire curriculum scheme, the time horizon parameter determining the number of times a single trajectory is unrolled into the future was $T = 4$ . The optimizer for updating weights was Adam (Kingma & Ba, 2015) with gradient momentum 0.9, squared gradient momentum 0.95 and epsilon parameter $1 0 ^ { - 8 }$ . In evaluation mode, network outputs were clipped to $[ - 1 ; 1 ]$ so that strong activations could not accumulate over roll-out time in the network.
|
| 189 |
+
|
| 190 |
+
In our experiments, we modified the reward prediction loss slightly in order to prevent exploding gradient values by replacing the term $- \ln p$ with a first-order Taylor approximation for $p$ -values smaller than $e ^ { - 1 0 } { \mathrm { - a } } $ similar technique is used in DQN (Mnih et al., 2015) to improve the stability of the optimization algorithm. To identify optimal values for the reward weight $\lambda$ , we performed initial experiments on Ms Pacman without applying the aforementioned curriculum learning scheme instead using a fixed look ahead parameter $K = 1$ . We evaluated the effect of different $\lambda$ -values $\in \{ 0 . 1 , 1 , \bar { 1 0 } , 1 0 0 \}$ on the training objective and identified $\lambda = 1$ for conducting further experiments—see Section A.2. After identifying an optimal reward weight, we conducted additional initial experiments without curriculum learning with fixed look ahead parameter $K = 1$ on all of the five different Atari games used in this paper. We observed periodic oscillations in the reward prediction loss of the training objective in Seaquest, which was fixed by adding gradient clipping (Pascanu et al., 2013) with threshold parameter 1 to our optimization procedure—experiments investigating the effect of gradient clipping in Seaquest are reported in Section A.3. The fine-tuning effect of curriculum learning on the training objective in our final experiments is shown in Section A.4 for all of the five analysed Atari games.
|
| 191 |
+
|
| 192 |
+
# A.2 EFFECT OF REWARD WEIGHT IN MS PACMAN
|
| 193 |
+
|
| 194 |
+
To identify optimal values for the reward weight $\lambda$ , we conducted initial experiments in Ms Pacman without curriculum learning and a fixed look ahead horizon $K = 1$ . We tested four different $\lambda$ - values $\in \{ 0 . 1 , 1 , 1 0 , 1 0 0 \}$ and investigated how the frame reconstruction loss and the reward loss of the training objective evolve over minibatch iterations—see Figure 4. Best results were obtained for $\lambda = 1$ and for $\lambda = 1 0$ , whereas values of $\lambda = 0 . 1$ and $\lambda = 1 0 0$ lead to significantly slower convergence and worse overall training performance respectively.
|
| 195 |
+
|
| 196 |
+
# A.3 EFFECT OF GRADIENT CLIPPING IN SEAQUEST
|
| 197 |
+
|
| 198 |
+
After identifying an optimal value for the reward weight, see Section A.2, we observed oscillations in the reward loss of the training objective in Seaquest—see first column in Figure 5—which was solved by adding gradient clipping to our optimization procedure—see second and third column in Figure 5. We tested two different values for the gradient clipping threshold (5 and 1) both of which worked, but for a value of 1 the oscillation vanished completely.
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
Figure 4: Effect of reward weight on training loss in Ms Pacman. Each of the four panels depicts one experiment with a different reward weight $\lambda$ . Each panel shows how the training loss evolves over minibatch iterations in terms of two subplots reporting video frame reconstruction and reward loss respectively. Each experiment was conducted three times with different initial random seeds depicted in blue, green and red. Graphs were smoothed with an exponential window of size 1000.
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
Figure 5: Effect of gradient clipping on training loss in Seaquest. The three panels compare experiments with no reward clipping to those with reward clipping using the threshold values 5 and 1 respectively. Subplots within each panel are similar to those in Figure 4 but display in the first row the evolution of the compound training loss in addition to the frame reconstruction and reward loss.
|
| 205 |
+
|
| 206 |
+
# A.4 EFFECT OF CURRICULUM LEARNING
|
| 207 |
+
|
| 208 |
+
In our final experiments with curriculum learning, the networks were trained for 1, 500, 000 minibatch iterations in total but the look ahead parameter $K$ was gradually increased every 500, 000 iterations from 1 to 3 to 5. The networks were hence initially trained on one-step ahead prediction only and later on fine-tuned on further-step ahead prediction. Figure 6 shows how the training objective evolves over iterations. The characteristic ”bumps” in the training objective every 500, 000 iterations as training evolves demonstrate improvements in long-term predictions in all games except Freeway where the training objective assumed already very low values within the first 500, 000 iterations and might have been therefore insensitive to further fine-tuning by curriculum learning.
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 6: Effect of curriculum learning on five different Atari games. Each panel corresponds to a different game, individual panels are structured in the same way as are those in Figure 5
|
| 212 |
+
|
| 213 |
+
# A.5 EFFECT OF RANDOM SEEDS
|
| 214 |
+
|
| 215 |
+
We conducted three different experiments per game with different initial random seeds. The effect of different initial random seeds on the cumulative reward error is summarized in Figure 7 which reports how the median and the 5 to 95 percentiles of the cumulative reward error evolve over look ahead steps in the different experiments per game. Note that the results of the first column in Figure 7 are shown in Figure 2 from the main paper together with a more detailed analysis depicting empirical cumulative reward error distributions for some look ahead steps. The random initial seed does not seem to have a significant impact on the cumulative reward prediction except for Freeway where the network in the third experiment starts to considerably overestimate cumulative rewards at around 30 to 40 look ahead steps.
|
| 216 |
+
|
| 217 |
+
In order to investigate this reward overestimation in Freeway further, we analyse visualizations of joint video frame and reward prediction for this particular seed (similar in style to Figure 3 from Section 4.2 in the main paper). The results are shown in Figure 8 where a peculiar situation occurs after 31 predicted look ahead steps. In Freeway, the agent’s job is to cross a busy road from the bottom to the top without bumping into a car in order to receive reward. If the agent bumps into a car, the agent is propelled downwards further away from the reward-yielding top. This propelled downwards movement happens even when the agent tries to move upwards. Exactly that kind of situation is depicted at the beginning of Figure 8 and occurs for this particular prediction after 31 steps. Our predictive model is however not able to correctly predict the aforementioned downwards movement caused by the agent hitting the car, which is highlighted in red throughout steps 31 to 35 documenting an increasing gap between ground truth and predicted agent position as the propelled downwards movement of the ground truth agent continues. In the course of further prediction, the network model assumes the agent to reach the reward-yielding top side of the road way too early which results in a sequence of erroneous positive reward predictions throughout steps 41 to 50, and as a side effect seemingly that the predictive model loses track of other objects in the scene. Concluding, this finding may serve as a possible explanation for cumulative reward overestimation for that particular experiment in Freeway.
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 7: Effect of different initial random seeds on cumulative reward error. The plots show how the cumulative reward error evolves over look ahead steps in terms of the median and the 5 to 95 percentiles for our network model (blue) as well as the baseline model (red) in each experiment. Each row refers to a different game, each column refers to a different experiment per game initialized with a different random seed. The first column of this figure is presented in Figure 2 of the main paper explaining the results in more detail by additionally illustrating empirical distributions over the cumulative reward error for some look ahead steps.
|
| 221 |
+
|
| 222 |
+

|
| 223 |
+
Figure 8: Example predictions in Freeway over 20 steps. The figure is similar in nature to Figure 3 from the main paper with the only difference that predictions are depicted from time step 31 onwards.
|
| 224 |
+
|
| 225 |
+
# A.6 LOSS ON TEST SET
|
| 226 |
+
|
| 227 |
+
In the main paper, our analysis focuses on evaluating how well our model serves the purpose of cumulative reward prediction. Here, we evaluate network performance in terms of both the video frame reconstruction loss as well as the reward prediction loss on the test set following the analysis conducted in Oh et al. (2015). For each game, we sample 300 minibatches of size $I = 5 0$ from the underlying test set and compute the test loss over $K = 1 0 0$ look ahead steps with the formula presented in the main paper in Section 3.3 used for learning network parameters, but without averaging over look ahead steps because we aim to illustrate the test loss as a function of look ahead steps—statistics of this analysis are plotted in Figure 9.
|
| 228 |
+
|
| 229 |
+
Best overall test loss is achieved in Freeway and for initial look ahead steps (up to roughly between 40 and 60 steps) in Q\*bert, which is in accordance with results for cumulative reward prediction from the main paper. Also in line with results from the main paper is the finding that the reward loss on the test set is worse in Seaquest, Ms Pacman and Space Invaders when compared to $\mathrm { Q ^ { * } }$ bert (up to approximately 40 steps) and Freeway. Worst video frame reconstruction loss is observed for Space Invaders in compliance with Oh et al. (2015) where the authors report that there are objects in the scene moving at a period of 9 time steps which is hard to predict by a network only taking the last 4 frames from the last 4 steps as input for future predictions. At first sight, it might seem a bit surprising that the reward prediction loss in Space Invaders is significantly lower than in Seaquest and Ms Pacman for long-term ahead prediction despite the higher frame reconstruction loss in Space Invaders. A possible explanation for this paradox might be the frequency at which rewards are collected—this frequency is significantly higher in Seaquest and Ms Pacman than in Space Invaders. A reward prediction model with bias towards zero rewards—as indicated by the main results in the paper—might therefore err less often in absolute terms when rewards are collected at a lower frequency and may hence achieve lower overall reward reconstruction loss.
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
Figure 9: Loss on test set over look ahead steps. Each row reports the loss on the test set over 100 look ahead steps for a different game. The first column illustrates the compound loss consisting of the video frame reconstruction loss (second column) and the reward prediction loss (third column). The loss on the test set is computed according to Oh et al. (2015) similar to the training loss for learning network parameters, however with a different look ahead parameter $K = 1 0 0$ and a different minibatch size $I = 5 0$ , and without averaging over look ahead steps since we aim to plot the test loss as a function of look ahead steps. For each game, the test loss is computed for 300 minibatches resulting in an empirical distribution with 300 loss values per look ahead step. The figure shows the mean (in green), the median (in red), the 5 to 95 percentiles (in shaded blue) as well as minimum and maximum elements (in black dashed lines) of these empirical distributions.
|
parse/train/BJxhLAuxg/BJxhLAuxg_content_list.json
ADDED
|
@@ -0,0 +1,1246 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Felix Leibfried ∗ \nMax Planck Institute for Intelligent Systems \nMax Planck Institute for Biological Cybernetics \nGraduate Training Center of Neuroscience \nTuebingen, Germany \nfelix.leibfried@gmail.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
498,
|
| 21 |
+
253
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Nate Kushman & Katja Hofmann ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
532,
|
| 30 |
+
170,
|
| 31 |
+
769,
|
| 32 |
+
184
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Microsoft Research \nCambridge, UK \nnkushman@microsoft.com \nkatja.hofmann@microsoft.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
532,
|
| 41 |
+
185,
|
| 42 |
+
797,
|
| 43 |
+
239
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
290,
|
| 54 |
+
544,
|
| 55 |
+
305
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Reinforcement learning is concerned with learning to interact with environments that are initially unknown. State-of-the-art reinforcement learning approaches, such as DQN, are model-free and learn to act effectively across a wide range of environments such as Atari games, but require huge amounts of data. Modelbased techniques are more data-efficient, but need to acquire explicit knowledge about the environment dynamics or the reward structure. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
323,
|
| 65 |
+
764,
|
| 66 |
+
406
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "In this paper we take a step towards using model-based techniques in environments with high-dimensional visual state space when system dynamics and the reward structure are both unknown and need to be learned, by demonstrating that it is possible to learn both jointly. Empirical evaluation on five Atari games demonstrate accurate cumulative reward prediction of up to 200 frames. We consider these positive results as opening up important directions for model-based RL in complex, initially unknown environments. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
409,
|
| 76 |
+
764,
|
| 77 |
+
506
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
534,
|
| 88 |
+
334,
|
| 89 |
+
549
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "When humans or animals receive reward for taking a particular action in a given situation, the probability is increased that they will act similarly in similar situations in the future. This is described by principles such as the law of effect (Thorndike, 1898), operant conditioning (Skinner, 1938) and trial-and-error learning (Thorpe, 1979) in behaviorist psychology, and has inspired a discipline of artificial intelligence called reinforcement learning (RL, Sutton & Barto (1998)). RL is concerned with finding optimal behavior policies in order to maximize agents’ cumulative future reward. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
565,
|
| 99 |
+
825,
|
| 100 |
+
648
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Approaches to RL can be divided into model-free and model-based approaches. In model-free approaches, agents learn by trial and error but do not aim to explicitly capture the dynamics of the environment or the structure of the reward function underlying the environment. State-of-the-art modelfree approaches, such as DQN (Mnih et al., 2015), effectively approximate so-called Q-values, i.e., the value of taking specific actions in a given state, using deep neural networks. The impressive effectiveness of these approaches comes from their ability to learn complex policies directly from high-dimensional input (e.g., video frames). Despite their effectiveness, model-free approaches require large amounts of training data that have to be collected through direct interactions with the environment, which makes them expensive to apply in settings where interactions are costly (such as most real-world applications). Additionally, model-free RL requires access to reward observations during training, which is problematic in environments with sparse reward structure—unless coupled with an explicit exploration mechanism. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
656,
|
| 110 |
+
825,
|
| 111 |
+
823
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "RL approaches that explicitly learn statistics about the environment or the reward are generally referred to as model-based—in a more narrow definition these statistics comprise environment dynamics and the reward function. In recent work, model-based techniques were successfully used to learn statistics about cumulative future reward (Veness et al., 2015) and to improve exploration by favoring actions that are likely to lead to novel states (Bellemare et al., 2016; Oh et al., 2015), resulting in substantially more data efficient learning compared to model-free approaches. When an accurate model of the true environment dynamics and the true reward function is available, modelbased approaches, such as planning via Monte-Carlo tree search (Browne et al., 2012) outperform model-free state-of-the-art approaches (Guo et al., 2014). ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
830,
|
| 121 |
+
823,
|
| 122 |
+
900
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
103,
|
| 132 |
+
823,
|
| 133 |
+
159
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "A key open question is whether effective model-based RL is possible in complex settings where the environment dynamics and the reward function are initially unknown, and the agent has to acquire such knowledge through experience. In this paper, we take a step towards addressing this question by extending recent work on video frame prediction (Oh et al., 2015), which has been demonstrated to effectively learn system dynamics, to enable joint prediction of future states and rewards using a single latent representation. We propose a network architecture and training procedure for joint state and reward prediction, and evaluate our approach in the Arcade Learning Environment (ALE, Bellemare et al. (2013)). ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
166,
|
| 143 |
+
825,
|
| 144 |
+
279
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Our empirical results on five Atari games demonstrate that our approach can successfully predict cumulative reward up to roughly 200 frames. We complement our quantitative results with a detailed error analysis by visualizing example predictions. Our results are the first to demonstrate the feasibility of using a learned dynamics and reward model for accurate planning. We see this as a significant step towards data efficient RL in high-dimensional environments without prior knowledge. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
285,
|
| 154 |
+
825,
|
| 155 |
+
354
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "2 RELATED WORK AND MOTIVATION ",
|
| 162 |
+
"text_level": 1,
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
393,
|
| 166 |
+
500,
|
| 167 |
+
410
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Two lines of research are related to the work presented in this paper: model-based RL and optimal control theory. Model-based RL utilizes a given or learned model of some aspect of a task to, e.g., reduce data or exploration requirements (Bellemare et al., 2016; Oh et al., 2015; Veness et al., 2015). Optimal control theory describes mathematical principles for deriving control policies in continuous action spaces that maximize cumulative future reward in scenarios with known system dynamics and known reward structure (Bertsekas, 2007; 2005). ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
438,
|
| 177 |
+
825,
|
| 178 |
+
521
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "There has been recent interest in combining principles from optimal control theory and model-based learning in settings where no information on system dynamics is available a priori and instead has to be acquired from visual data (Finn et al., 2016; Wahlstrom et al., 2015; Watter et al., 2015). The ¨ general idea behind these approaches is to learn a compressed latent representation of the visual state space from raw images through autoencoder networks (Bengio, 2009) and to utilize the acquired latent representation to infer system dynamics. System dynamics are then used to specify a planning problem which can be solved by optimization techniques to derive optimal policies. Watter et al. (2015) introduce an approach for learning system dynamics from raw visual data by jointly training a variational autoencoder (Kingma & Welling, 2014; Rezende et al., 2014) and a state prediction model that operates in the autoencoder’s compressed latent state representation. A similar approach for jointly learning a compressed state representation and a predictive model is pursued by Wahlstrom et al. (2015).Finn et al. (2016) devise a sequential approach that first learns a latent state ¨ representation from visual data and that subsequently exploits this latent representation to augment a robot’s initial state space describing joint angles and end-effector positions. The augmented state space is then used to improve estimates of local system dynamics for planning. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
529,
|
| 188 |
+
825,
|
| 189 |
+
736
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "The approaches presented above assume knowledge of the functional form of the true reward signal and are hence not directly applicable in settings like ALE (and many real-world settings) where the reward function is initially unknown. Planning in such settings therefore necessitates learning both system dynamics and reward function in order to infer optimal behavioral policies. Recent work by Oh et al. (2015) introduced an approach for learning environment dynamics from pixel images and demonstrated that this enabled successful video frame prediction over up to 400 frames. In our current paper, we extend this recent work to enable reward prediction as well by modifying the network’s architecture and training objective accordingly. The modification of the training objective bears a positive side effect: since our network must optimize a compound loss consisting of the video frame reconstruction loss and the reward loss, reward-relevant aspects in the video frames to which the reconstruction loss alone might be insensitive are explicitly captured by the optimization objective. In the subsequent section, we elucidate the approach from Oh et al. (2015) as well as our extensions for reward prediction in more detail. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
743,
|
| 199 |
+
825,
|
| 200 |
+
922
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "image",
|
| 206 |
+
"img_path": "images/debc0e4e13acb719598c45070f146487cd9562cd8f9454fa101138d9cea47c15.jpg",
|
| 207 |
+
"image_caption": [
|
| 208 |
+
"Figure 1: Network architecture for joint video frame and reward prediction. The architecture comprises three stages: an encoding stage mapping current input frames to some compressed latent representation, a transformation stage integrating the current action into the latent representation through element-wise vector multiplication denoted by $\" \\times \"$ , and a final predictive stage for reconstructing the frame of the next time step and the current reward. The network uses three different types of neuron layers (’Conv’ for convolutional, ’Deconv’ for deconvolutional and ’Fc’ for forward connection) in combination with three different types of activation functions (’ReLU’, ’Softmax’ and ’Lin’ for linear activations). The dimensional extend of individual layers is either depicted beneath or within layers. The network part coloured in red highlights the extension for reward prediction. "
|
| 209 |
+
],
|
| 210 |
+
"image_footnote": [],
|
| 211 |
+
"bbox": [
|
| 212 |
+
184,
|
| 213 |
+
106,
|
| 214 |
+
816,
|
| 215 |
+
268
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "3 NETWORK ARCHITECTURE AND TRAINING ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
452,
|
| 226 |
+
563,
|
| 227 |
+
468
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "The deep network proposed by Oh et al. (2015) for video frame prediction in Atari games aims at learning a function that predicts the video frame $\\mathbf { s } _ { t + 1 }$ at the next time step $t + 1$ , given the current history of frames $\\mathbf { S } _ { t - h + 1 : t }$ with time horizon $h$ and the current action $\\mathbf { a } _ { t }$ taken by the agent—see Section 3.1. Here, we extend this work to enable joint video frame and reward prediction such that the network anticipates the current reward $\\mathbf { r } _ { t }$ as well—see Sections 3.2 and 3.3. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
489,
|
| 237 |
+
825,
|
| 238 |
+
560
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "3.1 VIDEO FRAME PREDICTION ",
|
| 245 |
+
"text_level": 1,
|
| 246 |
+
"bbox": [
|
| 247 |
+
176,
|
| 248 |
+
588,
|
| 249 |
+
406,
|
| 250 |
+
602
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "The video-frame-predictive architecture from Oh et al. (2015) comprises three informationprocessing stages: an encoding stage that maps input frames to some compressed latent representation, a transformation stage that integrates the current action into the compressed latent representation, and a decoding stage that maps the compressed latent representation to the predicted next frame—see Figure 1. The initial encoding stage is a sequence of convolutional and forward operations that map the current frame history $\\mathbf { S } _ { t - h + 1 : t }$ —a three-dimensional tensor—to a compressed feature vector $\\mathbf { h } _ { t } ^ { \\mathrm { e n c } }$ . The transformation stage converts this compressed feature vector $\\mathbf { h } _ { t } ^ { \\mathrm { e n c } }$ into an action-conditional representation $\\mathbf { h } _ { t } ^ { \\mathrm { d e c } }$ in vectorized form by integrating the current action $\\mathbf { a } _ { t }$ . The current action $\\mathbf { a } _ { t }$ is represented as a one-hot vector with length varying from game to game since there are at least 3 and at most 18 actions in ALE. The integration of the current action into the compressed feature vector includes an element-wise vector multiplication—depicted as $\\because \\mathbf { \\nabla } _ { \\times } ,$ in Figure 1—with the particularity that the two neuron layers involved in this element-wise multiplication are the only layers in the entire network without bias parameters, see Section 3.2 in Oh et al. (2015). Finally, the decoding stage performs a series of forward and deconvolutional operations (Dosovitskiy et al., 2015; Zeiler et al., 2010) by mapping the action-conditional representation $\\mathbf { h } _ { t } ^ { \\mathrm { d e c } }$ of the current frame history $\\mathbf { S } _ { t - h + 1 : t }$ and the current action $\\mathbf { a } _ { t }$ to the predicted video frame $\\mathbf { s } _ { t + 1 }$ of the next time step $t + 1$ . Note that this necessitates a reshape operation at the beginning of the decoding cascade in order to transform the vectorized hidden representation into a three-dimensional tensor. The whole network uses linear and rectified linear units (Glorot et al., 2011) only. In all our experiments, following DQN (Mnih et al., 2015), the video frames processed by the network are $8 4 \\times 8 4$ grey-scale images down-sampled from the full-resolution $2 1 0 \\times 1 6 0$ Atari RGB images from ALE. Following Mnih et al. (2015) and Oh et al. (2015), the history frame time horizon $h$ is set to 4. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
618,
|
| 260 |
+
825,
|
| 261 |
+
924
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "3.2 REWARD PREDICTION ",
|
| 268 |
+
"text_level": 1,
|
| 269 |
+
"bbox": [
|
| 270 |
+
176,
|
| 271 |
+
103,
|
| 272 |
+
367,
|
| 273 |
+
117
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 3
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "In this section we detail our proposed network architecture for joint state and reward prediction. Our model assumes ternary rewards which result from reward clipping in line with Mnih et al. (2015). Original game scores in ALE are integers that can vary significantly between different Atari games and the corresponding original rewards are clipped to assume one of three values: $- 1$ for negative rewards, 0 for no reward and 1 for positive rewards. Because of reward clipping, rewards can be represented as vectors $\\mathbf { r } _ { t }$ in one-hot encoding of size 3. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
128,
|
| 283 |
+
825,
|
| 284 |
+
213
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 3
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "In Figure 1, our extension of the video-frame-predictive architecture from Oh et al. (2015) to enable reward prediction is highlighted in red. We add an additional softmax layer to predict the current reward $\\mathbf { r } _ { t }$ with information contained in the action-conditional encoding $\\dot { \\mathbf { h } } _ { t } ^ { \\mathrm { d e c } }$ . The motivation behind this extension is twofold. First, our extension makes it possible to jointly train the network with a compound objective that emphasizes both video frame reconstruction and reward prediction, and thus encourages the network to not abstract away reward-relevant features to which the reconstruction loss alone might be insensitive. Second, this formulation facilitates the future use of the model for reward prediction through virtual roll-outs in the compressed latent space, without the computational expensive necessity of reconstructing video frames explicitly—note that this requires another ”shortcut” predictive model to map from $\\mathbf { h } _ { t } ^ { \\mathrm { d e c } }$ to $\\mathbf { h } _ { t + 1 } ^ { \\mathrm { e n c } }$ . ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
219,
|
| 294 |
+
825,
|
| 295 |
+
359
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "Following previous work (Oh et al., 2015; Mnih et al., 2015), actions are chosen by the agent on every fourth frame and are repeated on frames that were skipped. Skipped frames and repeated actions are hence not part of the data sets used to train and test the predictive network on, and original reward values are accumulated over four frames before clipping. ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
174,
|
| 304 |
+
366,
|
| 305 |
+
825,
|
| 306 |
+
422
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "3.3 TRAINING ",
|
| 313 |
+
"text_level": 1,
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
438,
|
| 317 |
+
287,
|
| 318 |
+
453
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 3
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "Training the model for joint video frame and reward prediction requires trajectory samples $\\left\\{ \\left( \\mathbf { s } _ { n } ^ { ( i ) } , \\mathbf { a } _ { n } ^ { ( i ) } , \\mathbf { r } _ { n } ^ { ( i ) } \\right) _ { n = 1 } ^ { N } \\right\\} _ { i = 1 } ^ { I }$ collected by some agent playing the Atari game, where $i$ is an index over trajectories and $n$ is a time index over samples within one trajectory $i$ . The parameter $I$ denotes the number of trajectories in the training set or the minibatch respectively and the parameter $N$ denotes the length of an individual trajectory. In our case, we use agents trained according to Mnih et al. (2015) in order to collect trajectory samples. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
173,
|
| 327 |
+
463,
|
| 328 |
+
825,
|
| 329 |
+
569
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "The original training objective in Oh et al. (2015) consists of a video frame reconstruction loss in terms of a squared loss function aimed at minimizing the quadratic $l ^ { 2 }$ -norm of the difference vector between the ground truth image and its action-conditional reconstruction. We extend this training objective to enable joint reward prediction. This results in a compound training loss consisting of the original video frame reconstruction loss and a reward prediction loss given by the cross entropy (Simard et al., 2003) between the ground truth reward and the corresponding prediction: ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
173,
|
| 338 |
+
574,
|
| 339 |
+
825,
|
| 340 |
+
660
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "equation",
|
| 346 |
+
"img_path": "images/df4d7927af964fb2f09632a0ba487752aa23c82611929006ae599961eac5a2ef.jpg",
|
| 347 |
+
"text": "$$\nL _ { K } ( \\boldsymbol \\theta ) = \\frac { 1 } { 2 \\cdot I \\cdot T \\cdot K } \\sum _ { i = 1 } ^ { I } \\sum _ { t = 0 } ^ { T - 1 } \\sum _ { k = 1 } ^ { K } ( \\underbrace { | \\mathbf { s } _ { t + k } ^ { ( i ) } - \\hat { \\mathbf { s } } _ { t + k } ^ { ( i ) } | | _ { 2 } ^ { 2 } } _ { \\mathrm { v i d e o f r a m e r e c o n s t u c t i o n 1 0 s s } } + \\underbrace { \\lambda \\cdot ( - 1 ) \\sum _ { l = 1 } ^ { 3 } \\mathbf { r } _ { t + k } ^ { ( i ) } [ l ] \\cdot \\ln \\mathbf { p } _ { t + k } ^ { ( i ) } [ l ] } _ { \\mathrm { r e w a r d p r e d i c i t i o n 1 l o s s } } ) ,\n$$",
|
| 348 |
+
"text_format": "latex",
|
| 349 |
+
"bbox": [
|
| 350 |
+
181,
|
| 351 |
+
662,
|
| 352 |
+
816,
|
| 353 |
+
744
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "where $\\hat { \\mathbf { s } } _ { t + k } ^ { ( i ) }$ denotes the $k$ -step look ahead frame prediction with target video frame $\\mathbf { s } _ { t + k } ^ { ( i ) }$ and p(i)t+k denotes the in red in Fi -step look ahead probability vare1—with target reward vector $\\mathbf { r } _ { t + k } ^ { ( i ) }$ f the reward-p. The paramete $\\lambda > 0$ softmax layer—depicted controls the trade-off between video frame reconstruction and reward loss. The parameter $T$ determines how often a single trajectory sample $i$ is unrolled into the future, and $K$ determines the look ahead prediction horizon dictating how far the network predicts into the future by using its own video frame predicted output as input for the next time step. Following Oh et al. (2015) and Michalski et al. (2014), we apply a curriculum learning (Bengio et al., 2009) scheme by successively increasing $K$ in the course of training such that the network initially learns to predict over a short time horizon and becomes fine-tuned on longer-term predictions as training advances (see Section A.1 for details). The network parameters $\\theta$ are updated by stochastic gradient descent, derivatives of the training objective w.r.t. $\\theta$ are computed with backpropagation through time (Werbos, 1988). ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
173,
|
| 362 |
+
750,
|
| 363 |
+
825,
|
| 364 |
+
924
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "4 RESULTS ",
|
| 371 |
+
"text_level": 1,
|
| 372 |
+
"bbox": [
|
| 373 |
+
174,
|
| 374 |
+
102,
|
| 375 |
+
281,
|
| 376 |
+
117
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 4
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "In our evaluations, we investigate cumulative reward predictions quantitatively and qualitatively on five different Atari games (Q\\*bert, Seaquest, Freeway, Ms Pacman and Space Invaders). The quantitative analysis comprises evaluating the cumulative reward prediction error—see Section 4.1. The qualitative analysis comprises visualizations of example predictions in Seaquest—see Section 4.2. ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
174,
|
| 385 |
+
143,
|
| 386 |
+
825,
|
| 387 |
+
199
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 4
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "4.1 QUANTITATIVE REWARD PREDICTION ANALYSIS: CUMULATIVE REWARD ERROR ",
|
| 394 |
+
"bbox": [
|
| 395 |
+
173,
|
| 396 |
+
231,
|
| 397 |
+
776,
|
| 398 |
+
246
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 4
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "Our quantitative evaluation examines whether our joint model of system dynamics and reward function results in a shared latent representation that enables accurate cumulative reward prediction. We assess cumulative reward prediction on test sets consisting of approximately 50,000 video frames per game, including actions and rewards. Each network is evaluated on 1,000 trajectories—suitable to analyze up to 100-step ahead prediction—drawn randomly from the test set. Look ahead prediction is measured in terms of the cumulative reward error which is the difference between ground truth cumulative reward and predicted cumulative reward. For each game, this results in 100 empirical distributions over the cumulative reward error—one distribution for each look ahead step—consisting of 1,000 samples each (one for each trajectory). We compare our model predictions to a baseline model that samples rewards from the marginal reward distribution observed on the test set for each game. Note that negative reward values are absent in the games investigated for this study. ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
174,
|
| 407 |
+
263,
|
| 408 |
+
825,
|
| 409 |
+
416
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 4
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "Figure 2 illustrates 20 of the 100 empirical cumulative reward error distributions in all games for our network model in blue and for the baseline model in red (histograms, bottom), together with the median and the 5 to 95 percentiles of the cumulative reward error over look ahead steps (top). Across all games, we observe that our joint state and reward prediction model accurately predicts future cumulative rewards at least 20 look ahead steps, and that it predicts future rewards substantially more accurately than the baseline model. This is evidenced by cumulative reward error distributions that maintain a unimodal form with mode zero and do not flatten out as quickly as the distributions for the random-prediction baseline model. Best results are achieved in Freeway and $\\boldsymbol { \\mathrm { Q } } ^ { * } \\boldsymbol { \\mathrm { b e r t } }$ where the probability of zero cumulative reward error at 51 look ahead steps is still around $8 0 \\%$ and $6 0 \\%$ respectively—see Figure 2. Note that 51 look ahead steps correspond to 204 frames because the underlying DQN agent, collecting trajectory samples for training and testing our model, skipped every fourth frame when choosing an action—see Section 3.2. Lowest performance is obtained in Seaquest where the probability of zero cumulative reward error at 26 steps (104 frames) is around $4 0 \\%$ and begins to flatten out soon thereafter—see Figure 2. Running the ALE emulator at a frequency of 60fps, 26 steps correspond to more than 1 second real-time game play because of frame skipping. Since our model is capable of predicting 26 steps ahead in less than 1 second, our model enables real-time planning and could be therefore utilized in an online fashion. ",
|
| 416 |
+
"bbox": [
|
| 417 |
+
174,
|
| 418 |
+
424,
|
| 419 |
+
825,
|
| 420 |
+
659
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 4
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "We now turn our attention to error analysis. While the look ahead step at which errors become prominent differs substantially from game to game, we find that overall our model underestimates cumulative reward. This can be seen in the asymmetry towards positive cumulative reward error values when inspecting the 5 to 95 percentile intervals in the first plot per each game in Figure 2. We identify a likely cause in (pseudo-)stochastic transitions inherent in these games. Considering Seaquest as our running example, objects such as divers and submarines can enter the scene randomly from the right and from the left and at the same time have an essential impact on which rewards the agent can potentially collect. In the ground truth trajectories, the agent’s actions are reactions to these objects. If the predicted future trajectory deviates from the ground truth, targeted actions such as shooting will miss their target, leading to underestimating true reward. We analyze this effect in more detail in Section 4.2. ",
|
| 427 |
+
"bbox": [
|
| 428 |
+
174,
|
| 429 |
+
666,
|
| 430 |
+
825,
|
| 431 |
+
819
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 4
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "All our experiments were conducted in triplicate with different initial random seeds. Different initial random seeds did not have a significant impact on cumulative reward prediction in all games except Freeway—see Section A.5 for a detailed analysis. So far, we discussed results concerning reward prediction only. In the appendix, we also evaluate the joint performance of reward and video frame prediction on the test set in terms of the optimization objective as in Oh et al. (2015), where the authors report successful video frame reconstruction up to approximately 100 steps (400 frames), and observe similar results—see Section A.6. ",
|
| 438 |
+
"bbox": [
|
| 439 |
+
174,
|
| 440 |
+
825,
|
| 441 |
+
825,
|
| 442 |
+
922
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 4
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "In the previous section, we identified stochasticity in state transitions as a likely cause for relatively low performance in long-term cumulative reward prediction in games such as Seaquest. In Seaquest objects may randomly enter a scene in a non-deterministic fashion. Errors in predicting these events result in predicted possible futures that do not match actually observed future states, resulting in inaccurate reward predictions. Here, we support this hypothesis by visualizations in Seaquest illustrating joint video frame and reward prediction for a single network over 20 steps (80 frames)—see Figure 3 where ground truth video frames are compared to predicted video frames in terms of error maps. Error maps emphasize the difference between ground truth and predicted frames through squared error values between pixels in black or white depending on whether objects are absent or present by mistake in the network’s prediction. Actions, ground truth rewards and model-predicted rewards are shown between state transitions. Peculiarities in the prediction process are shown in red. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
174,
|
| 451 |
+
130,
|
| 452 |
+
825,
|
| 453 |
+
282
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 5
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "In step 2, the model predicts reward by mistake because the agent barely misses its target. Steps 4 to 6 report how the model predicts reward correctly but is off by one time step. Steps 7 to 14 depict problems caused by objects randomly entering the scene from the right which the model cannot predict. Steps 26 to 30 show how the model has problems to predict rewards at steps 26 and 28 as these rewards are attached to objects the model failed to notice entering the scene earlier. ",
|
| 460 |
+
"bbox": [
|
| 461 |
+
174,
|
| 462 |
+
290,
|
| 463 |
+
825,
|
| 464 |
+
358
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 5
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "5 CONCLUSION AND FUTURE WORK ",
|
| 471 |
+
"text_level": 1,
|
| 472 |
+
"bbox": [
|
| 473 |
+
176,
|
| 474 |
+
380,
|
| 475 |
+
493,
|
| 476 |
+
395
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 5
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "In this paper, we extended recent work on video frame prediction (Oh et al., 2015) in Atari games to enable reward prediction. Our approach can be used to jointly predict video frames and cumulative rewards up to a horizon of approximately 200 frames in five different games ( $\\mathbf { Q } ^ { * }$ bert, Seaquest, Freeway, Ms Pacman and Space Invaders). We achieved best results in Freeway and $\\mathbf { Q } ^ { * }$ bert where the probability of zero cumulative reward error after 200 frames is still around $8 0 \\%$ and $6 0 \\%$ respectively, and worst results in Seaquest where the probability of zero cumulative reward error after 100 frames is around $4 0 \\%$ . Our study fits into the general line of research using autoencoder networks to learn a latent representation from visual data (Finn et al., 2016; Goroshin et al., 2015; Gregor et al., 2015; Kulkarni et al., 2015; Srivastava et al., 2015; Wahlstrom et al., 2015; Watter et al., 2015; ¨ Kingma & Welling, 2014; Rezende et al., 2014; Lange et al., 2012; Hinton et al., 2011; Ranzato et al., 2007), and extends this line of research by showing that autoencoder networks are capable of learning a combined representation for system dynamics and the reward function in reinforcement learning settings with high-dimensional visual state spaces—a first step towards applying modelbased techniques for planning in environments where the reward function is not initially known. ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
411,
|
| 486 |
+
825,
|
| 487 |
+
604
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 5
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "Our positive results open up intriguing directions for future work. Our long-term goal is the integration of model-based and model-free approaches for effective interactive learning and planning in complex environments. Directions for achieving this long-standing challenge include the Dyna method (Sutton, 1990), which uses a predictive model to artificially augment expensive training data, and has been shown to lead to substantial reductions in data requirements in tabular RL approaches. Alternatively, the model could be could be utilized for planning via Monte-Carlo tree search (Guo et al., 2014; Browne et al., 2012). We hypothesize that such an approach would be particularly beneficial in multi-task or life-long learning scenarios where the reward function changes but the environment dynamics are stationary. Testing this hypothesis requires a flexible learning framework where the reward function and the artificial environment can be changed by the experimenter in an arbitrary fashion, which is not possible in ALE where the environment and the reward function are fixed per game. A learning environment providing such a flexibility is the recently released Malmo platform for Minecraft (Johnson et al., 2016) where researchers can create user-defined en-¨ vironments and tasks in order to evaluate the performance of artificial agents. In the shorter-term, we envision improving the prediction performance of our network by regularization methods such as dropout and max norm regularization (Srivastava et al., 2014)—a state-of-the-art regularizer in supervised learning—and by modifying the optimization objective to enforce similarity between hidden encodings in multi-step ahead prediction and one-step ahead prediction—see Watter et al. (2015). Finally, extensions of our model to non-deterministic state transitions through dropout and variational autoencoder schemes (Kingma & Welling, 2014; Rezende et al., 2014) is a promising direction to alleviate the limitations highlighted in Section 4.2—paving the way for models that adequately predict and reason over alternative possible future trajectories. ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
612,
|
| 497 |
+
825,
|
| 498 |
+
917
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 5
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "image",
|
| 504 |
+
"img_path": "images/02740b7abbfcbfdaf1dce245f49cc57b86ddcfd6ce7d81361d8571db31ad4b30.jpg",
|
| 505 |
+
"image_caption": [
|
| 506 |
+
"two plots for each game. The top plot per game shows how the median and the 5 to 95 percentiles of the cumulative reward error evolve over look ahead steps for both our model (in blue) and a baseline model that samples rewards from the marginal reward distribution of the test set (in red). Each vertical slice of this concise representation corresponds to a single empirical distribution over the cumulative reward error. We depict these for every fifth look ahead step in the compound plots below for both models. These empirical error distributions demonstrate successful cumulative reward prediction over at least 20 steps (80 frames) in all five games as evidenced by their zero-centered and unimodal shape in the first column of each compound plot per game. "
|
| 507 |
+
],
|
| 508 |
+
"image_footnote": [],
|
| 509 |
+
"bbox": [
|
| 510 |
+
171,
|
| 511 |
+
75,
|
| 512 |
+
805,
|
| 513 |
+
809
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 6
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "image",
|
| 519 |
+
"img_path": "images/5ca73ff0f11ebf0f135df66feefe058cd29d3977e94fcfe61f6728d039d6d497.jpg",
|
| 520 |
+
"image_caption": [
|
| 521 |
+
"Figure 3: Example predictions in Seaquest. Ground truth video frames, model predictions and error maps emphasizing differences between ground truth and predicted frames—in form of the squared error between pixel values—are compared column-wise. Error maps highlight objects in black or white respectively depending on whether these objects are absent by mistake or present by mistake in the model’s prediction. Actions taken by the agent as well as ground truth rewards (’rew’) and reward predictions (’pred’) are shown below video and error frames. Peculiarities in the prediction process are marked in red. The figure demonstrates how our predictive model fails to anticipate objects that randomly enter the scene from the right and rewards associated to these objects. "
|
| 522 |
+
],
|
| 523 |
+
"image_footnote": [],
|
| 524 |
+
"bbox": [
|
| 525 |
+
181,
|
| 526 |
+
92,
|
| 527 |
+
815,
|
| 528 |
+
809
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 7
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "REFERENCES ",
|
| 535 |
+
"text_level": 1,
|
| 536 |
+
"bbox": [
|
| 537 |
+
174,
|
| 538 |
+
102,
|
| 539 |
+
287,
|
| 540 |
+
117
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 8
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "M G Bellemare, Y Naddaf, J Veness, and M Bowling. The Arcade Learning Environment: an evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013. ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
126,
|
| 550 |
+
823,
|
| 551 |
+
167
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 8
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "M G Bellemare, S Srinivasan, G Ostrovski, T Schaul, D Saxton, and R Munos. Unifying count-based exploration and intrinsic motivation. arXiv preprint arXiv:1606.01868, 2016. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
171,
|
| 560 |
+
178,
|
| 561 |
+
823,
|
| 562 |
+
208
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 8
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "Y Bengio. Learning deep architectures for AI. Foundations and Trends in Machine Learning, 2(1): 1–127, 2009. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
174,
|
| 571 |
+
217,
|
| 572 |
+
823,
|
| 573 |
+
246
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 8
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "Y Bengio, J Louradour, R Collobert, and J Weston. Curriculum learning. In Proceedings of the International Conference on Machine Learning, 2009. ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
176,
|
| 582 |
+
256,
|
| 583 |
+
825,
|
| 584 |
+
286
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 8
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "D P Bertsekas. Dynamic programming & optimal control, volume 1. Athena Scientific, 2005. ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
178,
|
| 593 |
+
295,
|
| 594 |
+
787,
|
| 595 |
+
311
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 8
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "D P Bertsekas. Dynamic programming & optimal control, volume 2. Athena Scientific, 2007. ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
178,
|
| 604 |
+
320,
|
| 605 |
+
787,
|
| 606 |
+
337
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 8
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "C Browne, E Powley, D Whitehouse, S Lucas, P I Cowling, P Rohlfshagen, S Tavener, D Perez, S Samothrakis, and S Colton. A survey of monte carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in Games, 4(1):1–49, 2012. ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
174,
|
| 615 |
+
344,
|
| 616 |
+
825,
|
| 617 |
+
388
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 8
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "A Dosovitskiy, J T Springenberg, and T Brox. Learning to generate chairs with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
173,
|
| 626 |
+
397,
|
| 627 |
+
825,
|
| 628 |
+
440
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 8
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "C Finn, X Y Tan, Y Duan, T Darrell, S Levine, and P Abbeel. Deep spatial autoencoders for visuomotor learning. In Proceedings of the IEEE International Conference on Robotics and Automation, 2016. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
176,
|
| 637 |
+
450,
|
| 638 |
+
823,
|
| 639 |
+
493
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 8
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "X Glorot and Y Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the International Conference on Artificial Intelligence and Statistics, 2010. ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
173,
|
| 648 |
+
503,
|
| 649 |
+
823,
|
| 650 |
+
534
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 8
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "X Glorot, A Bordes, and Y Bengio. Deep sparse rectifier neural networks. In Proceedings of the International Conference on Artificial Intelligence and Statistics, 2011. ",
|
| 657 |
+
"bbox": [
|
| 658 |
+
173,
|
| 659 |
+
541,
|
| 660 |
+
823,
|
| 661 |
+
571
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 8
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "R Goroshin, M Mathieu, and Y LeCun. Learning to linearize under uncertainty. Advances in Neural Information Processing Systems, 2015. ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
176,
|
| 670 |
+
580,
|
| 671 |
+
825,
|
| 672 |
+
611
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 8
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "K Gregor, I Danihelka, A Graves, D J Rezende, and D Wierstra. DRAW: a recurrent neural network for image generation. In Proceedings of the International Conference on Machine Learning, 2015. ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
619,
|
| 682 |
+
825,
|
| 683 |
+
662
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 8
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "X Guo, S Singh, H Lee, R Lewis, and X Wang. Deep learning for real-time Atari game play using offline Monte-Carlo tree search planning. In Advances in Neural Information Processing Systems, 2014. ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
173,
|
| 692 |
+
672,
|
| 693 |
+
826,
|
| 694 |
+
715
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 8
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "G E Hinton, A Krizhevsky, and S D Wang. Transforming auto-encoders. In Proceedings of the International Conference on Artificial Neural Networks, 2011. ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
174,
|
| 703 |
+
724,
|
| 704 |
+
825,
|
| 705 |
+
755
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 8
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "M Johnson, K Hofmann, T Hutton, and D Bignell. The Malmo platform for artificial intelligence experimentation. In Proceedings of the International Joint Conference on Artificial Intelligence, 2016. ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
176,
|
| 714 |
+
763,
|
| 715 |
+
823,
|
| 716 |
+
808
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 8
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "D P Kingma and J Ba. Adam: a method for stochastic optimization. In Proceedings of the International Conference on Learning Representations, 2015. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
171,
|
| 725 |
+
818,
|
| 726 |
+
823,
|
| 727 |
+
847
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 8
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "D P Kingma and M Welling. Auto-encoding variational Bayes. In Proceedings of the International Conference on Learning Representations, 2014. ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
176,
|
| 736 |
+
856,
|
| 737 |
+
823,
|
| 738 |
+
886
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 8
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "T D Kulkarni, W F Whitney, P Kohli, and J B Tenenbaum. Deep convolutional inverse graphics network. In Advances in Neural Information Processing Systems, 2015. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
176,
|
| 747 |
+
895,
|
| 748 |
+
823,
|
| 749 |
+
924
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 8
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "S Lange, M Riedmiller, and A Voigtlander. Autonomous reinforcement learning on raw visual input ¨ data in a real world application. In Proceedings of the International Joint Conference on Neural Networks, 2012. ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
174,
|
| 758 |
+
103,
|
| 759 |
+
821,
|
| 760 |
+
146
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 9
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "V Michalski, R Memisevic, and K Konda. Modeling deep temporal dependencies with recurrent grammar cells. In Advances in Neural Information Processing Systems, 2014. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
171,
|
| 769 |
+
154,
|
| 770 |
+
823,
|
| 771 |
+
184
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 9
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "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. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
179,
|
| 780 |
+
190,
|
| 781 |
+
821,
|
| 782 |
+
247
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 9
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "J Oh, X Guo, H Lee, R Lewis, and S Singh. Action-conditional video prediction using deep networks in Atari games. In Advances in Neural Information Processing Systems, 2015. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
171,
|
| 791 |
+
256,
|
| 792 |
+
820,
|
| 793 |
+
286
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 9
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "R Pascanu, T Mikolov, and Y Bengio. On the difficulty of training recurrent neural networks. In Proceedings of the International Conference on Machine Learning, 2013. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
173,
|
| 802 |
+
292,
|
| 803 |
+
825,
|
| 804 |
+
323
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 9
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "M Ranzato, F J Huang, Y-L Boureau, and Y LeCun. Unsupervised learning of invariant feature hierarchies with applications to object recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2007. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
176,
|
| 813 |
+
330,
|
| 814 |
+
821,
|
| 815 |
+
373
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 9
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "D J Rezende, S Mohamed, and D Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the International Conference on Machine Learning, 2014. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
176,
|
| 824 |
+
381,
|
| 825 |
+
825,
|
| 826 |
+
424
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 9
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "P Y Simard, D Steinkraus, and J C Platt. Best practices for convolutional neural networks applied to visual document analysis. In Proceedings of the International Conference on Document Analysis and Recognition, 2003. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
174,
|
| 835 |
+
433,
|
| 836 |
+
825,
|
| 837 |
+
476
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 9
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "B F Skinner. The behavior of organisms: an experimental analysis. Appleton-Century-Crofts, 1938. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
171,
|
| 846 |
+
483,
|
| 847 |
+
823,
|
| 848 |
+
500
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 9
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "N Srivastava, G E Hinton, A Krizhevsky, I Sutskever, and R Salakhutdinov. Dropout : a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15: 1929–1958, 2014. ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
174,
|
| 857 |
+
506,
|
| 858 |
+
825,
|
| 859 |
+
550
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 9
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "N Srivastava, E Mansimov, and R Salakhutdinov. Unsupervised learning of video representations using LSTMs. In Proceedings of the International Conference on Machine Learning, 2015. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
558,
|
| 869 |
+
823,
|
| 870 |
+
588
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 9
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "R S Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In Proceedings of the International Conference on Machine Learning, 1990. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
176,
|
| 879 |
+
594,
|
| 880 |
+
823,
|
| 881 |
+
638
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 9
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "R S Sutton and A G Barto. Reinforcement learning: an introduction. MIT Press, 1998. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
173,
|
| 890 |
+
646,
|
| 891 |
+
745,
|
| 892 |
+
661
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 9
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "E L Thorndike. Animal intelligence: an experimental study of the associative processes in animals. The Psychological Review: Monograph Supplements, 2(4):1–107, 1898. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
176,
|
| 901 |
+
669,
|
| 902 |
+
823,
|
| 903 |
+
699
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 9
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "W H Thorpe. The origins and rise of ethology. Heinemann Educational Books, 1979. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
176,
|
| 912 |
+
705,
|
| 913 |
+
736,
|
| 914 |
+
722
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 9
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "J Veness, M G Bellemare, M Hutter, A Chua, and G Desjardins. Compress and control. In Proceedings of the AAAI Conference on Artificial Intelligence, 2015. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
173,
|
| 923 |
+
729,
|
| 924 |
+
821,
|
| 925 |
+
758
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 9
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "N Wahlstrom, T B Sch ¨ on, and M P Deisenroth. From pixels to torques: policy learning with deep ¨ dynamical models. arXiv preprint arXiv:1502.02251, 2015. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
171,
|
| 934 |
+
767,
|
| 935 |
+
823,
|
| 936 |
+
796
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 9
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "M Watter, J T Springenberg, J Boedecker, and M Riedmiller. Embed to control: a locally linear latent dynamics model for control from raw images. In Advances in Neural Information Processing Systems, 2015. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
173,
|
| 945 |
+
804,
|
| 946 |
+
823,
|
| 947 |
+
847
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 9
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "P J Werbos. Generalization of backpropagation with application to a recurrent gas market model. Neural Networks, 1(4):339–356, 1988. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
171,
|
| 956 |
+
854,
|
| 957 |
+
821,
|
| 958 |
+
885
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 9
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "M D Zeiler, D Krishnan, G W Taylor, and R Fergus. Deconvolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2010. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
169,
|
| 967 |
+
892,
|
| 968 |
+
825,
|
| 969 |
+
921
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 9
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "A APPENDIX ",
|
| 976 |
+
"text_level": 1,
|
| 977 |
+
"bbox": [
|
| 978 |
+
176,
|
| 979 |
+
102,
|
| 980 |
+
297,
|
| 981 |
+
117
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 10
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "A.1 TRAINING DETAILS ",
|
| 988 |
+
"text_level": 1,
|
| 989 |
+
"bbox": [
|
| 990 |
+
176,
|
| 991 |
+
133,
|
| 992 |
+
354,
|
| 993 |
+
148
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 10
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "We performed all our experiments in Python with Chainer and adhered to the instructions in Oh et al. (2015) as close as possible. Trajectory samples for learning the network parameters were obtained from a previously trained DQN agent according to Mnih et al. (2015). The dataset for training comprised around 500, 000 video frames per game in addition to actions chosen by the DQN agent and rewards collected during game play. Video frames used as network input were $8 4 \\times 8 4$ grey-scale images with pixel values between 0 and 255 down-sampled from the full-resolution $2 1 0 \\times 1 6 0$ ALE RGB images. We applied a further preprocessing step by dividing each pixel by 255 and subtracting mean pixel values from each image leading to final pixel values $\\in \\ [ - 1 ; 1 ]$ . A detailed network architecture is shown in Figure 1 in the main paper. All weights in the network were initialized according to Glorot & Bengio (2010) except for those two layers that participate in the element-wise multiplication in Figure 1: the weights of the action-processing layer were initialized uniformly in the range $[ - 0 . 1 ; 0 . { \\bar { 1 } } ]$ and the weights of the layer receiving the latent encoding of the input video frames were initialized uniformly in the range $[ - 1 ; 1 ]$ . Training was performed for $1 , 5 0 0 , 0 0 0$ minibatch iterations with a curriculum learning scheme increasing the look ahead parameter $K$ every 500, 000 iterations from 1 to 3 to 5. When increasing the look ahead parameter $K$ for the first time after 500, 000 iterations, the minibatch size $I$ was also altered from 32 to 8 as was the learning rate for parameter updates from $1 0 ^ { - 4 }$ to $1 0 ^ { - 5 }$ . Throughout the entire curriculum scheme, the time horizon parameter determining the number of times a single trajectory is unrolled into the future was $T = 4$ . The optimizer for updating weights was Adam (Kingma & Ba, 2015) with gradient momentum 0.9, squared gradient momentum 0.95 and epsilon parameter $1 0 ^ { - 8 }$ . In evaluation mode, network outputs were clipped to $[ - 1 ; 1 ]$ so that strong activations could not accumulate over roll-out time in the network. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
160,
|
| 1003 |
+
825,
|
| 1004 |
+
465
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 10
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "In our experiments, we modified the reward prediction loss slightly in order to prevent exploding gradient values by replacing the term $- \\ln p$ with a first-order Taylor approximation for $p$ -values smaller than $e ^ { - 1 0 } { \\mathrm { - a } } $ similar technique is used in DQN (Mnih et al., 2015) to improve the stability of the optimization algorithm. To identify optimal values for the reward weight $\\lambda$ , we performed initial experiments on Ms Pacman without applying the aforementioned curriculum learning scheme instead using a fixed look ahead parameter $K = 1$ . We evaluated the effect of different $\\lambda$ -values $\\in \\{ 0 . 1 , 1 , \\bar { 1 0 } , 1 0 0 \\}$ on the training objective and identified $\\lambda = 1$ for conducting further experiments—see Section A.2. After identifying an optimal reward weight, we conducted additional initial experiments without curriculum learning with fixed look ahead parameter $K = 1$ on all of the five different Atari games used in this paper. We observed periodic oscillations in the reward prediction loss of the training objective in Seaquest, which was fixed by adding gradient clipping (Pascanu et al., 2013) with threshold parameter 1 to our optimization procedure—experiments investigating the effect of gradient clipping in Seaquest are reported in Section A.3. The fine-tuning effect of curriculum learning on the training objective in our final experiments is shown in Section A.4 for all of the five analysed Atari games. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
174,
|
| 1013 |
+
473,
|
| 1014 |
+
825,
|
| 1015 |
+
680
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 10
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "A.2 EFFECT OF REWARD WEIGHT IN MS PACMAN",
|
| 1022 |
+
"text_level": 1,
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
176,
|
| 1025 |
+
699,
|
| 1026 |
+
534,
|
| 1027 |
+
713
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 10
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "To identify optimal values for the reward weight $\\lambda$ , we conducted initial experiments in Ms Pacman without curriculum learning and a fixed look ahead horizon $K = 1$ . We tested four different $\\lambda$ - values $\\in \\{ 0 . 1 , 1 , 1 0 , 1 0 0 \\}$ and investigated how the frame reconstruction loss and the reward loss of the training objective evolve over minibatch iterations—see Figure 4. Best results were obtained for $\\lambda = 1$ and for $\\lambda = 1 0$ , whereas values of $\\lambda = 0 . 1$ and $\\lambda = 1 0 0$ lead to significantly slower convergence and worse overall training performance respectively. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
174,
|
| 1036 |
+
726,
|
| 1037 |
+
825,
|
| 1038 |
+
809
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 10
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "A.3 EFFECT OF GRADIENT CLIPPING IN SEAQUEST ",
|
| 1045 |
+
"text_level": 1,
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
176,
|
| 1048 |
+
827,
|
| 1049 |
+
542,
|
| 1050 |
+
842
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 10
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "After identifying an optimal value for the reward weight, see Section A.2, we observed oscillations in the reward loss of the training objective in Seaquest—see first column in Figure 5—which was solved by adding gradient clipping to our optimization procedure—see second and third column in Figure 5. We tested two different values for the gradient clipping threshold (5 and 1) both of which worked, but for a value of 1 the oscillation vanished completely. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
854,
|
| 1060 |
+
823,
|
| 1061 |
+
924
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 10
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "image",
|
| 1067 |
+
"img_path": "images/720d06db36adf5fcea69e6c832cc20f28160a2bac7d37f237596cd85afe2ab0c.jpg",
|
| 1068 |
+
"image_caption": [
|
| 1069 |
+
"Figure 4: Effect of reward weight on training loss in Ms Pacman. Each of the four panels depicts one experiment with a different reward weight $\\lambda$ . Each panel shows how the training loss evolves over minibatch iterations in terms of two subplots reporting video frame reconstruction and reward loss respectively. Each experiment was conducted three times with different initial random seeds depicted in blue, green and red. Graphs were smoothed with an exponential window of size 1000. "
|
| 1070 |
+
],
|
| 1071 |
+
"image_footnote": [],
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
235,
|
| 1074 |
+
99,
|
| 1075 |
+
758,
|
| 1076 |
+
386
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 11
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "image",
|
| 1082 |
+
"img_path": "images/36937623cd79e22cff1c94043eb54f0eaf9f923351d0908c7abcabc68ad664cb.jpg",
|
| 1083 |
+
"image_caption": [
|
| 1084 |
+
"Figure 5: Effect of gradient clipping on training loss in Seaquest. The three panels compare experiments with no reward clipping to those with reward clipping using the threshold values 5 and 1 respectively. Subplots within each panel are similar to those in Figure 4 but display in the first row the evolution of the compound training loss in addition to the frame reconstruction and reward loss. "
|
| 1085 |
+
],
|
| 1086 |
+
"image_footnote": [],
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
169,
|
| 1089 |
+
501,
|
| 1090 |
+
805,
|
| 1091 |
+
657
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 11
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "A.4 EFFECT OF CURRICULUM LEARNING",
|
| 1098 |
+
"text_level": 1,
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
176,
|
| 1101 |
+
777,
|
| 1102 |
+
473,
|
| 1103 |
+
791
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 11
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "In our final experiments with curriculum learning, the networks were trained for 1, 500, 000 minibatch iterations in total but the look ahead parameter $K$ was gradually increased every 500, 000 iterations from 1 to 3 to 5. The networks were hence initially trained on one-step ahead prediction only and later on fine-tuned on further-step ahead prediction. Figure 6 shows how the training objective evolves over iterations. The characteristic ”bumps” in the training objective every 500, 000 iterations as training evolves demonstrate improvements in long-term predictions in all games except Freeway where the training objective assumed already very low values within the first 500, 000 iterations and might have been therefore insensitive to further fine-tuning by curriculum learning. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
174,
|
| 1112 |
+
811,
|
| 1113 |
+
825,
|
| 1114 |
+
924
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 11
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "image",
|
| 1120 |
+
"img_path": "images/42260c8ebdefcaf5957906d4d18479b03baf8e2d6e219b90b9840e87cb4e0056.jpg",
|
| 1121 |
+
"image_caption": [
|
| 1122 |
+
"Figure 6: Effect of curriculum learning on five different Atari games. Each panel corresponds to a different game, individual panels are structured in the same way as are those in Figure 5 "
|
| 1123 |
+
],
|
| 1124 |
+
"image_footnote": [],
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
171,
|
| 1127 |
+
98,
|
| 1128 |
+
808,
|
| 1129 |
+
419
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 12
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "A.5 EFFECT OF RANDOM SEEDS ",
|
| 1136 |
+
"text_level": 1,
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
176,
|
| 1139 |
+
492,
|
| 1140 |
+
411,
|
| 1141 |
+
506
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 12
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "We conducted three different experiments per game with different initial random seeds. The effect of different initial random seeds on the cumulative reward error is summarized in Figure 7 which reports how the median and the 5 to 95 percentiles of the cumulative reward error evolve over look ahead steps in the different experiments per game. Note that the results of the first column in Figure 7 are shown in Figure 2 from the main paper together with a more detailed analysis depicting empirical cumulative reward error distributions for some look ahead steps. The random initial seed does not seem to have a significant impact on the cumulative reward prediction except for Freeway where the network in the third experiment starts to considerably overestimate cumulative rewards at around 30 to 40 look ahead steps. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
173,
|
| 1150 |
+
517,
|
| 1151 |
+
825,
|
| 1152 |
+
642
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 12
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "In order to investigate this reward overestimation in Freeway further, we analyse visualizations of joint video frame and reward prediction for this particular seed (similar in style to Figure 3 from Section 4.2 in the main paper). The results are shown in Figure 8 where a peculiar situation occurs after 31 predicted look ahead steps. In Freeway, the agent’s job is to cross a busy road from the bottom to the top without bumping into a car in order to receive reward. If the agent bumps into a car, the agent is propelled downwards further away from the reward-yielding top. This propelled downwards movement happens even when the agent tries to move upwards. Exactly that kind of situation is depicted at the beginning of Figure 8 and occurs for this particular prediction after 31 steps. Our predictive model is however not able to correctly predict the aforementioned downwards movement caused by the agent hitting the car, which is highlighted in red throughout steps 31 to 35 documenting an increasing gap between ground truth and predicted agent position as the propelled downwards movement of the ground truth agent continues. In the course of further prediction, the network model assumes the agent to reach the reward-yielding top side of the road way too early which results in a sequence of erroneous positive reward predictions throughout steps 41 to 50, and as a side effect seemingly that the predictive model loses track of other objects in the scene. Concluding, this finding may serve as a possible explanation for cumulative reward overestimation for that particular experiment in Freeway. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
173,
|
| 1161 |
+
650,
|
| 1162 |
+
825,
|
| 1163 |
+
886
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 12
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "image",
|
| 1169 |
+
"img_path": "images/2c7c9ade8930ab6ee1fa7c50fd28ae1624b117ea38fbd937c24eace3779d16f4.jpg",
|
| 1170 |
+
"image_caption": [
|
| 1171 |
+
"Figure 7: Effect of different initial random seeds on cumulative reward error. The plots show how the cumulative reward error evolves over look ahead steps in terms of the median and the 5 to 95 percentiles for our network model (blue) as well as the baseline model (red) in each experiment. Each row refers to a different game, each column refers to a different experiment per game initialized with a different random seed. The first column of this figure is presented in Figure 2 of the main paper explaining the results in more detail by additionally illustrating empirical distributions over the cumulative reward error for some look ahead steps. "
|
| 1172 |
+
],
|
| 1173 |
+
"image_footnote": [],
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
173,
|
| 1176 |
+
102,
|
| 1177 |
+
808,
|
| 1178 |
+
789
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 13
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "image",
|
| 1184 |
+
"img_path": "images/42cc60475d758ae8825e1726997fafe061eb4ad7e22120c1289032a7d756b091.jpg",
|
| 1185 |
+
"image_caption": [
|
| 1186 |
+
"Figure 8: Example predictions in Freeway over 20 steps. The figure is similar in nature to Figure 3 from the main paper with the only difference that predictions are depicted from time step 31 onwards. "
|
| 1187 |
+
],
|
| 1188 |
+
"image_footnote": [],
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
173,
|
| 1191 |
+
141,
|
| 1192 |
+
820,
|
| 1193 |
+
835
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 14
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "A.6 LOSS ON TEST SET ",
|
| 1200 |
+
"text_level": 1,
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
176,
|
| 1203 |
+
103,
|
| 1204 |
+
351,
|
| 1205 |
+
117
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 15
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "In the main paper, our analysis focuses on evaluating how well our model serves the purpose of cumulative reward prediction. Here, we evaluate network performance in terms of both the video frame reconstruction loss as well as the reward prediction loss on the test set following the analysis conducted in Oh et al. (2015). For each game, we sample 300 minibatches of size $I = 5 0$ from the underlying test set and compute the test loss over $K = 1 0 0$ look ahead steps with the formula presented in the main paper in Section 3.3 used for learning network parameters, but without averaging over look ahead steps because we aim to illustrate the test loss as a function of look ahead steps—statistics of this analysis are plotted in Figure 9. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
173,
|
| 1214 |
+
128,
|
| 1215 |
+
825,
|
| 1216 |
+
241
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 15
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Best overall test loss is achieved in Freeway and for initial look ahead steps (up to roughly between 40 and 60 steps) in Q\\*bert, which is in accordance with results for cumulative reward prediction from the main paper. Also in line with results from the main paper is the finding that the reward loss on the test set is worse in Seaquest, Ms Pacman and Space Invaders when compared to $\\mathrm { Q ^ { * } }$ bert (up to approximately 40 steps) and Freeway. Worst video frame reconstruction loss is observed for Space Invaders in compliance with Oh et al. (2015) where the authors report that there are objects in the scene moving at a period of 9 time steps which is hard to predict by a network only taking the last 4 frames from the last 4 steps as input for future predictions. At first sight, it might seem a bit surprising that the reward prediction loss in Space Invaders is significantly lower than in Seaquest and Ms Pacman for long-term ahead prediction despite the higher frame reconstruction loss in Space Invaders. A possible explanation for this paradox might be the frequency at which rewards are collected—this frequency is significantly higher in Seaquest and Ms Pacman than in Space Invaders. A reward prediction model with bias towards zero rewards—as indicated by the main results in the paper—might therefore err less often in absolute terms when rewards are collected at a lower frequency and may hence achieve lower overall reward reconstruction loss. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
174,
|
| 1225 |
+
247,
|
| 1226 |
+
825,
|
| 1227 |
+
455
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 15
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "image",
|
| 1233 |
+
"img_path": "images/d68110c680a4ecb1d049be4cc34c6c6ee9b3614e4c0d331724fcd64d8d0f138b.jpg",
|
| 1234 |
+
"image_caption": [
|
| 1235 |
+
"Figure 9: Loss on test set over look ahead steps. Each row reports the loss on the test set over 100 look ahead steps for a different game. The first column illustrates the compound loss consisting of the video frame reconstruction loss (second column) and the reward prediction loss (third column). The loss on the test set is computed according to Oh et al. (2015) similar to the training loss for learning network parameters, however with a different look ahead parameter $K = 1 0 0$ and a different minibatch size $I = 5 0$ , and without averaging over look ahead steps since we aim to plot the test loss as a function of look ahead steps. For each game, the test loss is computed for 300 minibatches resulting in an empirical distribution with 300 loss values per look ahead step. The figure shows the mean (in green), the median (in red), the 5 to 95 percentiles (in shaded blue) as well as minimum and maximum elements (in black dashed lines) of these empirical distributions. "
|
| 1236 |
+
],
|
| 1237 |
+
"image_footnote": [],
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
173,
|
| 1240 |
+
44,
|
| 1241 |
+
805,
|
| 1242 |
+
801
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 16
|
| 1245 |
+
}
|
| 1246 |
+
]
|
parse/train/BJxhLAuxg/BJxhLAuxg_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJxhLAuxg/BJxhLAuxg_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyTqHL5xg/HyTqHL5xg.md
ADDED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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DEEP VARIATIONAL BAYES FILTERS: UNSUPERVISED LEARNING OF STATE SPACE MODELS FROM RAW DATA
|
| 2 |
+
|
| 3 |
+
Maximilian Karl, Maximilian Soelch, Justin Bayer, Patrick van der Smagt Data Lab, Volkswagen Group, 80805, München, Germany zip([maximilian.karl, maximilian.soelch], [@volkswagen.de])
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We introduce Deep Variational Bayes Filters (DVBF), a new method for unsupervised learning and identification of latent Markovian state space models. Leveraging recent advances in Stochastic Gradient Variational Bayes, DVBF can overcome intractable inference distributions via variational inference. Thus, it can handle highly nonlinear input data with temporal and spatial dependencies such as image sequences without domain knowledge. Our experiments show that enabling backpropagation through transitions enforces state space assumptions and significantly improves information content of the latent embedding. This also enables realistic long-term prediction.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Estimating probabilistic models for sequential data is central to many domains, such as audio, natural language or physical plants, Graves (2013); Watter et al. (2015); Chung et al. (2015); Deisenroth & Rasmussen (2011); Ko & Fox (2011). The goal is to obtain a model $p ( \mathbf { x } _ { 1 : T } )$ that best reflects a data set of observed sequences $\mathbf { x } _ { \mathrm { 1 : } T }$ . Recent advances in deep learning have paved the way to powerful models capable of representing high-dimensional sequences with temporal dependencies, e.g., Graves (2013); Watter et al. (2015); Chung et al. (2015); Bayer & Osendorfer (2014).
|
| 12 |
+
|
| 13 |
+
Time series for dynamic systems have been studied extensively in systems theory, cf. McGoff et al. (2015) and sources therein. In particular, state space models have shown to be a powerful tool to analyze and control the dynamics. Two tasks remain a significant challenge to this day: Can we identify the governing system from data only? And can we perform inference from observables to the latent system variables? These two tasks are competing: A more powerful representation of system requires more computationally demanding inference, and efficient inference, such as the well-known Kalman filters, Kalman & Bucy (1961), can prohibit sufficiently complex system classes.
|
| 14 |
+
|
| 15 |
+
Leveraging a recently proposed estimator based on variational inference, stochastic gradient variational Bayes (SGVB, Kingma & Welling (2013); Rezende et al. (2014)), approximate inference of latent variables becomes tractable. Extensions to time series have been shown in Bayer & Osendorfer (2014); Chung et al. (2015). Empirically, they showed considerable improvements in marginal data likelihood, i.e., compression, but lack full-information latent states, which prohibits, e.g., long-term sampling. Yet, in a wide range of applications, full-information latent states should be valued over compression. This is crucial if the latent spaces are used in downstream applications.
|
| 16 |
+
|
| 17 |
+
Our contribution is, to our knowledge, the first model that (i) enforces the latent state-space model assumptions, allowing for reliable system identification, and plausible long-term prediction of the observable system, (ii) provides the corresponding inference mechanism with rich dependencies, (iii) inherits the merit of neural architectures to be trainable on raw data such as images or other sensory inputs, and (iv) scales to large data due to optimization of parameters based on stochastic gradient descent, Bottou (2010). Hence, our model has the potential to exploit systems theory methodology for downstream tasks, e.g., control or model-based reinforcement learning, Sutton (1996).
|
| 18 |
+
|
| 19 |
+
# 2 BACKGROUND AND RELATED WORK
|
| 20 |
+
|
| 21 |
+
2.1 PROBABILISTIC MODELING AND FILTERING OF DYNAMICAL SYSTEMS
|
| 22 |
+
|
| 23 |
+
We consider non-linear dynamical systems with observations $\mathbf { x } _ { t } \in \mathcal { X } \subset \mathbb { R } ^ { n _ { x } }$ , depending on control inputs (or actions) $\mathbf { u } _ { t } \in \mathcal { U } \subset \mathbb { R } ^ { n _ { u } }$ . Elements of $\mathcal { X }$ can be high-dimensional sensory data, e.g., raw images. In particular they may exhibit complex non-Markovian transitions. Corresponding timediscrete sequences of length $\mathrm { T }$ are denoted as $\mathbf { x } _ { 1 : T } = ( \mathbf { x } _ { 1 } , \mathbf { x } _ { 2 } , \ldots , \mathbf { x } _ { T } )$ and $\mathbf { u } _ { 1 : T } = ( \mathbf { u } _ { 1 } , \mathbf { u } _ { 2 } , \ldots , \mathbf { u } _ { T } )$ .
|
| 24 |
+
|
| 25 |
+
We are interested in a probabilistic model1 $p ( \mathbf { x } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } )$ . Formally, we assume the graphical model
|
| 26 |
+
|
| 27 |
+
$$
|
| 28 |
+
p ( \mathbf { x } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } ) = \int p ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) p ( \mathbf { z } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } ) \mathrm { d } \mathbf { z } _ { 1 : T } ,
|
| 29 |
+
$$
|
| 30 |
+
|
| 31 |
+
where $\mathbf { z } _ { 1 : T }$ , $\mathbf { z } _ { t } \in \mathcal { Z } \subset \mathbb { R } ^ { n _ { z } }$ , denotes the corresponding latent sequence. That is, we assume a generative model with an underlying latent dynamical system with emission model $p ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } , \mathbf { u } _ { 1 : T } )$ and transition model $p ( \mathbf { z } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } )$ . We want to learn both components, i.e., we want to perform latent system identification. In order to be able to apply the identified system in downstream tasks, we need to find efficient posterior inference distributions $p ( \mathbf { z } _ { 1 : T } \mid \mathbf { x } _ { 1 : T } )$ . Three common examples are prediction, filtering, and smoothing: inference of $\mathbf { z } _ { t }$ from $\mathbf { x } _ { 1 : t - 1 }$ , $\mathbf { x } _ { 1 : t }$ , or $\mathbf { x } _ { 1 : T }$ , respectively. Accurate identification and efficient inference are generally competing tasks, as a wider generative model class typically leads to more difficult or even intractable inference.
|
| 32 |
+
|
| 33 |
+
The transition model is imperative for achieving good long-term results: a bad transition model can lead to divergence of the latent state. Accordingly, we put special emphasis on it through a Bayesian treatment. Assuming that the transitions may differ for each time step, we impose a regularizing prior distribution on a set of transition parameters $\beta _ { 1 : T }$ :
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
( 1 ) = \iint p ( { \bf x } _ { 1 : T } \mid { \bf z } _ { 1 : T } , { \bf u } _ { 1 : T } ) p ( { \bf z } _ { 1 : T } \mid \beta _ { 1 : T } , { \bf u } _ { 1 : T } ) p ( \beta _ { 1 : T } ) \mathrm { d } \beta _ { 1 : T } \mathrm { d } { \bf z } _ { 1 : T }
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
To obtain state-space models, we impose assumptions on emission and state transition model,
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\begin{array} { l } { \displaystyle p ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) = \prod _ { t = 1 \atop t = 1 } ^ { T } p ( \mathbf { x } _ { t } \mid \mathbf { z } _ { t } ) , } \\ { \displaystyle p ( \mathbf { z } _ { 1 : T } \mid \beta _ { 1 : T } , \mathbf { u } _ { 1 : T } ) = \prod _ { t = 0 } ^ { T - 1 } p ( \mathbf { z } _ { t + 1 } \mid \mathbf { z } _ { t } , \mathbf { u } _ { t } , \beta _ { t } ) . } \end{array}
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
Equations (3) and (4) assume that the current state $\mathbf { z } _ { t }$ contains all necessary information about the current observation $\mathbf { x } _ { t }$ , as well as the next state $\mathbf { z } _ { t + 1 }$ (given the current control input $\mathbf { u } _ { t }$ and transition parameters $\beta _ { t }$ ). That is, in contrast to observations, $\mathbf { z } _ { t }$ exhibits Markovian behavior.
|
| 46 |
+
|
| 47 |
+
A typical example of these assumptions are Linear Gaussian Models (LGMs), i.e., both state transition and emission model are affine transformations with Gaussian offset noise,
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\begin{array} { r l r } { \mathbf { z } _ { t + 1 } = \mathbf { F } _ { t } \mathbf { z } _ { t } + \mathbf { B } _ { t } \mathbf { u } _ { t } + \mathbf { w } _ { t } \quad } & { } & { \mathbf { w } _ { t } \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { Q } _ { t } ) , } \\ { \mathbf { x } _ { t } = \mathbf { H } _ { t } \mathbf { z } _ { t } + \mathbf { y } _ { t } \quad } & { } & { \mathbf { y } _ { t } \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { R } _ { t } ) . } \end{array}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
Typically, state transition matrix $\mathbf { F } _ { t }$ and control-input matrix $\mathbf { B } _ { t }$ are assumed to be given, so that $\boldsymbol { \beta } _ { t } = \mathbf { w } _ { t }$ . Section 3.3 will show that our approach allows other variants such as $\beta _ { t } = \left( \mathbf { F } _ { t } , \mathbf { B } _ { t } , \mathbf { w } _ { t } \right)$ . Under the strong assumptions (5) and (6) of LGMs, inference is provably solved optimally by the well-known Kalman filters. While extensions of Kalman filters to nonlinear dynamical systems exist, Julier & Uhlmann (1997), and are successfully applied in many areas, they suffer from two major drawbacks: firstly, its assumptions are restrictive and are violated in practical applications, leading to suboptimal results. Secondly, parameters such as $\mathbf { F } _ { t }$ and $\mathbf { B } _ { t }$ have to be known in order to perform posterior inference. There have been efforts to learn such system dynamics, cf. Ghahramani $\&$ Hinton (1996); Honkela et al. (2010) based on the expectation maximization (EM) algorithm or Valpola & Karhunen (2002), which uses neural networks. However, these algorithms are not applicable in cases where the true posterior distribution is intractable. This is the case if, e.g., image sequences are used, since the posterior is then highly nonlinear—typical mean-field assumptions on the approximate posterior are too simplified. Our new approach will tackle both issues, and moreover learn both identification and inference jointly by exploiting Stochastic Gradient Variational Bayes.
|
| 54 |
+
|
| 55 |
+
# 2.2 STOCHASTIC GRADIENT VARIATIONAL BAYES (SGVB) FOR TIME SERIES DISTRIBUTIONS
|
| 56 |
+
|
| 57 |
+
Replacing the bottleneck layer of a deterministic auto-encoder with stochastic units $\mathbf { z }$ , the variational auto-encoder (VAE, Kingma & Welling (2013); Rezende et al. (2014)) learns complex marginal data distributions on $\mathbf { x }$ in an unsupervised fashion from simpler distributions via the graphical model
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
p ( \mathbf { x } ) = \int p ( \mathbf { x } , \mathbf { z } ) \mathrm { d } \mathbf { z } = \int p ( \mathbf { x } \mid \mathbf { z } ) p ( \mathbf { z } ) \mathrm { d } \mathbf { z } .
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
In VAEs, $p ( \mathbf { x } \mid \mathbf { z } ) \equiv p _ { \theta } ( \mathbf { x } \mid \mathbf { z } )$ is typically parametrized by a neural network with parameters $\theta$ . Within this framework, models are trained by maximizing a lower bound to the marginal data log-likelihood via stochastic gradients:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\ln p ( \mathbf { x } ) \geq \mathbb { E } _ { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } [ \ln p _ { \theta } ( \mathbf { x } \mid \mathbf { z } ) ] - \mathrm { K L } ( q _ { \phi } ( \mathbf { z } \mid \mathbf { x } ) \mid \mid p ( \mathbf { z } ) ) = : \mathcal { L } _ { \mathrm { S G V B } } ( \mathbf { x } , \phi , \theta )
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
This is provably equivalent to minimizing the KL-divergence between the approximate posterior or recognition model $q _ { \phi } ( \mathbf { z } \mid \mathbf { x } )$ and the true, but usually intractable posterior distribution $p ( \mathbf { z } \mid \mathbf { x } )$ . $q _ { \phi }$ is parametrized by a neural network with parameters $\phi$ .
|
| 70 |
+
|
| 71 |
+
The principle of VAEs has been transferred to time series, Bayer & Osendorfer (2014); Chung et al. (2015). Both employ nonlinear state transitions in latent space, but violate eq. (4): Observations are directly included in the transition process. Empirically, reconstruction and compression work well. The state space $\mathcal { Z }$ , however, does not reflect all information available, which prohibits plausible generative long-term prediction. Such phenomena with generative models have been explained in Theis et al. (2015).
|
| 72 |
+
|
| 73 |
+
In Krishnan et al. (2015), the state-space assumptions (3) and (4) are softly encoded in the Deep Kalman Filter (DKF) model. Despite that, experiments, cf. section 4, show that their model fails to extract information such as velocity (and in general time derivatives), which leads to similar problems with prediction.
|
| 74 |
+
|
| 75 |
+
Johnson et al. (2016) give an algorithm for general graphical model variational inference, not tailored to dynamical systems. In contrast to previously discussed methods, it does not violate eq. (4). The approaches differ in that the recognition model outputs node potentials in combination with message passing to infer the latent state. Our approach focuses on learning dynamical systems for controlrelated tasks and therefore uses a neural network for inferring the latent state directly instead of an inference subroutine.
|
| 76 |
+
|
| 77 |
+
Others have been specifically interested in applying variational inference for controlled dynamical systems. In Watter et al. (2015) (Embed to Control—E2C), a VAE is used to learn the mappings to and from latent space. The regularization is clearly motivated by eq. (7). Still, it fails to be a mathematically correct lower bound to the marginal data likelihood. More significantly, their recognition model requires all observations that contain information w.r.t. the current state. This is nothing short of an additional temporal i.i.d. assumption on data: Multiple raw samples need to be stacked into one training sample such that all latent factors (in particular all time derivatives) are present within one sample. The task is thus greatly simplified, because instead of time-series, we learn a static auto-encoder on the processed data.
|
| 78 |
+
|
| 79 |
+
A pattern emerges: good prediction should boost compression. Still, previous methods empirically excel at compression, while prediction will not work. We conjecture that this is caused by previous methods trying to fit the latent dynamics to a latent state that is beneficial for reconstruction. This encourages learning of a stationary auto-encoder with focus of extracting as much from a single observation as possible. Importantly, it is not necessary to know the entire sequence for excellent reconstruction of single time steps. Once the latent states are set, it is hard to adjust the transition to them. This would require changing the latent states slightly, and that comes at a cost of decreasing the reconstruction (temporarily). The learning algorithm is stuck in a local optimum with good reconstruction and hence good compression only. Intriguingly, E2C bypasses this problem with its data augmentation.
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
Figure 1: Left: Graphical model for one transition under state-space model assumptions. The updated latent state $\mathbf { z } _ { t + 1 }$ depends on the previous state $\mathbf { z } _ { t }$ , control input $\mathbf { u } _ { t }$ , and transition parameters $\beta _ { t }$ . $\mathbf { z } _ { t + 1 }$ contains all information for generating observation $\mathbf { x } _ { t + 1 }$ . Diamond nodes indicate a deterministic dependency on parent nodes. Right: Inference performed during training (or while filtering). Past observations are indirectly used for inference as $\mathbf { z } _ { t }$ contains all information about them.
|
| 83 |
+
|
| 84 |
+
This leads to a key contribution of this paper: We force the latent space to fit the transition—reversing the direction, and thus achieving the state-space model assumptions and full information in the latent states.
|
| 85 |
+
|
| 86 |
+
# 3 DEEP VARIATIONAL BAYES FILTERS
|
| 87 |
+
|
| 88 |
+
# 3.1 REPARAMETRIZING THE TRANSITION
|
| 89 |
+
|
| 90 |
+
The central problem for learning latent states system dynamics is efficient inference of a latent space that obeys state-space model assumptions. If the latter are fulfilled, the latent space must contain all information. Previous approaches emphasized good reconstruction, so that the space only contains information necessary for reconstruction of one time step. To overcome this, we establish gradient paths through transitions over time so that the transition becomes the driving factor for shaping the latent space, rather than adjusting the transition to the recognition model’s latent space. The key is to prevent the recognition model $\bar { q _ { \phi } } ( \mathbf { z } _ { 1 : T } \mid \mathbf { x } _ { 1 : T } )$ from directly drawing the latent state $\mathbf { z } _ { t }$ .
|
| 91 |
+
|
| 92 |
+
Similar to the reparametrization trick from Kingma & Welling (2013); Rezende et al. (2014) for making the Monte Carlo estimate differentiable w.r.t. the parameters, we make the transition differentiable w.r.t. the last state and its parameters:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\mathbf { z } _ { t + 1 } = f ( \mathbf { z } _ { t } , \mathbf { u } _ { t } , \boldsymbol { \beta } _ { t } )
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
Given the stochastic parameters $\beta _ { t }$ , the state transition is deterministic (which in turn means that by marginalizing $\beta _ { t }$ , we still have a stochastic transition). The immediate and crucial consequence is that errors in reconstruction of $\mathbf { x } _ { t }$ from $\mathbf { z } _ { t }$ are backpropagated directly through time.
|
| 99 |
+
|
| 100 |
+
This reparametrization has a couple of other important implications: the recognition model no longer infers latent states $\mathbf { z } _ { t }$ , but transition parameters $\beta _ { t }$ . In particular, the gradient $\partial { \mathbf z } _ { t + 1 } / \partial { \mathbf z } _ { t }$ is well-defined from (8)—gradient information can be backpropagated through the transition.
|
| 101 |
+
|
| 102 |
+
This is different from the method used in Krishnan et al. (2015), where the transition only occurs in the KL-divergence term of their loss function (a variant of eq. (7)). No gradient from the generative model is backpropagated through the transitions.
|
| 103 |
+
|
| 104 |
+
Much like in eq. (5), the stochastic parameters includes a corrective offset term $\mathbf { w } _ { t }$ , which emphasizes the notion of the recognition model as a filter. In theory, the learning algorithm could still learn the transition as $\mathbf { z } _ { t + 1 } = \mathbf { w } _ { t }$ . However, the introduction of $\beta _ { t }$ also enables us to regularize the transition with meaningful priors, which not only prevents overfitting the recognition model, but also enforces meaningful manifolds in the latent space via transition priors. Ignoring the potential of the transition over time yields large penalties from these priors. Thus, the problems outlined in Section 2 are overcome by construction.
|
| 105 |
+
|
| 106 |
+
To install such transition priors, we split $\boldsymbol { \beta } _ { t } = \left( \mathbf { w } _ { t } , \mathbf { v } _ { t } \right)$ . The interpretation of $\mathbf { w } _ { t }$ is a sample-specific process noise which can be inferred from incoming data, like in eq. (5). On the other hand, $\mathbf { v } _ { t }$ are universal transition parameters, which are sample-independent (and are only inferred from data during training). This corresponds to the idea of weight uncertainty in Hinton $\&$ Van Camp (1993). This interpretation leads to a natural factorization assumption on the recognition model:
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
(b) One particular example of a latent transition: local linearity.
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
Figure 2: Left: General architecture for DVBF. Stochastic transition parameters $\beta _ { t }$ are inferred via the recognition model, e.g., a neural network. Based on a sampled $\beta _ { t }$ , the state transition is computed deterministically. The updated latent state $\mathbf { z } _ { t + 1 }$ is used for predicting $\mathbf { x } _ { t + 1 }$ . For details, see section 3.1. Right: Zoom into latent space transition (red box in left figure). One exemplary transition is shown, the locally linear transition from section 3.3.
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
q _ { \phi } ( \beta _ { 1 : T } \mid \mathbf { x } _ { 1 : T } ) = q _ { \phi } ( \mathbf { w } _ { 1 : T } \mid \mathbf { x } _ { 1 : T } ) q _ { \phi } ( \mathbf { v } _ { 1 : T } )
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
When using the fully trained model for generative sampling, i.e., sampling without input, the universal state transition parameters can still be drawn from $q _ { \phi } ( \mathbf { v } _ { 1 : T } )$ , whereas $\mathbf { w } _ { 1 : T }$ is drawn from the prior in the absence of input data.
|
| 119 |
+
|
| 120 |
+
Figure 1 shows the underlying graphical model and the inference procedure. Figure 2a shows a generic view on our new computational architecture. An example of a locally linear transition parametrization will be given in section 3.3.
|
| 121 |
+
|
| 122 |
+
# 3.2 THE LOWER BOUND OBJECTIVE FUNCTION
|
| 123 |
+
|
| 124 |
+
In analogy to eq. (7), we now derive a lower bound to the marginal likelihood $p ( \mathbf { x } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } )$ . After reflecting the Markov assumptions (3) and (4) in the factorized likelihood (2), we have:
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
p ( \mathbf { x } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } ) = \int \int p ( \beta _ { 1 : T } ) \prod _ { t = 1 } ^ { T } p _ { \theta } ( \mathbf { x } _ { t } \mid \mathbf { z } _ { t } ) \prod _ { t = 0 } ^ { T - 1 } p ( \mathbf { z } _ { t + 1 } \mid \mathbf { z } _ { t } , \mathbf { u } _ { t } , \beta _ { t } ) \mathrm { d } \beta _ { 1 : T } \mathrm { d } \mathbf { z } _ { 1 : T }
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
Due to the deterministic transition given $\beta _ { t + 1 }$ , the last term is a product of Dirac distributions and the overall distribution simplifies greatly:
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\begin{array} { l } { p ( \mathbf { x } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } ) = \displaystyle \int p ( \boldsymbol { \beta } _ { 1 : T } ) \prod _ { t = 1 } ^ { T } p _ { \boldsymbol { \theta } } ( \mathbf { x } _ { t } \mid \mathbf { z } _ { t } ) \Big \vert _ { \mathbf { z } _ { t } = f \left( \mathbf { z } _ { t - 1 } , \mathbf { u } _ { t - 1 } , \boldsymbol { \beta } _ { t - 1 } \right) } \mathrm { d } \boldsymbol { \beta } _ { 1 : T } } \\ { \displaystyle \left( = \int p ( \boldsymbol { \beta } _ { 1 : T } ) p _ { \boldsymbol { \theta } } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } ) \mathrm { d } \boldsymbol { \beta } _ { 1 : T } \right) } \end{array}
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
The last formulation is for notational brevity: the term $p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } )$ is not independent of $\beta _ { 1 : T }$ and $\mathbf { u } _ { 1 : T }$ . We now derive the objective function, a lower bound to the data likelihood:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\begin{array}{c} \ln p ( \mathbf { x } _ { 1 : T } \mid \mathbf { u } _ { 1 : T } ) = \ln \int p ( \beta _ { 1 : T } ) p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } ) { \frac { q _ { \phi } ( \beta _ { 1 : T } \mid \mathbf { x } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) } { q _ { \phi } ( \beta _ { 1 : T } \mid \mathbf { x } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) } } \mathrm { d } \beta _ { 1 : T } \\ { \geq \int q _ { \phi } ( \beta _ { 1 : T } \mid \mathbf { x } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) \ln \left( p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } ) { \frac { p ( \beta _ { 1 : T } ) } { q _ { \phi } ( \beta _ { 1 : T } \mid \mathbf { x } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) } } \right) \mathrm { d } \beta _ { 1 : T } } \\ { = \mathbb { E } _ { q _ { \phi } } [ \ln p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } ) - \ln q _ { \phi } ( \beta _ { 1 : T } \mid \mathbf { x } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) + \ln p ( \beta _ { 1 : T } ) ] } \\ { = \mathbb { E } _ { q _ { \phi } } [ \ln p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } ) ] - \mathrm { K L } ( q _ { \phi } ( \beta _ { 1 : T } \mid \mathbf { x } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) \mid \mid p ( \beta _ { 1 : T } ) ) } & { ( \ln p ( \beta _ { 1 : T } ) ) } \\ { = : { \mathcal { L } } _ { \mathrm { D V B F } } ( \mathbf { x } _ { 1 : T } , \theta , \phi \mid \mathbf { u } _ { 1 : T } ) } \end{array}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
Our experiments show that an annealed version of (10) is beneficial to the overall performance:
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
( \mathbf { 1 0 ^ { \prime } } ) = \mathbb { E } _ { q _ { \phi } } [ c _ { i } \ln p _ { \theta } ( \mathbf { x } _ { 1 : T } ~ \vert ~ \mathbf { z } _ { 1 : T } ) - \ln q _ { \phi } ( \beta _ { 1 : T } ~ \vert ~ \mathbf { x } _ { 1 : T } , \mathbf { u } _ { 1 : T } ) + c _ { i } \ln p ( \mathbf { w } _ { 1 : T } ) + \ln p ( \mathbf { v } _ { 1 : T } ) ]
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
Here, $c _ { i } = \operatorname* { m a x } ( 1 , 0 . 0 1 + i / T _ { A } )$ is an inverse temperature that increases linearly in the number of gradient updates $i$ until reaching 1 after $T _ { A }$ annealing iterations. Similar annealing schedules have been applied in, e.g., Ghahramani $\&$ Hinton (2000); Mandt et al. (2016); Rezende & Mohamed (2015), where it is shown that they smooth the typically highly non-convex error landscape. Additionally, the transition prior $p ( \mathbf { v } _ { 1 : T } )$ was estimated during optimization, i.e., through an empirical Bayes approach. In all experiments, we used isotropic Gaussian priors.
|
| 149 |
+
|
| 150 |
+
# 3.3 EXAMPLE: LOCALLY LINEAR TRANSITIONS
|
| 151 |
+
|
| 152 |
+
We have derived a learning algorithm for time series with particular focus on general transitions in latent space. Inspired by Watter et al. (2015), this section will show how to learn a particular instance: locally linear state transitions. That is, we set eq. (8) to
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
\begin{array} { r } { \mathbf { z } _ { t + 1 } = \mathbf { A } _ { t } \mathbf { z } _ { t } + \mathbf { B } _ { t } \mathbf { u } _ { t } + \mathbf { C } _ { t } \mathbf { w } _ { t } , \qquad t = 1 , \ldots , T , } \end{array}
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
where $\mathbf { w } _ { t }$ is a stochastic sample from the recognition model and $\mathbf { A } _ { t } , \mathbf { B } _ { t }$ , and $\mathbf { C } _ { t }$ are matrices of matching dimensions. They are stochastic functions of $\mathbf { z } _ { t }$ and $\mathbf { u } _ { t }$ (thus local linearity). We draw
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\mathbf { v } _ { t } = \Big \{ \mathbf { A } _ { t } ^ { ( i ) } , \mathbf { B } _ { t } ^ { ( i ) } , \mathbf { C } _ { t } ^ { ( i ) } \mid i = 1 , \ldots , M \Big \} ,
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
from $q _ { \phi } ( \mathbf { v } _ { t } )$ , i.e., $M$ triplets of matrices, each corresponding to data-independent, but learned globally linear system. These can be learned as point estimates. We employed a Bayesian treatment as in Blundell et al. (2015). We yield $\mathbf { A } _ { t } , \mathbf { B } _ { t }$ , and $\mathbf { C } _ { t }$ as state- and control-dependent linear combinations:
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
\begin{array}{c} \begin{array} { r l r l r l } & { \quad } & & { \quad } & & { \boldsymbol { \alpha } _ { t } = f _ { \psi } ( \mathbf { z } _ { t } , \mathbf { u } _ { t } ) \in \mathbb { R } ^ { M } } \\ & { \quad } & & { \quad } & { \quad } & { \quad } \\ & { \quad } & { \quad } & { \quad } & { \quad } & { \quad } \\ & { \quad } & { \quad } & { \quad } & { \quad } & { \quad } & { \quad } \\ & { \quad } & { \quad } & { \quad } & { \quad } & { \quad } & { \quad } \end{array} \qquad \begin{array} { r l } & { \quad } & { \quad } & { \boldsymbol { \alpha } _ { t } = f _ { \psi } ( \mathbf { z } _ { t } , \mathbf { u } _ { t } ) \in \mathbb { R } ^ { M } } \\ & { \quad } & { \quad } \\ & { \quad } & { \quad } \\ & { \quad } & { \quad } & { \quad } \end{array} \qquad \mathbf { C } _ { t } = \sum _ { i = 1 } ^ { M } { \boldsymbol { \alpha } _ { t } ^ { ( i ) } } \mathbf { C } _ { t } ^ { ( i ) } \end{array}
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
The computation is depicted in fig. 2b. The function $f _ { \psi }$ can be, e.g., a (deterministic) neural network with weights $\psi$ . As a subset of the generative parameters $\theta$ , $\psi$ is part of the trainable parameters of our model. The weight vector $\pmb { \alpha } _ { t }$ is shared between the three matrices. There is a correspondence to eq. (5): ${ \bf A } _ { t }$ and $\mathbf { F } _ { t }$ , $\mathbf { B } _ { t }$ and $\mathbf { B } _ { t }$ , as well as $\mathbf { C } _ { t } \mathbf { C } _ { t } ^ { \top }$ and $\mathbf { Q } _ { t }$ are related.
|
| 171 |
+
|
| 172 |
+
We used this parametrization of the state transition model for our experiments. It is important that the parametrization is up to the user and the respective application.
|
| 173 |
+
|
| 174 |
+
# 4 EXPERIMENTS AND RESULTS
|
| 175 |
+
|
| 176 |
+
In this section we validate that DVBF with locally linear transitions (DVBF-LL) (section 3.3) outperforms Deep Kalman Filters (DKF, Krishnan et al. (2015)) in recovering latent spaces with full information. 2 We focus on environments that can be simulated with full knowledge of the
|
| 177 |
+
|
| 178 |
+
2We do not include E2C, Watter et al. (2015), due to the need for data modification and its inability to provide a correct lower bound as mentioned in section 2.2.
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Figure 3: (a) Our DVBF-LL model trained on pendulum image sequences. The upper plots show the latent space with coloring according to the ground truth with angles on the left and angular velocities on the right. The lower plots show regression results for predicting ground truth from the latent representation. The latent space plots show clearly that all information for representing the full state of a pendulum is encoded in each latent state. (b) DKF from Krishnan et al. (2015) trained on the same pendulum dataset. The latent space plot shows that DKF fails to learn velocities of the pendulum. It is therefore not able to capture all information for representing the full pendulum state.
|
| 182 |
+
|
| 183 |
+
ground truth latent dynamical system. The experimental setup is described in the Supplementary Material. We published the code for DVBF and a link will be made available at https://brml. org/projects/dvbf.
|
| 184 |
+
|
| 185 |
+
# 4.1 DYNAMIC PENDULUM
|
| 186 |
+
|
| 187 |
+
In order to test our algorithm on truly non-Markovian observations of a dynamical system, we simulated a dynamic torque-controlled pendulum governed by the differential equation
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
m l ^ { 2 } { \ddot { \varphi } } ( t ) = - \mu { \dot { \varphi } } ( t ) + m g l \sin \varphi ( t ) + u ( t ) ,
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
$m = l = 1 , \mu = 0 . 5 , g = 9 . 8 1$ , via numerical integration, and then converted the ground-truth angle $\varphi$ into an image observation in $\mathcal { X }$ . The one-dimensional control corresponds to angle acceleration (which is proportional to joint torque). Angle and angular velocity fully describe the system.
|
| 194 |
+
|
| 195 |
+
Figure 3 shows the latent spaces for identical input data learned by DVBF-LL and DKF, respectively, colored with the ground truth in the top row. It should be noted that latent samples are shown, not means of posterior distributions. The state-space model was allowed to use three latent dimensions. As we can see in fig. 3a, DVBF-LL learned a two-dimensional manifold embedding, i.e., it encoded the angle in polar coordinates (thus circumventing the discontinuity of angles modulo $2 \pi$ ). The bottom row shows ordinary least-squares regressions (OLS) underlining the performance: there exists a high correlation between latent states and ground-truth angle and angular velocity for DVBF-LL. On the contrary, fig. 3b verifies our prediction that DKF is equally capable of learning the angle, but extracts little to no information on angular velocity.
|
| 196 |
+
|
| 197 |
+
The OLS regression results shown in table 1 validate this observation.3 Predicting $\sin ( \varphi )$ and $\cos ( \varphi )$ , i.e., polar coordinates of the ground-truth angle $\varphi$ , works almost equally well for DVBF-LL and DKF, with DVBF-LL slightly outperforming DKF. For predicting the ground truth velocity $\dot { \varphi }$ , DVBF-LL shows remarkable performance. DKF, instead, contains hardly any information, resulting in a very low goodness-of-fit score of $R ^ { 2 } = 0 . 0 3 5$ .
|
| 198 |
+
|
| 199 |
+
Table 1: Results for pendulum OLS regressions of all latent states on respective dependent variable.
|
| 200 |
+
|
| 201 |
+
<table><tr><td colspan="3">DVBF-LL</td><td colspan="2">DKF</td></tr><tr><td></td><td></td><td>Log-Likelihood</td><td>R² Log-Likelihood</td><td>R²</td></tr><tr><td>Dependent</td><td>sin()</td><td>3990.8</td><td>0.961 0.982</td><td>1737.6 0.929</td></tr><tr><td>ground truth</td><td>cos()</td><td>7231.1</td><td>6614.2</td><td>0.979</td></tr><tr><td>variable</td><td>6</td><td>-11139 0.916</td><td>-20289</td><td>0.035</td></tr></table>
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
(b) Reconstructive latent walk.
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
(a) Generative latent walk.
|
| 208 |
+
(c) Ground truth (top), reconstructions (middle), generative samples (bottom) from identical initial latent state.
|
| 209 |
+
Figure 4: (a) Latent space walk in generative mode. (b) Latent space walk in filtering mode. (c) Ground truth and samples from recognition and generative model. The reconstruction sampling has access to observation sequence and performs filtering. The generative samples only get access to the observations once for creating the initial state while all subsequent samples are predicted from this single initial state. The red bar indicates the length of training sequences. Samples beyond show the generalization capabilities for sequences longer than during training. The complete sequence can be found in the Appendix in fig. 7.
|
| 210 |
+
|
| 211 |
+
<table><tr><td rowspan=1 colspan=31>1 5 10 15 20 40 45</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>`</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>、</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>·</td><td rowspan=1 colspan=1>·</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>·</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>、</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>、</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr></table>
|
| 212 |
+
|
| 213 |
+
Figure 4 shows that the strong relation between ground truth and latent state is beneficial for generative sampling. All plots show 100 time steps of a pendulum starting from the exact same latent state and not being actuated. The top row plots show a purely generative walk in the latent space on the left, and a walk in latent space that is corrected by filtering observations on the right. We can see that both follow a similar trajectory to an attractor. The generative model is more prone to noise when approaching the attractor.
|
| 214 |
+
|
| 215 |
+
The bottom plot shows the first 45 steps of the corresponding observations (top row), reconstructions (middle row), and generative samples (without correcting from observations). Interestingly, DVBF works very well even though the sequence is much longer than all training sequences (indicated by the red line).
|
| 216 |
+
|
| 217 |
+
Table (2) shows values of the lower bound to the marginal data likelihood (for DVBF-LL, this corresponds to eq. (11)). We see that DVBF-LL outperforms DKF in terms of compression, but only with a slight margin, which does not reflect the better generative sampling as Theis et al. (2015) argue.
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 5: (a) Two dimensions of 4D bouncing ball latent space. Ground truth x and y coordinates are combined into a regular $3 \times 3$ checkerboard coloring. This checkerboard is correctly extracted by the embedding. (b) Remaining two latent dimensions. Same latent samples, colored with ball velocities in x and y direction (left and right image, respectively). The smooth, perpendicular coloring indicates that the ground truth value is stored in the latent dimension.
|
| 221 |
+
|
| 222 |
+
# 4.2 BOUNCING BALL
|
| 223 |
+
|
| 224 |
+
The bouncing ball experiment features a ball rolling within a bounding box in a plane. The system has a two-dimensional control input, added to the directed velocity of the ball. If the ball hits the wall, it bounces off, so that the true dynamics are highly dependent on the current position and velocity of the ball. The system’s state is four-dimensional, two dimensions each for position and velocity.
|
| 225 |
+
|
| 226 |
+
Consequently, we use a DVBF-LL with four latent dimensions. Figure 5 shows that DVBF again captures the entire system dynamics in the latent space. The checkerboard is quite a remarkable result: the ground truth position of the ball lies within the 2D unit square, the bounding box. In order to visualize how ground truth reappears in the learned latent states, we show the warping of the ground truth bounding box into the latent space. To this end, we partitioned (discretized) the ground truth unit square into a regular 3x3 checkerboard with respective coloring. We observed that DVBF learned to extract the 2D position from the 256 pixels, and aligned them in two dimensions of the latent space in strong correspondence to the physical system. The algorithm does the exact same pixel-to-2D inference that a human observer automatically does when looking at the image.
|
| 227 |
+
|
| 228 |
+

|
| 229 |
+
Figure 6: Ground truth (top), reconstructions (middle), generative samples (bottom) from identical initial latent state for the two bouncing balls experiment. Red bar indicates length of training sequences.
|
| 230 |
+
|
| 231 |
+
# 4.3 TWO BOUNCING BALLS
|
| 232 |
+
|
| 233 |
+
Another more complex environment4 features two balls in a bounding box. We used a 10-dimensional latent space to fully capture the position and velocity information of the balls. Reconstruction and generative samples are shown in fig. 6. Same as in the pendulum example we get a generative model with stable predictions beyond training data sequence length.
|
| 234 |
+
|
| 235 |
+
# 5 CONCLUSION
|
| 236 |
+
|
| 237 |
+
We have proposed Deep Variational Bayes Filters (DVBF), a new method to learn state space models from raw non-Markovian sequence data. DVBFs perform latent dynamic system identification, and subsequently overcome intractable inference. As DVBFs make use of stochastic gradient variational Bayes they naturally scale to large data sets. In a series of vision-based experiments we demonstrated that latent states can be recovered which identify the underlying physical quantities. The generative model showed stable long-term predictions far beyond the sequence length used during training.
|
| 238 |
+
|
| 239 |
+
# ACKNOWLEDGEMENTS
|
| 240 |
+
|
| 241 |
+
Part of this work was conducted at Chair of Robotics and Embedded Systems, Department of Informatics, Technische Universität München, Germany, and supported by the TACMAN project, EC Grant agreement no. 610967, within the FP7 framework programme.
|
| 242 |
+
|
| 243 |
+
We would like to thank Jost Tobias Springenberg, Adam Kosiorek, Moritz Münst, and anonymous reviewers for valuable input.
|
| 244 |
+
|
| 245 |
+
# REFERENCES
|
| 246 |
+
|
| 247 |
+
Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014.
|
| 248 |
+
|
| 249 |
+
Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. arXiv preprint arXiv:1505.05424, 2015.
|
| 250 |
+
|
| 251 |
+
Léon Bottou. Large-scale machine learning with stochastic gradient descent. In Proceedings of COMPSTAT’2010, pp. 177–186. Springer, 2010.
|
| 252 |
+
|
| 253 |
+
Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C. Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. CoRR, abs/1506.02216, 2015. URL http://arxiv.org/abs/1506.02216.
|
| 254 |
+
|
| 255 |
+
Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on machine learning (ICML-11), pp. 465–472, 2011.
|
| 256 |
+
|
| 257 |
+
Zoubin Ghahramani and Geoffrey E Hinton. Parameter estimation for linear dynamical systems. Technical report, Technical Report CRG-TR-96-2, University of Toronto, Dept. of Computer Science, 1996.
|
| 258 |
+
|
| 259 |
+
Zoubin Ghahramani and Geoffrey E Hinton. Variational learning for switching state-space models. Neural computation, 12(4):831–864, 2000.
|
| 260 |
+
|
| 261 |
+
Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013.
|
| 262 |
+
|
| 263 |
+
Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993.
|
| 264 |
+
|
| 265 |
+
4We used the script attached to Sutskever & Hinton (2007) for generating our datasets.
|
| 266 |
+
|
| 267 |
+
Antti Honkela, Tapani Raiko, Mikael Kuusela, Matti Tornio, and Juha Karhunen. Approximate riemannian conjugate gradient learning for fixed-form variational bayes. Journal of Machine Learning Research, 11(Nov):3235–3268, 2010.
|
| 268 |
+
|
| 269 |
+
Matthew J Johnson, David Duvenaud, Alexander B Wiltschko, Sandeep R Datta, and Ryan P Adams. Structured VAEs: Composing probabilistic graphical models and variational autoencoders. arXiv preprint arXiv:1603.06277, 2016.
|
| 270 |
+
|
| 271 |
+
Simon J Julier and Jeffrey K Uhlmann. New extension of the kalman filter to nonlinear systems. In AeroSense’97, pp. 182–193. International Society for Optics and Photonics, 1997.
|
| 272 |
+
|
| 273 |
+
Rudolph E Kalman and Richard S Bucy. New results in linear filtering and prediction theory. Journal of basic engineering, 83(1):95–108, 1961.
|
| 274 |
+
|
| 275 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 276 |
+
|
| 277 |
+
Jonathan Ko and Dieter Fox. Learning gp-bayesfilters via gaussian process latent variable models. Autonomous Robots, 30(1):3–23, 2011.
|
| 278 |
+
|
| 279 |
+
Rahul G Krishnan, Uri Shalit, and David Sontag. Deep Kalman filters. arXiv preprint arXiv:1511.05121, 2015.
|
| 280 |
+
|
| 281 |
+
Stephan Mandt, James McInerney, Farhan Abrol, Rajesh Ranganath, and David Blei. Variational tempering. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, pp. 704–712, 2016.
|
| 282 |
+
|
| 283 |
+
Kevin McGoff, Sayan Mukherjee, Natesh Pillai, et al. Statistical inference for dynamical systems: A review. Statistics Surveys, 9:209–252, 2015.
|
| 284 |
+
|
| 285 |
+
Danilo J. Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Tony Jebara and Eric P. Xing (eds.), Proceedings of the 31st International Conference on Machine Learning (ICML-14), pp. 1278–1286. JMLR Workshop and Conference Proceedings, 2014. URL http://jmlr.org/proceedings/ papers/v32/rezende14.pdf.
|
| 286 |
+
|
| 287 |
+
Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. arXiv preprint arXiv:1505.05770, 2015.
|
| 288 |
+
|
| 289 |
+
Ilya Sutskever and Geoffrey E. Hinton. Learning multilevel distributed representations for high-dimensional sequences. In Marina Meila and Xiaotong Shen (eds.), Proceedings of the Eleventh International Conference on Artificial Intelligence and Statistics (AISTATS-07), volume 2, pp. 548–555. Journal of Machine Learning Research - Proceedings Track, 2007. URL http://jmlr.csail.mit.edu/proceedings/papers/v2/sutskever07a/ sutskever07a.pdf.
|
| 290 |
+
|
| 291 |
+
Leonid Kuvayev Rich Sutton. Model-based reinforcement learning with an approximate, learned model. In Proceedings of the ninth Yale workshop on adaptive and learning systems, pp. 101–105, 1996.
|
| 292 |
+
|
| 293 |
+
Lucas Theis, Aäron van den Oord, and Matthias Bethge. A note on the evaluation of generative models. arXiv preprint arXiv:1511.01844, 2015.
|
| 294 |
+
|
| 295 |
+
Harri Valpola and Juha Karhunen. An unsupervised ensemble learning method for nonlinear dynamic state-space models. Neural computation, 14(11):2647–2692, 2002.
|
| 296 |
+
|
| 297 |
+
Manuel Watter, Jost Springenberg, Joschka Boedecker, and Martin Riedmiller. Embed to control: A locally linear latent dynamics model for control from raw images. In Advances in Neural Information Processing Systems, pp. 2728–2736, 2015.
|
| 298 |
+
|
| 299 |
+
# A SUPPLEMENTARY TO LOWER BOUND
|
| 300 |
+
|
| 301 |
+
# A.1 ANNEALED KL-DIVERGENCE
|
| 302 |
+
|
| 303 |
+
We used the analytical solution of the annealed KL-divergence in eq. (10) for optimization:
|
| 304 |
+
|
| 305 |
+
$$
|
| 306 |
+
\begin{array} { r l r } & { } & { \mathbb { E } _ { q _ { \phi } } [ - \ln q _ { \phi } ( { \bf w } _ { 1 : T } \mid { \bf x } _ { 1 : T } , { \bf u } _ { 1 : T } ) + c _ { i } \ln p ( { \bf w } _ { 1 : T } ) ] = } \\ & { } & { c _ { i } \frac { 1 } { 2 } \ln ( 2 \pi \sigma _ { p } ^ { 2 } ) - \frac { 1 } { 2 } \ln ( 2 \pi \sigma _ { q } ^ { 2 } ) + c _ { i } \frac { \sigma _ { q } ^ { 2 } + ( \mu _ { q } - \mu _ { p } ) ^ { 2 } } { 2 \sigma _ { p } ^ { 2 } } - \frac { 1 } { 2 } } \end{array}
|
| 307 |
+
$$
|
| 308 |
+
|
| 309 |
+
# B SUPPLEMENTARY TO IMPLEMENTATION
|
| 310 |
+
|
| 311 |
+
# B.1 EXPERIMENTAL SETUP
|
| 312 |
+
|
| 313 |
+
In all our experiments, we use sequences of 15 raw images of the respective system with $1 6 \times 1 6$ pixels each, i.e., observation space $\mathcal { X } \subset \mathbb { R } ^ { 2 5 6 }$ , as well as control inputs of varying dimension and interpretation depending on the experiment. We used training, validation and test sets with 500 sequences each. Control input sequences were drawn randomly (“motor babbling”). Additional details about the implementation can be found in the published code at https://brml.org/ projects/dvbf.
|
| 314 |
+
|
| 315 |
+
# B.2 ADDITIONAL EXPERIMENT PLOTS
|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
|
| 319 |
+
Figure 7: Ground truth and samples from recognition and generative model. Complete version of fig. 4 with all missing samples present.
|
| 320 |
+
|
| 321 |
+
B.3 IMPLEMENTATION DETAILS FOR DVBF IN PENDULUM EXPERIMENT
|
| 322 |
+
|
| 323 |
+
• Input: 15 timesteps of $1 6 ^ { 2 }$ observation dimensions and 1 action dimension
|
| 324 |
+
• Latent Space: 3 dimensions
|
| 325 |
+
• Observation Network $p ( \mathbf { x } _ { t } | \mathbf { z } _ { t } ) = \mathcal { N } ( \mathbf { x } _ { t } ; \mu ( \mathbf { z } _ { t } ) , \boldsymbol { \sigma } )$ : $1 2 8 \mathrm { R e L U + 1 6 ^ { 2 } }$ identity output
|
| 326 |
+
• Recognition Model: $1 2 8 { \mathrm { R e L U } } + 6$ identity output
|
| 327 |
+
|
| 328 |
+
$$
|
| 329 |
+
\begin{array} { r } { q ( \mathbf { w } _ { t } | \mathbf { z } _ { t } , \mathbf { x } _ { t + 1 } , \mathbf { u } _ { t } ) = \mathcal { N } ( \mathbf { w } _ { t } ; \boldsymbol { \mu } , \boldsymbol { \sigma } ) , } \\ { ( \boldsymbol { \mu } , \boldsymbol { \sigma } ) = f ( \mathbf { z } _ { t } , \mathbf { x } _ { t + 1 } , \mathbf { u } _ { t } ) } \end{array}
|
| 330 |
+
$$
|
| 331 |
+
|
| 332 |
+
• Transition Network ${ \pmb { \alpha } } _ { t } ( { \bf z } _ { t } )$ : 16 softmax output
|
| 333 |
+
• Initial Network $\mathbf { w } _ { 1 } \sim p ( \mathbf { x } _ { 1 : T } )$ : Fast Dropout BiRNN with: $1 2 8 { \mathrm { R e L U } } + 3$ identity output
|
| 334 |
+
• Initial Transition ${ \bf z } _ { 1 } ( { \bf w } _ { 1 } )$ : $1 2 8 { \mathrm { R e L U } } + 3$ identity output
|
| 335 |
+
• Optimizer: adadelta, 0.1 step rate
|
| 336 |
+
• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every 250th gradient update, $T _ { A } = 1 0 ^ { 5 }$ iterations
|
| 337 |
+
• Batch-size: 500
|
| 338 |
+
|
| 339 |
+
B.4 IMPLEMENTATION DETAILS FOR DVBF IN BOUNCING BALL EXPERIMENT
|
| 340 |
+
|
| 341 |
+
• Input: 15 timesteps of $1 6 ^ { 2 }$ observation dimensions and 2 action dimension
|
| 342 |
+
• Latent Space: 4 dimensions
|
| 343 |
+
• Observation Network $p ( \mathbf { x } _ { t } | \mathbf { z } _ { t } ) = \mathcal { N } ( \mathbf { x } _ { t } ; \mu ( \mathbf { z } _ { t } ) , \boldsymbol { \sigma } )$ : $1 2 8 \mathrm { R e L U + 1 6 ^ { 2 } }$ identity output
|
| 344 |
+
• Recognition Model: $1 2 8 { \mathrm { R e L U } } + 8$ identity output
|
| 345 |
+
|
| 346 |
+
$$
|
| 347 |
+
\begin{array} { r } { q ( \mathbf { w } _ { t } | \mathbf { z } _ { t } , \mathbf { x } _ { t + 1 } , \mathbf { u } _ { t } ) = \mathcal { N } ( \mathbf { w } _ { t } ; \boldsymbol { \mu } , \boldsymbol { \sigma } ) , } \\ { ( \boldsymbol { \mu } , \boldsymbol { \sigma } ) = f ( \mathbf { z } _ { t } , \mathbf { x } _ { t + 1 } , \mathbf { u } _ { t } ) } \end{array}
|
| 348 |
+
$$
|
| 349 |
+
|
| 350 |
+
• Transition Network ${ \pmb { \alpha } } _ { t } ( { \bf z } _ { t } )$ : 16 softmax output
|
| 351 |
+
• Initial Network $\mathbf { w } _ { 1 } \sim p ( \mathbf { x } _ { 1 : T } )$ : Fast Dropout BiRNN with: $1 2 8 { \mathrm { R e L U } } + 4$ identity output
|
| 352 |
+
• Initial Transition ${ \bf z } _ { 1 } ( { \bf w } _ { 1 } )$ : $1 2 8 { \mathrm { R e L U } } + 4$ identity output
|
| 353 |
+
Optimizer: adadelta, 0.1 step rate
|
| 354 |
+
• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every 250th gradient update, $T _ { A } = 1 0 ^ { 5 }$ iterations
|
| 355 |
+
• Batch-size: 500
|
| 356 |
+
|
| 357 |
+
B.5 IMPLEMENTATION DETAILS FOR DVBF IN TWO BOUNCING BALLS EXPERIMENT
|
| 358 |
+
|
| 359 |
+
• Input: 15 timesteps of $2 0 ^ { 2 }$ observation dimensions and 2000 samples
|
| 360 |
+
• Latent Space: 10 dimensions
|
| 361 |
+
• Observation Network $p ( \mathbf { x } _ { t } | \mathbf { z } _ { t } ) = \mathcal { N } ( \mathbf { x } _ { t } ; \mu ( \mathbf { z } _ { t } ) , \boldsymbol { \sigma } )$ : $1 2 8 \mathrm { R e L U + 2 0 ^ { 2 } }$ sigmoid output
|
| 362 |
+
• Recognition Model: $1 2 8 \mathrm { R e L U } + 2 0 $ identity output
|
| 363 |
+
|
| 364 |
+
$$
|
| 365 |
+
\begin{array} { r } { q ( \mathbf { w } _ { t } | \mathbf { z } _ { t } , \mathbf { x } _ { t + 1 } , \mathbf { u } _ { t } ) = \mathcal { N } ( \mathbf { w } _ { t } ; \boldsymbol { \mu } , \boldsymbol { \sigma } ) , } \\ { ( \boldsymbol { \mu } , \boldsymbol { \sigma } ) = f ( \mathbf { z } _ { t } , \mathbf { x } _ { t + 1 } , \mathbf { u } _ { t } ) } \end{array}
|
| 366 |
+
$$
|
| 367 |
+
|
| 368 |
+
• Transition Network ${ \pmb { \alpha } } _ { t } ( { \bf z } _ { t } )$ : 64 softmax output
|
| 369 |
+
• Initial Network $\mathbf { w } _ { 1 } \sim p ( \mathbf { x } _ { 1 : T } )$ : MLP with: $1 2 8 \mathrm { R e L U } + 1 0$ identity output
|
| 370 |
+
• Initial Transition ${ \bf z } _ { 1 } ( { \bf w } _ { 1 } )$ : $1 2 8 \mathrm { R e L U } + 1 0$ identity output
|
| 371 |
+
• Optimizer: adam, 0.001 step rate
|
| 372 |
+
• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every gradient update, $T _ { A } = 2 ~ 1 0 ^ { 5 }$ iterations
|
| 373 |
+
• Batch-size: 80
|
| 374 |
+
|
| 375 |
+
B.6 IMPLEMENTATION DETAILS FOR DKF IN PENDULUM EXPERIMENT
|
| 376 |
+
|
| 377 |
+
• Input: 15 timesteps of $1 6 ^ { 2 }$ observation dimensions and 1 action dimension
|
| 378 |
+
• Latent Space: 3 dimensions
|
| 379 |
+
• Observation Network $p ( \mathbf { x } _ { t } | \mathbf { z } _ { t } ) = { \mathcal { N } } ( \mathbf { x } _ { t } ; \mu ( \mathbf { z } _ { t } ) , \sigma ( \mathbf { z } _ { t } ) ) \colon 1 2 8 { \mathrm { ~ S i g m o i d } } + 1 2 8 { \mathrm { ~ S i g m o i d } } + 2 1 6 ^ { 2 }$ identity output
|
| 380 |
+
• Recognition Model: Fast Dropout BiRNN 128 Sigmoid $+ ~ 1 2 8$ Sigmoid $^ { + 3 }$ identity output
|
| 381 |
+
• Transition Network $p ( \mathbf { z } _ { t } | \mathbf { z } _ { t - 1 } , \mathbf { u } _ { t - 1 } )$ : 128 Sigmoid $+ ~ 1 2 8$ Sigmoid $+ ~ 6$ output
|
| 382 |
+
• Optimizer: adam, 0.001 step rate
|
| 383 |
+
• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every $2 5 \mathrm { t h }$ gradient update, $T _ { A } = 2 0 0 0$ iterations
|
| 384 |
+
• Batch-size: 500
|
parse/train/HyTqHL5xg/HyTqHL5xg_content_list.json
ADDED
|
@@ -0,0 +1,1812 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "DEEP VARIATIONAL BAYES FILTERS: UNSUPERVISED LEARNING OF STATE SPACE MODELS FROM RAW DATA ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
170
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Maximilian Karl, Maximilian Soelch, Justin Bayer, Patrick van der Smagt Data Lab, Volkswagen Group, 80805, München, Germany zip([maximilian.karl, maximilian.soelch], [@volkswagen.de]) ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
194,
|
| 20 |
+
702,
|
| 21 |
+
237
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
273,
|
| 32 |
+
544,
|
| 33 |
+
289
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We introduce Deep Variational Bayes Filters (DVBF), a new method for unsupervised learning and identification of latent Markovian state space models. Leveraging recent advances in Stochastic Gradient Variational Bayes, DVBF can overcome intractable inference distributions via variational inference. Thus, it can handle highly nonlinear input data with temporal and spatial dependencies such as image sequences without domain knowledge. Our experiments show that enabling backpropagation through transitions enforces state space assumptions and significantly improves information content of the latent embedding. This also enables realistic long-term prediction. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
310,
|
| 43 |
+
766,
|
| 44 |
+
435
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
477,
|
| 55 |
+
336,
|
| 56 |
+
492
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Estimating probabilistic models for sequential data is central to many domains, such as audio, natural language or physical plants, Graves (2013); Watter et al. (2015); Chung et al. (2015); Deisenroth & Rasmussen (2011); Ko & Fox (2011). The goal is to obtain a model $p ( \\mathbf { x } _ { 1 : T } )$ that best reflects a data set of observed sequences $\\mathbf { x } _ { \\mathrm { 1 : } T }$ . Recent advances in deep learning have paved the way to powerful models capable of representing high-dimensional sequences with temporal dependencies, e.g., Graves (2013); Watter et al. (2015); Chung et al. (2015); Bayer & Osendorfer (2014). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
512,
|
| 66 |
+
825,
|
| 67 |
+
597
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Time series for dynamic systems have been studied extensively in systems theory, cf. McGoff et al. (2015) and sources therein. In particular, state space models have shown to be a powerful tool to analyze and control the dynamics. Two tasks remain a significant challenge to this day: Can we identify the governing system from data only? And can we perform inference from observables to the latent system variables? These two tasks are competing: A more powerful representation of system requires more computationally demanding inference, and efficient inference, such as the well-known Kalman filters, Kalman & Bucy (1961), can prohibit sufficiently complex system classes. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
603,
|
| 77 |
+
825,
|
| 78 |
+
702
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Leveraging a recently proposed estimator based on variational inference, stochastic gradient variational Bayes (SGVB, Kingma & Welling (2013); Rezende et al. (2014)), approximate inference of latent variables becomes tractable. Extensions to time series have been shown in Bayer & Osendorfer (2014); Chung et al. (2015). Empirically, they showed considerable improvements in marginal data likelihood, i.e., compression, but lack full-information latent states, which prohibits, e.g., long-term sampling. Yet, in a wide range of applications, full-information latent states should be valued over compression. This is crucial if the latent spaces are used in downstream applications. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
708,
|
| 88 |
+
825,
|
| 89 |
+
805
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Our contribution is, to our knowledge, the first model that (i) enforces the latent state-space model assumptions, allowing for reliable system identification, and plausible long-term prediction of the observable system, (ii) provides the corresponding inference mechanism with rich dependencies, (iii) inherits the merit of neural architectures to be trainable on raw data such as images or other sensory inputs, and (iv) scales to large data due to optimization of parameters based on stochastic gradient descent, Bottou (2010). Hence, our model has the potential to exploit systems theory methodology for downstream tasks, e.g., control or model-based reinforcement learning, Sutton (1996). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
811,
|
| 99 |
+
825,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2 BACKGROUND AND RELATED WORK ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
102,
|
| 111 |
+
513,
|
| 112 |
+
118
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "2.1 PROBABILISTIC MODELING AND FILTERING OF DYNAMICAL SYSTEMS ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
132,
|
| 122 |
+
705,
|
| 123 |
+
148
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "We consider non-linear dynamical systems with observations $\\mathbf { x } _ { t } \\in \\mathcal { X } \\subset \\mathbb { R } ^ { n _ { x } }$ , depending on control inputs (or actions) $\\mathbf { u } _ { t } \\in \\mathcal { U } \\subset \\mathbb { R } ^ { n _ { u } }$ . Elements of $\\mathcal { X }$ can be high-dimensional sensory data, e.g., raw images. In particular they may exhibit complex non-Markovian transitions. Corresponding timediscrete sequences of length $\\mathrm { T }$ are denoted as $\\mathbf { x } _ { 1 : T } = ( \\mathbf { x } _ { 1 } , \\mathbf { x } _ { 2 } , \\ldots , \\mathbf { x } _ { T } )$ and $\\mathbf { u } _ { 1 : T } = ( \\mathbf { u } _ { 1 } , \\mathbf { u } _ { 2 } , \\ldots , \\mathbf { u } _ { T } )$ . ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
159,
|
| 133 |
+
825,
|
| 134 |
+
217
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "We are interested in a probabilistic model1 $p ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } )$ . Formally, we assume the graphical model ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
173,
|
| 143 |
+
222,
|
| 144 |
+
825,
|
| 145 |
+
238
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "equation",
|
| 151 |
+
"img_path": "images/d4968207dfaac3d3caba4c27897752320952d44474c31f7f81e4a25095440e31.jpg",
|
| 152 |
+
"text": "$$\np ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } ) = \\int p ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) p ( \\mathbf { z } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } ) \\mathrm { d } \\mathbf { z } _ { 1 : T } ,\n$$",
|
| 153 |
+
"text_format": "latex",
|
| 154 |
+
"bbox": [
|
| 155 |
+
290,
|
| 156 |
+
244,
|
| 157 |
+
705,
|
| 158 |
+
276
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "where $\\mathbf { z } _ { 1 : T }$ , $\\mathbf { z } _ { t } \\in \\mathcal { Z } \\subset \\mathbb { R } ^ { n _ { z } }$ , denotes the corresponding latent sequence. That is, we assume a generative model with an underlying latent dynamical system with emission model $p ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } , \\mathbf { u } _ { 1 : T } )$ and transition model $p ( \\mathbf { z } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } )$ . We want to learn both components, i.e., we want to perform latent system identification. In order to be able to apply the identified system in downstream tasks, we need to find efficient posterior inference distributions $p ( \\mathbf { z } _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } )$ . Three common examples are prediction, filtering, and smoothing: inference of $\\mathbf { z } _ { t }$ from $\\mathbf { x } _ { 1 : t - 1 }$ , $\\mathbf { x } _ { 1 : t }$ , or $\\mathbf { x } _ { 1 : T }$ , respectively. Accurate identification and efficient inference are generally competing tasks, as a wider generative model class typically leads to more difficult or even intractable inference. ",
|
| 165 |
+
"bbox": [
|
| 166 |
+
173,
|
| 167 |
+
281,
|
| 168 |
+
825,
|
| 169 |
+
395
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "The transition model is imperative for achieving good long-term results: a bad transition model can lead to divergence of the latent state. Accordingly, we put special emphasis on it through a Bayesian treatment. Assuming that the transitions may differ for each time step, we impose a regularizing prior distribution on a set of transition parameters $\\beta _ { 1 : T }$ : ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
173,
|
| 178 |
+
400,
|
| 179 |
+
825,
|
| 180 |
+
458
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "equation",
|
| 186 |
+
"img_path": "images/f97ad239be9a355bc266668b9da6c72491506ce1f273f55467d8db9cab826c51.jpg",
|
| 187 |
+
"text": "$$\n( 1 ) = \\iint p ( { \\bf x } _ { 1 : T } \\mid { \\bf z } _ { 1 : T } , { \\bf u } _ { 1 : T } ) p ( { \\bf z } _ { 1 : T } \\mid \\beta _ { 1 : T } , { \\bf u } _ { 1 : T } ) p ( \\beta _ { 1 : T } ) \\mathrm { d } \\beta _ { 1 : T } \\mathrm { d } { \\bf z } _ { 1 : T }\n$$",
|
| 188 |
+
"text_format": "latex",
|
| 189 |
+
"bbox": [
|
| 190 |
+
258,
|
| 191 |
+
463,
|
| 192 |
+
738,
|
| 193 |
+
496
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "To obtain state-space models, we impose assumptions on emission and state transition model, ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
501,
|
| 203 |
+
787,
|
| 204 |
+
517
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "equation",
|
| 210 |
+
"img_path": "images/46f16639f1049ca8e5aea2202adbb02f179280b9ac0062fa808591fd1f7fae07.jpg",
|
| 211 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle p ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) = \\prod _ { t = 1 \\atop t = 1 } ^ { T } p ( \\mathbf { x } _ { t } \\mid \\mathbf { z } _ { t } ) , } \\\\ { \\displaystyle p ( \\mathbf { z } _ { 1 : T } \\mid \\beta _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) = \\prod _ { t = 0 } ^ { T - 1 } p ( \\mathbf { z } _ { t + 1 } \\mid \\mathbf { z } _ { t } , \\mathbf { u } _ { t } , \\beta _ { t } ) . } \\end{array}\n$$",
|
| 212 |
+
"text_format": "latex",
|
| 213 |
+
"bbox": [
|
| 214 |
+
338,
|
| 215 |
+
523,
|
| 216 |
+
658,
|
| 217 |
+
612
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "Equations (3) and (4) assume that the current state $\\mathbf { z } _ { t }$ contains all necessary information about the current observation $\\mathbf { x } _ { t }$ , as well as the next state $\\mathbf { z } _ { t + 1 }$ (given the current control input $\\mathbf { u } _ { t }$ and transition parameters $\\beta _ { t }$ ). That is, in contrast to observations, $\\mathbf { z } _ { t }$ exhibits Markovian behavior. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
616,
|
| 227 |
+
825,
|
| 228 |
+
660
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "A typical example of these assumptions are Linear Gaussian Models (LGMs), i.e., both state transition and emission model are affine transformations with Gaussian offset noise, ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
169,
|
| 237 |
+
665,
|
| 238 |
+
823,
|
| 239 |
+
694
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 1
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "equation",
|
| 245 |
+
"img_path": "images/4346d7e55504a061320e2fcfe4e78736293df217192d3fd74698e0c26851b04c.jpg",
|
| 246 |
+
"text": "$$\n\\begin{array} { r l r } { \\mathbf { z } _ { t + 1 } = \\mathbf { F } _ { t } \\mathbf { z } _ { t } + \\mathbf { B } _ { t } \\mathbf { u } _ { t } + \\mathbf { w } _ { t } \\quad } & { } & { \\mathbf { w } _ { t } \\sim \\mathcal { N } ( \\mathbf { 0 } , \\mathbf { Q } _ { t } ) , } \\\\ { \\mathbf { x } _ { t } = \\mathbf { H } _ { t } \\mathbf { z } _ { t } + \\mathbf { y } _ { t } \\quad } & { } & { \\mathbf { y } _ { t } \\sim \\mathcal { N } ( \\mathbf { 0 } , \\mathbf { R } _ { t } ) . } \\end{array}\n$$",
|
| 247 |
+
"text_format": "latex",
|
| 248 |
+
"bbox": [
|
| 249 |
+
290,
|
| 250 |
+
700,
|
| 251 |
+
705,
|
| 252 |
+
738
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Typically, state transition matrix $\\mathbf { F } _ { t }$ and control-input matrix $\\mathbf { B } _ { t }$ are assumed to be given, so that $\\boldsymbol { \\beta } _ { t } = \\mathbf { w } _ { t }$ . Section 3.3 will show that our approach allows other variants such as $\\beta _ { t } = \\left( \\mathbf { F } _ { t } , \\mathbf { B } _ { t } , \\mathbf { w } _ { t } \\right)$ . Under the strong assumptions (5) and (6) of LGMs, inference is provably solved optimally by the well-known Kalman filters. While extensions of Kalman filters to nonlinear dynamical systems exist, Julier & Uhlmann (1997), and are successfully applied in many areas, they suffer from two major drawbacks: firstly, its assumptions are restrictive and are violated in practical applications, leading to suboptimal results. Secondly, parameters such as $\\mathbf { F } _ { t }$ and $\\mathbf { B } _ { t }$ have to be known in order to perform posterior inference. There have been efforts to learn such system dynamics, cf. Ghahramani $\\&$ Hinton (1996); Honkela et al. (2010) based on the expectation maximization (EM) algorithm or Valpola & Karhunen (2002), which uses neural networks. However, these algorithms are not applicable in cases where the true posterior distribution is intractable. This is the case if, e.g., image sequences are used, since the posterior is then highly nonlinear—typical mean-field assumptions on the approximate posterior are too simplified. Our new approach will tackle both issues, and moreover learn both identification and inference jointly by exploiting Stochastic Gradient Variational Bayes. ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
173,
|
| 261 |
+
742,
|
| 262 |
+
826,
|
| 263 |
+
882
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 1
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
103,
|
| 273 |
+
825,
|
| 274 |
+
160
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "2.2 STOCHASTIC GRADIENT VARIATIONAL BAYES (SGVB) FOR TIME SERIES DISTRIBUTIONS ",
|
| 281 |
+
"text_level": 1,
|
| 282 |
+
"bbox": [
|
| 283 |
+
173,
|
| 284 |
+
175,
|
| 285 |
+
725,
|
| 286 |
+
204
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "Replacing the bottleneck layer of a deterministic auto-encoder with stochastic units $\\mathbf { z }$ , the variational auto-encoder (VAE, Kingma & Welling (2013); Rezende et al. (2014)) learns complex marginal data distributions on $\\mathbf { x }$ in an unsupervised fashion from simpler distributions via the graphical model ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
176,
|
| 295 |
+
215,
|
| 296 |
+
823,
|
| 297 |
+
258
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "equation",
|
| 303 |
+
"img_path": "images/c570d54879ca96547bc8a517bef95c6b2c5d0083a9c631f8575b0845c774509b.jpg",
|
| 304 |
+
"text": "$$\np ( \\mathbf { x } ) = \\int p ( \\mathbf { x } , \\mathbf { z } ) \\mathrm { d } \\mathbf { z } = \\int p ( \\mathbf { x } \\mid \\mathbf { z } ) p ( \\mathbf { z } ) \\mathrm { d } \\mathbf { z } .\n$$",
|
| 305 |
+
"text_format": "latex",
|
| 306 |
+
"bbox": [
|
| 307 |
+
352,
|
| 308 |
+
260,
|
| 309 |
+
643,
|
| 310 |
+
292
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "In VAEs, $p ( \\mathbf { x } \\mid \\mathbf { z } ) \\equiv p _ { \\theta } ( \\mathbf { x } \\mid \\mathbf { z } )$ is typically parametrized by a neural network with parameters $\\theta$ . Within this framework, models are trained by maximizing a lower bound to the marginal data log-likelihood via stochastic gradients: ",
|
| 317 |
+
"bbox": [
|
| 318 |
+
173,
|
| 319 |
+
295,
|
| 320 |
+
825,
|
| 321 |
+
337
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "equation",
|
| 327 |
+
"img_path": "images/891adf64cc5daa021c5286634b5acd9d3638370cf4b22b0114c64ad308d75a19.jpg",
|
| 328 |
+
"text": "$$\n\\ln p ( \\mathbf { x } ) \\geq \\mathbb { E } _ { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } [ \\ln p _ { \\theta } ( \\mathbf { x } \\mid \\mathbf { z } ) ] - \\mathrm { K L } ( q _ { \\phi } ( \\mathbf { z } \\mid \\mathbf { x } ) \\mid \\mid p ( \\mathbf { z } ) ) = : \\mathcal { L } _ { \\mathrm { S G V B } } ( \\mathbf { x } , \\phi , \\theta )\n$$",
|
| 329 |
+
"text_format": "latex",
|
| 330 |
+
"bbox": [
|
| 331 |
+
245,
|
| 332 |
+
340,
|
| 333 |
+
751,
|
| 334 |
+
359
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 2
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "This is provably equivalent to minimizing the KL-divergence between the approximate posterior or recognition model $q _ { \\phi } ( \\mathbf { z } \\mid \\mathbf { x } )$ and the true, but usually intractable posterior distribution $p ( \\mathbf { z } \\mid \\mathbf { x } )$ . $q _ { \\phi }$ is parametrized by a neural network with parameters $\\phi$ . ",
|
| 341 |
+
"bbox": [
|
| 342 |
+
174,
|
| 343 |
+
359,
|
| 344 |
+
825,
|
| 345 |
+
401
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 2
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "The principle of VAEs has been transferred to time series, Bayer & Osendorfer (2014); Chung et al. (2015). Both employ nonlinear state transitions in latent space, but violate eq. (4): Observations are directly included in the transition process. Empirically, reconstruction and compression work well. The state space $\\mathcal { Z }$ , however, does not reflect all information available, which prohibits plausible generative long-term prediction. Such phenomena with generative models have been explained in Theis et al. (2015). ",
|
| 352 |
+
"bbox": [
|
| 353 |
+
173,
|
| 354 |
+
409,
|
| 355 |
+
825,
|
| 356 |
+
492
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 2
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "In Krishnan et al. (2015), the state-space assumptions (3) and (4) are softly encoded in the Deep Kalman Filter (DKF) model. Despite that, experiments, cf. section 4, show that their model fails to extract information such as velocity (and in general time derivatives), which leads to similar problems with prediction. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
173,
|
| 365 |
+
498,
|
| 366 |
+
825,
|
| 367 |
+
555
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 2
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "Johnson et al. (2016) give an algorithm for general graphical model variational inference, not tailored to dynamical systems. In contrast to previously discussed methods, it does not violate eq. (4). The approaches differ in that the recognition model outputs node potentials in combination with message passing to infer the latent state. Our approach focuses on learning dynamical systems for controlrelated tasks and therefore uses a neural network for inferring the latent state directly instead of an inference subroutine. ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
174,
|
| 376 |
+
561,
|
| 377 |
+
825,
|
| 378 |
+
645
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 2
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "Others have been specifically interested in applying variational inference for controlled dynamical systems. In Watter et al. (2015) (Embed to Control—E2C), a VAE is used to learn the mappings to and from latent space. The regularization is clearly motivated by eq. (7). Still, it fails to be a mathematically correct lower bound to the marginal data likelihood. More significantly, their recognition model requires all observations that contain information w.r.t. the current state. This is nothing short of an additional temporal i.i.d. assumption on data: Multiple raw samples need to be stacked into one training sample such that all latent factors (in particular all time derivatives) are present within one sample. The task is thus greatly simplified, because instead of time-series, we learn a static auto-encoder on the processed data. ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
174,
|
| 387 |
+
652,
|
| 388 |
+
825,
|
| 389 |
+
777
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 2
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "A pattern emerges: good prediction should boost compression. Still, previous methods empirically excel at compression, while prediction will not work. We conjecture that this is caused by previous methods trying to fit the latent dynamics to a latent state that is beneficial for reconstruction. This encourages learning of a stationary auto-encoder with focus of extracting as much from a single observation as possible. Importantly, it is not necessary to know the entire sequence for excellent reconstruction of single time steps. Once the latent states are set, it is hard to adjust the transition to them. This would require changing the latent states slightly, and that comes at a cost of decreasing the reconstruction (temporarily). The learning algorithm is stuck in a local optimum with good reconstruction and hence good compression only. Intriguingly, E2C bypasses this problem with its data augmentation. ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
784,
|
| 399 |
+
825,
|
| 400 |
+
924
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 2
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "image",
|
| 406 |
+
"img_path": "images/3575706f643090530f958bb9ba2559b160e8016b28d587187d9d19d1e13fff7e.jpg",
|
| 407 |
+
"image_caption": [
|
| 408 |
+
"Figure 1: Left: Graphical model for one transition under state-space model assumptions. The updated latent state $\\mathbf { z } _ { t + 1 }$ depends on the previous state $\\mathbf { z } _ { t }$ , control input $\\mathbf { u } _ { t }$ , and transition parameters $\\beta _ { t }$ . $\\mathbf { z } _ { t + 1 }$ contains all information for generating observation $\\mathbf { x } _ { t + 1 }$ . Diamond nodes indicate a deterministic dependency on parent nodes. Right: Inference performed during training (or while filtering). Past observations are indirectly used for inference as $\\mathbf { z } _ { t }$ contains all information about them. "
|
| 409 |
+
],
|
| 410 |
+
"image_footnote": [],
|
| 411 |
+
"bbox": [
|
| 412 |
+
316,
|
| 413 |
+
111,
|
| 414 |
+
676,
|
| 415 |
+
238
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "This leads to a key contribution of this paper: We force the latent space to fit the transition—reversing the direction, and thus achieving the state-space model assumptions and full information in the latent states. ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
174,
|
| 424 |
+
356,
|
| 425 |
+
825,
|
| 426 |
+
398
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 3
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "3 DEEP VARIATIONAL BAYES FILTERS ",
|
| 433 |
+
"text_level": 1,
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
417,
|
| 437 |
+
509,
|
| 438 |
+
435
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "3.1 REPARAMETRIZING THE TRANSITION ",
|
| 445 |
+
"text_level": 1,
|
| 446 |
+
"bbox": [
|
| 447 |
+
176,
|
| 448 |
+
449,
|
| 449 |
+
475,
|
| 450 |
+
463
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "The central problem for learning latent states system dynamics is efficient inference of a latent space that obeys state-space model assumptions. If the latter are fulfilled, the latent space must contain all information. Previous approaches emphasized good reconstruction, so that the space only contains information necessary for reconstruction of one time step. To overcome this, we establish gradient paths through transitions over time so that the transition becomes the driving factor for shaping the latent space, rather than adjusting the transition to the recognition model’s latent space. The key is to prevent the recognition model $\\bar { q _ { \\phi } } ( \\mathbf { z } _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } )$ from directly drawing the latent state $\\mathbf { z } _ { t }$ . ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
173,
|
| 459 |
+
474,
|
| 460 |
+
825,
|
| 461 |
+
574
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "Similar to the reparametrization trick from Kingma & Welling (2013); Rezende et al. (2014) for making the Monte Carlo estimate differentiable w.r.t. the parameters, we make the transition differentiable w.r.t. the last state and its parameters: ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
176,
|
| 470 |
+
579,
|
| 471 |
+
823,
|
| 472 |
+
622
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "equation",
|
| 478 |
+
"img_path": "images/e8760aa7ae63034c40da90e1b44b24dbae86079030ab536fc189dd2c0e60de10.jpg",
|
| 479 |
+
"text": "$$\n\\mathbf { z } _ { t + 1 } = f ( \\mathbf { z } _ { t } , \\mathbf { u } _ { t } , \\boldsymbol { \\beta } _ { t } )\n$$",
|
| 480 |
+
"text_format": "latex",
|
| 481 |
+
"bbox": [
|
| 482 |
+
428,
|
| 483 |
+
625,
|
| 484 |
+
570,
|
| 485 |
+
642
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Given the stochastic parameters $\\beta _ { t }$ , the state transition is deterministic (which in turn means that by marginalizing $\\beta _ { t }$ , we still have a stochastic transition). The immediate and crucial consequence is that errors in reconstruction of $\\mathbf { x } _ { t }$ from $\\mathbf { z } _ { t }$ are backpropagated directly through time. ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
643,
|
| 495 |
+
825,
|
| 496 |
+
686
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "This reparametrization has a couple of other important implications: the recognition model no longer infers latent states $\\mathbf { z } _ { t }$ , but transition parameters $\\beta _ { t }$ . In particular, the gradient $\\partial { \\mathbf z } _ { t + 1 } / \\partial { \\mathbf z } _ { t }$ is well-defined from (8)—gradient information can be backpropagated through the transition. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
693,
|
| 506 |
+
825,
|
| 507 |
+
736
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 3
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "This is different from the method used in Krishnan et al. (2015), where the transition only occurs in the KL-divergence term of their loss function (a variant of eq. (7)). No gradient from the generative model is backpropagated through the transitions. ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
176,
|
| 516 |
+
741,
|
| 517 |
+
823,
|
| 518 |
+
785
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 3
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "Much like in eq. (5), the stochastic parameters includes a corrective offset term $\\mathbf { w } _ { t }$ , which emphasizes the notion of the recognition model as a filter. In theory, the learning algorithm could still learn the transition as $\\mathbf { z } _ { t + 1 } = \\mathbf { w } _ { t }$ . However, the introduction of $\\beta _ { t }$ also enables us to regularize the transition with meaningful priors, which not only prevents overfitting the recognition model, but also enforces meaningful manifolds in the latent space via transition priors. Ignoring the potential of the transition over time yields large penalties from these priors. Thus, the problems outlined in Section 2 are overcome by construction. ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
174,
|
| 527 |
+
790,
|
| 528 |
+
825,
|
| 529 |
+
888
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 3
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "To install such transition priors, we split $\\boldsymbol { \\beta } _ { t } = \\left( \\mathbf { w } _ { t } , \\mathbf { v } _ { t } \\right)$ . The interpretation of $\\mathbf { w } _ { t }$ is a sample-specific process noise which can be inferred from incoming data, like in eq. (5). On the other hand, $\\mathbf { v } _ { t }$ are universal transition parameters, which are sample-independent (and are only inferred from data during training). This corresponds to the idea of weight uncertainty in Hinton $\\&$ Van Camp (1993). This interpretation leads to a natural factorization assumption on the recognition model: ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
174,
|
| 538 |
+
895,
|
| 539 |
+
823,
|
| 540 |
+
924
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 3
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "image",
|
| 546 |
+
"img_path": "images/2f06dc66adf13f953b2b283f158982e7fca52642d7eaad76f111e49d154273f4.jpg",
|
| 547 |
+
"image_caption": [
|
| 548 |
+
"(b) One particular example of a latent transition: local linearity. "
|
| 549 |
+
],
|
| 550 |
+
"image_footnote": [],
|
| 551 |
+
"bbox": [
|
| 552 |
+
202,
|
| 553 |
+
103,
|
| 554 |
+
486,
|
| 555 |
+
313
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "image",
|
| 561 |
+
"img_path": "images/9d5530af0592aa3f830396220bcbb3bd0b1e56b2fc31b89d38a842b3e0406bf6.jpg",
|
| 562 |
+
"image_caption": [
|
| 563 |
+
"Figure 2: Left: General architecture for DVBF. Stochastic transition parameters $\\beta _ { t }$ are inferred via the recognition model, e.g., a neural network. Based on a sampled $\\beta _ { t }$ , the state transition is computed deterministically. The updated latent state $\\mathbf { z } _ { t + 1 }$ is used for predicting $\\mathbf { x } _ { t + 1 }$ . For details, see section 3.1. Right: Zoom into latent space transition (red box in left figure). One exemplary transition is shown, the locally linear transition from section 3.3. "
|
| 564 |
+
],
|
| 565 |
+
"image_footnote": [],
|
| 566 |
+
"bbox": [
|
| 567 |
+
509,
|
| 568 |
+
121,
|
| 569 |
+
810,
|
| 570 |
+
291
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "",
|
| 577 |
+
"bbox": [
|
| 578 |
+
173,
|
| 579 |
+
455,
|
| 580 |
+
826,
|
| 581 |
+
498
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "equation",
|
| 587 |
+
"img_path": "images/0e95ebe86b573067d8096a1a603aedb86a75a0eb210c74a12541fc913ad5070d.jpg",
|
| 588 |
+
"text": "$$\nq _ { \\phi } ( \\beta _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } ) = q _ { \\phi } ( \\mathbf { w } _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } ) q _ { \\phi } ( \\mathbf { v } _ { 1 : T } )\n$$",
|
| 589 |
+
"text_format": "latex",
|
| 590 |
+
"bbox": [
|
| 591 |
+
349,
|
| 592 |
+
513,
|
| 593 |
+
648,
|
| 594 |
+
531
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 4
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "When using the fully trained model for generative sampling, i.e., sampling without input, the universal state transition parameters can still be drawn from $q _ { \\phi } ( \\mathbf { v } _ { 1 : T } )$ , whereas $\\mathbf { w } _ { 1 : T }$ is drawn from the prior in the absence of input data. ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
174,
|
| 603 |
+
546,
|
| 604 |
+
825,
|
| 605 |
+
589
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 4
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "Figure 1 shows the underlying graphical model and the inference procedure. Figure 2a shows a generic view on our new computational architecture. An example of a locally linear transition parametrization will be given in section 3.3. ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
173,
|
| 614 |
+
595,
|
| 615 |
+
825,
|
| 616 |
+
638
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 4
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "3.2 THE LOWER BOUND OBJECTIVE FUNCTION ",
|
| 623 |
+
"text_level": 1,
|
| 624 |
+
"bbox": [
|
| 625 |
+
174,
|
| 626 |
+
665,
|
| 627 |
+
519,
|
| 628 |
+
680
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "In analogy to eq. (7), we now derive a lower bound to the marginal likelihood $p ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } )$ . After reflecting the Markov assumptions (3) and (4) in the factorized likelihood (2), we have: ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
173,
|
| 637 |
+
695,
|
| 638 |
+
825,
|
| 639 |
+
726
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 4
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "equation",
|
| 645 |
+
"img_path": "images/af9ae5913e6d4a3023ea7e055ba04f05e374fca6889cf54e846207aa7396eeb0.jpg",
|
| 646 |
+
"text": "$$\np ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } ) = \\int \\int p ( \\beta _ { 1 : T } ) \\prod _ { t = 1 } ^ { T } p _ { \\theta } ( \\mathbf { x } _ { t } \\mid \\mathbf { z } _ { t } ) \\prod _ { t = 0 } ^ { T - 1 } p ( \\mathbf { z } _ { t + 1 } \\mid \\mathbf { z } _ { t } , \\mathbf { u } _ { t } , \\beta _ { t } ) \\mathrm { d } \\beta _ { 1 : T } \\mathrm { d } \\mathbf { z } _ { 1 : T }\n$$",
|
| 647 |
+
"text_format": "latex",
|
| 648 |
+
"bbox": [
|
| 649 |
+
225,
|
| 650 |
+
739,
|
| 651 |
+
771,
|
| 652 |
+
784
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "Due to the deterministic transition given $\\beta _ { t + 1 }$ , the last term is a product of Dirac distributions and the overall distribution simplifies greatly: ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
173,
|
| 661 |
+
799,
|
| 662 |
+
826,
|
| 663 |
+
828
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 4
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "equation",
|
| 669 |
+
"img_path": "images/88e7ae4797b5633519c77572e0e967194d68b3b2e519dfdaa4d60a2adfc57735.jpg",
|
| 670 |
+
"text": "$$\n\\begin{array} { l } { p ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } ) = \\displaystyle \\int p ( \\boldsymbol { \\beta } _ { 1 : T } ) \\prod _ { t = 1 } ^ { T } p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } _ { t } \\mid \\mathbf { z } _ { t } ) \\Big \\vert _ { \\mathbf { z } _ { t } = f \\left( \\mathbf { z } _ { t - 1 } , \\mathbf { u } _ { t - 1 } , \\boldsymbol { \\beta } _ { t - 1 } \\right) } \\mathrm { d } \\boldsymbol { \\beta } _ { 1 : T } } \\\\ { \\displaystyle \\left( = \\int p ( \\boldsymbol { \\beta } _ { 1 : T } ) p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } ) \\mathrm { d } \\boldsymbol { \\beta } _ { 1 : T } \\right) } \\end{array}\n$$",
|
| 671 |
+
"text_format": "latex",
|
| 672 |
+
"bbox": [
|
| 673 |
+
259,
|
| 674 |
+
843,
|
| 675 |
+
736,
|
| 676 |
+
924
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 4
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "The last formulation is for notational brevity: the term $p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } )$ is not independent of $\\beta _ { 1 : T }$ and $\\mathbf { u } _ { 1 : T }$ . We now derive the objective function, a lower bound to the data likelihood: ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
171,
|
| 685 |
+
103,
|
| 686 |
+
821,
|
| 687 |
+
132
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 5
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "equation",
|
| 693 |
+
"img_path": "images/1d26543005830c88b8ffd0233159e77be2c5238b1f739952af428cdee5ee0ecc.jpg",
|
| 694 |
+
"text": "$$\n\\begin{array}{c} \\ln p ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { u } _ { 1 : T } ) = \\ln \\int p ( \\beta _ { 1 : T } ) p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } ) { \\frac { q _ { \\phi } ( \\beta _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) } { q _ { \\phi } ( \\beta _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) } } \\mathrm { d } \\beta _ { 1 : T } \\\\ { \\geq \\int q _ { \\phi } ( \\beta _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) \\ln \\left( p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } ) { \\frac { p ( \\beta _ { 1 : T } ) } { q _ { \\phi } ( \\beta _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) } } \\right) \\mathrm { d } \\beta _ { 1 : T } } \\\\ { = \\mathbb { E } _ { q _ { \\phi } } [ \\ln p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } ) - \\ln q _ { \\phi } ( \\beta _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) + \\ln p ( \\beta _ { 1 : T } ) ] } \\\\ { = \\mathbb { E } _ { q _ { \\phi } } [ \\ln p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } ) ] - \\mathrm { K L } ( q _ { \\phi } ( \\beta _ { 1 : T } \\mid \\mathbf { x } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) \\mid \\mid p ( \\beta _ { 1 : T } ) ) } & { ( \\ln p ( \\beta _ { 1 : T } ) ) } \\\\ { = : { \\mathcal { L } } _ { \\mathrm { D V B F } } ( \\mathbf { x } _ { 1 : T } , \\theta , \\phi \\mid \\mathbf { u } _ { 1 : T } ) } \\end{array}\n$$",
|
| 695 |
+
"text_format": "latex",
|
| 696 |
+
"bbox": [
|
| 697 |
+
181,
|
| 698 |
+
136,
|
| 699 |
+
813,
|
| 700 |
+
265
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "Our experiments show that an annealed version of (10) is beneficial to the overall performance: ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
186,
|
| 709 |
+
265,
|
| 710 |
+
794,
|
| 711 |
+
280
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "equation",
|
| 717 |
+
"img_path": "images/68d6606f230929ebb0dceeccb13bbe97839363d47d8d39c2ed1cc74367de6a42.jpg",
|
| 718 |
+
"text": "$$\n( \\mathbf { 1 0 ^ { \\prime } } ) = \\mathbb { E } _ { q _ { \\phi } } [ c _ { i } \\ln p _ { \\theta } ( \\mathbf { x } _ { 1 : T } ~ \\vert ~ \\mathbf { z } _ { 1 : T } ) - \\ln q _ { \\phi } ( \\beta _ { 1 : T } ~ \\vert ~ \\mathbf { x } _ { 1 : T } , \\mathbf { u } _ { 1 : T } ) + c _ { i } \\ln p ( \\mathbf { w } _ { 1 : T } ) + \\ln p ( \\mathbf { v } _ { 1 : T } ) ]\n$$",
|
| 719 |
+
"text_format": "latex",
|
| 720 |
+
"bbox": [
|
| 721 |
+
199,
|
| 722 |
+
285,
|
| 723 |
+
797,
|
| 724 |
+
303
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 5
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "Here, $c _ { i } = \\operatorname* { m a x } ( 1 , 0 . 0 1 + i / T _ { A } )$ is an inverse temperature that increases linearly in the number of gradient updates $i$ until reaching 1 after $T _ { A }$ annealing iterations. Similar annealing schedules have been applied in, e.g., Ghahramani $\\&$ Hinton (2000); Mandt et al. (2016); Rezende & Mohamed (2015), where it is shown that they smooth the typically highly non-convex error landscape. Additionally, the transition prior $p ( \\mathbf { v } _ { 1 : T } )$ was estimated during optimization, i.e., through an empirical Bayes approach. In all experiments, we used isotropic Gaussian priors. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
173,
|
| 733 |
+
306,
|
| 734 |
+
826,
|
| 735 |
+
391
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 5
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "3.3 EXAMPLE: LOCALLY LINEAR TRANSITIONS ",
|
| 742 |
+
"text_level": 1,
|
| 743 |
+
"bbox": [
|
| 744 |
+
174,
|
| 745 |
+
406,
|
| 746 |
+
522,
|
| 747 |
+
421
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 5
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "We have derived a learning algorithm for time series with particular focus on general transitions in latent space. Inspired by Watter et al. (2015), this section will show how to learn a particular instance: locally linear state transitions. That is, we set eq. (8) to ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
173,
|
| 756 |
+
433,
|
| 757 |
+
826,
|
| 758 |
+
476
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 5
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "equation",
|
| 764 |
+
"img_path": "images/8d10cbee324d1ff819209078c5f9909359d74fcb8d38aae19f1f99f908db5e4e.jpg",
|
| 765 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { z } _ { t + 1 } = \\mathbf { A } _ { t } \\mathbf { z } _ { t } + \\mathbf { B } _ { t } \\mathbf { u } _ { t } + \\mathbf { C } _ { t } \\mathbf { w } _ { t } , \\qquad t = 1 , \\ldots , T , } \\end{array}\n$$",
|
| 766 |
+
"text_format": "latex",
|
| 767 |
+
"bbox": [
|
| 768 |
+
290,
|
| 769 |
+
479,
|
| 770 |
+
705,
|
| 771 |
+
497
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 5
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "where $\\mathbf { w } _ { t }$ is a stochastic sample from the recognition model and $\\mathbf { A } _ { t } , \\mathbf { B } _ { t }$ , and $\\mathbf { C } _ { t }$ are matrices of matching dimensions. They are stochastic functions of $\\mathbf { z } _ { t }$ and $\\mathbf { u } _ { t }$ (thus local linearity). We draw ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
174,
|
| 780 |
+
501,
|
| 781 |
+
825,
|
| 782 |
+
529
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 5
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "equation",
|
| 788 |
+
"img_path": "images/8f4b7522861531ac14c7de501ee91d39a4a1a81baa1658ae073dd80f4f3470ae.jpg",
|
| 789 |
+
"text": "$$\n\\mathbf { v } _ { t } = \\Big \\{ \\mathbf { A } _ { t } ^ { ( i ) } , \\mathbf { B } _ { t } ^ { ( i ) } , \\mathbf { C } _ { t } ^ { ( i ) } \\mid i = 1 , \\ldots , M \\Big \\} ,\n$$",
|
| 790 |
+
"text_format": "latex",
|
| 791 |
+
"bbox": [
|
| 792 |
+
362,
|
| 793 |
+
532,
|
| 794 |
+
633,
|
| 795 |
+
560
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 5
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "from $q _ { \\phi } ( \\mathbf { v } _ { t } )$ , i.e., $M$ triplets of matrices, each corresponding to data-independent, but learned globally linear system. These can be learned as point estimates. We employed a Bayesian treatment as in Blundell et al. (2015). We yield $\\mathbf { A } _ { t } , \\mathbf { B } _ { t }$ , and $\\mathbf { C } _ { t }$ as state- and control-dependent linear combinations: ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
174,
|
| 804 |
+
564,
|
| 805 |
+
823,
|
| 806 |
+
607
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 5
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "equation",
|
| 812 |
+
"img_path": "images/64057e6290652167d9bcdc372f79e505b7df2268ca402eef6e065cc7a8dadb6a.jpg",
|
| 813 |
+
"text": "$$\n\\begin{array}{c} \\begin{array} { r l r l r l } & { \\quad } & & { \\quad } & & { \\boldsymbol { \\alpha } _ { t } = f _ { \\psi } ( \\mathbf { z } _ { t } , \\mathbf { u } _ { t } ) \\in \\mathbb { R } ^ { M } } \\\\ & { \\quad } & & { \\quad } & { \\quad } & { \\quad } \\\\ & { \\quad } & { \\quad } & { \\quad } & { \\quad } & { \\quad } \\\\ & { \\quad } & { \\quad } & { \\quad } & { \\quad } & { \\quad } & { \\quad } \\\\ & { \\quad } & { \\quad } & { \\quad } & { \\quad } & { \\quad } & { \\quad } \\end{array} \\qquad \\begin{array} { r l } & { \\quad } & { \\quad } & { \\boldsymbol { \\alpha } _ { t } = f _ { \\psi } ( \\mathbf { z } _ { t } , \\mathbf { u } _ { t } ) \\in \\mathbb { R } ^ { M } } \\\\ & { \\quad } & { \\quad } \\\\ & { \\quad } & { \\quad } \\\\ & { \\quad } & { \\quad } & { \\quad } \\end{array} \\qquad \\mathbf { C } _ { t } = \\sum _ { i = 1 } ^ { M } { \\boldsymbol { \\alpha } _ { t } ^ { ( i ) } } \\mathbf { C } _ { t } ^ { ( i ) } \\end{array}\n$$",
|
| 814 |
+
"text_format": "latex",
|
| 815 |
+
"bbox": [
|
| 816 |
+
228,
|
| 817 |
+
622,
|
| 818 |
+
805,
|
| 819 |
+
689
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 5
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "The computation is depicted in fig. 2b. The function $f _ { \\psi }$ can be, e.g., a (deterministic) neural network with weights $\\psi$ . As a subset of the generative parameters $\\theta$ , $\\psi$ is part of the trainable parameters of our model. The weight vector $\\pmb { \\alpha } _ { t }$ is shared between the three matrices. There is a correspondence to eq. (5): ${ \\bf A } _ { t }$ and $\\mathbf { F } _ { t }$ , $\\mathbf { B } _ { t }$ and $\\mathbf { B } _ { t }$ , as well as $\\mathbf { C } _ { t } \\mathbf { C } _ { t } ^ { \\top }$ and $\\mathbf { Q } _ { t }$ are related. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
173,
|
| 828 |
+
699,
|
| 829 |
+
825,
|
| 830 |
+
756
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 5
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "We used this parametrization of the state transition model for our experiments. It is important that the parametrization is up to the user and the respective application. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
173,
|
| 839 |
+
762,
|
| 840 |
+
823,
|
| 841 |
+
791
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 5
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "4 EXPERIMENTS AND RESULTS ",
|
| 848 |
+
"text_level": 1,
|
| 849 |
+
"bbox": [
|
| 850 |
+
176,
|
| 851 |
+
810,
|
| 852 |
+
449,
|
| 853 |
+
827
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 5
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "In this section we validate that DVBF with locally linear transitions (DVBF-LL) (section 3.3) outperforms Deep Kalman Filters (DKF, Krishnan et al. (2015)) in recovering latent spaces with full information. 2 We focus on environments that can be simulated with full knowledge of the ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
173,
|
| 862 |
+
840,
|
| 863 |
+
826,
|
| 864 |
+
883
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 5
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "2We do not include E2C, Watter et al. (2015), due to the need for data modification and its inability to provide a correct lower bound as mentioned in section 2.2. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
173,
|
| 873 |
+
897,
|
| 874 |
+
825,
|
| 875 |
+
924
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 5
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "image",
|
| 881 |
+
"img_path": "images/89343f9239b5f95d0b3f05f420ceb14168472d729834fda8850d44f8baa77701.jpg",
|
| 882 |
+
"image_caption": [
|
| 883 |
+
"Figure 3: (a) Our DVBF-LL model trained on pendulum image sequences. The upper plots show the latent space with coloring according to the ground truth with angles on the left and angular velocities on the right. The lower plots show regression results for predicting ground truth from the latent representation. The latent space plots show clearly that all information for representing the full state of a pendulum is encoded in each latent state. (b) DKF from Krishnan et al. (2015) trained on the same pendulum dataset. The latent space plot shows that DKF fails to learn velocities of the pendulum. It is therefore not able to capture all information for representing the full pendulum state. "
|
| 884 |
+
],
|
| 885 |
+
"image_footnote": [],
|
| 886 |
+
"bbox": [
|
| 887 |
+
196,
|
| 888 |
+
99,
|
| 889 |
+
797,
|
| 890 |
+
349
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 6
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "ground truth latent dynamical system. The experimental setup is described in the Supplementary Material. We published the code for DVBF and a link will be made available at https://brml. org/projects/dvbf. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
174,
|
| 899 |
+
498,
|
| 900 |
+
826,
|
| 901 |
+
541
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 6
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "4.1 DYNAMIC PENDULUM ",
|
| 908 |
+
"text_level": 1,
|
| 909 |
+
"bbox": [
|
| 910 |
+
174,
|
| 911 |
+
558,
|
| 912 |
+
369,
|
| 913 |
+
571
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 6
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "In order to test our algorithm on truly non-Markovian observations of a dynamical system, we simulated a dynamic torque-controlled pendulum governed by the differential equation ",
|
| 920 |
+
"bbox": [
|
| 921 |
+
173,
|
| 922 |
+
584,
|
| 923 |
+
825,
|
| 924 |
+
613
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 6
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "equation",
|
| 930 |
+
"img_path": "images/a2c84e38c39e525dc1ff6ad2340e632908af077e0aa2ea41e9721ff6c3b0e4df.jpg",
|
| 931 |
+
"text": "$$\nm l ^ { 2 } { \\ddot { \\varphi } } ( t ) = - \\mu { \\dot { \\varphi } } ( t ) + m g l \\sin \\varphi ( t ) + u ( t ) ,\n$$",
|
| 932 |
+
"text_format": "latex",
|
| 933 |
+
"bbox": [
|
| 934 |
+
354,
|
| 935 |
+
619,
|
| 936 |
+
642,
|
| 937 |
+
637
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 6
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "$m = l = 1 , \\mu = 0 . 5 , g = 9 . 8 1$ , via numerical integration, and then converted the ground-truth angle $\\varphi$ into an image observation in $\\mathcal { X }$ . The one-dimensional control corresponds to angle acceleration (which is proportional to joint torque). Angle and angular velocity fully describe the system. ",
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
643,
|
| 947 |
+
825,
|
| 948 |
+
688
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 6
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Figure 3 shows the latent spaces for identical input data learned by DVBF-LL and DKF, respectively, colored with the ground truth in the top row. It should be noted that latent samples are shown, not means of posterior distributions. The state-space model was allowed to use three latent dimensions. As we can see in fig. 3a, DVBF-LL learned a two-dimensional manifold embedding, i.e., it encoded the angle in polar coordinates (thus circumventing the discontinuity of angles modulo $2 \\pi$ ). The bottom row shows ordinary least-squares regressions (OLS) underlining the performance: there exists a high correlation between latent states and ground-truth angle and angular velocity for DVBF-LL. On the contrary, fig. 3b verifies our prediction that DKF is equally capable of learning the angle, but extracts little to no information on angular velocity. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
173,
|
| 957 |
+
693,
|
| 958 |
+
826,
|
| 959 |
+
819
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 6
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "The OLS regression results shown in table 1 validate this observation.3 Predicting $\\sin ( \\varphi )$ and $\\cos ( \\varphi )$ , i.e., polar coordinates of the ground-truth angle $\\varphi$ , works almost equally well for DVBF-LL and DKF, with DVBF-LL slightly outperforming DKF. For predicting the ground truth velocity $\\dot { \\varphi }$ , DVBF-LL shows remarkable performance. DKF, instead, contains hardly any information, resulting in a very low goodness-of-fit score of $R ^ { 2 } = 0 . 0 3 5$ . ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
173,
|
| 968 |
+
825,
|
| 969 |
+
826,
|
| 970 |
+
868
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 6
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "table",
|
| 976 |
+
"img_path": "images/97bb943c76be0c1bc1610950d8d37237225c28f1948f27e3e996f91c92ed7272.jpg",
|
| 977 |
+
"table_caption": [
|
| 978 |
+
"Table 1: Results for pendulum OLS regressions of all latent states on respective dependent variable. "
|
| 979 |
+
],
|
| 980 |
+
"table_footnote": [],
|
| 981 |
+
"table_body": "<table><tr><td colspan=\"3\">DVBF-LL</td><td colspan=\"2\">DKF</td></tr><tr><td></td><td></td><td>Log-Likelihood</td><td>R² Log-Likelihood</td><td>R²</td></tr><tr><td>Dependent</td><td>sin()</td><td>3990.8</td><td>0.961 0.982</td><td>1737.6 0.929</td></tr><tr><td>ground truth</td><td>cos()</td><td>7231.1</td><td>6614.2</td><td>0.979</td></tr><tr><td>variable</td><td>6</td><td>-11139 0.916</td><td>-20289</td><td>0.035</td></tr></table>",
|
| 982 |
+
"bbox": [
|
| 983 |
+
227,
|
| 984 |
+
138,
|
| 985 |
+
772,
|
| 986 |
+
213
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 7
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "image",
|
| 992 |
+
"img_path": "images/886df3e2f7dd268db086c2c03abc30a59759b198fe32da3389af3e840dbf5cc5.jpg",
|
| 993 |
+
"image_caption": [
|
| 994 |
+
"(b) Reconstructive latent walk. "
|
| 995 |
+
],
|
| 996 |
+
"image_footnote": [],
|
| 997 |
+
"bbox": [
|
| 998 |
+
521,
|
| 999 |
+
262,
|
| 1000 |
+
776,
|
| 1001 |
+
431
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 7
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "image",
|
| 1007 |
+
"img_path": "images/d58aeaeeefb189a121cf98cce5b00a9f7e03e587fd265f3883b8988c3b5125e1.jpg",
|
| 1008 |
+
"image_caption": [
|
| 1009 |
+
"(a) Generative latent walk. ",
|
| 1010 |
+
"(c) Ground truth (top), reconstructions (middle), generative samples (bottom) from identical initial latent state. ",
|
| 1011 |
+
"Figure 4: (a) Latent space walk in generative mode. (b) Latent space walk in filtering mode. (c) Ground truth and samples from recognition and generative model. The reconstruction sampling has access to observation sequence and performs filtering. The generative samples only get access to the observations once for creating the initial state while all subsequent samples are predicted from this single initial state. The red bar indicates the length of training sequences. Samples beyond show the generalization capabilities for sequences longer than during training. The complete sequence can be found in the Appendix in fig. 7. "
|
| 1012 |
+
],
|
| 1013 |
+
"image_footnote": [],
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
230,
|
| 1016 |
+
262,
|
| 1017 |
+
485,
|
| 1018 |
+
433
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 7
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "table",
|
| 1024 |
+
"img_path": "images/0bda0edc9c640a14782193ac928d48fc81fbe31215bb5bcb175fdb6e40da574f.jpg",
|
| 1025 |
+
"table_caption": [],
|
| 1026 |
+
"table_footnote": [],
|
| 1027 |
+
"table_body": "<table><tr><td rowspan=1 colspan=31>1 5 10 15 20 40 45</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>`</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>、</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>·</td><td rowspan=1 colspan=1>·</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>·</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>、</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>、</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>.</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>,</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td></tr></table>",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
173,
|
| 1030 |
+
478,
|
| 1031 |
+
825,
|
| 1032 |
+
531
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 7
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
174,
|
| 1041 |
+
707,
|
| 1042 |
+
823,
|
| 1043 |
+
734
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 7
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "Figure 4 shows that the strong relation between ground truth and latent state is beneficial for generative sampling. All plots show 100 time steps of a pendulum starting from the exact same latent state and not being actuated. The top row plots show a purely generative walk in the latent space on the left, and a walk in latent space that is corrected by filtering observations on the right. We can see that both follow a similar trajectory to an attractor. The generative model is more prone to noise when approaching the attractor. ",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
173,
|
| 1052 |
+
741,
|
| 1053 |
+
825,
|
| 1054 |
+
825
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 7
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "The bottom plot shows the first 45 steps of the corresponding observations (top row), reconstructions (middle row), and generative samples (without correcting from observations). Interestingly, DVBF works very well even though the sequence is much longer than all training sequences (indicated by the red line). ",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
174,
|
| 1063 |
+
832,
|
| 1064 |
+
825,
|
| 1065 |
+
888
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 7
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "Table (2) shows values of the lower bound to the marginal data likelihood (for DVBF-LL, this corresponds to eq. (11)). We see that DVBF-LL outperforms DKF in terms of compression, but only with a slight margin, which does not reflect the better generative sampling as Theis et al. (2015) argue. ",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
174,
|
| 1074 |
+
895,
|
| 1075 |
+
821,
|
| 1076 |
+
924
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 7
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "image",
|
| 1082 |
+
"img_path": "images/c9482434209e7dde8771c88440c90feb407a9a4f7b03d8c70dac223a41f3459b.jpg",
|
| 1083 |
+
"image_caption": [
|
| 1084 |
+
"Figure 5: (a) Two dimensions of 4D bouncing ball latent space. Ground truth x and y coordinates are combined into a regular $3 \\times 3$ checkerboard coloring. This checkerboard is correctly extracted by the embedding. (b) Remaining two latent dimensions. Same latent samples, colored with ball velocities in x and y direction (left and right image, respectively). The smooth, perpendicular coloring indicates that the ground truth value is stored in the latent dimension. "
|
| 1085 |
+
],
|
| 1086 |
+
"image_footnote": [],
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
171,
|
| 1089 |
+
138,
|
| 1090 |
+
807,
|
| 1091 |
+
352
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 8
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
174,
|
| 1100 |
+
487,
|
| 1101 |
+
823,
|
| 1102 |
+
515
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 8
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "4.2 BOUNCING BALL ",
|
| 1109 |
+
"text_level": 1,
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
176,
|
| 1112 |
+
546,
|
| 1113 |
+
334,
|
| 1114 |
+
560
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 8
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "The bouncing ball experiment features a ball rolling within a bounding box in a plane. The system has a two-dimensional control input, added to the directed velocity of the ball. If the ball hits the wall, it bounces off, so that the true dynamics are highly dependent on the current position and velocity of the ball. The system’s state is four-dimensional, two dimensions each for position and velocity. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
174,
|
| 1123 |
+
578,
|
| 1124 |
+
825,
|
| 1125 |
+
633
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 8
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Consequently, we use a DVBF-LL with four latent dimensions. Figure 5 shows that DVBF again captures the entire system dynamics in the latent space. The checkerboard is quite a remarkable result: the ground truth position of the ball lies within the 2D unit square, the bounding box. In order to visualize how ground truth reappears in the learned latent states, we show the warping of the ground truth bounding box into the latent space. To this end, we partitioned (discretized) the ground truth unit square into a regular 3x3 checkerboard with respective coloring. We observed that DVBF learned to extract the 2D position from the 256 pixels, and aligned them in two dimensions of the latent space in strong correspondence to the physical system. The algorithm does the exact same pixel-to-2D inference that a human observer automatically does when looking at the image. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
173,
|
| 1134 |
+
641,
|
| 1135 |
+
825,
|
| 1136 |
+
767
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 8
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "image",
|
| 1142 |
+
"img_path": "images/0fee90b828d2c622647068fb4a7868c7ca217d5d2ed1f6ad3072d29a40f8c53b.jpg",
|
| 1143 |
+
"image_caption": [
|
| 1144 |
+
"Figure 6: Ground truth (top), reconstructions (middle), generative samples (bottom) from identical initial latent state for the two bouncing balls experiment. Red bar indicates length of training sequences. "
|
| 1145 |
+
],
|
| 1146 |
+
"image_footnote": [],
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
173,
|
| 1149 |
+
800,
|
| 1150 |
+
825,
|
| 1151 |
+
856
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 8
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "4.3 TWO BOUNCING BALLS ",
|
| 1158 |
+
"text_level": 1,
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
174,
|
| 1161 |
+
103,
|
| 1162 |
+
382,
|
| 1163 |
+
117
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 9
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "Another more complex environment4 features two balls in a bounding box. We used a 10-dimensional latent space to fully capture the position and velocity information of the balls. Reconstruction and generative samples are shown in fig. 6. Same as in the pendulum example we get a generative model with stable predictions beyond training data sequence length. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
174,
|
| 1172 |
+
130,
|
| 1173 |
+
825,
|
| 1174 |
+
185
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 9
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "5 CONCLUSION ",
|
| 1181 |
+
"text_level": 1,
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
176,
|
| 1184 |
+
207,
|
| 1185 |
+
318,
|
| 1186 |
+
223
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 9
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "We have proposed Deep Variational Bayes Filters (DVBF), a new method to learn state space models from raw non-Markovian sequence data. DVBFs perform latent dynamic system identification, and subsequently overcome intractable inference. As DVBFs make use of stochastic gradient variational Bayes they naturally scale to large data sets. In a series of vision-based experiments we demonstrated that latent states can be recovered which identify the underlying physical quantities. The generative model showed stable long-term predictions far beyond the sequence length used during training. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
174,
|
| 1195 |
+
239,
|
| 1196 |
+
825,
|
| 1197 |
+
324
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 9
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 1204 |
+
"text_level": 1,
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
176,
|
| 1207 |
+
340,
|
| 1208 |
+
334,
|
| 1209 |
+
354
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 9
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Part of this work was conducted at Chair of Robotics and Embedded Systems, Department of Informatics, Technische Universität München, Germany, and supported by the TACMAN project, EC Grant agreement no. 610967, within the FP7 framework programme. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
176,
|
| 1218 |
+
364,
|
| 1219 |
+
821,
|
| 1220 |
+
407
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 9
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "We would like to thank Jost Tobias Springenberg, Adam Kosiorek, Moritz Münst, and anonymous reviewers for valuable input. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
173,
|
| 1229 |
+
414,
|
| 1230 |
+
823,
|
| 1231 |
+
443
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 9
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "REFERENCES ",
|
| 1238 |
+
"text_level": 1,
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
176,
|
| 1241 |
+
464,
|
| 1242 |
+
287,
|
| 1243 |
+
479
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 9
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
173,
|
| 1252 |
+
488,
|
| 1253 |
+
825,
|
| 1254 |
+
517
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 9
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. arXiv preprint arXiv:1505.05424, 2015. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
171,
|
| 1263 |
+
527,
|
| 1264 |
+
825,
|
| 1265 |
+
558
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 9
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Léon Bottou. Large-scale machine learning with stochastic gradient descent. In Proceedings of COMPSTAT’2010, pp. 177–186. Springer, 2010. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
171,
|
| 1274 |
+
568,
|
| 1275 |
+
825,
|
| 1276 |
+
597
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 9
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C. Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. CoRR, abs/1506.02216, 2015. URL http://arxiv.org/abs/1506.02216. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
173,
|
| 1285 |
+
607,
|
| 1286 |
+
826,
|
| 1287 |
+
651
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 9
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on machine learning (ICML-11), pp. 465–472, 2011. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
173,
|
| 1296 |
+
661,
|
| 1297 |
+
826,
|
| 1298 |
+
704
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 9
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Zoubin Ghahramani and Geoffrey E Hinton. Parameter estimation for linear dynamical systems. Technical report, Technical Report CRG-TR-96-2, University of Toronto, Dept. of Computer Science, 1996. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
174,
|
| 1307 |
+
715,
|
| 1308 |
+
826,
|
| 1309 |
+
757
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 9
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Zoubin Ghahramani and Geoffrey E Hinton. Variational learning for switching state-space models. Neural computation, 12(4):831–864, 2000. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
169,
|
| 1318 |
+
768,
|
| 1319 |
+
825,
|
| 1320 |
+
797
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 9
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
173,
|
| 1329 |
+
809,
|
| 1330 |
+
823,
|
| 1331 |
+
838
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 9
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
174,
|
| 1340 |
+
849,
|
| 1341 |
+
826,
|
| 1342 |
+
891
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 9
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "4We used the script attached to Sutskever & Hinton (2007) for generating our datasets. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
197,
|
| 1351 |
+
910,
|
| 1352 |
+
705,
|
| 1353 |
+
924
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 9
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Antti Honkela, Tapani Raiko, Mikael Kuusela, Matti Tornio, and Juha Karhunen. Approximate riemannian conjugate gradient learning for fixed-form variational bayes. Journal of Machine Learning Research, 11(Nov):3235–3268, 2010. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
174,
|
| 1362 |
+
103,
|
| 1363 |
+
823,
|
| 1364 |
+
146
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Matthew J Johnson, David Duvenaud, Alexander B Wiltschko, Sandeep R Datta, and Ryan P Adams. Structured VAEs: Composing probabilistic graphical models and variational autoencoders. arXiv preprint arXiv:1603.06277, 2016. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
174,
|
| 1373 |
+
155,
|
| 1374 |
+
823,
|
| 1375 |
+
196
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 10
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Simon J Julier and Jeffrey K Uhlmann. New extension of the kalman filter to nonlinear systems. In AeroSense’97, pp. 182–193. International Society for Optics and Photonics, 1997. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
171,
|
| 1384 |
+
207,
|
| 1385 |
+
823,
|
| 1386 |
+
236
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 10
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Rudolph E Kalman and Richard S Bucy. New results in linear filtering and prediction theory. Journal of basic engineering, 83(1):95–108, 1961. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
173,
|
| 1395 |
+
244,
|
| 1396 |
+
823,
|
| 1397 |
+
273
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 10
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
173,
|
| 1406 |
+
281,
|
| 1407 |
+
823,
|
| 1408 |
+
310
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 10
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "Jonathan Ko and Dieter Fox. Learning gp-bayesfilters via gaussian process latent variable models. Autonomous Robots, 30(1):3–23, 2011. ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
171,
|
| 1417 |
+
319,
|
| 1418 |
+
823,
|
| 1419 |
+
349
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 10
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "Rahul G Krishnan, Uri Shalit, and David Sontag. Deep Kalman filters. arXiv preprint arXiv:1511.05121, 2015. ",
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
173,
|
| 1428 |
+
357,
|
| 1429 |
+
823,
|
| 1430 |
+
387
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 10
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "Stephan Mandt, James McInerney, Farhan Abrol, Rajesh Ranganath, and David Blei. Variational tempering. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, pp. 704–712, 2016. ",
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
173,
|
| 1439 |
+
395,
|
| 1440 |
+
826,
|
| 1441 |
+
438
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 10
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "Kevin McGoff, Sayan Mukherjee, Natesh Pillai, et al. Statistical inference for dynamical systems: A review. Statistics Surveys, 9:209–252, 2015. ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
173,
|
| 1450 |
+
446,
|
| 1451 |
+
821,
|
| 1452 |
+
476
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 10
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"text": "Danilo J. Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Tony Jebara and Eric P. Xing (eds.), Proceedings of the 31st International Conference on Machine Learning (ICML-14), pp. 1278–1286. JMLR Workshop and Conference Proceedings, 2014. URL http://jmlr.org/proceedings/ papers/v32/rezende14.pdf. ",
|
| 1459 |
+
"bbox": [
|
| 1460 |
+
173,
|
| 1461 |
+
484,
|
| 1462 |
+
826,
|
| 1463 |
+
555
|
| 1464 |
+
],
|
| 1465 |
+
"page_idx": 10
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "text",
|
| 1469 |
+
"text": "Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. arXiv preprint arXiv:1505.05770, 2015. ",
|
| 1470 |
+
"bbox": [
|
| 1471 |
+
171,
|
| 1472 |
+
564,
|
| 1473 |
+
825,
|
| 1474 |
+
593
|
| 1475 |
+
],
|
| 1476 |
+
"page_idx": 10
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"type": "text",
|
| 1480 |
+
"text": "Ilya Sutskever and Geoffrey E. Hinton. Learning multilevel distributed representations for high-dimensional sequences. In Marina Meila and Xiaotong Shen (eds.), Proceedings of the Eleventh International Conference on Artificial Intelligence and Statistics (AISTATS-07), volume 2, pp. 548–555. Journal of Machine Learning Research - Proceedings Track, 2007. URL http://jmlr.csail.mit.edu/proceedings/papers/v2/sutskever07a/ sutskever07a.pdf. ",
|
| 1481 |
+
"bbox": [
|
| 1482 |
+
174,
|
| 1483 |
+
602,
|
| 1484 |
+
826,
|
| 1485 |
+
686
|
| 1486 |
+
],
|
| 1487 |
+
"page_idx": 10
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "Leonid Kuvayev Rich Sutton. Model-based reinforcement learning with an approximate, learned model. In Proceedings of the ninth Yale workshop on adaptive and learning systems, pp. 101–105, 1996. ",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
173,
|
| 1494 |
+
694,
|
| 1495 |
+
826,
|
| 1496 |
+
737
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 10
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "Lucas Theis, Aäron van den Oord, and Matthias Bethge. A note on the evaluation of generative models. arXiv preprint arXiv:1511.01844, 2015. ",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
173,
|
| 1505 |
+
746,
|
| 1506 |
+
821,
|
| 1507 |
+
775
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 10
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "Harri Valpola and Juha Karhunen. An unsupervised ensemble learning method for nonlinear dynamic state-space models. Neural computation, 14(11):2647–2692, 2002. ",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
173,
|
| 1516 |
+
784,
|
| 1517 |
+
823,
|
| 1518 |
+
813
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 10
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"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 Advances in Neural Information Processing Systems, pp. 2728–2736, 2015. ",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
173,
|
| 1527 |
+
821,
|
| 1528 |
+
826,
|
| 1529 |
+
864
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 10
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "A SUPPLEMENTARY TO LOWER BOUND ",
|
| 1536 |
+
"text_level": 1,
|
| 1537 |
+
"bbox": [
|
| 1538 |
+
176,
|
| 1539 |
+
102,
|
| 1540 |
+
519,
|
| 1541 |
+
118
|
| 1542 |
+
],
|
| 1543 |
+
"page_idx": 11
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"type": "text",
|
| 1547 |
+
"text": "A.1 ANNEALED KL-DIVERGENCE ",
|
| 1548 |
+
"text_level": 1,
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
174,
|
| 1551 |
+
135,
|
| 1552 |
+
428,
|
| 1553 |
+
150
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 11
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"text": "We used the analytical solution of the annealed KL-divergence in eq. (10) for optimization: ",
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
168,
|
| 1562 |
+
161,
|
| 1563 |
+
769,
|
| 1564 |
+
179
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 11
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"type": "equation",
|
| 1570 |
+
"img_path": "images/44b2f95f328037b96719d78948b36f215713eae436dc1023c3e1884a3dd7cce8.jpg",
|
| 1571 |
+
"text": "$$\n\\begin{array} { r l r } & { } & { \\mathbb { E } _ { q _ { \\phi } } [ - \\ln q _ { \\phi } ( { \\bf w } _ { 1 : T } \\mid { \\bf x } _ { 1 : T } , { \\bf u } _ { 1 : T } ) + c _ { i } \\ln p ( { \\bf w } _ { 1 : T } ) ] = } \\\\ & { } & { c _ { i } \\frac { 1 } { 2 } \\ln ( 2 \\pi \\sigma _ { p } ^ { 2 } ) - \\frac { 1 } { 2 } \\ln ( 2 \\pi \\sigma _ { q } ^ { 2 } ) + c _ { i } \\frac { \\sigma _ { q } ^ { 2 } + ( \\mu _ { q } - \\mu _ { p } ) ^ { 2 } } { 2 \\sigma _ { p } ^ { 2 } } - \\frac { 1 } { 2 } } \\end{array}\n$$",
|
| 1572 |
+
"text_format": "latex",
|
| 1573 |
+
"bbox": [
|
| 1574 |
+
313,
|
| 1575 |
+
207,
|
| 1576 |
+
684,
|
| 1577 |
+
267
|
| 1578 |
+
],
|
| 1579 |
+
"page_idx": 11
|
| 1580 |
+
},
|
| 1581 |
+
{
|
| 1582 |
+
"type": "text",
|
| 1583 |
+
"text": "B SUPPLEMENTARY TO IMPLEMENTATION ",
|
| 1584 |
+
"text_level": 1,
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
173,
|
| 1587 |
+
285,
|
| 1588 |
+
540,
|
| 1589 |
+
301
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 11
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "B.1 EXPERIMENTAL SETUP ",
|
| 1596 |
+
"text_level": 1,
|
| 1597 |
+
"bbox": [
|
| 1598 |
+
174,
|
| 1599 |
+
318,
|
| 1600 |
+
377,
|
| 1601 |
+
333
|
| 1602 |
+
],
|
| 1603 |
+
"page_idx": 11
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "text",
|
| 1607 |
+
"text": "In all our experiments, we use sequences of 15 raw images of the respective system with $1 6 \\times 1 6$ pixels each, i.e., observation space $\\mathcal { X } \\subset \\mathbb { R } ^ { 2 5 6 }$ , as well as control inputs of varying dimension and interpretation depending on the experiment. We used training, validation and test sets with 500 sequences each. Control input sequences were drawn randomly (“motor babbling”). Additional details about the implementation can be found in the published code at https://brml.org/ projects/dvbf. ",
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
173,
|
| 1610 |
+
345,
|
| 1611 |
+
826,
|
| 1612 |
+
430
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 11
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "B.2 ADDITIONAL EXPERIMENT PLOTS ",
|
| 1619 |
+
"text_level": 1,
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
176,
|
| 1622 |
+
450,
|
| 1623 |
+
455,
|
| 1624 |
+
464
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 11
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "image",
|
| 1630 |
+
"img_path": "images/e2917c69eb71d5423688cb5a5187f15f229e6017c11ecfbeb490972b4bf65861.jpg",
|
| 1631 |
+
"image_caption": [],
|
| 1632 |
+
"image_footnote": [],
|
| 1633 |
+
"bbox": [
|
| 1634 |
+
176,
|
| 1635 |
+
486,
|
| 1636 |
+
823,
|
| 1637 |
+
518
|
| 1638 |
+
],
|
| 1639 |
+
"page_idx": 11
|
| 1640 |
+
},
|
| 1641 |
+
{
|
| 1642 |
+
"type": "text",
|
| 1643 |
+
"text": "Figure 7: Ground truth and samples from recognition and generative model. Complete version of fig. 4 with all missing samples present. ",
|
| 1644 |
+
"bbox": [
|
| 1645 |
+
173,
|
| 1646 |
+
530,
|
| 1647 |
+
825,
|
| 1648 |
+
559
|
| 1649 |
+
],
|
| 1650 |
+
"page_idx": 11
|
| 1651 |
+
},
|
| 1652 |
+
{
|
| 1653 |
+
"type": "text",
|
| 1654 |
+
"text": "B.3 IMPLEMENTATION DETAILS FOR DVBF IN PENDULUM EXPERIMENT ",
|
| 1655 |
+
"bbox": [
|
| 1656 |
+
174,
|
| 1657 |
+
606,
|
| 1658 |
+
689,
|
| 1659 |
+
622
|
| 1660 |
+
],
|
| 1661 |
+
"page_idx": 11
|
| 1662 |
+
},
|
| 1663 |
+
{
|
| 1664 |
+
"type": "text",
|
| 1665 |
+
"text": "• Input: 15 timesteps of $1 6 ^ { 2 }$ observation dimensions and 1 action dimension \n• Latent Space: 3 dimensions \n• Observation Network $p ( \\mathbf { x } _ { t } | \\mathbf { z } _ { t } ) = \\mathcal { N } ( \\mathbf { x } _ { t } ; \\mu ( \\mathbf { z } _ { t } ) , \\boldsymbol { \\sigma } )$ : $1 2 8 \\mathrm { R e L U + 1 6 ^ { 2 } }$ identity output \n• Recognition Model: $1 2 8 { \\mathrm { R e L U } } + 6$ identity output ",
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
217,
|
| 1668 |
+
627,
|
| 1669 |
+
782,
|
| 1670 |
+
709
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 11
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"type": "equation",
|
| 1676 |
+
"img_path": "images/bebe4f1e24da8d062d155f65cb381e65e1a0c05e84feab2ab2b37326e3f11efd.jpg",
|
| 1677 |
+
"text": "$$\n\\begin{array} { r } { q ( \\mathbf { w } _ { t } | \\mathbf { z } _ { t } , \\mathbf { x } _ { t + 1 } , \\mathbf { u } _ { t } ) = \\mathcal { N } ( \\mathbf { w } _ { t } ; \\boldsymbol { \\mu } , \\boldsymbol { \\sigma } ) , } \\\\ { ( \\boldsymbol { \\mu } , \\boldsymbol { \\sigma } ) = f ( \\mathbf { z } _ { t } , \\mathbf { x } _ { t + 1 } , \\mathbf { u } _ { t } ) } \\end{array}\n$$",
|
| 1678 |
+
"text_format": "latex",
|
| 1679 |
+
"bbox": [
|
| 1680 |
+
411,
|
| 1681 |
+
718,
|
| 1682 |
+
645,
|
| 1683 |
+
755
|
| 1684 |
+
],
|
| 1685 |
+
"page_idx": 11
|
| 1686 |
+
},
|
| 1687 |
+
{
|
| 1688 |
+
"type": "text",
|
| 1689 |
+
"text": "• Transition Network ${ \\pmb { \\alpha } } _ { t } ( { \\bf z } _ { t } )$ : 16 softmax output \n• Initial Network $\\mathbf { w } _ { 1 } \\sim p ( \\mathbf { x } _ { 1 : T } )$ : Fast Dropout BiRNN with: $1 2 8 { \\mathrm { R e L U } } + 3$ identity output \n• Initial Transition ${ \\bf z } _ { 1 } ( { \\bf w } _ { 1 } )$ : $1 2 8 { \\mathrm { R e L U } } + 3$ identity output \n• Optimizer: adadelta, 0.1 step rate \n• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every 250th gradient update, $T _ { A } = 1 0 ^ { 5 }$ iterations \n• Batch-size: 500 ",
|
| 1690 |
+
"bbox": [
|
| 1691 |
+
215,
|
| 1692 |
+
797,
|
| 1693 |
+
823,
|
| 1694 |
+
924
|
| 1695 |
+
],
|
| 1696 |
+
"page_idx": 11
|
| 1697 |
+
},
|
| 1698 |
+
{
|
| 1699 |
+
"type": "text",
|
| 1700 |
+
"text": "B.4 IMPLEMENTATION DETAILS FOR DVBF IN BOUNCING BALL EXPERIMENT ",
|
| 1701 |
+
"bbox": [
|
| 1702 |
+
173,
|
| 1703 |
+
102,
|
| 1704 |
+
730,
|
| 1705 |
+
118
|
| 1706 |
+
],
|
| 1707 |
+
"page_idx": 12
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "text",
|
| 1711 |
+
"text": "• Input: 15 timesteps of $1 6 ^ { 2 }$ observation dimensions and 2 action dimension \n• Latent Space: 4 dimensions \n• Observation Network $p ( \\mathbf { x } _ { t } | \\mathbf { z } _ { t } ) = \\mathcal { N } ( \\mathbf { x } _ { t } ; \\mu ( \\mathbf { z } _ { t } ) , \\boldsymbol { \\sigma } )$ : $1 2 8 \\mathrm { R e L U + 1 6 ^ { 2 } }$ identity output \n• Recognition Model: $1 2 8 { \\mathrm { R e L U } } + 8$ identity output ",
|
| 1712 |
+
"bbox": [
|
| 1713 |
+
215,
|
| 1714 |
+
123,
|
| 1715 |
+
781,
|
| 1716 |
+
196
|
| 1717 |
+
],
|
| 1718 |
+
"page_idx": 12
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"type": "equation",
|
| 1722 |
+
"img_path": "images/9c872ff87c4c00ec9a1b2a6e2cba9244349ee3b2cd9efc085d2f5681b82ab3e8.jpg",
|
| 1723 |
+
"text": "$$\n\\begin{array} { r } { q ( \\mathbf { w } _ { t } | \\mathbf { z } _ { t } , \\mathbf { x } _ { t + 1 } , \\mathbf { u } _ { t } ) = \\mathcal { N } ( \\mathbf { w } _ { t } ; \\boldsymbol { \\mu } , \\boldsymbol { \\sigma } ) , } \\\\ { ( \\boldsymbol { \\mu } , \\boldsymbol { \\sigma } ) = f ( \\mathbf { z } _ { t } , \\mathbf { x } _ { t + 1 } , \\mathbf { u } _ { t } ) } \\end{array}\n$$",
|
| 1724 |
+
"text_format": "latex",
|
| 1725 |
+
"bbox": [
|
| 1726 |
+
411,
|
| 1727 |
+
202,
|
| 1728 |
+
643,
|
| 1729 |
+
239
|
| 1730 |
+
],
|
| 1731 |
+
"page_idx": 12
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "text",
|
| 1735 |
+
"text": "• Transition Network ${ \\pmb { \\alpha } } _ { t } ( { \\bf z } _ { t } )$ : 16 softmax output \n• Initial Network $\\mathbf { w } _ { 1 } \\sim p ( \\mathbf { x } _ { 1 : T } )$ : Fast Dropout BiRNN with: $1 2 8 { \\mathrm { R e L U } } + 4$ identity output \n• Initial Transition ${ \\bf z } _ { 1 } ( { \\bf w } _ { 1 } )$ : $1 2 8 { \\mathrm { R e L U } } + 4$ identity output \nOptimizer: adadelta, 0.1 step rate \n• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every 250th gradient update, $T _ { A } = 1 0 ^ { 5 }$ iterations \n• Batch-size: 500 ",
|
| 1736 |
+
"bbox": [
|
| 1737 |
+
215,
|
| 1738 |
+
276,
|
| 1739 |
+
823,
|
| 1740 |
+
387
|
| 1741 |
+
],
|
| 1742 |
+
"page_idx": 12
|
| 1743 |
+
},
|
| 1744 |
+
{
|
| 1745 |
+
"type": "text",
|
| 1746 |
+
"text": "B.5 IMPLEMENTATION DETAILS FOR DVBF IN TWO BOUNCING BALLS EXPERIMENT ",
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
168,
|
| 1749 |
+
402,
|
| 1750 |
+
776,
|
| 1751 |
+
417
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 12
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "text",
|
| 1757 |
+
"text": "• Input: 15 timesteps of $2 0 ^ { 2 }$ observation dimensions and 2000 samples \n• Latent Space: 10 dimensions \n• Observation Network $p ( \\mathbf { x } _ { t } | \\mathbf { z } _ { t } ) = \\mathcal { N } ( \\mathbf { x } _ { t } ; \\mu ( \\mathbf { z } _ { t } ) , \\boldsymbol { \\sigma } )$ : $1 2 8 \\mathrm { R e L U + 2 0 ^ { 2 } }$ sigmoid output \n• Recognition Model: $1 2 8 \\mathrm { R e L U } + 2 0 $ identity output ",
|
| 1758 |
+
"bbox": [
|
| 1759 |
+
215,
|
| 1760 |
+
422,
|
| 1761 |
+
784,
|
| 1762 |
+
497
|
| 1763 |
+
],
|
| 1764 |
+
"page_idx": 12
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"type": "equation",
|
| 1768 |
+
"img_path": "images/94ce0144818c1fa2d19b992da17f1675b3bec77353118582bbf330cba97cd557.jpg",
|
| 1769 |
+
"text": "$$\n\\begin{array} { r } { q ( \\mathbf { w } _ { t } | \\mathbf { z } _ { t } , \\mathbf { x } _ { t + 1 } , \\mathbf { u } _ { t } ) = \\mathcal { N } ( \\mathbf { w } _ { t } ; \\boldsymbol { \\mu } , \\boldsymbol { \\sigma } ) , } \\\\ { ( \\boldsymbol { \\mu } , \\boldsymbol { \\sigma } ) = f ( \\mathbf { z } _ { t } , \\mathbf { x } _ { t + 1 } , \\mathbf { u } _ { t } ) } \\end{array}\n$$",
|
| 1770 |
+
"text_format": "latex",
|
| 1771 |
+
"bbox": [
|
| 1772 |
+
411,
|
| 1773 |
+
502,
|
| 1774 |
+
643,
|
| 1775 |
+
539
|
| 1776 |
+
],
|
| 1777 |
+
"page_idx": 12
|
| 1778 |
+
},
|
| 1779 |
+
{
|
| 1780 |
+
"type": "text",
|
| 1781 |
+
"text": "• Transition Network ${ \\pmb { \\alpha } } _ { t } ( { \\bf z } _ { t } )$ : 64 softmax output \n• Initial Network $\\mathbf { w } _ { 1 } \\sim p ( \\mathbf { x } _ { 1 : T } )$ : MLP with: $1 2 8 \\mathrm { R e L U } + 1 0$ identity output \n• Initial Transition ${ \\bf z } _ { 1 } ( { \\bf w } _ { 1 } )$ : $1 2 8 \\mathrm { R e L U } + 1 0$ identity output \n• Optimizer: adam, 0.001 step rate \n• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every gradient update, $T _ { A } = 2 ~ 1 0 ^ { 5 }$ iterations \n• Batch-size: 80 ",
|
| 1782 |
+
"bbox": [
|
| 1783 |
+
215,
|
| 1784 |
+
575,
|
| 1785 |
+
795,
|
| 1786 |
+
685
|
| 1787 |
+
],
|
| 1788 |
+
"page_idx": 12
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"type": "text",
|
| 1792 |
+
"text": "B.6 IMPLEMENTATION DETAILS FOR DKF IN PENDULUM EXPERIMENT ",
|
| 1793 |
+
"bbox": [
|
| 1794 |
+
174,
|
| 1795 |
+
702,
|
| 1796 |
+
679,
|
| 1797 |
+
717
|
| 1798 |
+
],
|
| 1799 |
+
"page_idx": 12
|
| 1800 |
+
},
|
| 1801 |
+
{
|
| 1802 |
+
"type": "text",
|
| 1803 |
+
"text": "• Input: 15 timesteps of $1 6 ^ { 2 }$ observation dimensions and 1 action dimension \n• Latent Space: 3 dimensions \n• Observation Network $p ( \\mathbf { x } _ { t } | \\mathbf { z } _ { t } ) = { \\mathcal { N } } ( \\mathbf { x } _ { t } ; \\mu ( \\mathbf { z } _ { t } ) , \\sigma ( \\mathbf { z } _ { t } ) ) \\colon 1 2 8 { \\mathrm { ~ S i g m o i d } } + 1 2 8 { \\mathrm { ~ S i g m o i d } } + 2 1 6 ^ { 2 }$ identity output \n• Recognition Model: Fast Dropout BiRNN 128 Sigmoid $+ ~ 1 2 8$ Sigmoid $^ { + 3 }$ identity output \n• Transition Network $p ( \\mathbf { z } _ { t } | \\mathbf { z } _ { t - 1 } , \\mathbf { u } _ { t - 1 } )$ : 128 Sigmoid $+ ~ 1 2 8$ Sigmoid $+ ~ 6$ output \n• Optimizer: adam, 0.001 step rate \n• Inverse temperature: $c _ { 0 } = 0 . 0 1$ , updated every $2 5 \\mathrm { t h }$ gradient update, $T _ { A } = 2 0 0 0$ iterations \n• Batch-size: 500 ",
|
| 1804 |
+
"bbox": [
|
| 1805 |
+
215,
|
| 1806 |
+
723,
|
| 1807 |
+
826,
|
| 1808 |
+
885
|
| 1809 |
+
],
|
| 1810 |
+
"page_idx": 12
|
| 1811 |
+
}
|
| 1812 |
+
]
|
parse/train/HyTqHL5xg/HyTqHL5xg_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyTqHL5xg/HyTqHL5xg_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z.md
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LSH SOFTMAX: SUB-LINEAR LEARNING AND INFERENCE OF THE SOFTMAX LAYER IN DEEP ARCHITECTURES
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Log-linear models models are widely used in machine learning, and in particular are ubiquitous in deep learning architectures in the form of the softmax. While exact inference and learning of these requires linear time, it can be done approximately in sub-linear time with strong concentrations guarantees. In this work, we present LSH Softmax, a method to perform sub-linear learning and inference of the softmax layer in the deep learning setting. Our method relies on the popular Locality-Sensitive Hashing to build a well-concentrated gradient estimator, using nearest neighbors and uniform samples. We also present an inference scheme in sub-linear time for LSH Softmax using the Gumbel distribution. On language modeling, we show that Recurrent Neural Networks trained with LSH Softmax perform on-par with computing the exact softmax while requiring sub-linear computations.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep neural networks have achieved impressive successes in tasks spanning vision (He et al., 2016; Krizhevsky et al., 2012), language (Bahdanau et al., 2014), speech (Graves et al., 2013; Oord et al., 2016) and videos (Abu-El-Haija et al., 2016). While these models can vastly differ in architecture, activation functions, and presence of recurrence, they (almost) all share a common trait: the softmax layer. The softmax layer, or log-linear model, is a widely used model in machine learning and statistics that transforms a feature vector into a distribution over the output space, modeling log-probabilities as a linear function of the feature vector. For example, in object classification, the softmax layer at the end of a deep convolutional network transforms a feature vector into a probability distribution over classes for the image; in language modeling using recurrent neural networks, it maps the hidden state to a distribution over next words.
|
| 12 |
+
|
| 13 |
+
While parameterizing for logits offers modeling flexibility, inference and learning have linear runtime in the number of classes. Indeed, both of these require computing the un-normalized probability for every class to compute the partition function and retrieve an actual probability distribution. Problems with large output spaces arise naturally in many areas like natural language processing (NLP), where the output space is a language’s vocabulary and can be on the order of hundreds of thousands of elements Jozefowicz et al. (2016); Jean et al. (2014). This can also occur in computer vision (Joulin et al., 2016) when attempting tag prediction on massive, weakly-labeled datasets such as Flickr100M (Thomee et al., 2015).
|
| 14 |
+
|
| 15 |
+
Many solutions have been proposed to address this bottleneck, all revolving around two themes: approximation of the softmax probabilities or computation of exact probabilities for an approximate model. Canonical examples of the former are importance sampling (IS) or noise contrastive estimation (NCE; Gutmann & Hyvarinen (2012)). Instead of computing probabilities over the whole ¨ output space, these methods compute the softmax over a smaller, sampled vocabulary and re-weight the probabilities, providing an unbiased estimator. An illustration of the latter is Hierarchical Softmax (Morin & Bengio, 2005), where the output classes are first clustered such that you only need to compute the softmax over a smaller output space. While the former is an unbiased estimate, it comes with no concentration guarantees, and it is often more art than science to craft proposal distributions which will provide low-variance estimators. The latter, while efficient, requires carefully hand-crafted clustering of the output space, at the risk of making mistakes from which there is no recovery.
|
| 16 |
+
|
| 17 |
+
More recently, estimators based on nearest neighbor search have been proposed for inference and learning in log-linear models (Mussmann & Ermon, 2016; Mussmann et al., 2017). These estimators hinge on Maximum Inner Product Search using Locality-Sensitive to retrieve the largest logits of the distribution and account for the tail with uniformly sampled classes. They boast strong theoretical guarantees and well-established concentration bounds. However, they were constrained to toy settings and not directly applicable to real-world, large-scale, machine learning. In this work, we build upon these estimators to make them amenable to deep learning practitioners, without losing any theoretical guarantees. We first show how they can be extended to be usable within training of deep learning models, then present our efficient implementation, adapted to deep learning hardware and frameworks. Finally, we show the applicability and efficiency of our method by evaluating on a real-world task: language modeling. We show significant perplexity gains against competing methods with significant speed-ups.
|
| 18 |
+
|
| 19 |
+
Our contributions are as follows:
|
| 20 |
+
|
| 21 |
+
• We present a new deep learning layer, LSH Softmax, an efficient replacement for the softmax layer based on Locality-Sensitive Hashing and the Gumbel distribution, for any deep learning architecture, with strong theoretical guarantees for sub-linear learning and inference. • We provide details for efficient implementation on deep learning hardware (GPUs) and modern deep learning frameworks (Abadi et al., 2016; Maclaurin et al.)). • Empirically, we show, on several datasets, that training and sampling from LSH Softmax performs similarly to an exact softmax while requiring significantly less FLOPS.
|
| 22 |
+
|
| 23 |
+
# 2 BACKGROUND
|
| 24 |
+
|
| 25 |
+
In this section, we first provide a quick overview of Neural Networks and the most popular classification layer, the softmax layer. We then present the Gumbel distribution (Gumbel & Lieblein, 1954) and introduce Locality-Sensitive Hashing (Indyk & Motwani, 1998), both of which our estimator is built upon for inference and learning. Notationally, $\mathcal { X }$ is the input space, e.g. $\mathcal { X } \triangleq \mathbf { R } ^ { d }$ and $\mathcal { V }$ is a discrete output space: $\mathcal { Y } \triangleq \{ 1 , \dots , C \}$ .
|
| 26 |
+
|
| 27 |
+
# 2.1 NEURAL NETWORKS
|
| 28 |
+
|
| 29 |
+
Feedforward Networks Neural networks models are built hierarchically by applying linear and non-linear transformations in alternating fashion. Formally, given input $x \in \mathcal { X }$ , an $m$ -layer neural network with $\sigma ( \cdot )$ non-linearity transforms $x$ into $h$ defined as:
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\begin{array} { r } { \boldsymbol { h } = \sigma ( { W _ { m } } \cdot \sigma ( \dots \cdot \sigma ( { W _ { 1 } } \cdot { x } + { b _ { 1 } } ) + \dots ) + { b _ { m } } ) . } \end{array}
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
$\{ W _ { i } \} _ { i \le m }$ and $\{ b _ { i } \} _ { i \le m }$ are learned weights of the network. $\sigma ( \cdot )$ denotes an element-wise nonlinearity such as ReLU $( \operatorname* { m a x } ( \cdot , 0 ) )$ or sigmoid $( ( 1 + \exp ( - \cdot ) ) ^ { - 1 } )$ ).
|
| 36 |
+
|
| 37 |
+
Recurrent Networks Recurrent Neural Networks (RNN) are an extension of the previous setting to arbitrarily long sequences by keeping an internal state $h _ { t }$ . Formally, given an input sequence $( x _ { 1 } , \dots , x _ { T } )$ , it can be written as a dynamical system of the form:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
h _ { 0 } = \mathbf { 0 } ; h _ { t } = \sigma ( U h _ { t - 1 } + V x _ { t } ) .
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
where $U$ and $V$ are learnable weight matrices. In practice, this parametrization is not wellconditioned for optimization as it can be subject to vanishing or exploding gradients and in practice the Longer Short Term Memory (LSTM; Hochreiter & Schmidhuber (1997)) is preferred.
|
| 44 |
+
|
| 45 |
+
In both cases, these outputs are then given as input to a softmax layer which produces a distribution over the output space $\mathcal { V }$ . In the rest of this work, we denote by $\phi$ the parameters of the neural network.
|
| 46 |
+
|
| 47 |
+
# 2.2 SOFTMAX
|
| 48 |
+
|
| 49 |
+
The softmax layer is the common name given to a log-linear model for multi-classification at the end of a neural network. Let us consider the multi-classification setting with inputs in $\mathcal { X }$ and outputs in $\mathcal { V }$ . Given a feature vector $\psi ( x )$ and $C$ weight vectors $\{ \theta _ { c } \} _ { c \leq C }$ , the softmax layer parameterizes the following distribution:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
p ( Y = c | x ; \theta ) \propto \exp ( \psi ( x ) ^ { T } \theta _ { c } )
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
In the particular case of neural networks, $p ( y | x ; \theta , \phi ) \propto \exp ( h ^ { T } \theta _ { i } )$ . $\{ h ^ { T } \theta _ { i } \} _ { i \leq C }$ are called the logits. It is important to note that computing the distribution over the output space, for inference or learning, requires $O ( C )$ operations. For the rest of this work, $\theta$ denotes the parameters of the softmax whereas $\phi$ denotes the parameters of the neural network (producing the feature).
|
| 56 |
+
|
| 57 |
+
# 2.3 GUMBEL DISTRIBUTION
|
| 58 |
+
|
| 59 |
+
First introduced by Gumbel & Lieblein (1954), the Gumbel distribution is defined by the following cumulative distribution function: $p ( G < s ) = \exp ( - \exp ( - s ) )$ . More practically, one can sample from the Gumbel distribution by first sampling $U \sim \mathcal { U } [ 0 , 1 ]$ and returning $G = \dot { - } \log ( - \log ( \bar { U } ) )$ . This distribution is particularly useful as it casts sampling as optimization.
|
| 60 |
+
|
| 61 |
+
Theorem 1 (Maddison et al. (2014)). Let $\{ y _ { i } \} _ { i \le C }$ be un-normalized probabilities (or logits) over $\mathcal { V }$ and let $\{ G _ { i } \} _ { i \leq C }$ be i.i.d Gumbel variables. Then:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\arg \operatorname* { m a x } _ { i \leq C } \{ y _ { i } + G _ { i } \} \sim \mathrm { C a t e g o r i c a l } \left\{ \frac { 1 } { Z } e ^ { y _ { i } } \right\} _ { i \leq C }
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
# 2.4 MIPS AND LOCALITY-SENSITIVE HASHING
|
| 68 |
+
|
| 69 |
+
Nearest neighbor search is a task that arises in many fields, such as information retrieval. Given a fixed set of vectors $s$ and a distance, this task consists of, given any incoming query $q$ , returning the vectors closest to the query according to the specified distance. In this work, we will be interested in the Maximum Inner Product Search (MIPS) task. Let $\mathcal { S } = \{ s _ { 1 } , \ldots , s _ { N } \}$ be a subset of $\mathbf { R } ^ { d }$ . Given a query $q \in \mathbf { R } ^ { d }$ , MIPS aims at retrieving arg $\operatorname* { m a x } _ { s \in \mathcal { S } } q ^ { T } s$ .
|
| 70 |
+
|
| 71 |
+
This requires $\Theta ( N )$ operations as one has to compute the dot-product of $q$ with all elements of $s$ . In the case where we assume that, for a given set $s$ , it is needed to retrieve the nearest neighbor for a large numbers of queries, we can achieve amortized sub-linear time.
|
| 72 |
+
|
| 73 |
+
This problem is commonly addressed with space partitioning techniques, such as Locality-Sensitive Hashing (LSH; Indyk & Motwani (1998)). LSH leverages hashing to reduce the number of candidate vectors to evaluate, based on the idea that similar vectors will hash in the same bucket. We have the following result:
|
| 74 |
+
|
| 75 |
+
Theorem 2 (Indyk & Motwani (1998)). Given a set $s$ of size $N$ , a similarity measure $d ( \cdot , \cdot )$ and $a$ family of hash functions $\mathcal { H }$ s.t. for $S > T$ and $p > q$ :
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\begin{array} { r } { \bullet \forall x , y \in S , d ( x , y ) \geq S \Rightarrow p \left[ h ( x ) = h ( y ) \right] \geq p . } \\ { \bullet \forall x , y \in S , d ( x , y ) \leq T \Rightarrow p \left[ h ( x ) = h ( y ) \right] \leq q . } \end{array}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
we can construct a data structure s.t. given an incoming query $q$ , a nearest neighbor can be retrieved, with high probability, in sub-linear time $O ( N ^ { \rho } \log N )$ with $\begin{array} { r } { \rho \triangleq \frac { \log p } { \log q } < 1 } \end{array}$ .
|
| 82 |
+
|
| 83 |
+
Recent work builds on top of LSH to either reduce the number of tables (Lv et al., 2007), or utilize more expressive hash functions (Andoni et al., 2015). A common family of hash is the hyperplane hash, i.e. for $\boldsymbol { v } \sim \mathcal { N } ( 0 , I ) , \boldsymbol { h } _ { \boldsymbol { v } } ( \boldsymbol { x } ) = \mathrm { s i g n } \left( \boldsymbol { v } ^ { T } \boldsymbol { x } \right)$ , also called Signed Random Projections (Charikar, 2002). For the rest of this work, we denote $b$ the number of hashing bits (equivalently, the number of random vectors) per table, and $L$ the number of tables.
|
| 84 |
+
|
| 85 |
+
# 3 LEARNING
|
| 86 |
+
|
| 87 |
+
In this section, we show how we can apply Theorem 3.5 of (Mussmann et al., 2017) to enable sublinear learning of softmax parameters in the context of deep models, i.e. where both weights and inputs can change. This is crucial for real-world use.
|
| 88 |
+
|
| 89 |
+
Deep learning models for both classification (Krizhevsky et al., 2012) and generation (Mikolov, 2012) are often trained with a maximum-likelihood objective. Formally, given a training pair $( x , y ) \in \mathcal { X } \times \mathcal { Y }$ , one aims at maximizing $\log p ( \boldsymbol { y } | \boldsymbol { x } ; \boldsymbol { \theta } , \boldsymbol { \phi } )$ , where $\theta \in \Theta$ and $\phi \in \Phi$ are respectively the parameters of the softmax and of the neural network. To optimize this model, the usual method is to use back-propagation (Rumelhart et al., 1988) to differentiate and then perform stochastic gradient descent (SGD; LeCun et al. (1998)) on $\theta$ and $\phi$ .
|
| 90 |
+
|
| 91 |
+
Let’s denote by $f ( x ; \phi ) \triangleq h$ the feature vector given as input to the softmax. Given our notation, the objective is written as $\begin{array} { r } { \ell ( x , y , \boldsymbol { \theta } , \boldsymbol { \phi } ) \triangleq \log p ( y | x ; \boldsymbol { \theta } , \boldsymbol { \phi } ) = h ^ { T } \boldsymbol { \theta } _ { y } - \log \sum _ { i < C } \exp ( h ^ { T } \boldsymbol { \theta } _ { i } ) } \end{array}$ . For backpropagation, we need to compute the gradient of $\ell$ w.r.t to both $\theta$ and $h -$ the gradient w.r.t. $h$ is then passed down to compute the gradient w.r.t. $\phi$ .
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\begin{array} { r l } & { \nabla _ { h } \ell = \theta _ { y } - \mathbb { E } _ { i \sim p ( \cdot \vert x ; \theta , \phi ) } \left[ \theta _ { i } \right] } \\ & { \nabla _ { \theta _ { i } } \ell = \mathbf { 1 } _ { i = y } h - h \frac { \exp \left( h ^ { T } \theta _ { i } \right) } { Z _ { \theta } ( h ) } } \end{array}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
with $\begin{array} { r } { Z _ { \theta } ( h ) \ \triangleq \ \sum _ { i } \exp ( h ^ { T } \theta _ { i } ) } \end{array}$ . Computing these gradients clearly requires $O ( | \mathcal { V } | )$ operations. In practice, this constitutes a major bottleneck for large output spaces. Mussmann et al. (2017) shows how to compute expectation in in sub-linear time, with a well-concentrated estimator using an LSH structure. Intuitively, we can build a good estimate of the partition function by retrieving the largest logits (using LSH) and accounting for the tail with uniform samples. Applying this result, we can compute the expectations necessary to compute the softmax gradients in sub-linear time. This is described in Theorem 3.
|
| 98 |
+
|
| 99 |
+
Theorem 3 (LSH Softmax for Learning). Let $h = f ( x ; \phi )$ be input to a softmax layer with parameters $\{ \theta _ { c } \} _ { c \leq C }$ and define $\ell ( x , y , \theta , \phi )$ as previously. Given $s$ , the $k$ -nearest neighbors of $h$ in $\{ \theta _ { c } \} _ { c \leq C }$ and $\tau$ , $l$ uniform samples from $\left\{ 1 , \dots , C \right\} - { \mathcal { S } }$ , let us define:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\begin{array} { l } { \displaystyle \hat { Z } _ { \theta } ( h ) \triangleq \sum _ { i \in \mathcal { S } } \exp ( h ^ { T } \theta _ { i } ) + \frac { C - k } { l } \sum _ { i \in \mathcal { T } } \exp ( h ^ { T } \theta _ { i } ) } \\ { \displaystyle \quad \hat { g } _ { \theta _ { i } } \triangleq h \mathbf { 1 } _ { i = y } - \left( \mathbf { 1 } _ { i \in \mathcal { S } } + \frac { C - k } { l } \mathbf { 1 } _ { i \in \mathcal { T } } \right) h _ { t } \frac { \exp ( h ^ { T } \theta _ { i } ) } { \hat { Z } _ { \theta } ( h ) } } \\ { \displaystyle \quad \hat { g } _ { h } \triangleq \theta _ { y } - \frac { 1 } { \hat { Z } _ { \theta } ( h ) } \left[ \sum _ { i \in \mathcal { S } } \theta _ { i } \exp ( h ^ { T } \theta _ { i } ) + \frac { C - k } { l } \sum _ { i \in \mathcal { T } } \theta _ { i } \exp ( h ^ { T } \theta _ { i } ) \right] } \end{array}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
These estimators are well concentrated: i.e. for $\epsilon , \delta > 0 \quad$ , $\begin{array} { r } { i f k = l = O \left( n ^ { { \frac { 2 } { 3 } } } { \frac { 1 } { \epsilon } } { \sqrt { \frac { 1 } { \delta } } } \right) } \end{array}$ , then with probability greater than $1 - \delta$ :
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
| Z _ { \theta } ( h ) - \hat { Z } _ { \theta } ( h ) | \leq \epsilon ; \forall i \leq C , | | \nabla _ { \theta _ { i } } \ell - \hat { g } _ { \theta _ { i } } | | \leq \epsilon ; | | \nabla _ { h } \ell - \hat { g } _ { h } | | \leq \epsilon
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
While Theorem 3 provides computation of the gradients in sub-linear time, it is only usable in a setting where the weights $( \{ \theta _ { i } \} _ { i \leq C } )$ are not updated. Indeed, querying nearest neighbors in sublinear time assumes that an appropriate data structure (here LSH) was built in advance. However, when training deep models, we are required to update the weights at every training step. This necessitates online updating of the LSH structure. To maintain the sub-linear runtime, we perform these updates in a sparse manner. We describe in Algorithm 1 how this estimator can be used in a training loop, with weight updating and sparse LSH updates.
|
| 112 |
+
|
| 113 |
+
Proposition 4. The softmax computations described in Algorithm 1 run in sub-linear time.
|
| 114 |
+
|
| 115 |
+
# Algorithm 1 Fast Training of the Softmax layer
|
| 116 |
+
|
| 117 |
+
Inputs: Dataset $\mathcal { D } = \{ ( x ^ { ( i ) } , y ^ { ( i ) } \} _ { i \leq N } \subset \mathcal { X } \times \mathcal { Y } , k , l , n _ { \mathrm { i t e r s } }$ number of training iterations.
|
| 118 |
+
Initialize $\theta$ and $\phi$
|
| 119 |
+
Initialize the MIPS structure with {θi}i≤|V|.
|
| 120 |
+
for $j \leq n _ { \mathrm { i t e r s } } { \bf d o }$ Sample an example $( x , y )$ from $\mathcal { D }$ . $\Delta \theta \gets 0$ Compute $h f ( x ; \phi )$ Find $s$ , $k$ -nearest-neighbors of $\mathbf { h }$ using the MIPS. Define $\tau$ as $l$ indexes uniformly sampled from ${ \mathcal { V } } - { \mathcal { S } }$ . $\begin{array} { r l r } & { \hat { Z } _ { \theta } ( h ) \gets \sum _ { i \in S } \exp ( h ^ { T } \theta _ { i } ) + \frac { | \mathcal { V } | - k } { l } \sum _ { i \in \mathcal { T } } \exp ( h ^ { T } \theta _ { i } ) } & { \mathrm { ~ \mathbb { P } ~ P a r t ~ } } \\ & { \mathrm { O u t p u t ~ } \hat { \ell } = h ^ { T } \theta _ { y } - \log \hat { Z } _ { \theta } ( h ) } & \\ & { \Delta \theta _ { i } \gets \Delta \theta _ { i } + h \mathbf { 1 } _ { i = y } - \left( \mathbf { 1 } _ { i \in S } + \frac { | \mathcal { V } | - k } { l } \mathbf { 1 } _ { i \in \mathcal { T } } \right) h \frac { \exp ( h ^ { T } \theta _ { i } ) } { \hat { Z } _ { \theta } ( h ) } } \\ & { \hat { g } _ { h } \gets \theta _ { y } - \frac { 1 } { \hat { Z } _ { \theta _ { i } } ( h ) } \left[ \sum _ { i \in \mathcal { S } } \theta _ { i } \exp ( h ^ { T } \theta _ { i } ) + \frac { | \mathcal { V } | - k } { l } \sum _ { i \in \mathcal { T } } \theta _ { i } \exp ( h ^ { T } \theta _ { i } ) \right] } \end{array}$ ition function estimate Pass down $\hat { g } _ { \bf h }$ for back-propagation. Re-hash the updated vectors (at most $( k + l ) )$ into the right buckets.
|
| 121 |
+
end for
|
| 122 |
+
|
| 123 |
+
Proof. The softmax computations can be split into three parts: retrieving nearest neighbors, computing the forward/backward passes, and rehashing updated vectors. With a sub-linear MIPS such as LSH, the first part is guaranteed to be sub-linear. For the second part, computing the partition function and the entire gradient estimator requires computing a finite number of sums over $O ( k + l ) = O ( n ^ { \frac { 2 } { 3 } } )$ terms, which is sub-linear. The third part consists of re-hashing updated vectors. Re-hashing a vector is a constant operation (consisting of $b \times L$ dot-products) and thus, given that only a sub-linear number of vectors are updated, re-hashing is sub-linear. □
|
| 124 |
+
|
| 125 |
+
# 4 INFERENCE
|
| 126 |
+
|
| 127 |
+
In the last section, we presented a method to speed-up training time based on an LSH data structure. In addition to these training time gains, LSH Softmax can be utilized for computational gains at inference time as well. While MAP inference can be easily derived from the MIPS structure, sampling from the conditional distribution is often required (e.g. to generate diverse sentences in language modeling or machine translation). These gains can be crucial for large-scale deployment. This is a direct application of (Mussmann et al., 2017) that once again leverages a MIPS structure and the Gumbel distribution. By lazily evaluating Gumbel noise, once can devise an inference scheme which allows to sample from log-linear models in sub-linear time.
|
| 128 |
+
|
| 129 |
+
Theorem 5 (LSH Softmax for Inference). We reuse the same notations as the once in Theorem 3. We define $t \triangleq - \log ( - \log ( 1 - l / C ) )$ . Let $\{ G _ { i } \} _ { i \leq k }$ be $k$ samples from the Gumbel distribution. We then proceed to sample $m \sim$ Binomial $( C , l / \bar { C } )$ , and sample $\tau$ , m points from ${ \mathcal { V } } - { \mathcal { S } }$ with associated Gumbels $\{ G _ { i } ^ { \prime } \} _ { i \leq m }$ s.t. each $G _ { i } ^ { \prime }$ are larger than $t$ . Let us define:
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\begin{array} { r } { \hat { y } \stackrel { \triangle } { = } \mathrm { a r g } \operatorname* { m a x } \{ h ^ { T } \theta _ { i } + G _ { i } , i \in \mathcal { S } \} \bigcup \{ h ^ { T } \theta _ { i } + G _ { i } ^ { \prime } , i \in \mathcal { T } \} . } \end{array}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
Let $\epsilon , \delta > 0$ , we then have the two following results:
|
| 136 |
+
|
| 137 |
+
1. For $k = l \geq \sqrt { \log \frac { 1 } { \delta } }$ , $\hat { y }$ is a sample from $p ( \boldsymbol { y } | \boldsymbol { x } ; \boldsymbol { \theta } , \phi )$ with probability greater than $1 - \delta$ .
|
| 138 |
+
|
| 139 |
+
2. This inference scheme runs in sub-linear time.
|
| 140 |
+
|
| 141 |
+
Proof. (Mussmann et al., 2017)
|
| 142 |
+
|
| 143 |
+
We denote by $p ^ { \mathtt { G u m b e l } } ( \cdot | h ; \theta )$ the implicit distribution over $\mathcal { V }$ provided by this inference scheme. While we can sample from $p ^ { \mathtt { G u m b e 1 } }$ , we note that the likelihood is intractable. We also emphasize that this scheme can be utilized for any softmax model, regardless of the training method.
|
| 144 |
+
|
| 145 |
+
# 5 EFFICIENT IMPLEMENTATION
|
| 146 |
+
|
| 147 |
+
Recent successes of deep neural networks hinge on their efficient implementation on specialized hardware: Graphics Processor Units (GPU), which enables training of large models in reasonable time. Often, methods with theoretically faster runtime are dismissed by practitioners because of their incompatibility with the hardware, rendering them hard to implement efficiently and ultimately not widely used. In this section, we first detail how our method is indeed amenable to GPU implementation and can amount to wall-clock gains in practice, and explain why LSH Softmax is easy to implement in the context of modern deep learning frameworks who often provide a gradient computation API.
|
| 148 |
+
|
| 149 |
+
GPU Implementation Standard LSH implementations consist of three steps:
|
| 150 |
+
|
| 151 |
+
1. Hashing: Given a query $q \in \mathbf { R } ^ { d }$ , hash $q$ into $L$ tables i.e. computing $b \times L$ dot-product with (random) hyperplanes.
|
| 152 |
+
2. Look-up: Given $L$ signatures in $\{ 0 , 1 \} ^ { b }$ , retrieve candidates in each of the $L$ tables. Let us denote $C _ { q }$ the number of candidates retrieved.
|
| 153 |
+
3. Distances: Given those candidates $\{ x _ { 1 } , . . . , x _ { C _ { q } } \} \subset \mathbf { R } ^ { d }$ , compute the distances $\{ q ^ { T } x _ { i } \} _ { i \leq C _ { q } }$ and only return the closest one. It is also important to note that deep learning models are often trained using minibatch optimization;
|
| 154 |
+
let us describe how each of these steps can be computed efficiently and in the minibatch setting.
|
| 155 |
+
|
| 156 |
+
The first step is amenable to the GPU setting; a batch of queries $\{ q _ { i } \} _ { i \leq m } \subset \mathbf { R } ^ { d }$ can be represented by $Q \in \mathbf { R } ^ { m \times d }$ . Given that the hyperplanes are similarly presented in matrix form i.e. $H \in { \mathbf { R } } ^ { d \times ( b \times L ) }$ , the hashing step is equivalent to $\mathrm { s i g n } \left( Q \cdot H \right) \in \{ \bar { 0 } , \bar { 1 } \} ^ { m \times ( b \times L ) }$ . This is the type of operations that GPUs excel at: matrix-multiply followed by element-wise function.
|
| 157 |
+
|
| 158 |
+
The second step, while not as compatible with GPU, is still massively parallelizable using multithreading on CPU. Given the computed signatures, one can run parallelism at the query level (i.e. each thread retrieves candidates for a given query), rendering that step efficient. It also allows for more memory-efficient look-up such as (Lv et al., 2007).
|
| 159 |
+
|
| 160 |
+
The last operation is, once again, very amenable to GPU. It simply consists of a gather (i.e. building a matrix with the appropriate indexes from the candidates) into a 3-d tensor. Indeed, after the previous step, the LSH structure returns $m$ lists of $s$ candidates, and the gather step returns the appropriate vectors from the vocabulary into a 3-d tensor of shape $\mathbf { R } ^ { m \times s \times d }$ . As the batched queries can be also seen as a 3-d tensor $\mathbf { R } ^ { m \times d \times 1 }$ , computing the exact distances then reduces to a batch matrix-multiply which is a very efficient operation on GPU.
|
| 161 |
+
|
| 162 |
+
Software Implementation Another crucial point for practitioners is the ability to rely on frameworks automatically providing gradients, such as (Abadi et al., 2016; Maclaurin et al.), to implement deep learning models; this abstracts away the need to write down the exact gradients which can be both cumbersome and error-prone. An additional advantage of our estimator is that it can be effortlessly implemented in these frameworks. Indeed, given logits computed over the nearest-neighbors and the additional uniformly sampled indexes, one can compute the estimate of the partition function and thus an estimate of the loss. Computing the gradient estimators now reduces to differentiating this loss, which can be very simply done using the framework’s differentiation API.
|
| 163 |
+
|
| 164 |
+
# 6 EXPERIMENTS
|
| 165 |
+
|
| 166 |
+
After having presented our new layer LSH Softmax, we now proceed to show its applicability and efficiency in a real-world setting for deep learning practitioners, specifically towards language modeling. We first show that our method significantly outperforms approximate softmax baselines while performing within $2 0 \%$ of the performance of the exact softmax. We then provide a computational comparison. While we evaluate our method on NLP tasks, we want to emphasize that it is directly applicable to other domains, such as vision. However, public vision benchmark datasets with large output spaces require significantly more computational resources (e.g. 98 GPU nodes for 8 days for Flickr100M (Thomee et al., 2015)) which is outside the scope of this paper.
|
| 167 |
+
|
| 168 |
+
# 6.1 LANGUAGE MODELING
|
| 169 |
+
|
| 170 |
+
Language modeling is the task of, given a sequence of words $( w _ { 1 } , \dots , w _ { T } )$ in a vocabulary $\nu$ , estimating $\begin{array} { r } { p ( w _ { 1 } , \dots , w _ { T } ) = \prod _ { t \leq T } \overline { { p ( w _ { t } | w _ { < t } ) } } } \end{array}$ . Substantial work has been done to model these distributions using non-parametric $n$ -gram counts with additional smoothing techniques, but can fail to model long histories because of an exponential number of sequences. Recently, parametric models using RNNs have shown impressive success on these tasks (Mikolov, 2012). In this setting, large output spaces arise naturally, as the vocabulary size can range from $1 0 ^ { 4 }$ to $1 0 ^ { 6 }$ . We first describe our experimental protocol, and then report perplexity (ppl) of LSH Softmax against a set of baselines on this task for several datasets.
|
| 171 |
+
|
| 172 |
+
Datasets We evaluate our method on three standard datasets for Language Modeling with varying number of characters and vocabulary size:
|
| 173 |
+
|
| 174 |
+
• Penn TreeBank (PTB): We follow the pre-processing described by (Mikolov, 2012), which results in $9 2 9 k$ training tokens, $7 3 k$ validation and $8 2 k$ test tokens with a $1 0 k$ vocabulary size.
|
| 175 |
+
• Text8 is a dataset consisting of the first 100 millions characters of Wikipedia, and has a vocabulary size of $4 4 k$ . This dataset has been used recently in the context of language modeling (Xie et al., 2017). We use the $9 0 M$ first words for training and split the remaining between the validation and test set. Wikitext-2. First introduced in Merity et al. (2016), this is a selected corpus of Wikipedia articles. It has a vocabulary size of $3 3 k$ and contains $2 1 7 k$ tokens. As previously, we split between a training, validation and testing set.
|
| 176 |
+
|
| 177 |
+
Baselines We evaluate the performance of models trained with (1) exact softmax i.e. computed over the entire output space, (2) Biased Importance Sampled softmax (BIS), as presented in (Jean et al., 2014), which consists of sub-sampling the vocabulary according to a proposal distribution based on unigram counts, and (3) Negative Sampling (NS), proposed in Mikolov et al. (2013), equivalent to (BIS) with a uniform distribution, (4) standard Importance Sampling (Jozefowicz et al., 2016) and (5) Noise-Contrastive Estimation (NCE; Gutmann & Hyvarinen (2012)). These baselines ¨ are what practitioners canonically use to circumvent the bottleneck of large output spaces.
|
| 178 |
+
|
| 179 |
+
Implementation Details Our architecture is a 2-layer RNN with LSTM cells and 650 hidden units. Weights are initialized uniformly within $[ - 0 . 1 , 0 . 1 ]$ . Our models are trained using SGD using gradient clipping, with an initial learning rate of 20. This learning rate is annealed when the validation perplexity plateaus. Our models are trained for 40 epochs for PTB, 3 epochs for Text8, 25 epochs for Wikitext-2. With the notations of Theorem 3, for LSH Softmax, we choose $k = 1 0 \sqrt { | \nu | }$ and $l = \sqrt { | \nu | }$ . For the IS and NS baselines, we choose to sample $k + l$ classes from the output space for a fair comparison. We choose the number of bits per signature $b \triangleq \log _ { 2 } | \nu |$ and choose $L$ , number of tables, to have sufficient recall for the MIPS task.
|
| 180 |
+
|
| 181 |
+
# 6.1.1 LEARNING
|
| 182 |
+
|
| 183 |
+
We report perplexity for a fixed architecture but comparing different softmax evaluations; we present both learning curves and perplexity on each set. We report the perplexity of all trained models using the exact probabilities i.e. the full softmax. Perplexities are reported in Table 1 and learning curves in Figure 1. We see that LSH Softmax consistently outperforms the approximate baselines by a fair margin while performing a similar number of operations, showcasing the strength of this estimator. We also observe from the training curves that approximate methods’ performances tend to plateau, as IS and NS cannot target the proper classes to push down. In constrast, LSH Softmax does not.
|
| 184 |
+
|
| 185 |
+
# 6.2 COMPUTATIONAL COMPARISON
|
| 186 |
+
|
| 187 |
+
Having established that the proposed estimator performs very well on real-world tasks, we now proceed to evaluate the computation gains. It is important to note that for models with large output spaces, the softmax computation can amount to about $8 0 \%$ of the total computation (Joulin et al.,
|
| 188 |
+
|
| 189 |
+
<table><tr><td>Method</td><td colspan="3">PTB</td><td colspan="3">Wikitext-2</td><td colspan="3">Text8</td></tr><tr><td></td><td>Train</td><td>Val</td><td>Test</td><td>Train</td><td>Val</td><td>Test</td><td>Train</td><td>Val</td><td>Test</td></tr><tr><td>Exact</td><td>29.67</td><td>83.52</td><td>79.80</td><td>38.05</td><td>101.88</td><td>95.06</td><td>164.68</td><td>151.92</td><td>189.67</td></tr><tr><td>BIS</td><td>48.76</td><td>133.26</td><td>135.51</td><td>65.57</td><td>214.9</td><td>205.65</td><td>1</td><td></td><td>1</td></tr><tr><td>NS</td><td>32.12</td><td>103.26</td><td>101.48</td><td>42.66</td><td>142.82</td><td>136.30</td><td>255.62</td><td>234.02</td><td>281.11</td></tr><tr><td>IS</td><td>1</td><td>1</td><td>114.33</td><td>1</td><td>1</td><td>128.38</td><td>1</td><td>1</td><td>205.94</td></tr><tr><td>NCE</td><td>1</td><td>1</td><td>115.30</td><td>1</td><td>1</td><td>122.04</td><td>1</td><td>1</td><td>386.87</td></tr><tr><td>Ours</td><td>25.68</td><td>97.45</td><td>92.91</td><td>63.60</td><td>124.51</td><td>115.11</td><td>206.20</td><td>178.86</td><td>224.42</td></tr></table>
|
| 190 |
+
|
| 191 |
+
Table 1: LSH Softmax performs closest to the exact softmax and handily outperforms importance sampling based methods with no concentration guarantees.
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
Figure 1: LSH Softmax converges faster than compared baselines on all three datasets. IS is not reported for Text8 as the results were order of magnitude worse than compared method.
|
| 195 |
+
|
| 196 |
+
2016; Ji et al., 2015); we thus choose to only evaluate computational gains in the softmax layer. We evaluate our method in CPU, with a batch size of 1, to have an accurate estimation of the ratio of FLOPS. We report both speed-up and validation perplexity (ppl) relative difference with the exact softmax for LSH Softmax and NS. Note that NS requires the same number of operations as importance sampling (IS) but outperforms it in all tasks. Additionally, we show the speed-ups one can achieve on the One Billion Word dataset (Chelba et al., 2013), whose ppl was not evaluated due to computational constraints. We report the results in Table 2. We observe that, while faster, NS performs significantly worse than LSH Softmax. Furthermore, its performance deteriorates significantly when increasing the size of the output space, contrary to LSH Softmax which always performs in the same relative range.
|
| 197 |
+
|
| 198 |
+
<table><tr><td>Method</td><td colspan="2">PTB</td><td colspan="2">Wikitext-2</td><td colspan="2">Text8</td><td>Billion Word</td></tr><tr><td></td><td>Speed-up</td><td>△ppl</td><td>Speed-up</td><td>△ppl</td><td>Speed-up</td><td>△ ppl</td><td>Speed-up</td></tr><tr><td>NS</td><td>2.8×</td><td>23.6%</td><td>3.7×</td><td>40.2%</td><td>3.1×</td><td>54.0%</td><td>5.7×</td></tr><tr><td>Ours</td><td>1.6×</td><td>16.7%</td><td>2.4×</td><td>22.2%</td><td>2.3×</td><td>17.8%</td><td>4.1×</td></tr></table>
|
| 199 |
+
|
| 200 |
+
Table 2: LSH Softmax performs closest to the exact softmax and handily outperforms importance sampling based methods with no concentration guarantees.
|
| 201 |
+
|
| 202 |
+
# 7 RELATED WORK
|
| 203 |
+
|
| 204 |
+
In recent years, MIPS-based estimators for log-linear models have been explored in the literature. Vijayanarasimhan et al. (2014) propose retrieving the largest logits using LSH and estimating the Softmax using only those classes. Their method is encompassed in ours by simply setting $l$ to 0. However, we note that not accounting for the tail can lead to highly biased gradients. Indeed, Mussmann et al. (2017) show that, using only the top- $k$ largest values leads to significantly worse performance. In a similar direction, Spring & Shrivastava (2017b) propose using LSH at each layer and only retaining the largest activations which can be viewed as a form of adaptive dropout. This work differs with ours in two ways: first of all, their paper provides no theoretical guarantees and secondly, they focus on reducing memory footprint which is not the aim of our work. Finally, Spring & Shrivastava (2017a) proposed using the LSH structure as a proposal distribution to evaluate the Softmax. While unbiased and efficient, their method does not offer any concentration guarantees and the estimator can have arbitrarily bad variance.
|
| 205 |
+
|
| 206 |
+
# 8 CONCLUSION
|
| 207 |
+
|
| 208 |
+
In this work, we presented LSH Softmax, a softmax approximation layer for large output spaces with sub-linear learning and inference cost (in the number of states) and strong theoretical guarantees. We showcased both its applicability and efficiency by evaluating LSH on a common NLP task, language modeling. On several datasets for this task, we report perplexity closest to exact training among all baselines, as well as significant speed-ups. Our hope is that, for any architecture, this layer could be chosen in lieu of softmax, when the output space is sufficiently large to warrant the approximation. To that end, we plan to release source-code with the camera-ready version.
|
| 209 |
+
|
| 210 |
+
# REFERENCES
|
| 211 |
+
|
| 212 |
+
Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
|
| 213 |
+
Sami Abu-El-Haija, Nisarg Kothari, Joonseok Lee, Paul Natsev, George Toderici, Balakrishnan Varadarajan, and Sudheendra Vijayanarasimhan. Youtube- $. 8 \mathrm { m }$ : A large-scale video classification benchmark. arXiv preprint arXiv:1609.08675, 2016.
|
| 214 |
+
Alexandr Andoni, Piotr Indyk, Thijs Laarhoven, Ilya Razenshteyn, and Ludwig Schmidt. Practical and optimal lsh for angular distance. In Advances in Neural Information Processing Systems, pp. 1225–1233, 2015.
|
| 215 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
|
| 216 |
+
Moses S Charikar. Similarity estimation techniques from rounding algorithms. In Proceedings of the thiryfourth annual ACM symposium on Theory of computing, pp. 380–388. ACM, 2002.
|
| 217 |
+
Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013.
|
| 218 |
+
Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In Acoustics, speech and signal processing (icassp), 2013 ieee international conference on, pp. 6645–6649. IEEE, 2013.
|
| 219 |
+
Emil Julius Gumbel and Julius Lieblein. Statistical theory of extreme values and some practical applications: a series of lectures. 1954.
|
| 220 |
+
Michael U Gutmann and Aapo Hyvarinen. Noise-contrastive estimation of unnormalized statistical models, ¨ with applications to natural image statistics. Journal of Machine Learning Research, 13(Feb):307–361, 2012.
|
| 221 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Computer Vision and Pattern Recognition (CVPR), 2016 IEEE Conference on, 2016.
|
| 222 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8):1735–1780, 1997.
|
| 223 |
+
Piotr Indyk and Rajeev Motwani. Approximate nearest neighbors: towards removing the curse of dimensionality. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pp. 604–613. ACM, 1998.
|
| 224 |
+
Sebastien Jean, Kyunghyun Cho, Roland Memisevic, and Yoshua Bengio. On using very large target vocabulary ´ for neural machine translation. arXiv preprint arXiv:1412.2007, 2014.
|
| 225 |
+
|
| 226 |
+
Shihao Ji, SVN Vishwanathan, Nadathur Satish, Michael J Anderson, and Pradeep Dubey. Blackout: Speeding up recurrent neural network language models with very large vocabularies. arXiv preprint arXiv:1511.06909, 2015.
|
| 227 |
+
|
| 228 |
+
Armand Joulin, Laurens van der Maaten, Allan Jabri, and Nicolas Vasilache. Learning visual features from large weakly supervised data. In European Conference on Computer Vision, pp. 67–84. Springer, 2016.
|
| 229 |
+
|
| 230 |
+
Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016.
|
| 231 |
+
|
| 232 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 233 |
+
|
| 234 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document ´ recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 235 |
+
|
| 236 |
+
Qin Lv, William Josephson, Zhe Wang, Moses Charikar, and Kai Li. Multi-probe lsh: efficient indexing for high-dimensional similarity search. In Proceedings of the 33rd international conference on Very large data bases, pp. 950–961. VLDB Endowment, 2007.
|
| 237 |
+
|
| 238 |
+
Dougal Maclaurin, David Duvenaud, Matthew Johnson, and Ryan P Adams. Autograd: Reverse-mode differentiation of native python, 2015. URL http://github. com/HIPS/autograd.
|
| 239 |
+
|
| 240 |
+
Chris J Maddison, Daniel Tarlow, and Tom Minka. A\* sampling. In Advances in Neural Information Processing Systems, pp. 3086–3094, 2014.
|
| 241 |
+
|
| 242 |
+
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
|
| 243 |
+
|
| 244 |
+
Toma´s Mikolov. Statistical language models based on neural networks. ˇ Presentation at Google, Mountain View, 2nd April, 2012.
|
| 245 |
+
|
| 246 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013.
|
| 247 |
+
|
| 248 |
+
Frederic Morin and Yoshua Bengio. Hierarchical probabilistic neural network language model. In Aistats, volume 5, pp. 246–252, 2005.
|
| 249 |
+
|
| 250 |
+
Stephen Mussmann and Stefano Ermon. Learning and inference via maximum inner product search. In Proceedings of The 33rd International Conference on Machine Learning, pp. 2587–2596, 2016.
|
| 251 |
+
|
| 252 |
+
Stephen Mussmann, Daniel Levy, and Stefano Ermon. Fast amortized inference and learning in log-linear models with randomly perturbed nearest neighbor search. arXiv preprint arXiv:1707.03372, 2017.
|
| 253 |
+
|
| 254 |
+
Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016.
|
| 255 |
+
|
| 256 |
+
David E Rumelhart, Geoffrey E Hinton, Ronald J Williams, et al. Learning representations by back-propagating errors. Cognitive modeling, 5(3):1, 1988.
|
| 257 |
+
|
| 258 |
+
Ryan Spring and Anshumali Shrivastava. A new unbiased and efficient class of lsh-based samplers and estimators for partition function computation in log-linear models. arXiv preprint arXiv:1703.05160, 2017a.
|
| 259 |
+
|
| 260 |
+
Ryan Spring and Anshumali Shrivastava. Scalable and sustainable deep learning via randomized hashing. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 445–454. ACM, 2017b.
|
| 261 |
+
|
| 262 |
+
Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. The new data and new challenges in multimedia research. arXiv preprint arXiv:1503.01817, 1(8), 2015.
|
| 263 |
+
|
| 264 |
+
Sudheendra Vijayanarasimhan, Jonathon Shlens, Rajat Monga, and Jay Yagnik. Deep networks with large output spaces. arXiv preprint arXiv:1412.7479, 2014.
|
| 265 |
+
|
| 266 |
+
Ziang Xie, Sida I Wang, Jiwei Li, Daniel Levy, Aiming Nie, Dan Jurafsky, and Andrew Y Ng. Data noising as ´ smoothing in neural network language models. arXiv preprint arXiv:1703.02573, 2017.
|
parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_content_list.json
ADDED
|
@@ -0,0 +1,1336 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LSH SOFTMAX: SUB-LINEAR LEARNING AND INFERENCE OF THE SOFTMAX LAYER IN DEEP ARCHITECTURES ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
823,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
195,
|
| 20 |
+
400,
|
| 21 |
+
223
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
260,
|
| 32 |
+
544,
|
| 33 |
+
275
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Log-linear models models are widely used in machine learning, and in particular are ubiquitous in deep learning architectures in the form of the softmax. While exact inference and learning of these requires linear time, it can be done approximately in sub-linear time with strong concentrations guarantees. In this work, we present LSH Softmax, a method to perform sub-linear learning and inference of the softmax layer in the deep learning setting. Our method relies on the popular Locality-Sensitive Hashing to build a well-concentrated gradient estimator, using nearest neighbors and uniform samples. We also present an inference scheme in sub-linear time for LSH Softmax using the Gumbel distribution. On language modeling, we show that Recurrent Neural Networks trained with LSH Softmax perform on-par with computing the exact softmax while requiring sub-linear computations. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
292,
|
| 43 |
+
764,
|
| 44 |
+
459
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
488,
|
| 55 |
+
336,
|
| 56 |
+
503
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep neural networks have achieved impressive successes in tasks spanning vision (He et al., 2016; Krizhevsky et al., 2012), language (Bahdanau et al., 2014), speech (Graves et al., 2013; Oord et al., 2016) and videos (Abu-El-Haija et al., 2016). While these models can vastly differ in architecture, activation functions, and presence of recurrence, they (almost) all share a common trait: the softmax layer. The softmax layer, or log-linear model, is a widely used model in machine learning and statistics that transforms a feature vector into a distribution over the output space, modeling log-probabilities as a linear function of the feature vector. For example, in object classification, the softmax layer at the end of a deep convolutional network transforms a feature vector into a probability distribution over classes for the image; in language modeling using recurrent neural networks, it maps the hidden state to a distribution over next words. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
520,
|
| 66 |
+
825,
|
| 67 |
+
659
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "While parameterizing for logits offers modeling flexibility, inference and learning have linear runtime in the number of classes. Indeed, both of these require computing the un-normalized probability for every class to compute the partition function and retrieve an actual probability distribution. Problems with large output spaces arise naturally in many areas like natural language processing (NLP), where the output space is a language’s vocabulary and can be on the order of hundreds of thousands of elements Jozefowicz et al. (2016); Jean et al. (2014). This can also occur in computer vision (Joulin et al., 2016) when attempting tag prediction on massive, weakly-labeled datasets such as Flickr100M (Thomee et al., 2015). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
666,
|
| 77 |
+
823,
|
| 78 |
+
777
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Many solutions have been proposed to address this bottleneck, all revolving around two themes: approximation of the softmax probabilities or computation of exact probabilities for an approximate model. Canonical examples of the former are importance sampling (IS) or noise contrastive estimation (NCE; Gutmann & Hyvarinen (2012)). Instead of computing probabilities over the whole ¨ output space, these methods compute the softmax over a smaller, sampled vocabulary and re-weight the probabilities, providing an unbiased estimator. An illustration of the latter is Hierarchical Softmax (Morin & Bengio, 2005), where the output classes are first clustered such that you only need to compute the softmax over a smaller output space. While the former is an unbiased estimate, it comes with no concentration guarantees, and it is often more art than science to craft proposal distributions which will provide low-variance estimators. The latter, while efficient, requires carefully hand-crafted clustering of the output space, at the risk of making mistakes from which there is no recovery. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
785,
|
| 88 |
+
825,
|
| 89 |
+
922
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "More recently, estimators based on nearest neighbor search have been proposed for inference and learning in log-linear models (Mussmann & Ermon, 2016; Mussmann et al., 2017). These estimators hinge on Maximum Inner Product Search using Locality-Sensitive to retrieve the largest logits of the distribution and account for the tail with uniformly sampled classes. They boast strong theoretical guarantees and well-established concentration bounds. However, they were constrained to toy settings and not directly applicable to real-world, large-scale, machine learning. In this work, we build upon these estimators to make them amenable to deep learning practitioners, without losing any theoretical guarantees. We first show how they can be extended to be usable within training of deep learning models, then present our efficient implementation, adapted to deep learning hardware and frameworks. Finally, we show the applicability and efficiency of our method by evaluating on a real-world task: language modeling. We show significant perplexity gains against competing methods with significant speed-ups. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
138,
|
| 110 |
+
825,
|
| 111 |
+
305
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Our contributions are as follows: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
313,
|
| 121 |
+
390,
|
| 122 |
+
327
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We present a new deep learning layer, LSH Softmax, an efficient replacement for the softmax layer based on Locality-Sensitive Hashing and the Gumbel distribution, for any deep learning architecture, with strong theoretical guarantees for sub-linear learning and inference. • We provide details for efficient implementation on deep learning hardware (GPUs) and modern deep learning frameworks (Abadi et al., 2016; Maclaurin et al.)). • Empirically, we show, on several datasets, that training and sampling from LSH Softmax performs similarly to an exact softmax while requiring significantly less FLOPS. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
215,
|
| 131 |
+
340,
|
| 132 |
+
825,
|
| 133 |
+
467
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 BACKGROUND ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
488,
|
| 144 |
+
326,
|
| 145 |
+
506
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "In this section, we first provide a quick overview of Neural Networks and the most popular classification layer, the softmax layer. We then present the Gumbel distribution (Gumbel & Lieblein, 1954) and introduce Locality-Sensitive Hashing (Indyk & Motwani, 1998), both of which our estimator is built upon for inference and learning. Notationally, $\\mathcal { X }$ is the input space, e.g. $\\mathcal { X } \\triangleq \\mathbf { R } ^ { d }$ and $\\mathcal { V }$ is a discrete output space: $\\mathcal { Y } \\triangleq \\{ 1 , \\dots , C \\}$ . ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
173,
|
| 154 |
+
522,
|
| 155 |
+
825,
|
| 156 |
+
597
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2.1 NEURAL NETWORKS ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
614,
|
| 167 |
+
361,
|
| 168 |
+
630
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "Feedforward Networks Neural networks models are built hierarchically by applying linear and non-linear transformations in alternating fashion. Formally, given input $x \\in \\mathcal { X }$ , an $m$ -layer neural network with $\\sigma ( \\cdot )$ non-linearity transforms $x$ into $h$ defined as: ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
642,
|
| 178 |
+
825,
|
| 179 |
+
684
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "equation",
|
| 185 |
+
"img_path": "images/b1857c5fabbe9a98ed0e5de081a820cc3225ec929fbe867c99e85f5df5ad2153.jpg",
|
| 186 |
+
"text": "$$\n\\begin{array} { r } { \\boldsymbol { h } = \\sigma ( { W _ { m } } \\cdot \\sigma ( \\dots \\cdot \\sigma ( { W _ { 1 } } \\cdot { x } + { b _ { 1 } } ) + \\dots ) + { b _ { m } } ) . } \\end{array}\n$$",
|
| 187 |
+
"text_format": "latex",
|
| 188 |
+
"bbox": [
|
| 189 |
+
331,
|
| 190 |
+
707,
|
| 191 |
+
666,
|
| 192 |
+
724
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "$\\{ W _ { i } \\} _ { i \\le m }$ and $\\{ b _ { i } \\} _ { i \\le m }$ are learned weights of the network. $\\sigma ( \\cdot )$ denotes an element-wise nonlinearity such as ReLU $( \\operatorname* { m a x } ( \\cdot , 0 ) )$ or sigmoid $( ( 1 + \\exp ( - \\cdot ) ) ^ { - 1 } )$ ). ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
171,
|
| 201 |
+
738,
|
| 202 |
+
825,
|
| 203 |
+
768
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "Recurrent Networks Recurrent Neural Networks (RNN) are an extension of the previous setting to arbitrarily long sequences by keeping an internal state $h _ { t }$ . Formally, given an input sequence $( x _ { 1 } , \\dots , x _ { T } )$ , it can be written as a dynamical system of the form: ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
174,
|
| 212 |
+
785,
|
| 213 |
+
823,
|
| 214 |
+
828
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "equation",
|
| 220 |
+
"img_path": "images/07c6ed687a5a4f6b864dc3fef9c17691c8c94b3e3d0122cff84fe2f723f9b0fd.jpg",
|
| 221 |
+
"text": "$$\nh _ { 0 } = \\mathbf { 0 } ; h _ { t } = \\sigma ( U h _ { t - 1 } + V x _ { t } ) .\n$$",
|
| 222 |
+
"text_format": "latex",
|
| 223 |
+
"bbox": [
|
| 224 |
+
390,
|
| 225 |
+
851,
|
| 226 |
+
607,
|
| 227 |
+
868
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "where $U$ and $V$ are learnable weight matrices. In practice, this parametrization is not wellconditioned for optimization as it can be subject to vanishing or exploding gradients and in practice the Longer Short Term Memory (LSTM; Hochreiter & Schmidhuber (1997)) is preferred. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
881,
|
| 237 |
+
823,
|
| 238 |
+
924
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "In both cases, these outputs are then given as input to a softmax layer which produces a distribution over the output space $\\mathcal { V }$ . In the rest of this work, we denote by $\\phi$ the parameters of the neural network. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
176,
|
| 247 |
+
103,
|
| 248 |
+
823,
|
| 249 |
+
146
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "2.2 SOFTMAX ",
|
| 256 |
+
"text_level": 1,
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
161,
|
| 260 |
+
285,
|
| 261 |
+
176
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "The softmax layer is the common name given to a log-linear model for multi-classification at the end of a neural network. Let us consider the multi-classification setting with inputs in $\\mathcal { X }$ and outputs in $\\mathcal { V }$ . Given a feature vector $\\psi ( x )$ and $C$ weight vectors $\\{ \\theta _ { c } \\} _ { c \\leq C }$ , the softmax layer parameterizes the following distribution: ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
173,
|
| 270 |
+
188,
|
| 271 |
+
825,
|
| 272 |
+
243
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "equation",
|
| 278 |
+
"img_path": "images/8a0c9e1983e88e810fd076b4b3a891a748370769b1bafafe8c2aab2cfefaed16.jpg",
|
| 279 |
+
"text": "$$\np ( Y = c | x ; \\theta ) \\propto \\exp ( \\psi ( x ) ^ { T } \\theta _ { c } )\n$$",
|
| 280 |
+
"text_format": "latex",
|
| 281 |
+
"bbox": [
|
| 282 |
+
392,
|
| 283 |
+
242,
|
| 284 |
+
606,
|
| 285 |
+
261
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "In the particular case of neural networks, $p ( y | x ; \\theta , \\phi ) \\propto \\exp ( h ^ { T } \\theta _ { i } )$ . $\\{ h ^ { T } \\theta _ { i } \\} _ { i \\leq C }$ are called the logits. It is important to note that computing the distribution over the output space, for inference or learning, requires $O ( C )$ operations. For the rest of this work, $\\theta$ denotes the parameters of the softmax whereas $\\phi$ denotes the parameters of the neural network (producing the feature). ",
|
| 292 |
+
"bbox": [
|
| 293 |
+
173,
|
| 294 |
+
268,
|
| 295 |
+
825,
|
| 296 |
+
327
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "2.3 GUMBEL DISTRIBUTION ",
|
| 303 |
+
"text_level": 1,
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
342,
|
| 307 |
+
382,
|
| 308 |
+
357
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "First introduced by Gumbel & Lieblein (1954), the Gumbel distribution is defined by the following cumulative distribution function: $p ( G < s ) = \\exp ( - \\exp ( - s ) )$ . More practically, one can sample from the Gumbel distribution by first sampling $U \\sim \\mathcal { U } [ 0 , 1 ]$ and returning $G = \\dot { - } \\log ( - \\log ( \\bar { U } ) )$ . This distribution is particularly useful as it casts sampling as optimization. ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
173,
|
| 317 |
+
367,
|
| 318 |
+
826,
|
| 319 |
+
425
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "Theorem 1 (Maddison et al. (2014)). Let $\\{ y _ { i } \\} _ { i \\le C }$ be un-normalized probabilities (or logits) over $\\mathcal { V }$ and let $\\{ G _ { i } \\} _ { i \\leq C }$ be i.i.d Gumbel variables. Then: ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
428,
|
| 329 |
+
821,
|
| 330 |
+
455
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "equation",
|
| 336 |
+
"img_path": "images/3608702dcb4f85e5b8094677b5cb25b3be2324d782d769551d55ffb93b05634f.jpg",
|
| 337 |
+
"text": "$$\n\\arg \\operatorname* { m a x } _ { i \\leq C } \\{ y _ { i } + G _ { i } \\} \\sim \\mathrm { C a t e g o r i c a l } \\left\\{ \\frac { 1 } { Z } e ^ { y _ { i } } \\right\\} _ { i \\leq C }\n$$",
|
| 338 |
+
"text_format": "latex",
|
| 339 |
+
"bbox": [
|
| 340 |
+
338,
|
| 341 |
+
460,
|
| 342 |
+
658,
|
| 343 |
+
497
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "2.4 MIPS AND LOCALITY-SENSITIVE HASHING ",
|
| 350 |
+
"text_level": 1,
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
511,
|
| 354 |
+
519,
|
| 355 |
+
526
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "Nearest neighbor search is a task that arises in many fields, such as information retrieval. Given a fixed set of vectors $s$ and a distance, this task consists of, given any incoming query $q$ , returning the vectors closest to the query according to the specified distance. In this work, we will be interested in the Maximum Inner Product Search (MIPS) task. Let $\\mathcal { S } = \\{ s _ { 1 } , \\ldots , s _ { N } \\}$ be a subset of $\\mathbf { R } ^ { d }$ . Given a query $q \\in \\mathbf { R } ^ { d }$ , MIPS aims at retrieving arg $\\operatorname* { m a x } _ { s \\in \\mathcal { S } } q ^ { T } s$ . ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
173,
|
| 364 |
+
536,
|
| 365 |
+
825,
|
| 366 |
+
609
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 2
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "This requires $\\Theta ( N )$ operations as one has to compute the dot-product of $q$ with all elements of $s$ . In the case where we assume that, for a given set $s$ , it is needed to retrieve the nearest neighbor for a large numbers of queries, we can achieve amortized sub-linear time. ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
176,
|
| 375 |
+
614,
|
| 376 |
+
823,
|
| 377 |
+
656
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 2
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "This problem is commonly addressed with space partitioning techniques, such as Locality-Sensitive Hashing (LSH; Indyk & Motwani (1998)). LSH leverages hashing to reduce the number of candidate vectors to evaluate, based on the idea that similar vectors will hash in the same bucket. We have the following result: ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
174,
|
| 386 |
+
662,
|
| 387 |
+
825,
|
| 388 |
+
719
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 2
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Theorem 2 (Indyk & Motwani (1998)). Given a set $s$ of size $N$ , a similarity measure $d ( \\cdot , \\cdot )$ and $a$ family of hash functions $\\mathcal { H }$ s.t. for $S > T$ and $p > q$ : ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
173,
|
| 397 |
+
722,
|
| 398 |
+
825,
|
| 399 |
+
752
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 2
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "equation",
|
| 405 |
+
"img_path": "images/194ca0aaf119cecb4599379e9e9657f7895467917a64bd353ff82e86ea60ddfc.jpg",
|
| 406 |
+
"text": "$$\n\\begin{array} { r } { \\bullet \\forall x , y \\in S , d ( x , y ) \\geq S \\Rightarrow p \\left[ h ( x ) = h ( y ) \\right] \\geq p . } \\\\ { \\bullet \\forall x , y \\in S , d ( x , y ) \\leq T \\Rightarrow p \\left[ h ( x ) = h ( y ) \\right] \\leq q . } \\end{array}\n$$",
|
| 407 |
+
"text_format": "latex",
|
| 408 |
+
"bbox": [
|
| 409 |
+
210,
|
| 410 |
+
758,
|
| 411 |
+
552,
|
| 412 |
+
803
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 2
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "we can construct a data structure s.t. given an incoming query $q$ , a nearest neighbor can be retrieved, with high probability, in sub-linear time $O ( N ^ { \\rho } \\log N )$ with $\\begin{array} { r } { \\rho \\triangleq \\frac { \\log p } { \\log q } < 1 } \\end{array}$ . ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
173,
|
| 421 |
+
810,
|
| 422 |
+
821,
|
| 423 |
+
843
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 2
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "Recent work builds on top of LSH to either reduce the number of tables (Lv et al., 2007), or utilize more expressive hash functions (Andoni et al., 2015). A common family of hash is the hyperplane hash, i.e. for $\\boldsymbol { v } \\sim \\mathcal { N } ( 0 , I ) , \\boldsymbol { h } _ { \\boldsymbol { v } } ( \\boldsymbol { x } ) = \\mathrm { s i g n } \\left( \\boldsymbol { v } ^ { T } \\boldsymbol { x } \\right)$ , also called Signed Random Projections (Charikar, 2002). For the rest of this work, we denote $b$ the number of hashing bits (equivalently, the number of random vectors) per table, and $L$ the number of tables. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
853,
|
| 433 |
+
825,
|
| 434 |
+
924
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 2
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "3 LEARNING ",
|
| 441 |
+
"text_level": 1,
|
| 442 |
+
"bbox": [
|
| 443 |
+
174,
|
| 444 |
+
102,
|
| 445 |
+
295,
|
| 446 |
+
117
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "In this section, we show how we can apply Theorem 3.5 of (Mussmann et al., 2017) to enable sublinear learning of softmax parameters in the context of deep models, i.e. where both weights and inputs can change. This is crucial for real-world use. ",
|
| 453 |
+
"bbox": [
|
| 454 |
+
174,
|
| 455 |
+
132,
|
| 456 |
+
825,
|
| 457 |
+
175
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 3
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "Deep learning models for both classification (Krizhevsky et al., 2012) and generation (Mikolov, 2012) are often trained with a maximum-likelihood objective. Formally, given a training pair $( x , y ) \\in \\mathcal { X } \\times \\mathcal { Y }$ , one aims at maximizing $\\log p ( \\boldsymbol { y } | \\boldsymbol { x } ; \\boldsymbol { \\theta } , \\boldsymbol { \\phi } )$ , where $\\theta \\in \\Theta$ and $\\phi \\in \\Phi$ are respectively the parameters of the softmax and of the neural network. To optimize this model, the usual method is to use back-propagation (Rumelhart et al., 1988) to differentiate and then perform stochastic gradient descent (SGD; LeCun et al. (1998)) on $\\theta$ and $\\phi$ . ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
173,
|
| 466 |
+
181,
|
| 467 |
+
825,
|
| 468 |
+
267
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "Let’s denote by $f ( x ; \\phi ) \\triangleq h$ the feature vector given as input to the softmax. Given our notation, the objective is written as $\\begin{array} { r } { \\ell ( x , y , \\boldsymbol { \\theta } , \\boldsymbol { \\phi } ) \\triangleq \\log p ( y | x ; \\boldsymbol { \\theta } , \\boldsymbol { \\phi } ) = h ^ { T } \\boldsymbol { \\theta } _ { y } - \\log \\sum _ { i < C } \\exp ( h ^ { T } \\boldsymbol { \\theta } _ { i } ) } \\end{array}$ . For backpropagation, we need to compute the gradient of $\\ell$ w.r.t to both $\\theta$ and $h -$ the gradient w.r.t. $h$ is then passed down to compute the gradient w.r.t. $\\phi$ . ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
173,
|
| 477 |
+
273,
|
| 478 |
+
825,
|
| 479 |
+
335
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "equation",
|
| 485 |
+
"img_path": "images/6526206059f3f7fbc64a2693a0a38797482661c6a459c2e497a6c8ce17450f89.jpg",
|
| 486 |
+
"text": "$$\n\\begin{array} { r l } & { \\nabla _ { h } \\ell = \\theta _ { y } - \\mathbb { E } _ { i \\sim p ( \\cdot \\vert x ; \\theta , \\phi ) } \\left[ \\theta _ { i } \\right] } \\\\ & { \\nabla _ { \\theta _ { i } } \\ell = \\mathbf { 1 } _ { i = y } h - h \\frac { \\exp \\left( h ^ { T } \\theta _ { i } \\right) } { Z _ { \\theta } ( h ) } } \\end{array}\n$$",
|
| 487 |
+
"text_format": "latex",
|
| 488 |
+
"bbox": [
|
| 489 |
+
397,
|
| 490 |
+
357,
|
| 491 |
+
599,
|
| 492 |
+
415
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 3
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "with $\\begin{array} { r } { Z _ { \\theta } ( h ) \\ \\triangleq \\ \\sum _ { i } \\exp ( h ^ { T } \\theta _ { i } ) } \\end{array}$ . Computing these gradients clearly requires $O ( | \\mathcal { V } | )$ operations. In practice, this constitutes a major bottleneck for large output spaces. Mussmann et al. (2017) shows how to compute expectation in in sub-linear time, with a well-concentrated estimator using an LSH structure. Intuitively, we can build a good estimate of the partition function by retrieving the largest logits (using LSH) and accounting for the tail with uniform samples. Applying this result, we can compute the expectations necessary to compute the softmax gradients in sub-linear time. This is described in Theorem 3. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
173,
|
| 501 |
+
426,
|
| 502 |
+
825,
|
| 503 |
+
526
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 3
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "Theorem 3 (LSH Softmax for Learning). Let $h = f ( x ; \\phi )$ be input to a softmax layer with parameters $\\{ \\theta _ { c } \\} _ { c \\leq C }$ and define $\\ell ( x , y , \\theta , \\phi )$ as previously. Given $s$ , the $k$ -nearest neighbors of $h$ in $\\{ \\theta _ { c } \\} _ { c \\leq C }$ and $\\tau$ , $l$ uniform samples from $\\left\\{ 1 , \\dots , C \\right\\} - { \\mathcal { S } }$ , let us define: ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
176,
|
| 512 |
+
530,
|
| 513 |
+
825,
|
| 514 |
+
574
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 3
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "equation",
|
| 520 |
+
"img_path": "images/7e091c38b1d08161e2d9135fade35bc83f097904bd912d5bac6b36a60fb1ea88.jpg",
|
| 521 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\hat { Z } _ { \\theta } ( h ) \\triangleq \\sum _ { i \\in \\mathcal { S } } \\exp ( h ^ { T } \\theta _ { i } ) + \\frac { C - k } { l } \\sum _ { i \\in \\mathcal { T } } \\exp ( h ^ { T } \\theta _ { i } ) } \\\\ { \\displaystyle \\quad \\hat { g } _ { \\theta _ { i } } \\triangleq h \\mathbf { 1 } _ { i = y } - \\left( \\mathbf { 1 } _ { i \\in \\mathcal { S } } + \\frac { C - k } { l } \\mathbf { 1 } _ { i \\in \\mathcal { T } } \\right) h _ { t } \\frac { \\exp ( h ^ { T } \\theta _ { i } ) } { \\hat { Z } _ { \\theta } ( h ) } } \\\\ { \\displaystyle \\quad \\hat { g } _ { h } \\triangleq \\theta _ { y } - \\frac { 1 } { \\hat { Z } _ { \\theta } ( h ) } \\left[ \\sum _ { i \\in \\mathcal { S } } \\theta _ { i } \\exp ( h ^ { T } \\theta _ { i } ) + \\frac { C - k } { l } \\sum _ { i \\in \\mathcal { T } } \\theta _ { i } \\exp ( h ^ { T } \\theta _ { i } ) \\right] } \\end{array}\n$$",
|
| 522 |
+
"text_format": "latex",
|
| 523 |
+
"bbox": [
|
| 524 |
+
266,
|
| 525 |
+
595,
|
| 526 |
+
728,
|
| 527 |
+
718
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 3
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "These estimators are well concentrated: i.e. for $\\epsilon , \\delta > 0 \\quad$ , $\\begin{array} { r } { i f k = l = O \\left( n ^ { { \\frac { 2 } { 3 } } } { \\frac { 1 } { \\epsilon } } { \\sqrt { \\frac { 1 } { \\delta } } } \\right) } \\end{array}$ , then with probability greater than $1 - \\delta$ : ",
|
| 534 |
+
"bbox": [
|
| 535 |
+
174,
|
| 536 |
+
733,
|
| 537 |
+
821,
|
| 538 |
+
770
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 3
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "equation",
|
| 544 |
+
"img_path": "images/a047eeb2598619d2b4a4452168116398a54230122e1ea5049955e46189ded4d3.jpg",
|
| 545 |
+
"text": "$$\n| Z _ { \\theta } ( h ) - \\hat { Z } _ { \\theta } ( h ) | \\leq \\epsilon ; \\forall i \\leq C , | | \\nabla _ { \\theta _ { i } } \\ell - \\hat { g } _ { \\theta _ { i } } | | \\leq \\epsilon ; | | \\nabla _ { h } \\ell - \\hat { g } _ { h } | | \\leq \\epsilon\n$$",
|
| 546 |
+
"text_format": "latex",
|
| 547 |
+
"bbox": [
|
| 548 |
+
277,
|
| 549 |
+
775,
|
| 550 |
+
720,
|
| 551 |
+
795
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 3
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "While Theorem 3 provides computation of the gradients in sub-linear time, it is only usable in a setting where the weights $( \\{ \\theta _ { i } \\} _ { i \\leq C } )$ are not updated. Indeed, querying nearest neighbors in sublinear time assumes that an appropriate data structure (here LSH) was built in advance. However, when training deep models, we are required to update the weights at every training step. This necessitates online updating of the LSH structure. To maintain the sub-linear runtime, we perform these updates in a sparse manner. We describe in Algorithm 1 how this estimator can be used in a training loop, with weight updating and sparse LSH updates. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
173,
|
| 560 |
+
806,
|
| 561 |
+
825,
|
| 562 |
+
906
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 3
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "Proposition 4. The softmax computations described in Algorithm 1 run in sub-linear time. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
168,
|
| 571 |
+
909,
|
| 572 |
+
767,
|
| 573 |
+
924
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 3
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "Algorithm 1 Fast Training of the Softmax layer ",
|
| 580 |
+
"text_level": 1,
|
| 581 |
+
"bbox": [
|
| 582 |
+
176,
|
| 583 |
+
103,
|
| 584 |
+
488,
|
| 585 |
+
117
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 4
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "Inputs: Dataset $\\mathcal { D } = \\{ ( x ^ { ( i ) } , y ^ { ( i ) } \\} _ { i \\leq N } \\subset \\mathcal { X } \\times \\mathcal { Y } , k , l , n _ { \\mathrm { i t e r s } }$ number of training iterations. \nInitialize $\\theta$ and $\\phi$ \nInitialize the MIPS structure with {θi}i≤|V|. \nfor $j \\leq n _ { \\mathrm { i t e r s } } { \\bf d o }$ Sample an example $( x , y )$ from $\\mathcal { D }$ . $\\Delta \\theta \\gets 0$ Compute $h f ( x ; \\phi )$ Find $s$ , $k$ -nearest-neighbors of $\\mathbf { h }$ using the MIPS. Define $\\tau$ as $l$ indexes uniformly sampled from ${ \\mathcal { V } } - { \\mathcal { S } }$ . $\\begin{array} { r l r } & { \\hat { Z } _ { \\theta } ( h ) \\gets \\sum _ { i \\in S } \\exp ( h ^ { T } \\theta _ { i } ) + \\frac { | \\mathcal { V } | - k } { l } \\sum _ { i \\in \\mathcal { T } } \\exp ( h ^ { T } \\theta _ { i } ) } & { \\mathrm { ~ \\mathbb { P } ~ P a r t ~ } } \\\\ & { \\mathrm { O u t p u t ~ } \\hat { \\ell } = h ^ { T } \\theta _ { y } - \\log \\hat { Z } _ { \\theta } ( h ) } & \\\\ & { \\Delta \\theta _ { i } \\gets \\Delta \\theta _ { i } + h \\mathbf { 1 } _ { i = y } - \\left( \\mathbf { 1 } _ { i \\in S } + \\frac { | \\mathcal { V } | - k } { l } \\mathbf { 1 } _ { i \\in \\mathcal { T } } \\right) h \\frac { \\exp ( h ^ { T } \\theta _ { i } ) } { \\hat { Z } _ { \\theta } ( h ) } } \\\\ & { \\hat { g } _ { h } \\gets \\theta _ { y } - \\frac { 1 } { \\hat { Z } _ { \\theta _ { i } } ( h ) } \\left[ \\sum _ { i \\in \\mathcal { S } } \\theta _ { i } \\exp ( h ^ { T } \\theta _ { i } ) + \\frac { | \\mathcal { V } | - k } { l } \\sum _ { i \\in \\mathcal { T } } \\theta _ { i } \\exp ( h ^ { T } \\theta _ { i } ) \\right] } \\end{array}$ ition function estimate Pass down $\\hat { g } _ { \\bf h }$ for back-propagation. Re-hash the updated vectors (at most $( k + l ) )$ into the right buckets. \nend for ",
|
| 592 |
+
"bbox": [
|
| 593 |
+
184,
|
| 594 |
+
122,
|
| 595 |
+
826,
|
| 596 |
+
375
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 4
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "text",
|
| 602 |
+
"text": "Proof. The softmax computations can be split into three parts: retrieving nearest neighbors, computing the forward/backward passes, and rehashing updated vectors. With a sub-linear MIPS such as LSH, the first part is guaranteed to be sub-linear. For the second part, computing the partition function and the entire gradient estimator requires computing a finite number of sums over $O ( k + l ) = O ( n ^ { \\frac { 2 } { 3 } } )$ terms, which is sub-linear. The third part consists of re-hashing updated vectors. Re-hashing a vector is a constant operation (consisting of $b \\times L$ dot-products) and thus, given that only a sub-linear number of vectors are updated, re-hashing is sub-linear. □ ",
|
| 603 |
+
"bbox": [
|
| 604 |
+
173,
|
| 605 |
+
400,
|
| 606 |
+
825,
|
| 607 |
+
501
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 4
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "4 INFERENCE ",
|
| 614 |
+
"text_level": 1,
|
| 615 |
+
"bbox": [
|
| 616 |
+
174,
|
| 617 |
+
529,
|
| 618 |
+
302,
|
| 619 |
+
545
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 4
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "In the last section, we presented a method to speed-up training time based on an LSH data structure. In addition to these training time gains, LSH Softmax can be utilized for computational gains at inference time as well. While MAP inference can be easily derived from the MIPS structure, sampling from the conditional distribution is often required (e.g. to generate diverse sentences in language modeling or machine translation). These gains can be crucial for large-scale deployment. This is a direct application of (Mussmann et al., 2017) that once again leverages a MIPS structure and the Gumbel distribution. By lazily evaluating Gumbel noise, once can devise an inference scheme which allows to sample from log-linear models in sub-linear time. ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
173,
|
| 628 |
+
559,
|
| 629 |
+
825,
|
| 630 |
+
671
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "Theorem 5 (LSH Softmax for Inference). We reuse the same notations as the once in Theorem 3. We define $t \\triangleq - \\log ( - \\log ( 1 - l / C ) )$ . Let $\\{ G _ { i } \\} _ { i \\leq k }$ be $k$ samples from the Gumbel distribution. We then proceed to sample $m \\sim$ Binomial $( C , l / \\bar { C } )$ , and sample $\\tau$ , m points from ${ \\mathcal { V } } - { \\mathcal { S } }$ with associated Gumbels $\\{ G _ { i } ^ { \\prime } \\} _ { i \\leq m }$ s.t. each $G _ { i } ^ { \\prime }$ are larger than $t$ . Let us define: ",
|
| 637 |
+
"bbox": [
|
| 638 |
+
174,
|
| 639 |
+
674,
|
| 640 |
+
825,
|
| 641 |
+
732
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 4
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "equation",
|
| 647 |
+
"img_path": "images/d47be3fc3886be50d33ac0202065cfe8239e8ca41cfecbf015ce77331ca92160.jpg",
|
| 648 |
+
"text": "$$\n\\begin{array} { r } { \\hat { y } \\stackrel { \\triangle } { = } \\mathrm { a r g } \\operatorname* { m a x } \\{ h ^ { T } \\theta _ { i } + G _ { i } , i \\in \\mathcal { S } \\} \\bigcup \\{ h ^ { T } \\theta _ { i } + G _ { i } ^ { \\prime } , i \\in \\mathcal { T } \\} . } \\end{array}\n$$",
|
| 649 |
+
"text_format": "latex",
|
| 650 |
+
"bbox": [
|
| 651 |
+
308,
|
| 652 |
+
737,
|
| 653 |
+
687,
|
| 654 |
+
758
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 4
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "Let $\\epsilon , \\delta > 0$ , we then have the two following results: ",
|
| 661 |
+
"bbox": [
|
| 662 |
+
174,
|
| 663 |
+
763,
|
| 664 |
+
514,
|
| 665 |
+
779
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 4
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "1. For $k = l \\geq \\sqrt { \\log \\frac { 1 } { \\delta } }$ , $\\hat { y }$ is a sample from $p ( \\boldsymbol { y } | \\boldsymbol { x } ; \\boldsymbol { \\theta } , \\phi )$ with probability greater than $1 - \\delta$ . ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
214,
|
| 674 |
+
786,
|
| 675 |
+
813,
|
| 676 |
+
813
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 4
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "2. This inference scheme runs in sub-linear time. ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
214,
|
| 685 |
+
821,
|
| 686 |
+
534,
|
| 687 |
+
837
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 4
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "Proof. (Mussmann et al., 2017) ",
|
| 694 |
+
"bbox": [
|
| 695 |
+
174,
|
| 696 |
+
852,
|
| 697 |
+
385,
|
| 698 |
+
867
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 4
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "We denote by $p ^ { \\mathtt { G u m b e l } } ( \\cdot | h ; \\theta )$ the implicit distribution over $\\mathcal { V }$ provided by this inference scheme. While we can sample from $p ^ { \\mathtt { G u m b e 1 } }$ , we note that the likelihood is intractable. We also emphasize that this scheme can be utilized for any softmax model, regardless of the training method. ",
|
| 705 |
+
"bbox": [
|
| 706 |
+
176,
|
| 707 |
+
881,
|
| 708 |
+
823,
|
| 709 |
+
924
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 4
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "5 EFFICIENT IMPLEMENTATION ",
|
| 716 |
+
"text_level": 1,
|
| 717 |
+
"bbox": [
|
| 718 |
+
176,
|
| 719 |
+
102,
|
| 720 |
+
449,
|
| 721 |
+
118
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 5
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "Recent successes of deep neural networks hinge on their efficient implementation on specialized hardware: Graphics Processor Units (GPU), which enables training of large models in reasonable time. Often, methods with theoretically faster runtime are dismissed by practitioners because of their incompatibility with the hardware, rendering them hard to implement efficiently and ultimately not widely used. In this section, we first detail how our method is indeed amenable to GPU implementation and can amount to wall-clock gains in practice, and explain why LSH Softmax is easy to implement in the context of modern deep learning frameworks who often provide a gradient computation API. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
173,
|
| 730 |
+
132,
|
| 731 |
+
825,
|
| 732 |
+
244
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 5
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "GPU Implementation Standard LSH implementations consist of three steps: ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
173,
|
| 741 |
+
258,
|
| 742 |
+
692,
|
| 743 |
+
273
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 5
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "1. Hashing: Given a query $q \\in \\mathbf { R } ^ { d }$ , hash $q$ into $L$ tables i.e. computing $b \\times L$ dot-product with (random) hyperplanes. \n2. Look-up: Given $L$ signatures in $\\{ 0 , 1 \\} ^ { b }$ , retrieve candidates in each of the $L$ tables. Let us denote $C _ { q }$ the number of candidates retrieved. \n3. Distances: Given those candidates $\\{ x _ { 1 } , . . . , x _ { C _ { q } } \\} \\subset \\mathbf { R } ^ { d }$ , compute the distances $\\{ q ^ { T } x _ { i } \\} _ { i \\leq C _ { q } }$ and only return the closest one. It is also important to note that deep learning models are often trained using minibatch optimization; \nlet us describe how each of these steps can be computed efficiently and in the minibatch setting. ",
|
| 750 |
+
"bbox": [
|
| 751 |
+
212,
|
| 752 |
+
282,
|
| 753 |
+
825,
|
| 754 |
+
380
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 5
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "",
|
| 761 |
+
"bbox": [
|
| 762 |
+
174,
|
| 763 |
+
388,
|
| 764 |
+
823,
|
| 765 |
+
417
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 5
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "The first step is amenable to the GPU setting; a batch of queries $\\{ q _ { i } \\} _ { i \\leq m } \\subset \\mathbf { R } ^ { d }$ can be represented by $Q \\in \\mathbf { R } ^ { m \\times d }$ . Given that the hyperplanes are similarly presented in matrix form i.e. $H \\in { \\mathbf { R } } ^ { d \\times ( b \\times L ) }$ , the hashing step is equivalent to $\\mathrm { s i g n } \\left( Q \\cdot H \\right) \\in \\{ \\bar { 0 } , \\bar { 1 } \\} ^ { m \\times ( b \\times L ) }$ . This is the type of operations that GPUs excel at: matrix-multiply followed by element-wise function. ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
174,
|
| 774 |
+
424,
|
| 775 |
+
825,
|
| 776 |
+
483
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 5
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "The second step, while not as compatible with GPU, is still massively parallelizable using multithreading on CPU. Given the computed signatures, one can run parallelism at the query level (i.e. each thread retrieves candidates for a given query), rendering that step efficient. It also allows for more memory-efficient look-up such as (Lv et al., 2007). ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
174,
|
| 785 |
+
489,
|
| 786 |
+
825,
|
| 787 |
+
545
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 5
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "The last operation is, once again, very amenable to GPU. It simply consists of a gather (i.e. building a matrix with the appropriate indexes from the candidates) into a 3-d tensor. Indeed, after the previous step, the LSH structure returns $m$ lists of $s$ candidates, and the gather step returns the appropriate vectors from the vocabulary into a 3-d tensor of shape $\\mathbf { R } ^ { m \\times s \\times d }$ . As the batched queries can be also seen as a 3-d tensor $\\mathbf { R } ^ { m \\times d \\times 1 }$ , computing the exact distances then reduces to a batch matrix-multiply which is a very efficient operation on GPU. ",
|
| 794 |
+
"bbox": [
|
| 795 |
+
174,
|
| 796 |
+
553,
|
| 797 |
+
825,
|
| 798 |
+
636
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 5
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "Software Implementation Another crucial point for practitioners is the ability to rely on frameworks automatically providing gradients, such as (Abadi et al., 2016; Maclaurin et al.), to implement deep learning models; this abstracts away the need to write down the exact gradients which can be both cumbersome and error-prone. An additional advantage of our estimator is that it can be effortlessly implemented in these frameworks. Indeed, given logits computed over the nearest-neighbors and the additional uniformly sampled indexes, one can compute the estimate of the partition function and thus an estimate of the loss. Computing the gradient estimators now reduces to differentiating this loss, which can be very simply done using the framework’s differentiation API. ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
173,
|
| 807 |
+
651,
|
| 808 |
+
825,
|
| 809 |
+
762
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 5
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "text",
|
| 815 |
+
"text": "6 EXPERIMENTS ",
|
| 816 |
+
"text_level": 1,
|
| 817 |
+
"bbox": [
|
| 818 |
+
176,
|
| 819 |
+
782,
|
| 820 |
+
326,
|
| 821 |
+
797
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 5
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"text": "After having presented our new layer LSH Softmax, we now proceed to show its applicability and efficiency in a real-world setting for deep learning practitioners, specifically towards language modeling. We first show that our method significantly outperforms approximate softmax baselines while performing within $2 0 \\%$ of the performance of the exact softmax. We then provide a computational comparison. While we evaluate our method on NLP tasks, we want to emphasize that it is directly applicable to other domains, such as vision. However, public vision benchmark datasets with large output spaces require significantly more computational resources (e.g. 98 GPU nodes for 8 days for Flickr100M (Thomee et al., 2015)) which is outside the scope of this paper. ",
|
| 828 |
+
"bbox": [
|
| 829 |
+
174,
|
| 830 |
+
811,
|
| 831 |
+
825,
|
| 832 |
+
924
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 5
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "6.1 LANGUAGE MODELING ",
|
| 839 |
+
"text_level": 1,
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
103,
|
| 843 |
+
379,
|
| 844 |
+
117
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 6
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "Language modeling is the task of, given a sequence of words $( w _ { 1 } , \\dots , w _ { T } )$ in a vocabulary $\\nu$ , estimating $\\begin{array} { r } { p ( w _ { 1 } , \\dots , w _ { T } ) = \\prod _ { t \\leq T } \\overline { { p ( w _ { t } | w _ { < t } ) } } } \\end{array}$ . Substantial work has been done to model these distributions using non-parametric $n$ -gram counts with additional smoothing techniques, but can fail to model long histories because of an exponential number of sequences. Recently, parametric models using RNNs have shown impressive success on these tasks (Mikolov, 2012). In this setting, large output spaces arise naturally, as the vocabulary size can range from $1 0 ^ { 4 }$ to $1 0 ^ { 6 }$ . We first describe our experimental protocol, and then report perplexity (ppl) of LSH Softmax against a set of baselines on this task for several datasets. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
173,
|
| 853 |
+
130,
|
| 854 |
+
825,
|
| 855 |
+
242
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 6
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Datasets We evaluate our method on three standard datasets for Language Modeling with varying number of characters and vocabulary size: ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
258,
|
| 865 |
+
821,
|
| 866 |
+
287
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 6
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "• Penn TreeBank (PTB): We follow the pre-processing described by (Mikolov, 2012), which results in $9 2 9 k$ training tokens, $7 3 k$ validation and $8 2 k$ test tokens with a $1 0 k$ vocabulary size. \n• Text8 is a dataset consisting of the first 100 millions characters of Wikipedia, and has a vocabulary size of $4 4 k$ . This dataset has been used recently in the context of language modeling (Xie et al., 2017). We use the $9 0 M$ first words for training and split the remaining between the validation and test set. Wikitext-2. First introduced in Merity et al. (2016), this is a selected corpus of Wikipedia articles. It has a vocabulary size of $3 3 k$ and contains $2 1 7 k$ tokens. As previously, we split between a training, validation and testing set. ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
215,
|
| 875 |
+
299,
|
| 876 |
+
825,
|
| 877 |
+
450
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 6
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "Baselines We evaluate the performance of models trained with (1) exact softmax i.e. computed over the entire output space, (2) Biased Importance Sampled softmax (BIS), as presented in (Jean et al., 2014), which consists of sub-sampling the vocabulary according to a proposal distribution based on unigram counts, and (3) Negative Sampling (NS), proposed in Mikolov et al. (2013), equivalent to (BIS) with a uniform distribution, (4) standard Importance Sampling (Jozefowicz et al., 2016) and (5) Noise-Contrastive Estimation (NCE; Gutmann & Hyvarinen (2012)). These baselines ¨ are what practitioners canonically use to circumvent the bottleneck of large output spaces. ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
173,
|
| 886 |
+
467,
|
| 887 |
+
825,
|
| 888 |
+
564
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 6
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "Implementation Details Our architecture is a 2-layer RNN with LSTM cells and 650 hidden units. Weights are initialized uniformly within $[ - 0 . 1 , 0 . 1 ]$ . Our models are trained using SGD using gradient clipping, with an initial learning rate of 20. This learning rate is annealed when the validation perplexity plateaus. Our models are trained for 40 epochs for PTB, 3 epochs for Text8, 25 epochs for Wikitext-2. With the notations of Theorem 3, for LSH Softmax, we choose $k = 1 0 \\sqrt { | \\nu | }$ and $l = \\sqrt { | \\nu | }$ . For the IS and NS baselines, we choose to sample $k + l$ classes from the output space for a fair comparison. We choose the number of bits per signature $b \\triangleq \\log _ { 2 } | \\nu |$ and choose $L$ , number of tables, to have sufficient recall for the MIPS task. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
579,
|
| 898 |
+
825,
|
| 899 |
+
699
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 6
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "6.1.1 LEARNING ",
|
| 906 |
+
"text_level": 1,
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
715,
|
| 910 |
+
303,
|
| 911 |
+
729
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 6
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "We report perplexity for a fixed architecture but comparing different softmax evaluations; we present both learning curves and perplexity on each set. We report the perplexity of all trained models using the exact probabilities i.e. the full softmax. Perplexities are reported in Table 1 and learning curves in Figure 1. We see that LSH Softmax consistently outperforms the approximate baselines by a fair margin while performing a similar number of operations, showcasing the strength of this estimator. We also observe from the training curves that approximate methods’ performances tend to plateau, as IS and NS cannot target the proper classes to push down. In constrast, LSH Softmax does not. ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
174,
|
| 920 |
+
739,
|
| 921 |
+
825,
|
| 922 |
+
837
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 6
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "6.2 COMPUTATIONAL COMPARISON ",
|
| 929 |
+
"text_level": 1,
|
| 930 |
+
"bbox": [
|
| 931 |
+
176,
|
| 932 |
+
854,
|
| 933 |
+
434,
|
| 934 |
+
869
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 6
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Having established that the proposed estimator performs very well on real-world tasks, we now proceed to evaluate the computation gains. It is important to note that for models with large output spaces, the softmax computation can amount to about $8 0 \\%$ of the total computation (Joulin et al., ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
176,
|
| 943 |
+
882,
|
| 944 |
+
823,
|
| 945 |
+
924
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 6
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "table",
|
| 951 |
+
"img_path": "images/f8a83c34c2d21d636dd4ac12e13dd8d0c15f0fc505c211cd3af449f5686f14da.jpg",
|
| 952 |
+
"table_caption": [],
|
| 953 |
+
"table_footnote": [],
|
| 954 |
+
"table_body": "<table><tr><td>Method</td><td colspan=\"3\">PTB</td><td colspan=\"3\">Wikitext-2</td><td colspan=\"3\">Text8</td></tr><tr><td></td><td>Train</td><td>Val</td><td>Test</td><td>Train</td><td>Val</td><td>Test</td><td>Train</td><td>Val</td><td>Test</td></tr><tr><td>Exact</td><td>29.67</td><td>83.52</td><td>79.80</td><td>38.05</td><td>101.88</td><td>95.06</td><td>164.68</td><td>151.92</td><td>189.67</td></tr><tr><td>BIS</td><td>48.76</td><td>133.26</td><td>135.51</td><td>65.57</td><td>214.9</td><td>205.65</td><td>1</td><td></td><td>1</td></tr><tr><td>NS</td><td>32.12</td><td>103.26</td><td>101.48</td><td>42.66</td><td>142.82</td><td>136.30</td><td>255.62</td><td>234.02</td><td>281.11</td></tr><tr><td>IS</td><td>1</td><td>1</td><td>114.33</td><td>1</td><td>1</td><td>128.38</td><td>1</td><td>1</td><td>205.94</td></tr><tr><td>NCE</td><td>1</td><td>1</td><td>115.30</td><td>1</td><td>1</td><td>122.04</td><td>1</td><td>1</td><td>386.87</td></tr><tr><td>Ours</td><td>25.68</td><td>97.45</td><td>92.91</td><td>63.60</td><td>124.51</td><td>115.11</td><td>206.20</td><td>178.86</td><td>224.42</td></tr></table>",
|
| 955 |
+
"bbox": [
|
| 956 |
+
176,
|
| 957 |
+
101,
|
| 958 |
+
821,
|
| 959 |
+
237
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 7
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Table 1: LSH Softmax performs closest to the exact softmax and handily outperforms importance sampling based methods with no concentration guarantees. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
173,
|
| 968 |
+
253,
|
| 969 |
+
823,
|
| 970 |
+
282
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 7
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "image",
|
| 976 |
+
"img_path": "images/e4394f30c6264e9787a1aa710c32d67dcdcdbcdcab1d5313e67dc48ee8dce17f.jpg",
|
| 977 |
+
"image_caption": [
|
| 978 |
+
"Figure 1: LSH Softmax converges faster than compared baselines on all three datasets. IS is not reported for Text8 as the results were order of magnitude worse than compared method. "
|
| 979 |
+
],
|
| 980 |
+
"image_footnote": [],
|
| 981 |
+
"bbox": [
|
| 982 |
+
191,
|
| 983 |
+
297,
|
| 984 |
+
805,
|
| 985 |
+
449
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 7
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "2016; Ji et al., 2015); we thus choose to only evaluate computational gains in the softmax layer. We evaluate our method in CPU, with a batch size of 1, to have an accurate estimation of the ratio of FLOPS. We report both speed-up and validation perplexity (ppl) relative difference with the exact softmax for LSH Softmax and NS. Note that NS requires the same number of operations as importance sampling (IS) but outperforms it in all tasks. Additionally, we show the speed-ups one can achieve on the One Billion Word dataset (Chelba et al., 2013), whose ppl was not evaluated due to computational constraints. We report the results in Table 2. We observe that, while faster, NS performs significantly worse than LSH Softmax. Furthermore, its performance deteriorates significantly when increasing the size of the output space, contrary to LSH Softmax which always performs in the same relative range. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
174,
|
| 994 |
+
518,
|
| 995 |
+
825,
|
| 996 |
+
659
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 7
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "table",
|
| 1002 |
+
"img_path": "images/9319b26b814a94ad8321c4b0daed6b511eb992e14dab427cd64213e22e549d33.jpg",
|
| 1003 |
+
"table_caption": [],
|
| 1004 |
+
"table_footnote": [],
|
| 1005 |
+
"table_body": "<table><tr><td>Method</td><td colspan=\"2\">PTB</td><td colspan=\"2\">Wikitext-2</td><td colspan=\"2\">Text8</td><td>Billion Word</td></tr><tr><td></td><td>Speed-up</td><td>△ppl</td><td>Speed-up</td><td>△ppl</td><td>Speed-up</td><td>△ ppl</td><td>Speed-up</td></tr><tr><td>NS</td><td>2.8×</td><td>23.6%</td><td>3.7×</td><td>40.2%</td><td>3.1×</td><td>54.0%</td><td>5.7×</td></tr><tr><td>Ours</td><td>1.6×</td><td>16.7%</td><td>2.4×</td><td>22.2%</td><td>2.3×</td><td>17.8%</td><td>4.1×</td></tr></table>",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
215,
|
| 1008 |
+
671,
|
| 1009 |
+
781,
|
| 1010 |
+
746
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 7
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "Table 2: LSH Softmax performs closest to the exact softmax and handily outperforms importance sampling based methods with no concentration guarantees. ",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
174,
|
| 1019 |
+
761,
|
| 1020 |
+
823,
|
| 1021 |
+
790
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 7
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "7 RELATED WORK ",
|
| 1028 |
+
"text_level": 1,
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
176,
|
| 1031 |
+
821,
|
| 1032 |
+
344,
|
| 1033 |
+
838
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 7
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "In recent years, MIPS-based estimators for log-linear models have been explored in the literature. Vijayanarasimhan et al. (2014) propose retrieving the largest logits using LSH and estimating the Softmax using only those classes. Their method is encompassed in ours by simply setting $l$ to 0. However, we note that not accounting for the tail can lead to highly biased gradients. Indeed, Mussmann et al. (2017) show that, using only the top- $k$ largest values leads to significantly worse performance. In a similar direction, Spring & Shrivastava (2017b) propose using LSH at each layer and only retaining the largest activations which can be viewed as a form of adaptive dropout. This work differs with ours in two ways: first of all, their paper provides no theoretical guarantees and secondly, they focus on reducing memory footprint which is not the aim of our work. Finally, Spring & Shrivastava (2017a) proposed using the LSH structure as a proposal distribution to evaluate the Softmax. While unbiased and efficient, their method does not offer any concentration guarantees and the estimator can have arbitrarily bad variance. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
174,
|
| 1042 |
+
853,
|
| 1043 |
+
825,
|
| 1044 |
+
924
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 7
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
174,
|
| 1053 |
+
103,
|
| 1054 |
+
825,
|
| 1055 |
+
200
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 8
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "8 CONCLUSION ",
|
| 1062 |
+
"text_level": 1,
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
176,
|
| 1065 |
+
222,
|
| 1066 |
+
318,
|
| 1067 |
+
238
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 8
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "In this work, we presented LSH Softmax, a softmax approximation layer for large output spaces with sub-linear learning and inference cost (in the number of states) and strong theoretical guarantees. We showcased both its applicability and efficiency by evaluating LSH on a common NLP task, language modeling. On several datasets for this task, we report perplexity closest to exact training among all baselines, as well as significant speed-ups. Our hope is that, for any architecture, this layer could be chosen in lieu of softmax, when the output space is sufficiently large to warrant the approximation. To that end, we plan to release source-code with the camera-ready version. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
174,
|
| 1076 |
+
253,
|
| 1077 |
+
825,
|
| 1078 |
+
351
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 8
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "REFERENCES ",
|
| 1085 |
+
"text_level": 1,
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
176,
|
| 1088 |
+
372,
|
| 1089 |
+
285,
|
| 1090 |
+
386
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 8
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. \nSami Abu-El-Haija, Nisarg Kothari, Joonseok Lee, Paul Natsev, George Toderici, Balakrishnan Varadarajan, and Sudheendra Vijayanarasimhan. Youtube- $. 8 \\mathrm { m }$ : A large-scale video classification benchmark. arXiv preprint arXiv:1609.08675, 2016. \nAlexandr Andoni, Piotr Indyk, Thijs Laarhoven, Ilya Razenshteyn, and Ludwig Schmidt. Practical and optimal lsh for angular distance. In Advances in Neural Information Processing Systems, pp. 1225–1233, 2015. \nDzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. \nMoses S Charikar. Similarity estimation techniques from rounding algorithms. In Proceedings of the thiryfourth annual ACM symposium on Theory of computing, pp. 380–388. ACM, 2002. \nCiprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013. \nAlex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In Acoustics, speech and signal processing (icassp), 2013 ieee international conference on, pp. 6645–6649. IEEE, 2013. \nEmil Julius Gumbel and Julius Lieblein. Statistical theory of extreme values and some practical applications: a series of lectures. 1954. \nMichael U Gutmann and Aapo Hyvarinen. Noise-contrastive estimation of unnormalized statistical models, ¨ with applications to natural image statistics. Journal of Machine Learning Research, 13(Feb):307–361, 2012. \nKaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Computer Vision and Pattern Recognition (CVPR), 2016 IEEE Conference on, 2016. \nSepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8):1735–1780, 1997. \nPiotr Indyk and Rajeev Motwani. Approximate nearest neighbors: towards removing the curse of dimensionality. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pp. 604–613. ACM, 1998. \nSebastien Jean, Kyunghyun Cho, Roland Memisevic, and Yoshua Bengio. On using very large target vocabulary ´ for neural machine translation. arXiv preprint arXiv:1412.2007, 2014. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
171,
|
| 1099 |
+
387,
|
| 1100 |
+
826,
|
| 1101 |
+
934
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 8
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "Shihao Ji, SVN Vishwanathan, Nadathur Satish, Michael J Anderson, and Pradeep Dubey. Blackout: Speeding up recurrent neural network language models with very large vocabularies. arXiv preprint arXiv:1511.06909, 2015. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
174,
|
| 1110 |
+
104,
|
| 1111 |
+
823,
|
| 1112 |
+
143
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 9
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "Armand Joulin, Laurens van der Maaten, Allan Jabri, and Nicolas Vasilache. Learning visual features from large weakly supervised data. In European Conference on Computer Vision, pp. 67–84. Springer, 2016. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
173,
|
| 1121 |
+
151,
|
| 1122 |
+
823,
|
| 1123 |
+
179
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 9
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
174,
|
| 1132 |
+
188,
|
| 1133 |
+
821,
|
| 1134 |
+
214
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 9
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
174,
|
| 1143 |
+
222,
|
| 1144 |
+
820,
|
| 1145 |
+
250
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 9
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document ´ recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
173,
|
| 1154 |
+
257,
|
| 1155 |
+
823,
|
| 1156 |
+
285
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 9
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "Qin Lv, William Josephson, Zhe Wang, Moses Charikar, and Kai Li. Multi-probe lsh: efficient indexing for high-dimensional similarity search. In Proceedings of the 33rd international conference on Very large data bases, pp. 950–961. VLDB Endowment, 2007. ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
176,
|
| 1165 |
+
292,
|
| 1166 |
+
823,
|
| 1167 |
+
332
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 9
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "Dougal Maclaurin, David Duvenaud, Matthew Johnson, and Ryan P Adams. Autograd: Reverse-mode differentiation of native python, 2015. URL http://github. com/HIPS/autograd. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
171,
|
| 1176 |
+
340,
|
| 1177 |
+
821,
|
| 1178 |
+
367
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 9
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Chris J Maddison, Daniel Tarlow, and Tom Minka. A\\* sampling. In Advances in Neural Information Processing Systems, pp. 3086–3094, 2014. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
176,
|
| 1187 |
+
376,
|
| 1188 |
+
821,
|
| 1189 |
+
402
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 9
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
174,
|
| 1198 |
+
410,
|
| 1199 |
+
825,
|
| 1200 |
+
438
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 9
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "Toma´s Mikolov. Statistical language models based on neural networks. ˇ Presentation at Google, Mountain View, 2nd April, 2012. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
173,
|
| 1209 |
+
445,
|
| 1210 |
+
823,
|
| 1211 |
+
473
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 9
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
173,
|
| 1220 |
+
481,
|
| 1221 |
+
823,
|
| 1222 |
+
521
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 9
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "Frederic Morin and Yoshua Bengio. Hierarchical probabilistic neural network language model. In Aistats, volume 5, pp. 246–252, 2005. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
171,
|
| 1231 |
+
529,
|
| 1232 |
+
823,
|
| 1233 |
+
556
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 9
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "Stephen Mussmann and Stefano Ermon. Learning and inference via maximum inner product search. In Proceedings of The 33rd International Conference on Machine Learning, pp. 2587–2596, 2016. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
173,
|
| 1242 |
+
564,
|
| 1243 |
+
823,
|
| 1244 |
+
592
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 9
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "Stephen Mussmann, Daniel Levy, and Stefano Ermon. Fast amortized inference and learning in log-linear models with randomly perturbed nearest neighbor search. arXiv preprint arXiv:1707.03372, 2017. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
173,
|
| 1253 |
+
599,
|
| 1254 |
+
823,
|
| 1255 |
+
627
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 9
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
173,
|
| 1264 |
+
635,
|
| 1265 |
+
821,
|
| 1266 |
+
674
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 9
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "David E Rumelhart, Geoffrey E Hinton, Ronald J Williams, et al. Learning representations by back-propagating errors. Cognitive modeling, 5(3):1, 1988. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
171,
|
| 1275 |
+
683,
|
| 1276 |
+
823,
|
| 1277 |
+
710
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 9
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "Ryan Spring and Anshumali Shrivastava. A new unbiased and efficient class of lsh-based samplers and estimators for partition function computation in log-linear models. arXiv preprint arXiv:1703.05160, 2017a. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
171,
|
| 1286 |
+
718,
|
| 1287 |
+
823,
|
| 1288 |
+
744
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 9
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Ryan Spring and Anshumali Shrivastava. Scalable and sustainable deep learning via randomized hashing. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 445–454. ACM, 2017b. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
174,
|
| 1297 |
+
753,
|
| 1298 |
+
821,
|
| 1299 |
+
792
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 9
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. The new data and new challenges in multimedia research. arXiv preprint arXiv:1503.01817, 1(8), 2015. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
173,
|
| 1308 |
+
800,
|
| 1309 |
+
823,
|
| 1310 |
+
840
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 9
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "Sudheendra Vijayanarasimhan, Jonathon Shlens, Rajat Monga, and Jay Yagnik. Deep networks with large output spaces. arXiv preprint arXiv:1412.7479, 2014. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
171,
|
| 1319 |
+
848,
|
| 1320 |
+
821,
|
| 1321 |
+
876
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 9
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "Ziang Xie, Sida I Wang, Jiwei Li, Daniel Levy, Aiming Nie, Dan Jurafsky, and Andrew Y Ng. Data noising as ´ smoothing in neural network language models. arXiv preprint arXiv:1703.02573, 2017. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
173,
|
| 1330 |
+
883,
|
| 1331 |
+
820,
|
| 1332 |
+
911
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 9
|
| 1335 |
+
}
|
| 1336 |
+
]
|
parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/_RnHyIeu5Y5/_RnHyIeu5Y5_content_list.json
ADDED
|
@@ -0,0 +1,1010 @@
|
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insic Inductive Bias ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
183,
|
| 8 |
+
122,
|
| 9 |
+
816,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yufei Xu1∗ Qiming Zhang1∗ Jing Zhang1 Dacheng Tao2,1 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
225,
|
| 19 |
+
220,
|
| 20 |
+
772,
|
| 21 |
+
237
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1The University of Sydney, Australia, 2JD Explore Academy, China ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
398,
|
| 30 |
+
253,
|
| 31 |
+
647,
|
| 32 |
+
284
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "{yuxu7116,qzha2506}@uni.sydney.edu.au, jing.zhang1@sydney.edu.au, dacheng.tao@gmail.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
297,
|
| 42 |
+
854,
|
| 43 |
+
310
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
462,
|
| 53 |
+
332,
|
| 54 |
+
535,
|
| 55 |
+
348
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Transformers have shown great potential in various computer vision tasks owing to their strong capability in modeling long-range dependency using the self-attention mechanism. Nevertheless, vision transformers treat an image as 1D sequence of visual tokens, lacking an intrinsic inductive bias (IB) in modeling local visual structures and dealing with scale variance. Alternatively, they require large-scale training data and longer training schedules to learn the IB implicitly. In this paper, we propose a new Vision Transformer Advanced by Exploring intrinsic IB from convolutions, i.e., ViTAE. Technically, ViTAE has several spatial pyramid reduction modules to downsample and embed the input image into tokens with rich multi-scale context by using multiple convolutions with different dilation rates. In this way, it acquires an intrinsic scale invariance IB and is able to learn robust feature representation for objects at various scales. Moreover, in each transformer layer, ViTAE has a convolution block in parallel to the multi-head selfattention module, whose features are fused and fed into the feed-forward network. Consequently, it has the intrinsic locality IB and is able to learn local features and global dependencies collaboratively. Experiments on ImageNet as well as downstream tasks prove the superiority of ViTAE over the baseline transformer and concurrent works. Source code and pretrained models will be available at code. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
363,
|
| 65 |
+
766,
|
| 66 |
+
612
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
637,
|
| 77 |
+
310,
|
| 78 |
+
655
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Transformers [79, 17, 40, 14, 46, 61] have shown a domination trend in NLP studies owing to their strong ability in modeling long-range dependencies by the self-attention mechanism [67, 81, 51]. Such success and good properties of transformers has inspired following many works that apply them in various computer vision tasks [19, 100, 97, 80, 7]. Among them, ViT [19] is the pioneering pure transformer model that embeds images into a sequence of visual tokens and models the global dependencies among them with stacked transformer blocks. Although it achieves promising performance on image classification, it requires large-scale training data and a longer training schedule. One important reason is that ViT ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
670,
|
| 88 |
+
496,
|
| 89 |
+
876
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/4515266c49c6aff7e7d656459cb5d8b9e3662e222790882fee6a157e2ad56504.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Comparison of data and training efficiency of T2T-ViT-7 and ViTAE-T on ImageNet. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
514,
|
| 102 |
+
651,
|
| 103 |
+
820,
|
| 104 |
+
835
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "lacks intrinsic inductive bias (IB) in modeling local visual structures (e.g., edges and corners) and dealing with objects at various scales like convolutions. Alternatively, ViT has to learn such IB implicitly from large-scale data. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
92,
|
| 114 |
+
823,
|
| 115 |
+
132
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Unlike vision transformers, Convolution Neural Networks (CNNs) naturally equip with the intrinsic IBs of scale-invariance and locality and still serve as prevalent backbones in vision tasks [26, 70, 62, 8, 96]. The success of CNNs inspires us to explore intrinsic IBs in vision transformers. We start by analyzing the above two IBs of CNNs, i.e., locality and scale-invariance. Convolution that computes local correlation among neighbor pixels is good at extracting local features such as edges and corners. Consequently, CNNs can provide plentiful low-level features at the shallow layers [94], which are then aggregated into high-level features progressively by a bulk of sequential convolutions [32, 68, 71]. Moreover, CNNs have a hierarchy structure to extract multi-scale features at different layers [68, 38, 26]. Besides, intra-layer convolutions can also learn features at different scales by varying their kernel sizes and dilation rates [25, 70, 8, 45, 96]. Consequently, scale-invariant feature representation can be obtained via intra- or inter-layer feature fusion. Nevertheless, CNNs are not well suited to model long-range dependencies2, which is the key advantage of transformers. An interesting question comes up: Can we improve vision transformers by leveraging the good properties of CNNs? Recently, DeiT [76] explores the idea of distilling knowledge from CNNs to transformers to facilitate training and improve the performance. However, it requires an off-the-shelf CNN model as the teacher and consumes extra training cost. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
140,
|
| 125 |
+
825,
|
| 126 |
+
359
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Different from DeiT, we explicitly introduce intrinsic IBs into vision transformers by re-designing the network structures in this paper. Current vision transformers always obtain tokens with singlescale context [19, 93, 80, 86, 47, 69, 77] and learn to adapt to objects at different scales from data. For example, T2T-ViT [93] improves ViT by delicately generating tokens in a soft split manner. Specifically, it uses a series of Tokens-to-Token transformation layers to aggregate single-scale neighboring contextual information and progressively structurizes the image to tokens. Motivated by the success of CNNs in dealing with scale variance, we explore a similar design in transformers, i.e., intra-layer convolutions with different receptive fields [70, 91], to embed multi-scale context into tokens. Such a design allows tokens to carry useful features of objects at various scales, thereby naturally having the intrinsic scale-invariance IB and explicitly facilitating transformers to learn scale-invariant features more efficiently from data. On the other hand, low-level local features are fundamental elements to generate high-level discriminative features. Although transformers can also learn such features at shallow layers from data, they are not skilled as convolutions by design. Recently, [89, 43, 21] stack convolutions and attention layers sequentially and demonstrate that locality is a reasonable compensation of global dependency. However, this serial structure ignores the global context during locality modeling (and vice versa). To avoid such a dilemma, we follow the “divide-and-conquer” idea and propose to model locality and long-range dependencies in parallel and then fuse the features to account for both. In this way, we empower transformers to learn local and long-range features within each block more effectively. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
366,
|
| 136 |
+
826,
|
| 137 |
+
628
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Technically, we propose a new Vision Transformers Advanced by Exploring Intrinsic Inductive Bias $( V i T A E )$ , which is a combination of two types of basic cells, i.e., reduction cell (RC) and normal cell (NC). RCs are used to downsample and embed the input images into tokens with rich multi-scale context while NCs aim to jointly model locality and global dependencies in the token sequence. Moreover, these two types of cells share a simple basic structure, i.e., paralleled attention module and convolutional layers followed by a feed-forward network (FFN). It is noteworthy that RC has an extra pyramid reduction module with atrous convolutions of different dilation rates to embed multi-scale context into tokens. Following the setting in [93], we stack three reduction cells to reduce the spatial resolution by $1 / 1 6$ and a series of NCs to learn discriminative features from data. ViTAE outperforms representative vision transformers in terms of data efficiency and training efficiency (see Figure 1), as well as classification accuracy and generalization on downstream tasks. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
636,
|
| 147 |
+
825,
|
| 148 |
+
787
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Our contributions are threefold. First, we explore two types of intrinsic IB in transformers, i.e., scale invariance and locality, and demonstrate the effectiveness of this idea in improving the feature learning ability of transformers. Second, we design a new transformer architecture named ViTAE based on two new reduction and normal cells to intrinsically incorporate the above two IBs. The proposed ViTAE embeds multi-scale context into tokens and learns both local and long-range features effectively. Third, ViTAE outperforms representative vision transformers regarding classification accuracy, data efficiency, training efficiency, and generalization on downstream tasks. ViTAE achieves $7 5 . 3 \\%$ and $8 2 . 0 \\%$ top-1 accuracy on ImageNet with 4.8M and 23.6M parameters, respectively. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
794,
|
| 158 |
+
825,
|
| 159 |
+
863
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
92,
|
| 169 |
+
825,
|
| 170 |
+
133
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 2
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "2 Related Work ",
|
| 177 |
+
"text_level": 1,
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
152,
|
| 181 |
+
321,
|
| 182 |
+
170
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "2.1 CNNs with intrinsic IB ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
176,
|
| 192 |
+
184,
|
| 193 |
+
372,
|
| 194 |
+
199
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "CNNs have led to a series of breakthroughs in image classification [38, 94, 26, 95, 87] and downstream computer vision tasks. The convolution operations in CNNs extract local features from the neighbor pixels within the receptive field determined by the kernel size [42]. Following the intuition that local pixels are more likely to be correlated in images [41], CNNs have the intrinsic IB in modeling locality. In addition to the locality, another critical topic in visual tasks is scale-invariance, where multi-scale features are needed to represent the objects at different scales effectively [49, 90]. For example, to effectively learn features of large objects, a large receptive field is needed by either using large convolution kernels [90, 91] or a series of convolution layers in deeper architectures [26, 32, 68, 71]. To construct multi-scale feature representation, the classical idea is using image pyramid [8, 1, 55, 4, 39, 16], where features are hand-crafted or learned from a pyramid of images at different resolutions respectively [44, 8, 52, 63, 35, 3]. Accordingly, features from the small scale image mainly encode the large objects while features from the large scale image respond more to small objects. In addition to the above inter-layer fusion way, another way is to aggregate multi-scale context by using multiple convolutions with different receptive fields within a single layer, i.e., intra-layer fusion [96, 71, 70, 70, 72]. Either inter-layer fusion or intra-layer fusion empower CNNs an intrinsic IB in modeling scale-invariance. This paper introduces such an IB to vision transformers by following the intra-layer fusion idea and utilizing multiple convolutions with different dilation rates in the reduction cells to encode multi-scale context into each visual token. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
209,
|
| 204 |
+
825,
|
| 205 |
+
458
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "2.2 Vision transformers with learned IB ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
176,
|
| 215 |
+
474,
|
| 216 |
+
462,
|
| 217 |
+
489
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "ViT [19] is the pioneering work that applies a pure transformer to vision tasks and achieves promising results. However, since ViT lacks intrinsic inductive bias in modeling local visual structures, it indeed learns the IB from amounts of data implicitly. Following works along this direction are to simplify the model structures with fewer intrinsic IBs and directly learn them from large scale data [50, 74, 75, 22, 18, 20, 27] which have achieved promising results and been studied actively. Another direction is to leverage the intrinsic IB from CNNs to facilitate the training of vision transformers, e.g., using less training data or shorter training schedules. For example, DeiT [76] proposes to distill knowledge from CNNs to transformers during training. However, it requires an off-the-shelf CNN model as a teacher, introducing extra computation cost during training. Recently, some works try to introduce the intrinsic IB of CNNs into vision transformers explicitly [23, 58, 21, 43, 15, 89, 83, 92, 6, 47, 11]. For example, [43, 21, 83] stack convolutions and attention layers sequentially, resulting in a serial structure and modeling the locality and global dependency accordingly. [80, 28] design sequential stage-wise structures while [47, 33] apply attention within local windows. However, these serial structure may ignore the global context during locality modeling (and vice versa). [88] establishes connection across different scales at the cost of heavy computation. Instead, we follow the “divide-and-conquer” idea and propose to model locality and global dependencies simultaneously via a parallel structure within each transformer layer. Conformer [58], the most relevant concurrent work to us, employs a unit to explore inter-block interactions between parallel convolution and transformer blocks. In contrast, in ViTAE, the convolution and attention modules are designed to be complementary to each other within the transformer block. In addition, Conformer is not designed to have inherent scale invariance IB. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
501,
|
| 227 |
+
826,
|
| 228 |
+
790
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "3 Methodology ",
|
| 235 |
+
"text_level": 1,
|
| 236 |
+
"bbox": [
|
| 237 |
+
174,
|
| 238 |
+
809,
|
| 239 |
+
313,
|
| 240 |
+
827
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "3.1 Revisit vision transformer ",
|
| 247 |
+
"text_level": 1,
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
842,
|
| 251 |
+
393,
|
| 252 |
+
856
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "We first give a brief review of vision transformer in this part. To adapt transformers to vision tasks, ViT [19] first splits an image $x \\in R ^ { H \\times W \\times C }$ into tokens with a reduction ratio of $p$ (i.e., $x _ { t } \\in R ^ { ( ( H \\times W ) / p ^ { 2 } ) \\times D } )$ , where $H , W$ and $C$ denote the height, width, and channel dimensions of the input image, $D = C p ^ { 2 }$ denotes the token dimension. Then, an extra class token is concatenated to the visual tokens before adding position embeddings in an element-wise manner. The resulting tokens are fed into the following transformer layers. Each transformer layer is composed of two parts, i.e., a multi-head self-attention module (MHSA) and a feed forward network (FFN). ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
867,
|
| 262 |
+
825,
|
| 263 |
+
911
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "image",
|
| 269 |
+
"img_path": "images/12ff638562a0b78bbcef09633d771c21fc798831f54a00e148f38d5e89e3596b.jpg",
|
| 270 |
+
"image_caption": [
|
| 271 |
+
"Figure 2: The structure of the proposed ViTAE. It is constructed by stacking three RCs and several NCs. Both types of cells share a simple basic structure, i.e., an MHSA module and a parallel convolutional module followed by an FFN. In particular, RC has an extra pyramid reduction module using atrous convolutions with different dilation rates to embed multi-scale context into tokens. "
|
| 272 |
+
],
|
| 273 |
+
"image_footnote": [],
|
| 274 |
+
"bbox": [
|
| 275 |
+
179,
|
| 276 |
+
88,
|
| 277 |
+
823,
|
| 278 |
+
328
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 3
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "",
|
| 285 |
+
"bbox": [
|
| 286 |
+
174,
|
| 287 |
+
433,
|
| 288 |
+
825,
|
| 289 |
+
489
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 3
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "MHSA Multi-head self-attention extends single-head self-attention (SHSA) by using different projection matrices for each head. Specifically, the input tokens $x _ { t }$ are first projected to queries $( Q )$ , keys $( K )$ and values $( V )$ using projection matrices, i.e., $Q , K , V = x _ { t } W _ { Q } , x _ { t } Q _ { K } , x _ { t } Q _ { V }$ , where $W _ { Q / K / V } \\in R ^ { D \\times D }$ denotes the projection matrix for query, key, and value, respectively. Then, the self-attention operation is calculated as: ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
505,
|
| 299 |
+
825,
|
| 300 |
+
578
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 3
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "equation",
|
| 306 |
+
"img_path": "images/67c1b6a153e357266ce63dcf66004997f007dc52c414762d6054a92d21ab5683.jpg",
|
| 307 |
+
"text": "$$\nA t t e n t i o n ( Q , K , V ) = s o f t m a x ( \\frac { Q K ^ { T } } { \\sqrt { D } } ) V .\n$$",
|
| 308 |
+
"text_format": "latex",
|
| 309 |
+
"bbox": [
|
| 310 |
+
349,
|
| 311 |
+
585,
|
| 312 |
+
648,
|
| 313 |
+
621
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 3
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "This SHSA module is repeated for $h$ times to formulate the MHSA module, where $h$ is the number of heads. The output features of the $h$ heads are concatenated along the channel dimension and formulate the output of the MHSA module. ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
627,
|
| 323 |
+
825,
|
| 324 |
+
670
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "FFN FFN is placed on top of the MHSA module and applied to each token identically and separately. It consists of two linear transformations with an activation function in between. Besides, a layer normalization [2] and a shortcut are added before and aside from the MHSA and FFN, respectively. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
684,
|
| 334 |
+
825,
|
| 335 |
+
728
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "3.2 Overview architecture of ViTAE ",
|
| 342 |
+
"text_level": 1,
|
| 343 |
+
"bbox": [
|
| 344 |
+
176,
|
| 345 |
+
744,
|
| 346 |
+
436,
|
| 347 |
+
760
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 3
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "ViTAE aims to introduce the intrinsic IB in CNNs to vision transformers. As shown in Figure 2, ViTAE is composed of two types of cells, i.e., RCs and NCs. RCs are responsible for embedding multi-scale context and local information into tokens, and NCs are used to further model the locality and long-range dependencies in the tokens. Taken an image $x \\in R ^ { H \\times W \\times C }$ as input, three RCs are used to gradually downsample $x$ by $4 \\times , 2 \\times$ , and $2 \\times$ , respectively. Thereby, the output tokens of the RCs are of size $[ H / 1 6 , W / 1 6 , D ]$ where $D$ is the token dimension (64 in our experiments). The output tokens of RCs are then flattened as $R ^ { H W / 2 5 6 \\times D }$ , concatenated with the class token, and added by the sinusoid position encoding. Next, the tokens are fed into the following NCs, which keep the length of the tokens. Finally, the prediction probability is obtained using a linear classification layer on the class token from the last NC. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
173,
|
| 356 |
+
770,
|
| 357 |
+
825,
|
| 358 |
+
911
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "3.3 Reduction cell ",
|
| 365 |
+
"text_level": 1,
|
| 366 |
+
"bbox": [
|
| 367 |
+
174,
|
| 368 |
+
90,
|
| 369 |
+
312,
|
| 370 |
+
106
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 4
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "Instead of directly splitting and flatten images into visual tokens based on a linear image patch embedding layer, we devise the reduction cell to embed multi-scale context and local information into visual tokens, which introduces the intrinsic scale-invariance and locality IBs from convolutions. Technically, RC has two parallel branches responsible for modeling locality and long-range dependency, respectively, followed by an FFN for feature transformation. We denote the input feature of the $i _ { t h } \\ : \\mathrm { R C }$ as $f _ { i } \\in \\dot { R } ^ { H _ { i } \\times W _ { i } \\times D _ { i } }$ . The input of the first RC is the image $x$ . In the global dependencies branch, $f _ { i }$ is firstly fed into a Pyramid Reduction Module (PRM) to extract multi-scale context, i.e., ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
173,
|
| 379 |
+
117,
|
| 380 |
+
826,
|
| 381 |
+
215
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 4
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "equation",
|
| 387 |
+
"img_path": "images/995f71351d9a0d0f5ed166388dc336a063cfcb324dbc2f6372f07fdf76e058d7.jpg",
|
| 388 |
+
"text": "$$\nf _ { i } ^ { m s } \\triangleq P R M _ { i } ( f _ { i } ) = C a t ( [ C o n v _ { i j } ( f _ { i } ; s _ { i j } , r _ { i } ) | s _ { i j } \\in S _ { i } , r _ { i } \\in { \\mathcal { R } } ] ) ,\n$$",
|
| 389 |
+
"text_format": "latex",
|
| 390 |
+
"bbox": [
|
| 391 |
+
279,
|
| 392 |
+
223,
|
| 393 |
+
715,
|
| 394 |
+
242
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 4
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "where $C o n v _ { i j } ( \\cdot )$ indicates the $j$ th convolutional layer in the PRM $( P R M _ { i } ( \\cdot ) )$ . It uses a dilation rate $s _ { i j }$ from the predefined dilation rate set $S _ { i }$ corresponding to the ith RC. Note that we use stride convolution to reduce the spatial dimension of features by a ratio $r _ { i }$ from the predefined reduction ratio set $\\mathcal { R }$ . The conv features are concatenated along the channel dimension, i.e., $f _ { i } ^ { m s } \\in$ $R ^ { ( W _ { i } / p ) \\times ( H _ { i } / p ) \\times ( | S _ { i } | D ) }$ , where $| { S _ { i } } |$ denotes the number of dilation rates in $S _ { i }$ . $f _ { i } ^ { m s }$ is then processed by an MHSA module to model long-range dependencies, i.e., ",
|
| 401 |
+
"bbox": [
|
| 402 |
+
173,
|
| 403 |
+
248,
|
| 404 |
+
825,
|
| 405 |
+
335
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 4
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "equation",
|
| 411 |
+
"img_path": "images/47bb46efbf400464cc18685ec76d7959be215ba831aad37913cc57da0f8d98b9.jpg",
|
| 412 |
+
"text": "$$\nf _ { i } ^ { g } = M H S A _ { i } ( I m g 2 S e q ( f _ { i } ^ { m s } ) ) ,\n$$",
|
| 413 |
+
"text_format": "latex",
|
| 414 |
+
"bbox": [
|
| 415 |
+
383,
|
| 416 |
+
343,
|
| 417 |
+
611,
|
| 418 |
+
361
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 4
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "where $I m g 2 S e q ( \\cdot )$ is a simple reshape operation to flatten the feature map to a 1D sequence. In this way, $f _ { i } ^ { g }$ embeds the multi-scale context in each token. In addition, we use a Parallel Convolutional Module (PCM) to embed local context within the tokens, which are fused with $f _ { i } ^ { g }$ as follows: ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
174,
|
| 427 |
+
367,
|
| 428 |
+
825,
|
| 429 |
+
410
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "equation",
|
| 435 |
+
"img_path": "images/aab14cd318e095613617d3482aa2f81617b3140ca8a4a2e53d1fa0230ff83a82.jpg",
|
| 436 |
+
"text": "$$\nf _ { i } ^ { l g } = f _ { i } ^ { g } + { \\cal P } { \\cal C } M _ { i } ( f _ { i } ) .\n$$",
|
| 437 |
+
"text_format": "latex",
|
| 438 |
+
"bbox": [
|
| 439 |
+
418,
|
| 440 |
+
420,
|
| 441 |
+
580,
|
| 442 |
+
439
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 4
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "Here, $P C M _ { i } ( \\cdot )$ represents the PCM, which is composed of three stacked convolution layers and an $I m g 2 S e q ( \\cdot )$ operation. It is noteworthy that the parallel convolution branch has the same spatial downsampling ratio as the PRM by using stride convolutions. In this way, the token features can carry both local and multi-scale context, implying that RC acquires the locality IB and scale-invariance IB by design. The fused tokens are then processed by the FFN, reshaped back to feature maps, and fed into the following RC or NC, i.e., ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
173,
|
| 451 |
+
446,
|
| 452 |
+
825,
|
| 453 |
+
530
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 4
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "equation",
|
| 459 |
+
"img_path": "images/716d8b1849d36a1ad308d5ce41f0df05844de9ab779da38fd00d2d340e97c83e.jpg",
|
| 460 |
+
"text": "$$\nf _ { i + 1 } = S e q 2 I m g ( F F N _ { i } ( f _ { i } ^ { l g } ) + f _ { i } ^ { l g } ) ,\n$$",
|
| 461 |
+
"text_format": "latex",
|
| 462 |
+
"bbox": [
|
| 463 |
+
369,
|
| 464 |
+
539,
|
| 465 |
+
625,
|
| 466 |
+
559
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "where the $S e q 2 I m g ( \\cdot )$ is a simple reshape operation to reshape a token sequence back to feature maps. $F F N _ { i } ( \\cdot )$ represents the FFN in the ith RC. In our ViTAE, three RCs are stacked sequentially to gradually reduce the input image’s spatial dimension by $4 \\times , 2 \\times$ , and $2 \\times$ , respectively. The feature maps generated by the last RC are of a size of $[ H / 1 6 , W / 1 6 , D ]$ , which are then flattened into visual tokens and fed into the following NCs. ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
565,
|
| 476 |
+
825,
|
| 477 |
+
636
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "3.4 Normal cell ",
|
| 484 |
+
"text_level": 1,
|
| 485 |
+
"bbox": [
|
| 486 |
+
174,
|
| 487 |
+
654,
|
| 488 |
+
294,
|
| 489 |
+
667
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "As shown in the bottom right part of Figure 2, NCs share a similar structure with the reduction cell except for the absence of the PRM. Due to the relatively small $( \\frac { 1 } { 1 6 } \\times )$ spatial size of feature maps after RCs, it is unnecessary to use PRM in NCs. Given $f _ { 3 }$ from the third RC, we first concatenate it with the class token $t _ { c l s }$ , and then add it to the positional encodings to get the input tokens $t$ for the following NCs. Here we ignore the subscript for clarity since all NCs have an identical architecture but different learnable weights. $t _ { c l s }$ is randomly initialized at the start of training and fixed during the inference. Similar to the RC, the tokens are fed into the MHSA module, i.e., $t _ { g } = M H S A ( t )$ . Meanwhile, they are reshaped to 2D feature maps and fed into the PCM, i.e., $t _ { l } = \\bar { I } m g 2 S e q ( P C M ( S e q 2 I m g ( t ) ) )$ . Note that the class token is discarded in PCM because it has no spatial connections with other visual tokens. To further reduce the parameters in NCs, we use group convolutions in PCM. The features from MHSA and PCM are then fused via element-wise sum, i.e., $t _ { l g } = t _ { g } + t _ { l }$ . Finally, $t _ { l g }$ are fed into the FFN to get the output features of NC, i.e., $t _ { n c } = F F N ( t _ { l g } ) \\overline { { + } } t _ { l g }$ . Similar to ViT [19], we apply layer normalization to the class token generated by the last NC and feed it to the classification head to get the final classification result. ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
173,
|
| 498 |
+
679,
|
| 499 |
+
826,
|
| 500 |
+
875
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "3.5 Model details ",
|
| 507 |
+
"text_level": 1,
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
891,
|
| 511 |
+
307,
|
| 512 |
+
905
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "We use two variants of ViTAE in our experiments for a fair comparison of other models with similar model sizes. The details of them are summarized in Table 1. In the first RC, the default convolution kernel size is $7 \\times 7$ with a ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
173,
|
| 521 |
+
92,
|
| 522 |
+
388,
|
| 523 |
+
186
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 5
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "table",
|
| 529 |
+
"img_path": "images/b78024fbd1f12dcc881657db015afe79b126382b56ffdf33fae9095f44e9bcf1.jpg",
|
| 530 |
+
"table_caption": [
|
| 531 |
+
"Table 1: Model details of two variants of ViTAE. "
|
| 532 |
+
],
|
| 533 |
+
"table_footnote": [],
|
| 534 |
+
"table_body": "<table><tr><td>Model</td><td>Reduction Cell Dilation</td><td>Cells</td><td>Normal Cell Heads Embed Cells</td><td></td><td>Params Macs (M)</td><td>(G)</td></tr><tr><td>ViTAE-T</td><td>[1,2,3,4] √</td><td>3</td><td>4 256</td><td>7</td><td>4.8</td><td>1.5</td></tr><tr><td>ViTAE-S</td><td>[1,2,3,4] √</td><td>3</td><td>6</td><td>384 14</td><td>23.6</td><td>5.6</td></tr></table>",
|
| 535 |
+
"bbox": [
|
| 536 |
+
405,
|
| 537 |
+
113,
|
| 538 |
+
816,
|
| 539 |
+
166
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 5
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "stride of 4 and dilation rates of $\\mathcal { S } _ { 1 } = [ 1 , 2 , 3 , 4 ]$ . In the following two RCs, the convolution kernel size is $3 \\times 3$ with a stride of 2 and dilation rates of $S _ { 2 } = [ 1 , 2 , 3 ]$ and $S _ { 3 } = [ 1 , 2 ]$ , respectively. Since the spatial dimension of tokens decreases, there is no need to use large kernels and dilation rates. PCM in both RCs and NCs comprises three convolutional layers with a kernel size of $3 \\times 3$ . ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
174,
|
| 548 |
+
188,
|
| 549 |
+
825,
|
| 550 |
+
243
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 5
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "4 Experiments ",
|
| 557 |
+
"text_level": 1,
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
263,
|
| 561 |
+
312,
|
| 562 |
+
280
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 5
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "4.1 Implementation details ",
|
| 569 |
+
"text_level": 1,
|
| 570 |
+
"bbox": [
|
| 571 |
+
174,
|
| 572 |
+
295,
|
| 573 |
+
374,
|
| 574 |
+
310
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "We train and test the proposed ViTAE model on the standard ImageNet [38] dataset, which contains about 1.3 million images and covers 1k classes. Unless explicitly stated, the image size during training is set to $2 2 4 \\times 2 2 4$ . We use the AdamW [48] optimizer with the cosine learning rate scheduler and uses the data augmentation strategy exactly the same as T2T [93] for a fair comparison, regarding the training strategies and the size of models. We use a batch size of 512 for training all our models and set the initial learning rate to be 5e-4. The results of our models can be found in Table 2, where all the models are trained for 300 epochs on 8 V100 GPUs. The models are built on PyTorch [57] and TIMM [82]. ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
320,
|
| 584 |
+
825,
|
| 585 |
+
431
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 5
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "4.2 Comparison with the state-of-the-art ",
|
| 592 |
+
"text_level": 1,
|
| 593 |
+
"bbox": [
|
| 594 |
+
176,
|
| 595 |
+
449,
|
| 596 |
+
467,
|
| 597 |
+
463
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 5
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "We compare our ViTAE with both CNN models and vision transformers with similar model sizes in Table 2. Both Top-1/5 accuracy and real Top-1 accuracy on the ImageNet validation set are reported. We categorize the methods into CNN models, vision transformers with learned IB, and vision transformers with introduced intrinsic IB. Compared with CNN models, our ViTAE-T achieves a $7 5 . 3 \\%$ Top-1 accuracy, which is better than ResNet-18 with more parameters. The real Top-1 accuracy of the ViTAE model is $8 2 . 9 \\%$ , which is comparable to ResNet-50 that has four more times of parameters than ours. Similarly, our ViTAE-S achieves $8 2 . 0 \\%$ Top-1 accuracy with half of the parameters of ResNet-101 and ResNet-152, showing the superiority of learning both local and longrange features from specific structures with corresponding intrinsic IBs by design. Similar phenomena can also be observed when comparing ViTAE-T with MobileNetV1 [31] and MobileNetV2 [65], where ViTAE obtains better performance with fewer parameters. When compared with larger models which are searched according to NAS [73], our ViTAE-S achieves a similar performance when using $3 8 4 \\times 3 8 4$ images as input, which further shows the potential of vision transformers with intrinsic IB. ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
174,
|
| 606 |
+
474,
|
| 607 |
+
825,
|
| 608 |
+
654
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 5
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "In addition, among the transformers with learned IB, ViT is the first pure transformer model for visual recognition. DeiT shares the same structure with ViT but uses different data augmentation and training strategies to facilitate the learning of transformers. DeiT⚗ denotes using an off-the-shelf CNN model as the teacher model to train DeiT, which introduces the intrinsic IB from CNN to transformer implicitly in a knowledge distillation manner, showing better performance than the vanilla ViT on the ImageNet dataset. It is exciting to see that our ViTAE-T with fewer parameters even outperforms the distilled model DeiT⚗, demonstrating the efficacy of introducing intrinsic IBs in transformers by design. Besides, compared with other transformers with explicit intrinsic IB, our ViTAE with fewer parameters also achieves comparable or better performance. For instance, ViTAE-T achieves comparable performance with LocalVit-T but has 1M fewer parameters, demonstrating the superiority of the proposed RCs and NCs in introducing intrinsic IBs. ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
174,
|
| 617 |
+
660,
|
| 618 |
+
825,
|
| 619 |
+
813
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 5
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "4.3 Ablation study ",
|
| 626 |
+
"text_level": 1,
|
| 627 |
+
"bbox": [
|
| 628 |
+
174,
|
| 629 |
+
830,
|
| 630 |
+
313,
|
| 631 |
+
844
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "We use T2T-ViT [93] as our baseline model in the following ablation study of our ViTAE. As shown in Table 3, we investigate the hyper-parameter settings in RCs and NCs by isolating them separately. All the models are trained for 100 epochs on ImageNet and follow the same training setting and data augmentation strategy as described in Section 4.1. ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
176,
|
| 640 |
+
856,
|
| 641 |
+
825,
|
| 642 |
+
911
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 5
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "table",
|
| 648 |
+
"img_path": "images/e514264bc0b3536b852ece05e614d3ca959237e923c2f3d7e1d3c16e5426e296.jpg",
|
| 649 |
+
"table_caption": [
|
| 650 |
+
"Table 2: Comparison of ViTAE and SOTA methods on the ImageNet validation set. "
|
| 651 |
+
],
|
| 652 |
+
"table_footnote": [],
|
| 653 |
+
"table_body": "<table><tr><td rowspan=\"2\">Type Model</td><td rowspan=\"2\">Params (M)</td><td rowspan=\"2\">MACs (G)</td><td rowspan=\"2\">Input Size</td><td colspan=\"3\">ImageNet Real</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-1</td></tr><tr><td rowspan=\"9\">CNN</td><td>ResNet-18 [26]</td><td>11.7</td><td>3.6</td><td>224</td><td>70.3</td><td>86.7</td><td>77.3</td></tr><tr><td>ResNet-50 [26]</td><td>25.6</td><td>7.6</td><td>224</td><td>76.7</td><td>93.3</td><td>82.5</td></tr><tr><td>ResNet-101 [26]</td><td>44.5</td><td>15.2</td><td>224</td><td>78.3</td><td>94.1</td><td>83.7</td></tr><tr><td>ResNet-152 [26]</td><td>60.2</td><td>22.6</td><td>224</td><td>78.9</td><td>94.4</td><td>84.1</td></tr><tr><td>EfficientNet-B0 [73]</td><td>5.3</td><td>0.8</td><td>224</td><td>77.1</td><td>93.3</td><td>83.5</td></tr><tr><td>EfficientNet-B4 [73]</td><td>19.3</td><td>8.4</td><td>380</td><td>82.9</td><td>96.4</td><td>88.0</td></tr><tr><td>MobileNetV1 [31]</td><td>4.3</td><td>0.6</td><td>224</td><td>72.3</td><td>1</td><td>-</td></tr><tr><td>MobileNetV2(1.4) [65]</td><td>6.9</td><td>0.6</td><td>224</td><td>74.7</td><td>-</td><td>-</td></tr><tr><td>RegNetY-600M[62]</td><td>6.1</td><td>1.2</td><td>224</td><td>75.5</td><td>-</td><td>-</td></tr><tr><td>RegNetY-4GF[62] RegNetY-8GF[62]</td><td>20.6 39.2</td><td>8.0 16.0</td><td>224</td><td>80.0</td><td>1</td><td>86.4</td></tr><tr><td></td><td></td><td></td><td></td><td>224</td><td>81.7</td><td>1</td><td>87.4</td></tr><tr><td rowspan=\"14\"></td><td>DeiT-T[76]</td><td>5.7</td><td>2.6</td><td>224</td><td>72.2</td><td>91.1</td><td>80.6</td></tr><tr><td>DeiT-T [76]</td><td>5.7</td><td>2.6</td><td>224</td><td>74.5</td><td>91.9</td><td>82.1</td></tr><tr><td>LocalViT-T[43]</td><td>5.9</td><td>2.6</td><td>224</td><td>74.8</td><td>92.6</td><td></td></tr><tr><td>LocalViT-T2T[43]</td><td>4.3</td><td>2.4</td><td>224</td><td>72.5</td><td>-</td><td>1 1</td></tr><tr><td>ConT-Ti [89]</td><td>5.8</td><td>1.6</td><td>224</td><td>74.9</td><td>-</td><td>-</td></tr><tr><td>PiT-Ti [29]</td><td>4.9</td><td>1.4</td><td>224</td><td>73.0</td><td>-</td><td>1</td></tr><tr><td>T2T-ViT-7 [93]</td><td>4.3</td><td>1.2</td><td>224</td><td>71.7</td><td>90.9</td><td>79.7</td></tr><tr><td>ViTAE-T</td><td>4.8</td><td>1.5</td><td>224</td><td>75.3</td><td>92.7</td><td>82.9</td></tr><tr><td>ViTAE-T ↑ 384</td><td>4.8</td><td>5.7</td><td>384</td><td>77.2</td><td>93.8</td><td>84.4</td></tr><tr><td>CeiT-T [92]</td><td>6.4</td><td>2.4</td><td>224</td><td>76.4</td><td>93.4</td><td>83.6</td></tr><tr><td>ConViT-Ti[15]</td><td>6.0</td><td>2.0</td><td>224</td><td>73.1</td><td>1</td><td>1</td></tr><tr><td>Cross ViT-Ti [6]</td><td>6.9</td><td>3.2</td><td>224</td><td>73.4</td><td>1</td><td>1</td></tr><tr><td>ViTAE-6M</td><td>6.5</td><td>2.0</td><td>224</td><td>77.9</td><td>94.1</td><td>84.9</td></tr><tr><td>PVT-T[80] LocalViT-PVT [43]</td><td>13.2</td><td>3.8</td><td>224</td><td>75.1</td><td>1</td><td></td></tr><tr><td rowspan=\"8\">PiT-XS [29] ConT-M [89] ViTAE-13M DeiT-S [76]</td><td>13.5</td><td>9.6</td><td>224</td><td></td><td>94.2</td><td>-</td></tr><tr><td>ConViT-Ti+ [15] 10.0</td><td>4.0</td><td>224</td><td>78.2 76.7</td><td></td><td>1</td></tr><tr><td></td><td>2.8</td><td></td><td>78.1</td><td>1</td><td>-</td></tr><tr><td>10.6 19.2</td><td>6.2</td><td>224 224</td><td>80.2</td><td>-</td><td>1</td></tr><tr><td>13.2</td><td>3.4</td><td>224</td><td>81.0</td><td>- 95.4</td><td>- 86.8</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>22.1 DeiT-S [76] 22.1</td><td>9.8 9.8</td><td>224 224</td><td>79.9 81.2</td><td>95.0 95.4</td><td>85.7 86.8</td></tr><tr><td>PVT-S[80]</td><td>7.6</td><td>224</td><td>79.8</td><td>-</td><td></td></tr><tr><td></td><td>24.5 23.5</td><td>5.2</td><td></td><td>81.3</td><td></td><td>1</td></tr><tr><td>Conformer-Ti [58] Swin-T[47]</td><td></td><td></td><td>224</td><td></td><td>-</td><td></td></tr><tr><td>CeiT-S [92]</td><td>29.0</td><td>9.0</td><td>224</td><td>81.3</td><td>-</td><td>1</td></tr><tr><td>CvT-13 [83]</td><td>24.2 20.0</td><td>9.0</td><td>224</td><td>82.0 81.6</td><td>95.9</td><td>87.3 86.7</td></tr><tr><td>ConViT-S[15]</td><td>27.0</td><td>9.0 10.8</td><td>224 224</td><td>81.3</td><td>1 1</td><td>1</td></tr><tr><td>Cross ViT-S [6]</td><td>26.7</td><td>11.2</td><td>224</td><td>81.0</td><td>1</td><td>1</td></tr><tr><td>PiT-S [29]</td><td>23.5</td><td>4.8</td><td>224</td><td>80.9</td><td></td><td></td></tr><tr><td>TNT-S [23]</td><td></td><td></td><td></td><td></td><td>-</td><td>1</td></tr><tr><td>Twins-PCPVT-S[10]</td><td>23.8</td><td>10.4</td><td>224</td><td>81.3</td><td>95.6</td><td>-</td></tr><tr><td></td><td>24.1</td><td>7.4</td><td>224</td><td>81.2</td><td>-</td><td>-</td></tr><tr><td>Twins-SVT-S [10]</td><td>24.0</td><td>5.6</td><td>224</td><td>81.7</td><td>-</td><td>1</td></tr><tr><td>T2T-ViT-14 [93]</td><td>21.5</td><td>5.2</td><td>224</td><td>81.5</td><td>95.7</td><td>86.8</td></tr><tr><td>ViTAE-S</td><td>23.6</td><td>5.6</td><td>224</td><td>82.0</td><td>95.9</td><td>87.0</td></tr><tr><td>ViTAE-S ↑ 384</td><td>23.6</td><td>20.2</td><td>384</td><td>83.0</td><td>96.2</td><td>87.5</td></tr></table>",
|
| 654 |
+
"bbox": [
|
| 655 |
+
196,
|
| 656 |
+
199,
|
| 657 |
+
800,
|
| 658 |
+
839
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 6
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "We use $\\checkmark$ and $\\times$ to denote whether or not the corresponding module is enabled during the experiments. If all columns under the RC and NC are marked $\\times$ as shown in the first row, the model becomes the standard T2T-ViT model. “Pre” indicates the output features of PCM and MHSA are fused before FFN while “Post” indicates a late fusion strategy correspondingly. “BN” indicates whether PCM uses BN after the convolutional layer or not. $\\mathit { \\Omega } ^ { 6 } \\times 3 \\mathit { \\Omega } ^ { 5 }$ in the first column denotes that the dilation rate set is the same in the three RCs. “ $[ 1 , 2 , 3 , 4 ]$ $\\downarrow ^ { \\circ }$ denotes using lower dilation rates in deeper RCs, i.e., $\\mathcal { S } _ { 1 } = [ 1 , 2 , 3 , 4 ]$ , $S _ { 2 } = [ 1 , 2 , 3 ]$ , $S _ { 3 } = [ 1 , 2 ]$ . ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
173,
|
| 667 |
+
92,
|
| 668 |
+
826,
|
| 669 |
+
190
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 7
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "As can be seen, using a pre-fusion strategy and BN achieves the best $6 9 . 9 \\%$ Top-1 accuracy among other settings. It is noteworthy that all the variants of NC outperform the vanilla T2T-ViT, implying the effectiveness of PCM, which introduces the intrinsic locality IB in transformers. It can also be observed that BN plays an important role in improving the model’s performance as it can help to alleviate the scale deviation between convolution’s and attention’s features. For the RC, we first investigate the impact of using different dilation rates in the PRM, as shown in the first column. As can be seen, using larger dilation rates (e.g., 4 or 5) does not deliver better performance. We suspect that larger dilation rates may lead to plain features in the deeper RCs due to the smaller resolution of feature maps. To ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
174,
|
| 678 |
+
194,
|
| 679 |
+
421,
|
| 680 |
+
497
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 7
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "table",
|
| 686 |
+
"img_path": "images/8cb6fb2c3865a2b27116e792990f87e65f07efdf975a9d033b0acebcd1d733eb.jpg",
|
| 687 |
+
"table_caption": [
|
| 688 |
+
"Table 3: Ablation Study of RCs and NCs in our ViTAE. “Pre” indicates the output features of PCM and MHSA are fused before FFN while “Post” indicates a late fusion strategy correspondingly. “BN” indicates whether PCM uses BN or not. “ $[ 1 , 2 , 3 , 4 ]$ $\\downarrow ^ { \\circ }$ denotes using smaller dilation rates in deeper RCs, i.e., $\\mathcal { S } _ { 1 } = [ 1 , 2 , 3 , 4 ]$ , $\\mathsf { \\bar { S } } _ { 2 } = [ 1 , 2 , 3 ]$ , $ { S _ { 3 } } = [ 1 , 2 ]$ . "
|
| 689 |
+
],
|
| 690 |
+
"table_footnote": [],
|
| 691 |
+
"table_body": "<table><tr><td>Reduction Cell</td><td></td><td>Normal Cell</td><td rowspan=\"2\">Top-1</td></tr><tr><td>Dilation (S1 ~ S3) PCM</td><td>Pre</td><td>BN Post</td></tr><tr><td>× ×</td><td>×</td><td>× ×</td><td>68.7</td></tr><tr><td>× ×</td><td>√</td><td>× ×</td><td>69.1</td></tr><tr><td>× ×</td><td>×</td><td>√ ×</td><td>69.0</td></tr><tr><td>× ×</td><td>×</td><td>√ √</td><td>68.8</td></tr><tr><td>× ×</td><td>√</td><td>× √</td><td>69.9</td></tr><tr><td>[1,2]×3</td><td>× ×</td><td>×</td><td>× 69.5</td></tr><tr><td>[1,2,3]×3 ×</td><td>×</td><td>× ×</td><td>69.9</td></tr><tr><td>[1,2,3,4] × 3 ×</td><td>×</td><td>× ×</td><td>69.2</td></tr><tr><td>[1,2,3,4,5] × 3 ×</td><td>×</td><td>× ×</td><td>68.9</td></tr><tr><td>[1,2,3,4]↓ ×</td><td>×</td><td>× ×</td><td>69.8</td></tr><tr><td>[1,2,3,4]↓ √</td><td>×</td><td>× ×</td><td>71.7</td></tr><tr><td>[1,2,3,4]↓ √</td><td>√</td><td>× √</td><td>72.6</td></tr></table>",
|
| 692 |
+
"bbox": [
|
| 693 |
+
450,
|
| 694 |
+
292,
|
| 695 |
+
805,
|
| 696 |
+
478
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 7
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "validate the hypothesis, we use smaller dilation rates in deeper RCs as denoted by $[ 1 , 2 , 3 , 4 ] \\downarrow$ . As can be seen, it achieves comparable performance as $[ 1 , 2 , 3 ] \\times$ . However, compared with $[ 1 , 2 , 3 , 4 ] \\downarrow$ , $[ 1 , 2 , 3 ] \\times$ increases the amount of parameters from 4.35M to $4 . 6 \\mathsf { M }$ . Therefore, we select $[ 1 , 2 , 3 , 4 ] \\downarrow$ as the default setting. In addition, after using PCM in the RC, it introduces the intrinsic locality IB, and the performance increases to $7 1 . 7 \\%$ Top-1 accuracy. Finally, the combination of RCs and NCs achieves the best accuracy at $7 2 . 6 \\%$ , demonstrating the complementarity between our RCs and NCs. ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
174,
|
| 705 |
+
498,
|
| 706 |
+
826,
|
| 707 |
+
580
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 7
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "4.4 Data efficiency and training efficiency ",
|
| 714 |
+
"text_level": 1,
|
| 715 |
+
"bbox": [
|
| 716 |
+
176,
|
| 717 |
+
611,
|
| 718 |
+
473,
|
| 719 |
+
626
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 7
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "To validate the effectiveness of the introduced intrinsic IBs in improving data efficiency and training efficiency, we compare our ViTAE with T2T-ViT at different training settings: (a) training them using $20 \\%$ , $60 \\%$ , and $100 \\%$ ImageNet training set for equivalent 100 epochs on the full ImageNet training set, e.g., we employ 5 times epochs when using $20 \\%$ data for training compared with using $100 \\%$ data; and (b) training them using the full ImageNet training set for 100, 200, and 300 epochs respectively. The results are shown in Figure 1. As can be seen, ViTAE consistently outperforms the T2T-ViT baseline by a large margin in terms of both data efficiency and training efficiency. For example, ViTAE using only $20 \\%$ training data achieves comparable performance with T2T-ViT using all data. When $60 \\%$ training data are used, ViTAE significantly outperforms T2T-ViT using all data by about an absolute $3 \\%$ accuracy. It is also noteworthy that ViTAE trained for only 100 epochs has outperformed T2T-ViT trained for 300 epochs. After training ViTAE for 300 epochs, its performance is significantly boosted to $7 5 . 3 \\%$ Top-1 accuracy. With the proposed RCs and NCs, the transformer layers in our ViTAE only need to focus on modeling long-range dependencies, leaving the locality and multi-scale context modeling to its convolution counterparts, i.e., PCM and PRM. Such a “divide-and-conquer” strategy facilitates the training of vision transformers, making it possible to learn more efficiently with less training data and fewer training epochs. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
174,
|
| 728 |
+
641,
|
| 729 |
+
825,
|
| 730 |
+
863
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 7
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "To further validate the data efficiency of ViTAE model, we train the ViTAE model from scratch on the smaller datasets, i.e., Cifar10 and Cifar100. The results are summarized in Table 4. It can be viewed that with only $1 / 7$ number of epochs, the ViTAE-T model achieves better classification performance on Cifar10 dataset, with far fewer parameters (4.8M v.s. 86M), which further confirms ViTAE model’s data efficiency. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
869,
|
| 740 |
+
825,
|
| 741 |
+
911
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 7
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "",
|
| 748 |
+
"bbox": [
|
| 749 |
+
169,
|
| 750 |
+
90,
|
| 751 |
+
825,
|
| 752 |
+
119
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 8
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "table",
|
| 758 |
+
"img_path": "images/63a31781efc1cf86aa1701ec0651b0baf9513eb3aeb90723d610223388fffb83.jpg",
|
| 759 |
+
"table_caption": [
|
| 760 |
+
"Table 4: Results of training from scratch on Cifar10/100. "
|
| 761 |
+
],
|
| 762 |
+
"table_footnote": [],
|
| 763 |
+
"table_body": "<table><tr><td>Model</td><td>Params (M)</td><td>Top-1 Acc</td><td>Epochs</td><td>Dataset</td></tr><tr><td>DeiT-B</td><td>86.0</td><td>97.5</td><td>7000</td><td>Cifar10</td></tr><tr><td>ViTAE-T</td><td>4.8</td><td>97.7</td><td>1000</td><td>Cifar10</td></tr><tr><td>ViTAE-T</td><td>4.8</td><td>85.0</td><td>1000</td><td>Cifar100</td></tr></table>",
|
| 764 |
+
"bbox": [
|
| 765 |
+
290,
|
| 766 |
+
154,
|
| 767 |
+
705,
|
| 768 |
+
214
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 8
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "4.5 Generalization on downstream tasks ",
|
| 775 |
+
"text_level": 1,
|
| 776 |
+
"bbox": [
|
| 777 |
+
176,
|
| 778 |
+
239,
|
| 779 |
+
465,
|
| 780 |
+
253
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 8
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "table",
|
| 786 |
+
"img_path": "images/1811ce2c1001783f4b47fef070c93481a3eed9f0f8f8b509c00a30ea1da1a596.jpg",
|
| 787 |
+
"table_caption": [
|
| 788 |
+
"Table 5: Generalization of ViTAE and SOTA methods on different downstream tasks. "
|
| 789 |
+
],
|
| 790 |
+
"table_footnote": [],
|
| 791 |
+
"table_body": "<table><tr><td>Model</td><td>Params (M)</td><td>Cifar10</td><td>Cifar100</td><td>iNat19</td><td>Cars</td><td>Flowers</td><td>Pets</td></tr><tr><td>Grafit ResNet-50 [78]</td><td>25.6</td><td>-</td><td>=</td><td>75.9</td><td>92.5</td><td>98.2</td><td>-</td></tr><tr><td>EfficientNet-B5 [73]</td><td>30</td><td>98.1</td><td>91.1</td><td>-</td><td>-</td><td>98.5</td><td>-</td></tr><tr><td>ViT-B/16 [19]</td><td>86.5</td><td>98.1</td><td>87.1</td><td>-</td><td>1</td><td>89.5</td><td>93.8</td></tr><tr><td>ViT-L/16 [19]</td><td>304.3</td><td>97.9</td><td>86.4</td><td>-</td><td>-</td><td>89.7</td><td>93.6</td></tr><tr><td>DeiT-B [76]</td><td>86.6</td><td>99.1</td><td>90.8</td><td>77.7</td><td>92.1</td><td>98.4</td><td>-</td></tr><tr><td>T2T-ViT-14 [93]</td><td>21.5</td><td>98.3</td><td>88.4</td><td>-</td><td>-</td><td>-</td><td>1</td></tr><tr><td>ViTAE-T</td><td>4.8</td><td>97.3</td><td>86.0</td><td>73.3</td><td>89.5</td><td>97.5</td><td>92.6</td></tr><tr><td>ViTAE-S</td><td>23.6</td><td>98.8</td><td>90.8</td><td>76.0</td><td>91.4</td><td>97.8</td><td>94.2</td></tr></table>",
|
| 792 |
+
"bbox": [
|
| 793 |
+
217,
|
| 794 |
+
287,
|
| 795 |
+
779,
|
| 796 |
+
406
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 8
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "We further investigate the generalization of the proposed ViTAE models on downstream tasks by finetuning them on the training sets of several fine-grained classification tasks3, including Flowers [53], Cars [36], Pets [56], and iNaturalist19. We also fine-tune the proposed ViTAE models on Cifar10 [37] and Cifar100 [37]. The results are shown in Table 5. It can be seen that ViTAE achieves SOTA performance on most of the datasets using comparable or fewer parameters. These results demonstrate that the good generalization ability of our ViTAE. ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
173,
|
| 805 |
+
422,
|
| 806 |
+
826,
|
| 807 |
+
506
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 8
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "4.6 Visual inspection of ViTAE ",
|
| 814 |
+
"text_level": 1,
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
523,
|
| 818 |
+
400,
|
| 819 |
+
537
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 8
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "To further analyze the property of our ViTAE, we first calculate the average attention distance of each layer in ViTAE-T and the baseline T2T-ViT-7 on the ImageNet test set, respectively. The results are shown in Figure 3. It can be observed that with the usage of PCM, which focuses on modeling locality, the transformer layers in the proposed NCs can better focus on modeling long-range dependencies, especially in shallow layers. In the deep layers, the average attention distances of ViTAE-T and T2T-ViT-7 are almost the same since modeling long-range dependencies is much more important. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
173,
|
| 828 |
+
549,
|
| 829 |
+
821,
|
| 830 |
+
632
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 8
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "These results confirm the effectiveness of the adopted “divide-and-conquer” idea in the proposed ViTAE, i.e., introducing the intrinsic locality IB from convolutions into vision transformers makes it possible that transformer layers only need to be responsible to long-range dependencies, since locality can be well modeled by convolutions in PCM. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
173,
|
| 839 |
+
632,
|
| 840 |
+
517,
|
| 841 |
+
728
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 8
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "image",
|
| 847 |
+
"img_path": "images/0d27a138487be9062b7073116e5379b9d74b5e8122843b673cecf6fb02d9776d.jpg",
|
| 848 |
+
"image_caption": [
|
| 849 |
+
"Figure 3: The average per-layer attention distance of T2T-ViT-7 and our ViTAE-T. "
|
| 850 |
+
],
|
| 851 |
+
"image_footnote": [],
|
| 852 |
+
"bbox": [
|
| 853 |
+
531,
|
| 854 |
+
648,
|
| 855 |
+
823,
|
| 856 |
+
750
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 8
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "Besides, we apply Grad-CAM [66] on the MHSA’s output in the last NC to qualitatively inspect ViTAE. The visualization results are provided in Figure 4. Compared with the baseline T2T-ViT, our ViTAE covers the single or multiple targets in the images more precisely and attends less to the background. Moreover, ViTAE can better handle the scale variance issue as shown in Figure 4(b). Namely, it can precisely cover the birds no matter they are in small, middle, or large size. Such observations demonstrate that introducing the intrinsic IBs of locality and scale-invariance from convolutions to transformers helps ViTAE learn more discriminate features than the pure transformers. ",
|
| 863 |
+
"bbox": [
|
| 864 |
+
174,
|
| 865 |
+
734,
|
| 866 |
+
519,
|
| 867 |
+
804
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 8
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "",
|
| 874 |
+
"bbox": [
|
| 875 |
+
174,
|
| 876 |
+
805,
|
| 877 |
+
825,
|
| 878 |
+
873
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "image",
|
| 884 |
+
"img_path": "images/c40cbf192eae3a11c74a33bbbb56c6df92c409dc0cc54401ef7f9004a71cc003.jpg",
|
| 885 |
+
"image_caption": [
|
| 886 |
+
"Figure 4: Visual inspection of T2T-ViT and ViTAE using Grad-CAM [66]. (a) Images containing multiple or single objects and the heatmaps. (b) Images containing the same class of objects at different scales and the heatmaps (Best viewed in color). "
|
| 887 |
+
],
|
| 888 |
+
"image_footnote": [],
|
| 889 |
+
"bbox": [
|
| 890 |
+
176,
|
| 891 |
+
90,
|
| 892 |
+
823,
|
| 893 |
+
294
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 9
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "5 Limitation and discussion ",
|
| 900 |
+
"text_level": 1,
|
| 901 |
+
"bbox": [
|
| 902 |
+
176,
|
| 903 |
+
385,
|
| 904 |
+
419,
|
| 905 |
+
401
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 9
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "In this paper, we explore two types of IBs and incorporate them into transformers through the proposed reduction and normal cells. With the collaboration of these two cells, our ViTAE model achieves impressive performance on the ImageNet with fast convergence and high data efficiency. Nevertheless, due to computational resource constraints, we have not scaled the ViTAE model and train it on largesize dataset, e.g., ImageNet-21K [38] and JFT-300M [30]. Although it remains unclear by now, we are optimistic about its scale property from the following preliminary evidence. As illustrated in Figure 2, our ViTAE model can be viewed as an intra-cell ensemble of complementary transformer layers and convolution layers owing to the skip connection and parallel structure. According to the attention distance analysis shown in Figure 3, the ensemble nature enables the transformer layers and convolution layers to focus on what they are good at, i.e., modeling long-range dependencies and locality. Therefore, ViTAE is very likely to learn better feature representation from large-scale data. Besides, we only study two typical IBs in this paper. More kinds of IBs such as constituting viewpoint invariance [64] can be explored in the future study. ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
173,
|
| 914 |
+
416,
|
| 915 |
+
826,
|
| 916 |
+
595
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 9
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "6 Conclusion ",
|
| 923 |
+
"text_level": 1,
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
614,
|
| 927 |
+
299,
|
| 928 |
+
631
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 9
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "In this paper, we re-design the transformer block by proposing two basic cells (reduction cells and normal cells) to incorporate two types of intrinsic inductive bias (IB) into transformers, i.e., locality and scale-invariance, resulting in a simple yet effective vision transformer architecture named ViTAE. Extensive experiments show that ViTAE outperforms representative vision transformers in various respects including classification accuracy, data efficiency, training efficiency, and generalization ability on downstream tasks. We plan to scale ViTAE to the large or huge model size and train it on large-size datasets in the future study. In addition, other kinds of IBs will also be investigated. We hope that this study will provide valuable insights to the following studies of introducing intrinsic IB into vision transformers and understanding the impact of intrinsic and learned IBs. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
174,
|
| 937 |
+
646,
|
| 938 |
+
825,
|
| 939 |
+
771
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 9
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Acknowledgement Dr. Jing Zhang is supported by the ARC project FL-170100117. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
173,
|
| 948 |
+
776,
|
| 949 |
+
725,
|
| 950 |
+
791
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 9
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "References ",
|
| 957 |
+
"text_level": 1,
|
| 958 |
+
"bbox": [
|
| 959 |
+
174,
|
| 960 |
+
90,
|
| 961 |
+
266,
|
| 962 |
+
106
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 10
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "processing. RCA engineer, 29(6):33–41, 1984. [2] J. L. Ba, J. R. Kiros, and G. E. Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. \n[3] H. Bay, T. Tuytelaars, and L. Van Gool. Surf: Speeded up robust features. In European conference on computer vision, pages 404–417. Springer, 2006. [4] P. J. Burt and E. H. Adelson. The laplacian pyramid as a compact image code. In Readings in computer vision, pages 671–679. Elsevier, 1987. \n[5] Z. Cai and N. Vasconcelos. Cascade r-cnn: Delving into high quality object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6154–6162, 2018. [6] C.-F. Chen, Q. Fan, and R. Panda. Crossvit: Cross-attention multi-scale vision transformer for image classification. arXiv preprint arXiv:2103.14899, 2021. [7] H. Chen, Y. Wang, T. Guo, C. Xu, Y. Deng, Z. Liu, S. Ma, C. Xu, C. Xu, and W. Gao. Pre-trained image processing transformer. arXiv preprint arXiv:2012.00364, 2020. [8] L.-C. Chen, G. Papandreou, F. Schroff, and H. Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. \n[9] X. Chen, S. Xie, and K. He. An empirical study of training self-supervised vision transformers. arXiv preprint arXiv:2104.02057, 2021. \n[10] X. Chu, Z. Tian, Y. Wang, B. Zhang, H. Ren, X. Wei, H. Xia, and C. Shen. Twins: Revisiting spatial attention design in vision transformers. arXiv preprint arXiv:2104.13840, 2021. \n[11] X. Chu, Z. Tian, B. Zhang, X. Wang, X. Wei, H. Xia, and C. Shen. Conditional positional encodings for vision transformers. arXiv preprint arXiv:2102.10882, 2021. \n[12] M. Contributors. MMSegmentation: Openmmlab semantic segmentation toolbox and benchmark. https: //github.com/open-mmlab/mmsegmentation, 2020. \n[13] M. Contributors. Openmmlab pose estimation toolbox and benchmark. https://github.com/ open-mmlab/mmpose, 2020. \n[14] Z. Dai, Z. Yang, Y. Yang, J. Carbonell, Q. V. Le, and R. Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. \n[15] S. d’Ascoli, H. Touvron, M. Leavitt, A. Morcos, G. Biroli, and L. Sagun. Convit: Improving vision transformers with soft convolutional inductive biases. arXiv preprint arXiv:2103.10697, 2021. \n[16] H. Demirel and G. Anbarjafari. Image resolution enhancement by using discrete and stationary wavelet decomposition. IEEE transactions on image processing, 20(5):1458–1460, 2010. \n[17] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. \n[18] X. Ding, X. Zhang, J. Han, and G. Ding. Repmlp: Re-parameterizing convolutions into fully-connected layers for image recognition. arXiv preprint arXiv:2105.01883, 2021. \n[19] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. \n[20] A. El-Nouby, H. Touvron, M. Caron, P. Bojanowski, M. Douze, A. Joulin, I. Laptev, N. Neverova, G. Synnaeve, J. Verbeek, et al. Xcit: Cross-covariance image transformers. arXiv preprint arXiv:2106.09681, 2021. \n[21] B. Graham, A. El-Nouby, H. Touvron, P. Stock, A. Joulin, H. Jégou, and M. Douze. Levit: a vision transformer in convnet’s clothing for faster inference. arXiv preprint arXiv:2104.01136, 2021. \n[22] M.-H. Guo, Z.-N. Liu, T.-J. Mu, and S.-M. Hu. Beyond self-attention: External attention using two linear layers for visual tasks. arXiv preprint arXiv:2105.02358, 2021. \n[23] K. Han, A. Xiao, E. Wu, J. Guo, C. Xu, and Y. Wang. Transformer in transformer. arXiv preprint arXiv:2103.00112, 2021. \n[24] K. He, G. Gkioxari, P. Dollár, and R. Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961–2969, 2017. \n[25] K. He, X. Zhang, S. Ren, and J. Sun. Spatial pyramid pooling in deep convolutional networks for visual recognition. IEEE transactions on pattern analysis and machine intelligence, 37(9):1904–1916, 2015. \n[26] 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, pages 770–778, 2016. \n[27] L. He, Y. Dong, Y. Wang, D. Tao, and Z. Lin. Gauge equivariant transformer. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021. \n[28] B. Heo, S. Yun, D. Han, S. Chun, J. Choe, and S. J. Oh. Rethinking spatial dimensions of vision transformers. In International Conference on Computer Vision (ICCV), 2021. \n[29] B. Heo, S. Yun, D. Han, S. Chun, J. Choe, and S. J. Oh. Rethinking spatial dimensions of vision transformers. arXiv preprint arXiv:2103.16302, 2021. \n[30] G. Hinton, O. Vinyals, and J. Dean. Distilling the knowledge in a neural network. In NIPS Deep Learning and Representation Learning Workshop, 2015. \n[31] A. G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand, M. Andreetto, and H. Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. \n[32] G. Huang, Z. Liu, L. Van Der Maaten, and K. Q. Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700–4708, vision transformer. arXiv preprint arXiv:2106.03650, 2021. \n[34] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pages 448–456. PMLR, 2015. \n[35] Y. Ke and R. Sukthankar. Pca-sift: A more distinctive representation for local image descriptors. In Proceedings of the IEEE conference on computer vision and pattern recognition, volume 2, pages II–II. IEEE, 2004. \n[36] J. Krause, M. Stark, J. Deng, and L. Fei-Fei. 3d object representations for fine-grained categorization. In 4th International IEEE Workshop on 3D Representation and Recognition (3dRR-13), Sydney, Australia, 2013. \n[37] A. Krizhevsky, G. Hinton, et al. Learning multiple layers of features from tiny images. 2009. \n[38] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25:1097–1105, 2012. \n[39] W.-S. Lai, J.-B. Huang, N. Ahuja, and M.-H. Yang. Deep laplacian pyramid networks for fast and accurate super-resolution. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 624–632, 2017. \n[40] Z. Lan, M. Chen, S. Goodman, K. Gimpel, P. Sharma, and R. Soricut. Albert: A lite bert for self-supervised learning of language representations. arXiv preprint arXiv:1909.11942, 2019. \n[41] Y. LeCun, Y. Bengio, et al. Convolutional networks for images, speech, and time series. The handbook of brain theory and neural networks, 3361(10):1995, 1995. \n[42] Y. LeCun, Y. Bengio, and G. Hinton. Deep learning. nature, 521(7553):436–444, 2015. \n[43] Y. Li, K. Zhang, J. Cao, R. Timofte, and L. Van Gool. Localvit: Bringing locality to vision transformers. arXiv preprint arXiv:2104.05707, 2021. \n[44] G. Lin, C. Shen, A. Van Den Hengel, and I. Reid. Efficient piecewise training of deep structured models for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3194–3203, 2016. \n[45] T.-Y. Lin, P. Dollár, R. Girshick, K. He, B. Hariharan, and S. Belongie. Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2117–2125, 2017. \n[46] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. \n[47] Z. Liu, Y. Lin, Y. Cao, H. Hu, Y. Wei, Z. Zhang, S. Lin, and B. Guo. Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030, 2021. \n[48] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2018. \n[49] W. Luo, Y. Li, R. Urtasun, and R. S. Zemel. Understanding the effective receptive field in deep convolutional neural networks. In Proceedings of the 30th International Conference on Neural Information Processing Systems, volume 29, pages 4898–4906, 2016. \n[50] L. Melas-Kyriazi. Do you even need attention? a stack of feed-forward layers does surprisingly well on imagenet. arXiv: Computer Vision and Pattern Recognition, 2021. \n[51] H. Nam, J.-W. Ha, and J. Kim. Dual attention networks for multimodal reasoning and matching. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 299–307, 2017. \n[52] P. C. Ng and S. Henikoff. Sift: Predicting amino acid changes that affect protein function. Nucleic acids research, 31(13):3812–3814, 2003. \n[53] M.-E. Nilsback and A. Zisserman. Automated flower classification over a large number of classes. In Indian Conference on Computer Vision, Graphics and Image Processing, Dec 2008. \n[54] S. W. Oh, J.-Y. Lee, N. Xu, and S. J. Kim. Video object segmentation using space-time memory networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9226–9235, 2019. \n[55] H. Olkkonen and P. Pesola. Gaussian pyramid wavelet transform for multiresolution analysis of images. Graphical Models and Image Processing, 58(4):394–398, 1996. \n[56] O. M. Parkhi, A. Vedaldi, A. Zisserman, and C. V. Jawahar. Cats and dogs. In IEEE Conference on Computer Vision and Pattern Recognition, 2012. \n[57] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, volume 32, pages 8026–8037, 2019. \n[58] Z. Peng, W. Huang, S. Gu, L. Xie, Y. Wang, J. Jiao, and Q. Ye. Conformer: Local features coupling global representations for visual recognition. arXiv preprint arXiv:2105.03889, 2021. \n[59] F. Perazzi, J. Pont-Tuset, B. McWilliams, L. Van Gool, M. Gross, and A. Sorkine-Hornung. A benchmark dataset and evaluation methodology for video object segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 724–732, 2016. \n[60] J. Pont-Tuset, F. Perazzi, S. Caelles, P. Arbeláez, A. Sorkine-Hornung, and L. Van Gool. The 2017 davis challenge on video object segmentation. arXiv preprint arXiv:1704.00675, 2017. \n[61] A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. \n[62] I. Radosavovic, R. P. Kosaraju, R. Girshick, K. He, and P. Dollár. Designing network design spaces. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 10428–10436, 2020. \n[63] E. Rublee, V. Rabaud, K. Konolige, and G. Bradski. Orb: An efficient alternative to sift or surf. In Proceedings of the IEEE international conference on computer vision, pages 2564–2571. Ieee, 2011. \n[64] S. Sabour, N. Frosst, and G. E. Hinton. Dynamic routing between capsules. arXiv preprint arXiv:1710.09829, 2017. \n[65] M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4510–4520, 2018. \n[66] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE international conference on computer vision, pages 618–626, 2017. \n[67] P. Shaw, J. Uszkoreit, and A. Vaswani. Self-attention with relative position representations. arXiv preprint arXiv:1803.02155, 2018. \n[68] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. \n[69] A. Srinivas, T.-Y. Lin, N. Parmar, J. Shlens, P. Abbeel, and A. Vaswani. Bottleneck transformers for visual recognition. arXiv preprint arXiv:2101.11605, 2021. \n[70] C. Szegedy, S. Ioffe, V. Vanhoucke, and A. Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017. \n[71] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1–9, 2015. \n[72] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818–2826, 2016. \n[73] M. Tan and Q. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International Conference on Machine Learning, pages 6105–6114. PMLR, 2019. \n[74] I. Tolstikhin, N. Houlsby, A. Kolesnikov, L. Beyer, X. Zhai, T. Unterthiner, J. Yung, D. Keysers, J. Uszkoreit, M. Lucic, and A. Dosovitskiy. Mlp-mixer: An all-mlp architecture for vision. arXiv preprint arXiv:2105.01601, 2021. \n[75] H. Touvron, P. Bojanowski, M. Caron, M. Cord, A. El-Nouby, E. Grave, A. Joulin, G. Synnaeve, J. Verbeek, and H. Jégou. Resmlp: Feedforward networks for image classification with data-efficient training. arXiv preprint arXiv:2105.03404, 2021. \n[76] H. Touvron, M. Cord, M. Douze, F. Massa, A. Sablayrolles, and H. Jégou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. \n[77] H. Touvron, M. Cord, A. Sablayrolles, G. Synnaeve, and H. Jégou. Going deeper with image transformers. arXiv preprint arXiv:2103.17239, 2021. \n[78] H. Touvron, A. Sablayrolles, M. Douze, M. Cord, and H. Jégou. Grafit: Learning fine-grained image representations with coarse labels. arXiv preprint arXiv:2011.12982, 2020. \n[79] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, volume 30, pages 5998–6008, 2017. \n[80] W. Wang, E. Xie, X. Li, D.-P. Fan, K. Song, D. Liang, T. Lu, P. Luo, and L. Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. arXiv preprint arXiv:2102.12122, 2021. \n[81] X. Wang, R. Girshick, A. Gupta, and K. He. Non-local neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7794–7803, 2018. \n[82] R. Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2019. \n[83] H. Wu, B. Xiao, N. Codella, M. Liu, X. Dai, L. Yuan, and L. Zhang. Cvt: Introducing convolutions to vision transformers. arXiv preprint arXiv:2103.15808, 2021. \n[84] B. Xiao, H. Wu, and Y. Wei. Simple baselines for human pose estimation and tracking. In Proceedings of the European Conference on Computer Vision (ECCV), September 2018. \n[85] T. Xiao, Y. Liu, B. Zhou, Y. Jiang, and J. Sun. Unified perceptual parsing for scene understanding. In Proceedings of the European Conference on Computer Vision (ECCV), pages 418–434, 2018. \n[86] J. Xie, R. Zeng, Q. Wang, Z. Zhou, and P. Li. So-vit: Mind visual tokens for vision transformer. arXiv preprint arXiv:2104.10935, 2021. \n[87] S. Xie, R. Girshick, P. Dollár, Z. Tu, and K. He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492–1500, 2017. \n[88] W. Xu, Y. Xu, T. Chang, and Z. Tu. Co-scale conv-attentional image transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 9981–9990, October 2021. \n[89] H. Yan, Z. Li, W. Li, C. Wang, M. Wu, and C. Zhang. Contnet: Why not use convolution and transformer at the same time? arXiv preprint arXiv:2104.13497, 2021. \n[90] F. Yu and V. Koltun. Multi-scale context aggregation by dilated convolutions. In ICLR 2016 : International Conference on Learning Representations 2016, 2016. \n[91] F. Yu, V. Koltun, and T. Funkhouser. Dilated residual networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 472–480, 2017. \n[92] K. Yuan, S. Guo, Z. Liu, A. Zhou, F. Yu, and W. Wu. Incorporating convolution designs into visual transformers. arXiv preprint arXiv:2103.11816, 2021. \n[93] L. Yuan, Y. Chen, T. Wang, W. Yu, Y. Shi, Z. Jiang, F. E. Tay, J. Feng, and S. Yan. Tokens-to-token vit: Training vision transformers from scratch on imagenet. arXiv preprint arXiv:2101.11986, 2021. \n[94] M. D. Zeiler and R. Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pages 818–833. Springer, 2014. \n[95] X. Zhang, X. Zhou, M. Lin, and J. Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6848–6856, 2018. \n[96] H. Zhao, J. Shi, X. Qi, X. Wang, and J. Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881–2890, 2017. \n[97] S. Zheng, J. Lu, H. Zhao, X. Zhu, Z. Luo, Y. Wang, Y. Fu, J. Feng, T. Xiang, P. H. S. Torr, and L. Zhang. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. arXiv preprint arXiv:2012.15840, 2020. \n[98] B. Zhou, H. Zhao, X. Puig, S. Fidler, A. Barriuso, and A. Torralba. Scene parsing through ade20k dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 633–641, 2017. \n[99] B. Zhou, H. Zhao, X. Puig, T. Xiao, S. Fidler, A. Barriuso, and A. Torralba. Semantic understanding of scenes through the ade20k dataset. International Journal of Computer Vision, 127(3):302–321, 2019. \n[100] 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, 2021. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
179,
|
| 971 |
+
133,
|
| 972 |
+
826,
|
| 973 |
+
911
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 10
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "",
|
| 980 |
+
"bbox": [
|
| 981 |
+
178,
|
| 982 |
+
114,
|
| 983 |
+
828,
|
| 984 |
+
912
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 11
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "",
|
| 991 |
+
"bbox": [
|
| 992 |
+
179,
|
| 993 |
+
95,
|
| 994 |
+
828,
|
| 995 |
+
901
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 12
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
178,
|
| 1004 |
+
90,
|
| 1005 |
+
826,
|
| 1006 |
+
359
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 13
|
| 1009 |
+
}
|
| 1010 |
+
]
|
parse/train/rkeS1RVtPS/rkeS1RVtPS.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkeS1RVtPS/rkeS1RVtPS_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkeS1RVtPS/rkeS1RVtPS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkeS1RVtPS/rkeS1RVtPS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|