Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/Db4yerZTYkz/Db4yerZTYkz.md +244 -0
- parse/train/Db4yerZTYkz/Db4yerZTYkz_content_list.json +1343 -0
- parse/train/Db4yerZTYkz/Db4yerZTYkz_middle.json +0 -0
- parse/train/Db4yerZTYkz/Db4yerZTYkz_model.json +0 -0
- parse/train/HklUCCVKDB/HklUCCVKDB.md +361 -0
- parse/train/HklUCCVKDB/HklUCCVKDB_content_list.json +0 -0
- parse/train/HklUCCVKDB/HklUCCVKDB_middle.json +0 -0
- parse/train/HklUCCVKDB/HklUCCVKDB_model.json +0 -0
- parse/train/HyEl3o05Fm/HyEl3o05Fm.md +364 -0
- parse/train/HyEl3o05Fm/HyEl3o05Fm_content_list.json +0 -0
- parse/train/HyEl3o05Fm/HyEl3o05Fm_middle.json +0 -0
- parse/train/HyEl3o05Fm/HyEl3o05Fm_model.json +0 -0
- parse/train/KYPz4YsCPj/KYPz4YsCPj.md +537 -0
- parse/train/KYPz4YsCPj/KYPz4YsCPj_content_list.json +0 -0
- parse/train/KYPz4YsCPj/KYPz4YsCPj_middle.json +0 -0
- parse/train/KYPz4YsCPj/KYPz4YsCPj_model.json +0 -0
- parse/train/rkesVkHtDr/rkesVkHtDr.md +470 -0
- parse/train/rkesVkHtDr/rkesVkHtDr_content_list.json +0 -0
- parse/train/rkesVkHtDr/rkesVkHtDr_middle.json +0 -0
- parse/train/rkesVkHtDr/rkesVkHtDr_model.json +0 -0
parse/train/Db4yerZTYkz/Db4yerZTYkz.md
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SHAPE-TEXTURE DEBIASED NEURAL NETWORK TRAINING
|
| 2 |
+
|
| 3 |
+
Yingwei $\mathbf { L i } ^ { 1 }$ , Qihang $\mathbf { Y u } ^ { 1 }$ , Mingxing $\mathbf { T a n } ^ { 2 }$ , Jieru Mei1, Peng Tang1, Wei Shen3
|
| 4 |
+
Alan Yuille1 & Cihang Xie4
|
| 5 |
+
1Johns Hopkins University 2Google Brain 3Shanghai Jiaotong University
|
| 6 |
+
4University of California, Santa Cruz
|
| 7 |
+
|
| 8 |
+
# ABSTRACT
|
| 9 |
+
|
| 10 |
+
Shape and texture are two prominent and complementary cues for recognizing objects. Nonetheless, Convolutional Neural Networks are often biased towards either texture or shape, depending on the training dataset. Our ablation shows that such bias degenerates model performance. Motivated by this observation, we develop a simple algorithm for shape-texture debiased learning. To prevent models from exclusively attending on a single cue in representation learning, we augment training data with images with conflicting shape and texture information (e.g., an image of chimpanzee shape but with lemon texture) and, most importantly, provide the corresponding supervisions from shape and texture simultaneously.
|
| 11 |
+
|
| 12 |
+
Experiments show that our method successfully improves model performance on several image recognition benchmarks and adversarial robustness. For example, by training on ImageNet, it helps ResNet-152 achieve substantial improvements on ImageNet $( + 1 . 2 \% )$ , ImageNet-A $( + 5 . 2 \% )$ , ImageNet-C $( + 8 . 3 \% )$ and Stylized-ImageNet $( + 1 1 . 1 \% )$ , and on defending against FGSM adversarial attacker on ImageNet $( + 1 4 . 4 \% )$ . Our method also claims to be compatible to other advanced data augmentation strategies, e.g., Mixup and CutMix. The code is available here: https://github.com/LiYingwei/ ShapeTextureDebiasedTraining.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
It is known that both shape and texture serve as essential cues for object recognition. A decade ago, computer vision researchers had explicitly designed a variety of hand-crafted features, either based on shape (e.g., shape context (Belongie et al., 2002) and inner distance shape context (Ling & Jacobs, 2007)) or texture (e.g., textons (Malik et al., 2001)), for object recognition. Moreover, researchers found that properly combining shape and texture can further recognition performance (Shotton et al., 2009; Zheng et al., 2007), demonstrating the superiority of possessing both features.
|
| 17 |
+
|
| 18 |
+
Nowadays, as popularized by Convolutional Neural Networks (CNNs) (Krizhevsky et al., 2012), the features used for object recognition are automatically learned, rather than manually designed. This change not only eases human efforts on feature engineering, but also yields much better performance on a wide range of visual benchmarks (Simonyan & Zisserman, 2015; He et al., 2016; Girshick et al., 2014; Girshick, 2015; Ren et al., 2015; Long et al., 2015; Chen et al., 2015). But interestingly, as pointed by Geirhos et al. (2019), the features learned by CNNs tend to bias toward either shape or texture, depending on the training dataset.
|
| 19 |
+
|
| 20 |
+
We verify that such biased representation learning (towards either shape or texture) weakens CNNs’ performance.1 Nonetheless, surprisingly, we also find (1) the model with shape-biased representations and the model with texture-biased representations are highly complementary to each other, e.g., they focus on completely different cues for predictions (an example is provided in Figure 1); and (2) being biased towards either cue may inevitably limit model performance, e.g., models may not be able to tell the difference between a lemon and an orange without texture information. These observations altogether deliver a promising message—biased models (e.g., ImageNet trained (texturebiased) CNNs (Geirhos et al., 2019) or (shape-biased) CNNs (Shi et al., 2020)) are improvable.
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: Both shape and texture are essential cues for object recognition, and biasing towards either one degenerates model performance. As shown above, when classifying this fur coat image, the shape-biased model is confounded by the cloth-like shape therefore predict it as a poncho, and the texture-biased model confuses it as an Egyptian cat because of the misleading texture. Nonetheless, our debiased model can successfully recognize it as a fur coat by leveraging both shape and texture.
|
| 24 |
+
|
| 25 |
+
To this end, we hereby develop a shape-texture debiased neural network training framework to guide CNNs for learning better representations. Our method is a data-driven approach, which let CNNs automatically figure out how to avoid being biased towards either shape or texture from their training samples. Specifically, we apply style transfer to generate cue conflict images, which breaks the correlation between shape and texture, for augmenting the original training data. The most important recipe of training a successful shape-texture debiased model is that we need to provide supervision from both shape and texture on these generated cue conflict images, otherwise models will remain being biased.
|
| 26 |
+
|
| 27 |
+
Experiments show that our proposed shape-texture debiased neural network training significantly improves recognition models. For example, on the challenging ImageNet dataset (Russakovsky et al., 2015), our method helps ResNet-152 gain an absolute improvement of $1 . 2 \%$ , achieving $7 9 . 8 \%$ top-1 accuracy. Additionally, compared to its vanilla counterpart, this debiased ResNet-152 shows better generalization on ImageNet-A (Hendrycks et al., 2019) $( + 5 . 2 \% )$ , ImageNet-C (Hendrycks & Dietterich, 2019) $( + 8 . 3 \% )$ and Stylized ImageNet (Geirhos et al., 2019) $( + 1 1 . 1 \% )$ , and stronger robustness on defending against FGSM adversarial attacker on ImageNet $( + 1 4 . 4 \% )$ . Our shape-texture debiased neural network training is orthogonal to other advanced data augmentation strategies, e.g., it further boosts CutMix-ResNeXt-101 (Yun et al., 2019) by $0 . 7 \%$ on ImageNet, achieving $8 1 . 2 \%$ top-1 accuracy.
|
| 28 |
+
|
| 29 |
+
# 2 SHAPE/TEXTURE BIASED NEURAL NETWORKS
|
| 30 |
+
|
| 31 |
+
The biased feature representation of CNNs mainly stems from the training dataset, e.g., Geirhos et al. (2019) point out that models will be biased towards shape if trained on Stylized-ImageNet dataset. Following Geirhos et al. (2019), we hereby present a similar training pipeline to acquire shapebiased models or texture-biased models. By evaluating these two kinds of models, we observe the necessity of possessing both shape and texture representations for CNNs to better recognize objects.
|
| 32 |
+
|
| 33 |
+
# 2.1 MODEL ACQUISITION
|
| 34 |
+
|
| 35 |
+
Data generation. Similar to Geirhos et al. (2019), we apply images with conflicting shape and texture information as training samples to obtain shape-biased or texture-biased models. But different from Geirhos et al. (2019), an important change in our cue conflict image generation procedure is that we override the original texture information with the informative texture patterns from another randomly selected image, rather than with the uninformative style of randomly selected artistic paintings. That being said, to create a new training sample, we need to first select a pair of images from the training set uniformly at random, and then apply style transfer to blend their shape and texture information. Such a generated example is shown in Figure 2, i.e., the image of chimpanzee shape but with lemon texture.
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
Figure 2: Illustration of the our training pipeline for acquiring (a) a shape-biased model, (b) a texture-biased model, and (c) a shape-texture debiased model. Specifically, these models share the same training samples, i.e. images with conflicting texture and shape information, generated by style transfer between two randomly selected images; but apply distinct labelling strategies: in (a) & (b), labels are determined by the images that provides shape (or texture) information in style transfer, for guiding models to learn more shape (or texture) representations; in (c), labels are jointly determined by the pair of images in style transfer, for avoiding bias in representation learning.
|
| 39 |
+
|
| 40 |
+
Label assignment. The way of assigning labels to cue conflict images controls the bias of learned models. Without loss of generality, we show the case of learning a texture-biased model. To guide the model to attend more on texture, the labels assigned to the cue conflict images here will be exclusively based on the texture information, e.g., the image of chimpanzee shape but with lemon texture will be labelled as lemon, shown in Figure 2(b). By this way, the texture information is highly related to the “ground-truth” while the shape information only serves as a nuisance factor during learning. Similarly, to learn a shape-biased model, the label assignment of cue conflict images will be based on shape only, e.g., the image of chimpanzee shape but with lemon texture now will be labelled as chimpanzee, shown in Figure 2(a).
|
| 41 |
+
|
| 42 |
+
# 2.2 EVALUATION AND OBSERVATION
|
| 43 |
+
|
| 44 |
+
To reduce the computational overhead in this ablation, all models are trained and evaluated on ImageNet-200, which is a 200 classes subset of the original ImageNet, including 100,000 images (500 images per class) for training and 10,000 images (50 images per class) for validation. Akin to Geirhos et al. (2019), we observe that the models with biased feature representations tend to have inferior accuracy than their vanilla counterparts. For example, our shape-biased ResNet-18 only achieves $7 3 . 9 \%$ top-5 ImageNet-200 accuracy, which is much lower than the vanilla ResNet-18 with $8 8 . 2 \%$ top-5 ImageNet-200 accuracy.
|
| 45 |
+
|
| 46 |
+
Though biased representations weaken the overall classification accuracy, surprisingly, we find they are highly complementary to each other. We first visualize the attended image regions of biased models, via Class Activation Mapping (Zhou et al., 2016), in Figure 3. As we can see here, the shape-biased model and the texture-biased model concentrate on different cues for predictions. For instance, on the leftmost tabby cat image, the shape-biased model mainly focuses on the cat head, while the texture-biased model mainly focuses on the lower body and the front legs of the cat. Such attention mechanisms are correlated to their learned representations—the shape-biased model extracts the shape of the cat head as an important signal for predictions, while the texture-biased model relies on the texture information of cat fur for predictions.
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
Figure 3: The shape-biased model and the texture-biased model attend on complementary cues for predictions. We use Class Activation Mapping to visualize which image regions are attended by models. Redder regions indicates more attentions are paid by models.
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
Figure 4: The shape-biased model and the texture-biased model are good/bad at classifying different object categories. We sort these object categories according to the model’s corresponding top-1 accuracy, where the righter one indicates a lower accuracy achieved by the model.
|
| 53 |
+
|
| 54 |
+
As distinct cues are picked by shape-biased/texture-biased models, a more concrete observation is they are good/bad at classifying quite different object categories. As showed in Figure 4, the shapebiased model is good at recognizing objects with representative shape structure like obelisk, but is bad at recognizing objects whose shape is uninformative or almost indistinguishable from others like fur coat. Similarly, the texture-biased model can effectively recognize objects with unique texture patterns like brain coral but may fail to recognize objects with unpredictable texture like trolleybus (as its side body can be painted with different advertisements). Besides, biased models may inevitably perform poorly on certain categories as insufficient cues are applied. For examples, it is challenging to distinguish between a lemon and an orange if texture information cannot be utilized, or to distinguish between an lion and a tabby cat without shape information.
|
| 55 |
+
|
| 56 |
+
Given the analysis above, we can conclude that biased representations limit models’ recognition ability. But meanwhile, our ablation delivers a promising message—the features learned by biased models are highly complementary to each other. This observation indicates the current training framework is improvable (as the resulted models are biased towards texture (Geirhos et al., 2019) or shape (Shi et al., 2020)), and offers a potential direction for building a stronger one—we should train models to properly acquire both shape and texture feature representations. We will introduce a simple method for doing so next.
|
| 57 |
+
|
| 58 |
+
# 3 SHAPE-TEXTURE DEBIASED NEURAL NETWORK TRAINING
|
| 59 |
+
|
| 60 |
+
Recall that when obtaining a biased model, the strategy of label assignment is pivot—when the labels are exclusively determined by the images that provide shape (or texture) information in style transfer, we will obtain a shape-biased (or texture-biased) model. Therefore, to guide models for leveraging both shape and texture for predictions, we hereby propose a simple way, which is inspired by Mixup (Zhang et al., 2018), to softly construct labels during training. In other words, given the one-hot label of the shape-source image $y _ { s }$ and the one-hot label of the texture-source image $y _ { t }$ , the new label that we assigned to the cue conflict image is
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\widetilde { y } = \gamma * y _ { s } + ( 1 - \gamma ) * y _ { t } ,
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where $\gamma \in [ 0 , 1 ]$ is a manually selected hyperparameter to control the relative importance between shape and texture. By ranging the shape-texture coefficient $\gamma$ from 0 to 1, we obtain a path to evolve the model from being a texture-biased one (i.e., $\gamma = 0$ ) to being a shape-biased one (i.e., $\gamma = 1$ ). Although the two extreme ends lead to biased models with inferior performance, we empirically show that there exist a sweet point along this interpolation path, i.e., the learned models can properly acquires both shape and texture feature representations and achieve superior performance on a wide range of image recognition benchmarks.
|
| 67 |
+
|
| 68 |
+
We name this simple method as shape-texture debiased neural network training, and illustrate the training pipeline in Figure 2(c). It is worth to mention that, although Figure 2 only shows the procedure of applying our method to the image classification task, this training framework is general and has the potential to be extended to other computer vision tasks, e.g., a simple showcase on semantic segmentation is presented in Section 4.4.
|
| 69 |
+
|
| 70 |
+
# 4 EXPERIMENTS
|
| 71 |
+
|
| 72 |
+
# 4.1 EXPERIMENTS SETUP
|
| 73 |
+
|
| 74 |
+
Datasets. We evaluate models on ImageNet classification and PASCAL VOC semantic segmentation. ImageNet dataset (Russakovsky et al., 2015) consists of 1.2 million images for training, and 50,000 for validation, from 1,000 classes. PASCAL VOC 2012 segmentation dataset (Everingham et al., 2012) with extra annotated images from (Hariharan et al., 2011) involves 20 foreground object classes and one background class, including 10,582 training images and 1,449 validation images.
|
| 75 |
+
|
| 76 |
+
Going beyond the standard benchmarks, we further evaluate models’ generalization on ImageNetA, ImageNet-C and Stylized-ImageNet, and robustness by defending against FGSM adversarial attacker on ImageNet. ImageNet- $C$ (Hendrycks & Dietterich, 2019) is a benckmark dataset that measures models’ corruption robustness. It is constructed by applying 75 common visual corruptions to the ImageNet validation set. ImageNet-A (Hendrycks et al., 2019) includes 7,500 natural adversarial examples that successfully attacks unseen classifiers. These examples are much harder than original ImageNet validation images due to scene complications encountered in the long tail of scene configurations and by exploiting classifier blind spots (Hendrycks et al., 2019). StylizedImageNet (Geirhos et al., 2019) is a stylized version of ImageNet that constructed by re-rendering the original images by AdaIN stylizer (Huang & Belongie, 2017). The generated images keep the original global shape information but removes the local texture information. FGSM (Goodfellow et al., 2015) is a widely used adversarial attacker to evaluate model robustness. We set the maximum perturbation change per pixel $\epsilon = 1 6 / 2 5 5$ for FGSM.
|
| 77 |
+
|
| 78 |
+
Implementation details. We choose ResNet (He et al., 2016) as the default architecture. For image classification tasks, our implementation is based on the publicly available framework in PyTorch2. To generate cue conflict images, we follow Geirhos et al. (2019) to use Adaptive Instance Normalization (Huang & Belongie, 2017) in style transfer, and set stylization coefficient $\alpha = 0 . 5$ . Importantly, to increase the diversity of training samples, we generate these cue conflict images on-the-fly during training. We choose the shape-texture coefficient $\gamma = 0 . 8$ when assigning labels.
|
| 79 |
+
|
| 80 |
+
When training shape-biased, texture-biased and our shape-texture debiased models, we always apply the auxiliary batch normalization (BN) design (Xie et al., 2020; Xie & Yuille, 2020; Chen et al.,
|
| 81 |
+
|
| 82 |
+
Table 1: The performance of the vanilla training, the shape-biased (S-biased) training, the texturebiased (T-biased) training, and our shape-texture debiased training on ImageNet. For all ResNet models, our debiased training shows the best performance among others.
|
| 83 |
+
|
| 84 |
+
<table><tr><td></td><td>VANILLA</td><td>2×EPOCHS</td><td>S-BIASED</td><td>T-BIASED</td><td>DEBIASED</td></tr><tr><td>ResNet-50</td><td>76.4</td><td>76.4 (+0.0)</td><td>76.2 (-0.2)</td><td>75.3 (-1.1)</td><td>76.9 (+0.5)</td></tr><tr><td>ResNet-101</td><td>78.0</td><td>78.0 (+0.0)</td><td>78.0 (-0.0)</td><td>77.4 (-0.6)</td><td>78.9 (+0.9)</td></tr><tr><td>ResNet-152</td><td>78.6</td><td>79.1 (+0.5)</td><td>78.6 (-0.0)</td><td>78.1 (-0.5)</td><td>79.8 3(+1.2)</td></tr></table>
|
| 85 |
+
|
| 86 |
+
<table><tr><td></td><td>IN-A Acc. ↑</td><td>IN-C mCE↓</td><td>S-IN Acc. ↑</td><td>FGSM Acc.↑</td></tr><tr><td>ResNet-50 +Debiased</td><td>2.0 3.5 (+1.5)</td><td>75.0 67.5 (-7.5)</td><td>7.4 17.4 (+10.0)</td><td>17.1 27.4 (+10.3)</td></tr><tr><td>ResNet-101 +Debiased</td><td>5.6 9.1 1 (+3.5)</td><td>69.8 62.2 (-7.6)</td><td>9.9 22.0 (+12.1)</td><td>23.1 34.4 (+11.3)</td></tr><tr><td>ResNet-152 +Debiased</td><td>7.4 12.6 (+5.2)</td><td>67.2 58.9 (-8.3)</td><td>11.3 22.4 (+11.1)</td><td>25.2 39.6 (+14.4)</td></tr></table>
|
| 87 |
+
|
| 88 |
+
Table 2: The model robustness on ImageNet-A (IN-A), ImageNet-C (IN-C), Stylized-ImageNet (SIN), and on defending against FGSM adversarial attacker on ImageNet. Our shape-texture debiased neural network training significantly boosts the model robustness over the vanilla training baseline.
|
| 89 |
+
|
| 90 |
+
2021) to bridge the domain gap between the original data and the augmented data, i.e., the main BN is exclusively running on original ImageNet images and the auxiliary BN is exclusively running on cue conflict images. We follow Xie et al. (2020) to always apply the main BN for performance evaluation. Besides, since our biased models and debiased models are all trained with both the original data and the augmented data (i.e., $2 \times$ data are used in training), we also consider a stronger baseline (i.e., $2 \times$ epochs training) which doubles the schedule of the vanilla training baseline, for the purpose of matching the total training cost.
|
| 91 |
+
|
| 92 |
+
# 4.2 RESULTS
|
| 93 |
+
|
| 94 |
+
Model accuracy. Table 1 shows the results on ImageNet. For all ResNet models, the proposed shape-texture debiased neural network training consistently outperforms the vanilla training baseline. For example, it helps ResNet-50 achieve $7 6 . 9 \%$ top-1 accuracy, beating its vanilla counterpart by $0 . 5 \%$ . Our method works better for larger models, e.g., it further improves the vanilla ResNet-152 by $1 . 2 \%$ , achieving $7 9 . 8 \%$ top-1 accuracy.
|
| 95 |
+
|
| 96 |
+
We then compare our shape-texture debiased training to the $2 \times$ epochs training baseline. We find that simply doubling the schedule of the vanilla training baseline cannot effectively lead to improvements like ours. For examples, compared to the vanilla ResNet-101, this $2 \times$ epochs training fails to provide additional improvements, while ours furthers the top-1 accuracy by $1 . 0 \%$ . This result suggests that it is non-trivial to improve performance even if more computational budgets are given.
|
| 97 |
+
|
| 98 |
+
Lastly, we compare ours to the biased training methods. Though the only difference between our method and the biased training methods is the strategy of label assignment (as shown in Figure 2), it imperatively affects model performance. For example, compared to the vanilla baseline, both the shape-biased training and the texture-biased training fail to improve (sometimes even slightly hurt) the model accuracy, while our shape-texture debiased neural network training successfully leads to consistent and substantial accuracy improvements.
|
| 99 |
+
|
| 100 |
+
Model robustness. Next, we evaluate models’ generalization on ImageNet-A, ImageNet-C and Stylized-ImageNet, and robustness on defending against FGSM on ImageNet. We note these tasks are much more challenging than the original ImageNet classification, e.g., the ImageNet trained ResNet-50 only achieves $2 . 0 \%$ accuracy on ImageNet-A, $7 5 . 0 \%$ mCE on ImageNet-C, $7 . 4 \%$ accuracy on Stylized-ImageNet, and $1 7 . 1 \%$ accuracy on defending against FGSM adversarial attacker. As shown in Table 2, our shape-texture debiased neural network training beats the vanilla training baseline by a large margin on all tasks for all ResNet models. For example, it substantially boosts ResNet-152’s performance on ImageNet-A $( + 5 . 2 \%$ , from $7 . 4 \%$ to $1 2 . 6 \%$ ), ImageNet-C $( - 8 . 3 \%$ , from $6 7 . 2 \%$ to $5 8 . 9 \%$ , the lower the better) and Stylized-ImageNet $( + 1 1 . 1 \%$ , from $1 1 . 3 \%$ to $2 2 . 4 \%$ ), and on defending against FGSM on ImageNet $+ 1 4 . 4 \%$ , from $2 5 . 2 \%$ to $3 9 . 6 \%$ ). These results altogether suggest that our shape-texture debiased neural network training is an effective way to mitigate the issue of shortcut learning (Geirhos et al., 2020).
|
| 101 |
+
|
| 102 |
+
<table><tr><td></td><td>IN Acc. 个</td><td>IN-A Acc.个</td><td>IN-C mCE↓</td><td>S-IN Acc. 个</td><td>FGSM Acc.个</td></tr><tr><td>ResNet-50</td><td>76.4</td><td>2.0</td><td>75.0</td><td>7.4</td><td>17.1</td></tr><tr><td>CutMix + MoEx (Li et al., 2021)</td><td>79.0</td><td>8.0</td><td>74.8</td><td>5.0</td><td>41.0</td></tr><tr><td>DeepAugment + AugMix (Hendrycks et al., 2020)</td><td>75.8</td><td>3.9</td><td>53.6</td><td>21.2</td><td>18.8</td></tr><tr><td>SIN (Geirhos et al., 2019)</td><td>60.2</td><td>2.4</td><td>77.3</td><td>56.2</td><td>5.6</td></tr><tr><td>Shape-Texture Debiased Training (ours)</td><td>76.9</td><td>3.5</td><td>67.5</td><td>17.4</td><td>27.4</td></tr></table>
|
| 103 |
+
|
| 104 |
+
Table 3: Compare with state-of-the-art methods using ResNet-50 on ImageNet (IN), ImageNet-A (IN-A), ImageNet-C (IN-C), Stylized-ImageNet (S-IN), and on defending against FGSM on ImageNet. We use green to denote significant improvement, red to denote performance drop, and gray to denote similar performance. We observe our shape-texture debiased training is the only method that successfully leads to improvements over the vanilla baseline on all benchmarks.
|
| 105 |
+
|
| 106 |
+
<table><tr><td>Datasets</td><td>VANILLA</td><td>S-BIASED</td><td>T-BIASED</td><td>DEBIASED</td></tr><tr><td>ImageNet-Sketch</td><td>23.8</td><td>27.9</td><td>24.3</td><td>28.4</td></tr><tr><td>ImageNet-R</td><td>36.2</td><td>40.6</td><td>36.7</td><td>40.8</td></tr><tr><td>Kylberg Texture</td><td>99.5</td><td>99.1</td><td>99.6</td><td>99.5</td></tr><tr><td>FlickerMaterial</td><td>74.6</td><td>73.3</td><td>79.2</td><td>75.8</td></tr></table>
|
| 107 |
+
|
| 108 |
+
Table 4: The performance comparison between Vanilla, Shape-biased, Texture-biased, and ShapeTexture Debiased models on ImageNet-Sketch, ImageNet-R, Kylberg Texture, and Flicker Material datasets. We note the shape-biased and the shape-texture debiased models perform better on shape datasets (ImageNet-Sketch and ImageNet-R); the texture-biased and the shape-texture debiased models perform better on texture datasets (Kylberg Texture and Flicker Material).
|
| 109 |
+
|
| 110 |
+
Comparing to SoTAs. We further compare our shape-texture debiased model with the SoTA on ImageNet and ImageNet-A (CutMix $^ +$ MoEx (Li et al., 2021)), the SoTA on ImageNet-C (DeepAugment $^ +$ AugMix (Hendrycks et al., 2020)), and the SoTA on Stylized-ImageNet (SIN (Geirhos et al., 2019)). Interestingly, we note the improvements of all these SoTAs are not consistent across different benchmarks. For example, as shown in Table 3, SIN significantly improves the results on Stylized-ImageNet, but at the cost of huge performance drop on ImageNet $( - 1 6 . 2 \% )$ and ImageNetC $( - 2 . 3 \% )$ . Our shape-texture debiased training stands as the only method that can improve the vanilla training baseline holistically.
|
| 111 |
+
|
| 112 |
+
# 4.3 ABLATIONS
|
| 113 |
+
|
| 114 |
+
Comparing to model ensembles. An alternative but na¨ıve way for obtaining the model with both shape and texture information is to ensemble a shape-biased model and a texture-biased model. We note this ensemble strategy yields a model of on-par performance with our shape-texture debiased model on ImageNet $7 7 . 2 \%$ vs. $7 6 . 9 \%$ ). Nonetheless, interestingly, when measuring model robustness, such model ensemble strategy is inferior than ours. For example, compared to our proposed debiased training, this ensemble strategy is $1 . 5 \%$ worse on ImageNet-A ( $2 . 0 \%$ vs. $3 . 5 \%$ ), $1 . 1 \%$ worse on ImageNet-C $6 8 . 6 ~ \mathrm { m C E }$ vs. $6 7 . 5 ~ \mathrm { m C E }$ ), $1 . 1 \%$ worse on Stylized-ImageNet ( $1 6 . 3 \%$ vs. $1 7 . 4 \%$ ), and $7 . 0 \%$ worse on defending against FGSM $2 0 . 4 \%$ vs. $2 7 . 4 \%$ ). Moreover, due to model ensemble, this strategy is $2 \times$ expensive at the inference stage. These evidences clearly demonstrate the effectiveness and efficiency of the proposed shape-texture debiased training.
|
| 115 |
+
|
| 116 |
+
Does our method help models to learn debiased shape-texture representations? Here we take a close look at whether our method indeed prevents models from being biased toward shape or texture during learning. We evaluate models in Section 4.2 on two kinds of datasets: (1) ImageNetSketch dataset (Wang et al., 2019) and ImageNet-R (Hendrycks et al., 2020) for examining how well models can capture shape; and (2) Kylberg Texture dataset (Kylberg, 2011) and Flicker Material dataset (Sharan et al., 2014) for examining how well models can capture texture. Specifically, since object categories from two texture datasets are not compatible to that from ImageNet dataset, we retrain the last fc-layer (while keeping all other layers untouched) of all models on Kylberg Texture dataset or Flicker Material dataset for 5 epochs. The results are shown in Table 4.
|
| 117 |
+
|
| 118 |
+
We first analyze results on ImageNet-Sketch dataset. We observe our shape-texture debiased models are as good as the shape-biased models, and significantly outperforms the texture-biased models and the vanilla training models. For instance, using ResNet-50, our shape-texture debiased training and shape-biased training achieve $2 8 . 4 \%$ top-1 accuracy and $2 7 . 9 \%$ top-1 accuracy, while texture-biased training and vanilla training only get $2 4 . 3 \%$ top-1 accuracy and $2 3 . 8 \%$ top-1 accuracy. A similar observation can be seen from ImageNet-R. These results support that our method helps models acquire stronger shape representations than the vanilla training.
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 5: Illustration of the data preparation pipeline of our shape-texture debiased neural network training on the semantic segmentation task.
|
| 122 |
+
|
| 123 |
+
We next analyze results on Kylberg Texture dataset. Similarly, we observe that our debiased model are comparable to the texture-biased model and the vanilla training model, and get better performance than the shape-biased model. On Flicker Material dataset, we observe that our debiased models are better than the vanilla training model and the shape-biased model. This phenomenon suggests texture information is effectively caught by our shape-texture debiased training. As a side note, it is expected that vanilla training are better than shape-biased training on these texture datasets, as Geirhos et al. (2019) point out that ImageNet trained models (i.e., vanilla training) also tend to be biased towards texture.
|
| 124 |
+
|
| 125 |
+
With the analysis above, we conclude that, compared to vanilla training, our shape-texture debiased training successfully helps networks effectively acquire both shape and texture representations.
|
| 126 |
+
|
| 127 |
+
Combining with other data augmentation methods. Our shape-texture debiased neural network training can be viewed as a data augmentation method, which trains models on cue conflict images. Nonetheless, our method specifically guides the model to learn debiased shape and texture representations, which could potentially serve as a complementary feature to other data augmentation methods. To validate this argument, we train models using a combination of our method and an existing data augmentation method (i.e., Mixup (Zhang et al., 2018) or CutMix (Yun et al., 2019)).
|
| 128 |
+
|
| 129 |
+
We choose ResNeXt-101 (Xie et al., 2017) as the backbone network, which reports the best top-1 ImageNet accuracy in both the Mixup paper, i.e., $7 9 . 9 \%$ , and the CutMix paper, i.e., $8 0 . 5 \%$ . Though building upon very strong baselines, our shape-texture debiased neural network training still leads to substantial improvements, e.g., it furthers ResNeXt-101-Mixup’s accuracy to $8 0 . 5 \%$ $( + 0 . 6 \% )$ , and ResNeXt-101-CutMix’s accuracy to $8 1 . 2 \%$ $( + 0 . 7 \% )$ . Meanwhile, models’ generalization also get greatly improved. For example, by combining CutMix and our method, ResNeXt-101 gets additional improvements on ImageNet-A $( + 1 . 4 \% )$ , ImageNet-C $( - 5 . 9 \%$ , the lower the better) and Stylized ImageNet $( + 7 . 5 \% )$ . These results support that our shape-texture debiased neural network training is compatible to existing data augmentation methods.
|
| 130 |
+
|
| 131 |
+
Shape-texture coefficient $\gamma$ . We set $\gamma = 0 . 8$ in our shape-texture debiased training. This value is found via the grid search over ImageNet-200 using ResNet-18. We now ablate its sensitivity on ImageNet using ResNet-50, where $\gamma$ is linearly interpolated between 0.0 and 1.0. By increasing the value of $\gamma$ , we observe that the corresponding accuracy on ImageNet first monotonically goes up, and then monotonically goes down. The sweet point can be reached by setting $\gamma = 0 . 7$ , where ResNet-50 achieves $7 7 . 0 \%$ top-1 ImageNet accuracy. Besides, we note that by setting $\gamma \in [ 0 . 5 , 0 . 9 ]$ can always lead to performance improvements over the vanilla baseline. These results demonstrate the robustness of our shape-texture debiased neural network training w.r.t. the coefficient $\gamma$ .
|
| 132 |
+
|
| 133 |
+
# 4.4 SEMANTIC SEGMENTATION RESULTS
|
| 134 |
+
|
| 135 |
+
We extend our shape-texture debiased neural network training to the segmentation task. We select DeepLabv3-ResNet-101 (Chen et al., 2017) as our backbone. To better incorporate our method with the segmentation task, the following changes are made when generating cue conflict images: (1) unlike in the classification task where the whole image is used as the texture source, we use a specific object (which can cropped from the background using the segmentation ground-truth) to provide texture information in style transfer; (2) when composing the soft label for the cue conflict image, we set the label mask from texture source as the full image (since the pattern from the texture source will fill the whole image after style transfer); and (3) we set stylization coefficient $\alpha = 0 . 2$ and shape-texture coefficient $\gamma = 0 . 9 5$ to prevent object boundaries from being overly blurred in style transfer. Figure 5 shows an illustration of our data preparation pipeline.
|
| 136 |
+
|
| 137 |
+
Results. Our shape-texture debiased training can also effectively improve segmentation models. For example, our method helps DeepLabv3-ResNet-101 achieve $7 7 . 6 \%$ mIOU, significantly beating its vanilla counterpart by $1 . 1 \%$ . Our method still shows advantages when compared to the $2 \times$ epochs training baseline. Doubling the learning schedule of the vanilla training can only lead to an improvement of $0 . 2 \%$ , which is still $0 . 9 \%$ worse than our shape-texture debiased training. These results demonstrate the potential of our methods in helping recognition tasks in general.
|
| 138 |
+
|
| 139 |
+
# 5 RELATED WORK
|
| 140 |
+
|
| 141 |
+
Data augmentation. Data augmentation is essential for the success of deep learning (LeCun et al., 1998; Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; Zhong et al., 2020; Cubuk et al., 2019; Lim et al., 2019; Cubuk et al., 2020). Our shape-texture debiased neural network training is related to a specific family of data augmentation, called Mixup (Zhang et al., 2018), which blends pairs of images and their labels in a convex manner, either at pixel-level (Zhang et al., 2018; Yun et al., 2019) or feature-level (Verma et al., 2019; Li et al., 2021). Our method can be interpreted as a special instantiation of Mixup which blends pairs of images at the abstraction level—images’ texture information and shape information are mixed. Our method successfully guides CNNs to learn better shape and texture representations, which is an important but missing piece in existing data argumentation methods.
|
| 142 |
+
|
| 143 |
+
Style transfer. Style transfer, closely related to texture synthesis and transfer, means generating a stylized image by combining a shape-source image and a texture-source image (Efros & Leung, 1999; Efros & Freeman, 2001; Elad & Milanfar, 2017). The seminal work (Gatys et al., 2016) demonstrate impressive style transfer results by matching feature statistics in convolutional layers of a CNN. Later follow-ups further improve the generation quality and speed (Huang & Belongie, 2017; Chen & Schmidt, 2016; Ghiasi et al., 2017; Li et al., 2017). In this work, we follow Geirhos et al. (2019) to use AdaIN (Huang & Belongie, 2017) to generate stylized images. Nonetheless, instead of applying style transfer between an image and an artistic paintings as in Geirhos et al. (2019), we directly apply style transfer on a pair of images to generate cue conflict images. This change is vital as it enables us to provide supervisions from both shape and texture during training.
|
| 144 |
+
|
| 145 |
+
# 6 CONCLUSION
|
| 146 |
+
|
| 147 |
+
There is a long-time debate about which cue dominates the object recognition. By carefully ablate the shape-biased model and the texture-biased model, we found though biased feature representations lead to performance degradation, they are complementary to each other and are both necessary for image recognition. To this end, we propose shape-texture debiased neural network training for guiding CNNs to learn better feature representations. The key in our method is that we should not only augment training set with cue conflict images, but also provide supervisions from both shape and texture. We empirically demonstrate the advantages of our shape-texture debiased neural network training on boosting both accuracy and robustness. Our method is conceptually simple and is generalizable to different image recognition tasks. We hope our work will shed light on understanding and improving convolutional neural networks.
|
| 148 |
+
|
| 149 |
+
# ACKNOWLEDGEMENT
|
| 150 |
+
|
| 151 |
+
This project is partially supported by ONR N00014-18-1-2119 and ONR N00014-20-1-2206. Cihang Xie is supported by the Facebook PhD Fellowship and a gift grant from Open Philanthropy. Yingwei Li thanks Zhiwen Wang for suggestions on figures.
|
| 152 |
+
|
| 153 |
+
# REFERENCES
|
| 154 |
+
|
| 155 |
+
Serge Belongie, Jitendra Malik, and Jan Puzicha. Shape matching and object recognition using shape contexts. TPAMI, 2002.
|
| 156 |
+
|
| 157 |
+
Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Semantic image segmentation with deep convolutional nets and fully connected CRFs. In ICLR, 2015.
|
| 158 |
+
|
| 159 |
+
Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017.
|
| 160 |
+
|
| 161 |
+
Tian Qi Chen and Mark Schmidt. Fast patch-based style transfer of arbitrary style. NeurIPS Workshop, 2016.
|
| 162 |
+
|
| 163 |
+
Xiangning Chen, Cihang Xie, Mingxing Tan, Li Zhang, Cho-Jui Hsieh, and Boqing Gong. Robust and accurate object detection via adversarial learning. In CVPR, 2021.
|
| 164 |
+
|
| 165 |
+
Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation strategies from data. In CVPR, 2019.
|
| 166 |
+
|
| 167 |
+
Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In CVPR Workshops, 2020.
|
| 168 |
+
|
| 169 |
+
Alexei A Efros and William T Freeman. Image quilting for texture synthesis and transfer. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, 2001.
|
| 170 |
+
|
| 171 |
+
Alexei A Efros and Thomas K Leung. Texture synthesis by non-parametric sampling. In ICCV, 1999.
|
| 172 |
+
|
| 173 |
+
Michael Elad and Peyman Milanfar. Style transfer via texture synthesis. TIP, 2017.
|
| 174 |
+
|
| 175 |
+
M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The PASCAL Visual Object Classes Challenge 2012 (VOC2012) Results. http://www.pascalnetwork.org/challenges/VOC/voc2012/workshop/index.html, 2012.
|
| 176 |
+
|
| 177 |
+
Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In CVPR, 2016.
|
| 178 |
+
|
| 179 |
+
Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In ICLR, 2019.
|
| 180 |
+
|
| 181 |
+
Robert Geirhos, Jorn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, ¨ Matthias Bethge, and Felix A Wichmann. Shortcut learning in deep neural networks. arXiv preprint arXiv:2004.07780, 2020.
|
| 182 |
+
|
| 183 |
+
Golnaz Ghiasi, Honglak Lee, Manjunath Kudlur, Vincent Dumoulin, and Jonathon Shlens. Exploring the structure of a real-time, arbitrary neural artistic stylization network. In BMVC, 2017.
|
| 184 |
+
|
| 185 |
+
Ross Girshick. Fast R-CNN. In ICCV, 2015.
|
| 186 |
+
|
| 187 |
+
Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014.
|
| 188 |
+
|
| 189 |
+
Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015.
|
| 190 |
+
|
| 191 |
+
Bharath Hariharan, Pablo Arbelaez, Lubomir Bourdev, Subhransu Maji, and Jitendra Malik. Semantic contours from inverse detectors. In ICCV, 2011.
|
| 192 |
+
|
| 193 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
|
| 194 |
+
|
| 195 |
+
Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2019.
|
| 196 |
+
|
| 197 |
+
Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019.
|
| 198 |
+
|
| 199 |
+
Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020.
|
| 200 |
+
|
| 201 |
+
Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017.
|
| 202 |
+
|
| 203 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoff Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, 2012.
|
| 204 |
+
|
| 205 |
+
Gustaf Kylberg. Kylberg Texture Dataset v. 1.0. Centre for Image Analysis, Swedish University of Agricultural Sciences and Uppsala University, 2011.
|
| 206 |
+
|
| 207 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 1998.
|
| 208 |
+
|
| 209 |
+
Boyi Li, Felix Wu, Ser-Nam Lim, Serge Belongie, and Kilian Q Weinberger. On feature normalization and data augmentation. In CVPR, 2021.
|
| 210 |
+
|
| 211 |
+
Yijun Li, Chen Fang, Jimei Yang, Zhaowen Wang, Xin Lu, and Ming-Hsuan Yang. Universal style transfer via feature transforms. In NeurIPS, 2017.
|
| 212 |
+
|
| 213 |
+
Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. In NeurIPS, 2019.
|
| 214 |
+
|
| 215 |
+
Haibin Ling and David W Jacobs. Shape classification using the inner-distance. TPAMI, 2007.
|
| 216 |
+
|
| 217 |
+
Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015.
|
| 218 |
+
|
| 219 |
+
Jitendra Malik, Serge J. Belongie, Thomas K. Leung, and Jianbo Shi. Contour and texture analysis for image segmentation. IJCV, 2001.
|
| 220 |
+
|
| 221 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NeurIPS, 2015.
|
| 222 |
+
|
| 223 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 2015.
|
| 224 |
+
|
| 225 |
+
Lavanya Sharan, Ruth Rosenholtz, and Edward H. Adelson. Accuracy and speed of material categorization in real-world images. Journal of Vision, 14(10), 2014.
|
| 226 |
+
|
| 227 |
+
Baifeng Shi, Dinghuai Zhang, Qi Dai, Zhanxing Zhu, Yadong Mu, and Jingdong Wang. Informative dropout for robust representation learning: A shape-bias perspective. In ICML, 2020.
|
| 228 |
+
|
| 229 |
+
Jamie Shotton, John Winn, Carsten Rother, and Antonio Criminisi. Textonboost for image understanding: Multi-class object recognition and segmentation by jointly modeling texture, layout, and context. IJCV, 2009.
|
| 230 |
+
|
| 231 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 232 |
+
|
| 233 |
+
Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In ICML, 2019.
|
| 234 |
+
|
| 235 |
+
Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. In NeurIPS, 2019.
|
| 236 |
+
|
| 237 |
+
Cihang Xie and Alan Yuille. Intriguing properties of adversarial training at scale. In ICLR, 2020.
|
| 238 |
+
Cihang Xie, Mingxing Tan, Boqing Gong, Jiang Wang, Alan Yuille, and Quoc V Le. Adversarial examples improve image recognition. In CVPR, 2020.
|
| 239 |
+
Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual trans- ´ formations for deep neural networks. In CVPR, 2017.
|
| 240 |
+
Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, 2019.
|
| 241 |
+
Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR, 2018.
|
| 242 |
+
Songfeng Zheng, Zhuowen Tu, and Alan L. Yuille. Detecting object boundaries using low-, mid-, and high-level information. In CVPR, 2007.
|
| 243 |
+
Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In AAAI, 2020.
|
| 244 |
+
Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016.
|
parse/train/Db4yerZTYkz/Db4yerZTYkz_content_list.json
ADDED
|
@@ -0,0 +1,1343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SHAPE-TEXTURE DEBIASED NEURAL NETWORK TRAINING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
145
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yingwei $\\mathbf { L i } ^ { 1 }$ , Qihang $\\mathbf { Y u } ^ { 1 }$ , Mingxing $\\mathbf { T a n } ^ { 2 }$ , Jieru Mei1, Peng Tang1, Wei Shen3 \nAlan Yuille1 & Cihang Xie4 \n1Johns Hopkins University 2Google Brain 3Shanghai Jiaotong University \n4University of California, Santa Cruz ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
169,
|
| 20 |
+
723,
|
| 21 |
+
199
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
202,
|
| 31 |
+
696,
|
| 32 |
+
231
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
262,
|
| 43 |
+
544,
|
| 44 |
+
277
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Shape and texture are two prominent and complementary cues for recognizing objects. Nonetheless, Convolutional Neural Networks are often biased towards either texture or shape, depending on the training dataset. Our ablation shows that such bias degenerates model performance. Motivated by this observation, we develop a simple algorithm for shape-texture debiased learning. To prevent models from exclusively attending on a single cue in representation learning, we augment training data with images with conflicting shape and texture information (e.g., an image of chimpanzee shape but with lemon texture) and, most importantly, provide the corresponding supervisions from shape and texture simultaneously. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
291,
|
| 54 |
+
764,
|
| 55 |
+
416
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Experiments show that our method successfully improves model performance on several image recognition benchmarks and adversarial robustness. For example, by training on ImageNet, it helps ResNet-152 achieve substantial improvements on ImageNet $( + 1 . 2 \\% )$ , ImageNet-A $( + 5 . 2 \\% )$ , ImageNet-C $( + 8 . 3 \\% )$ and Stylized-ImageNet $( + 1 1 . 1 \\% )$ , and on defending against FGSM adversarial attacker on ImageNet $( + 1 4 . 4 \\% )$ . Our method also claims to be compatible to other advanced data augmentation strategies, e.g., Mixup and CutMix. The code is available here: https://github.com/LiYingwei/ ShapeTextureDebiasedTraining. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
417,
|
| 65 |
+
764,
|
| 66 |
+
541
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
565,
|
| 77 |
+
336,
|
| 78 |
+
580
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "It is known that both shape and texture serve as essential cues for object recognition. A decade ago, computer vision researchers had explicitly designed a variety of hand-crafted features, either based on shape (e.g., shape context (Belongie et al., 2002) and inner distance shape context (Ling & Jacobs, 2007)) or texture (e.g., textons (Malik et al., 2001)), for object recognition. Moreover, researchers found that properly combining shape and texture can further recognition performance (Shotton et al., 2009; Zheng et al., 2007), demonstrating the superiority of possessing both features. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
595,
|
| 88 |
+
825,
|
| 89 |
+
679
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Nowadays, as popularized by Convolutional Neural Networks (CNNs) (Krizhevsky et al., 2012), the features used for object recognition are automatically learned, rather than manually designed. This change not only eases human efforts on feature engineering, but also yields much better performance on a wide range of visual benchmarks (Simonyan & Zisserman, 2015; He et al., 2016; Girshick et al., 2014; Girshick, 2015; Ren et al., 2015; Long et al., 2015; Chen et al., 2015). But interestingly, as pointed by Geirhos et al. (2019), the features learned by CNNs tend to bias toward either shape or texture, depending on the training dataset. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
685,
|
| 99 |
+
825,
|
| 100 |
+
784
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "We verify that such biased representation learning (towards either shape or texture) weakens CNNs’ performance.1 Nonetheless, surprisingly, we also find (1) the model with shape-biased representations and the model with texture-biased representations are highly complementary to each other, e.g., they focus on completely different cues for predictions (an example is provided in Figure 1); and (2) being biased towards either cue may inevitably limit model performance, e.g., models may not be able to tell the difference between a lemon and an orange without texture information. These observations altogether deliver a promising message—biased models (e.g., ImageNet trained (texturebiased) CNNs (Geirhos et al., 2019) or (shape-biased) CNNs (Shi et al., 2020)) are improvable. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
790,
|
| 110 |
+
825,
|
| 111 |
+
902
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/83235d307c0b6ec9fed007c2a255dfacb36f496a9e7ac9b8cefa396660526811.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: Both shape and texture are essential cues for object recognition, and biasing towards either one degenerates model performance. As shown above, when classifying this fur coat image, the shape-biased model is confounded by the cloth-like shape therefore predict it as a poncho, and the texture-biased model confuses it as an Egyptian cat because of the misleading texture. Nonetheless, our debiased model can successfully recognize it as a fur coat by leveraging both shape and texture. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
98,
|
| 125 |
+
825,
|
| 126 |
+
353
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "To this end, we hereby develop a shape-texture debiased neural network training framework to guide CNNs for learning better representations. Our method is a data-driven approach, which let CNNs automatically figure out how to avoid being biased towards either shape or texture from their training samples. Specifically, we apply style transfer to generate cue conflict images, which breaks the correlation between shape and texture, for augmenting the original training data. The most important recipe of training a successful shape-texture debiased model is that we need to provide supervision from both shape and texture on these generated cue conflict images, otherwise models will remain being biased. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
441,
|
| 136 |
+
825,
|
| 137 |
+
554
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Experiments show that our proposed shape-texture debiased neural network training significantly improves recognition models. For example, on the challenging ImageNet dataset (Russakovsky et al., 2015), our method helps ResNet-152 gain an absolute improvement of $1 . 2 \\%$ , achieving $7 9 . 8 \\%$ top-1 accuracy. Additionally, compared to its vanilla counterpart, this debiased ResNet-152 shows better generalization on ImageNet-A (Hendrycks et al., 2019) $( + 5 . 2 \\% )$ , ImageNet-C (Hendrycks & Dietterich, 2019) $( + 8 . 3 \\% )$ and Stylized ImageNet (Geirhos et al., 2019) $( + 1 1 . 1 \\% )$ , and stronger robustness on defending against FGSM adversarial attacker on ImageNet $( + 1 4 . 4 \\% )$ . Our shape-texture debiased neural network training is orthogonal to other advanced data augmentation strategies, e.g., it further boosts CutMix-ResNeXt-101 (Yun et al., 2019) by $0 . 7 \\%$ on ImageNet, achieving $8 1 . 2 \\%$ top-1 accuracy. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
173,
|
| 146 |
+
560,
|
| 147 |
+
825,
|
| 148 |
+
700
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 SHAPE/TEXTURE BIASED NEURAL NETWORKS ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
720,
|
| 159 |
+
598,
|
| 160 |
+
737
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "The biased feature representation of CNNs mainly stems from the training dataset, e.g., Geirhos et al. (2019) point out that models will be biased towards shape if trained on Stylized-ImageNet dataset. Following Geirhos et al. (2019), we hereby present a similar training pipeline to acquire shapebiased models or texture-biased models. By evaluating these two kinds of models, we observe the necessity of possessing both shape and texture representations for CNNs to better recognize objects. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
752,
|
| 170 |
+
825,
|
| 171 |
+
823
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "2.1 MODEL ACQUISITION ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
842,
|
| 182 |
+
366,
|
| 183 |
+
856
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Data generation. Similar to Geirhos et al. (2019), we apply images with conflicting shape and texture information as training samples to obtain shape-biased or texture-biased models. But different from Geirhos et al. (2019), an important change in our cue conflict image generation procedure is that we override the original texture information with the informative texture patterns from another randomly selected image, rather than with the uninformative style of randomly selected artistic paintings. That being said, to create a new training sample, we need to first select a pair of images from the training set uniformly at random, and then apply style transfer to blend their shape and texture information. Such a generated example is shown in Figure 2, i.e., the image of chimpanzee shape but with lemon texture. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
867,
|
| 193 |
+
823,
|
| 194 |
+
924
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "image",
|
| 200 |
+
"img_path": "images/dec6f3cfa7570413769bd477e908d876c8ce5e7c56a24a017462103df59a15ae.jpg",
|
| 201 |
+
"image_caption": [
|
| 202 |
+
"Figure 2: Illustration of the our training pipeline for acquiring (a) a shape-biased model, (b) a texture-biased model, and (c) a shape-texture debiased model. Specifically, these models share the same training samples, i.e. images with conflicting texture and shape information, generated by style transfer between two randomly selected images; but apply distinct labelling strategies: in (a) & (b), labels are determined by the images that provides shape (or texture) information in style transfer, for guiding models to learn more shape (or texture) representations; in (c), labels are jointly determined by the pair of images in style transfer, for avoiding bias in representation learning. "
|
| 203 |
+
],
|
| 204 |
+
"image_footnote": [],
|
| 205 |
+
"bbox": [
|
| 206 |
+
174,
|
| 207 |
+
98,
|
| 208 |
+
826,
|
| 209 |
+
398
|
| 210 |
+
],
|
| 211 |
+
"page_idx": 2
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"type": "text",
|
| 215 |
+
"text": "",
|
| 216 |
+
"bbox": [
|
| 217 |
+
174,
|
| 218 |
+
515,
|
| 219 |
+
825,
|
| 220 |
+
584
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 2
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "Label assignment. The way of assigning labels to cue conflict images controls the bias of learned models. Without loss of generality, we show the case of learning a texture-biased model. To guide the model to attend more on texture, the labels assigned to the cue conflict images here will be exclusively based on the texture information, e.g., the image of chimpanzee shape but with lemon texture will be labelled as lemon, shown in Figure 2(b). By this way, the texture information is highly related to the “ground-truth” while the shape information only serves as a nuisance factor during learning. Similarly, to learn a shape-biased model, the label assignment of cue conflict images will be based on shape only, e.g., the image of chimpanzee shape but with lemon texture now will be labelled as chimpanzee, shown in Figure 2(a). ",
|
| 227 |
+
"bbox": [
|
| 228 |
+
173,
|
| 229 |
+
594,
|
| 230 |
+
825,
|
| 231 |
+
719
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "2.2 EVALUATION AND OBSERVATION ",
|
| 238 |
+
"text_level": 1,
|
| 239 |
+
"bbox": [
|
| 240 |
+
178,
|
| 241 |
+
737,
|
| 242 |
+
442,
|
| 243 |
+
751
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 2
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "To reduce the computational overhead in this ablation, all models are trained and evaluated on ImageNet-200, which is a 200 classes subset of the original ImageNet, including 100,000 images (500 images per class) for training and 10,000 images (50 images per class) for validation. Akin to Geirhos et al. (2019), we observe that the models with biased feature representations tend to have inferior accuracy than their vanilla counterparts. For example, our shape-biased ResNet-18 only achieves $7 3 . 9 \\%$ top-5 ImageNet-200 accuracy, which is much lower than the vanilla ResNet-18 with $8 8 . 2 \\%$ top-5 ImageNet-200 accuracy. ",
|
| 250 |
+
"bbox": [
|
| 251 |
+
174,
|
| 252 |
+
763,
|
| 253 |
+
825,
|
| 254 |
+
861
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "Though biased representations weaken the overall classification accuracy, surprisingly, we find they are highly complementary to each other. We first visualize the attended image regions of biased models, via Class Activation Mapping (Zhou et al., 2016), in Figure 3. As we can see here, the shape-biased model and the texture-biased model concentrate on different cues for predictions. For instance, on the leftmost tabby cat image, the shape-biased model mainly focuses on the cat head, while the texture-biased model mainly focuses on the lower body and the front legs of the cat. Such attention mechanisms are correlated to their learned representations—the shape-biased model extracts the shape of the cat head as an important signal for predictions, while the texture-biased model relies on the texture information of cat fur for predictions. ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
174,
|
| 263 |
+
867,
|
| 264 |
+
823,
|
| 265 |
+
924
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "image",
|
| 271 |
+
"img_path": "images/46445119eee72fa07255beb2dc4195191637244b96b8d02509c096f6a55e6f06.jpg",
|
| 272 |
+
"image_caption": [
|
| 273 |
+
"Figure 3: The shape-biased model and the texture-biased model attend on complementary cues for predictions. We use Class Activation Mapping to visualize which image regions are attended by models. Redder regions indicates more attentions are paid by models. "
|
| 274 |
+
],
|
| 275 |
+
"image_footnote": [],
|
| 276 |
+
"bbox": [
|
| 277 |
+
186,
|
| 278 |
+
98,
|
| 279 |
+
805,
|
| 280 |
+
268
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 3
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "image",
|
| 286 |
+
"img_path": "images/896f20f3dc475d08249a0debfd12f702f8e65a4a9ce6afce1bc6ef0e1d66f59a.jpg",
|
| 287 |
+
"image_caption": [
|
| 288 |
+
"Figure 4: The shape-biased model and the texture-biased model are good/bad at classifying different object categories. We sort these object categories according to the model’s corresponding top-1 accuracy, where the righter one indicates a lower accuracy achieved by the model. "
|
| 289 |
+
],
|
| 290 |
+
"image_footnote": [],
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
319,
|
| 294 |
+
823,
|
| 295 |
+
546
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "",
|
| 302 |
+
"bbox": [
|
| 303 |
+
174,
|
| 304 |
+
603,
|
| 305 |
+
825,
|
| 306 |
+
674
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "As distinct cues are picked by shape-biased/texture-biased models, a more concrete observation is they are good/bad at classifying quite different object categories. As showed in Figure 4, the shapebiased model is good at recognizing objects with representative shape structure like obelisk, but is bad at recognizing objects whose shape is uninformative or almost indistinguishable from others like fur coat. Similarly, the texture-biased model can effectively recognize objects with unique texture patterns like brain coral but may fail to recognize objects with unpredictable texture like trolleybus (as its side body can be painted with different advertisements). Besides, biased models may inevitably perform poorly on certain categories as insufficient cues are applied. For examples, it is challenging to distinguish between a lemon and an orange if texture information cannot be utilized, or to distinguish between an lion and a tabby cat without shape information. ",
|
| 313 |
+
"bbox": [
|
| 314 |
+
174,
|
| 315 |
+
680,
|
| 316 |
+
825,
|
| 317 |
+
819
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "Given the analysis above, we can conclude that biased representations limit models’ recognition ability. But meanwhile, our ablation delivers a promising message—the features learned by biased models are highly complementary to each other. This observation indicates the current training framework is improvable (as the resulted models are biased towards texture (Geirhos et al., 2019) or shape (Shi et al., 2020)), and offers a potential direction for building a stronger one—we should train models to properly acquire both shape and texture feature representations. We will introduce a simple method for doing so next. ",
|
| 324 |
+
"bbox": [
|
| 325 |
+
174,
|
| 326 |
+
827,
|
| 327 |
+
825,
|
| 328 |
+
924
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 3
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "3 SHAPE-TEXTURE DEBIASED NEURAL NETWORK TRAINING ",
|
| 335 |
+
"text_level": 1,
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
102,
|
| 339 |
+
702,
|
| 340 |
+
118
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 4
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "Recall that when obtaining a biased model, the strategy of label assignment is pivot—when the labels are exclusively determined by the images that provide shape (or texture) information in style transfer, we will obtain a shape-biased (or texture-biased) model. Therefore, to guide models for leveraging both shape and texture for predictions, we hereby propose a simple way, which is inspired by Mixup (Zhang et al., 2018), to softly construct labels during training. In other words, given the one-hot label of the shape-source image $y _ { s }$ and the one-hot label of the texture-source image $y _ { t }$ , the new label that we assigned to the cue conflict image is ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
174,
|
| 349 |
+
133,
|
| 350 |
+
825,
|
| 351 |
+
231
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 4
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "equation",
|
| 357 |
+
"img_path": "images/4f950a9bd266422054993735d61ea755c4b53244435cd8b186407cb8d19f45aa.jpg",
|
| 358 |
+
"text": "$$\n\\widetilde { y } = \\gamma * y _ { s } + ( 1 - \\gamma ) * y _ { t } ,\n$$",
|
| 359 |
+
"text_format": "latex",
|
| 360 |
+
"bbox": [
|
| 361 |
+
408,
|
| 362 |
+
238,
|
| 363 |
+
586,
|
| 364 |
+
256
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 4
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "where $\\gamma \\in [ 0 , 1 ]$ is a manually selected hyperparameter to control the relative importance between shape and texture. By ranging the shape-texture coefficient $\\gamma$ from 0 to 1, we obtain a path to evolve the model from being a texture-biased one (i.e., $\\gamma = 0$ ) to being a shape-biased one (i.e., $\\gamma = 1$ ). Although the two extreme ends lead to biased models with inferior performance, we empirically show that there exist a sweet point along this interpolation path, i.e., the learned models can properly acquires both shape and texture feature representations and achieve superior performance on a wide range of image recognition benchmarks. ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
174,
|
| 373 |
+
261,
|
| 374 |
+
823,
|
| 375 |
+
359
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 4
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "We name this simple method as shape-texture debiased neural network training, and illustrate the training pipeline in Figure 2(c). It is worth to mention that, although Figure 2 only shows the procedure of applying our method to the image classification task, this training framework is general and has the potential to be extended to other computer vision tasks, e.g., a simple showcase on semantic segmentation is presented in Section 4.4. ",
|
| 382 |
+
"bbox": [
|
| 383 |
+
174,
|
| 384 |
+
366,
|
| 385 |
+
825,
|
| 386 |
+
435
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 4
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "4 EXPERIMENTS ",
|
| 393 |
+
"text_level": 1,
|
| 394 |
+
"bbox": [
|
| 395 |
+
176,
|
| 396 |
+
457,
|
| 397 |
+
326,
|
| 398 |
+
472
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 4
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "4.1 EXPERIMENTS SETUP ",
|
| 405 |
+
"text_level": 1,
|
| 406 |
+
"bbox": [
|
| 407 |
+
176,
|
| 408 |
+
488,
|
| 409 |
+
364,
|
| 410 |
+
502
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 4
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "Datasets. We evaluate models on ImageNet classification and PASCAL VOC semantic segmentation. ImageNet dataset (Russakovsky et al., 2015) consists of 1.2 million images for training, and 50,000 for validation, from 1,000 classes. PASCAL VOC 2012 segmentation dataset (Everingham et al., 2012) with extra annotated images from (Hariharan et al., 2011) involves 20 foreground object classes and one background class, including 10,582 training images and 1,449 validation images. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
174,
|
| 419 |
+
513,
|
| 420 |
+
825,
|
| 421 |
+
584
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 4
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Going beyond the standard benchmarks, we further evaluate models’ generalization on ImageNetA, ImageNet-C and Stylized-ImageNet, and robustness by defending against FGSM adversarial attacker on ImageNet. ImageNet- $C$ (Hendrycks & Dietterich, 2019) is a benckmark dataset that measures models’ corruption robustness. It is constructed by applying 75 common visual corruptions to the ImageNet validation set. ImageNet-A (Hendrycks et al., 2019) includes 7,500 natural adversarial examples that successfully attacks unseen classifiers. These examples are much harder than original ImageNet validation images due to scene complications encountered in the long tail of scene configurations and by exploiting classifier blind spots (Hendrycks et al., 2019). StylizedImageNet (Geirhos et al., 2019) is a stylized version of ImageNet that constructed by re-rendering the original images by AdaIN stylizer (Huang & Belongie, 2017). The generated images keep the original global shape information but removes the local texture information. FGSM (Goodfellow et al., 2015) is a widely used adversarial attacker to evaluate model robustness. We set the maximum perturbation change per pixel $\\epsilon = 1 6 / 2 5 5$ for FGSM. ",
|
| 428 |
+
"bbox": [
|
| 429 |
+
174,
|
| 430 |
+
590,
|
| 431 |
+
825,
|
| 432 |
+
771
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 4
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "Implementation details. We choose ResNet (He et al., 2016) as the default architecture. For image classification tasks, our implementation is based on the publicly available framework in PyTorch2. To generate cue conflict images, we follow Geirhos et al. (2019) to use Adaptive Instance Normalization (Huang & Belongie, 2017) in style transfer, and set stylization coefficient $\\alpha = 0 . 5$ . Importantly, to increase the diversity of training samples, we generate these cue conflict images on-the-fly during training. We choose the shape-texture coefficient $\\gamma = 0 . 8$ when assigning labels. ",
|
| 439 |
+
"bbox": [
|
| 440 |
+
174,
|
| 441 |
+
780,
|
| 442 |
+
825,
|
| 443 |
+
864
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 4
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "When training shape-biased, texture-biased and our shape-texture debiased models, we always apply the auxiliary batch normalization (BN) design (Xie et al., 2020; Xie & Yuille, 2020; Chen et al., ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
176,
|
| 452 |
+
871,
|
| 453 |
+
823,
|
| 454 |
+
900
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 4
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "table",
|
| 460 |
+
"img_path": "images/3226623f79a7419f1e3a7fdfa5004b54ed0d97ac5b7253f036406bddf835c523.jpg",
|
| 461 |
+
"table_caption": [
|
| 462 |
+
"Table 1: The performance of the vanilla training, the shape-biased (S-biased) training, the texturebiased (T-biased) training, and our shape-texture debiased training on ImageNet. For all ResNet models, our debiased training shows the best performance among others. "
|
| 463 |
+
],
|
| 464 |
+
"table_footnote": [],
|
| 465 |
+
"table_body": "<table><tr><td></td><td>VANILLA</td><td>2×EPOCHS</td><td>S-BIASED</td><td>T-BIASED</td><td>DEBIASED</td></tr><tr><td>ResNet-50</td><td>76.4</td><td>76.4 (+0.0)</td><td>76.2 (-0.2)</td><td>75.3 (-1.1)</td><td>76.9 (+0.5)</td></tr><tr><td>ResNet-101</td><td>78.0</td><td>78.0 (+0.0)</td><td>78.0 (-0.0)</td><td>77.4 (-0.6)</td><td>78.9 (+0.9)</td></tr><tr><td>ResNet-152</td><td>78.6</td><td>79.1 (+0.5)</td><td>78.6 (-0.0)</td><td>78.1 (-0.5)</td><td>79.8 3(+1.2)</td></tr></table>",
|
| 466 |
+
"bbox": [
|
| 467 |
+
236,
|
| 468 |
+
102,
|
| 469 |
+
759,
|
| 470 |
+
159
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 5
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "table",
|
| 476 |
+
"img_path": "images/31d7e7a38b998909962c1c56056015789cfa4a28acdb15d94b62a2d167874304.jpg",
|
| 477 |
+
"table_caption": [],
|
| 478 |
+
"table_footnote": [
|
| 479 |
+
"Table 2: The model robustness on ImageNet-A (IN-A), ImageNet-C (IN-C), Stylized-ImageNet (SIN), and on defending against FGSM adversarial attacker on ImageNet. Our shape-texture debiased neural network training significantly boosts the model robustness over the vanilla training baseline. "
|
| 480 |
+
],
|
| 481 |
+
"table_body": "<table><tr><td></td><td>IN-A Acc. ↑</td><td>IN-C mCE↓</td><td>S-IN Acc. ↑</td><td>FGSM Acc.↑</td></tr><tr><td>ResNet-50 +Debiased</td><td>2.0 3.5 (+1.5)</td><td>75.0 67.5 (-7.5)</td><td>7.4 17.4 (+10.0)</td><td>17.1 27.4 (+10.3)</td></tr><tr><td>ResNet-101 +Debiased</td><td>5.6 9.1 1 (+3.5)</td><td>69.8 62.2 (-7.6)</td><td>9.9 22.0 (+12.1)</td><td>23.1 34.4 (+11.3)</td></tr><tr><td>ResNet-152 +Debiased</td><td>7.4 12.6 (+5.2)</td><td>67.2 58.9 (-8.3)</td><td>11.3 22.4 (+11.1)</td><td>25.2 39.6 (+14.4)</td></tr></table>",
|
| 482 |
+
"bbox": [
|
| 483 |
+
274,
|
| 484 |
+
207,
|
| 485 |
+
720,
|
| 486 |
+
320
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 5
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "2021) to bridge the domain gap between the original data and the augmented data, i.e., the main BN is exclusively running on original ImageNet images and the auxiliary BN is exclusively running on cue conflict images. We follow Xie et al. (2020) to always apply the main BN for performance evaluation. Besides, since our biased models and debiased models are all trained with both the original data and the augmented data (i.e., $2 \\times$ data are used in training), we also consider a stronger baseline (i.e., $2 \\times$ epochs training) which doubles the schedule of the vanilla training baseline, for the purpose of matching the total training cost. ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
174,
|
| 495 |
+
369,
|
| 496 |
+
825,
|
| 497 |
+
468
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 5
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "4.2 RESULTS ",
|
| 504 |
+
"text_level": 1,
|
| 505 |
+
"bbox": [
|
| 506 |
+
174,
|
| 507 |
+
484,
|
| 508 |
+
277,
|
| 509 |
+
500
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 5
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "Model accuracy. Table 1 shows the results on ImageNet. For all ResNet models, the proposed shape-texture debiased neural network training consistently outperforms the vanilla training baseline. For example, it helps ResNet-50 achieve $7 6 . 9 \\%$ top-1 accuracy, beating its vanilla counterpart by $0 . 5 \\%$ . Our method works better for larger models, e.g., it further improves the vanilla ResNet-152 by $1 . 2 \\%$ , achieving $7 9 . 8 \\%$ top-1 accuracy. ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
174,
|
| 518 |
+
511,
|
| 519 |
+
825,
|
| 520 |
+
580
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 5
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "We then compare our shape-texture debiased training to the $2 \\times$ epochs training baseline. We find that simply doubling the schedule of the vanilla training baseline cannot effectively lead to improvements like ours. For examples, compared to the vanilla ResNet-101, this $2 \\times$ epochs training fails to provide additional improvements, while ours furthers the top-1 accuracy by $1 . 0 \\%$ . This result suggests that it is non-trivial to improve performance even if more computational budgets are given. ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
587,
|
| 530 |
+
823,
|
| 531 |
+
657
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 5
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "Lastly, we compare ours to the biased training methods. Though the only difference between our method and the biased training methods is the strategy of label assignment (as shown in Figure 2), it imperatively affects model performance. For example, compared to the vanilla baseline, both the shape-biased training and the texture-biased training fail to improve (sometimes even slightly hurt) the model accuracy, while our shape-texture debiased neural network training successfully leads to consistent and substantial accuracy improvements. ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
174,
|
| 540 |
+
664,
|
| 541 |
+
825,
|
| 542 |
+
747
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 5
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Model robustness. Next, we evaluate models’ generalization on ImageNet-A, ImageNet-C and Stylized-ImageNet, and robustness on defending against FGSM on ImageNet. We note these tasks are much more challenging than the original ImageNet classification, e.g., the ImageNet trained ResNet-50 only achieves $2 . 0 \\%$ accuracy on ImageNet-A, $7 5 . 0 \\%$ mCE on ImageNet-C, $7 . 4 \\%$ accuracy on Stylized-ImageNet, and $1 7 . 1 \\%$ accuracy on defending against FGSM adversarial attacker. As shown in Table 2, our shape-texture debiased neural network training beats the vanilla training baseline by a large margin on all tasks for all ResNet models. For example, it substantially boosts ResNet-152’s performance on ImageNet-A $( + 5 . 2 \\%$ , from $7 . 4 \\%$ to $1 2 . 6 \\%$ ), ImageNet-C $( - 8 . 3 \\%$ , from $6 7 . 2 \\%$ to $5 8 . 9 \\%$ , the lower the better) and Stylized-ImageNet $( + 1 1 . 1 \\%$ , from $1 1 . 3 \\%$ to $2 2 . 4 \\%$ ), and on defending against FGSM on ImageNet $+ 1 4 . 4 \\%$ , from $2 5 . 2 \\%$ to $3 9 . 6 \\%$ ). These results altogether suggest that our shape-texture debiased neural network training is an effective way to mitigate the issue of shortcut learning (Geirhos et al., 2020). ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
757,
|
| 552 |
+
825,
|
| 553 |
+
924
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 5
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "table",
|
| 559 |
+
"img_path": "images/7aa013da64fb4640b9132834a6a5044fae31fc5ba20684619a16b822e91ff8f8.jpg",
|
| 560 |
+
"table_caption": [],
|
| 561 |
+
"table_footnote": [],
|
| 562 |
+
"table_body": "<table><tr><td></td><td>IN Acc. 个</td><td>IN-A Acc.个</td><td>IN-C mCE↓</td><td>S-IN Acc. 个</td><td>FGSM Acc.个</td></tr><tr><td>ResNet-50</td><td>76.4</td><td>2.0</td><td>75.0</td><td>7.4</td><td>17.1</td></tr><tr><td>CutMix + MoEx (Li et al., 2021)</td><td>79.0</td><td>8.0</td><td>74.8</td><td>5.0</td><td>41.0</td></tr><tr><td>DeepAugment + AugMix (Hendrycks et al., 2020)</td><td>75.8</td><td>3.9</td><td>53.6</td><td>21.2</td><td>18.8</td></tr><tr><td>SIN (Geirhos et al., 2019)</td><td>60.2</td><td>2.4</td><td>77.3</td><td>56.2</td><td>5.6</td></tr><tr><td>Shape-Texture Debiased Training (ours)</td><td>76.9</td><td>3.5</td><td>67.5</td><td>17.4</td><td>27.4</td></tr></table>",
|
| 563 |
+
"bbox": [
|
| 564 |
+
186,
|
| 565 |
+
101,
|
| 566 |
+
808,
|
| 567 |
+
198
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 6
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "Table 3: Compare with state-of-the-art methods using ResNet-50 on ImageNet (IN), ImageNet-A (IN-A), ImageNet-C (IN-C), Stylized-ImageNet (S-IN), and on defending against FGSM on ImageNet. We use green to denote significant improvement, red to denote performance drop, and gray to denote similar performance. We observe our shape-texture debiased training is the only method that successfully leads to improvements over the vanilla baseline on all benchmarks. ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
174,
|
| 576 |
+
199,
|
| 577 |
+
825,
|
| 578 |
+
268
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 6
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "table",
|
| 584 |
+
"img_path": "images/8118b5e0cdeca5554779ff8abaa53a7a54eed6b3de3728e2e155e98987a9e1a2.jpg",
|
| 585 |
+
"table_caption": [],
|
| 586 |
+
"table_footnote": [],
|
| 587 |
+
"table_body": "<table><tr><td>Datasets</td><td>VANILLA</td><td>S-BIASED</td><td>T-BIASED</td><td>DEBIASED</td></tr><tr><td>ImageNet-Sketch</td><td>23.8</td><td>27.9</td><td>24.3</td><td>28.4</td></tr><tr><td>ImageNet-R</td><td>36.2</td><td>40.6</td><td>36.7</td><td>40.8</td></tr><tr><td>Kylberg Texture</td><td>99.5</td><td>99.1</td><td>99.6</td><td>99.5</td></tr><tr><td>FlickerMaterial</td><td>74.6</td><td>73.3</td><td>79.2</td><td>75.8</td></tr></table>",
|
| 588 |
+
"bbox": [
|
| 589 |
+
269,
|
| 590 |
+
279,
|
| 591 |
+
723,
|
| 592 |
+
357
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 6
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Table 4: The performance comparison between Vanilla, Shape-biased, Texture-biased, and ShapeTexture Debiased models on ImageNet-Sketch, ImageNet-R, Kylberg Texture, and Flicker Material datasets. We note the shape-biased and the shape-texture debiased models perform better on shape datasets (ImageNet-Sketch and ImageNet-R); the texture-biased and the shape-texture debiased models perform better on texture datasets (Kylberg Texture and Flicker Material). ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
173,
|
| 601 |
+
358,
|
| 602 |
+
825,
|
| 603 |
+
428
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 6
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "Comparing to SoTAs. We further compare our shape-texture debiased model with the SoTA on ImageNet and ImageNet-A (CutMix $^ +$ MoEx (Li et al., 2021)), the SoTA on ImageNet-C (DeepAugment $^ +$ AugMix (Hendrycks et al., 2020)), and the SoTA on Stylized-ImageNet (SIN (Geirhos et al., 2019)). Interestingly, we note the improvements of all these SoTAs are not consistent across different benchmarks. For example, as shown in Table 3, SIN significantly improves the results on Stylized-ImageNet, but at the cost of huge performance drop on ImageNet $( - 1 6 . 2 \\% )$ and ImageNetC $( - 2 . 3 \\% )$ . Our shape-texture debiased training stands as the only method that can improve the vanilla training baseline holistically. ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
174,
|
| 612 |
+
440,
|
| 613 |
+
825,
|
| 614 |
+
553
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 6
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "4.3 ABLATIONS ",
|
| 621 |
+
"text_level": 1,
|
| 622 |
+
"bbox": [
|
| 623 |
+
174,
|
| 624 |
+
570,
|
| 625 |
+
297,
|
| 626 |
+
585
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 6
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "Comparing to model ensembles. An alternative but na¨ıve way for obtaining the model with both shape and texture information is to ensemble a shape-biased model and a texture-biased model. We note this ensemble strategy yields a model of on-par performance with our shape-texture debiased model on ImageNet $7 7 . 2 \\%$ vs. $7 6 . 9 \\%$ ). Nonetheless, interestingly, when measuring model robustness, such model ensemble strategy is inferior than ours. For example, compared to our proposed debiased training, this ensemble strategy is $1 . 5 \\%$ worse on ImageNet-A ( $2 . 0 \\%$ vs. $3 . 5 \\%$ ), $1 . 1 \\%$ worse on ImageNet-C $6 8 . 6 ~ \\mathrm { m C E }$ vs. $6 7 . 5 ~ \\mathrm { m C E }$ ), $1 . 1 \\%$ worse on Stylized-ImageNet ( $1 6 . 3 \\%$ vs. $1 7 . 4 \\%$ ), and $7 . 0 \\%$ worse on defending against FGSM $2 0 . 4 \\%$ vs. $2 7 . 4 \\%$ ). Moreover, due to model ensemble, this strategy is $2 \\times$ expensive at the inference stage. These evidences clearly demonstrate the effectiveness and efficiency of the proposed shape-texture debiased training. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
174,
|
| 635 |
+
597,
|
| 636 |
+
825,
|
| 637 |
+
737
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 6
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "Does our method help models to learn debiased shape-texture representations? Here we take a close look at whether our method indeed prevents models from being biased toward shape or texture during learning. We evaluate models in Section 4.2 on two kinds of datasets: (1) ImageNetSketch dataset (Wang et al., 2019) and ImageNet-R (Hendrycks et al., 2020) for examining how well models can capture shape; and (2) Kylberg Texture dataset (Kylberg, 2011) and Flicker Material dataset (Sharan et al., 2014) for examining how well models can capture texture. Specifically, since object categories from two texture datasets are not compatible to that from ImageNet dataset, we retrain the last fc-layer (while keeping all other layers untouched) of all models on Kylberg Texture dataset or Flicker Material dataset for 5 epochs. The results are shown in Table 4. ",
|
| 644 |
+
"bbox": [
|
| 645 |
+
174,
|
| 646 |
+
750,
|
| 647 |
+
825,
|
| 648 |
+
875
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 6
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "We first analyze results on ImageNet-Sketch dataset. We observe our shape-texture debiased models are as good as the shape-biased models, and significantly outperforms the texture-biased models and the vanilla training models. For instance, using ResNet-50, our shape-texture debiased training and shape-biased training achieve $2 8 . 4 \\%$ top-1 accuracy and $2 7 . 9 \\%$ top-1 accuracy, while texture-biased training and vanilla training only get $2 4 . 3 \\%$ top-1 accuracy and $2 3 . 8 \\%$ top-1 accuracy. A similar observation can be seen from ImageNet-R. These results support that our method helps models acquire stronger shape representations than the vanilla training. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
176,
|
| 657 |
+
882,
|
| 658 |
+
823,
|
| 659 |
+
924
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 6
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "image",
|
| 665 |
+
"img_path": "images/3b8f58c07b58608ea11407af951dddb69b2f963cbff7c4a52d31732da1be47c0.jpg",
|
| 666 |
+
"image_caption": [
|
| 667 |
+
"Figure 5: Illustration of the data preparation pipeline of our shape-texture debiased neural network training on the semantic segmentation task. "
|
| 668 |
+
],
|
| 669 |
+
"image_footnote": [],
|
| 670 |
+
"bbox": [
|
| 671 |
+
173,
|
| 672 |
+
99,
|
| 673 |
+
825,
|
| 674 |
+
250
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 7
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "",
|
| 681 |
+
"bbox": [
|
| 682 |
+
174,
|
| 683 |
+
297,
|
| 684 |
+
825,
|
| 685 |
+
354
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 7
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "We next analyze results on Kylberg Texture dataset. Similarly, we observe that our debiased model are comparable to the texture-biased model and the vanilla training model, and get better performance than the shape-biased model. On Flicker Material dataset, we observe that our debiased models are better than the vanilla training model and the shape-biased model. This phenomenon suggests texture information is effectively caught by our shape-texture debiased training. As a side note, it is expected that vanilla training are better than shape-biased training on these texture datasets, as Geirhos et al. (2019) point out that ImageNet trained models (i.e., vanilla training) also tend to be biased towards texture. ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
174,
|
| 694 |
+
361,
|
| 695 |
+
825,
|
| 696 |
+
472
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 7
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "With the analysis above, we conclude that, compared to vanilla training, our shape-texture debiased training successfully helps networks effectively acquire both shape and texture representations. ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
174,
|
| 705 |
+
479,
|
| 706 |
+
823,
|
| 707 |
+
507
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 7
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "Combining with other data augmentation methods. Our shape-texture debiased neural network training can be viewed as a data augmentation method, which trains models on cue conflict images. Nonetheless, our method specifically guides the model to learn debiased shape and texture representations, which could potentially serve as a complementary feature to other data augmentation methods. To validate this argument, we train models using a combination of our method and an existing data augmentation method (i.e., Mixup (Zhang et al., 2018) or CutMix (Yun et al., 2019)). ",
|
| 714 |
+
"bbox": [
|
| 715 |
+
174,
|
| 716 |
+
516,
|
| 717 |
+
825,
|
| 718 |
+
601
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 7
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "We choose ResNeXt-101 (Xie et al., 2017) as the backbone network, which reports the best top-1 ImageNet accuracy in both the Mixup paper, i.e., $7 9 . 9 \\%$ , and the CutMix paper, i.e., $8 0 . 5 \\%$ . Though building upon very strong baselines, our shape-texture debiased neural network training still leads to substantial improvements, e.g., it furthers ResNeXt-101-Mixup’s accuracy to $8 0 . 5 \\%$ $( + 0 . 6 \\% )$ , and ResNeXt-101-CutMix’s accuracy to $8 1 . 2 \\%$ $( + 0 . 7 \\% )$ . Meanwhile, models’ generalization also get greatly improved. For example, by combining CutMix and our method, ResNeXt-101 gets additional improvements on ImageNet-A $( + 1 . 4 \\% )$ , ImageNet-C $( - 5 . 9 \\%$ , the lower the better) and Stylized ImageNet $( + 7 . 5 \\% )$ . These results support that our shape-texture debiased neural network training is compatible to existing data augmentation methods. ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
174,
|
| 727 |
+
607,
|
| 728 |
+
825,
|
| 729 |
+
732
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 7
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "Shape-texture coefficient $\\gamma$ . We set $\\gamma = 0 . 8$ in our shape-texture debiased training. This value is found via the grid search over ImageNet-200 using ResNet-18. We now ablate its sensitivity on ImageNet using ResNet-50, where $\\gamma$ is linearly interpolated between 0.0 and 1.0. By increasing the value of $\\gamma$ , we observe that the corresponding accuracy on ImageNet first monotonically goes up, and then monotonically goes down. The sweet point can be reached by setting $\\gamma = 0 . 7$ , where ResNet-50 achieves $7 7 . 0 \\%$ top-1 ImageNet accuracy. Besides, we note that by setting $\\gamma \\in [ 0 . 5 , 0 . 9 ]$ can always lead to performance improvements over the vanilla baseline. These results demonstrate the robustness of our shape-texture debiased neural network training w.r.t. the coefficient $\\gamma$ . ",
|
| 736 |
+
"bbox": [
|
| 737 |
+
174,
|
| 738 |
+
741,
|
| 739 |
+
825,
|
| 740 |
+
853
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 7
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "text",
|
| 746 |
+
"text": "4.4 SEMANTIC SEGMENTATION RESULTS ",
|
| 747 |
+
"text_level": 1,
|
| 748 |
+
"bbox": [
|
| 749 |
+
176,
|
| 750 |
+
869,
|
| 751 |
+
470,
|
| 752 |
+
883
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 7
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "We extend our shape-texture debiased neural network training to the segmentation task. We select DeepLabv3-ResNet-101 (Chen et al., 2017) as our backbone. To better incorporate our method with the segmentation task, the following changes are made when generating cue conflict images: (1) unlike in the classification task where the whole image is used as the texture source, we use a specific object (which can cropped from the background using the segmentation ground-truth) to provide texture information in style transfer; (2) when composing the soft label for the cue conflict image, we set the label mask from texture source as the full image (since the pattern from the texture source will fill the whole image after style transfer); and (3) we set stylization coefficient $\\alpha = 0 . 2$ and shape-texture coefficient $\\gamma = 0 . 9 5$ to prevent object boundaries from being overly blurred in style transfer. Figure 5 shows an illustration of our data preparation pipeline. ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
174,
|
| 761 |
+
895,
|
| 762 |
+
823,
|
| 763 |
+
924
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 7
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "",
|
| 770 |
+
"bbox": [
|
| 771 |
+
174,
|
| 772 |
+
103,
|
| 773 |
+
825,
|
| 774 |
+
215
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 8
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "Results. Our shape-texture debiased training can also effectively improve segmentation models. For example, our method helps DeepLabv3-ResNet-101 achieve $7 7 . 6 \\%$ mIOU, significantly beating its vanilla counterpart by $1 . 1 \\%$ . Our method still shows advantages when compared to the $2 \\times$ epochs training baseline. Doubling the learning schedule of the vanilla training can only lead to an improvement of $0 . 2 \\%$ , which is still $0 . 9 \\%$ worse than our shape-texture debiased training. These results demonstrate the potential of our methods in helping recognition tasks in general. ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
174,
|
| 783 |
+
223,
|
| 784 |
+
825,
|
| 785 |
+
308
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 8
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "5 RELATED WORK ",
|
| 792 |
+
"text_level": 1,
|
| 793 |
+
"bbox": [
|
| 794 |
+
176,
|
| 795 |
+
325,
|
| 796 |
+
343,
|
| 797 |
+
342
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 8
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Data augmentation. Data augmentation is essential for the success of deep learning (LeCun et al., 1998; Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; Zhong et al., 2020; Cubuk et al., 2019; Lim et al., 2019; Cubuk et al., 2020). Our shape-texture debiased neural network training is related to a specific family of data augmentation, called Mixup (Zhang et al., 2018), which blends pairs of images and their labels in a convex manner, either at pixel-level (Zhang et al., 2018; Yun et al., 2019) or feature-level (Verma et al., 2019; Li et al., 2021). Our method can be interpreted as a special instantiation of Mixup which blends pairs of images at the abstraction level—images’ texture information and shape information are mixed. Our method successfully guides CNNs to learn better shape and texture representations, which is an important but missing piece in existing data argumentation methods. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
357,
|
| 807 |
+
825,
|
| 808 |
+
494
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 8
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "Style transfer. Style transfer, closely related to texture synthesis and transfer, means generating a stylized image by combining a shape-source image and a texture-source image (Efros & Leung, 1999; Efros & Freeman, 2001; Elad & Milanfar, 2017). The seminal work (Gatys et al., 2016) demonstrate impressive style transfer results by matching feature statistics in convolutional layers of a CNN. Later follow-ups further improve the generation quality and speed (Huang & Belongie, 2017; Chen & Schmidt, 2016; Ghiasi et al., 2017; Li et al., 2017). In this work, we follow Geirhos et al. (2019) to use AdaIN (Huang & Belongie, 2017) to generate stylized images. Nonetheless, instead of applying style transfer between an image and an artistic paintings as in Geirhos et al. (2019), we directly apply style transfer on a pair of images to generate cue conflict images. This change is vital as it enables us to provide supervisions from both shape and texture during training. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
173,
|
| 817 |
+
505,
|
| 818 |
+
825,
|
| 819 |
+
643
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 8
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "6 CONCLUSION ",
|
| 826 |
+
"text_level": 1,
|
| 827 |
+
"bbox": [
|
| 828 |
+
176,
|
| 829 |
+
662,
|
| 830 |
+
318,
|
| 831 |
+
679
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 8
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "There is a long-time debate about which cue dominates the object recognition. By carefully ablate the shape-biased model and the texture-biased model, we found though biased feature representations lead to performance degradation, they are complementary to each other and are both necessary for image recognition. To this end, we propose shape-texture debiased neural network training for guiding CNNs to learn better feature representations. The key in our method is that we should not only augment training set with cue conflict images, but also provide supervisions from both shape and texture. We empirically demonstrate the advantages of our shape-texture debiased neural network training on boosting both accuracy and robustness. Our method is conceptually simple and is generalizable to different image recognition tasks. We hope our work will shed light on understanding and improving convolutional neural networks. ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
174,
|
| 840 |
+
693,
|
| 841 |
+
825,
|
| 842 |
+
832
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 8
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "text",
|
| 848 |
+
"text": "ACKNOWLEDGEMENT ",
|
| 849 |
+
"text_level": 1,
|
| 850 |
+
"bbox": [
|
| 851 |
+
176,
|
| 852 |
+
852,
|
| 853 |
+
356,
|
| 854 |
+
866
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 8
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "This project is partially supported by ONR N00014-18-1-2119 and ONR N00014-20-1-2206. Cihang Xie is supported by the Facebook PhD Fellowship and a gift grant from Open Philanthropy. Yingwei Li thanks Zhiwen Wang for suggestions on figures. ",
|
| 861 |
+
"bbox": [
|
| 862 |
+
176,
|
| 863 |
+
882,
|
| 864 |
+
823,
|
| 865 |
+
924
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 8
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "REFERENCES ",
|
| 872 |
+
"text_level": 1,
|
| 873 |
+
"bbox": [
|
| 874 |
+
176,
|
| 875 |
+
102,
|
| 876 |
+
287,
|
| 877 |
+
118
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 9
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "Serge Belongie, Jitendra Malik, and Jan Puzicha. Shape matching and object recognition using shape contexts. TPAMI, 2002. ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
173,
|
| 886 |
+
126,
|
| 887 |
+
823,
|
| 888 |
+
155
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 9
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Semantic image segmentation with deep convolutional nets and fully connected CRFs. In ICLR, 2015. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
176,
|
| 897 |
+
164,
|
| 898 |
+
823,
|
| 899 |
+
207
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 9
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
171,
|
| 908 |
+
215,
|
| 909 |
+
825,
|
| 910 |
+
246
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 9
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "Tian Qi Chen and Mark Schmidt. Fast patch-based style transfer of arbitrary style. NeurIPS Workshop, 2016. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
171,
|
| 919 |
+
253,
|
| 920 |
+
823,
|
| 921 |
+
284
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 9
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Xiangning Chen, Cihang Xie, Mingxing Tan, Li Zhang, Cho-Jui Hsieh, and Boqing Gong. Robust and accurate object detection via adversarial learning. In CVPR, 2021. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
171,
|
| 930 |
+
292,
|
| 931 |
+
823,
|
| 932 |
+
321
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 9
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation strategies from data. In CVPR, 2019. ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
171,
|
| 941 |
+
330,
|
| 942 |
+
821,
|
| 943 |
+
361
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 9
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In CVPR Workshops, 2020. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
173,
|
| 952 |
+
369,
|
| 953 |
+
821,
|
| 954 |
+
398
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 9
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Alexei A Efros and William T Freeman. Image quilting for texture synthesis and transfer. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, 2001. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
407,
|
| 964 |
+
825,
|
| 965 |
+
450
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 9
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Alexei A Efros and Thomas K Leung. Texture synthesis by non-parametric sampling. In ICCV, 1999. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
173,
|
| 974 |
+
459,
|
| 975 |
+
823,
|
| 976 |
+
488
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 9
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Michael Elad and Peyman Milanfar. Style transfer via texture synthesis. TIP, 2017. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
171,
|
| 985 |
+
497,
|
| 986 |
+
722,
|
| 987 |
+
513
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 9
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The PASCAL Visual Object Classes Challenge 2012 (VOC2012) Results. http://www.pascalnetwork.org/challenges/VOC/voc2012/workshop/index.html, 2012. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
173,
|
| 996 |
+
522,
|
| 997 |
+
826,
|
| 998 |
+
565
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 9
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In CVPR, 2016. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
173,
|
| 1007 |
+
574,
|
| 1008 |
+
823,
|
| 1009 |
+
604
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 9
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In ICLR, 2019. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
174,
|
| 1018 |
+
613,
|
| 1019 |
+
823,
|
| 1020 |
+
656
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 9
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "Robert Geirhos, Jorn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, ¨ Matthias Bethge, and Felix A Wichmann. Shortcut learning in deep neural networks. arXiv preprint arXiv:2004.07780, 2020. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
176,
|
| 1029 |
+
665,
|
| 1030 |
+
825,
|
| 1031 |
+
708
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 9
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Golnaz Ghiasi, Honglak Lee, Manjunath Kudlur, Vincent Dumoulin, and Jonathon Shlens. Exploring the structure of a real-time, arbitrary neural artistic stylization network. In BMVC, 2017. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
171,
|
| 1040 |
+
717,
|
| 1041 |
+
823,
|
| 1042 |
+
747
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 9
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "Ross Girshick. Fast R-CNN. In ICCV, 2015. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
173,
|
| 1051 |
+
756,
|
| 1052 |
+
467,
|
| 1053 |
+
770
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 9
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
169,
|
| 1062 |
+
780,
|
| 1063 |
+
823,
|
| 1064 |
+
809
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 9
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
171,
|
| 1073 |
+
818,
|
| 1074 |
+
823,
|
| 1075 |
+
848
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 9
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Bharath Hariharan, Pablo Arbelaez, Lubomir Bourdev, Subhransu Maji, and Jitendra Malik. Semantic contours from inverse detectors. In ICCV, 2011. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
857,
|
| 1085 |
+
821,
|
| 1086 |
+
886
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 9
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
173,
|
| 1095 |
+
895,
|
| 1096 |
+
820,
|
| 1097 |
+
924
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 9
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2019. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
173,
|
| 1106 |
+
103,
|
| 1107 |
+
823,
|
| 1108 |
+
132
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 10
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
173,
|
| 1117 |
+
140,
|
| 1118 |
+
823,
|
| 1119 |
+
170
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 10
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
178,
|
| 1128 |
+
178,
|
| 1129 |
+
823,
|
| 1130 |
+
222
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 10
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
173,
|
| 1139 |
+
229,
|
| 1140 |
+
823,
|
| 1141 |
+
258
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 10
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoff Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, 2012. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
171,
|
| 1150 |
+
267,
|
| 1151 |
+
823,
|
| 1152 |
+
296
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 10
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "Gustaf Kylberg. Kylberg Texture Dataset v. 1.0. Centre for Image Analysis, Swedish University of Agricultural Sciences and Uppsala University, 2011. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
173,
|
| 1161 |
+
304,
|
| 1162 |
+
825,
|
| 1163 |
+
334
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 10
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 1998. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
173,
|
| 1172 |
+
342,
|
| 1173 |
+
823,
|
| 1174 |
+
371
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 10
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Boyi Li, Felix Wu, Ser-Nam Lim, Serge Belongie, and Kilian Q Weinberger. On feature normalization and data augmentation. In CVPR, 2021. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
173,
|
| 1183 |
+
378,
|
| 1184 |
+
823,
|
| 1185 |
+
409
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 10
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "Yijun Li, Chen Fang, Jimei Yang, Zhaowen Wang, Xin Lu, and Ming-Hsuan Yang. Universal style transfer via feature transforms. In NeurIPS, 2017. ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
171,
|
| 1194 |
+
416,
|
| 1195 |
+
823,
|
| 1196 |
+
446
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 10
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. In NeurIPS, 2019. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
173,
|
| 1205 |
+
454,
|
| 1206 |
+
825,
|
| 1207 |
+
483
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 10
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Haibin Ling and David W Jacobs. Shape classification using the inner-distance. TPAMI, 2007. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
173,
|
| 1216 |
+
492,
|
| 1217 |
+
794,
|
| 1218 |
+
508
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 10
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
171,
|
| 1227 |
+
515,
|
| 1228 |
+
823,
|
| 1229 |
+
545
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 10
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "Jitendra Malik, Serge J. Belongie, Thomas K. Leung, and Jianbo Shi. Contour and texture analysis for image segmentation. IJCV, 2001. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
173,
|
| 1238 |
+
553,
|
| 1239 |
+
823,
|
| 1240 |
+
583
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 10
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
171,
|
| 1249 |
+
590,
|
| 1250 |
+
823,
|
| 1251 |
+
619
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 10
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 2015. ",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
176,
|
| 1260 |
+
627,
|
| 1261 |
+
823,
|
| 1262 |
+
671
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 10
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "Lavanya Sharan, Ruth Rosenholtz, and Edward H. Adelson. Accuracy and speed of material categorization in real-world images. Journal of Vision, 14(10), 2014. ",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
171,
|
| 1271 |
+
679,
|
| 1272 |
+
823,
|
| 1273 |
+
709
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 10
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "Baifeng Shi, Dinghuai Zhang, Qi Dai, Zhanxing Zhu, Yadong Mu, and Jingdong Wang. Informative dropout for robust representation learning: A shape-bias perspective. In ICML, 2020. ",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
171,
|
| 1282 |
+
717,
|
| 1283 |
+
823,
|
| 1284 |
+
747
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 10
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "Jamie Shotton, John Winn, Carsten Rother, and Antonio Criminisi. Textonboost for image understanding: Multi-class object recognition and segmentation by jointly modeling texture, layout, and context. IJCV, 2009. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
174,
|
| 1293 |
+
753,
|
| 1294 |
+
823,
|
| 1295 |
+
797
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 10
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
171,
|
| 1304 |
+
805,
|
| 1305 |
+
823,
|
| 1306 |
+
835
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 10
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In ICML, 2019. ",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
173,
|
| 1315 |
+
843,
|
| 1316 |
+
821,
|
| 1317 |
+
886
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 10
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. In NeurIPS, 2019. ",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
173,
|
| 1326 |
+
895,
|
| 1327 |
+
820,
|
| 1328 |
+
924
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 10
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "Cihang Xie and Alan Yuille. Intriguing properties of adversarial training at scale. In ICLR, 2020. \nCihang Xie, Mingxing Tan, Boqing Gong, Jiang Wang, Alan Yuille, and Quoc V Le. Adversarial examples improve image recognition. In CVPR, 2020. \nSaining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual trans- ´ formations for deep neural networks. In CVPR, 2017. \nSangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, 2019. \nHongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR, 2018. \nSongfeng Zheng, Zhuowen Tu, and Alan L. Yuille. Detecting object boundaries using low-, mid-, and high-level information. In CVPR, 2007. \nZhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In AAAI, 2020. \nBolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016. ",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
171,
|
| 1337 |
+
99,
|
| 1338 |
+
826,
|
| 1339 |
+
400
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 11
|
| 1342 |
+
}
|
| 1343 |
+
]
|
parse/train/Db4yerZTYkz/Db4yerZTYkz_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Db4yerZTYkz/Db4yerZTYkz_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HklUCCVKDB/HklUCCVKDB.md
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNCERTAINTY-GUIDED CONTINUAL LEARNING WITH BAYESIAN NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Sayna Ebrahimi∗ Mohamed Elhoseiny† UC Berkeley KAUST, Stanford University
|
| 4 |
+
|
| 5 |
+
Trevor Darrell UC Berkeley
|
| 6 |
+
|
| 7 |
+
Marcus Rohrbach Facebook AI Research
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Continual learning aims to learn new tasks without forgetting previously learned ones. This is especially challenging when one cannot access data from previous tasks and when the model has a fixed capacity. Current regularization-based continual learning algorithms need an external representation and extra computation to measure the parameters’ importance. In contrast, we propose Uncertaintyguided Continual Bayesian Neural Networks (UCB), where the learning rate adapts according to the uncertainty defined in the probability distribution of the weights in networks. Uncertainty is a natural way to identify what to remember and what to change as we continually learn, and thus mitigate catastrophic forgetting. We also show a variant of our model, which uses uncertainty for weight pruning and retains task performance after pruning by saving binary masks per tasks. We evaluate our UCB approach extensively on diverse object classification datasets with short and long sequences of tasks and report superior or on-par performance compared to existing approaches. Additionally, we show that our model does not necessarily need task information at test time, i.e. it does not presume knowledge of which task a sample belongs to.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Humans can easily accumulate and maintain knowledge gained from previously observed tasks, and continuously learn to solve new problems or tasks. Artificial learning systems typically forget prior tasks when they cannot access all training data at once but are presented with task data in sequence.
|
| 16 |
+
|
| 17 |
+
Overcoming these challenges is the focus of continual learning, sometimes also referred to as lifelong learning or sequential learning. Catastrophic forgetting (McCloskey & Cohen, 1989; McClelland et al., 1995) refers to the significant drop in the performance of a learner when switching from a trained task to a new one. This phenomenon occurs because trained parameters on the initial task change in favor of learning new objectives.
|
| 18 |
+
|
| 19 |
+
Given a network of limited capacity, one way to address this problem is to identify the importance of each parameter and penalize further changes to those parameters that were deemed to be important for the previous tasks (Kirkpatrick et al., 2017; Aljundi et al., 2018; Zenke et al., 2017). An alternative is to freeze the most important parameters and allow future tasks to only adapt the remaining parameters to new tasks (Mallya & Lazebnik, 2018). Such models rely on the explicit parametrization of importance. We propose here implicit uncertainty-guided importance representation.
|
| 20 |
+
|
| 21 |
+
Bayesian approaches to neural networks (MacKay, 1992b) can potentially avoid some of the pitfalls of explicit parameterization of importance in regular neural networks. Bayesian techniques, naturally account for uncertainty in parameters estimates. These networks represent each parameter with a distribution defined by a mean and variance over possible values drawn from a shared latent probability distribution (Blundell et al., 2015). Variational inference can approximate posterior distributions using Monte Carlo sampling for gradient estimation. These networks act like ensemble methods in that they reduce the prediction variance but only use twice the number of parameters present in a regular neural network. We propose to use the predicted mean and variance of the latent distributions to characterize the importance of each parameter. We perform continual learning with
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Illustration of evolution of weight distributions through learning two tasks. (a) circles represent Figure 1: Illustration of the evolution of weight distributions – uncertain weights adapt more quickly – from Ɲ(0,0.1). As an example we show five color-coded and plot their distributions. (b) Shows when learning two tasks using UCB. (a) weight parameter initialized by distributions initialized with posterior distribution after learning Task 1. Whicontributions in learning Task 1), W3, W4, and mean and variance values randomly sampled from $\mathcal { N } ( 0 , 0 . 1 )$ xhibit lower uncertainties (more ve larger uncertainties, with the . (b) posterior distribution after learning task one; while $\theta _ { 1 }$ higand $\theta _ { 2 }$ STD in W5, making them available to learn more tasks. (c) Task 2 is learned using highexhibit lower uncertainties after learning the first task, $\theta _ { 3 } , \theta _ { 4 }$ , and $\theta _ { 5 }$ have learning rates for previously uncertain parameters (W3 and W4, W5) while learning rates for W1 and W2 are moderated according to their predicted low uncertainty after finishing task 1. larger uncertainties, making them available to learn more tasks. (c) a second task is learned using 1 2 higher learning rates for previously uncertain parameters $( \theta _ { 1 } , \theta _ { 2 } , \theta _ { 3 }$ , and $\theta _ { 4 }$ ) while learning rates for $\theta _ { 1 }$ and $\theta _ { 2 }$ 3 4 5 are reduced. Size of the arrows indicate the magnitude of the change of the distribution mean upon gradient update.
|
| 25 |
+
|
| 26 |
+
Bayesian neural networks by controlling the learning rate of each parameter as a function of its uncertainty. Figure 1 illustrates how posterior distributions evolve for certain and uncertain weight distributions while learning two consecutive tasks. Intuitively, the more uncertain a parameter is, the more learnable it can be and therefore, larger gradient steps can be taken for it to learn the current task. As a hard version of this regularization technique, we also show that pruning, i.e., preventing the most important model parameters from any change and learning new tasks with the remaining parameters, can be also integrated into UCB. We refer to this method as UCB-P.
|
| 27 |
+
|
| 28 |
+
Contributions: We propose to perform continual learning with Bayesian neural networks and develop a new method which exploits the inherent measure of uncertainty therein to adapt the learning rate of individual parameters (Sec. 4). Second, we introduce a hard-threshold variant of our method that decides which parameters to freeze (Sec. 4.2). Third, in Sec. 5, we extensively validate our approach experimentally, comparing it to prior art both on single datasets split into different tasks, as well as for the more difficult scenario of learning a sequence of different datasets. Forth, in contrast to most prior work, our approach does not rely on knowledge about task boundaries at inference time, which humans do not need and might not be always available. We show in Sec. 6 that our approach naturally supports this scenario and does not require task information at test time, sometimes also referred to as a “single head” scenario for all tasks. We refer to evaluation metric of a “single head” model without task information at test time as “generalized accuracy”. Our code is available at https://github.com/SaynaEbrahimi/UCB.
|
| 29 |
+
|
| 30 |
+
# 2 RELATED WORK
|
| 31 |
+
|
| 32 |
+
Conceptually, approaches to continual learning can be divided into the following categories: dynamic architectural methods, memory-based methods, and regularization methods.
|
| 33 |
+
|
| 34 |
+
Dynamic architectural methods: In this setting, the architecture grows while keeping past knowledge fixed and storing new knowledge in different forms such as additional layers, nodes, or modules. In this approach, the objective function remains fixed whereas the model capacity grows –often exponentially– with the number of tasks. Progressive networks (Rusu et al., 2016; Schwarz et al., 2018) was one of the earliest works in this direction and was successfully applied to reinforcement learning problems; the base architecture was duplicated and lateral connections added in response to new tasks. Dynamically Expandable Network (DEN) (Yoon et al., 2018) also expands its network by selecting drifting units and retraining them on new tasks. In contrast to our method, these approaches require the architecture grow with each new task.
|
| 35 |
+
|
| 36 |
+
Memory-based methods: In this regime, previous information is partially stored to be used later as a form of rehearsal (Robins, 1995). Gradient episodic memory (GEM) (Lopez-Paz et al., 2017) uses this idea to store the data at the end of each episode to be used later to prevent gradient updates from deviating from their previous values. GEM also allows for positive backward knowledge transfer, i.e, an improvement on previously learned tasks, and it was the first method capable of learning using a single training example. Recent approaches in this category have mitigated forgetting by using external data combined with distillation loss and/or confidence-based sampling strategies to select the most representative samples. (Castro et al., 2018; Wu et al., 2019; Lee et al., 2019)
|
| 37 |
+
|
| 38 |
+
Regularization methods: In these approaches, significant changes to the representation learned for previous tasks are prevented. This can be performed through regularizing the objective function or directly enforced on weight parameters. Typically, this importance measure is engineered to represent the importance of each parameter. Inspired by Bayesian learning, in elastic weight consolidation (EWC) method (Kirkpatrick et al., 2017) important parameters are those to have the highest in terms of the Fisher information matrix. In Synaptic Intelligence (SI) (Zenke et al., 2017) this parameter importance notion is engineered to correlate with the loss function: parameters that contribute more to the loss are more important. Similar to SI, Memory-aware Synapses (MAS) (Aljundi et al., 2018) proposed an online way of computing importance adaptive to the test set using the change in the model outputs w.r.t the inputs. While all the above algorithms are task-dependent, in parallel development to this work, (Aljundi et al., 2019) has recently investigated task-free continual learning by building upon MAS and using a protocol to update the weights instead of waiting until the tasks are finished. PackNet (Mallya & Lazebnik, 2018) used iterative pruning to fully restrict gradient updates on important weights via binary masks. This method requires knowing which task is being tested to use the appropriate mask. PackNet also ranks the weight importance by their magnitude which is not guaranteed to be a proper importance indicative. HAT (Serra et al., 2018) identifies important neurons by learning an attention vector to the task embedding to control the gradient propagation. It maintains the information learned on previous tasks using an almost-binary mask per previous tasks.
|
| 39 |
+
|
| 40 |
+
Bayesian approaches: Using Bayesian approach in learning neural networks has been studied for few decades (MacKay, 1992b;a). Several approaches have been proposed for Bayesian neural networks, based on, e.g., the Laplace approximation (MacKay, 1992a), Hamiltonian Monte Carlo (Neal, 2012), variational inference (Hinton & Van Camp, 1993; Graves, 2011), and probabilistic backpropagation (Hernandez-Lobato & Adams, 2015). Variational continual learning (Nguyen et al., ´ 2018) uses Bayesian inference to perform continual learning where new posterior distribution is simply obtained by multiplying the previous posterior by the likelihood of the dataset belonging to the new task. They also showed that by using a core-set, a small representative set of data from previous tasks, VCL can experience less forgetting. In contrast, we rely on Bayesian neural networks to use their predictive uncertainty to perform continual learning. Moreover, we do not use episodic memory or any other way to access or store previous data in our approach.
|
| 41 |
+
|
| 42 |
+
Natural gradient descent methods: A fast natural gradient descent method for variational inference was introduced in (Khan & Nielsen, 2018) in which, the Fisher Information matrix is approximated using the generalized Gauss-Newton method. In contrast, in our work, we use classic gradient descent. Although second order optimization algorithms are proven to be more accurate than the first order methods, they add considerable computational cost. Tseran et al. (2018); Chen et al. (2019) both investigate the effect of natural gradient descent methods as an alternative to classic gradient descent used in VCL and EWC methods. GNG (Chen et al., 2019) uses Gaussian natural gradients in the Adam optimizer (Kingma & Ba, 2014) in the framework of VCL because as opposed to conventional gradient methods which perform in Euclidian space, natural gradients cause a small difference in terms of distributions following the changes in parameters in the Riemannian space. Similar to VCL, they obtained their best performance by adding a coreset of previous examples. Tseran et al. (2018) introduce two modifications to VCL called Natural-VCL (N-VCL) and VCL-Vadam. N-VCL (Tseran et al., 2018) uses a Gauss-Newton approximation introduced by (Schraudolph, 2002; Graves, 2011) to estimate the VCL objective function and used natural gradient method proposed in (Khan et al., 2018) to exploit the Riemannian geometry of the variational posterior by scaling the gradient with an adaptive learning rate equal to $\bar { \sigma } ^ { - 2 }$ obtained by approximating the Fisher Information matrix in an online fashion. VCL-Vadam (Tseran et al., 2018) is a simpler version of N-VCL to trade-off accuracy for simplicity which uses Vadam (Khan et al., 2018) to update the gradients by perturbing the weights with a Gaussian noise using a reparameterization trick and scaling by $\sigma ^ { - 1 }$ instead of its squared. N-VCL/VCL-Vadam both use variational inference to adapt the learning rate within Adam optimizer at every time step, whereas in our method below, gradient decent is used with constant learning rate during each task where learning rate scales with uncertainty only after finishing a task. We show extensive comparison with state-of-the-art results on short and relatively long sequence of vision datasets with Bayesian convolutional neural networks, whereas VCL-Vadam only rely on multi-layer perceptron networks. We also like to highlight that this is the first work which evaluates and shows the working of convolutional Bayesian Neural Networks rather than only fully connected MLP models for continual learning.
|
| 43 |
+
|
| 44 |
+
# 3 BACKGROUND: VARIATIONAL BAYES-BY-BACKPROP
|
| 45 |
+
|
| 46 |
+
In this section, we review the Bayes-by-Backprop (BBB) framework which was introduced by (Blundell et al., 2015); to learn a probability distribution over network parameters. (Blundell et al., 2015) showed a back-propagation-compatible algorithm which acts as a regularizer and yields comparable performance to dropout on the MNIST dataset. In Bayesian models, latent variables are drawn from a prior density $p ( \mathbf { w } )$ which are related to the observations through the likelihood $p ( \mathbf { x } | \mathbf { w } )$ During inference, the posterior distribution $p ( \mathbf { w } | \mathbf { x } )$ is computed conditioned on the given input data. However, in practice, this probability distribution is intractable and is often estimated through approximate inference. Markov Chain Monte Carlo (MCMC) sampling (Hastings, 1970) has been widely used and explored for this purpose, see (Robert & Casella, 2013) for different methods under this category. However, MCMC algorithms, despite providing guarantees for finding asymptotically exact samples from the target distribution, are not suitable for large datasets and/or large models as they are bounded by speed and scalability issues. Alternatively, variational inference provides a faster solution to the same problem in which the posterior is approximated using optimization rather than being sampled from a chain (Hinton & Van Camp, 1993).Variational inference methods always take advantage of fast optimization techniques such as stochastic methods or distributed methods, which allow them to explore data models quickly. See (Blei et al., 2017) for a complete review of the theory and (Shridhar et al., 2018) for more discussion on how to use Bayes by Backprop (BBB) in convolutioal neural networks.
|
| 47 |
+
|
| 48 |
+
# 3.1 BAYES BY BACKPROP (BBB)
|
| 49 |
+
|
| 50 |
+
Let $\mathbf { x } \in \mathbb { R } ^ { n }$ be a set of observed variables and w be a set of latent variables. A neural network, as a probabilistic model $P ( \mathbf { y } | \mathbf { x } , \mathbf { w } )$ , given a set of training examples $\mathcal { D } = ( \mathbf { x } , \mathbf { y } )$ can output y which belongs to a set of classes by using the set of weight parameters w. Variational inference aims to calculate this conditional probability distribution over the latent variables by finding the closest proxy to the exact posterior by solving an optimization problem.
|
| 51 |
+
|
| 52 |
+
We first assume a family of probability densities over the latent variables w parametrized by $\theta$ , i.e., $q ( \mathbf { w } | \theta )$ . We then find the closest member of this family to the true conditional probability of interest $P ( \mathbf { w } | \mathcal { D } )$ by minimizing the Kullback-Leibler (KL) divergence between $q$ and $P$ which is equivalent to minimizing variational free energy or maximizing the expected lower bound:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\begin{array} { r } { \theta ^ { * } = \arg \operatorname* { m i n } _ { \theta } { \mathrm { K L } } \big ( q ( \mathbf { w } | \theta ) \| P ( \mathbf { w } | \mathcal { D } ) \big ) } \end{array}
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
The objective function can be written as:
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
\mathcal { L } _ { B B B } ( \theta , \mathcal { D } ) = \mathrm { K L } \big [ q ( \mathbf { w } | \theta ) \| P ( \mathbf { w } ) \big ] - \mathbb { E } _ { q ( \mathbf { w } | \theta ) } \big [ \log ( P ( \mathcal { D } | \mathbf { w } ) ) \big ]
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
Eq. 2 can be approximated using $N$ Monte Carlo samples $\mathbf { w } _ { i }$ from the variational posterior (Blundell et al., 2015):
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\mathcal { L } _ { B B B } ( \boldsymbol { \theta } , \mathcal { D } ) \approx \sum _ { i = 1 } ^ { N } \log q ( \mathbf { w } _ { i } | \boldsymbol { \theta } ) - \log P ( \mathbf { w } _ { i } ) - \log ( P ( \mathcal { D } | \mathbf { w } _ { i } ) )
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
We assume $q ( \mathbf { w } | \theta )$ to have a Gaussian pdf with diagonal covariance and parametrized by $\theta = \left( \mu , \rho \right)$ . A sample weight of the variational posterior can be obtained by sampling from a unit Gaussian and reparametrized by $\mathbf { w } = \mu + \sigma \circ \epsilon$ where $\epsilon$ is the noise drawn from unit Gaussian, and $\circ$ is a pointwise multipliation. Standard deviation is parametrized as $\sigma = \log ( 1 + \exp ( \rho ) )$ and thus is always positive. For the prior, as suggested by Blundell et al. (2015), a scale mixture of two Gaussian pdfs are chosen which are zero-centered while having different variances of $\sigma _ { 1 } ^ { 2 }$ and $\sigma _ { 2 } ^ { 2 }$ . The uncertainty obtained for every parameter has been successfully used in model compression (Han et al., 2015) and uncertainty-based exploration in reinforcement learning (Blundell et al., 2015). In this work we propose to use this framework to learn sequential tasks without forgetting using per-weight uncertainties.
|
| 71 |
+
|
| 72 |
+
# 4 UNCERTAINTY-GUIDED CONTINUAL LEARNING IN BAYESIAN NEURAL NETWORKS
|
| 73 |
+
|
| 74 |
+
In this section, we introduce Uncertainty-guided Continual learning approach with Bayesian neural networks (UCB), which exploits the estimated uncertainty of the parameters’ posterior distribution to regulate the change in “important” parameters both in a soft way (Section 4.1) or setting a hard threshold (Section 4.2).
|
| 75 |
+
|
| 76 |
+
# 4.1 UCB WITH LEARNING RATE REGULARIZATION
|
| 77 |
+
|
| 78 |
+
A common strategy to perform continual learning is to reduce forgetting by regularizing further changes in the model representation based on parameters’ importance. In UCB the regularization is performed with the learning rate such that the learning rate of each parameter and hence its gradient update becomes a function of its importance. As shown in the following equations, in particular, we scale the learning rate of $\mu$ and $\rho$ for each parameter distribution inversely proportional to its importance $\Omega$ to reduce changes in important parameters while allowing less important parameters to alter more in favor of learning new tasks.
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\begin{array} { r } { \alpha _ { \mu } \alpha _ { \mu } / \Omega _ { \mu } } \\ { \alpha _ { \rho } \alpha _ { \rho } / \Omega _ { \rho } } \end{array}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
The core idea of this work is to base the definition of importance on the well-defined uncertainty in parameters distribution of Bayesian neural networks, i.e., setting the importance to be inversely proportional to the standard deviation $\sigma$ which represents the parameter uncertainty in the Baysian neural network:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\Omega \propto { } ^ { 1 } / \sigma
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
We explore different options to set $\Omega$ in our ablation study presented in Section A.2 of the appendix, Table 1. We empirically found that $\Omega _ { \mu } = 1 / \sigma$ and not adapting the learning rate for $\rho$ (i.e. $\Omega _ { \rho } = 1 $ ) yields the highest accuracy and the least forgetting.
|
| 91 |
+
|
| 92 |
+
The key benefit of UCB with learning rate as the regularizer is that it neither requires additional memory, as opposed to pruning technique nor tracking the change in parameters with respect to the previously learned task, as needed in common weight regularization methods.
|
| 93 |
+
|
| 94 |
+
More importantly, this method does not need to be aware of task switching as it only needs to adjust the learning rates of the means in the posterior distribution based on their current uncertainty. The complete algorithm for UCB is shown in Algorithm 1 with parameter update function given in Algorithm 2.
|
| 95 |
+
|
| 96 |
+
# 4.2 UCB USING WEIGHT PRUNING (UCB-P)
|
| 97 |
+
|
| 98 |
+
In this section, we introduce a variant of our method, UCB-P, which is related to recent efforts in weight pruning in the context of reducing inference computation and network compression (Liu et al., 2017; Molchanov et al., 2016). More specifically, weight pruning has been recently used in continual learning (Mallya & Lazebnik, 2018), where the goal is to continue learning multiple tasks using a single network’s capacity. (Mallya & Lazebnik, 2018) accomplished this by freeing up parameters deemed to be unimportant to the current task according to their magnitude. Forgetting is prevented in pruning by saving a task-specific binary mask of important vs. unimportant parameters. Here, we adapt pruning to Bayesian neural networks. Specifically, we propose a different criterion for measuring importance: the statistically-grounded uncertainty defined in Bayesian neural networks.
|
| 99 |
+
|
| 100 |
+
Unlike regular deep neural networks, in a BBB model weight parameters are represented by probability distributions parametrized by their mean and standard deviation. Similar to (Blundell et al., 2015), in order to take into account both mean and standard deviation, we use the signal-to-noise ratio (SNR) for each parameter defined as
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\Omega = \mathrm { S N R } = | \mu | / \sigma
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
1: Require Training data for all tasks $\mathcal { D } = ( \mathbf { x } , \mathbf { y } )$ , $\mu$ (mean of posterior), $\rho , \sigma _ { 1 }$ and $\sigma _ { 2 }$ (std for the scaled
|
| 107 |
+
mixture Gaussian pdf of prior), $\pi$ (weighting factor for prior), $N$ (number of samples in a mini-batch), $M$
|
| 108 |
+
(Number of minibatches per epoch), initial learning rate $( \alpha _ { 0 } )$
|
| 109 |
+
2: $\alpha _ { \mu } = \alpha _ { \rho } = \alpha _ { 0 }$
|
| 110 |
+
3: for every task do
|
| 111 |
+
4: repeat
|
| 112 |
+
5: $\begin{array} { r l r } & { \mathbf { \Lambda } _ { \epsilon \sim \mathcal { N } ( 0 , I ) } ^ { \mathbf { \epsilon } } } & { \sim \mathcal { N } ( 0 , I ) } \\ & { \boldsymbol { \epsilon } \sim \mathrm { l o g } ( 1 + \exp ( \rho ) ) } & { \triangleright \mathrm { E n s u r e s ~ } \sigma \mathrm { ~ i s ~ a l w a y s ~ p o s i t i v e } } \\ & { \mathbf { w } = \mu + \sigma \circ \boldsymbol { \epsilon } } & { \triangleright \mathbf { w } = \{ \mathbf { w } _ { 1 } , \dots , \mathbf { w } _ { i } , \dots , \mathbf { w } _ { N } \} \mathrm { ~ p o s t e r i o r ~ s a m p l e s ~ o f ~ w e i g h t } } \\ & { l _ { 1 } = \sum _ { i = 1 } ^ { N } \log N ( \mathbf { w } _ { i } | \mu , \sigma ^ { 2 } ) } & { \triangleright \mathbf { \epsilon } [ \mathbf { u } _ { 1 } , \dots , \mathbf { u } _ { 0 } , \dots , \mathbf { u } _ { 0 } , \dots , \mathbf { u } _ { 0 } ] } \\ & { l _ { 2 } = \sum _ { i = 1 } ^ { N } \log \big ( \pi N ( \mathbf { \epsilon } _ { i } | 0 , \sigma _ { 1 } ^ { 2 } ) + ( 1 - \pi ) \mathcal { N } ( \mathbf { w } _ { i } | 0 , \sigma _ { 2 } ^ { 2 } ) \big ) } & { \qquad v _ { l } : = \mathrm { L o g - p o s t e r i o r } } \\ & { l _ { 3 } = \sum _ { i = 1 } ^ { N } \log ( p ( \mathcal { D } | \mathbf { w } _ { i } ) ) } & { \qquad v _ { l } : = \mathrm { L o g - h i k e l i h o o d ~ o f ~ d a t a } } \\ & { \mathcal { L } _ { B B B } = \frac { 1 } { M } ( l _ { 1 } - l _ { 2 } - l _ { 3 } ) } & \\ & { \mu \mu - \alpha _ { \mu } \nabla \mathcal { L } _ { B B B \mu } } \\ & { \boldsymbol { \rho } \boldsymbol { \rho } - \alpha _ { \rho } \nabla \mathcal { L } _ { B B B \rho } } & \end{array}$
|
| 113 |
+
6:
|
| 114 |
+
10:
|
| 115 |
+
11:
|
| 116 |
+
12:
|
| 117 |
+
13:
|
| 118 |
+
14: until loss plateaus
|
| 119 |
+
15: αµ, $\alpha _ { \rho } \gets$ LearningRateUpdate $( \alpha _ { \mu } , \alpha _ { \rho } , \sigma , \mu )$ $\vartriangleright$ See Algorithm 2 for UCB and 3 for UCB-P
|
| 120 |
+
16: end for
|
| 121 |
+
|
| 122 |
+
Algorithm 1 Uncertainty-guided Continual Learning with Bayesian Neural Networks UCB
|
| 123 |
+
|
| 124 |
+
<table><tr><td>Algorithm2LearningRateUpdate in UCB</td><td>Algorithm 3LearningRateUpdate in UCB-P</td></tr><tr><td>1:function LearningRateUpdate(αμ, α,)</td><td>1:function LearningRateUpdate(αμ, @p,0, μ)</td></tr><tr><td>2: for each parameter do</td><td>2: for each parameter j in each layer l do</td></tr><tr><td>3: Ωμ←1/σ</td><td>3: Ω←lμ//g Signal to noise ratio</td></tr><tr><td>4: ←1</td><td>4: if 2[j] ∈ top p% of SΩs in l then</td></tr><tr><td>5: aμ←aμ/Ωμ</td><td>5: αμ=αp=0</td></tr><tr><td>6: ap←αp/p</td><td>6: end if</td></tr><tr><td>7: end for</td><td>7: end for</td></tr><tr><td>8:end function</td><td>8:end function</td></tr></table>
|
| 125 |
+
|
| 126 |
+
SNR is a commonly used measure in signal processing to distinguish between “useful” information from unwanted noise contained in a signal. In the context of neural models, the SNR can be thought as an indicative of parameter importance; the higher the SNR, the more effective or important the parameter is to the model predictions for a given task.
|
| 127 |
+
|
| 128 |
+
UCB-P, as shown in Algorithms 1 and 3, is performed as follows: for every layer, convolutional or fully-connected, the parameters are ordered by their SNR value and those with the lowest importance are pruned (set to zero). The pruned parameters are marked using a binary mask so that they can be used later in learning new tasks whereas the important parameters remain fixed throughout training on future tasks. Once a task is learned, an associated binary mask is saved which will be used during inference to recover key parameters and hence the exact performance to the desired task.
|
| 129 |
+
|
| 130 |
+
The overhead memory per parameter in encoding the mask as well as saving it on the disk is as follows. Assuming we have $n$ tasks to learn using a single network, the total number of required bits to encode an accumulated mask for a parameter is at max $\log _ { 2 } n$ bits assuming a parameter deemed to be important from task 1 and kept being encoded in the mask.
|
| 131 |
+
|
| 132 |
+
# 5 RESULTS
|
| 133 |
+
|
| 134 |
+
# 5.1 EXPERIMENTAL SETUP
|
| 135 |
+
|
| 136 |
+
Datasets: We evaluate our approach in two common scenarios for continual learning: 1) classincremental learning of a single or two randomly alternating datasets, where each task covers only a subset of the classes in a dataset, and 2) continual learning of multiple datasets, where each task is a dataset. We use Split MNIST with 5 tasks (5-Split MNIST) similar to (Nguyen et al., 2018; Chen et al., 2019; Tseran et al., 2018) and permuted MNIST (Srivastava et al., 2013) for class incremental learning with similar experimental settings as used in (Serra et al., 2018; Tseran et al., 2018). Furthermore, to have a better understanding of our method, we evaluate our approach on continually learning a sequence of 8 datasets with different distributions using the identical sequence as in (Serra et al., 2018), which includes FaceScrub ( $\mathrm { N g }$ & Winkler, 2014), MNIST, CIFAR100, NotMNIST (Bulatov, 2011), SVHN (Netzer et al., 2011), CIFAR10, TrafficSigns (Stallkamp et al., 2011), and FashionMNIST (Xiao et al., 2017). Details of each are summarized in Table 4 in appendix. No data augmentation of any kind has been used in our analysis.
|
| 137 |
+
|
| 138 |
+
Baselines: Within the Bayesian framework, we compare to three models which do not incorporate the importance of parameters, namely fine-tuning, feature extraction, and joint training. In fine-tuning (BBB-FT), training continues upon arrival of new tasks without any forgetting avoidance strategy. Feature extraction, denoted as (BBB-FE), refers to freezing all layers in the network after training the first task and training only the last layer for the remaining tasks. In joint training (BBB-JT) we learn all the tasks jointly in a multitask learning fashion which serves as the upper bound for average accuracy on all tasks, as it does not adhere to the continual learning scenario. We also perform the counterparts for FT, FE, and JT using ordinary neural networks and denote them as ORD-FT, ORDFE, and ORD-JT. From the prior work, we compare with state-of-the-art approaches including Elastic Weight Consolidation (EWC) (Kirkpatrick et al., 2017), Incremental Moment Matching (IMM) (Lee et al., 2017), Learning Without Forgetting (LWF) (Li & Hoiem, 2016), Less-Forgetting Learning (LFL) (Jung et al., 2016), PathNet (Fernando et al., 2017), Progressive neural networks (PNNs) (Rusu et al., 2016), and Hard Attention Mask (HAT) (Serra et al., 2018) using implementations provided by (Serra et al., 2018). On Permuted MNIST results for SI (Zenke et al., 2017) are reported from (Serra et al., 2018). On Split and Permuted MNIST, results for VCL (Nguyen et al., 2018) are obtained using their original provided code whereas for VCL-GNG (Chen et al., 2019) and VCL-Vadam (Tseran et al., 2018) results are reported from the original work without re-implementation. Because our method lies into the regularization-based regime, we only compare against baselines which do not benefit from episodic or coreset memory.
|
| 139 |
+
|
| 140 |
+
Hyperparameter tuning: Unlike commonly used tuning techniques which use a validation set composed of all classes in the dataset, we only rely on the first two task and their validations set, similar to the setup in (Chaudhry et al., 2019). In all our experiments we consider a 0.15 split for the validation set on the first two tasks. After tuning, training starts from the beginning of the sequence. Our scheme is different from (Chaudhry et al., 2019), where the models are trained on the first (e.g. three) tasks for validation and then training is restarted for the remaining ones and the reported performance is only on the remaining tasks.
|
| 141 |
+
|
| 142 |
+
Training details: It is important to note that in all our experiments, no pre-trained model is used. We used stochastic gradient descent with a batch size of 64 and a learning rate of 0.01, decaying it by a factor of 0.3 once the loss plateaued. Dataset splits and batch shuffle are identically in all UCB experiments and all baselines.
|
| 143 |
+
|
| 144 |
+
Pruning procedure and mask size: Once a task is learned, we compute the performance drop for a set of arbitrary pruning percentages from the maximum training accuracy achieved when no pruning is applied. The pruning portion is then chosen using a threshold beyond which the performance drop is not accepted. Mask size is chosen without having the knowledge of how many tasks to learn in the future. Upon learning each task we used a uniform distribution of pruning ratios $( 5 0 - 1 0 0 \% )$ ) and picked the ratio resulted in at most $1 \%$ , $2 \%$ , and $3 \%$ forgetting for MNIST, CIFAR, and 8tasks experiments, respectively. We did not tune this parameter because in our hyperparameter tuning, we only assume we have validation sets of the first two tasks.
|
| 145 |
+
|
| 146 |
+
Parameter regularization and importance measurement: Table 1 ablates different ways to compute the importance $\Omega$ of an parameter in Eq. 4 and 5. As shown in Table 1 the configuration that yields the highest accuracy and the least forgetting (maximum BWT) occurs when the learning rate regularization is performed only on $\mu$ of the posteriors using $\Omega _ { \mu } = 1 / \sigma$ as the importance and $\Omega _ { \rho } = 1$ .
|
| 147 |
+
|
| 148 |
+
Performance measurement: Let $n$ be the total number of tasks. Once all are learned, we evaluate our model on all $n$ tasks. ACC is the average test classification accuracy across all tasks. To measure forgetting we report backward transfer, BWT, which indicates how much learning new tasks has influenced the performance on previous tasks. While BWT $< 0$ directly reports catastrophic forgetting, $\mathrm { B W T } > 0$ indicates that learning new tasks has helped with the preceding tasks. Formally, BWT and ACC are as follows:
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
\mathrm { B W T } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } R _ { i , n } - R _ { i , i } , \quad \mathrm { A C C } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } R _ { i , n }
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
Table 1: Variants of learning rate regularization and importance measurement on 2-Split MNIST
|
| 155 |
+
Table 2: Continually learning on different datasets. BWT and ACC in $\%$ . $( ^ { * } )$ denotes that methods do not adhere to the continual learning setup: BBB-JT and ORD-JT serve as the upper bound for ACC for BBB/ORD networks, respectively. $^ \ddag$ denotes results reported by (Serra et al., 2018). $^ \dagger$ denotes the result reported from original work. BWT was not reported in $^ \ddag$ and $\dagger$ . All others results are (re)produced by us and are averaged over 3 runs with standard deviations given in Section A.3 of the appendix.
|
| 156 |
+
|
| 157 |
+
<table><tr><td>Method</td><td>μ</td><td>p</td><td>Importance Ω</td><td>BWT (%)</td><td>ACC (%)</td></tr><tr><td>UCB</td><td>X</td><td>1</td><td>1/g</td><td>0.00</td><td>99.2</td></tr><tr><td>UCB</td><td>1</td><td>X</td><td>1/g</td><td>-0.04</td><td>98.7</td></tr><tr><td>UCB</td><td>X</td><td>X</td><td>1/g</td><td>-0.02</td><td>98.0</td></tr><tr><td>UCB</td><td>X</td><td>-</td><td>|μ//σ</td><td>-0.03</td><td>98.4</td></tr><tr><td>UCB</td><td>-</td><td>X</td><td>/g</td><td>-0.52</td><td>98.7</td></tr><tr><td>UCB</td><td>X</td><td>X</td><td>lμ//σ</td><td>-0.32</td><td>98.8</td></tr><tr><td>UCB-P</td><td>X</td><td>X</td><td>μ/σ</td><td>-0.01</td><td>99.0</td></tr><tr><td>UCB-P</td><td>X</td><td>X</td><td>1/g</td><td>-0.01</td><td>98.9</td></tr></table>
|
| 158 |
+
|
| 159 |
+
(a) 5-Split MNIST, 5 tasks.
|
| 160 |
+
|
| 161 |
+
<table><tr><td>Method</td><td>BWT</td><td>ACC</td></tr><tr><td>VCL-Vadam†</td><td></td><td>99.17</td></tr><tr><td>VCL-GNG†</td><td></td><td>96.50</td></tr><tr><td>VCL</td><td>-0.56</td><td>98.20</td></tr><tr><td>IMM</td><td>-11.20</td><td>88.54</td></tr><tr><td>EWC</td><td>-4.20</td><td>95.78</td></tr><tr><td>HAT</td><td>0.00</td><td>99.59</td></tr><tr><td>ORD-FT</td><td>-9.18</td><td>90.60</td></tr><tr><td>ORD-FE</td><td>0.00</td><td>98.54</td></tr><tr><td>BBB-FT</td><td>-6.45</td><td>93.42</td></tr><tr><td>BBB-FE</td><td>0.00</td><td>98.76</td></tr><tr><td>UCB-P (Ours)</td><td>-0.72</td><td>99.32</td></tr><tr><td>UCB (Ours)</td><td></td><td>0.00 99.63</td></tr><tr><td>ORD-JT*</td><td>0.00</td><td>99.78</td></tr><tr><td>BBB-JT*</td><td>0.00</td><td>99.87</td></tr></table>
|
| 162 |
+
|
| 163 |
+
(b) Permuted MNIST, 10 permutations. (c) Alternating CIFAR10/100
|
| 164 |
+
|
| 165 |
+
<table><tr><td>Method</td><td>#Params</td><td>BWTACC</td></tr><tr><td>SI</td><td>0.1M</td><td>- 86.0</td></tr><tr><td>EWC #</td><td>0.1M</td><td>- 88.2</td></tr><tr><td>HAT t</td><td>0.1M</td><td>- 91.6</td></tr><tr><td>VCL-Vadam†</td><td>0.1M</td><td>-86.34</td></tr><tr><td>VCL-GNG†</td><td>0.1M</td><td>-90.50</td></tr><tr><td>VCL</td><td>0.1M</td><td>-7.90 88.80</td></tr><tr><td>UCB (Ours)</td><td>0.1M</td><td>-0.38 91.44</td></tr><tr><td>LWF</td><td>1.9M</td><td>-31.17 65.65</td></tr><tr><td>IMM</td><td>1.9M</td><td>-7.14 90.51</td></tr><tr><td>HAT</td><td>1.9M</td><td>0.03 97.34</td></tr><tr><td>BBB-FT</td><td>1.9M</td><td>-0.58 90.01</td></tr><tr><td>BBB-FE</td><td>1.9M</td><td>0.02 93.54</td></tr><tr><td>UCB-P(Ours)1.9M</td><td></td><td>-0.95 97.24</td></tr><tr><td>UCB (Ours)</td><td>1.9M</td><td>0.03 97.42</td></tr><tr><td></td><td></td><td></td></tr><tr><td>BBB-JT*</td><td>1.9M</td><td>0.00 98.12</td></tr></table>
|
| 166 |
+
|
| 167 |
+
(d) Sequence of 8 tasks
|
| 168 |
+
|
| 169 |
+
<table><tr><td>Method</td><td>BWT</td><td>ACC</td></tr><tr><td>LFL</td><td>-10.0</td><td>8.61</td></tr><tr><td>PathNet</td><td>0.00</td><td>20.22</td></tr><tr><td>LWF</td><td>-54.3</td><td>28.22</td></tr><tr><td>IMM</td><td>-38.5</td><td>43.93</td></tr><tr><td>EWC</td><td>-18.04</td><td>50.68</td></tr><tr><td>PNN</td><td>0.00</td><td>76.78</td></tr><tr><td>HAT</td><td>-0.14</td><td>81.59</td></tr><tr><td>BBB-FT</td><td>-23.1</td><td>43.09</td></tr><tr><td>BBB-FE</td><td>-0.01</td><td>58.07</td></tr><tr><td>UCB-P (Ours)</td><td>-2.54</td><td>80.38</td></tr><tr><td>UCB (Ours) BBB-JT*</td><td>-0.84 84.04 -1.2</td><td>84.1</td></tr></table>
|
| 170 |
+
|
| 171 |
+
<table><tr><td>Method</td><td>BWT</td><td>ACC</td></tr><tr><td>PathNet</td><td>0.00</td><td>28.94</td></tr><tr><td>LWF</td><td>-37.9</td><td>42.93</td></tr><tr><td>LFL</td><td>-24.22</td><td>47.67</td></tr><tr><td>IMM</td><td>-12.23</td><td>69.37</td></tr><tr><td>PNN</td><td>0.00</td><td>70.73</td></tr><tr><td>EWC</td><td>-1.53</td><td>72.46</td></tr><tr><td>HAT</td><td>-0.04</td><td>78.32</td></tr><tr><td>BBB-FE</td><td>-0.04</td><td>51.04</td></tr><tr><td>BBB-FT</td><td>-7.43</td><td>68.89</td></tr><tr><td>UCB-P (Ours)</td><td>-1.89</td><td>77.32</td></tr><tr><td>UCB (Ours)</td><td></td><td>-0.72 79.44</td></tr><tr><td>BBB-JT*</td><td>1.52</td><td>83.93</td></tr></table>
|
| 172 |
+
|
| 173 |
+
where $R _ { i , n }$ is the test classification accuracy on task $i$ after sequentially finishing learning the $n ^ { \mathrm { t h } }$ task. Note that in UCB-P, $R _ { i , i }$ refers the test accuracy on task $i$ before pruning and $R _ { i , n }$ after pruning which is equivalent to the end of sequence performance. In Section 6, we show that our UCB model can be used when tasks labels are not available at inference time by training it with a “single head” architecture with a sum of number of classes for all tasks. We refer to the ACC measured for this scenario as “Generalized Accuracy”.
|
| 174 |
+
|
| 175 |
+
# 5.2 5-SPLIT MNIST
|
| 176 |
+
|
| 177 |
+
We first present our results for class incremental learning of MNIST (5-Split MNIST) in which we learn the digits $0 - 9$ in five tasks with 2 classes at a time in 5 pairs of $0 / 1 , 2 / 3 , 4 / 5 , 6 / 7$ , and $8 / 9$ . Table 2a shows the results for reference baselines in Bayesian and non-Bayesian neural networks including fine-tuning (BBB-FT, ORD-FT), feature extraction (BBB-FE, ORD-FE) and, joint training (BBB-JT, ORD-JT) averaged over 3 runs and standard deviations are given in Table 9 in the appendix. Although the MNIST dataset is an “easy” dataset, we observe throughout all experiments that Bayesian fine-tuning and joint training perform significantly better than their counterparts, ORD-FT and ORD-JT. For Bayesian methods, we compare against VCL and its variations named as VCL with Variational Adam (VCL-Vadam), VCL with Adam and Gaussian natural gradients (VCL-GNG). For non-Bayesian methods, we compare against HAT, IMM, and EWC (EWC can be regarded as Bayesian-inspired). VCL-Vadam $\mathrm { \Delta A C C = } 9 9 . 1 7 \%$ ) appears to be outperforming VCL $\mathrm { \Delta A C C { = } 9 8 . 2 0 \% }$ ) and VCL-GNG ( $\mathrm { A C C } { = } 9 6 . 5 0 \%$ ) in average accuracy. However, full comparison is not possible because forgetting was not reported for Vadam and GNG. Nevertheless, UCB $\mathrm { \ A C C { = } 9 9 . 6 3 \% }$ ) is able to surpass all the baselines including VCL-Vadam in average accuracy while in zero forgetting it is on par with HAT $( \mathrm { A C C { = } 9 9 . 5 9 \% }$ ). We also report results on incrementally learning MNIST in two tasks (2-Split MNIST) in Table 8 in the appendix, where we compare it against PackNet, HAT, and LWF where PackNet, HAT, UCB-P, and UCB have zero forgetting while UCB has marginally higher accuracy than all others.
|
| 178 |
+
|
| 179 |
+
# 5.3 PERMUTED MNIST
|
| 180 |
+
|
| 181 |
+
Permuted MNIST is a popular variant of the MNIST dataset to evaluate continual learning approaches in which each task is considered as a random permutation of the original MNIST pixels. Following the literature, we learn a sequence of 10 random permutations and report average accuracy at the end. Table 2b shows ACC and BWT of UCB and UCB-P in comparison to state-of-the-art models using a small and a large network with 0.1M and $1 . 9 \mathrm { M }$ parameters, respectively (architecture details are given in Section A.2 of the appendix). The accuracy achieved by UCB $( \mathrm { A C C = 9 1 . 4 4 \pm 0 . 0 4 \% } )$ using the small network outperforms the ACC reported by Serra et al. (2018) for SI $\mathrm { \Delta A C C { = } 8 6 . 0 \% }$ ), EWC $( \mathrm { A C C { = } 8 8 . 2 \% }$ ), while HAT attains a slightly better performance $( \mathrm { { A C C = 9 1 . 6 \% } }$ ). Comparing the average accuracy reported in VCL-Vadam $\mathrm { A C C } { = } 8 6 . 3 4 \%$ ) and VCL-GNG $( \mathrm { A C C } { = } 9 0 . 5 0 \%$ ) as well as obtained results for VCL $\mathrm { \Delta A C C { = } 8 8 . 8 0 \% }$ ) shows UCB with $\mathbf { B W T } { = } ( 0 . 0 3 \% \pm 0 . 0 0 \% )$ is able to outperform other Bayesian approaches in accuracy while forgetting significantly less compared to VCL with $\mathrm { B W T = - 7 . 9 \% }$ . While we do not experiment with memory in this work, not surprisingly adding memory to most approaches will improve their performance significantly as it allows looking into past tasks. E.g. Chen et al. (2019) report $\mathrm { A C C { = } 9 4 . 3 7 \% }$ for VCL-GNC when adding a memory of size 200.
|
| 182 |
+
|
| 183 |
+
Next, we compare the results for the larger network (1.9M). While HAT and UCB have zero forgetting, UCB, reaching $\mathrm { A C C = 9 7 . 4 2 \pm 0 . 0 1 \% }$ , performs better than all baselines including HAT which obtains $\mathrm { A C C = 9 7 . 3 4 \pm 0 . 0 5 \% }$ using 1.9M parameters. We also observe again that BBB-FT, despite being not specifically penalized to prevent forgetting, exhibits reasonable negative BWT values, performing better than IMM and LWF baselines. It is close to joint training, BBB-JT, with $\mathrm { A C C { = } 9 8 . \bar { 1 } \% }$ , which can be seen as an upper bound.
|
| 184 |
+
|
| 185 |
+
# 5.4 ALTERNATING CIFAR10 AND CIFAR100
|
| 186 |
+
|
| 187 |
+
In this experiment, we randomly alternate between class incremental learning of CIFAR10 and CIFAR100. Both datasets are divided into 5 tasks each with 2 and 20 classes per task, respectively. Table 2c presents ACC and BWT obtained with UCB-P, UCB, and three BBB reference methods compared against various continual learning baselines. Among the baselines presented in Table 2c, PNN and PathNet are the only zero-forgetting-guaranteed approaches. It is interesting to note that in this setup, some baselines (PathNet, LWF, and LFL) do not perform better than the naive accuracy achieved by feature extraction. PathNet suffers from bad pre-assignment of the network’s capacity per task which causes poor performance on the initial task from which it never recovers. IMM performs almost similar to fine-tuning in ACC, yet forgets more. PNN, EWC, and HAT are the only baselines that perform better than BBB-FE and BBB-FT. EWC and HAT are both allowed to forget by construction, however, HAT shows zero forgetting behavior. While EWC is outperformed by both of our UCB variants, HAT exhibits $1 \%$ better ACC over UCB-P. Despite having a slightly higher forgetting, the overall accuracy of UCB is higher, reaching $7 9 . 4 \%$ . BBB-JT in this experiment achieves a positive BWT which shows that learning the entire sequence improves the performance on earlier tasks.
|
| 188 |
+
|
| 189 |
+
# 5.5 MULTIPLE DATASETS LEARNING
|
| 190 |
+
|
| 191 |
+
Finally, we present our results for continual learning of 8 tasks using UCB-P and UCB in Table 2d. Similar to the previous experiments we look at both ACC and BWT obtained for UCB-P, UCB, BBB references (FT, FE, JT) as well as various baselines. Considering the ACC achieved by BBB-FE or BBB-FT $( 5 8 . 1 \% )$ as a lower bound we observe again that some baselines are not able to do better than BBB-FT including LFL, PathNet, LWF, IMM, and EWC while PNN and HAT remain the only strong baselines for our UCB-P and UCB approaches. UCB-P again outperforms PNN by $3 . 6 \%$ in ACC. HAT exhibits only $- 0 . 1 \%$ BWT, but our UCB achieves $2 . 4 \%$ higher ACC.
|
| 192 |
+
|
| 193 |
+
# 6 SINGLE HEAD AND GENERALIZED ACCURACY OF UCB
|
| 194 |
+
|
| 195 |
+
UCB can be used even if the task information is not given at test time. For this purpose, at training time, instead of using a separate fully connected classification head for each task, we use a single head with the total number of outputs for all tasks. For example in the 8-dataset experiment we only use one head with 293 number of output classes, rather than using 8 separate heads, during training and inference time.
|
| 196 |
+
|
| 197 |
+
Table 3: Single Head vs. Multi-Head architecture and Generalized vs. Standard Accuracy. Generalized accuracy means that task information is not available at test time. SM, PM, CF, and 8T denote the 5-Split MNIST, Permuted MNIST, Alternating CIFAR10/100, and sequence of 8 tasks, respectively.
|
| 198 |
+
|
| 199 |
+
<table><tr><td rowspan="3"></td><td rowspan="3" colspan="2">Generalized ACC Single Head</td><td colspan="4">ACC</td></tr><tr><td colspan="2">Single Head</td><td colspan="2">Multi Head</td></tr><tr><td>BBB-FT</td><td>UCB BBB-FT</td><td>UCB</td><td>BBB-FT</td></tr><tr><td>Exp SM</td><td>UCB 98.7</td><td>98.1</td><td>98.9</td><td>98.7</td><td>99.2</td><td>98.4</td></tr><tr><td>PM</td><td>92.5</td><td>86.1</td><td>95.1</td><td>88.3</td><td>97.7</td><td>90.0</td></tr><tr><td>CF</td><td>71.2</td><td>65.2</td><td>74.3</td><td>67.8</td><td>79.4</td><td>68.9</td></tr><tr><td>8T</td><td>76.8</td><td>47.6</td><td>79.9</td><td>53.2</td><td>84.0</td><td>43.1</td></tr></table>
|
| 200 |
+
|
| 201 |
+
Table 3 presents our results for UCB and BBB-FT trained with a single head against having a multi-head architecture, in columns 4-7. Interestingly, we see only a small performance degrade for UCB from training with multi-head to a single head. The ACC reduction is $0 . 3 \%$ , $2 . 6 \%$ , ${ \bar { 5 } } . 1 \%$ , and $4 . 1 \%$ for 2-Split MNIST, Permuted MNIST, Alternating CIFAR10/100, and sequence of 8 tasks experiments, respectively.
|
| 202 |
+
|
| 203 |
+
We evaluated UCB and BBB-FT with a more challenging metric where the prediction space covers the classes across all the tasks. Hence, confusion of similar class labels across tasks can be measured. Performance for this condition is reported as Generalized ACC in Table 3 in columns 2-3. We observe a small performance reduction in going from ACC to Generalized ACC, suggesting non-significant confusion caused by the presence of more number of classes at test time. The performance degradation from ACC to Generalized ACC is $0 . 2 \%$ , $2 . 6 \%$ , $3 . 1 \%$ , and $3 . 1 \%$ for 2-Split MNIST, Permuted MNIST, Alternating CIFAR10/100, and sequence of 8 tasks, respectively. This shows that UCB can perform competitively in more realistic conditions such as unavailability of task information at test time. We believe the main insight of our approach is that instead of computing additional measurements of importance, which are often task, input or output dependent, we directly use predicted weight uncertainty to find important parameters. We can freeze them using a binary mask, as in UCB-P, or regularize changes conditioned on current uncertainty, as in UCB.
|
| 204 |
+
|
| 205 |
+
# 7 CONCLUSION
|
| 206 |
+
|
| 207 |
+
In this work, we propose a continual learning formulation with Bayesian neural networks, called UCB, that uses uncertainty predictions to perform continual learning: important parameters can be either fully preserved through a saved binary mask (UCB-P) or allowed to change conditioned on their uncertainty for learning new tasks (UCB). We demonstrated how the probabilistic uncertainty distributions per weight are helpful to continually learning short and long sequences of benchmark datasets compared against baselines and prior work. We show that UCB performs superior or on par with state-of-the-art models such as HAT (Serra et al., 2018) across all the experiments. Choosing between the two UCB variants depends on the application scenario: While UCB-P enforces no forgetting after the initial pruning stage by saving a small binary mask per task, UCB does not require additional memory and allows for more learning flexibility in the network by allowing small forgetting to occur. UCB can also be used in a single head setting where the right subset of classes belonging to the task is not known during inference leading to a competitive model that can be deployed where it is not possible to distinguish tasks in a continuous stream of the data at test time. UCB can also be deployed in a single head scenario and where tasks information is not available at test time.
|
| 208 |
+
|
| 209 |
+
# REFERENCES
|
| 210 |
+
|
| 211 |
+
Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 139–154, 2018.
|
| 212 |
+
|
| 213 |
+
Rahaf Aljundi, Klaas Kelchtermans, and Tinne Tuytelaars. Task-free continual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 11254–11263, 2019.
|
| 214 |
+
|
| 215 |
+
David M Blei, Alp Kucukelbir, and Jon D McAuliffe. Variational inference: A review for statisticians. Journal of the American Statistical Association, 112(518):859–877, 2017.
|
| 216 |
+
|
| 217 |
+
Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1613–1622. PMLR, 2015.
|
| 218 |
+
|
| 219 |
+
Yaroslav Bulatov. Notmnist dataset. Google (Books/OCR), Tech. Rep.[Online]. Available: http://yaroslavvb. blogspot. it/2011/09/notmnist-dataset. html, 2011.
|
| 220 |
+
|
| 221 |
+
Francisco M Castro, Manuel J Mar´ın-Jimenez, Nicol ´ as Guil, Cordelia Schmid, and Karteek Alahari. ´ End-to-end incremental learning. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 233–248, 2018.
|
| 222 |
+
|
| 223 |
+
Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with A-GEM. In International Conference on Learning Representations, 2019.
|
| 224 |
+
|
| 225 |
+
Yu Chen, Tom Diethe, and Neil Lawrence. Facilitating bayesian continual learning by natural gradients and stein gradients. arXiv preprint arXiv:1904.10644, 2019.
|
| 226 |
+
|
| 227 |
+
Chrisantha Fernando, Dylan Banarse, Charles Blundell, Yori Zwols, David Ha, Andrei A Rusu, Alexander Pritzel, and Daan Wierstra. Pathnet: Evolution channels gradient descent in super neural networks. arXiv preprint arXiv:1701.08734, 2017.
|
| 228 |
+
|
| 229 |
+
Alex Graves. Practical variational inference for neural networks. In Advances in neural information processing systems, pp. 2348–2356, 2011.
|
| 230 |
+
|
| 231 |
+
Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015.
|
| 232 |
+
|
| 233 |
+
W Keith Hastings. Monte carlo sampling methods using markov chains and their applications. Biometrika, 1970.
|
| 234 |
+
|
| 235 |
+
Jose Miguel Hern ´ andez-Lobato and Ryan Adams. Probabilistic backpropagation for scalable learning ´ of bayesian neural networks. In International Conference on Machine Learning, pp. 1861–1869, 2015.
|
| 236 |
+
|
| 237 |
+
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.
|
| 238 |
+
|
| 239 |
+
Heechul Jung, Jeongwoo Ju, Minju Jung, and Junmo Kim. Less-forgetting learning in deep neural networks. arXiv preprint arXiv:1607.00122, 2016.
|
| 240 |
+
|
| 241 |
+
Mohammad Emtiyaz Khan and Didrik Nielsen. Fast yet simple natural-gradient descent for variational inference in complex models. In 2018 International Symposium on Information Theory and Its Applications (ISITA), pp. 31–35. IEEE, 2018.
|
| 242 |
+
|
| 243 |
+
Mohammad Emtiyaz Khan, Didrik Nielsen, Voot Tangkaratt, Wu Lin, Yarin Gal, and Akash Srivastava. Fast and scalable bayesian deep learning by weight-perturbation in adam. arXiv preprint arXiv:1806.04854, 2018.
|
| 244 |
+
|
| 245 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 246 |
+
|
| 247 |
+
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, pp. 201611835, 2017.
|
| 248 |
+
|
| 249 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 250 |
+
|
| 251 |
+
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.
|
| 252 |
+
|
| 253 |
+
Kibok Lee, Kimin Lee, Jinwoo Shin, and Honglak Lee. Overcoming catastrophic forgetting with unlabeled data in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pp. 312–321, 2019.
|
| 254 |
+
|
| 255 |
+
Sang-Woo Lee, Jin-Hwa Kim, Jaehyun Jun, Jung-Woo Ha, and Byoung-Tak Zhang. Overcoming catastrophic forgetting by incremental moment matching. In Advances in Neural Information Processing Systems, pp. 4652–4662, 2017.
|
| 256 |
+
|
| 257 |
+
Zhizhong Li and Derek Hoiem. Learning without forgetting. In European Conference on Computer Vision, pp. 614–629. Springer, 2016.
|
| 258 |
+
|
| 259 |
+
Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2736–2744, 2017.
|
| 260 |
+
|
| 261 |
+
David Lopez-Paz et al. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, pp. 6467–6476, 2017.
|
| 262 |
+
|
| 263 |
+
David JC MacKay. A practical bayesian framework for backpropagation networks. Neural computation, 4(3):448–472, 1992a.
|
| 264 |
+
|
| 265 |
+
David JC MacKay. Bayesian methods for adaptive models. PhD thesis, California Institute of Technology, 1992b.
|
| 266 |
+
|
| 267 |
+
Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 268 |
+
|
| 269 |
+
James L McClelland, Bruce L McNaughton, and Randall C O’reilly. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review, 102(3):419, 1995.
|
| 270 |
+
|
| 271 |
+
Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pp. 109–165. Elsevier, 1989.
|
| 272 |
+
|
| 273 |
+
Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. In International Conference on Learning Representations (ICLR), 2016.
|
| 274 |
+
|
| 275 |
+
Radford M Neal. Bayesian learning for neural networks, volume 118. Springer Science & Business Media, 2012.
|
| 276 |
+
|
| 277 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, 2011.
|
| 278 |
+
|
| 279 |
+
Hong-Wei Ng and Stefan Winkler. A data-driven approach to cleaning large face datasets. In Image Processing (ICIP), 2014 IEEE International Conference on, pp. 343–347. IEEE, 2014.
|
| 280 |
+
|
| 281 |
+
Cuong V. Nguyen, Yingzhen Li, Thang D. Bui, and Richard E. Turner. Variational continual learning. In International Conference on Learning Representations, 2018.
|
| 282 |
+
|
| 283 |
+
Christian Robert and George Casella. Monte Carlo statistical methods. Springer Science & Business Media, 2013.
|
| 284 |
+
|
| 285 |
+
Anthony Robins. Catastrophic forgetting, rehearsal and pseudorehearsal. Connection Science, 7(2): 123–146, 1995.
|
| 286 |
+
|
| 287 |
+
Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
|
| 288 |
+
|
| 289 |
+
Nicol N Schraudolph. Fast curvature matrix-vector products for second-order gradient descent. Neural computation, 14(7), 2002.
|
| 290 |
+
|
| 291 |
+
Jonathan Schwarz, Jelena Luketina, Wojciech M Czarnecki, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. arXiv preprint arXiv:1805.06370, 2018.
|
| 292 |
+
|
| 293 |
+
Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 4548–4557. PMLR, 2018.
|
| 294 |
+
|
| 295 |
+
Kumar Shridhar, Felix Laumann, and Marcus Liwicki. Uncertainty estimations by softplus normalization in bayesian convolutional neural networks with variational inference. arXiv preprint arXiv:1806.05978, 2018.
|
| 296 |
+
|
| 297 |
+
Rupesh K Srivastava, Jonathan Masci, Sohrob Kazerounian, Faustino Gomez, and Jurgen Schmidhu-¨ ber. Compete to compute. In Advances in neural information processing systems, pp. 2310–2318, 2013.
|
| 298 |
+
|
| 299 |
+
Johannes Stallkamp, Marc Schlipsing, Jan Salmen, and Christian Igel. The german traffic sign recognition benchmark: a multi-class classification competition. In Neural Networks (IJCNN), The 2011 International Joint Conference on, pp. 1453–1460. IEEE, 2011.
|
| 300 |
+
|
| 301 |
+
Hanna Tseran, Mohammad Emtiyaz Khan, Tatsuya Harada, and Thang D Bui. Natural variational continual learning. In Continual Learning Workshop@ NeurIPS, volume 2, 2018.
|
| 302 |
+
|
| 303 |
+
Yue Wu, Yinpeng Chen, Lijuan Wang, Yuancheng Ye, Zicheng Liu, Yandong Guo, and Yun Fu. Large scale incremental learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 374–382, 2019.
|
| 304 |
+
|
| 305 |
+
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, The MIT License (MIT) Copyright $\circledcirc$ 2017 Zalando SE. https://tech.zalando.com, arXiv preprint arXiv:1708.07747, 2017.
|
| 306 |
+
|
| 307 |
+
Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. In International Conference on Learning Representations, 2018.
|
| 308 |
+
|
| 309 |
+
Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 3987–3995. PMLR, 2017.
|
| 310 |
+
|
| 311 |
+
# A APPENDIX
|
| 312 |
+
|
| 313 |
+
# A.1 DATASETS
|
| 314 |
+
|
| 315 |
+
Table 4 shows a summary of the datasets utilized in our work along with their size and number of classes. In all the experiments we resized images to $3 2 \times 3 2 \times 3$ if necessary. For datasets with monochromatic images, we replicate the image across all RGB channels.
|
| 316 |
+
|
| 317 |
+
Table 4: Utilized datasets summary
|
| 318 |
+
|
| 319 |
+
<table><tr><td>Names</td><td>#Classes</td><td>Train</td><td>Test</td></tr><tr><td>FaceScrub (Ng & Winkler,2014)</td><td>100</td><td>20.600</td><td>2,289</td></tr><tr><td>MNIST (LeCun et al.,1998)</td><td>10</td><td>60,000</td><td>10,000</td></tr><tr><td>CIFAR100 (Krizhevsky & Hinton,2009)</td><td>100</td><td>50.000</td><td>10,000</td></tr><tr><td>NotMNIST (Bulatov,2011)</td><td>10</td><td>16,853</td><td>1,873</td></tr><tr><td>SVHN (Netzer et al., 2011)</td><td>10</td><td>73,257</td><td>26.032</td></tr><tr><td>CIFAR10 (Krizhevsky & Hinton,2009)</td><td>10</td><td>39,209</td><td>12.630</td></tr><tr><td>TrafficSigns (Stallkamp et al., 2011)</td><td>43</td><td>39,209</td><td>12,630</td></tr><tr><td>FashionMNIST (Xiao et al.,2017)</td><td>10</td><td>60,000</td><td>10,000</td></tr></table>
|
| 320 |
+
|
| 321 |
+
# A.2 IMPLEMENTATION DETAILS
|
| 322 |
+
|
| 323 |
+
In this section we take a closer look at elements of our UCB model on MNIST and evaluate variants of parameter regularization, importance measurement, as well as the effect of the number of samples drawn from the posited posterior.
|
| 324 |
+
|
| 325 |
+
Bayes-by-backprop (BBB) Hyperparamters: Table 5 shows the search space for hyperparamters in the BBB algorithm Blundell et al. (2015) which we used for tuning on the validation set of the first two tasks.
|
| 326 |
+
|
| 327 |
+
Table 5: Search space for hyperparamters in BBB given by Blundell et al. (2015)
|
| 328 |
+
|
| 329 |
+
<table><tr><td rowspan=1 colspan=1>BBB hyperparamters</td><td rowspan=1 colspan=1>-logσ1</td><td rowspan=1 colspan=1>-logσ2</td><td rowspan=1 colspan=1>T</td></tr><tr><td rowspan=1 colspan=1>Search space</td><td rowspan=1 colspan=1>{0,1,2}</td><td rowspan=1 colspan=1>{6,7,8}</td><td rowspan=1 colspan=1>{0.25,0.5,0.75}</td></tr></table>
|
| 330 |
+
|
| 331 |
+
Network architecture: For Split MNIST and Permuted MNIST experiments, we have used a twolayer perceptron which has 1200 units. Because there is more number of parameters in our Bayesian neural network compared to its equivalent regular neural net, we ensured fair comparison by matching the total number of parameters between the two to be $1 . 9 \mathrm { M }$ unless otherwise is stated. For the multiple datasets learning scenario, as well as alternating incremental CIFAR10/100 datasets, we have used a ResNet18 Bayesian neural network with 7.1-11.3M parameters depending on the experiment. However, the majority of the baselines provided in this work are originally developed using some variants of AlexNet structure and altering that, e.g. to ResNet18, resulted in degrading in their reported and experimented performance as shown in Table 6. Therefore, we kept the architecture for baselines as AlexNet and ours as ResNet18 and only matched their number of parameters to ensure having equal capacity across different approaches.
|
| 332 |
+
|
| 333 |
+
Table 6: Continually learning on CIFAR10/100 using AlexNet and ResNet18 for UCB (our method) and HAT (Serra et al., 2018). BWT and ACC in $\%$ . All results are (re)produced by us.
|
| 334 |
+
|
| 335 |
+
<table><tr><td>Method</td><td>BWT</td><td>ACC</td></tr><tr><td>HAT (AlexNet) HAT (ResNet18)</td><td>0.0</td><td>78.3</td></tr><tr><td>UCB (AlexNet)</td><td>-9.0 -0.7</td><td>56.8 79.44</td></tr><tr><td>UCB (ResNet18)</td><td>-0.7</td><td>79.70</td></tr></table>
|
| 336 |
+
|
| 337 |
+
Number of Monte Carlo samples: UCB is ensured to be robust to random noise using multiple samples drawn from posteriors. Here we explore different number of samples and the effect on final performance for ACC and BWT. We have used $\Omega _ { \mu } = 1 / \sigma$ as importance and regularization has been performed on mean values only. Following the result in Table 7 we chose the number of samples to be 10 for all experiments.
|
| 338 |
+
|
| 339 |
+
Table 7: Number of Monte Carlo samples $( \mathrm { N } )$ in 2-Split MNIST
|
| 340 |
+
|
| 341 |
+
<table><tr><td>Method</td><td>N</td><td>BWT (%)</td><td>ACC (%)</td></tr><tr><td>UCB</td><td>1</td><td>0.00</td><td>98.0</td></tr><tr><td>UCB</td><td>2</td><td>0.00</td><td>98.3</td></tr><tr><td>UCB</td><td>5</td><td>-0.15</td><td>99.0</td></tr><tr><td>UCB</td><td>10</td><td>0.00</td><td>99.2</td></tr><tr><td>UCB</td><td>15</td><td>-0.01</td><td>98.3</td></tr></table>
|
| 342 |
+
|
| 343 |
+
# A.3 ADDITIONAL RESULTS
|
| 344 |
+
|
| 345 |
+
Here we include some additional results such as Table 8 for 2-split MNIST and some complementary results for tables in the main text as follows: 9, 10, and 11 include standard deviation for results shown in Table 2a, 2b, 2c, respectively.
|
| 346 |
+
|
| 347 |
+
Table 8: Continually learning on 2-Split MNIST. BWT and ACC in $\%$ . $( ^ { * } )$ denotes that methods do not adhere to the continual learning setup: BBB-JT and ORD-JT serve as the upper bound for ACC for BBB/ORD networks, respectively. All results are (re)produced by us.
|
| 348 |
+
|
| 349 |
+
<table><tr><td>Method</td><td>BWT</td><td>ACC</td></tr><tr><td>PackNet (Mallya&Lazebnik,2018)</td><td>0.04±0.01</td><td>98.91±0.03</td></tr><tr><td>LWF (Li& Hoiem,2016)</td><td>-0.22 ± 0.04</td><td>99.12 ±0.03</td></tr><tr><td>HAT (Serra et al., 2018)</td><td>0.01 ±0.00</td><td>99.02 ±0.00</td></tr><tr><td>ORD-FT</td><td>-6.81± 0.03</td><td>92.42 ±0.02</td></tr><tr><td>ORD-FE</td><td>0.04±0.04</td><td>97.90 ±0.04</td></tr><tr><td>BBB-FT</td><td>-0.61±0.03</td><td>98.44±0.03</td></tr><tr><td>BBB-FE</td><td>0.02 ±0.05</td><td>98.03±0.05</td></tr><tr><td>UCB-P (Ours)</td><td>0.03 ±0.04</td><td>99.02 ±0.01</td></tr><tr><td>UCB (Ours)</td><td>0.01±0.00</td><td>99.18 ±0.01</td></tr><tr><td>ORD-JT*</td><td>0.02±0.03</td><td>99.13±0.03</td></tr><tr><td>BBB-JT*</td><td>0.03 ±0.02</td><td>99.51 ±0.02</td></tr></table>
|
| 350 |
+
|
| 351 |
+
Table 9: Continually learning on 5-Split MNIST. BWT and ACC in $\%$ . $( ^ { \ast } )$ denotes that methods do not adhere to the continual learning setup: BBB-JT and ORD-JT serve as the upper bound for ACC for BBB/ORD networks, respectively. All results are (re)produced by us.
|
| 352 |
+
|
| 353 |
+
<table><tr><td>Method</td><td>BWT</td><td>ACC</td></tr><tr><td>VCL-Vadam (Tseran et al., 2018)</td><td></td><td>99.17 ± 0.05</td></tr><tr><td>VCL-GNG (Chen et al., 2019)</td><td>=</td><td>96.50± 0.07</td></tr><tr><td>VCL (Nguyen et al., 2018)</td><td>-0.56 ±0.03</td><td>98.20±0.03</td></tr><tr><td>IMM (Lee et al., 2017)</td><td>-11.20 ± 1.57</td><td>88.54 ± 1.56</td></tr><tr><td>EWC (Kirkpatrick et al., 2017)</td><td>-4.20 ±1.08</td><td>95.78 ±1.08</td></tr><tr><td>HAT (Serra et al., 2018)</td><td>0.00±0.02</td><td>99.59 ±0.02</td></tr><tr><td>ORD-FT*</td><td>-9.18 ± 1.12</td><td>90.60 ±1.12</td></tr><tr><td>ORD-FE*</td><td>0.00 ±1.56</td><td>98.54 ± 1.57</td></tr><tr><td>BBB-FT*</td><td>-6.45 ± 1.99</td><td>93.42 ±1.98</td></tr><tr><td>BBB-FE*</td><td>0.00 ± 2.23</td><td>98.76 ± 2.23</td></tr><tr><td>UCB-P (Ours)</td><td>-0.72 ± 0.04</td><td>99.32 ±0.04</td></tr><tr><td>UCB (Ours)</td><td>0.00 ±0.04</td><td>99.63 ± 0.03</td></tr><tr><td>ORD-JT*</td><td>0.00±0.02</td><td>99.78±0.02</td></tr><tr><td>BBB-JT*</td><td>0.00 ± 0.01</td><td>99.87 ± 0.01</td></tr></table>
|
| 354 |
+
|
| 355 |
+
Table 10: Continually learning on Permuted MNIST. BWT and ACC in $\%$ . $( ^ { * } )$ denotes that method does not adhere to the continual learning setup: BBB-JT serves as the upper bound for ACC for BBB network. $^ \ddag$ denotes results reported by (Serra et al., 2018). $\dagger$ denotes the result reported from original work. BWT was not reported in $^ \ddag$ and $\dagger$ . All others results are (re)produced by us.
|
| 356 |
+
|
| 357 |
+
<table><tr><td>Method</td><td>#Params</td><td>BWT</td><td>ACC</td></tr><tr><td>SI (Zenke et al., 2017)‡</td><td>0.1M</td><td>=</td><td>86.0</td></tr><tr><td>EWC (Kirkpatrick et al., 2017)‡</td><td>0.1M</td><td>=</td><td>88.2</td></tr><tr><td>HAT (Serra et al., 2018)‡</td><td>0.1M</td><td></td><td>91.6</td></tr><tr><td>VCL-Vadamt</td><td>0.1M</td><td></td><td>93.34</td></tr><tr><td>VCL-GNGt</td><td>0.1M</td><td></td><td>94.62</td></tr><tr><td>VCL</td><td>0.1M</td><td>-7.90 ±0.23</td><td>88.80±0.23</td></tr><tr><td>UCB (Ours)</td><td>0.1M</td><td>-0.38 ± 0.02</td><td>91.44±0.04</td></tr><tr><td>LWF (Li& Hoiem,2016)</td><td>1.9M</td><td>-31.17 ± 0.05</td><td>65.65 ± 0.05</td></tr><tr><td>IMM (Lee et al., 2017)</td><td>1.9M</td><td>-7.14±0.07</td><td>90.51 ± 0.08</td></tr><tr><td>HAT (Serra et al., 2018)</td><td>1.9M</td><td>0.03 ±0.05</td><td>97.34 ± 0.05</td></tr><tr><td>BBB-FT</td><td>1.9M</td><td>-0.58 ± 0.05</td><td>90.01 ±0.05</td></tr><tr><td>BBB-FE</td><td>1.9M</td><td>0.02 ±0.03</td><td>93.54± 0.04</td></tr><tr><td>UCB-P (Ours)</td><td>1.9M</td><td>-0.95 ± 0.06</td><td>97.24± 0.06</td></tr><tr><td>UCB (Ours)</td><td>1.9M</td><td>0.03 ±0.00</td><td>97.42 ± 0.01</td></tr><tr><td>BBB-JT*</td><td>1.9M</td><td>0.00±0.00</td><td>98.12±0.01</td></tr></table>
|
| 358 |
+
|
| 359 |
+
Table 11: Continually learning on CIFAR10/100. BWT and ACC in $\%$ . $( ^ { * } )$ denotes that method does not adhere to the continual learning setup: BBB-JT serves as the upper bound for ACC for BBB network. All results are (re)produced by us.
|
| 360 |
+
|
| 361 |
+
<table><tr><td>Method</td><td>BWT</td><td>ACC</td></tr><tr><td>PathNet (Fernando et al., 2017)</td><td>0.00 ±0.00</td><td>28.94±0.03</td></tr><tr><td>LWF (Li& Hoiem,2016)</td><td>-37.9 ± 0.32</td><td>42.93 ± 0.30</td></tr><tr><td>LFL (Jung et al., 2016)</td><td>-24.22 ± 0.21</td><td>47.67 ± 0.22</td></tr><tr><td>IMM (Lee et al., 2017)</td><td>-12.23 ±0.06</td><td>69.37 ±0.06</td></tr><tr><td>PNN (Rusu et al., 2016)</td><td>0.00±0.00</td><td>70.73 ±0.08</td></tr><tr><td>EWC (Kirkpatrick et al., 2017)</td><td>-1.53 ± 0.07</td><td>72.46 ± 0.06</td></tr><tr><td>HAT (Serra et al., 2018)</td><td>0.04±0.06</td><td>78.32 ±0.06</td></tr><tr><td>BBB-FE</td><td>0.04±0.02</td><td>51.04 ± 0.03</td></tr><tr><td>BBB-FT</td><td>-7.43 ± 0.07</td><td>68.89 ± 0.07</td></tr><tr><td>UCB-P (Ours)</td><td>-1.89±0.03</td><td>77.32 ± 0.03</td></tr><tr><td>UCB (Ours)</td><td>-0.72 ±0.02</td><td>79.44± 0.02</td></tr><tr><td>BBB-JT*</td><td>1.52 ± 0.04</td><td>83.93±0.04</td></tr></table>
|
parse/train/HklUCCVKDB/HklUCCVKDB_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HklUCCVKDB/HklUCCVKDB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HklUCCVKDB/HklUCCVKDB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyEl3o05Fm/HyEl3o05Fm.md
ADDED
|
@@ -0,0 +1,364 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# STOCHASTIC ADVERSARIAL VIDEO PREDICTION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Being able to predict what may happen in the future requires an in-depth understanding of the physical and causal rules that govern the world. A model that is able to do so has a number of appealing applications, from robotic planning to representation learning. However, learning to predict raw future observations, such as frames in a video, is exceedingly challenging—the ambiguous nature of the problem can cause a naively designed model to average together possible futures into a single, blurry prediction. Recently, this has been addressed by two distinct approaches: (a) latent variational variable models that explicitly model underlying stochasticity and (b) adversarially-trained models that aim to produce naturalistic images. However, a standard latent variable model can struggle to produce realistic results, and a standard adversarially-trained model underutilizes latent variables and fails to produce diverse predictions. We show that these distinct methods are in fact complementary. Combining the two produces predictions that look more realistic to human raters and better cover the range of possible futures. Our method outperforms prior works in these aspects.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
When we interact with objects in our environment, we can easily imagine the consequences of our actions: push a ball and it will roll; drop a vase and it will break. The ability to imagine future outcomes provides an appealing avenue for learning about the world. Unlabeled video sequences can be gathered autonomously with minimal human intervention, and a machine that learns to predict future events will gain an in-depth and functional understanding of its environment. This leads naturally to the problem of video prediction—given a sequence of context frames, and optionally a proposed action sequence, generate the pixels of the future frames. Once trained, such a model could be used to determine which actions can bring about desired outcomes (Finn et al., 2016; Ebert et al., 2017). Unfortunately, accurate and naturalistic video prediction remains an open problem.
|
| 12 |
+
|
| 13 |
+
One major challenge in video prediction is the ambiguous nature of the problem. While frames in the immediate future can be extrapolated with high precision, the space of possibilities diverges beyond a few frames, and the problem becomes multimodal by nature. Methods that use deterministic models and loss functions unequipped to handle this inherent uncertainty, such as mean-squared error (MSE), will average together possible futures, producing blurry predictions. Prior works have explored stochastic models for video prediction (Babaeizadeh et al., 2018; Denton & Fergus, 2018), using the framework of variational autoencoders (VAEs) (Kingma & Welling, 2014). These models predict possible futures by sampling latent variables. During training, they optimize a variational lower bound on the likelihood of the data in a latent variable model. However, the posterior is still a pixel-wise MSE loss, corresponding to the log-likelihood under a fully factorized Gaussian distribution. This makes training tractable, but causes them to still make blurry and unrealistic predictions when the latent variables alone do not adequately capture the uncertainty.
|
| 14 |
+
|
| 15 |
+
Another relevant branch of recent work has been generative adversarial networks (GANs) (Goodfellow et al., 2014) for image generation. Here, a generator network is trained to produce images that are indistinguishable from real images, under the guidance of a learned discriminator network trained to classify images as real or generated. The discriminator operates on patches or entire images, and is thus capable of modeling the joint distribution of pixels. Although this overcomes the limitations of pixel-wise losses, GANs are notoriously susceptible to mode collapse, where latent random variables are often ignored by the model, especially in the conditional setting. This makes them difficult to apply to generation of diverse and plausible futures, conditioned on context frames.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Example results. While the SV2P method (Babaeizadeh et al., 2018) produces blurry images, our method maintains sharpness and realism through time. The prior SVG-LP method (Denton & Fergus, 2018) produces sharper predictions, but still blurs out objects in the background (left) or objects that interact with the robot such as the baseball (right).
|
| 19 |
+
|
| 20 |
+
To address these challenges, we propose a model that combines both adversarial losses and latent variables to enable realistic stochastic video prediction. Our model consists of a video prediction network that can sample multiple plausible futures by sampling time-varying stochastic latent variables and decoding them into multiple frames. At training time, an inference network estimates the distribution of these latent variables, and video discriminator networks classify generated videos from real. The full training objective is the variational lower bound used in VAEs combined with the adversarial loss used in GANs. This enables us to capture stochastic posterior distributions of videos while also modeling the spatiotemporal joint distribution of pixels. VAEs with no adversarial losses are also capable of modeling joint distributions, provided that the generator model doesn’t assume any factorization of the pixels. This is the case of pixel-autoregressive models, such as Pixel Video Networks (Kalchbrenner et al., 2017), though training and inference with these models are impractically slow. In this work, we take a different approach and we instead focus on the losses.
|
| 21 |
+
|
| 22 |
+
The primary contribution of our work is an stochastic video prediction model based on VAE-GANs. To our knowledge, this is the first stochastic video prediction model that combines an adversarial loss with a latent variable model trained via the variational lower bound. Our experiments show that the VAE component greatly improves the diversity of the generated images, while the adversarial loss attains prediction results that are substantially more realistic than state-of-the-art methods, as shown in Fig. 1. We further present a comparison of various types of prediction models and losses, including VAE, GAN, and VAE-GAN models, and analyze the impact of these choices on prediction realism, diversity, and accuracy.
|
| 23 |
+
|
| 24 |
+
# 2 RELATED WORK
|
| 25 |
+
|
| 26 |
+
Recent developments in expressive generative models based on deep networks has led to impressive developments in video generation and prediction. Earlier approaches to prediction focused on models that generate pixels directly from the latent state of the model using both feed-forward (Ranzato et al., 2014; Mathieu et al., 2016) and recurrent (Oh et al., 2015; Xingjian et al., 2015) architectures. An alternative to generating pixels is transforming them by applying a constrained geometric distortion to a previous frame (Finn et al., 2016; De Brabandere et al., 2016; Xue et al., 2016; Byravan & Fox, 2016; Vondrick & Torralba, 2017; van Amersfoort et al., 2017; Liu et al., 2017; Chen et al., 2017; Lu et al., 2017; Walker et al., 2015; 2016; Liang et al., 2017). Aside from the design of the generator architecture, performance is strongly affected by the training objective. Simply minimizing MSE loss can lead to strong results for deterministic synthetic videos (Oh et al., 2015; Chiappa et al., 2017). However, on real-world videos that contain uncertainty, this loss can result in blurry predictions, as the model averages futures to avoid incurring a large MSE loss (Mathieu et al., 2016).
|
| 27 |
+
|
| 28 |
+
Incorporating uncertainty is critical for addressing this issue. One approach is to model the full joint distribution using pixel-autoregressive models (van den Oord et al., 2016; Kalchbrenner et al., 2017; Reed et al., 2017), though training and inference are impractically slow. Another approach is to train a latent variable model, such as in variational autoencoders (VAEs) (Kingma & Welling, 2014). Conditional VAEs have been used for prediction of optical flow trajectories (Walker et al.,
|
| 29 |
+
|
| 30 |
+
2016), single-frame prediction (Xue et al., 2016), and recently for stochastic multi-frame video prediction (Babaeizadeh et al., 2018; Denton & Fergus, 2018). While these models can model distributions over possible futures, the prediction distribution is still fully factorized over pixels, which still tends to produce blurry predictions.
|
| 31 |
+
|
| 32 |
+
Adversarial losses (Goodfellow et al., 2014) for image generation can produce substantially improved realism. However, these networks tend to be difficult to train and are susceptible to mode collapse. A number of prior works have used adversarial losses for deterministic video prediction (Mathieu et al., 2016; Vondrick & Torralba, 2017; Villegas et al., 2017; Lu et al., 2017; Zhou & Berg, 2016; Bhattacharjee & Das, 2017). Several prior works have also sought to produce unconditioned video generations (Vondrick et al., 2016; Saito et al., 2017; Tulyakov et al., 2018) and conditional generation with input noise (Chen et al., 2017; Tulyakov et al., 2018; Wang et al., 2018). We show that a GAN model with input noise can indeed generate realistic videos, but fails to adequately cover the space of possible futures. In contrast, our method, which combines latent variable models with an adversarial loss, produces videos that are both visually plausible and diverse.
|
| 33 |
+
|
| 34 |
+
Prior works have combined VAEs and GANs to produce stochastic and realistic predictions. Walker et al. (2017) predicts videos of humans by decomposing the problem into a VAE that predicts stochastic future poses and a GAN that generates videos conditioned on those poses and an image. VAE-GANs, which jointly optimize the VAE and GAN losses, have shown promising results for unconditional and conditional image generation (Larsen et al., 2016; Bao et al., 2017; Zhu et al., 2017), but have not been applied to video prediction. The video prediction setting presents two important challenges. First, conditional image generation can handle large appearance changes between the input and output, but suffer when attempting to produce large spatial changes. The video prediction setting is precisely the opposite—the appearance remains largely the same from frame to frame, but the most important changes are spatial. Secondly, video prediction involves sequential prediction, where it’s increasingly difficult to predict farther into the future. Our approach is the first to use VAE-GANs in a recurrent setting for stochastic video prediction.
|
| 35 |
+
|
| 36 |
+
# 3 VIDEO PREDICTION WITH STOCHASTIC ADVERSARIAL MODELS
|
| 37 |
+
|
| 38 |
+
Our goal is to learn a stochastic video prediction model that can predict videos that are diverse and perceptually realistic, and where all predictions are plausible futures for the given initial image. In practice, we use a short initial sequence of images (typically two frames), though we will omit this in our derivation for ease of notation. Our model consists of a recurrent generator network $G$ , which is a deterministic video prediction model that maps an initial image $\mathbf { x } _ { \mathrm { 0 } }$ and a sequence of latent random codes ${ \bf z } _ { 0 : T - 1 }$ , to the predicted sequence of future images $\hat { \mathbf { x } } _ { 1 : T }$ . Intuitively, the latent codes encapsulate any ambiguous or stochastic events that might affect the future. At test time, we sample videos by first sampling the latent codes from a prior distribution $p ( \mathbf { z } _ { t } )$ , and then passing them to the generator. We use a fixed unit Gaussian prior, $\mathcal { N } ( 0 , 1 )$ . The training procedure for this includes elements of variational inference and generative adversarial networks. Before describing the training procedure, we formulate the problem in the context of VAEs and GANs.
|
| 39 |
+
|
| 40 |
+
# 3.1 VARIATIONAL AUTOENCODERS
|
| 41 |
+
|
| 42 |
+
Our recurrent generator predicts each frame given the previous frame and a random latent code. The previous frame passed to the generator is denoted as $\tilde { \mathbf { x } } _ { t - 1 }$ to indicate that it could be a ground truth frame $\mathbf { x } _ { t - 1 }$ (for the initial frames) or the last prediction $\hat { \mathbf { x } } _ { t - 1 }$ . The generator specifies a distribution $p ( \mathbf { x } _ { t } | \mathbf { x } _ { t - 1 } , \mathbf { z } _ { t - 1 } )$ , parametrized as a fixed-variance Laplacian distribution with mean $\hat { \mathbf { x } } _ { t } = G ( \mathbf { x } _ { t - 1 } , \mathbf { z } _ { t - 1 } )$ . The likelihood of the data $p ( \mathbf { x } _ { 1 : T } | \mathbf { x } _ { 0 } )$ cannot be directly maximized, since it involves marginalizing over the latent variables, which is intractable in general. Thus, we instead maximize the variational lower bound of the log-likelihood. We approximate the posterior with a recognition model $q \big ( \mathbf { z } _ { t } \big | \mathbf { x } _ { t : t + 1 } \big )$ , which is parametrized as a conditionally Gaussian distribution $\sqrt { ( \mu _ { \mathbf { z } _ { t } } ) } , \sigma _ { \mathbf { z } _ { t } } ^ { 2 } )$ , represented by a network $E ( \mathbf { x } _ { t : t + 1 } )$ . The encoder $E$ is conditioned on adjacent frames $\mathbf { x } _ { t }$ and $\mathbf { x } _ { t + 1 }$ in order to have temporally local latent variables $\mathbf { z } _ { t }$ that capture the ambiguity for only that transition, a sensible choice when using independent and identically distributed Gaussian priors. Another choice is to use temporally correlated latent variables, which would require a stronger prior (e.g. as in Denton & Fergus (2018)). For simplicity, we opted for the former.
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
Figure 2: Our proposed video prediction model. (a) During testing, we synthesize new frames by sampling random latent codes $\mathbf { z }$ from a prior distribution $p ( \mathbf { z } )$ independently at each time step. The generator $G$ takes a previous frame and a latent code to synthesize a new frame. (b) During training, the generator is optimized to predict videos that match the distribution of real videos, using learned discriminators. The discriminators operate on entire sequences. We sample latent codes from two distributions: (1) the prior distribution, and (2) a posterior distribution approximated by a learned encoder $E$ . For the latter, the regression $\mathcal { L } _ { 1 }$ loss is used. Separate discriminators $D$ and $D ^ { \mathrm { V A E } }$ are used depending on the distribution used to sample the latent code.
|
| 46 |
+
|
| 47 |
+
During training, the latent code is sampled from $q \big ( \mathbf { z } _ { t } | \mathbf { x } _ { t : t + 1 } \big )$ . The generation of each frame can be thought of as the reconstruction of frame $\hat { \mathbf { x } } _ { t + 1 }$ , where the ground truth frame $\mathbf { x } _ { t + 1 }$ (along with $\mathbf { x } _ { t }$ ) is encoded into a latent code $\mathbf { z } _ { t }$ , and then it (along with the last frame) is mapped back to $\hat { \mathbf { x } } _ { t + 1 }$ . Since the latent code has ground truth information about the frame being reconstructed, the model is encouraged to use it during training. This is a conditional version of VAEs, where the encoder and decoder are conditioned on the previous frame $\mathbf { \check { x } } _ { t }$ or $\hat { \mathbf { x } } _ { t } .$ ). To allow back-propagation through the encoder, the reconstruction term is rewritten using the re-parametrization trick,
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\mathcal { L } _ { 1 } ( G , E ) = \mathbb { E } _ { \mathbf { x } _ { 0 : T } , \mathbf { z } _ { t } \sim E \left( \mathbf { x } _ { t : t + 1 } \right) | _ { t = 0 } ^ { T - 1 } } \left[ \sum _ { t = 1 } ^ { T } | | \mathbf { x } _ { t } - G ( \mathbf { x } _ { t - 1 } , \mathbf { z } _ { t - 1 } ) | | _ { 1 } \right] .
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
To enable sampling from the prior at test time, a regularization term encourages the approximate posterior to be close to the prior distribution,
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { { K L } } } ( E ) = \mathbb { E } _ { { \mathbf { x } _ { 0 : T } } } \left[ \sum _ { t = 1 } ^ { T } \mathcal { D } _ { \mathrm { { K L } } } ( E ( { \mathbf { x } _ { t - 1 : t } } ) | | p ( \mathbf { z } _ { t - 1 } ) ) \right] . } \end{array}
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
The VAE optimization involves minimizing the following objective, where the relative weighting of $\lambda _ { 1 }$ and $\lambda _ { \mathrm { K L } }$ is determined by the (fixed) variance of conditional likelihood $p ( \mathbf { x } _ { t } | \mathbf { x } _ { t - 1 } , \mathbf { z } _ { t - 1 } )$ ,
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
G ^ { * } , E ^ { * } = \arg \operatorname* { m i n } _ { G , E } \lambda _ { 1 } \mathcal { L } _ { 1 } ( G , E ) + \lambda _ { \mathrm { K L } } \mathcal { L } _ { \mathrm { K L } } ( E ) .
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
# 3.2 GENERATIVE ADVERSARIAL NETWORKS
|
| 66 |
+
|
| 67 |
+
Without overcoming the problem of modeling pixel covariances, it is likely not possible to produce sharp and clean predictions. Indeed, as shown in our experiments, the pure VAE model tends to produce blurry futures. We can force the predictions to stay on the video manifold by matching the distributions of predicted and real videos. Given a classifier $D$ that is capable of distinguishing generated videos $\hat { \mathbf { x } } _ { 1 : T }$ from real videos $\mathbf { x } _ { \mathrm { 1 : } T }$ , the generator can be trained to match the statistics of the real data distribution using the binary cross-entropy loss,
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { G a N } } ( G , D ) = \mathbb { E } _ { \mathbf { x } _ { 1 : T } } [ \log D ( \mathbf { x } _ { 1 : T } ) ] + \mathbb { E } _ { \mathbf { x } _ { 1 : T } , \mathbf { z } _ { t } \sim p ( \mathbf { z } _ { t } ) | _ { t = 0 } ^ { T - 1 } } [ \log ( 1 - D ( G ( \mathbf { x } _ { 0 } , \mathbf { z } _ { 0 : T - 1 } ) ) ) ] . } \end{array}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
The overloaded notation $G ( { \bf x } _ { 0 } , { \bf z } _ { 0 : T - 1 } )$ indicates the generated sequence $\hat { \mathbf { x } } _ { 1 : T }$ . The classifier, which is not known a priori and is problem-specific, can be realized as a deep discriminator network that can be adversarially learned,
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
G ^ { * } = \arg \operatorname* { m i n } _ { G } \operatorname* { m a x } _ { D } \mathcal { L } _ { \mathrm { G A N } } ( G , D ) .
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
This is the setting of GANs. In the conditional case, a per-pixel reconstruction term $\mathcal { L } _ { 1 } ^ { \mathrm { G A N } }$ is added to the objective, which is analogous to $\mathcal { L } _ { 1 }$ , except that the latent codes are sampled from the prior.
|
| 80 |
+
|
| 81 |
+
# 3.3 STOCHASTIC ADVERSARIAL VIDEO PREDICTION
|
| 82 |
+
|
| 83 |
+
The VAE and GAN models provide complementary strengths. GANs use a learned loss function through the discriminator, which learns the statistics of natural videos. However, GANs can suffer from the problem of mode collapse, especially in the conditional setting (Pathak et al., 2016; Isola et al., 2017; Zhu et al., 2017). VAEs explicitly encourage the latent code to be more expressive and meaningful, since the learned encoder produces codes that are useful for making accurate predictions at training time. However, during training, VAEs only observe latent codes that are encodings of ground truth images, and never train on completely randomly drawn latent codes, leading to a potential train and test mismatch. GANs, however, are trained with randomly drawn codes.
|
| 84 |
+
|
| 85 |
+
Our stochastic adversarial video prediction (SAVP) model combines both approaches, shown in Fig. 2. Another term $\mathcal { L } _ { \mathrm { G A N } } ^ { \mathrm { V A E } }$ is introduced, which is analogous to $\mathcal { L } _ { \mathrm { G A N } }$ except that it uses latent codes sampled from $q \big ( \mathbf { z } _ { t } | \mathbf { x } _ { t : t + 1 } \big )$ and a video discriminator . The objective of our SAVP model is
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
G ^ { * } , E ^ { * } = \operatorname * { a r g m i n } _ { G , E } \operatorname* { m a x } _ { D , D ^ { \mathrm { v a g } } } \lambda _ { 1 } \mathcal { L } _ { 1 } ( G , E ) + \lambda _ { \mathrm { { K L } } } \mathcal { L } _ { \mathrm { { K L } } } ( E ) + \mathcal { L } _ { \mathrm { G a N } } ( G , D ) + \mathcal { L } _ { \mathrm { G A N } } ^ { \mathrm { v a g } } ( G , E , D ^ { \mathrm { v a E } } ) .
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
# 3.4 NETWORK ARCHITECTURES
|
| 92 |
+
|
| 93 |
+
The generator is a convolutional LSTM (Xingjian et al., 2015) that predicts pixel-space transformations between the current and next frame, with additional skip connections with the first frame as done in SNA (Ebert et al., 2017). At every time step, the network is conditioned on the current frame and latent code. After the initial frames, the network is conditioned on its own predictions. The conditioning on the latent codes is realized by concatenating them along the channel dimension to the inputs of all the convolutional layers of the convolutional LSTM. We note that the warping component of this generator assumes that the frames in the videos can be described as transformations of pixels, which is the case for the datasets that we consider. And although the generator used in this work is based on SNA, any video generator (including the one from Denton & Fergus (2018)) could be used with our losses. The encoder is a feed-forward convolutional network that, at every time step, encodes a pair of images $\mathbf { x } _ { t }$ and $\mathbf { x } _ { t + 1 }$ into $\mu _ { \mathbf { z } _ { t } }$ and $\log \sigma _ { \mathbf { z } _ { t } }$ .
|
| 94 |
+
|
| 95 |
+
The video discriminator is a feed-forward convolutional network with 3D filters, based on SNGAN (Miyato et al., 2018) but with the filters “inflated” from 2D to 3D. The network takes in a spatiotemporal cube of all the predicted pixels and outputs a single logit. The ground-truth context frames are not provided to the network. We found that spectral normalization in the discriminator and conditioning only on the predicted frames were important for a stable training. We also found that image discriminators that operate on single frames were not necessary. See Fig. 8 and Appendix A for additional details.
|
| 96 |
+
|
| 97 |
+
# 3.5 DISCUSSION OF RELATED VAE MODELS
|
| 98 |
+
|
| 99 |
+
Aside from the adversarial losses, the VAE component of our model is related to prior work on stochastic video prediction. Although the variational losses are the same, there are differences on encoding the posterior distribution and sampling the latent variables at training and test time.
|
| 100 |
+
|
| 101 |
+
The inference network of Babaeizadeh et al. (2018) estimates a single distribution $q ( \mathbf { z } | \mathbf { x } _ { 1 : T } )$ by using a feed-forward network that encodes the entire video sequence at once. At test time, the latent variable is sampled from a unit Gaussian prior. They propose two variants for sampling. The latent is sampled once for the entire sequence in the time-invariant case or at every time step in the time-variant case.
|
| 102 |
+
|
| 103 |
+
On the other hand, the inference network of Denton & Fergus (2018) estimates a time-varying distribution $q \big ( \mathbf { z } _ { t } | \mathbf { x } _ { 1 : t + 1 } \big )$ by using a recurrent network that encodes all the frames up to the next frame. They propose two versions for the prior. The prior is either a fixed unit Gaussian distribution or a time-varying distribution $p ( \mathbf { z } _ { t } | \mathbf { x } _ { 1 : t } )$ , which is learned and estimated by a recurrent network. In both cases, the latent variable is sampled at every time step.
|
| 104 |
+
|
| 105 |
+
In contrast, our inference network estimates a single distribution $q \big ( \mathbf { z } _ { t } | \mathbf { x } _ { t : t + 1 } \big )$ by using a feedforward network that encodes the current and next frames. Unlike both prior works, the posterior distribution is temporally local and is conditioned on only two adjacent frames. The latent variables are sampled at every time step and, like the time-variant SV2P and fixed-prior SVG, the prior is a fixed unit Gaussian distribution for every time step.
|
| 106 |
+
|
| 107 |
+
# 4 EXPERIMENTS
|
| 108 |
+
|
| 109 |
+
Our experimental evaluation studies the realism, diversity, and accuracy of the videos generated by our approach and prior methods, and evaluates the importance of various design decisions, including the form of the reconstruction loss and the presence of the variational and adversarial objectives. Evaluating the performance of stochastic video prediction models is exceedingly challenging: not only should the samples from the model be physically realistic and visually plausible given the context frames, but the model should also be able to produce diverse samples that match the conditional distribution in the data. This is difficult to evaluate precisely: realism is not accurately reflected with simple metrics of reconstruction accuracy, and the true conditional distribution in the data is unknown, since real-world datasets only have a single future for each initial sequence. Below, we discuss the metrics that we use to evaluate realism, diversity, and accuracy. No single metric alone provides a clear answer as to which model is better, but considering multiple metrics can provide us with a more complete understanding of the performance and trade-offs of each approach.
|
| 110 |
+
|
| 111 |
+
# 4.1 EVALUATION METRICS
|
| 112 |
+
|
| 113 |
+
Realism: comparisons to real videos using human judges. The realism of the predicted videos is evaluated based on a real vs. fake two-alternative forced choice (2AFC) test. Human judges on Amazon Mechanical Turk (AMT) are presented with a pair of videos—one generated and one real—and asked to identify the generated, or “fake” video. We use the implementation from (Zhang et al., 2016), modified for videos. Each video is 10 frames long and shown over 2.5 seconds. For each method, we gather 1000 judgments from 25 human judges. Each human evaluator is provided with 10 training trials followed by 40 test trials. A method that produces perfectly realistic videos would achieve a fooling rate of $5 \dot { 0 } \%$ .
|
| 114 |
+
|
| 115 |
+
Diversity: distance between samples. Realism is not the only factor in determining the performance of a video prediction model: aside from generating predictions that look physically plausible and realistic, a successful model must also adequately cover the range of possible futures in an uncertain environment. We compute diversity as the average distance between randomly sampled video predictions, similar to Zhu et al. (2017). Distance is measured in the VGG feature space (pretrained on ImageNet classification), averaged across five layers, which has been shown to correlate well with human perception (Dosovitskiy & Brox, 2016; Johnson et al., 2016; Zhang et al., 2018).
|
| 116 |
+
|
| 117 |
+
Accuracy: similarity of the best sample. One weakness of the above metric is that the samples may be diverse but still not cover the feasible output space. Though we do not have the true output distribution, we can still leverage the single ground truth instance. This can be done by sampling the model a finite number of times, and evaluating the similarity between the best sample and the ground truth. This has been explored in prior work on stochastic video prediction (Babaeizadeh et al., 2018; Denton & Fergus, 2018), using PSNR or SSIM as the evaluation metric. In addition to these, we use cosine similarity in the pretrained VGG feature space.
|
| 118 |
+
|
| 119 |
+
# 4.2 DATASETS
|
| 120 |
+
|
| 121 |
+
We evaluate on two real-world datasets: the BAIR action-free robot pushing dataset (Ebert et al., 2017) and the KTH human actions dataset (Schuldt et al., 2004). See Appendix B.2 for additional results on the action-conditioned version of the robot pushing dataset.
|
| 122 |
+
|
| 123 |
+
BAIR action-free. This dataset consists of a randomly moving robotic arm that pushes objects on a table. This dataset is particularly challenging since (a) it contains large amounts of stochasticity due to random arm motion, and (b) it is a real-world application, with a diverse set of objects and large cluttered scene (rather than a single frame-centered object with a neutral background). The frame resolution is $6 4 \times 6 4$ . We condition on 2 frames and train to predict the next 10 frames. We predict 10 future frames for the 2AFC experiments and 28 future frames for the other experiments.
|
| 124 |
+
|
| 125 |
+
KTH. This dataset consists of a human subject doing one of six activities: walking, jogging, running, boxing, hand waving, and hand clapping. For the first three activities, the human enters and leaves the frame multiple times, leaving the frame empty with a mostly static background for multiple frames at a time. The sequences are particularly stochastic when the initial frames are all empty since the human can enter the frame at any point in the future. As a preprocessing step, we center-crop each frame to a $1 2 0 \times 1 2 0$ square and then resize to a spatial resolution of $6 4 \times 6 4$ . We condition on the first 10 frames and train to predict the next 10 frames. We predict 10 future frames for the 2AFC experiments and 30 future frames for the other experiments. For each sequence, subclips of the desired length are randomly sampled at training and test time.
|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
Figure 3: Qualitative Results (BAIR action-free dataset). Unless labeled otherwise, we show the closest generated sample to ground truth using VGG cosine similarity. SV2P immediately produces blurry results. Our GAN and VAE-based variants, as well as SVG-LP produce sharper results. However, SVG-LP still blurs out the jar on the right side of the image when it is touched by the robot, while our GAN-based models keep the jar sharp. We show three results for our SAVP model: using the closest, furthest, and random samples. There is large variation between the three samples in the arm motion, and even the furthest sample from the ground truth looks realistic. (bottom) We show a failure case where the arm disappears.
|
| 129 |
+
|
| 130 |
+
# 4.3 METHODS: ABLATIONS AND COMPARISONS
|
| 131 |
+
|
| 132 |
+
We compare the following variants of our method, in our effort to evaluate the effect of each loss term. Videos, code, and models are available at our website1.
|
| 133 |
+
|
| 134 |
+
Ours, SAVP. Our stochastic adversarial video prediction model, with the VAE and GAN objectives.
|
| 135 |
+
|
| 136 |
+
Ours, GAN-only. An ablation of our model with only a conditional GAN, without the variational autoencoder. This model still takes a noise sample as input, but the noise is sampled from the prior during training. This model is broadly representative of prior stochastic GAN-based methods.
|
| 137 |
+
|
| 138 |
+
Ours, VAE-only. An ablation of our model with only a conditional VAE, with the reconstruction $\mathcal { L } _ { 1 }$ loss but without the adversarial loss. This model is broadly representative of prior stochastic VAE-based methods.
|
| 139 |
+
|
| 140 |
+
Ours, deterministic. A deterministic ablation of our model with the reconstruction $\mathcal { L } _ { 1 }$ loss but without the VAE nor the GAN objectives. The model uses the same generator architecture but without the latent variables.
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
Figure 4: Qualitative Results (KTH dataset). We show qualitative comparisons to ablations of our model. Models are conditioned on 10 frames and trained to predict 10 future frames (vertical dashed line). For stochastic models, we show the closest generated sample to ground truth using VGG cosine similarity. We hypothesize that this dataset has much less stochasticity; even our deterministic model produces reasonable predictions. (top) Both the deterministic and VAE models generate images that are slightly blurry, but that do not degrade over time. The GAN-based methods produce sharper predictions. (middle) Our VAE model generates images where small limbs disappear further into the future, whereas our SAVP method preserves them. (bottom) All conditioning frames are empty except for a shadow on the left. All our variants are able to use this cue to predict that a person is coming from the left, although our SAVP model generates the most realistic sequence.
|
| 144 |
+
|
| 145 |
+
We also compare to prior stochastic VAE-based methods Stochastic Variational Video Prediction (SV2P) (Babaeizadeh et al., 2018) and Stochastic Video Generation (SVG) (Denton & Fergus, 2018), both of which use the reconstruction $\mathcal { L } _ { 2 }$ loss and no adversarial loss.
|
| 146 |
+
|
| 147 |
+
# 4.4 EXPERIMENTAL RESULTS
|
| 148 |
+
|
| 149 |
+
We show qualitative results on the BAIR and KTH datasets in Fig. 3 and Fig. 4, respectively. For the quantitative results, we evaluate the realism, diversity, and accuracy of the predicted videos.
|
| 150 |
+
|
| 151 |
+
Does our method produce realistic results? In Fig. 5, variants of our method are compared to prior work. On the BAIR action-free dataset, our GAN variant achieves the highest fooling rate, whereas our proposed SAVP model, a VAE-GAN-based method, achieves a fooling rate that is roughly halfway between the GAN and VAE models alone. The SV2P method (Babaeizadeh et al., 2018) does not achieve realistic results. The VAE-based SVG-LP method (Denton & Fergus, 2018) achieves high realism, similar to our VAE variant, but substantially below our GAN-based variants. On the KTH dataset, our SAVP model achieves the highest realism score, substantially above our GAN variant. Among the VAE-based methods without adversarial losses, our VAE-only model outperforms SV2P and SVG-FP (Denton & Fergus, 2018) in terms of realism.
|
| 152 |
+
|
| 153 |
+
Does our method generate diverse results? We measure diversity by taking the distance between random samples. Diversity results are also shown in Fig. 5. For a qualitative visualization of diversity, see Appendix B.4. While the GAN-only approach achieves realistic results, it shows lower diversity than the VAE-based methods. This is an example of the commonly known phenomenon of mode-collapse, where multiple latent codes produce the same or similar images on the output (Goodfellow, 2016). Intuitively, the VAE-based methods explicitly encourage the latent code to be more expressive by using an encoder from the output space into the latent space during training. This is verified in our experiments, as the VAE-based variants, including our SAVP model, achieve higher diversity than our GAN-only models on both datasets. On the KTH dataset, our VAE variant and VAE-based SVG-FP method (Denton & Fergus, 2018) both achieve significantly higher diversity than all the other methods. Although the VAE-based SV2P methods (Babaeizadeh et al., 2018) mode-collapse on the KTH dataset, we note that they did not evaluate on this dataset, and as such, their method could benefit from different hyperparameters that are better suited for this dataset.
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
Figure 5: Realism vs Diversity. We measure realism using a real vs fake Amazon Mechanical Turk (AMT) test, and diversity using average VGG cosine distance. Higher is better on both metrics. Our VAE variant achieves higher realism and diversity than the SV2P (Babaeizadeh et al., 2018) and SVG (Denton & Fergus, 2018) methods based on VAEs. Our GAN variant achieves higher realism than the pure VAE methods, at the expense of significantly lower diversity. Our SAVP model, based on VAE-GANs, improves along the realism axis compared to a pure VAE method, and improves along the diversity axis compared to a pure GAN method. Although the SV2P methods mode-collapse on the KTH dataset, we note that they did not evaluate on this dataset, and their method could benefit from hyperparameters that are better suited for this dataset.
|
| 157 |
+
|
| 158 |
+
Does our method generate accurate results? Following recent work on VAE-based video prediction (Babaeizadeh et al., 2018; Denton & Fergus, 2018), we evaluate on full-reference metrics by sampling multiple predictions from the model. We draw 100 samples for each video, find the “best” sample by computing similarity to the ground truth video, and show the average similarity across the test set as a function of time. The results on the BAIR and KTH datasets are shown in Fig. 14 and Fig. 15, respectively. We test generalization ability by running the model for more time steps than it was trained for. Even though the model is only trained to predict 10 future frames, we observe graceful degradation over time.
|
| 159 |
+
|
| 160 |
+
While PSNR and SSIM (Wang et al., 2004) are commonly used for video prediction, these metrics are not necessarily indicative of prediction quality. In video prediction, structural ambiguities and geometric deformations are a dominant factor, and SSIM is not an appropriate metric in such situations (Sampat et al., 2009; Zhang et al., 2018). This is particularly noticeable with the SV2P method, which achieves high PSNR and SSIM scores, but produces blurry and unrealistic images. Furthermore, we additionally trained our VAE and deterministic variants using the standard MSE loss $\mathcal { L } _ { 2 }$ to understand the relationship between the form of the reconstruction loss and the metrics. The general trend is that models trained with $\mathcal { L } _ { 2 }$ , which favors blurry predictions, are better on PSNR and SSIM, but models trained with $\mathcal { L } _ { 1 }$ are better on VGG cosine similarity. See Appendix B.1 for quantitative results comparing models trained with $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ . In addition, we expect for our GAN-based variants to underperform on PSNR and SSIM since GANs prioritize matching joint distributions of pixels over per-pixel reconstruction accuracy.
|
| 161 |
+
|
| 162 |
+
To partially overcome the limitations of these metrics, we also evaluate using distances in a deep feature space (Dosovitskiy & Brox, 2016; Johnson et al., 2016), which have been shown to correspond better with human perceptual judgments (Zhang et al., 2018). We use cosine similarity between VGG features averaged across five layers. Otherwise, a model trained for it would unfairly and artificially achieve better similarities by exploiting potential flaws on that metric. Our VAE variant, along with SVG (Denton & Fergus, 2018), performs best on this metric. Although our SAVP model improves on diversity and realism, it also performs worse in accuracy compared to pure VAE models (both our own ablation and SVG). This is to be expected, since accuracy and realism are at odds with each other. This tradeoff has recently been proved and it holds even for similarity distances based on VGG features (Blau & Michaeli; Blau et al., 2018). Among the VAE-based methods, SV2P (Babaeizadeh et al., 2018) achieves the lowest VGG similarity.
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 6: Similarity of the best sample (BAIR action-free dataset). We show the similarity (higher is better) between the best sample (of 100) as a function of prediction time step across different methods and evaluation metrics. (top) Although SV2P produces blurry and unrealistic images, it achieves the highest PSNR. Both SAVP and SVG-LP outperform SV2P on VGG similarity. We expect our GAN-based variants to underperform on PSNR and SSIM since GANs prioritize matching joint distributions of pixels over per-pixel reconstruction accuracy. (bottom) We compare to ablated versions of our model. Our VAE variant achieves higher scores than our SAVP model, which in turn achieves significantly higher VGG similarities compared to our GAN-only model. Note that the models were only trained to predict 10 future frames (indicated by the vertical line), but is being tested on generalization to longer sequences.
|
| 166 |
+
|
| 167 |
+
On stochastic environments, such as in the BAIR action-free dataset, there is correlation between diversity and accuracy of the best sample: a model with diverse predictions is more likely to sample a video that is close to the ground truth. This relation can be seen in Fig. 5 and Fig. 14 for the robot dataset, e.g. our SAVP model is both more diverse and achieves higher similarity than our GAN-only variant. This is not true on less stochastic environments. We hypothesize that the KTH dataset is not as stochastic when conditioning on 10 frames, as evidenced the similarities between the predictions from the deterministic and stochastic models. This would explain why our GAN variant and SV2P achieve modest similarities despite achieving low diversity on the KTH dataset.
|
| 168 |
+
|
| 169 |
+
Does combining the VAE and GAN produce better predictions? The GAN alone achieves high realism but low diversity. The VAE alone achieves lower realism but increased diversity. Adding the GAN to the VAE model increases the realism without sacrificing diversity, at only a small or no cost in realism on stochastic datasets. This is consistent with Zhu et al. (2017), which showed that combining GAN and VAE-based models provides benefits in the case of image generation. To our knowledge, our method is the first to extend this class of models to the video prediction setting, and the first to illustrate that this leads to improved realism with a degree of diversity comparable to the best VAE models in stochastic environments. The results show that this combination of losses is the best choice for realistic coverage of diverse stochastic futures.
|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
Figure 7: Similarity of the best sample (KTH dataset). We evaluate the similarity between the best predicted sample (out of a 100 samples) and the ground truth video. (top) As in the case of the robot dataset, SV2P achieves high PSNR values, even though it produces blurry and unrealistic images. Although all three methods achieve comparable VGG similarities for the first 10 future frames (which is what the models were trained for, and indicated by the vertical line), our SAVP model predicts videos that are substantially more realistic, as shown in our subjective human evaluation, thus achieving a desirable balance between realism and accuracy. (bottom) We compare to ablated versions of our model. Our VAE-only method outperforms all our other variants on the three metrics. In addition, our deterministic model is not that far behind in terms of similarity, leading us to believe that the KTH dataset is not as stochastic when conditioning on the past 10 frames.
|
| 173 |
+
|
| 174 |
+
# 5 CONCLUSION
|
| 175 |
+
|
| 176 |
+
We develop a video prediction model that combines latent variables trained via a variational lower bound with an adversarial loss to produce a high degree of visual and physical realism. VAE-style training enables our method to make diverse stochastic predictions, and our experiments show that the adversarial loss is effective at producing predictions that are more visually realistic according to human raters. Evaluation of video prediction models is a major challenge, and we evaluate our method, as well as ablated variants that consist of only the VAE or only the GAN loss, in terms of a variety of quantitative and qualitative measures, including human ratings, diversity, and accuracy of the predicted samples. Our results demonstrate that our approach produces more realistic predictions than prior methods, while preserving the sample diversity of VAE-based methods.
|
| 177 |
+
|
| 178 |
+
# REFERENCES
|
| 179 |
+
|
| 180 |
+
Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H. Campbell, and Sergey Levine. Stochastic variational video prediction. In International Conference on Learning Representations (ICLR), 2018.
|
| 181 |
+
|
| 182 |
+
Jianmin Bao, Dong Chen, Fang Wen, Houqiang Li, and Gang Hua. CVAE-GAN: fine-grained image generation through asymmetric training. In International Conference on Computer Vision (ICCV), 2017.
|
| 183 |
+
|
| 184 |
+
Prateep Bhattacharjee and Sukhendu Das. Temporal coherency based criteria for predicting video frames using deep multi-stage generative adversarial networks. In Neural Information Processing Systems (NIPS), 2017.
|
| 185 |
+
|
| 186 |
+
Yochai Blau and Tomer Michaeli. The perception-distortion tradeoff.
|
| 187 |
+
|
| 188 |
+
Yochai Blau, Roey Mechrez, Radu Timofte, Tomer Michaeli, and Lihi Zelnik-Manor. 2018 pirm challenge on perceptual image super-resolution. arXiv preprint arXiv:1809.07517, 2018.
|
| 189 |
+
|
| 190 |
+
Samuel Bowman, Luke Vilnis, Oriol Vinyals, Andrew M. Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. In Conference on Computational Natural Language Learning (CoNLL), 2016.
|
| 191 |
+
|
| 192 |
+
Arunkumar Byravan and Dieter Fox. SE3-nets: Learning rigid body motion using deep neural networks. arXiv preprint arXiv:1606.02378, 2016.
|
| 193 |
+
|
| 194 |
+
Baoyang Chen, Wenmin Wang, Jinzhuo Wang, Xiongtao Chen, and Weimian Li. Video imagination from a single image with transformation generation. arXiv preprint arXiv:1706.04124, 2017.
|
| 195 |
+
|
| 196 |
+
Silvia Chiappa, Sebastien Racani ´ ere, Daan Wierstra, and Shakir Mohamed. Recurrent environment \` simulators. In International Conference on Learning Representations (ICLR), 2017.
|
| 197 |
+
|
| 198 |
+
Bert De Brabandere, Xu Jia, Tinne Tuytelaars, and Luc Van Gool. Dynamic filter networks. In Neural Information Processing Systems (NIPS), 2016.
|
| 199 |
+
|
| 200 |
+
E. Denton and R. Fergus. Stochastic video generation with a learned prior. In International Conference on Machine Learning (ICML), 2018.
|
| 201 |
+
|
| 202 |
+
Alexey Dosovitskiy and Thomas Brox. Generating images with perceptual similarity metrics based on deep networks. In Neural Information Processing Systems (NIPS), 2016.
|
| 203 |
+
|
| 204 |
+
Frederik Ebert, Chelsea Finn, Alex Lee, and Sergey Levine. Self-supervised visual planning with temporal skip connections. In Conference on Robot Learning (CoRL), 2017.
|
| 205 |
+
|
| 206 |
+
Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In Neural Information Processing Systems (NIPS), 2016.
|
| 207 |
+
|
| 208 |
+
Ian Goodfellow. NIPS 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:1701.00160, 2016.
|
| 209 |
+
|
| 210 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Neural Information Processing Systems (NIPS), 2014.
|
| 211 |
+
|
| 212 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997.
|
| 213 |
+
|
| 214 |
+
Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Conference on Vision and Pattern Recognition (CVPR), 2017.
|
| 215 |
+
|
| 216 |
+
Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European Conference on Computer Vision (ECCV), 2016.
|
| 217 |
+
|
| 218 |
+
Nal Kalchbrenner, Aaron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex ¨ Graves, and Koray Kavukcuoglu. Video pixel networks. In International Conference on Machine Learning (ICML), 2017.
|
| 219 |
+
|
| 220 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
|
| 221 |
+
|
| 222 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In International Conference on Learning Representations (ICLR), 2014.
|
| 223 |
+
|
| 224 |
+
Anders Boesen Lindbo Larsen, Søren Kaae Sønderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. In International Conference on Machine Learning (ICML), 2016.
|
| 225 |
+
|
| 226 |
+
Xiaodan Liang, Lisa Lee, Wei Dai, and Eric P. Xing. Dual motion GAN for future-flow embedded video prediction. In International Conference on Computer Vision (ICCV), 2017.
|
| 227 |
+
|
| 228 |
+
Ziwei Liu, Raymond Yeh, Xiaoou Tang, Yiming Liu, and Aseem Agarwala. Video frame synthesis using deep voxel flow. In International Conference on Computer Vision (ICCV), 2017.
|
| 229 |
+
|
| 230 |
+
C. Lu, M. Hirsch, and B. Scholkopf. Flexible spatio-temporal networks for video prediction. In ¨ Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 231 |
+
|
| 232 |
+
Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. In International Conference on Learning Representations (ICLR), 2016.
|
| 233 |
+
|
| 234 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations (ICLR), 2018.
|
| 235 |
+
|
| 236 |
+
Simon Niklaus, Long Mai, and Feng Liu. Video frame interpolation via adaptive separable convolution. In International Conference on Computer Vision (ICCV), 2017.
|
| 237 |
+
|
| 238 |
+
Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. Distill, 2016. doi: 10.23915/distill.00003. URL http://distill.pub/2016/ deconv-checkerboard.
|
| 239 |
+
|
| 240 |
+
Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In Neural Information Processing Systems (NIPS), 2015.
|
| 241 |
+
|
| 242 |
+
Deepak Pathak, Philipp Krahenb ¨ uhl, Jeff Donahue, Trevor Darrell, and Alexei Efros. Context en- ¨ coders: Feature learning by inpainting. In Conference on Vision and Pattern Recognition (CVPR), 2016.
|
| 243 |
+
|
| 244 |
+
MarcAurelio Ranzato, Arthur Szlam, Joan Bruna, Michael Mathieu, Ronan Collobert, and Sumit Chopra. Video (language) modeling: a baseline for generative models of natural videos. arXiv preprint arXiv:1412.6604, 2014.
|
| 245 |
+
|
| 246 |
+
Scott E. Reed, Aaron van den Oord, Nal Kalchbrenner, Sergio Gomez Colmenarejo, Ziyu Wang, ¨ Yutian Chen, Dan Belov, and Nando de Freitas. Parallel multiscale autoregressive density estimation. In International Conference on Machine Learning (ICML), 2017.
|
| 247 |
+
|
| 248 |
+
Masaki Saito, Eiichi Matsumoto, and Shunta Saito. Temporal generative adversarial nets with singular value clipping. In International Conference on Computer Vision (ICCV), 2017.
|
| 249 |
+
|
| 250 |
+
Mehul P Sampat, Zhou Wang, Shalini Gupta, Alan Conrad Bovik, and Mia K Markey. Complex wavelet structural similarity: A new image similarity index. Transactions on Image Processing (TIP), 2009.
|
| 251 |
+
|
| 252 |
+
Christian Schuldt, Ivan Laptev, and Barbara Caputo. Recognizing human actions: a local SVM approach. In International Conference on Pattern Recognition (ICPR), 2004.
|
| 253 |
+
|
| 254 |
+
Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. MoCoGAN: Decomposing motion and content for video generation. In Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 255 |
+
|
| 256 |
+
Dmitry Ulyanov, Andrea Vedaldi, and Victor S. Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016.
|
| 257 |
+
|
| 258 |
+
Joost van Amersfoort, Anitha Kannan, Marc’Aurelio Ranzato, Arthur Szlam, Du Tran, and Soumith Chintala. Transformation-based models of video sequences. arXiv preprint arXiv:1701.08435, 2017.
|
| 259 |
+
|
| 260 |
+
Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In International Conference on Machine Learning (ICML), 2016.
|
| 261 |
+
|
| 262 |
+
Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. In International Conference on Learning Representations (ICLR), 2017.
|
| 263 |
+
|
| 264 |
+
Carl Vondrick and Antonio Torralba. Generating the future with adversarial transformers. In Conference on Vision and Pattern Recognition (CVPR), 2017.
|
| 265 |
+
|
| 266 |
+
Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In Neural Information Processing Systems (NIPS), 2016.
|
| 267 |
+
|
| 268 |
+
Jacob Walker, Abhinav Gupta, and Martial Hebert. Dense optical flow prediction from a static image. In International Conference on Computer Vision (ICCV), 2015.
|
| 269 |
+
|
| 270 |
+
Jacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In European Conference on Computer Vision (ECCV), 2016.
|
| 271 |
+
|
| 272 |
+
Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In International Conference on Computer Vision (ICCV), 2017.
|
| 273 |
+
|
| 274 |
+
Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. arXiv preprint arXiv:1808.06601, 2018.
|
| 275 |
+
|
| 276 |
+
Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. Transactions on Image Processing (TIP), 2004.
|
| 277 |
+
|
| 278 |
+
SHI Xingjian, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. In Neural Information Processing Systems (NIPS), 2015.
|
| 279 |
+
|
| 280 |
+
Tianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In Neural Information Processing Systems (NIPS), 2016.
|
| 281 |
+
|
| 282 |
+
Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision (ECCV), 2016.
|
| 283 |
+
|
| 284 |
+
Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep networks as a perceptual metric. In Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 285 |
+
|
| 286 |
+
Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 287 |
+
|
| 288 |
+
Yipin Zhou and Tamara L Berg. Learning temporal transformations from time-lapse videos. In European Conference on Computer Vision (ECCV), 2016.
|
| 289 |
+
|
| 290 |
+
Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darrell, Alexei A Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. In Neural Information Processing Systems (NIPS), 2017.
|
| 291 |
+
|
| 292 |
+
# A NETWORKS AND TRAINING DETAILS
|
| 293 |
+
|
| 294 |
+
# A.1 NETWORK DETAILS
|
| 295 |
+
|
| 296 |
+
# A.1.1 GENERATOR.
|
| 297 |
+
|
| 298 |
+
Our generator network, shown in Fig. 8, is inspired by the convolutional dynamic neural advection (CDNA) model proposed by Finn et al. (2016). The video prediction setting is a sequential prediction problem, so we use a convolutional LSTM (Hochreiter & Schmidhuber, 1997; Xingjian et al., 2015) to predict future frames. We initialize the prediction on the initial sequence of ground truth frames (2 or 10 frames for the BAIR and KTH datasets, respectively), and predict 10 future frames. The model predicts a sequence of future frames by repeatedly making next-frame predictions and feeding those predictions back to itself. For each one-step prediction, the predicted frame is given by a compositing layer, which composes intermediate frames with predicted compositing masks. The intermediate frames include the previous frame, transformed versions of the previous frame, and a frame with pixels directly synthesized by the network. The transformed versions of the frame are produced by convolving in the input image with predicted convolutional kernels, allowing for different shifted versions of the input. In more recent work, the first frame of the sequence is also given as one of the intermediate frames (Ebert et al., 2017).
|
| 299 |
+
|
| 300 |
+
To enable stochastic sampling, the generator is also conditioned on time-varying latent codes, which are sampled at training and test time. Each latent code $\mathbf { z } _ { t }$ is an 8-dimensional vector. At each prediction step, the latent code is passed through a fully-connected LSTM to facilitate correlations in time of the latent variables. The encoded latent code is then passed to all the convolutional layers of the main network, by concatenating it along the channel dimension to the inputs of these layers. Since they are vectors with no spatial dimensions, they are replicated spatially to match the spatial dimensions of the inputs.
|
| 301 |
+
|
| 302 |
+
We made a variety of architectural improvements to the original CDNA (Finn et al., 2016) and SNA (Ebert et al., 2017) models, which overall produced better results on the per-pixel loss and similarity metrics. See Fig. 11 for a quantitative comparison of our deterministic variant (without
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
Figure 8: Architecture of our generator network. Our network uses a convolutional LSTM (Hochreiter & Schmidhuber, 1997; Xingjian et al., 2015) with skip-connection between internal layers. As proposed by Finn et al. (2016), the network predicts (1) a set of convolution kernels to produce a set of transformed input images (2) synthesized pixels at the input resolution and (3) a compositing mask. Using the mask, the network can choose how to composite together the set of warped pixels, the first frame, previous frame, and synthesized pixels. One of the internal feature maps is given to a fully-connected layer to compute the kernels that specify pixel flow. The output of the main network is passed to two separate heads, each with two convolutional layers, to predict the synthesized frame and the composite mask. These two outputs use sigmoid and softmax non-linearities, respectively, to ensure proper normalization. We enable stochastic sampling of the model by conditioning the generator network on latent codes. These are first passed through a fully-connected LSTM, and then given to all the convolutional layers of the the convolutional LSTM.
|
| 306 |
+
|
| 307 |
+
VAE or GAN losses) to the SNA model on the BAIR action-conditioned dataset. Each convolutional layer is followed by instance normalization (Ulyanov et al., 2016) and ReLU activations. We also use instance normalization on the LSTM pre-activations (i.e., the input, forget, and output gates, as well as the transformed and next cell of the LSTM). In addition, we modify the spatial downsampling and upsampling mechanisms. Standard subsampling and upsampling between convolutions is known to produce artifacts for dense image generation tasks (Odena et al., 2016; Zhao et al., 2017; Niklaus et al., 2017). In the encoding layers, we reduce the spatial resolution of the feature maps by average pooling, and in the decoding layers, we increase the resolution by using bilinear interpolation. All convolutions in the generator use a stride of 1. In the case of the action-conditioned dataset, actions are concatenated to the inputs of all the convolutional layers of the main network, as opposed to only the bottleneck.
|
| 308 |
+
|
| 309 |
+
# A.1.2 ENCODER.
|
| 310 |
+
|
| 311 |
+
The encoder is a standard convolutional network that, at every time step, encodes a pair of images $\mathbf { x } _ { t }$ and $\mathbf { x } _ { t + 1 }$ into $\mu _ { \mathbf { z } _ { t } }$ and $\log \sigma _ { \mathbf { z } _ { t } }$ . The latent variable $\mathbf { z } _ { t }$ is sampled at every time step and the same encoder network with shared weights is used at every step. The encoder architecture consists of three convolutional layers, followed by average pooling of all the spatial dimensions. Two separate fullyconnected layers are then used to estimate $\mu _ { \mathbf { z } _ { t } }$ and $\log \sigma _ { \mathbf { z } _ { t } }$ , respectively. The convolutional layers use instance normalization, leaky ReLU non-linearities, and stride 2. This encoder architecture is the same one used in BicyleGAN (Zhu et al., 2017) except that the inputs are pair of images, concatenated along the channel dimension.
|
| 312 |
+
|
| 313 |
+
# A.1.3 DISCRIMINATOR.
|
| 314 |
+
|
| 315 |
+
The discriminator is a 3D convolutional neural network that takes in all the images of the video at once. We use spectral normalization and the SNGAN discriminator architecture (Miyato et al., 2018), except that we “inflate” the convolution filters from 2D to 3D. The two video discriminators, $D$ and $D _ { \mathrm { v A E } }$ , share the same architecture, but not the weights, as done in BicycleGAN (Zhu et al., 2017).
|
| 316 |
+
|
| 317 |
+
# A.2 TRAINING DETAILS
|
| 318 |
+
|
| 319 |
+
Our generator network uses scheduled sampling during training as in Finn et al. (2016), such that at the beginning the model is trained for one-step predictions, while by the end of training the model is fully autoregressive. We trained all models with Adam (Kingma & Ba, 2015) for 300000 iterations, linearly decaying the learning rate to 0 for the last 100000 iterations. The same training schedule was used for all the models, except for SVG, which was trained by its author. Our GAN-based variants used an optimizer with $\beta _ { 1 } = 0 . 5$ , $\beta _ { 2 } = 0 . 9 9 9$ , learning rate of 0.0002, and a batch size of 16. Our deterministic and VAE models (including SNA and SV2P from prior work) used an optimizer with $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ , learning rate of 0.001, and a batch size of 32.
|
| 320 |
+
|
| 321 |
+
We used $\lambda _ { 1 } = 1 0 0$ for our GAN-based variants, and $\lambda _ { 1 } = 1$ for all the other models. For our VAEbased variants, we linearly anneal the weight on the KL divergence term from 0 to the final value $\lambda _ { \mathrm { K L } }$ during training, as proposed by Bowman et al. (2016), from iterations 50000 to 100000. We used a relative weighting of $\lambda _ { \mathrm { K L } } / \lambda _ { 1 } = 0 . 0 0 1$ for the BAIR robot pushing datasets, and $\lambda _ { \mathrm { K L } } / \lambda _ { 1 } = 0 . 0 0 0 0 1$ for the KTH dataset. This hyperparameter was empirically chosen by computing similarity metrics on the validation set.
|
| 322 |
+
|
| 323 |
+
# B ADDITIONAL EXPERIMENTS
|
| 324 |
+
|
| 325 |
+
# B.1 COMPARISON OF PIXEL-WISE $\mathcal { L } _ { 1 }$ AND $\mathcal { L } _ { 2 }$ LOSSES
|
| 326 |
+
|
| 327 |
+
We train our deterministic and VAE variants with the $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ losses to compare the effects of these reconstruction losses on the full-reference metrics used in this work. The pixel-wise $\mathcal { L } _ { 1 }$ loss assumes that pixels are generated according to a fully factorized Laplacian distribution, whereas the $\mathcal { L } _ { 2 }$ loss corresponds to a fully factorized Gaussian distribution. See Fig. 9 and Fig. 11 for quantitative results on the action-free and action-conditioned BAIR datasets, respectively.
|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
Figure 9: Similarity of the best sample (BAIR action-conditioned dataset). We show the similarity between the predicted video and the ground truth, using the same evaluation as in Fig. 14. We compare our deterministic and VAE variants when trained with $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ losses, and observe that they have a significant impact on the quality of our predictions. The models trained with $\mathcal { L } _ { 1 }$ produce videos that are qualitatively better and achieve higher VGG similarity than the equivalent models trained with $\mathcal { L } _ { 2 }$ .
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
Figure 10: Realism vs Diversity (BAIR action-conditioned dataset). The SV2P method (Babaeizadeh et al., 2018) from prior work produces images with low realism, whereas our GAN, VAE, and SAVP models fool the human judges at a rate of around $3 5 \mathrm { - } 4 0 \%$ . Our VAE-based models also produce videos with higher diversity, though lower diversity than other datasets, as this task involves much less stochasticity. The trend is the same as in the other datasets. Our SAVP model improves the realism of the predictions compared to our VAE-only model, and improves the diversity compared to our GAN-only model.
|
| 334 |
+
|
| 335 |
+
The general trend is that models trained with the $\mathcal { L } _ { 2 }$ loss tend to generate blurry predictions but achieve higher PSNR scores than equivalent models trained with the $\mathcal { L } _ { 1 }$ loss. This is because PSNR and $\mathcal { L } _ { 2 }$ are closely related, the former being a logarithmic function of the latter. The opposite is true for the VGG cosine similarity metric, which has been shown to correspond better with human perceptual judgments (Zhang et al., 2018). Models trained with $\mathcal { L } _ { 1 }$ significantly outperforms equivalent models trained with $\mathcal { L } _ { 2 }$ . On the SSIM metric, models trained with $\mathcal { L } _ { 1 }$ achieve roughly the same or better similarities than models trained with $\mathcal { L } _ { 2 }$ . Although both losses are pixel-wise losses, the choice between $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ have a significant impact on the quality of our predicted videos.
|
| 336 |
+
|
| 337 |
+
# B.2 RESULTS ON ACTION-CONDITIONED BAIR ROBOT PUSHING DATASET
|
| 338 |
+
|
| 339 |
+
We use the same dataset as the one in the main paper, except that we use the robot actions. Each action is a 4-dimensional vector corresponding to Cartesian translations and a value indicating if the gripper has been closed or opened. As in the action-free dataset, we condition on the first 2 frames of the sequence and train to predict the next 10 frames. In this dataset, the video prediction model is now also conditioned on a sequence of actions ${ \bf a } _ { 0 : T - 1 }$ , in addition to the initial frames. The generator network is modified to take an action $\mathbf { a } _ { t }$ at each time step, by concatenating the action to the inputs of all the convolutional layers of the main network, similar to how the latent code $\mathbf { z } _ { t }$ is passed in (but without the additional fully-connected LSTM).
|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
Figure 11: Similarity of the best sample (BAIR action-conditioned dataset). We show the similarity between the predicted video and the ground truth, using the same evaluation as in Fig. 14, except that we condition on robot actions. (top) We compare to prior SV2P (Babaeizadeh et al., 2018) and ours ablations. Our VAE and deterministic models both outperform SV2P, even though it is VAE-based. However, notice that the gap in performance between our VAE and deterministic models is small, as the dataset is less stochastic when conditioning on actions. Our SAVP model achieves much lower scores on all three metrics. We hypothesize that our SAVP model, as well as SV2P, is underutilizing the provided actions and thus achieving more stochasticity at the expense of accuracy. (bottom) We compare deterministic models—SNA (Ebert et al., 2017) and ours— and our VAE model when trained with $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ losses. As in the action-free case, we observe that the choice of the pixel-wise reconstruction loss significantly affects prediction accuracy. Models trained with $\mathcal { L } _ { 1 }$ are substantially better in SSIM and VGG cosine similarity compared to equivalent models trained with $\mathcal { L } _ { 2 }$ . Surprisingly, the VAE model trained with $\mathcal { L } _ { 1 }$ outperforms the other models even on the PSNR metric. We hypothesize that VAE models trained with $\mathcal { L } _ { 1 }$ are better equipped to separate multiple modes of futures, whereas the ones trained with $\mathcal { L } _ { 2 }$ might still average some of the modes. In fact, we evidenced this in preliminary experiments on the toy shapes dataset used by Babaeizadeh et al. (2018). Among the deterministic models, ours improves upon SNA (Ebert et al., 2017), which is currently the best deterministic action-conditioned model on this dataset.
|
| 343 |
+
|
| 344 |
+
We show the realism and diversity results in Fig. 10 and the accuracy results in Fig. 11. In addition to the methods compared in the action-free dataset, we also compare to SNA (Ebert et al., 2017), an action-conditioned deterministic video prediction model. The results indicate that our VAE model significantly outperforms prior methods on the full-reference metrics, and that our models significantly outperforms the model by Babaeizadeh et al. (2018) both in terms of diversity of predictions and realism.
|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
Figure 12: Example generations of MoCoGAN. We use the unconditional version of MoCoGAN (Tulyakov et al., 2018) to generate videos from the BAIR robot pushing dataset. We chose this model as a representative recent example of purely GAN-based unconditioned video generation. MoCoGAN produces impressive results on various applications related to human action, which are focused on a actor in the middle of the frame. However, this model struggles in the robot dataset where multiple entities are moving at a time. Note that since the patch-based discriminator has a limited receptive field of the image, the model can produce videos with two robot arms (last row) even though this is not in the dataset. We did not observe this behavior with their image-based discriminator.
|
| 348 |
+
|
| 349 |
+
# B.3 EXAMPLE GENERATIONS OF AN UNCONDITIONAL GAN
|
| 350 |
+
|
| 351 |
+
We consider the motion and content decomposed GAN (MoCoGAN) model (Tulyakov et al., 2018) as a representative unconditional GAN method from prior work, and use it to generate videos from the BAIR robot pushing dataset. We use their publicly available code and show qualitative results in Fig. 12. The results show the variant that uses patch-based discriminators, since this one achieved higher realism than the variant that uses image-based discriminators. Since this prior work demonstrates competitive results in comparison to other prior unconditional GAN methods, we chose it as the most representative recent example of purely GAN-based video generation for this comparison. MoCoGAN produces impressive results on various applications related to human action, which are focused on a single actor in the middle of the frame. However, it struggles on videos in the robot pushing domain where multiple entities are moving at a time, i.e. the robot arm and the objects it interacts with.
|
| 352 |
+
|
| 353 |
+
# B.4 QUALITATIVE VISUALIZATION OF DIVERSITY
|
| 354 |
+
|
| 355 |
+
We show a qualitative visualization of diversity in Fig. 13 by averaging multiple samples.
|
| 356 |
+
|
| 357 |
+

|
| 358 |
+
Figure 13: Qualitative visualization of diversity. We show predictions of our models, averaged over 100 samples. A model that produces diverse outputs should predict that the robot arm moves in random directions at each time step, and thus the arm should “disappear” over time in these averaged predictions. Consistent with our quantitative evaluation of diversity, we see that both our SAVP model and our VAE variant produces diverse samples, whereas the GAN-only method is prone to mode-collapse.
|
| 359 |
+
|
| 360 |
+

|
| 361 |
+
Figure 14: Similarity of the best sample (BAIR action-free dataset), updated plot. We show the similarity (higher is better) between the best sample (of 100) as a function of prediction time step across different methods and evaluation metrics. The three leftmost plots show the similarity (higher is better) between the best sample (of 100) as a function of prediction time step across different methods and evaluation metrics. Besides the standard metrics, we also use the Learned Perceptual Image Patch Similarity (LPIPS) metric (Zhang et al., 2018), which has been shown to correlate well with human perception. This distance is measured in the AlexNet feature space (pretrained on ImageNet classification) with linear weights calibrated to match human judgements. The plot on the right shows the diversity (higher is better) as a function of prediction time step, computed as the LPIPS distance between pairs of samples. Aside for the first two predicted frames, our SAVP model achieves similar LPIPS distances as the VAE models, both our VAE ablation and the SVG model from Denton & Fergus (2018). In addition, not only our SAVP method substantially improve sample diversity compared to the GAN-only model, but it also produces more diverse samples than both of the VAE models.
|
| 362 |
+
|
| 363 |
+

|
| 364 |
+
Figure 15: Similarity of the best sample and diversity (KTH dataset), updated plot. The three leftmost plots show the similarity (higher is better) between the best sample (of 100) as a function of prediction time step. The plot on the right shows the diversity (higher is better) as a function of prediction time step, computed as the LPIPS distance between pairs of samples. The top and bottom plots show results when conditioning on 10 and 2 frames, respectively. Among the VAE methods, our VAE-only model achieves substantially higher similarities and diversities than the SVG model from prior work (Denton & Fergus, 2018). The GAN-only model mode-collapses and generates samples that lack diversity. Our SAVP method, which incorporates the variational loss, improves both sample diversity and similarities, compared to the GAN-only model. Our SAVP model also achieves higher accuracy than SVG.
|
parse/train/HyEl3o05Fm/HyEl3o05Fm_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyEl3o05Fm/HyEl3o05Fm_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyEl3o05Fm/HyEl3o05Fm_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/KYPz4YsCPj/KYPz4YsCPj.md
ADDED
|
@@ -0,0 +1,537 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# INDUCTIVE REPRESENTATION LEARNING IN TEMPORAL NETWORKS VIA CAUSAL ANONYMOUS WALKS
|
| 2 |
+
|
| 3 |
+
Yanbang Wang1∗, Yen-Yu Chang2, Yunyu $\mathbf { L i u ^ { 3 } }$ , Jure Leskovec1, Pan $\mathbf { L i ^ { 1 , 3 } }$
|
| 4 |
+
|
| 5 |
+
1Department of Computer Science, 2Electrical Engineering, Stanford Univers 3Department of Computer Science, Purdue University
|
| 6 |
+
{ywangdr,jure}@cs.stanford.edu,yenyu@stanford.edu {liu3154,panli}@purdue.edu
|
| 7 |
+
|
| 8 |
+
# ABSTRACT
|
| 9 |
+
|
| 10 |
+
Temporal networks serve as abstractions of many real-world dynamic systems. These networks typically evolve according to certain laws, such as the law of triadic closure, which is universal in social networks. Inductive representation learning of temporal networks should be able to capture such laws and further be applied to systems that follow the same laws but have not been unseen during the training stage. Previous works in this area depend on either network node identities or rich edge attributes and typically fail to extract these laws. Here, we propose Causal Anonymous Walks (CAWs) to inductively represent a temporal network. CAWs are extracted by temporal random walks and work as automatic retrieval of temporal network motifs to represent network dynamics while avoiding the time-consuming selection and counting of those motifs. CAWs adopt a novel anonymization strategy that replaces node identities with the hitting counts of the nodes based on a set of sampled walks to keep the method inductive, and simultaneously establish the correlation between motifs. We further propose a neural-network model CAW-N to encode CAWs, and pair it with a CAW sampling strategy with constant memory and time cost to support online training and inference. CAW-N is evaluated to predict links over 6 real temporal networks and uniformly outperforms previous SOTA methods by averaged $15 \%$ AUC gain in the inductive setting. CAW-N also outperforms previous methods in 5 out of the 6 networks in the transductive setting.
|
| 11 |
+
|
| 12 |
+
# 1 INTRODUCTION
|
| 13 |
+
|
| 14 |
+
Temporal networks consider dynamically interacting elements as nodes, interactions as temporal links, with labels of when those interactions happen. Such temporal networks provide abstractions to study many real-world dynamic systems (Holme & Saramäki, 2012). Researchers have investigated temporal networks in recent several decades and concluded many insightful laws that essentially reflect how these real-world systems evolve over time (Kovanen et al., 2011; Benson et al., 2016; Paranjape et al., 2017; Zitnik et al., 2019). For example, the law of triadic closure in social networks, describing that two nodes with common neighbors tend to have a mutual interaction later, reflects how people establish social connections (Simmel, 1950). Later, a more elaborate law on the correlation between the interaction frequency between two individuals and the degree that they share social connections, further got demonstrated (Granovetter, 1973; Toivonen et al., 2007). Feedforward control loops that consist of a direct interaction (from node $w$ to node $u$ ) and an indirect interaction (from $w$ through another node $v$ to $u$ ), also work as a law in the modulation of gene regulatory systems (Mangan & Alon, 2003) and also as the control principles of many engineering systems (Gorochowski et al., 2018). Although research on temporal networks has achieved the above success, it can hardly be generalized to study more complicated laws: Researchers have to investigate an exponentially increasing number of patterns when incorporating more interacting elements let alone their time-evolving aspects.
|
| 15 |
+
|
| 16 |
+
Recently, representation learning, via learning vector representations of data based on neural networks, has offered unprecedented possibilities to extract, albeit implicitly, more complex structural patterns (Hamilton et al., 2017b; Battaglia et al., 2018). However, as opposed to the study on static networks, representation learning of temporal networks is far from mature. Two challenges on temporal networks have been frequently discussed. First, the entanglement of structural and temporal
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
Figure 1: Triadic closure and feed-forward loops: Causal anonymous walks (CAW) capture the laws.
|
| 20 |
+
|
| 21 |
+
Example: three 3-step walks $( t _ { x } , X$ are the default timestamp and the default node when no historical links can be found)
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+
Count number of $b$ ’s in different positions:
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 2: Causal anonymous walks (CAW): causality extraction and set-based anonymization.
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
|
| 32 |
+
patterns required an elegant model to digest the two-side information. Second, the model scalability becomes more crucial over temporal networks as new arriving links need to be processed timely while a huge link set due to the repetitive links between two nodes needs to be digested simultaneously.
|
| 33 |
+
|
| 34 |
+
In contrast to the above two challenges, another challenge, the inductive capability of the temporalnetwork representation, is often ignored. However, it is equally important if not more, as the inductive capability indicates whether the models indeed capture the dynamic laws of the systems and can be further generalized to the system that share the same laws but have not been used to train these models. These laws may only depend on structures such as the triadic closure or feed-forward control loops as aforementioned. These laws may also correlate with node attributes, such as interactions between people affected by their gender and age (Kovanen et al., 2013). But in both cases, the laws should be independent from network node identities. Although previous works tend to learn inductive models by removing node identities (Trivedi et al., 2019; Xu et al., 2020), they run into other issues to inductively represent the dynamic laws, for which we leave more detailed discussion in Sec. 2.
|
| 35 |
+
|
| 36 |
+
Here we propose Causal Anonymous Walks (CAW) for modeling temporal networks. Our idea for inductive learning is inspired by the recent investigation on temporal network motifs that correspond to connected subgraphs with links that appear within a restricted time range (Kovanen et al., 2011; Paranjape et al., 2017). Temporal network motifs essentially reflect network dynamics: Both triadic closure and feed-forward control can be viewed as temporal network motifs evolving (Fig. 1); An inductive model should predict the 3rd link in both cases when it captures the correlation of these two links as they share a common node, while the model is agnostic to the node identities of these motifs.
|
| 37 |
+
|
| 38 |
+
Our CAW model has two important properties (Fig. 2): (1) Causality extraction — a CAW starts from a link of interest and backtracks several adjacent links over time to encode the underlying causality of network dynamics. Each walk essentially gives a temporal network motif; (2) Set-based anonymization — CAWs remove the node identities over the walks to guarantee inductive learning while encoding relative node identities based on the counts that they appear at a certain position according to a set of sampled walks. Relative node identities guarantee that the structures of motifs and their correlations are still kept after removing node identities. To predict temporal links between two nodes of interest, we propose a model CAW-Network (CAW-N) that samples a few CAWs related to the two nodes of interest, encodes and aggregates these CAWs via RNNs (Rumelhart et al., 1986) and set-pooling respectively to make the prediction.
|
| 39 |
+
|
| 40 |
+
Experiments show that CAW-N is extremely effective. CAW-N does not need to enumerate the types of motifs and count their numbers that have been used as features to predict network dynamics (Lahiri & Berger-Wolf, 2007; Rahman & Al Hasan, 2016; Rossi et al., 2019; AbuOda et al., 2019; Li & Milenkovic, 2017), which significantly saves feature-engineering effort. CAW-N also keeps all fine-grained temporal information along the walks that may be removed by directly counting motifs (Ahmed et al., 2015; Paranjape et al., 2017). CAWs share a similar idea as anonymous walks (AW) (Micali & Zhu, 2016) to remove node identities. However, AWs have only been used for entire static graph embedding (Ivanov & Burnaev, 2018) and are not directedly applied to represent temporal networks: AWs cannot capture causality; AWs get anonymized based on each single walk and hence lose the correlation between network motifs. In contrast, CAWs capture all the information, temporal, structural, motif-correlation that are needed, to represent temporal networks.
|
| 41 |
+
|
| 42 |
+
We conclude our contributions in three-folds: (1) A novel approach to represent temporal network CAW-N is proposed, which leverages CAWs to encode temporal network motifs to capture network dynamics while keeping fully inductive. CAW-N is evaluated to predict links over 6 real-world temporal networks. CAW-N outperforms all SOTA methods by about $15 \%$ averaged over 6 networks in the inductive setting and also significantly beat all SOTA methods over 5 networks in the transductive setting; (2) CAW-N significantly decreases the feature-engineering effort in traditional motif selection and counting approaches and keeps fine-grained temporal information; (3) CAW-N is paired with a CAW sampling method with constant memory and time cost, which conduces to online learning.
|
| 43 |
+
|
| 44 |
+
# 2 RELATED WORK
|
| 45 |
+
|
| 46 |
+
Prior work on representation learning of temporal networks preprocesses the networks by simply aggregating the sequence of links within consecutive time windows into network snapshots, and use graph neural networks (GNN) (Scarselli et al., 2008; Kipf & Welling, 2017) and RNNs or transformer networks (Vaswani et al., 2017) to encode structural patterns and temporal patterns respectively (Pareja et al., 2020; Manessi et al., 2020; Goyal et al., 2020; Hajiramezanali et al., 2019; Sankar et al., 2020). The main drawback of these approaches is that they need to predetermine a time granularity for link aggregation, which is hard to learn structural dynamics in different time scales. Therefore, approaches that work on link streams directly have been recently proposed (Trivedi et al., 2017; 2019; Kumar et al., 2019; Xu et al., 2020). Know-E (Trivedi et al., 2017), DyRep (Trivedi et al., 2019) and JODIE (Kumar et al., 2019) use RNNs to propagate messages across interactions to update node representations. Know-E, JODIE consider message exchanges between two directly interacted nodes while DyRep considers an additional hop of interactions. Therefore, DyRep gives a more expressive model at a cost of high complexity. TGAT (Xu et al., 2020) in contrast mimics GraphSAGE (Hamilton et al., 2017a) and GAT (Velickovi ˇ c et al., 2018) to propagate messages in a ´ GNN-like way from sampled historical neighbors of a node of interest. TGAT’s sampling strategy requires to store all historical neighbors, which is unscalable for online learning. Our CAW-N directly works on link streams and only requires to memorize constant many most recent links for each node.
|
| 47 |
+
|
| 48 |
+
Most of the above models are not inductive because they associate each node with an onehot identity (or the corresponding row of the adjacency matrix, or a free-trained vector) (Li et al., 2018; Chen et al., 2019; Kumar et al., 2019; Hajiramezanali et al., 2019; Sankar et al., 2020; Manessi et al., 2020; Goyal et al., 2020).
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 3: Ambiguity due to removing node identities in TGAT (Xu et al., 2020) $( t _ { 1 } < t _ { 2 } < t _ { 3 } )$ ).
|
| 52 |
+
|
| 53 |
+
TGAT (Xu et al., 2020) claimed to be inductive by removing node identities and just encoding link timestamps and attributes. However, TGAT was only evaluated over networks with rich link attributes, where the structural dynamics is not captured essentially: If we focus on structural dynamics only, it is easy to show a case when TGAT confuses node representations and will fail: Suppose in the history, two node pairs $\{ a , b \}$ and $\{ a ^ { \prime } , b ^ { \prime } \}$ only interact within each pair but share the timestamps (Fig. 3). Intuitively, a proper model should predict that future links still appear within each pair. However, TGAT cannot distinguish $a$ v.s. $a ^ { \prime }$ , and $b$ v.s. $b ^ { \prime }$ , which leads to incorrect prediction. Note that GraphSAGE (Hamilton et al., 2017a) and GAT (Velickovi ˇ c et al., 2018) also share the similar ´ issue when representing static networks for link prediction (Zhang et al., 2020; Srinivasan & Ribeiro, 2019). DyRep (Trivedi et al., 2019) is able to relieve such ambiguity by merging node representations with their neighbors’ via RNNs. However, when DyRep runs over a new network, it frequently encounters node representations unseen during its training and will fail to make correct prediction.
|
| 54 |
+
|
| 55 |
+
# Algorithm 1: Temporal Walk Extraction $( \mathcal { E } , \alpha , M , m , w _ { 0 } , t _ { 0 } )$
|
| 56 |
+
|
| 57 |
+
Initialize $M$ walks: $W _ { i } \gets ( ( w _ { 0 } , t _ { 0 } ) )$ , $1 \leq i \leq M$ ;
|
| 58 |
+
|
| 59 |
+
The rule: “one node (e.g. u) interacts with other nodes only if another node interacts with this node at least twice.”
|
| 60 |
+
|
| 61 |
+
3 for $i$ from 1 to $M$ do 4 $( w _ { \mathsf { p } } , t _ { \mathsf { p } } ) \gets$ the last (node, time) pair in $W _ { i }$ ; 5 Sample one $( e , t ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ with prob. $\propto \exp ( \alpha ( t - t _ { \mathrm { p } } ) )$ Denote $\boldsymbol { e } = \{ w ^ { \prime } , w \}$ and then $W _ { i } \gets W _ { i } \oplus ( w ^ { \prime } , t )$ ;
|
| 62 |
+
|
| 63 |
+
6 Return $\{ W _ { i } | 1 \leq i \leq M \}$ ;
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
?? takes action $u \mathrm { N O T }$ takes action Figure 4: The correlation between walks needs to be captured to learn this law.
|
| 67 |
+
|
| 68 |
+
Our CAW-N removes node identities and leverages relative node identities to avoid the issue in Fig. 3.
|
| 69 |
+
Detailed explanations are given in Sec.4.2.
|
| 70 |
+
|
| 71 |
+
Network-embedding approaches may also be applied to temporal networks (Zhou et al., 2018; Du et al., 2018; Mahdavi et al., 2018; Singer et al., 2019; Nguyen et al., 2018). However, they directly assign each node with a learnable vector. Therefore, they are not inductive and cannot digest attributes.
|
| 72 |
+
|
| 73 |
+
# 3 PROBLEM FORMULATION AND NOTATIONS
|
| 74 |
+
|
| 75 |
+
Problem Formulation. A temporal network can be represented as a sequence of links that come in over time, i.e. $\mathcal { E } = \{ ( e _ { 1 } , t _ { 1 } ) , ( \bar { e } _ { 2 } , t _ { 2 } ) , . . . \}$ where $e _ { i }$ is a link and $t _ { i }$ is the timestamp showing when $e _ { i }$ arrives. Each link $e _ { i }$ corresponds to a dyadic event between two nodes $\{ v _ { i } , u _ { i } \}$ . For simplicity, we first assume those links to be undirected and without attributes while later we discuss how to generalized our method to directed attributed networks. The sequence of links encodes network dynamics. Therefore, the capability of a model for representation learning of temporal networks is typically evaluated by how accurately it may predict future links based on the historical links (Sarkar et al., 2012). In this work, we also use link prediction as the metric. Note that we care not only the link prediction between the nodes that have been seen during the training. We also expect the models to predict links between the nodes that has never been seen as the inductive evaluation.
|
| 76 |
+
|
| 77 |
+
Notations. We define $\mathcal { E } _ { v , t } = \{ ( e , t ^ { \prime } ) \in \mathcal { E } | t ^ { \prime } < t , v \in e \}$ to include the links attached to a node $v$ before certain time $t$ . A walk $W$ (reverse over time) on temporal networks can be represented as
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
W = ( ( w _ { 0 } , t _ { 0 } ) , ( w _ { 1 } , t _ { 1 } ) , . . . , ( w _ { m } , t _ { m } ) ) , \ t _ { 0 } > t _ { 1 } > \cdot \cdot \cdot > t _ { m } , \ ( \{ w _ { i - 1 } , w _ { i } \} , t _ { i } ) \in \mathcal { E } \mathrm { ~ f o r ~ a l l ~ } \ t _ { 0 } < \mathbb { E } \mathrm { ~ o r ~ } \ t _ { 1 } < \mathbb { E } ,
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
We use $W [ i ]$ to denote the $i$ th node-time pair, and $W [ i ] [ 0 ]$ and $W [ i ] [ 1 ]$ to denote the corresponding node and time in $W [ i ]$ correspondingly. Later, we also use $\oplus$ as vector concatenation.
|
| 84 |
+
|
| 85 |
+
Temporal network motifs are defined as connected subgraphs that consist of links appearing within a restricted time range (Kovanen et al., 2011). Based this definition, each walk defined in Eq. 1 naturally corresponds to a temporal network motif as long as $\left( t _ { 1 } - t _ { m } \right)$ is in the time range.
|
| 86 |
+
|
| 87 |
+
# 4 PROPOSED METHOD: CAUSAL ANONYMOUS WALK-NETWORK
|
| 88 |
+
|
| 89 |
+
# 4.1 PRELIMINARIES: ANONYMOUS WALK AND TEMPORAL NETWORK MOTIF
|
| 90 |
+
|
| 91 |
+
Anonymous walks were first considered by Micali & Zhu (2016) to study the reconstruction of a Markov process from the records without sharing a common “name space”. AWs can be directly rephrased in the network context. Specifically, an AW starts from a node, performs random walks over the graph to collect a walk of nodes, e.g. $( v _ { 1 } , v _ { 2 } , . . . , v _ { m } )$ . AW has an important anonymization step to replace the node identities by the orders of their appearance in each walk, which we term relative node identities in AW and define it as
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
I _ { A W } ( w ; W ) \triangleq | \{ v _ { 0 } , v _ { 1 } , . . . , v _ { k ^ { * } } \} |
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
Note that the set operation above removes duplicated elements. Although AW removes node identities, those nodes are still distinguishable within this walk. Therefore, an AW can be viewed as a network motif while the information on which specific nodes form this motif is removed. Examples of AWs are shown as follows. While these are two different walks, they may be mapped to the same AW when node identities get removed.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
|
| 101 |
+
# 4.2 CAUSAL ANONYMOUS WALK
|
| 102 |
+
|
| 103 |
+
We propose CAW that shares the high-level concept with AW to remove the original node identities. However, CAW has a different causal sampling strategy and a novel set-based approach for node anonymization, which are specifically designed to encode temporal network dynamics (Fig. 2).
|
| 104 |
+
|
| 105 |
+
Causality Extraction. Alg. 1 shows our causal sampling: We sample connected links by backtracking over time to extract the underlying causality of network dynamics. More recent links may be more informative and thus we introduce a non-negative hyper-parameter $\alpha$ to sample a link with a probability proportional to $\exp ( \alpha ( t - t _ { \mathrm { p } } ) )$ where $t , t _ { \mathrm { p } }$ are the timestamps of this link and the link previously sampled respectively. A large $\alpha$ can emphasize more on recent links while zero $\alpha$ leads to uniform sampling. In Sec.4.4, we will discuss an efficient sampling strategy for the step 5 in Alg.1, which avoids computing those probabilities by visiting the entire historical links.
|
| 106 |
+
|
| 107 |
+
Then, given a link $\{ u _ { 0 } , v _ { 0 } \}$ and a time $t _ { 0 }$ , we use Alg. 1 to collect $M$ many $m$ -step walks starting from both $u _ { 0 }$ and $v _ { 0 }$ , and record them in $S _ { u }$ and $S _ { v }$ respectively. For convenience, a walk $W$ from a starting node $w _ { 0 } \in \{ u , v \}$ can be represented as Eq.1.
|
| 108 |
+
|
| 109 |
+
Set-based Anonymization. Based on $S _ { u }$ and $S _ { v }$ , we may anonymize each node identity $w$ that appears on at least one walk in $S _ { u } \cup S _ { v }$ and design relative node identity $I _ { C A W } ( w ; \{ S _ { u } , \overrightharpoonup { S } _ { v } \} )$ for $w$ . Our design has the following consideration. $I _ { A W }$ (Eq.2) only depends on a single path, which results from the original assumption that any two AWs do not even share the name space (i.e., node identities) (Micali & Zhu, 2016). However, in our case, node identities are actually accessible, though an inductive model is not allowed to use them directly. Instead, correlation across different walks could be a key to reflect laws of network dynamics: Consider the case when the link $\{ u , v \}$ happens only if there is another node appearing in multiple links connected to $u$ (Fig. 4). Therefore, we propose to use node identities to first establish such correlation and then remove the original identities.
|
| 110 |
+
|
| 111 |
+
Specifically, we define $I _ { C A W } ( w ; \{ S _ { u } , S _ { v } \} )$ as follows: For $w _ { 0 } \in \{ u , v \}$ , let $g ( w , S _ { w _ { 0 } } ) \in \mathbb { Z } ^ { m + 1 }$ count the times in $S _ { w _ { 0 } }$ node $w$ appears at certain positions, i.e., $g ( w , S _ { w _ { 0 } } ) [ i ] \triangleq | \{ W | W \in S _ { w _ { 0 } } , w =$ $W [ i ] [ 0 ] \}$ for $i \in \{ 0 , 1 , . . . , m \}$ . Further, define
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
I _ { C A W } ( w ; \{ S _ { u } , S _ { v } \} ) \triangleq \{ g ( w , S _ { u } ) , g ( w , S _ { v } ) \} .
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
Essentially, $g ( w , S _ { u } )$ and $g ( w , S _ { v } )$ encode the correlation between walks within $S _ { u }$ and $S _ { v }$ respectively and the set operation in Eq.3 establishes the correlation across $S _ { u }$ and $S _ { v }$ . For the case in Fig.3, suppose $S _ { a } , S _ { b } , S _ { a ^ { \prime } } , S _ { b ^ { \prime } }$ include all historical one-step walks (before $t _ { 3 }$ ) starting from $a , b , a ^ { \prime } , b ^ { \prime }$ respectively. Then, it is easy to show that $I _ { C A W } ( a ; \{ { \bar { S } } _ { a } , S _ { b } \} ) \neq I _ { C A W } ( a ^ { \prime } ; \{ S _ { a ^ { \prime } } , { \bar { S } } _ { b } \} )$ that allows differentiating $a$ and $a ^ { \prime }$ , while TGAT ( $\mathrm { X u }$ et al., 2020) as discussed in Sec.2 fails. From the networkmotif point of view, $I _ { C A W }$ not only encodes each network motif that corresponds to one single walk as $I _ { A W }$ does but also establish the correlation among these network motifs. $I _ { A W }$ cannot establish the correlation between motifs and will also fail to distinguish $a$ and $a ^ { \prime }$ in Fig.3. We see it as a significant breakthrough as such correlation often gets neglected in previous works that directly count motifs or adopt AW-type anonymization $I _ { A W }$ .
|
| 118 |
+
|
| 119 |
+
Later, we use $I _ { C A W } ( w )$ for simplicity when the reference set $\{ S _ { u } , S _ { v } \}$ can be inferred from the context. Then, each walk $W$ (Eq.1) can be anonymized as
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\hat { W } = ( ( I _ { C A W } ( w _ { 0 } ) , t _ { 0 } ) , ( I _ { C A W } ( w _ { 1 } ) , t _ { 1 } ) , . . . , ( I _ { C A W } ( w _ { m } ) , t _ { m } ) ) .
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
The following theorem indicates that $I _ { C A W }$ does not depend on node identities to guarantee the inductive property of the models, which can be easily justified.
|
| 126 |
+
|
| 127 |
+
Theorem 4.1. For two pairs of walk sets $\{ S _ { u } , S _ { v } \}$ and $\{ S _ { u ^ { \prime } } , S _ { v ^ { \prime } } \}$ , if there exists a bijective mapping $\pi$ between node identities such that each walk $W$ in $S _ { u } \cup S _ { v }$ can be bijectively mapped to one walk $W ^ { \prime }$ in $S _ { u ^ { \prime } } \cup S _ { v ^ { \prime } }$ according to $\pi ( W [ i ] [ 0 ] ) = W ^ { \prime } [ i ] [ 0 ]$ for all $i \in [ 0 , m ]$ . Then $I _ { C A W } ( w | \{ S _ { u } , S _ { v } \} ) =$ $I _ { C A W } ( \pi ( w ) | \{ S _ { u ^ { \prime } } , S _ { v ^ { \prime } } \} )$ for all nodes $w$ that appear in at least one walk in $S _ { u } \cup S _ { v }$ .
|
| 128 |
+
|
| 129 |
+
# 4.3 NEURAL ENCODING FOR CAUSAL ANONYMOUS WALKS
|
| 130 |
+
|
| 131 |
+
After we collect CAWs, neural networks can be conveniently leveraged to extract their structural (in $I _ { C A W } ( \cdot ) )$ and fine-grained temporal information by encoding CAWs: We will propose the model CAW-N to first encode each walk $\hat { W }$ (Eq.4) and then aggregate all encoded walks in $S _ { u } \cup S _ { v }$ .
|
| 132 |
+
|
| 133 |
+
<table><tr><td>Measurement</td><td>Reddit</td><td>Wikipedia</td><td>MOOC</td><td>Social Evo.</td><td>Enron</td><td>UCI</td></tr><tr><td>nodes& temporal links attributes for nodes & links</td><td>10,985&672,447 172&172</td><td>9,227&157,474 172 &172</td><td>7145&411,749</td><td>184&125,235</td><td>74&2,099,520</td><td>1,899&59,835 0&0</td></tr><tr><td>avg. link stream intensity T</td><td>4.57×10-5</td><td>1.27 × 10-5</td><td>0&4 4.48×10-5</td><td>0&0 6.50 × 10-5</td><td>0&0 4.98 × 10-3</td><td>3.59×10-5</td></tr></table>
|
| 134 |
+
|
| 135 |
+
Table 1: Summary of dataset statistics. Average link stream intensity is calculated by $2 | E | / ( | V | T )$ , where $T$ is the total time range of all edges in unit of seconds, $| V |$ and $| E |$ are number of nodes and temporal links.
|
| 136 |
+
|
| 137 |
+
Encode $\hat { W }$ . Note that each walk is a sequence of node-time pairs. If we encode each node-time pair and plug those pairs in a sequence encoder, e.g., RNNs, we obtain the encoding of $\hat { W }$ :
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\begin{array} { r } { \mathrm { e n c } ( \hat { W } ) = \mathrm { R N N } ( \{ f _ { 1 } \big ( I _ { C A W } ( w _ { i } ) \big ) \oplus f _ { 2 } ( t _ { i - 1 } - t _ { i } ) \} _ { i = 0 , 1 , \dots , m } ) , \mathrm { ~ w h e r e ~ } t _ { - 1 } = t _ { 0 } , } \end{array}
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
where $f _ { 1 } , f _ { 2 }$ are two encoding function on $I _ { C A W } ( w _ { i } )$ and $t _ { i - 1 } - t _ { i }$ respectively. One may use transformer networks instead of RNNs to encode the sequences but as the sequences in our case are not long $( 1 \sim 5 )$ , RNNs have achieved good enough performance. Now, we specify the two encoding functions $f _ { 1 } ( I _ { C A W } ( w _ { i } ) )$ and $f _ { 2 } ( t _ { i - 1 } - t _ { i } )$ as follows. Recall the definition of $I _ { C A W } ( w _ { i } )$ (Eq.3).
|
| 144 |
+
|
| 145 |
+
$\begin{array} { r } { f _ { 1 } \big ( I _ { C A W } \big ( w _ { i } \big ) \big ) = \mathbf { M L P } \big ( g \big ( w , S _ { u } \big ) \big ) + \mathbf { M L P } \big ( g \big ( w , S _ { v } \big ) \big ) . } \end{array}$ , where two MLPs share parameters.
|
| 146 |
+
|
| 147 |
+
Here the encoding of $I _ { C A W } ( w _ { i } )$ adopts the sum-pooling as the order of $u , v$ is not relevant. For $f _ { 2 } ( t )$ , we adopt random Fourier features to encode time ( $\mathrm { { X u } }$ et al., 2019; Kazemi et al., 2019) which may approach any positive definite kernels according to the Bochner’s theorem (Bochner, 1992).
|
| 148 |
+
|
| 149 |
+
$f _ { 2 } ( t ) = [ \cos ( \omega _ { 1 } t ) , \sin ( \omega _ { 1 } t ) , . . . , \cos ( \omega _ { d } t ) , \sin ( \omega _ { d } t ) ] .$ , where $\omega _ { i }$ ’s are learnable parameters.
|
| 150 |
+
|
| 151 |
+
Encode $S _ { u } \cup S _ { v }$ . After encoding each walk in $S _ { u } \cup S _ { v }$ , we aggregate all these walks to obtain the final representation enc $( S _ { u } \cup S _ { v } )$ for prediction. We suggest to use either mean-pooling for algorithmic efficiency or self-attention (Vaswani et al., 2017) followed by mean-pooling to further capture subtle interactions between different walks. Specifically, suppose $\{ \hat { W } _ { i } \} _ { 1 \leq i \leq 2 M }$ are the $2 M$ CAWs in $S _ { u } \cup S _ { v }$ and each enc $( \hat { W } _ { i } ) \in \mathbb { R } ^ { d \times 1 }$ . We set enc $( S _ { u } \cup S _ { v } )$ as
|
| 152 |
+
|
| 153 |
+
• $\begin{array} { r } { \mathbf { M e a n - A G G } ( S _ { u } \cup S _ { v } ) \colon \frac { 1 } { 2 M } \sum _ { i = 1 } ^ { 2 M } \operatorname { e n c } ( \hat { W } _ { i } ) . } \end{array}$
|
| 154 |
+
• Self-Att- $\operatorname { A G G } ( S _ { u } \cup S _ { v } )$ $\begin{array} { r l } { \colon } & { { } \frac { 1 } { 2 M } \sum _ { i = 1 } ^ { 2 M } \mathrm { s o f t m a x } ( \{ \mathrm { e n c } ( \hat { W } _ { i } ) ^ { T } Q _ { 1 } \mathrm { e n c } ( \hat { W } _ { j } ) \} _ { 1 \leq j \leq n } ) \mathrm { e n c } ( \hat { W } _ { i } ) Q _ { 2 } } \end{array}$ where $Q _ { 1 } , Q _ { 2 } \in \mathbb { R } ^ { d \times d }$ are two learnable parameter matrices.
|
| 155 |
+
|
| 156 |
+
We add 2-layer perceptron over enc $( S _ { u } \cup S _ { v } )$ to make the final link prediction.
|
| 157 |
+
|
| 158 |
+
# 4.4 EXTENSION AND DISCUSSION
|
| 159 |
+
|
| 160 |
+
Attributed nodes/links and directed links. In some real networks, nodes or links may have attributes available, e.g., the message content in the case of SMS networks. In this case, the walk in Eq.1 can be associated with node/link attributes $X _ { 0 } , X _ { 1 } , . . . , X _ { m }$ where $X _ { i }$ refers to the attributes on link $( \{ w _ { i - 1 } , w _ { i } \} , t _ { i } )$ or on the node $w _ { i }$ or a concatenation of these two parts. Note that the direction of a link can also be viewed as a binary link attribute, where a 2-dimensional one-hot encoding can be used. To incorporate such information, we only need to change enc $( \hat { W } )$ (Eq.5) as
|
| 161 |
+
|
| 162 |
+
Since $f _ { 1 } ( I _ { C A W } ( w _ { i } ) )$ is a strong signal, in practice it is optional to use another RNN to encode its own dynamics. The derived encoding is then concatenated with enc $( \hat { W } )$ to obtain the enhanced final encoding of $\hat { W }$ .
|
| 163 |
+
|
| 164 |
+
Efficient link sampling. A naive implementation of the link sampling in step 5 in Alg.1 is to compute and normalize the sampling probabilities of all links in $\mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ , which requires to memorize all historical links and costs much time and memory. To solve this problem, we propose a sampling strategy (Appendix A) with expected time and memory complexity $\begin{array} { r } { \operatorname* { m i n } \{ \frac { 2 \tau } { \alpha } + 1 , \top E _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } } | \} } \end{array}$ if links in Ewp,tp come in by following a Poisson process with intensity $\tau$ (Last & Penrose, 2017). This means that our sampling strategy with a positive $\alpha$ allows the model only recording $\textstyle O ( { \frac { \tau } { \alpha } } )$ recent links for each node instead of the entire history. Our experiments in Sec.5.3 show that $\alpha$ that achieves the best prediction performance makes $\textstyle { \frac { \tau } { \alpha } } \approx 5$ in different datasets. Since the time and memory complexity do not increase with respect to the number of links, our model can be used for online training and inference. Note that the $\alpha = 0$ case reduces to uniform sampling, mostly adopted by previous methods ( $\mathrm { \Delta X u }$ et al., 2020), which requires to record the entire history and thus is not scalable.
|
| 165 |
+
|
| 166 |
+
# 5 EXPERIMENTS
|
| 167 |
+
|
| 168 |
+
# 5.1 EXPERIMENTAL SETUP
|
| 169 |
+
|
| 170 |
+
CAW-N Variants. We test CAW-N-mean and CAW-N-attn which uses mean and attention pooling respectively to encode $S _ { u } \cup S _ { v }$ (Sec. 4.3). Their code is provided in the supplement.
|
| 171 |
+
|
| 172 |
+
Baselines. Our method is compared with six previous state-of-the-art baselines on representation learning of temporal networks. They can be grouped into two categories based on their input data structure: (1) Snapshot-based methods, including DynAERNN (Goyal et al., 2020), VGRNN (Hajiramezanali et al., 2019) and EvolveGCN (Pareja et al., 2020); (2) Stream-based methods, including TGAT (Xu et al., 2020), JODIE (Kumar et al., 2019) and DyRep (Trivedi et al., 2019). We give their detailed introduction in Appendix C.2.2. For the snapshot-based methods, we view the link aggregation as a way to preprocess historical links. We adopt the aggregation ways suggested in their papers. These models are trained and evaluated over the same link sets as the stream-based methods.
|
| 173 |
+
|
| 174 |
+
Dataset. We use six real-world public datasets: Wikipedia is a network between wiki pages and human editors. Reddit is a network between posts and users on subreddits. MOOC is a network of students and online course content units. Social Evolution is a network recording the physical proximity between students. Enron is a email communication network. UCI is a network between online posts made by students. We summarize their statistics in Tab.1 and give their detailed description and access in Appendix C.1.
|
| 175 |
+
|
| 176 |
+
Evaluation Tasks. Two types of tasks are for evaluation: transductive and inductive link prediction.
|
| 177 |
+
|
| 178 |
+
Transductive link prediction task allows temporal links between all nodes to be observed up to a time point during the training phase, and uses all the remaining links after that time point for testing. In our implementation, we split the total time range $[ 0 , T ]$ into three intervals: [0, $T _ { t r a i n } )$ , $[ T _ { t r a i n }$ , $T _ { v a l }$ ), $[ T _ { v a l } , T ]$ . links occurring within each interval are dedicated to training, validation, and testing set, respectively. For all datasets, we fix $T _ { t r a i n } / T { = } 0 . 7$ , and ${ T _ { v a l } } / T \mathrm { = } 0 . 8 5$ .
|
| 179 |
+
|
| 180 |
+
Inductive link prediction task predicts links associated with nodes that are not observed in the training set. There are two types of such links: 1) "old vs. new" links, which are links between an observed node and an unobserved node; 2) "new vs. new" links, which are links between two unobserved nodes. Since these two types of links suggest different types of inductiveness, we distinguish them by reporting their performance metrics separately. In practice, we follow two steps to split the data: 1) we use the same setting of the transductive task to first split the links chronologically into training / validation / testing sets; 2) we randomly select $10 \%$ nodes, remove any links associated with them from the training set, and remove any links not associated with them in the validation and testing sets.
|
| 181 |
+
|
| 182 |
+
Following most baselines, we randomly sample an equal amount of negative links and consider link prediction as a binary classification problem. For fair comparison, we use the same evaluation procedures for all baselines, including the snapshot-based methods.
|
| 183 |
+
|
| 184 |
+
Training configuration. We use binary cross entropy loss and Adam optimizer to train all the models, and early stopping strategy to select the best epoch to stop training. For hyperparameters, we primarily tune those that control the CAW sampling scheme including the number $M$ , the length $m$ of CAWs and the time decay $\alpha$ . We will investigate their sensitivity in Sec.5.3. For all baselines, we adapt their implemented models into our evaluation pipeline and extensively tune them. Detailed description of all models’ tuning can be found in Appendix C. Finally, we adopt two metrics to evaluate the models’ performance: Area Under the ROC curve (AUC) and Average Precision (AP).
|
| 185 |
+
|
| 186 |
+
# 5.2 RESULTS AND DISCUSSION
|
| 187 |
+
|
| 188 |
+
We report AUC scores in Tab.2, and report AP scores in Tab.6 of Appendix D.1. In the inductive setting and especially with "new vs new" links, our models significantly outperform all baselines on all datasets. On average, our best method improves over the strongest baseline by $1 4 . 4 6 \%$ (new vs. new) and $3 . 4 9 \%$ (old vs. new) in relative, or reduces the error $( = 1 - \mathsf { A U C } )$ by $6 9 . 7 3 \%$ (new vs. new) and $5 8 . 6 3 \%$ (old vs. new). Noticeably, out method achieves almost perfect AUCs on UCI’s "new vs. new" edges, when all baselines’ performance is below 0.8.
|
| 189 |
+
|
| 190 |
+
Even in transductive setting where the baselines claim their primary contribution, our approaches still significantly outperform them on five out of six datasets. Note that our models achieve almost perfect scores on Reddit and Wikpedia when the baselines are far from perfect. Meanwhile, the strongest baseline on these two attributed datasets, TGAT ( $\mathrm { X u }$ et al., 2020), suffers a lot on all the other datasets where informative node / link attributes become unavailable.
|
| 191 |
+
|
| 192 |
+
Table 2: Performance in AUC (mean in percentage $\pm 9 5 \%$ confidence level.) $\dagger$ highlights the best baselines. ∗, bold font, bold font∗ respectively highlights the case where our models’ performance exceeds the best baseline on average, by $7 0 \%$ confidence, by $9 5 \%$ confidence.
|
| 193 |
+
|
| 194 |
+
<table><tr><td colspan="2">Task</td><td>Methods</td><td>Reddit</td><td>Wikipedia</td><td>MOOC</td><td>Social Evo.</td><td>Enron</td><td>UCI</td></tr><tr><td rowspan="7">Trgeecer</td><td rowspan="7">Mwass aaa</td><td>DynAERNN JODIE DyRep</td><td>57.51 ± 2.54 72.49 ± 0.38</td><td>55.16 ± 1.15 70.78 ± 0.75</td><td>60.85 ± 1.61 80.04±0.28†</td><td>52.00±0.16 87.66 ±0.12†</td><td>51.57 ± 2.63 73.99 ± 2.54†</td><td>50.20± 2.78 64.77 ± 0.75</td></tr><tr><td></td><td>62.37 ± 1.49 61.93 ± 0.72</td><td>67.07 ± 1.26</td><td>74.07 ± 1.88</td><td>83.92 ±0.02</td><td>69.74 ± 0.44</td><td>63.76± 4.67</td></tr><tr><td>VGRNN EvolveGCN</td><td>63.31 ±0.53</td><td>60.64 ±0.68 58.01 ± 0.16</td><td>63.01 ± 0.29 52.31 ± 4.14</td><td>66.30 ± 0.84</td><td>61.35 ± 1.10</td><td>61.35 ± 1.10</td></tr><tr><td>TGAT</td><td>94.96 ± 0.88†</td><td>93.53 ± 0.84†</td><td>70.10 ± 0.35</td><td>46.95 ± 0.85</td><td>42.53 ± 2.12</td><td>76.65 ± 0.63†</td></tr><tr><td>CAW-N-mean</td><td>98.30 ± 0.71*</td><td></td><td></td><td>53.27 ± 1.16</td><td>63.34 ± 2.95</td><td>76.36 ± 1.48</td></tr><tr><td>CAW-N-attn</td><td>98.11 ± 0.58*</td><td>96.36±0.48* 97.83 ± 0.67*</td><td>90.29±0.82* 90.40 ± 0.75*</td><td>93.81 ± 0.69* 94.55 ± 0.81*</td><td>94.26±0.62* 93.53 ± 0.63*</td><td>99.62 ± 0.34*</td></tr><tr><td>DynAERNN</td><td>58.79 ±3.01 57.97 ± 2.38</td><td>80.99 ±1.35</td><td>52.31 ±0.59</td><td></td><td></td><td>100.00 ±0.00* 52.26 ± 1.36</td></tr><tr><td rowspan="7">PlO 's'A Mau</td><td>JODIE</td><td>76.33 ± 0.03</td><td>74.65 ± 0.06</td><td>87.40 ± 1.71</td><td>91.80 ± 0.01†</td><td>54.36± 1.48 85.24 ± 0.08</td><td>69.95 ± 0.11</td></tr><tr><td>DyRep</td><td>66.13 ± 1.07</td><td>76.72 ± 0.19</td><td>88.23 ± 1.20†</td><td>87.98 ± 0.45</td><td>94.39 ± 0.32†</td><td>93.28 ± 0.96†</td></tr><tr><td>VGRNN</td><td>54.11 ± 0.74</td><td>62.93 ± 0.69</td><td>60.10 ± 0.88</td><td>64.66 ± 0.41</td><td>68.71 ± 0.92</td><td></td></tr><tr><td>EvolveGCN</td><td>65.61 ± 0.37</td><td>56.29 ± 2.17</td><td>50.20 ± 1.92</td><td>50.73 ±1.36</td><td>42.53 ± 2.13</td><td>62.39 ± 1.08</td></tr><tr><td>TGAT</td><td>97.25 ± 0.18†</td><td>95.47 ± 0.17†</td><td>69.30 ± 0.08</td><td></td><td></td><td>70.78 ± 0.22</td></tr><tr><td>CAW-N-mean</td><td>99.88 ± 0.04*</td><td>98.94 ± 0.05*</td><td>90.88 ± 0.54*</td><td>54.22 ± 1.28 95.15 ± 0.40*</td><td>58.76 ± 1.18 94.76 ± 1.05*</td><td>74.19 ± 0.88</td></tr><tr><td></td><td>99.93 ±0.03*</td><td>99.61± 0.25*</td><td>90.89 ±0.56*</td><td>95.74 ± 0.68*</td><td>93.43 ± 1.41</td><td>99.04± 0.34*</td></tr><tr><td rowspan="10">Trarrsreeea</td><td>CAW-N-attn DynAERNN</td><td>83.37 ±1.48</td><td>71.00±1.10</td><td>89.34± 0.24</td><td>67.78±0.80</td><td>63.11 ± 1.13</td><td>98.99 ± 0.44*</td></tr><tr><td>JODIE</td><td>87.71 ± 0.02</td><td>88.43 ± 0.02</td><td>90.50 ± 0.01†</td><td>89.78 ± 0.04</td><td>89.36 ± 0.06</td><td>83.72± 1.79</td></tr><tr><td>DyRep</td><td>67.36 ± 1.23</td><td></td><td></td><td></td><td></td><td>74.63 ± 0.11</td></tr><tr><td>VGRNN</td><td>51.89 ±0.92</td><td>77.40 ± 0.13 71.20 ± 0.65</td><td>90.49 ± 0.03 90.03 ±0.32</td><td>90.85 ± 0.01† 78.28 ± 0.69</td><td>96.71 ± 0.04† 93.84 ±0.58</td><td>95.23 ± 0.25†</td></tr><tr><td>EvolveGCN</td><td>58.42 ±0.52</td><td>60.48 ± 0.47</td><td>50.36 ± 0.85</td><td>60.36 ± 0.65</td><td>74.02 ± 0.31</td><td>89.43 ± 0.27</td></tr><tr><td>TGAT</td><td>96.65 ± 0.06†</td><td>96.36 ± 0.05†</td><td>72.09 ± 0.29</td><td>56.63 ± 0.55</td><td>60.88 ±0.37</td><td>78.30 ± 0.22</td></tr><tr><td>CAW-N-mean</td><td>99.97 ± 0.01*</td><td>99.91 ± 0.04*</td><td>91.99 ± 0.72*</td><td>94.12 ± 0.15*</td><td>93.53 ± 0.73</td><td>77.67 ± 0.27</td></tr><tr><td>CAW-N-attn</td><td>99.98 ±0.01*</td><td>99.89±0.03*</td><td>92.38 ±0.58*</td><td>94.79 ±0.16*</td><td>95.93 ± 0.39</td><td>95.90 ± 0.71</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>98.45±0.49*</td></tr></table>
|
| 195 |
+
|
| 196 |
+
<table><tr><td>No.</td><td>Ablation</td><td>Wikipedia</td><td>UCI</td><td>Social Evo.</td></tr><tr><td>1.</td><td>original method (CAW-N-mean)</td><td>98.49 ± 0.38</td><td>99.12± 0.33</td><td>94.54± 0.69</td></tr><tr><td>2.</td><td>remove fi(IcAw)</td><td>96.28 ± 0.66</td><td>79.45 ± 0.71</td><td>53.69 ± 0.21</td></tr><tr><td>3.</td><td>remove f2(t)</td><td>97.99 ± 0.13</td><td>95.00 ±0.42</td><td>71.93 ± 2.32</td></tr><tr><td>4.</td><td>remove fi(IcAw),f2(t)</td><td>88.94 ± 0.85</td><td>50.01 ± 0.02</td><td>50.00 ±0.00</td></tr><tr><td>5.</td><td>replace fi(IcAw) byone-hot(IAw)</td><td>96.55 ± 0.21</td><td>85.59 ± 0.34</td><td>68.47 ± 0.86</td></tr><tr><td>6.</td><td>fixα=0</td><td>75.10 ± 3.12</td><td>87.13 ± 0.49</td><td>78.01 ± 0.69</td></tr></table>
|
| 197 |
+
|
| 198 |
+
Table 3: Ablation study with CAW-N-mean. AUC scores on all inductive test links are reported.
|
| 199 |
+
|
| 200 |
+
Comparing the two training settings, we observe that the performance of four baselines (JODIE, VGRNN, DynAERNN,DyRep) drop significantly when transiting from the transductive setting to the inductive one, as they mostly record node identities either explicitly (JODIE, VGRNN, DynAERNN) or implicitly (DyRep). TGAT and EvolveGCN do not use node identities and thus their performance gaps between the two settings are small, while they sometimes do not perform well in the transductive setting, as they encounter the ambiguity issue in Fig. 3. In contrast, our methods perform well in both the transductive and inductive settings. We attribute this superiority to the anonymization procedure: the set-based relative node identities well capture the correlation between walks to make good prediction while removing the original node identities to keep entirely inductive. Even when the network structures greatly change and new nodes come in as long as the network evolves according to the same law as the network used for training, CAW-N will always work. Comparing CAW-N-mean and CAW-N-attn, we see that our attention-based variant outperforms the mean-pooling variant, albeit at the cost of high computation complexity. Also note that the strongest baselines on all datasets are stream-based methods, which indicates that the aggregation of links into network snapshots may remove some useful time information (see more discussion in Appendix D.2).
|
| 201 |
+
|
| 202 |
+
We further conduct ablation studies on Wikipedia (attributed), UCI (non-attributed), and Social Evolution (non-attributed), to validate effectiveness of critical components of our model. Tab. 3 shows the results. By comparing Ab.1 with Ab.2, 3 and 4 respectively, we observe that our proposed node anonymization and encoding, $f _ { 1 } ( I _ { C A W } )$ , contributes most to the performance, though the time encoding ${ \dot { f } } _ { 2 } ( t )$ also helps. Comparing performance across different datasets, we see that the impact of ablation is more prominent when informative node/link attributes are unavailable such as with UCI and Social Evolution. Therefore, in such scenarios our CAWs are highly crucial. In Ab.5, we replace our proposed $I _ { C A W }$ with $I _ { A W }$ (Eq.2), which is used in standard AWs, and we use one-hot encoding of node new identities $I _ { A W }$ . We see by comparing Ab.1, 2, and 5 that such anonymization process is significantly less effective than our $I _ { C A W }$ , though it helps to some extent. Finally, Ab.6 suggests that entirely uniform sampling of the history may hurt performance.
|
| 203 |
+
|
| 204 |
+

|
| 205 |
+
Figure 5: Hyperparameter sensitivity in CAW sampling. AUC on all inductive test links are reported.
|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
Figure 6: Complexity evaluation: The accumulated runtime of (a) temporal random walk extraction (Alg.1) and (b) the entire CAW-N training, timed over one epoch on Wikipedia (using different $| \mathcal { E } |$ for training).
|
| 209 |
+
|
| 210 |
+
# 5.3 HYPERPARAMETER INVESTIGATION OF CAW SAMPLING
|
| 211 |
+
|
| 212 |
+
We systematically analyze the effect of hyperparameters used in CAW sampling schemes, including sampling number $M$ , temporal decay coefficient $\alpha$ and walk length $m$ . The experiments are conducted on UCI and Wikipedia datasets using CAW-N-mean. When investigating each hyperparameter, we set the rest two to an optimal value found by grid search, and report the mean AUC performance on all inductive test links (i.e. old vs. new, new vs. new) and their $9 5 \%$ confidence intervals.
|
| 213 |
+
|
| 214 |
+
The results are summarized in Fig.5. From (a), we observe that only a small number of sampled CAWs are needed to achieve a competitive performance. Meanwhile, the performance gain is saturated as the sampling number increases. We analyze the temporal decay $\alpha$ in (b): $\alpha$ usually has an optimal interval, whose values and length also vary with different datasets to capture the different levels of temporal dynamics; a small $\alpha$ suggests an almost uniform sampling of interaction history, which hurts the performance; an overly large $\alpha$ also damages the model, since it makes the model only sample the most recent few interactions for computation and blind to the rest. Based on our efficient sampling strategy (Sec.4.4), we may combine the optimal $\alpha$ with the average link intensity $\tau$ (Tab.1), and concludes that CAW-N only needs to online record and sample from about a constant times about 5 $\begin{array} { r } { ( \approx \frac { \tau } { \alpha } ) } \end{array}$ most recent links for each node. Plot (c) suggests that the performance may peak at a certain CAW length, while the exact value may vary with datasets. Longer CAWs indicate that the corresponding networks evolve according to more complicated laws encoded in higher-order motifs.
|
| 215 |
+
|
| 216 |
+
# 5.4 COMPLEXITY EVALUATION
|
| 217 |
+
|
| 218 |
+
We examine how the runtime of CAW-N depends on the number of edges $| \mathcal { E } |$ used for training. We record the runtimes of CAW-N for training one epoch on the Wikipedia datasets using $M = 3 2$ , $m = 2$ with batch-size $^ { = 3 2 }$ . Specifics of the computing infrastructure are given in Appendix C.5. Fig. 6 (a) shows the accumulated runtime of executing the random walk extraction i.e. Alg.1 only. It well aligns with our theoretical analysis (Thm. A.2) that each step of the random walk extraction has constant complexity (i.e. accumulated runtime linear with $| \mathcal { E } | )$ . Plot (b) shows the entire runtime for one-epoch training, which is also linear with $| \mathcal { E } |$ . Note that $\dot { O ( | \mathcal { E } | ) }$ is the time complexity that one at least needs to pay. The study demonstrates our method is scalable to long edge streams.
|
| 219 |
+
|
| 220 |
+
# 6 CONCLUSION
|
| 221 |
+
|
| 222 |
+
We proposed CAW-N to inductively represent the dynamics of temporal networks. CAW-N uses CAWs to implicitly extract network motifs via temporal random walks and adopts novel set-based anonymization to establish the correlation between network motifs. The success of CAW-N points out many promising future research directions on temporal networks: Pairing CAW-N with neural network interpretation techniques (Montavon et al., 2018) may give a chance to automatically discover larger and meaningful motifs/patterns of temporal networks; CAW-N may also be generalized to predict high-order structures (e.g., triangles) that correspond to some function units of temporal networks from different domains (Benson et al., 2016; 2018; Zitnik et al., 2019).
|
| 223 |
+
|
| 224 |
+
# ACKNOWLEDGMENTS
|
| 225 |
+
|
| 226 |
+
We thank Jiaxuan You and Rex Ying for their helpful discussion on the idea of Causal Anonymous Walks. We also thank Rok Sosic, Camilo Andres Ruiz and Maria Brbi ˇ c for providing insightful ´ feedback on the abstract. We also gratefully acknowledge the support of DARPA under Nos. FA865018C7880 (ASED), N660011924033 (MCS); ARO under Nos. W911NF-16-1-0342 (MURI), W911NF-16-1-0171 (DURIP); NSF under Nos. OAC-1835598 (CINES), OAC-1934578 (HDR), CCF-1918940 (Expeditions), IIS-2030477 (RAPID); Stanford Data Science Initiative, Wu Tsai Neurosciences Institute, Chan Zuckerberg Biohub, Amazon, Boeing, JPMorgan Chase, Docomo, Hitachi, JD.com, KDDI, NVIDIA, Dell. J. L. is a Chan Zuckerberg Biohub investigator.
|
| 227 |
+
|
| 228 |
+
# REFERENCES
|
| 229 |
+
|
| 230 |
+
Ghadeer AbuOda, Gianmarco De Francisci Morales, and Ashraf Aboulnaga. Link prediction via higher-order motif features. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases. Springer, 2019.
|
| 231 |
+
|
| 232 |
+
Nesreen K Ahmed, Jennifer Neville, Ryan A Rossi, and Nick Duffield. Efficient graphlet counting for large networks. In International Conference on Data Mining. IEEE, 2015.
|
| 233 |
+
|
| 234 |
+
Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
|
| 235 |
+
|
| 236 |
+
Austin R Benson, David F Gleich, and Jure Leskovec. Higher-order organization of complex networks. Science, 353(6295), 2016.
|
| 237 |
+
|
| 238 |
+
Austin R Benson, Rediet Abebe, Michael T Schaub, Ali Jadbabaie, and Jon Kleinberg. Simplicial closure and higher-order link prediction. Proceedings of the National Academy of Sciences, 115 (48):E11221–E11230, 2018.
|
| 239 |
+
|
| 240 |
+
Salomon Bochner. A theorem on Fourier-Stieltjes integrals. Collected Papers of Salomon Bochner, 2, 1992.
|
| 241 |
+
|
| 242 |
+
Jinyin Chen, Jian Zhang, Xuanheng Xu, Chenbo Fu, Dan Zhang, Qingpeng Zhang, and Qi Xuan. E-lstm-d: A deep learning framework for dynamic network link prediction. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 2019.
|
| 243 |
+
|
| 244 |
+
Lun Du, Yun Wang, Guojie Song, Zhicong Lu, and Junshan Wang. Dynamic network embedding: An extended approach for skip-gram based network embedding. In International Joint Conference on Artificial Intelligence, 2018.
|
| 245 |
+
|
| 246 |
+
Thomas E Gorochowski, Claire S Grierson, and Mario di Bernardo. Organization of feed-forward loop motifs reveals architectural principles in natural and engineered networks. Science advances, 4(3), 2018.
|
| 247 |
+
|
| 248 |
+
Palash Goyal, Sujit Rokka Chhetri, and Arquimedes Canedo. dyngraph2vec: Capturing network dynamics using dynamic graph representation learning. Knowledge-Based Systems, 187, 2020.
|
| 249 |
+
|
| 250 |
+
Mark S Granovetter. The strength of weak ties. American journal of sociology, 78(6), 1973.
|
| 251 |
+
|
| 252 |
+
Ehsan Hajiramezanali, Arman Hasanzadeh, Krishna Narayanan, Nick Duffield, Mingyuan Zhou, and Xiaoning Qian. Variational graph recurrent neural networks. In Advances in Neural Information Processing Systems, 2019.
|
| 253 |
+
|
| 254 |
+
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, 2017a.
|
| 255 |
+
|
| 256 |
+
William L Hamilton, Rex Ying, and Jure Leskovec. Representation learning on graphs: Methods and applications. IEEE Data Engineering Bulletin, 40(3), 2017b.
|
| 257 |
+
|
| 258 |
+
Petter Holme and Jari Saramäki. Temporal networks. Physics reports, 519(3), 2012.
|
| 259 |
+
|
| 260 |
+
Sergey Ivanov and Evgeny Burnaev. Anonymous walk embeddings. In International Conference on Machine Learning, 2018.
|
| 261 |
+
|
| 262 |
+
Seyed Mehran Kazemi, Rishab Goel, Sepehr Eghbali, Janahan Ramanan, Jaspreet Sahota, Sanjay Thakur, Stella Wu, Cathal Smyth, Pascal Poupart, and Marcus Brubaker. Time2vec: Learning a vector representation of time. arXiv preprint arXiv:1907.05321, 2019.
|
| 263 |
+
|
| 264 |
+
Thomas N Kipf and Max Welling. Variational graph auto-encoders. arXiv preprint arXiv:1611.07308, 2016.
|
| 265 |
+
|
| 266 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations, 2017.
|
| 267 |
+
|
| 268 |
+
Lauri Kovanen, Márton Karsai, Kimmo Kaski, János Kertész, and Jari Saramäki. Temporal motifs in time-dependent networks. Journal of Statistical Mechanics: Theory and Experiment, 2011(11), 2011.
|
| 269 |
+
|
| 270 |
+
Lauri Kovanen, Kimmo Kaski, János Kertész, and Jari Saramäki. Temporal motifs reveal homophily, gender-specific patterns, and group talk in call sequences. Proceedings of the National Academy of Sciences, 110(45), 2013.
|
| 271 |
+
|
| 272 |
+
Srijan Kumar, Xikun Zhang, and Jure Leskovec. Predicting dynamic embedding trajectory in temporal interaction networks. In International Conference on Knowledge Discovery Data Mining, 2019.
|
| 273 |
+
|
| 274 |
+
Mayank Lahiri and Tanya Y Berger-Wolf. Structure prediction in temporal networks using frequent subgraphs. In IEEE Symposium on Computational Intelligence and Data Mining, 2007.
|
| 275 |
+
|
| 276 |
+
Günter Last and Mathew Penrose. Lectures on the Poisson process, volume 7. Cambridge University Press, 2017.
|
| 277 |
+
|
| 278 |
+
Stephen Lavenberg. Computer performance modeling handbook. Elsevier, 1983.
|
| 279 |
+
|
| 280 |
+
Pan Li and Olgica Milenkovic. Inhomogeneous hypergraph clustering with applications. In Advances in Neural Information Processing Systems, 2017.
|
| 281 |
+
|
| 282 |
+
Taisong Li, Jiawei Zhang, S Yu Philip, Yan Zhang, and Yonghong Yan. Deep dynamic network embedding for link prediction. IEEE Access, 6, 2018.
|
| 283 |
+
|
| 284 |
+
Sedigheh Mahdavi, Shima Khoshraftar, and Aijun An. dynnode2vec: Scalable dynamic network embedding. In International Conference on Big Data (Big Data). IEEE, 2018.
|
| 285 |
+
|
| 286 |
+
Franco Manessi, Alessandro Rozza, and Mario Manzo. Dynamic graph convolutional networks. Pattern Recognition, 97, 2020.
|
| 287 |
+
|
| 288 |
+
Shmoolik Mangan and Uri Alon. Structure and function of the feed-forward loop network motif. Proceedings of the National Academy of Sciences, 100(21), 2003.
|
| 289 |
+
|
| 290 |
+
Silvio Micali and Zeyuan Allen Zhu. Reconstructing markov processes from independent and anonymous experiments. Discrete Applied Mathematics, 200, 2016.
|
| 291 |
+
|
| 292 |
+
Grégoire Montavon, Wojciech Samek, and Klaus-Robert Müller. Methods for interpreting and understanding deep neural networks. Digital Signal Processing, 73:1–15, 2018.
|
| 293 |
+
|
| 294 |
+
Giang Hoang Nguyen, John Boaz Lee, Ryan A Rossi, Nesreen K Ahmed, Eunyee Koh, and Sungchul Kim. Continuous-time dynamic network embeddings. In Companion Proceedings of the The Web Conference, 2018.
|
| 295 |
+
|
| 296 |
+
Ashwin Paranjape, Austin R Benson, and Jure Leskovec. Motifs in temporal networks. In International Conference on Web Search and Data Mining, 2017.
|
| 297 |
+
|
| 298 |
+
Aldo Pareja, Giacomo Domeniconi, Jie Chen, Tengfei Ma, Toyotaro Suzumura, Hiroki Kanezashi, Tim Kaler, Tao B Schardl, and Charles E Leiserson. EvolveGCN: Evolving graph convolutional networks for dynamic graphs. In AAAI Conference on Artificial Intelligence, 2020.
|
| 299 |
+
|
| 300 |
+
Mahmudur Rahman and Mohammad Al Hasan. Link prediction in dynamic networks using graphlet. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases. Springer, 2016.
|
| 301 |
+
|
| 302 |
+
Ryan A Rossi, Anup Rao, Sungchul Kim, Eunyee Koh, Nesreen K Ahmed, and Gang Wu. Higherorder ranking and link prediction: From closing triangles to closing higher-order motifs. arXiv preprint arXiv:1906.05059, 2019.
|
| 303 |
+
|
| 304 |
+
David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by back-propagating errors. nature, 323(6088), 1986.
|
| 305 |
+
|
| 306 |
+
Aravind Sankar, Yanhong Wu, Liang Gou, Wei Zhang, and Hao Yang. DySAT: Deep neural representation learning on dynamic graphs via self-attention networks. In International Conference on Web Search and Data Mining, 2020.
|
| 307 |
+
|
| 308 |
+
Purnamrita Sarkar, Deepayan Chakrabarti, and Michael I Jordan. Nonparametric link prediction in dynamic networks. In International Conference on Machine Learning, 2012.
|
| 309 |
+
|
| 310 |
+
Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1), 2008.
|
| 311 |
+
|
| 312 |
+
Georg Simmel. The sociology of georg simmel, volume 92892. Simon and Schuster, 1950.
|
| 313 |
+
|
| 314 |
+
Uriel Singer, Ido Guy, and Kira Radinsky. Node embedding over temporal graphs. In International Joint Conference on Artificial Intelligence, 2019.
|
| 315 |
+
|
| 316 |
+
Balasubramaniam Srinivasan and Bruno Ribeiro. On the equivalence between positional node embeddings and structural graph representations. In International Conference on Learning Representations, 2019.
|
| 317 |
+
|
| 318 |
+
Riitta Toivonen, Jussi M Kumpula, Jari Saramäki, Jukka-Pekka Onnela, János Kertész, and Kimmo Kaski. The role of edge weights in social networks: modelling structure and dynamics. In Noise and Stochastics in Complex Systems and Finance, volume 6601. International Society for Optics and Photonics, 2007.
|
| 319 |
+
|
| 320 |
+
Rakshit Trivedi, Hanjun Dai, Yichen Wang, and Le Song. Know-evolve: deep temporal reasoning for dynamic knowledge graphs. In International Conference on Machine Learning, 2017.
|
| 321 |
+
|
| 322 |
+
Rakshit Trivedi, Mehrdad Farajtabar, Prasenjeet Biswal, and Hongyuan Zha. Dyrep: Learning representations over dynamic graphs. In International Conference on Learning Representation, 2019.
|
| 323 |
+
|
| 324 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017.
|
| 325 |
+
|
| 326 |
+
Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua ´ Bengio. Graph attention networks. In International Conference on Learning Representations, 2018.
|
| 327 |
+
|
| 328 |
+
Yanbang Wang, Pan Li, Chongyang Bai, VS Subrahmanian, and Jure Leskovec. Generic representation learning for dynamic social interaction. International Conference on Knowledge Discovery Data Mining, MLG workshop, 2020.
|
| 329 |
+
|
| 330 |
+
Da Xu, Chuanwei Ruan, Evren Korpeoglu, Sushant Kumar, and Kannan Achan. Self-attention with functional time representation learning. In Advances in Neural Information Processing Systems, 2019.
|
| 331 |
+
|
| 332 |
+
Da Xu, Chuanwei Ruan, Evren Korpeoglu, Sushant Kumar, and Kannan Achan. Inductive representation learning on temporal graphs. In International Conference on Learning Representation, 2020.
|
| 333 |
+
|
| 334 |
+
Muhan Zhang, Pan Li, Yinglong Xia, Kai Wang, and Long Jin. Revisiting graph neural networks for link prediction. arXiv preprint arXiv:2010.16103, 2020.
|
| 335 |
+
|
| 336 |
+
Le-kui Zhou, Yang Yang, Xiang Ren, Fei Wu, and Yueting Zhuang. Dynamic network embedding by modeling triadic closure process. In AAAI Conference on Artificial Intelligence, 2018.
|
| 337 |
+
|
| 338 |
+
Marinka Zitnik, Marcus W Feldman, Jure Leskovec, et al. Evolution of resilience in protein interactomes across the tree of life. Proceedings of the National Academy of Sciences, 116(10), 2019.
|
| 339 |
+
|
| 340 |
+
# A EFFICIENT LINK SAMPLING
|
| 341 |
+
|
| 342 |
+
Our efficient link sampling strategy contains two subroutines – Online probability computation (Alg.2) and Iterative sampling (Alg.3). The Online probability computation subroutine Alg.2 essentially works online to assign each new incoming link $( \{ u , v \} , t )$ with a pair of probabilities $\{ p _ { u , t } , p _ { v , t } \}$ such that
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
p _ { u , t } = \frac { \exp ( \alpha t ) } { \sum _ { ( e , t ^ { \prime } ) \in E _ { u , t } } \exp ( \alpha t ^ { \prime } ) } , \quad p _ { v , t } = \frac { \exp ( \alpha t ) } { \sum _ { ( e , t ^ { \prime } ) \in E _ { v , t } } \exp ( \alpha t ^ { \prime } ) } .
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
These probabilities will be used later in sampling (Alg.3) and do not need to be updated any more.
|
| 349 |
+
|
| 350 |
+
# Algorithm 2: Online probability computation $( G , \alpha )$
|
| 351 |
+
|
| 352 |
+
1 Initialize $V \emptyset$ , $\Omega \emptyset$ ;
|
| 353 |
+
2 for $( \{ u , v \} , t ) \in \mathcal { E }$ do
|
| 354 |
+
3 for $w \in \{ u , v \}$ do
|
| 355 |
+
4 if $w \not \in V$ then
|
| 356 |
+
5 V ← V ∪ {w};
|
| 357 |
+
6 Pw ← exp(αt);
|
| 358 |
+
7 else
|
| 359 |
+
8 Find $P _ { w } \in \Omega$ ;
|
| 360 |
+
9 $P _ { w } \gets P _ { w } + \exp ( \alpha t ) ;$
|
| 361 |
+
10 p ← exp(αt) ; Pw
|
| 362 |
+
11 Ω ← Ω ∪ {Pw};
|
| 363 |
+
|
| 364 |
+
12 Assign two probability scores: $( \{ ( u , p _ { u , t } ) , ( v , p _ { v , t } ) \} , t , ) \gets ( \{ u , v \} , t ) ;$
|
| 365 |
+
|
| 366 |
+
The Iterative sampling subroutine $\mathrm { A l g } . 3$ is an efficient implementation of step 5 in Alg.1. We may first show that the sampling probability of a link $( e , t )$ in $E _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ is proportional to $\exp ( \alpha ( t - t _ { \mathrm { p } } ) )$ in Prop.A.1.
|
| 367 |
+
|
| 368 |
+
# Algorithm 3: Iterative Sampling $( \mathcal { E } , \alpha , w _ { \mathsf { p } } , t _ { \mathsf { p } } )$
|
| 369 |
+
|
| 370 |
+
1 Initialize $V \emptyset$ , $\Omega \emptyset$ ;
|
| 371 |
+
2 for $( e , t ) \in \mathcal { E } _ { w _ { p } , t _ { p } }$ with an decreasing order of $t$ do
|
| 372 |
+
3 Sample $a \sim { \mathrm { U n i f } } [ 0 , 1 ]$ ;
|
| 373 |
+
4 $p _ { w _ { \mathrm { p } } , t }$ is the score of this link related to $w _ { \mathsf { p } }$ obtained from Alg.2;
|
| 374 |
+
5 if $a < p _ { w _ { p } , t }$ then
|
| 375 |
+
6 Return $( e , t )$ ;
|
| 376 |
+
|
| 377 |
+
7 Return $( \{ w _ { \mathrm { p } } , X \} , t _ { X } )$ ;
|
| 378 |
+
|
| 379 |
+
Proposition A.1. Based on the probabilities (Eq.9) pre-computed by Alg.2, Alg.3 will sample a link $( e , t )$ in $\mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ with probability proportional to $\mathrm { e x p } ( \bar { \alpha } ( t - t _ { \mathrm { p } } ) )$ .
|
| 380 |
+
|
| 381 |
+
Proof. To show this, we first order the timestamps of links in $\mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ between $[ t , t _ { \mathsf { p } } )$ as $t = t _ { 0 } ^ { \prime } < t _ { 1 } ^ { \prime } <$ $t _ { 2 } ^ { \prime } < \cdots < t _ { k } ^ { \prime } < t _ { \mathrm { p } }$ where there exists an link $( e ^ { \prime } , t _ { i } ^ { \prime } ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ for $t _ { i } ^ { \prime }$ . Then, the probability to sample a link $( e , t ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ satisfies
|
| 382 |
+
|
| 383 |
+
$$
|
| 384 |
+
\begin{array} { l } { p = p _ { w _ { \mathrm { p } } , t } \times \displaystyle \prod _ { i = 1 } ^ { k } \left( 1 - p _ { w _ { \mathrm { p } } , t _ { i } ^ { \prime } } \right) } \\ { = \displaystyle \frac { \exp ( \alpha t ) } { \sum _ { ( e ^ { \prime } , t ^ { \prime } ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t } } \exp { ( \alpha t ^ { \prime } ) } } \times \displaystyle \prod _ { i = 1 } ^ { k } \frac { \sum _ { ( e ^ { \prime } , t ^ { \prime } ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t _ { i - 1 } ^ { \prime } } } \exp ( \alpha t ^ { \prime } ) } { \sum _ { ( e ^ { \prime } , t ^ { \prime } ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t _ { i } ^ { \prime } } } \exp ( \alpha t ^ { \prime } ) } } \\ { = \displaystyle \frac { \exp ( \alpha t ) } { \sum _ { ( e ^ { \prime } , t ^ { \prime } ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t _ { 0 } } } \exp { ( \alpha t ^ { \prime } ) } } = \frac { \exp \left( \alpha \left( t - t _ { \mathrm { p } } \right) \right) } { \sum _ { ( e ^ { \prime } , t ^ { \prime } ) \in \mathcal { E } _ { w _ { \mathrm { p } } , t _ { 0 } } } \exp { \left( \alpha \left( t ^ { \prime } - t _ { \mathrm { p } } \right) \right) } } , } \end{array}
|
| 385 |
+
$$
|
| 386 |
+
|
| 387 |
+
which is exactly the probability that we need.
|
| 388 |
+
|
| 389 |
+
We have the following Thm.A.2 with a weak assumption that evaluates the complexity of Alg.3. We assume that links come in by following a Poisson point process with intensity $\tau$ , which is a frequently used assumption to model communication networks (Lavenberg, 1983). This result indicates that if $\alpha > 0$ , for each node, we only need to record the most recent $\textstyle O ( { \frac { \tau } { \alpha } } )$ links to sample. This result is important as it means our method can do online training and inference with time and memory complexity that are not related to the total number of links.
|
| 390 |
+
|
| 391 |
+
Theorem A.2. If the links that are connected to $w _ { \mathsf { p } }$ appear by following a Poisson point process with intensity $\tau$ . Then, the expected number of iterations of Alg.3 is bounded by $\begin{array} { r } { \operatorname* { m i n } \{ \frac { 2 \tau } { \alpha } + 1 , | \mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } } | \} } \end{array}$ .
|
| 392 |
+
|
| 393 |
+
Proof. The number of iterations of Alg.3 is always bounded by $| \mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } } |$ . So we only need to prove that the expected number of interactions of Alg.3 is bounded by $\begin{array} { r } { \frac { 2 \tau } { \alpha } + 1 } \end{array}$ .
|
| 394 |
+
|
| 395 |
+
To show this, we order the timestamps of links in $\mathcal { E } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ between $[ 0 , t _ { \mathrm { p } } )$ as $0 = t _ { 0 } < t _ { 1 } < t _ { 2 } <$ $\cdot \cdot \cdot < t _ { k } < t _ { \mathrm { p } }$ where there exists an link $( e , t _ { i } ) \in \dot { \mathcal { E } } _ { w _ { \mathrm { p } } , t _ { \mathrm { p } } }$ for $t _ { i }$ . Further define we define $Z _ { i } =$ $\exp ( \alpha ( t _ { i } - t _ { i - 1 } ) )$ for $i \in [ 1 , k ]$ .
|
| 396 |
+
|
| 397 |
+
Due to the definition of Poisson process, we know that each time difference in $\{ t _ { i } - t _ { i - 1 } \} _ { 1 \leq i \leq k }$ follows i.i.d. exponential distribution with parameter $\tau$ . Therefore, $\{ Z _ { i } \} _ { 1 \le i \le k }$ are also i.i.d.. Let $\begin{array} { r } { \psi = \mathbb { E } ( Z _ { i } ^ { - 1 } ) = \frac { \tau } { \alpha + \tau } } \end{array}$ .
|
| 398 |
+
|
| 399 |
+
The probability that Alg.3 runs $j$ iterations is equal to the probability that the link with timestamp $t _ { k + 1 - j } )$ gets sampled. That is
|
| 400 |
+
|
| 401 |
+
$$
|
| 402 |
+
\mathbb { P } ( \mathrm { i t e r } = j ) = \frac { \prod _ { i = 1 } ^ { k + 1 - j } Z _ { i } } { \sum _ { h = 1 } ^ { k } \prod _ { i = 1 } ^ { k + 1 - h } Z _ { i } } .
|
| 403 |
+
$$
|
| 404 |
+
|
| 405 |
+
Therefore, the expected number of iterations is
|
| 406 |
+
|
| 407 |
+
$$
|
| 408 |
+
\mathbb { E } ( \mathrm { i t e r } ) = \mathbb { E } \left[ \frac { \sum _ { j = 1 } ^ { k } j \prod _ { i = 1 } ^ { k + 1 - j } Z _ { i } } { \sum _ { h = 1 } ^ { k } \prod _ { i = 1 } ^ { k + 1 - h } Z _ { i } } \right] = \sum _ { j = 1 } ^ { k } j \mathbb { E } \left[ \frac { \prod _ { i = 1 } ^ { j - 1 } Z _ { i } ^ { \prime } } { \sum _ { h = 1 } ^ { k } \prod _ { i = 1 } ^ { h - 1 } Z _ { i } ^ { \prime } } \right] .
|
| 409 |
+
$$
|
| 410 |
+
|
| 411 |
+
where $Z _ { i } ^ { \prime } = Z _ { k + 1 - i } ^ { - 1 }$ and $\textstyle \prod _ { i = 1 } ^ { 0 } Z _ { i } ^ { \prime } = 1$ . Next we will prove that each item in right-hand-side of Eq.10 satisfies
|
| 412 |
+
|
| 413 |
+
$$
|
| 414 |
+
j \mathbb { E } \left[ \frac { \prod _ { i = 1 } ^ { j - 1 } Z _ { i } ^ { \prime } } { \sum _ { h = 1 } ^ { k } \prod _ { i = 1 } ^ { h - 1 } Z _ { i } ^ { \prime } } \right] \leq [ 1 + ( j - 1 ) ( 1 - \psi ) ] \psi ^ { j - 1 } .
|
| 415 |
+
$$
|
| 416 |
+
|
| 417 |
+
If this is true, then
|
| 418 |
+
|
| 419 |
+
$$
|
| 420 |
+
\begin{array} { l } { { \mathbb { E } ( \mathrm { i t e r } ) \leq \displaystyle \sum _ { j = 1 } ^ { k } [ 1 + ( j - 1 ) ( 1 - \psi ) ] \psi ^ { j - 1 } = \sum _ { j = 1 } ^ { k } \psi ^ { j - 1 } + \sum _ { j = 1 } ^ { k } ( j - 1 ) ( 1 - \psi ) \psi ^ { j - 1 } } } \\ { { \leq \displaystyle \frac { 1 } { 1 - \psi } + \frac { \psi } { 1 - \psi } = \frac { 2 \tau } { \alpha } + 1 . } } \end{array}
|
| 421 |
+
$$
|
| 422 |
+
|
| 423 |
+
Now, let us prove Eq.11. For $j = 1$ , Eq.11 is trivial. For $j > 1$ ,
|
| 424 |
+
|
| 425 |
+
$$
|
| 426 |
+
\mathbb { E } \left[ \frac { \prod _ { i = 1 } ^ { j - 1 } Z _ { i } ^ { \prime } } { \sum _ { h = 1 } ^ { k } \prod _ { i = 1 } ^ { h - 1 } Z _ { i } ^ { \prime } } \right] \leq \mathbb { E } \left[ \frac { \prod _ { i = 1 } ^ { j - 1 } Z _ { i } ^ { \prime } } { 1 + \sum _ { h = 2 } ^ { j } \prod _ { i = 1 } ^ { h - 1 } Z _ { i } ^ { \prime } } \right] \leq \frac { \prod _ { i = 1 } ^ { j - 1 } \mathbb { E } ( Z _ { i } ^ { \prime } ) } { 1 + \sum _ { h = 2 } ^ { j } \prod _ { i = 1 } ^ { h - 1 } \mathbb { E } ( Z _ { i } ^ { \prime } ) } = \frac { \psi ^ { j - 1 } } { \sum _ { i = 0 } ^ { j - 1 } \psi ^ { i } } ,
|
| 427 |
+
$$
|
| 428 |
+
|
| 429 |
+
where the second inequality is due to the Jensen’s inequality and the fact that for any positive $c _ { 1 } , c _ { 2 }$ , $\frac { x } { c _ { 1 } + c _ { 2 } x }$ is concave with respect to $x$ . Moreover, we also have
|
| 430 |
+
|
| 431 |
+
$$
|
| 432 |
+
[ 1 + ( j - 1 ) ( 1 - \psi ) ] \sum _ { i = 0 } ^ { j - 1 } \psi ^ { i } = j + \sum _ { i = 1 } ^ { j - 1 } \psi ^ { i } - ( j - 1 ) \psi ^ { j } \ge j .
|
| 433 |
+
$$
|
| 434 |
+
|
| 435 |
+
Combining Eq.12 and Eq.13, we prove Eq.11, which concludes the proof.
|
| 436 |
+
|
| 437 |
+
# B TREE-STRUCTURED SAMPLING
|
| 438 |
+
|
| 439 |
+
We may further decrease the sampling complexity by revising Alg. 1 into tree-structured sampling. Alg. 1 originally requires to sample link $M m$ times because we need to search $M$ links that connected to $w _ { 0 }$ in the first step and then sample one link for each of the $M$ nodes in each following step. A tree-structured sampling strategy may reduce this number: Specifically, we sample $k _ { i }$ links for each node in step $i$ but we make sure $\textstyle \prod _ { i = 1 } ^ { m } k _ { i } = M$ , which does not change the total number of walks. In this way, the times of link search decrease to $\textstyle \sum _ { i = 1 } ^ { m } k _ { 1 } k _ { 2 } \ldots k _ { i }$ . Suppose $M = 6 4$ , $m = 3$ , and $k _ { 1 } = 4 , k _ { 2 } = 4 , k _ { 3 } = 4$ , then the times of link search decrease to about $0 . 4 4 M m$ . Though empirical results below show that tree-structured sampling achieves slightly worse performance, it provides an opportunity to tradeoff between prediction performance and time complexity.
|
| 440 |
+
|
| 441 |
+

|
| 442 |
+
Figure 7: Effect of sampling of different tree structures on inductive performance.
|
| 443 |
+
|
| 444 |
+
We conduct more experiment to investigate this topic with Wikipedia and UCI datasets. The setup is as follows: first, we fix CAW sampling number $\dot { M } = 6 4 = 2 ^ { 6 }$ and length $m = 2$ , so that we always have $k _ { 1 } k _ { 2 } = M = 2 ^ { 6 }$ ; next, we assign different values to $k _ { 1 }$ , so that the shape of the tree changes accordingly; controlling other hyperparameters to be the optimal combination found by grid search, we plot the corresponding inductive AUC scores of CAW-N-mean on all testing edges in Fig. 7. It is observed that while tree-structured sampling may affect the performance to some extent, its negative impact is less prominent when the first-step sampling number $k _ { 1 }$ is relatively large, and our model still achieves state-of-the-art performance compared to our baselines. That makes the tree-structured sampling a reasonable strategy that can further reduce time complexity.
|
| 445 |
+
|
| 446 |
+
# C ADDITIONAL EXPERIMENTAL SETUP DETAILS
|
| 447 |
+
|
| 448 |
+
# C.1 DATASET INTRODUCTION AND ACCESS
|
| 449 |
+
|
| 450 |
+
We list the introduction of the six datasets as follows.
|
| 451 |
+
|
| 452 |
+
• Reddit1 is a dataset of posts made by users on subredditts over a month. Its nodes are users and posts, and its links are the timestamped posting requests. Wikipedia2 is a dataset of edits over wiki pages over a month, whose nodes represent human editors and wiki pages and whose links represent timestamped edits.
|
| 453 |
+
• Social Evolution3 is a dataset recording the detailed evolving physical proximity between students in a dormitory over a year, deterimined from wireless signals of their mobile devices. Enron4 is a communication network whose links are email communication between core employees of a cooperation over several years.
|
| 454 |
+
• $\mathrm { U C I } ^ { 5 }$ is a dataset recording online posts made by university students on a forum, but is non-attributed.
|
| 455 |
+
• $\mathbf { M O O C } ^ { 6 }$ is a dataset of online courses where nodes represent students and course content units such as videos and problem sets, and links represent student’s access behavior to a particular unit.
|
| 456 |
+
|
| 457 |
+
# C.2 BASELINES, IMPLEMENTATION AND TRAINING DETAILS
|
| 458 |
+
|
| 459 |
+
# C.2.1 CAW-N-MEAN AND CAW-N-ATTN
|
| 460 |
+
|
| 461 |
+
We first report the general training hyperparameters of our models in addition to those mentioned in the main text: on all datasets, we train both variants with mini-batch size 32 and set learning rate $=$ $1 . 0 \times 1 0 ^ { - 4 }$ ; the maximum training epoch number is 50 though in practice we observe that with early stopping we usually find the optimal epoch in fewer than 10 epochs; our early stopping strategy is that if the validation performance does not increase for more than 3 epoch then we stop and use the third previous epoch for testing; dropout layers with dropout probability $= 0 . 1$ are added to the RNN module, the MLP modules, and the self-attention pooling layer. Please refer to our code for more details.
|
| 462 |
+
|
| 463 |
+
In terms of the three hyperparameters controlling CAW sampling, we discussed them in Sec 5.3. For all datasets, they are systematically tuned with grid search, whose ranges are reported in Tab.4.
|
| 464 |
+
Table 4: Hyperparameter search range of CAW sampling.
|
| 465 |
+
|
| 466 |
+
<table><tr><td>Dataset</td><td>Sampling number M</td><td>Time decay α</td><td>Walk length m</td></tr><tr><td>Reddit</td><td>32,64,128</td><td>{0.25, 0.5, 1.0,2.0,4.0}×10-5</td><td>1,2,3,4</td></tr><tr><td>Wikipedia</td><td>32,64,128</td><td>{0.25,0.5,1.0,2.0,4.0}×10-6</td><td>2,3,4</td></tr><tr><td>MOOC</td><td>32,64,128</td><td>{0.25,0.5,1.0,2.0,4.0}×10-6</td><td>2,3,4,5</td></tr><tr><td>Social Evo.</td><td>32,64,128</td><td>{0.25,0.5,1.0,2.0,4.0,8.0}x10-6</td><td>1,2,3</td></tr><tr><td>Enron</td><td>32,64,128</td><td>{0.25,0.5,1.0,2.0,4.0}×10-7</td><td>1,2, 3,4</td></tr><tr><td>UCI</td><td>32,64,128</td><td>{0.6,0.8,1.0, 1.2, 1.4}×10-5</td><td>1,2,3</td></tr></table>
|
| 467 |
+
|
| 468 |
+
Apart from the hyperparameters controlling CAW sampling, hidden dimensions of CAW-N mentioned in Sec.4.3, including that of the various encodings, MLPs, RNN, and attention projection matrices, are relatively less tuned. We select them based on two principles: 1) when node & link attributes are available, dimension of all these modules are set to have the same dimensions as baselines; 2) when node & link attributes are unavailable, the dimensions are picked from 32, 64, 128, whichever leads to a better performance.
|
| 469 |
+
|
| 470 |
+
# C.2.2 BASELINES
|
| 471 |
+
|
| 472 |
+
We list the introduction of the six baselines as follows:
|
| 473 |
+
|
| 474 |
+
• DynAERNN (Goyal et al., 2020) uses a fully connected encoder to acquire network representations, passes them into LSTM and uses a fully connected network to decode the future network structures. JODIE (Kumar et al., 2019) applies RNNs to estimate the future embedding of nodes. The model was proposed for bipartite graphs while we properly modify it for standard graphs if the input graphs are non-bipartite. DyRep (Trivedi et al., 2019) also uses RNNs to learn node embedding while its loss function is built upon temporal point process.
|
| 475 |
+
• VGRNN (Hajiramezanali et al., 2019) generalizes the variational GAE (Kipf & Welling (2016)) to temporal graphs, which makes the prior depend on the historical dynamics and captures those dynamics with RNNs. EvolveGCN (Pareja et al., 2020) uses a RNN to estimate the GCN parameters for the future snapshots.
|
| 476 |
+
• TGAT (Xu et al., 2020) leverages GAT to extract node representations where the nodes’ neighbors are sampled from the history and encodes temporal information via Eq.7.
|
| 477 |
+
|
| 478 |
+
We introduce how we tune these baselines as follows.
|
| 479 |
+
|
| 480 |
+
DynAERNN. The model with code provided here is adapted into our evaluation pipeline. We follow most of the settings in the code. We tune the embedding size in {32, 64} and lookback in {2, 3, 5} to report the best performance.
|
| 481 |
+
|
| 482 |
+
JODIE. The model with code provided here is adapted into our evaluation pipeline. JODIE calculates the $L _ { 2 }$ distances between the predicted item embedding to other items and uses the rankings to evaluate their performance. Here, we consider the negative distances as the prediction score. Based on the prediction score, we calculate mAP and AUC. We split the data according to the setting in section 5.1. The model is trained for 50 epoches. The dimensions of the dynamic embedding is searched in{64, 128} and the best performance is reported.
|
| 483 |
+
|
| 484 |
+
DyRep. The model with code provided here is adapted into our evaluation pipeline. We follow most of the settings in the paper. That is, we set the number of samples for survival to 5, gradient clipping to 100. And we tune the hidden unit size and embedding size in {32, 64} to report the best performance. The model uses likelihood based on point process to predict links and therefore we use these likelihood scores to compute AUC and AP.
|
| 485 |
+
|
| 486 |
+
VGRNN. The model with code provided here is adapted into our evaluation pipeline. We use several of its default settings: one-hot node features as input when node attributes are unavailable as suggested by the original paper (Hajiramezanali et al., 2019), one layer of GRU network as the history tracking backbone, a learning rate of 1e-2, and training for 1000 epochs. Its hidden dimension is searched in {32, 64} and the best performance is reported.
|
| 487 |
+
|
| 488 |
+
EvolveGCN. The model with code provided here is adapted into our evaluation pipeline. We utilize EvolveGCN-O version since it can capture more graph structural information. For most hyperparameters, we follow the default values. According to our setting, we sample an equal amount of negative links, which means we set negative_mult_training and negative_mult_test to 1. One central hyperparameter needs to be further tuned is number of previous snapshots used for training and testing. We search its optimal value in {3, 4, 6, 8, 10} when tuning the model for most datasets. Since Enron only contains 11 snapshots, we search its optimal value in {3,4,5,6}.
|
| 489 |
+
|
| 490 |
+
TGAT. The model with code provided here is adapted into our evaluation pipeline. We use several of their default settings. That is, we use product attention, set the number of attention heads to 2, set the number of graph attention layers to 2, and use 100 as their default hidden dimension. One central hyperparameter that needs to be further tuned is the degree of their neighbor sampling. We search its optimal value in {10, 20, 30} when tuning the model.
|
| 491 |
+
|
| 492 |
+
C.3 EVALUATION OF SNAPSHOT-BASED BASELINES
|
| 493 |
+
Table 5: Snapshot split for evaluating snapshot-based baselines.
|
| 494 |
+
|
| 495 |
+
<table><tr><td></td><td>Reddit</td><td>Wikipedia</td><td>MOOC</td><td>Social Evo.</td><td>Enron</td><td>UCI</td></tr><tr><td>total snapshots</td><td>174</td><td>20</td><td>20</td><td>27</td><td>11</td><td>88</td></tr><tr><td>exact split</td><td>122 /26 /26</td><td>14/3/3</td><td>14/3/3</td><td>19/4/4</td><td>7/2/2</td><td>62/13/13</td></tr><tr><td>referenced baseline</td><td>EvolveGCN</td><td>-</td><td>-</td><td>VGRNN</td><td>VGRNN</td><td>EvolveGCN</td></tr></table>
|
| 496 |
+
|
| 497 |
+
We make the following decisions to evaluate snapshot-based baselines in a fair manner, so that their performances are comparable to those derived from the stream-based evaluation procedure. The first step we do is to evenly split the whole dataset chronologically into a number of snapshots. We determine the exact number of snapshots by referring the three snapshot-based baselines we use. For Wikipedia and MOOC dataset which are not used by any snapshot-based baseline, we split them into a total of 20 snapshots. Next, we need to determine the proportions of these snapshots assigned each to training, validation, and testing set. In doing this, our principle is that the proportions of these three sets should be close to 70:15:15 as much as possible, since that ratio is what we use for evaluating stream-based baselines and our proposed method. These decisions lead to our final splitting scheme summarized in Tab. 5.
|
| 498 |
+
|
| 499 |
+
Extra care should also be taken when testing snapshot-based methods. For a queried link in a snapshot, usually snapshot-based methods only make a binary prediction whether or not that link may exist at any time in that snapshot. They do not, however, take care of the case that the link may appear multiple times at different time points within that snapshot’s time range. This lead to a different evaluation scheme than stream-based methods, which do consider the multiplicity of links. Therefore, when testing snapshot-based methods, if a link appear in a certain snapshot for multiple times, we record the model’s prediction the same number of times before computing its performance metrics.
|
| 500 |
+
|
| 501 |
+
# C.4 CHOICE OF EVALUATION METRIC
|
| 502 |
+
|
| 503 |
+
When considering link prediction as a binary classification problem, the existing literature usually choose metrics from the following: Area Under the ROC Curve (AUC), Average Precision (AP), and Accuracy (ACC). The reason we do not use ACC is that a proper confidence threshold of decision is ill-defined in literature, which leads to unfair comparison across different works.
|
| 504 |
+
|
| 505 |
+
# C.5 COMPUTING INFRASTRUCTURE
|
| 506 |
+
|
| 507 |
+
All the experiments were carried out on a Ubuntu 16.04 server with Xeon Gold 6148 2.4 GHz 40-core CPU, Nvidia 2080 Ti RTX 11GB GPU, and 768 GB memory.
|
| 508 |
+
|
| 509 |
+
# D ADDITIONAL EXPERIMENTAL RESULTS
|
| 510 |
+
|
| 511 |
+
# D.1 PERFORMANCE IN AVERAGE PRECISION
|
| 512 |
+
|
| 513 |
+
<table><tr><td>Task</td><td>Methods</td><td>Reddit</td><td>Wikipedia</td><td>MOOC</td><td>Social Evo.</td><td>Enron</td><td>UCI</td></tr><tr><td rowspan="7">Trngeeier</td><td>DynAERNN JODIE maas mna</td><td>58.63 ±5.42 80.03 ± 0.13</td><td>54.94±2.29 76.90 ± 0.49</td><td>59.84±1.26 82.27 ± 0.46†</td><td>54.76±1.33 87.96 ± 0.12†</td><td>54.89±3.79 79.80 ± 1.48†</td><td>51.59 ± 3.92 71.64 ± 0.62</td></tr><tr><td>DyRep VGRNN</td><td>61.28 ± 1.89</td><td>57.57 ± 2.56</td><td>62.29 ± 2.09</td><td>75.42 ± 0.32</td><td>69.97 ± 0.92</td><td>63.08 ± 7.40</td></tr><tr><td></td><td>60.64 ± 0.68</td><td>52.55 ± 0.82</td><td>65.44 ± 0.82</td><td>67.83 ± 0.53</td><td>67.93 ± 0.88</td><td>67.50 ± 0.92</td></tr><tr><td>EvolveGCN</td><td>62.99 ± 0.17</td><td>55.64 ±1.03</td><td>52.28 ±1.80</td><td>52.26 ± 1.16</td><td>47.36 ± 1.24</td><td>80.98 ± 1.09†</td></tr><tr><td>TGAT</td><td>95.17 ± 0.91†</td><td>93.18 ± 0.73†</td><td>72.91 ± 0.92</td><td>52.17± 1.94</td><td>63.83 ± 3.70</td><td>75.27 ± 2.34</td></tr><tr><td>CAW-N-mean</td><td>98.05 ± 0.87*</td><td>96.01±0.25*</td><td>90.36 ±0.80*</td><td>92.16 ± 1.03*</td><td>93.93 ± 0.66*</td><td>99.63 ± 0.34*</td></tr><tr><td>CAW-N-attn DynAERNN</td><td>98.08 ±0.66*</td><td>97.86 ±0.63*</td><td>90.35 ±0.81*</td><td>93.29 ±1.90*</td><td>92.73±0.76*</td><td>100.00 ±0.00*</td></tr><tr><td rowspan="8">PO ‘S'A Mou</td><td></td><td>66.59 ± 2.90</td><td>63.76±2.82</td><td>82.02 ±1.59</td><td>52.54±0.22</td><td>55.50± 2.07</td><td>57.29±2.52</td></tr><tr><td>JODIE</td><td>83.15 ± 0.03</td><td>80.54 ± 0.06</td><td>87.95 ± 0.08</td><td>91.40 ± 0.04†</td><td>89.57± 0.30</td><td>76.34 ± 0.17</td></tr><tr><td>DyRep</td><td>66.73 ± 1.99</td><td>76.89 ± 0.31</td><td>88.25 ± 1.20†</td><td>89.41 ± 0.29</td><td>95.97 ± 0.28†</td><td>93.60 ± 1.47†</td></tr><tr><td>VGRNN</td><td>52.84 ±0.66</td><td>60.99 ± 0.55</td><td>62.95 ± 0.58</td><td>69.20 ± 0.52</td><td>67.93 ± 0.88</td><td>67.50 ± 0.92</td></tr><tr><td>EvolveGCN</td><td>66.29 ± 0.52</td><td>53.82 ± 1.64</td><td>51.53 ± 0.92</td><td>52.01 ± 0.67</td><td>46.56 ± 1.89</td><td>76.30 ± 0.33</td></tr><tr><td>TGAT</td><td>97.09 ± 0.18†</td><td>95.17 ± 0.15†</td><td>71.77 ± 0.23</td><td>52.48 ± 0.52</td><td>59.70 ± 1.49</td><td></td></tr><tr><td>CAW-N-mean</td><td>98.89 ±0.04*</td><td>99.04 ± 0.04*</td><td>90.99 ± 0.96*</td><td>93.71± 0.75*</td><td>92.93 ± 0.94</td><td>75.01 ± 0.72 98.86 ± 0.95*</td></tr><tr><td>CAW-N-attn</td><td>99.90 ± 0.05*</td><td>99.55 ± 0.30*</td><td>91.24 ± 0.93*</td><td>94.17 ± 0.86*</td><td>92.38 ± 1.36</td><td>98.53±0.64*</td></tr><tr><td rowspan="11">Trlrrseeera</td><td>DynAERNN</td><td>85.58 ± 2.12</td><td>76.58 ± 1.41</td><td>89.29± 0.49</td><td>66.58 ± 1.84</td><td>60.90±2.70</td><td>84.95± 2.13</td></tr><tr><td>JODIE</td><td>91.14 ± 0.01</td><td>91.39 ± 0.04</td><td>91.19 ± 0.03†</td><td>89.22 ± 0.01</td><td>91.94 ± 0.01</td><td>80.27 ± 0.08</td></tr><tr><td>DyRep</td><td>67.54 ± 2.02</td><td>77.36 ± 0.25</td><td>90.49 ± 0.03</td><td>94.48 ± 0.01†</td><td>97.14 ± 0.07†</td><td></td></tr><tr><td>VGRNN</td><td>50.87 ± 0.81</td><td>67.66 ± 0.89</td><td>83.70 ± 0.56</td><td>78.66 ± 0.67</td><td>94.02 ± 0.52</td><td>95.29 ± 0.13†</td></tr><tr><td>EvolveGCN</td><td>54.49 ± 0.73</td><td>55.84 ± 0.37</td><td>51.80 ± 0.46</td><td>56.90 ± 0.54</td><td>69.72 ± 0.49</td><td>82.23 ± 0.56</td></tr><tr><td>TGAT</td><td>98.38 ± 0.01†</td><td>96.65 ± 0.06†</td><td>69.75 ± 0.23</td><td>57.37 ± 1.18</td><td>57.37 ± 0.18</td><td>81.63 ± 0.23</td></tr><tr><td>CAW-N-mean</td><td>99.96 ± 0.01*</td><td>99.91±0.03*</td><td>92.05 ± 0.88</td><td>95.90 ± 0.09*</td><td></td><td>60.25 ± 0.31</td></tr><tr><td>CAW-N-attn</td><td>99.99 ± 0.01*</td><td></td><td>92.23±0.76*</td><td></td><td>94.93 ± 0.39</td><td>95.89 ± 0.87</td></tr><tr><td></td><td></td><td>99.89±0.03*</td><td></td><td>96.37 ± 0.09*</td><td>96.13 ± 0.37</td><td>98.86±0.38*</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 514 |
+
|
| 515 |
+
Table 6: Performance in Average Precision (AP) (mean in percentage $\pm 9 5 \%$ confidence level.) $\dagger$ highlights the best baselines. ∗, bold font, bold font∗ respectively highlights the case where our models’ performance exceeds the best baseline on average, by $7 0 \%$ confidence, by $9 5 \%$ confidence.
|
| 516 |
+
|
| 517 |
+
# D.2 MORE DISCUSSION ON STREAM-BASED VS. SNAPSHOT-BASED METHODS
|
| 518 |
+
|
| 519 |
+
Stream-based methods usually treat each temporal link as an individual training instance. In contrast, snapshot-based methods stack all the temporal links within a time slice into one static graph snapshot and do not further distinguish temporal order of links within that snapshot. In Tab. 2 and 6 we saw that stream-based methods generally exhibit better performance than snapshot-based methods. An important reason is that stream-based methods are able to access the few most recent interactions previous to the target link to predict. This makes them especially advantageous when used to model many common temporal networks whose dynamics are governed by some short-term laws. In contrast, snapshot-based methods are less able to access such immediate history, because they make prediction on all links within one future snapshot all at once. In principle they could alleviate this problem by making very fine-grained snapshots so that less immediate history is missed. However, this is not practical with real-word large temporal graphs whose temporal links come in millions, which leads to snapshot sequences of extreme length intractable to their recurrent neural structure. This issue was also observed by the recent work to model social interacting behaviors (Wang et al., 2020), although temporal convolutional networks may alleviate this issue to some extent. That said, snapshot-based methods usually has the advantage that they usually consume less memory and computation time. Stream-based methods on the other hand need to manage how they sample history very carefully to balance the efficiency and effectiveness. Our proposed algorithm on CAW sampling comes into the place in light of this to solve the problem.
|
| 520 |
+
|
| 521 |
+

|
| 522 |
+
Figure 8: Visualizing most discriminatory CAWs, and their occurrence ratios with positive / negative samples.
|
| 523 |
+
|
| 524 |
+
# E VISUALIZING CAWS AND AWS
|
| 525 |
+
|
| 526 |
+
Here, we introduce one way to visualize and interpret CAWs. Our interpretation can also illustrate the importance to capture the correlation between walks to represent the dynamics of temporal networks, where the set-based anonymization of CAWs can work while AWs will fail. The basic idea of our intrepretation is to identify different shapes of CAWs via their patterns encoded in $I _ { C A W }$ , and compare their contributions to the link-prediction confidence. The idea will be also used to interpret AWs so that we can compare CAWs with AWs.
|
| 527 |
+
|
| 528 |
+
First, we define the shapes of walks based on $I _ { C A W }$ . Recall from Eq. 3 that $g ( w , S _ { u } )$ encodes the number of times node $w$ that appears in different walk positions w.r.t source node $u$ . This encoding induces a temporal shortest-path distance $d _ { u w }$ between node $w$ and $u$ : $d _ { u w } \triangleq \operatorname* { m i n } \{ i | g ( w , S _ { u } ) [ i ] >$ $0 \}$ . Note that in temporal networks, there is not a canonical way to define shortest-path distance between two nodes as there is no static structures. So our definition $d _ { u w }$ can be viewed the shortestpath distance between u and w over the subgraph that consists of walks in $S _ { u }$ . Based on the way to define $( d _ { u w } , d _ { v w } )$ , we introduce the mapping from $I _ { C A W }$ of the node $w$ to a coordinate of this node in the subgraph that consists of walks in $S _ { u } \cap S _ { v }$ : $g ( w , S _ { u } ) , g ( w , S _ { v } ) ) \to \mathrm { c o o r } ( w ; u , v ) = ( d _ { u w } , d _ { v u }$ ). This cooredinate can be viewed as a relative coordinate of node $w$ w.r.t. the source nodes $u$ , $v$ . Each walk $W \in S _ { u } \cup S _ { v }$ can then represented as a sequence of such coordinates by mapping each node’s $I _ { C A W }$ to a coordinate. The obtained sequence can be viewed as a shape of $W$ and we denote the obtained shape as $s _ { C A W } ( W )$ . For instance, in the toy example shown by Fig. 2 right, the first CAW in $S _ { u }$ , $u b a c$ is mapped to a new coordinate sequence $( 0 , 2 ) \overset { \cdot } { } ( \bar { 1 } , 2 ) \overset { - } { } ( 2 , \infty ) ( 3 , \infty )$ . The $\infty$ marks the setting that node $a , c$ do not appear in $S _ { v }$ .
|
| 529 |
+
|
| 530 |
+
Next, we score the contributions of CAWs with different shapes. We use CAW-N-Mean as enc $( S _ { u } \cup S _ { v } )$ is simply mean over the encodings of sampled CAWs and further use linear projection $\beta ^ { T } \mathrm { e n c } ( S _ { u } \cup S _ { v } )$ to compute the final scalar logit for prediction. As the two operations mean and projection are commutative, the above setting allows each CAW $\hat { W _ { i } }$ contributing a scalar score $l o g i t ( \hat { W } _ { i } ) = \beta ^ { T } \mathrm { e n c } ( \hat { W } _ { i } )$ to the final logit.
|
| 531 |
+
|
| 532 |
+
Fig. 8 lists the 3 highest-scored and 3 lowest-scored shapes of CAW, which are extracted from the Wikipedia dataset with $M = 3 2$ and $m = 3$ . A law of general motif closure can be observed from the highest-scored CAWs: two nodes that commonly appear in some types of motif are more inclined to have a link in between. For example, the highest-scored shape of CAW, $( 0 , \infty ) ( 1 , 2 ) ( 2 , 3 ) $ $( 1 , 2 )$ , implies that the nodes except the first in this CAW appear in the sampled common 3-hop neighborhood around the two nodes between which the link is to be predicted. Therefore, CAW-N essentially adaptively samples a temporal motif closure pattern that is very informative to predict this link. CAW-N does not explicitly enumerating or counting these motif patterns. In contrast, when CAWs do not bridge the two nodes, as shown in top-2 lowest-scored CAWs, very unlikely there will exist a link. Fig. 8 also displays each of the 6 CAW’s occurrence ratio with positive and negative links. The difference within each pair of ratios is an indicator of the corresponding CAW’s discriminatory power. We also see that the discriminatory power of CAWs is very strong: highest-scored CAWs almost never occur with negative links, and lowest-scored CAWs also seldom occur with positive links.
|
| 533 |
+
|
| 534 |
+

|
| 535 |
+
Figure 9: Visualizing all AWs, and their occurrence ratios with positive / negative samples.
|
| 536 |
+
|
| 537 |
+
We further apply the similar procedure to analyze the AWs introduced in Sec. 4.1 and the model Ab.5 of Tab. 3 used for ablation study. Note that AW cannot establish the correlation between walks, each single AW itself, say $W = ( v _ { 0 } , v _ { 1 } , . . . , v _ { m } )$ , decides its own shape $s _ { A W } ( W )$ . We directly set $s _ { A W } ( W ) = I _ { A W } ( v _ { 0 } ; W ) \to I _ { A W } ( v _ { 2 } ; W ) \to \cdots \to I _ { A W } ( v _ { m } ; W )$ with $I _ { A W } ( w ; W )$ defined in Eq. 2. As the Wikipedia dataset is a bipartite graph, there are in total four different shapes when $m = 3$ as listed align with the $\mathbf { X }$ -axis of Fig. 9. For illustration, we explain one shape of AW as an example, say $0 1 2 1$ : The corresponding walks have the second and the fourth nodes correspond to the same node, which the first, second and third nodes are different. As shown in Fig. 9, we can see that AW’s occurrence with positive versus negative links are highly mixed-up, compared to CAW’s. That suggests that AWs possess significantly less discriminatory power than CAWs. The main reason is that AWs do not have set-based anonymization, so they cannot capture the correlation between walks/motifs but CAWs can do that. This observation further gives a reason on why the model Ab.5 of Tab. 3 only achieves some performance on-par with the model Ab.2 where we totally remove the anonymization procedure: the anonymization adopted by AWs loses too much information of the structure and cannot benefit the prediction much. However, the original CAW-N well captures such information via the set-based anonymization.
|
parse/train/KYPz4YsCPj/KYPz4YsCPj_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/KYPz4YsCPj/KYPz4YsCPj_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/KYPz4YsCPj/KYPz4YsCPj_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkesVkHtDr/rkesVkHtDr.md
ADDED
|
@@ -0,0 +1,470 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# META-LEARNING RUNGE-KUTTA
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Initial value problems, i.e. differential equations with specific, initial conditions, represent a classic problem within the field of ordinary differential equations (ODEs). While the simplest types of ODEs may have closed-form solutions, most interesting cases typically rely on iterative schemes for numerical integration such as the family of Runge-Kutta methods. They are, however, sensitive to the strategy the step size is adapted during integration, which has to be chosen by the experimenter. Here, we show how the design of a step size controller can be cast as a learning problem, allowing deep networks to learn to exploit structure in the initial value problem at hand in an automatic way. The key ingredients for the resulting Meta-Learning Runge-Kutta (MLRK) are the development of a good performance measure and the identification of suitable input features. Traditional approaches suggest the local error estimates as input to the controller. However, by studying the characteristics of the local error function we show that including the partial derivatives of the initial value problem is favorable. Our experiments demonstrate considerable benefits over traditional approaches. In particular, MLRK is able to mitigate sudden spikes in the local error function by a faster adaptation of the step size. More importantly, the additional information in the form of partial derivatives and function values leads to a substantial improvement in performance. The source code can be found at https://www.dropbox.com/sh/ rkctdfhkosywnnx/AABKadysCR8-aHW_0kb6vCtSa?dl $= 0$
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Differential equations in their general form cover an extremely wide variety of disciplines: While many applications are rather intuitive, as for instance simple Newtonian physics and engineering, other more exotic use cases include the governing of price evolution in economics (Black & Scholes, 1973), the study of rates in chemical reactions (Scholz & Scholz, 2014), and the modeling of population growths in biology (Lotka, 1925; Volterra, 1926). In medicine, differential equations may be used to model cancer growth (Ilea et al., 2013), diabetes and the glucose metabolism (Esna-Ashari et al., 2017) as well as for pharmaceutical drug design (Deuflhard, 2000). Recently, differential equations have also been used as a way to design neural networks (Chen et al., 2018). Unfortunately, finding an analytical solution in closed form is in many cases very difficult, if not impossible. Therefore, a variety of numerical integration methods have been developed to obtain accurate, but approximate solutions. Arguably, the most prominent ones are Runge-Kutta methods, a family of integration methods for initial value problems. However, setting up Runge-Kutta involves several design choices, one of which is the step size controller. Using an adaptive step size strategy instead of a constant step size can often increase efficiency by several orders of magnitude, $c . f$ . (Söderlind, 2006). Their performance is hampered by the fact that they only make use of hand-designed features.
|
| 12 |
+
|
| 13 |
+
Contribution. We show how to cast the design of a step size controller for Runge-Kutta as a learning problem, $c . f$ . Fig. 1. The key ingredients of the resulting Meta-Learning Runge-Kutta (MLRK) are the identification of a good performance measure and appropriate inputs.
|
| 14 |
+
|
| 15 |
+
Related Work. Various approaches to control the step sizes in Runge-Kutta methods have been proposed. While some rely on signal processing principles where the goal is to produce a smooth step size sequence in conjunction with acceptable local errors, others are based on the assumption that step sizes should be adapted to a prescribed function of the solution, e.g. to preserve structure in geometric integration (Söderlind, 2006). In this work we will focus on control theoretic approaches which aim to keep the local error associated with a single step close to a tolerance parameter.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Meta-Learning Runge-Kutta: The model represented by the blue block determines the step size adjustment $\log r _ { n - 1 }$ using a LSTM and a linear layer, $c . f$ . Eq. (10). The Runge-Kutta update then determines the new step size $\log h _ { n } = \log h _ { n - 1 } + \log r _ { n - 1 }$ . The new step size is used to perform the next Runge-Kutta step which computes the approximation $y _ { n + 1 }$ at time step $t _ { n + 1 }$ and an error estimate $\mathrm { e r r } _ { n + 1 }$ according to (12). Then the next input $x _ { n + 1 }$ for the model is computed.
|
| 19 |
+
|
| 20 |
+
Specifically, the design of the step size control algorithm is learned within MLRK. Indeed, casting algorithm design as a learning problem is not new. Andrychowicz et al. (2016) learned a gradientbased optimizer for nonlinear unconstrained optimization problems. Wichrowska et al. (2017) extended this work by introducing a hierarchical RNN architecture which improves the generalization ability of the optimizer. Schramowski et al. (2018) demonstrated the benefit of a learned projectionfree convex optimization algorithm, which relies on conditional gradients. Finally, Chen et al. (2017) cast the design of gradient-free black-bock optimization as a learning problem.
|
| 21 |
+
|
| 22 |
+
Furthermore, other approaches to solve differential equations using neural networks have been proposed, too. Lagaris et al. (1998) suggested to use a feed-forward neural network to approximate the solution of an ordinary or partial differential equation with initial or boundary conditions. Inspired by the Galerkin method, Sirignano & Spiliopoulos (2018) used a deep neural network to directly approximate the solution of a high-dimensional partial differential equation. E & Yu (2018) proposed the Deep Ritz method as a means to solve variational problems that arise from partial differential equations. Han et al. (2018) cast the problem of solving semilinear parabolic partial differential equations as a learning problem by using the reformulation of these differential equations as backward stochastic differential equations. In all of the above approaches, a neural network is used to help approximate the solution of the differential equation. The learning process corresponds to the numerical computation of a solution of the differential equation. In contrast, MLRK learns to improve the numerical integration process itself.
|
| 23 |
+
|
| 24 |
+
We proceed as follows. As the first step, i.e. identifying a good performance measure, we consider the general objective of step size control as well as the simplified and more practical objective that many controllers are based on. Then, we identify useful inputs by analyzing existing step size control algorithms. Furthermore, we show how local information about the ODE can be used as additional favorable inputs. Before concluding, we demonstrate empirically how our proposed controller can be used to improve step size control and investigate the benefit of different inputs.
|
| 25 |
+
|
| 26 |
+
# 2 INITIAL VALUE PROBLEMS AND RUNGE-KUTTA METHODS
|
| 27 |
+
|
| 28 |
+
We give a brief introduction to initial value problems and Runge-Kutta methods, a numerical method for solving these problems. Furthermore, we will recap standard step size controllers and point out their underlying assumptions.
|
| 29 |
+
|
| 30 |
+
Basics of Initial Value Problems and Runge-Kutta Methods. An ordinary differential equation describes a system that depends on one variable, often referred to as time. An initial value problem additionally provides initial values: $y ^ { \prime } = g ( t , y ) , \quad y ( t _ { 0 } ) = y _ { 0 }$ , with a function $g : [ a , b ] \times \mathbb { R } ^ { m } $ $\mathbb { R } ^ { m }$ , $m \in \mathbb { N }$ . As closed-form solutions can be very hard to find, numerical methods such as RungeKutta methods have been developed. Their mathematical underpinning is quite evolved (Butcher, 2008; Hairer et al., 2000; Hairer & Wanner, 2002). A brief recap can be found in the appendix.
|
| 31 |
+
|
| 32 |
+
For iterative solvers, the local truncation error—the error committed in a single step using step size $h$ —constitutes an important tool to control the step size as it allows to access the fitness of a step size.
|
| 33 |
+
|
| 34 |
+
Definition 2.1. The local truncation error in step $n + 1$ is defined as
|
| 35 |
+
|
| 36 |
+
$$
|
| 37 |
+
\mathrm { e r r } _ { n + 1 } ( h ) = \| y ( t _ { n } + h ) - y _ { n + 1 } \| = C ( t _ { n } ) h ^ { p + 1 } + \mathcal { O } ( h ^ { p + 2 } ) ,
|
| 38 |
+
$$
|
| 39 |
+
|
| 40 |
+
where $y _ { n + 1 } = \Phi ( t _ { n } , y _ { n } , h )$ is a single Runge-Kutta step of a $p$ -th order method using step size $h$ . We call $C ( t _ { n } )$ the principal error term.
|
| 41 |
+
|
| 42 |
+
We will also denote the local truncation error as local error and refer to the appendix for simple ways to estimate it. We denote the error estimates as $\operatorname { e r r } _ { n }$ .
|
| 43 |
+
|
| 44 |
+
The Objective of Step Size Control. As numerical integration is used to approximate a solution, high accuracy is a desired property. However, in practice, computational resources might be limited and efficient use of these resources can be crucial in some applications. Hence, an efficient step size controller should maximize the accuracy of the approximate solution while minimizing the computational cost. These are competing goals and require a trade-off, which is achieved by considering the Lagrangian of the error $E ( H )$ and the work cost $W ( H )$ produced by a sequence of step sizes $H \ = \ ( h _ { n } ) _ { n = 0 } ^ { N - 1 }$ , $E ( H ) + \lambda \cdot W ( H )$ . Butcher (2008) uses two integrals describing the error $E ( H )$ and the work cost $W ( H )$ . Under some assumptions one can show that optimal step sizes w.r.t. this objective causes local errors equal to the Lagrange multiplier $\lambda$ , which is often referred to as the tolerance parameter. Namely, we need to assume that the global error is equal to the sum of local errors and all step sizes are small enough so that the loss can be approximated by the integrals suggested by Butcher. However, these are quite strong assumptions. The optimal step size depends on the tolerance parameter, and hence, might be too large. Furthermore, the assumption that the global error is equal to the sum of the local errors is not true in general.
|
| 45 |
+
|
| 46 |
+
Classical Step Size Control. Most common step size control mechanisms aim to keep the local errors equal to a tolerance parameter so that a standard controller is based on the following idea: For a RungeKutta method of order $p$ , the local error for step size $h$ at time $t$ is approximately err $\approx C ( t ) h ^ { p + 1 }$ , and, accordingly, the desired optimal step size $h _ { \mathrm { o p t } }$ is given by $h _ { \mathrm { o p t } } \approx h ( \mathrm { t o l / e r r } ) ^ { \frac { 1 } { p + 1 } }$ . This formula is then used to adapt the step size as
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
h _ { n + 1 } = r _ { n } h _ { n } , \qquad r _ { n } & = \operatorname* { m a x } \left( \alpha , \operatorname* { m i n } \left( \beta , \gamma \left( { \frac { \mathrm { t o l } } { \mathrm { e r r } _ { n + 1 } } } \right) ^ { \frac { 1 } { p + 1 } } \right) \right) ,
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where a safety factor $0 < \gamma < 1$ and a minimal and maximal factor $\alpha , \beta \in \mathbb { R } _ { \ge 0 }$ , $\alpha \leq \beta$ are included to avoid excessive step rejection and ensure a smooth step size control. Söderlind (2002) pointed out that the underlying assumptions of Eq. (2) are rather strong. It assumes slow variations in $C$ and requires $h$ to be sufficiently small so that it exhibits its theoretical asymptotic behavior. Both are not true in general.
|
| 53 |
+
|
| 54 |
+
Control Theory on Step Size Control in Runge-Kutta Methods. Gustafsson et al. (1988) discussed step size control in the context of a proportional-integral-derivative (PID) controller. The classical step size control mechanism in Eq. (2) can be regarded as an I-controller. They then demonstrated the oscillatory behavior of this controller when applied to certain problems. They report the poor stabilizing capability of an I-controller as the origin of these oscillations, which are further accentuated by a large integration gain. To overcome this, they Gustafsson et al. (1988) suggested a PI-controller, which in addition to the integral term used in a standard step size control, also includes a proportional term and can be expressed as
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
h _ { n + 1 } = r _ { n } h _ { n } , \qquad r _ { n } & = \operatorname* { m a x } \left( \alpha , \operatorname* { m i n } \left( \beta , \gamma \left( { \frac { { \mathrm { t o l ~ } } } { { \mathrm { e r r } } _ { n + 1 } } } \right) ^ { n _ { 1 } } \left( { \frac { { \mathrm { t o l } } } { { \mathrm { e r r } } _ { n } } } \right) ^ { n _ { 2 } } \right) \right) .
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
A Predictive Controller. Both the classical step size controller, see Eq. (2), and the PI-controller in Eq. (3) rely on the assumption that the local truncation error can be described as a function of $h$ that remains independent of $t$ . This is certainly not true for all cases. Therefore, Gustafsson (1994), e.g., discussed a controller based on a prediction of the principal error term. A simple model that assumes a constant linear trend in $\log C ( t )$ was suggested. Implementing the predicted principal error leads to
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
h _ { n + 1 } = { \frac { h _ { n } } { h _ { n - 1 } } } \left( { \frac { \mathrm { t o l } } { \mathrm { e r r } _ { n + 1 } } } \right) ^ { n _ { 1 } } \left( { \frac { \mathrm { e r r } _ { n } } { \mathrm { e r r } _ { n + 1 } } } \right) ^ { n _ { 2 } } h _ { n } .
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
# 3 META-LEARNING RUNGE-KUTTA: NEURAL STEP-SIZE CONTROLLER
|
| 67 |
+
|
| 68 |
+
Step size controllers for Runge-Kutta are typically still designed by hand. Formulas such as Eq. (2), (3) and (4) require parameter fine-tuning. In this work, we take a different tack and instead suggest to replace these hand-designed update rules with a learned controller, hereinafter referred to as optimizer. The key steps to cast the design of a controller as a learning problem is to determine a good performance measure and appropriate inputs.
|
| 69 |
+
|
| 70 |
+
Performance measure. As the first step we need to identify an appropriate performance measure. As discussed, a trade-off between numerical accuracy and computational cost of the solution must be made, e.g. by considering the Lagrangian of error and work cost. The work cost is generally correlated with the number of integration steps. It is crucial to take the length of the integration interval $t _ { n } - t _ { 0 }$ into account as well, which leads to the following performance measure:
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
l ^ { \mathrm { L a g r a n g e } } ( t _ { n } , y _ { n } , \mathrm { e r r } _ { n } ) = { \frac { \| y ( t _ { n } ) - y _ { n } \| + \mathrm { t o l } \cdot n } { t _ { n } - t _ { 0 } } } .
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
In contrast, if we follow the concept of most step size controllers, an optimal step size is achieved if the local error is equal to the tolerance, which suggests the performance measure
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
l ^ { \mathrm { l o c a l } } ( t _ { n } , y _ { n } , \mathbf { e r r } _ { n } ) = \left\| \mathbf { e r r } _ { n } - \mathbf { t o l } \right\| .
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
Both types of loss functions offer various strengths and weaknesses over one another.
|
| 83 |
+
|
| 84 |
+
The loss Eq. (5) incorporates the essential quantities that an efficient algorithm should minimize. However, the true global error of numerical integration is generally unknown and can only be approximated. In general this can be computationally demanding and as a result make the training process very expensive. Furthermore, when the global error is employed, optimal step sizes may depend on the integration interval as well, e.g. the choice of step size in the first few steps may have different effects on the global error at different points in the integration interval.
|
| 85 |
+
|
| 86 |
+
Classic step size controllers are typically based on local errors alone without regards to global strategies. The objective of these controllers is reflected by the loss Eq. (6). Although this objective minimizes the Lagrangian of the global error and the number of steps only under strong assumptions it does qualify as an appropriate practical objective for step size controllers.The advantage here is that estimates of the local error associated with a step size are available and no additional computation to determine the loss of a step size is required. This allows efficient training even when the analytical solution of an initial value problem is unknown.
|
| 87 |
+
|
| 88 |
+
Input Features. Existing step size controllers rely on error estimates to update the step size. Specifically, $\frac { \mathrm { t o l } } { \mathrm { e r r } _ { n } }$ is important, as evident in Eq. (2), (3) and (4). We intuitively expect a data driven approach to be able to utilize these features. This gives rise to the first set of input features,
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\psi \left( \mathrm { e r r } _ { n + 1 } , \cdot \right) = \log \left( \frac { \mathrm { t o l } } { \mathrm { e r r } _ { n + 1 } } \right) .
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
Here, $\psi \left( \mathrm { e r r } _ { n + 1 } , \cdot \right)$ denotes the input for the optimizer with optional variables. Next, we want to investigate additional input features that may be beneficial. The principal error term as well as higher order terms of the local errors can be expressed with elementary differentials of the ODE, $c . f$ . (Hairer et al., 2000, Section II.3). These elementary differentials are formed of function values and partial derivatives of $g$ and allow a Taylor approximation of the local error function $\operatorname { e r r } _ { n + 1 } ( h ) =$ $\phi ( t _ { n } , h ) h ^ { k + 1 } + \mathcal { O } ( h ^ { k + 2 } )$ , where $\phi ( t _ { n } , h )$ is a polynomial in $h$ with coefficients formed from partial derivatives of $g$ up to order $k > p$ . The roots of the polynomial $\phi ( t _ { n } , h ) h ^ { k + 1 } \ - $ tol approximate the optimal step size. Moreover, it is reasonable to assume that the local error takes values greater tol for some $h > 0$ , implying the existence of real roots. Since the complex roots of polynomials are known to depend continuously on the coefficients of the polynomial, $c . f$ . (Rahman & Schmeisser, 2002, Theorem 1.3.1), it is clear that the optimal step size, a real root of $p ( h )$ , depends continuously on the partial derivatives and function values of $g$ as well as the tolerance tol. From the Universal Approximation Theorem (Hornik, 1991), it then follows that the optimal step size function can be approximated by a neural network with input $\cdot \left( \partial ^ { \alpha } g ( t _ { n } , y _ { n } ) \right) _ { | \alpha | = k } , \ldots , \partial g ( t _ { n } , y _ { n } ) , g ( t _ { n } , y _ { n } ) , \mathrm { t o l }$ . This suggests that the partial derivatives of $g$ can also be an appropriate input for our controller,
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
\psi \left( { \mathrm { e r r } } _ { n + 1 } , \cdot \right) = \left( \log \left( { \frac { \mathrm { t o l } } { { \mathrm { e r r } } _ { n + 1 } } } \right) , ( \partial ^ { \alpha } g ( t _ { n } , y _ { n } ) ) _ { | \alpha | = p } , \cdot \cdot . . , \partial g ( t _ { n } , y _ { n } ) , g ( t _ { n } , y _ { n } ) \right) .
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
However, providing partial derivatives requires additional computation whereas the $p$ function values that were computed during the Runge-Kutta step are conveniently available. As a trade-off between “perfect” information in the form of higher order partial derivatives and the computational effort to compute them, we also propose to use the following input:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\psi \left( \mathrm { e r r } _ { n + 1 } , \cdot \right) = \left( \log \left( \frac { \mathrm { t o l } } { \mathrm { e r r } _ { n + 1 } } \right) , g _ { n } ^ { ( 1 ) } , \dots , g _ { n } ^ { ( p ) } \right) ,
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
$g _ { n } ^ { ( 1 ) } , \ldots , g _ { n } ^ { ( p ) }$ $p$
|
| 107 |
+
|
| 108 |
+
In contrast to the traditional input (7), our novel inputs (8) and (9) both provide local information about the structure of the problem at hand, which allows one to keep the local error close to the tolerance parameter. Moreover, hand-designed controller and existing Runge-Kutta methods do not make use of these information, and it is difficult—if not impossible—to do so. Training an optimizer with input (8) or (9), as shown next, does so automatically and designs novel Runge-Kutta methods.
|
| 109 |
+
|
| 110 |
+
Meta-Learner. With a good performance measure and appropriate inputs at hand, we can now solve the step-size control problem as a meta-learning problem as sketched already in Fig. 1. Let the input for the optimizer be $x _ { n } = \psi \left( \mathrm { e r r } _ { n } , \cdot \right)$ . We parameterize the optimizer $c$ using $\phi$ and update the step size as follows, $\log h _ { n + 1 } = \log h _ { n } + c _ { n } ( \psi ( \mathbf { e r r } _ { n + 1 } , \cdot ) , \phi )$ . An approach in log space has the advantage that that we do not need to constrain the output of $c$ to be positive. Since $c _ { n }$ corresponds to $\log r _ { n }$ , we will adjust the notation in a similar fashion. Due to their natural ability to handle sequential tasks, an LSTM was chosen in our experiments as optimizer $c$ , and its prediction determines the step size which will be used in the next Runge-Kutta iteration. We denote the model of the optimizer, represented by the blue block in Fig. 1, by $m$ , its parameters by $\phi$ and the hidden state by $\hat { h } _ { n }$ . It can be expressed by
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\binom { \log r _ { n - 1 } } { \hat { h } _ { n + 1 } } = m \left( x _ { n } , \hat { h } _ { n } , \phi \right) .
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
The subsequent Runge-Kutta update in the yellow block of Fig. 1 first updates the step size
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\log h _ { n } = \log h _ { n - 1 } + \log r _ { n - 1 } ,
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
and then uses it to execute the next Runge-Kutta step,
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
t _ { n + 1 } = t _ { n } + h _ { n } , \left( { \begin{array} { c } { y _ { n + 1 } } \\ { \operatorname { e r r } _ { n + 1 } } \end{array} } \right) = \Phi ( t _ { n } , y _ { n } , h _ { n } ) .
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
Here, $\Phi$ denotes the Runge-Kutta step from $y _ { n }$ to $y _ { n + 1 }$ as well as the error estimate $\mathrm { e r r } _ { n + 1 }$ that is computed during that step. Afterwards, the next input for the model will be computed.
|
| 129 |
+
|
| 130 |
+
Learning Objective. Different initial value problems can require very different step sizes. Using an optimizer that is specialized for a certain class of problems allows to exploit the structure of these problems. The behavior of an initial value problem is described by a function $g$ , therefore we can represent a class of initial value problems with a distribution over the functions $g$ . Thus, an optimizer can be considered optimal for a class of problems, if it minimizes the expected loss:
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
L ( \phi ) = \mathbb { E } _ { g } \left( \sum _ { n = 1 } ^ { N } l ( t _ { n } , y _ { n } , \mathrm { e r r } _ { n } ) \right) ,
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
where $t _ { n } , y _ { n } , \mathbf { e r r } _ { n }$ were computed according to Eqs. (10), (11), (12). Here, $l$ denotes the loss function defined for an approximation $y _ { n }$ at time point $t _ { n }$ and the local error estimate $\operatorname { e r r } _ { n }$ . Note that our training loss directly corresponds to the performance measure we are interested in. The model $m$ can then learn the behavior of the given class of problems and use this knowledge to generalize to new examples of the same class and new, unseen classes. Specifically, since the provided performance measure $l$ is differentiable a.e., we can optimize the learning objective Eq. (13) using gradient descent on the parameters $\phi$ . An estimate of the gradient $\frac { \partial L ( \phi ) } { \partial \phi }$ can be computed by sampling a function $g$ from the distribution of the class of initial value problems and applying backpropagation, $c . f$ . (Rumelhart et al., 1986).
|
| 137 |
+
|
| 138 |
+
# 4 EXPERIMENTAL EVIDENCE
|
| 139 |
+
|
| 140 |
+
Our intention here is to investigate the benefits of Meta-Learning Runge-Kutta (MLRK). To this end we conducted experiments with different classes of initial value problems. Specifically, we
|
| 141 |
+
|
| 142 |
+
Table 1: On the test set of class (low-freq), MLRK was considerably faster (less many steps) than the baseline controller on average, while causing only a mildly larger mean global error at the end of the integration interval. Both the baseline controller and MLRK showed a gradually increasing mean global error at the end of the integration interval over the test set consisting of 1500 harmonic oscillators of class (med-freq).
|
| 143 |
+
|
| 144 |
+
<table><tr><td></td><td colspan="4">(low-freq)</td><td colspan="4">(med-freq)</td></tr><tr><td rowspan="2">interval</td><td colspan="2">steps</td><td colspan="2">error</td><td colspan="2">steps</td><td colspan="2">error</td></tr><tr><td>Baseline</td><td>MLRK</td><td>Baseline</td><td>MLRK</td><td>Baseline</td><td>MLRK</td><td>Baseline</td><td>MLRK</td></tr><tr><td></td><td>3.42</td><td>3.15</td><td>0.000004</td><td>0.000009</td><td>26.24</td><td>7.95</td><td>0.001588</td><td>0.008253</td></tr><tr><td></td><td>7.59</td><td>6.05</td><td>0.000017</td><td>0.000119</td><td>87.16</td><td>29.63</td><td>0.001686</td><td>0.011236</td></tr><tr><td></td><td>11.76</td><td>8.22</td><td>0.000032</td><td>0.000366</td><td>148.05</td><td>53.44</td><td>0.001739</td><td>0.012904</td></tr><tr><td>1357</td><td>15.80</td><td>10.23</td><td>0.000048</td><td>0.000668</td><td>208.95</td><td>77.54</td><td>0.001735</td><td>0.014222</td></tr><tr><td>10</td><td>21.92</td><td>13.15</td><td>0.000073</td><td>0.001171</td><td>300.32</td><td>113.82</td><td>0.001816</td><td>0.016546</td></tr></table>
|
| 145 |
+
|
| 146 |
+
(high-freq)
|
| 147 |
+
|
| 148 |
+
<table><tr><td rowspan="2">interval</td><td colspan="2">steps</td><td colspan="2">error</td></tr><tr><td>Baseline</td><td>MLRK</td><td>Baseline</td><td>MLRK</td></tr><tr><td>13</td><td>47.15</td><td>12.08</td><td>0.026415</td><td>0.085082</td></tr><tr><td></td><td>157.58</td><td>53.42</td><td>0.023223</td><td>0.081219</td></tr><tr><td>5</td><td>268.03</td><td>96.48</td><td>0.025230</td><td>0.091109</td></tr><tr><td>7</td><td>378.42</td><td>139.69</td><td>0.026177</td><td>0.094129</td></tr><tr><td>10</td><td>544.05</td><td>204.57</td><td>0.024858</td><td>0.094562</td></tr></table>
|
| 149 |
+
|
| 150 |
+
Table 2: The mean global errors of the baseline stay approximately the same. The optimizer trained on problem instances of class (low-freq) shows only a very gradual increment in the global error on instances of class (high-freq).
|
| 151 |
+
|
| 152 |
+
investigated our suggested loss functions and our theory that suggests that providing higher order partial derivatives of $g$ can be used as a means to anticipate the evolution of the local error and, hence, may lead to an improved performance of the optimizer. For a class of initial value problems we assume a parametric form of $g$ with a distribution over the parameters; details can be found in the appendix. Our datasets are obtained by sampling from these distributions. Finally, we compare our method to the baseline controller given by Eq. (2).
|
| 153 |
+
|
| 154 |
+
Harmonic Oscillator. First, we started with a simple class of ODEs. We trained MLRK on low varied harmonic oscillators. The corresponding results for training on high frequencies are similar and can be found in the appendix. As inputs we only used the error estimates, Eq. (7). We started with the dataset of harmonic oscillators with low frequencies (low-freq): the training set contained 30,000 instances, the validation set and test set each 1,500 instances. To measure the performance we considered the $L _ { 1 }$ -Lagrangian loss Eq. (5) as well as the number of steps needed for an integration interval and the corresponding error separately. Since the Lagrangian represents a trade-off between the two it is a particularly good measure.
|
| 155 |
+
|
| 156 |
+
Fig. 2(a) shows the mean loss during the integration of the test set, which consists of 1500 harmonic oscillators of class (low-freq). The solid lines show the mean loss in step $n$ , the colored areas mark the standard deviation. MLRK achieves a smaller mean loss than the baseline, which confirms its ability to generalize to new problem instances of the same class of problem. When we compare the mean number of steps and the mean global error of MLRK and the baseline controller in Tab. 1, the necessity for a trade-off between the two objectives becomes clear. While the baseline needs on average more steps to complete the integration, it achieves a smaller error, the contrary is true for our optimizer. This makes it hard to compare the two methods based on just these values.
|
| 157 |
+
|
| 158 |
+
Generalization Capability of Optimizer based on Low Frequency Harmonic Oscillators. By evaluating the controller designed by MLRK on different test sets, we investigated its ability to transfer knowledge to problem instances of other classes. Fig. 2(b) shows that MLRK maintains a smaller mean loss on 1500 harmonic oscillators of class (med-freq). These oscillators are both higher in frequency and amplitude than the problem instances contained in the training set. This indicates that MLRK is able to generalize to these problems. Tab. 1 reveals that MLRK uses on average about a third of the integration steps the baseline needs for the tested integration intervals. The resulting mean global errors are indeed larger than those of the baseline controller, but still very reasonable. Moreover, evaluating MLRK on 1500 harmonic oscillators of class (high-freq) showed a mean loss similar to that of the baseline controller in Fig. 2(c). This suggests that MLRK generalizes to problem instances of this class as well. In Tab. 2 we observe a similar situation as in the previous experiment. The global error of the baseline controller stays approximately the same for different interval lengths, while the global error of MLRK increases very gradually, while using only a fraction of iterations.
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Figure 2: The mean $L _ { 1 }$ -Lagrangian loss (5) of the approximation $( t _ { n } , y _ { n } )$ in step $n$ over three different test sets. (a) MLRK achieved a smaller mean loss, thus, it generalizes well to new problem instances of the same class of problems (low-freq) it was trained on. (b) MLRK achieves a lower loss on instances with both higher amplitude and frequency than the problem instances used during training. Thus, MLRK is able to generalize to different problems. (c) Even on higher frequencies than the ones in (med-freq), MLRK shows a mean loss similar to that of the baseline controller.
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
Figure 3: The mean local error over the test set of van der Pol ODEs for different methods is shown. The optimizer err was trained with input (7), optimizer partial was trained with input (8) and grad was trained with input (9). Providing local information such as those in input (8) and (9) results in increased responsiveness of the optimizer.
|
| 165 |
+
|
| 166 |
+
van der Pol. "I have a theory that whenever you want to get in trouble with a method, look for the van der Pol equation" – P. Zadunaisky, 1982, $c . f$ . (Hairer et al., 2000).
|
| 167 |
+
|
| 168 |
+
Next we conducted an experiment regarding the local $L _ { 1 }$ loss (6). Experiments with harmonic oscillators revealed the optimizers ability to keep the local errors close to the tolerance parameter $( c . f .$ . appendix). Keeping the local error equal to a constant tolerance is not a hard problem for simple harmonic oscillators, therefore we turned towards van der Pol oscillators. We considered the following dataset of van der Pol oscillators of class $\mathbf { v d P } ( 0 , 1 )$ : The training set contained 50,000 instances, the validation set and the test set each 1,500 instances. The local errors of van der Pol oscillators vary drastically $\cdot c . f$ . Fig. 5, appendix). High spikes occur when the solution changes from being driven to being damped. As the behavior of van der Pol equations are more complex compared to harmonic oscillators, we expect that providing additional information about the problem such as partial derivatives or function values of $g$ can be beneficial. To investigate this, we considered MLRK with different inputs. One optimizer is only provided with the error estimate Eq. (7), another is provided with the error estimate and all partial derivatives Eq. (8) and the last is provided with the error estimate and the function evaluations that were computed during the Runge-Kutta step, Eq. (9).
|
| 169 |
+
|
| 170 |
+
The results are summarized in Fig. 3. Using err shows reoccurring high spikes similar to the baseline, although the spikes of the optimizer are lower on average. In contrast, MLRK with additional information on the partial derivatives (partial) shows a much smoother sequence of local errors. This demonstrates that the additional information in the partial derivatives of $g$ improves the ability of MLRK to anticipate the variations of the local errors and respond with adequate step sizes. MLRK with error estimates as well as function values of $g$ (grad) produces a smooth step size sequence similar to the optimizer partial. This shows that the optimizer with additional input-information from $g$ are actually outperforming the baseline. The reoccurring spikes in the local error seem to decrease in amplitude with time. This is largely due to an averaging effect – for different values of $\sigma$ these spikes occur at different integration steps. All three methods reveal a reduction in both the mean number of steps and the mean local errors, $c . f$ . Tab. 3, appendix.
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 4: The mean local error over the test set of double pendulums for different methods is shown. The optimizer err was trained with input (7), optimizer partial was trained with input (8) and grad was trained with input (9). In all three cases MLRK is able to reduce the spikes in the local errors drastically, the use of local information reduces the variance of the local errors even further.
|
| 174 |
+
|
| 175 |
+
Double Pendulum. To demonstrate the benefit of MLRK in an application we conducted experiments with double pendulum ODEs $_ { c , f }$ . appendix). The chaotic behaviour of the double pendulum leads to sudden spikes in the local error, a particularly challenging problem for step size controllers. To investigate the ability of MLRK to avoid these spikes by adjusting the step size appropriately, we consider the $L _ { 1 }$ local loss as in the previous experiment and a dataset of double pendulums of class (pendulum). The training set contained 50,000 instances, the validation set and the test set each 1,500 instances. Again, the different inputs Eqs. (7), (8) and (9) were examined.
|
| 176 |
+
|
| 177 |
+
The results are shown in Fig. 4 and reveal the baseline controllers inability to produce steady local errors. Here, the benefit of a learned update rule over a static one becomes evident. The optimizer err that is only provided with the local error estimates is able to reduce the spikes in the local errors to a remarkable degree. Moreover, local information about the problem allows the optimizers partial and grad to reduce the variance in the local errors even further.
|
| 178 |
+
|
| 179 |
+
# 5 CONCLUSION
|
| 180 |
+
|
| 181 |
+
We have shown how to cast the design Runge-Kutta methods for solving initial value problems as a learning problem. We established appropriate performance measures and useful inputs for the controller, which constitute the key ingredients of the resulting Meta-learning Runge-Kutta (MLRK), which learns step size controllers that are specialized to a particular class of initial value problems. Our experimental results demonstrate that MLRK can indeed learn to design novel Runge-Kutta methods that perform better than a hand-designed Runge-Kutta approach. Furthermore, we observed a remarkable degree of generalization to other classes of initial value problems. More importantly, examining the effect of different inputs demonstrated that the additional information contained in the function values and partial derivatives of $g$ leads to a substantial improvement in performance of the automatically designed solvers.
|
| 182 |
+
|
| 183 |
+
There are several interesting avenues for future work. While MLRK generalizes well to problem instances of the same class and even to problems of similar classes, when confronted with a very different type of problem, MLRK does not generalize well yet. Wichrowska et al. (2017) showed how a carefully chosen network architecture and a diverse training set improves generalization of their optimizer to many different classes of optimization problems. A similar approach may lead to improved generalization of MLRK. Another common aspect of Runge-Kutta is the need for step rejection in case the local error exceeds the tolerance. The problem here is that a single large error can in general not be compensated for, even if subsequent step sizes are chosen very small. In this case, a step is usually rejected and repeated using a smaller step size. Here the challenge is to choose a step size small enough to meet the accuracy requirements but at the same time not too small, since the choice of step size influences the entire step size sequence to come.
|
| 184 |
+
|
| 185 |
+
# REFERENCES
|
| 186 |
+
|
| 187 |
+
Marcin Andrychowicz, Masha Denil, Sergio Gómez Colmenarejo, Matthew W. Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 29, pp. 3981–3989, Barcelona, Spain, December 2016.
|
| 188 |
+
|
| 189 |
+
Fischer Black and Myron Scholes. The pricing of options and corporate liabilities. Journal of Political Economy, 81(3):637–654, May–June 1973.
|
| 190 |
+
|
| 191 |
+
John C. Butcher. Numerical Methods for Ordinary Differential Equations. Wiley, Auckland, New Zealand, 2nd edition, 2008.
|
| 192 |
+
|
| 193 |
+
Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, and David K. Duvenaud. Neural ordinary differential equations. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31, pp. 6571–6583, Montreal, Canada, December 2018.
|
| 194 |
+
|
| 195 |
+
Yutian Chen, Matthew W. Hoffman, Sergio Gómez Colmenarejo, Misha Denil, Timothy P. Lillicrap, Matt Botvinick, and Nando de Freitas. Learning to learn without gradient descent by gradient descent. In Proceedings of the 34th International Conference on Machine Learning, pp. 748–756, Sydney, Australia, August 2017.
|
| 196 |
+
|
| 197 |
+
Peter Deuflhard. Differential equations in technology and medicine. Computational concepts, adaptive algorithms, and virtual labs. In V. Capasso, H.W. Engl, and J. Periaux (eds.), Computational Mathematics Driven by Industrial Applications, volume 1739 of Lecture Notes in Mathematics, pp. 69–125. Springer, Berlin, Heidelberg, Germany, 2000.
|
| 198 |
+
|
| 199 |
+
Weinan E and Bing Yu. The deep Ritz method: A deep learning-basen numerical algorithm for solving variational problems. Communications in Mathematics and Statistics, 6(1):1–12, March 2018.
|
| 200 |
+
|
| 201 |
+
Mojgan Esna-Ashari, Maryam Zekri, Masood Askari, and Noushin Khalili. Predictive control of the blood glucose level in type I diabetic patient using delay differential equation Wang model. Journal of Medical Signals and Sensors, 7(1):8–20, January–March 2017.
|
| 202 |
+
|
| 203 |
+
Kjell Gustafsson. Control-theoretic techniques for stepsize selection in implicit Runge-Kutta methods. ACM Transactions on Mathematical Software, 20(4):496–517, December 1994.
|
| 204 |
+
|
| 205 |
+
Kjell Gustafsson, Michael Lundh, and Gustaf Söderlind. API stepsize control for the numerical solution of ordinary differential equations. BIT Numerical Mathematics, 28(2):270–287, June 1988.
|
| 206 |
+
|
| 207 |
+
Ernst Hairer and Gerhard Wanner. Solving Ordinary Differential Equations II – Stiff and DifferentialAlgebraic Problems, volume 14 of Springer Series in Computational Mathematics. Springer, Berlin, Heidelberg, Germany, 2nd edition, 2002.
|
| 208 |
+
|
| 209 |
+
Ernst Hairer, Syvert P. Nørsett, and Gerhard Wanner. Solving Ordinary Differential Equations I – Nonstiff Problems, volume 8 of Springer Series in Computational Mathematics. Springer, Berlin, Heidelberg, Germany, 2nd edition, 2000.
|
| 210 |
+
|
| 211 |
+
Jiequn Han, Arnulf Jentzen, and Weinan E. Solving high-dimensional partial differential equations using deep learning. Proceedings of the National Academy of Sciences, 115(34):8505–8510, August 2018.
|
| 212 |
+
|
| 213 |
+
Kurt Hornik. Approximation capabilities of multilayer feedforward networks. Neural Networks, 4(2): 251–257, 1991.
|
| 214 |
+
|
| 215 |
+
Mihai Ilea, Marius Turnea, and Mariana D. Rotariu. Differential equations with applications in cancer diseases. Medical-Surgical Journal of the Society of Physicians and Naturalists Iasi, 117 (2):572–577, April–June 2013.
|
| 216 |
+
|
| 217 |
+
Isaac E. Lagaris, Aristidis Likas, and Dimitrios I. Fotiadis. Artificial neural networks for solving ordinary and partial differential equations. IEEE Transactions on Neural Networks, 9(5):987–1000, September 1998.
|
| 218 |
+
|
| 219 |
+
Alfred J. Lotka. Elements of physical biology. Nature, 116(2917), September 1925.
|
| 220 |
+
|
| 221 |
+
Qazi Ibadur Rahman and Gerhard Schmeisser. Analytic Theory of Polynomials. Number 26 in London Mathematical Society Monographs. Oxford University Press, Oxford, UK, 2002.
|
| 222 |
+
|
| 223 |
+
David E. Rumelhart, Geoffrey E. Hinton, and Ronald J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533–536, 1986.
|
| 224 |
+
|
| 225 |
+
Gudrun Scholz and Fritz Scholz. First-order differential equations in chemistry. ChemTexts, 1(1), November 2014.
|
| 226 |
+
|
| 227 |
+
Patrick Schramowski, Christian Bauckhage, and Kristian Kersting. Neural conditional gradients. arXiv:1803.04300, March 2018.
|
| 228 |
+
|
| 229 |
+
Justin Sirignano and Konstantinos Spiliopoulos. DGM: A deep learning algorithm for solving partial differential equations. Journal of Computational Physics, 375:1339–1364, December 2018.
|
| 230 |
+
|
| 231 |
+
Gustaf Söderlind. Automatic control and adaptive time-stepping. Numerical Algorithms, 31(1): 281–310, December 2002.
|
| 232 |
+
|
| 233 |
+
Gustaf Söderlind. Time-step selection algorithms: Adaptivity, control, and signal processing. Applied Numerical Mathematics, 56(3–4):488–502, March–April 2006.
|
| 234 |
+
|
| 235 |
+
Vito Volterra. Variazioni e fluttuazioni del numero d’individui in specie animali conviventi. Memoria della Reale Accademia Nazionale dei Lincei, 2:31–113, 1926.
|
| 236 |
+
|
| 237 |
+
Olga Wichrowska, Niru Maheswaranathan, Matthew W. Hoffman, Sergio Gómez Colmenarejo, Misha Denil, Nando de Freitas, and Jascha Sohl-Dickstein. Learned optimizers that scale and generalize. In Proceedings of the 34th International Conference on Machine Learning, pp. 3751–3760, Sydney, Australia, August 2017.
|
| 238 |
+
|
| 239 |
+
# A APPENDIX
|
| 240 |
+
|
| 241 |
+
RUNGE-KUTTA METHODS
|
| 242 |
+
|
| 243 |
+
The mathematical theory of Runge-Kutta methods is quite evolved. We will only recap a few basics here, for further details see for example (Butcher, 2008; Hairer et al., 2000; Hairer & Wanner, 2002).
|
| 244 |
+
|
| 245 |
+
Definition A.1. Let $s \in \mathbb { N }$ , $a _ { i j } \in \mathbb { R }$ for $i , j \in \{ 1 , \ldots , s \}$ , $c _ { i } \in \mathbb { R }$ for $i \in \{ 1 , \ldots , s \}$ and $b _ { i } \in \mathbb { R }$ for $i \in \{ 1 , \ldots , s \}$ . Let $\boldsymbol { g } : \mathbb { R } \times \mathbb { R } ^ { m } \to \mathbb { R } ^ { m }$ be a function that describes an initial value problem. The method defined by
|
| 246 |
+
|
| 247 |
+
$$
|
| 248 |
+
\begin{array} { c } { { y _ { n + 1 } = y _ { n } + h \displaystyle \sum _ { i = 1 } ^ { s } b _ { i } k _ { i } \nonumber , } } \\ { { { } } } \\ { { k _ { i } = g ( t _ { n } + h c _ { i } , y _ { n } + h \displaystyle \sum _ { j = 1 } ^ { s } a _ { i j } k _ { j } ) \nonumber , } } \end{array}
|
| 249 |
+
$$
|
| 250 |
+
|
| 251 |
+
for step size $h$ is called an $s$ -stage Runge-Kutta method. If $a _ { i j } = 0$ for $i \leq j$ , the method is called explicit, otherwise it is called implicit.
|
| 252 |
+
|
| 253 |
+
Definition A.2. A Runge-Kutta method is of order $p$ if for sufficiently smooth initial value problems
|
| 254 |
+
|
| 255 |
+
$$
|
| 256 |
+
\| y ( t _ { 0 } + h ) - y _ { 1 } \| \leq K h ^ { p + 1 }
|
| 257 |
+
$$
|
| 258 |
+
|
| 259 |
+
holds.
|
| 260 |
+
|
| 261 |
+
Note that a higher order method yields more accurate results, consequently a high order is a desired characteristic of a Runge-Kutta method. However, higher orders can only be achieved by the use of more stages. For an $s \mathrm { . }$ -stage Runge-Kutta method the order $p$ is bounded by the number of stages, $p \leq s$ . Up to order 4 there exist methods with $p = s$ , for order 5 and higher $p$ is strictly smaller than $s , c . f$ . (Butcher, 2008, Theorem 324B). The order of an $s$ -stage Runge-Kutta method depends on the coefficients $a _ { i j }$ , $b _ { i }$ , $c _ { i }$ . Order conditions for these coefficients have been developed, which ensure a certain order of the method.
|
| 262 |
+
|
| 263 |
+
The problem of step size control can be described in the following way: Based on some input values, e.g. $t _ { n } , y _ { n } , \mathbf { e r r } _ { n }$ and possibly additional characteristics of $g$ , we must choose a step size $h _ { n }$ ,which is then used to evaluate $g$ at $p$ different points. These points are determined by $h _ { n }$ , see Definition A.1. The resulting stages in Eq. (15) are then used to compute the approximation $y _ { n + 1 }$ of $y ( t _ { n } + h _ { n } )$ , $c . f$ . Eq. (14). The problem is to choose $h _ { n }$ in a way such that the approximation $y _ { n + 1 }$ fulfills some desired properties. For example we may require that the local error of $y _ { n + 1 }$ is close to some tolerance parameter. In fact, this is the standard objective of most common step size controllers.
|
| 264 |
+
|
| 265 |
+
# ERROR ESTIMATION
|
| 266 |
+
|
| 267 |
+
The local errors are of particular importance for step size control and can fortunately be estimated very efficiently. To that end, we take a look at a simple idea as described in (Butcher, 2008, p. 198): Suppose we have two approximations for $y ( t _ { n } )$ of order $\hat { p }$ and $\tilde { p }$ respectively, that is
|
| 268 |
+
|
| 269 |
+
$$
|
| 270 |
+
\begin{array} { r } { \hat { y } _ { n } = y ( t _ { n } ) + \mathcal { O } ( h ^ { \hat { p } + 1 } ) , } \\ { \tilde { y } _ { n } = y ( t _ { n } ) + \mathcal { O } ( h ^ { \hat { p } + 1 } ) , } \end{array}
|
| 271 |
+
$$
|
| 272 |
+
|
| 273 |
+
where $y ( t )$ is the solution of
|
| 274 |
+
|
| 275 |
+
$$
|
| 276 |
+
y ^ { \prime } ( t ) = g ( t , y ( t ) ) , \quad y ( t _ { n - 1 } ) = y _ { n - 1 } ,
|
| 277 |
+
$$
|
| 278 |
+
|
| 279 |
+
and the step size $h$ that was used to obtain both approximations is given by
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
h = t _ { n } - t _ { n - 1 } .
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
If $\hat { p } > \tilde { p }$
|
| 286 |
+
|
| 287 |
+
$$
|
| 288 |
+
\hat { y } _ { n } - \tilde { y } _ { n } = y ( t _ { n } ) - \tilde { y } _ { n } + \mathcal { O } ( h ^ { \tilde { p } + 2 } )
|
| 289 |
+
$$
|
| 290 |
+
|
| 291 |
+
can be used as an approximation for the local truncation error of the $\tilde { p }$ -th order Runge-Kutta method:
|
| 292 |
+
|
| 293 |
+
$$
|
| 294 |
+
\mathrm { e r r } _ { n } ( h ) \approx \| \hat { y } _ { n } - \tilde { y } _ { n } \| .
|
| 295 |
+
$$
|
| 296 |
+
|
| 297 |
+
To obtain error estimates each step has to be carried out with two methods of different orders. Here, the easiest approach is to use two separate Runge-Kutta methods to compute $\hat { y }$ and $\tilde { y }$ , however this is quite costly, especially for implicit methods. A more efficient approach to obtain error estimates are the embedded Runge-Kutta methods. Here both approximation use the same stages $k _ { i }$ in Eq. (15) but two different pairs of coefficients $b _ { i }$ , $\hat { b } _ { i }$ in Eq. (14). By doing so, the stages can be reused and an error estimate can be obtained with a cheap extra linear combination of the $k _ { i }$ ’s. We denote the error estimates by
|
| 298 |
+
|
| 299 |
+
$$
|
| 300 |
+
\mathrm { e r r } _ { n } = \| \hat { y } _ { n } - \tilde { y } _ { n } \| .
|
| 301 |
+
$$
|
| 302 |
+
|
| 303 |
+
# CLASSES OF INITIAL VALUE PROBLEMS
|
| 304 |
+
|
| 305 |
+
For loss functions such as the one in Eq. (5) it is useful to consider initial value problems with known solutions so that we can compare the numerical approximation to the true function values of the solution. For this reason we considere simple harmonic oscillators and linear differential equations with constant coefficients. If we employ loss functions as Eq. (6), local rather than global errors are of interest. For these loss functions it is interesting to consider initial value problems for which the local errors vary drastically during the integration such as van der Pol oscillators.
|
| 306 |
+
|
| 307 |
+
# SIMPLE HARMONIC OSCILLATOR
|
| 308 |
+
|
| 309 |
+
A simple harmonic oscillator is a harmonic oscillator that is neither driven nor damped and can be characterized by
|
| 310 |
+
|
| 311 |
+
$$
|
| 312 |
+
m x ^ { \prime \prime } ( t ) = - k x ( t ) ,
|
| 313 |
+
$$
|
| 314 |
+
|
| 315 |
+
where $m$ is the mass of the oscillator, $x$ the position and $k$ describes the restoring force that is applied, when displaced from its equilibrium position. It can be transformed to
|
| 316 |
+
|
| 317 |
+
$$
|
| 318 |
+
\begin{array} { l } { { \displaystyle y _ { 1 } ^ { \prime } ( t ) = y _ { 2 } ( t ) \ : , } } \\ { { \displaystyle y _ { 2 } ^ { \prime } ( t ) = - \frac { m } { k } y _ { 1 } ( t ) \ : . } } \end{array}
|
| 319 |
+
$$
|
| 320 |
+
|
| 321 |
+
The initial values provide the initial position $x ( t _ { 0 } )$ of $x$ and the initial velocity $x ^ { \prime } ( t _ { 0 } )$
|
| 322 |
+
|
| 323 |
+
$$
|
| 324 |
+
\begin{array} { l } { { y _ { 1 } ( t _ { 0 } ) = x ( t _ { 0 } ) , } } \\ { { y _ { 2 } ( t _ { 0 } ) = x ^ { \prime } ( t _ { 0 } ) . } } \end{array}
|
| 325 |
+
$$
|
| 326 |
+
|
| 327 |
+
The solution of the simple harmonic oscillator takes the form
|
| 328 |
+
|
| 329 |
+
$$
|
| 330 |
+
x ( t ) = A \cos ( \omega t + \varphi ) , \quad \omega = \sqrt { \frac { m } { k } } ,
|
| 331 |
+
$$
|
| 332 |
+
|
| 333 |
+
where $A$ and $\varphi$ are uniquely determined by the initial values. The frequency of the oscillations is determined by $\omega$ , $A$ is the magnitude of the oscillations and $\varphi$ is a phase-shift.
|
| 334 |
+
|
| 335 |
+
A class of this kind of initial value problvalues or alternatively a distribution over , n beand escribed by a distribution over . The following classes of initia $\frac { m } { k }$ and the initialalue problems $A$ $\omega$ $\varphi$
|
| 336 |
+
were used in the experiments
|
| 337 |
+
|
| 338 |
+
$$
|
| 339 |
+
\begin{array} { l c r } { { A \sim U ( 0 , 5 ) , } } \\ { { A \sim U ( 0 , 5 ) , } } \\ { { A \sim U ( 0 , 1 ) , } } \\ { { A \sim U ( 1 , 5 ) , } } \end{array}
|
| 340 |
+
$$
|
| 341 |
+
|
| 342 |
+
$$
|
| 343 |
+
\begin{array} { r l r } & { } & { \omega \sim U ( 0 , 1 0 ) , \quad \varphi \sim U ( 0 , 1 ) , } \\ & { } & { \omega \sim U ( 0 , 2 0 ) , \quad \varphi \sim U ( 0 , 1 ) , } \\ & { } & { \omega \sim U ( 0 , 1 ) , \quad \varphi \sim U ( 0 , 1 ) , } \\ & { } & { \omega \sim U ( 1 , 5 ) , \quad \varphi \sim U ( 0 , 1 ) , } \end{array}
|
| 344 |
+
$$
|
| 345 |
+
|
| 346 |
+
where $U ( a , b )$ denotes the uniform distribution over the interval $[ a , b ]$ .
|
| 347 |
+
|
| 348 |
+
# LINEAR CONSTANT COEFFICIENT
|
| 349 |
+
|
| 350 |
+
A linear differential equation with constant coefficients can be described by
|
| 351 |
+
|
| 352 |
+
$$
|
| 353 |
+
y ^ { \prime } ( t ) = A y ( t ) , \qquad y ( t _ { 0 } ) = y _ { 0 } ,
|
| 354 |
+
$$
|
| 355 |
+
|
| 356 |
+
where $A \in \mathbb { R } ^ { m \times m }$ . The solution of this differential equation is known and can be expressed in terms of the eigenvalues $\lambda _ { 1 } , \ldots , \lambda _ { m }$ with corresponding eigenvectors $v _ { 1 } , \ldots , v _ { m }$ of the matrix $A$ :
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
y ( t ) = \sum _ { j = 1 } ^ { m } c _ { j } e ^ { \lambda _ { j } t } v _ { j } ,
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
with coefficients $c _ { j } \in \mathbb { R }$ that are uniquely determined by the initial values $y ( t _ { 0 } ) = y _ { 0 }$ . The initial value problem is stable, if $\mathrm { R e } ( \lambda _ { j } ) < 0$ for all $j \in \{ 1 , \dots , m \}$ and unstable if $\operatorname { R e } ( \lambda _ { j } ) > 0$ for some $j ~ \in ~ \{ 1 , \dots , m \}$ . The oscillatory behavior of the problem is determined by $\mathrm { I m } ( \lambda _ { j } )$ . Note that the simple harmonic oscillators are linear differential equations with constant coefficients, where $A \in \mathbb { R } ^ { 2 \times 2 }$ , $\mathbf { R e } ( \lambda _ { j } ) = 0$ for $j \in \{ 1 , 2 \}$ and $\begin{array} { r } { \mathrm { I m } ( \lambda _ { 1 } ) = - \mathrm { I m } ( \lambda _ { 2 } ) = \sqrt { \frac { m } { k } } i } \end{array}$ .
|
| 363 |
+
|
| 364 |
+
For the experiments we used differential equations with $A \in \mathbb { R } ^ { 3 \times 3 }$ . The matrix $A$ either has three real eigenvalues $\lambda _ { 1 } , \lambda _ { 2 } , \lambda _ { 3 } \ \in \ \mathbb { R }$ or one real eigenvalue $\lambda _ { 1 } \in \mathbb { R }$ and two complex eigenvalues $\lambda _ { 2 } = a + b i , \lambda _ { 3 } = a - b i$ , with $a , b \in \mathbb { R }$ . In this case we choose $c _ { 2 } = c _ { 3 }$ to obtain a real solution. We can specify a class of linear constant coefficient differential equations by a distribution on the eigenvalues of $A$ and the coefficients $c _ { j }$ . The classes that were used for the experiments were described by the distributions
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
\begin{array} { l } { \lambda _ { 1 } \sim U ( - 2 . 5 , - 0 . 1 ) , } \\ { \lambda _ { 1 } \sim U ( 0 , 1 ) , } \\ { \lambda _ { 1 } \sim U ( - 1 , 0 ) , } \end{array}
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
$$
|
| 371 |
+
\begin{array} { r } { a \sim U ( - 2 . 5 , - 0 . 1 ) , ~ b \sim U ( 0 , 5 ) , } \\ { a \sim U ( - 2 . 5 , - 0 . 1 ) , ~ b \sim U ( 0 , 5 ) , } \\ { a \sim U ( 0 , 1 ) , ~ b \sim U ( 1 , 2 ) , } \end{array}
|
| 372 |
+
$$
|
| 373 |
+
|
| 374 |
+
where $U ( a , b )$ denotes the uniform distribution on the interval $[ a , b ]$ .
|
| 375 |
+
|
| 376 |
+

|
| 377 |
+
Figure 5: The upper plot shows the numerically approximated solution $y _ { 1 } ( t )$ of a van der Pol oscillator with $\sigma = 2$ . The lower plot displays the local error estimates for $h \ : = \ : 0 . 1$ . The error estimates show high spikes whenever the solution switches from being driven to being damped.
|
| 378 |
+
|
| 379 |
+
VAN DER POL OSCILLATOR
|
| 380 |
+
|
| 381 |
+
Van der Pol oscillators arise in the study of limit cycles. A van der Pol oscillator can be described by
|
| 382 |
+
|
| 383 |
+
$$
|
| 384 |
+
\begin{array} { l } { { y _ { 1 } ^ { \prime } ( t ) = y _ { 2 } , } } \\ { { y _ { 2 } ^ { \prime } ( t ) = \sigma ( 1 - y _ { 1 } ^ { 2 } ) y _ { 2 } - y _ { 1 } , } } \end{array}
|
| 385 |
+
$$
|
| 386 |
+
|
| 387 |
+
$$
|
| 388 |
+
\begin{array} { r } { y _ { 1 } ( 0 ) = 2 , } \\ { y _ { 2 } ( 0 ) = 0 , } \end{array}
|
| 389 |
+
$$
|
| 390 |
+
|
| 391 |
+
with $\sigma > 0$ . For $\sigma = 2$ an approximate solution is displayed in Figure 5. Small oscillations are amplifies and large oscillations damped, $c . f$ . (Hairer et al., 2000, pp. 111). The local errors of a van der Pol oscillator show high variations. For the experiments we used van der Pol oscillators with the following distributions
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
\begin{array} { r } { \sigma \sim U ( 0 , 1 ) , } \\ { \sigma \sim U ( 1 , 2 ) . } \end{array}
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
$$
|
| 398 |
+
\begin{array} { r } { ( \mathrm { v d P } ( 0 , 1 ) ) } \\ { ( \mathrm { v d P } ( 1 , 2 ) ) } \end{array}
|
| 399 |
+
$$
|
| 400 |
+
|
| 401 |
+
# DOUBLE PENDULUM
|
| 402 |
+
|
| 403 |
+
A double pendulum is a pendulum attached to another pendulum, $c . f$ . Fig. 6. The length of the first and second pendulum are given by $L _ { 1 }$ and $L _ { 2 }$ , respectively, their masses by $M _ { 1 }$ and $M _ { 2 }$ and the angle by $\theta _ { 1 }$ and $\theta _ { 2 }$ . The equations of motion for the double pendulum can be written in different forms, we chose the following formulation in terms of the angular acceleration:
|
| 404 |
+
|
| 405 |
+
$$
|
| 406 |
+
\begin{array} { r l } & { { \ddot { \theta } _ { 1 } } = \frac { { M _ { 2 } L _ { 1 } { { \dot { \theta } } _ { 1 } } ^ { 2 } \sin ( { \theta _ { 2 } } - { \theta _ { 1 } } ) \cos ( { \theta _ { 2 } } - { \theta _ { 1 } } ) + { M _ { 2 } } g \sin ( { \theta _ { 2 } } ) \cos ( { \theta _ { 2 } } - { \theta _ { 1 } } ) } } { { L _ { 1 } { { \left( { M _ { 1 } } + { M _ { 2 } } - { M _ { 2 } } \cos ^ { 2 } ( { \theta _ { 2 } } - { \theta _ { 1 } } ) \right) } } } } } \\ & { \qquad + \frac { { M _ { 2 } } { L _ { 2 } { { \dot { \theta } } _ { 2 } } ^ { 2 } \sin ( { \theta _ { 2 } } - { \theta _ { 1 } } ) } - { \left( { M _ { 1 } } + { M _ { 2 } } \right) g \sin ( { \theta _ { 1 } } ) } } { { L _ { 1 } { { \left( { M _ { 1 } } + { M _ { 2 } } - { M _ { 2 } } \cos ^ { 2 } ( { \theta _ { 2 } } - { \theta _ { 1 } } ) \right) } } } } } \\ & { { \ddot { \theta } _ { 2 } } = \frac { { \left( { M _ { 1 } } + { M _ { 2 } } \right) \left( g \sin ( { \theta _ { 1 } } ) \cos ( { \theta _ { 2 } } - { \theta _ { 1 } } ) - { L _ { 1 } } { { \dot { \theta } } _ { 1 } } ^ { 2 } \sin ( { \theta _ { 2 } } - { \theta _ { 1 } } ) - g \sin ( { \theta _ { 2 } } ) \right) } } { { L _ { 2 } { { \left( { M _ { 1 } } + { M _ { 2 } } - { M _ { 2 } } \cos ^ { 2 } ( { \theta _ { 2 } } - { \theta _ { 1 } } ) \right) } } } } } \\ & \qquad - \frac { { M _ { 2 } } { L _ { 2 } { \dot { \theta } } _ { 2 } ^ { 2 } \sin ( { \theta _ { 2 } } - { \theta _ { 1 } } ) \cos ( { \theta _ { 2 } } - { \theta _ { 1 } } ) } } { { L _ { 2 } { \left( { M _ { 1 } } + { M _ { 2 } } - { M _ { 2 } } \cos ^ { 2 } ( { \theta _ { 2 } } - { \theta _ { 1 } } ) \right) } } } \end{array}
|
| 407 |
+
$$
|
| 408 |
+
|
| 409 |
+
The initial angular position and velocity $\theta _ { 1 } , \theta _ { 2 } , { \dot { \theta } } _ { 1 } , { \dot { \theta } } _ { 2 }$ determine the trajectory of the double pendulum. For the experiments we used double pendulums with the following distribution
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
M _ { 1 } \sim U ( 0 . 5 , 1 ) , M _ { 2 } \sim U ( 0 . 5 , 2 ) , L _ { 1 } \sim U ( 0 . 5 , 1 ) , L _ { 2 } \sim U ( 0 . 5 , 1 ) .
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
# ADDITIONAL EXPERIMENTS
|
| 416 |
+
|
| 417 |
+
ON VAN DER POL
|
| 418 |
+
|
| 419 |
+
Table 3 shows the mean number of steps, local error and wall clock time over 1500 van der Pol equations of class $( \mathrm { v d P } ( 0 , 1 ) )$ .
|
| 420 |
+
|
| 421 |
+

|
| 422 |
+
Figure 6: A double pendulum is one pendulum attached to another pendulum. The masses $M _ { 1 }$ and $M _ { 2 }$ of these pendulums may vary as do the lengths $L _ { 1 }$ and $L _ { 2 }$ . The initial configuration of angular position and velocity determines the trajectory of the double pendulum.
|
| 423 |
+
|
| 424 |
+
HIGH FREQUENCY HARMONIC OSCILLATORS
|
| 425 |
+
|
| 426 |
+
In this experiment, we trained a controller specialized for simple harmonic oscillators of class (high-freq) which were described in Sec. A. Thus we chose the following datasets:
|
| 427 |
+
|
| 428 |
+
Training set: 30000 Harmonic oscillators of class (high-freq). Validation set: 1000 Harmonic oscillators of class (high-freq). Test set: 1000 Harmonic oscillators of class (high-freq).
|
| 429 |
+
|
| 430 |
+
As loss we chose the $L _ { 1 }$ -Lagrangian Eq. (5). As inputs we used only the error estimates, Eq. (7). The loss of the learned controller and the baseline controller, averaged over the test dataset, is shown in Fig. 7(a). Both controllers are used to execute 100 integration steps for each instance of the test dataset. Subsequently, the loss Eq. (5) is computed for each approximation $( t _ { n } , y _ { n } )$ . The solid lines show the mean loss in step $n$ , the colored areas mark the standard deviation. Here, the loss of our learned controller is on average smaller than the loss of the baseline controller, which demonstrates the controllers generalization capability to new problems of the same class.
|
| 431 |
+
|
| 432 |
+
Tab. 4 summaizres the global error at the end of the integration interval and the number of steps needed during the integration for different interval lengths in range 1 to 10. All values are averaged over the test dataset. Here, the baseline controller needs much more steps than the learned controller, but maintains a smaller error. In fact, the error caused by the baseline is approximately the same for all shown interval lengths, while the error caused by the trained model increases with interval length. This is due to the assumption that the global error is the sum of the local errors. In particular, the loss Eq. (5) rates step size sequences with a higher global error better, if they can balance the higher error by achieving a longer integration interval.
|
| 433 |
+
|
| 434 |
+
While the general assumption that the global error increases with the length of the integration interval is often fulfilled, the specific assumption of a linear accumulation of the global error, as in our loss, is usually not fulfilled. This is a good example for why the assumptions leading to the widely used objective to keep the local errors constant are too strong.
|
| 435 |
+
|
| 436 |
+
Table 3: The mean number of steps, local error and wall clock time over 1500 van der Pol equations are shown for different lengths of the integration interval. Our method err is slightly faster and uses less steps than the baseline while producing smaller local errors during the integration, see also Figure 3. While partial and grad reduce the number of steps even further, wall time is increased. However one can clearly see that partial and grad outperform both the baseline and err regarding the local error.
|
| 437 |
+
|
| 438 |
+
<table><tr><td>int</td><td colspan="4">steps</td></tr><tr><td></td><td>baseline</td><td>err</td><td>partial</td><td>grad</td></tr><tr><td>1</td><td>21.59</td><td>16.42</td><td>12.40</td><td>12.09</td></tr><tr><td>3</td><td>33.74</td><td>29.12</td><td>25.16</td><td>24.74</td></tr><tr><td>5</td><td>45.43</td><td>41.07</td><td>36.42</td><td>36.02</td></tr><tr><td>7</td><td>56.84</td><td>52.57</td><td>48.34</td><td>47.97</td></tr><tr><td>10</td><td>73.46</td><td>69.41</td><td>65.40</td><td>65.04</td></tr><tr><td colspan="5"></td></tr><tr><td></td><td>baseline</td><td>err</td><td>partial</td><td>grad</td></tr><tr><td>1</td><td>7.17e-4</td><td>6.58e-4</td><td>4.01e-4</td><td>3.74e-4</td></tr><tr><td>3</td><td>6.40e-4</td><td>5.45e-4</td><td>2.49e-4</td><td>2.28e-4</td></tr><tr><td>5</td><td>5.18e-4</td><td>4.47e-4</td><td>1.95e-4</td><td>1.75e-4</td></tr><tr><td>7</td><td>4.97e-4</td><td>4.16e-4</td><td>1.57e-4</td><td>1.39e-4</td></tr><tr><td>10</td><td>4.59e-4</td><td>3.82e-4</td><td>1.32e-4</td><td>1.18e-4</td></tr><tr><td colspan="5">int</td></tr><tr><td></td><td>baseline</td><td>err</td><td>partial</td><td>grad</td></tr><tr><td>1</td><td>0.0255</td><td>0.0263</td><td>0.0254</td><td>0.0221</td></tr><tr><td>3</td><td>0.0405</td><td>0.0375</td><td>0.0460</td><td>0.0403</td></tr><tr><td>5</td><td>0.0591</td><td>0.0517</td><td>0.0681</td><td>0.0596</td></tr><tr><td>7</td><td>0.0858</td><td>0.0742</td><td>0.1036</td><td>0.0897</td></tr><tr><td>10</td><td>0.0971</td><td>0.0825</td><td>0.1201</td><td>0.1065</td></tr></table>
|
| 439 |
+
|
| 440 |
+
<table><tr><td rowspan="2">interval</td><td colspan="2">steps</td><td colspan="2">error</td></tr><tr><td>Baseline</td><td>Optimizer</td><td>Baseline</td><td>Optimizer</td></tr><tr><td>1</td><td>45.50</td><td>13.73</td><td>0.023092</td><td>0.030499</td></tr><tr><td>3</td><td>152.11</td><td>43.12</td><td>0.022266</td><td>0.040429</td></tr><tr><td>5</td><td>258.73</td><td>74.40</td><td>0.022731</td><td>0.049529</td></tr><tr><td>7</td><td>365.30</td><td>106.31</td><td>0.022011</td><td>0.055821</td></tr><tr><td>10</td><td>525.18</td><td>154.25</td><td>0.023353</td><td>0.070451</td></tr></table>
|
| 441 |
+
|
| 442 |
+
Table 4: The mean values over the test set consisting of 1000 harmonic oscillators of class (high-freq) are shown. While the baseline needs much more steps than our trained model, it achieves a smaller global error. The global error of the baseline stays approximately the same for all integration intervals.
|
| 443 |
+
|
| 444 |
+
It is also interesting to evaluate the learned controller on other classes of initial value problems. Fig. 7(b) shows the mean loss of the learned controller and the baseline controller over a test set consisting of 1500 harmonic oscillators of class (higher-freq). This class contains oscillators of class (high-freq) but also includes higher frequency ones. The learned controller has a lower mean loss than the baseline controller which indicates that it is able to transfer knowledge from problems of class (high-freq) to problems of class (higher-freq).
|
| 445 |
+
|
| 446 |
+
When we compare the number of steps and the global error at the end of the integration interval, see Tab. 5, we can observe a similar situation as in Tab. 4. The learned controller needs less steps than the baseline controller. The global error however stays approximately the same for the baseline controller while it increases with interval length for the learned controller.
|
| 447 |
+
|
| 448 |
+

|
| 449 |
+
Figure 7: The red and blue line show the mean loss Eq. (5) of the approximation $( t _ { n } , y _ { n } )$ in step $n$ over the test set. The red and blue area indicate the standard deviation. (a) The learned model LSTM attains a smaller mean loss on new instances of the same class of problems (high-freq) it was trained on, this is especially pronounced in the steps $n \geq 5$ . (b) The test set consists of 1500 harmonic oscillators of class (higher-freq), which means that it also contains higher frequency oscillators. The mean loss of our learned controller is lower than the mean loss of the baseline controller which indicates that our method generalizes to these different problem instances.
|
| 450 |
+
|
| 451 |
+
<table><tr><td rowspan="2">interval</td><td colspan="2">steps</td><td colspan="2">error</td></tr><tr><td>Baseline</td><td>Optimizer</td><td>Baseline</td><td>Optimizer</td></tr><tr><td>1</td><td>116.76</td><td>22.26</td><td>0.453698</td><td>0.511174</td></tr><tr><td>3</td><td>386.40</td><td>75.64</td><td>0.442521</td><td>0.620779</td></tr><tr><td>5</td><td>656.06</td><td>141.29</td><td>0.426773</td><td>0.770457</td></tr><tr><td>7</td><td>925.80</td><td>212.19</td><td>0.418467</td><td>0.925463</td></tr><tr><td>10</td><td>1330.31</td><td>319.85</td><td>0.413902</td><td>1.427778</td></tr></table>
|
| 452 |
+
|
| 453 |
+
Table 5: The mean number of steps and the mean global error at the end of the integration interval was computed over a test set of 1500 harmonic oscillators of class (higher-freq). While the baseline controller needs much more steps than our learned controller, it has on average a lower global error, which stays approximately the same for different interval lengths.
|
| 454 |
+
|
| 455 |
+
# HARMONIC OSCILLATOR
|
| 456 |
+
|
| 457 |
+
We learn a controller optimized for simple harmonic oscillators. We choose the following data sets:
|
| 458 |
+
|
| 459 |
+
Training set: 30000 Harmonic oscillators of class (low-freq).
|
| 460 |
+
Validation set: 1500 Harmonic oscillators of class (low-freq). Test set: 1500 Harmonic oscillators of class (low-freq).
|
| 461 |
+
|
| 462 |
+
First, we evaluate our method on a test set consisting of the same class of initial value problems the controller was trained on. Figure 8(a) shows the mean local error of the learned controller and the baseline on this test set. Both controllers are capable to keep the local errors close to the tolerance. Our method is slightly closer to the tolerance. Next, we evaluate our learned controller on different test sets. When we test the learned controller on harmonic oscillators with higher frequencies and higher amplitude, we find that our method generalizes to these problem instances as well. In fact, both the learned and the baseline controller are able to keep the local errors close to the tolerance as displayed in Figure 8(b). Similar results were found for harmonic oscillators of the class (med-freq). Hence, our learned controller is able to transfer knowledge from oscillators with low frequencies to oscillators with higher frequencies.
|
| 463 |
+
|
| 464 |
+

|
| 465 |
+
Figure 8: The mean local error of our learned controller and the baseline controller is shown. (a) Testing on 1500 harmonic oscillators of class (low-freq) shows that both the baseline and the learned controller are able to keep the local errors close to the tolerance. The mean local error of the learned controller is slightly closer to the tolerance. (b) For a test set consisting of 1500 harmonic oscillators of class (high-freq) the two controllers show a similar performance, both are able to keep the local error close to the tolerance. Testing the controllers on problem instances of class (med-freq) yields a similar results.
|
| 466 |
+
|
| 467 |
+

|
| 468 |
+
Figure 9: The mean local error over different test sets is shown. (a) The test set consists of 1500 linear differential equations with constant coefficients of class (osc-increasing). For these problem instances the learned controller demonstrates its ability to keep the mean local error close to the tolerance. In fact, the local errors of our controller appear to be closer to the tolerance than the local errors of the baseline for some part of the integration. (b) Testing our controller on a set of 1500 van der Pol oscillators of type $( \mathrm { v d P } ( 0 , 1 ) )$ ) reveals a similar performance to that of the baseline controller. Both controllers show high spikes in the local errors. These occur whenever the solution changes from being driven to being damped, see Figure 5.
|
| 469 |
+
|
| 470 |
+
We also want to evaluate the generalization capability of our method to problem instances of different classes of initial value problems. Our method shows an acceptable performance on linear differential equations with constant coefficients of the class (osc-increasing), see Figure 9(a). Here, the performance of our controller is similar to the baseline controller. The learned controller obtains local errors which are closer to the tolerance in some steps. Figure 9(b) shows a similar performance of our controller to the baseline controller on van der Pol oscillators. Both methods show high spikes in the local errors. These occur whenever the solution of a van der Pol oscillator changes from being driven to being damped as demonstrated in Figure 5. Our controller does not react quickly to the sudden changes in the local error of van der Pol equations. This behavior is very different from harmonic oscillators, thus generalization can not be expected.
|
parse/train/rkesVkHtDr/rkesVkHtDr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkesVkHtDr/rkesVkHtDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkesVkHtDr/rkesVkHtDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|