Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/BkgzniCqY7/BkgzniCqY7.md +580 -0
- parse/train/BkgzniCqY7/BkgzniCqY7_content_list.json +0 -0
- parse/train/BkgzniCqY7/BkgzniCqY7_middle.json +0 -0
- parse/train/BkgzniCqY7/BkgzniCqY7_model.json +0 -0
- parse/train/Hy6GHpkCW/Hy6GHpkCW.md +367 -0
- parse/train/Hy6GHpkCW/Hy6GHpkCW_content_list.json +1869 -0
- parse/train/Hy6GHpkCW/Hy6GHpkCW_middle.json +0 -0
- parse/train/Hy6GHpkCW/Hy6GHpkCW_model.json +0 -0
- parse/train/HyzMyhCcK7/HyzMyhCcK7_content_list.json +0 -0
- parse/train/HyzMyhCcK7/HyzMyhCcK7_model.json +0 -0
- parse/train/N1i6BJzouX4/N1i6BJzouX4.md +261 -0
- parse/train/N1i6BJzouX4/N1i6BJzouX4_content_list.json +1071 -0
- parse/train/N1i6BJzouX4/N1i6BJzouX4_middle.json +0 -0
- parse/train/N1i6BJzouX4/N1i6BJzouX4_model.json +0 -0
- parse/train/hu2aMLzOxC/hu2aMLzOxC.md +270 -0
- parse/train/hu2aMLzOxC/hu2aMLzOxC_middle.json +0 -0
- parse/train/rh0vIXw6i33/rh0vIXw6i33.md +396 -0
- parse/train/rh0vIXw6i33/rh0vIXw6i33_content_list.json +1655 -0
- parse/train/rh0vIXw6i33/rh0vIXw6i33_middle.json +0 -0
- parse/train/rh0vIXw6i33/rh0vIXw6i33_model.json +0 -0
parse/train/BkgzniCqY7/BkgzniCqY7.md
ADDED
|
@@ -0,0 +1,580 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# STRUCTURED ADVERSARIAL ATTACK: TOWARDS GENERAL IMPLEMENTATION AND BETTER INTERPRETABILITY
|
| 2 |
+
|
| 3 |
+
Kaidi $\mathbf { X } \mathbf { u } ^ { 1 * }$ Sijia $\mathbf { L i u ^ { 2 * } }$ Pu Zhao1 Pin-Yu Chen2 Huan Zhang3 Quanfu Fan2
|
| 4 |
+
Deniz Erdogmus1 Yanzhi Wang1 Xue Lin1
|
| 5 |
+
1Northeastern University, USA
|
| 6 |
+
2MIT-IBM Watson AI Lab, IBM Research, USA
|
| 7 |
+
3University of California, Los Angeles, USA
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
When generating adversarial examples to attack deep neural networks (DNNs), $\ell _ { p }$ norm of the added perturbation is usually used to measure the similarity between original image and adversarial example. However, such adversarial attacks perturbing the raw input spaces may fail to capture structural information hidden in the input. This work develops a more general attack model, i.e., the structured attack (StrAttack), which explores group sparsity in adversarial perturbations by sliding a mask through images aiming for extracting key spatial structures. An ADMM (alternating direction method of multipliers)-based framework is proposed that can split the original problem into a sequence of analytically solvable subproblems and can be generalized to implement other attacking methods. Strong group sparsity is achieved in adversarial perturbations even with the same level of $\ell _ { p }$ -norm distortion $( p \in \{ 1 , 2 , \infty \} )$ as the stateof-the-art attacks. We demonstrate the effectiveness of StrAttack by extensive experimental results on MNIST, CIFAR-10 and ImageNet. We also show that StrAttack provides better interpretability (i.e., better correspondence with discriminative image regions) through adversarial saliency map (Papernot et al., 2016b) and class activation map (Zhou et al., 2016). Our code is available at https://github.com/KaidiXu/StrAttack.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Deep learning achieves exceptional successes in domains such as image recognition (He et al., 2016; Geifman & ElYaniv, 2017), natural language processing (Hinton et al., 2012; Harwath et al., 2016), medical diagnostics (Chen et al., 2016; Shi et al., 2018) and advanced control (Silver et al., 2016; Fu et al., 2017). Recent studies (Szegedy et al., 2013; Goodfellow et al., 2014; Nguyen et al., 2015; Kurakin et al., 2016; Carlini & Wagner, 2017) show that DNNs are vulnerable to adversarial attacks implemented by generating adversarial examples, i.e., adding well-designed perturbations to original legal inputs. Delicately crafted adversarial examples can mislead a DNN to recognize them as any target image label, while the perturbations appears unnoticeable to human eyes. Adversarial attacks against
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Group sparsity demonstrated in adversarial perturbations obtained by C&W attack and our StrAttack, where ‘ostrich’ is the original label, and ‘unicycle’ is the misclassified label. Here each group is a region of $1 3 \times 1 3 \times 3$ pixels and the strength of adversarial perturbations (through their $\ell _ { 2 }$ norm) at each group is represented by heatmap. C&W attack perturbs almost all groups, while StrAttack yields strong group sparsity, with more semantic structure: the perturbed image region matches the feature of the target object, namely, the frame of the unicycle.
|
| 19 |
+
|
| 20 |
+
DNNs not only exist in theoretical models
|
| 21 |
+
|
| 22 |
+
but also pose potential security threats to the real world (Kurakin et al., 2016; Evtimov et al., 2017; Papernot et al., 2017). Several explanations are proposed to illustrate why there exist adversarial examples to DNNs based on hypotheses such as model linearity and data manifold (Goodfellow et al., 2014; Gilmer et al., 2018). However, little is known to their origins, and convincing explanations remain to be explored.
|
| 23 |
+
|
| 24 |
+
Besides achieving the goal of (targeted) mis-classification, an adversarial example should be as “similar” to the original legal input as possible to be stealthy. Currently, the similarity is measured by the $\ell _ { p }$ norm $( p = 0 , 1 , 2 , \infty )$ of the added perturbation (Szegedy et al., 2013; Carlini & Wagner, 2017; Chen et al., 2017b;a), i.e., $\ell _ { p }$ norm is being minimized when generating adversarial example. However, measuring the similarity between the original image and its adversarial example by $\ell _ { p }$ norm is neither necessary nor sufficient (Sharif et al., 2018). Besides, no single measure can be perfect for human perceptual similarity (Carlini & Wagner, 2017) and such adversarial attacks may fail to capture key information hidden in the input such as spatial structure or distribution. Spurred by that, this work implements a new attack model i.e., structured attack (StrAttack) that imposes group sparsity on adversarial perturbations by extracting structures from the inputs. As shown in Fig. 1, we find that StrAttack identifies minimally sufficient regions that make attacks successful, but without incurring extra pixel-level perturbation power. The major contributions are summarized as below.
|
| 25 |
+
|
| 26 |
+
• (Structure-driven attack) This work is the first attempt towards exploring group-wise sparse structures when implementing adversarial attacks, but without losing $\ell _ { p }$ distortion performance when compared to state-of-the-art attacking methods. (Generality) We show that the proposed attack model covers many norm-ball based attacks such as C&W (Carlini & Wagner, 2017) and EAD (Chen et al., 2017a). (Efficient implementation) We develop an efficient algorithm to generate structured adversarial perturbations by leveraging the alternating direction method of multipliers (ADMM). We show that ADMM splits the original complex problem into subproblems, each of which can be solved analytically. Besides, we show that ADMM can further be used to refine an arbitrary adversarial attack under the fixed sparse structure. (Interpretability) The generated adversarial perturbations demonstrate clear correlations and interpretations between original and target images. With the aid of adversarial saliency map (Papernot et al., 2016b) and class activation map (Zhou et al., 2016), we show that the obtained group-sparse adversarial patterns better shed light on the mechanisms of adversarial perturbations to fool DNNs.
|
| 27 |
+
|
| 28 |
+
Related work Many works studied norm-ball constrained adversarial attacks. For example, FGM (Goodfellow et al., 2014) and IFGSM (Kurakin et al., 2017) attack methods were proposed to maximize the classification error subject to $\ell _ { \infty }$ -norm based distortion constraints. Moreover, L-BFGS (Szegedy et al., 2013) and C&W (Carlini & Wagner, 2017) attacks found an adversarial example by minimizing its $\ell _ { 2 }$ -norm distortion. By contrast, JSMA (Papernot et al., 2016b) and one-pixel (Su et al., 2017) attacks attempted to generate adversarial examples by perturbing the minimum number of pixels, namely, minimizing the $\ell _ { 0 }$ norm of adversarial perturbations. Different from the above norm-ball constrained attacks, some works (Karmon et al., 2018; Brown et al., 2017) crafted adversarial examples by adding noise patches. However, the resulting adversarial perturbations are no longer imperceptible to humans. Here we argue that imperceptibility could be important since it helps us to understand how/why DNNs are vulnerable to adversarial attacks while perturbing natural examples just by indistinguished adversarial noise.
|
| 29 |
+
|
| 30 |
+
In the aforementioned norm-ball constrained adversarial attacks, two extremely opposite principles have been applied: C&W attack (or $\ell _ { \infty }$ attacks) seeks the minimum image-level distortion but allows to modify all pixels; one-pixel attack only perturbs a few pixels but suffers a high pixel-level distortion. Both attacking principles might lead to a high noise visibility due to perturbing too many pixels or perturbing a few pixels too much. In this work, we wonder if there exists a more effective attack that can be as successful as existing attacks but achieves a tradeoff between the perturbation power and the number of perturbed pixels. We will show that the proposed StrAttack is able to identify sparse perturbed regions that make attacks successful, but without incurring extra pixel-level perturbations. It is also worth mentioning that one-pixel attack has much lower attack success rate on ImageNet than C&W attack and StrAttack.
|
| 31 |
+
|
| 32 |
+
In addition to adversarial attacks, many defense works have been proposed. Examples include defensive distillation (Papernot et al., 2016c) that distills the original DNN and introduces temperature into the softmax layer, random mask (Anonymous, 2019) that modifies the DNN structures by randomly removing certain neurons before training, adversarial training through enlarging the training dataset with adversarial examples, and robust adversarial training (Madry et al., 2017; Sinha et al., 2018) through the min-max optimization. It is commonly known that the robust adversarial training method ensures the strongest defense performance against adversarial attacks on MNIST and CIFAR-10. In this work, we will evaluate the effectiveness of StrAttack to three defense methods, a) defensive distillation (Papernot et al., 2016c), b) adversarial training via data augmentation (Tramèr et al., 2018) and c) robust adversarial training (Madry et al., 2017).
|
| 33 |
+
|
| 34 |
+
Although the adversarial attack and defense have attracted an increasing amount of attention, the visual explanation on adversarial perturbations is less explored since the distortion power is minimized and the resulting adversarial effects become imperceptible to humans. The work (Dong et al., 2017) attempted to understand how the internal representations of DNNs are affected by adversarial examples. However, only an ensemble-based attack was considered, which fails to distinguish the effectiveness of different norm-ball constrained adversarial attacks. Unlike (Dong et al., 2017), we employ the interpretability tools, adversarial saliency map (ASM) (Papernot et al., 2016b) and class activation map (CAM) (Zhou et al., 2016) to measure the effectiveness of different attacks in terms of their interpretability. Here ASM provides sensitivity analysis for pixel-level perturbation’s impact on label classification, and CAM localizes class-specific image discriminative regions (Xiao et al., 2018). We will show that the sparse adversarial pattern obtained by StrAttack offers a great interpretability through ASM and CAM compared with other norm-ball constrained attacks.
|
| 35 |
+
|
| 36 |
+
# 2 STRUCTURED ATTACK: EXPLORE GROUP STRUCTURES FROM IMAGES
|
| 37 |
+
|
| 38 |
+
In the section, we introduce the concept of StrAttack, motivated by the question: ‘what possible structures could adversarial perturbations have to fool DNNs?’ Our idea is to divide an image into sub-groups of pixels and then penalize the corresponding group-wise sparsity. The resulting sparse groups encode minimally sufficient adversarial effects on local structures of natural images.
|
| 39 |
+
|
| 40 |
+
Let $\pmb { \Delta } \in \mathbb { R } ^ { W \times H \times C }$ be an adversarial perturbation added to an original image $\mathbf { X } _ { 0 }$ , where $W \times H$ gives the spatial region, and $C$ is the depth, e.g., $C = 3$ for RGB images. To characterize the local structures of $\pmb { \Delta }$ , we introduce a sliding mask $\mathcal { M }$ with stride $S$ and size $r \times r \times C$ . When $S = 1$ , the mask moves one pixel at a time; When $S = 2$ , the mask jumps 2 pixels at a time while sliding. By adjusting the stride $S$ and the mask size $r$ , different group splitting schemes can be obtained. If $S \ < \ r$ , the resulting groups will contain overlapping pixels. By contrast, groups will become non-overlapped when $S = r$ .
|
| 41 |
+
|
| 42 |
+
A sliding mask $\mathcal { M }$ finally divides $\pmb { \Delta }$ into a set of groups $\{ \Delta _ { { \mathcal G } _ { p , q } } \}$ for $p \in [ P ]$ and $q \in [ Q ]$ , where $P = ( W - r ) / S + 1$ , $Q = ( H - r ) / S + 1$ , and $[ n ]$ denotes the integer set $\{ 1 , 2 , \ldots , n \}$ . Given the groups $\{ \Delta _ { { \mathcal G } _ { p , q } } \}$ , the group sparsity can be characterized through the following sparsity-inducing function (Yuan $\&$ Lin, 2006; Bach et al., 2012; Liu et al., 2015), motivated by the problem of group Lasso (Yuan & Lin, 2006):
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
\begin{array} { r } { g ( \Delta ) = \sum _ { p = 1 } ^ { P } \sum _ { q = 1 } ^ { Q } \| \Delta { \mathcal { G } } _ { p , q } \| _ { 2 } , } \end{array}
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
where $\Delta _ { { \mathcal G } _ { p , q } }$ denotes the set of pixels of $\pmb { \Delta }$ indexed by $\mathcal { G } _ { p , q }$ , and $\| \cdot \| _ { 2 }$ is the $\ell _ { 2 }$ norm. We refer readers to Fig. A1 for an illustrative example of our concepts on groups and group sparsity.
|
| 49 |
+
|
| 50 |
+
# 3 STRUCTURED ADVERSARIAL ATTACK WITH ADMM
|
| 51 |
+
|
| 52 |
+
In this section, we start by proposing a general framework to generate prediction-evasive adversarial examples, where the adversary relies only on gradients of the loss function with respect to inputs of DNNs. Our model takes into account both commonly-used adversarial distortion metrics and the proposed group-sparsity regularization that encodes spatial structures in attacks. We show that the process of generating structured adversarial examples leads to an optimization problem that is difficult to solve using the existing optimizers Adam (for C&W attack) and FISTA (for EAD attack) (Carlini & Wagner, 2017; Chen et al., 2017a). To circumvent this challenge, we develop an efficient optimization method via alternating direction method of multipliers (ADMM).
|
| 53 |
+
|
| 54 |
+
Given an original image $\mathbf { x } _ { 0 } \in \mathbb { R } ^ { n }$ , we aim to design the optimal adversarial perturbation $\pmb { \delta } \in \mathbb { R } ^ { n }$ so that the adversarial example $( \mathbf { x } _ { 0 } + \pmb { \delta } )$ misleads DNNs trained on natural images. Throughout this paper, we use vector representations of the adversarial perturbation $\pmb { \Delta }$ and the original image $\mathbf { X } _ { 0 }$ without loss of generality. A well designed perturbation $\pmb { \delta }$ can be obtained by solving optimization problems of the following form,
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
\begin{array} { r l } { \underset { \delta } { \mathrm { m i n i m i z e } } } & { \ f ( \mathbf { x } _ { 0 } + \pmb { \delta } , t ) + \gamma D ( \pmb { \delta } ) + \tau g ( \pmb { \delta } ) } \\ { \mathrm { s u b j e c t ~ t o } } & { \ ( \mathbf { x } _ { 0 } + \pmb { \delta } ) \in [ 0 , 1 ] ^ { n } , \ \lVert \pmb { \delta } \rVert _ { \infty } \leq \epsilon , } \end{array}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where $f ( \mathbf { x } , t )$ denotes the loss function for crafting adversarial example given a target class $t$ , $D ( \delta )$ is a distortion function that controls the perceptual similarity between a natural image and a perturbed image, $\begin{array} { r } { g ( \delta ) = \sum _ { p = 1 } ^ { P } \sum _ { q = 1 } ^ { Q } \| \delta _ { { \mathcal G } _ { p , q } } \| _ { 2 } } \end{array}$ is given by (1), and $\| \cdot \| _ { p }$ signifies the $\ell _ { p }$ norm. In problem (2), the ‘hard’ constraints ensure the validness of created adversarial examples with $\epsilon$ - tolerant perturbed pixel values. And the non-negative regularization parameters $\gamma$ and $\tau$ place our emphasis on the distortion of an adversarial example (to an original image) and group sparsity of adversarial perturbation. Tuning the regularization parameters will be discussed in Appendix F.
|
| 61 |
+
|
| 62 |
+
Problem (2) gives a quite general formulation for design of adversarial examples. If we remove the group-sparsity regularizer $g ( \delta )$ and the $\ell _ { \infty }$ constraint, problem (2) becomes the same as the C&W attack (Carlini & Wagner, 2017). More specifically, if we further set the distortion function $D ( \delta )$ to the form of $\ell _ { 0 }$ , $\ell _ { 2 }$ or $\ell _ { \infty }$ norm, then we obtain C&W $\ell _ { 0 }$ , $\ell _ { 2 }$ or $\ell _ { \infty }$ attack. If $D ( \delta )$ is specified by the elastic-net regularizer, then problem (2) becomes the formulation of EAD attack (Chen et al., 2017a).
|
| 63 |
+
|
| 64 |
+
In this paper, we specify the loss function of problem (2) as below, which yields the best known performance of adversaries (Carlini & Wagner, 2017),
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
f ( \mathbf { x } _ { 0 } + \pmb { \delta } , t ) = c \cdot \operatorname* { m a x } \{ \operatorname* { m a x } _ { j \neq t } Z ( \mathbf { x } _ { 0 } + \pmb { \delta } ) _ { j } - Z ( \mathbf { x } _ { 0 } + \pmb { \delta } ) _ { t } , - \kappa \} ,
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $Z ( \mathbf { x } ) _ { j }$ is the $j$ th element of logits $Z ( \mathbf { x } )$ , representing the output before the last softmax layer in DNNs, and $\kappa$ is a confidence parameter that is usually set to zero if the attack transferability is not much cared. We choose $D ( \delta ) \overset { \cdot } { = } \lVert \delta \rVert _ { 2 } ^ { 2 }$ for a fair comparison with the $\mathrm { C } \& \mathbf { W } \ \ell _ { 2 }$ adversarial attack. In this section, we assume that $\{ \mathcal { G } _ { p , q } \}$ are non-overlapping groups, i.e., $\mathcal { G } _ { p , q } \cap \mathcal { G } _ { p ^ { \prime } , q ^ { \prime } } = \emptyset$ for $q \neq q ^ { \prime }$ or $p \neq p ^ { \prime }$ . The overlapping case will be studied in the next section.
|
| 71 |
+
|
| 72 |
+
The presence of multiple non-smooth regularizers and ‘hard’ constraints make the existing optimizers Adam and FISTA (Carlini & Wagner, 2017; Chen et al., $2 0 1 7 \mathrm { a }$ ; Kingma & Ba, 2015; Beck & Teboulle, 2009) inefficient for solving problem (2). First, the subgradient of the objective function of problem (2) is difficult to obtain especially when $\{ \mathcal { G } _ { p , q } \}$ are overlapping groups. Second, it is impossible to compute the proximal operations required for FISTA with respect to all non-smooth regularizers and ‘hard’ constraints. Different from the existing work, we show that ADMM, a firstorder operator splitting method, helps us to split the original complex problem (2) into a sequence of subproblems, each of which can be solved analytically.
|
| 73 |
+
|
| 74 |
+
We reformulate problem (2) in a way that lends itself to the application of ADMM,
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\begin{array} { r l } { \underset { \delta , { \mathbf z } , { \mathbf w } , { \mathbf y } } { \mathrm { m i n i m i z e } } } & { \ f ( \mathbf z + \mathbf x _ { 0 } ) + \gamma D ( \delta ) + \tau \sum _ { i = 1 } ^ { P Q } \| \mathbf y _ { \mathcal D _ { i } } \| _ { 2 } + h ( \mathbf w ) } \\ { \mathrm { s u b j e c t ~ t o } } & { \ \mathbf z = \delta , \ \mathbf z = \mathbf y , \ \mathbf z = \mathbf w , } \end{array}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $\mathbf { z } , \mathbf { y }$ and w are newly introduced variables, for ease of notation let $\mathcal { D } _ { ( q - 1 ) P + p } = \mathcal { G } _ { p , q }$ , and $h ( \mathbf { w } )$ is an indicator function with respect to the constraints of problem (2),
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
h ( \mathbf { w } ) = { \left\{ \begin{array} { l l } { 0 } & { { \mathrm { ~ i f ~ } } ( \mathbf { x } _ { 0 } + \mathbf { w } ) \in [ 0 , 1 ] ^ { n } , \ \| \mathbf { w } \| _ { \infty } \leq \epsilon , } \\ { \infty } & { { \mathrm { ~ o t h e r w i s e . } } } \end{array} \right. }
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
ADMM is performed by minimizing the augmented Lagrangian of problem (4),
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\begin{array} { r l r } & { } & { L ( { \bf z } , \delta , { \bf y } , { \bf w } , { \bf u } , { \bf v } , { \bf s } ) = f ( { \bf z } + { \bf x } _ { 0 } ) + \gamma D ( \delta ) + \tau \sum _ { i = 1 } ^ { P Q } \| { \bf y } { \boldsymbol { \pi } } _ { i } \| _ { 2 } + h ( { \bf w } ) + { \bf u } ^ { T } ( \delta - { \bf z } ) } \\ & { } & { + { \bf v } ^ { T } ( { \bf y } - { \bf z } ) + { \bf s } ^ { T } ( { \bf w } - { \bf z } ) + \frac { \rho } { 2 } \| \delta - { \bf z } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| { \bf y } - { \bf z } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| { \bf w } - { \bf z } \| _ { 2 } ^ { 2 } , \quad } \end{array}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
where u, v and s are Lagrangian multipliers, and $\rho > 0$ is a given penalty parameter. ADMM splits all of optimization variables into two blocks and adopts the following iterative scheme,
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r l } & { \{ \delta ^ { k + 1 } , \mathbf w ^ { k + 1 } , \mathbf y ^ { k + 1 } \} = \underset { \delta , \mathbf w , \mathbf y } { \operatorname* { a r g m i n } } L ( \delta , \mathbf z ^ { k } , \mathbf w , \mathbf y , \mathbf u ^ { k } , \mathbf v ^ { k } , \mathbf s ^ { k } ) , } \\ & { } \\ & { \mathbf z ^ { k + 1 } = \underset { \mathbf z } { \operatorname* { a r g m i n } } L ( \delta ^ { k + 1 } , \mathbf z , \mathbf w ^ { k + 1 } , \mathbf y ^ { k + 1 } , \mathbf u ^ { k } , \mathbf v ^ { k } , \mathbf s ^ { k } ) , } \\ & { \left\{ \begin{array} { l l } { \mathbf u ^ { k + 1 } = \mathbf u ^ { k } + \rho ( \delta ^ { k + 1 } - \mathbf z ^ { k + 1 } ) , } \\ { \mathbf v ^ { k + 1 } = \mathbf v ^ { k } + \rho ( \mathbf y ^ { k + 1 } - \mathbf z ^ { k + 1 } ) , } \\ { \mathbf s ^ { k + 1 } = \mathbf s ^ { k } + \rho ( \mathbf w ^ { k + 1 } - \mathbf z ^ { k + 1 } ) , } \end{array} \right. } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $k$ is the iteration index, steps (7)-(8) are used for updating primal variables, and the last step (9) is known as the dual update step. We emphasize that the crucial property of the proposed ADMM approach is that, as we demonstrate in Proposition 1, the solution to problem (7) can be found in parallel and exactly.
|
| 99 |
+
|
| 100 |
+
Proposition 1 When $D ( \delta ) = \| \delta \| _ { 2 } ^ { 2 }$ , the solution to problem (7) is given by
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\begin{array} { r l } & { \delta ^ { k + 1 } = \frac { \rho } { \rho + 2 \gamma } \mathbf { a } , } \\ & { [ \mathbf { w } ^ { k + 1 } ] _ { i } = \left\{ \begin{array} { l l } { \operatorname* { m i n } \{ 1 - [ \mathbf { x } _ { 0 } ] _ { i } , \epsilon \} } & { b _ { i } > \operatorname* { m i n } \{ 1 - [ \mathbf { x } _ { 0 } ] _ { i } , \epsilon \} } \\ { \operatorname* { m a x } \{ - [ \mathbf { x } _ { 0 } ] _ { i } , - \epsilon \} } & { b _ { i } < \operatorname* { m a x } \{ - [ \mathbf { x } _ { 0 } ] _ { i } , - \epsilon \} \quad f o r \ i \in [ n ] , } \\ { b _ { i } } & { o t h e r w i s e , } \end{array} \right. } \\ & { [ \mathbf { y } ^ { k + 1 } ] _ { \mathcal { D } _ { i } } = \Big ( 1 - \frac { \tau } { \rho \| [ \mathbf { c } ] _ { \mathcal { D } _ { i } } \| _ { 2 } } \Big ) _ { + } [ \mathbf { c } ] _ { \mathcal { D } _ { i } } , \ i \in [ P Q ] , } \end{array}
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
where $\mathbf { a } : = \mathbf { z } ^ { k } - \mathbf { u } ^ { k } / \rho , \mathbf { b } : = \mathbf { z } ^ { k } - \mathbf { s } ^ { k } / \rho , \mathbf { c } : = \mathbf { z } ^ { k } - \mathbf { v } ^ { k } / \rho , ( x ) _ { + } = x$ if $x \geq 0$ and 0 otherwise, $[ \mathbf { x } ] _ { i }$ denotes the ith element of $\mathbf { x }$ , and $[ \mathbf { x } ] _ { \mathcal { D } _ { i } }$ denotes the sub-vector of $\mathbf { x }$ indexed by $\mathcal { D } _ { i }$ .
|
| 107 |
+
|
| 108 |
+
Proof: See Appendix B.
|
| 109 |
+
|
| 110 |
+
It is clear from Proposition 1 that introducing auxiliary variables does not increase the computational complexity of ADMM since (10)-(12) can be solved in parallel. Moreover, if another distortion metric (different from $D ( \delta ) = \lvert \lvert \delta \rvert \rvert _ { 2 } ^ { 2 } )$ is used, then ADMM only changes at the $\delta$ -step (10).
|
| 111 |
+
|
| 112 |
+
We next focus on the $\mathbf { z }$ -minimization step (8), which can be equivalently transformed into
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\operatorname* { m i n i m i z e } _ { \mathbf { z } } \quad f ( \mathbf { x } _ { 0 } + \mathbf { z } ) + \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { a } ^ { \prime } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { b } ^ { \prime } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { c } ^ { \prime } \| _ { 2 } ^ { 2 } ,
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
where $\mathbf { a } ^ { \prime } : = \delta ^ { k + 1 } + \mathbf { u } ^ { k } / \rho$ , $\mathbf b ^ { \prime } : = \mathbf w ^ { k + 1 } + \mathbf s ^ { k } / \rho$ , and $\mathbf { c } ^ { \prime } : = \mathbf { y } ^ { k + 1 } + \mathbf { v } ^ { k } / \rho$ . We recall that attacks studied in this paper belongs to ‘first-order’ adversaries (Madry et al., 2017), which only have access to gradients of the loss function $f$ . Spurred by that, we solve problem (13) via a linearization technique that is commonly used in stochastic/online ADMM (Ouyang et al., 2013; Suzuki, 2013; Liu et al., 2018) or linearized ADMM (Boyd et al., 2011; Liu et al., 2017). Specifically, we replace the function $f$ with its first-order Taylor expansion at the point $\mathbf { z } ^ { k }$ by adding a Bregman divergence term $( \eta _ { k } / 2 ) \lvert | \mathbf { z } - \mathbf { z } ^ { k } \rvert | _ { 2 } ^ { 2 }$ . As a result, problem (13) becomes
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\begin{array} { r l } { \underset { \mathbf { z } } { \mathrm { m i n i m i z e } } } & { ( \nabla f ( \mathbf { z } ^ { k } + \mathbf { x } _ { 0 } ) ) ^ { T } ( \mathbf { z } - \mathbf { z } ^ { k } ) + \displaystyle \frac { \eta _ { k } } { 2 } \| \mathbf { z } - \mathbf { z } ^ { k } \| _ { 2 } ^ { 2 } + \displaystyle \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { a } ^ { \prime } \| _ { 2 } ^ { 2 } } \\ & { + \displaystyle \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { b } ^ { \prime } \| _ { 2 } ^ { 2 } + \displaystyle \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { c } ^ { \prime } \| _ { 2 } ^ { 2 } , } \end{array}
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where $1 / \eta _ { k } > 0$ is a given decaying parameter, e.g., $\eta _ { k } = \alpha \sqrt { k }$ for some $\alpha > 0$ , and the Bregman divergence term stabilizes the convergence of $\mathbf { z }$ -minimization step. It is clear that problem (14) yields a quadratic program with the closed-form solution
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\begin{array} { r } { \mathbf { z } ^ { k + 1 } = \left( 1 / \left( \eta _ { k } + 3 \rho \right) \right) \left( \eta _ { k } \mathbf { z } ^ { k } + \rho \mathbf { a } + \rho \mathbf { b } + \rho \mathbf { c } - \nabla f ( \mathbf { z } ^ { k } + \mathbf { x } _ { 0 } ) \right) . } \end{array}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
In summary, the proposed ADMM algorithm alternatively updates (7)-(9), which yield closed-form solutions given by (10)-(12) and (15). The convergence of linearized ADMM for nonconvex optimization was recently proved by (Liu et al., 2017), and thus provides theoretical validity of our approach. Compared to the existing solver for generation of adversarial examples (Carlini & Wagner, 2017; Papernot et al., 2016b), our algorithm offers two main benefits, efficiency and generality. That is, the computations for every update step are efficiently carried out, and our approach can be applicable to a wide class of attack formulations.
|
| 131 |
+
|
| 132 |
+
# 4 OVERLAPPING GROUP AND REFINED STRATTACK
|
| 133 |
+
|
| 134 |
+
In this section, we generalize our proposed ADMM solution framework to the case of generating adversarial perturbations with overlapping group structures. We then turn to an attack refining model under fixed sparse structures. We will show that both extensions can be unified under the ADMM framework. In particular, the refined approach will allow us to gain deeper insights on the structural effects on adversarial perturbations.
|
| 135 |
+
|
| 136 |
+
# 4.1 OVERLAPPING GROUP STRUCTURE
|
| 137 |
+
|
| 138 |
+
We recall that groups $\{ \mathcal { D } _ { i } \}$ (also denoted by $\{ \mathcal { G } _ { p , q } \} )$ studied in Sec. 3 could be overlapped with each other; see an example in Fig. A1. Therefore, $\{ \mathcal { D } _ { i } \}$ is in general a cover rather than a partition of $[ n ]$ . To address the challenge in coupled group variables, we introduce multiple copies of the variable y in problem (4), and achieve the following modification
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\begin{array} { r l } { \underset { \delta , { \mathbf { z } } , { \mathbf { w } } , \{ { \mathbf { y } } _ { i } \} } { \mathrm { m i n i m i z e } } } & { \ f ( { \mathbf { z } } + { \mathbf { x } } _ { 0 } ) + \gamma D ( \delta ) + \tau \sum _ { i = 1 } ^ { P Q } \| \mathbf { y } _ { i , \mathcal { D } _ { i } } \| _ { 2 } + h ( \mathbf { w } ) } \\ { \mathrm { s u b j e c t ~ t o } } & { \ \mathbf { z } = \delta , \ \mathbf { z } = \mathbf { w } , \ \mathbf { z } = \mathbf { y } _ { i } , \quad i \in [ P Q ] , } \end{array}
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
where compared to problem (4), there exist $P Q$ variables $\mathbf { y } _ { i } \in \mathbb { R } ^ { n }$ for $i \in [ P Q ]$ , and ${ \bf y } _ { i , \mathcal { D } _ { i } }$ denotes the subvector of $\mathbf { y } _ { i }$ with indices given by $\mathcal { D } _ { i }$ . It is clear from (16) that groups $\{ \mathcal { D } _ { i } \}$ become nonoverlapped since each of them lies in a different copy $\mathbf { y } _ { i }$ . The ADMM algorithm for solving problem (16) maintains a similar procedure as (7)-(9) except $\mathbf { y }$ -step (12) and $\mathbf { z }$ -step (15); see Proposition 2.
|
| 145 |
+
|
| 146 |
+
Proposition 2 Given the same condition of Proposition $I$ , the ADMM solution to problem (16) involves the $\delta$ -step same as $( I O )$ , the w-step same as $( l I )$ , and two modified y- and $\mathbf { z }$ -steps,
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
\left\{ \begin{array} { l l } { \left[ \mathbf { y } _ { i } ^ { k + 1 } \right] _ { \mathcal { D } _ { i } } = \left( 1 - \frac { \tau } { \rho \| [ \mathbf { c } _ { i } ] _ { \mathcal { D } _ { i } } \| _ { 2 } } \right) _ { + } [ \mathbf { c } _ { i } ] _ { \mathcal { D } _ { i } } } \\ { \left[ \mathbf { y } _ { i } ^ { k + 1 } \right] _ { [ n ] / \mathcal { D } _ { i } } = [ \mathbf { c } _ { i } ] _ { [ n ] / \mathcal { D } _ { i } } } \\ { \mathbf { z } ^ { k + 1 } = \left( 1 / \left( \eta _ { k } + 2 \rho + P Q \rho \right) \right) \left( \eta _ { k } \mathbf { z } ^ { k } + \rho \mathbf { a } ^ { \prime } + \rho \mathbf { b } ^ { \prime } + \rho \sum _ { i = 1 } ^ { P Q } \mathbf { c } _ { i } ^ { \prime } - \nabla f ( \mathbf { z } ^ { k } + \mathbf { x } _ { 0 } ) \right) , } \end{array} \right.
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
where $\mathbf { c } _ { i } : = \mathbf { z } ^ { k } - \mathbf { v } _ { i } ^ { k } / \rho , \mathbf { v }$ $\mathbf { v } _ { i }$ is the Lagrangian multiplier associated with equality constraint $\mathbf { y } _ { i } = \mathbf { z }$ , similar to (9) we obtain $\mathbf v _ { i } ^ { k + 1 } = \mathbf v _ { i } ^ { k } + \rho ( \mathbf y ^ { k + 1 } - \mathbf z ^ { k + 1 } ) , [ \tau$ $[ n ] / \mathcal { D } _ { i }$ denotes the difference of sets $[ n ]$ and $\mathcal { D } _ { i } , \mathbf { a } ^ { \prime }$ and $\mathbf { b } ^ { \prime }$ have been defined in (13), and $\mathbf c _ { i } ^ { \prime } = \mathbf y _ { i } ^ { k + 1 } + \mathbf v _ { i } ^ { k } / \rho$ .
|
| 153 |
+
|
| 154 |
+
Proof: See Appendix C.
|
| 155 |
+
|
| 156 |
+
We note that updating $P Q$ variables $\left\{ \mathbf { y } _ { i } \right\}$ is decomposed as shown in (17). However, the side effect is the need of $P Q$ times more storage space than the $\mathbf { y }$ -step (12) when groups are non-overlapped.
|
| 157 |
+
|
| 158 |
+
# 4.2 REFINED STRATTACK UNDER FIXED SPARSE PATTERN
|
| 159 |
+
|
| 160 |
+
The approaches proposed in Sec. 3 and Sec. 4.1 help us to identify structured sparse patterns in adversarial perturbations. This section presents a method to refine structured attacks under fixed group sparse patterns. Let $\delta ^ { * }$ denote the solution to problem (2) solved by the proposed ADMM method. We define a $\sigma$ -sparse perturbation $\delta$ via $\delta ^ { * }$ ,
|
| 161 |
+
|
| 162 |
+
$$
|
| 163 |
+
\delta _ { i } = 0 \mathrm { i f } \delta _ { i } ^ { * } \leq \sigma , \mathrm { f o r a n y } i \in [ n ] ,
|
| 164 |
+
$$
|
| 165 |
+
|
| 166 |
+
where a hard thresholding operator is applied to $\delta ^ { * }$ with tolerance $\sigma$ . Our refined model imposes the fixed $\sigma$ -sparse structure (19) into problem (2). This leads to
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\begin{array} { r l } { \underset { \delta } { \mathrm { m i n i m i z e } } } & { f ( \mathbf { x } _ { 0 } + \pmb { \delta } ) + \gamma D ( \pmb { \delta } ) } \\ { \mathrm { s u b j e c t ~ t o } } & { ( \mathbf { x } _ { 0 } + \pmb { \delta } ) \in [ 0 , 1 ] ^ { n } , \| \pmb { \delta } \| _ { \infty } \leq \epsilon } \\ & { \delta _ { i } = 0 , \mathrm { i f ~ } i \in S _ { \sigma } , } \end{array}
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
where $\scriptstyle { \mathcal { S } } _ { \sigma }$ is defined by (19), i.e., $S _ { \sigma } : = \left\{ j \vert \delta _ { j } ^ { * } \leq \sigma \right.$ , $j \in [ n ] \}$ . Compared to problem (2), the groupsparse penalty function is eliminated as it has been known as $a$ priori. With the priori knowledge of group sparsity, problem (20) is formulated to optimize and refine the non-zero groups, thus achieving better performance on highlighting and exploring the perturbation structure. Problem (20) can be solved using ADMM, and its solution is presented in Proposition 3.
|
| 173 |
+
|
| 174 |
+
Proposition 3 The ADMM solution to problem (20) is given by
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
\begin{array} { r } { [ \delta ^ { k + 1 } ] _ { i } = \left\{ \begin{array} { l l } { 0 } & { i \in \mathcal { S } _ { \sigma } } \\ { \operatorname* { m i n } \{ 1 - [ { \mathbf { x } } _ { 0 } ] _ { i } , \epsilon \} } & { \frac { \rho } { 2 \gamma + \rho } a _ { i } > \operatorname* { m i n } \{ 1 - [ { \mathbf { x } } _ { 0 } ] _ { i } , \epsilon \} , i \notin \mathcal { S } _ { \sigma } } \\ { \operatorname* { m a x } \{ - [ { \mathbf { x } } _ { 0 } ] _ { i } , - \epsilon \} } & { \frac { \rho } { 2 \gamma + \rho } a _ { i } < \operatorname* { m a x } \{ - [ { \mathbf { x } } _ { 0 } ] _ { i } , - \epsilon \} , i \notin \mathcal { S } _ { \sigma } } \\ { \frac { \rho } { 2 \gamma + \rho } a _ { i } } & { o t h e r w i s e , } \end{array} \right. } \\ { [ \mathbf { z } ^ { k + 1 } ] _ { i } = \left\{ \begin{array} { l l } { 0 } & { i \in \mathcal { S } _ { \sigma } } \\ { 1 / ( \eta _ { k } + \rho ) \left[ \eta _ { k } [ \mathbf { z } ^ { k } ] _ { i } + \rho [ \mathbf { a } ^ { \prime } ] _ { i } - [ \nabla f ( \mathbf { z } ^ { k } + { \mathbf { x } } _ { 0 } ) ] _ { i } \right] } & { i \notin \mathcal { S } _ { \sigma } , } \end{array} \right. } \end{array}
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
for $i \in \lceil n \rceil$ , where $\mathbf { z } = \delta$ is the introduced auxiliary variable similar to (4), $\mathbf { a } : = \delta ^ { k + 1 } - \mathbf { u } ^ { k } / \rho ,$ $\bar { \mathbf { a } } ^ { \prime } : = \delta ^ { k + 1 ^ { \prime } } + \mathbf { u } ^ { k } / \rho$ , $\mathbf { u } ^ { k + 1 } = \mathbf { u } ^ { k } + \rho ( \delta ^ { k + 1 } - \mathbf { z } ^ { k + 1 } ) ,$ , and $\rho$ and $\eta _ { k }$ have been defined in (6) and $( I 4 )$ . The ADMM iterations can be initialized by $\delta ^ { * }$ , the known solution to problem (2).
|
| 181 |
+
|
| 182 |
+
Proof: See Appendix D.
|
| 183 |
+
|
| 184 |
+
# 5 EMPIRICAL PERFORMANCE OF STRATTACK
|
| 185 |
+
|
| 186 |
+
We evaluate the performance of the proposed StrAttack on three image classification datasets, MNIST (Lecun et al., 1998), CIFAR-10 (Krizhevsky & Hinton, 2009) and ImageNet (Deng et al., 2009). To make fair comparison with the C&W $\ell _ { 2 }$ attack (Carlini & Wagner, 2017), we use $\ell _ { 2 }$ norm as the distortion function $D ( \delta ) = \| \delta \| _ { 2 } ^ { 2 }$ . And we also compare with FGM (Goodfellow et al., 2014) and IFGSM $\ell _ { 2 }$ attacks (Kurakin et al., 2017) as a reference. We evaluate attack success rate (ASR)1 as well as $\ell _ { p }$ distortion metrics for $p \in \{ 0 , 1 , 2 , \infty \}$ . The detailed experiment setup is presented in Appendix F. Our code is available at https://github.com/KaidiXu/StrAttack.
|
| 187 |
+
|
| 188 |
+
For each attack method on MNIST or CIFAR-10, we choose 1000 original images from the test dataset as source and each image has 9 target labels. So a total of 9000 adversarial examples are generated for each attack method. On ImageNet, each attack method tries to craft 900 adverdarial examples with 100 random images from the test dataset and 9 random target labels for each image.
|
| 189 |
+
|
| 190 |
+
Fig. 2 compares adversarial examples generated by StrAttack and C&W attack on each dataset. We observe that the perturbation of the C&W attack has poor group sparsity, i.e., many non-zeros groups with small magnitudes. However, the ASR of the C&W attack is quite sensitive to these small perturbations. As applying a threshold to have the same $\ell _ { 0 }$ norm as our attack, we find that only $6 . 7 \%$ of adversarial examples generated from C&W attack remain valid. By contrast, StrAttack is able to highlight the most important group structures (local regions) of adversarial perturbations without attacking other pixels. For example, StrAttack misclassifies a natural image (4 in MNIST) as an incorrect label 3. That is because the pixels that appears in the structure of 3 are more significantly perturbed by our attack; see the top right plots of Fig. 2. Furthermore, the ‘goose-sorrel’ example shows that misclassification occurs when we just perturb a small number of non-sparse group regions on goose’s head, which is more consistent with human perception. We refer readers to Appendix G for more results.
|
| 191 |
+
|
| 192 |
+
By quatitatively analysis, we report $\ell _ { p }$ norms and ASR in Table 1 for $p \in \{ 0 , 1 , 2 , \infty \}$ . We show that StrAttack perturbs much fewer pixels (smaller $\ell _ { 0 }$ norm), but it is comparable to or even better than other attacks in terms of $\ell _ { 1 } , \ell _ { 2 }$ , and $\ell _ { \infty }$ norms. Specifically, the FGM attack yields the worst performance in both ASR and $\ell _ { p }$ distortion. On MNIST and CIFAR-10, StrAttack outperforms other attacks in $\ell _ { 0 }$ , $\ell _ { 1 }$ and $\ell _ { \infty }$ distortion. On ImageNet, StrAttack outperforms C&W attack in $\ell _ { 0 }$ and $\ell _ { 1 }$ distortion. Since the C&W attacking loss directly penalizes the $\ell _ { 2 }$ norm, it often causes smaller $\ell _ { 2 }$ distortion than StrAttack. We also observe that the overlapping case leads to the adversarial perturbation of less sparsity (in terms of $\ell _ { 0 }$ norm) compared to the non-overlapping case. This is not surprising, since the sparsity of the overlapping region is controlled by at least two groups. However, compared to C&W attack, the use of overlapping groups in StrAttack still yields sparser perturbations. Unless specified otherwise, we focus on the case of non-overlapping groups to generate the most sparse adversarial perturbations. We highlight that although a so-called one-pixel attack (Su et al., 2017) also yields very small $\ell _ { 0 }$ norm, it is at the cost of very large $\ell _ { \infty }$ distortion. Unlike one-pixel attack, StrAttack achieves the sparsity without losing the performance of $\ell _ { \infty }$ , $\ell _ { 1 }$ and $\ell _ { 2 }$ distortion.
|
| 193 |
+
|
| 194 |
+
Furthermore, we compare the performance of StrAttack with the C&W $\ell _ { \infty }$ attack and IFGSM while attacking the robust model (Madry et al., 2017) on MNIST. We remark that all the considered attack methods are performed under the same $\ell _ { \infty }$ -norm based distortion constraint with an upper bound $\epsilon \in \{ 0 . 1 , 0 . 2 , 0 . 3 , 0 . 4 \}$ . Here we obtain a (refined) StrAttack subject to $\| \pmb { \delta } \| _ { \infty } \le \epsilon$ by solving problem (20) at $\gamma = 0$ . In Table 2, we demonstrate the ASR and the number of perturbed pixels for various attacks over 5000 (untargeted) adversarial examples. The ASR define as the proportion of the final perturbation results less than given $\epsilon \in \{ 0 . 1 , 0 . 2 , 0 . 3 , 0 . 4 \}$ bound over number of test images. Here an successful attack is defined by an attack that can fool DNNs and meets the $\ell _ { \infty }$ distortion constraint. As we can see, StrAttack can achieve the similar ASR compared to other attack methods, however, it perturbs a much less number of pixels. Next, we evaluate the performance of StrAttack against two defense mechanisms: defensive distillation (Papernot et al., 2016c) and adversarial training (Tramèr et al., 2018). We observe that StrAttack is able to break the two defense methods with $100 \%$ ASR. More details are provided in Appendix H.
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
Figure 2: C&W attack vs StrAttack. Here each grid cell represents a $2 \times 2 , 2 \times 2$ , and $1 3 \times 1 3$ small region in MNIST, CIFAR-10 and ImageNet, respectively. The group sparsity of perturbation is represented by heatmap. The colors on heatmap represent average absolute value of distortion scale to [0, 255]. The left two columns correspond to results of using C&W attack. The right two columns show results of StrAttack.
|
| 198 |
+
|
| 199 |
+
Table 1: Adversarial attack success rate (ASR) and $\ell _ { p }$ distortion values for various attacks.
|
| 200 |
+
|
| 201 |
+
<table><tr><td rowspan="2">Data Set</td><td rowspan="2">Attack Method</td><td colspan="5">BestCase</td><td colspan="5">Average Case</td><td colspan="5">Worst Case</td></tr><tr><td>ASR</td><td>lo</td><td>l1</td><td>l2</td><td>lo</td><td>ASR</td><td>l</td><td>l1</td><td>l2</td><td>lo</td><td>ASR</td><td>lo</td><td>l1</td><td>l2</td><td>lo</td></tr><tr><td rowspan="5">MNIST</td><td>FGM</td><td>99.3</td><td>456.5 549.5</td><td>28.2</td><td>2.32</td><td>0.57</td><td>35.8</td><td>466</td><td>39.4</td><td>3.17</td><td>0.717</td><td>0</td><td>N.A</td><td>N.A.</td><td>N.A.</td><td>N.A.</td></tr><tr><td>IFGSM</td><td>100</td><td></td><td>18.3</td><td>1.57</td><td>0.4</td><td>100</td><td>588</td><td>30.9</td><td>2.41</td><td>0.566</td><td>99.8</td><td>640.4</td><td>50.98</td><td>3.742</td><td>0.784</td></tr><tr><td>C&W</td><td>100</td><td>479.8</td><td>13.3</td><td>1.35</td><td>0.397</td><td>100</td><td>493.4</td><td>21.3</td><td>1.9</td><td>0.528</td><td>99.7</td><td>524.3</td><td>29.9</td><td>2.45</td><td>0.664</td></tr><tr><td>StrAttack</td><td>100</td><td>73.2</td><td>10.9</td><td>1.51</td><td>0.384</td><td>100</td><td>119.4</td><td>18.05</td><td>2.16</td><td>0.47</td><td>100</td><td>182.0</td><td>26.9</td><td>2.81</td><td>0.5</td></tr><tr><td>+overlap</td><td>100</td><td>84.4</td><td>9.2</td><td>1.32</td><td>0.401</td><td>100</td><td>157.4</td><td>16.2</td><td>1.95</td><td>0.508</td><td>100</td><td>260.9</td><td>22.9</td><td>2.501</td><td>0.653</td></tr><tr><td rowspan="5">CIFAR-10</td><td>FGM</td><td>98.5</td><td>3049</td><td>12.9</td><td>0.389</td><td>0.046</td><td>44.1</td><td>3048</td><td>34.2</td><td>0.989</td><td>0.113</td><td>0.2</td><td>3071</td><td>61.3</td><td>1.76</td><td>0.194</td></tr><tr><td>IFGSM</td><td>100</td><td>3051</td><td>6.22</td><td>0.182</td><td>0.02</td><td>100</td><td>3051</td><td>13.7</td><td>0.391</td><td>0.0433</td><td>100</td><td>3060</td><td>22.9</td><td>0.655</td><td>0.075</td></tr><tr><td>C&W</td><td>100</td><td>2954</td><td>6.03</td><td>0.178</td><td>0.019</td><td>100</td><td>2956</td><td>12.1</td><td>0.347</td><td>0.0364</td><td>99.9</td><td>3070</td><td>16.8</td><td>0.481</td><td>0.0536</td></tr><tr><td>StrAttack</td><td>100</td><td>264</td><td>3.33</td><td>0.204</td><td>0.031</td><td>100</td><td>487</td><td>7.13</td><td>0.353</td><td>0.050</td><td>100</td><td>772</td><td>12.5</td><td>0.563</td><td>0.075</td></tr><tr><td>+overlap</td><td>100</td><td>295</td><td>3.35</td><td>0.169</td><td>0.029</td><td>100</td><td>562</td><td>7.05</td><td>0.328</td><td>0.047</td><td>100</td><td>920</td><td>12.9</td><td>0.502</td><td>0.063</td></tr><tr><td rowspan="4">ImageNet</td><td>FGM</td><td>12</td><td>264917</td><td>152</td><td>0.477</td><td>0.0157</td><td>2</td><td>263585</td><td>51.3</td><td>0.18</td><td>0.00614</td><td>0</td><td>N.A.</td><td>N.A.</td><td>N.A.</td><td>N.A.</td></tr><tr><td>IFGSM</td><td>100</td><td>267079</td><td>299.32</td><td>0.9086</td><td>0.02964</td><td>100</td><td>267293</td><td>723</td><td>2.2</td><td>0.0792</td><td>98</td><td>267581</td><td>1378</td><td>4.22</td><td>0.158</td></tr><tr><td>C&W</td><td>100</td><td>267916</td><td>127</td><td>0.471</td><td>0.016</td><td>100</td><td>263140</td><td>198</td><td>0.679</td><td>0.03</td><td>100</td><td>265212</td><td>268</td><td>0.852</td><td>0.041</td></tr><tr><td>StrAttack</td><td>100</td><td>14462</td><td>55.2</td><td>0.719</td><td>0.058</td><td>100</td><td>52328</td><td>152</td><td>1.06</td><td>0.075</td><td>100</td><td>80722</td><td>197</td><td>1.35</td><td>0.122</td></tr></table>
|
| 202 |
+
|
| 203 |
+
\* Please refer to Appendix F for the definition of best case, best case and worst case. \*\* N.A. means not available in the case of zero ASR, +overlap means structured attack with overlapping groups.
|
| 204 |
+
|
| 205 |
+
Lastly, we evaluate the transferability of StrAttack from Inception V3 (Szegedy et al., 2016) to other network models including Inception V2, Inception V4 (Szegedy et al., 2017), ResNet 50, ResNet 152 (He et al., 2016), DenseNet 121 and DenseNet 161 (Huang et al., 2017). For comparison, we also present the transferbility of IFGSM and C&W. This experiment is performed under 1000 (target) adversarial examples on ImageNet2. It can be seen from in Table 3 that StrAttack yields the largest attack success rate while transferring to almost every network model.
|
| 206 |
+
|
| 207 |
+
Table 2: Attack success rate (ASR) and $\ell _ { 0 }$ norm of adversarial perturbations for various attacks against robust adversarial training based defense on MNIST.
|
| 208 |
+
|
| 209 |
+
<table><tr><td></td><td>ASR at ε = 0.1</td><td>ASR at e = 0.2</td><td>ASR at e = 0.3</td><td>ASR at ε = 0.4</td><td>l</td></tr><tr><td>IFGSM</td><td>0.01</td><td>0.02</td><td>0.09</td><td>0.94</td><td>654</td></tr><tr><td>C&W loattack</td><td>0.01</td><td>0.02</td><td>0.10</td><td>0.96</td><td>723</td></tr><tr><td>StrAttack</td><td>0.01</td><td>0.02</td><td>0.10</td><td>0.99</td><td>279</td></tr></table>
|
| 210 |
+
|
| 211 |
+
Table 3: Comparison of transferability of different attacks over 6 ImageNet models.
|
| 212 |
+
|
| 213 |
+
<table><tr><td></td><td>Incept V2</td><td>Incept V4</td><td>ResNet50</td><td>ResNet152</td><td>DenseNet121</td><td>DenseNet161</td></tr><tr><td>IFGSM</td><td>0.27</td><td>0.22</td><td>0.27</td><td>0.19</td><td>0.16</td><td>0.19</td></tr><tr><td>C&W</td><td>0.25</td><td>0.24</td><td>0.23</td><td>0.23</td><td>0.15</td><td>0.15</td></tr><tr><td>StrAttack</td><td>0.28</td><td>0.27</td><td>0.25</td><td>0.25</td><td>0.26</td><td>0.25</td></tr></table>
|
| 214 |
+
|
| 215 |
+
# 6 STRATTACK OFFERS BETTER INTERPRETABILITY
|
| 216 |
+
|
| 217 |
+
In this section, we evaluate the effects of structured adversarial perturbations on image classification through adversarial saliency map (ASM) (Papernot et al., 2016b) and class activation map (CAM) (Zhou et al., 2016). Here we recall that ASM measures the impact of pixel-level perturbations on label classification, and CAM localizes class-specific image discriminative regions that we use to visually explain adversarial perturbations (Xiao et al., 2018). We will show that compared to C&W attack, StrAttack meets better interpretability in terms of (a) a higher ASM score and (b) a tighter connection with CAM, where the metric (a) implies interpretability at a micro-level, namely, perturbing pixels with largest impact on image classification, and the metric (b) demonstrates interpretability at a macro-level, namely, perturbations can be mapped to the most discriminative image regions localized by CAM.
|
| 218 |
+
|
| 219 |
+
Given an input image $\mathbf { x } _ { \mathrm { 0 } }$ and a target class $t$ , let $\mathrm { A S M } ( \mathbf { x } _ { 0 } , t ) \in \mathbb { R } ^ { d }$ denote ASM scores for every pixel of $\mathbf { x } _ { \mathrm { 0 } }$ corresponding to $t$ . We elaborate on the mathematical definition of ASM in Appendix E. Generally speaking, the ith element of $\mathrm { A S M } ( \mathbf { x } _ { 0 } , t )$ , denoted by $\mathrm { A S M } ( \mathbf { x } _ { 0 } , t ) [ i ]$ , measures how much the classification score with respect to the target label $t$ will increase and that with respect to the original label $t _ { 0 }$ will decrease if a perturbation is added to the pixel $i$ . With the aid of ASM, we then define a Boolean map $\mathbf { B } _ { \mathrm { A S M } } \in \mathbb { R } ^ { \bar { d } }$ to encode the regions of $\mathbf { x } _ { \mathrm { 0 } }$ most sensitive to targeted adversarial attacks, where $\begin{array} { r } { \mathbf { B } _ { \mathrm { A S \bar { M } } } ( i ) = 1 } \end{array}$ if $\mathrm { A S M } ( \mathbf { x } _ { 0 } , t ) > \nu$ , and 0 otherwise. Here $\nu$ is a given threshold to highlight the most sensitive pixels. we then define the interpretability score (IS) via ASM,
|
| 220 |
+
|
| 221 |
+
$$
|
| 222 |
+
\mathrm { I S } ( \delta ) = \| \mathbf { B } _ { \mathrm { A S M } } \circ \pmb { \delta } \| _ { 2 } / \| \pmb { \delta } \| _ { 2 } ,
|
| 223 |
+
$$
|
| 224 |
+
|
| 225 |
+
where $\circ$ is the element-wise product. The rationale behind (23) is that $\mathrm { I S } ( \delta ) 1$ if the sensitive region identified by ASM perfectly predicts the locations of adversarial perturbations. By contrast, if $\mathrm { \bar { I S } } ( \delta ) \to 0$ , then adversarial perturbations cannot be interpreted by ASM. In Fig. 3(a), we compare IS of our proposed attack with C&W attack versus the threshold $\nu$ , valued by different percentiles of ASM scores. We obsreve that our attack outperforms C&W attack in terms of IS, since the former is able to extract important local structures of images by penalizing the group sparsity of adversarial perturbations. It seems that our improvement is not significant. However, StrAttack just perturbs very few pixels to obtain this benefit, leading to perturbations with more semantic structure; see Fig. 3(b) for an illustrative example.
|
| 226 |
+
|
| 227 |
+
Besides ASM, we show that the effect of adversarial perturbations can be visually explained through the class-specific discriminative image regions localized by CAM (Zhou et al., 2016). In Fig. 3(c), we illustrate CAM and demonstrate the differences between our attack and C&W in terms of their connections to the most discriminative regions of $\mathbf { x } _ { \mathrm { 0 } }$ with label $t _ { 0 }$ . We observe that the mechanism of StrAttack can be better interpreted from CAM: only a few adversarial perturbations are needed to suppress the feature of the original image with the true label. By replacing ASM with CAM, we can similarly compute IS in (23) averaged over 500 examples on ImageNet, yielding 0.65 for C&W attack and 0.77 for our attack. More examples of ASM and CAM can be viewed in Appendix E.
|
| 228 |
+
|
| 229 |
+
To better interpret the mechanism of adversarial examples, we study adversarial attacks on some complex images, where the objects of the original and target labels exist simultaneously as shown in Fig. 4. It can be visualized from CAM that both C&W attack and StrAttack yields similar adversarial effects on natural images: Adversarial perturbations are used to suppress the most discriminative region with respect to the true label, and simultaneously promotes the discriminative region of the target label. The former principle is implied by the location of perturbed regions and $C ( \mathbf { x } _ { 0 } , t _ { 0 } )$ in Fig. 4, and the latter can be seen from $C ( \mathbf { x } _ { \mathrm { C W } } , t )$ or $\boldsymbol { C } ( \mathbf { x } _ { \mathrm { S t r } } , t )$ against $C ( \mathbf { x } _ { 0 } , t )$ . However, compared to C&W attack, StrAttack perturbs much less but ‘right’ pixels which have better correspondence with class-specific discriminative image regions localized by CAM.
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
Figure 3: Interpretabilicy comparison of StrAttack and C&W attack. (a) ASM-based IS vs $\nu$ , given from the 30th percentile to the 90th percentile of ASM scores. (b) Overlay ASM and $\mathbf { B } _ { \mathrm { A S M } } \circ \delta$ on top of image with the true label ‘Tibetan Mastiff’ and the target label ‘streetcar’. From left to right: original image, ASM (darker color represents larger value of ASM score), $\mathbf { B } _ { \mathrm { A S M } } \circ \delta$ under StrAttack, and $\mathbf { B } _ { \mathrm { A S M } } \circ \delta$ under C&W attack. Here $\nu$ in $\mathbf { B } _ { \mathrm { A S M } }$ is set by the 90th percentile of ASM scores. (c) From left to right: original image with true label ‘stove’, CAM of ‘stove’, and perturbations with target label ‘water ouzel’ under StrAttack and C&W.
|
| 233 |
+
|
| 234 |
+
# 7 CONCLUSION
|
| 235 |
+
|
| 236 |
+
This work explores group-wise sparse structures when implementing adversarial attacks. Different from previous works that use $\ell _ { p }$ norm to measure the similarity between an original image and an adversarial example, this work incorporates group-sparsity regularization into the problem formulation of generating adversarial examples and achieves strong group sparsity in the obtained adversarial perturbations. Leveraging ADMM, we develop an efficient implementation to generate structured adversarial perturbations, which can be further used to refine an arbitrary adversarial attack under fixed group sparse structures. The proposed ADMM framewrok is general enough for implementing many state-of-the-art attacks. We perform extensive experiments using MNIST, CIFAR-10 and ImageNet datasets, showing that our structured adversarial attack (StrAttack) is much stronger than the existing attacks and its better interpretability from group sparse structures aids in uncovering the origins of adversarial examples.
|
| 237 |
+
|
| 238 |
+
# ACKNOWLEDGEMENT
|
| 239 |
+
|
| 240 |
+
This work is supported by Air Force Research Laboratory FA8750-18-2-0058, and U.S. Office of Naval Research. Sijia Liu, Pin-Yu Chen, Huan Zhang and Quanfu Fan were supported by the MITIBM Watson Ai Lab, IBM Research.
|
| 241 |
+
|
| 242 |
+
# REFERENCES
|
| 243 |
+
|
| 244 |
+
Anonymous. Random mask: Towards robust convolutional neural networks. In Submitted to International Conference on Learning Representations, 2019. URL https://openreview. net/forum?id ${ . } = { }$ SkgkJn05YX. under review.
|
| 245 |
+
|
| 246 |
+
F. Bach, R. Jenatton, J. Mairal, and G. Obozinski. Optimization with sparsity-inducing penalties. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 4(1):1–106, 2012.
|
| 247 |
+
|
| 248 |
+
A. Beck and M. Teboulle. A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM journal on imaging sciences, 2(1):183–202, 2009.
|
| 249 |
+
|
| 250 |
+
S. Boyd, N. Parikh, E. Chu, B. Peleato, J. Eckstein, et al. Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 3(1):1–122, 2011.
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
|
| 254 |
+
$t _ { 0 }$ : Bosto n bu ll, t : bucket $t _ { 0 }$ : holster, t : revo lver $t _ { 0 }$ : pug, t: street sign
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
Figure 4: CAMs of adversarial examples generated by the C&W attack and StrAttack under the original label $\left( t _ { 0 } \right)$ and target label $\mathbf { \rho } ( t )$ . Here $\scriptstyle \mathbf { 1 } \mathbf { 2 } \mathbf { C } \mathbf { W }$ and ${ \pmb x } _ { \mathrm { S t r } }$ denote adversarial examples crafted by different attacks. At each row, the subplots from left to right represent the original image $\scriptstyle { \mathbf { 2 } } 0$ , perturbations generated by C&W attack, perturbations generated by StrAttack, and CAMs with respect to natural or adversarial example under $t _ { 0 }$ or $t$ . Here the class $c$ specified CAM with respect to image $\mathbf { x }$ is denoted by $C ( \mathbf { x } , c )$ .
|
| 260 |
+
|
| 261 |
+
Tom B Brown, Dandelion Mané, Aurko Roy, Martín Abadi, and Justin Gilmer. Adversarial patch. arXiv preprint arXiv:1712.09665, 2017.
|
| 262 |
+
|
| 263 |
+
N. Carlini and D. Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy (SP), 2017 IEEE Symposium on, pp. 39–57. IEEE, 2017.
|
| 264 |
+
|
| 265 |
+
J. Chen, L. Yang, Y. Zhang, M. Alber, and D. Chen. Combining fully convolutional and recurrent neural networks for 3d biomedical image segmentation. In Advances in Neural Information Processing Systems, pp. 3036–3044, 2016.
|
| 266 |
+
|
| 267 |
+
P.-Y. Chen, Y. Sharma, H. Zhang, J. Yi, and C.-J. Hsieh. Ead: elastic-net attacks to deep neural networks via adversarial examples. arXiv preprint arXiv:1709.04114, 2017a.
|
| 268 |
+
|
| 269 |
+
P.-Y. Chen, H. Zhang, Y. Sharma, J. Yi, and C.-J. Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 15–26. ACM, 2017b.
|
| 270 |
+
|
| 271 |
+
J. Deng, W. Dong, R. Socher, L. Li, K. Li, and F.-F. Li. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009.
|
| 272 |
+
|
| 273 |
+
Y. Dong, H. Su, J. Zhu, and F. Bao. Towards interpretable deep neural networks by leveraging adversarial examples. arXiv preprint arXiv:1708.05493, 2017.
|
| 274 |
+
|
| 275 |
+
I. Evtimov, K. Eykholt, E. Fernandes, T. Kohno, B. Li, A. Prakash, A. Rahmati, and D. Song. Robust physical-world attacks on machine learning models. arXiv preprint arXiv:1707.08945, 2017.
|
| 276 |
+
|
| 277 |
+
J. Fu, J. Co-Reyes, and S. Levine. Ex2: Exploration with exemplar models for deep reinforcement learning. In Advances in Neural Information Processing Systems, pp. 2574–2584, 2017.
|
| 278 |
+
|
| 279 |
+
Y. Geifman and R. El-Yaniv. Selective classification for deep neural networks. In Advances in neural information processing systems, pp. 4885–4894, 2017.
|
| 280 |
+
|
| 281 |
+
J. Gilmer, L. Metz, F. Faghri, S. Schoenholz, M. Raghu, M. Wattenberg, and I. Goodfellow. Adversarial spheres. arXiv preprint arXiv:1801.02774, 2018.
|
| 282 |
+
I. Goodfellow, J. Shlens, and C. Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
|
| 283 |
+
D. Harwath, A. Torralba, and J. Glass. Unsupervised learning of spoken language with visual context. In Advances in Neural Information Processing Systems, pp. 1858–1866, 2016.
|
| 284 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 285 |
+
G. Hinton, L. Deng, D. Yu, G. Dahl, A.-r. Mohamed, N. Jaitly, A. Senior, V. Vanhoucke, P. Nguyen, T. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012.
|
| 286 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, volume 1, pp. 3, 2017.
|
| 287 |
+
D. Karmon, D. Zoran, and Y. Goldberg. Lavan: Localized and visible adversarial noise. arXiv preprint arXiv:1801.02608, 2018.
|
| 288 |
+
D. Kingma and J. Ba. Adam: A method for stochastic optimization. 2015 ICLR, arXiv preprint arXiv:1412.6980, 2015. URL http://arxiv.org/abs/1412.6980.
|
| 289 |
+
A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Master’s thesis, Department of Computer Science, University of Toronto, 2009.
|
| 290 |
+
A. Kurakin, I. Goodfellow, and S. Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
|
| 291 |
+
A. Kurakin, I. Goodfellow, and S. Bengio. Adversarial machine learning at scale. 2017 ICLR, arXiv preprint arXiv:1611.01236, 2017. URL http://arxiv.org/abs/1611.01236.
|
| 292 |
+
Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, Nov 1998. ISSN 0018-9219. doi: 10.1109/5.726791.
|
| 293 |
+
Q. Liu, X. Shen, and Y. Gu. Linearized admm for non-convex non-smooth optimization with convergence analysis. arXiv preprint arXiv:1705.02502, 2017.
|
| 294 |
+
S. Liu, S. Kar, M. Fardad, and P. K. Varshney. Sparsity-aware sensor collaboration for linear coherent estimation. IEEE Transactions on Signal Processing, 63(10):2582–2596, 2015.
|
| 295 |
+
S. Liu, J. Chen, P.-Y. Chen, and A. O. Hero. Zeroth-order online admm: Convergence analysis and applications. In Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics, volume 84, pp. 288–297, April 2018.
|
| 296 |
+
A. Madry, A. Makelov, L. Schmidt, D. Tsipras, and A. Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
|
| 297 |
+
A. Nguyen, J. Yosinski, and J. Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 427–436, 2015.
|
| 298 |
+
H. Ouyang, N. He, L. Tran, and A. Gray. Stochastic alternating direction method of multipliers. In International Conference on Machine Learning, pp. 80–88, 2013.
|
| 299 |
+
N. Papernot, I. Goodfellow, R. Sheatsley, R. Feinman, and P. McDaniel. cleverhans v1.0.0: an adversarial machine learning library. arXiv preprint arXiv:1610.00768, 2016a.
|
| 300 |
+
N. Papernot, P. McDaniel, S. Jha, M. Fredrikson, B. Celik, and A. Swami. The limitations of deep learning in adversarial settings. In Security and Privacy (EuroS&P), 2016 IEEE European Symposium on, pp. 372–387. IEEE, 2016b.
|
| 301 |
+
N. Papernot, P. McDaniel, X. Wu, S. Jha, and A. Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 582–597. IEEE, 2016c.
|
| 302 |
+
N. Papernot, P. McDaniel, I. Goodfellow, S. Jha, Z. Celik, and A. Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, pp. 506–519. ACM, 2017.
|
| 303 |
+
N. Parikh, S. Boyd, et al. Proximal algorithms. Foundations and Trends $\textsuperscript { \textregistered }$ in Optimization, 1(3): 127–239, 2014.
|
| 304 |
+
M. Sharif, L. Bauer, and M. K. Reiter. On the suitability of lp-norms for creating and preventing adversarial examples. CoRR, abs/1802.09653, 2018.
|
| 305 |
+
X. Shi, M. Sapkota, F. Xing, F. Liu, L. Cui, and L. Yang. Pairwise based deep ranking hashing for histopathology image classification and retrieval. Pattern Recognition, 81:14 – 22, 2018. ISSN 0031-3203. doi: https://doi.org/10.1016/j.patcog.2018.03.015. URL http: //www.sciencedirect.com/science/article/pii/S0031320318301055.
|
| 306 |
+
D. Silver, A. Huang, C. Maddison, A. Guez, L. Sifre, G. Van Den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershelvam, M. Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016.
|
| 307 |
+
A. Sinha, H. Namkoong, and J. Duchi. Certifying some distributional robustness with principled adversarial training. 2018.
|
| 308 |
+
Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy?–a comprehensive study on the robustness of 18 deep image classification models. arXiv preprint arXiv:1808.01688, 2018.
|
| 309 |
+
J. Su, D. Vargas, and S. Kouichi. One pixel attack for fooling deep neural networks. arXiv preprint arXiv:1710.08864, 2017.
|
| 310 |
+
T. Suzuki. Dual averaging and proximal gradient descent for online alternating direction multiplier method. In International Conference on Machine Learning, pp. 392–400, 2013.
|
| 311 |
+
C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
|
| 312 |
+
C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016.
|
| 313 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In AAAI, volume 4, pp. 12, 2017.
|
| 314 |
+
F. Tramèr, A. Kurakin, N. Papernot, I. Goodfellow, D. Boneh, and P. McDaniel. Ensemble adversarial training: Attacks and defenses. 2018 ICLR, arXiv preprint arXiv:1705.07204, 2018.
|
| 315 |
+
C. Xiao, J. Zhu, B. Li, W. He, M. Liu, and D. Song. Spatially transformed adversarial examples. CoRR, abs/1801.02612, 2018. URL http://arxiv.org/abs/1801.02612.
|
| 316 |
+
M. Yuan and Y. Lin. Model selection and estimation in regression with grouped variables. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 68(1):49–67, 2006.
|
| 317 |
+
B. Zhou, A. Khosla, A. Lapedriza, A. Oliva, and A. Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2921–2929, 2016.
|
| 318 |
+
|
| 319 |
+
# APPENDIX
|
| 320 |
+
|
| 321 |
+
# A ILLUSTRATIVE EXAMPLE OF GROUP SPARSITY
|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
Figure A1: An example of $4 \times 4$ perturbation matrix under sliding masks with different strides. The values of matrix elements are represented by color’s intensity (white stands for 0). Left: Non-overlapping groups with $r = 2$ and $S = 2$ . Right: Overlapping groups with $r = 2$ and $S = 1$ . In both cases, two groups $\mathcal { G } _ { 1 , 1 }$ and $\mathcal { G } _ { 1 , 2 }$ are highlighted, where $\mathcal { G } _ { 1 , 1 }$ is non-sparse, and $\mathcal { G } _ { 1 , 2 }$ is sparse.
|
| 325 |
+
|
| 326 |
+
# B PROOF OF PROPOSITION 1
|
| 327 |
+
|
| 328 |
+
We recall that the augmented Lagrangian function $L ( \delta , \mathbf { z } , \mathbf { w } , \mathbf { y } , \mathbf { u } , \mathbf { v } , \mathbf { s } )$ is given by
|
| 329 |
+
|
| 330 |
+
$$
|
| 331 |
+
\begin{array} { r l r } & { } & { L ( { \bf z } , \delta , { \bf y } , { \bf w } , { \bf u } , { \bf v } , { \bf s } ) = f ( { \bf z } + { \bf x } _ { 0 } ) + \gamma D ( \delta ) + \tau \sum _ { i = 1 } ^ { P Q } \| { \bf y } _ { \mathcal { D } _ { i } } \| _ { 2 } + h ( { \bf w } ) + { \bf u } ^ { T } ( \delta - { \bf z } ) } \\ & { } & { + { \bf v } ^ { T } ( { \bf y } - { \bf z } ) + { \bf s } ^ { T } ( { \bf w } - { \bf z } ) + \displaystyle \frac { \rho } { 2 } \| \delta - { \bf z } \| _ { 2 } ^ { 2 } + \displaystyle \frac { \rho } { 2 } \| { \bf y } - { \bf z } \| _ { 2 } ^ { 2 } + \displaystyle \frac { \rho } { 2 } \| { \bf w } - { \bf z } \| _ { 2 } ^ { 2 } . } \end{array}
|
| 332 |
+
$$
|
| 333 |
+
|
| 334 |
+
Problem (7), to minimize $L ( \delta , \mathbf { z } ^ { k } , \mathbf { w } , \mathbf { y } , \mathbf { u } ^ { k } , \mathbf { v } ^ { k } , \mathbf { s } ^ { k } )$ , can be decomposed into three sub-problems:
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
\operatorname* { m i n i m i z e } _ { \delta } \gamma D ( \pmb { \delta } ) + \frac { \rho } { 2 } \| \pmb { \delta } - \mathbf { a } \| _ { 2 } ^ { 2 } ,
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
$$
|
| 341 |
+
\operatorname* { m i n i m i z e } _ { \mathbf { w } } { h ( \mathbf { w } ) } + \frac { \rho } { 2 } \| \mathbf { w } - \mathbf { b } \| _ { 2 } ^ { 2 } ,
|
| 342 |
+
$$
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
\underset { \mathbf { y } } { \mathrm { m i n i m i z e } } \ \tau \sum _ { i = 1 } ^ { P Q } \| \mathbf { y } _ { \mathcal { D } _ { i } } \| _ { 2 } + \frac { \rho } { 2 } \| \mathbf { y } - \mathbf { c } \| _ { 2 } ^ { 2 } ,
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
where $\mathbf { a } : = \mathbf { z } ^ { k } - \mathbf { u } ^ { k } / \rho , \mathbf { b } : = \mathbf { z } ^ { k } - \mathbf { s } ^ { k } / \rho$ , and $\mathbf { c } : = \mathbf { z } ^ { k } - \mathbf { v } ^ { k } / \rho .$ .
|
| 349 |
+
|
| 350 |
+
$\delta$ -step Suppose $D ( \delta ) = \| \delta \| _ { 2 } ^ { 2 }$ , then the solution to problem (25) is easily acquired as below
|
| 351 |
+
|
| 352 |
+
$$
|
| 353 |
+
\delta ^ { k + 1 } = \frac { \rho } { \rho + 2 \gamma } \mathbf { a }
|
| 354 |
+
$$
|
| 355 |
+
|
| 356 |
+
w-step Based on the definition of $h ( \mathbf { w } )$ , problem (26) becomes
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\begin{array} { r l } { \underset { \mathbf { w } } { \mathrm { m i n i m i z e } } } & { \| \mathbf { w } - \mathbf { b } \| _ { 2 } ^ { 2 } } \\ { \mathrm { s u b j e c t ~ t o } } & { ( \mathbf { x } _ { 0 } + \mathbf { w } ) \in [ 0 , 1 ] ^ { n } , \ \| \mathbf { w } \| _ { \infty } \leq \epsilon . } \end{array}
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
Problem (29) is equivalent to
|
| 363 |
+
|
| 364 |
+
$$
|
| 365 |
+
\begin{array} { r l } { \underset { w _ { i } } { \mathrm { m i n i m i z e } } } & { ( w _ { i } - a _ { i } ) _ { 2 } ^ { 2 } } \\ { \mathrm { s u b j e c t ~ t o } } & { - [ \mathbf { x } _ { 0 } ] _ { i } \leq w _ { i } \leq 1 - [ \mathbf { x } _ { 0 } ] _ { i } , | w _ { i } | \leq \epsilon } \end{array}
|
| 366 |
+
$$
|
| 367 |
+
|
| 368 |
+
for $i \in [ n ]$ , where $x _ { i }$ or $[ \mathbf { x } ] _ { i }$ represents the $i$ th element of $\mathbf { x }$ , and $1 - [ { \bf x } _ { 0 } ] _ { i } > 0$ since $[ \mathbf { x } _ { 0 } ] _ { i } \in [ 0 , 1 ]$ . Problem (30) then yields the solution
|
| 369 |
+
|
| 370 |
+
$$
|
| 371 |
+
[ \mathbf { w } ^ { k + 1 } ] _ { i } = \left\{ \begin{array} { l l } { \operatorname* { m i n } \{ 1 - [ \mathbf { x } _ { 0 } ] _ { i } , \epsilon \} } & { a _ { i } > \operatorname* { m i n } \{ 1 - [ \mathbf { x } _ { 0 } ] _ { i } , \epsilon \} } \\ { \operatorname* { m a x } \{ - [ \mathbf { x } _ { 0 } ] _ { i } , - \epsilon \} } & { a _ { i } < \operatorname* { m a x } \{ - [ \mathbf { x } _ { 0 } ] _ { i } , - \epsilon \} } \\ { a _ { i } } & { \mathrm { o t h e r w i s e } . } \end{array} \right.
|
| 372 |
+
$$
|
| 373 |
+
|
| 374 |
+
y-step Problem (27) becomes
|
| 375 |
+
|
| 376 |
+
$$
|
| 377 |
+
\underset { \mathbf { y } } { \mathrm { m i n i m i z e } } \sum _ { i = 1 } ^ { P Q } \| \mathbf { y } _ { \mathcal { D } _ { i } } \| _ { 2 } + \frac { \rho } { 2 \tau } \| \mathbf { y } - \mathbf { c } \| _ { 2 } ^ { 2 } ,
|
| 378 |
+
$$
|
| 379 |
+
|
| 380 |
+
The solution is given by the proximal operator associated with the $\ell _ { 2 }$ norm with parameter $\tau / \rho$ (Parikh et al., 2014)
|
| 381 |
+
|
| 382 |
+
$$
|
| 383 |
+
[ { \bf y } ^ { k + 1 } ] _ { \mathcal { D } _ { i } } = \left( 1 - \frac { \tau } { \rho \| [ { \bf c } ] _ { \mathcal { D } _ { i } } \| _ { 2 } } \right) _ { + } [ { \bf c } ] _ { \mathcal { D } _ { i } } , \ i \in [ P Q ] ,
|
| 384 |
+
$$
|
| 385 |
+
|
| 386 |
+
where recall that $\cup _ { i \in [ P Q ] } { \mathcal { D } } _ { i } = [ n ]$ , and $\mathcal { D } _ { i } \cap \mathcal { D } _ { j } = \emptyset$ if $i \neq j$ .
|
| 387 |
+
|
| 388 |
+
# C PROOF OF PROPOSITION 2
|
| 389 |
+
|
| 390 |
+
The augmented Lagrangian of problem (16) is given by
|
| 391 |
+
|
| 392 |
+
$$
|
| 393 |
+
\begin{array} { l } { { \displaystyle \langle { \bf z } , \delta , { \bf w } , \{ \bf y } _ { i } \rangle , { \bf u } , { \bf v } _ { i } , { \bf s } \rangle = f ( { \bf z } + { \bf x } _ { 0 } ) + \gamma D ( \delta ) + h ( { \bf w } ) + \tau \sum _ { i = 1 } ^ { P Q } \| { \bf y } _ { i } , { \mathcal D } _ { i } \| _ { 2 } + { \bf u } ^ { T } ( \delta - { \bf z } ) + { \bf s } ^ { T } ( { \bf w } - { \bf z } ) } \\ { { \displaystyle \qquad + \sum _ { i = 1 } ^ { P Q } { \bf v } _ { i } ^ { T } ( { \bf y } _ { i } - { \bf z } ) + \frac { \rho } { 2 } \| \delta - { \bf z } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| { \bf w } - { \bf z } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \sum _ { i = 1 } ^ { P Q } \| { \bf y } _ { i } - { \bf z } \| _ { 2 } ^ { 2 } } , } \end{array}
|
| 394 |
+
$$
|
| 395 |
+
|
| 396 |
+
where u, $\mathbf { v } _ { i }$ and s are the Lagrangian multipliers.
|
| 397 |
+
|
| 398 |
+
ADMM decomposes the optimization variables into two blocks and adopts the following iterative scheme,
|
| 399 |
+
|
| 400 |
+
$$
|
| 401 |
+
\begin{array} { r l } & { \{ \delta ^ { k + 1 } , \mathbf w ^ { k + 1 } , \mathbf y _ { i } ^ { k + 1 } \} = \underset { \delta , \mathbf w , \{ \mathbf y _ { i } \} } { \arg \operatorname* { m i n } } L ( \mathbf z ^ { k } , \delta , \mathbf w , \mathbf y _ { i } , \mathbf u ^ { k } , \mathbf v _ { i } ^ { k } , \mathbf s ^ { k } ) , } \\ & { } \\ & { \mathbf z ^ { k + 1 } = \underset { \mathbf z } { \arg \operatorname* { m i n } } L ( \mathbf z , \delta ^ { k + 1 } , \mathbf w ^ { k + 1 } , \mathbf y _ { i } ^ { k + 1 } , \mathbf u ^ { k } , \mathbf v _ { i } ^ { k } , \mathbf s ^ { k } ) , } \\ & { \left\{ \begin{array} { l l } { \mathbf u ^ { k + 1 } = \mathbf u ^ { k } + \rho ( \delta ^ { k + 1 } - \mathbf z ^ { k + 1 } ) , } \\ { \mathbf v _ { i } ^ { k + 1 } = \mathbf v _ { i } ^ { k } + \rho ( \mathbf y _ { i } ^ { k + 1 } - \mathbf z ^ { k + 1 } ) , \mathrm { ~ f o r ~ } i \in [ P Q ] , } \\ { \mathbf s ^ { k + 1 } = \mathbf s ^ { k } + \rho ( \mathbf w ^ { k + 1 } - \mathbf z ^ { k + 1 } ) , } \end{array} \right. } \end{array}
|
| 402 |
+
$$
|
| 403 |
+
|
| 404 |
+
where $k$ is the iteration index. Problem (35) can be split into three subproblems as shown below,
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
\operatorname* { m i n i m i z e } _ { \delta } \gamma D ( \pmb { \delta } ) + \frac { \rho } { 2 } \| \pmb { \delta } - \mathbf { a } \| _ { 2 } ^ { 2 } ,
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
$$
|
| 411 |
+
\operatorname* { m i n i m i z e } _ { \mathbf { w } } ~ h ( \mathbf { w } ) + \frac { \rho } { 2 } \| \mathbf { w } - \mathbf { b } \| _ { 2 } ^ { 2 } ,
|
| 412 |
+
$$
|
| 413 |
+
|
| 414 |
+
$$
|
| 415 |
+
\operatorname* { m i n i m i z e } _ { \mathbf { y } _ { i } } { \tau } | | \mathbf { y } _ { i , \mathcal { D } _ { i } } | | _ { 2 } + \frac { \rho } { 2 } | | \mathbf { y } _ { i } - \mathbf { c } _ { i } | | _ { 2 } ^ { 2 } , \mathrm { f o r } i \in [ P Q ] .
|
| 416 |
+
$$
|
| 417 |
+
|
| 418 |
+
where $\mathbf { a } = \mathbf { z } ^ { k } - \mathbf { u } ^ { k } / \rho$ , $\mathbf { b } = \mathbf { z } ^ { k } - \mathbf { s } ^ { k } / \rho$ and $\mathbf { c } _ { i } = \mathbf { z } ^ { k } - \mathbf { v } _ { i } ^ { k } / \rho$ . Each problem has a closed form solution. Note that the solutions to problem (38) and problem (39) are given (28) and (31).
|
| 419 |
+
|
| 420 |
+
$\mathbf { y } _ { i }$ -step Problem (40) can be rewritten as
|
| 421 |
+
|
| 422 |
+
$$
|
| 423 |
+
\displaystyle \operatorname* { m i n i m i z e } _ { \mathbf { y } _ { i } } \ : \tau \| \mathbf { y } _ { i , \mathcal { D } _ { i } } \| _ { 2 } + \frac { \rho } { 2 } \| \mathbf { y } _ { i , \mathcal { D } _ { i } } - [ \mathbf { c } _ { i } ] _ { \mathcal { D } _ { i } } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| \mathbf { y } _ { i , [ n ] / \mathcal { D } _ { i } } - [ \mathbf { c } _ { i } ] _ { [ n ] / \mathcal { D } _ { i } } \| _ { 2 } ^ { 2 } , \mathrm { ~ f o r ~ } i \in [ P Q ] ,
|
| 424 |
+
$$
|
| 425 |
+
|
| 426 |
+
which can be decomposed into
|
| 427 |
+
|
| 428 |
+
$$
|
| 429 |
+
\begin{array} { r l } & { \underset { { \bf y } _ { i , \mathcal { D } _ { i } } } { \mathrm { m i n i m i z e ~ } } \tau \| { \bf y } _ { i , \mathcal { D } _ { i } } \| _ { 2 } + \frac { \rho } { 2 } \| { \bf y } _ { i , \mathcal { D } _ { i } } - [ { \bf c } _ { i } ] _ { \mathcal { D } _ { i } } \| _ { 2 } ^ { 2 } , \mathrm { ~ f o r ~ } i \in [ P Q ] , } \end{array}
|
| 430 |
+
$$
|
| 431 |
+
|
| 432 |
+
and
|
| 433 |
+
|
| 434 |
+
$$
|
| 435 |
+
\mathop { \operatorname* { m i n i m i z e } } _ { \mathbf { y } _ { i , [ n ] / \mathcal { D } _ { i } } } ~ \| \mathbf { y } _ { i , [ n ] / \mathcal { D } _ { i } } - [ \mathbf { c } _ { i } ] _ { [ n ] / \mathcal { D } _ { i } } \| _ { 2 } ^ { 2 } , \mathrm { f o r } i \in [ P Q ] .
|
| 436 |
+
$$
|
| 437 |
+
|
| 438 |
+
The solution to problem (42) can be obtained through the block soft thresholding operator (Parikh et al., 2014),
|
| 439 |
+
|
| 440 |
+
$$
|
| 441 |
+
\big [ \mathbf { y } _ { i } ^ { k + 1 } \big ] _ { \mathcal { D } _ { i } } = \left( 1 - \frac { \tau } { \rho \| \big [ \mathbf { c } _ { i } \big ] _ { \mathcal { D } _ { i } } \| _ { 2 } } \right) _ { + } [ \mathbf { c } _ { i } ] _ { \mathcal { D } _ { i } } , \mathrm { f o r } i \in [ P Q ] ,
|
| 442 |
+
$$
|
| 443 |
+
|
| 444 |
+
The solution to problem (43) is given by,
|
| 445 |
+
|
| 446 |
+
$$
|
| 447 |
+
\begin{array} { r } { \left[ \mathbf { y } _ { i } ^ { k + 1 } \right] _ { [ n ] / \mathcal { D } _ { i } } = [ \mathbf { c } _ { i } ] _ { [ n ] / \mathcal { D } _ { i } } , \mathrm { f o r } i \in [ P Q ] . } \end{array}
|
| 448 |
+
$$
|
| 449 |
+
|
| 450 |
+
z-step Problem (36) can be simplified to
|
| 451 |
+
|
| 452 |
+
$$
|
| 453 |
+
\operatorname* { m i n i m i z e } _ { \mathbf { z } } \quad f ( \mathbf { x } _ { 0 } + \mathbf { z } ) + \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { a } ^ { \prime } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { b } ^ { \prime } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \sum _ { i = 1 } ^ { P Q } \| \mathbf { z } - \mathbf { c } _ { i } ^ { \prime } \| _ { 2 } ^ { 2 } ,
|
| 454 |
+
$$
|
| 455 |
+
|
| 456 |
+
where $\mathbf { a } ^ { \prime } : = \delta ^ { k + 1 } + \mathbf { u } ^ { k } / \rho$ , $\mathbf b ^ { \prime } : = \mathbf w ^ { k + 1 } + \mathbf s ^ { k } / \rho$ , and $\mathbf c _ { i } ^ { \prime } : = \mathbf y _ { i } ^ { k + 1 } + \mathbf v _ { i } ^ { k } / \rho$ . We solve problem (46) using the linearization technique (Suzuki, 2013; Liu et al., 2018; Boyd et al., 2011). More specifically, the function $f$ is replaced with its first-order Taylor expansion at the point $\mathbf { z } ^ { k }$ by adding a Bregman divergence term $( \eta _ { k } \mathbf { \dot { / } } 2 ) \lVert \mathbf { z } - \mathbf { z } ^ { k } \rVert _ { 2 } ^ { 2 }$ . As a result, problem (46) becomes
|
| 457 |
+
|
| 458 |
+
$$
|
| 459 |
+
\begin{array} { r l } { \underset { \mathbf { z } } { \mathrm { m i n i m i z e } } } & { ( \nabla f ( \mathbf { z } ^ { k } + \mathbf { x } _ { 0 } ) ) ^ { T } ( \mathbf { z } - \mathbf { z } ^ { k } ) + \displaystyle \frac { \eta _ { k } } { 2 } \| \mathbf { z } - \mathbf { z } ^ { k } \| _ { 2 } ^ { 2 } + \displaystyle \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { a } ^ { \prime } \| _ { 2 } ^ { 2 } } \\ & { + \displaystyle \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { b } ^ { \prime } \| _ { 2 } ^ { 2 } + \displaystyle \frac { \rho } { 2 } \sum _ { i = 1 } ^ { P Q } \| \mathbf { z } - \mathbf { c } _ { i } ^ { \prime } \| _ { 2 } ^ { 2 } , } \end{array}
|
| 460 |
+
$$
|
| 461 |
+
|
| 462 |
+
whose solution is given by
|
| 463 |
+
|
| 464 |
+
$$
|
| 465 |
+
\mathbf { z } ^ { k + 1 } = \frac { \eta _ { k } \mathbf { z } ^ { k } + \rho \mathbf { a } ^ { \prime } + \rho \mathbf { b } ^ { \prime } + \rho \sum _ { i = 1 } ^ { P Q } \mathbf { c } _ { i } ^ { \prime } - \nabla f ( \mathbf { z } ^ { k } + \mathbf { x } _ { 0 } ) } { \eta _ { k } + ( 2 + P Q ) \rho } .
|
| 466 |
+
$$
|
| 467 |
+
|
| 468 |
+
# D PROOF OF PROPOSITION 3
|
| 469 |
+
|
| 470 |
+
We start by converting problem (20) into the ADMM form
|
| 471 |
+
|
| 472 |
+
$$
|
| 473 |
+
\begin{array} { r l } { \underset { \delta , \mathbf { z } } { \mathrm { m i n i m i z e } } } & { \ f ( \mathbf { x } _ { 0 } + \mathbf { z } ) + g ( \mathbf { z } ) + \gamma D ( \delta ) + h ( \delta ) + g ( \delta ) } \\ { \mathrm { s u b j e c t \ t o } } & { \ \delta = \mathbf { z } , } \end{array}
|
| 474 |
+
$$
|
| 475 |
+
|
| 476 |
+
where $\mathbf { z }$ and $\delta$ are optimization variables, $g ( \delta )$ is an indicator function with respect to the constraint $\{ \delta _ { i } = 0$ , if $i \in \mathcal { S } _ { \sigma } \bar \}$ , and $h ( \delta )$ is the other indicator function with respect to the other constraints $( \mathbf { x } _ { 0 } + \pmb { \delta } ) \in [ 0 , 1 ] ^ { n }$ , $\| \pmb { \delta } \| _ { \infty } \le \epsilon$ .
|
| 477 |
+
|
| 478 |
+
The augmented Lagrangian of problem (20) is given by
|
| 479 |
+
|
| 480 |
+
$$
|
| 481 |
+
L ( \boldsymbol { \delta } , \mathbf { z } , \mathbf { u } ) = f ( \mathbf { z } + \mathbf { x } _ { 0 } ) + g ( \mathbf { z } ) + \gamma D ( \boldsymbol { \delta } ) + h ( \boldsymbol { \delta } ) + g ( \boldsymbol { \delta } ) + \mathbf { u } ^ { T } ( \boldsymbol { \delta } - \mathbf { z } ) + \frac { \rho } { 2 } \| \boldsymbol { \delta } - \mathbf { z } \| _ { 2 } ^ { 2 } ,
|
| 482 |
+
$$
|
| 483 |
+
|
| 484 |
+
where $\mathbf { u }$ is the Lagrangian multiplier.
|
| 485 |
+
|
| 486 |
+
ADMM yields the following alternating steps
|
| 487 |
+
|
| 488 |
+
$$
|
| 489 |
+
\begin{array} { r l } & { \delta ^ { k + 1 } = \underset { \delta } { \arg \operatorname* { m i n } } L ( \delta , \mathbf { z } ^ { k } , \mathbf { u } ^ { k } ) } \\ & { \mathbf { z } ^ { k + 1 } = \underset { \mathbf { z } } { \arg \operatorname* { m i n } } L ( \delta ^ { k + 1 } , \mathbf { z } , \mathbf { u } ^ { k } ) } \\ & { \mathbf { u } ^ { k + 1 } = \mathbf { u } ^ { k } + \rho ( \delta ^ { k + 1 } - \mathbf { z } ^ { k + 1 } ) . } \end{array}
|
| 490 |
+
$$
|
| 491 |
+
|
| 492 |
+
$\delta$ -step Suppose $D ( \delta ) = \| \delta \| _ { 2 } ^ { 2 }$ , problem (51) becomes
|
| 493 |
+
|
| 494 |
+
$$
|
| 495 |
+
\begin{array} { r l } { \underset { \delta } { \mathrm { m i n i m i z e } } } & { \gamma \| \pmb { \delta } \| _ { 2 } ^ { 2 } + \frac { \rho } { 2 } \| \pmb { \delta } - \mathbf { a } \| _ { 2 } ^ { 2 } } \\ { \mathrm { s u b j e c t ~ t o } } & { ( \mathbf { x } _ { 0 } + \pmb { \delta } ) \in [ 0 , 1 ] ^ { n } , \| \pmb { \delta } \| _ { \infty } \leq \epsilon } \\ & { \delta _ { i } = 0 , \mathrm { i f ~ } i \in \mathcal { S } _ { \sigma } , } \end{array}
|
| 496 |
+
$$
|
| 497 |
+
|
| 498 |
+
where $\mathbf { a } : = \mathbf { z } ^ { k } - \mathbf { u } ^ { k } / \rho$ . Problem (54) can be decomposed elementwise
|
| 499 |
+
|
| 500 |
+
$$
|
| 501 |
+
\begin{array} { r l } { \underset { \delta _ { i } } { \mathrm { m i n i m i z e } } } & { \frac { 2 \gamma + \rho } { \rho } \delta _ { i } ^ { 2 } - 2 a _ { i } \delta _ { i } + a _ { i } ^ { 2 } = \frac { 2 \gamma + \rho } { \rho } \left( \delta _ { i } - \frac { \rho } { 2 \gamma + \rho } a _ { i } \right) ^ { 2 } } \\ { \mathrm { s u b j e c t \ t o } } & { \left( [ \mathbf { x } _ { 0 } ] _ { i } + \delta _ { i } \right) \in [ 0 , 1 ] , ~ | \delta _ { i } | \leq \epsilon } \\ & { \delta _ { i } = 0 , ~ \mathrm { i f } ~ i \in \mathcal { S } _ { \sigma } . } \end{array}
|
| 502 |
+
$$
|
| 503 |
+
|
| 504 |
+
The solution to problem (55) is then given by
|
| 505 |
+
|
| 506 |
+
$$
|
| 507 |
+
[ \delta ^ { k + 1 } ] _ { i } = \left\{ \begin{array} { l l } { 0 } & { i \in { \mathcal { S } } _ { \sigma } } \\ { \operatorname* { m i n } \{ 1 - [ { \mathbf { x } } _ { 0 } ] _ { i } , \epsilon \} } & { \frac { \rho } { 2 \gamma + \rho } a _ { i } > \operatorname* { m i n } \{ 1 - [ { \mathbf { x } } _ { 0 } ] _ { i } , \epsilon \} , i \notin { \mathcal { S } } _ { \sigma } } \\ { \operatorname* { m a x } \{ - [ { \mathbf { x } } _ { 0 } ] _ { i } , - \epsilon \} } & { \frac { \rho } { 2 \gamma + \rho } a _ { i } < \operatorname* { m a x } \{ - [ { \mathbf { x } } _ { 0 } ] _ { i } , - \epsilon \} , i \notin { \mathcal { S } } _ { \sigma } } \\ { \frac { \rho } { 2 \gamma + \rho } a _ { i } } & { \mathrm { o t h e r w i s e } . } \end{array} \right.
|
| 508 |
+
$$
|
| 509 |
+
|
| 510 |
+
$\mathbf { z }$ -step Problem (52) yields
|
| 511 |
+
|
| 512 |
+
$$
|
| 513 |
+
\begin{array} { r l } { \underset { \mathbf { z } } { \mathrm { m i n i m i z e } } } & { { } f ( \mathbf { x } _ { 0 } + \mathbf { z } ) + \displaystyle \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { a } ^ { \prime } \| _ { 2 } ^ { 2 } } \\ { \mathrm { s u b j e c t ~ t o } } & { { } z _ { i } = 0 , \mathrm { ~ i f ~ } i \in \mathcal { S } _ { \sigma } , } \end{array}
|
| 514 |
+
$$
|
| 515 |
+
|
| 516 |
+
where $\mathbf { a } ^ { \prime } = \delta ^ { k + 1 } + \mathbf { u } ^ { k } / \rho$ . We solve problem (57) using the linearization technique (Suzuki, 2013; Liu et al., 2018; Boyd et al., 2011),
|
| 517 |
+
|
| 518 |
+
$$
|
| 519 |
+
\begin{array} { l l } { \mathrm { m i n i m i z e } } & { ( \nabla f ( \mathbf { x } _ { 0 } + \mathbf { z } ^ { k } ) ) ^ { T } ( \mathbf { z } - \mathbf { z } ^ { k } ) + \displaystyle \frac { \eta _ { k } } { 2 } \| \mathbf { z } - \mathbf { z } ^ { k } \| _ { 2 } ^ { 2 } + \displaystyle \frac { \rho } { 2 } \| \mathbf { z } - \mathbf { a } ^ { \prime } \| _ { 2 } ^ { 2 } } \\ { \mathrm { s u b j e c t ~ t o } } & { z _ { i } = 0 , \mathrm { ~ i f ~ } i \in \mathcal { S } _ { \sigma } , } \end{array}
|
| 520 |
+
$$
|
| 521 |
+
|
| 522 |
+
where $\eta _ { k }$ is a decaying parameter associated with the Bregman divergence term $\| \mathbf { z } - \mathbf { z } ^ { k } \| _ { 2 } ^ { 2 }$ . In problems (57) and (58), only variables $\left\{ z _ { i } \right\}$ satisfying $i \notin S _ { \sigma }$ are unknown. The solution to problem (58) is then given by
|
| 523 |
+
|
| 524 |
+
$$
|
| 525 |
+
\begin{array} { r } { [ \mathbf { z } ^ { k + 1 } ] _ { i } = \left\{ \begin{array} { l l } { 0 } & { i \in \mathcal { S } _ { \sigma } } \\ { \frac { \eta _ { k } [ \mathbf { z } ^ { k } ] _ { i } + \rho [ \mathbf { a } ^ { \prime } ] _ { i } - [ \nabla f ( \mathbf { z } ^ { k } + \mathbf { x } _ { 0 } ) ] _ { i } } { \eta _ { k } + \rho } } & { i \notin \mathcal { S } _ { \sigma } . } \end{array} \right. } \end{array}
|
| 526 |
+
$$
|
| 527 |
+
|
| 528 |
+
# E ADVERSARIAL SALIENCY MAP (ASM) AND CLASS ACTIVATION MAPPING (CAM)
|
| 529 |
+
|
| 530 |
+
$\mathrm { A S M } ( \mathbf { x } , t ) \in \mathbb { R } ^ { d }$ is defined by the forward derivative of a neural network given the input sample $\mathbf { x }$ and the target label $t$ (Papernot et al., 2016b)
|
| 531 |
+
|
| 532 |
+
$$
|
| 533 |
+
\begin{array} { r } { \mathrm { A S M } ( \mathbf { x } , t ) [ i ] = \left\{ \begin{array} { l l } { 0 } & { \mathrm { i f } \frac { \partial Z ( \mathbf { x } ) _ { t } } { \partial \mathbf { x } _ { i } } < 0 \mathrm { o r } \sum _ { j \neq t } \frac { \partial Z ( \mathbf { x } ) _ { j } } { \partial \mathbf { x } _ { i } } > 0 } \\ { \left( \frac { \partial Z ( \mathbf { x } ) _ { t } } { \partial \mathbf { x } _ { i } } \right) \left| \sum _ { j \neq t } \frac { \partial Z ( \mathbf { x } ) _ { j } } { \partial \mathbf { x } _ { i } } \right| } & { \mathrm { o t h e r w i s e } , } \end{array} \right. } \end{array}
|
| 534 |
+
$$
|
| 535 |
+
|
| 536 |
+
where $Z ( \mathbf { x } ) _ { j }$ is the $j$ th element of logits $Z ( \mathbf { x } )$ , representing the output before the last softmax layer in DNNs. If there exist many classes in a dataset (e.g., 1000 classes in ImageNet), then computing $\textstyle \sum _ { j \neq t } { \frac { \partial Z ( \mathbf { x } ) _ { j } } { \partial \mathbf { x } _ { i } } }$ t ∂Z(x)j∂x is intensive. To circumvent the scalability issue of ASM, we focus on the logit change with respect to the true label $t _ { 0 }$ and the target label $t$ only. More specifically, we consider three quantities, $\begin{array} { r } { \frac { \partial Z ( \mathbf { x } ) _ { t } } { \partial \mathbf { x } _ { i } } , - \frac { \partial Z ( \mathbf { x } ) _ { 0 } } { \partial \mathbf { x } _ { i } } } \end{array}$ , and $\begin{array} { r } { \left( \frac { \partial Z ( \mathbf { x } ) _ { t } } { \partial \mathbf { x } _ { i } } \right) \left| \sum _ { j \neq t } \frac { \partial Z ( \mathbf { x } ) _ { j } } { \partial \mathbf { x } _ { i } } \right| , } \end{array}$ , which correspond to a) promotion of the score of the target label $t$ , b) suppression of the classification score of the true label $t _ { 0 }$ , and c) a dual role on suppression and promotion. As a result, we modify (60) as
|
| 537 |
+
|
| 538 |
+
$$
|
| 539 |
+
\begin{array} { r } { \mathrm { A S M } ( \mathbf { x } , t ) [ i ] = \left\{ \begin{array} { l l } { 0 } & { \mathrm { ~ i f ~ } \frac { \partial Z ( \mathbf { x } ) _ { t } } { \partial \mathbf { x } _ { i } } < 0 \mathrm { ~ o r ~ } \frac { \partial Z ( \mathbf { x } ) _ { t _ { 0 } } } { \partial \mathbf { x } _ { i } } > 0 } \\ { \left( \frac { \partial Z ( \mathbf { x } ) _ { t } } { \partial \mathbf { x } _ { i } } \right) \left| \frac { \partial Z ( \mathbf { x } ) _ { t _ { 0 } } } { \partial \mathbf { x } _ { i } } \right| } & { \mathrm { ~ o t h e r w i s e } . } \end{array} \right. } \end{array}
|
| 540 |
+
$$
|
| 541 |
+
|
| 542 |
+
CAM allows us to visualize the perturbation of adversaries on predicted class scores given any pair of image and object label, and highlights the discriminative object regions detected by CNNs (Zhou et al., 2016). In Fig. A2, we show ASM and the discriminative regions identified by CAM on several ImageNet samples.
|
| 543 |
+
|
| 544 |
+

|
| 545 |
+
Figure A2: (a) Overlay ASM and $\mathbf { B } _ { \mathrm { A S M } } \circ \delta$ on top of image with the true and the target label. From left to right: original image, ASM (darker color represents larger value of ASM score), $\mathbf { B } _ { \mathrm { A S M } } \circ \delta$ under our attack, and $\mathbf { B } _ { \mathrm { A S M } } \circ \pmb { \delta }$ under C&W attack. Here $\nu$ in $\mathbf { B } _ { \mathrm { A S M } }$ is set by the 90th percentile of ASM scores. (b) From left to right: original image, CAM of original label, and perturbations with target label generated from the StrAttack and C&W attack, respectively.
|
| 546 |
+
|
| 547 |
+
# F EXPERIMENT SETUP AND PARAMETER SETTING
|
| 548 |
+
|
| 549 |
+
In this work, we consider targeted adversarial attacks since they are believed stronger than untargeted attacks. For targeted attacks, we have different methods to choose the target labels. The average case selects the target label randomly among all the labels that are not the correct label. The best case performs attacks using all incorrect labels, and report the target label that is the least difficult to attack. The worst case performs attacks using all incorrect labels, and report the target label which is the most difficult to attack.
|
| 550 |
+
|
| 551 |
+
In our experiments, two networks are trained for MNIST and CIFAR-10, respectively, and a pretrained network is utilized for ImageNet. The model architectures for MNIST and CIFAR-10 are the same, both with four convolutional layers, two max pooling layers, two fully connected layers and a softmax layer. It can achieve $9 9 . 5 \%$ and $80 \%$ accuracy on MNIST and CIFAR-10, respectively. For ImageNet, a pre-trained Inception v3 network (Szegedy et al., 2016) is applied which can achieve $96 \%$ top-5 accuracy. All experiments are conducted on machines with NVIDIA GTX 1080 TI GPUs.
|
| 552 |
+
|
| 553 |
+
The implementations of FGM and IFGM are based on the CleverHans package (Papernot et al., 2016a). The key distortion parameter $\epsilon$ is determined by a fine-grained grid search. For IFGM, we perform 10 FGM iterations and the distortion parameter $\epsilon ^ { \prime }$ is set to $\epsilon / 1 0$ for effectiveness as shown in Tramèr et al. (2018). The implementation of the C&W attack is based on the opensource code provided by Carlini & Wagner (2017). The maximum iteration number is set to 1000 and it has 9 binary search steps.
|
| 554 |
+
|
| 555 |
+
In the StrAttack, the group size for MNIST and CIFAR-10 is $2 \times 2$ and its stride is set to 2 if the non-overlapping mask is used, otherwise the group size is $3 \times 3$ and stride is 2. The group size for ImageNet is $1 3 \times 1 3$ and its stride is set to 13. In ADMM, the parameter $\rho$ achieves a trade-off between the convergence rate and the convergence value. A larger $\rho$ could make ADMM converging faster but usually leads to perturbations with larger $\ell _ { p }$ distortion values. A proper configuration of the parameters is suggested as follows: We set the penalty parameter $\rho = 1$ , decaying parameter in (14) $\eta _ { 1 } = 5$ , $\tau = 2$ and $\gamma = 1$ . Moreover, we set $c$ defined in (3) to 0.5 for MNIST, 0.25 for CIFAR-10, and 2.5 for ImageNet. Refined attack technique proposed in Sec. 4.2 is applied for all experiments, we set $\sigma$ is equal to $3 \%$ quantile value of non-zero perturbation in $\delta ^ { * }$ . We observe that $73 \%$ of $\delta ^ { * }$ can be retrained to a $\sigma$ -sparse perturbation successfully which proof the effective of our refined attack step.
|
| 556 |
+
|
| 557 |
+
# G SUPPLEMENTARY EXPERIMENTAL RESULTS
|
| 558 |
+
|
| 559 |
+

|
| 560 |
+
Figure A3: C&W attack vs StrAttack on MNIST with grid size $2 \times 2$ .
|
| 561 |
+
|
| 562 |
+
Some random choice samples from MNIST (Fig. A3), CIFAR-10 (Fig. A4) and ImageNet (Fig. A5) compare StrAttack with C&W attack. For better sparse visual effect, we only show non-overlapping mask function results here. From these samples, we can discover a consistent phenomenon that our StrAttack is more interested in some particular regions, they usually appear on the objects or their edges in original images, distinctly seen in MNIST (Fig. A3) and ImageNet (Fig. A5).
|
| 563 |
+
|
| 564 |
+
# H STRATTACK AGAINST DEFENSIVE DISTILLATION AND ADVERSARIALTRAINING
|
| 565 |
+
|
| 566 |
+
In this section, we present the performance of the StrAttack against defensive distillation (Papernot et al., 2016c) and adversarial training (Tramèr et al., 2018). In defensive distillation, we evaluate the
|
| 567 |
+
|
| 568 |
+

|
| 569 |
+
Figure A4: C&W attack vs StrAttack on CIFAR-10 with grid size $2 \times 2$ .
|
| 570 |
+
|
| 571 |
+
StrAttack for different temperature parameters on MNIST and CIFAR-10. We generate 9000 adversarial examples with 1000 randomly selected images from MNIST and CIFAR-10, respectively. The attack success rates of the StrAttack for different temperatures $T$ are all $100 \%$ . The reason is that distillation at temperature $T$ makes the logits approximately $T$ times larger but does not change the relative values of logits. The StrAttack which works on the relative values of logits does not fail.
|
| 572 |
+
|
| 573 |
+
We further use the StrAttack to break DNNs training on adversarial examples (Tramèr et al., 2018) with their correct labels on MNIST. The StrAttack is performed on three neural networks: the first network is unprotected, the second is obtained by retraining with $9 0 0 0 \mathrm { C } \& \mathrm { { W } }$ adversarial examples, and the third network is retained with 9000 adversarial examples crafted by the StrAttack. The success rate and distortions on the three networks are shown in Table A1. The StrAttack can break all three networks with $100 \%$ success rate. However, adversarial training shows certain defense effects as an increase on the $\ell _ { 1 }$ or $\ell _ { 2 }$ distortion on the latter two networks over the unprotected network is observed.
|
| 574 |
+
|
| 575 |
+
Table A1: StrAttack against adversarial training on MNIST
|
| 576 |
+
|
| 577 |
+
<table><tr><td rowspan="2">Adversarial training</td><td colspan="3">Best case</td><td colspan="3">Averagecase</td><td colspan="3">Worst case</td></tr><tr><td>ASR</td><td>l1</td><td>l2</td><td>ASR</td><td>l1</td><td>l2</td><td>ASR</td><td>l1</td><td>l2</td></tr><tr><td>None</td><td>100</td><td>10.9</td><td>1.51</td><td>100</td><td>18.05</td><td>2.16</td><td>100</td><td>26.9</td><td>2.81</td></tr><tr><td>C&W</td><td>100</td><td>16.1</td><td>1.87</td><td>100</td><td>25.1</td><td>2.58</td><td>100</td><td>34.2</td><td>3.26</td></tr><tr><td>structured</td><td>100</td><td>15.6</td><td>1.86</td><td>100</td><td>25.1</td><td>2.61</td><td>100</td><td>34.6</td><td>3.31</td></tr></table>
|
| 578 |
+
|
| 579 |
+

|
| 580 |
+
Figure A5: C&W attack vs StrAttack on ImageNet with grid size $1 3 \times 1 3$ .
|
parse/train/BkgzniCqY7/BkgzniCqY7_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkgzniCqY7/BkgzniCqY7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkgzniCqY7/BkgzniCqY7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hy6GHpkCW/Hy6GHpkCW.md
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A NEURAL REPRESENTATION OF SKETCH DRAWINGS
|
| 2 |
+
|
| 3 |
+
David Ha
|
| 4 |
+
Google Brain
|
| 5 |
+
hadavid@google.com
|
| 6 |
+
Douglas Eck
|
| 7 |
+
Google Brain
|
| 8 |
+
deck@google.com
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
We present sketch-rnn, a recurrent neural network (RNN) able to construct stroke-based drawings of common objects. The model is trained on a dataset of human-drawn images representing many different classes. We outline a framework for conditional and unconditional sketch generation, and describe new robust training methods for generating coherent sketch drawings in a vector format.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
Recently, there have been major advancements in generative modelling of images using neural networks as a generative tool. Generative Adversarial Networks (GANs) (Goodfellow, 2016), Variational Inference (VI) (Kingma & Welling, 2013), and Autoregressive (AR) (Reed et al., 2017) models have become popular tools in this fast growing area. Most of the work thus far has been targeted towards modelling low resolution, pixel images. Humans, however, do not understand the world as a grid of pixels, but rather develop abstract concepts to represent what we see. From a young age, we develop the ability to communicate what we see by drawing on paper with a pencil or crayon. In this way we learn to express a sequential, vector representation of an image as a short sequence of strokes. In this paper we investigate an alternative to traditional pixel image modelling approaches, and propose a generative model for vector images.
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
Figure 1: Latent space interpolation of various vector images produced by our model (left). Interpolation of two different Kanji characters (亀 書) as sequence of strokes (right)
|
| 20 |
+
|
| 21 |
+
Our goal is to train machines to draw and generalize abstract concepts in a manner similar to humans. In this work, as a first step towards this goal, we train our model on a dataset of hand-drawn sketches, each represented as a sequence of motor actions controlling a pen: which direction to move, when to lift the pen up, and when to stop drawing. In doing so, we created a model that potentially has many applications, from assisting the creative process of an artist, to helping teach students how to draw.
|
| 22 |
+
|
| 23 |
+
This paper makes the following contributions: We outline a framework for both unconditional and conditional generation of vector images composed of a sequence of lines. Our recurrent neural network-based generative model is capable of producing sketches of common objects in a vector format. We develop a training procedure unique to vector images to make the training more robust. In the conditional generation model, we explore the latent space developed by the model to represent a vector image. We also discuss creative applications of our methodology. We make available a dataset of 50 million hand drawn vector images to encourage further development of generative modelling for vector images, and also release an implementation of our model as an open source project.1
|
| 24 |
+
|
| 25 |
+
# 2 RELATED WORK
|
| 26 |
+
|
| 27 |
+
There is a long history of work related to algorithms that mimic painters. One such work is Portrait Drawing by Paul the Robot (Tresset & Fol Leymarie, 2013; Xie et al., 2012), where an underlying algorithm controlling a mechanical robot arm sketches lines on a canvas with a programmable artistic style to mimic a given digitized portrait of a person. Reinforcement Learning based-approaches (Xie et al., 2012) have been developed to discover a set of paint brush strokes that can best represent a given input photograph. These prior works generally attempt to mimic digitized photographs, rather than develop generative models of vector images.
|
| 28 |
+
|
| 29 |
+
Neural Network-based approaches have been developed for generative models of images, although the majority of neural network-related research on image generation deal with pixel images (Goodfellow, 2016; Isola et al., 2016; Kaae Sønderby et al., 2016; Kingma et al., 2016; Reed et al., 2017; White, 2016). There has been relatively little work done on vector image generation using neural networks. An earlier work (Simhon & Dudek, 2004) makes use of Hidden Markov Models to synthesize lines and curves of a human sketch. More recent work (Graves, 2013) on handwriting generation with Recurrent Neural Networks laid the groundwork for utilizing Mixture Density Networks (Bishop, 1994) to generate continuous data points. Recent works of this approach attempted to generate vectorized Kanji characters (Ha, 2015; Zhang et al., 2016) by modelling Chinese characters as a sequence of pen stroke actions.
|
| 30 |
+
|
| 31 |
+
The approach outlined in this work allows one to explore the latent space representation of vector images. For instance, we can use our model to interpolate between two Kanji characters in Figure 1 by first encoding the characters, represented as a sequence of strokes, into a latent space of embedding vectors. Previous work (Bowman et al., 2015) outlined a methodology to combine Sequence-toSequence models with a Variational Autoencoder to model natural English sentences in latent vector space. A related work (Lake et al., 2015), utilizes probabilistic program induction, rather than neural networks, to perform one-shot modelling of the Omniglot dataset containing images of symbols.
|
| 32 |
+
|
| 33 |
+
One of the factors limiting research development in the space of generative vector drawings is the lack of publicly available datasets. Previously, the Sketch dataset (Eitz et al., 2012), consisting of 20K vector sketches, was used to explore feature extraction techniques. A subsequent work, the Sketchy dataset (Sangkloy et al., 2016), provided 70K vector sketches along with corresponding pixel images for various classes. This allowed for a larger-scale exploration of human sketches. ShadowDraw (Lee et al., 2011) is an interactive system that predicts what a finished drawing looks like based on a set of incomplete brush strokes from the user while the sketch is being drawn. ShadowDraw used a dataset of 30K raster images combined with extracted vectorized features. In this work, we use a much larger dataset of 50 million vector sketches that is made publicly available.
|
| 34 |
+
|
| 35 |
+
# 3 METHODOLOGY
|
| 36 |
+
|
| 37 |
+
# 3.1 DATASET
|
| 38 |
+
|
| 39 |
+
We constructed QuickDraw, a dataset of 50 million vector drawings obtained from Quick, Draw! (Jongejan et al., 2016), an online game where the players are asked to draw objects belonging to a particular object class in less than 20 seconds. QuickDraw consists of hundreds of classes of common objects. Each class of QuickDraw is a dataset of 70K training samples, in addition to 2.5K validation and 2.5K test samples.
|
| 40 |
+
|
| 41 |
+
We use a data format that represents a sketch as a set of pen stroke actions. This representation is an extension of the format used in (Graves, 2013). Our format extends the binary pen stroke event into a multi-state event. In this data format, the initial coordinate of the drawing is located at the origin.
|
| 42 |
+
|
| 43 |
+
A sketch is a list of points, and each point is a vector consisting of 5 elements: $( \Delta x , \Delta y , p _ { 1 } , p _ { 2 } , p _ { 3 } )$ . The first two elements are the offset distance in the $\mathbf { X }$ and y directions of the pen from the previous point. The last 3 elements represents a binary one-hot vector of 3 possible states. The first pen state, $p _ { 1 }$ , indicates that the pen is currently touching the paper, and that a line will be drawn connecting the next point with the current point. The second pen state, $p _ { 2 }$ , indicates that the pen will be lifted from the paper after the current point, and that no line will be drawn next. The final pen state, $p _ { 3 }$ , indicates that the drawing has ended, and subsequent points, including the current point, will not be rendered.
|
| 44 |
+
|
| 45 |
+
# 3.2 SKETCH-RNN
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 2: Schematic diagram of sketch-rnn.
|
| 49 |
+
|
| 50 |
+
Our model is a Sequence-to-Sequence Variational Autoencoder (VAE), similar to the architecture described in (Bowman et al., 2015; Kingma & Welling, 2013). Our encoder is a bidirectional RNN (Schuster et al., 1997) that takes in a sketch as an input, and outputs a latent vector of size $N _ { z }$ . Specifically, we feed the sketch sequence, $S$ , and also the same sketch sequence in reverse order, $S _ { \mathrm { r e v e r s e } }$ , into the two encoding RNNs of the bidirectional RNN, to obtain two final hidden states:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
h _ { \right. } = { \mathrm { e n c o d e } } _ { \right. } ( S ) , \ h _ { \left. } = { \mathrm { e n c o d e } } _ { \left. } ( S _ { \mathrm { r e v e r s e } } ) , \ h = [ \ h _ { \right. } \ ; \ h _ { \left. } ] .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
We take this final concatenated hidden state, $h$ , and project it into two vectors $\mu$ and $\hat { \sigma }$ , each of size $N _ { z }$ , using a fully connected layer. We convert $\hat { \sigma }$ into a non-negative standard deviation parameter $\sigma$ using an exponential operation. We use $\mu$ and $\sigma$ , along with $\mathcal { N } ( 0 , I )$ , a vector of IID Gaussian variables of size $N _ { z }$ , to construct a random vector, $z \in \mathbb { R } ^ { { N _ { z } } }$ , as in the approach for a VAE:
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\mu = W _ { \mu } h + b _ { \mu } , \hat { \sigma } = W _ { \sigma } h + b _ { \sigma } , \sigma = \exp \Big ( \frac { \hat { \sigma } } { 2 } \Big ) , z = \mu + \sigma \odot \mathcal { N } ( 0 , I ) .
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
Under this encoding scheme, the latent vector $z$ is not a deterministic output for a given input sketch, but a random vector conditioned on the input sketch.
|
| 63 |
+
|
| 64 |
+
Our decoder is an autoregressive RNN that samples output sketches conditional on a given latent vector $z$ . The initial hidden states $h _ { 0 }$ , and optional cell states $c _ { 0 }$ (if applicable) of the decoder RNN is the output of a single layer network: $[ \ : h _ { 0 } ; \ : \overline { { { c _ { 0 } } } } \ : ] = \operatorname { t a n h } ( W _ { z } z + b _ { z } ) \ :$
|
| 65 |
+
|
| 66 |
+
At each step $i$ of the decoder RNN, we feed the previous point, $S _ { i - 1 }$ and the latent vector $z$ in as a concatenated input $x _ { i }$ , where $S _ { 0 }$ is defined as $( 0 , 0 , 1 , 0 , 0 )$ . The output at each time step are the parameters for a probability distribution of the next data point $S _ { i }$ . In Equation 3, we model $( \Delta x , \Delta y )$ as a Gaussian mixture model (GMM) with $M$ normal distributions as in (Bishop, 1994; Graves, 2013), and $( q _ { 1 } , q _ { 2 } , q _ { 3 } )$ as a categorical distribution to model the ground truth data $\left( p _ { 1 } , p _ { 2 } , p _ { 3 } \right)$ , where $( q _ { 1 } + q _ { 2 } + q _ { 3 } = 1 )$ as done in (Ha, 2015) and (Zhang et al., 2016). Unlike (Graves, 2013), our generated sequence is conditioned from a latent code $z$ sampled from our encoder, which is trained end-to-end alongside the decoder.
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
p ( \Delta x , \Delta y ) = \sum _ { j = 1 } ^ { M } { \Pi _ { j } \ N } ( \Delta x , \Delta y \mid \mu _ { x , j } , \mu _ { y , j } , \sigma _ { x , j } , \sigma _ { y , j } , \rho _ { x y , j } ) , \mathrm { ~ w h e r e ~ } \sum _ { j = 1 } ^ { M } { \Pi _ { j } } = 1 \mathrm { ~ a n d ~ } ( \mathrm { R e } ( \Delta x , \Delta y ) )
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
$\mathcal N ( x , y | \mu _ { x } , \mu _ { y } , \sigma _ { x } , \sigma _ { y } , \rho _ { x y } )$ is the probability distribution function for a bivariate normal distribution. Each of the $M$ bivariate normal distributions consist of five parameters: $( \mu _ { x } , \mu _ { y } , \sigma _ { x } , \sigma _ { y } , \rho _ { x y } )$ , where $\mu _ { x }$ and $\mu _ { y }$ are the means, $\sigma _ { x }$ and $\sigma _ { y }$ are the standard deviations, and $\rho _ { x y }$ is the correlation parameter of each bivariate normal distribution. An additional vector $\Pi$ of length $M$ , also a categorical distribution, are the mixture weights of the Gaussian mixture model. Hence the size of the output vector $y$ is $5 M + M + 3$ , which includes the 3 logits needed to generate $( q _ { 1 } , q _ { 2 } , q _ { 3 } )$ .
|
| 73 |
+
|
| 74 |
+
The next hidden state of the RNN, generated with its forward operation, projects into the output vector $y _ { i }$ using a fully-connected layer:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\begin{array} { r } { x _ { i } = \left[ S _ { i - 1 } ~ ; ~ z \right] , ~ \left[ h _ { i } ~ ; ~ c _ { i } ~ \right] = ~ \mathtt { f o r w a r d } ( x _ { i } , ~ \left[ h _ { i - 1 } ~ ; ~ c _ { i - 1 } \right] ) , ~ y _ { i } = W _ { y } h _ { i } + b _ { y } , ~ y _ { i } \in \mathbb { R } ^ { 6 M + 3 } . } \end{array}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
The vector $y _ { i }$ is broken down into the parameters of the probability distribution of the next data point: $\big [ \left( \hat { \Pi } \mu _ { x } \mu _ { y } \hat { \sigma } _ { x } \hat { \sigma } _ { y } \hat { \rho } _ { x y } \right) _ { 1 } \left( \hat { \Pi } \mu _ { x } \mu _ { y } \hat { \sigma } _ { x } \hat { \sigma } _ { y } \hat { \rho } _ { x y } \right) _ { 2 } \ldots \left( \hat { \Pi } \mu _ { x } \mu _ { y } \hat { \sigma } _ { x } \hat { \sigma } _ { y } \hat { \rho } _ { x y } \right) _ { M } \left( \hat { q } _ { 1 } \hat { q } _ { 2 } \hat { q } _ { 3 } \right) \big ] = y _ { i } .$ (5) As in (Graves, 2013), we apply exp and tanh operations to ensure the standard deviation values are non-negative, and that the correlation value is between $^ { - 1 }$ and 1:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\sigma _ { x } = \exp ( \hat { \sigma } _ { x } ) , \ \sigma _ { y } = \exp ( \hat { \sigma } _ { y } ) , \ \rho _ { x y } = \operatorname { t a n h } ( \hat { \rho } _ { x y } ) .
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
The probabilities for the categorical distributions are calculated using the outputs as logit value
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
q _ { k } = \frac { \exp ( \hat { q } _ { k } ) } { \sum _ { j = 1 } ^ { 3 } \exp ( \hat { q } _ { j } ) } , k \in \{ 1 , ~ 2 , ~ 3 \} , ~ \Pi _ { k } = \frac { \exp ( \hat { \Pi } _ { k } ) } { \sum _ { j = 1 } ^ { M } \exp ( \hat { \Pi } _ { j } ) } , k \in \{ 1 , ~ \ldots , ~ { \cal M } \} .
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
A key challenge is to train our model to know when to stop drawing. Because the probabilities of the three pen stroke events are highly unbalanced, the model becomes more difficult to train. The probability of a $p _ { 1 }$ event is much higher than $p _ { 2 }$ , and the $p _ { 3 }$ event will only happen once per drawing. The approach developed in (Ha, 2015) and later followed by (Zhang et al., 2016) was to use different weightings for each pen event when calculating the losses, such as a hand-tuned weighting of $( 1 , 1 0 , 1 0 0 )$ . We find this inelegant approach to be inadequate for our dataset of diverse images.
|
| 93 |
+
|
| 94 |
+
We develop a simpler, more robust approach that works well for a broad class of sketch drawing data. In our approach, all sequences are generated to a length of $N _ { \mathrm { m a x } }$ where $N _ { \mathrm { m a x } }$ is the length of the longest sketch in our training dataset. In principle $N _ { \mathrm { m a x } }$ can be considered a hyper parameter. As the length of $S$ is usually shorter than $N _ { \mathrm { m a x } }$ , we set $S _ { i }$ to be $( 0 , 0 , 0 , 0 , 1 )$ for $i > N _ { s }$ . We discuss the training in detail in the next section.
|
| 95 |
+
|
| 96 |
+
After training, we can sample sketches from our model. During the sampling process, we generate the parameters for both GMM and categorical distributions at each time step, and sample an outcome $S _ { i } ^ { \prime }$ for that time step. Unlike the training process, we feed the sampled outcome $S _ { i } ^ { \prime }$ as input for the next time step. We continue to sample until $p _ { 3 } = 1$ , or when we have reached $i = N _ { \operatorname* { m a x } }$ . Like the encoder, the sampled output is not deterministic, but a random sequence, conditioned on the input latent vector $z$ . We can control the level of randomness we would like our samples to have during the sampling process by introducing a temperature parameter $\tau$ :
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\hat { q } _ { k } \to \frac { \hat { q } _ { k } } { \tau } , \hat { \Pi } _ { k } \to \frac { \hat { \Pi } _ { k } } { \tau } , \sigma _ { x } ^ { 2 } \to \sigma _ { x } ^ { 2 } \tau , \sigma _ { y } ^ { 2 } \to \sigma _ { y } ^ { 2 } \tau .
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
We can scale the softmax parameters of the categorial distribution and also the $\sigma$ parameters of the bivariate normal distribution by a temperature parameter $\tau$ , to control the level of randomness in our samples. $\tau$ is typically set between 0 and 1. In the limiting case as $\tau 0$ , our model becomes deterministic and samples will consist of the most likely point in the probability density function. Figure 3 illustrates of effect of sampling sketches with various temperature parameters.
|
| 103 |
+
|
| 104 |
+
# 3.3 UNCONDITIONAL GENERATION
|
| 105 |
+
|
| 106 |
+

|
| 107 |
+
Figure 3: Unconditional generation of firetrucks, yoga poses, gardens and owls with varying $\tau$
|
| 108 |
+
|
| 109 |
+
As a special case, we can also train our model to generate sketches unconditionally, where we only train the decoder RNN module, without any input or latent vectors. By removing the encoder, the decoder RNN as a standalone model is an autoregressive model without latent variables. In this use case, the initial hidden states and cell states of the decoder RNN are initialized to zero. The inputs $x _ { i }$ of the decoder RNN at each time step is only $S _ { i - 1 }$ or $S _ { i - 1 } ^ { \prime }$ , as we do not need to concatenate a latent vector $z$ . In Figure 3, we sample various sketch images generated unconditionally by varying the temperature parameter from $\tau = 0 . 2$ at the top in blue, to $\tau = 0 . 9$ at the bottom in red.
|
| 110 |
+
|
| 111 |
+
# 3.4 TRAINING
|
| 112 |
+
|
| 113 |
+
Our training procedure follows the approach of the Variational Autoencoder (Kingma & Welling, 2013), where the loss function is the sum of two terms: the Reconstruction Loss, $L _ { R }$ , and the Kullback-Leibler Divergence Loss, $L _ { K L }$ . We train our model to optimize this two-part loss function. The Reconstruction loss term, described in Equation 9, maximizes the log-likehood of the generated probability distribution to explain the training data $S$ . We can calculate this reconstruction loss, $L _ { R }$ , using the generated parameters of the pdf and the training data $S$ . $L _ { R }$ is composed of the sum of the log loss of the offset terms $( \Delta x , \Delta y )$ , $L _ { s }$ , and the log loss of the pen state terms $( p _ { 1 } , p _ { 2 } , p _ { 3 } ) , L _ { p }$ :
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\begin{array} { l } { { { \cal L } _ { s } = \displaystyle - \frac { 1 } { N _ { \mathrm { m a x } } } \sum _ { i = 1 } ^ { N _ { s } } \log \Big ( \sum _ { j = 1 } ^ { M } \Pi _ { j , i } \mathscr { N } ( \Delta x _ { i } , \Delta y _ { i } \mid \mu _ { x , j , i } , \mu _ { y , j , i } , \sigma _ { x , j , i } , \sigma _ { y , j , i } , \rho _ { x y , j , i } ) \Big ) } } \\ { { { \cal L } _ { p } = \displaystyle - \frac { 1 } { N _ { \mathrm { m a x } } } \sum _ { i = 1 } ^ { N _ { \mathrm { m a x } } } \sum _ { k = 1 } ^ { 3 } p _ { k , i } \log ( q _ { k , i } ) , \ L _ { R } = L _ { s } + L _ { p } . } } \end{array}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
Note that we discard the pdf parameters modelling the $( \Delta x , \Delta y )$ points beyond $N _ { s }$ when calculating $L _ { s }$ , while $L _ { p }$ is calculated using all of the pdf parameters modelling the $\left( p _ { 1 } , p _ { 2 } , p _ { 3 } \right)$ points until $N _ { \mathrm { m a x } }$ . Both terms are normalized by the total sequence length $N _ { \mathrm { m a x } }$ . We found this methodology of loss calculation to be more robust and allows the model to easily learn when it should stop drawing, unlike the earlier mentioned method of assigning importance weightings to $p _ { 1 } , p _ { 2 }$ , and $p _ { 3 }$ .
|
| 120 |
+
|
| 121 |
+
The Kullback-Leibler (KL) divergence loss term measures the difference between the distribution of our latent vector $z$ , to that of an IID Gaussian vector with zero mean and unit variance. Optimizing for this loss term allows us to minimize this difference. We use the result in (Kingma $\&$ Welling, 2013), and calculate the KL loss term, $L _ { K L }$ , normalized by number of dimensions $N _ { z }$ of $z$ :
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
L _ { K L } = - \frac { 1 } { 2 N _ { z } } \Big ( 1 + \hat { \sigma } - \mu ^ { 2 } - \exp ( \hat { \sigma } ) \Big ) .
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
The loss function in Equation 11 is a weighted sum of both the $L _ { R }$ and $L _ { K L }$ loss terms:
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
L o s s = L _ { R } + w _ { K L } L _ { K L } .
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
There is a tradeoff between optimizing for one term over the other. As $w _ { K L } 0$ , our model approaches a pure autoencoder, sacrificing the ability to enforce a prior over our latent space while obtaining better reconstruction loss metrics. Note that for unconditional generation, where our model is the standalone decoder, there will be no $L _ { K L }$ term as we only optimize for $L _ { R }$ .
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 4: Tradeoff between $L _ { R }$ and $L _ { K L }$ , for two models trained on single class datasets (left). Validation Loss Graph for models trained on the Yoga dataset using various $w _ { K L }$ (right
|
| 137 |
+
|
| 138 |
+
Figure 4 illustrates the tradeoff between different settings of $w _ { K L }$ and the resulting $L _ { R }$ and $L _ { K L }$ metrics on the test set, along with the $L _ { R }$ metric on a standalone decoder RNN for comparison. As the unconditional model does not receive any prior information about the entire sketch it needs to generate, the $L _ { R }$ metric for the standalone decoder model serves as an upper bound for various conditional models using a latent vector.
|
| 139 |
+
|
| 140 |
+
# 4 EXPERIMENTS
|
| 141 |
+
|
| 142 |
+
We conduct several experiments with sketch-rnn for both conditional and unconditional vector image generation. We train sketch-rnn on various QuickDraw classes using various settings for $w _ { K L }$ and record the breakdown of losses. To experiment with a diverse set of classes with varying complexities, we select the cat, pig, face, firetruck, garden, owl, mosquito and yoga class. We also experiment on multi-class datasets by concatenating different classes together to form (cat, pig) and (crab, face, pig, rabbit). The results for test set evaluation on various datasets are displayed in Table 1.
|
| 143 |
+
|
| 144 |
+
The sketch-rnn model treats the RNN cell as an abstract component. In our experiments, we use Long Short-Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) as the encoder RNN. For the decoder RNN, we use HyperLSTM, as this type of RNN cell excels at sequence generation tasks (Ha et al., 2017). The ability for HyperLSTM to spontaneously augment its own weights enables it to adapt to many different regimes in a large diverse dataset. Please see the Appendix for more details.
|
| 145 |
+
|
| 146 |
+
<table><tr><td>Dataset</td><td>WKL</td><td>= 1.00</td><td></td><td>WKL = 0.50</td><td>WKL</td><td>= 0.25</td><td>Decoder Only</td></tr><tr><td></td><td>LR</td><td>LKL</td><td>LR</td><td>LKL</td><td>LR</td><td>LKL</td><td>LR</td></tr><tr><td>cat</td><td>-0.98</td><td>0.29</td><td>-1.33</td><td>0.70</td><td>-1.46</td><td>1.01</td><td>-0.57</td></tr><tr><td>pig</td><td>-1.14</td><td>0.22</td><td>-1.37</td><td>0.49</td><td>-1.52</td><td>0.80</td><td>-0.82</td></tr><tr><td>cat, pig</td><td>-1.02</td><td>0.22</td><td>-1.24</td><td>0.49</td><td>-1.50</td><td>0.98</td><td>-0.75</td></tr><tr><td>crab,face,pig,rabbit</td><td>-0.91</td><td>0.22</td><td>-1.04</td><td>0.40</td><td>-1.47</td><td>1.17</td><td>-0.67</td></tr><tr><td>face</td><td>-1.13</td><td>0.27</td><td>-1.55</td><td>0.71</td><td>-1.90</td><td>1.44</td><td>-0.73</td></tr><tr><td>firetruck</td><td>-1.24</td><td>0.22</td><td>-1.26</td><td>0.24</td><td>-1.78</td><td>1.10</td><td>-0.90</td></tr><tr><td>garden</td><td>-0.79</td><td>0.20</td><td>-0.81</td><td>0.25</td><td>-0.99</td><td>0.54</td><td>-0.62</td></tr><tr><td>owl</td><td>-0.93</td><td>0.20</td><td>-1.03</td><td>0.34</td><td>-1.29</td><td>0.77</td><td>-0.66</td></tr><tr><td>mosquito</td><td>-0.67</td><td>0.30</td><td>-1.02</td><td>0.66</td><td>-1.41</td><td>1.54</td><td>-0.34</td></tr><tr><td>yoga</td><td>-0.80</td><td>0.24</td><td>-1.07</td><td>0.55</td><td>-1.51</td><td>1.33</td><td>-0.48</td></tr></table>
|
| 147 |
+
|
| 148 |
+
Table 1: Loss figures $L _ { R }$ and $L _ { K L }$ ) for various $w _ { K L }$ settings.
|
| 149 |
+
|
| 150 |
+
The relative loss numbers are consistent with our expectations. We see that the reconstruction loss term $L _ { R }$ decreases as we relax the $w _ { K L }$ parameter controlling the weight for the KL loss term, and meanwhile the KL loss term $L _ { R }$ increases as a result. The $L _ { R }$ for the conditional model is strictly less than the unconditional, standalone decoder model. In Figure 4 (right), we plot validation-set loss graphs for on the yoga class for models with various $w _ { K L }$ settings. As $L _ { R }$ decreases, the $L _ { K L }$ term tends to increase due to the tradeoff between $L _ { R }$ and $L _ { K L }$ .
|
| 151 |
+
|
| 152 |
+
# 4.1 CONDITIONAL RECONSTRUCTION
|
| 153 |
+
|
| 154 |
+
We qualitatively assess the reconstructed sketch $S ^ { \prime }$ given an input sketch $S$ . In Figure 5 (left), we sample several reconstructions at various levels of temperature $\tau$ using a model trained on the single cat class, starting at 0.01 on the left and linearly increasing to 1.0 on the right. The reconstructed cat sketches have similar properties as the input image, and occasionally add or remove details such as a whisker, a mouth, a nose, or the orientation of the tail.
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 5: Conditional generation of cats (left) and pigs (right).
|
| 158 |
+
|
| 159 |
+
When presented with a non-standard image of a cat, such as a cat’s face with three eyes, the reconstructed cat only has two eyes. If we input a sketch from another image class, such a toothbrush, the model seemingly generate sketches with similar orientation and properties as the toothbrush input image, but with some cat-like features such as cat ears, whiskers or feet. We perform a similar experiment with a model trained on the pig class, as shown in Figure 5 (right).
|
| 160 |
+
|
| 161 |
+
# 4.2 LATENT SPACE INTERPOLATION
|
| 162 |
+
|
| 163 |
+
By interpolating between latent vectors, we can visualize how one image morphs into another image by visualizing the reconstructions of the interpolations. As we enforce a Gaussian prior on the latent space, we expect fewer gaps in the space between two encoded latent vectors. We expect a model trained using a higher $w _ { K L }$ setting to produce images that are closer to the data manifold given a spherically interpolated (White, 2016) latent vector $z$ , compared to another model trained with a lower wKL.
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
Figure 6: Latent space interpolation between cat and pig using with various $w _ { K L }$ settings (left). Sketch Drawing Analogies (right).
|
| 167 |
+
|
| 168 |
+
To demonstrate this, we train several models using various $w _ { K L }$ , on a dataset consisting of both cat and pigs, and we encode two distinct images from the test set - a cat face and a full pig. Figure 6 (left) shows the reconstructed images from the interpolated latent vectors between the two original images. As expected, models trained with higher $w _ { K L }$ produce more coherent interpolated images.
|
| 169 |
+
|
| 170 |
+
# 4.3 SKETCH DRAWING ANALOGIES
|
| 171 |
+
|
| 172 |
+
The interpolation example in Figure 6 (left) suggests that the latent vector $z$ encode conceptual features of a sketch. Can we use these features to augment other sketches without such features – for example, adding a body to a cat’s head? Indeed, we find that sketch drawing analogies are possible for models trained with low $L _ { K L }$ numbers. Given the smoothness of the latent space, where any interpolated vector between two latent vectors results in a coherent sketch, we can perform vector arithmetic on the latent vectors encoded from different sketches and explore how the model organizes the latent space to represent different concepts in the manifold of generated sketches.
|
| 173 |
+
|
| 174 |
+
For example, as shown in Figure 6 (right), we can subtract the latent vector of an encoded pig head from the latent vector of a full pig, to arrive at a vector that represents a body. Adding this difference to the latent vector of a cat head results in a full cat (i.e. cat head $^ +$ body $=$ full cat). We repeat the experiment to remove the body of a full pig. These drawing analogies allow us to explore how the model organizes its latent space to represent different concepts in the manifold of generated sketches.
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
4.4 PREDICTING DIFFERENT ENDINGS OF INCOMPLETE SKETCHES
|
| 178 |
+
|
| 179 |
+
Figure 7: sketch-rnn predicting possible endings of various incomplete sketches (the red lines).
|
| 180 |
+
|
| 181 |
+
We can use sketch-rnn to finish an incomplete sketch. By using the decoder RNN as a standalone model, we can generate a sketch that is conditioned on the previous points. We use the decoder RNN to first encode an incomplete sketch into a hidden state $h$ . Afterwards, we generate the remaining points of the sketch using $h$ as the initial hidden state. We show results in Figure 7 using decoder-only models trained on individual classes, and sample completions by setting $\tau = 0 . 8$ .
|
| 182 |
+
|
| 183 |
+
# 5 APPLICATIONS AND FUTURE WORK
|
| 184 |
+
|
| 185 |
+
We believe sketch-rnn will enable many creative applications. Even the decoder-only model trained on various classes can assist the creative process of an artist by suggesting many possible ways of finishing a sketch, helping artists expand their imagination. In the conditional model, exploring the latent space between different objects can potentially enable artists to find interesting intersections and relationships between different drawings. Even in the simplest use, pattern designers can apply sketch-rnn to generate a large number of similar, but unique designs for textile or wallpaper prints.
|
| 186 |
+
|
| 187 |
+
As we saw earlier in Section 4.1, a model trained to draw pigs can be made to draw pig-like trucks if given an input sketch of a truck. We can extend this result to applications that might help creative designers come up with abstract designs that can resonate more with their target audience. For instance, in Figure 8 (right), we feed sketches of four different chairs into our cat-drawing model to produce four “chair-like cats”. We can even interpolate between the four images to explore the latent space of chair-like cats, and select from a large grid of generated designs.
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
Figure 8: Generating similar, but unique sketches based on a single human sketch in the box (left). Latent space of generated cats conditioned on sketch drawings of chairs (right).
|
| 191 |
+
|
| 192 |
+
A model trained on higher quality sketches may find its way into educational applications that can help teach students how to draw. Even with the simple sketches in QuickDraw, the authors of this work have become much more proficient at drawing animals, insects, and various sea creatures after conducting these experiments. A related application is to encode a crude, poorly sketched drawing and generate more aesthetically looking reproductions by using a model trained with a high $w _ { K L }$ setting and sampling with a low temperature $\tau$ to produce a more coherent version of the drawing. In the future, we can also investigate augmenting the latent vector in the direction that maximizes the aesthetics of the drawing by incorporating user-rating data into the training process.
|
| 193 |
+
|
| 194 |
+
Combining hybrid variations of sequence-generation models with unsupervised, cross-domain pixel image generation models, such as Image-to-Image models (Dong et al., 2017; Kim et al., 2017; Liu et al., 2017), is another exciting direction that we can explore. We can already combine this model with supervised, cross-domain models such as Pix2Pix (Isola et al., 2016), to occasionally generate photo realistic cat images from generated sketches of cats. The opposite direction of converting a photograph of a cat into an unrealistic, but similar looking sketch of a cat composed of a minimal number of lines seems to be a more interesting problem.
|
| 195 |
+
|
| 196 |
+
# 6 CONCLUSION
|
| 197 |
+
|
| 198 |
+
In this work, we develop a methodology to model sketch drawings using recurrent neural networks. sketch-rnn is able to generate possible ways to finish an existing, but unfinished sketch drawing. Our model can also encode existing sketches into a latent vector, and generate similar looking sketches conditioned on the latent space. We demonstrate what it means to interpolate between two different sketches by interpolating between its latent space, and also show that we can manipulate attributes of a sketch by augmenting the latent space. We demonstrate the importance of enforcing a prior distribution on the latent vector for coherent vector image generation during interpolation. By making available a large dataset of sketch drawings, we hope to encourage further research and development in the area of generative vector image modelling.
|
| 199 |
+
|
| 200 |
+
# 7 ACKNOWLEDGEMENTS
|
| 201 |
+
|
| 202 |
+
We thank Ian Johnson, Jonas Jongejan, Martin Wattenberg, Mike Schuster, Thomas Deselaers, Ben Poole, Kyle Kastner, Junyoung Chung and Kyle McDonald for their help with this project. This work was done as part of the Google Brain Residency program (g.co/brainresidency).
|
| 203 |
+
|
| 204 |
+
# REFERENCES
|
| 205 |
+
|
| 206 |
+
Jimmy L. Ba, Jamie R. Kiros, and Geoffrey E. Hinton. Layer normalization. NIPS, 2016.
|
| 207 |
+
|
| 208 |
+
Christopher M. Bishop. Mixture density networks. Technical Report, 1994. URL http:// publications.aston.ac.uk/373/.
|
| 209 |
+
|
| 210 |
+
Samuel R. Bowman, Luke Vilnis, Oriol Vinyals, Andrew M. Dai, Rafal Józefowicz, and Samy Bengio. Generating Sentences from a Continuous Space. CoRR, abs/1511.06349, 2015. URL http://arxiv.org/abs/1511.06349.
|
| 211 |
+
|
| 212 |
+
H. Dong, P. Neekhara, C. Wu, and Y. Guo. Unsupervised Image-to-Image Translation with Generative Adversarial Networks. ArXiv e-prints, January 2017.
|
| 213 |
+
|
| 214 |
+
David H. Douglas and Thomas K. Peucker. Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. Cartographica: The International Journal for Geographic Information and Geovisualization, 10(2):112–122, October 1973. doi: 10.3138/fm57-6770-u75u-7727. URL http://dx.doi.org/10.3138/ fm57-6770-u75u-7727.
|
| 215 |
+
|
| 216 |
+
Mathias Eitz, James Hays, and Marc Alexa. How Do Humans Sketch Objects? ACM Trans. Graph. (Proc. SIGGRAPH), 31(4):44:1–44:10, 2012.
|
| 217 |
+
|
| 218 |
+
I. Goodfellow. NIPS 2016 Tutorial: Generative Adversarial Networks. ArXiv e-prints, December 2016.
|
| 219 |
+
|
| 220 |
+
Alex Graves. Generating sequences with recurrent neural networks. arXiv:1308.0850, 2013.
|
| 221 |
+
|
| 222 |
+
David Ha. Recurrent Net Dreams Up Fake Chinese Characters in Vector Format with TensorFlow, 2015.
|
| 223 |
+
|
| 224 |
+
David Ha, Andrew M. Dai, and Quoc V. Le. HyperNetworks. In ICLR, 2017.
|
| 225 |
+
|
| 226 |
+
Sepp Hochreiter and Juergen Schmidhuber. Long short-term memory. Neural Computation, 1997.
|
| 227 |
+
|
| 228 |
+
P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros. Image-to-Image Translation with Conditional Adversarial Networks. ArXiv e-prints, November 2016.
|
| 229 |
+
|
| 230 |
+
Jonas Jongejan, Henry Rowley, Takashi Kawashima, Jongmin Kim, and Nick Fox-Gieg. The Quick, Draw! - A.I. Experiment. https://quickdraw.withgoogle.com/, 2016. URL https: //quickdraw.withgoogle.com/.
|
| 231 |
+
|
| 232 |
+
C. Kaae Sønderby, T. Raiko, L. Maaløe, S. Kaae Sønderby, and O. Winther. Ladder Variational Autoencoders. ArXiv e-prints, February 2016.
|
| 233 |
+
|
| 234 |
+
T. Kim, M. Cha, H. Kim, J. Lee, and J. Kim. Learning to Discover Cross-Domain Relations with Generative Adversarial Networks. ArXiv e-prints, March 2017.
|
| 235 |
+
|
| 236 |
+
D. P Kingma and M. Welling. Auto-Encoding Variational Bayes. ArXiv e-prints, December 2013.
|
| 237 |
+
|
| 238 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
|
| 239 |
+
|
| 240 |
+
Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016. URL http://arxiv.org/abs/1606. 04934.
|
| 241 |
+
|
| 242 |
+
Brenden M. Lake, Ruslan Salakhutdinov, and Joshua B. Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, December 2015. ISSN 1095-9203. doi: 10.1126/science.aab3050. URL http://dx.doi.org/10.1126/ science.aab3050.
|
| 243 |
+
|
| 244 |
+
Yong Jae Lee, C. Lawrence Zitnick, and Michael F. Cohen. Shadowdraw: Real-time user guidance for freehand drawing. In ACM SIGGRAPH 2011 Papers, SIGGRAPH ’11, pp. 27:1–27:10, New York, NY, USA, 2011. ACM. ISBN 978-1-4503-0943-1. doi: 10.1145/1964921.1964922. URL http://doi.acm.org/10.1145/1964921.1964922.
|
| 245 |
+
|
| 246 |
+
M.-Y. Liu, T. Breuel, and J. Kautz. Unsupervised Image-to-Image Translation Networks. ArXiv e-prints, March 2017.
|
| 247 |
+
|
| 248 |
+
S. Reed, A. van den Oord, N. Kalchbrenner, S. Gómez Colmenarejo, Z. Wang, D. Belov, and N. de Freitas. Parallel Multiscale Autoregressive Density Estimation. ArXiv e-prints, March 2017.
|
| 249 |
+
|
| 250 |
+
Patsorn Sangkloy, Nathan Burnell, Cusuh Ham, and James Hays. The Sketchy Database: Learning to Retrieve Badly Drawn Bunnies. ACM Trans. Graph., 35(4):119:1–119:12, July 2016. ISSN 0730- 0301. doi: 10.1145/2897824.2925954. URL http://doi.acm.org/10.1145/2897824. 2925954.
|
| 251 |
+
|
| 252 |
+
Mike Schuster, Kuldip K. Paliwal, and A. General. Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 1997.
|
| 253 |
+
|
| 254 |
+
Saul Simhon and Gregory Dudek. Sketch interpretation and refinement using statistical models. In Proceedings of the Fifteenth Eurographics Conference on Rendering Techniques, EGSR’04, pp. 23– 32, Aire-la-Ville, Switzerland, Switzerland, 2004. Eurographics Association. ISBN 3-905673-12- 6. doi: 10.2312/EGWR/EGSR04/023-032. URL http://dx.doi.org/10.2312/EGWR/ EGSR04/023-032.
|
| 255 |
+
|
| 256 |
+
Patrick Tresset and Frederic Fol Leymarie. Portrait drawing by paul the robot. Comput. Graph., 37(5):348–363, August 2013. ISSN 0097-8493. doi: 10.1016/j.cag.2013.01.012. URL http: //dx.doi.org/10.1016/j.cag.2013.01.012.
|
| 257 |
+
|
| 258 |
+
T. White. Sampling Generative Networks. ArXiv e-prints, September 2016.
|
| 259 |
+
|
| 260 |
+
Ning Xie, Hirotaka Hachiya, and Masashi Sugiyama. Artist agent: A reinforcement learning approach to automatic stroke generation in oriental ink painting. In ICML. icml.cc / Omnipress, 2012. URL http://dblp.uni-trier.de/db/conf/icml/icml2012.html#XieHS12.
|
| 261 |
+
|
| 262 |
+
Xu-Yao Zhang, Fei Yin, Yan-Ming Zhang, Cheng-Lin Liu, and Yoshua Bengio. Drawing and Recognizing Chinese Characters with Recurrent Neural Network. CoRR, abs/1606.06539, 2016. URL http://arxiv.org/abs/1606.06539.
|
| 263 |
+
|
| 264 |
+
# A APPENDIX
|
| 265 |
+
|
| 266 |
+
# A.1 DATASET DETAILS
|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
Figure 9: Example sketch drawings from QuickDraw dataset.
|
| 270 |
+
|
| 271 |
+
The data from QuickDraw (Jongejan et al., 2016) expands daily, and every so often new classes are added to the game. As such, the QuickDraw dataset now consists of hundreds of classes, from 75 classes initially, in Table 2. In total, there are $\sim 5 0$ million sketches in the released dataset, although for the purpose of constructing an organized dataset for research purposes, we have limited the number of sketches in each class.
|
| 272 |
+
|
| 273 |
+
<table><tr><td rowspan=1 colspan=1>alarm clock</td><td rowspan=1 colspan=1>ambulance</td><td rowspan=1 colspan=1>angel</td><td rowspan=1 colspan=1>ant</td><td rowspan=1 colspan=1>barn</td></tr><tr><td rowspan=1 colspan=1>basket</td><td rowspan=1 colspan=1>bee</td><td rowspan=1 colspan=1>bicycle</td><td rowspan=1 colspan=1>book</td><td rowspan=1 colspan=1>bridge</td></tr><tr><td rowspan=1 colspan=1>bulldozer</td><td rowspan=1 colspan=1>bus</td><td rowspan=1 colspan=1>butterfly</td><td rowspan=1 colspan=1>cactus</td><td rowspan=1 colspan=1>castle</td></tr><tr><td rowspan=1 colspan=1>cat</td><td rowspan=1 colspan=1>chair</td><td rowspan=1 colspan=1>couch</td><td rowspan=1 colspan=1>crab</td><td rowspan=1 colspan=1>cruise ship</td></tr><tr><td rowspan=1 colspan=1>dolphin</td><td rowspan=1 colspan=1>duck</td><td rowspan=1 colspan=1>elephant</td><td rowspan=1 colspan=1>eye</td><td rowspan=1 colspan=1>face</td></tr><tr><td rowspan=1 colspan=1>fan</td><td rowspan=1 colspan=1>fire hydrant</td><td rowspan=1 colspan=1>firetruck</td><td rowspan=1 colspan=1>flamingo</td><td rowspan=1 colspan=1>flower</td></tr><tr><td rowspan=1 colspan=1>garden</td><td rowspan=1 colspan=1>hand</td><td rowspan=1 colspan=1>hedgehog</td><td rowspan=1 colspan=1>helicopter</td><td rowspan=1 colspan=1>kangaroo</td></tr><tr><td rowspan=1 colspan=1>key</td><td rowspan=1 colspan=1>lighthouse</td><td rowspan=1 colspan=1>lion</td><td rowspan=1 colspan=1>map</td><td rowspan=1 colspan=1>mermaid</td></tr><tr><td rowspan=1 colspan=1>octopus</td><td rowspan=1 colspan=1>owl</td><td rowspan=1 colspan=1>paintbrush</td><td rowspan=1 colspan=1>palm tree</td><td rowspan=1 colspan=1>parrot</td></tr><tr><td rowspan=1 colspan=1>passport</td><td rowspan=1 colspan=1>peas</td><td rowspan=1 colspan=1>penguin</td><td rowspan=1 colspan=1>pig</td><td rowspan=1 colspan=1>pineapple</td></tr><tr><td rowspan=1 colspan=1>postcard</td><td rowspan=1 colspan=1>power outlet</td><td rowspan=1 colspan=1>rabbit</td><td rowspan=1 colspan=1>radio</td><td rowspan=1 colspan=1>rain</td></tr><tr><td rowspan=1 colspan=1>rhinoceros</td><td rowspan=1 colspan=1>roller coaster</td><td rowspan=1 colspan=1>sandwich</td><td rowspan=1 colspan=1>scorpion</td><td rowspan=1 colspan=1>sea turtle</td></tr><tr><td rowspan=1 colspan=1>sheep</td><td rowspan=1 colspan=1>skull</td><td rowspan=1 colspan=1>snail</td><td rowspan=1 colspan=1>snowflake</td><td rowspan=1 colspan=1>speedboat</td></tr><tr><td rowspan=1 colspan=1>spider</td><td rowspan=1 colspan=1>strawberry</td><td rowspan=1 colspan=1>swan</td><td rowspan=1 colspan=1>swing set</td><td rowspan=1 colspan=1>tennis racquet</td></tr><tr><td rowspan=1 colspan=1>the mona lisa</td><td rowspan=1 colspan=1>toothbrush</td><td rowspan=1 colspan=1>truck</td><td rowspan=1 colspan=1>whale</td><td rowspan=1 colspan=1>windmill</td></tr></table>
|
| 274 |
+
|
| 275 |
+
Table 2: Initial 75 QuickDraw classes used for this work.
|
| 276 |
+
|
| 277 |
+
Each class consists of 70K training samples and 2.5K validation and test samples. Stroke simplification using the Ramer–Douglas–Peucker algorithm (Douglas & Peucker, 1973) with a parameter of $\epsilon = 2 . 0$ has been applied to simplify the lines. The data was originally recorded in pixel-dimensions, so we normalized the offsets $( \Delta x , \Delta y )$ using a single scaling factor. This scaling factor was calculated to adjust the offsets in the training set to have a standard deviation of 1. For simplicity, we do not normalize the offsets $( \Delta x , \Delta y )$ to have zero mean, since the means are already relatively small. Figure 10 shows a training example before normalization of $( \Delta x , \Delta y )$ data columns.
|
| 278 |
+
|
| 279 |
+

|
| 280 |
+
Figure 10: A sample sketch, as a sequence of $( \Delta x , \Delta y , p _ { 1 } , p _ { 2 } , p _ { 3 } )$ points and in rendered form. In the rendered sketch, the line color corresponds to the sequential stroke ordering.
|
| 281 |
+
|
| 282 |
+
# A.2 TRAINING DETAILS
|
| 283 |
+
|
| 284 |
+
As a recap from the main text, we defined the Reconstruction loss term $L _ { R }$ as:
|
| 285 |
+
|
| 286 |
+
$$
|
| 287 |
+
\begin{array} { l } { { \displaystyle { \cal L } _ { s } = - \frac { 1 } { N _ { \mathrm { m a x } } } \sum _ { i = 1 } ^ { N _ { s } } \log \Big ( \sum _ { j = 1 } ^ { M } \Pi _ { j , i } \mathcal { N } ( \Delta x _ { i } , \Delta y _ { i } \mid \mu _ { x , j , i } , \mu _ { y , j , i } , \sigma _ { x , j , i } , \sigma _ { y , j , i } , \rho _ { x y , j , i } ) \Big ) } } \\ { { \displaystyle { \cal L } _ { p } = - \frac { 1 } { N _ { \mathrm { m a x } } } \sum _ { i = 1 } ^ { N _ { \mathrm { m a x } } } \sum _ { k = 1 } ^ { 3 } p _ { k , i } \log ( q _ { k , i } ) } } \\ { { \displaystyle { \cal L } _ { R } = { \cal L } _ { s } + { \cal L } _ { p } . } } \end{array}
|
| 288 |
+
$$
|
| 289 |
+
|
| 290 |
+
We also defined the KL loss term $L _ { K L }$ as:
|
| 291 |
+
|
| 292 |
+
$$
|
| 293 |
+
L _ { K L } = - \frac { 1 } { 2 N _ { z } } \Big ( 1 + \hat { \sigma } - \mu ^ { 2 } - \exp ( \hat { \sigma } ) \Big ) .
|
| 294 |
+
$$
|
| 295 |
+
|
| 296 |
+
The loss function in Equation 14 is a weighted sum of both the $L _ { R }$ and $L _ { K L }$ loss terms:
|
| 297 |
+
|
| 298 |
+
$$
|
| 299 |
+
L o s s = L _ { R } + w _ { K L } L _ { K L } .
|
| 300 |
+
$$
|
| 301 |
+
|
| 302 |
+
While the loss function in Equation 14 can be used during training, we find that annealing the KL term in the loss function (Equation 15) produced better results. This modification is only used for model training, and the original loss function in Equation 14 is still used to evaluate validation and test sets, and for early stopping.
|
| 303 |
+
|
| 304 |
+
$$
|
| 305 |
+
\begin{array} { c } { \eta _ { s t e p } = 1 - ( 1 - \eta _ { m i n } ) R ^ { s t e p } } \\ { L o s s _ { t r a i n } = L _ { R } + w _ { K L } \eta _ { s t e p } \operatorname* { m a x } ( L _ { K L } , K L _ { m i n } ) } \end{array}
|
| 306 |
+
$$
|
| 307 |
+
|
| 308 |
+
We find that annealing the KL loss term generally results in better losses. Annealing the $L _ { K L }$ term in the loss function directs the optimizer to first focus more on the reconstruction term in Equation 12, which is the more difficult loss term of the model to optimize for, before having to deal with optimizing for the KL loss term in Equation 13, a far simpler expression in comparison. This approach has been used in (Bowman et al., 2015; Kaae Sønderby et al., 2016; Kingma et al., 2016). Our annealing term $\eta _ { s t e p }$ starts at $\eta _ { m i n }$ (typically 0 or 0.01) at training step 0, and converges to 1 for large training steps. $R$ is a term close to, but less than 1.
|
| 309 |
+
|
| 310 |
+
If the distribution of $z$ is close enough to $\mathcal { N } ( 0 , I )$ , we can sample sketches from the decoder using randomly sampled $z$ from $\mathcal { N } ( 0 , I )$ as the input. In practice, we find that going from a larger $L _ { K L }$ value $\left( L _ { K L } > 1 . 0 \right)$ ) to a smaller $L _ { K L }$ value of 0.3 generally results in a substantial increase in the quality of sampled images using randomly sampled $z \sim \mathcal { N } ( 0 , I )$ . However, going from $L _ { K L } = 0 . 3$ to $L _ { K L }$ values closer to zero does not lead to any further noticeable improvements. Hence we find it useful to put a floor on $L _ { K L }$ in the loss function by enforcing $\operatorname* { m a x } ( L _ { K L } , K L _ { m i n } )$ in Equation 15.
|
| 311 |
+
|
| 312 |
+
The $K L _ { m i n }$ term inside the max operator is typically set to a small value such as 0.10 to 0.50. This term will encourage the optimizer to put less focus on optimizing for the KL loss term $L _ { K L }$ once it is low enough, so we can obtain better metrics for the reconstruction loss term $L _ { R }$ . This approach is similar to the approach described in (Kingma et al., 2016) as free bits, where they apply the max operator separately inside each dimension of the latent vector $z$ .
|
| 313 |
+
|
| 314 |
+
# A.3 MODEL CONFIGURATION
|
| 315 |
+
|
| 316 |
+
Our encoder and decoder RNNs consist of 512 and 2048 nodes respectively. In our model, we use $M = 2 0$ mixture components for the decoder RNN. The latent vector $z$ has $N _ { z } = 1 2 8$ dimensions. We apply Layer Normalization (Ba et al., 2016) to our model, and during training apply recurrent dropout [9] with a keep probability of $90 \%$ . We train the model with batch sizes of 100 samples, using Adam (Kingma & Ba, 2015) with a learning rate of 0.0001 and gradient clipping of 1.0. All models are trained with $K L _ { m i n } = 0 . 2 0 , R = 0 . 9 9 9 9 9$ . During training, we perform simple data augmentation by multiplying the offset columns $( \Delta x , \Delta y )$ by two IID random factors chosen uniformly between 0.90 and 1.10. Unless mentioned otherwise, all experiments are conducted with $w _ { K L } = 1 . 0 0$ .
|
| 317 |
+
|
| 318 |
+
# A.4 MODEL LIMITATIONS
|
| 319 |
+
|
| 320 |
+
Although sketch-rnn can model a large variety of sketch drawings, there are several limitations in the current approach we wish to highlight. For most single-class datasets, sketch-rnn is capable of modelling sketches up to around 300 data points. The model becomes increasingly difficult to train beyond this length. For our dataset, we applied the Ramer–Douglas–Peucker algorithm (Douglas & Peucker, 1973) to simplify the strokes of the sketch data to less than 200 data points while still keeping most of the important visual information of each sketch.
|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
Figure 11: Unconditional generated sketches of frogs, cats, and crabs at $\tau = 0 . 8$
|
| 324 |
+
|
| 325 |
+
For more complicated classes of images, such as mermaids or lobsters, the reconstruction loss metrics are not as good compared to simpler classes such as ants, faces or firetrucks. The models trained on these more challenging image classes tend to draw smoother, more circular line segments that do not resemble individual sketches, but rather resemble an averaging of many sketches in the training set. We can see some of this artifact in the frog class, in Figure 11. This smoothness may be analogous to the blurriness effect produced by a Variational Autoencoder (Kingma & Welling, 2013) that is trained on pixel images. Depending on the use case of the model, smooth circular lines can be viewed as aesthetically pleasing and a desirable property.
|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
Figure 12: Unconditional generations from model trained on 75 classes (left), and from model trained on crab, face, pig and rabbit classes (right).
|
| 329 |
+
|
| 330 |
+
While both conditional and unconditional models are capable of training on datasets consisting of several classes, such as (cat, pig), and (crab, face, pig, rabbit), sketch-rnn is ineffective at modelling a large number of classes simultaneously. In Figure 12, we sample sketches using an unconditional model trained on 75 classes, and a model trained on 4 classes. The samples generated from the 75-class model are incoherent, with individual sketches displaying features from multiple classes. The four-class unconditional model usually generates samples of a single class, but occasionally also combines features from multiple classes. In the future, we will explore incorporating class information outside of the latent space to handle the modelling of a large number of classes simultaneously.
|
| 331 |
+
|
| 332 |
+
# A.5 MULTI-SKETCH DRAWING INTERPOLATION
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
Figure 13: Example of conditional generated sketches with single class models. Latent space interpolation from left to right, and then top to bottom.
|
| 336 |
+
|
| 337 |
+
In addition to interpolating between two sketches, like in Figure13, we can also visualize the interpolation between four sketches in latent space to gain further insight from the model. In this section we show more examples conditionally generated with sketch-rnn. We take four generated images, place them on four corners of a grid, and populate the rest of the grid using the interpolation of the latent vectors at the corners. Figure 14 shows two examples of this four-way interpolation, using models trained on both (cat, pig) classes, and face class. All samples generated with $\tau = 0 . 1$ .
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Figure 14: Example input sketches and sketch-rnn generated reproductions (Top). Latent space interpolation between the four reproduced sketches (Bottom).
|
| 341 |
+
|
| 342 |
+
The left most figure of Figure 15 visualizes the interpolation between a full pig, a rabbit’s head, a crab, and a face, using a model trained on these four classes. In certain parts of the space between a crab and a face is a rabbit’s head, and we see that the ears of the rabbit becomes the crab’s claws. Applying the model on the yoga class, it is interesting to see how one yoga position slowly transitions to another via a set of interpolated yoga positions generated by the model. For visual effect, we also interpolate between four distinct colors, and color each sketch using a unique interpolated color.
|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
Figure 15: Interpolation of (pig, rabbit, crab and face), yoga poses, mosquitoes and mermaids. We also interpolate between four distinct colors for visual effect.
|
| 346 |
+
|
| 347 |
+
We also construct latent space interpolation examples for the mosquito class and the mermaid class, in the last two grids Figure 15. We see that the model can interpolate between concepts such as style of wings, leg counts, and orientation. In Figure 16 below, we show more interpolation examples of other classes from the dataset.
|
| 348 |
+
|
| 349 |
+

|
| 350 |
+
Figure 16: Latent space interpolation between four generated gardens, owls, cats, and firetrucks.
|
| 351 |
+
|
| 352 |
+
A.6 WHICH LOSS CONTROLS IMAGE COHERENCY?
|
| 353 |
+
|
| 354 |
+
We would like to question the relative importance of the reconstruction loss term $L _ { R }$ , relative to the KL loss term $L _ { K L }$ , when our goal is to produce higher quality image reconstructions. While our reconstruction loss term $L _ { R }$ optimizes for the log-likelihood of the set of strokes that make up a sketch, this metric alone does not give us any guarantee that a model with a lower $L _ { R }$ number will produce higher quality reconstructions compared to a model with a higher $L _ { R }$ number.
|
| 355 |
+
|
| 356 |
+
For example, imagine a simple sketch of an face, $\circledddot$ , where most of the data points of $S$ are be used to represent the head, and only a minority of points represent facial features such as the eyes and mouth. It is possible to reconstruct the face with incoherent facial features, and yet still score a lower $L _ { R }$ number compared to another reconstruction with a coherent and similar face, if the edges around the incoherent face are generated more precisely.
|
| 357 |
+
|
| 358 |
+
In Figure 17, we compare the reconstructed images generated using models trained with various $w _ { K L }$ settings. In the first three examples from the left, we train our model on a dataset consisting of four image classes (crab, face, pig, rabbit). We deliberately sketch input drawings that contain features of two classes, such as a rabbit with a pig mouth and pig tail, a person with animal ears, and a rabbit with crab claws. We see that the model trained using higher $w _ { K L }$ weights, tend to generate sketches with features of a single class that look more coherent, despite having lower $L _ { K L }$ numbers. For instance, the model with $w _ { K L } = 1 . 0 0$ omit pig features, animal ears, and crab claws from its reconstructions. In contrast, the model with $w _ { K L } = 0 . 2 5$ , with higher $L _ { K L }$ , but lower $L _ { R }$ numbers tries to keep both inconsistent features, while generating sketches that look less coherent.
|
| 359 |
+
|
| 360 |
+
In the last three examples in Figure 17, we repeat the experiment on models trained on single-class images, and see similar results even when we deliberately choose input samples from the test set with noisier lines.
|
| 361 |
+
|
| 362 |
+
If we look at the interpolations produced in the latent space interpolation examples from Section 4.2 in the main text, models with better KL loss terms also generate more meaningful reconstructions from the interpolated space between two latent vectors. This suggests the latent vector for models with lower $L _ { K L }$ control more meaningful parts of the drawings, such as controlling whether the sketch is an animal head only or a full animal with a body, or whether to draw a cat head or a pig head. Altering such latent vectors can allow us to directly manipulate these animal features. Conversely, altering the latent codes of models with higher $L _ { K L }$ results in scattered movement of individual line segments, rather than alterations of meaningful conceptual features of the animal.
|
| 363 |
+
|
| 364 |
+
This result is consistent with incoherent reconstructions seen in Figure 17. With a lower $L _ { K L }$ , the model is likely to generate coherent images given any random $z$ . Even with a non-standard, or noisy, input image, the model will still encode a $z$ that produces coherent images. For models with lower $L _ { K L }$ numbers, the encoded latent vectors contain conceptual features belonging to the input image, while for models with higher $L _ { K L }$ numbers, the latent vectors merely encode information about specific line segments. This observation suggests that when using sketch-rnn on a new dataset, we should first try different $w _ { K L }$ settings to evaluate the tradeoff between $L _ { R }$ and $L _ { K L }$ , and then choose a setting for $w _ { K L }$ (and $K L _ { m i n . }$ ) that best suit our requirements.
|
| 365 |
+
|
| 366 |
+

|
| 367 |
+
Figure 17: Reconstructions of sketch drawings using models with various $w _ { K L }$ settings.
|
parse/train/Hy6GHpkCW/Hy6GHpkCW_content_list.json
ADDED
|
@@ -0,0 +1,1869 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "A NEURAL REPRESENTATION OF SKETCH DRAWINGS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
171,
|
| 8 |
+
98,
|
| 9 |
+
815,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "David Ha \nGoogle Brain \nhadavid@google.com \nDouglas Eck \nGoogle Brain \ndeck@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
362,
|
| 21 |
+
188
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "",
|
| 28 |
+
"bbox": [
|
| 29 |
+
522,
|
| 30 |
+
145,
|
| 31 |
+
671,
|
| 32 |
+
188
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
223,
|
| 43 |
+
544,
|
| 44 |
+
238
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "We present sketch-rnn, a recurrent neural network (RNN) able to construct stroke-based drawings of common objects. The model is trained on a dataset of human-drawn images representing many different classes. We outline a framework for conditional and unconditional sketch generation, and describe new robust training methods for generating coherent sketch drawings in a vector format. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
232,
|
| 53 |
+
257,
|
| 54 |
+
766,
|
| 55 |
+
327
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
357,
|
| 66 |
+
336,
|
| 67 |
+
372
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently, there have been major advancements in generative modelling of images using neural networks as a generative tool. Generative Adversarial Networks (GANs) (Goodfellow, 2016), Variational Inference (VI) (Kingma & Welling, 2013), and Autoregressive (AR) (Reed et al., 2017) models have become popular tools in this fast growing area. Most of the work thus far has been targeted towards modelling low resolution, pixel images. Humans, however, do not understand the world as a grid of pixels, but rather develop abstract concepts to represent what we see. From a young age, we develop the ability to communicate what we see by drawing on paper with a pencil or crayon. In this way we learn to express a sequential, vector representation of an image as a short sequence of strokes. In this paper we investigate an alternative to traditional pixel image modelling approaches, and propose a generative model for vector images. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
173,
|
| 76 |
+
390,
|
| 77 |
+
826,
|
| 78 |
+
529
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/941a5c666d5a87047158428a458c9dac6bdd673a6a74f06f01c223c7f4e0ca16.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Latent space interpolation of various vector images produced by our model (left). Interpolation of two different Kanji characters (亀 書) as sequence of strokes (right) "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
173,
|
| 91 |
+
544,
|
| 92 |
+
821,
|
| 93 |
+
651
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "Our goal is to train machines to draw and generalize abstract concepts in a manner similar to humans. In this work, as a first step towards this goal, we train our model on a dataset of hand-drawn sketches, each represented as a sequence of motor actions controlling a pen: which direction to move, when to lift the pen up, and when to stop drawing. In doing so, we created a model that potentially has many applications, from assisting the creative process of an artist, to helping teach students how to draw. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
708,
|
| 103 |
+
825,
|
| 104 |
+
777
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "This paper makes the following contributions: We outline a framework for both unconditional and conditional generation of vector images composed of a sequence of lines. Our recurrent neural network-based generative model is capable of producing sketches of common objects in a vector format. We develop a training procedure unique to vector images to make the training more robust. In the conditional generation model, we explore the latent space developed by the model to represent a vector image. We also discuss creative applications of our methodology. We make available a dataset of 50 million hand drawn vector images to encourage further development of generative modelling for vector images, and also release an implementation of our model as an open source project.1 ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
784,
|
| 114 |
+
825,
|
| 115 |
+
895
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "2 RELATED WORK ",
|
| 122 |
+
"text_level": 1,
|
| 123 |
+
"bbox": [
|
| 124 |
+
176,
|
| 125 |
+
102,
|
| 126 |
+
343,
|
| 127 |
+
117
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "There is a long history of work related to algorithms that mimic painters. One such work is Portrait Drawing by Paul the Robot (Tresset & Fol Leymarie, 2013; Xie et al., 2012), where an underlying algorithm controlling a mechanical robot arm sketches lines on a canvas with a programmable artistic style to mimic a given digitized portrait of a person. Reinforcement Learning based-approaches (Xie et al., 2012) have been developed to discover a set of paint brush strokes that can best represent a given input photograph. These prior works generally attempt to mimic digitized photographs, rather than develop generative models of vector images. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
136,
|
| 137 |
+
825,
|
| 138 |
+
233
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "Neural Network-based approaches have been developed for generative models of images, although the majority of neural network-related research on image generation deal with pixel images (Goodfellow, 2016; Isola et al., 2016; Kaae Sønderby et al., 2016; Kingma et al., 2016; Reed et al., 2017; White, 2016). There has been relatively little work done on vector image generation using neural networks. An earlier work (Simhon & Dudek, 2004) makes use of Hidden Markov Models to synthesize lines and curves of a human sketch. More recent work (Graves, 2013) on handwriting generation with Recurrent Neural Networks laid the groundwork for utilizing Mixture Density Networks (Bishop, 1994) to generate continuous data points. Recent works of this approach attempted to generate vectorized Kanji characters (Ha, 2015; Zhang et al., 2016) by modelling Chinese characters as a sequence of pen stroke actions. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
239,
|
| 148 |
+
826,
|
| 149 |
+
378
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "The approach outlined in this work allows one to explore the latent space representation of vector images. For instance, we can use our model to interpolate between two Kanji characters in Figure 1 by first encoding the characters, represented as a sequence of strokes, into a latent space of embedding vectors. Previous work (Bowman et al., 2015) outlined a methodology to combine Sequence-toSequence models with a Variational Autoencoder to model natural English sentences in latent vector space. A related work (Lake et al., 2015), utilizes probabilistic program induction, rather than neural networks, to perform one-shot modelling of the Omniglot dataset containing images of symbols. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
386,
|
| 159 |
+
825,
|
| 160 |
+
483
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "One of the factors limiting research development in the space of generative vector drawings is the lack of publicly available datasets. Previously, the Sketch dataset (Eitz et al., 2012), consisting of 20K vector sketches, was used to explore feature extraction techniques. A subsequent work, the Sketchy dataset (Sangkloy et al., 2016), provided 70K vector sketches along with corresponding pixel images for various classes. This allowed for a larger-scale exploration of human sketches. ShadowDraw (Lee et al., 2011) is an interactive system that predicts what a finished drawing looks like based on a set of incomplete brush strokes from the user while the sketch is being drawn. ShadowDraw used a dataset of 30K raster images combined with extracted vectorized features. In this work, we use a much larger dataset of 50 million vector sketches that is made publicly available. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
489,
|
| 170 |
+
825,
|
| 171 |
+
616
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "3 METHODOLOGY ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
638,
|
| 182 |
+
341,
|
| 183 |
+
655
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "3.1 DATASET ",
|
| 190 |
+
"text_level": 1,
|
| 191 |
+
"bbox": [
|
| 192 |
+
174,
|
| 193 |
+
672,
|
| 194 |
+
279,
|
| 195 |
+
688
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "We constructed QuickDraw, a dataset of 50 million vector drawings obtained from Quick, Draw! (Jongejan et al., 2016), an online game where the players are asked to draw objects belonging to a particular object class in less than 20 seconds. QuickDraw consists of hundreds of classes of common objects. Each class of QuickDraw is a dataset of 70K training samples, in addition to 2.5K validation and 2.5K test samples. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
700,
|
| 205 |
+
825,
|
| 206 |
+
770
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "We use a data format that represents a sketch as a set of pen stroke actions. This representation is an extension of the format used in (Graves, 2013). Our format extends the binary pen stroke event into a multi-state event. In this data format, the initial coordinate of the drawing is located at the origin. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
777,
|
| 216 |
+
823,
|
| 217 |
+
819
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "A sketch is a list of points, and each point is a vector consisting of 5 elements: $( \\Delta x , \\Delta y , p _ { 1 } , p _ { 2 } , p _ { 3 } )$ . The first two elements are the offset distance in the $\\mathbf { X }$ and y directions of the pen from the previous point. The last 3 elements represents a binary one-hot vector of 3 possible states. The first pen state, $p _ { 1 }$ , indicates that the pen is currently touching the paper, and that a line will be drawn connecting the next point with the current point. The second pen state, $p _ { 2 }$ , indicates that the pen will be lifted from the paper after the current point, and that no line will be drawn next. The final pen state, $p _ { 3 }$ , indicates that the drawing has ended, and subsequent points, including the current point, will not be rendered. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
825,
|
| 227 |
+
825,
|
| 228 |
+
924
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "3.2 SKETCH-RNN ",
|
| 235 |
+
"text_level": 1,
|
| 236 |
+
"bbox": [
|
| 237 |
+
174,
|
| 238 |
+
103,
|
| 239 |
+
315,
|
| 240 |
+
117
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "image",
|
| 246 |
+
"img_path": "images/d28393eb9a12e71ca8d8c00eef5d747f634fa02a5bb5261f05049c0bdd69e6eb.jpg",
|
| 247 |
+
"image_caption": [
|
| 248 |
+
"Figure 2: Schematic diagram of sketch-rnn. "
|
| 249 |
+
],
|
| 250 |
+
"image_footnote": [],
|
| 251 |
+
"bbox": [
|
| 252 |
+
173,
|
| 253 |
+
131,
|
| 254 |
+
825,
|
| 255 |
+
300
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 2
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "Our model is a Sequence-to-Sequence Variational Autoencoder (VAE), similar to the architecture described in (Bowman et al., 2015; Kingma & Welling, 2013). Our encoder is a bidirectional RNN (Schuster et al., 1997) that takes in a sketch as an input, and outputs a latent vector of size $N _ { z }$ . Specifically, we feed the sketch sequence, $S$ , and also the same sketch sequence in reverse order, $S _ { \\mathrm { r e v e r s e } }$ , into the two encoding RNNs of the bidirectional RNN, to obtain two final hidden states: ",
|
| 262 |
+
"bbox": [
|
| 263 |
+
173,
|
| 264 |
+
330,
|
| 265 |
+
825,
|
| 266 |
+
401
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 2
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "equation",
|
| 272 |
+
"img_path": "images/d825974a8b71219ba5dc4b10cf86aed8a7e893ec31b85d18a60c1e890c90706e.jpg",
|
| 273 |
+
"text": "$$\nh _ { \\right. } = { \\mathrm { e n c o d e } } _ { \\right. } ( S ) , \\ h _ { \\left. } = { \\mathrm { e n c o d e } } _ { \\left. } ( S _ { \\mathrm { r e v e r s e } } ) , \\ h = [ \\ h _ { \\right. } \\ ; \\ h _ { \\left. } ] .\n$$",
|
| 274 |
+
"text_format": "latex",
|
| 275 |
+
"bbox": [
|
| 276 |
+
258,
|
| 277 |
+
406,
|
| 278 |
+
740,
|
| 279 |
+
422
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 2
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "We take this final concatenated hidden state, $h$ , and project it into two vectors $\\mu$ and $\\hat { \\sigma }$ , each of size $N _ { z }$ , using a fully connected layer. We convert $\\hat { \\sigma }$ into a non-negative standard deviation parameter $\\sigma$ using an exponential operation. We use $\\mu$ and $\\sigma$ , along with $\\mathcal { N } ( 0 , I )$ , a vector of IID Gaussian variables of size $N _ { z }$ , to construct a random vector, $z \\in \\mathbb { R } ^ { { N _ { z } } }$ , as in the approach for a VAE: ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
173,
|
| 288 |
+
426,
|
| 289 |
+
825,
|
| 290 |
+
483
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 2
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "equation",
|
| 296 |
+
"img_path": "images/efba65927a9440e81b76bb921eaa5504e80cd716ee9dfac067d37a934b666d00.jpg",
|
| 297 |
+
"text": "$$\n\\mu = W _ { \\mu } h + b _ { \\mu } , \\hat { \\sigma } = W _ { \\sigma } h + b _ { \\sigma } , \\sigma = \\exp \\Big ( \\frac { \\hat { \\sigma } } { 2 } \\Big ) , z = \\mu + \\sigma \\odot \\mathcal { N } ( 0 , I ) .\n$$",
|
| 298 |
+
"text_format": "latex",
|
| 299 |
+
"bbox": [
|
| 300 |
+
258,
|
| 301 |
+
487,
|
| 302 |
+
738,
|
| 303 |
+
517
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "Under this encoding scheme, the latent vector $z$ is not a deterministic output for a given input sketch, but a random vector conditioned on the input sketch. ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
174,
|
| 312 |
+
520,
|
| 313 |
+
823,
|
| 314 |
+
549
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "Our decoder is an autoregressive RNN that samples output sketches conditional on a given latent vector $z$ . The initial hidden states $h _ { 0 }$ , and optional cell states $c _ { 0 }$ (if applicable) of the decoder RNN is the output of a single layer network: $[ \\ : h _ { 0 } ; \\ : \\overline { { { c _ { 0 } } } } \\ : ] = \\operatorname { t a n h } ( W _ { z } z + b _ { z } ) \\ :$ ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
173,
|
| 323 |
+
555,
|
| 324 |
+
825,
|
| 325 |
+
598
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "At each step $i$ of the decoder RNN, we feed the previous point, $S _ { i - 1 }$ and the latent vector $z$ in as a concatenated input $x _ { i }$ , where $S _ { 0 }$ is defined as $( 0 , 0 , 1 , 0 , 0 )$ . The output at each time step are the parameters for a probability distribution of the next data point $S _ { i }$ . In Equation 3, we model $( \\Delta x , \\Delta y )$ as a Gaussian mixture model (GMM) with $M$ normal distributions as in (Bishop, 1994; Graves, 2013), and $( q _ { 1 } , q _ { 2 } , q _ { 3 } )$ as a categorical distribution to model the ground truth data $\\left( p _ { 1 } , p _ { 2 } , p _ { 3 } \\right)$ , where $( q _ { 1 } + q _ { 2 } + q _ { 3 } = 1 )$ as done in (Ha, 2015) and (Zhang et al., 2016). Unlike (Graves, 2013), our generated sequence is conditioned from a latent code $z$ sampled from our encoder, which is trained end-to-end alongside the decoder. ",
|
| 332 |
+
"bbox": [
|
| 333 |
+
173,
|
| 334 |
+
603,
|
| 335 |
+
826,
|
| 336 |
+
717
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "equation",
|
| 342 |
+
"img_path": "images/ca30dad6af90c64b012efadf3e77dc8aa8b11a1e4ef23eda1dc77c805f499429.jpg",
|
| 343 |
+
"text": "$$\np ( \\Delta x , \\Delta y ) = \\sum _ { j = 1 } ^ { M } { \\Pi _ { j } \\ N } ( \\Delta x , \\Delta y \\mid \\mu _ { x , j } , \\mu _ { y , j } , \\sigma _ { x , j } , \\sigma _ { y , j } , \\rho _ { x y , j } ) , \\mathrm { ~ w h e r e ~ } \\sum _ { j = 1 } ^ { M } { \\Pi _ { j } } = 1 \\mathrm { ~ a n d ~ } ( \\mathrm { R e } ( \\Delta x , \\Delta y ) )\n$$",
|
| 344 |
+
"text_format": "latex",
|
| 345 |
+
"bbox": [
|
| 346 |
+
222,
|
| 347 |
+
719,
|
| 348 |
+
777,
|
| 349 |
+
765
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "$\\mathcal N ( x , y | \\mu _ { x } , \\mu _ { y } , \\sigma _ { x } , \\sigma _ { y } , \\rho _ { x y } )$ is the probability distribution function for a bivariate normal distribution. Each of the $M$ bivariate normal distributions consist of five parameters: $( \\mu _ { x } , \\mu _ { y } , \\sigma _ { x } , \\sigma _ { y } , \\rho _ { x y } )$ , where $\\mu _ { x }$ and $\\mu _ { y }$ are the means, $\\sigma _ { x }$ and $\\sigma _ { y }$ are the standard deviations, and $\\rho _ { x y }$ is the correlation parameter of each bivariate normal distribution. An additional vector $\\Pi$ of length $M$ , also a categorical distribution, are the mixture weights of the Gaussian mixture model. Hence the size of the output vector $y$ is $5 M + M + 3$ , which includes the 3 logits needed to generate $( q _ { 1 } , q _ { 2 } , q _ { 3 } )$ . ",
|
| 356 |
+
"bbox": [
|
| 357 |
+
173,
|
| 358 |
+
768,
|
| 359 |
+
826,
|
| 360 |
+
854
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 2
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "The next hidden state of the RNN, generated with its forward operation, projects into the output vector $y _ { i }$ using a fully-connected layer: ",
|
| 367 |
+
"bbox": [
|
| 368 |
+
174,
|
| 369 |
+
859,
|
| 370 |
+
821,
|
| 371 |
+
888
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 2
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "equation",
|
| 377 |
+
"img_path": "images/864ed23d2c582dabd5b26f2e2937bd5610a8ff43a3914fcdbc196fe9557c9c48.jpg",
|
| 378 |
+
"text": "$$\n\\begin{array} { r } { x _ { i } = \\left[ S _ { i - 1 } ~ ; ~ z \\right] , ~ \\left[ h _ { i } ~ ; ~ c _ { i } ~ \\right] = ~ \\mathtt { f o r w a r d } ( x _ { i } , ~ \\left[ h _ { i - 1 } ~ ; ~ c _ { i - 1 } \\right] ) , ~ y _ { i } = W _ { y } h _ { i } + b _ { y } , ~ y _ { i } \\in \\mathbb { R } ^ { 6 M + 3 } . } \\end{array}\n$$",
|
| 379 |
+
"text_format": "latex",
|
| 380 |
+
"bbox": [
|
| 381 |
+
179,
|
| 382 |
+
893,
|
| 383 |
+
815,
|
| 384 |
+
911
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 2
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "text",
|
| 390 |
+
"text": "The vector $y _ { i }$ is broken down into the parameters of the probability distribution of the next data point: $\\big [ \\left( \\hat { \\Pi } \\mu _ { x } \\mu _ { y } \\hat { \\sigma } _ { x } \\hat { \\sigma } _ { y } \\hat { \\rho } _ { x y } \\right) _ { 1 } \\left( \\hat { \\Pi } \\mu _ { x } \\mu _ { y } \\hat { \\sigma } _ { x } \\hat { \\sigma } _ { y } \\hat { \\rho } _ { x y } \\right) _ { 2 } \\ldots \\left( \\hat { \\Pi } \\mu _ { x } \\mu _ { y } \\hat { \\sigma } _ { x } \\hat { \\sigma } _ { y } \\hat { \\rho } _ { x y } \\right) _ { M } \\left( \\hat { q } _ { 1 } \\hat { q } _ { 2 } \\hat { q } _ { 3 } \\right) \\big ] = y _ { i } .$ (5) As in (Graves, 2013), we apply exp and tanh operations to ensure the standard deviation values are non-negative, and that the correlation value is between $^ { - 1 }$ and 1: ",
|
| 391 |
+
"bbox": [
|
| 392 |
+
173,
|
| 393 |
+
103,
|
| 394 |
+
826,
|
| 395 |
+
167
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "equation",
|
| 401 |
+
"img_path": "images/861ba290d541144cc4a70b54aca573fb0301da33ba93c83feb35d7c5877e3eaf.jpg",
|
| 402 |
+
"text": "$$\n\\sigma _ { x } = \\exp ( \\hat { \\sigma } _ { x } ) , \\ \\sigma _ { y } = \\exp ( \\hat { \\sigma } _ { y } ) , \\ \\rho _ { x y } = \\operatorname { t a n h } ( \\hat { \\rho } _ { x y } ) .\n$$",
|
| 403 |
+
"text_format": "latex",
|
| 404 |
+
"bbox": [
|
| 405 |
+
331,
|
| 406 |
+
169,
|
| 407 |
+
666,
|
| 408 |
+
186
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "The probabilities for the categorical distributions are calculated using the outputs as logit value ",
|
| 415 |
+
"bbox": [
|
| 416 |
+
176,
|
| 417 |
+
186,
|
| 418 |
+
784,
|
| 419 |
+
202
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 3
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "equation",
|
| 425 |
+
"img_path": "images/9ec72f38c91d056431eb0df76c1d92f5aa581fd6f2c3f71b9a0dffcf2b2ab361.jpg",
|
| 426 |
+
"text": "$$\nq _ { k } = \\frac { \\exp ( \\hat { q } _ { k } ) } { \\sum _ { j = 1 } ^ { 3 } \\exp ( \\hat { q } _ { j } ) } , k \\in \\{ 1 , ~ 2 , ~ 3 \\} , ~ \\Pi _ { k } = \\frac { \\exp ( \\hat { \\Pi } _ { k } ) } { \\sum _ { j = 1 } ^ { M } \\exp ( \\hat { \\Pi } _ { j } ) } , k \\in \\{ 1 , ~ \\ldots , ~ { \\cal M } \\} .\n$$",
|
| 427 |
+
"text_format": "latex",
|
| 428 |
+
"bbox": [
|
| 429 |
+
235,
|
| 430 |
+
203,
|
| 431 |
+
759,
|
| 432 |
+
244
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "A key challenge is to train our model to know when to stop drawing. Because the probabilities of the three pen stroke events are highly unbalanced, the model becomes more difficult to train. The probability of a $p _ { 1 }$ event is much higher than $p _ { 2 }$ , and the $p _ { 3 }$ event will only happen once per drawing. The approach developed in (Ha, 2015) and later followed by (Zhang et al., 2016) was to use different weightings for each pen event when calculating the losses, such as a hand-tuned weighting of $( 1 , 1 0 , 1 0 0 )$ . We find this inelegant approach to be inadequate for our dataset of diverse images. ",
|
| 439 |
+
"bbox": [
|
| 440 |
+
173,
|
| 441 |
+
244,
|
| 442 |
+
825,
|
| 443 |
+
329
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "We develop a simpler, more robust approach that works well for a broad class of sketch drawing data. In our approach, all sequences are generated to a length of $N _ { \\mathrm { m a x } }$ where $N _ { \\mathrm { m a x } }$ is the length of the longest sketch in our training dataset. In principle $N _ { \\mathrm { m a x } }$ can be considered a hyper parameter. As the length of $S$ is usually shorter than $N _ { \\mathrm { m a x } }$ , we set $S _ { i }$ to be $( 0 , 0 , 0 , 0 , 1 )$ for $i > N _ { s }$ . We discuss the training in detail in the next section. ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
173,
|
| 452 |
+
334,
|
| 453 |
+
825,
|
| 454 |
+
405
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "After training, we can sample sketches from our model. During the sampling process, we generate the parameters for both GMM and categorical distributions at each time step, and sample an outcome $S _ { i } ^ { \\prime }$ for that time step. Unlike the training process, we feed the sampled outcome $S _ { i } ^ { \\prime }$ as input for the next time step. We continue to sample until $p _ { 3 } = 1$ , or when we have reached $i = N _ { \\operatorname* { m a x } }$ . Like the encoder, the sampled output is not deterministic, but a random sequence, conditioned on the input latent vector $z$ . We can control the level of randomness we would like our samples to have during the sampling process by introducing a temperature parameter $\\tau$ : ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
173,
|
| 463 |
+
411,
|
| 464 |
+
825,
|
| 465 |
+
510
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "equation",
|
| 471 |
+
"img_path": "images/0c9d61cb87c8cbb671cf9e83e6cad4c862c91a030623db6cab30e9a17fa6b2d8.jpg",
|
| 472 |
+
"text": "$$\n\\hat { q } _ { k } \\to \\frac { \\hat { q } _ { k } } { \\tau } , \\hat { \\Pi } _ { k } \\to \\frac { \\hat { \\Pi } _ { k } } { \\tau } , \\sigma _ { x } ^ { 2 } \\to \\sigma _ { x } ^ { 2 } \\tau , \\sigma _ { y } ^ { 2 } \\to \\sigma _ { y } ^ { 2 } \\tau .\n$$",
|
| 473 |
+
"text_format": "latex",
|
| 474 |
+
"bbox": [
|
| 475 |
+
343,
|
| 476 |
+
510,
|
| 477 |
+
653,
|
| 478 |
+
544
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 3
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "We can scale the softmax parameters of the categorial distribution and also the $\\sigma$ parameters of the bivariate normal distribution by a temperature parameter $\\tau$ , to control the level of randomness in our samples. $\\tau$ is typically set between 0 and 1. In the limiting case as $\\tau 0$ , our model becomes deterministic and samples will consist of the most likely point in the probability density function. Figure 3 illustrates of effect of sampling sketches with various temperature parameters. ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
173,
|
| 487 |
+
544,
|
| 488 |
+
825,
|
| 489 |
+
614
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 3
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "3.3 UNCONDITIONAL GENERATION ",
|
| 496 |
+
"text_level": 1,
|
| 497 |
+
"bbox": [
|
| 498 |
+
176,
|
| 499 |
+
630,
|
| 500 |
+
431,
|
| 501 |
+
643
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 3
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "image",
|
| 507 |
+
"img_path": "images/f696899c1ed98946685075eec02fb01a5394625b737c4268bf119a071c335733.jpg",
|
| 508 |
+
"image_caption": [
|
| 509 |
+
"Figure 3: Unconditional generation of firetrucks, yoga poses, gardens and owls with varying $\\tau$ "
|
| 510 |
+
],
|
| 511 |
+
"image_footnote": [],
|
| 512 |
+
"bbox": [
|
| 513 |
+
169,
|
| 514 |
+
656,
|
| 515 |
+
826,
|
| 516 |
+
785
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 3
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "As a special case, we can also train our model to generate sketches unconditionally, where we only train the decoder RNN module, without any input or latent vectors. By removing the encoder, the decoder RNN as a standalone model is an autoregressive model without latent variables. In this use case, the initial hidden states and cell states of the decoder RNN are initialized to zero. The inputs $x _ { i }$ of the decoder RNN at each time step is only $S _ { i - 1 }$ or $S _ { i - 1 } ^ { \\prime }$ , as we do not need to concatenate a latent vector $z$ . In Figure 3, we sample various sketch images generated unconditionally by varying the temperature parameter from $\\tau = 0 . 2$ at the top in blue, to $\\tau = 0 . 9$ at the bottom in red. ",
|
| 523 |
+
"bbox": [
|
| 524 |
+
173,
|
| 525 |
+
825,
|
| 526 |
+
825,
|
| 527 |
+
924
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 3
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "3.4 TRAINING ",
|
| 534 |
+
"text_level": 1,
|
| 535 |
+
"bbox": [
|
| 536 |
+
174,
|
| 537 |
+
103,
|
| 538 |
+
287,
|
| 539 |
+
117
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "Our training procedure follows the approach of the Variational Autoencoder (Kingma & Welling, 2013), where the loss function is the sum of two terms: the Reconstruction Loss, $L _ { R }$ , and the Kullback-Leibler Divergence Loss, $L _ { K L }$ . We train our model to optimize this two-part loss function. The Reconstruction loss term, described in Equation 9, maximizes the log-likehood of the generated probability distribution to explain the training data $S$ . We can calculate this reconstruction loss, $L _ { R }$ , using the generated parameters of the pdf and the training data $S$ . $L _ { R }$ is composed of the sum of the log loss of the offset terms $( \\Delta x , \\Delta y )$ , $L _ { s }$ , and the log loss of the pen state terms $( p _ { 1 } , p _ { 2 } , p _ { 3 } ) , L _ { p }$ : ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
173,
|
| 548 |
+
130,
|
| 549 |
+
826,
|
| 550 |
+
229
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "equation",
|
| 556 |
+
"img_path": "images/d9a42fcbb0b70b035cfe1a364b800e6831503124fcdca62ec750631d15b53ffd.jpg",
|
| 557 |
+
"text": "$$\n\\begin{array} { l } { { { \\cal L } _ { s } = \\displaystyle - \\frac { 1 } { N _ { \\mathrm { m a x } } } \\sum _ { i = 1 } ^ { N _ { s } } \\log \\Big ( \\sum _ { j = 1 } ^ { M } \\Pi _ { j , i } \\mathscr { N } ( \\Delta x _ { i } , \\Delta y _ { i } \\mid \\mu _ { x , j , i } , \\mu _ { y , j , i } , \\sigma _ { x , j , i } , \\sigma _ { y , j , i } , \\rho _ { x y , j , i } ) \\Big ) } } \\\\ { { { \\cal L } _ { p } = \\displaystyle - \\frac { 1 } { N _ { \\mathrm { m a x } } } \\sum _ { i = 1 } ^ { N _ { \\mathrm { m a x } } } \\sum _ { k = 1 } ^ { 3 } p _ { k , i } \\log ( q _ { k , i } ) , \\ L _ { R } = L _ { s } + L _ { p } . } } \\end{array}\n$$",
|
| 558 |
+
"text_format": "latex",
|
| 559 |
+
"bbox": [
|
| 560 |
+
223,
|
| 561 |
+
239,
|
| 562 |
+
772,
|
| 563 |
+
332
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 4
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "Note that we discard the pdf parameters modelling the $( \\Delta x , \\Delta y )$ points beyond $N _ { s }$ when calculating $L _ { s }$ , while $L _ { p }$ is calculated using all of the pdf parameters modelling the $\\left( p _ { 1 } , p _ { 2 } , p _ { 3 } \\right)$ points until $N _ { \\mathrm { m a x } }$ . Both terms are normalized by the total sequence length $N _ { \\mathrm { m a x } }$ . We found this methodology of loss calculation to be more robust and allows the model to easily learn when it should stop drawing, unlike the earlier mentioned method of assigning importance weightings to $p _ { 1 } , p _ { 2 }$ , and $p _ { 3 }$ . ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
173,
|
| 572 |
+
339,
|
| 573 |
+
825,
|
| 574 |
+
410
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 4
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "The Kullback-Leibler (KL) divergence loss term measures the difference between the distribution of our latent vector $z$ , to that of an IID Gaussian vector with zero mean and unit variance. Optimizing for this loss term allows us to minimize this difference. We use the result in (Kingma $\\&$ Welling, 2013), and calculate the KL loss term, $L _ { K L }$ , normalized by number of dimensions $N _ { z }$ of $z$ : ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
173,
|
| 583 |
+
416,
|
| 584 |
+
826,
|
| 585 |
+
473
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 4
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "equation",
|
| 591 |
+
"img_path": "images/b2b9fa989ea4edab5440e567254008677028fa305240896e0fe4a99b292e1241.jpg",
|
| 592 |
+
"text": "$$\nL _ { K L } = - \\frac { 1 } { 2 N _ { z } } \\Big ( 1 + \\hat { \\sigma } - \\mu ^ { 2 } - \\exp ( \\hat { \\sigma } ) \\Big ) .\n$$",
|
| 593 |
+
"text_format": "latex",
|
| 594 |
+
"bbox": [
|
| 595 |
+
364,
|
| 596 |
+
482,
|
| 597 |
+
635,
|
| 598 |
+
513
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "The loss function in Equation 11 is a weighted sum of both the $L _ { R }$ and $L _ { K L }$ loss terms: ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
171,
|
| 607 |
+
523,
|
| 608 |
+
748,
|
| 609 |
+
539
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 4
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "equation",
|
| 615 |
+
"img_path": "images/a9e249d25d7d036481dabda6ba12e3487b444d4c3ddf655108dbdec2a1e3598f.jpg",
|
| 616 |
+
"text": "$$\nL o s s = L _ { R } + w _ { K L } L _ { K L } .\n$$",
|
| 617 |
+
"text_format": "latex",
|
| 618 |
+
"bbox": [
|
| 619 |
+
413,
|
| 620 |
+
547,
|
| 621 |
+
584,
|
| 622 |
+
564
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 4
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "There is a tradeoff between optimizing for one term over the other. As $w _ { K L } 0$ , our model approaches a pure autoencoder, sacrificing the ability to enforce a prior over our latent space while obtaining better reconstruction loss metrics. Note that for unconditional generation, where our model is the standalone decoder, there will be no $L _ { K L }$ term as we only optimize for $L _ { R }$ . ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
173,
|
| 631 |
+
575,
|
| 632 |
+
825,
|
| 633 |
+
632
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 4
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "image",
|
| 639 |
+
"img_path": "images/0fd54f56dfc6335ffef4f02ea70c198459fd81cb71d7072401332f0c6af7a695.jpg",
|
| 640 |
+
"image_caption": [
|
| 641 |
+
"Figure 4: Tradeoff between $L _ { R }$ and $L _ { K L }$ , for two models trained on single class datasets (left). Validation Loss Graph for models trained on the Yoga dataset using various $w _ { K L }$ (right "
|
| 642 |
+
],
|
| 643 |
+
"image_footnote": [],
|
| 644 |
+
"bbox": [
|
| 645 |
+
174,
|
| 646 |
+
638,
|
| 647 |
+
820,
|
| 648 |
+
794
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 4
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "Figure 4 illustrates the tradeoff between different settings of $w _ { K L }$ and the resulting $L _ { R }$ and $L _ { K L }$ metrics on the test set, along with the $L _ { R }$ metric on a standalone decoder RNN for comparison. As the unconditional model does not receive any prior information about the entire sketch it needs to generate, the $L _ { R }$ metric for the standalone decoder model serves as an upper bound for various conditional models using a latent vector. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
173,
|
| 657 |
+
853,
|
| 658 |
+
825,
|
| 659 |
+
924
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "4 EXPERIMENTS ",
|
| 666 |
+
"text_level": 1,
|
| 667 |
+
"bbox": [
|
| 668 |
+
174,
|
| 669 |
+
102,
|
| 670 |
+
326,
|
| 671 |
+
117
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "We conduct several experiments with sketch-rnn for both conditional and unconditional vector image generation. We train sketch-rnn on various QuickDraw classes using various settings for $w _ { K L }$ and record the breakdown of losses. To experiment with a diverse set of classes with varying complexities, we select the cat, pig, face, firetruck, garden, owl, mosquito and yoga class. We also experiment on multi-class datasets by concatenating different classes together to form (cat, pig) and (crab, face, pig, rabbit). The results for test set evaluation on various datasets are displayed in Table 1. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
174,
|
| 680 |
+
132,
|
| 681 |
+
825,
|
| 682 |
+
217
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "The sketch-rnn model treats the RNN cell as an abstract component. In our experiments, we use Long Short-Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) as the encoder RNN. For the decoder RNN, we use HyperLSTM, as this type of RNN cell excels at sequence generation tasks (Ha et al., 2017). The ability for HyperLSTM to spontaneously augment its own weights enables it to adapt to many different regimes in a large diverse dataset. Please see the Appendix for more details. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
223,
|
| 692 |
+
825,
|
| 693 |
+
294
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "table",
|
| 699 |
+
"img_path": "images/a04839ddc2eefff1bacacf2825d63d7fad0d246999cdb29a18ac501e807f494c.jpg",
|
| 700 |
+
"table_caption": [],
|
| 701 |
+
"table_footnote": [
|
| 702 |
+
"Table 1: Loss figures $L _ { R }$ and $L _ { K L }$ ) for various $w _ { K L }$ settings. "
|
| 703 |
+
],
|
| 704 |
+
"table_body": "<table><tr><td>Dataset</td><td>WKL</td><td>= 1.00</td><td></td><td>WKL = 0.50</td><td>WKL</td><td>= 0.25</td><td>Decoder Only</td></tr><tr><td></td><td>LR</td><td>LKL</td><td>LR</td><td>LKL</td><td>LR</td><td>LKL</td><td>LR</td></tr><tr><td>cat</td><td>-0.98</td><td>0.29</td><td>-1.33</td><td>0.70</td><td>-1.46</td><td>1.01</td><td>-0.57</td></tr><tr><td>pig</td><td>-1.14</td><td>0.22</td><td>-1.37</td><td>0.49</td><td>-1.52</td><td>0.80</td><td>-0.82</td></tr><tr><td>cat, pig</td><td>-1.02</td><td>0.22</td><td>-1.24</td><td>0.49</td><td>-1.50</td><td>0.98</td><td>-0.75</td></tr><tr><td>crab,face,pig,rabbit</td><td>-0.91</td><td>0.22</td><td>-1.04</td><td>0.40</td><td>-1.47</td><td>1.17</td><td>-0.67</td></tr><tr><td>face</td><td>-1.13</td><td>0.27</td><td>-1.55</td><td>0.71</td><td>-1.90</td><td>1.44</td><td>-0.73</td></tr><tr><td>firetruck</td><td>-1.24</td><td>0.22</td><td>-1.26</td><td>0.24</td><td>-1.78</td><td>1.10</td><td>-0.90</td></tr><tr><td>garden</td><td>-0.79</td><td>0.20</td><td>-0.81</td><td>0.25</td><td>-0.99</td><td>0.54</td><td>-0.62</td></tr><tr><td>owl</td><td>-0.93</td><td>0.20</td><td>-1.03</td><td>0.34</td><td>-1.29</td><td>0.77</td><td>-0.66</td></tr><tr><td>mosquito</td><td>-0.67</td><td>0.30</td><td>-1.02</td><td>0.66</td><td>-1.41</td><td>1.54</td><td>-0.34</td></tr><tr><td>yoga</td><td>-0.80</td><td>0.24</td><td>-1.07</td><td>0.55</td><td>-1.51</td><td>1.33</td><td>-0.48</td></tr></table>",
|
| 705 |
+
"bbox": [
|
| 706 |
+
228,
|
| 707 |
+
304,
|
| 708 |
+
767,
|
| 709 |
+
472
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 5
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "The relative loss numbers are consistent with our expectations. We see that the reconstruction loss term $L _ { R }$ decreases as we relax the $w _ { K L }$ parameter controlling the weight for the KL loss term, and meanwhile the KL loss term $L _ { R }$ increases as a result. The $L _ { R }$ for the conditional model is strictly less than the unconditional, standalone decoder model. In Figure 4 (right), we plot validation-set loss graphs for on the yoga class for models with various $w _ { K L }$ settings. As $L _ { R }$ decreases, the $L _ { K L }$ term tends to increase due to the tradeoff between $L _ { R }$ and $L _ { K L }$ . ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
173,
|
| 718 |
+
496,
|
| 719 |
+
826,
|
| 720 |
+
580
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 5
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "4.1 CONDITIONAL RECONSTRUCTION ",
|
| 727 |
+
"text_level": 1,
|
| 728 |
+
"bbox": [
|
| 729 |
+
176,
|
| 730 |
+
597,
|
| 731 |
+
449,
|
| 732 |
+
611
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 5
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "We qualitatively assess the reconstructed sketch $S ^ { \\prime }$ given an input sketch $S$ . In Figure 5 (left), we sample several reconstructions at various levels of temperature $\\tau$ using a model trained on the single cat class, starting at 0.01 on the left and linearly increasing to 1.0 on the right. The reconstructed cat sketches have similar properties as the input image, and occasionally add or remove details such as a whisker, a mouth, a nose, or the orientation of the tail. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
173,
|
| 741 |
+
622,
|
| 742 |
+
825,
|
| 743 |
+
691
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 5
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "image",
|
| 749 |
+
"img_path": "images/7dacd33d6e318f898b53332f59eae5eb29864aead3b2fd214f39831f11d3d78e.jpg",
|
| 750 |
+
"image_caption": [
|
| 751 |
+
"Figure 5: Conditional generation of cats (left) and pigs (right). "
|
| 752 |
+
],
|
| 753 |
+
"image_footnote": [],
|
| 754 |
+
"bbox": [
|
| 755 |
+
171,
|
| 756 |
+
702,
|
| 757 |
+
826,
|
| 758 |
+
821
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 5
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "When presented with a non-standard image of a cat, such as a cat’s face with three eyes, the reconstructed cat only has two eyes. If we input a sketch from another image class, such a toothbrush, the model seemingly generate sketches with similar orientation and properties as the toothbrush input image, but with some cat-like features such as cat ears, whiskers or feet. We perform a similar experiment with a model trained on the pig class, as shown in Figure 5 (right). ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
854,
|
| 768 |
+
825,
|
| 769 |
+
924
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 5
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "4.2 LATENT SPACE INTERPOLATION ",
|
| 776 |
+
"text_level": 1,
|
| 777 |
+
"bbox": [
|
| 778 |
+
176,
|
| 779 |
+
103,
|
| 780 |
+
437,
|
| 781 |
+
117
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 6
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "By interpolating between latent vectors, we can visualize how one image morphs into another image by visualizing the reconstructions of the interpolations. As we enforce a Gaussian prior on the latent space, we expect fewer gaps in the space between two encoded latent vectors. We expect a model trained using a higher $w _ { K L }$ setting to produce images that are closer to the data manifold given a spherically interpolated (White, 2016) latent vector $z$ , compared to another model trained with a lower wKL. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
174,
|
| 790 |
+
131,
|
| 791 |
+
825,
|
| 792 |
+
215
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "image",
|
| 798 |
+
"img_path": "images/952656a9deee8795e3fd805634af165d863f5ad1d8559f623ff7f192d7d2976c.jpg",
|
| 799 |
+
"image_caption": [
|
| 800 |
+
"Figure 6: Latent space interpolation between cat and pig using with various $w _ { K L }$ settings (left). Sketch Drawing Analogies (right). "
|
| 801 |
+
],
|
| 802 |
+
"image_footnote": [],
|
| 803 |
+
"bbox": [
|
| 804 |
+
187,
|
| 805 |
+
224,
|
| 806 |
+
810,
|
| 807 |
+
321
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 6
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "To demonstrate this, we train several models using various $w _ { K L }$ , on a dataset consisting of both cat and pigs, and we encode two distinct images from the test set - a cat face and a full pig. Figure 6 (left) shows the reconstructed images from the interpolated latent vectors between the two original images. As expected, models trained with higher $w _ { K L }$ produce more coherent interpolated images. ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
174,
|
| 816 |
+
369,
|
| 817 |
+
825,
|
| 818 |
+
426
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 6
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "4.3 SKETCH DRAWING ANALOGIES ",
|
| 825 |
+
"text_level": 1,
|
| 826 |
+
"bbox": [
|
| 827 |
+
176,
|
| 828 |
+
446,
|
| 829 |
+
434,
|
| 830 |
+
462
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 6
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "The interpolation example in Figure 6 (left) suggests that the latent vector $z$ encode conceptual features of a sketch. Can we use these features to augment other sketches without such features – for example, adding a body to a cat’s head? Indeed, we find that sketch drawing analogies are possible for models trained with low $L _ { K L }$ numbers. Given the smoothness of the latent space, where any interpolated vector between two latent vectors results in a coherent sketch, we can perform vector arithmetic on the latent vectors encoded from different sketches and explore how the model organizes the latent space to represent different concepts in the manifold of generated sketches. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
173,
|
| 839 |
+
474,
|
| 840 |
+
825,
|
| 841 |
+
573
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 6
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "For example, as shown in Figure 6 (right), we can subtract the latent vector of an encoded pig head from the latent vector of a full pig, to arrive at a vector that represents a body. Adding this difference to the latent vector of a cat head results in a full cat (i.e. cat head $^ +$ body $=$ full cat). We repeat the experiment to remove the body of a full pig. These drawing analogies allow us to explore how the model organizes its latent space to represent different concepts in the manifold of generated sketches. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
579,
|
| 851 |
+
825,
|
| 852 |
+
650
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 6
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "image",
|
| 858 |
+
"img_path": "images/0182bb7c1611ea15459e55b331cd79713529168c90ec71dccdcd279207d62404.jpg",
|
| 859 |
+
"image_caption": [
|
| 860 |
+
"4.4 PREDICTING DIFFERENT ENDINGS OF INCOMPLETE SKETCHES"
|
| 861 |
+
],
|
| 862 |
+
"image_footnote": [],
|
| 863 |
+
"bbox": [
|
| 864 |
+
202,
|
| 865 |
+
695,
|
| 866 |
+
795,
|
| 867 |
+
895
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 6
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "Figure 7: sketch-rnn predicting possible endings of various incomplete sketches (the red lines). ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
171,
|
| 876 |
+
907,
|
| 877 |
+
823,
|
| 878 |
+
922
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 6
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "We can use sketch-rnn to finish an incomplete sketch. By using the decoder RNN as a standalone model, we can generate a sketch that is conditioned on the previous points. We use the decoder RNN to first encode an incomplete sketch into a hidden state $h$ . Afterwards, we generate the remaining points of the sketch using $h$ as the initial hidden state. We show results in Figure 7 using decoder-only models trained on individual classes, and sample completions by setting $\\tau = 0 . 8$ . ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
174,
|
| 887 |
+
103,
|
| 888 |
+
825,
|
| 889 |
+
174
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 7
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "5 APPLICATIONS AND FUTURE WORK ",
|
| 896 |
+
"text_level": 1,
|
| 897 |
+
"bbox": [
|
| 898 |
+
174,
|
| 899 |
+
207,
|
| 900 |
+
504,
|
| 901 |
+
223
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 7
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "We believe sketch-rnn will enable many creative applications. Even the decoder-only model trained on various classes can assist the creative process of an artist by suggesting many possible ways of finishing a sketch, helping artists expand their imagination. In the conditional model, exploring the latent space between different objects can potentially enable artists to find interesting intersections and relationships between different drawings. Even in the simplest use, pattern designers can apply sketch-rnn to generate a large number of similar, but unique designs for textile or wallpaper prints. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
173,
|
| 910 |
+
247,
|
| 911 |
+
825,
|
| 912 |
+
344
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 7
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "As we saw earlier in Section 4.1, a model trained to draw pigs can be made to draw pig-like trucks if given an input sketch of a truck. We can extend this result to applications that might help creative designers come up with abstract designs that can resonate more with their target audience. For instance, in Figure 8 (right), we feed sketches of four different chairs into our cat-drawing model to produce four “chair-like cats”. We can even interpolate between the four images to explore the latent space of chair-like cats, and select from a large grid of generated designs. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
173,
|
| 921 |
+
352,
|
| 922 |
+
825,
|
| 923 |
+
435
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 7
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "image",
|
| 929 |
+
"img_path": "images/01984930a9a6baed64318e856f5337d4d02cfa7c4120f93cf261122d7ef23045.jpg",
|
| 930 |
+
"image_caption": [
|
| 931 |
+
"Figure 8: Generating similar, but unique sketches based on a single human sketch in the box (left). Latent space of generated cats conditioned on sketch drawings of chairs (right). "
|
| 932 |
+
],
|
| 933 |
+
"image_footnote": [],
|
| 934 |
+
"bbox": [
|
| 935 |
+
173,
|
| 936 |
+
462,
|
| 937 |
+
828,
|
| 938 |
+
642
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 7
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "A model trained on higher quality sketches may find its way into educational applications that can help teach students how to draw. Even with the simple sketches in QuickDraw, the authors of this work have become much more proficient at drawing animals, insects, and various sea creatures after conducting these experiments. A related application is to encode a crude, poorly sketched drawing and generate more aesthetically looking reproductions by using a model trained with a high $w _ { K L }$ setting and sampling with a low temperature $\\tau$ to produce a more coherent version of the drawing. In the future, we can also investigate augmenting the latent vector in the direction that maximizes the aesthetics of the drawing by incorporating user-rating data into the training process. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
708,
|
| 948 |
+
825,
|
| 949 |
+
820
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 7
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Combining hybrid variations of sequence-generation models with unsupervised, cross-domain pixel image generation models, such as Image-to-Image models (Dong et al., 2017; Kim et al., 2017; Liu et al., 2017), is another exciting direction that we can explore. We can already combine this model with supervised, cross-domain models such as Pix2Pix (Isola et al., 2016), to occasionally generate photo realistic cat images from generated sketches of cats. The opposite direction of converting a photograph of a cat into an unrealistic, but similar looking sketch of a cat composed of a minimal number of lines seems to be a more interesting problem. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
173,
|
| 958 |
+
827,
|
| 959 |
+
825,
|
| 960 |
+
924
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 7
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "6 CONCLUSION ",
|
| 967 |
+
"text_level": 1,
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
102,
|
| 971 |
+
318,
|
| 972 |
+
118
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 8
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "In this work, we develop a methodology to model sketch drawings using recurrent neural networks. sketch-rnn is able to generate possible ways to finish an existing, but unfinished sketch drawing. Our model can also encode existing sketches into a latent vector, and generate similar looking sketches conditioned on the latent space. We demonstrate what it means to interpolate between two different sketches by interpolating between its latent space, and also show that we can manipulate attributes of a sketch by augmenting the latent space. We demonstrate the importance of enforcing a prior distribution on the latent vector for coherent vector image generation during interpolation. By making available a large dataset of sketch drawings, we hope to encourage further research and development in the area of generative vector image modelling. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
133,
|
| 982 |
+
825,
|
| 983 |
+
258
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "7 ACKNOWLEDGEMENTS ",
|
| 990 |
+
"text_level": 1,
|
| 991 |
+
"bbox": [
|
| 992 |
+
176,
|
| 993 |
+
279,
|
| 994 |
+
398,
|
| 995 |
+
295
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 8
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "We thank Ian Johnson, Jonas Jongejan, Martin Wattenberg, Mike Schuster, Thomas Deselaers, Ben Poole, Kyle Kastner, Junyoung Chung and Kyle McDonald for their help with this project. This work was done as part of the Google Brain Residency program (g.co/brainresidency). ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
310,
|
| 1005 |
+
825,
|
| 1006 |
+
352
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 8
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "REFERENCES ",
|
| 1013 |
+
"text_level": 1,
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
373,
|
| 1017 |
+
287,
|
| 1018 |
+
388
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 8
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Jimmy L. Ba, Jamie R. Kiros, and Geoffrey E. Hinton. Layer normalization. NIPS, 2016. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
171,
|
| 1027 |
+
396,
|
| 1028 |
+
758,
|
| 1029 |
+
411
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 8
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Christopher M. Bishop. Mixture density networks. Technical Report, 1994. URL http:// publications.aston.ac.uk/373/. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
174,
|
| 1038 |
+
419,
|
| 1039 |
+
820,
|
| 1040 |
+
449
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 8
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Samuel R. Bowman, Luke Vilnis, Oriol Vinyals, Andrew M. Dai, Rafal Józefowicz, and Samy Bengio. Generating Sentences from a Continuous Space. CoRR, abs/1511.06349, 2015. URL http://arxiv.org/abs/1511.06349. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
176,
|
| 1049 |
+
455,
|
| 1050 |
+
823,
|
| 1051 |
+
500
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 8
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "H. Dong, P. Neekhara, C. Wu, and Y. Guo. Unsupervised Image-to-Image Translation with Generative Adversarial Networks. ArXiv e-prints, January 2017. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
178,
|
| 1060 |
+
507,
|
| 1061 |
+
821,
|
| 1062 |
+
536
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 8
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "David H. Douglas and Thomas K. Peucker. Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. Cartographica: The International Journal for Geographic Information and Geovisualization, 10(2):112–122, October 1973. doi: 10.3138/fm57-6770-u75u-7727. URL http://dx.doi.org/10.3138/ fm57-6770-u75u-7727. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
173,
|
| 1071 |
+
545,
|
| 1072 |
+
826,
|
| 1073 |
+
614
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 8
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Mathias Eitz, James Hays, and Marc Alexa. How Do Humans Sketch Objects? ACM Trans. Graph. (Proc. SIGGRAPH), 31(4):44:1–44:10, 2012. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
176,
|
| 1082 |
+
623,
|
| 1083 |
+
823,
|
| 1084 |
+
654
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 8
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "I. Goodfellow. NIPS 2016 Tutorial: Generative Adversarial Networks. ArXiv e-prints, December 2016. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
173,
|
| 1093 |
+
661,
|
| 1094 |
+
823,
|
| 1095 |
+
690
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 8
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Alex Graves. Generating sequences with recurrent neural networks. arXiv:1308.0850, 2013. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
171,
|
| 1104 |
+
699,
|
| 1105 |
+
781,
|
| 1106 |
+
714
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 8
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "David Ha. Recurrent Net Dreams Up Fake Chinese Characters in Vector Format with TensorFlow, 2015. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
173,
|
| 1115 |
+
722,
|
| 1116 |
+
828,
|
| 1117 |
+
751
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 8
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "David Ha, Andrew M. Dai, and Quoc V. Le. HyperNetworks. In ICLR, 2017. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
174,
|
| 1126 |
+
758,
|
| 1127 |
+
683,
|
| 1128 |
+
775
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 8
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Sepp Hochreiter and Juergen Schmidhuber. Long short-term memory. Neural Computation, 1997. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
173,
|
| 1137 |
+
784,
|
| 1138 |
+
813,
|
| 1139 |
+
799
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 8
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros. Image-to-Image Translation with Conditional Adversarial Networks. ArXiv e-prints, November 2016. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
176,
|
| 1148 |
+
806,
|
| 1149 |
+
823,
|
| 1150 |
+
835
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 8
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Jonas Jongejan, Henry Rowley, Takashi Kawashima, Jongmin Kim, and Nick Fox-Gieg. The Quick, Draw! - A.I. Experiment. https://quickdraw.withgoogle.com/, 2016. URL https: //quickdraw.withgoogle.com/. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
174,
|
| 1159 |
+
843,
|
| 1160 |
+
823,
|
| 1161 |
+
887
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 8
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "C. Kaae Sønderby, T. Raiko, L. Maaløe, S. Kaae Sønderby, and O. Winther. Ladder Variational Autoencoders. ArXiv e-prints, February 2016. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
176,
|
| 1170 |
+
895,
|
| 1171 |
+
820,
|
| 1172 |
+
924
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 8
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "T. Kim, M. Cha, H. Kim, J. Lee, and J. Kim. Learning to Discover Cross-Domain Relations with Generative Adversarial Networks. ArXiv e-prints, March 2017. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
171,
|
| 1181 |
+
103,
|
| 1182 |
+
823,
|
| 1183 |
+
132
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 9
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "D. P Kingma and M. Welling. Auto-Encoding Variational Bayes. ArXiv e-prints, December 2013. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
173,
|
| 1192 |
+
140,
|
| 1193 |
+
816,
|
| 1194 |
+
156
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 9
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
173,
|
| 1203 |
+
165,
|
| 1204 |
+
800,
|
| 1205 |
+
181
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 9
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016. URL http://arxiv.org/abs/1606. 04934. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
176,
|
| 1214 |
+
189,
|
| 1215 |
+
825,
|
| 1216 |
+
231
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 9
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Brenden M. Lake, Ruslan Salakhutdinov, and Joshua B. Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, December 2015. ISSN 1095-9203. doi: 10.1126/science.aab3050. URL http://dx.doi.org/10.1126/ science.aab3050. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
174,
|
| 1225 |
+
241,
|
| 1226 |
+
826,
|
| 1227 |
+
296
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 9
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Yong Jae Lee, C. Lawrence Zitnick, and Michael F. Cohen. Shadowdraw: Real-time user guidance for freehand drawing. In ACM SIGGRAPH 2011 Papers, SIGGRAPH ’11, pp. 27:1–27:10, New York, NY, USA, 2011. ACM. ISBN 978-1-4503-0943-1. doi: 10.1145/1964921.1964922. URL http://doi.acm.org/10.1145/1964921.1964922. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
174,
|
| 1236 |
+
306,
|
| 1237 |
+
825,
|
| 1238 |
+
363
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 9
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "M.-Y. Liu, T. Breuel, and J. Kautz. Unsupervised Image-to-Image Translation Networks. ArXiv e-prints, March 2017. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
171,
|
| 1247 |
+
371,
|
| 1248 |
+
823,
|
| 1249 |
+
400
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 9
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "S. Reed, A. van den Oord, N. Kalchbrenner, S. Gómez Colmenarejo, Z. Wang, D. Belov, and N. de Freitas. Parallel Multiscale Autoregressive Density Estimation. ArXiv e-prints, March 2017. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
173,
|
| 1258 |
+
409,
|
| 1259 |
+
825,
|
| 1260 |
+
439
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 9
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Patsorn Sangkloy, Nathan Burnell, Cusuh Ham, and James Hays. The Sketchy Database: Learning to Retrieve Badly Drawn Bunnies. ACM Trans. Graph., 35(4):119:1–119:12, July 2016. ISSN 0730- 0301. doi: 10.1145/2897824.2925954. URL http://doi.acm.org/10.1145/2897824. 2925954. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
173,
|
| 1269 |
+
446,
|
| 1270 |
+
828,
|
| 1271 |
+
503
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 9
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Mike Schuster, Kuldip K. Paliwal, and A. General. Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 1997. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
173,
|
| 1280 |
+
512,
|
| 1281 |
+
825,
|
| 1282 |
+
541
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 9
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Saul Simhon and Gregory Dudek. Sketch interpretation and refinement using statistical models. In Proceedings of the Fifteenth Eurographics Conference on Rendering Techniques, EGSR’04, pp. 23– 32, Aire-la-Ville, Switzerland, Switzerland, 2004. Eurographics Association. ISBN 3-905673-12- 6. doi: 10.2312/EGWR/EGSR04/023-032. URL http://dx.doi.org/10.2312/EGWR/ EGSR04/023-032. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
173,
|
| 1291 |
+
549,
|
| 1292 |
+
826,
|
| 1293 |
+
619
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 9
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "Patrick Tresset and Frederic Fol Leymarie. Portrait drawing by paul the robot. Comput. Graph., 37(5):348–363, August 2013. ISSN 0097-8493. doi: 10.1016/j.cag.2013.01.012. URL http: //dx.doi.org/10.1016/j.cag.2013.01.012. ",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
173,
|
| 1302 |
+
628,
|
| 1303 |
+
823,
|
| 1304 |
+
672
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 9
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "T. White. Sampling Generative Networks. ArXiv e-prints, September 2016. ",
|
| 1311 |
+
"bbox": [
|
| 1312 |
+
174,
|
| 1313 |
+
680,
|
| 1314 |
+
669,
|
| 1315 |
+
696
|
| 1316 |
+
],
|
| 1317 |
+
"page_idx": 9
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"type": "text",
|
| 1321 |
+
"text": "Ning Xie, Hirotaka Hachiya, and Masashi Sugiyama. Artist agent: A reinforcement learning approach to automatic stroke generation in oriental ink painting. In ICML. icml.cc / Omnipress, 2012. URL http://dblp.uni-trier.de/db/conf/icml/icml2012.html#XieHS12. ",
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
174,
|
| 1324 |
+
704,
|
| 1325 |
+
825,
|
| 1326 |
+
748
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 9
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "Xu-Yao Zhang, Fei Yin, Yan-Ming Zhang, Cheng-Lin Liu, and Yoshua Bengio. Drawing and Recognizing Chinese Characters with Recurrent Neural Network. CoRR, abs/1606.06539, 2016. URL http://arxiv.org/abs/1606.06539. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
174,
|
| 1335 |
+
756,
|
| 1336 |
+
826,
|
| 1337 |
+
799
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 9
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "A APPENDIX ",
|
| 1344 |
+
"text_level": 1,
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
176,
|
| 1347 |
+
102,
|
| 1348 |
+
299,
|
| 1349 |
+
117
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 10
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "A.1 DATASET DETAILS ",
|
| 1356 |
+
"text_level": 1,
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
176,
|
| 1359 |
+
137,
|
| 1360 |
+
348,
|
| 1361 |
+
151
|
| 1362 |
+
],
|
| 1363 |
+
"page_idx": 10
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"type": "image",
|
| 1367 |
+
"img_path": "images/c36584dcc88515e06684c5609daac7ea4e5a8497368a58e0e49c0a8b8b0c0813.jpg",
|
| 1368 |
+
"image_caption": [
|
| 1369 |
+
"Figure 9: Example sketch drawings from QuickDraw dataset. "
|
| 1370 |
+
],
|
| 1371 |
+
"image_footnote": [],
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
236,
|
| 1374 |
+
172,
|
| 1375 |
+
761,
|
| 1376 |
+
445
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 10
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "The data from QuickDraw (Jongejan et al., 2016) expands daily, and every so often new classes are added to the game. As such, the QuickDraw dataset now consists of hundreds of classes, from 75 classes initially, in Table 2. In total, there are $\\sim 5 0$ million sketches in the released dataset, although for the purpose of constructing an organized dataset for research purposes, we have limited the number of sketches in each class. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
174,
|
| 1385 |
+
484,
|
| 1386 |
+
825,
|
| 1387 |
+
554
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 10
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "table",
|
| 1393 |
+
"img_path": "images/9219d8a9023f47f9aeeb3766ee4a2524c7113dbf3a820d9e642e4ab4b1f5b0fe.jpg",
|
| 1394 |
+
"table_caption": [],
|
| 1395 |
+
"table_footnote": [
|
| 1396 |
+
"Table 2: Initial 75 QuickDraw classes used for this work. "
|
| 1397 |
+
],
|
| 1398 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>alarm clock</td><td rowspan=1 colspan=1>ambulance</td><td rowspan=1 colspan=1>angel</td><td rowspan=1 colspan=1>ant</td><td rowspan=1 colspan=1>barn</td></tr><tr><td rowspan=1 colspan=1>basket</td><td rowspan=1 colspan=1>bee</td><td rowspan=1 colspan=1>bicycle</td><td rowspan=1 colspan=1>book</td><td rowspan=1 colspan=1>bridge</td></tr><tr><td rowspan=1 colspan=1>bulldozer</td><td rowspan=1 colspan=1>bus</td><td rowspan=1 colspan=1>butterfly</td><td rowspan=1 colspan=1>cactus</td><td rowspan=1 colspan=1>castle</td></tr><tr><td rowspan=1 colspan=1>cat</td><td rowspan=1 colspan=1>chair</td><td rowspan=1 colspan=1>couch</td><td rowspan=1 colspan=1>crab</td><td rowspan=1 colspan=1>cruise ship</td></tr><tr><td rowspan=1 colspan=1>dolphin</td><td rowspan=1 colspan=1>duck</td><td rowspan=1 colspan=1>elephant</td><td rowspan=1 colspan=1>eye</td><td rowspan=1 colspan=1>face</td></tr><tr><td rowspan=1 colspan=1>fan</td><td rowspan=1 colspan=1>fire hydrant</td><td rowspan=1 colspan=1>firetruck</td><td rowspan=1 colspan=1>flamingo</td><td rowspan=1 colspan=1>flower</td></tr><tr><td rowspan=1 colspan=1>garden</td><td rowspan=1 colspan=1>hand</td><td rowspan=1 colspan=1>hedgehog</td><td rowspan=1 colspan=1>helicopter</td><td rowspan=1 colspan=1>kangaroo</td></tr><tr><td rowspan=1 colspan=1>key</td><td rowspan=1 colspan=1>lighthouse</td><td rowspan=1 colspan=1>lion</td><td rowspan=1 colspan=1>map</td><td rowspan=1 colspan=1>mermaid</td></tr><tr><td rowspan=1 colspan=1>octopus</td><td rowspan=1 colspan=1>owl</td><td rowspan=1 colspan=1>paintbrush</td><td rowspan=1 colspan=1>palm tree</td><td rowspan=1 colspan=1>parrot</td></tr><tr><td rowspan=1 colspan=1>passport</td><td rowspan=1 colspan=1>peas</td><td rowspan=1 colspan=1>penguin</td><td rowspan=1 colspan=1>pig</td><td rowspan=1 colspan=1>pineapple</td></tr><tr><td rowspan=1 colspan=1>postcard</td><td rowspan=1 colspan=1>power outlet</td><td rowspan=1 colspan=1>rabbit</td><td rowspan=1 colspan=1>radio</td><td rowspan=1 colspan=1>rain</td></tr><tr><td rowspan=1 colspan=1>rhinoceros</td><td rowspan=1 colspan=1>roller coaster</td><td rowspan=1 colspan=1>sandwich</td><td rowspan=1 colspan=1>scorpion</td><td rowspan=1 colspan=1>sea turtle</td></tr><tr><td rowspan=1 colspan=1>sheep</td><td rowspan=1 colspan=1>skull</td><td rowspan=1 colspan=1>snail</td><td rowspan=1 colspan=1>snowflake</td><td rowspan=1 colspan=1>speedboat</td></tr><tr><td rowspan=1 colspan=1>spider</td><td rowspan=1 colspan=1>strawberry</td><td rowspan=1 colspan=1>swan</td><td rowspan=1 colspan=1>swing set</td><td rowspan=1 colspan=1>tennis racquet</td></tr><tr><td rowspan=1 colspan=1>the mona lisa</td><td rowspan=1 colspan=1>toothbrush</td><td rowspan=1 colspan=1>truck</td><td rowspan=1 colspan=1>whale</td><td rowspan=1 colspan=1>windmill</td></tr></table>",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
250,
|
| 1401 |
+
570,
|
| 1402 |
+
748,
|
| 1403 |
+
787
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 10
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "Each class consists of 70K training samples and 2.5K validation and test samples. Stroke simplification using the Ramer–Douglas–Peucker algorithm (Douglas & Peucker, 1973) with a parameter of $\\epsilon = 2 . 0$ has been applied to simplify the lines. The data was originally recorded in pixel-dimensions, so we normalized the offsets $( \\Delta x , \\Delta y )$ using a single scaling factor. This scaling factor was calculated to adjust the offsets in the training set to have a standard deviation of 1. For simplicity, we do not normalize the offsets $( \\Delta x , \\Delta y )$ to have zero mean, since the means are already relatively small. Figure 10 shows a training example before normalization of $( \\Delta x , \\Delta y )$ data columns. ",
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
173,
|
| 1412 |
+
825,
|
| 1413 |
+
826,
|
| 1414 |
+
924
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 10
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "image",
|
| 1420 |
+
"img_path": "images/45118061d03ad7220c3b78b0feeafc147a6628870f4276a6898ec0ff91a61c4a.jpg",
|
| 1421 |
+
"image_caption": [
|
| 1422 |
+
"Figure 10: A sample sketch, as a sequence of $( \\Delta x , \\Delta y , p _ { 1 } , p _ { 2 } , p _ { 3 } )$ points and in rendered form. In the rendered sketch, the line color corresponds to the sequential stroke ordering. "
|
| 1423 |
+
],
|
| 1424 |
+
"image_footnote": [],
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
173,
|
| 1427 |
+
98,
|
| 1428 |
+
825,
|
| 1429 |
+
219
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 11
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "A.2 TRAINING DETAILS ",
|
| 1436 |
+
"text_level": 1,
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
174,
|
| 1439 |
+
280,
|
| 1440 |
+
354,
|
| 1441 |
+
295
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 11
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "As a recap from the main text, we defined the Reconstruction loss term $L _ { R }$ as: ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
173,
|
| 1450 |
+
306,
|
| 1451 |
+
686,
|
| 1452 |
+
321
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 11
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "equation",
|
| 1458 |
+
"img_path": "images/435c04dad98d5d1066caafb906462c8727e20fe998b14d5902da206b83fbb118.jpg",
|
| 1459 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle { \\cal L } _ { s } = - \\frac { 1 } { N _ { \\mathrm { m a x } } } \\sum _ { i = 1 } ^ { N _ { s } } \\log \\Big ( \\sum _ { j = 1 } ^ { M } \\Pi _ { j , i } \\mathcal { N } ( \\Delta x _ { i } , \\Delta y _ { i } \\mid \\mu _ { x , j , i } , \\mu _ { y , j , i } , \\sigma _ { x , j , i } , \\sigma _ { y , j , i } , \\rho _ { x y , j , i } ) \\Big ) } } \\\\ { { \\displaystyle { \\cal L } _ { p } = - \\frac { 1 } { N _ { \\mathrm { m a x } } } \\sum _ { i = 1 } ^ { N _ { \\mathrm { m a x } } } \\sum _ { k = 1 } ^ { 3 } p _ { k , i } \\log ( q _ { k , i } ) } } \\\\ { { \\displaystyle { \\cal L } _ { R } = { \\cal L } _ { s } + { \\cal L } _ { p } . } } \\end{array}\n$$",
|
| 1460 |
+
"text_format": "latex",
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
212,
|
| 1463 |
+
329,
|
| 1464 |
+
759,
|
| 1465 |
+
438
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 11
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "text",
|
| 1471 |
+
"text": "We also defined the KL loss term $L _ { K L }$ as: ",
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
174,
|
| 1474 |
+
444,
|
| 1475 |
+
450,
|
| 1476 |
+
459
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 11
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "equation",
|
| 1482 |
+
"img_path": "images/695c80f0dd9316175853a5a089883da4c8e9dae19fffe814815e5b989d77504c.jpg",
|
| 1483 |
+
"text": "$$\nL _ { K L } = - \\frac { 1 } { 2 N _ { z } } \\Big ( 1 + \\hat { \\sigma } - \\mu ^ { 2 } - \\exp ( \\hat { \\sigma } ) \\Big ) .\n$$",
|
| 1484 |
+
"text_format": "latex",
|
| 1485 |
+
"bbox": [
|
| 1486 |
+
364,
|
| 1487 |
+
465,
|
| 1488 |
+
633,
|
| 1489 |
+
497
|
| 1490 |
+
],
|
| 1491 |
+
"page_idx": 11
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "text",
|
| 1495 |
+
"text": "The loss function in Equation 14 is a weighted sum of both the $L _ { R }$ and $L _ { K L }$ loss terms: ",
|
| 1496 |
+
"bbox": [
|
| 1497 |
+
173,
|
| 1498 |
+
503,
|
| 1499 |
+
748,
|
| 1500 |
+
520
|
| 1501 |
+
],
|
| 1502 |
+
"page_idx": 11
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"type": "equation",
|
| 1506 |
+
"img_path": "images/5dbdd0e924f6f4848fe57810b038719d4da8423207269af7a72e175ff1edc0ab.jpg",
|
| 1507 |
+
"text": "$$\nL o s s = L _ { R } + w _ { K L } L _ { K L } .\n$$",
|
| 1508 |
+
"text_format": "latex",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
413,
|
| 1511 |
+
526,
|
| 1512 |
+
584,
|
| 1513 |
+
542
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 11
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "text",
|
| 1519 |
+
"text": "While the loss function in Equation 14 can be used during training, we find that annealing the KL term in the loss function (Equation 15) produced better results. This modification is only used for model training, and the original loss function in Equation 14 is still used to evaluate validation and test sets, and for early stopping. ",
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
173,
|
| 1522 |
+
551,
|
| 1523 |
+
825,
|
| 1524 |
+
608
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 11
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "equation",
|
| 1530 |
+
"img_path": "images/ccf389811c38ade38ac0dadb09ccefb3c48d86ff7c2aed89c304e8a9930fc470.jpg",
|
| 1531 |
+
"text": "$$\n\\begin{array} { c } { \\eta _ { s t e p } = 1 - ( 1 - \\eta _ { m i n } ) R ^ { s t e p } } \\\\ { L o s s _ { t r a i n } = L _ { R } + w _ { K L } \\eta _ { s t e p } \\operatorname* { m a x } ( L _ { K L } , K L _ { m i n } ) } \\end{array}\n$$",
|
| 1532 |
+
"text_format": "latex",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
330,
|
| 1535 |
+
614,
|
| 1536 |
+
666,
|
| 1537 |
+
654
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 11
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "text",
|
| 1543 |
+
"text": "We find that annealing the KL loss term generally results in better losses. Annealing the $L _ { K L }$ term in the loss function directs the optimizer to first focus more on the reconstruction term in Equation 12, which is the more difficult loss term of the model to optimize for, before having to deal with optimizing for the KL loss term in Equation 13, a far simpler expression in comparison. This approach has been used in (Bowman et al., 2015; Kaae Sønderby et al., 2016; Kingma et al., 2016). Our annealing term $\\eta _ { s t e p }$ starts at $\\eta _ { m i n }$ (typically 0 or 0.01) at training step 0, and converges to 1 for large training steps. $R$ is a term close to, but less than 1. ",
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
173,
|
| 1546 |
+
659,
|
| 1547 |
+
825,
|
| 1548 |
+
757
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 11
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "If the distribution of $z$ is close enough to $\\mathcal { N } ( 0 , I )$ , we can sample sketches from the decoder using randomly sampled $z$ from $\\mathcal { N } ( 0 , I )$ as the input. In practice, we find that going from a larger $L _ { K L }$ value $\\left( L _ { K L } > 1 . 0 \\right)$ ) to a smaller $L _ { K L }$ value of 0.3 generally results in a substantial increase in the quality of sampled images using randomly sampled $z \\sim \\mathcal { N } ( 0 , I )$ . However, going from $L _ { K L } = 0 . 3$ to $L _ { K L }$ values closer to zero does not lead to any further noticeable improvements. Hence we find it useful to put a floor on $L _ { K L }$ in the loss function by enforcing $\\operatorname* { m a x } ( L _ { K L } , K L _ { m i n } )$ in Equation 15. ",
|
| 1555 |
+
"bbox": [
|
| 1556 |
+
173,
|
| 1557 |
+
762,
|
| 1558 |
+
825,
|
| 1559 |
+
848
|
| 1560 |
+
],
|
| 1561 |
+
"page_idx": 11
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"type": "text",
|
| 1565 |
+
"text": "The $K L _ { m i n }$ term inside the max operator is typically set to a small value such as 0.10 to 0.50. This term will encourage the optimizer to put less focus on optimizing for the KL loss term $L _ { K L }$ once it is low enough, so we can obtain better metrics for the reconstruction loss term $L _ { R }$ . This approach is similar to the approach described in (Kingma et al., 2016) as free bits, where they apply the max operator separately inside each dimension of the latent vector $z$ . ",
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
174,
|
| 1568 |
+
853,
|
| 1569 |
+
825,
|
| 1570 |
+
924
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 11
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "text",
|
| 1576 |
+
"text": "A.3 MODEL CONFIGURATION ",
|
| 1577 |
+
"text_level": 1,
|
| 1578 |
+
"bbox": [
|
| 1579 |
+
176,
|
| 1580 |
+
103,
|
| 1581 |
+
393,
|
| 1582 |
+
117
|
| 1583 |
+
],
|
| 1584 |
+
"page_idx": 12
|
| 1585 |
+
},
|
| 1586 |
+
{
|
| 1587 |
+
"type": "text",
|
| 1588 |
+
"text": "Our encoder and decoder RNNs consist of 512 and 2048 nodes respectively. In our model, we use $M = 2 0$ mixture components for the decoder RNN. The latent vector $z$ has $N _ { z } = 1 2 8$ dimensions. We apply Layer Normalization (Ba et al., 2016) to our model, and during training apply recurrent dropout [9] with a keep probability of $90 \\%$ . We train the model with batch sizes of 100 samples, using Adam (Kingma & Ba, 2015) with a learning rate of 0.0001 and gradient clipping of 1.0. All models are trained with $K L _ { m i n } = 0 . 2 0 , R = 0 . 9 9 9 9 9$ . During training, we perform simple data augmentation by multiplying the offset columns $( \\Delta x , \\Delta y )$ by two IID random factors chosen uniformly between 0.90 and 1.10. Unless mentioned otherwise, all experiments are conducted with $w _ { K L } = 1 . 0 0$ . ",
|
| 1589 |
+
"bbox": [
|
| 1590 |
+
173,
|
| 1591 |
+
130,
|
| 1592 |
+
826,
|
| 1593 |
+
256
|
| 1594 |
+
],
|
| 1595 |
+
"page_idx": 12
|
| 1596 |
+
},
|
| 1597 |
+
{
|
| 1598 |
+
"type": "text",
|
| 1599 |
+
"text": "A.4 MODEL LIMITATIONS ",
|
| 1600 |
+
"text_level": 1,
|
| 1601 |
+
"bbox": [
|
| 1602 |
+
176,
|
| 1603 |
+
275,
|
| 1604 |
+
367,
|
| 1605 |
+
290
|
| 1606 |
+
],
|
| 1607 |
+
"page_idx": 12
|
| 1608 |
+
},
|
| 1609 |
+
{
|
| 1610 |
+
"type": "text",
|
| 1611 |
+
"text": "Although sketch-rnn can model a large variety of sketch drawings, there are several limitations in the current approach we wish to highlight. For most single-class datasets, sketch-rnn is capable of modelling sketches up to around 300 data points. The model becomes increasingly difficult to train beyond this length. For our dataset, we applied the Ramer–Douglas–Peucker algorithm (Douglas & Peucker, 1973) to simplify the strokes of the sketch data to less than 200 data points while still keeping most of the important visual information of each sketch. ",
|
| 1612 |
+
"bbox": [
|
| 1613 |
+
174,
|
| 1614 |
+
301,
|
| 1615 |
+
825,
|
| 1616 |
+
386
|
| 1617 |
+
],
|
| 1618 |
+
"page_idx": 12
|
| 1619 |
+
},
|
| 1620 |
+
{
|
| 1621 |
+
"type": "image",
|
| 1622 |
+
"img_path": "images/517eda5c5623d275776c6bf6cbf13101058e1b15a02a02c9d1312e227a44ed9f.jpg",
|
| 1623 |
+
"image_caption": [
|
| 1624 |
+
"Figure 11: Unconditional generated sketches of frogs, cats, and crabs at $\\tau = 0 . 8$ "
|
| 1625 |
+
],
|
| 1626 |
+
"image_footnote": [],
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
222,
|
| 1629 |
+
398,
|
| 1630 |
+
776,
|
| 1631 |
+
522
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 12
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "text",
|
| 1637 |
+
"text": "For more complicated classes of images, such as mermaids or lobsters, the reconstruction loss metrics are not as good compared to simpler classes such as ants, faces or firetrucks. The models trained on these more challenging image classes tend to draw smoother, more circular line segments that do not resemble individual sketches, but rather resemble an averaging of many sketches in the training set. We can see some of this artifact in the frog class, in Figure 11. This smoothness may be analogous to the blurriness effect produced by a Variational Autoencoder (Kingma & Welling, 2013) that is trained on pixel images. Depending on the use case of the model, smooth circular lines can be viewed as aesthetically pleasing and a desirable property. ",
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
173,
|
| 1640 |
+
565,
|
| 1641 |
+
826,
|
| 1642 |
+
678
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 12
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "image",
|
| 1648 |
+
"img_path": "images/5565a659dc5857b2f9eedcd3fd65982f624a52d0b980c1d0a8bc03a922945f15.jpg",
|
| 1649 |
+
"image_caption": [
|
| 1650 |
+
"Figure 12: Unconditional generations from model trained on 75 classes (left), and from model trained on crab, face, pig and rabbit classes (right). "
|
| 1651 |
+
],
|
| 1652 |
+
"image_footnote": [],
|
| 1653 |
+
"bbox": [
|
| 1654 |
+
236,
|
| 1655 |
+
690,
|
| 1656 |
+
761,
|
| 1657 |
+
888
|
| 1658 |
+
],
|
| 1659 |
+
"page_idx": 12
|
| 1660 |
+
},
|
| 1661 |
+
{
|
| 1662 |
+
"type": "text",
|
| 1663 |
+
"text": "While both conditional and unconditional models are capable of training on datasets consisting of several classes, such as (cat, pig), and (crab, face, pig, rabbit), sketch-rnn is ineffective at modelling a large number of classes simultaneously. In Figure 12, we sample sketches using an unconditional model trained on 75 classes, and a model trained on 4 classes. The samples generated from the 75-class model are incoherent, with individual sketches displaying features from multiple classes. The four-class unconditional model usually generates samples of a single class, but occasionally also combines features from multiple classes. In the future, we will explore incorporating class information outside of the latent space to handle the modelling of a large number of classes simultaneously. ",
|
| 1664 |
+
"bbox": [
|
| 1665 |
+
173,
|
| 1666 |
+
103,
|
| 1667 |
+
825,
|
| 1668 |
+
229
|
| 1669 |
+
],
|
| 1670 |
+
"page_idx": 13
|
| 1671 |
+
},
|
| 1672 |
+
{
|
| 1673 |
+
"type": "text",
|
| 1674 |
+
"text": "A.5 MULTI-SKETCH DRAWING INTERPOLATION",
|
| 1675 |
+
"text_level": 1,
|
| 1676 |
+
"bbox": [
|
| 1677 |
+
174,
|
| 1678 |
+
250,
|
| 1679 |
+
521,
|
| 1680 |
+
263
|
| 1681 |
+
],
|
| 1682 |
+
"page_idx": 13
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"type": "image",
|
| 1686 |
+
"img_path": "images/ddb2eba428729354e835510798299809b1eb3550e424f24bfb014306688b1257.jpg",
|
| 1687 |
+
"image_caption": [
|
| 1688 |
+
"Figure 13: Example of conditional generated sketches with single class models. Latent space interpolation from left to right, and then top to bottom. "
|
| 1689 |
+
],
|
| 1690 |
+
"image_footnote": [],
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
174,
|
| 1693 |
+
282,
|
| 1694 |
+
825,
|
| 1695 |
+
388
|
| 1696 |
+
],
|
| 1697 |
+
"page_idx": 13
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"type": "text",
|
| 1701 |
+
"text": "In addition to interpolating between two sketches, like in Figure13, we can also visualize the interpolation between four sketches in latent space to gain further insight from the model. In this section we show more examples conditionally generated with sketch-rnn. We take four generated images, place them on four corners of a grid, and populate the rest of the grid using the interpolation of the latent vectors at the corners. Figure 14 shows two examples of this four-way interpolation, using models trained on both (cat, pig) classes, and face class. All samples generated with $\\tau = 0 . 1$ . ",
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
173,
|
| 1704 |
+
443,
|
| 1705 |
+
826,
|
| 1706 |
+
526
|
| 1707 |
+
],
|
| 1708 |
+
"page_idx": 13
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "image",
|
| 1712 |
+
"img_path": "images/1699457d5a3968730bbd2c9e227caf1f62a328e07b008c4234dd38caa8adb31a.jpg",
|
| 1713 |
+
"image_caption": [
|
| 1714 |
+
"Figure 14: Example input sketches and sketch-rnn generated reproductions (Top). Latent space interpolation between the four reproduced sketches (Bottom). "
|
| 1715 |
+
],
|
| 1716 |
+
"image_footnote": [],
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
171,
|
| 1719 |
+
540,
|
| 1720 |
+
826,
|
| 1721 |
+
888
|
| 1722 |
+
],
|
| 1723 |
+
"page_idx": 13
|
| 1724 |
+
},
|
| 1725 |
+
{
|
| 1726 |
+
"type": "text",
|
| 1727 |
+
"text": "The left most figure of Figure 15 visualizes the interpolation between a full pig, a rabbit’s head, a crab, and a face, using a model trained on these four classes. In certain parts of the space between a crab and a face is a rabbit’s head, and we see that the ears of the rabbit becomes the crab’s claws. Applying the model on the yoga class, it is interesting to see how one yoga position slowly transitions to another via a set of interpolated yoga positions generated by the model. For visual effect, we also interpolate between four distinct colors, and color each sketch using a unique interpolated color. ",
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
173,
|
| 1730 |
+
103,
|
| 1731 |
+
825,
|
| 1732 |
+
188
|
| 1733 |
+
],
|
| 1734 |
+
"page_idx": 14
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"type": "image",
|
| 1738 |
+
"img_path": "images/9b8a2ecca92266c71df8e543b82f3f3692d5a38b2ac52ad2a90b26ea747bfdd0.jpg",
|
| 1739 |
+
"image_caption": [
|
| 1740 |
+
"Figure 15: Interpolation of (pig, rabbit, crab and face), yoga poses, mosquitoes and mermaids. We also interpolate between four distinct colors for visual effect. "
|
| 1741 |
+
],
|
| 1742 |
+
"image_footnote": [],
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
169,
|
| 1745 |
+
198,
|
| 1746 |
+
828,
|
| 1747 |
+
325
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 14
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"type": "text",
|
| 1753 |
+
"text": "We also construct latent space interpolation examples for the mosquito class and the mermaid class, in the last two grids Figure 15. We see that the model can interpolate between concepts such as style of wings, leg counts, and orientation. In Figure 16 below, we show more interpolation examples of other classes from the dataset. ",
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
173,
|
| 1756 |
+
373,
|
| 1757 |
+
826,
|
| 1758 |
+
429
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 14
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"type": "image",
|
| 1764 |
+
"img_path": "images/fbd3ecbf4be308733e73c68488ee1ab0a69f1b82eee7f2559bb06353a6bcd2ee.jpg",
|
| 1765 |
+
"image_caption": [
|
| 1766 |
+
"Figure 16: Latent space interpolation between four generated gardens, owls, cats, and firetrucks. "
|
| 1767 |
+
],
|
| 1768 |
+
"image_footnote": [],
|
| 1769 |
+
"bbox": [
|
| 1770 |
+
169,
|
| 1771 |
+
438,
|
| 1772 |
+
828,
|
| 1773 |
+
565
|
| 1774 |
+
],
|
| 1775 |
+
"page_idx": 14
|
| 1776 |
+
},
|
| 1777 |
+
{
|
| 1778 |
+
"type": "text",
|
| 1779 |
+
"text": "A.6 WHICH LOSS CONTROLS IMAGE COHERENCY? ",
|
| 1780 |
+
"bbox": [
|
| 1781 |
+
174,
|
| 1782 |
+
618,
|
| 1783 |
+
545,
|
| 1784 |
+
633
|
| 1785 |
+
],
|
| 1786 |
+
"page_idx": 14
|
| 1787 |
+
},
|
| 1788 |
+
{
|
| 1789 |
+
"type": "text",
|
| 1790 |
+
"text": "We would like to question the relative importance of the reconstruction loss term $L _ { R }$ , relative to the KL loss term $L _ { K L }$ , when our goal is to produce higher quality image reconstructions. While our reconstruction loss term $L _ { R }$ optimizes for the log-likelihood of the set of strokes that make up a sketch, this metric alone does not give us any guarantee that a model with a lower $L _ { R }$ number will produce higher quality reconstructions compared to a model with a higher $L _ { R }$ number. ",
|
| 1791 |
+
"bbox": [
|
| 1792 |
+
174,
|
| 1793 |
+
645,
|
| 1794 |
+
825,
|
| 1795 |
+
715
|
| 1796 |
+
],
|
| 1797 |
+
"page_idx": 14
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"type": "text",
|
| 1801 |
+
"text": "For example, imagine a simple sketch of an face, $\\circledddot$ , where most of the data points of $S$ are be used to represent the head, and only a minority of points represent facial features such as the eyes and mouth. It is possible to reconstruct the face with incoherent facial features, and yet still score a lower $L _ { R }$ number compared to another reconstruction with a coherent and similar face, if the edges around the incoherent face are generated more precisely. ",
|
| 1802 |
+
"bbox": [
|
| 1803 |
+
174,
|
| 1804 |
+
722,
|
| 1805 |
+
825,
|
| 1806 |
+
791
|
| 1807 |
+
],
|
| 1808 |
+
"page_idx": 14
|
| 1809 |
+
},
|
| 1810 |
+
{
|
| 1811 |
+
"type": "text",
|
| 1812 |
+
"text": "In Figure 17, we compare the reconstructed images generated using models trained with various $w _ { K L }$ settings. In the first three examples from the left, we train our model on a dataset consisting of four image classes (crab, face, pig, rabbit). We deliberately sketch input drawings that contain features of two classes, such as a rabbit with a pig mouth and pig tail, a person with animal ears, and a rabbit with crab claws. We see that the model trained using higher $w _ { K L }$ weights, tend to generate sketches with features of a single class that look more coherent, despite having lower $L _ { K L }$ numbers. For instance, the model with $w _ { K L } = 1 . 0 0$ omit pig features, animal ears, and crab claws from its reconstructions. In contrast, the model with $w _ { K L } = 0 . 2 5$ , with higher $L _ { K L }$ , but lower $L _ { R }$ numbers tries to keep both inconsistent features, while generating sketches that look less coherent. ",
|
| 1813 |
+
"bbox": [
|
| 1814 |
+
173,
|
| 1815 |
+
799,
|
| 1816 |
+
825,
|
| 1817 |
+
924
|
| 1818 |
+
],
|
| 1819 |
+
"page_idx": 14
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"type": "text",
|
| 1823 |
+
"text": "In the last three examples in Figure 17, we repeat the experiment on models trained on single-class images, and see similar results even when we deliberately choose input samples from the test set with noisier lines. ",
|
| 1824 |
+
"bbox": [
|
| 1825 |
+
176,
|
| 1826 |
+
103,
|
| 1827 |
+
821,
|
| 1828 |
+
145
|
| 1829 |
+
],
|
| 1830 |
+
"page_idx": 15
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"type": "text",
|
| 1834 |
+
"text": "If we look at the interpolations produced in the latent space interpolation examples from Section 4.2 in the main text, models with better KL loss terms also generate more meaningful reconstructions from the interpolated space between two latent vectors. This suggests the latent vector for models with lower $L _ { K L }$ control more meaningful parts of the drawings, such as controlling whether the sketch is an animal head only or a full animal with a body, or whether to draw a cat head or a pig head. Altering such latent vectors can allow us to directly manipulate these animal features. Conversely, altering the latent codes of models with higher $L _ { K L }$ results in scattered movement of individual line segments, rather than alterations of meaningful conceptual features of the animal. ",
|
| 1835 |
+
"bbox": [
|
| 1836 |
+
174,
|
| 1837 |
+
152,
|
| 1838 |
+
825,
|
| 1839 |
+
263
|
| 1840 |
+
],
|
| 1841 |
+
"page_idx": 15
|
| 1842 |
+
},
|
| 1843 |
+
{
|
| 1844 |
+
"type": "text",
|
| 1845 |
+
"text": "This result is consistent with incoherent reconstructions seen in Figure 17. With a lower $L _ { K L }$ , the model is likely to generate coherent images given any random $z$ . Even with a non-standard, or noisy, input image, the model will still encode a $z$ that produces coherent images. For models with lower $L _ { K L }$ numbers, the encoded latent vectors contain conceptual features belonging to the input image, while for models with higher $L _ { K L }$ numbers, the latent vectors merely encode information about specific line segments. This observation suggests that when using sketch-rnn on a new dataset, we should first try different $w _ { K L }$ settings to evaluate the tradeoff between $L _ { R }$ and $L _ { K L }$ , and then choose a setting for $w _ { K L }$ (and $K L _ { m i n . }$ ) that best suit our requirements. ",
|
| 1846 |
+
"bbox": [
|
| 1847 |
+
173,
|
| 1848 |
+
270,
|
| 1849 |
+
826,
|
| 1850 |
+
383
|
| 1851 |
+
],
|
| 1852 |
+
"page_idx": 15
|
| 1853 |
+
},
|
| 1854 |
+
{
|
| 1855 |
+
"type": "image",
|
| 1856 |
+
"img_path": "images/024e0ff3fb7fd1a2232a98a7fed9cd4b259669e911b8fbaea37546292b54b650.jpg",
|
| 1857 |
+
"image_caption": [
|
| 1858 |
+
"Figure 17: Reconstructions of sketch drawings using models with various $w _ { K L }$ settings. "
|
| 1859 |
+
],
|
| 1860 |
+
"image_footnote": [],
|
| 1861 |
+
"bbox": [
|
| 1862 |
+
173,
|
| 1863 |
+
392,
|
| 1864 |
+
826,
|
| 1865 |
+
676
|
| 1866 |
+
],
|
| 1867 |
+
"page_idx": 15
|
| 1868 |
+
}
|
| 1869 |
+
]
|
parse/train/Hy6GHpkCW/Hy6GHpkCW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hy6GHpkCW/Hy6GHpkCW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyzMyhCcK7/HyzMyhCcK7_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyzMyhCcK7/HyzMyhCcK7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/N1i6BJzouX4/N1i6BJzouX4.md
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rectifying the Shortcut Learning of Background for Few-Shot Learning
|
| 2 |
+
|
| 3 |
+
Xu Luo1, Longhui Wei2, Liangjian Wen1, Jinrong Yang4, Lingxi Xie3, Zenglin $\mathbf { \bar { X } u } ^ { 6 , 7 * }$ , Qi $\mathbf { T i a n ^ { 5 * } }$
|
| 4 |
+
|
| 5 |
+
1University of Electronic Science and Technology of China
|
| 6 |
+
2University of Science and Technology of China 3Tsinghua University
|
| 7 |
+
4Huazhong University of Science and Technology 5Xidian University
|
| 8 |
+
6Harbin Institute of Technology Shenzhen 7Pengcheng Laboratory
|
| 9 |
+
Frank.Luox@outlook.com,{weilh2568,zenglin}@gmail.com
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
The category gap between training and evaluation has been characterised as one of the main obstacles to the success of Few-Shot Learning (FSL). In this paper, we for the first time empirically identify image background, common in realistic images, as a shortcut knowledge helpful for in-class classification but ungeneralizable beyond training categories in FSL. A novel framework, COSOC, is designed to tackle this problem by extracting foreground objects in images at both training and evaluation without any extra supervision. Extensive experiments carried on inductive FSL tasks demonstrate the effectiveness of our approaches.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Through observing a few samples at a glance, humans can accurately identify brand-new objects. This advantage comes from years of experiences accumulated by the human vision system. Inspired by such learning capabilities, Few-Shot Learning (FSL) is developed to tackle the problem of learning from limited data [24, 53]. At training, FSL models absorb knowledge from a large-scale dataset; later at evaluation, the learned knowledge is leveraged to solve a series of downstream classification tasks, each of which contains very few support (training) images from brand-new categories.
|
| 18 |
+
|
| 19 |
+
The category gap between training and evaluation has been considered as one of the core issues in FSL [10]. Intuitively, the prior knowledge of old categories learned at training may not be applicable to novel ones. [62] consider solving this problem from a causal perspective. Their backdoor adjustment method, however, adjusts the prior knowledge in a black-box manner and cannot tell which specific prior knowledge is harmful and should be suppressed.
|
| 20 |
+
|
| 21 |
+
In this paper, we identify image background as one specific harmful source knowledge for FSL. Empirical studies in [56] suggest that there exists spurious correlations between background and category of images (e.g., birds usually stand on branches, and shells often lie on the beaches; see Fig. 1), which serves as a shortcut knowledge for modern CNN-based vision systems to learn. It is further revealed that background knowledge has positive impact on the performance of in-class classification tasks. As illustrated in the simple example of Fig. 1, images from the same category are more likely to share similar background, making it possible for background knowledge to generalize from training to testing in common classification tasks. For FSL, however, the category gap produces brand-new foreground, background and their combinations at evaluation. The correlations learned at training thus may not be able to generalize and would probably mislead the predictions. We take empirical investigations on the role of image foreground and background in FSL, revealing how image background drastically affects the learning and evaluation of FSL in a negative way.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: An illustrative example that demonstrates why background information is useful for regular classification but harmful for few-shot learning.
|
| 25 |
+
|
| 26 |
+
Since the background is harmful, it would be good if we could force the model to concentrate on foreground objects at both training and evaluation, but this is not easy since we do not have any prior knowledge of the entity and position of the foreground objects in images. When humans are going to recognize foreground objects of images from the same class, they usually look for a shared local pattern that appears in the majority of images, and recognize patches with this pattern as foreground. This inspires us to design a novel framework, COSOC, to extract foreground of images for both training and evaluation of FSL by seeking shared patterns among images. The approach does not depend on any additional fine-grained supervisions such as bounding boxes or pixel-level labelings.
|
| 27 |
+
|
| 28 |
+
The procedure of foreground extraction of images in the training set is implemented before training. The corresponding algorithm, named Clustering-based Object Seeker (COS), first pre-trains a feature extractor on the training set using contrative learning, which has an outstanding performance, shown empirically in a later section, on the task of discriminating between ground-truth foreground objects. The feature extractor then maps random crops of images—candidates of foreground objects—into a well-shaped feature space. This is followed by runing a clustering algorithm on all of the features of the same class, imitating the procedure of seeking shared local patterns inspired by human behavior. Each cropped patch is then assigned a foreground score according to its distance to the nearest cluster centroid, for determining a sampling probability of that patch in the later formal training of FSL models. For evaluation, we develop Shared Object Concentrator (SOC), an algorithm that applies iterative feature matching within the support set, looking for one crop per image at one time that is most likely to be foreground. The sorted averaging features of obtained crops are further leveraged to match crops of query images so that foreground crops have higher matching scores. A weighted sum of matching scores are finally calculated as classification logits of each query sample. Compared to other potential foreground extracting algorithms such as saliency-based methods, our COS and SOC algorithms have additional capability of capturing shared, inter-image information, performing better in complicated, multi-object scenery. Our methods also have flexibility of dynamically assigning beliefs (probabilities) to all candidate foreground objects, relieving the risk of overconfidence.
|
| 29 |
+
|
| 30 |
+
Our contributions can be summarized as follows. i) By conducting empirical studies on the role of image foreground and background in FSL, we reveal that image background serves as a source of shortcut knowledge which harms the evaluation performance. ii) To solve this problem, we propose COSOC, a framework combining COS and SOC, which can draw the model’s attention to image foreground at both training and evaluation. iii) Extensive experiments for non-transductive FSL tasks demonstrate the effectiveness of our method.
|
| 31 |
+
|
| 32 |
+
# 2 Related Works
|
| 33 |
+
|
| 34 |
+
Few-shot Image Classification. Plenty of previous work tackled few-shot learning in meta-learning framework [18, 50], where a model learns experience about how to solve few-shot learning tasks by tackling pseudo few-shot classification tasks constructed from the training set. Existing methods that ultilize meta-learning can be generally divided into three groups: (1) Optimization-based methods learn the experience of how to optimize the model given few training samples. This kind of methods either meta-learn a good model initialization point [12, 45, 39, 70, 20] or the whole optimization process [40, 58, 34, 27] or both [3, 36]. (2) Hallucination-based methods [16, 54, 46, 67, 25, 9, 26, 37] learn to augment similar support samples in few-shot tasks, thus can greatly alleviate the low-shot problem. (3) Metric-based methods [53, 48, 49, 61, 59] learn to map images into a metric feature space and classify query images by computing feature distances to support images. Among them, several recent works [19, 63, 57, 10] intended to seek correspondence between images either by attention or meta-filter, in order to obtain a more reasonable similarity measure. Our SOC algorithm in one-shot setting is in spirit similar to these methods, in that we both apply pair-wise feature alignment between support and query images, implicitly removing backgrounds that are more likely to be dissimilar across images. SOC differs in multi-shot setting, where potentially useful shared inter-image information in support set exists and can be captured by our SOC algorithm.
|
| 35 |
+
|
| 36 |
+
The Influence of Background. A body of prior work studied the impact of image background on learning-based vision systems from different perspectives. [52] showed initial evidence of the existence of background correlations and how it influences the predictions of vision models. [64, 43] analyzed background dependence for object detection. Another relevant work [4] utilized camera traps for investigating how performance drops when adapting classifiers to unseen cameras with novel backgrounds. They explore the effect of class-independent background (i.e., background changes from training to testing while categories remain the same) on classification performance. Although the problem is also concerned with image background, no shortcut learning of background exists under this setting. This is because under each training camera trap, the classifier must distinguish different categories with background fixed, causing the background knowledge being not useful for predictions of training images. Instead, the learning signal during training pushes the classifier towards ignoring each specific background. The difficulties under this setting lie in the domain shift challenge—the classifier is confident to handle previously existing backgrounds, but lost in novel backgrounds. More recently, [56] systematically explore the role of image background in modern deep-learning-based vision systems through well-designed experiments. The results give clear evidence on the existence of background correlations and identify it as a positive shortcut knowledge for models to learn. Our results, on the contrary, identify background correlations as a negative knowledge in the context of few-shot learning.
|
| 37 |
+
|
| 38 |
+
Contrastive Learning. Recent success on contrastive learning of visual representations has greatly promoted the development of unsupervised learning [6, 17, 15, 5]. The promising performance of contrastive learning relies on the instance-level discrimination loss which maximizes agreement between transformed views of the same image and minimizes agreement between transformed views of different images. Recently there have been some attempts [30, 13, 10, 33, 35, 31] at integrating contrastive learning into the framework of FSL. Although achieving good results, these work struggle to have an in-depth understanding of why contrastive learning has positive effects on FSL. Our work takes a step forward, revealing the advantages of contrastive learning over supervised FSL models in identifying core objects of images.
|
| 39 |
+
|
| 40 |
+
# 3 Empirical Investigation
|
| 41 |
+
|
| 42 |
+
Problem Definition. Few-shot learning consists of a training set $\mathcal { D } _ { B }$ and an evaluation set $\mathcal { D } _ { v }$ which share no overlapping classes. $\mathcal { D } _ { B }$ contains a large amount of labeled data and is usually used at first to train a backbone network $f _ { \theta } ( \cdot )$ . After training, a set of $N$ -way $K$ -shot classification tasks $\mathcal { T } = \{ ( \boldsymbol { S } _ { \tau } , \boldsymbol { \mathcal { Q } } _ { \tau } ) \} _ { \tau = 1 } ^ { N _ { T } }$ are constructed, each by first sampling $N$ classes in $D _ { v }$ and then sampling $K$ and $M$ images from each class to constitute $S _ { \tau }$ and $\mathcal { Q } _ { \tau }$ , respectively. In each task $\tau$ , given the learned backbone fθ(·) and a small support set Sτ = {(xτk,n, yτk,n)}K,Nk,n=1 consisting of $K$ images $x _ { k , n } ^ { \tau }$ and corresponding labels $y _ { k , n } ^ { \tau }$ from each of $N$ classes, a few-shot classification algorithm is designed to classify $M N$ images from the query set $\mathcal { Q } _ { \tau } = \{ ( x _ { m n } ^ { \tau } ) \} _ { m , n = 1 } ^ { M , N }$ .
|
| 43 |
+
|
| 44 |
+
Preparation. To investigate the role of background and foreground in FSL, we need ground-truth image foreground for comparison. However, it is time-consuming to label the whole dataset. Thus we select only a subset $\mathcal { D } _ { \mathrm { n e w } } = ( \mathcal { D } _ { B } , \mathcal { D } _ { v } )$ of miniImageNet [53] and crop each image manually according to the largest rectangular bounding box that contains the foreground object. We denote the uncropped version of the subset as ( $\mathcal { D } _ { B }$ -Ori, $\mathcal { D } _ { v }$ -Ori), and the cropped foreground version as $( \mathcal { D } _ { B } \mathrm { - F G } , \mathbf { \bar { \mathcal { D } } } _ { v } \mathbf { - F G }$ ). Two well-known FSL baselines are selected in our empirical studies: Cosine
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: 5-way 5-shot FSL performance on different variants of training and evaluation datasets detailed in Sec. 3. (a) Empirical exploration of image foreground and background in FSL using two models: PN and CC. (b) Comparison between CC and Exemplar trained on the full training set of miniImageNet and evaluated on $\mathcal { D } _ { v }$ -Ori and $\mathcal { D } _ { v }$ -FG.
|
| 48 |
+
|
| 49 |
+
Classifier (CC) [14] and Prototypical Networks (PN) [48]. See Appendix A for details of constructing $\mathcal { D } _ { \mathrm { n e w } }$ and a formal introdcution of CC and PN.
|
| 50 |
+
|
| 51 |
+
# 3.1 The Role of Foreground and Background in Few-Shot Image Classification
|
| 52 |
+
|
| 53 |
+
Fig. 2(a) shows the average of 5-way 5-shot classification accuracy obtained by training CC and PN on $\mathcal { D } _ { B }$ -Ori and $\mathcal { D } _ { B }$ -FG, and evaluating on $\mathcal { D } _ { v }$ -Ori and $\mathcal { D } _ { v }$ -FG, respectively. See Appendix F for additional 5-way 1-shot experiments.
|
| 54 |
+
|
| 55 |
+
Category gap disables generalization of background knowledge. It can be first noticed that, under any condition, the performance is consistently and significantly improved if background is removed at the evaluation stage (switch from $\mathcal { D } _ { v }$ -Ori to $\mathcal { D } _ { v }$ -FG). The result implies that background at the evaluation stage in FSL is harmful. This is the opposite of that reported in [56] which shows background helps improve on the performance of traditional classification task, where no category gap exists between training and evaluation. Thus we can infer that the class/distribution gap in FSL disables generalization of background knowledge and degrades performance.
|
| 56 |
+
|
| 57 |
+
Removing background at training prevents shortcut learning. When only foreground is given at evaluation $\mathcal { D } _ { v }$ -FG), the models trained with only foreground ( $\mathcal { D } _ { B }$ -FG) perform much better than those trained with original images $( \mathcal { D } _ { B } \mathrm { - O r i } )$ . This indicates that models trained with original images may not pay enough attention to the foreground object that really matters for classification. Background information at training serves as a shortcut for models to learn and cannot generalize to brand-new classes. In contrast, models trained with only foreground "learn to compare" different objects—a desirable ability for reliable generalization to downstream few-shot learning tasks with out-of-domain classes.
|
| 58 |
+
|
| 59 |
+
Training with background helps models to handle complex scenes. When evaluating on $\mathcal { D } _ { v }$ -Ori, the models trained with original dataset $\mathcal { D } _ { B }$ -Ori are slightly better than those with foreground dataset $\mathcal { D } _ { B }$ -FG. We attribute this to a sort of domain shift: models trained with $\mathcal { D } _ { B }$ -FG never meet images with complex background and do not know how to handle it. In Appendix D.1 we further verify the assertion by showing evaluation accuracy of each class under the above two training situations. Note that since we apply random crop augmentation at training, domain shift does not exist if the models are instead trained on $\mathcal { D } _ { B }$ -Ori and evaluated on $\mathcal { D } _ { v }$ -FG.
|
| 60 |
+
|
| 61 |
+
Simple fusion sampling combines advantages of both sides. One may wish to cut off shortcut learning of background while maintaining adaptability of model to complex scenes. A simple solution may be fusion sampling: given an image as input, choose its foreground version with probability $p$ , and its original version with probability $1 - p$ . We simply set $p$ equal to 0.5. We denote the dataset using this sampling strategy as $\mathcal { D } _ { B }$ -Fuse. As observed in Fig. 2(a), models trained this way indeed combine advantages of both sides: achieving relatively good performance on both $\mathcal { D } _ { v }$ -Ori and $\mathcal { D } _ { v }$ -FG. In Appendix C, we compare the training curves of PN trained on three versions of datasets to further investigate the effectiveness of fusion sampling.
|
| 62 |
+
|
| 63 |
+
The above analysis provides new inspiration for how to improve FSL further: (1) Fusion sampling of foreground and original images could be applied to training. (2) Since background information disturbs evaluation, it is needed to focus on foreground objects or assign image patches, that are more likely to be foreground, a larger weight for classification. Therefore, a foreground object identification mechanism is required at both training (for fusion sampling) and evaluation.
|
| 64 |
+
|
| 65 |
+
# 3.2 Contrastive Learning is Good at Identifying Objects
|
| 66 |
+
|
| 67 |
+
In this subsection, we reveal the potential of contrastive learning in identifying foreground objects, which we will use later for foreground extraction. Given one transformed view of one image, contrastive learning tends to distinguish another transformed view of that same image from thousands of views of other images. A more detailed introduction of contrastive learning is given in Appendix B. The two augmented views of the same image always cover the same object, but probably with different parts, sizes and color. To discriminate two augmented patches from thousands of other image patches, the model has to learn to identify the key discriminative information of the object under varying environment. In this manner, semantic relations among crops of images are explicitly modeled, thereby clustering semantically similar contents automatically. The features of different images are pushed away, while those of similar objects in different images are pulled closer. Thus it is reasonable to speculate that contrastive learning may enable models with better identification of centered foreground object.
|
| 68 |
+
|
| 69 |
+
To verify this, we train CC and contrastive learning models on the whole training set of miniImageNet $\mathcal { D } _ { B }$ -Full) and compare their accuracy on $\mathcal { D } _ { v }$ -Ori and $\mathcal { D } _ { v }$ -FG. The contrastive learning method we use is Exemplar [68], a modified version of MoCo [17]. Fig 2(b) shows that, while the evaluation accuracy of Exemplar on $\mathcal { D } _ { v }$ -Ori is slightly worse than that of CC, Exemplar performs much better when only foreground of images are given at evaluation, affirming that contrastive learning indeed has a better discriminative ability of single centered object. In Appendix D.2, we provide a more in-depth analysis of why contrastive learning has such properties and infer that the shape bias and viewpoint invariance may play an important role.
|
| 70 |
+
|
| 71 |
+
# 4 Rectifying the Shortcut Learning of Background
|
| 72 |
+
|
| 73 |
+
Given the analysis in the previous section, we wish to focus more on image foreground both at training and evaluation. Inspired by how humans recognise foreground objects, we propose COSOC, a framework ultilizing contrastive learning to draw the model’s attention to the foreground objects of images.
|
| 74 |
+
|
| 75 |
+
# 4.1 Clustering-based Object Seeker (COS) with Fusion Sampling for Training
|
| 76 |
+
|
| 77 |
+
Since contrastive learning is good at discriminating foreground objects, we utilize it to extract foreground objects before training. The first step is to pre-train a backbone $f _ { \theta } ( \cdot )$ on the training set $\mathcal { D } _ { B }$ using Exemplar [68]. Then a clustering-based algorithm is used to extract "objects" identified by the pre-trained model. The basic idea is that features of foreground objects in images within one class extracted by contrastive learalgorithm; see a simple example in ng models are similar, therig. 3. All images within the $i$ by can be i-th class in $\mathcal { D } _ { B }$ ified via a form a set $\{ \mathbf { x } _ { n } ^ { i } \} _ { n = 1 } ^ { N }$ $i$
|
| 78 |
+
objects in one class is detailed as follows:
|
| 79 |
+
|
| 80 |
+
1) For each image ${ \bf x } _ { n }$ , we randomly crop it $L$ times to obtain $L$ image patches $\{ \mathbf { p } _ { n , m } \} _ { m = 1 } ^ { L }$ . Each image patch $\mathbf { p } _ { n , m }$ is then passed through the pre-trained model $f _ { \theta }$ and we get a normalized feature vector vn,m $\begin{array} { r } { \mathbf { v } _ { n , m } = \frac { f _ { \theta } ( \mathbf { p } _ { n , m } ) } { | | f _ { \theta } ( \mathbf { p } _ { n , m } ) | | _ { 2 } } \in \mathbb { R } ^ { d } } \end{array}$ .
|
| 81 |
+
|
| 82 |
+
2) We run a clustering algorithm $\mathcal { A }$ on all features vectors of the class and obtain $H$ clusters $\{ \mathbf { z } _ { j } \} _ { j = 1 } ^ { H } = \mathcal { A } ( \{ \mathbf { v } _ { n , m } \} _ { n , m = 1 } ^ { \bar { N } , L ^ { - } } )$ , where $\mathbf { z } _ { j }$ is the feature centroid of the $j$ -th cluster.
|
| 83 |
+
|
| 84 |
+
3) We say an image ${ \bf x } _ { n } \in { \bf z } _ { j }$ , if there exists $k \in [ L ]$ s.t. ${ \bf v } _ { n , k } \in { \bf z } _ { j }$ , where $[ L ] = \{ 1 , 2 , \dots , L \}$ . Let $\begin{array} { r } { l ( \mathbf { z } _ { j } ) = \frac { \# \{ \mathbf { x } | \mathbf { x } \in \mathbf { z } _ { j } \} } { N } } \end{array}$ be the proportion of images in the class that belong to $\mathbf { z } _ { j }$ . If $l ( \mathbf { z } _ { j } )$ is small, then the cluster $\mathbf { z } _ { j }$ is not representative for the whole class and is possibly background. Thus we remove all the cluremaining ers cl $\mathbf { z }$ witters $l ( \mathbf { z } ) < \gamma$ , where represe $\gamma$ is a threshold that controls the generality of clusters. The “objects” of the class that we are looking for. $h$ $\{ \mathbf { z } _ { j } \} _ { j = \alpha _ { 1 } } ^ { \alpha _ { h } }$
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
Figure 3: Simplified schematic illustration of COS algorithm. We show how we obtain foreground objects from three exemplified images. The value under each crop denotes its foreground score.
|
| 88 |
+
|
| 89 |
+
4) The foreground score of image patch $p _ { n , m }$ is defined as $\begin{array} { r } { s _ { n , m } = 1 - \operatorname* { m i n } _ { j \in [ h ] } | | \mathbf { v } _ { n , m } - \mathbf { z } _ { \alpha _ { j } } | | _ { 2 } / \eta } \end{array}$ , where $\eta \ : = \ : \operatorname* { m a x } _ { n , m } \operatorname* { m i n } _ { j \in [ h _ { c } ] } | | \mathbf { v } _ { n , m } - \mathbf { z } _ { \alpha _ { j } } | | _ { 2 }$ is used to normalize the score into $[ 0 , 1 ]$ . Then top- $\mathbf { \nabla } \cdot \mathbf { k }$ scores of each image xn are obtained as {sn,m}βkm=β1 $\{ s _ { n , m } \} _ { m = \beta _ { 1 } } ^ { \beta _ { k } } = \operatorname { T o p k } ( s _ { n , m } )$ . The corresponding patches {pn,m} km=β1 are seen as possible crops of the foreground object in image ${ \bf x } _ { n }$ , and the foreground scores {sn,m}βkm=β as the confidence. We then use it as prior knowledge to rectify the shortcut learning of background for FSL models.
|
| 90 |
+
|
| 91 |
+
The training strategy resembles fusion sampling introduced before. For an image ${ \bf x } _ { n }$ , the probability that we choose the original version is $1 - \operatorname* { m a x } _ { i \in [ k ] } s _ { n , \beta _ { i } }$ , and the probability of choosing $\mathbf { p } _ { n , \beta _ { j } }$ from top- $\mathbf { \nabla } \cdot \mathbf { k }$ patches is $\big ( s _ { n , \beta _ { j } } / \sum _ { i \in [ k ] } s _ { n , \beta _ { i } } \big ) \cdot \operatorname* { m a x } _ { i \in [ k ] } s _ { n , \beta _ { i } }$ . Then we adjust the chosen image patch and make sure that the least area proportion to the original image keeps as a constant. We use this strategy to train a backbone $f _ { \theta } ( \cdot )$ using a FSL algorithm.
|
| 92 |
+
|
| 93 |
+
# 4.2 Few-shot Evaluation with Shared Object Concentrator (SOC)
|
| 94 |
+
|
| 95 |
+
As discussed before, if the foreground crop of the image is used at evaluation, the performance of FSL model will be boosted by a large margin, serving as an upper bound of the model performance. To approach this upper bound, we propose SOC algorithm to capture foreground objects by seeking shared contents among support images of the same class and query images.
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
Figure 4: The overall pipeline of step 1 in SOC. Points in one color represent features of crops from one image. The red points are $\omega _ { 1 } , \omega _ { 2 }$ and $\omega _ { 3 }$ .
|
| 99 |
+
|
| 100 |
+
Step 1: Shared Content Searching within Each Class. For each image $\mathbf { x } _ { k }$ within one class $c$ from support set $S _ { \tau }$ , we randomly crop it $V$ times and obtain corresponding candidates $\{ \mathbf { p } _ { k , n } \} _ { n = 1 , . . , V }$ . Each patch $\mathbf { p } _ { k , n }$ is individually sent to the learned backbone $f _ { \theta }$ to obtain a normalized feature vector ${ \mathbf v } _ { k , n }$ . Thus we have totally $K \times V$ feature vectors within a class $c$ Our goal is to obtain a feature vector $\omega _ { 1 }$ that
|
| 101 |
+
|
| 102 |
+
contains maximal shared information of all images in class $c$ . Ideally, $\omega _ { 1 }$ represents the centroid o the most similar $K$ image patches, each from one image, which can be formulated as
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\begin{array} { r l } & { \displaystyle \boldsymbol { \omega } _ { 1 } = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \mathbf { v } _ { k , \lambda _ { o p t } ( k ) } , } \\ & { \lambda _ { o p t } = \arg \operatorname* { m a x } _ { 1 \leq i < j \leq K } \cos ( \mathbf { v } _ { i , \lambda ( i ) } , \mathbf { v } _ { j , \lambda ( j ) } ) , } \\ & { \quad \quad \lambda { \in } [ K ] ^ { [ V ] } \mathbf { 1 } _ { 1 \leq i < j \leq K } } \end{array}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
where $\cos ( \cdot , \cdot )$ denotes cosine similarity and $[ K ] ^ { [ V ] }$ denotes the set of functions that take $[ K ]$ as domain and $[ V ]$ as range. While $\lambda _ { o p t }$ can be obtained by enumerating all possible combinations of image patches, the computation complexity of this brute-force method is $\mathcal { O } ( V ^ { K } )$ , which is computation prohibitive when $V$ or $K$ is large. Thus when the computation is not affordable, we turn to use a simplified method that leverages iterative optimization. Instead of seeking for the closest image patches, we directly optimize $\omega _ { 1 }$ so that the sum of minimum distance to patches of each image is minimized, i.e.,
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\omega _ { 1 } = \underset { \omega \in \mathcal { R } ^ { d } } { \arg \operatorname* { m a x } } \sum _ { k = 1 } ^ { K } \underset { n } { \operatorname* { m a x } } [ \cos ( \omega , \mathbf { v } _ { k , n } ) ] ,
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
which can be achieved by iterative optimization algorithms. We apply SGD in our experiments. After optimization, we remove the patch of each image that is most similar to $\omega _ { 1 }$ , and obtain $K \times ( V - 1 )$ feature vectors. Then we repeatedly implement the above optimization process until no features are left, as shown in Fig. 4. We eventually obtain $V$ sorted feature vectors $\{ \omega _ { n } \} _ { n = 1 } ^ { V }$ , which we use to represent the class $c$ . As for the case where shot $K = 1$ , there is no shared inter-image information inside class, so similar to the handling in PN and DeepEMD [63] , we just skip step 1 and use the original $V$ feature vectors.
|
| 115 |
+
|
| 116 |
+
Step 2: Feature Matching for Concentrating on Foreground Object of Query Images. Once the foreground class representations are identified, the next step is to use them to implicitly concentrate on foreground of query images by feature matching. For each image $\mathbf { x }$ in the query set $\mathcal { Q } _ { \tau }$ , we also randomly crop it for $V$ times and obtain $V$ candidate features $\{ \mu _ { n } \} _ { n = 1 } ^ { V }$ . For each class $c$ , we have $V$ sorted representative feature vectors $\{ \omega _ { n } \} _ { n = 1 } ^ { V }$ obtained in step 1. We then match the most similar patches between query features and class features, i.e.,
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
s _ { 1 } = \operatorname* { m a x } _ { 1 \leq i , j \leq V } [ \alpha ^ { j - 1 } \mathrm { c o s } ( \pmb { \mu } _ { i } , \pmb { \omega } _ { j } ) ] ,
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
where $\alpha \leq 1$ is an importance factor. Thus the weight $\alpha ^ { j - 1 }$ decreases exponentially in index $n - 1$ , indicating a decreased belief of each vector representing foreground. Similarly, the two matched class features are removed and the above process repeats until no features left. Finally, the score of $c$ is obtained as a weighted sum of all similarities, i.e., $\begin{array} { r } { S _ { c } = \sum _ { n = 1 } ^ { V } \beta ^ { n - 1 } s _ { n } } \end{array}$ , where $\beta \leq 1$ $\mathbf { x }$ w.r.t. is another importance factor controlling the belief of each crop being foreground objects. In this way, features matched earlier—thus more likely to be foreground—will have higher contributions to the score. The predicted class of $\mathbf { x }$ is the one with the highest score.
|
| 123 |
+
|
| 124 |
+
# 5 Experiments
|
| 125 |
+
|
| 126 |
+
# 5.1 Experiment Setup
|
| 127 |
+
|
| 128 |
+
Dataset. We adopt two benchmark datasets which are the most representative in few-shot learning. The first is miniImageNet [53], a small subset of ILSVRC-12 [44] that contains 600 images within each of the 100 categories. The categories are split into 64, 16, 20 classes for training, validation and evaluation, respectively. The second dataset, tieredImageNet [41], is a much larger subset of ILSVRC12 and is more challenging. It is constructed by choosing 34 super-classes with 608 categories. The super-classes are split into 20, 6, 8 super-classes which ensures separation between training and evaluation categories. The final dataset contains 351, 97, 160 classes for training, validation and evaluation, respectively. On both datasets, the input image size is $8 4 \times 8 4$ for fair comparison.
|
| 129 |
+
|
| 130 |
+
Evaluation Protocols. We follow the 5-way 5-shot (1-shot) FSL evaluation setting. Specifically, 2000 tasks, each contains 15 testing images and 5 (1) training images per class, are randomly sampled from the evaluation set $\mathcal { D } _ { v }$ and the average classification accuracy is computed. This is repeated 5 times and the mean of the average accuracy with $9 5 \%$ confidence intervals is reported.
|
| 131 |
+
|
| 132 |
+
Implementation Details. The backbone we use throughout the article is ResNet-12, which is widely used in few-shot learning. We use Pytorch [38] to implement all our experiments on two NVIDIA 1080Ti GPUs. We train the model using SGD with cosine learning rate schedule without restart to reduce the number of hyperparameters (Which epochs to decay the learning rate). The initial learning rate for training Exemplar is 0.1, and for CC is 0.005. The batch size for Exemplar, CC are 256 and 128, respectively. For miniImageNet, we train Exemplar for 150k iterations, and train CC for $^ \mathrm { 6 k }$ iterations. For tieredImageNet, we train Exemplar for approximately $9 0 0 \mathrm { k }$ iterations, and train CC for $1 2 0 \mathrm { k }$ iterations. We choose $\mathbf { k }$ -means [32] as the clustering algorithm for COS. The threshold $\gamma$ is set to 0.5, and top 3 out of 30 features are chosen per image at the training stage. At the evaluation stage, we crop each image 7 times. The importance factors $\alpha$ and $\beta$ are both set to 0.8.
|
| 133 |
+
|
| 134 |
+
Table 1: Ablative study on miniImageNet. All models are trained on the full training set of miniImageNet. Since the aim of SOC algorithm is to find foreground objects, it is unnecessary to evaluate SOC on the foreground dataset $\mathcal { D } _ { v }$ -FG. FT means finetuning from Exemplar used in COS.
|
| 135 |
+
|
| 136 |
+
<table><tr><td rowspan="2">CC</td><td rowspan="2">FT</td><td rowspan="2">COS</td><td rowspan="2">SOC</td><td colspan="2">Du-Ori</td><td colspan="2">Du-FG</td></tr><tr><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>√</td><td></td><td></td><td></td><td>62.67 ± 0.32</td><td>80.22 ± 0.24</td><td>66.69 ± 0.32</td><td>82.86 ± 0.19</td></tr><tr><td>√</td><td></td><td>√</td><td></td><td>64.76 ± 0.13</td><td>81.18 ± 0.21</td><td>71.13 ± 0.36</td><td>86.21 ± 0.15</td></tr><tr><td>卜</td><td>√</td><td>√</td><td></td><td>65.05 ± 0.06</td><td>81.16 ± 0.17</td><td>71.36 ± 0.30</td><td>86.20 ± 0.14</td></tr><tr><td>厂</td><td></td><td></td><td>√</td><td>64.41 ± 0.22</td><td>81.54 ± 0.28</td><td></td><td>=</td></tr><tr><td></td><td></td><td>√</td><td>√</td><td>69.29 ± 0.12</td><td>84.94 ± 0.28</td><td>-</td><td>-</td></tr></table>
|
| 137 |
+
|
| 138 |
+
Table 2: Comparisons with baselines of foreground extractors using saliency detection algorithms on miniImageNet. For fair comparison, all models in the right column at evaluation use multi-cropping. GT means evaluating with ground truth foreground.
|
| 139 |
+
|
| 140 |
+
<table><tr><td colspan="3">Used for training</td><td colspan="3">Used forevaluation</td></tr><tr><td>Method</td><td>1-shot</td><td>5-shot</td><td>Method</td><td>1-shot</td><td>5-shot</td></tr><tr><td>CC</td><td>62.67 ± 0.32</td><td>80.22 ± 0.24</td><td>COS</td><td>67.23 ± 0.35</td><td>82.79 ± 0.31</td></tr><tr><td>CC+RBD</td><td>63.24 ± 0.41</td><td>80.45 ± 0.37</td><td>COS+RBD</td><td>67.03 ± 0.52</td><td>82.57 ± 0.27</td></tr><tr><td>CC+MBD</td><td>61.50 ± 0.31</td><td>79.12 ± 0.32</td><td>COS+MBD</td><td>62.98 ± 0.45</td><td>79.56 ± 0.38</td></tr><tr><td>CC+FT</td><td>62.71 ± 0.11</td><td>80.06 ± 0.08</td><td>COS+FT</td><td>64.74 ± 0.28</td><td>80.74 ± 0.13</td></tr><tr><td>CC+COS</td><td>64.76 ± 0.13</td><td>81.18 ± 0.21</td><td>COSOC</td><td>69.28 ± 0.49</td><td>85.16 ± 0.42</td></tr><tr><td>1</td><td>1</td><td>=</td><td>COS+GT</td><td>72.71 ± 0.57</td><td>87.43 ± 0.36</td></tr></table>
|
| 141 |
+
|
| 142 |
+
# 5.2 Model Analysis
|
| 143 |
+
|
| 144 |
+
In this subsection, we show the effectiveness of each component of our method. Tab. 1 shows the ablation study conducted on miniImageNet.
|
| 145 |
+
|
| 146 |
+
On the effect of finetuning. Since a feature extractor is pre-trained using contrastive learning in COS, it may help accelerate convergence if we directly finetune from the pre-trained model instead of training from scratch. As shown in line 2-3 in Tab. 1, fintuning gives no improvement on the performance over training from scratch. Thus we adopt finetuning mainly for speeding up convergence $5 \times$ faster).
|
| 147 |
+
|
| 148 |
+
Effectiveness of COS Algorithm. As observed in Tab. 1, When COS is applied on CC, the performance is improved on both versions of datasets. In Fig. 5, we show the curves of training and validation error of CC during training with and without COS. Both models are trained from scratch and validated on the full miniImageNet. We observe that CC sinks into overfitting: the training accuracy drops to zero, and validation accuracy stops improving before
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 5: Comparison of training and validation curves between CC with and without COS.
|
| 152 |
+
|
| 153 |
+
the end of the training. Meanwhile, the COS algorithm helps slow down convergence and prevent training accuracy from reaching zero. This makes validation accuracy comparable at first but higher at the end. Our COS algorithm weakens the “background shortcut” for learning, draws model’s attention on foreground objects, and improves upon generalization.
|
| 154 |
+
|
| 155 |
+
Effectiveness of SOC Algorithm. The result in Tab. 1 shows that the SOC algorithm is the key to maximally exploit the potential of good object-discrimination ability. The performance even approaches the upper bound performance obtained by evaluating the model on the ground-truth foreground $\mathcal { D } _ { v }$ -FG. One potential unfairness in our SOC algorithm may lie in the use of multicropping, which could possibly lead to performance improvement for other approaches as well. We ablate this concern in Appendix G, as well as in the comparisons to other methods in the later subsections.
|
| 156 |
+
|
| 157 |
+
Table 3: Comparisons with state-of-the-art models on miniImageNet and tieredImageNet. The average inductive 5-way few-shot classification accuracies with 95 confidence interval are reported. \* indicates methods evaluated using multi-cropping.
|
| 158 |
+
|
| 159 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">backbone</td><td colspan="2">miniImageNet</td><td colspan="2">tieredImageNet</td></tr><tr><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>MetaOptNet [22]</td><td>ResNet-12</td><td>62.64 ±0.82</td><td>78.63 ±0.46</td><td>65.99 ± 0.72</td><td>81.56± 0.53</td></tr><tr><td>DC[28]</td><td>ResNet-12</td><td>62.53 ± 0.19</td><td>79.77 ± 0.19</td><td>=</td><td>1</td></tr><tr><td>CTM[25]</td><td>ResNet-18</td><td>64.12 ± 0.82</td><td>80.51 ± 0.13</td><td>68.41 ± 0.39</td><td>84.28 ± 1.73</td></tr><tr><td>CAM[19]</td><td>ResNet-12</td><td>63.85 ± 0.48</td><td>79.44 ± 0.34</td><td>69.89 ± 0.51</td><td>84.23 ± 0.37</td></tr><tr><td>AFHN[26]</td><td>ResNet-18</td><td>62.38 ± 0.72</td><td>78.16 ± 0.56</td><td>=</td><td>1</td></tr><tr><td>DSN [47]</td><td>ResNet-12</td><td>62.64 ± 0.66</td><td>78.83 ± 0.45</td><td>66.22 ± 0.75</td><td>82.79 ± 0.48</td></tr><tr><td>AM3+TRAML[23]</td><td>ResNet-12</td><td>67.10 ± 0.52</td><td>79.54 ± 0.60</td><td></td><td>=</td></tr><tr><td>Net-Cosine [29]</td><td>ResNet-12</td><td>63.85 ± 0.81</td><td>81.57 ± 0.56</td><td></td><td>=</td></tr><tr><td>CA [2]</td><td>WRN-28-10</td><td>65.92 ± 0.60</td><td>82.85 ± 0.55</td><td>74.40 ± 0.68</td><td>86.61 ± 0.59</td></tr><tr><td>MABAS [21]</td><td>ResNet-12</td><td>65.08 ± 0.86</td><td>82.70 ± 0.54</td><td></td><td></td></tr><tr><td>ConsNet [59]</td><td>ResNet-12</td><td>64.89 ±0.23</td><td>79.95 ± 0.17</td><td></td><td>=</td></tr><tr><td>IEPT[66]</td><td>ResNet-12</td><td>67.05 ± 0.44</td><td>82.90 ±0.30</td><td>72.24 ± 0.50</td><td>86.73 ± 0.34</td></tr><tr><td>MELR[11]</td><td>ResNet-12</td><td>67.40 ± 0.43</td><td>83.40 ±0.28</td><td>72.14 ± 0.51</td><td>87.01 ±0.35</td></tr><tr><td>IER-Distill [42]</td><td>ResNet-12</td><td>67.28 ± 0.80</td><td>84.78 ± 0.52</td><td>72.21 ± 0.90</td><td>87.08 ± 0.58</td></tr><tr><td>LDAMF [57]</td><td>ResNet-12</td><td>67.76 ± 0.46</td><td>82.71 ± 0.31</td><td>71.89 ± 0.52</td><td>85.96 ± 0.35</td></tr><tr><td>FRN [55]</td><td>ResNet-12</td><td>66.45 ± 0.19</td><td>82.83 ± 0.13</td><td>72.06 ± 0.22</td><td>86.89 ± 0.14</td></tr><tr><td>Baseline*[7]</td><td>ResNet-12</td><td>63.83 ± 0.67</td><td>81.38 ± 0.41</td><td></td><td></td></tr><tr><td>DeepEMD* [63]</td><td>ResNet-12</td><td>67.63 ± 0.46</td><td>83.47 ± 0.61</td><td>74.29 ± 0.32</td><td>86.98 ± 0.60</td></tr><tr><td>RFS-Distill* [51]</td><td>ResNet-12</td><td>65.02 ± 0.44</td><td>82.04 ± 0.38</td><td>71.52 ± 0.69</td><td>86.03 ± 0.49</td></tr><tr><td>FEAT*[60]</td><td>ResNet-12</td><td>68.03 ±0.38</td><td>82.99 ± 0.31</td><td></td><td>=</td></tr><tr><td>Meta-baseline* [8]</td><td>ResNet-12</td><td>65.31 ± 0.51</td><td>81.26 ± 0.23</td><td>68.62 ± 0.27</td><td>83.74 ±0.18</td></tr><tr><td>COSOC* (ours)</td><td>ResNet-12</td><td>69.28 ± 0.49</td><td>85.16 ± 0.42</td><td>73.57 ± 0.43</td><td>87.57 ± 0.10</td></tr></table>
|
| 160 |
+
|
| 161 |
+
Note that if we apply only the SOC algorithm on CC, the performance degrades. This indicates that COS and SOC are both necessary: COS provides the discrimination ability of foreground objects and SOC leverages it to maximally boost the performance.
|
| 162 |
+
|
| 163 |
+
# 5.3 Comparison to Saliency-based Foreground Extractors
|
| 164 |
+
|
| 165 |
+
There could be other possible ways of extracting foreground objects. A simple yet possibly strong baseline could be running saliency detection to extract the most salient region in an image, followed by cropping to obtain patches without background. We consider comparing with three classical unsupervised saliency methods—RBD [69], FT [1] and MBD [65]. The cropping threshold is specially tuned. For training, fusion sampling with probability 0.5 is used for unsupervised saliency methods. For evaluation, We replace the original images with crops obtained by unsupervised saliency methods directly for classification. Tab. 2 displays the comparisons of performance using different foreground extraction methods applied at training or evaluation. For fair comparison, all methods are trained from scratch, and all compared baselines are evaluated with multi-cropping (i.e. using the average of features obtained from multiple crops for classification)and tested on the same backbone (COS trained).
|
| 166 |
+
|
| 167 |
+
The results show that: (1) Our method performs consistently much better than the listed unsupervised saliency methods. (2) The performance of different unsupervised saliency methods varies. While RBD gives a small improvement, MBD and FT have negative effect on the performance. The performance severely depends on the effectiveness of unsupervised saliency methods, and is very sensitive to the cropping threshold. Intuitively speaking, saliency detection methods focus on noticeable objects in the image, and might fail when there is another irrelevant salient object in the image (e.g., a man is walking a dog. Dog is the label, but the man is of high saliency). On the contrary, our method focuses on shared objects across images in the same class, thereby avoiding this problem. In addition, our COS algorithm has the ability to dynamically assign foreground scores to different patches, which reduces the risk of overconfidence. One of our main contributions is paving a new way towards improving FSL by rectifying shortcut learning of background, which can be implemented using any effective methods. Given the upper bound with ground truth foreground, we believe there is room to improve and there can be other more effective approaches in the future.
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Figure 6: Examples of objects obtained with COS from the training set of miniImageNet. The first row shows the original images;the second row shows the picked patch with the highest foreground score.
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 7: Visualization examples of the SOC algorithm. The first row displays 5 images that belong to dalmatian and guitar classes respectively from evaluation set of miniImageNet. The second row shows image patches that are picked up from the first round of SOC algorithm. Our method succesfully puts focus on the shared contents/foreground.
|
| 174 |
+
|
| 175 |
+
# 5.4 Comparison to State-of-the-Arts
|
| 176 |
+
|
| 177 |
+
Tab. 3 presents 5-way 1-shot and 5-shot classification results on miniImageNet and tieredImageNet. We compare with state-of-the-art few-shot learning methods. For fair comparison, we reimplement some methods, and evaluate them with multi-cropping. See Appendix G for a detailed study on the influence of multi-cropping. Our method achieves state-of-the-art performance under all settings except for 1-shot task on tieredImageNet, on which the performance of our method is slightly worse than CA, which uses WRN-28-10, a deeper backbone, as the feature extractor.
|
| 178 |
+
|
| 179 |
+
# 5.5 Visualization
|
| 180 |
+
|
| 181 |
+
Fig. 6 and 7 display visualization examples of the COS and SOC algorithms. See more examples in Appendix H. Thanks to the well-designed mechanism of capturing shared inter-image information, the COS and SOC algorithms are capable of locating foreground patches embodied in complicated, multi-object scenery.
|
| 182 |
+
|
| 183 |
+
# 6 Conclusion
|
| 184 |
+
|
| 185 |
+
Few-shot image classification benefits from increasingly more complex network and algorithm design, but little attention has been focused on image itself. In this paper, we reveal that image background serves as a source of harmful knowledge that few-shot learning models easily absorb in. This problem is tackled by our COSOC framework that can draw the model’s attention to image foreground at both training and evaluation. Our method is only one possible solution, and future work may include exploring the potential of unsupervised segmentation or detection algorithms which may be a more reliable alternative of random cropping, or looking for a completely different but better algorithm customized for foreground extraction.
|
| 186 |
+
|
| 187 |
+
# Acknowledgments and Disclosure of Funding
|
| 188 |
+
|
| 189 |
+
Special thanks to Qi Yong, who gives indispensable support on the spirit of this paper. We also thank Junran Peng for his help and fruitful discussions. This paper was partially supported by the National Key Research and Development Program of China (No. 2018AAA0100204), and a key program of fundamental research from Shenzhen Science and Technology Innovation Commission (No. JCYJ20200109113403826).
|
| 190 |
+
|
| 191 |
+
# References
|
| 192 |
+
|
| 193 |
+
salient region detection. In CVPR, 2009.
|
| 194 |
+
[2] Arman Afrasiyabi, Jean-François Lalonde, and Christian Gagné. Associative alignment for few-shot image classification. In ECCV, 2020.
|
| 195 |
+
[3] Sungyong Baik, Myungsub Choi, Janghoon Choi, Heewon Kim, and Kyoung Mu Lee. Meta-learning with adaptive hyperparameters. In NIPS, 2020.
|
| 196 |
+
[4] Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In ECCV, 2018.
|
| 197 |
+
[5] Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. In NIPS, 2020.
|
| 198 |
+
[6] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020. [7] Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. In ICLR, 2019.
|
| 199 |
+
[8] Yinbo Chen, Zhuang Liu, Huijuan Xu, Trevor Darrell, and Xiaolong Wang. Meta-baseline: exploring simple meta-learning for few-shot learning. In ICCV, 2021.
|
| 200 |
+
[9] Zitian Chen, Yanwei Fu, Yu-Xiong Wang, Lin Ma, Wei Liu, and Martial Hebert. Image deformation meta-networks for one-shot learning. In CVPR, 2019.
|
| 201 |
+
[10] Carl Doersch, Ankush Gupta, and Andrew Zisserman. Crosstransformers: spatially-aware few-shot transfer. In NIPS, 2020.
|
| 202 |
+
[11] Nanyi Fei, Zhiwu Lu, Tao Xiang, and Songfang Huang. MELR: meta-learning via modeling episode-level relationships for few-shot learning. In ICLR, 2021.
|
| 203 |
+
[12] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017.
|
| 204 |
+
[13] Yizhao Gao, Nanyi Fei, Guangzhen Liu, Zhiwu Lu, and Tao Xiang. Contrastive prototype learning with augmented embeddings for few-shot learning. In UAI, 2021.
|
| 205 |
+
[14] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, 2018.
|
| 206 |
+
[15] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Ávila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. Bootstrap your own latent - A new approach to selfsupervised learning. In NIPS, 2020.
|
| 207 |
+
[16] Bharath Hariharan and Ross B. Girshick. Low-shot visual recognition by shrinking and hallucinating features. In ICCV, 2017.
|
| 208 |
+
[17] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross B. Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020.
|
| 209 |
+
[18] Timothy Hospedales, Antreas Antoniou, Paul Micaelli, and Amos Storkey. Meta-learning in neural networks: A survey. In TPAMI, 2021.
|
| 210 |
+
[19] Ruibing Hou, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xilin Chen. Cross attention network for few-shot classification. In NIPS, 2019.
|
| 211 |
+
[20] Muhammad Abdullah Jamal and Guo-Jun Qi. Task agnostic meta-learning for few-shot learning. In CVPR, 2019.
|
| 212 |
+
[21] Jaekyeom Kim, Hyoungseok Kim, and Gunhee Kim. Model-agnostic boundary-adversarial sampling for test-time generalization in few-shot learning. In ECCV, 2020.
|
| 213 |
+
[22] Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. Meta-learning with differentiable convex optimization. In CVPR, 2019.
|
| 214 |
+
[23] Aoxue Li, Weiran Huang, Xu Lan, Jiashi Feng, Zhenguo Li, and Liwei Wang. Boosting few-shot learning with adaptive margin loss. In CVPR, 2020.
|
| 215 |
+
[24] Fei-Fei Li, Robert Fergus, and Pietro Perona. One-shot learning of object categories. In TPAMI, 2006.
|
| 216 |
+
[25] Hongyang Li, David Eigen, Samuel Dodge, Matthew Zeiler, and Xiaogang Wang. Finding task-relevant features for few-shot learning by category traversal. In CVPR, 2019.
|
| 217 |
+
[26] Kai Li, Yulun Zhang, Kunpeng Li, and Yun Fu. Adversarial feature hallucination networks for few-shot learning. In CVPR, 2020.
|
| 218 |
+
[27] Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Meta-sgd: Learning to learn quickly for few-shot learning. arXiv preprint arXiv:1707.09835, 2017.
|
| 219 |
+
[28] Yann Lifchitz, Yannis Avrithis, Sylvaine Picard, and Andrei Bursuc. Dense classification and implanting for few-shot learning. In CVPR, 2019.
|
| 220 |
+
[29] Bin Liu, Yue Cao, Yutong Lin, Qi Li, Zheng Zhang, Mingsheng Long, and Han Hu. Negative margin matters: Understanding margin in few-shot classification. In ECCV, 2020.
|
| 221 |
+
[30] Chen Liu, Yanwei Fu, Chengming Xu, Siqian Yang, and Jilin Li. Learning a few-shot embedding model with contrastive learning. In AAAI, 2021.
|
| 222 |
+
[31] Xu Luo, Yuxuan Chen, Liangjian Wen, Lili Pan, and Zenglin Xu. Boosting few-shot classification with view-learnable contrastive learning. In ICME, 2021.
|
| 223 |
+
[32] James MacQueen et al. Some methods for classification and analysis of multivariate observations. In Proceedings of the fifth Berkeley symposium on mathematical statistics and probability, 1967.
|
| 224 |
+
[33] Orchid Majumder, Avinash Ravichandran, Subhransu Maji, Marzia Polito, Rahul Bhotika, and Stefano Soatto. Revisiting contrastive learning for few-shot classification. arXiv preprint arXiv:2101.11058, 2021.
|
| 225 |
+
[34] Tsendsuren Munkhdalai and Hong Yu. Meta networks. In ICLR, 2017.
|
| 226 |
+
[35] Yassine Ouali, Céline Hudelot, and Myriam Tami. Spatial contrastive learning for few-shot classification. In ECML/PKDD, 2021.
|
| 227 |
+
[36] Eunbyung Park and Junier B. Oliva. Meta-curvature. In NIPS, 2019.
|
| 228 |
+
[37] Seong-Jin Park, Seungju Han, Ji-Won Baek, Insoo Kim, Juhwan Song, Haebeom Lee, Jae-Joon Han, and Sung Ju Hwang. Meta variance transfer: Learning to augment from the others. In ICML, 2020.
|
| 229 |
+
[38] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In NIPS, 2019.
|
| 230 |
+
[39] Aravind Rajeswaran, Chelsea Finn, Sham M. Kakade, and Sergey Levine. Meta-learning with implicit gradients. In NIPS, 2019.
|
| 231 |
+
[40] Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In ICLR, 2017.
|
| 232 |
+
[41] Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, and Richard S. Zemel. Meta-learning for semi-supervised few-shot classification. In ICLR, 2018.
|
| 233 |
+
[42] Mamshad Nayeem Rizve, Salman Khan, Fahad Shahbaz Khan, and Mubarak Shah. Exploring complementary strengths of invariant and equivariant representations for few-shot learning. In CVPR, 2021.
|
| 234 |
+
[43] Amir Rosenfeld, Richard S. Zemel, and John K. Tsotsos. The elephant in the room. arXiv preprint arXiv:1808.03305, 2018.
|
| 235 |
+
[44] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. In IJCV, 2015.
|
| 236 |
+
[45] Andrei A. Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. In ICLR, 2019.
|
| 237 |
+
[46] Eli Schwartz, Leonid Karlinsky, Joseph Shtok, Sivan Harary, Mattias Marder, Abhishek Kumar, Rogério Schmidt Feris, Raja Giryes, and Alexander M. Bronstein. Delta-encoder: an effective sample synthesis method for few-shot object recognition. In NIPS, 2018.
|
| 238 |
+
[47] Christian Simon, Piotr Koniusz, Richard Nock, and Mehrtash Harandi. Adaptive subspaces for few-shot learning. In CVPR, 2020.
|
| 239 |
+
[48] Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning. In NIPS, 2017.
|
| 240 |
+
[49] Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H. S. Torr, and Timothy M. Hospedales. Learning to compare: Relation network for few-shot learning. In CVPR, 2018.
|
| 241 |
+
[50] Sebastian Thrun and Lorien Y. Pratt. Learning to learn: Introduction and overview. In Learning to Learn, 1998.
|
| 242 |
+
[51] Yonglong Tian, Yue Wang, Dilip Krishnan, Joshua B. Tenenbaum, and Phillip Isola. Rethinking few-shot image classification: A good embedding is all you need? In ECCV, 2020.
|
| 243 |
+
[52] Antonio Torralba. Contextual priming for object detection. IJCV, 2003.
|
| 244 |
+
[53] Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In NIPS, 2016.
|
| 245 |
+
[54] Yu-Xiong Wang, Ross B. Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In CVPR, 2018.
|
| 246 |
+
[55] Davis Wertheimer, Luming Tang, and Bharath Hariharan. Few-shot classification with feature map reconstruction networks. In CVPR, 2021.
|
| 247 |
+
[56] Kai Xiao, Logan Engstrom, Andrew Ilyas, and Aleksander Madry. Noise or signal: The role of image backgrounds in object recognition. In ICLR, 2021.
|
| 248 |
+
[57] Chengming Xu, Chen Liu, Li Zhang, Chengjie Wang, Jilin Li, Feiyue Huang, Xiangyang Xue, and Yanwei Fu. Learning dynamic alignment via meta-filter for few-shot learning. In CVPR, 2021.
|
| 249 |
+
[58] Jin Xu, Jean-Francois Ton, Hyunjik Kim, Adam R. Kosiorek, and Yee Whye Teh. Metafun: Meta-learning with iterative functional updates. In ICML, 2020.
|
| 250 |
+
[59] Weijian Xu, yifan xu, Huaijin Wang, and Zhuowen Tu. Attentional constellation nets for few-shot learning. In ICLR, 2021.
|
| 251 |
+
[60] Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Few-shot learning via embedding adaptation with set-to-set functions. In CVPR, 2020.
|
| 252 |
+
[61] Sung Whan Yoon, Jun Seo, and Jaekyun Moon. Tapnet: Neural network augmented with task-adaptive projection for few-shot learning. In ICML, 2019.
|
| 253 |
+
[62] Zhongqi Yue, Hanwang Zhang, Qianru Sun, and Xian-Sheng Hua. Interventional few-shot learning. In NIPS, 2020.
|
| 254 |
+
[63] Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Few-shot image classification with differentiable earth mover’s distance and structured classifiers. In CVPR, 2020.
|
| 255 |
+
[64] Jianguo Zhang, Marcin Marszalek, Svetlana Lazebnik, and Cordelia Schmid. Local features and kernels for classification of texture and object categories: A comprehensive study. IJCV, 2007.
|
| 256 |
+
[65] Jianming Zhang, Stan Sclaroff, Zhe L. Lin, Xiaohui Shen, Brian L. Price, and Radomír Mech. Minimum barrier salient object detection at 80 FPS. In ICCV, 2015.
|
| 257 |
+
[66] Manli Zhang, Jianhong Zhang, Zhiwu Lu, Tao Xiang, Mingyu Ding, and Songfang Huang. IEPT: instancelevel and episode-level pretext tasks for few-shot learning. In ICLR, 2021.
|
| 258 |
+
[67] Ruixiang Zhang, Tong Che, Zoubin Ghahramani, Yoshua Bengio, and Yangqiu Song. Metagan: An adversarial approach to few-shot learning. In NIPS, 2018.
|
| 259 |
+
[68] Nanxuan Zhao, Zhirong Wu, Rynson WH Lau, and Stephen Lin. What makes instance discrimination good for transfer learning? In ICLR, 2021.
|
| 260 |
+
[69] Wangjiang Zhu, Shuang Liang, Yichen Wei, and Jian Sun. Saliency optimization from robust background detection. In CVPR, 2014.
|
| 261 |
+
[70] Luisa M. Zintgraf, Kyriacos Shiarlis, Vitaly Kurin, Katja Hofmann, and Shimon Whiteson. Fast context adaptation via meta-learning. In ICML, 2019.
|
parse/train/N1i6BJzouX4/N1i6BJzouX4_content_list.json
ADDED
|
@@ -0,0 +1,1071 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Rectifying the Shortcut Learning of Background for Few-Shot Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
186,
|
| 8 |
+
122,
|
| 9 |
+
815,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Xu Luo1, Longhui Wei2, Liangjian Wen1, Jinrong Yang4, Lingxi Xie3, Zenglin $\\mathbf { \\bar { X } u } ^ { 6 , 7 * }$ , Qi $\\mathbf { T i a n ^ { 5 * } }$ ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
253,
|
| 19 |
+
224,
|
| 20 |
+
743,
|
| 21 |
+
255
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1University of Electronic Science and Technology of China \n2University of Science and Technology of China 3Tsinghua University \n4Huazhong University of Science and Technology 5Xidian University \n6Harbin Institute of Technology Shenzhen 7Pengcheng Laboratory \nFrank.Luox@outlook.com,{weilh2568,zenglin}@gmail.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
266,
|
| 30 |
+
256,
|
| 31 |
+
733,
|
| 32 |
+
327
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
362,
|
| 43 |
+
535,
|
| 44 |
+
378
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "The category gap between training and evaluation has been characterised as one of the main obstacles to the success of Few-Shot Learning (FSL). In this paper, we for the first time empirically identify image background, common in realistic images, as a shortcut knowledge helpful for in-class classification but ungeneralizable beyond training categories in FSL. A novel framework, COSOC, is designed to tackle this problem by extracting foreground objects in images at both training and evaluation without any extra supervision. Extensive experiments carried on inductive FSL tasks demonstrate the effectiveness of our approaches. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
232,
|
| 53 |
+
392,
|
| 54 |
+
766,
|
| 55 |
+
502
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
532,
|
| 66 |
+
310,
|
| 67 |
+
550
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Through observing a few samples at a glance, humans can accurately identify brand-new objects. This advantage comes from years of experiences accumulated by the human vision system. Inspired by such learning capabilities, Few-Shot Learning (FSL) is developed to tackle the problem of learning from limited data [24, 53]. At training, FSL models absorb knowledge from a large-scale dataset; later at evaluation, the learned knowledge is leveraged to solve a series of downstream classification tasks, each of which contains very few support (training) images from brand-new categories. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
564,
|
| 77 |
+
825,
|
| 78 |
+
647
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The category gap between training and evaluation has been considered as one of the core issues in FSL [10]. Intuitively, the prior knowledge of old categories learned at training may not be applicable to novel ones. [62] consider solving this problem from a causal perspective. Their backdoor adjustment method, however, adjusts the prior knowledge in a black-box manner and cannot tell which specific prior knowledge is harmful and should be suppressed. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
654,
|
| 88 |
+
825,
|
| 89 |
+
723
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this paper, we identify image background as one specific harmful source knowledge for FSL. Empirical studies in [56] suggest that there exists spurious correlations between background and category of images (e.g., birds usually stand on branches, and shells often lie on the beaches; see Fig. 1), which serves as a shortcut knowledge for modern CNN-based vision systems to learn. It is further revealed that background knowledge has positive impact on the performance of in-class classification tasks. As illustrated in the simple example of Fig. 1, images from the same category are more likely to share similar background, making it possible for background knowledge to generalize from training to testing in common classification tasks. For FSL, however, the category gap produces brand-new foreground, background and their combinations at evaluation. The correlations learned at training thus may not be able to generalize and would probably mislead the predictions. We take empirical investigations on the role of image foreground and background in FSL, revealing how image background drastically affects the learning and evaluation of FSL in a negative way. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
729,
|
| 99 |
+
825,
|
| 100 |
+
867
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/46ca30684b2417029fe7d6b2f941a7266a99865d3dd331920f761b747db523e1.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: An illustrative example that demonstrates why background information is useful for regular classification but harmful for few-shot learning. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
205,
|
| 113 |
+
88,
|
| 114 |
+
792,
|
| 115 |
+
252
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
301,
|
| 125 |
+
821,
|
| 126 |
+
330
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Since the background is harmful, it would be good if we could force the model to concentrate on foreground objects at both training and evaluation, but this is not easy since we do not have any prior knowledge of the entity and position of the foreground objects in images. When humans are going to recognize foreground objects of images from the same class, they usually look for a shared local pattern that appears in the majority of images, and recognize patches with this pattern as foreground. This inspires us to design a novel framework, COSOC, to extract foreground of images for both training and evaluation of FSL by seeking shared patterns among images. The approach does not depend on any additional fine-grained supervisions such as bounding boxes or pixel-level labelings. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
335,
|
| 136 |
+
825,
|
| 137 |
+
446
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "The procedure of foreground extraction of images in the training set is implemented before training. The corresponding algorithm, named Clustering-based Object Seeker (COS), first pre-trains a feature extractor on the training set using contrative learning, which has an outstanding performance, shown empirically in a later section, on the task of discriminating between ground-truth foreground objects. The feature extractor then maps random crops of images—candidates of foreground objects—into a well-shaped feature space. This is followed by runing a clustering algorithm on all of the features of the same class, imitating the procedure of seeking shared local patterns inspired by human behavior. Each cropped patch is then assigned a foreground score according to its distance to the nearest cluster centroid, for determining a sampling probability of that patch in the later formal training of FSL models. For evaluation, we develop Shared Object Concentrator (SOC), an algorithm that applies iterative feature matching within the support set, looking for one crop per image at one time that is most likely to be foreground. The sorted averaging features of obtained crops are further leveraged to match crops of query images so that foreground crops have higher matching scores. A weighted sum of matching scores are finally calculated as classification logits of each query sample. Compared to other potential foreground extracting algorithms such as saliency-based methods, our COS and SOC algorithms have additional capability of capturing shared, inter-image information, performing better in complicated, multi-object scenery. Our methods also have flexibility of dynamically assigning beliefs (probabilities) to all candidate foreground objects, relieving the risk of overconfidence. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
454,
|
| 147 |
+
825,
|
| 148 |
+
702
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Our contributions can be summarized as follows. i) By conducting empirical studies on the role of image foreground and background in FSL, we reveal that image background serves as a source of shortcut knowledge which harms the evaluation performance. ii) To solve this problem, we propose COSOC, a framework combining COS and SOC, which can draw the model’s attention to image foreground at both training and evaluation. iii) Extensive experiments for non-transductive FSL tasks demonstrate the effectiveness of our method. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
708,
|
| 158 |
+
825,
|
| 159 |
+
791
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "2 Related Works ",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
176,
|
| 169 |
+
810,
|
| 170 |
+
328,
|
| 171 |
+
827
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Few-shot Image Classification. Plenty of previous work tackled few-shot learning in meta-learning framework [18, 50], where a model learns experience about how to solve few-shot learning tasks by tackling pseudo few-shot classification tasks constructed from the training set. Existing methods that ultilize meta-learning can be generally divided into three groups: (1) Optimization-based methods learn the experience of how to optimize the model given few training samples. This kind of methods either meta-learn a good model initialization point [12, 45, 39, 70, 20] or the whole optimization process [40, 58, 34, 27] or both [3, 36]. (2) Hallucination-based methods [16, 54, 46, 67, 25, 9, 26, 37] learn to augment similar support samples in few-shot tasks, thus can greatly alleviate the low-shot problem. (3) Metric-based methods [53, 48, 49, 61, 59] learn to map images into a metric feature space and classify query images by computing feature distances to support images. Among them, several recent works [19, 63, 57, 10] intended to seek correspondence between images either by attention or meta-filter, in order to obtain a more reasonable similarity measure. Our SOC algorithm in one-shot setting is in spirit similar to these methods, in that we both apply pair-wise feature alignment between support and query images, implicitly removing backgrounds that are more likely to be dissimilar across images. SOC differs in multi-shot setting, where potentially useful shared inter-image information in support set exists and can be captured by our SOC algorithm. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
842,
|
| 181 |
+
823,
|
| 182 |
+
911
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
90,
|
| 192 |
+
825,
|
| 193 |
+
243
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "The Influence of Background. A body of prior work studied the impact of image background on learning-based vision systems from different perspectives. [52] showed initial evidence of the existence of background correlations and how it influences the predictions of vision models. [64, 43] analyzed background dependence for object detection. Another relevant work [4] utilized camera traps for investigating how performance drops when adapting classifiers to unseen cameras with novel backgrounds. They explore the effect of class-independent background (i.e., background changes from training to testing while categories remain the same) on classification performance. Although the problem is also concerned with image background, no shortcut learning of background exists under this setting. This is because under each training camera trap, the classifier must distinguish different categories with background fixed, causing the background knowledge being not useful for predictions of training images. Instead, the learning signal during training pushes the classifier towards ignoring each specific background. The difficulties under this setting lie in the domain shift challenge—the classifier is confident to handle previously existing backgrounds, but lost in novel backgrounds. More recently, [56] systematically explore the role of image background in modern deep-learning-based vision systems through well-designed experiments. The results give clear evidence on the existence of background correlations and identify it as a positive shortcut knowledge for models to learn. Our results, on the contrary, identify background correlations as a negative knowledge in the context of few-shot learning. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
250,
|
| 203 |
+
825,
|
| 204 |
+
500
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Contrastive Learning. Recent success on contrastive learning of visual representations has greatly promoted the development of unsupervised learning [6, 17, 15, 5]. The promising performance of contrastive learning relies on the instance-level discrimination loss which maximizes agreement between transformed views of the same image and minimizes agreement between transformed views of different images. Recently there have been some attempts [30, 13, 10, 33, 35, 31] at integrating contrastive learning into the framework of FSL. Although achieving good results, these work struggle to have an in-depth understanding of why contrastive learning has positive effects on FSL. Our work takes a step forward, revealing the advantages of contrastive learning over supervised FSL models in identifying core objects of images. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
505,
|
| 214 |
+
825,
|
| 215 |
+
630
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "3 Empirical Investigation ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
661,
|
| 226 |
+
401,
|
| 227 |
+
678
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Problem Definition. Few-shot learning consists of a training set $\\mathcal { D } _ { B }$ and an evaluation set $\\mathcal { D } _ { v }$ which share no overlapping classes. $\\mathcal { D } _ { B }$ contains a large amount of labeled data and is usually used at first to train a backbone network $f _ { \\theta } ( \\cdot )$ . After training, a set of $N$ -way $K$ -shot classification tasks $\\mathcal { T } = \\{ ( \\boldsymbol { S } _ { \\tau } , \\boldsymbol { \\mathcal { Q } } _ { \\tau } ) \\} _ { \\tau = 1 } ^ { N _ { T } }$ are constructed, each by first sampling $N$ classes in $D _ { v }$ and then sampling $K$ and $M$ images from each class to constitute $S _ { \\tau }$ and $\\mathcal { Q } _ { \\tau }$ , respectively. In each task $\\tau$ , given the learned backbone fθ(·) and a small support set Sτ = {(xτk,n, yτk,n)}K,Nk,n=1 consisting of $K$ images $x _ { k , n } ^ { \\tau }$ and corresponding labels $y _ { k , n } ^ { \\tau }$ from each of $N$ classes, a few-shot classification algorithm is designed to classify $M N$ images from the query set $\\mathcal { Q } _ { \\tau } = \\{ ( x _ { m n } ^ { \\tau } ) \\} _ { m , n = 1 } ^ { M , N }$ . ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
173,
|
| 236 |
+
699,
|
| 237 |
+
825,
|
| 238 |
+
824
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Preparation. To investigate the role of background and foreground in FSL, we need ground-truth image foreground for comparison. However, it is time-consuming to label the whole dataset. Thus we select only a subset $\\mathcal { D } _ { \\mathrm { n e w } } = ( \\mathcal { D } _ { B } , \\mathcal { D } _ { v } )$ of miniImageNet [53] and crop each image manually according to the largest rectangular bounding box that contains the foreground object. We denote the uncropped version of the subset as ( $\\mathcal { D } _ { B }$ -Ori, $\\mathcal { D } _ { v }$ -Ori), and the cropped foreground version as $( \\mathcal { D } _ { B } \\mathrm { - F G } , \\mathbf { \\bar { \\mathcal { D } } } _ { v } \\mathbf { - F G }$ ). Two well-known FSL baselines are selected in our empirical studies: Cosine ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
828,
|
| 248 |
+
823,
|
| 249 |
+
911
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "image",
|
| 255 |
+
"img_path": "images/745128dbbb1ff084c514b47b51cba1da332833c2bb78aa51acaa8934edc52c59.jpg",
|
| 256 |
+
"image_caption": [
|
| 257 |
+
"Figure 2: 5-way 5-shot FSL performance on different variants of training and evaluation datasets detailed in Sec. 3. (a) Empirical exploration of image foreground and background in FSL using two models: PN and CC. (b) Comparison between CC and Exemplar trained on the full training set of miniImageNet and evaluated on $\\mathcal { D } _ { v }$ -Ori and $\\mathcal { D } _ { v }$ -FG. "
|
| 258 |
+
],
|
| 259 |
+
"image_footnote": [],
|
| 260 |
+
"bbox": [
|
| 261 |
+
204,
|
| 262 |
+
107,
|
| 263 |
+
797,
|
| 264 |
+
273
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 3
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "Classifier (CC) [14] and Prototypical Networks (PN) [48]. See Appendix A for details of constructing $\\mathcal { D } _ { \\mathrm { n e w } }$ and a formal introdcution of CC and PN. ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
174,
|
| 273 |
+
356,
|
| 274 |
+
823,
|
| 275 |
+
383
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 3
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "text",
|
| 281 |
+
"text": "3.1 The Role of Foreground and Background in Few-Shot Image Classification ",
|
| 282 |
+
"text_level": 1,
|
| 283 |
+
"bbox": [
|
| 284 |
+
174,
|
| 285 |
+
401,
|
| 286 |
+
732,
|
| 287 |
+
417
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 3
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "Fig. 2(a) shows the average of 5-way 5-shot classification accuracy obtained by training CC and PN on $\\mathcal { D } _ { B }$ -Ori and $\\mathcal { D } _ { B }$ -FG, and evaluating on $\\mathcal { D } _ { v }$ -Ori and $\\mathcal { D } _ { v }$ -FG, respectively. See Appendix F for additional 5-way 1-shot experiments. ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
176,
|
| 296 |
+
428,
|
| 297 |
+
823,
|
| 298 |
+
470
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 3
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "Category gap disables generalization of background knowledge. It can be first noticed that, under any condition, the performance is consistently and significantly improved if background is removed at the evaluation stage (switch from $\\mathcal { D } _ { v }$ -Ori to $\\mathcal { D } _ { v }$ -FG). The result implies that background at the evaluation stage in FSL is harmful. This is the opposite of that reported in [56] which shows background helps improve on the performance of traditional classification task, where no category gap exists between training and evaluation. Thus we can infer that the class/distribution gap in FSL disables generalization of background knowledge and degrades performance. ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
174,
|
| 307 |
+
477,
|
| 308 |
+
825,
|
| 309 |
+
574
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 3
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "Removing background at training prevents shortcut learning. When only foreground is given at evaluation $\\mathcal { D } _ { v }$ -FG), the models trained with only foreground ( $\\mathcal { D } _ { B }$ -FG) perform much better than those trained with original images $( \\mathcal { D } _ { B } \\mathrm { - O r i } )$ . This indicates that models trained with original images may not pay enough attention to the foreground object that really matters for classification. Background information at training serves as a shortcut for models to learn and cannot generalize to brand-new classes. In contrast, models trained with only foreground \"learn to compare\" different objects—a desirable ability for reliable generalization to downstream few-shot learning tasks with out-of-domain classes. ",
|
| 316 |
+
"bbox": [
|
| 317 |
+
174,
|
| 318 |
+
580,
|
| 319 |
+
825,
|
| 320 |
+
690
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "Training with background helps models to handle complex scenes. When evaluating on $\\mathcal { D } _ { v }$ -Ori, the models trained with original dataset $\\mathcal { D } _ { B }$ -Ori are slightly better than those with foreground dataset $\\mathcal { D } _ { B }$ -FG. We attribute this to a sort of domain shift: models trained with $\\mathcal { D } _ { B }$ -FG never meet images with complex background and do not know how to handle it. In Appendix D.1 we further verify the assertion by showing evaluation accuracy of each class under the above two training situations. Note that since we apply random crop augmentation at training, domain shift does not exist if the models are instead trained on $\\mathcal { D } _ { B }$ -Ori and evaluated on $\\mathcal { D } _ { v }$ -FG. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
174,
|
| 329 |
+
696,
|
| 330 |
+
825,
|
| 331 |
+
795
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "Simple fusion sampling combines advantages of both sides. One may wish to cut off shortcut learning of background while maintaining adaptability of model to complex scenes. A simple solution may be fusion sampling: given an image as input, choose its foreground version with probability $p$ , and its original version with probability $1 - p$ . We simply set $p$ equal to 0.5. We denote the dataset using this sampling strategy as $\\mathcal { D } _ { B }$ -Fuse. As observed in Fig. 2(a), models trained this way indeed combine advantages of both sides: achieving relatively good performance on both $\\mathcal { D } _ { v }$ -Ori and $\\mathcal { D } _ { v }$ -FG. In Appendix C, we compare the training curves of PN trained on three versions of datasets to further investigate the effectiveness of fusion sampling. ",
|
| 338 |
+
"bbox": [
|
| 339 |
+
173,
|
| 340 |
+
800,
|
| 341 |
+
825,
|
| 342 |
+
911
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "The above analysis provides new inspiration for how to improve FSL further: (1) Fusion sampling of foreground and original images could be applied to training. (2) Since background information disturbs evaluation, it is needed to focus on foreground objects or assign image patches, that are more likely to be foreground, a larger weight for classification. Therefore, a foreground object identification mechanism is required at both training (for fusion sampling) and evaluation. ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
174,
|
| 351 |
+
90,
|
| 352 |
+
825,
|
| 353 |
+
161
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 4
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "3.2 Contrastive Learning is Good at Identifying Objects ",
|
| 360 |
+
"text_level": 1,
|
| 361 |
+
"bbox": [
|
| 362 |
+
174,
|
| 363 |
+
181,
|
| 364 |
+
575,
|
| 365 |
+
196
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 4
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "In this subsection, we reveal the potential of contrastive learning in identifying foreground objects, which we will use later for foreground extraction. Given one transformed view of one image, contrastive learning tends to distinguish another transformed view of that same image from thousands of views of other images. A more detailed introduction of contrastive learning is given in Appendix B. The two augmented views of the same image always cover the same object, but probably with different parts, sizes and color. To discriminate two augmented patches from thousands of other image patches, the model has to learn to identify the key discriminative information of the object under varying environment. In this manner, semantic relations among crops of images are explicitly modeled, thereby clustering semantically similar contents automatically. The features of different images are pushed away, while those of similar objects in different images are pulled closer. Thus it is reasonable to speculate that contrastive learning may enable models with better identification of centered foreground object. ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
174,
|
| 374 |
+
209,
|
| 375 |
+
825,
|
| 376 |
+
375
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 4
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "To verify this, we train CC and contrastive learning models on the whole training set of miniImageNet $\\mathcal { D } _ { B }$ -Full) and compare their accuracy on $\\mathcal { D } _ { v }$ -Ori and $\\mathcal { D } _ { v }$ -FG. The contrastive learning method we use is Exemplar [68], a modified version of MoCo [17]. Fig 2(b) shows that, while the evaluation accuracy of Exemplar on $\\mathcal { D } _ { v }$ -Ori is slightly worse than that of CC, Exemplar performs much better when only foreground of images are given at evaluation, affirming that contrastive learning indeed has a better discriminative ability of single centered object. In Appendix D.2, we provide a more in-depth analysis of why contrastive learning has such properties and infer that the shape bias and viewpoint invariance may play an important role. ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
173,
|
| 385 |
+
381,
|
| 386 |
+
825,
|
| 387 |
+
492
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 4
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "4 Rectifying the Shortcut Learning of Background ",
|
| 394 |
+
"text_level": 1,
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
516,
|
| 398 |
+
611,
|
| 399 |
+
534
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 4
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "Given the analysis in the previous section, we wish to focus more on image foreground both at training and evaluation. Inspired by how humans recognise foreground objects, we propose COSOC, a framework ultilizing contrastive learning to draw the model’s attention to the foreground objects of images. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
550,
|
| 409 |
+
826,
|
| 410 |
+
606
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 4
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "4.1 Clustering-based Object Seeker (COS) with Fusion Sampling for Training ",
|
| 417 |
+
"text_level": 1,
|
| 418 |
+
"bbox": [
|
| 419 |
+
174,
|
| 420 |
+
626,
|
| 421 |
+
725,
|
| 422 |
+
642
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 4
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "Since contrastive learning is good at discriminating foreground objects, we utilize it to extract foreground objects before training. The first step is to pre-train a backbone $f _ { \\theta } ( \\cdot )$ on the training set $\\mathcal { D } _ { B }$ using Exemplar [68]. Then a clustering-based algorithm is used to extract \"objects\" identified by the pre-trained model. The basic idea is that features of foreground objects in images within one class extracted by contrastive learalgorithm; see a simple example in ng models are similar, therig. 3. All images within the $i$ by can be i-th class in $\\mathcal { D } _ { B }$ ified via a form a set $\\{ \\mathbf { x } _ { n } ^ { i } \\} _ { n = 1 } ^ { N }$ $i$ \nobjects in one class is detailed as follows: ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
654,
|
| 432 |
+
825,
|
| 433 |
+
765
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 4
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "1) For each image ${ \\bf x } _ { n }$ , we randomly crop it $L$ times to obtain $L$ image patches $\\{ \\mathbf { p } _ { n , m } \\} _ { m = 1 } ^ { L }$ . Each image patch $\\mathbf { p } _ { n , m }$ is then passed through the pre-trained model $f _ { \\theta }$ and we get a normalized feature vector vn,m $\\begin{array} { r } { \\mathbf { v } _ { n , m } = \\frac { f _ { \\theta } ( \\mathbf { p } _ { n , m } ) } { | | f _ { \\theta } ( \\mathbf { p } _ { n , m } ) | | _ { 2 } } \\in \\mathbb { R } ^ { d } } \\end{array}$ . ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
771,
|
| 443 |
+
825,
|
| 444 |
+
821
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "2) We run a clustering algorithm $\\mathcal { A }$ on all features vectors of the class and obtain $H$ clusters $\\{ \\mathbf { z } _ { j } \\} _ { j = 1 } ^ { H } = \\mathcal { A } ( \\{ \\mathbf { v } _ { n , m } \\} _ { n , m = 1 } ^ { \\bar { N } , L ^ { - } } )$ , where $\\mathbf { z } _ { j }$ is the feature centroid of the $j$ -th cluster. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
166,
|
| 453 |
+
825,
|
| 454 |
+
825,
|
| 455 |
+
858
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "3) We say an image ${ \\bf x } _ { n } \\in { \\bf z } _ { j }$ , if there exists $k \\in [ L ]$ s.t. ${ \\bf v } _ { n , k } \\in { \\bf z } _ { j }$ , where $[ L ] = \\{ 1 , 2 , \\dots , L \\}$ . Let $\\begin{array} { r } { l ( \\mathbf { z } _ { j } ) = \\frac { \\# \\{ \\mathbf { x } | \\mathbf { x } \\in \\mathbf { z } _ { j } \\} } { N } } \\end{array}$ be the proportion of images in the class that belong to $\\mathbf { z } _ { j }$ . If $l ( \\mathbf { z } _ { j } )$ is small, then the cluster $\\mathbf { z } _ { j }$ is not representative for the whole class and is possibly background. Thus we remove all the cluremaining ers cl $\\mathbf { z }$ witters $l ( \\mathbf { z } ) < \\gamma$ , where represe $\\gamma$ is a threshold that controls the generality of clusters. The “objects” of the class that we are looking for. $h$ $\\{ \\mathbf { z } _ { j } \\} _ { j = \\alpha _ { 1 } } ^ { \\alpha _ { h } }$ ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
864,
|
| 465 |
+
825,
|
| 466 |
+
911
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "image",
|
| 472 |
+
"img_path": "images/7920e4d487b562d01c46a9f315f77b58b065d7f7621741046f41a9f7bda24e5b.jpg",
|
| 473 |
+
"image_caption": [
|
| 474 |
+
"Figure 3: Simplified schematic illustration of COS algorithm. We show how we obtain foreground objects from three exemplified images. The value under each crop denotes its foreground score. "
|
| 475 |
+
],
|
| 476 |
+
"image_footnote": [],
|
| 477 |
+
"bbox": [
|
| 478 |
+
178,
|
| 479 |
+
87,
|
| 480 |
+
820,
|
| 481 |
+
227
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 5
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "",
|
| 488 |
+
"bbox": [
|
| 489 |
+
173,
|
| 490 |
+
275,
|
| 491 |
+
823,
|
| 492 |
+
305
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 5
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "4) The foreground score of image patch $p _ { n , m }$ is defined as $\\begin{array} { r } { s _ { n , m } = 1 - \\operatorname* { m i n } _ { j \\in [ h ] } | | \\mathbf { v } _ { n , m } - \\mathbf { z } _ { \\alpha _ { j } } | | _ { 2 } / \\eta } \\end{array}$ , where $\\eta \\ : = \\ : \\operatorname* { m a x } _ { n , m } \\operatorname* { m i n } _ { j \\in [ h _ { c } ] } | | \\mathbf { v } _ { n , m } - \\mathbf { z } _ { \\alpha _ { j } } | | _ { 2 }$ is used to normalize the score into $[ 0 , 1 ]$ . Then top- $\\mathbf { \\nabla } \\cdot \\mathbf { k }$ scores of each image xn are obtained as {sn,m}βkm=β1 $\\{ s _ { n , m } \\} _ { m = \\beta _ { 1 } } ^ { \\beta _ { k } } = \\operatorname { T o p k } ( s _ { n , m } )$ . The corresponding patches {pn,m} km=β1 are seen as possible crops of the foreground object in image ${ \\bf x } _ { n }$ , and the foreground scores {sn,m}βkm=β as the confidence. We then use it as prior knowledge to rectify the shortcut learning of background for FSL models. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
173,
|
| 501 |
+
310,
|
| 502 |
+
826,
|
| 503 |
+
429
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 5
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "The training strategy resembles fusion sampling introduced before. For an image ${ \\bf x } _ { n }$ , the probability that we choose the original version is $1 - \\operatorname* { m a x } _ { i \\in [ k ] } s _ { n , \\beta _ { i } }$ , and the probability of choosing $\\mathbf { p } _ { n , \\beta _ { j } }$ from top- $\\mathbf { \\nabla } \\cdot \\mathbf { k }$ patches is $\\big ( s _ { n , \\beta _ { j } } / \\sum _ { i \\in [ k ] } s _ { n , \\beta _ { i } } \\big ) \\cdot \\operatorname* { m a x } _ { i \\in [ k ] } s _ { n , \\beta _ { i } }$ . Then we adjust the chosen image patch and make sure that the least area proportion to the original image keeps as a constant. We use this strategy to train a backbone $f _ { \\theta } ( \\cdot )$ using a FSL algorithm. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
173,
|
| 512 |
+
434,
|
| 513 |
+
826,
|
| 514 |
+
522
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 5
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "4.2 Few-shot Evaluation with Shared Object Concentrator (SOC) ",
|
| 521 |
+
"text_level": 1,
|
| 522 |
+
"bbox": [
|
| 523 |
+
173,
|
| 524 |
+
536,
|
| 525 |
+
642,
|
| 526 |
+
553
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 5
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "As discussed before, if the foreground crop of the image is used at evaluation, the performance of FSL model will be boosted by a large margin, serving as an upper bound of the model performance. To approach this upper bound, we propose SOC algorithm to capture foreground objects by seeking shared contents among support images of the same class and query images. ",
|
| 533 |
+
"bbox": [
|
| 534 |
+
173,
|
| 535 |
+
563,
|
| 536 |
+
826,
|
| 537 |
+
619
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 5
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "image",
|
| 543 |
+
"img_path": "images/80351e67f7854e28e64b79bed52f3ba918f8d433473dc457fce81a0209cc47e2.jpg",
|
| 544 |
+
"image_caption": [
|
| 545 |
+
"Figure 4: The overall pipeline of step 1 in SOC. Points in one color represent features of crops from one image. The red points are $\\omega _ { 1 } , \\omega _ { 2 }$ and $\\omega _ { 3 }$ . "
|
| 546 |
+
],
|
| 547 |
+
"image_footnote": [],
|
| 548 |
+
"bbox": [
|
| 549 |
+
173,
|
| 550 |
+
627,
|
| 551 |
+
501,
|
| 552 |
+
700
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "Step 1: Shared Content Searching within Each Class. For each image $\\mathbf { x } _ { k }$ within one class $c$ from support set $S _ { \\tau }$ , we randomly crop it $V$ times and obtain corresponding candidates $\\{ \\mathbf { p } _ { k , n } \\} _ { n = 1 , . . , V }$ . Each patch $\\mathbf { p } _ { k , n }$ is individually sent to the learned backbone $f _ { \\theta }$ to obtain a normalized feature vector ${ \\mathbf v } _ { k , n }$ . Thus we have totally $K \\times V$ feature vectors within a class $c$ Our goal is to obtain a feature vector $\\omega _ { 1 }$ that ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
513,
|
| 561 |
+
625,
|
| 562 |
+
825,
|
| 563 |
+
750
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "contains maximal shared information of all images in class $c$ . Ideally, $\\omega _ { 1 }$ represents the centroid o the most similar $K$ image patches, each from one image, which can be formulated as ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
174,
|
| 572 |
+
750,
|
| 573 |
+
818,
|
| 574 |
+
777
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "equation",
|
| 580 |
+
"img_path": "images/4503c5d589129aee9fdf5f85b99eda20d383b98354fc9cb49a689592a299e646.jpg",
|
| 581 |
+
"text": "$$\n\\begin{array} { r l } & { \\displaystyle \\boldsymbol { \\omega } _ { 1 } = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } \\mathbf { v } _ { k , \\lambda _ { o p t } ( k ) } , } \\\\ & { \\lambda _ { o p t } = \\arg \\operatorname* { m a x } _ { 1 \\leq i < j \\leq K } \\cos ( \\mathbf { v } _ { i , \\lambda ( i ) } , \\mathbf { v } _ { j , \\lambda ( j ) } ) , } \\\\ & { \\quad \\quad \\lambda { \\in } [ K ] ^ { [ V ] } \\mathbf { 1 } _ { 1 \\leq i < j \\leq K } } \\end{array}\n$$",
|
| 582 |
+
"text_format": "latex",
|
| 583 |
+
"bbox": [
|
| 584 |
+
346,
|
| 585 |
+
781,
|
| 586 |
+
651,
|
| 587 |
+
862
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 5
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "where $\\cos ( \\cdot , \\cdot )$ denotes cosine similarity and $[ K ] ^ { [ V ] }$ denotes the set of functions that take $[ K ]$ as domain and $[ V ]$ as range. While $\\lambda _ { o p t }$ can be obtained by enumerating all possible combinations of image patches, the computation complexity of this brute-force method is $\\mathcal { O } ( V ^ { K } )$ , which is computation prohibitive when $V$ or $K$ is large. Thus when the computation is not affordable, we turn to use a simplified method that leverages iterative optimization. Instead of seeking for the closest image patches, we directly optimize $\\omega _ { 1 }$ so that the sum of minimum distance to patches of each image is minimized, i.e., ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
174,
|
| 596 |
+
867,
|
| 597 |
+
823,
|
| 598 |
+
911
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 5
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "",
|
| 605 |
+
"bbox": [
|
| 606 |
+
174,
|
| 607 |
+
90,
|
| 608 |
+
825,
|
| 609 |
+
147
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 6
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "equation",
|
| 615 |
+
"img_path": "images/0090ea23f03d59094ce2b068bdbf0252bafdbc075b90d8ee77ab6d50fe8e30b4.jpg",
|
| 616 |
+
"text": "$$\n\\omega _ { 1 } = \\underset { \\omega \\in \\mathcal { R } ^ { d } } { \\arg \\operatorname* { m a x } } \\sum _ { k = 1 } ^ { K } \\underset { n } { \\operatorname* { m a x } } [ \\cos ( \\omega , \\mathbf { v } _ { k , n } ) ] ,\n$$",
|
| 617 |
+
"text_format": "latex",
|
| 618 |
+
"bbox": [
|
| 619 |
+
370,
|
| 620 |
+
145,
|
| 621 |
+
627,
|
| 622 |
+
189
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 6
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "which can be achieved by iterative optimization algorithms. We apply SGD in our experiments. After optimization, we remove the patch of each image that is most similar to $\\omega _ { 1 }$ , and obtain $K \\times ( V - 1 )$ feature vectors. Then we repeatedly implement the above optimization process until no features are left, as shown in Fig. 4. We eventually obtain $V$ sorted feature vectors $\\{ \\omega _ { n } \\} _ { n = 1 } ^ { V }$ , which we use to represent the class $c$ . As for the case where shot $K = 1$ , there is no shared inter-image information inside class, so similar to the handling in PN and DeepEMD [63] , we just skip step 1 and use the original $V$ feature vectors. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
173,
|
| 631 |
+
190,
|
| 632 |
+
825,
|
| 633 |
+
289
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 6
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "Step 2: Feature Matching for Concentrating on Foreground Object of Query Images. Once the foreground class representations are identified, the next step is to use them to implicitly concentrate on foreground of query images by feature matching. For each image $\\mathbf { x }$ in the query set $\\mathcal { Q } _ { \\tau }$ , we also randomly crop it for $V$ times and obtain $V$ candidate features $\\{ \\mu _ { n } \\} _ { n = 1 } ^ { V }$ . For each class $c$ , we have $V$ sorted representative feature vectors $\\{ \\omega _ { n } \\} _ { n = 1 } ^ { V }$ obtained in step 1. We then match the most similar patches between query features and class features, i.e., ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
173,
|
| 642 |
+
294,
|
| 643 |
+
825,
|
| 644 |
+
378
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 6
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "equation",
|
| 650 |
+
"img_path": "images/fc5ad6e6085fe5c505fbfc6a355709985c416c98dd824bb51e2fe3cf3574780e.jpg",
|
| 651 |
+
"text": "$$\ns _ { 1 } = \\operatorname* { m a x } _ { 1 \\leq i , j \\leq V } [ \\alpha ^ { j - 1 } \\mathrm { c o s } ( \\pmb { \\mu } _ { i } , \\pmb { \\omega } _ { j } ) ] ,\n$$",
|
| 652 |
+
"text_format": "latex",
|
| 653 |
+
"bbox": [
|
| 654 |
+
390,
|
| 655 |
+
383,
|
| 656 |
+
606,
|
| 657 |
+
409
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 6
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "where $\\alpha \\leq 1$ is an importance factor. Thus the weight $\\alpha ^ { j - 1 }$ decreases exponentially in index $n - 1$ , indicating a decreased belief of each vector representing foreground. Similarly, the two matched class features are removed and the above process repeats until no features left. Finally, the score of $c$ is obtained as a weighted sum of all similarities, i.e., $\\begin{array} { r } { S _ { c } = \\sum _ { n = 1 } ^ { V } \\beta ^ { n - 1 } s _ { n } } \\end{array}$ , where $\\beta \\leq 1$ $\\mathbf { x }$ w.r.t. is another importance factor controlling the belief of each crop being foreground objects. In this way, features matched earlier—thus more likely to be foreground—will have higher contributions to the score. The predicted class of $\\mathbf { x }$ is the one with the highest score. ",
|
| 664 |
+
"bbox": [
|
| 665 |
+
173,
|
| 666 |
+
416,
|
| 667 |
+
826,
|
| 668 |
+
518
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 6
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "5 Experiments ",
|
| 675 |
+
"text_level": 1,
|
| 676 |
+
"bbox": [
|
| 677 |
+
174,
|
| 678 |
+
536,
|
| 679 |
+
312,
|
| 680 |
+
554
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 6
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "text",
|
| 686 |
+
"text": "5.1 Experiment Setup ",
|
| 687 |
+
"text_level": 1,
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
568,
|
| 691 |
+
339,
|
| 692 |
+
583
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 6
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Dataset. We adopt two benchmark datasets which are the most representative in few-shot learning. The first is miniImageNet [53], a small subset of ILSVRC-12 [44] that contains 600 images within each of the 100 categories. The categories are split into 64, 16, 20 classes for training, validation and evaluation, respectively. The second dataset, tieredImageNet [41], is a much larger subset of ILSVRC12 and is more challenging. It is constructed by choosing 34 super-classes with 608 categories. The super-classes are split into 20, 6, 8 super-classes which ensures separation between training and evaluation categories. The final dataset contains 351, 97, 160 classes for training, validation and evaluation, respectively. On both datasets, the input image size is $8 4 \\times 8 4$ for fair comparison. ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
173,
|
| 701 |
+
593,
|
| 702 |
+
826,
|
| 703 |
+
705
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 6
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Evaluation Protocols. We follow the 5-way 5-shot (1-shot) FSL evaluation setting. Specifically, 2000 tasks, each contains 15 testing images and 5 (1) training images per class, are randomly sampled from the evaluation set $\\mathcal { D } _ { v }$ and the average classification accuracy is computed. This is repeated 5 times and the mean of the average accuracy with $9 5 \\%$ confidence intervals is reported. ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
710,
|
| 713 |
+
825,
|
| 714 |
+
767
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 6
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "Implementation Details. The backbone we use throughout the article is ResNet-12, which is widely used in few-shot learning. We use Pytorch [38] to implement all our experiments on two NVIDIA 1080Ti GPUs. We train the model using SGD with cosine learning rate schedule without restart to reduce the number of hyperparameters (Which epochs to decay the learning rate). The initial learning rate for training Exemplar is 0.1, and for CC is 0.005. The batch size for Exemplar, CC are 256 and 128, respectively. For miniImageNet, we train Exemplar for 150k iterations, and train CC for $^ \\mathrm { 6 k }$ iterations. For tieredImageNet, we train Exemplar for approximately $9 0 0 \\mathrm { k }$ iterations, and train CC for $1 2 0 \\mathrm { k }$ iterations. We choose $\\mathbf { k }$ -means [32] as the clustering algorithm for COS. The threshold $\\gamma$ is set to 0.5, and top 3 out of 30 features are chosen per image at the training stage. At the evaluation stage, we crop each image 7 times. The importance factors $\\alpha$ and $\\beta$ are both set to 0.8. ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
173,
|
| 723 |
+
772,
|
| 724 |
+
825,
|
| 725 |
+
911
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 6
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "table",
|
| 731 |
+
"img_path": "images/30b7011ff597e47ac90d406b30e50291f7405a7a51d498bb7a4785fdc8cc9e9e.jpg",
|
| 732 |
+
"table_caption": [
|
| 733 |
+
"Table 1: Ablative study on miniImageNet. All models are trained on the full training set of miniImageNet. Since the aim of SOC algorithm is to find foreground objects, it is unnecessary to evaluate SOC on the foreground dataset $\\mathcal { D } _ { v }$ -FG. FT means finetuning from Exemplar used in COS. "
|
| 734 |
+
],
|
| 735 |
+
"table_footnote": [],
|
| 736 |
+
"table_body": "<table><tr><td rowspan=\"2\">CC</td><td rowspan=\"2\">FT</td><td rowspan=\"2\">COS</td><td rowspan=\"2\">SOC</td><td colspan=\"2\">Du-Ori</td><td colspan=\"2\">Du-FG</td></tr><tr><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>√</td><td></td><td></td><td></td><td>62.67 ± 0.32</td><td>80.22 ± 0.24</td><td>66.69 ± 0.32</td><td>82.86 ± 0.19</td></tr><tr><td>√</td><td></td><td>√</td><td></td><td>64.76 ± 0.13</td><td>81.18 ± 0.21</td><td>71.13 ± 0.36</td><td>86.21 ± 0.15</td></tr><tr><td>卜</td><td>√</td><td>√</td><td></td><td>65.05 ± 0.06</td><td>81.16 ± 0.17</td><td>71.36 ± 0.30</td><td>86.20 ± 0.14</td></tr><tr><td>厂</td><td></td><td></td><td>√</td><td>64.41 ± 0.22</td><td>81.54 ± 0.28</td><td></td><td>=</td></tr><tr><td></td><td></td><td>√</td><td>√</td><td>69.29 ± 0.12</td><td>84.94 ± 0.28</td><td>-</td><td>-</td></tr></table>",
|
| 737 |
+
"bbox": [
|
| 738 |
+
218,
|
| 739 |
+
138,
|
| 740 |
+
779,
|
| 741 |
+
239
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 7
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "table",
|
| 747 |
+
"img_path": "images/7975cdad3521398109f74f8758855b86540ef9f0f95a4fcb76bdbd9e246f3fd0.jpg",
|
| 748 |
+
"table_caption": [
|
| 749 |
+
"Table 2: Comparisons with baselines of foreground extractors using saliency detection algorithms on miniImageNet. For fair comparison, all models in the right column at evaluation use multi-cropping. GT means evaluating with ground truth foreground. "
|
| 750 |
+
],
|
| 751 |
+
"table_footnote": [],
|
| 752 |
+
"table_body": "<table><tr><td colspan=\"3\">Used for training</td><td colspan=\"3\">Used forevaluation</td></tr><tr><td>Method</td><td>1-shot</td><td>5-shot</td><td>Method</td><td>1-shot</td><td>5-shot</td></tr><tr><td>CC</td><td>62.67 ± 0.32</td><td>80.22 ± 0.24</td><td>COS</td><td>67.23 ± 0.35</td><td>82.79 ± 0.31</td></tr><tr><td>CC+RBD</td><td>63.24 ± 0.41</td><td>80.45 ± 0.37</td><td>COS+RBD</td><td>67.03 ± 0.52</td><td>82.57 ± 0.27</td></tr><tr><td>CC+MBD</td><td>61.50 ± 0.31</td><td>79.12 ± 0.32</td><td>COS+MBD</td><td>62.98 ± 0.45</td><td>79.56 ± 0.38</td></tr><tr><td>CC+FT</td><td>62.71 ± 0.11</td><td>80.06 ± 0.08</td><td>COS+FT</td><td>64.74 ± 0.28</td><td>80.74 ± 0.13</td></tr><tr><td>CC+COS</td><td>64.76 ± 0.13</td><td>81.18 ± 0.21</td><td>COSOC</td><td>69.28 ± 0.49</td><td>85.16 ± 0.42</td></tr><tr><td>1</td><td>1</td><td>=</td><td>COS+GT</td><td>72.71 ± 0.57</td><td>87.43 ± 0.36</td></tr></table>",
|
| 753 |
+
"bbox": [
|
| 754 |
+
217,
|
| 755 |
+
318,
|
| 756 |
+
779,
|
| 757 |
+
431
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "5.2 Model Analysis ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
472,
|
| 768 |
+
320,
|
| 769 |
+
487
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 7
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "In this subsection, we show the effectiveness of each component of our method. Tab. 1 shows the ablation study conducted on miniImageNet. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
173,
|
| 778 |
+
503,
|
| 779 |
+
823,
|
| 780 |
+
532
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 7
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "On the effect of finetuning. Since a feature extractor is pre-trained using contrastive learning in COS, it may help accelerate convergence if we directly finetune from the pre-trained model instead of training from scratch. As shown in line 2-3 in Tab. 1, fintuning gives no improvement on the performance over training from scratch. Thus we adopt finetuning mainly for speeding up convergence $5 \\times$ faster). ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
173,
|
| 789 |
+
537,
|
| 790 |
+
825,
|
| 791 |
+
608
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 7
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Effectiveness of COS Algorithm. As observed in Tab. 1, When COS is applied on CC, the performance is improved on both versions of datasets. In Fig. 5, we show the curves of training and validation error of CC during training with and without COS. Both models are trained from scratch and validated on the full miniImageNet. We observe that CC sinks into overfitting: the training accuracy drops to zero, and validation accuracy stops improving before ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
174,
|
| 800 |
+
614,
|
| 801 |
+
485,
|
| 802 |
+
752
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 7
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "image",
|
| 808 |
+
"img_path": "images/71cf6cb98a6373acd448719b594eadf68dc2fbab7cf77278bf966fac3ce2ff3b.jpg",
|
| 809 |
+
"image_caption": [
|
| 810 |
+
"Figure 5: Comparison of training and validation curves between CC with and without COS. "
|
| 811 |
+
],
|
| 812 |
+
"image_footnote": [],
|
| 813 |
+
"bbox": [
|
| 814 |
+
498,
|
| 815 |
+
616,
|
| 816 |
+
821,
|
| 817 |
+
717
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 7
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "the end of the training. Meanwhile, the COS algorithm helps slow down convergence and prevent training accuracy from reaching zero. This makes validation accuracy comparable at first but higher at the end. Our COS algorithm weakens the “background shortcut” for learning, draws model’s attention on foreground objects, and improves upon generalization. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
174,
|
| 826 |
+
753,
|
| 827 |
+
825,
|
| 828 |
+
808
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 7
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "Effectiveness of SOC Algorithm. The result in Tab. 1 shows that the SOC algorithm is the key to maximally exploit the potential of good object-discrimination ability. The performance even approaches the upper bound performance obtained by evaluating the model on the ground-truth foreground $\\mathcal { D } _ { v }$ -FG. One potential unfairness in our SOC algorithm may lie in the use of multicropping, which could possibly lead to performance improvement for other approaches as well. We ablate this concern in Appendix G, as well as in the comparisons to other methods in the later subsections. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
173,
|
| 837 |
+
814,
|
| 838 |
+
825,
|
| 839 |
+
911
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 7
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "table",
|
| 845 |
+
"img_path": "images/ee5c7967ef79a227756257c56f308be55b1519b62174ad7276e40593991e3eba.jpg",
|
| 846 |
+
"table_caption": [
|
| 847 |
+
"Table 3: Comparisons with state-of-the-art models on miniImageNet and tieredImageNet. The average inductive 5-way few-shot classification accuracies with 95 confidence interval are reported. \\* indicates methods evaluated using multi-cropping. "
|
| 848 |
+
],
|
| 849 |
+
"table_footnote": [],
|
| 850 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">backbone</td><td colspan=\"2\">miniImageNet</td><td colspan=\"2\">tieredImageNet</td></tr><tr><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>MetaOptNet [22]</td><td>ResNet-12</td><td>62.64 ±0.82</td><td>78.63 ±0.46</td><td>65.99 ± 0.72</td><td>81.56± 0.53</td></tr><tr><td>DC[28]</td><td>ResNet-12</td><td>62.53 ± 0.19</td><td>79.77 ± 0.19</td><td>=</td><td>1</td></tr><tr><td>CTM[25]</td><td>ResNet-18</td><td>64.12 ± 0.82</td><td>80.51 ± 0.13</td><td>68.41 ± 0.39</td><td>84.28 ± 1.73</td></tr><tr><td>CAM[19]</td><td>ResNet-12</td><td>63.85 ± 0.48</td><td>79.44 ± 0.34</td><td>69.89 ± 0.51</td><td>84.23 ± 0.37</td></tr><tr><td>AFHN[26]</td><td>ResNet-18</td><td>62.38 ± 0.72</td><td>78.16 ± 0.56</td><td>=</td><td>1</td></tr><tr><td>DSN [47]</td><td>ResNet-12</td><td>62.64 ± 0.66</td><td>78.83 ± 0.45</td><td>66.22 ± 0.75</td><td>82.79 ± 0.48</td></tr><tr><td>AM3+TRAML[23]</td><td>ResNet-12</td><td>67.10 ± 0.52</td><td>79.54 ± 0.60</td><td></td><td>=</td></tr><tr><td>Net-Cosine [29]</td><td>ResNet-12</td><td>63.85 ± 0.81</td><td>81.57 ± 0.56</td><td></td><td>=</td></tr><tr><td>CA [2]</td><td>WRN-28-10</td><td>65.92 ± 0.60</td><td>82.85 ± 0.55</td><td>74.40 ± 0.68</td><td>86.61 ± 0.59</td></tr><tr><td>MABAS [21]</td><td>ResNet-12</td><td>65.08 ± 0.86</td><td>82.70 ± 0.54</td><td></td><td></td></tr><tr><td>ConsNet [59]</td><td>ResNet-12</td><td>64.89 ±0.23</td><td>79.95 ± 0.17</td><td></td><td>=</td></tr><tr><td>IEPT[66]</td><td>ResNet-12</td><td>67.05 ± 0.44</td><td>82.90 ±0.30</td><td>72.24 ± 0.50</td><td>86.73 ± 0.34</td></tr><tr><td>MELR[11]</td><td>ResNet-12</td><td>67.40 ± 0.43</td><td>83.40 ±0.28</td><td>72.14 ± 0.51</td><td>87.01 ±0.35</td></tr><tr><td>IER-Distill [42]</td><td>ResNet-12</td><td>67.28 ± 0.80</td><td>84.78 ± 0.52</td><td>72.21 ± 0.90</td><td>87.08 ± 0.58</td></tr><tr><td>LDAMF [57]</td><td>ResNet-12</td><td>67.76 ± 0.46</td><td>82.71 ± 0.31</td><td>71.89 ± 0.52</td><td>85.96 ± 0.35</td></tr><tr><td>FRN [55]</td><td>ResNet-12</td><td>66.45 ± 0.19</td><td>82.83 ± 0.13</td><td>72.06 ± 0.22</td><td>86.89 ± 0.14</td></tr><tr><td>Baseline*[7]</td><td>ResNet-12</td><td>63.83 ± 0.67</td><td>81.38 ± 0.41</td><td></td><td></td></tr><tr><td>DeepEMD* [63]</td><td>ResNet-12</td><td>67.63 ± 0.46</td><td>83.47 ± 0.61</td><td>74.29 ± 0.32</td><td>86.98 ± 0.60</td></tr><tr><td>RFS-Distill* [51]</td><td>ResNet-12</td><td>65.02 ± 0.44</td><td>82.04 ± 0.38</td><td>71.52 ± 0.69</td><td>86.03 ± 0.49</td></tr><tr><td>FEAT*[60]</td><td>ResNet-12</td><td>68.03 ±0.38</td><td>82.99 ± 0.31</td><td></td><td>=</td></tr><tr><td>Meta-baseline* [8]</td><td>ResNet-12</td><td>65.31 ± 0.51</td><td>81.26 ± 0.23</td><td>68.62 ± 0.27</td><td>83.74 ±0.18</td></tr><tr><td>COSOC* (ours)</td><td>ResNet-12</td><td>69.28 ± 0.49</td><td>85.16 ± 0.42</td><td>73.57 ± 0.43</td><td>87.57 ± 0.10</td></tr></table>",
|
| 851 |
+
"bbox": [
|
| 852 |
+
199,
|
| 853 |
+
143,
|
| 854 |
+
795,
|
| 855 |
+
454
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 8
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Note that if we apply only the SOC algorithm on CC, the performance degrades. This indicates that COS and SOC are both necessary: COS provides the discrimination ability of foreground objects and SOC leverages it to maximally boost the performance. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
176,
|
| 864 |
+
477,
|
| 865 |
+
823,
|
| 866 |
+
518
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 8
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "5.3 Comparison to Saliency-based Foreground Extractors ",
|
| 873 |
+
"text_level": 1,
|
| 874 |
+
"bbox": [
|
| 875 |
+
173,
|
| 876 |
+
544,
|
| 877 |
+
588,
|
| 878 |
+
559
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "There could be other possible ways of extracting foreground objects. A simple yet possibly strong baseline could be running saliency detection to extract the most salient region in an image, followed by cropping to obtain patches without background. We consider comparing with three classical unsupervised saliency methods—RBD [69], FT [1] and MBD [65]. The cropping threshold is specially tuned. For training, fusion sampling with probability 0.5 is used for unsupervised saliency methods. For evaluation, We replace the original images with crops obtained by unsupervised saliency methods directly for classification. Tab. 2 displays the comparisons of performance using different foreground extraction methods applied at training or evaluation. For fair comparison, all methods are trained from scratch, and all compared baselines are evaluated with multi-cropping (i.e. using the average of features obtained from multiple crops for classification)and tested on the same backbone (COS trained). ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
173,
|
| 887 |
+
573,
|
| 888 |
+
825,
|
| 889 |
+
726
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 8
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "The results show that: (1) Our method performs consistently much better than the listed unsupervised saliency methods. (2) The performance of different unsupervised saliency methods varies. While RBD gives a small improvement, MBD and FT have negative effect on the performance. The performance severely depends on the effectiveness of unsupervised saliency methods, and is very sensitive to the cropping threshold. Intuitively speaking, saliency detection methods focus on noticeable objects in the image, and might fail when there is another irrelevant salient object in the image (e.g., a man is walking a dog. Dog is the label, but the man is of high saliency). On the contrary, our method focuses on shared objects across images in the same class, thereby avoiding this problem. In addition, our COS algorithm has the ability to dynamically assign foreground scores to different patches, which reduces the risk of overconfidence. One of our main contributions is paving a new way towards improving FSL by rectifying shortcut learning of background, which can be implemented using any effective methods. Given the upper bound with ground truth foreground, we believe there is room to improve and there can be other more effective approaches in the future. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
731,
|
| 899 |
+
825,
|
| 900 |
+
911
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "image",
|
| 906 |
+
"img_path": "images/3ab616a6195363bd563d3bf2e73da6c5f9695a968f315c522360602c0f3b52ac.jpg",
|
| 907 |
+
"image_caption": [
|
| 908 |
+
"Figure 6: Examples of objects obtained with COS from the training set of miniImageNet. The first row shows the original images;the second row shows the picked patch with the highest foreground score. "
|
| 909 |
+
],
|
| 910 |
+
"image_footnote": [],
|
| 911 |
+
"bbox": [
|
| 912 |
+
179,
|
| 913 |
+
87,
|
| 914 |
+
787,
|
| 915 |
+
169
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 9
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "image",
|
| 921 |
+
"img_path": "images/7f65b76b5deebbac9324f58291087107217b0b2cc19a6557a4f2fa52a22bee6a.jpg",
|
| 922 |
+
"image_caption": [
|
| 923 |
+
"Figure 7: Visualization examples of the SOC algorithm. The first row displays 5 images that belong to dalmatian and guitar classes respectively from evaluation set of miniImageNet. The second row shows image patches that are picked up from the first round of SOC algorithm. Our method succesfully puts focus on the shared contents/foreground. "
|
| 924 |
+
],
|
| 925 |
+
"image_footnote": [],
|
| 926 |
+
"bbox": [
|
| 927 |
+
178,
|
| 928 |
+
222,
|
| 929 |
+
769,
|
| 930 |
+
315
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 9
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "5.4 Comparison to State-of-the-Arts ",
|
| 937 |
+
"text_level": 1,
|
| 938 |
+
"bbox": [
|
| 939 |
+
176,
|
| 940 |
+
396,
|
| 941 |
+
439,
|
| 942 |
+
411
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 9
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Tab. 3 presents 5-way 1-shot and 5-shot classification results on miniImageNet and tieredImageNet. We compare with state-of-the-art few-shot learning methods. For fair comparison, we reimplement some methods, and evaluate them with multi-cropping. See Appendix G for a detailed study on the influence of multi-cropping. Our method achieves state-of-the-art performance under all settings except for 1-shot task on tieredImageNet, on which the performance of our method is slightly worse than CA, which uses WRN-28-10, a deeper backbone, as the feature extractor. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
174,
|
| 951 |
+
422,
|
| 952 |
+
825,
|
| 953 |
+
507
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 9
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "5.5 Visualization ",
|
| 960 |
+
"text_level": 1,
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
529,
|
| 964 |
+
303,
|
| 965 |
+
542
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 9
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Fig. 6 and 7 display visualization examples of the COS and SOC algorithms. See more examples in Appendix H. Thanks to the well-designed mechanism of capturing shared inter-image information, the COS and SOC algorithms are capable of locating foreground patches embodied in complicated, multi-object scenery. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
174,
|
| 974 |
+
556,
|
| 975 |
+
826,
|
| 976 |
+
612
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 9
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "6 Conclusion ",
|
| 983 |
+
"text_level": 1,
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
637,
|
| 987 |
+
299,
|
| 988 |
+
654
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 9
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "Few-shot image classification benefits from increasingly more complex network and algorithm design, but little attention has been focused on image itself. In this paper, we reveal that image background serves as a source of harmful knowledge that few-shot learning models easily absorb in. This problem is tackled by our COSOC framework that can draw the model’s attention to image foreground at both training and evaluation. Our method is only one possible solution, and future work may include exploring the potential of unsupervised segmentation or detection algorithms which may be a more reliable alternative of random cropping, or looking for a completely different but better algorithm customized for foreground extraction. ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
174,
|
| 997 |
+
671,
|
| 998 |
+
825,
|
| 999 |
+
782
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 9
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1006 |
+
"text_level": 1,
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
174,
|
| 1009 |
+
806,
|
| 1010 |
+
553,
|
| 1011 |
+
824
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 9
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Special thanks to Qi Yong, who gives indispensable support on the spirit of this paper. We also thank Junran Peng for his help and fruitful discussions. This paper was partially supported by the National Key Research and Development Program of China (No. 2018AAA0100204), and a key program of fundamental research from Shenzhen Science and Technology Innovation Commission (No. JCYJ20200109113403826). ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
842,
|
| 1021 |
+
825,
|
| 1022 |
+
911
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 9
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "References ",
|
| 1029 |
+
"text_level": 1,
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
174,
|
| 1032 |
+
89,
|
| 1033 |
+
266,
|
| 1034 |
+
106
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 10
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "salient region detection. In CVPR, 2009. \n[2] Arman Afrasiyabi, Jean-François Lalonde, and Christian Gagné. Associative alignment for few-shot image classification. In ECCV, 2020. \n[3] Sungyong Baik, Myungsub Choi, Janghoon Choi, Heewon Kim, and Kyoung Mu Lee. Meta-learning with adaptive hyperparameters. In NIPS, 2020. \n[4] Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In ECCV, 2018. \n[5] Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. In NIPS, 2020. \n[6] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020. [7] Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. In ICLR, 2019. \n[8] Yinbo Chen, Zhuang Liu, Huijuan Xu, Trevor Darrell, and Xiaolong Wang. Meta-baseline: exploring simple meta-learning for few-shot learning. In ICCV, 2021. \n[9] Zitian Chen, Yanwei Fu, Yu-Xiong Wang, Lin Ma, Wei Liu, and Martial Hebert. Image deformation meta-networks for one-shot learning. In CVPR, 2019. \n[10] Carl Doersch, Ankush Gupta, and Andrew Zisserman. Crosstransformers: spatially-aware few-shot transfer. In NIPS, 2020. \n[11] Nanyi Fei, Zhiwu Lu, Tao Xiang, and Songfang Huang. MELR: meta-learning via modeling episode-level relationships for few-shot learning. In ICLR, 2021. \n[12] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017. \n[13] Yizhao Gao, Nanyi Fei, Guangzhen Liu, Zhiwu Lu, and Tao Xiang. Contrastive prototype learning with augmented embeddings for few-shot learning. In UAI, 2021. \n[14] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, 2018. \n[15] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Ávila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. Bootstrap your own latent - A new approach to selfsupervised learning. In NIPS, 2020. \n[16] Bharath Hariharan and Ross B. Girshick. Low-shot visual recognition by shrinking and hallucinating features. In ICCV, 2017. \n[17] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross B. Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020. \n[18] Timothy Hospedales, Antreas Antoniou, Paul Micaelli, and Amos Storkey. Meta-learning in neural networks: A survey. In TPAMI, 2021. \n[19] Ruibing Hou, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xilin Chen. Cross attention network for few-shot classification. In NIPS, 2019. \n[20] Muhammad Abdullah Jamal and Guo-Jun Qi. Task agnostic meta-learning for few-shot learning. In CVPR, 2019. \n[21] Jaekyeom Kim, Hyoungseok Kim, and Gunhee Kim. Model-agnostic boundary-adversarial sampling for test-time generalization in few-shot learning. In ECCV, 2020. \n[22] Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. Meta-learning with differentiable convex optimization. In CVPR, 2019. \n[23] Aoxue Li, Weiran Huang, Xu Lan, Jiashi Feng, Zhenguo Li, and Liwei Wang. Boosting few-shot learning with adaptive margin loss. In CVPR, 2020. \n[24] Fei-Fei Li, Robert Fergus, and Pietro Perona. One-shot learning of object categories. In TPAMI, 2006. \n[25] Hongyang Li, David Eigen, Samuel Dodge, Matthew Zeiler, and Xiaogang Wang. Finding task-relevant features for few-shot learning by category traversal. In CVPR, 2019. \n[26] Kai Li, Yulun Zhang, Kunpeng Li, and Yun Fu. Adversarial feature hallucination networks for few-shot learning. In CVPR, 2020. \n[27] Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Meta-sgd: Learning to learn quickly for few-shot learning. arXiv preprint arXiv:1707.09835, 2017. \n[28] Yann Lifchitz, Yannis Avrithis, Sylvaine Picard, and Andrei Bursuc. Dense classification and implanting for few-shot learning. In CVPR, 2019. \n[29] Bin Liu, Yue Cao, Yutong Lin, Qi Li, Zheng Zhang, Mingsheng Long, and Han Hu. Negative margin matters: Understanding margin in few-shot classification. In ECCV, 2020. \n[30] Chen Liu, Yanwei Fu, Chengming Xu, Siqian Yang, and Jilin Li. Learning a few-shot embedding model with contrastive learning. In AAAI, 2021. \n[31] Xu Luo, Yuxuan Chen, Liangjian Wen, Lili Pan, and Zenglin Xu. Boosting few-shot classification with view-learnable contrastive learning. In ICME, 2021. \n[32] James MacQueen et al. Some methods for classification and analysis of multivariate observations. In Proceedings of the fifth Berkeley symposium on mathematical statistics and probability, 1967. \n[33] Orchid Majumder, Avinash Ravichandran, Subhransu Maji, Marzia Polito, Rahul Bhotika, and Stefano Soatto. Revisiting contrastive learning for few-shot classification. arXiv preprint arXiv:2101.11058, 2021. \n[34] Tsendsuren Munkhdalai and Hong Yu. Meta networks. In ICLR, 2017. \n[35] Yassine Ouali, Céline Hudelot, and Myriam Tami. Spatial contrastive learning for few-shot classification. In ECML/PKDD, 2021. \n[36] Eunbyung Park and Junier B. Oliva. Meta-curvature. In NIPS, 2019. \n[37] Seong-Jin Park, Seungju Han, Ji-Won Baek, Insoo Kim, Juhwan Song, Haebeom Lee, Jae-Joon Han, and Sung Ju Hwang. Meta variance transfer: Learning to augment from the others. In ICML, 2020. \n[38] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In NIPS, 2019. \n[39] Aravind Rajeswaran, Chelsea Finn, Sham M. Kakade, and Sergey Levine. Meta-learning with implicit gradients. In NIPS, 2019. \n[40] Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In ICLR, 2017. \n[41] Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, and Richard S. Zemel. Meta-learning for semi-supervised few-shot classification. In ICLR, 2018. \n[42] Mamshad Nayeem Rizve, Salman Khan, Fahad Shahbaz Khan, and Mubarak Shah. Exploring complementary strengths of invariant and equivariant representations for few-shot learning. In CVPR, 2021. \n[43] Amir Rosenfeld, Richard S. Zemel, and John K. Tsotsos. The elephant in the room. arXiv preprint arXiv:1808.03305, 2018. \n[44] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. In IJCV, 2015. \n[45] Andrei A. Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. In ICLR, 2019. \n[46] Eli Schwartz, Leonid Karlinsky, Joseph Shtok, Sivan Harary, Mattias Marder, Abhishek Kumar, Rogério Schmidt Feris, Raja Giryes, and Alexander M. Bronstein. Delta-encoder: an effective sample synthesis method for few-shot object recognition. In NIPS, 2018. \n[47] Christian Simon, Piotr Koniusz, Richard Nock, and Mehrtash Harandi. Adaptive subspaces for few-shot learning. In CVPR, 2020. \n[48] Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning. In NIPS, 2017. \n[49] Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H. S. Torr, and Timothy M. Hospedales. Learning to compare: Relation network for few-shot learning. In CVPR, 2018. \n[50] Sebastian Thrun and Lorien Y. Pratt. Learning to learn: Introduction and overview. In Learning to Learn, 1998. \n[51] Yonglong Tian, Yue Wang, Dilip Krishnan, Joshua B. Tenenbaum, and Phillip Isola. Rethinking few-shot image classification: A good embedding is all you need? In ECCV, 2020. \n[52] Antonio Torralba. Contextual priming for object detection. IJCV, 2003. \n[53] Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In NIPS, 2016. \n[54] Yu-Xiong Wang, Ross B. Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In CVPR, 2018. \n[55] Davis Wertheimer, Luming Tang, and Bharath Hariharan. Few-shot classification with feature map reconstruction networks. In CVPR, 2021. \n[56] Kai Xiao, Logan Engstrom, Andrew Ilyas, and Aleksander Madry. Noise or signal: The role of image backgrounds in object recognition. In ICLR, 2021. \n[57] Chengming Xu, Chen Liu, Li Zhang, Chengjie Wang, Jilin Li, Feiyue Huang, Xiangyang Xue, and Yanwei Fu. Learning dynamic alignment via meta-filter for few-shot learning. In CVPR, 2021. \n[58] Jin Xu, Jean-Francois Ton, Hyunjik Kim, Adam R. Kosiorek, and Yee Whye Teh. Metafun: Meta-learning with iterative functional updates. In ICML, 2020. \n[59] Weijian Xu, yifan xu, Huaijin Wang, and Zhuowen Tu. Attentional constellation nets for few-shot learning. In ICLR, 2021. \n[60] Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Few-shot learning via embedding adaptation with set-to-set functions. In CVPR, 2020. \n[61] Sung Whan Yoon, Jun Seo, and Jaekyun Moon. Tapnet: Neural network augmented with task-adaptive projection for few-shot learning. In ICML, 2019. \n[62] Zhongqi Yue, Hanwang Zhang, Qianru Sun, and Xian-Sheng Hua. Interventional few-shot learning. In NIPS, 2020. \n[63] Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Few-shot image classification with differentiable earth mover’s distance and structured classifiers. In CVPR, 2020. \n[64] Jianguo Zhang, Marcin Marszalek, Svetlana Lazebnik, and Cordelia Schmid. Local features and kernels for classification of texture and object categories: A comprehensive study. IJCV, 2007. \n[65] Jianming Zhang, Stan Sclaroff, Zhe L. Lin, Xiaohui Shen, Brian L. Price, and Radomír Mech. Minimum barrier salient object detection at 80 FPS. In ICCV, 2015. \n[66] Manli Zhang, Jianhong Zhang, Zhiwu Lu, Tao Xiang, Mingyu Ding, and Songfang Huang. IEPT: instancelevel and episode-level pretext tasks for few-shot learning. In ICLR, 2021. \n[67] Ruixiang Zhang, Tong Che, Zoubin Ghahramani, Yoshua Bengio, and Yangqiu Song. Metagan: An adversarial approach to few-shot learning. In NIPS, 2018. \n[68] Nanxuan Zhao, Zhirong Wu, Rynson WH Lau, and Stephen Lin. What makes instance discrimination good for transfer learning? In ICLR, 2021. \n[69] Wangjiang Zhu, Shuang Liang, Yichen Wei, and Jian Sun. Saliency optimization from robust background detection. In CVPR, 2014. \n[70] Luisa M. Zintgraf, Kyriacos Shiarlis, Vitaly Kurin, Katja Hofmann, and Shimon Whiteson. Fast context adaptation via meta-learning. In ICML, 2019. ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
171,
|
| 1043 |
+
132,
|
| 1044 |
+
828,
|
| 1045 |
+
912
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 10
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
171,
|
| 1054 |
+
99,
|
| 1055 |
+
828,
|
| 1056 |
+
911
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 11
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
171,
|
| 1065 |
+
92,
|
| 1066 |
+
828,
|
| 1067 |
+
426
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 12
|
| 1070 |
+
}
|
| 1071 |
+
]
|
parse/train/N1i6BJzouX4/N1i6BJzouX4_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/N1i6BJzouX4/N1i6BJzouX4_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/hu2aMLzOxC/hu2aMLzOxC.md
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ASYMMETRIC SELF-PLAY FOR AUTOMATIC GOAL DIS-COVERY IN ROBOTIC MANIPULATION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We train a single, goal-conditioned policy that can solve many robotic manipulation tasks, including tasks with previously unseen goals and objects. We rely on asymmetric self-play for goal discovery, where two agents, Alice and Bob, play a game. Alice is asked to propose challenging goals and Bob aims to solve them. We show that this method can discover highly diverse and complex goals without any human priors. Bob can be trained with only sparse rewards, because the interaction between Alice and Bob results in a natural curriculum and Bob can learn from Alice’s trajectory when relabeled as a goal-conditioned demonstration. Finally, our method scales, resulting in a single policy that can generalize to many unseen tasks such as setting a table, stacking blocks, and solving simple puzzles. Videos of a learned policy is available at https://robotics-self-play.github.io.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
We are motivated to train a single goal-conditioned policy $( \mathbf { | K a e l b l i n g right| } , \mathbf { | 9 9 3 | } )$ that can solve any robotic manipulation task that a human may request in a given environment. In this work, we make progress towards this goal by solving a robotic manipulation problem in a table-top setting where the robot’s task is to change the initial configuration of a variable number of objects on a table to match a given goal configuration. This problem is simple in its formulation but likely to challenge a wide variety of cognitive abilities of a robot as objects become diverse and goals become complex.
|
| 12 |
+
|
| 13 |
+
Motivated by the recent success of deep reinforcement learning for robotics (Levine et al., 2016; Gu et al., 2017; Hwangbo et al., 2019; OpenAI et al., 2019a), we tackle this problem using deep reinforcement learning on a very large training distribution. An open question in this approach is how we can build a training distribution rich enough to achieve generalization to many unseen manipulation tasks. This involves defining both an environment’s initial state distribution and a goal distribution. The initial state distribution determines how we sample a set of objects and their configuration at the beginning of an episode, and the goal distribution defines how we sample target states given an initial state. In this work, we focus on a scalable way to define a rich goal distribution.
|
| 14 |
+
|
| 15 |
+
The research community has started to explore automated ways of defining goal distributions. For example, previous works have explored learning a generative model of goal distributions (Florensa et al., 2018; Nair et al., 2018b; Racaniere et al., 2020) and collecting teleoperated robot trajectories to identify goals (Lynch et al., 2020; Gupta et al., 2020) In this paper, we extend an alternative approach called asymmetric self-play (Sukhbaatar et al., $\mathbf { \widehat { 2 0 1 8 b } } _ { \mathbf { \widehat { a } } }$ for automated goal generation. Asymmetric self-play trains two RL agents named Alice and Bob. Alice learns to propose goals that Bob is likely to fail at, and Bob, a goal-conditioned policy, learns to solve the proposed goals. Alice proposes a goal by manipulating objects and Bob has to solve the goal starting from the same initial state as Alice’s. By embodying these two agents into the same robotic hardware, this setup ensures that all proposed goals are provided with at least one solution: Alice’s trajectory.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
(a) Table-top setting with a robot arm (b) Example initial state for training (c) Example holdout tasks
|
| 19 |
+
Figure 1: (a) We train a policy that controls a robot arm operating in a table-top setting. (b) Randomly placed ShapeNet (Chang et al., 2015) objects constitute an initial state distribution for training. (c) We use multiple manually designed holdout tasks to evaluate the learned policy.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 2: (a) We train a goal-conditioned policy on a single training distribution and evaluate its performance on many unseen holdout tasks. (b) To construct a training distribution, we sample an initial state from a predefined distribution, and run a goal setting policy (Alice) to generate a goal. In one episode, Alice is asked to generate 5 goals and Bob solves them in sequence until it fails.
|
| 23 |
+
|
| 24 |
+
There are two main reasons why we consider asymmetric self-play to be a promising goal generation and learning method. First, any proposed goal is achievable, meaning that there exists at least one solution trajectory that Bob can follow to achieve the goal. Because of this property, we can exploit Alice’s trajectory to provide additional learning signal to Bob via behavioral cloning. This additional learning signal alleviates the overhead of heuristically designing a curriculum or reward shaping for learning. Second, this approach does not require labor intensive data collection.
|
| 25 |
+
|
| 26 |
+
In this paper, we show that asymmetric self-play can be used to train a goal-conditioned policy for complex object manipulation tasks, and the learned policy can zero-shot generalize to many manually designed holdout tasks, which consist of either previously unseen goals, previously unseen objects, or both. To the best of our knowledge, this is the first work that presents zero-shot generalization to many previously unseen tasks by training purely with asymmetric self-play.
|
| 27 |
+
|
| 28 |
+
# 2 PROBLEM FORMULATION
|
| 29 |
+
|
| 30 |
+
Our training environment for robotic manipulation consists of a robot arm with a gripper attached and a wide range of objects placed on a table surface (Figure $\boxed { 1 \mathrm { a } } \boxed { 1 \mathrm { b } }$ . The goal-conditioned policy learns to control the robot to rearrange randomly placed objects (the initial state) into a specified goal configuration (Figure 1c). We aim to train a policy on a single training distribution and to evaluate its performance over a suite of holdout tasks which are independently designed and not explicitly present during training $\mathbb { ( F i g u r e 2 a ) }$ . In this work, we construct the training distribution via asymmetric self-play (Figure 2b) to achieve generalization to many unseen holdout tasks (Figure 1c)
|
| 31 |
+
|
| 32 |
+
Mathematical formulation Formally, we model the interaction between an environment and a goal-conditioned policy as a goal-augmented Markov decision process $\mathcal { M } = \langle \boldsymbol { S } , \mathcal { A } , \mathcal { P } , \mathcal { R } , \boldsymbol { \mathcal { G } } \rangle$ , where $s$ is the state space, $\mathcal { A }$ is the action space, $\mathcal { P } : \mathcal { S } \times \mathcal { A } \times \mathcal { S } \mapsto \mathbb { R }$ denotes the transition probability, ${ \mathcal { G } } \subseteq S$ specifies the goal space and $\mathcal { R } : \mathcal { S } \times \mathcal { G } \mapsto \mathbb { R }$ is a goal-specific reward function. A goalaugmented trajectory sequence is $\left\{ \left( s _ { 0 } , g , a _ { 0 } , r _ { 0 } \right) , \ldots , \left( s _ { t } , g , a _ { t } , r _ { t } \right) \right\}$ , where the goal is provided to the policy as part of the observation at every step. We say a goal is achieved if $s _ { t }$ is sufficiently close to $g$ (Appendix $\mathbf { A } . 2 )$ . With a slightly overloaded notation, we define the goal distribution $\mathcal { G } ( \boldsymbol { g } | \boldsymbol { s } _ { 0 } )$ as the probability of a goal state $g \in { \mathcal { G } }$ conditioned on an initial state $s _ { 0 } \in S$ .
|
| 33 |
+
|
| 34 |
+
Training goal distribution A naive design of the goal distribution $\mathcal { G } ( \boldsymbol { g } | \boldsymbol { s } _ { 0 } )$ is to randomly place objects uniformly on the table, but it is unlikely to generate interesting goals, such as an object picked up and held above the table surface by a robot gripper. Another possible approach, collecting tasks and goals manually, is expensive and hard to scale. We instead sidestep these issues and automatically generate goals via training based on asymmetric self-play (Sukhbaatar et al., $\textcircled { 2 0 1 8 6 } \textcircled { 2 }$ . Asymmetric self-play involves using a policy named Alice $\pi _ { A } ( a | s )$ to set goals and a goal-conditioned policy Bob $\pi _ { B } ( a | s , g )$ to solve goals proposed by Alice, as illustrated in ${ \overline { { \mathbb { F } \mathrm { i g u r e ~ } 2 \mathrm { b } } } } .$ We run $\pi _ { A }$ to generate a trajectory $\dot { \tau } _ { A } = \{ ( s _ { 0 } , \bar { a } _ { 0 } , \bar { r _ { 0 } } ) , \dot { \mathrm { ~ . ~ . ~ } } , ( s _ { T } , a _ { T } , r _ { T } ) \}$ and the last state is labelled as a goal $g$ for $\pi _ { B }$ to solve. The goal distribution $\mathcal { G } ( s _ { T } = g | s _ { 0 } )$ is fully determined by $\pi _ { A }$ and we train Bob only on this goal distribution. We therefore say zero-shot generalization when Bob generalizes to a holdout task which is not explicitly encoded into the training distribution.
|
| 35 |
+
|
| 36 |
+
Evaluation on holdout tasks To assess zero-shot generalization of $\pi _ { B } ( a | s , g )$ from our training setup, we hand-designed a suite of holdout tasks with goals that are never directly incorporated into the training distribution. Some holdout tasks also feature previously unseen objects. The holdout tasks are designed to either test whether a specific skill has been learned, such as the ability to pick up objects $\overbrace { ( \mathrm { F i g u r e } 3 ) }$ , or represent a semantically interesting task, such as setting a table $( { \mathrm { f i g u r e } } \ { \mathrm { l c } } )$ Appendix $\overline { { \mathbb { B } . 6 } }$ describes the list of holdout tasks that we use in our experiments. Note that none of the holdout tasks are used for training $\pi _ { B } ( a | s , g )$ .
|
| 37 |
+
|
| 38 |
+
# 3 ASYMMETRIC SELF-PLAY
|
| 39 |
+
|
| 40 |
+
To train Alice policy $\pi _ { A } ( a | s )$ and Bob policy $\pi _ { B } ( a | s , g )$ , we run the following multi-goal game within one episode, as illustrated in Figure 2b:
|
| 41 |
+
|
| 42 |
+
1. An initial state $s _ { 0 }$ is sampled from an initial state distribution. Alice and Bob are instantiated into their own copies of the environment. Alice and Bob alternate turns as follows.
|
| 43 |
+
2. Alice’s turn. Alice interacts with its environment for a fixed number of $T$ steps and may rearrange the objects. The state at the end of Alice’s turn $s _ { T }$ will be used as a goal $g$ for Bob. If the proposed goal is invalid (e.g. if Alice has not moved any objects, or if an object has fallen off the table), the episode terminates.
|
| 44 |
+
3. Bob’s turn. Bob receives reward if it successfully achieves the goal $g$ in its environment. Bob’s turn ends when it succeeds at achieving the goal or reaches a timeout. If Bob’s turn ends in a failure, its remaining turns are skipped and treated as failures, while we let Alice to keep generating goals.
|
| 45 |
+
4. Alice receives reward if Bob fails to solve the goal that Alice proposed. Steps 2–3 are repeated until 5 goals are set by Alice or Alice proposes an invalid goal, and then the episode terminates.
|
| 46 |
+
|
| 47 |
+
The competition created by this game encourages Alice to propose goals that are increasingly challenging to Bob, while Bob is forced to solve increasingly complex goals. The multi-goal setup was chosen to allow Bob to take advantage of environmental information discovered earlier in the episode to solve its remaining goals, which OpenAI et al. (2019a) found to be important for transfer to physical systems. Note however that in this work we focus on solving goals in simulation only. To improve stability and avoid forgetting, we have Alice and Bob play against past versions of their respective opponent in $2 0 \%$ of games. More details about the game structure and pseudocode for training with asymmetric self-play are available in Appendix A.
|
| 48 |
+
|
| 49 |
+
# 3.1 REWARD STRUCTURE
|
| 50 |
+
|
| 51 |
+
For Bob, we assign sparse goal-conditioned rewards. We measure the positional and rotational distance between an object and its goal state as the Euclidean distance and the Euler angle rotational distance, respectively. Whenever both distance metrics are below a small error (the success threshold), this object is deemed to be placed close enough to the goal state and Bob receives 1 reward immediately. But if this object is moved away from the goal state that it has arrived at in past steps, Bob obtains -1 reward such that the sum of per-object reward is at most 1 during a given turn. When all of the objects are in their goal state, Bob receives 5 additional reward and its turn is over.
|
| 52 |
+
|
| 53 |
+
For Alice, we assign a reward after Bob has attempted to solve the goal: 5 reward if Bob failed at solving the goal, and 0 if Bob succeeded. We shape Alice’s reward slightly by adding 1 reward if it has set a valid goal, defined to be when no object has fallen off the table and any object has been moved more than the success threshold. An additional penalty of $- 3$ reward is introduced when Alice sets a goal with objects outside of the placement area, defined to be a fixed 3D volume within the view of the robot’s camera. More details are discussed in Appendix A.2.
|
| 54 |
+
|
| 55 |
+
# 3.2 ALICE BEHAVIORAL CLONING (ABC)
|
| 56 |
+
|
| 57 |
+
One of the main benefits of using asymmetric self-play is that the generated goals come with at least one solution to achieve it: Alice’s trajectory. Similarly to Sukhbaatar et al. $\overline { { ( 2 0 1 8 \mathrm { a } ) } }$ , we exploit this property by training Bob with Behavioral Cloning (BC) from Alice’s trajectory, in addition to the reinforcement learning (RL) objective. We call this learning mechanism Alice Behavioral Cloning (ABC). We propose several improvements over the original formulation in Sukhbaatar et al. (2018a).
|
| 58 |
+
|
| 59 |
+
Demonstration trajectory filtering Compared to BC from expert demonstrations, using Alice’s trajectory needs extra care. Alice’s trajectory is likely to be suboptimal for solving the goal, as Alice might arrive at the final state merely by accident. Therefore, we only consider trajectories with goals that Bob failed to solve as demonstrations, to avoid distracting Bob with suboptimal examples. Whenever Bob fails, we relabel Alice’s trajectory $\tau _ { A }$ to be a goal-augmented version $\tau _ { \mathrm { B C } } = \{ ( s _ { 0 } , s _ { T } , a _ { 0 } , r _ { 0 } ) , \dots , ( s _ { T } , s _ { T } , a _ { T } , r _ { T } ) \}$ as a demonstration for BC, where $s _ { T }$ is the goal.
|
| 60 |
+
|
| 61 |
+
PPO-style BC loss clipping The objective for training Bob is $\mathcal { L } = \mathcal { L } _ { \mathrm { R L } } + \beta \mathcal { L } _ { \mathrm { a b c } }$ , where ${ \mathcal { L } } _ { \mathrm { R L } }$ is an RL objective and $\mathcal { L } _ { \mathrm { a b c } }$ is the ABC loss. $\beta$ is a hyperparameter controlling the relative importance of the BC loss. We set $\beta = 0 . 5$ throughout the whole experiment. A naive BC loss is to minimize the negative log-likelihood of demonstrated actions, $- \mathbb { E } _ { ( s _ { t } , g _ { t } , a _ { t } ) \in \mathcal { D } _ { \mathrm { B C } } } \left[ \log \pi _ { B } ( a _ { t } | s _ { t } , g _ { t } ; \theta ) \right]$ where $\mathcal { D } _ { \mathrm { B C } }$ is a mini-batch of demonstration data and $\pi _ { B }$ is parameterized by $\theta$ . We found that overly-aggressive policy changes triggered by BC sometimes led to learning instabilities. To prevent the policy from changing too drastically, we introduce PPO-style loss clipping (Schulman et al., $\bar { 2 0 1 7 } \dot { ) }$ on the BC loss by setting the advantage $\hat { A } = 1$ in the clipped surrogate objective:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\mathcal { L } _ { \mathrm { a b c } } = - \mathbb { E } _ { ( s _ { t } , g _ { t } , a _ { t } ) \in \mathcal { D } _ { \mathrm { B C } } } \left[ \mathrm { c l i p } \Big ( \frac { \pi _ { B } \big ( a _ { t } \big | s _ { t } , g _ { t } ; \theta \big ) } { \pi _ { B } \big ( a _ { t } \big | s _ { t } , g _ { t } ; \theta _ { \mathrm { o l d } } \big ) } , 1 - \epsilon , 1 + \epsilon \Big ) \right]
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $\pi _ { B } ( a _ { t } | s _ { t } , g _ { t } ; \theta )$ is Bob’s likelihood on a demonstration based on the parameters that we are optimizing, and $\pi _ { B } \big ( \dot { a } _ { t } | s _ { t } , g _ { t } ; \theta _ { \mathrm { o l d } } \big )$ is the likelihood based on Bob’s behavior policy (at the time of demonstration collection) evaluated on a demonstration. This behavior policy is identical to the policy that we use to collect RL trajectories. By setting $\hat { A } = 1$ , this objective optimizes the naive BC loss, but clips the loss whenever $\frac { \pi _ { B } \left( a _ { t } | s _ { t } , g _ { t } ; \theta \right) } { \pi _ { B } \left( a _ { t } | s _ { t } , g _ { t } ; \theta _ { \mathrm { o l d } } \right) }$ is bigger than $1 + \epsilon$ , to prevent the policy from changing too much. $\epsilon$ is a clipping threshold and we use $\epsilon = 0 . 2$ in all the experiments.
|
| 68 |
+
|
| 69 |
+
# 4 RELATED WORK
|
| 70 |
+
|
| 71 |
+
Training distribution for RL In the context of multi-task RL (Beattie et al., 2016; Hausman et al., 2018; Yu et al., 2020), multi-goal RL (Kaelbling, 1993; Andrychowicz et al., $\overline { { \mathbb { Z } 0 1 7 } }$ , and meta RL (Wang et al., 2016; Duan et al., 2016), previous works manually designed a distribution of tasks or goals to see better generalization of a policy to a new task or goal. Domain randomization (Sadeghi & Levine, 2017b; Tobin et al., 2017; OpenAI et al., 2020) manually defines a distribution of simulated environments, but in service of generalizing to the same task in the real world.
|
| 72 |
+
|
| 73 |
+
There are approaches to grow the training distribution automatically (Srivastava et al., 2013). Selfplay (Tesauro, 1995; Silver et al., 2016; 2017; Bansal et al., 2018; OpenAI et al., 2019b; Vinyals et al., 2019) constructs an ever-growing training distribution where multiple agents learn by competing with each other, so that the resulting agent shows strong performance on a single game. OpenAI et al. $\textcircled { 1 2 0 1 9 2 }$ automatically grew a distribution of domain randomization parameters to accomplish better generalization in the task of solving a Rubik’s cube on the physical robot. Wang et al. (2019;
|
| 74 |
+
|
| 75 |
+
$\boxed { 2 0 2 0 }$ studied an automated way to keep discovering challenging 2D terrains and locomotion policies that can solve them in a 2D bipedal walking environment.
|
| 76 |
+
|
| 77 |
+
We employ asymmetric self-play to construct a training distribution for learning a goal-conditioned policy and to achieve generalization to unseen tasks. Florensa et al. (2018); Nair et al. (2018b); Racaniere et al. $\underline { { ( 2 0 2 0 ) } }$ had the same motivation as ours, but trained a generative model instead of a goal setting policy. Thus, the difficulties of training a generative model were inherited by these methods: difficulty of modeling a high dimensional space and generation of unrealistic samples. Lynch et al. $\underline { { \widehat { ( 2 0 2 0 ) } } }$ ; Gupta et al. $\underline { { \widehat { ( 2 0 2 0 ) } } }$ used teleoperation to collect arbitrary robot trajectories, and defined a goal distribution from the states in the collected trajectories. This approach likely requires a large number of robot trajectories for each environment configuration (e.g. various types of objects on a table), and randomization of objects was not studied in this context.
|
| 78 |
+
|
| 79 |
+
Asymmetric self-play Asymmetric self-play was proposed by Sukhbaatar et al. (2018b) as a way to supplement RL training. Sukhbaatar et al. $\underline { { \dot { \left( 2 0 1 8 \dot { 6 } \right) } } }$ mixed asymmetric self-play training with standard RL training on the target task and measured the performance on the target task. Sukhbaatar et al. $\textcircled { 2 0 1 8 \mathrm { a } }$ used asymmetric self-play to pre-train a hierarchical policy and evaluated the policy after fine-tuning it on a target task. $\boxed { \mathrm { L i u ~ e t ~ a l . } } \dot { \textcircled { 1 2 0 1 9 } }$ adopted self-play to encourage efficient learning with sparse reward in the context of an exploration competition between a pair of agents. As far as we know, no previous work has trained a goal-conditioned policy purely based on asymmetric selfplay and evaluated generalization to unseen holdout tasks.
|
| 80 |
+
|
| 81 |
+
Curriculum learning Many previous works showed the difficulty of RL and proposed an automated curriculum (Andrychowicz et al., 2017; Florensa et al., 2017; Salimans & Chen, 2018; Matiisen et al., 2019; Zhang et al., 2020) or auxiliary exploration objectives (Oudeyer et al., 2007; Baranes & Oudeyer, 2013; Pathak et al., 2017; Burda et al., 2019; Ecoffet et al., 2019; 2020) to learn predefined tasks. When training goal-conditioned policies, relabeling or reversing trajectories (Andrychowicz et al., 2017; Florensa et al., 2017; Salimans & Chen, 2018) or imitating successful demonstrations (Oh et al., 2018; Ecoffet et al., 2019; 2020) naturally reduces the task complexity. Our work shares a similarity in that asymmetric self-play alleviates the difficulty of learning a goal-conditioned policy via an intrinsic curriculum and imitation from the goal setter’s trajectory, but our work does not assume any predefined task or goal distribution.
|
| 82 |
+
|
| 83 |
+
Hierarchical reinforcement learning (HRL) Some HRL methods jointly trained a goal setting policy (high-level or manager policy) and a goal solving policy (low-level or worker policy) $\ " { \mathbb { V } } ^ { \mathrm { e z h - } }$ nevets et al., 2017; Levy et al., 2019; Nachum et al., 2018). However, the motivation for learning a goal setting policy in HRL is not to challenge the goal solving policy, but to cooperate to tackle a task that can be decomposed into a sequence of sub-goals. Hence, this goal setting policy is trained to optimize task reward for the target task, unlike asymmetric self-play where the goal setter is rewarded upon the other agent’s failure.
|
| 84 |
+
|
| 85 |
+
Robot learning for object manipulation. It has been reported that training a policy for multiobject manipulation is very challenging with sparse rewards (Riedmiller et al., 2018; Vecerik et al., $\dot { \textcircled { 2 0 1 8 } }$ One example is block stacking, which has been studied for a long time in robotics as it involves complex contact reasoning and long horizon motion planning (Deisenroth et al., $\textcircled { 2 0 1 1 }$ . Learning block stacking often requires a hand-designed curriculum (Li et al., 2019), meticulous reward shaping $( \mathrm { \overline { { P o p o v \ e t { a l . } } } } , \mathrm { \overline { { 2 0 1 7 } } } )$ , fine-tuning (Rusu et al., 2017), or human demonstrations (Nair et al., $\underline { { 2 0 1 8 \mathrm { a } } } ,$ Duan et al., 2017). In this work, we use block stacking as one of the holdout tasks to test zero-shot generalization, but without training on it.
|
| 86 |
+
|
| 87 |
+
# 5 EXPERIMENTS
|
| 88 |
+
|
| 89 |
+
In this section, we first show that asymmetric self-play generates an effective training curriculum that enables generalization to unseen hold-out tasks. Then, the experiment is scaled up to train in an environment containing multiple random complex objects and evaluate it with a set of holdout tasks containing unseen objects and unseen goal configurations. Finally, we demonstrate how critical ABC is for Bob to make progress in a set of ablation studies.
|
| 90 |
+
|
| 91 |
+

|
| 92 |
+
Figure 3: Holdout tasks in the environment using 1 or 2 blocks. The transparent blocks denote the desired goal state, while opaque blocks are the current state. (a) push: The blocks must be moved to their goal locations and orientations. There is no differentiation between the six block faces. (b) flip: Each side of the block is labelled with a unique letter. The blocks must be moved to make every face correctly positioned as what the goal specifies. (c) pick-and-place: One goal block is in the air. (d) stack: Two blocks must be stacked in the right order at the right location.
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
Figure 4: Generalization to unseen holdout tasks for blocks. Baselines are trained over a mixture of all holdout tasks. The solid lines represent 2-blocks, while the dashed lines are for 1-block. The $\mathbf { X }$ -axis denotes the number of training steps via asymmetric self-play. The y-axis is the zero-shot generalization performance of Bob policy at corresponding training checkpoints. Note that success rate curves of completely failed baselines are occluded by others.
|
| 96 |
+
|
| 97 |
+
# 5.1 EXPERIMENTAL SETUP
|
| 98 |
+
|
| 99 |
+
We implement the training environment2 described in Sec. 2 with randomly placed ShapeNet objects (Chang et al., 2015) as an initial state distribution. In addition, we set up another simpler environment using one or two blocks of fixed size, used for small-scale comparisons and ablation studies. Figure 3 visualizes four holdout tasks for this environment. Each task is designed to evaluate whether the robot has acquired certain manipulation skills: pushing, flipping, picking up and stacking blocks. Experiments in Sec. 5.2, 5.3 and 5.5 focus on blocks and experimental results based on ShapeNet objects are present on Sec. 5.4. More details on our training setups are in Appendix B.
|
| 100 |
+
|
| 101 |
+
We implement Alice and Bob as two independent policies of the same network architecture with memory (Appendix B.4), except that Alice has no observation on goal state. The policies take state observations (“state policy”) for experiments with blocks (Sec. $\underline { { \breve { 5 . 2 } } } \mathrm { , } \underline { { \breve { 5 . 3 } } } \mathrm { , }$ and $\underline { { \vec { \left. 5 . 5 \right. } } }$ , and take both vision and state observations (“hybrid policy”) for experiments with ShapeNet objects (Sec. 5.4). Both policies are trained with Proximal Policy Optimization (PPO) (Schulman et al., 2017).
|
| 102 |
+
|
| 103 |
+
# 5.2 GENERALIZATION TO UNSEEN GOALS WITHOUT MANUAL CURRICULA
|
| 104 |
+
|
| 105 |
+
One way to train a single policy to acquire all the skills in Figure 3 is to train a goal-conditioned policy directly over a mixture of these tasks. However, training directly over these tasks without a curriculum turns out to be very challenging, as the policy completely fails to make any progress.3 In contrast, Bob is able to solve all these holdout tasks quickly when learning via asymmetric self-play, without explicitly encoding any prior knowledge of the holdout tasks into the training distribution.
|
| 106 |
+
|
| 107 |
+
To gauge the effect of an intrinsic curriculum introduced by self-play, we carefully designed a set of non-self-play baselines using explicit curricula controlled by Automatic Domain Randomization (OpenAI et al., 2019a). All baselines are trained over a mixture of block holdout tasks as the goal distribution. We measure the effectiveness of a training setup by tracking the success rate for each holdout task, as shown in Figure 4. The no curriculum baseline fails drastically. The curriculum:distance baseline expands the distance between the initial and goal states gradually as training progresses, but only learns to push and flip a single block. The curriculum:distribution baseline, which slowly increases the proportion of pick-and-place and stacking goals in the training distribution, fails to acquire any skill. The curriculum:full baseline incorporates all hand-designed curricula yet still cannot learn how to pick up or stack blocks. We have spent a decent amount of time iterating and improving these baselines but found it especially difficult to develop a scheme good enough to compete with asymmetric self-play. See Appendix C.1 for more details of our baselines.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 5: Goals discovered by asymmetric self-play. Alice discovers many goals that are not covered by our manually designed holdout tasks on blocks.
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
Figure 6: The empirical payoff matrix between Alice and Bob. Average success rate over multiple self-play episode is visualized. Alice with more training steps generates more challenging goals that Bob cannot solve yet. Bob with more training steps can achieve more goals against the same Alice.
|
| 114 |
+
|
| 115 |
+
# 5.3 DISCOVERY OF NOVEL GOALS AND SOLUTIONS
|
| 116 |
+
|
| 117 |
+
Asymmetric self-play discovers novel goals and solutions that are not covered by our holdout tasks. As illustrated in Figure 5, Alice can lift multiple blocks at the same time, build a tower and then keep it balanced using an arm joint. Although it is a tricky strategy for Bob to learn on its own, with ABC, Bob eventually acquires the skills for solving such complex tasks proposed by Alice. Videos are available at https://robotics-self-play.github.io.
|
| 118 |
+
|
| 119 |
+
Figure 6 summarizes Alice and Bob’s learning progress against each other. For every pair of Alice and Bob, we ran multiple self-play episodes and measured the success rate. We observe an interesting trend with 2 blocks. As training proceeds, Alice tends to generate more challenging goals, where Bob shows lower success rate. With past sampling, Bob continues to make progress against versions of Alices from earlier optimization steps. This visualization suggests a desired dynamic of asymmetric self-play that could potentially lead to unbounded complexity: Alice continuously generates goals to challenge Bob, and Bob keeps making progress on learning to solve new goals.
|
| 120 |
+
|
| 121 |
+
# 5.4 GENERALIZATION TO UNSEEN OBJECTS AND GOALS
|
| 122 |
+
|
| 123 |
+
The experiments above show strong evidence that efficient curricula and novel goals can autonomously emerge in asymmetric self-play. To further challenge our approach, we scale it up to work with many more complex objects using more computational resources for training. We train a hybrid policy in an environment containing up to 10 random ShapeNet $\mathtt { ( F h a n g ~ e t ~ a l . ) } \overline { { \mathbb { P } \mathrm { 2 0 1 5 } } } \mathrm { ) }$ objects. During training, we randomize the number of objects and the object sizes via Automatic Domain Randomization (OpenAI et al., $\textcircled { 2 0 1 9 9 }$ . The hybrid policy uses vision observations to extract information about object geometry and size. We evaluate the Bob policy on a more diverse set of manipulation tasks, including semantically interesting ones. Many tasks contain unseen objects and complex goals, as illustrated in Figure 7.
|
| 124 |
+
|
| 125 |
+
The learned Bob policy achieves decent zero-shot generalization performance for many tasks. Success rates are reported in Figure 8. Several tasks are still challenging. For example, ball-capture requires delicate handling of rolling objects and lifting skills. The rainbow tasks call for an understanding of concave shapes. Understanding the ordering of placement actions is crucial for stacking more than 3 blocks in the desired order. The Bob policy learns such an ordering to some degree, but fails to fully generalize to an arbitrary number of stacked blocks.
|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
Figure 7: Example holdout tasks involving unseen objects and complex goal states. The goal states are illustrated here, and the initial states have randomly placed objects.
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
Figure 8: Success rates of a single goal-conditioned policy solving a variety of holdout tasks, averaged over 100 trials. The error bars indicate the $9 9 \%$ confidence intervals. Yellow, orange and blue bars correspond to success rates of manipulation tasks with blocks, YCB4objects and other uniquely built objects, respectively. Videos are available at https://robotics-self-play.github.io.
|
| 132 |
+
|
| 133 |
+
# 5.5 ABLATION STUDIES
|
| 134 |
+
|
| 135 |
+
We present a series of ablation studies designed for measuring the importance of each component in our asymmetric self-play framework, including Alice behavioral cloning (ABC), BC loss clipping, demonstration filtering, and the multi-goal game setup. We disable a single ingredient in each ablation run and compare with the complete self-play baseline in Figure 9.
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 9: The ablation studies compare four ablation runs each with one component disabled with the full baseline. Solid lines are for 2-blocks, dashed lines are for 1-block. The $\mathbf { X }$ -axis denotes the number of training steps via asymmetric self-play. The y-axis is the zero-shot generalization performance of Bob policy at corresponding training steps.
|
| 139 |
+
|
| 140 |
+
The no ABC baseline shows that Bob completely fails to solve any holdout task without ABC, indicating that ABC is a critical mechanism in asymmetric self-play. The no BC loss clipping baseline shows slightly slower learning on pick-and-place and stack, as well as some instabilities in the middle of training. Clipping in the BC loss is expected to help alleviate this instability by controlling the rate of policy change per optimizer iteration. The no demonstration filter baseline shows noticeable instability on flip, suggesting the importance of excluding suboptimal demonstrations from behavioral cloning. Finally, the single-goal baseline uses a single goal instead of 5 goals per episode during training. The evaluation tasks are also updated to require a single success per episode. Generalization of this baseline to holdout tasks turns out to be much slower and less stable. It signifies some advantages of using multiple goals per episode, perhaps due to the policy memory internalizing environmental information during multiple trials of goal solving.
|
| 141 |
+
|
| 142 |
+
The results of the ablation studies suggest that ABC with proper configuration and multi-goal gameplay are critical components of asymmetric self-play, alleviating the importance of manual curricula and facilitating efficient learning.
|
| 143 |
+
|
| 144 |
+
# 6 CONCLUSION
|
| 145 |
+
|
| 146 |
+
One limitation of our asymmetric self-play approach is that it depends on a resettable simulation environment as Bob needs to start from the same initial state as Alice’s. Therefore asymmetric self-play training has to happen in a simulator which can be easily updated to a desired state. In order to run the goal-solving policy on physical robots, we plan to adopt sim-to-real techniques in future work. Sim-to-real has been shown to achieve great performance on many robotic tasks in the real world (Sadeghi & Levine, 2017a; Tobin et al., 2017; James et al., 2019; OpenAI et al., 2020). One potential approach is to pre-train two agents via asymmetric self-play in simulation, and then fine-tune the Bob policy with domain randomization or data collected on physical robots.
|
| 147 |
+
|
| 148 |
+
In conclusion, we studied asymmetric self-play as a framework for defining a single training distribution to learn many arbitrary object manipulation tasks. Even without any prior knowledge about the target tasks, asymmetric self-play is able to train a strong goal-conditioned policy that can generalize to many unseen holdout tasks. We found that asymmetric self-play not only generates a wide range of interesting goals but also alleviates the necessity of designing manual curricula for learning such goals. We provided evidence that using the goal setting trajectory as a demonstration for training a goal solving policy is essential to enable efficient learning. We further scaled up our approach to work with various complex objects using more computation, and achieved zero-shot generalization to a collection of challenging manipulation tasks involving unseen objects and unseen goals.
|
| 149 |
+
|
| 150 |
+
# REFERENCES
|
| 151 |
+
|
| 152 |
+
Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. In Advances in neural information processing systems, 2017.
|
| 153 |
+
|
| 154 |
+
Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. In International Conference on Learning Representations, 2018.
|
| 155 |
+
|
| 156 |
+
Adrien Baranes and Pierre-Yves Oudeyer. Active learning of inverse models with intrinsically motivated goal exploration in robots. Robotics and Autonomous Systems, 61(1):49–73, 2013.
|
| 157 |
+
|
| 158 |
+
Charles Beattie, Joel Z Leibo, Denis Teplyashin, Tom Ward, Marcus Wainwright, Heinrich Küttler, Andrew Lefrancq, Simon Green, Víctor Valdés, Amir Sadik, et al. Deepmind lab. arXiv preprint arXiv:1612.03801, 2016.
|
| 159 |
+
|
| 160 |
+
Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. In International Conference on Learning Representations, 2019.
|
| 161 |
+
|
| 162 |
+
Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
|
| 163 |
+
|
| 164 |
+
Marc Peter Deisenroth, Carl Edward Rasmussen, and Dieter Fox. Learning to control a low-cost manipulator using data-efficient reinforcement learning. Robotics: Science and Systems VII, pp. 57–64, 2011.
|
| 165 |
+
|
| 166 |
+
Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. RL2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016.
|
| 167 |
+
|
| 168 |
+
Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in neural information processing systems, 2017.
|
| 169 |
+
|
| 170 |
+
Adrien Ecoffet, Joost Huizinga, Joel Lehman, Kenneth O Stanley, and Jeff Clune. Go-explore: a new approach for hard-exploration problems. arXiv preprint arXiv:1901.10995, 2019.
|
| 171 |
+
|
| 172 |
+
Adrien Ecoffet, Joost Huizinga, Joel Lehman, Kenneth O Stanley, and Jeff Clune. First return then explore. arXiv preprint arXiv:2004.12919, 2020.
|
| 173 |
+
|
| 174 |
+
Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Vlad Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In International Conference on Machine Learning, 2018.
|
| 175 |
+
|
| 176 |
+
Carlos Florensa, David Held, Markus Wulfmeier, Michael Zhang, and Pieter Abbeel. Reverse curriculum generation for reinforcement learning. In Conference on Robot Learning, 2017.
|
| 177 |
+
|
| 178 |
+
Carlos Florensa, David Held, Xinyang Geng, and Pieter Abbeel. Automatic goal generation for reinforcement learning agents. In International conference on machine learning, 2018.
|
| 179 |
+
|
| 180 |
+
Shixiang Gu, Ethan Holly, Timothy Lillicrap, and Sergey Levine. Deep reinforcement learning for robotic manipulation with asynchronous off-policy updates. In IEEE international conference on robotics and automation (ICRA), 2017.
|
| 181 |
+
|
| 182 |
+
Abhishek Gupta, Vikash Kumar, Corey Lynch, Sergey Levine, and Karol Hausman. Relay policy learning: Solving long-horizon tasks via imitation and reinforcement learning. In Conference on Robot Learning, 2020.
|
| 183 |
+
|
| 184 |
+
Karol Hausman, Jost Tobias Springenberg, Ziyu Wang, Nicolas Heess, and Martin Riedmiller. Learning an embedding space for transferable robot skills. In International Conference on Learning Representations, 2018.
|
| 185 |
+
|
| 186 |
+
Jemin Hwangbo, Joonho Lee, Alexey Dosovitskiy, Dario Bellicoso, Vassilios Tsounis, Vladlen Koltun, and Marco Hutter. Learning agile and dynamic motor skills for legged robots. Science Robotics, 4(26), 2019.
|
| 187 |
+
|
| 188 |
+
Stephen James, Paul Wohlhart, Mrinal Kalakrishnan, Dmitry Kalashnikov, Alex Irpan, Julian Ibarz, Sergey Levine, Raia Hadsell, and Konstantinos Bousmalis. Sim-to-real via sim-to-sim: Dataefficient robotic grasping via randomized-to-canonical adaptation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019.
|
| 189 |
+
|
| 190 |
+
Leslie Pack Kaelbling. Learning to achieve goals. In Proceedings of the 13th International Joint Conference on Artificial Intelligence, 1993.
|
| 191 |
+
|
| 192 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 193 |
+
|
| 194 |
+
Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 17(1):1334–1373, 2016.
|
| 195 |
+
|
| 196 |
+
Andrew Levy, George Konidaris, Robert Platt, and Kate Saenko. Learning multi-level hierarchies with hindsight. In International Conference on Learning Representations, 2019.
|
| 197 |
+
|
| 198 |
+
Richard Li, Allan Jabri, Trevor Darrell, and Pulkit Agrawal. Towards practical multi-object manipulation using relational reinforcement learning. arXiv preprint arXiv:1912.11032, 2019.
|
| 199 |
+
|
| 200 |
+
Hao Liu, Alexander Trott, Richard Socher, and Caiming Xiong. Competitive experience replay. In International Conference on Learning Representations, 2019.
|
| 201 |
+
|
| 202 |
+
Corey Lynch, Mohi Khansari, Ted Xiao, Vikash Kumar, Jonathan Tompson, Sergey Levine, and Pierre Sermanet. Learning latent plans from play. In Conference on Robot Learning, pp. 1113– 1132, 2020.
|
| 203 |
+
|
| 204 |
+
Tambet Matiisen, Avital Oliver, Taco Cohen, and John Schulman. Teacher-student curriculum learning. IEEE transactions on neural networks and learning systems, 2019.
|
| 205 |
+
|
| 206 |
+
Ofir Nachum, Shixiang Gu, Honglak Lee, and Sergey Levine. Data-efficient hierarchical reinforcement learning. In Advances in Neural Information Processing Systems, 2018.
|
| 207 |
+
|
| 208 |
+
Ashvin Nair, Bob McGrew, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Overcoming exploration in reinforcement learning with demonstrations. In IEEE International Conference on Robotics and Automation (ICRA), 2018a.
|
| 209 |
+
|
| 210 |
+
Ashvin V Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. In Advances in Neural Information Processing Systems, 2018b.
|
| 211 |
+
|
| 212 |
+
Junhyuk Oh, Yijie Guo, Satinder Singh, and Honglak Lee. Self-imitation learning. arXiv preprint arXiv:1806.05635, 2018.
|
| 213 |
+
|
| 214 |
+
OpenAI, Ilge Akkaya, Marcin Andrychowicz, Maciek Chociej, Mateusz Litwin, Bob McGrew, Arthur Petron, Alex Paino, Matthias Plappert, Glenn Powell, Raphael Ribas, Jonas Schneider, Nikolas Tezak, Jerry Tworek, Peter Welinder, Lilian Weng, Qiming Yuan, Wojciech Zaremba, and Lei Zhang. Solving rubik’s cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019a.
|
| 215 |
+
|
| 216 |
+
OpenAI, Christopher Berner, Greg Brockman, Brooke Chan, Vicki Cheung, Przemysław D˛ebiak, Christy Dennison, David Farhi, Quirin Fischer, Shariq Hashme, Chris Hesse, Rafal Józefowicz, Scott Gray, Catherine Olsson, Jakub Pachocki, Michael Petrov, Henrique Pondé de Oliveira Pinto, Jonathan Raiman, Tim Salimans, Jeremy Schlatter, Jonas Schneider, Szymon Sidor, Ilya Sutskever, Jie Tang, Filip Wolski, and Susan Zhang. Dota 2 with large scale deep reinforcement learning. arXiv preprint arXiv:1912.06680, 2019b.
|
| 217 |
+
|
| 218 |
+
OpenAI, Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, Jonas Schneider, Szymon Sidor, Josh Tobin, Peter Welinder, Lilian Weng, and Wojciech Zaremba. Learning dexterous in-hand manipulation. The International Journal of Robotics Research, 39(1):3–20, 2020.
|
| 219 |
+
|
| 220 |
+
Pierre-Yves Oudeyer, Frdric Kaplan, and Verena V Hafner. Intrinsic motivation systems for autonomous mental development. IEEE transactions on evolutionary computation, 11(2):265–286, 2007.
|
| 221 |
+
|
| 222 |
+
Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, 2017.
|
| 223 |
+
|
| 224 |
+
Ivaylo Popov, Nicolas Heess, Timothy Lillicrap, Roland Hafner, Gabriel Barth-Maron, Matej Vecerik, Thomas Lampe, Yuval Tassa, Tom Erez, and Martin Riedmiller. Data-efficient deep reinforcement learning for dexterous manipulation. arXiv preprint arXiv:1704.03073, 2017.
|
| 225 |
+
|
| 226 |
+
Sebastien Racaniere, Andrew Lampinen, Adam Santoro, David Reichert, Vlad Firoiu, and Timothy Lillicrap. Automated curriculum generation through setter-solver interactions. In International Conference on Learning Representations, 2020.
|
| 227 |
+
|
| 228 |
+
Martin Riedmiller, Roland Hafner, Thomas Lampe, Michael Neunert, Jonas Degrave, Tom Van de Wiele, Volodymyr Mnih, Nicolas Heess, and Jost Tobias Springenberg. Learning by playing - solving sparse reward tasks from scratch, 2018.
|
| 229 |
+
|
| 230 |
+
Andrei A Rusu, Matej Vecerík, Thomas Rothörl, Nicolas Heess, Razvan Pascanu, and Raia Hadsell.ˇ Sim-to-real robot learning from pixels with progressive nets. In Conference on Robot Learning, 2017.
|
| 231 |
+
|
| 232 |
+
Fereshteh Sadeghi and Sergey Levine. CAD2RL: real single-image flight without a single real image. In Robotics: Science and Systems XIII, Massachusetts Institute of Technology, Cambridge, Massachusetts, USA, July 12-16, 2017, 2017a. URL http://www.roboticsproceedings.org/ rss13/p34.html.
|
| 233 |
+
|
| 234 |
+
Fereshteh Sadeghi and Sergey Levine. Cad2rl: Real single-image flight without a single real image. In Proceedings of Robotics: Science and Systems, 2017b.
|
| 235 |
+
|
| 236 |
+
Tim Salimans and Richard Chen. Learning montezuma’s revenge from a single demonstration. arXiv preprint arXiv:1812.03381, 2018.
|
| 237 |
+
|
| 238 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 239 |
+
|
| 240 |
+
David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016.
|
| 241 |
+
|
| 242 |
+
David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. Mastering chess and shogi by self-play with a general reinforcement learning algorithm. arXiv preprint arXiv:1712.01815, 2017.
|
| 243 |
+
|
| 244 |
+
Rupesh Kumar Srivastava, Bas R Steunebrink, and Jürgen Schmidhuber. First experiments with powerplay. Neural Networks, 41:130–136, 2013.
|
| 245 |
+
|
| 246 |
+
Sainbayar Sukhbaatar, Emily Denton, Arthur Szlam, and Rob Fergus. Learning goal embeddings via self-play for hierarchical reinforcement learning. arXiv preprint arXiv:1811.09083, 2018a.
|
| 247 |
+
|
| 248 |
+
Sainbayar Sukhbaatar, Zeming Lin, Ilya Kostrikov, Gabriel Synnaeve, Arthur Szlam, and Rob Fergus. Intrinsic motivation and automatic curricula via asymmetric self-play. In International Conference on Learning Representations, 2018b.
|
| 249 |
+
|
| 250 |
+
Gerald Tesauro. Temporal difference learning and td-gammon. Communications of the ACM, 38(3): 58–68, 1995.
|
| 251 |
+
|
| 252 |
+
Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2017.
|
| 253 |
+
|
| 254 |
+
Emanuel Todorov, Tom Erez, and Yuval Tassa. MuJoCo: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, 2012.
|
| 255 |
+
|
| 256 |
+
Mel Vecerik, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothörl, Thomas Lampe, and Martin Riedmiller. Leveraging demonstrations for deep reinforcement learning on robotics problems with sparse rewards, 2018.
|
| 257 |
+
|
| 258 |
+
Alexander Sasha Vezhnevets, Simon Osindero, Tom Schaul, Nicolas Heess, Max Jaderberg, David Silver, and Koray Kavukcuoglu. Feudal networks for hierarchical reinforcement learning. In International Conference on Machine Learning, 2017.
|
| 259 |
+
|
| 260 |
+
Oriol Vinyals, Igor Babuschkin, Wojciech M Czarnecki, Michaël Mathieu, Andrew Dudzik, Junyoung Chung, David H Choi, Richard Powell, Timo Ewalds, Petko Georgiev, et al. Grandmaster level in starcraft ii using multi-agent reinforcement learning. Nature, 575(7782):350–354, 2019.
|
| 261 |
+
|
| 262 |
+
Jane X Wang, Zeb Kurth-Nelson, Dhruva Tirumala, Hubert Soyer, Joel Z Leibo, Remi Munos, Charles Blundell, Dharshan Kumaran, and Matt Botvinick. Learning to reinforcement learn. arXiv preprint arXiv:1611.05763, 2016.
|
| 263 |
+
|
| 264 |
+
Rui Wang, Joel Lehman, Jeff Clune, and Kenneth O Stanley. Paired open-ended trailblazer (poet): Endlessly generating increasingly complex and diverse learning environments and their solutions. arXiv preprint arXiv:1901.01753, 2019.
|
| 265 |
+
|
| 266 |
+
Rui Wang, Joel Lehman, Aditya Rawal, Jiale Zhi, Yulun Li, Jeff Clune, and Kenneth O Stanley. Enhanced poet: Open-ended reinforcement learning through unbounded invention of learning challenges and their solutions. arXiv preprint arXiv:2003.08536, 2020.
|
| 267 |
+
|
| 268 |
+
Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on Robot Learning, 2020.
|
| 269 |
+
|
| 270 |
+
Yunzhi Zhang, Pieter Abbeel, and Lerrel Pinto. Automatic curriculum learning through value disagreement. arXiv preprint arXiv:2006.09641, 2020.
|
parse/train/hu2aMLzOxC/hu2aMLzOxC_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rh0vIXw6i33/rh0vIXw6i33.md
ADDED
|
@@ -0,0 +1,396 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Multiple Descent: Design Your Own Generalization Curve
|
| 2 |
+
|
| 3 |
+
Lin Chen Simons Institute for the Theory of Computing University of California, Berkeley CA 94720 lin.chen@berkeley.edu
|
| 4 |
+
|
| 5 |
+
Yifei Min Department of Statistics and Data Science Yale University CT 06511 yifei.min@yale.edu
|
| 6 |
+
|
| 7 |
+
# Mikhail Belkin
|
| 8 |
+
|
| 9 |
+
Halıcıoglu Data Science Institute˘
|
| 10 |
+
University of California, San Diego CA 92093 mbelkin@ucsd.edu
|
| 11 |
+
|
| 12 |
+
Amin Karbasi School of Engineering and Applied Science Yale University CT 06511 amin.karbasi@yale.edu
|
| 13 |
+
|
| 14 |
+
# Abstract
|
| 15 |
+
|
| 16 |
+
This paper explores the generalization loss of linear regression in variably parameterized families of models, both under-parameterized and over-parameterized. We show that the generalization curve can have an arbitrary number of peaks, and moreover, locations of those peaks can be explicitly controlled. Our results highlight the fact that both classical U-shaped generalization curve and the recently observed double descent curve are not intrinsic properties of the model family. Instead, their emergence is due to the interaction between the properties of the data and the inductive biases of learning algorithms.
|
| 17 |
+
|
| 18 |
+
# 1 Introduction
|
| 19 |
+
|
| 20 |
+
The main goal of machine learning methods is to provide an accurate out-of-sample prediction, known as generalization. For a fixed family of models, a common way to select a model from this family is through empirical risk minimization, i.e., algorithmically selecting models that minimize the risk on the training dataset. Given a variably parameterized family of models, the statistical learning theory aims to identify the dependence between model complexity and model performance. The empirical risk usually decreases monotonically as the model complexity increases, and achieves its minimum when the model is rich enough to interpolate the training data, resulting in zero (or near-zero) training error. In contrast, the behaviour of the test error as a function of model complexity is far more complicated. Indeed, in this paper we show how to construct a model family for which the generalization curve can be fully controlled (away from the interpolation threshold) in both under-parameterized and over-parameterized regimes. Classical statistical learning theory supports a U-shaped curve of generalization versus model complexity [31, 33]. Under such a framework, the best model is found at the bottom of the U-shaped curve, which corresponds to appropriately balancing under-fitting and over-fitting the training data. From the view of the bias-variance trade-off, a higher model complexity increases the variance while decreasing the bias. A model with an appropriate level of complexity achieves a relatively low bias while still keeping the variance under control. On the other hand, a model that interpolates the training data is deemed to over-fit and tends to worsen the generalization performance due to the soaring variance.
|
| 21 |
+
|
| 22 |
+
Although classical statistical theory suggests a pattern of behavior for the generalization curve up to the interpolation threshold, it does not describe what happens beyond the interpolation threshold, commonly referred to as the over-parameterized regime. This is the exact regime where many modern machine learning models, especially deep neural networks, achieved remarkable success. Indeed, neural networks generalize well even when the models are so complex that they have the potential to interpolate all the training data points [61, 10, 32, 34].
|
| 23 |
+
|
| 24 |
+
Modern practitioners commonly deploy deep neural networks with hundreds of millions or even billions of parameters. It has become widely accepted that large models achieve performance superior to small models that may be suggested by the classical U-shaped generalization curve [13, 38, 55, 35, 36]. This indicates that the test error decreases again once model complexity grows beyond the interpolation threshold, resulting in the so called double-descent phenomenon described in [9], which has been broadly supported by empirical evidence [49, 48, 29, 30] and confirmed empirically on modern neural architectures by Nakkiran et al. [46]. On the theoretical side, this phenomenon has been recently addressed by several works on various model settings. In particular, Belkin et al. [11] proved the existence of double-descent phenomenon for linear regression with random feature selection and analyzed the random Fourier feature model [50]. Mei and Montanari [44] also studied the Fourier model and computed the asymptotic test error which captures the double-descent phenomenon. Bartlett et al. [8], Tsigler and Bartlett [56] analyzed and gave explicit conditions for “benign overfitting” in linear and ridge regression, respectively. Caron and Chretien [16] provided a finite sample analysis of the nonlinear function estimation and showed that the parameter learned through empirical risk minimization converges to the true parameter with high probability as the model complexity tends to infinity, implying the existence of double descent. Liu et al. [42] studied the high dimensional kernel ridge regression in the under- and over-parameterized regimes and showed that the risk curve can be double descent, bell-shaped, and monotonically decreasing.
|
| 25 |
+
|
| 26 |
+
Among all the aforementioned efforts, one particularly interesting question is whether one can observe more than two descents in the generalization curve. d’Ascoli et al. [21] empirically showed a samplewise triple-descent phenomenon under the random Fourier feature model. Similar triple-descent was also observed for linear regression [47]. More rigorously, Liang et al. [41] presented an upper bound on the risk of the minimum-norm interpolation versus the data dimension in Reproducing Kernel Hilbert Spaces (RKHS), which exhibits multiple descent. However, a multiple-descent upper bound without a properly matching lower bound does not imply the existence of a multiple-descent generalization curve. In this work, we study the multiple descent phenomenon by addressing the following questions:
|
| 27 |
+
|
| 28 |
+
• Can the existence of a multiple descent generalization curve be rigorously proven? • Can an arbitrary number of descents occur? • Can the generalization curve and the locations of descents be designed?
|
| 29 |
+
|
| 30 |
+
In this paper, we show that the answer to all three of these questions is yes. Further related work is presented in Section 2.
|
| 31 |
+
|
| 32 |
+
Our Contribution. We consider the linear regression model and analyze how the risk changes as the dimension of the data grows. In the linear regression setting, the data dimension is equal to the dimension of the parameter space, which reflects the model complexity. We rigorously show that the multiple descent generalization curve exists under this setting. To our best knowledge, this is the first work proving a multiple descent phenomenon.
|
| 33 |
+
|
| 34 |
+
Our analysis considers both the underparametrized and overparametrized regimes. In the overparametrized regime, we show that one can control where a descent or an ascent occurs in the generalization curve. This is realized through our algorithmic construction of a feature-revealing process. To be more specific, we assume that the data is in $\mathbb { R } ^ { D }$ , where $D$ can be arbitrarily large or even essentially infinite. We view each dimension of the data as a feature. We consider a linear regression problem restricted on the first $d$ features, where $d < D$ . New features are revealed by increasing the dimension of the data. We then show that by specifying the distribution of the newly revealed feature to be either a standard Gaussian or a Gaussian mixture, one can determine where an ascent or a descent occurs. In order to create an ascent when a new feature is revealed, it is sufficient that the feature follows a Gaussian mixture distribution. In order to have a descent, it is sufficient that the new feature follows a standard Gaussian distribution. Therefore, in the overparametrized regime, we can fully control the occurrence of a descent and an ascent. As a comparison, in the underparametrized regime, the generalization loss always increases regardless of the feature distribution. Generally speaking, we show that we are able to design the generalization curve.
|
| 35 |
+
|
| 36 |
+
On the one hand, we show theoretically that the generalization curve is malleable and can be constructed in an arbitrary fashion. On the other hand, we rarely observe complex generalization curves in practice, besides carefully curated constructions. Putting these facts together, we arrive at the conclusion that realistic generalization curves arise from specific interactions between properties of typical data and the inductive biases of algorithms. We should highlight that the nature of these interactions is far from being understood and should be an area of further investigations.
|
| 37 |
+
|
| 38 |
+
# 2 Related Work
|
| 39 |
+
|
| 40 |
+
Our work is directly related to the recent line of research in the theoretical understanding of the double descent [11, 34, 60, 44] and the multiple descent phenomenon [41, 39]. Here we briefly discuss some other work that is closely related to this paper.
|
| 41 |
+
|
| 42 |
+
Least Square Regression. In this paper we focus on the least square linear regression with no regularization. For the regularized least square regression, De Vito et al. [22] proposed a selection procedure for the regularization parameter. Advani and Saxe [1] analyzed the generalization of neural networks with mean squared error under the asymptotic regime where both the sample size and model complexity tend to infinity. Richards et al. [52] proved for least square regression in the asymptotic regime that as the dimension-to-sample-size ratio $d / n$ grows, an additional peak can occur in both the variance and bias due to the covariance structure of the features. As a comparison, in this paper the sample size is fixed and the model complexity increases. Rudi and Rosasco [53] studied kernel ridge regression and gave an upper bound on the number of the random features to reach certain risk level. Our result shows that there exists a natural setting where by manipulating the random features one can control the risk curve.
|
| 43 |
+
|
| 44 |
+
Over-Parameterization and Interpolation. The double descent occurs when the model complexity reaches and increases beyond the interpolation threshold. Most previous works focused on proving an upper bound or optimal rate for the risk. Caponnetto and De Vito [15] gave the optimal rate for least square ridge regression via careful selection of the regularization parameter. Belkin et al. [12] showed that the optimal rate for risk can be achieved by a model that interpolates the training data. In a series of work on kernel regression with regularization parameter tending to zero (a.k.a. kernel ridgeless regression), Rakhlin and Zhai [51] showed that the risk is bounded away from zero when the data dimension is fixed with respect to the sample size. Liang and Rakhlin [40] then considered the case when $d \asymp n$ , showed empirically the multiple descent phenomenon and proved a risk upper bound that can be small given favorable data and kernel assumptions. Instead of giving a bound, our paper presents an exact computation of risk in the cases of underparametrized and overparametrized linear regression, and proves the existence of the multiple descent phenomenon. Wyner et al. [59] analyzed AdaBoost and Random Forest from the perspective of interpolation. There has also been a line of work on wide neural networks [4–6, 23, 3, 58, 14, 2, 18, 62, 54].
|
| 45 |
+
|
| 46 |
+
Sample-wise Double Descent and Non-monotonicity. There has also been recent development beyond the model-complexity double-descent phenomenon. For example, regarding sample-wise non-monotonicity, Nakkiran et al. [46] empirically observed the epoch-wise double-descent and sample-wise non-monotonicity for neural networks. Chen et al. [19] and Min et al. [45] identified and proved the sample-wise double descent under the adversarial training setting, and Javanmard et al. [37] discovered double-descent under adversarially robust linear regression. Loog et al. [43] showed that empirical risk minimization can lead to sample-wise non-monotonicity in the standard linear model setting under various loss functions including the absolute loss and the squared loss, which covers the range from classification to regression. We also refer the reader to their discussion of the earlier work on non-monotonicity of generalization curves. Dar et al. [20] demonstrated the double descent curve of the generalization errors of subspace fitting problems. Fei et al. [28] studied the risk-sample tradeoff in reinforcement learning.
|
| 47 |
+
|
| 48 |
+
# 3 Preliminaries and Problem Formulation
|
| 49 |
+
|
| 50 |
+
Notation. For $x \in \mathbb { R } ^ { D }$ and $d \leq D$ , we let $x [ 1 : d ] \in \mathbb { R } ^ { d }$ denote a $d$ -dimensional vector with $x [ 1 : d ] _ { i } = x _ { i }$ for all $1 \ \leq \ i \ \leq \ d$ . For a matrix $A \ \in \ \mathbb { R } ^ { n \times d }$ , we denote its Moore-Penrose pseudoinverse by $A ^ { + } \in \mathbb { R } ^ { d \times n }$ and denote its spectral norm by $\textstyle \| A \| \triangleq \operatorname* { s u p } _ { x \neq 0 } { \frac { \| A x \| _ { 2 } } { \| x \| _ { 2 } } }$ kAxk2 , where k · k2 is the Euclidean norm for vectors. If $v$ is a vector, its spectral norm $\lVert v \rVert$ agrees with the Euclidean norm $\lVert \boldsymbol { v } \rVert _ { 2 }$ . Therefore, we write $\lVert v \rVert$ for $\lVert \boldsymbol { v } \rVert _ { 2 }$ to simplify the notation. We use the big $\mathrm { o }$ notation $\mathcal { O }$ and write variables in the subscript of $\mathcal { O }$ if the implicit constant depends on them. For example, ${ \mathcal { O } } _ { n , d , \sigma } ( 1 )$ is a constant that only depends on $n , d ,$ , and $\sigma$ . If $f ( \sigma )$ and $g ( \sigma )$ are functions of $\sigma$ , write $f ( \sigma ) \sim g ( \sigma )$ if $\begin{array} { r } { \operatorname* { l i m } \frac { f ( \sigma ) } { g ( \sigma ) } = 1 } \end{array}$ . It will be given in the context how we take the limit.
|
| 51 |
+
|
| 52 |
+
Distributions. Let ${ \mathcal { N } } ( \mu , \sigma ^ { 2 } )$ $( \mu , \sigma \in \mathbb { R } )$ and $\mathcal { N } ( \boldsymbol { \mu } , \boldsymbol { \Sigma } )$ $\mathbf { \mathcal { \mu } } _ { \mathbf { \lambda } } ( \mathbf { \mathcal { \mu } } _ { \mathbf { \lambda } } \mathbf { \mathbb { R } } ^ { n }$ , $\Sigma \in \mathbb { R } ^ { n \times n }$ ) denote the univariate and multivariate Gaussian distributions, respectively, where $\boldsymbol { \mu } \in \mathbb { R } ^ { n }$ and $\boldsymbol { \Sigma } \in \mathbb { R } ^ { n \times n }$ is a positive semi-definite matrix. We define a family of trimodal Gaussian mixture distributions as follows
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\mathcal { N } _ { \sigma , \mu } ^ { \mathrm { m i x } } \triangleq \frac 1 3 { N ( 0 , \sigma ^ { 2 } ) + \frac { 1 } { 3 } } { N ( - \mu , \sigma ^ { 2 } ) + \frac { 1 } { 3 } } { N ( \mu , \sigma ^ { 2 } ) } .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
For an illustration, please see Fig. 1.
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
Figure 1: Density functions of the $\mathcal { N } ( 0 , 1 )$ and $\mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ feature. A new entry is independently sampled from the 1-dimensional distribution being either a standard Gaussian or trimodal Gaussian mixture. Smaller $\sigma$ leads to higher concentration around each modes.
|
| 62 |
+
|
| 63 |
+
Let $\chi ^ { 2 } ( k , \lambda )$ denote the noncentral chi-squared distribution with $k$ degrees of freedom and the non-centrality parameter $\lambda$ . For example, if $X _ { i } \sim \mathcal { N } ( \mu _ { i } , 1 )$ (for $i = 1 , 2 , \ldots , k )$ are independent Gaussian random variables, we have ${ \textstyle \sum _ { i = 1 } ^ { k } X _ { i } ^ { 2 } \sim \chi ^ { 2 } ( k , \lambda ) }$ , where $\begin{array} { r } { \lambda = \sum _ { i = 1 } ^ { k } \mu _ { i } ^ { 2 } } \end{array}$ . We also denote by $\chi ^ { 2 } ( k )$ the (central) chi-squared distribution with $k$ degrees and the $F$ -distribution by $F ( d _ { 1 } , d _ { 2 } )$ where $d _ { 1 }$ and $d _ { 2 }$ are the degrees of freedom.
|
| 64 |
+
|
| 65 |
+
Problem Setup. Let $x _ { 1 } , \ldots , x _ { n } \in \mathbb { R } ^ { D }$ be column vectors that represent the training data of size $n$ and let $\boldsymbol { x } _ { \mathrm { t e s t } } \boldsymbol { \bar { \in } } \mathbb { R } ^ { D }$ be a column vector that represents the test data. We assume that they are all independently drawn from a distribution
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
x _ { 1 } , \ldots , x _ { n } , x _ { \mathrm { t e s t } } \overset { i i d } { \sim } \mathcal { D } .
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
Let us consider a linear regression problem on the first $d$ features, where $d \leq D$ for some arbitrary large $D$ . Here, $d$ can be viewed as the number of features revealed. Then the feature vectors are $\tilde { x } _ { 1 } , \ldots , \tilde { x } _ { n }$ , where $\widetilde { x } _ { i } = x _ { i } [ 1 : d ] \in \mathbb { R } ^ { d }$ denotes the first $d$ entries of $x _ { i }$ . The corresponding response variable $y _ { i }$ satisfies
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
y _ { i } = \tilde { x } _ { i } ^ { \top } \beta + \varepsilon _ { i } , \quad i = 1 , \ldots , n ,
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where the noise $\varepsilon _ { i } \sim \mathcal { N } ( 0 , \eta ^ { 2 } )$ . We use the same setup as in [34] (see Equations (1) and (2) in [34]). Moreover, in another closely related work [41], if the kernel is set to the linear kernel, it is equivalent to our setup.
|
| 78 |
+
|
| 79 |
+
Next, we introduce the estimate $\hat { \beta }$ of $\beta$ and its excess generalization loss. Let $\varepsilon = ( \varepsilon _ { 1 } , \ldots , \varepsilon _ { n } ) ^ { \top } \in \mathbb { R } ^ { n }$ denote the noise vector. The design matrix $A$ equals $[ \tilde { x } _ { 1 } , \ldots , \tilde { x } _ { n } ] ^ { \top } \in \mathbb { R } ^ { n \times d }$ . Let $x = x _ { \mathrm { t e s t } } [ 1 : d ]$ denote the first $d$ features of the test data. For the underparametrized regime where $d < n$ , the least square solution on the training data is $A ^ { + } ( A \beta + \varepsilon )$ . For the overparametrized regime where $d > n$ , $A ^ { + } ( A \beta + \varepsilon )$ is the minimum-norm solution. In both regimes we consider the solution ${ \hat { \boldsymbol { \beta } } } \triangleq A ^ { + } ( A \beta + \varepsilon )$ . The excess generalization loss on the test data is then given by
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\begin{array} { r l } & { L _ { d } \triangleq \mathbb { E } [ ( y - x ^ { \top } \hat { \beta } ) ^ { 2 } - ( y - x ^ { \top } \beta ) ^ { 2 } ] } \\ & { \quad = \mathbb { E } [ ( x ^ { \top } ( \hat { \beta } - \beta ) ) ^ { 2 } ] } \\ & { \quad = \mathbb { E } [ ( x ^ { \top } ( ( A ^ { + } A - I ) \beta + A ^ { + } \varepsilon ) ) ^ { 2 } ] } \\ & { \quad = \mathbb { E } [ ( x ^ { \top } ( A ^ { + } A - I ) \beta ) ^ { 2 } ] + \mathbb { E } [ ( x ^ { \top } A ^ { + } \varepsilon ) ^ { 2 } ] } \\ & { \quad = \mathbb { E } [ ( x ^ { \top } ( A ^ { + } A - I ) \beta ) ^ { 2 } ] + \eta ^ { 2 } \mathbb { E } ( A ^ { \top } ) ^ { + } x ^ { 2 } , } \end{array}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $y = x ^ { \top } \beta + \varepsilon _ { \mathrm { t e s t } }$ and $\varepsilon _ { \mathrm { t e s t } } \sim \mathcal { N } ( 0 , \eta ^ { 2 } )$ . We call the term $\mathbb { E } \left[ ( x ^ { \top } ( A ^ { + } A - I ) \beta ) ^ { 2 } \right]$ the bias and call the term $\eta ^ { 2 } \mathbb { E } \left\| ( A ^ { \top } ) ^ { + } x \right\| ^ { 2 }$ the variance.
|
| 86 |
+
|
| 87 |
+
The next remark shows that in the underparametrized regime, the bias vanishes. The vanishing bias in the underparametrized regime is also observed by Hastie et al. [34] and shown in their Proposition 2.
|
| 88 |
+
|
| 89 |
+
Remark 1. In the underparametrized regime, if $\mathcal { D }$ is a continous distribution (our construction presented later satisfies this condition), the matrix $A$ has independent column almost surely. In this case, we have $A ^ { + } A = I$ and therefore the bias $\mathbb { E } \left[ ( x ^ { \top } ( A ^ { + } A - I ) \beta ) ^ { 2 } \right]$ vanishes irrespective of $\beta$ . In other words, in the underparametrized regime, $L _ { d }$ equals $\eta ^ { 2 } \mathbb { E } \| ( A ^ { \top } ) ^ { + } x \| ^ { 2 }$ .
|
| 90 |
+
|
| 91 |
+
According to Remark 1, we have $L _ { d } = \eta ^ { 2 } \mathbb { E } \| ( A ^ { \top } ) ^ { + } x \| ^ { 2 }$ in the underparametrized regime. It also holds in the overparametrized regime when $\beta = 0$ . Without loss of generality, we assume $\eta = 1$ in the underparametrized regime (for all $\beta$ ). In the overparametrized regime, we also assume $\eta = 1$ for the $\beta = 0$ case. In this case, we have
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
L _ { d } = \mathbb { E } \| ( A ^ { \top } ) ^ { + } x \| ^ { 2 } .
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
We assume a general $\eta$ (i.e., not necessarily being 1) in the overparametrized regime when $\beta$ is non-zero.
|
| 98 |
+
|
| 99 |
+
We would like to study the change in the loss caused by the growth in the number of features revealed. Recall $L _ { d } = \mathbb { E } \| ( A ^ { \top } ) ^ { + } x \| ^ { 2 }$ . Once we reveal a new feature, which adds a new row $b ^ { \top }$ to $A ^ { \top }$ and a new component $a _ { 1 }$ to $x$ , we have $L _ { d + 1 } = \mathbb { E } { \left. \left[ \binom { A ^ { \top } } { b ^ { \top } } \right] ^ { + } \left[ \frac { x } { a _ { 1 } } \right] \right. } ^ { 2 } .$
|
| 100 |
+
|
| 101 |
+
Local Maximum and Multiple Descent. Throughout the paper, we say that a local maximum occurs at a dimension $d \geq 1$ if $L _ { d - 1 } < L _ { d }$ and $L _ { d } > L _ { d + 1 }$ . Intuitively, a local maximum occurs if there is an increasing stage of the generalization loss, followed by a decreasing stage, as the dimension $d$ grows. Additionally, we define $L _ { 0 } \triangleq - \infty$ . If the generalization loss exhibits a single descent, based on our definition, a unique local maximum occurs at $d = 1$ . For a double-descent generalization curve, a local maximum occurs at two different dimensions. In general, if we observe local maxima at multiple dimensions, we say there is a multiple descent.
|
| 102 |
+
|
| 103 |
+
# 4 Underparametrized Regime
|
| 104 |
+
|
| 105 |
+
First, we present our main theorem for the underparametrized regime below, whose proof is deferred to the end of Section 4. It states that the generalization loss $L _ { d }$ is always non-decreasing as $d$ grows. Moreover, it is possible to have an arbitrarily large ascent, i.e., $L _ { d + 1 } - L _ { d } > C$ for any $C > 0$ .
|
| 106 |
+
|
| 107 |
+
Theorem 1 (Proof in Section 4.1). If $d < n$ , we have $L _ { d + 1 } \ge L _ { d }$ irrespective of the data distribution Moreover, for any $C > 0$ , there exists a distribution $\mathcal { D }$ such that $L _ { d + 1 } - L _ { d } > C$ .
|
| 108 |
+
|
| 109 |
+
Remark 2 ( $\mathcal { D }$ can be a product distribution). The first part of Theorem 1 holds irrespective of the data distribution. For the second part of the theorem ( i.e., for any $C > 0$ there exists a distribution such that $L _ { d + 1 } - L _ { d } > C )$ to hold, one extremely simple and elegant choice of the distribution $\mathcal { D }$ is a product distribution $\mathcal { D } = \mathcal { D } _ { 1 } \times \cdot \cdot \cdot \times \mathcal { D } _ { D }$ such that $x _ { i , j } \stackrel { i i d } { \sim } \mathcal { D } _ { j }$ for all $1 \leq i \leq n$ , where $\mathcal { D } _ { j }$ is a Gaussian mixture $\mathcal { N } _ { \sigma _ { j } , 1 } ^ { \mathrm { m i x } }$ for some $\sigma _ { j } > 0$ . Since the second part of Theorem 1 is of independent interest, the result is summarized by Theorem 4.
|
| 110 |
+
|
| 111 |
+
Remark 3 (Kernel regression on Gaussian data). In light of Remark 2, $\mathcal { D }$ can be chosen to be a product distribution that consists $\mathcal { N } _ { \sigma _ { j } } ^ { \mathrm { m i x } }$ . Note that one can simulate $\mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ with $\mathcal { N } ( 0 , 1 )$ through the inverse transform sampling. To see this, let $F _ { \mathcal { N } ( 0 , 1 ) }$ and $F _ { \mathrm { \mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } } } }$ be the cdf of $\mathcal { N } ( 0 , 1 )$ and $\mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ , respectively. If $X \sim \mathcal { N } ( 0 , 1 )$ , we have $F _ { \mathcal { N } ( 0 , 1 ) } ( X ) \sim \mathrm { U n i f } ( ( 0 , 1 ) )$ and therefore $\varphi _ { \sigma } ( X ) \triangleq$ $F _ { \mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } } } ^ { - 1 } ( F _ { \mathcal { N } ( 0 , 1 ) } ( X ) ) \sim \mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ . In fact, we can use a multivariate Gaussian $\mathcal { D } ^ { \prime } = \mathcal { N } ( 0 , I _ { D \times D } )$ and a sequence of non-linear kernels $k ^ { [ 1 : d ] } ( x , x ^ { \prime } )$ , $\langle \phi ^ { [ 1 : d ] } ( x ) , \phi ^ { [ 1 : d ] } ( x ^ { \prime } ) \rangle$ , where the feature map is $\phi ^ { [ 1 : d ] } ( x ) \ \triangleq \ [ \phi _ { 1 } ( x _ { 1 } ) , \phi _ { 2 } ( x _ { 2 } ) , \ldots , \phi _ { d } ( x _ { d } ) ] ^ { \top } \ \in \ \mathbb { R } ^ { d }$ . Here is a simple rule for defining $\phi _ { j }$ : if $\mathcal { D } _ { j } = \mathcal { N } _ { \sigma _ { j } } ^ { \mathrm { m i x } }$ , we set $\phi _ { j }$ to $\varphi _ { \sigma _ { j } }$ . Thus, the problem becomes a kernel regression problem on the standard Gaussian data.
|
| 112 |
+
|
| 113 |
+
The first part of Theorem 1, which says that $L _ { d }$ is increasing (or more precisely, non-decreasing), agrees with Figure 1 of [11] and Proposition 2 of [34]. In [34], they proved that the risk increases with $\gamma = d / n$ . Note that, at first glance, Theorem 1 may look counterintuitive since it does not obey the classical U-shaped generalization curve. However, we would like to emphasize that the U-shaped curve does not always occur. In Figure 1 and Proposition 2 of these two papers respectively, there is no U-shaped curve. The intuition behind Theorem 1 is that in the underparametrized setting, the bias is always zero and as $d$ approaches $n$ , the variance keeps increasing.
|
| 114 |
+
|
| 115 |
+
Coming to the second part of Theorem 1, we now discuss how we will construct such a distribution $\mathcal { D }$ inductively to satisfy $L _ { d + 1 } - L _ { d } > C$ . We fix $d$ . Again, denote the first $d$ features of $x _ { \mathrm { t e s t } }$ by $x \triangleq x _ { \mathrm { t e s t } } [ 1 : d ]$ . Let us add an additional component to the training data $x _ { 1 } [ 1 : d ] , \dotsc , x _ { n } [ 1 : d ]$ and test data $x$ so that the dimension $d$ is incremented by 1. Let $b _ { i } \in \mathbb { R }$ denote the additional component that we add to the vector $x _ { i }$ (so that the new vector is given as $[ x _ { i } [ 1 : d ] ^ { \top } , b _ { i } ] ^ { \top }$ . Similarly, let $a _ { 1 } \in \mathbb { R }$ denote the additional component that we add to the test vector $x$ . We form the column vector $b = [ b _ { 1 } , \ldots , b _ { n } ] ^ { \top } \in \mathbb { R } ^ { n }$ that collects all additional components that we add to the training data.
|
| 116 |
+
|
| 117 |
+
We consider the change in the generalization loss as follows
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
L _ { d + 1 } - L _ { d } = \mathbb { E } \left[ \left. \left[ \mathbf { \Sigma } _ { b } ^ { A } \right] ^ { + } \left[ \mathbf { \Sigma } _ { a _ { 1 } } ^ { x } \right] \right. ^ { 2 } - \left. ( A ^ { + } ) ^ { \top } x \right. ^ { 2 } \right] .
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
Note that the components $b _ { 1 } , \ldots , b _ { n } , a _ { 1 }$ are i.i.d. The proof of Theorem 1 starts with Lemma 2 which relates the pseudo-inverse of $[ A , b ] ^ { \top }$ to that of $A ^ { \top }$ . In this way, we can decompose $\left\| \left[ \binom { A ^ { \top } } { b ^ { \top } } \right] ^ { + } \left[ \binom { x } { a _ { 1 } } \right] \right\| ^ { 2 }$ into multiple terms for further careful analysis in the proofs hereinafter.
|
| 124 |
+
|
| 125 |
+
Lemma 2 (Proof in Appendix B.1). Let $A \in \mathbb { R } ^ { n \times d }$ and $0 \neq b \in \mathbb { R } ^ { n \times 1 }$ , where $n \geq d + 1$ Additionally, let $P = A A ^ { + }$ and $\begin{array} { r } { Q = b b ^ { + } = \frac { b b ^ { \top } } { \| b \| ^ { 2 } } } \end{array}$ bb>2 , and define z , b>(I−P )b2 . If $z \neq 0$ and the columnwise partitioned matrix $[ A , b ]$ has linearly independent columns, we have
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\begin{array} { r l } & { \left[ \boldsymbol { A } ^ { \top } \right] ^ { + } = \left[ \left( I - \frac { b b ^ { \top } } { \| b \| ^ { 2 } } \right) \left( I + \frac { \boldsymbol { A } \boldsymbol { A } ^ { + } b \boldsymbol { b } ^ { \top } } { \| b \| ^ { 2 } - b ^ { \top } \boldsymbol { A } \boldsymbol { A } ^ { + } b } \right) ( \boldsymbol { A } ^ { + } ) ^ { \top } , \frac { ( I - \boldsymbol { A } \boldsymbol { A } ^ { + } ) \boldsymbol { b } } { \| b \| ^ { 2 } - b ^ { \top } \boldsymbol { A } \boldsymbol { A } ^ { + } \boldsymbol { b } } \right] } \\ & { = \left[ ( I - \boldsymbol { Q } ) ( I + \frac { P Q } { 1 - \mathrm { t r } ( P Q ) } ) ( \boldsymbol { A } ^ { + } ) ^ { \top } , \frac { ( I - P ) \boldsymbol { b } } { b ^ { \top } ( I - P ) \boldsymbol { b } } \right] } \\ & { = \left[ ( I - Q ) ( I + \frac { P Q } { z } ) ( \boldsymbol { A } ^ { + } ) ^ { \top } , \frac { ( I - P ) \boldsymbol { b } } { b ^ { \top } ( I - P ) \boldsymbol { b } } \right] . } \end{array}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
In our construction of $\mathcal { D }$ , the components $\mathcal { D } _ { j }$ are all continuous distributions. The matrix $I - P$ is an orthogonal projection matrix and therefore $\operatorname { i r a n k } ( I - P ) = n - d .$ . As a result, it holds almost surely that $b \neq 0$ , $z \neq 0$ , and $[ A , b ]$ has linearly independent columns. Thus the assumptions of Lemma 2 are satisfied almost surely. In the sequel, we assume that these assumptions are always fulfilled.
|
| 132 |
+
|
| 133 |
+
Theorem 3 guarantees that if $L _ { d } = \mathbb { E } \left\| ( A ^ { + } ) ^ { \top } x \right\| ^ { 2 }$ is finite and the $( d + 1 )$ -th features $b _ { 1 } , \ldots , b _ { n } , a _ { 1 }$ are i.i.d. sampled from $\mathcal { N } ( 0 , 1 )$ or $\mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ , $L _ { d + 1 } = \mathbb { E } \| [ { \binom { A ^ { \top } } { b ^ { \top } } } ^ { + } [ { \binom { x } { a _ { 1 } } } ] \| ^ { 2 }$ is also finite.
|
| 134 |
+
|
| 135 |
+
Theorem 3 (Proof in Appendix B.2). Let $z$ be as defined in Lemma 2. If $b _ { 1 } , \ldots , b _ { n } , a _ { 1 }$ are i.i.d. and follow a distribution with mean zero, conditioned on $A$ and $x$ , we have
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\mathbb { E } _ { b , a _ { 1 } } \left[ \left. \left[ \boldsymbol { \mathsf { A } } ^ { \top } \right] ^ { + } \left[ \boldsymbol { \mathsf { x } } _ { 1 } \right] \right. ^ { 2 } \right] \leq \mathbb { E } _ { b , a _ { 1 } } \left[ \frac { 1 } { z } \left. ( \boldsymbol { A } ^ { + } ) ^ { \top } \boldsymbol { \mathsf { x } } \right. ^ { 2 } + \frac { a _ { 1 } ^ { 2 } } { b ^ { \top } ( I - P ) b } \right] .
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
In particular, if $d + 2 < n$ and $b _ { 1 } , \dots , b _ { n } , a _ { 1 } \overset { i i d } { \sim } \mathcal { N } ( 0 , 1 )$ , conditioned on $A$ and $x$ , we have
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
\begin{array} { r l } & { \mathbb { E } _ { b , a _ { 1 } } \left[ \left. \left[ \boldsymbol { \mathsf { A } } ^ { \top } \right] ^ { + } \left[ \boldsymbol { \mathsf { x } } _ { 1 } \right] \right. ^ { 2 } \right] \leq \frac { ( n - 2 ) \left. ( \boldsymbol { \mathsf { A } } ^ { + } ) ^ { \top } \boldsymbol { \mathsf { x } } \right. ^ { 2 } + 1 } { n - d - 2 } . } \end{array}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
$d + 2 < n$ and $b _ { 1 } , \dots , b _ { n } , a _ { 1 } \overset { i i d } { \sim } \mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ , conditioned on $A$ and $x$ , we have
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
\mathbb { E } _ { b , a _ { 1 } } \| [ \binom { A ^ { \top } } { b ^ { \top } } ^ { + } [ \frac { x } { a _ { 1 } } ] \| ^ { 2 } \leq \frac { ( n - 2 + \sqrt { d } ) \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } + 2 / ( 3 \sigma ^ { 2 } ) + 1 } { n - d - 2 } .
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
Using Theorem 3, we can show inductively (on $d$ ) that $L _ { d }$ is finite for every $d$ . Provided that we are able to guarantee finite $L _ { 1 }$ , Theorem 3 implies that $L _ { d }$ is finite for every $d$ if the components are always sampled from $\mathcal { N } ( 0 , 1 )$ or $\mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ .
|
| 154 |
+
|
| 155 |
+
Making a large $L _ { d }$ can be achieved by adding an entry sampled from $\mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ when the data dimension increases from $d - 1$ to $d$ in the previous step. Theorem 4 shows that adding a $\mathcal { N } _ { \sigma , 1 } ^ { \mathrm { m i x } }$ feature can increase the loss by arbitrary amount, which in turn implies the second part of Theorem 1.
|
| 156 |
+
|
| 157 |
+
Theorem 4 (Proof in Appendix B.4). For any $\sigma > 0$ such that if $\mathbf { \dot { \cdot } } b _ { 1 } , \dots , b _ { n } , a _ { 1 } \overset { i i d } { \sim } \mathcal { N } _ { \sigma , 1 } ^ { \operatorname* { m i x } }$ , we have $C > 0$ and $\mathbb { E } \left\| ( A ^ { + } ) ^ { \top } x \right\| ^ { 2 } < + \infty$ , there exists $a$
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
\begin{array} { r } { \mathbb { E } \left[ \left. \left[ \boldsymbol { \mathsf { A } } ^ { \top } \right] ^ { + } \left[ \boldsymbol { \mathsf { x } } _ { 1 } \right] \right. ^ { 2 } - \left. ( \boldsymbol { \mathsf { A } } ^ { + } ) ^ { \top } \boldsymbol { \mathsf { x } } \right. ^ { 2 } \right] > C . } \end{array}
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
We are now ready to prove Theorem 1.
|
| 164 |
+
|
| 165 |
+
# 4.1 Proof of Theorem 1
|
| 166 |
+
|
| 167 |
+
Proof. We follow the notation convention in (3):
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
\begin{array} { r } { L _ { d + 1 } - L _ { d } = \mathbb { E } \left[ \left. \left[ \boldsymbol { \mathsf { A } } ^ { \top } \right] ^ { + } \left[ \boldsymbol { \mathsf { a } } _ { 1 } \right] \right. ^ { 2 } - \left. ( \boldsymbol { A } ^ { \top } ) ^ { + } \boldsymbol { \mathsf { x } } \right. ^ { 2 } \right] . } \end{array}
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
Recall d < n and the matrix B0 , $B ^ { \prime } \triangleq { \left[ \begin{array} { l } { A ^ { \top } } \\ { b ^ { \top } } \end{array} \right] }$ is of size $( d + 1 ) \times n$ . Both matrices $B ^ { \prime }$ and $B \triangleq A ^ { \intercal }$ are fat matrices. As a result, if $x ^ { \prime } \triangleq { \left[ \begin{array} { l } { x } \\ { a _ { 1 } } \end{array} \right] }$ , we have
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
\| B ^ { \prime + } x ^ { \prime } \| ^ { 2 } = \operatorname* { m i n } _ { z : B ^ { \prime } z = x ^ { \prime } } \| z \| ^ { 2 } , \quad \| B ^ { + } x \| ^ { 2 } = \operatorname* { m i n } _ { z : B z = x } \| z \| ^ { 2 } .
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
Since $\{ z \mid B ^ { \prime } z = x ^ { \prime } \} \subseteq \{ z \mid B z = x \}$ , we get $\| B ^ { \prime + } x ^ { \prime } \| ^ { 2 } \geq \| B ^ { + } x \| ^ { 2 }$ . Therefore, we obtain $L _ { d + 1 } \ge L _ { d }$ . The second part follows from Theorem 4.
|
| 180 |
+
|
| 181 |
+
Remark 4. Remark 2 and the proof of Theorem 4 indicate that $\mathcal { D } = \mathcal { D } _ { 1 } \times \cdot \cdot \cdot \times \mathcal { D } _ { D }$ is a product distribution. The construction in the proof also shows that the generalization curve is determined by the specific choice of the $\mathcal { D } _ { i }$ ’s. Note that permuting the order of $\mathcal { D } _ { i }$ ’s is equivalent to changing the order by which the features are being revealed (i.e., permuting the entries of the data $x _ { i }$ ’s). Therefore, given the same data points $x _ { 1 } , \cdot \cdot \cdot , x _ { n } \in \mathbb { R } ^ { D }$ , one can create different generalization curves simply by changing the order of the feature-revealing process.
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
Figure 2: Illustration of the multiple descent phenomenon for the generalization loss $L _ { d }$ versus the dimension of data $d$ in the overparametrized regime starting from $d = n { + } 8$ . One can fully control the generalization curve to increase or decrease as specified by the sequence $\Delta = \{ \downarrow , \uparrow , \downarrow , \downarrow , \uparrow , \downarrow , . . . \}$ . Adding a new feature with Gaussian mixture distribution increases the loss, while adding one with Gaussian distribution decreases the loss.
|
| 185 |
+
|
| 186 |
+
# 5 Overparametrized Regime
|
| 187 |
+
|
| 188 |
+
In this section, we study the multiple decent phenomenon in the overparametrized regime. Note that as stated in Section 3, we consider the minimum-norm solution here. We first consider the case where the model $\beta = 0$ and $L _ { d }$ is as defined in (2). Then we discuss the setting $\beta \neq 0$ .
|
| 189 |
+
|
| 190 |
+
As stated in the following theorem, we require $d \ge n + 8$ . This is merely a technical requirement and we can still say that $d$ starts at roughly the same order as $n$ . In other words, the result covers almost the entire spectrum of the overparametrized regime.
|
| 191 |
+
|
| 192 |
+
Theorem 5 (Overparametrized regime, $\beta ~ = ~ 0 ,$ . Let $\begin{array} { l l l } { n } & { < } & { D ~ - ~ 9 } \end{array}$ . Given any sequence $\Delta _ { n + 8 } , \Delta _ { n + 9 } , . . . , \Delta _ { D - 1 }$ where $\Delta _ { d } \in \{ \uparrow , \downarrow \}$ , there exists a distribution $\mathcal { D }$ such that for every $n + 8 \leq d \leq D - 1$ , we have
|
| 193 |
+
|
| 194 |
+
$$
|
| 195 |
+
L _ { d + 1 } \left\{ \stackrel { > } { _ { < } } L _ { d } , \quad i f \Delta _ { d } = \uparrow \right.
|
| 196 |
+
$$
|
| 197 |
+
|
| 198 |
+
In Theorem 5, the sequence $\Delta _ { n + 8 } , \Delta _ { n + 9 } , \cdot \cdot \cdot , \Delta _ { D - 1 }$ is just used to specify the increasing/decreasing behavior of the $L _ { d }$ sequence for $d > n + 8$ . Compared to Theorem 1 for the underparametrized regime, where $L _ { d }$ always increases, Theorem 5 indicates that one is able to fully control both ascents and descents in the overparametrized regime. Fig. 2 is an illustration.
|
| 199 |
+
|
| 200 |
+
We now present tools for proving Theorem 5. Lemma 6 gives the pseudo-inverse of $A$ when $d > n$ . Lemma 6 (Proof in Appendix C.1). Let $A \in \mathbb { R } ^ { n \times d }$ and $b \in \mathbb { R } ^ { n \times 1 }$ , where $n \leq d$ . Assume that matrix $A$ and the columnwise partitioned matrix $B \triangleq [ A , b ]$ have linearly independent rows. Let $G \triangleq ( A A ^ { \top } ) ^ { - 1 } \in \mathbb { R } ^ { n \times n }$ and $\begin{array} { r } { u \triangleq \frac { b ^ { \intercal } G } { 1 + b ^ { \intercal } G b } \in \mathbb { R } ^ { 1 \times n } } \end{array}$ . We have
|
| 201 |
+
|
| 202 |
+
$$
|
| 203 |
+
\left[ \begin{array} { l } \boldsymbol { A } ^ { \top } \right] ^ { + } = \left[ ( \boldsymbol { I } - b \boldsymbol { u } ) ^ { \top } ( \boldsymbol { A } ^ { + } ) ^ { \top } , \boldsymbol { u } ^ { \top } \right] . \end{array}
|
| 204 |
+
$$
|
| 205 |
+
|
| 206 |
+
Lemma 7 establishes finite expectation for several random variables. These finite expectation results are necessary for Theorem 8 and Theorem 9 to hold. Technically, they are the dominating random variables needed in Lebesgue’s dominated convergence theorem. Lemma 7 indicates that to guarantee these finite expectations, it suffices to set the first $n + 8$ distributions to the standard normal distribution and then set $\mathcal { D } _ { n + 8 } , \ldots , \mathcal { D } _ { D }$ to either a Gaussian or a Gaussian mixture distribution. In fact, in Theorem 8 and Theorem 9, we always add a Gaussian distribution or a Gaussian mixture.
|
| 207 |
+
|
| 208 |
+
Lemma 7 (Proof in Appendix C.2). Let $\mathcal { D } = \mathcal { D } _ { 1 } \times \cdot \cdot \cdot \times \mathcal { D } _ { D }$ be a product distribution where
|
| 209 |
+
|
| 210 |
+
Let $\mathcal { D } _ { [ 1 : d ] }$ denote $\mathcal { D } _ { 1 } \times \cdots \times \mathcal { D } _ { d }$ . Assume that every row of $A \in \mathbb { R } ^ { n \times d }$ and $x \in \mathbb { R } ^ { d \times 1 }$ are i.i.d. and follow $\mathcal { D } _ { [ 1 : d ] }$ . For any $d$ such that $n + 8 \leq d \leq D$ , all of the followings hold:
|
| 211 |
+
|
| 212 |
+
$$
|
| 213 |
+
\begin{array} { r l r } & { \mathbb E [ \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } ] < + \infty , } & { \mathbb E [ \lambda _ { \operatorname* { m a x } } ^ { 2 } ( ( A A ^ { \top } ) ^ { - 1 } ) ] < + \infty , } \\ & { \mathbb E [ \lambda _ { \operatorname* { m a x } } ( ( A A ^ { \top } ) ^ { - 1 } ) \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } ] < + \infty , } & { \mathbb E [ \lambda _ { \operatorname* { m a x } } ^ { 2 } ( ( A A ^ { \top } ) ^ { - 1 } ) \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } ] < + \infty . } \end{array}
|
| 214 |
+
$$
|
| 215 |
+
|
| 216 |
+
Theorems 8 and 9 are the key technical results for constructing multiple descent in the overparametrized regime. One can create a descent $( L _ { d + 1 } < L _ { d } )$ by adding a Gaussian feature (Theorem 8) and create an ascent $( L _ { d + 1 } > L _ { d } )$ by adding a Gaussian mixture feature (Theorem 9).
|
| 217 |
+
|
| 218 |
+
Theorem 8 (Proof in Appendix C.3). If E $\bar { \mathsf { x } } [ \| ( A ^ { \top } A ) ^ { + } x \| ^ { 2 } ] > 0$ and all equations in (4) hold, there exists $\sigma > 0$ such that i $f a _ { 1 } , b _ { 1 } , \ldots , b _ { n } \stackrel { i i d } { \sim } { \mathcal { N } } ( 0 , \sigma ^ { 2 } )$ , we have
|
| 219 |
+
|
| 220 |
+
$$
|
| 221 |
+
L _ { d + 1 } - L _ { d } = \mathbb { E } \| [ { \binom { A ^ { \top } } { b ^ { \top } } } ^ { + } [ { \binom { x } { a _ { 1 } } } ] \| ^ { 2 } - \mathbb { E } \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } < 0 .
|
| 222 |
+
$$
|
| 223 |
+
|
| 224 |
+
Theorem 9 shows that adding a Gaussian mixture feature can make $L _ { d + 1 } > L _ { d }$ .
|
| 225 |
+
|
| 226 |
+
Theorem 9 (Proof in Appendix C.4). Assume $\sigma > 0$ such that $i f a _ { 1 } , b _ { 1 } , \ldots , b _ { n } \stackrel { i i d } { \sim } \mathcal { N } _ { \sigma , \mu } ^ { \mathrm { m i x } }$ , we have $\mathbb { E } \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } < + \infty$ . For any $C > 0$ , there exist $\mu$
|
| 227 |
+
|
| 228 |
+
$$
|
| 229 |
+
L _ { d + 1 } - L _ { d } = \mathbb { E } \| [ { \binom { A ^ { \top } } { b ^ { \top } } } ^ { + } [ { \binom { x } { a _ { 1 } } } ] \| ^ { 2 } - \mathbb { E } \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } > C .
|
| 230 |
+
$$
|
| 231 |
+
|
| 232 |
+
The proof of Theorem 5 immediately follows from Theorem 8 and Theorem 9.
|
| 233 |
+
|
| 234 |
+
Proof of Theorem 5. We construct the product distribution $\begin{array} { r } { \mathcal { D } = \prod _ { d = 1 } ^ { D } \mathcal { D } _ { d } } \end{array}$ . We set $\mathcal { D } _ { d } = \mathcal { N } ( 0 , 1 )$ for $d = 1 , \dotsc , n + 8$ . For $n + 8 < d \leq D$ , $\mathcal { D } _ { d }$ is either $\textstyle \mathcal { N } ( 0 , \sigma _ { d } ^ { 2 } )$ dor $\sqrt { \operatorname * { m i x } _ { \sigma _ { d } , \mu _ { d } } }$ depending on $\Delta _ { d }$ being either $\downarrow \mathrm { o r } \uparrow$ .
|
| 235 |
+
|
| 236 |
+
First we show that for each step $d$ , the assumption $\mathbb { E } [ \| ( A ^ { \top } A ) ^ { + } x \| ^ { 2 } ] > 0$ of Theorem 8 is satisfied. If $\mathbb { E } [ \| ( A ^ { \top } A ) ^ { + } x \| ^ { 2 } ] = 0$ , we know that $( A ^ { \top } A ) ^ { + } x = 0$ almost surely. Since $\mathcal { D }$ is a continuous distribution, the matrix $A$ has full row rank almost surely. Therefore, $\operatorname { r a n k } ( ( A ^ { \top } A ) ^ { + } ) = \operatorname { r a n k } ( A ^ { \top } A ) = n$ almost surely. Thus $\dim \ker ( A ^ { \top } A ) ^ { + } = d - n \leq d - 1$ almost surely, which implies $x \not \in \ker ( A ^ { \top } A ) ^ { + }$ . In other words, $( A ^ { \top } A ) ^ { + } x \neq 0$ almost surely. We reach a contradiction. Moreover, by Lemma 7, the assumption $\mathbb { E } \| ( A ^ { + } ) ^ { \top } x \| ^ { 2 } < + \infty$ of Theorem 9 is also satisfied.
|
| 237 |
+
|
| 238 |
+
If $\Delta _ { d - 1 } = \downarrow$ , by Theorem 8, there exists $\sigma _ { d } > 0$ such that if $\mathcal { D } _ { d } = \mathcal { N } ( 0 , \sigma _ { d } ^ { 2 } )$ , then $L _ { d } < L _ { d - 1 }$ . Similarly if $\Delta _ { d - 1 } = \uparrow$ , by Theorem 9, there exists $\sigma _ { d }$ and $\mu _ { d }$ such that $\mathcal { D } _ { d } = \mathcal { N } _ { \sigma _ { d } , \mu _ { d } } ^ { \mathrm { m i x } }$ N mixσd,µd guarantees $L _ { d } > L _ { d - 1 }$ .
|
| 239 |
+
|
| 240 |
+
Gaussian $\beta$ setting. In what follows, we study the case where the model $\beta$ is non-zero. In particular, we consider a setting where each entry of $\beta$ is i.i.d. $\mathcal { N } ( 0 , \rho ^ { 2 } )$ . Recalling (1), define the biases
|
| 241 |
+
|
| 242 |
+
$$
|
| 243 |
+
\begin{array} { r } { \mathcal { E } _ { d } \triangleq ( x ^ { \top } ( A ^ { + } A - I ) \beta ) ^ { 2 } , \quad \mathcal { E } _ { d + 1 } \triangleq \left( [ x ^ { \top } , a _ { 1 } ] ( [ A , b ] ^ { + } [ A , b ] - I ) \left[ \beta \right] \right) ^ { 2 } , } \end{array}
|
| 244 |
+
$$
|
| 245 |
+
|
| 246 |
+
and the expected risks
|
| 247 |
+
|
| 248 |
+
$$
|
| 249 |
+
\begin{array} { r } { L _ { d } ^ { \mathrm { e x p } } \triangleq \mathbb E [ \mathcal { E } _ { d } ] + \eta ^ { 2 } \mathbb E \| ( A ^ { \top } ) ^ { + } x \| ^ { 2 } , \quad L _ { d + 1 } ^ { \mathrm { e x p } } \triangleq \mathbb E [ \mathcal { E } _ { d + 1 } ] + \eta ^ { 2 } \mathbb E \| [ [ A ^ { \top } ] ^ { + } [ a _ { 1 } ] ] ^ { 2 } , } \end{array}
|
| 250 |
+
$$
|
| 251 |
+
|
| 252 |
+
where $\beta \sim \mathcal { N } ( 0 , \rho ^ { 2 } I _ { d } )$ and $\beta _ { 1 } \sim \mathcal { N } ( 0 , \rho ^ { 2 } )$ . The second term in $\boldsymbol { L } _ { d } ^ { \mathrm { e x p } }$ and $L _ { d + 1 } ^ { \mathrm { e x p } }$ is the variance term. Note that ${ \cal L } _ { d } ^ { \mathrm { e x p } }$ is the expected value of $L _ { d }$ in (1) and averages over $\beta$ . Theorem 10 shows that one d can add a Gaussian mixture feature in order to make $L _ { d + 1 } ^ { \mathrm { e x p } } > L _ { d } ^ { \mathrm { e x p } }$ , and add a Gaussian feature in order to make Lexpd+1 $L _ { d + 1 } ^ { \exp } < L _ { d } ^ { \exp }$ .
|
| 253 |
+
|
| 254 |
+
Theorem 10 (Proof in Appendix C.5). Let $a _ { 1 } , \beta _ { 1 } \in \mathbb { R } ,$ , $x \in \mathbb { R } ^ { d \times 1 }$ , $\beta \in \mathbb { R } ^ { d \times 1 }$ , $A \in \mathbb { R } ^ { n \times d }$ and $b \in \mathbb { R } ^ { n \times 1 }$ , where $n \leq d$ . Assume that $x , a _ { 1 } , \beta _ { 1 } , \beta , A , b$ are jointly independent, $[ \beta ^ { \top } , \beta _ { 1 } ] ^ { \top } \sim$ $\mathcal { N } ( 0 , \rho ^ { 2 } I _ { d + 1 } )$ . Moreover, assume that the matrix $[ A , b ]$ has linearly independent rows almost surely. The following statements hold:
|
| 255 |
+
|
| 256 |
+
$f a _ { 1 } , b _ { 1 } , \ldots , b _ { n } \stackrel { i i d } { \sim } \mathcal { N } _ { \sigma , \mu } ^ { \mathrm { m i x } } ,$ , for any $C > 0$ , there exist $\mu , \sigma$ such that $L _ { d + 1 } ^ { \mathrm { e x p } } - L _ { d } ^ { \mathrm { e x p } } > C$ (b) If $\cdot _ { a _ { 1 } , b _ { 1 } , . . . , b _ { n } } \stackrel { i i d } { \sim } \mathcal { N } ( 0 , \sigma ^ { 2 } )$ , there exists $\sigma > 0$ such that for all
|
| 257 |
+
|
| 258 |
+
$$
|
| 259 |
+
\rho \leq \eta \sqrt { \frac { \mathbb { E } [ \| ( A ^ { \top } A ) ^ { + } x \| ^ { 2 } ] } { \mathbb { E } \| A ^ { + \top } x \| ^ { 2 } + 1 } } ,
|
| 260 |
+
$$
|
| 261 |
+
|
| 262 |
+
we hav e $L _ { d + 1 } ^ { \exp } < L _ { d } ^ { \exp }$
|
| 263 |
+
|
| 264 |
+
Theorem 10 indicates that for $\beta$ obeying a normal distribution, one can still construct a generalization curve as desired by adding a Gaussian or Gaussian mixture feature properly. We make this construction explicit for any desired generalization curve in (the proof of) Theorem 11. Similar to the construction in the underparametrized regime (for all $\beta$ ) and overparametrization regime (for $\beta = 0$ ), the distribution $\mathcal { D }$ can be made a product distribution.
|
| 265 |
+
|
| 266 |
+
Theorem 11 (Overparametrized regime, $\beta$ being Gaussian). Let $n < D - 9$ . Given any sequence $\Delta _ { n + 8 } , \Delta _ { n + 9 } , . . . , \Delta _ { D - 1 }$ where $\Delta _ { d } \in \{ \uparrow , \downarrow \}$ , there exists $\rho > 0$ and a distribution $\mathcal { D }$ such that for $\beta \sim \mathcal { N } ( 0 , \rho ^ { 2 } )$ and every $n + 8 \leq d \leq D - 1$ , we have
|
| 267 |
+
|
| 268 |
+
$$
|
| 269 |
+
\begin{array} { r } { L _ { d + 1 } ^ { \mathrm { e x p } } \left\{ { \stackrel { > } { \sim } } L _ { d } ^ { \mathrm { e x p } } , \quad i f \Delta _ { d } = \uparrow \right. } \\ { \left. < L _ { d } ^ { \mathrm { e x p } } , \quad i f \Delta _ { d } = \downarrow . \right. } \end{array}
|
| 270 |
+
$$
|
| 271 |
+
|
| 272 |
+
Proof of Theorem $I I$ . Define the design matrix $A _ { d } \triangleq [ x _ { 1 } [ 1 : d ] , \dots , x _ { n } [ 1 : d ] ] ^ { \intercal } \in \mathbb { R } ^ { n \times d }$ . Similar to the proof of Theorem 5, we construct the product distribution $\begin{array} { r } { \mathcal { D } = \prod _ { d = 1 } ^ { D } \mathcal { D } _ { d } } \end{array}$ . We set $\mathcal { D } _ { d } = \mathcal { N } ( 0 , 1 )$ for $d = 1 , \ldots , n + 8$ . For $n + 8 < d \leq D$ , $\mathcal { D } _ { d }$ is either $\textstyle \mathcal { N } ( 0 , \sigma _ { d } ^ { 2 } )$ or $\sqrt { \operatorname* { m i x } _ { \sigma _ { d } , \mu _ { d } } }$ depending on $\Delta _ { d }$ being either $\downarrow$ or $\uparrow$ .
|
| 273 |
+
|
| 274 |
+
If $\Delta _ { d - 1 } = \uparrow$ , by Theorem 10, there exists $\sigma _ { d }$ and $\mu _ { d }$ such that $\mathcal { D } _ { d } = \mathcal { N } _ { \sigma _ { d } , \mu _ { d } } ^ { \mathrm { m i x } }$ guarantees $L _ { d } ^ { \exp } > L _ { d - 1 } ^ { \exp }$ $\Delta _ { d - 1 } = \downarrow$
|
| 275 |
+
|
| 276 |
+
$$
|
| 277 |
+
\rho _ { d } \triangleq \eta \sqrt { \frac { \mathbb { E } [ \| ( A _ { d - 1 } ^ { \top } A _ { d - 1 } ) ^ { + } x _ { \mathrm { t e s t } } [ 1 : d - 1 ] \| ^ { 2 } ] } { \mathbb { E } \| A _ { d - 1 } ^ { + \top } x _ { \mathrm { t e s t } } [ 1 : d - 1 ] \| ^ { 2 } + 1 } } .
|
| 278 |
+
$$
|
| 279 |
+
|
| 280 |
+
By Theorem 10, there exists $\sigma _ { d } > 0$ such that if $\rho \leq \rho _ { d }$ and $\mathcal { D } _ { d } = \mathcal { N } ( 0 , \sigma _ { d } ^ { 2 } )$ , then $L _ { d } ^ { \exp } < L _ { d - 1 } ^ { \exp }$ . We
|
| 281 |
+
|
| 282 |
+
$$
|
| 283 |
+
\rho = \operatorname* { m i n } _ { \substack { d : \Delta _ { d - 1 } = \downarrow } } \rho _ { d } .
|
| 284 |
+
$$
|
| 285 |
+
|
| 286 |
+
# 6 Conclusion
|
| 287 |
+
|
| 288 |
+
Our work proves that the expected risk of linear regression can manifest multiple descents when the number of features increases and sample size is fixed. This is carried out through an algorithmic construction of a feature-revealing process where the newly revealed feature follows either a Gaussian distribution or a Gaussian mixture distribution. Notably, the construction also enables us to control local maxima in the underparametrized regime and control ascents/descents freely in the overparametrized regime. Overall, this allows us to design the generalization curve away from the interpolation threshold.
|
| 289 |
+
|
| 290 |
+
We believe that our analysis of linear regression in this paper is a good starting point for explaining non-monotonic generalization curves observed in machine learning studies. Extending these results to more complex problem setups would be a meaningful future direction.
|
| 291 |
+
|
| 292 |
+
# Funding Transparency Statement
|
| 293 |
+
|
| 294 |
+
LC: Funding in direct support of this work: postdoctoral research fellowship by the Simons Institute for the Theory of Computing, University of California, Berkeley, and Google PhD Fellowship by Google. Additional revenues related to this work: internships at Google.
|
| 295 |
+
|
| 296 |
+
MB acknowledges support from NSF IIS-1815697, and the support of the NSF and the Simons Foundation for the Collaboration on the Theoretical Foundations of Deep Learning through awards DMS-2031883 and #814639.
|
| 297 |
+
|
| 298 |
+
AK: Funding in direct support of this work: NSF (IIS-1845032) and ONR (N00014-19-1-2406).
|
| 299 |
+
|
| 300 |
+
# References
|
| 301 |
+
|
| 302 |
+
[1] M. S. Advani and A. M. Saxe. High-dimensional dynamics of generalization error in neural networks. arXiv preprint arXiv:1710.03667, 2017.
|
| 303 |
+
[2] M. S. Advani, A. M. Saxe, and H. Sompolinsky. High-dimensional dynamics of generalization error in neural networks. Neural Networks, 132:428–446, 2020.
|
| 304 |
+
[3] Z. Allen-Zhu, Y. Li, and Z. Song. A convergence theory for deep learning via overparameterization. In International Conference on Machine Learning, pages 242–252, 2019.
|
| 305 |
+
[4] S. Arora, S. S. Du, W. Hu, Z. Li, R. R. Salakhutdinov, and R. Wang. On exact computation with an infinitely wide neural net. In Advances in Neural Information Processing Systems, pages 8141–8150, 2019.
|
| 306 |
+
[5] S. Arora, S. S. Du, W. Hu, Z. Li, and R. Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In ICML, pages 477–502, 2019.
|
| 307 |
+
[6] S. Arora, S. S. Du, Z. Li, R. Salakhutdinov, R. Wang, and D. Yu. Harnessing the power of infinitely wide deep nets on small-data tasks. In International Conference on Learning Representations, 2019. [7] J. K. Baksalary and O. M. Baksalary. Particular formulae for the moore–penrose inverse of a columnwise partitioned matrix. Linear algebra and its applications, 421(1):16–23, 2007.
|
| 308 |
+
[8] P. L. Bartlett, P. M. Long, G. Lugosi, and A. Tsigler. Benign overfitting in linear regression. Proceedings of the National Academy of Sciences, 2020.
|
| 309 |
+
[9] M. Belkin, D. Hsu, S. Ma, and S. Mandal. Reconciling modern machine learning and the bias-variance trade-off. stat, 1050:28, 2018.
|
| 310 |
+
[10] M. Belkin, S. Ma, and S. Mandal. To understand deep learning we need to understand kernel learning. In International Conference on Machine Learning, pages 541–549, 2018.
|
| 311 |
+
[11] M. Belkin, D. Hsu, and J. Xu. Two models of double descent for weak features. arXiv preprint arXiv:1903.07571, 2019.
|
| 312 |
+
[12] M. Belkin, A. Rakhlin, and A. B. Tsybakov. Does data interpolation contradict statistical optimality? In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1611–1619, 2019.
|
| 313 |
+
[13] Y. Bengio, R. Ducharme, P. Vincent, and C. Jauvin. A neural probabilistic language model. Journal of machine learning research, 3(Feb):1137–1155, 2003.
|
| 314 |
+
[14] Y. Cao and Q. Gu. Generalization bounds of stochastic gradient descent for wide and deep neural networks. In Advances in Neural Information Processing Systems, pages 10836–10846, 2019.
|
| 315 |
+
[15] A. Caponnetto and E. De Vito. Optimal rates for the regularized least-squares algorithm. Foundations of Computational Mathematics, 7(3):331–368, 2007.
|
| 316 |
+
[16] E. Caron and S. Chretien. A finite sample analysis of the double descent phenomenon for ridge function estimation. arXiv preprint arXiv:2007.12882, 2020.
|
| 317 |
+
[17] M. Caron, P. Bojanowski, A. Joulin, and M. Douze. Deep clustering for unsupervised learning of visual features. In Proceedings of the European Conference on Computer Vision (ECCV), pages 132–149, 2018.
|
| 318 |
+
[18] L. Chen and S. Xu. Deep neural tangent kernel and laplace kernel have the same rkhs. In ICLR, 2021.
|
| 319 |
+
[19] L. Chen, Y. Min, M. Zhang, and A. Karbasi. More data can expand the generalization gap between adversarially robust and standard models. In International Conference on Machine Learning, pages 1670–1680. PMLR, 2020.
|
| 320 |
+
[20] Y. Dar, P. Mayer, L. Luzi, and R. G. Baraniuk. Subspace fitting meets regression: The effects of supervision and orthonormality constraints on double descent of generalization errors. In ICML, 2020.
|
| 321 |
+
[21] S. d’Ascoli, L. Sagun, and G. Biroli. Triple descent and the two kinds of overfitting: Where & why do they appear? arXiv preprint arXiv:2006.03509, 2020.
|
| 322 |
+
[22] E. De Vito, A. Caponnetto, and L. Rosasco. Model selection for regularized least-squares algorithm in learning theory. Foundations of Computational Mathematics, 5(1):59–85, 2005.
|
| 323 |
+
[23] S. Du, J. Lee, H. Li, L. Wang, and X. Zhai. Gradient descent finds global minima of deep neural networks. In International Conference on Machine Learning, pages 1675–1685, 2019.
|
| 324 |
+
[24] Y. Fei and Y. Chen. Exponential error rates of sdp for block models: Beyond grothendieck’s inequality. IEEE Transactions on Information Theory, 65(1):551–571, 2018.
|
| 325 |
+
[25] Y. Fei and Y. Chen. Hidden integrality of sdp relaxations for sub-gaussian mixture models. In Conference On Learning Theory, pages 1931–1965. PMLR, 2018.
|
| 326 |
+
[26] Y. Fei and Y. Chen. Achieving the bayes error rate in stochastic block model by sdp, robustly. In Conference on Learning Theory, pages 1235–1269. PMLR, 2019.
|
| 327 |
+
[27] Y. Fei and Y. Chen. Achieving the bayes error rate in synchronization and block models by sdp, robustly. IEEE Transactions on Information Theory, 66(6):3929–3953, 2020.
|
| 328 |
+
[28] Y. Fei, Z. Yang, Y. Chen, Z. Wang, and Q. Xie. Risk-sensitive reinforcement learning: Nearoptimal risk-sample tradeoff in regret. arXiv preprint arXiv:2006.13827, 2020.
|
| 329 |
+
[29] M. Geiger, S. Spigler, S. d’Ascoli, L. Sagun, M. Baity-Jesi, G. Biroli, and M. Wyart. Jamming transition as a paradigm to understand the loss landscape of deep neural networks. Physical Review E, 100(1):012115, 2019.
|
| 330 |
+
[30] M. Geiger, A. Jacot, S. Spigler, F. Gabriel, L. Sagun, S. d’Ascoli, G. Biroli, C. Hongler, and M. Wyart. Scaling description of generalization with number of parameters in deep learning. Journal of Statistical Mechanics: Theory and Experiment, 2020(2):023401, 2020.
|
| 331 |
+
[31] S. Geman, E. Bienenstock, and R. Doursat. Neural networks and the bias/variance dilemma. Neural computation, 4(1):1–58, 1992.
|
| 332 |
+
[32] B. Ghorbani, S. Mei, T. Misiakiewicz, and A. Montanari. Linearized two-layers neural networks in high dimension. arXiv preprint arXiv:1904.12191, 2019.
|
| 333 |
+
[33] T. Hastie, R. Tibshirani, and J. Friedman. The elements of statistical learning: data mining, inference, and prediction. Springer Science & Business Media, 2009.
|
| 334 |
+
[34] T. Hastie, A. Montanari, S. Rosset, and R. J. Tibshirani. Surprises in high-dimensional ridgeless least squares interpolation. arXiv preprint arXiv:1903.08560, 2019.
|
| 335 |
+
[35] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770– 778, 2016.
|
| 336 |
+
[36] Y. Huang, Y. Cheng, A. Bapna, O. Firat, D. Chen, M. Chen, H. Lee, J. Ngiam, Q. V. Le, Y. Wu, et al. Gpipe: Efficient training of giant neural networks using pipeline parallelism. In Advances in neural information processing systems, pages 103–112, 2019.
|
| 337 |
+
[37] A. Javanmard, M. Soltanolkotabi, and H. Hassani. Precise tradeoffs in adversarial training for linear regression. In Conference on Learning Theory, 2020.
|
| 338 |
+
[38] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097–1105, 2012.
|
| 339 |
+
[39] Y. Li and Y. Wei. Minimum $\ell _ { 1 }$ -norm interpolators: Precise asymptotics and multiple descent. arXiv preprint arXiv:2110.09502, 2021.
|
| 340 |
+
[40] T. Liang and A. Rakhlin. Just interpolate: Kernel “ridgeles” regression can generalize. Annals of Statistics, page to appear, 2019.
|
| 341 |
+
[41] T. Liang, A. Rakhlin, and X. Zhai. On the multiple descent of minimum-norm interpolants and restricted lower isometry of kernels. In COLT, 2020.
|
| 342 |
+
[42] F. Liu, Z. Liao, and J. Suykens. Kernel regression in high dimensions: Refined analysis beyond double descent. In International Conference on Artificial Intelligence and Statistics, pages 649–657. PMLR, 2021.
|
| 343 |
+
[43] M. Loog, T. Viering, and A. Mey. Minimizers of the empirical risk and risk monotonicity. In Advances in Neural Information Processing Systems, pages 7478–7487, 2019.
|
| 344 |
+
[44] S. Mei and A. Montanari. The generalization error of random features regression: Precise asymptotics and double descent curve. arXiv preprint arXiv:1908.05355, 2019.
|
| 345 |
+
[45] Y. Min, L. Chen, and A. Karbasi. The curious case of adversarially robust models: More data can help, double descend, or hurt generalization. arXiv preprint arXiv:2002.11080, 2020.
|
| 346 |
+
[46] P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, and I. Sutskever. Deep double descent: Where bigger models and more data hurt. arXiv preprint arXiv:1912.02292, 2019.
|
| 347 |
+
[47] P. Nakkiran, P. Venkat, S. Kakade, and T. Ma. Optimal regularization can mitigate double descent. arXiv preprint arXiv:2003.01897, 2020.
|
| 348 |
+
[48] B. Neal, S. Mittal, A. Baratin, V. Tantia, M. Scicluna, S. Lacoste-Julien, and I. Mitliagkas. A modern take on the bias-variance tradeoff in neural networks. arXiv preprint arXiv:1810.08591, 2018.
|
| 349 |
+
[49] B. Neyshabur, R. Tomioka, and N. Srebro. In search of the real inductive bias: On the role of implicit regularization in deep learning. In ICLR (Workshop), 2015.
|
| 350 |
+
[50] A. Rahimi and B. Recht. Random features for large-scale kernel machines. In Advances in neural information processing systems, pages 1177–1184, 2008.
|
| 351 |
+
[51] A. Rakhlin and X. Zhai. Consistency of interpolation with laplace kernels is a high-dimensional phenomenon. In Conference on Learning Theory, pages 2595–2623, 2019.
|
| 352 |
+
[52] D. Richards, J. Mourtada, and L. Rosasco. Asymptotics of ridge (less) regression under general source condition. arXiv preprint arXiv:2006.06386, 2020.
|
| 353 |
+
[53] A. Rudi and L. Rosasco. Generalization properties of learning with random features. In Advances in Neural Information Processing Systems, pages 3215–3225, 2017.
|
| 354 |
+
[54] G. Song, R. Xu, and J. Lafferty. Convergence and alignment of gradient descent with random back propagation weights. arXiv preprint arXiv:2106.06044, 2021.
|
| 355 |
+
[55] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1–9, 2015.
|
| 356 |
+
[56] A. Tsigler and P. L. Bartlett. Benign overfitting in ridge regression. arXiv preprint arXiv:2009.14286, 2020.
|
| 357 |
+
[57] D. von Rosen. Moments for the inverted wishart distribution. Scandinavian Journal of Statistics, pages 97–109, 1988.
|
| 358 |
+
[58] C. Wei, J. D. Lee, Q. Liu, and T. Ma. Regularization matters: Generalization and optimization of neural nets vs their induced kernel. In Advances in Neural Information Processing Systems, pages 9712–9724, 2019.
|
| 359 |
+
[59] A. J. Wyner, M. Olson, J. Bleich, and D. Mease. Explaining the success of adaboost and random forests as interpolating classifiers. The Journal of Machine Learning Research, 18(1): 1558–1590, 2017.
|
| 360 |
+
[60] J. Xu and D. J. Hsu. On the number of variables to use in principal component regression. In Advances in Neural Information Processing Systems, pages 5094–5103, 2019.
|
| 361 |
+
[61] C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017.
|
| 362 |
+
[62] D. Zou, Y. Cao, D. Zhou, and Q. Gu. Gradient descent optimizes over-parameterized deep relu networks. Machine Learning, 109(3):467–492, 2020.
|
| 363 |
+
|
| 364 |
+
# Checklist
|
| 365 |
+
|
| 366 |
+
1. For all authors...
|
| 367 |
+
|
| 368 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 369 |
+
(b) Did you describe the limitations of your work? [Yes]
|
| 370 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 371 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 372 |
+
|
| 373 |
+
2. If you are including theoretical results...
|
| 374 |
+
|
| 375 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes]
|
| 376 |
+
|
| 377 |
+
3. If you ran experiments...
|
| 378 |
+
|
| 379 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [N/A]
|
| 380 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [N/A]
|
| 381 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A]
|
| 382 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [N/A]
|
| 383 |
+
|
| 384 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 385 |
+
|
| 386 |
+
(a) If your work uses existing assets, did you cite the creators? [N/A]
|
| 387 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 388 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 389 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 390 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 391 |
+
|
| 392 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 393 |
+
|
| 394 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 395 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 396 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/rh0vIXw6i33/rh0vIXw6i33_content_list.json
ADDED
|
@@ -0,0 +1,1655 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Multiple Descent: Design Your Own Generalization Curve ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
186,
|
| 8 |
+
122,
|
| 9 |
+
812,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Lin Chen Simons Institute for the Theory of Computing University of California, Berkeley CA 94720 lin.chen@berkeley.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
194,
|
| 19 |
+
222,
|
| 20 |
+
496,
|
| 21 |
+
291
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Yifei Min Department of Statistics and Data Science Yale University CT 06511 yifei.min@yale.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
524,
|
| 30 |
+
222,
|
| 31 |
+
803,
|
| 32 |
+
291
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Mikhail Belkin ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
277,
|
| 42 |
+
313,
|
| 43 |
+
383,
|
| 44 |
+
325
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Halıcıoglu Data Science Institute˘ \nUniversity of California, San Diego CA 92093 mbelkin@ucsd.edu ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
214,
|
| 53 |
+
328,
|
| 54 |
+
449,
|
| 55 |
+
382
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Amin Karbasi School of Engineering and Applied Science Yale University CT 06511 amin.karbasi@yale.edu ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
495,
|
| 64 |
+
313,
|
| 65 |
+
784,
|
| 66 |
+
382
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Abstract ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
462,
|
| 76 |
+
417,
|
| 77 |
+
535,
|
| 78 |
+
434
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "This paper explores the generalization loss of linear regression in variably parameterized families of models, both under-parameterized and over-parameterized. We show that the generalization curve can have an arbitrary number of peaks, and moreover, locations of those peaks can be explicitly controlled. Our results highlight the fact that both classical U-shaped generalization curve and the recently observed double descent curve are not intrinsic properties of the model family. Instead, their emergence is due to the interaction between the properties of the data and the inductive biases of learning algorithms. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
232,
|
| 87 |
+
449,
|
| 88 |
+
767,
|
| 89 |
+
560
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "1 Introduction ",
|
| 96 |
+
"text_level": 1,
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
585,
|
| 100 |
+
310,
|
| 101 |
+
603
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "The main goal of machine learning methods is to provide an accurate out-of-sample prediction, known as generalization. For a fixed family of models, a common way to select a model from this family is through empirical risk minimization, i.e., algorithmically selecting models that minimize the risk on the training dataset. Given a variably parameterized family of models, the statistical learning theory aims to identify the dependence between model complexity and model performance. The empirical risk usually decreases monotonically as the model complexity increases, and achieves its minimum when the model is rich enough to interpolate the training data, resulting in zero (or near-zero) training error. In contrast, the behaviour of the test error as a function of model complexity is far more complicated. Indeed, in this paper we show how to construct a model family for which the generalization curve can be fully controlled (away from the interpolation threshold) in both under-parameterized and over-parameterized regimes. Classical statistical learning theory supports a U-shaped curve of generalization versus model complexity [31, 33]. Under such a framework, the best model is found at the bottom of the U-shaped curve, which corresponds to appropriately balancing under-fitting and over-fitting the training data. From the view of the bias-variance trade-off, a higher model complexity increases the variance while decreasing the bias. A model with an appropriate level of complexity achieves a relatively low bias while still keeping the variance under control. On the other hand, a model that interpolates the training data is deemed to over-fit and tends to worsen the generalization performance due to the soaring variance. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
617,
|
| 111 |
+
825,
|
| 112 |
+
866
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "Although classical statistical theory suggests a pattern of behavior for the generalization curve up to the interpolation threshold, it does not describe what happens beyond the interpolation threshold, commonly referred to as the over-parameterized regime. This is the exact regime where many modern machine learning models, especially deep neural networks, achieved remarkable success. Indeed, neural networks generalize well even when the models are so complex that they have the potential to interpolate all the training data points [61, 10, 32, 34]. ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
872,
|
| 122 |
+
823,
|
| 123 |
+
901
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
92,
|
| 133 |
+
825,
|
| 134 |
+
147
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Modern practitioners commonly deploy deep neural networks with hundreds of millions or even billions of parameters. It has become widely accepted that large models achieve performance superior to small models that may be suggested by the classical U-shaped generalization curve [13, 38, 55, 35, 36]. This indicates that the test error decreases again once model complexity grows beyond the interpolation threshold, resulting in the so called double-descent phenomenon described in [9], which has been broadly supported by empirical evidence [49, 48, 29, 30] and confirmed empirically on modern neural architectures by Nakkiran et al. [46]. On the theoretical side, this phenomenon has been recently addressed by several works on various model settings. In particular, Belkin et al. [11] proved the existence of double-descent phenomenon for linear regression with random feature selection and analyzed the random Fourier feature model [50]. Mei and Montanari [44] also studied the Fourier model and computed the asymptotic test error which captures the double-descent phenomenon. Bartlett et al. [8], Tsigler and Bartlett [56] analyzed and gave explicit conditions for “benign overfitting” in linear and ridge regression, respectively. Caron and Chretien [16] provided a finite sample analysis of the nonlinear function estimation and showed that the parameter learned through empirical risk minimization converges to the true parameter with high probability as the model complexity tends to infinity, implying the existence of double descent. Liu et al. [42] studied the high dimensional kernel ridge regression in the under- and over-parameterized regimes and showed that the risk curve can be double descent, bell-shaped, and monotonically decreasing. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
154,
|
| 144 |
+
825,
|
| 145 |
+
416
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Among all the aforementioned efforts, one particularly interesting question is whether one can observe more than two descents in the generalization curve. d’Ascoli et al. [21] empirically showed a samplewise triple-descent phenomenon under the random Fourier feature model. Similar triple-descent was also observed for linear regression [47]. More rigorously, Liang et al. [41] presented an upper bound on the risk of the minimum-norm interpolation versus the data dimension in Reproducing Kernel Hilbert Spaces (RKHS), which exhibits multiple descent. However, a multiple-descent upper bound without a properly matching lower bound does not imply the existence of a multiple-descent generalization curve. In this work, we study the multiple descent phenomenon by addressing the following questions: ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
421,
|
| 155 |
+
825,
|
| 156 |
+
546
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "• Can the existence of a multiple descent generalization curve be rigorously proven? • Can an arbitrary number of descents occur? • Can the generalization curve and the locations of descents be designed? ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
215,
|
| 165 |
+
553,
|
| 166 |
+
763,
|
| 167 |
+
594
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "In this paper, we show that the answer to all three of these questions is yes. Further related work is presented in Section 2. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
173,
|
| 176 |
+
601,
|
| 177 |
+
823,
|
| 178 |
+
628
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Our Contribution. We consider the linear regression model and analyze how the risk changes as the dimension of the data grows. In the linear regression setting, the data dimension is equal to the dimension of the parameter space, which reflects the model complexity. We rigorously show that the multiple descent generalization curve exists under this setting. To our best knowledge, this is the first work proving a multiple descent phenomenon. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
636,
|
| 188 |
+
825,
|
| 189 |
+
705
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Our analysis considers both the underparametrized and overparametrized regimes. In the overparametrized regime, we show that one can control where a descent or an ascent occurs in the generalization curve. This is realized through our algorithmic construction of a feature-revealing process. To be more specific, we assume that the data is in $\\mathbb { R } ^ { D }$ , where $D$ can be arbitrarily large or even essentially infinite. We view each dimension of the data as a feature. We consider a linear regression problem restricted on the first $d$ features, where $d < D$ . New features are revealed by increasing the dimension of the data. We then show that by specifying the distribution of the newly revealed feature to be either a standard Gaussian or a Gaussian mixture, one can determine where an ascent or a descent occurs. In order to create an ascent when a new feature is revealed, it is sufficient that the feature follows a Gaussian mixture distribution. In order to have a descent, it is sufficient that the new feature follows a standard Gaussian distribution. Therefore, in the overparametrized regime, we can fully control the occurrence of a descent and an ascent. As a comparison, in the underparametrized regime, the generalization loss always increases regardless of the feature distribution. Generally speaking, we show that we are able to design the generalization curve. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
712,
|
| 199 |
+
825,
|
| 200 |
+
905
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "On the one hand, we show theoretically that the generalization curve is malleable and can be constructed in an arbitrary fashion. On the other hand, we rarely observe complex generalization curves in practice, besides carefully curated constructions. Putting these facts together, we arrive at the conclusion that realistic generalization curves arise from specific interactions between properties of typical data and the inductive biases of algorithms. We should highlight that the nature of these interactions is far from being understood and should be an area of further investigations. ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
92,
|
| 210 |
+
825,
|
| 211 |
+
174
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 2
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "2 Related Work ",
|
| 218 |
+
"text_level": 1,
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
195,
|
| 222 |
+
321,
|
| 223 |
+
212
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 2
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "Our work is directly related to the recent line of research in the theoretical understanding of the double descent [11, 34, 60, 44] and the multiple descent phenomenon [41, 39]. Here we briefly discuss some other work that is closely related to this paper. ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
178,
|
| 232 |
+
227,
|
| 233 |
+
821,
|
| 234 |
+
270
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 2
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "Least Square Regression. In this paper we focus on the least square linear regression with no regularization. For the regularized least square regression, De Vito et al. [22] proposed a selection procedure for the regularization parameter. Advani and Saxe [1] analyzed the generalization of neural networks with mean squared error under the asymptotic regime where both the sample size and model complexity tend to infinity. Richards et al. [52] proved for least square regression in the asymptotic regime that as the dimension-to-sample-size ratio $d / n$ grows, an additional peak can occur in both the variance and bias due to the covariance structure of the features. As a comparison, in this paper the sample size is fixed and the model complexity increases. Rudi and Rosasco [53] studied kernel ridge regression and gave an upper bound on the number of the random features to reach certain risk level. Our result shows that there exists a natural setting where by manipulating the random features one can control the risk curve. ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
174,
|
| 243 |
+
285,
|
| 244 |
+
825,
|
| 245 |
+
436
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "Over-Parameterization and Interpolation. The double descent occurs when the model complexity reaches and increases beyond the interpolation threshold. Most previous works focused on proving an upper bound or optimal rate for the risk. Caponnetto and De Vito [15] gave the optimal rate for least square ridge regression via careful selection of the regularization parameter. Belkin et al. [12] showed that the optimal rate for risk can be achieved by a model that interpolates the training data. In a series of work on kernel regression with regularization parameter tending to zero (a.k.a. kernel ridgeless regression), Rakhlin and Zhai [51] showed that the risk is bounded away from zero when the data dimension is fixed with respect to the sample size. Liang and Rakhlin [40] then considered the case when $d \\asymp n$ , showed empirically the multiple descent phenomenon and proved a risk upper bound that can be small given favorable data and kernel assumptions. Instead of giving a bound, our paper presents an exact computation of risk in the cases of underparametrized and overparametrized linear regression, and proves the existence of the multiple descent phenomenon. Wyner et al. [59] analyzed AdaBoost and Random Forest from the perspective of interpolation. There has also been a line of work on wide neural networks [4–6, 23, 3, 58, 14, 2, 18, 62, 54]. ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
174,
|
| 254 |
+
454,
|
| 255 |
+
825,
|
| 256 |
+
647
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "Sample-wise Double Descent and Non-monotonicity. There has also been recent development beyond the model-complexity double-descent phenomenon. For example, regarding sample-wise non-monotonicity, Nakkiran et al. [46] empirically observed the epoch-wise double-descent and sample-wise non-monotonicity for neural networks. Chen et al. [19] and Min et al. [45] identified and proved the sample-wise double descent under the adversarial training setting, and Javanmard et al. [37] discovered double-descent under adversarially robust linear regression. Loog et al. [43] showed that empirical risk minimization can lead to sample-wise non-monotonicity in the standard linear model setting under various loss functions including the absolute loss and the squared loss, which covers the range from classification to regression. We also refer the reader to their discussion of the earlier work on non-monotonicity of generalization curves. Dar et al. [20] demonstrated the double descent curve of the generalization errors of subspace fitting problems. Fei et al. [28] studied the risk-sample tradeoff in reinforcement learning. ",
|
| 263 |
+
"bbox": [
|
| 264 |
+
174,
|
| 265 |
+
662,
|
| 266 |
+
825,
|
| 267 |
+
829
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "3 Preliminaries and Problem Formulation ",
|
| 274 |
+
"text_level": 1,
|
| 275 |
+
"bbox": [
|
| 276 |
+
174,
|
| 277 |
+
849,
|
| 278 |
+
540,
|
| 279 |
+
867
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 2
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "Notation. For $x \\in \\mathbb { R } ^ { D }$ and $d \\leq D$ , we let $x [ 1 : d ] \\in \\mathbb { R } ^ { d }$ denote a $d$ -dimensional vector with $x [ 1 : d ] _ { i } = x _ { i }$ for all $1 \\ \\leq \\ i \\ \\leq \\ d$ . For a matrix $A \\ \\in \\ \\mathbb { R } ^ { n \\times d }$ , we denote its Moore-Penrose pseudoinverse by $A ^ { + } \\in \\mathbb { R } ^ { d \\times n }$ and denote its spectral norm by $\\textstyle \\| A \\| \\triangleq \\operatorname* { s u p } _ { x \\neq 0 } { \\frac { \\| A x \\| _ { 2 } } { \\| x \\| _ { 2 } } }$ kAxk2 , where k · k2 is the Euclidean norm for vectors. If $v$ is a vector, its spectral norm $\\lVert v \\rVert$ agrees with the Euclidean norm $\\lVert \\boldsymbol { v } \\rVert _ { 2 }$ . Therefore, we write $\\lVert v \\rVert$ for $\\lVert \\boldsymbol { v } \\rVert _ { 2 }$ to simplify the notation. We use the big $\\mathrm { o }$ notation $\\mathcal { O }$ and write variables in the subscript of $\\mathcal { O }$ if the implicit constant depends on them. For example, ${ \\mathcal { O } } _ { n , d , \\sigma } ( 1 )$ is a constant that only depends on $n , d ,$ , and $\\sigma$ . If $f ( \\sigma )$ and $g ( \\sigma )$ are functions of $\\sigma$ , write $f ( \\sigma ) \\sim g ( \\sigma )$ if $\\begin{array} { r } { \\operatorname* { l i m } \\frac { f ( \\sigma ) } { g ( \\sigma ) } = 1 } \\end{array}$ . It will be given in the context how we take the limit. ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
173,
|
| 288 |
+
881,
|
| 289 |
+
821,
|
| 290 |
+
911
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 2
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "",
|
| 297 |
+
"bbox": [
|
| 298 |
+
173,
|
| 299 |
+
88,
|
| 300 |
+
826,
|
| 301 |
+
185
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "Distributions. Let ${ \\mathcal { N } } ( \\mu , \\sigma ^ { 2 } )$ $( \\mu , \\sigma \\in \\mathbb { R } )$ and $\\mathcal { N } ( \\boldsymbol { \\mu } , \\boldsymbol { \\Sigma } )$ $\\mathbf { \\mathcal { \\mu } } _ { \\mathbf { \\lambda } } ( \\mathbf { \\mathcal { \\mu } } _ { \\mathbf { \\lambda } } \\mathbf { \\mathbb { R } } ^ { n }$ , $\\Sigma \\in \\mathbb { R } ^ { n \\times n }$ ) denote the univariate and multivariate Gaussian distributions, respectively, where $\\boldsymbol { \\mu } \\in \\mathbb { R } ^ { n }$ and $\\boldsymbol { \\Sigma } \\in \\mathbb { R } ^ { n \\times n }$ is a positive semi-definite matrix. We define a family of trimodal Gaussian mixture distributions as follows ",
|
| 308 |
+
"bbox": [
|
| 309 |
+
174,
|
| 310 |
+
190,
|
| 311 |
+
825,
|
| 312 |
+
234
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "equation",
|
| 318 |
+
"img_path": "images/57cc300f58c1dd11885fedd07b3011525eec8a87ec445e5a0d2bf7014ec5ab8c.jpg",
|
| 319 |
+
"text": "$$\n\\mathcal { N } _ { \\sigma , \\mu } ^ { \\mathrm { m i x } } \\triangleq \\frac 1 3 { N ( 0 , \\sigma ^ { 2 } ) + \\frac { 1 } { 3 } } { N ( - \\mu , \\sigma ^ { 2 } ) + \\frac { 1 } { 3 } } { N ( \\mu , \\sigma ^ { 2 } ) } .\n$$",
|
| 320 |
+
"text_format": "latex",
|
| 321 |
+
"bbox": [
|
| 322 |
+
325,
|
| 323 |
+
244,
|
| 324 |
+
669,
|
| 325 |
+
275
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 3
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "For an illustration, please see Fig. 1. ",
|
| 332 |
+
"bbox": [
|
| 333 |
+
174,
|
| 334 |
+
285,
|
| 335 |
+
411,
|
| 336 |
+
300
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 3
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "image",
|
| 342 |
+
"img_path": "images/34bccdb4d4a2022179ac5125e4c54a675031218de867a057d0a8c1b92194f060.jpg",
|
| 343 |
+
"image_caption": [
|
| 344 |
+
"Figure 1: Density functions of the $\\mathcal { N } ( 0 , 1 )$ and $\\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ feature. A new entry is independently sampled from the 1-dimensional distribution being either a standard Gaussian or trimodal Gaussian mixture. Smaller $\\sigma$ leads to higher concentration around each modes. "
|
| 345 |
+
],
|
| 346 |
+
"image_footnote": [],
|
| 347 |
+
"bbox": [
|
| 348 |
+
186,
|
| 349 |
+
316,
|
| 350 |
+
813,
|
| 351 |
+
460
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "Let $\\chi ^ { 2 } ( k , \\lambda )$ denote the noncentral chi-squared distribution with $k$ degrees of freedom and the non-centrality parameter $\\lambda$ . For example, if $X _ { i } \\sim \\mathcal { N } ( \\mu _ { i } , 1 )$ (for $i = 1 , 2 , \\ldots , k )$ are independent Gaussian random variables, we have ${ \\textstyle \\sum _ { i = 1 } ^ { k } X _ { i } ^ { 2 } \\sim \\chi ^ { 2 } ( k , \\lambda ) }$ , where $\\begin{array} { r } { \\lambda = \\sum _ { i = 1 } ^ { k } \\mu _ { i } ^ { 2 } } \\end{array}$ . We also denote by $\\chi ^ { 2 } ( k )$ the (central) chi-squared distribution with $k$ degrees and the $F$ -distribution by $F ( d _ { 1 } , d _ { 2 } )$ where $d _ { 1 }$ and $d _ { 2 }$ are the degrees of freedom. ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
173,
|
| 360 |
+
530,
|
| 361 |
+
825,
|
| 362 |
+
604
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 3
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "Problem Setup. Let $x _ { 1 } , \\ldots , x _ { n } \\in \\mathbb { R } ^ { D }$ be column vectors that represent the training data of size $n$ and let $\\boldsymbol { x } _ { \\mathrm { t e s t } } \\boldsymbol { \\bar { \\in } } \\mathbb { R } ^ { D }$ be a column vector that represents the test data. We assume that they are all independently drawn from a distribution ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
609,
|
| 372 |
+
825,
|
| 373 |
+
654
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 3
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "equation",
|
| 379 |
+
"img_path": "images/c0f679e0126bf47de6049e53644f2e4b9a1866ed173bd008e502687f1da003d0.jpg",
|
| 380 |
+
"text": "$$\nx _ { 1 } , \\ldots , x _ { n } , x _ { \\mathrm { t e s t } } \\overset { i i d } { \\sim } \\mathcal { D } .\n$$",
|
| 381 |
+
"text_format": "latex",
|
| 382 |
+
"bbox": [
|
| 383 |
+
421,
|
| 384 |
+
665,
|
| 385 |
+
576,
|
| 386 |
+
685
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "Let us consider a linear regression problem on the first $d$ features, where $d \\leq D$ for some arbitrary large $D$ . Here, $d$ can be viewed as the number of features revealed. Then the feature vectors are $\\tilde { x } _ { 1 } , \\ldots , \\tilde { x } _ { n }$ , where $\\widetilde { x } _ { i } = x _ { i } [ 1 : d ] \\in \\mathbb { R } ^ { d }$ denotes the first $d$ entries of $x _ { i }$ . The corresponding response variable $y _ { i }$ satisfies ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
173,
|
| 395 |
+
702,
|
| 396 |
+
825,
|
| 397 |
+
760
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "equation",
|
| 403 |
+
"img_path": "images/49b235e3dfe13087c2d03cecadb1a05dd2e43e08e3d55b46d34739e0b9678d5d.jpg",
|
| 404 |
+
"text": "$$\ny _ { i } = \\tilde { x } _ { i } ^ { \\top } \\beta + \\varepsilon _ { i } , \\quad i = 1 , \\ldots , n ,\n$$",
|
| 405 |
+
"text_format": "latex",
|
| 406 |
+
"bbox": [
|
| 407 |
+
390,
|
| 408 |
+
761,
|
| 409 |
+
606,
|
| 410 |
+
781
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "where the noise $\\varepsilon _ { i } \\sim \\mathcal { N } ( 0 , \\eta ^ { 2 } )$ . We use the same setup as in [34] (see Equations (1) and (2) in [34]). Moreover, in another closely related work [41], if the kernel is set to the linear kernel, it is equivalent to our setup. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
174,
|
| 419 |
+
789,
|
| 420 |
+
825,
|
| 421 |
+
833
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Next, we introduce the estimate $\\hat { \\beta }$ of $\\beta$ and its excess generalization loss. Let $\\varepsilon = ( \\varepsilon _ { 1 } , \\ldots , \\varepsilon _ { n } ) ^ { \\top } \\in \\mathbb { R } ^ { n }$ denote the noise vector. The design matrix $A$ equals $[ \\tilde { x } _ { 1 } , \\ldots , \\tilde { x } _ { n } ] ^ { \\top } \\in \\mathbb { R } ^ { n \\times d }$ . Let $x = x _ { \\mathrm { t e s t } } [ 1 : d ]$ denote the first $d$ features of the test data. For the underparametrized regime where $d < n$ , the least square solution on the training data is $A ^ { + } ( A \\beta + \\varepsilon )$ . For the overparametrized regime where $d > n$ , $A ^ { + } ( A \\beta + \\varepsilon )$ is the minimum-norm solution. In both regimes we consider the solution ${ \\hat { \\boldsymbol { \\beta } } } \\triangleq A ^ { + } ( A \\beta + \\varepsilon )$ . The excess generalization loss on the test data is then given by ",
|
| 428 |
+
"bbox": [
|
| 429 |
+
173,
|
| 430 |
+
838,
|
| 431 |
+
825,
|
| 432 |
+
912
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "",
|
| 439 |
+
"bbox": [
|
| 440 |
+
171,
|
| 441 |
+
89,
|
| 442 |
+
709,
|
| 443 |
+
107
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 4
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "equation",
|
| 449 |
+
"img_path": "images/1f493daeb59206f8fb83616613fb1e589ee4ecb40c040ea2377378ac22add92f.jpg",
|
| 450 |
+
"text": "$$\n\\begin{array} { r l } & { L _ { d } \\triangleq \\mathbb { E } [ ( y - x ^ { \\top } \\hat { \\beta } ) ^ { 2 } - ( y - x ^ { \\top } \\beta ) ^ { 2 } ] } \\\\ & { \\quad = \\mathbb { E } [ ( x ^ { \\top } ( \\hat { \\beta } - \\beta ) ) ^ { 2 } ] } \\\\ & { \\quad = \\mathbb { E } [ ( x ^ { \\top } ( ( A ^ { + } A - I ) \\beta + A ^ { + } \\varepsilon ) ) ^ { 2 } ] } \\\\ & { \\quad = \\mathbb { E } [ ( x ^ { \\top } ( A ^ { + } A - I ) \\beta ) ^ { 2 } ] + \\mathbb { E } [ ( x ^ { \\top } A ^ { + } \\varepsilon ) ^ { 2 } ] } \\\\ & { \\quad = \\mathbb { E } [ ( x ^ { \\top } ( A ^ { + } A - I ) \\beta ) ^ { 2 } ] + \\eta ^ { 2 } \\mathbb { E } ( A ^ { \\top } ) ^ { + } x ^ { 2 } , } \\end{array}\n$$",
|
| 451 |
+
"text_format": "latex",
|
| 452 |
+
"bbox": [
|
| 453 |
+
326,
|
| 454 |
+
111,
|
| 455 |
+
665,
|
| 456 |
+
253
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 4
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "where $y = x ^ { \\top } \\beta + \\varepsilon _ { \\mathrm { t e s t } }$ and $\\varepsilon _ { \\mathrm { t e s t } } \\sim \\mathcal { N } ( 0 , \\eta ^ { 2 } )$ . We call the term $\\mathbb { E } \\left[ ( x ^ { \\top } ( A ^ { + } A - I ) \\beta ) ^ { 2 } \\right]$ the bias and call the term $\\eta ^ { 2 } \\mathbb { E } \\left\\| ( A ^ { \\top } ) ^ { + } x \\right\\| ^ { 2 }$ the variance. ",
|
| 463 |
+
"bbox": [
|
| 464 |
+
173,
|
| 465 |
+
257,
|
| 466 |
+
823,
|
| 467 |
+
294
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 4
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "The next remark shows that in the underparametrized regime, the bias vanishes. The vanishing bias in the underparametrized regime is also observed by Hastie et al. [34] and shown in their Proposition 2. ",
|
| 474 |
+
"bbox": [
|
| 475 |
+
173,
|
| 476 |
+
299,
|
| 477 |
+
823,
|
| 478 |
+
327
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "Remark 1. In the underparametrized regime, if $\\mathcal { D }$ is a continous distribution (our construction presented later satisfies this condition), the matrix $A$ has independent column almost surely. In this case, we have $A ^ { + } A = I$ and therefore the bias $\\mathbb { E } \\left[ ( x ^ { \\top } ( A ^ { + } A - I ) \\beta ) ^ { 2 } \\right]$ vanishes irrespective of $\\beta$ . In other words, in the underparametrized regime, $L _ { d }$ equals $\\eta ^ { 2 } \\mathbb { E } \\| ( A ^ { \\top } ) ^ { + } x \\| ^ { 2 }$ . ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
173,
|
| 487 |
+
330,
|
| 488 |
+
825,
|
| 489 |
+
390
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "According to Remark 1, we have $L _ { d } = \\eta ^ { 2 } \\mathbb { E } \\| ( A ^ { \\top } ) ^ { + } x \\| ^ { 2 }$ in the underparametrized regime. It also holds in the overparametrized regime when $\\beta = 0$ . Without loss of generality, we assume $\\eta = 1$ in the underparametrized regime (for all $\\beta$ ). In the overparametrized regime, we also assume $\\eta = 1$ for the $\\beta = 0$ case. In this case, we have ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
173,
|
| 498 |
+
398,
|
| 499 |
+
825,
|
| 500 |
+
457
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "equation",
|
| 506 |
+
"img_path": "images/a476d10f0893f26f74a94bf7d5a5871f6ce8326909f3e32fe7a2aa63af9e422c.jpg",
|
| 507 |
+
"text": "$$\nL _ { d } = \\mathbb { E } \\| ( A ^ { \\top } ) ^ { + } x \\| ^ { 2 } .\n$$",
|
| 508 |
+
"text_format": "latex",
|
| 509 |
+
"bbox": [
|
| 510 |
+
428,
|
| 511 |
+
460,
|
| 512 |
+
570,
|
| 513 |
+
479
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 4
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "We assume a general $\\eta$ (i.e., not necessarily being 1) in the overparametrized regime when $\\beta$ is non-zero. ",
|
| 520 |
+
"bbox": [
|
| 521 |
+
174,
|
| 522 |
+
483,
|
| 523 |
+
825,
|
| 524 |
+
512
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "We would like to study the change in the loss caused by the growth in the number of features revealed. Recall $L _ { d } = \\mathbb { E } \\| ( A ^ { \\top } ) ^ { + } x \\| ^ { 2 }$ . Once we reveal a new feature, which adds a new row $b ^ { \\top }$ to $A ^ { \\top }$ and a new component $a _ { 1 }$ to $x$ , we have $L _ { d + 1 } = \\mathbb { E } { \\left. \\left[ \\binom { A ^ { \\top } } { b ^ { \\top } } \\right] ^ { + } \\left[ \\frac { x } { a _ { 1 } } \\right] \\right. } ^ { 2 } .$ ",
|
| 531 |
+
"bbox": [
|
| 532 |
+
173,
|
| 533 |
+
517,
|
| 534 |
+
825,
|
| 535 |
+
588
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Local Maximum and Multiple Descent. Throughout the paper, we say that a local maximum occurs at a dimension $d \\geq 1$ if $L _ { d - 1 } < L _ { d }$ and $L _ { d } > L _ { d + 1 }$ . Intuitively, a local maximum occurs if there is an increasing stage of the generalization loss, followed by a decreasing stage, as the dimension $d$ grows. Additionally, we define $L _ { 0 } \\triangleq - \\infty$ . If the generalization loss exhibits a single descent, based on our definition, a unique local maximum occurs at $d = 1$ . For a double-descent generalization curve, a local maximum occurs at two different dimensions. In general, if we observe local maxima at multiple dimensions, we say there is a multiple descent. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
593,
|
| 545 |
+
826,
|
| 546 |
+
693
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "4 Underparametrized Regime ",
|
| 553 |
+
"text_level": 1,
|
| 554 |
+
"bbox": [
|
| 555 |
+
174,
|
| 556 |
+
710,
|
| 557 |
+
439,
|
| 558 |
+
728
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "First, we present our main theorem for the underparametrized regime below, whose proof is deferred to the end of Section 4. It states that the generalization loss $L _ { d }$ is always non-decreasing as $d$ grows. Moreover, it is possible to have an arbitrarily large ascent, i.e., $L _ { d + 1 } - L _ { d } > C$ for any $C > 0$ . ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
174,
|
| 567 |
+
742,
|
| 568 |
+
825,
|
| 569 |
+
785
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 4
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "Theorem 1 (Proof in Section 4.1). If $d < n$ , we have $L _ { d + 1 } \\ge L _ { d }$ irrespective of the data distribution Moreover, for any $C > 0$ , there exists a distribution $\\mathcal { D }$ such that $L _ { d + 1 } - L _ { d } > C$ . ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
173,
|
| 578 |
+
787,
|
| 579 |
+
818,
|
| 580 |
+
816
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "Remark 2 ( $\\mathcal { D }$ can be a product distribution). The first part of Theorem 1 holds irrespective of the data distribution. For the second part of the theorem ( i.e., for any $C > 0$ there exists a distribution such that $L _ { d + 1 } - L _ { d } > C )$ to hold, one extremely simple and elegant choice of the distribution $\\mathcal { D }$ is a product distribution $\\mathcal { D } = \\mathcal { D } _ { 1 } \\times \\cdot \\cdot \\cdot \\times \\mathcal { D } _ { D }$ such that $x _ { i , j } \\stackrel { i i d } { \\sim } \\mathcal { D } _ { j }$ for all $1 \\leq i \\leq n$ , where $\\mathcal { D } _ { j }$ is a Gaussian mixture $\\mathcal { N } _ { \\sigma _ { j } , 1 } ^ { \\mathrm { m i x } }$ for some $\\sigma _ { j } > 0$ . Since the second part of Theorem 1 is of independent interest, the result is summarized by Theorem 4. ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
173,
|
| 589 |
+
819,
|
| 590 |
+
825,
|
| 591 |
+
912
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "Remark 3 (Kernel regression on Gaussian data). In light of Remark 2, $\\mathcal { D }$ can be chosen to be a product distribution that consists $\\mathcal { N } _ { \\sigma _ { j } } ^ { \\mathrm { m i x } }$ . Note that one can simulate $\\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ with $\\mathcal { N } ( 0 , 1 )$ through the inverse transform sampling. To see this, let $F _ { \\mathcal { N } ( 0 , 1 ) }$ and $F _ { \\mathrm { \\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } } } }$ be the cdf of $\\mathcal { N } ( 0 , 1 )$ and $\\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ , respectively. If $X \\sim \\mathcal { N } ( 0 , 1 )$ , we have $F _ { \\mathcal { N } ( 0 , 1 ) } ( X ) \\sim \\mathrm { U n i f } ( ( 0 , 1 ) )$ and therefore $\\varphi _ { \\sigma } ( X ) \\triangleq$ $F _ { \\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } } } ^ { - 1 } ( F _ { \\mathcal { N } ( 0 , 1 ) } ( X ) ) \\sim \\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ . In fact, we can use a multivariate Gaussian $\\mathcal { D } ^ { \\prime } = \\mathcal { N } ( 0 , I _ { D \\times D } )$ and a sequence of non-linear kernels $k ^ { [ 1 : d ] } ( x , x ^ { \\prime } )$ , $\\langle \\phi ^ { [ 1 : d ] } ( x ) , \\phi ^ { [ 1 : d ] } ( x ^ { \\prime } ) \\rangle$ , where the feature map is $\\phi ^ { [ 1 : d ] } ( x ) \\ \\triangleq \\ [ \\phi _ { 1 } ( x _ { 1 } ) , \\phi _ { 2 } ( x _ { 2 } ) , \\ldots , \\phi _ { d } ( x _ { d } ) ] ^ { \\top } \\ \\in \\ \\mathbb { R } ^ { d }$ . Here is a simple rule for defining $\\phi _ { j }$ : if $\\mathcal { D } _ { j } = \\mathcal { N } _ { \\sigma _ { j } } ^ { \\mathrm { m i x } }$ , we set $\\phi _ { j }$ to $\\varphi _ { \\sigma _ { j } }$ . Thus, the problem becomes a kernel regression problem on the standard Gaussian data. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
173,
|
| 600 |
+
89,
|
| 601 |
+
826,
|
| 602 |
+
241
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 5
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "The first part of Theorem 1, which says that $L _ { d }$ is increasing (or more precisely, non-decreasing), agrees with Figure 1 of [11] and Proposition 2 of [34]. In [34], they proved that the risk increases with $\\gamma = d / n$ . Note that, at first glance, Theorem 1 may look counterintuitive since it does not obey the classical U-shaped generalization curve. However, we would like to emphasize that the U-shaped curve does not always occur. In Figure 1 and Proposition 2 of these two papers respectively, there is no U-shaped curve. The intuition behind Theorem 1 is that in the underparametrized setting, the bias is always zero and as $d$ approaches $n$ , the variance keeps increasing. ",
|
| 609 |
+
"bbox": [
|
| 610 |
+
173,
|
| 611 |
+
252,
|
| 612 |
+
825,
|
| 613 |
+
351
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 5
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "Coming to the second part of Theorem 1, we now discuss how we will construct such a distribution $\\mathcal { D }$ inductively to satisfy $L _ { d + 1 } - L _ { d } > C$ . We fix $d$ . Again, denote the first $d$ features of $x _ { \\mathrm { t e s t } }$ by $x \\triangleq x _ { \\mathrm { t e s t } } [ 1 : d ]$ . Let us add an additional component to the training data $x _ { 1 } [ 1 : d ] , \\dotsc , x _ { n } [ 1 : d ]$ and test data $x$ so that the dimension $d$ is incremented by 1. Let $b _ { i } \\in \\mathbb { R }$ denote the additional component that we add to the vector $x _ { i }$ (so that the new vector is given as $[ x _ { i } [ 1 : d ] ^ { \\top } , b _ { i } ] ^ { \\top }$ . Similarly, let $a _ { 1 } \\in \\mathbb { R }$ denote the additional component that we add to the test vector $x$ . We form the column vector $b = [ b _ { 1 } , \\ldots , b _ { n } ] ^ { \\top } \\in \\mathbb { R } ^ { n }$ that collects all additional components that we add to the training data. ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
173,
|
| 622 |
+
356,
|
| 623 |
+
826,
|
| 624 |
+
457
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 5
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "We consider the change in the generalization loss as follows ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
173,
|
| 633 |
+
460,
|
| 634 |
+
568,
|
| 635 |
+
477
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "equation",
|
| 641 |
+
"img_path": "images/736d88a85092415446c8734e8319ba5396fea6efc3291241455e63109e7d4907.jpg",
|
| 642 |
+
"text": "$$\nL _ { d + 1 } - L _ { d } = \\mathbb { E } \\left[ \\left. \\left[ \\mathbf { \\Sigma } _ { b } ^ { A } \\right] ^ { + } \\left[ \\mathbf { \\Sigma } _ { a _ { 1 } } ^ { x } \\right] \\right. ^ { 2 } - \\left. ( A ^ { + } ) ^ { \\top } x \\right. ^ { 2 } \\right] .\n$$",
|
| 643 |
+
"text_format": "latex",
|
| 644 |
+
"bbox": [
|
| 645 |
+
318,
|
| 646 |
+
483,
|
| 647 |
+
678,
|
| 648 |
+
535
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 5
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "Note that the components $b _ { 1 } , \\ldots , b _ { n } , a _ { 1 }$ are i.i.d. The proof of Theorem 1 starts with Lemma 2 which relates the pseudo-inverse of $[ A , b ] ^ { \\top }$ to that of $A ^ { \\top }$ . In this way, we can decompose $\\left\\| \\left[ \\binom { A ^ { \\top } } { b ^ { \\top } } \\right] ^ { + } \\left[ \\binom { x } { a _ { 1 } } \\right] \\right\\| ^ { 2 }$ into multiple terms for further careful analysis in the proofs hereinafter. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
173,
|
| 657 |
+
546,
|
| 658 |
+
825,
|
| 659 |
+
617
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 5
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "Lemma 2 (Proof in Appendix B.1). Let $A \\in \\mathbb { R } ^ { n \\times d }$ and $0 \\neq b \\in \\mathbb { R } ^ { n \\times 1 }$ , where $n \\geq d + 1$ Additionally, let $P = A A ^ { + }$ and $\\begin{array} { r } { Q = b b ^ { + } = \\frac { b b ^ { \\top } } { \\| b \\| ^ { 2 } } } \\end{array}$ bb>2 , and define z , b>(I−P )b2 . If $z \\neq 0$ and the columnwise partitioned matrix $[ A , b ]$ has linearly independent columns, we have ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
173,
|
| 668 |
+
621,
|
| 669 |
+
825,
|
| 670 |
+
672
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 5
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "equation",
|
| 676 |
+
"img_path": "images/07545593772a5be926a3de5faf0e6743266719cbc28a8b923d2b6037e80bc33d.jpg",
|
| 677 |
+
"text": "$$\n\\begin{array} { r l } & { \\left[ \\boldsymbol { A } ^ { \\top } \\right] ^ { + } = \\left[ \\left( I - \\frac { b b ^ { \\top } } { \\| b \\| ^ { 2 } } \\right) \\left( I + \\frac { \\boldsymbol { A } \\boldsymbol { A } ^ { + } b \\boldsymbol { b } ^ { \\top } } { \\| b \\| ^ { 2 } - b ^ { \\top } \\boldsymbol { A } \\boldsymbol { A } ^ { + } b } \\right) ( \\boldsymbol { A } ^ { + } ) ^ { \\top } , \\frac { ( I - \\boldsymbol { A } \\boldsymbol { A } ^ { + } ) \\boldsymbol { b } } { \\| b \\| ^ { 2 } - b ^ { \\top } \\boldsymbol { A } \\boldsymbol { A } ^ { + } \\boldsymbol { b } } \\right] } \\\\ & { = \\left[ ( I - \\boldsymbol { Q } ) ( I + \\frac { P Q } { 1 - \\mathrm { t r } ( P Q ) } ) ( \\boldsymbol { A } ^ { + } ) ^ { \\top } , \\frac { ( I - P ) \\boldsymbol { b } } { b ^ { \\top } ( I - P ) \\boldsymbol { b } } \\right] } \\\\ & { = \\left[ ( I - Q ) ( I + \\frac { P Q } { z } ) ( \\boldsymbol { A } ^ { + } ) ^ { \\top } , \\frac { ( I - P ) \\boldsymbol { b } } { b ^ { \\top } ( I - P ) \\boldsymbol { b } } \\right] . } \\end{array}\n$$",
|
| 678 |
+
"text_format": "latex",
|
| 679 |
+
"bbox": [
|
| 680 |
+
267,
|
| 681 |
+
680,
|
| 682 |
+
728,
|
| 683 |
+
773
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 5
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "In our construction of $\\mathcal { D }$ , the components $\\mathcal { D } _ { j }$ are all continuous distributions. The matrix $I - P$ is an orthogonal projection matrix and therefore $\\operatorname { i r a n k } ( I - P ) = n - d .$ . As a result, it holds almost surely that $b \\neq 0$ , $z \\neq 0$ , and $[ A , b ]$ has linearly independent columns. Thus the assumptions of Lemma 2 are satisfied almost surely. In the sequel, we assume that these assumptions are always fulfilled. ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
176,
|
| 692 |
+
785,
|
| 693 |
+
823,
|
| 694 |
+
843
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 5
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "Theorem 3 guarantees that if $L _ { d } = \\mathbb { E } \\left\\| ( A ^ { + } ) ^ { \\top } x \\right\\| ^ { 2 }$ is finite and the $( d + 1 )$ -th features $b _ { 1 } , \\ldots , b _ { n } , a _ { 1 }$ are i.i.d. sampled from $\\mathcal { N } ( 0 , 1 )$ or $\\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ , $L _ { d + 1 } = \\mathbb { E } \\| [ { \\binom { A ^ { \\top } } { b ^ { \\top } } } ^ { + } [ { \\binom { x } { a _ { 1 } } } ] \\| ^ { 2 }$ is also finite. ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
173,
|
| 703 |
+
848,
|
| 704 |
+
825,
|
| 705 |
+
911
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 5
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "Theorem 3 (Proof in Appendix B.2). Let $z$ be as defined in Lemma 2. If $b _ { 1 } , \\ldots , b _ { n } , a _ { 1 }$ are i.i.d. and follow a distribution with mean zero, conditioned on $A$ and $x$ , we have ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
169,
|
| 714 |
+
90,
|
| 715 |
+
826,
|
| 716 |
+
121
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 6
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "equation",
|
| 722 |
+
"img_path": "images/9b533c9e79d65e1ba3799b5ac474aa82d414370f9fe0389b60ba42a59f3c6d06.jpg",
|
| 723 |
+
"text": "$$\n\\mathbb { E } _ { b , a _ { 1 } } \\left[ \\left. \\left[ \\boldsymbol { \\mathsf { A } } ^ { \\top } \\right] ^ { + } \\left[ \\boldsymbol { \\mathsf { x } } _ { 1 } \\right] \\right. ^ { 2 } \\right] \\leq \\mathbb { E } _ { b , a _ { 1 } } \\left[ \\frac { 1 } { z } \\left. ( \\boldsymbol { A } ^ { + } ) ^ { \\top } \\boldsymbol { \\mathsf { x } } \\right. ^ { 2 } + \\frac { a _ { 1 } ^ { 2 } } { b ^ { \\top } ( I - P ) b } \\right] .\n$$",
|
| 724 |
+
"text_format": "latex",
|
| 725 |
+
"bbox": [
|
| 726 |
+
266,
|
| 727 |
+
125,
|
| 728 |
+
728,
|
| 729 |
+
176
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 6
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "In particular, if $d + 2 < n$ and $b _ { 1 } , \\dots , b _ { n } , a _ { 1 } \\overset { i i d } { \\sim } \\mathcal { N } ( 0 , 1 )$ , conditioned on $A$ and $x$ , we have ",
|
| 736 |
+
"bbox": [
|
| 737 |
+
171,
|
| 738 |
+
183,
|
| 739 |
+
771,
|
| 740 |
+
202
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 6
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "equation",
|
| 746 |
+
"img_path": "images/b6d598af4f89ed38955604f80b592ce6d4cafe36931325d8a08ae819e52b7e33.jpg",
|
| 747 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbb { E } _ { b , a _ { 1 } } \\left[ \\left. \\left[ \\boldsymbol { \\mathsf { A } } ^ { \\top } \\right] ^ { + } \\left[ \\boldsymbol { \\mathsf { x } } _ { 1 } \\right] \\right. ^ { 2 } \\right] \\leq \\frac { ( n - 2 ) \\left. ( \\boldsymbol { \\mathsf { A } } ^ { + } ) ^ { \\top } \\boldsymbol { \\mathsf { x } } \\right. ^ { 2 } + 1 } { n - d - 2 } . } \\end{array}\n$$",
|
| 748 |
+
"text_format": "latex",
|
| 749 |
+
"bbox": [
|
| 750 |
+
312,
|
| 751 |
+
207,
|
| 752 |
+
684,
|
| 753 |
+
257
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "$d + 2 < n$ and $b _ { 1 } , \\dots , b _ { n } , a _ { 1 } \\overset { i i d } { \\sim } \\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ , conditioned on $A$ and $x$ , we have ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
265,
|
| 763 |
+
665,
|
| 764 |
+
285
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "equation",
|
| 770 |
+
"img_path": "images/373979f6f26f89130635fcf71f23d1adc467e2bf7aad3b000ecc85d3c6740e4b.jpg",
|
| 771 |
+
"text": "$$\n\\mathbb { E } _ { b , a _ { 1 } } \\| [ \\binom { A ^ { \\top } } { b ^ { \\top } } ^ { + } [ \\frac { x } { a _ { 1 } } ] \\| ^ { 2 } \\leq \\frac { ( n - 2 + \\sqrt { d } ) \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } + 2 / ( 3 \\sigma ^ { 2 } ) + 1 } { n - d - 2 } .\n$$",
|
| 772 |
+
"text_format": "latex",
|
| 773 |
+
"bbox": [
|
| 774 |
+
264,
|
| 775 |
+
291,
|
| 776 |
+
732,
|
| 777 |
+
337
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 6
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "Using Theorem 3, we can show inductively (on $d$ ) that $L _ { d }$ is finite for every $d$ . Provided that we are able to guarantee finite $L _ { 1 }$ , Theorem 3 implies that $L _ { d }$ is finite for every $d$ if the components are always sampled from $\\mathcal { N } ( 0 , 1 )$ or $\\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ . ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
174,
|
| 786 |
+
348,
|
| 787 |
+
825,
|
| 788 |
+
392
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 6
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "Making a large $L _ { d }$ can be achieved by adding an entry sampled from $\\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ when the data dimension increases from $d - 1$ to $d$ in the previous step. Theorem 4 shows that adding a $\\mathcal { N } _ { \\sigma , 1 } ^ { \\mathrm { m i x } }$ feature can increase the loss by arbitrary amount, which in turn implies the second part of Theorem 1. ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
173,
|
| 797 |
+
398,
|
| 798 |
+
825,
|
| 799 |
+
445
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 6
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "Theorem 4 (Proof in Appendix B.4). For any $\\sigma > 0$ such that if $\\mathbf { \\dot { \\cdot } } b _ { 1 } , \\dots , b _ { n } , a _ { 1 } \\overset { i i d } { \\sim } \\mathcal { N } _ { \\sigma , 1 } ^ { \\operatorname* { m i x } }$ , we have $C > 0$ and $\\mathbb { E } \\left\\| ( A ^ { + } ) ^ { \\top } x \\right\\| ^ { 2 } < + \\infty$ , there exists $a$ ",
|
| 806 |
+
"bbox": [
|
| 807 |
+
173,
|
| 808 |
+
449,
|
| 809 |
+
825,
|
| 810 |
+
488
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 6
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "equation",
|
| 816 |
+
"img_path": "images/1977ccb28cb73ac1cc18f1cfee61a29c4b17519e6f423f6603cc389cc3dbf0ad.jpg",
|
| 817 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } \\left[ \\left. \\left[ \\boldsymbol { \\mathsf { A } } ^ { \\top } \\right] ^ { + } \\left[ \\boldsymbol { \\mathsf { x } } _ { 1 } \\right] \\right. ^ { 2 } - \\left. ( \\boldsymbol { \\mathsf { A } } ^ { + } ) ^ { \\top } \\boldsymbol { \\mathsf { x } } \\right. ^ { 2 } \\right] > C . } \\end{array}\n$$",
|
| 818 |
+
"text_format": "latex",
|
| 819 |
+
"bbox": [
|
| 820 |
+
351,
|
| 821 |
+
494,
|
| 822 |
+
645,
|
| 823 |
+
545
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 6
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "We are now ready to prove Theorem 1. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
174,
|
| 832 |
+
556,
|
| 833 |
+
429,
|
| 834 |
+
571
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 6
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "4.1 Proof of Theorem 1 ",
|
| 841 |
+
"text_level": 1,
|
| 842 |
+
"bbox": [
|
| 843 |
+
173,
|
| 844 |
+
587,
|
| 845 |
+
348,
|
| 846 |
+
603
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 6
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Proof. We follow the notation convention in (3): ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
173,
|
| 855 |
+
613,
|
| 856 |
+
495,
|
| 857 |
+
628
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 6
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "equation",
|
| 863 |
+
"img_path": "images/3bb8f11668637f710d3c179994c54557d750678adcff362035f9f2ec6b418013.jpg",
|
| 864 |
+
"text": "$$\n\\begin{array} { r } { L _ { d + 1 } - L _ { d } = \\mathbb { E } \\left[ \\left. \\left[ \\boldsymbol { \\mathsf { A } } ^ { \\top } \\right] ^ { + } \\left[ \\boldsymbol { \\mathsf { a } } _ { 1 } \\right] \\right. ^ { 2 } - \\left. ( \\boldsymbol { A } ^ { \\top } ) ^ { + } \\boldsymbol { \\mathsf { x } } \\right. ^ { 2 } \\right] . } \\end{array}\n$$",
|
| 865 |
+
"text_format": "latex",
|
| 866 |
+
"bbox": [
|
| 867 |
+
318,
|
| 868 |
+
632,
|
| 869 |
+
678,
|
| 870 |
+
684
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 6
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Recall d < n and the matrix B0 , $B ^ { \\prime } \\triangleq { \\left[ \\begin{array} { l } { A ^ { \\top } } \\\\ { b ^ { \\top } } \\end{array} \\right] }$ is of size $( d + 1 ) \\times n$ . Both matrices $B ^ { \\prime }$ and $B \\triangleq A ^ { \\intercal }$ are fat matrices. As a result, if $x ^ { \\prime } \\triangleq { \\left[ \\begin{array} { l } { x } \\\\ { a _ { 1 } } \\end{array} \\right] }$ , we have ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
173,
|
| 879 |
+
689,
|
| 880 |
+
826,
|
| 881 |
+
755
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 6
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "equation",
|
| 887 |
+
"img_path": "images/387d6cf733b428adfcf37546909c7757c5f0671699813b6d720551a664de3dc4.jpg",
|
| 888 |
+
"text": "$$\n\\| B ^ { \\prime + } x ^ { \\prime } \\| ^ { 2 } = \\operatorname* { m i n } _ { z : B ^ { \\prime } z = x ^ { \\prime } } \\| z \\| ^ { 2 } , \\quad \\| B ^ { + } x \\| ^ { 2 } = \\operatorname* { m i n } _ { z : B z = x } \\| z \\| ^ { 2 } .\n$$",
|
| 889 |
+
"text_format": "latex",
|
| 890 |
+
"bbox": [
|
| 891 |
+
313,
|
| 892 |
+
760,
|
| 893 |
+
684,
|
| 894 |
+
784
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 6
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "Since $\\{ z \\mid B ^ { \\prime } z = x ^ { \\prime } \\} \\subseteq \\{ z \\mid B z = x \\}$ , we get $\\| B ^ { \\prime + } x ^ { \\prime } \\| ^ { 2 } \\geq \\| B ^ { + } x \\| ^ { 2 }$ . Therefore, we obtain $L _ { d + 1 } \\ge L _ { d }$ . The second part follows from Theorem 4. ",
|
| 901 |
+
"bbox": [
|
| 902 |
+
173,
|
| 903 |
+
790,
|
| 904 |
+
825,
|
| 905 |
+
820
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 6
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "Remark 4. Remark 2 and the proof of Theorem 4 indicate that $\\mathcal { D } = \\mathcal { D } _ { 1 } \\times \\cdot \\cdot \\cdot \\times \\mathcal { D } _ { D }$ is a product distribution. The construction in the proof also shows that the generalization curve is determined by the specific choice of the $\\mathcal { D } _ { i }$ ’s. Note that permuting the order of $\\mathcal { D } _ { i }$ ’s is equivalent to changing the order by which the features are being revealed (i.e., permuting the entries of the data $x _ { i }$ ’s). Therefore, given the same data points $x _ { 1 } , \\cdot \\cdot \\cdot , x _ { n } \\in \\mathbb { R } ^ { D }$ , one can create different generalization curves simply by changing the order of the feature-revealing process. ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
173,
|
| 914 |
+
827,
|
| 915 |
+
825,
|
| 916 |
+
912
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 6
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "image",
|
| 922 |
+
"img_path": "images/3ae6272ce8f7e69e181cc3091b02f047c831fd44bf49439b06b86812553f0333.jpg",
|
| 923 |
+
"image_caption": [
|
| 924 |
+
"Figure 2: Illustration of the multiple descent phenomenon for the generalization loss $L _ { d }$ versus the dimension of data $d$ in the overparametrized regime starting from $d = n { + } 8$ . One can fully control the generalization curve to increase or decrease as specified by the sequence $\\Delta = \\{ \\downarrow , \\uparrow , \\downarrow , \\downarrow , \\uparrow , \\downarrow , . . . \\}$ . Adding a new feature with Gaussian mixture distribution increases the loss, while adding one with Gaussian distribution decreases the loss. "
|
| 925 |
+
],
|
| 926 |
+
"image_footnote": [],
|
| 927 |
+
"bbox": [
|
| 928 |
+
323,
|
| 929 |
+
93,
|
| 930 |
+
671,
|
| 931 |
+
229
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 7
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "5 Overparametrized Regime ",
|
| 938 |
+
"text_level": 1,
|
| 939 |
+
"bbox": [
|
| 940 |
+
174,
|
| 941 |
+
337,
|
| 942 |
+
428,
|
| 943 |
+
354
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 7
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "In this section, we study the multiple decent phenomenon in the overparametrized regime. Note that as stated in Section 3, we consider the minimum-norm solution here. We first consider the case where the model $\\beta = 0$ and $L _ { d }$ is as defined in (2). Then we discuss the setting $\\beta \\neq 0$ . ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
173,
|
| 952 |
+
368,
|
| 953 |
+
825,
|
| 954 |
+
411
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 7
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "As stated in the following theorem, we require $d \\ge n + 8$ . This is merely a technical requirement and we can still say that $d$ starts at roughly the same order as $n$ . In other words, the result covers almost the entire spectrum of the overparametrized regime. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
173,
|
| 963 |
+
416,
|
| 964 |
+
823,
|
| 965 |
+
459
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 7
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Theorem 5 (Overparametrized regime, $\\beta ~ = ~ 0 ,$ . Let $\\begin{array} { l l l } { n } & { < } & { D ~ - ~ 9 } \\end{array}$ . Given any sequence $\\Delta _ { n + 8 } , \\Delta _ { n + 9 } , . . . , \\Delta _ { D - 1 }$ where $\\Delta _ { d } \\in \\{ \\uparrow , \\downarrow \\}$ , there exists a distribution $\\mathcal { D }$ such that for every $n + 8 \\leq d \\leq D - 1$ , we have ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
173,
|
| 974 |
+
463,
|
| 975 |
+
825,
|
| 976 |
+
507
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 7
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "equation",
|
| 982 |
+
"img_path": "images/93c048186b3cf238bce7b8e498922367633ee7ada863077240ea65bda52533c9.jpg",
|
| 983 |
+
"text": "$$\nL _ { d + 1 } \\left\\{ \\stackrel { > } { _ { < } } L _ { d } , \\quad i f \\Delta _ { d } = \\uparrow \\right.\n$$",
|
| 984 |
+
"text_format": "latex",
|
| 985 |
+
"bbox": [
|
| 986 |
+
397,
|
| 987 |
+
515,
|
| 988 |
+
583,
|
| 989 |
+
550
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 7
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "In Theorem 5, the sequence $\\Delta _ { n + 8 } , \\Delta _ { n + 9 } , \\cdot \\cdot \\cdot , \\Delta _ { D - 1 }$ is just used to specify the increasing/decreasing behavior of the $L _ { d }$ sequence for $d > n + 8$ . Compared to Theorem 1 for the underparametrized regime, where $L _ { d }$ always increases, Theorem 5 indicates that one is able to fully control both ascents and descents in the overparametrized regime. Fig. 2 is an illustration. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
173,
|
| 998 |
+
565,
|
| 999 |
+
826,
|
| 1000 |
+
622
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 7
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "We now present tools for proving Theorem 5. Lemma 6 gives the pseudo-inverse of $A$ when $d > n$ . Lemma 6 (Proof in Appendix C.1). Let $A \\in \\mathbb { R } ^ { n \\times d }$ and $b \\in \\mathbb { R } ^ { n \\times 1 }$ , where $n \\leq d$ . Assume that matrix $A$ and the columnwise partitioned matrix $B \\triangleq [ A , b ]$ have linearly independent rows. Let $G \\triangleq ( A A ^ { \\top } ) ^ { - 1 } \\in \\mathbb { R } ^ { n \\times n }$ and $\\begin{array} { r } { u \\triangleq \\frac { b ^ { \\intercal } G } { 1 + b ^ { \\intercal } G b } \\in \\mathbb { R } ^ { 1 \\times n } } \\end{array}$ . We have ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
171,
|
| 1009 |
+
627,
|
| 1010 |
+
825,
|
| 1011 |
+
698
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 7
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "equation",
|
| 1017 |
+
"img_path": "images/f0220a941ba7b87cef7f93533316bc31f11203b20f8dbfe46b7ec2562155c94e.jpg",
|
| 1018 |
+
"text": "$$\n\\left[ \\begin{array} { l } \\boldsymbol { A } ^ { \\top } \\right] ^ { + } = \\left[ ( \\boldsymbol { I } - b \\boldsymbol { u } ) ^ { \\top } ( \\boldsymbol { A } ^ { + } ) ^ { \\top } , \\boldsymbol { u } ^ { \\top } \\right] . \\end{array}\n$$",
|
| 1019 |
+
"text_format": "latex",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
377,
|
| 1022 |
+
707,
|
| 1023 |
+
620,
|
| 1024 |
+
743
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 7
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Lemma 7 establishes finite expectation for several random variables. These finite expectation results are necessary for Theorem 8 and Theorem 9 to hold. Technically, they are the dominating random variables needed in Lebesgue’s dominated convergence theorem. Lemma 7 indicates that to guarantee these finite expectations, it suffices to set the first $n + 8$ distributions to the standard normal distribution and then set $\\mathcal { D } _ { n + 8 } , \\ldots , \\mathcal { D } _ { D }$ to either a Gaussian or a Gaussian mixture distribution. In fact, in Theorem 8 and Theorem 9, we always add a Gaussian distribution or a Gaussian mixture. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
756,
|
| 1034 |
+
825,
|
| 1035 |
+
842
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 7
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Lemma 7 (Proof in Appendix C.2). Let $\\mathcal { D } = \\mathcal { D } _ { 1 } \\times \\cdot \\cdot \\cdot \\times \\mathcal { D } _ { D }$ be a product distribution where ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
173,
|
| 1044 |
+
845,
|
| 1045 |
+
790,
|
| 1046 |
+
861
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 7
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Let $\\mathcal { D } _ { [ 1 : d ] }$ denote $\\mathcal { D } _ { 1 } \\times \\cdots \\times \\mathcal { D } _ { d }$ . Assume that every row of $A \\in \\mathbb { R } ^ { n \\times d }$ and $x \\in \\mathbb { R } ^ { d \\times 1 }$ are i.i.d. and follow $\\mathcal { D } _ { [ 1 : d ] }$ . For any $d$ such that $n + 8 \\leq d \\leq D$ , all of the followings hold: ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
168,
|
| 1055 |
+
90,
|
| 1056 |
+
825,
|
| 1057 |
+
121
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 8
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "equation",
|
| 1063 |
+
"img_path": "images/a696906f67177230dcb64d4ef0c1471edbcc37f24a59353c8888ebb8078803ae.jpg",
|
| 1064 |
+
"text": "$$\n\\begin{array} { r l r } & { \\mathbb E [ \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } ] < + \\infty , } & { \\mathbb E [ \\lambda _ { \\operatorname* { m a x } } ^ { 2 } ( ( A A ^ { \\top } ) ^ { - 1 } ) ] < + \\infty , } \\\\ & { \\mathbb E [ \\lambda _ { \\operatorname* { m a x } } ( ( A A ^ { \\top } ) ^ { - 1 } ) \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } ] < + \\infty , } & { \\mathbb E [ \\lambda _ { \\operatorname* { m a x } } ^ { 2 } ( ( A A ^ { \\top } ) ^ { - 1 } ) \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } ] < + \\infty . } \\end{array}\n$$",
|
| 1065 |
+
"text_format": "latex",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
214,
|
| 1068 |
+
126,
|
| 1069 |
+
782,
|
| 1070 |
+
170
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 8
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Theorems 8 and 9 are the key technical results for constructing multiple descent in the overparametrized regime. One can create a descent $( L _ { d + 1 } < L _ { d } )$ by adding a Gaussian feature (Theorem 8) and create an ascent $( L _ { d + 1 } > L _ { d } )$ by adding a Gaussian mixture feature (Theorem 9). ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
174,
|
| 1079 |
+
179,
|
| 1080 |
+
825,
|
| 1081 |
+
223
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 8
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Theorem 8 (Proof in Appendix C.3). If E $\\bar { \\mathsf { x } } [ \\| ( A ^ { \\top } A ) ^ { + } x \\| ^ { 2 } ] > 0$ and all equations in (4) hold, there exists $\\sigma > 0$ such that i $f a _ { 1 } , b _ { 1 } , \\ldots , b _ { n } \\stackrel { i i d } { \\sim } { \\mathcal { N } } ( 0 , \\sigma ^ { 2 } )$ , we have ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
224,
|
| 1091 |
+
825,
|
| 1092 |
+
261
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 8
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "equation",
|
| 1098 |
+
"img_path": "images/97bf275af72a9086d50c3b6d41b83592fef8868904bce270b8d1817becdce140.jpg",
|
| 1099 |
+
"text": "$$\nL _ { d + 1 } - L _ { d } = \\mathbb { E } \\| [ { \\binom { A ^ { \\top } } { b ^ { \\top } } } ^ { + } [ { \\binom { x } { a _ { 1 } } } ] \\| ^ { 2 } - \\mathbb { E } \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } < 0 .\n$$",
|
| 1100 |
+
"text_format": "latex",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
308,
|
| 1103 |
+
266,
|
| 1104 |
+
687,
|
| 1105 |
+
311
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 8
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Theorem 9 shows that adding a Gaussian mixture feature can make $L _ { d + 1 } > L _ { d }$ . ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
171,
|
| 1114 |
+
323,
|
| 1115 |
+
697,
|
| 1116 |
+
339
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 8
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Theorem 9 (Proof in Appendix C.4). Assume $\\sigma > 0$ such that $i f a _ { 1 } , b _ { 1 } , \\ldots , b _ { n } \\stackrel { i i d } { \\sim } \\mathcal { N } _ { \\sigma , \\mu } ^ { \\mathrm { m i x } }$ , we have $\\mathbb { E } \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } < + \\infty$ . For any $C > 0$ , there exist $\\mu$ ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
171,
|
| 1125 |
+
342,
|
| 1126 |
+
820,
|
| 1127 |
+
377
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 8
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "equation",
|
| 1133 |
+
"img_path": "images/3aa389b5c547e615add27c9dce5ddf0bb32d87e188fd6371534478fe4847913b.jpg",
|
| 1134 |
+
"text": "$$\nL _ { d + 1 } - L _ { d } = \\mathbb { E } \\| [ { \\binom { A ^ { \\top } } { b ^ { \\top } } } ^ { + } [ { \\binom { x } { a _ { 1 } } } ] \\| ^ { 2 } - \\mathbb { E } \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } > C .\n$$",
|
| 1135 |
+
"text_format": "latex",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
307,
|
| 1138 |
+
383,
|
| 1139 |
+
691,
|
| 1140 |
+
429
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 8
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "The proof of Theorem 5 immediately follows from Theorem 8 and Theorem 9. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
173,
|
| 1149 |
+
440,
|
| 1150 |
+
687,
|
| 1151 |
+
457
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 8
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "Proof of Theorem 5. We construct the product distribution $\\begin{array} { r } { \\mathcal { D } = \\prod _ { d = 1 } ^ { D } \\mathcal { D } _ { d } } \\end{array}$ . We set $\\mathcal { D } _ { d } = \\mathcal { N } ( 0 , 1 )$ for $d = 1 , \\dotsc , n + 8$ . For $n + 8 < d \\leq D$ , $\\mathcal { D } _ { d }$ is either $\\textstyle \\mathcal { N } ( 0 , \\sigma _ { d } ^ { 2 } )$ dor $\\sqrt { \\operatorname * { m i x } _ { \\sigma _ { d } , \\mu _ { d } } }$ depending on $\\Delta _ { d }$ being either $\\downarrow \\mathrm { o r } \\uparrow$ . ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
173,
|
| 1160 |
+
470,
|
| 1161 |
+
825,
|
| 1162 |
+
517
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 8
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "First we show that for each step $d$ , the assumption $\\mathbb { E } [ \\| ( A ^ { \\top } A ) ^ { + } x \\| ^ { 2 } ] > 0$ of Theorem 8 is satisfied. If $\\mathbb { E } [ \\| ( A ^ { \\top } A ) ^ { + } x \\| ^ { 2 } ] = 0$ , we know that $( A ^ { \\top } A ) ^ { + } x = 0$ almost surely. Since $\\mathcal { D }$ is a continuous distribution, the matrix $A$ has full row rank almost surely. Therefore, $\\operatorname { r a n k } ( ( A ^ { \\top } A ) ^ { + } ) = \\operatorname { r a n k } ( A ^ { \\top } A ) = n$ almost surely. Thus $\\dim \\ker ( A ^ { \\top } A ) ^ { + } = d - n \\leq d - 1$ almost surely, which implies $x \\not \\in \\ker ( A ^ { \\top } A ) ^ { + }$ . In other words, $( A ^ { \\top } A ) ^ { + } x \\neq 0$ almost surely. We reach a contradiction. Moreover, by Lemma 7, the assumption $\\mathbb { E } \\| ( A ^ { + } ) ^ { \\top } x \\| ^ { 2 } < + \\infty$ of Theorem 9 is also satisfied. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
521,
|
| 1172 |
+
826,
|
| 1173 |
+
614
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 8
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "If $\\Delta _ { d - 1 } = \\downarrow$ , by Theorem 8, there exists $\\sigma _ { d } > 0$ such that if $\\mathcal { D } _ { d } = \\mathcal { N } ( 0 , \\sigma _ { d } ^ { 2 } )$ , then $L _ { d } < L _ { d - 1 }$ . Similarly if $\\Delta _ { d - 1 } = \\uparrow$ , by Theorem 9, there exists $\\sigma _ { d }$ and $\\mu _ { d }$ such that $\\mathcal { D } _ { d } = \\mathcal { N } _ { \\sigma _ { d } , \\mu _ { d } } ^ { \\mathrm { m i x } }$ N mixσd,µd guarantees $L _ { d } > L _ { d - 1 }$ . ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
173,
|
| 1182 |
+
618,
|
| 1183 |
+
826,
|
| 1184 |
+
664
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 8
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Gaussian $\\beta$ setting. In what follows, we study the case where the model $\\beta$ is non-zero. In particular, we consider a setting where each entry of $\\beta$ is i.i.d. $\\mathcal { N } ( 0 , \\rho ^ { 2 } )$ . Recalling (1), define the biases ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
171,
|
| 1193 |
+
698,
|
| 1194 |
+
826,
|
| 1195 |
+
728
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 8
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "equation",
|
| 1201 |
+
"img_path": "images/763f0cfeefbccd51465a18c3321dac866a2ddac5c0c834ddd645ebae71418c00.jpg",
|
| 1202 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { E } _ { d } \\triangleq ( x ^ { \\top } ( A ^ { + } A - I ) \\beta ) ^ { 2 } , \\quad \\mathcal { E } _ { d + 1 } \\triangleq \\left( [ x ^ { \\top } , a _ { 1 } ] ( [ A , b ] ^ { + } [ A , b ] - I ) \\left[ \\beta \\right] \\right) ^ { 2 } , } \\end{array}\n$$",
|
| 1203 |
+
"text_format": "latex",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
248,
|
| 1206 |
+
734,
|
| 1207 |
+
746,
|
| 1208 |
+
771
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 8
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "and the expected risks ",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
173,
|
| 1217 |
+
776,
|
| 1218 |
+
321,
|
| 1219 |
+
790
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 8
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "equation",
|
| 1225 |
+
"img_path": "images/2a28a7100cda91abd38adcc828c9460e0ecc68226ed3891724dc9fe9b564360c.jpg",
|
| 1226 |
+
"text": "$$\n\\begin{array} { r } { L _ { d } ^ { \\mathrm { e x p } } \\triangleq \\mathbb E [ \\mathcal { E } _ { d } ] + \\eta ^ { 2 } \\mathbb E \\| ( A ^ { \\top } ) ^ { + } x \\| ^ { 2 } , \\quad L _ { d + 1 } ^ { \\mathrm { e x p } } \\triangleq \\mathbb E [ \\mathcal { E } _ { d + 1 } ] + \\eta ^ { 2 } \\mathbb E \\| [ [ A ^ { \\top } ] ^ { + } [ a _ { 1 } ] ] ^ { 2 } , } \\end{array}\n$$",
|
| 1227 |
+
"text_format": "latex",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
233,
|
| 1230 |
+
796,
|
| 1231 |
+
761,
|
| 1232 |
+
842
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 8
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "where $\\beta \\sim \\mathcal { N } ( 0 , \\rho ^ { 2 } I _ { d } )$ and $\\beta _ { 1 } \\sim \\mathcal { N } ( 0 , \\rho ^ { 2 } )$ . The second term in $\\boldsymbol { L } _ { d } ^ { \\mathrm { e x p } }$ and $L _ { d + 1 } ^ { \\mathrm { e x p } }$ is the variance term. Note that ${ \\cal L } _ { d } ^ { \\mathrm { e x p } }$ is the expected value of $L _ { d }$ in (1) and averages over $\\beta$ . Theorem 10 shows that one d can add a Gaussian mixture feature in order to make $L _ { d + 1 } ^ { \\mathrm { e x p } } > L _ { d } ^ { \\mathrm { e x p } }$ , and add a Gaussian feature in order to make Lexpd+1 $L _ { d + 1 } ^ { \\exp } < L _ { d } ^ { \\exp }$ . ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
173,
|
| 1241 |
+
847,
|
| 1242 |
+
826,
|
| 1243 |
+
914
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 8
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Theorem 10 (Proof in Appendix C.5). Let $a _ { 1 } , \\beta _ { 1 } \\in \\mathbb { R } ,$ , $x \\in \\mathbb { R } ^ { d \\times 1 }$ , $\\beta \\in \\mathbb { R } ^ { d \\times 1 }$ , $A \\in \\mathbb { R } ^ { n \\times d }$ and $b \\in \\mathbb { R } ^ { n \\times 1 }$ , where $n \\leq d$ . Assume that $x , a _ { 1 } , \\beta _ { 1 } , \\beta , A , b$ are jointly independent, $[ \\beta ^ { \\top } , \\beta _ { 1 } ] ^ { \\top } \\sim$ $\\mathcal { N } ( 0 , \\rho ^ { 2 } I _ { d + 1 } )$ . Moreover, assume that the matrix $[ A , b ]$ has linearly independent rows almost surely. The following statements hold: ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
173,
|
| 1252 |
+
89,
|
| 1253 |
+
826,
|
| 1254 |
+
147
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 9
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "$f a _ { 1 } , b _ { 1 } , \\ldots , b _ { n } \\stackrel { i i d } { \\sim } \\mathcal { N } _ { \\sigma , \\mu } ^ { \\mathrm { m i x } } ,$ , for any $C > 0$ , there exist $\\mu , \\sigma$ such that $L _ { d + 1 } ^ { \\mathrm { e x p } } - L _ { d } ^ { \\mathrm { e x p } } > C$ (b) If $\\cdot _ { a _ { 1 } , b _ { 1 } , . . . , b _ { n } } \\stackrel { i i d } { \\sim } \\mathcal { N } ( 0 , \\sigma ^ { 2 } )$ , there exists $\\sigma > 0$ such that for all ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
200,
|
| 1263 |
+
160,
|
| 1264 |
+
794,
|
| 1265 |
+
181
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 9
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
205,
|
| 1274 |
+
190,
|
| 1275 |
+
658,
|
| 1276 |
+
212
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 9
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "equation",
|
| 1282 |
+
"img_path": "images/7eb302e78e08a0fa43c69d7dc10a3d2d535628d58d4627661b31934bc2ac2695.jpg",
|
| 1283 |
+
"text": "$$\n\\rho \\leq \\eta \\sqrt { \\frac { \\mathbb { E } [ \\| ( A ^ { \\top } A ) ^ { + } x \\| ^ { 2 } ] } { \\mathbb { E } \\| A ^ { + \\top } x \\| ^ { 2 } + 1 } } ,\n$$",
|
| 1284 |
+
"text_format": "latex",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
436,
|
| 1287 |
+
219,
|
| 1288 |
+
619,
|
| 1289 |
+
262
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 9
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "we hav e $L _ { d + 1 } ^ { \\exp } < L _ { d } ^ { \\exp }$ ",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
232,
|
| 1298 |
+
270,
|
| 1299 |
+
380,
|
| 1300 |
+
290
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 9
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "Theorem 10 indicates that for $\\beta$ obeying a normal distribution, one can still construct a generalization curve as desired by adding a Gaussian or Gaussian mixture feature properly. We make this construction explicit for any desired generalization curve in (the proof of) Theorem 11. Similar to the construction in the underparametrized regime (for all $\\beta$ ) and overparametrization regime (for $\\beta = 0$ ), the distribution $\\mathcal { D }$ can be made a product distribution. ",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
173,
|
| 1309 |
+
297,
|
| 1310 |
+
826,
|
| 1311 |
+
369
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 9
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "Theorem 11 (Overparametrized regime, $\\beta$ being Gaussian). Let $n < D - 9$ . Given any sequence $\\Delta _ { n + 8 } , \\Delta _ { n + 9 } , . . . , \\Delta _ { D - 1 }$ where $\\Delta _ { d } \\in \\{ \\uparrow , \\downarrow \\}$ , there exists $\\rho > 0$ and a distribution $\\mathcal { D }$ such that for $\\beta \\sim \\mathcal { N } ( 0 , \\rho ^ { 2 } )$ and every $n + 8 \\leq d \\leq D - 1$ , we have ",
|
| 1318 |
+
"bbox": [
|
| 1319 |
+
173,
|
| 1320 |
+
375,
|
| 1321 |
+
826,
|
| 1322 |
+
416
|
| 1323 |
+
],
|
| 1324 |
+
"page_idx": 9
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"type": "equation",
|
| 1328 |
+
"img_path": "images/432bf31e86eef41a962b09345a5232a7f3d9c603ef2ebfa80af7412a08452350.jpg",
|
| 1329 |
+
"text": "$$\n\\begin{array} { r } { L _ { d + 1 } ^ { \\mathrm { e x p } } \\left\\{ { \\stackrel { > } { \\sim } } L _ { d } ^ { \\mathrm { e x p } } , \\quad i f \\Delta _ { d } = \\uparrow \\right. } \\\\ { \\left. < L _ { d } ^ { \\mathrm { e x p } } , \\quad i f \\Delta _ { d } = \\downarrow . \\right. } \\end{array}\n$$",
|
| 1330 |
+
"text_format": "latex",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
392,
|
| 1333 |
+
428,
|
| 1334 |
+
588,
|
| 1335 |
+
463
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 9
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "Proof of Theorem $I I$ . Define the design matrix $A _ { d } \\triangleq [ x _ { 1 } [ 1 : d ] , \\dots , x _ { n } [ 1 : d ] ] ^ { \\intercal } \\in \\mathbb { R } ^ { n \\times d }$ . Similar to the proof of Theorem 5, we construct the product distribution $\\begin{array} { r } { \\mathcal { D } = \\prod _ { d = 1 } ^ { D } \\mathcal { D } _ { d } } \\end{array}$ . We set $\\mathcal { D } _ { d } = \\mathcal { N } ( 0 , 1 )$ for $d = 1 , \\ldots , n + 8$ . For $n + 8 < d \\leq D$ , $\\mathcal { D } _ { d }$ is either $\\textstyle \\mathcal { N } ( 0 , \\sigma _ { d } ^ { 2 } )$ or $\\sqrt { \\operatorname* { m i x } _ { \\sigma _ { d } , \\mu _ { d } } }$ depending on $\\Delta _ { d }$ being either $\\downarrow$ or $\\uparrow$ . ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
173,
|
| 1344 |
+
486,
|
| 1345 |
+
826,
|
| 1346 |
+
549
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 9
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "If $\\Delta _ { d - 1 } = \\uparrow$ , by Theorem 10, there exists $\\sigma _ { d }$ and $\\mu _ { d }$ such that $\\mathcal { D } _ { d } = \\mathcal { N } _ { \\sigma _ { d } , \\mu _ { d } } ^ { \\mathrm { m i x } }$ guarantees $L _ { d } ^ { \\exp } > L _ { d - 1 } ^ { \\exp }$ $\\Delta _ { d - 1 } = \\downarrow$ ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
173,
|
| 1355 |
+
553,
|
| 1356 |
+
825,
|
| 1357 |
+
583
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 9
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "equation",
|
| 1363 |
+
"img_path": "images/883b4b1b7f6595ef74d8cbdc81b871328ca3d0dd5b1b30bd9104660d7e10e23b.jpg",
|
| 1364 |
+
"text": "$$\n\\rho _ { d } \\triangleq \\eta \\sqrt { \\frac { \\mathbb { E } [ \\| ( A _ { d - 1 } ^ { \\top } A _ { d - 1 } ) ^ { + } x _ { \\mathrm { t e s t } } [ 1 : d - 1 ] \\| ^ { 2 } ] } { \\mathbb { E } \\| A _ { d - 1 } ^ { + \\top } x _ { \\mathrm { t e s t } } [ 1 : d - 1 ] \\| ^ { 2 } + 1 } } .\n$$",
|
| 1365 |
+
"text_format": "latex",
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
343,
|
| 1368 |
+
584,
|
| 1369 |
+
653,
|
| 1370 |
+
627
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 9
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "By Theorem 10, there exists $\\sigma _ { d } > 0$ such that if $\\rho \\leq \\rho _ { d }$ and $\\mathcal { D } _ { d } = \\mathcal { N } ( 0 , \\sigma _ { d } ^ { 2 } )$ , then $L _ { d } ^ { \\exp } < L _ { d - 1 } ^ { \\exp }$ . We ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
173,
|
| 1379 |
+
633,
|
| 1380 |
+
823,
|
| 1381 |
+
662
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 9
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "equation",
|
| 1387 |
+
"img_path": "images/9e785045e0b81eb940bada3b6eb7fd32c46e0dc5e63647e7fb4ef6b5885aa0db.jpg",
|
| 1388 |
+
"text": "$$\n\\rho = \\operatorname* { m i n } _ { \\substack { d : \\Delta _ { d - 1 } = \\downarrow } } \\rho _ { d } .\n$$",
|
| 1389 |
+
"text_format": "latex",
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
439,
|
| 1392 |
+
665,
|
| 1393 |
+
558,
|
| 1394 |
+
689
|
| 1395 |
+
],
|
| 1396 |
+
"page_idx": 9
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"type": "text",
|
| 1400 |
+
"text": "6 Conclusion ",
|
| 1401 |
+
"text_level": 1,
|
| 1402 |
+
"bbox": [
|
| 1403 |
+
173,
|
| 1404 |
+
733,
|
| 1405 |
+
299,
|
| 1406 |
+
750
|
| 1407 |
+
],
|
| 1408 |
+
"page_idx": 9
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"type": "text",
|
| 1412 |
+
"text": "Our work proves that the expected risk of linear regression can manifest multiple descents when the number of features increases and sample size is fixed. This is carried out through an algorithmic construction of a feature-revealing process where the newly revealed feature follows either a Gaussian distribution or a Gaussian mixture distribution. Notably, the construction also enables us to control local maxima in the underparametrized regime and control ascents/descents freely in the overparametrized regime. Overall, this allows us to design the generalization curve away from the interpolation threshold. ",
|
| 1413 |
+
"bbox": [
|
| 1414 |
+
173,
|
| 1415 |
+
765,
|
| 1416 |
+
825,
|
| 1417 |
+
863
|
| 1418 |
+
],
|
| 1419 |
+
"page_idx": 9
|
| 1420 |
+
},
|
| 1421 |
+
{
|
| 1422 |
+
"type": "text",
|
| 1423 |
+
"text": "We believe that our analysis of linear regression in this paper is a good starting point for explaining non-monotonic generalization curves observed in machine learning studies. Extending these results to more complex problem setups would be a meaningful future direction. ",
|
| 1424 |
+
"bbox": [
|
| 1425 |
+
174,
|
| 1426 |
+
869,
|
| 1427 |
+
825,
|
| 1428 |
+
911
|
| 1429 |
+
],
|
| 1430 |
+
"page_idx": 9
|
| 1431 |
+
},
|
| 1432 |
+
{
|
| 1433 |
+
"type": "text",
|
| 1434 |
+
"text": "Funding Transparency Statement ",
|
| 1435 |
+
"text_level": 1,
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
174,
|
| 1438 |
+
89,
|
| 1439 |
+
455,
|
| 1440 |
+
107
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 10
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "LC: Funding in direct support of this work: postdoctoral research fellowship by the Simons Institute for the Theory of Computing, University of California, Berkeley, and Google PhD Fellowship by Google. Additional revenues related to this work: internships at Google. ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
174,
|
| 1449 |
+
121,
|
| 1450 |
+
825,
|
| 1451 |
+
162
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 10
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "MB acknowledges support from NSF IIS-1815697, and the support of the NSF and the Simons Foundation for the Collaboration on the Theoretical Foundations of Deep Learning through awards DMS-2031883 and #814639. ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
174,
|
| 1460 |
+
169,
|
| 1461 |
+
821,
|
| 1462 |
+
210
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 10
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "AK: Funding in direct support of this work: NSF (IIS-1845032) and ONR (N00014-19-1-2406). ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
171,
|
| 1471 |
+
217,
|
| 1472 |
+
803,
|
| 1473 |
+
233
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 10
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "References ",
|
| 1480 |
+
"text_level": 1,
|
| 1481 |
+
"bbox": [
|
| 1482 |
+
174,
|
| 1483 |
+
252,
|
| 1484 |
+
267,
|
| 1485 |
+
268
|
| 1486 |
+
],
|
| 1487 |
+
"page_idx": 10
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "[1] M. S. Advani and A. M. Saxe. High-dimensional dynamics of generalization error in neural networks. arXiv preprint arXiv:1710.03667, 2017. \n[2] M. S. Advani, A. M. Saxe, and H. Sompolinsky. High-dimensional dynamics of generalization error in neural networks. Neural Networks, 132:428–446, 2020. \n[3] Z. Allen-Zhu, Y. Li, and Z. Song. A convergence theory for deep learning via overparameterization. In International Conference on Machine Learning, pages 242–252, 2019. \n[4] S. Arora, S. S. Du, W. Hu, Z. Li, R. R. Salakhutdinov, and R. Wang. On exact computation with an infinitely wide neural net. In Advances in Neural Information Processing Systems, pages 8141–8150, 2019. \n[5] S. Arora, S. S. Du, W. Hu, Z. Li, and R. Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In ICML, pages 477–502, 2019. \n[6] S. Arora, S. S. Du, Z. Li, R. Salakhutdinov, R. Wang, and D. Yu. Harnessing the power of infinitely wide deep nets on small-data tasks. In International Conference on Learning Representations, 2019. [7] J. K. Baksalary and O. M. Baksalary. Particular formulae for the moore–penrose inverse of a columnwise partitioned matrix. Linear algebra and its applications, 421(1):16–23, 2007. \n[8] P. L. Bartlett, P. M. Long, G. Lugosi, and A. Tsigler. Benign overfitting in linear regression. Proceedings of the National Academy of Sciences, 2020. \n[9] M. Belkin, D. Hsu, S. Ma, and S. Mandal. Reconciling modern machine learning and the bias-variance trade-off. stat, 1050:28, 2018. \n[10] M. Belkin, S. Ma, and S. Mandal. To understand deep learning we need to understand kernel learning. In International Conference on Machine Learning, pages 541–549, 2018. \n[11] M. Belkin, D. Hsu, and J. Xu. Two models of double descent for weak features. arXiv preprint arXiv:1903.07571, 2019. \n[12] M. Belkin, A. Rakhlin, and A. B. Tsybakov. Does data interpolation contradict statistical optimality? In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1611–1619, 2019. \n[13] Y. Bengio, R. Ducharme, P. Vincent, and C. Jauvin. A neural probabilistic language model. Journal of machine learning research, 3(Feb):1137–1155, 2003. \n[14] Y. Cao and Q. Gu. Generalization bounds of stochastic gradient descent for wide and deep neural networks. In Advances in Neural Information Processing Systems, pages 10836–10846, 2019. \n[15] A. Caponnetto and E. De Vito. Optimal rates for the regularized least-squares algorithm. Foundations of Computational Mathematics, 7(3):331–368, 2007. \n[16] E. Caron and S. Chretien. A finite sample analysis of the double descent phenomenon for ridge function estimation. arXiv preprint arXiv:2007.12882, 2020. \n[17] M. Caron, P. Bojanowski, A. Joulin, and M. Douze. Deep clustering for unsupervised learning of visual features. In Proceedings of the European Conference on Computer Vision (ECCV), pages 132–149, 2018. \n[18] L. Chen and S. Xu. Deep neural tangent kernel and laplace kernel have the same rkhs. In ICLR, 2021. \n[19] L. Chen, Y. Min, M. Zhang, and A. Karbasi. More data can expand the generalization gap between adversarially robust and standard models. In International Conference on Machine Learning, pages 1670–1680. PMLR, 2020. \n[20] Y. Dar, P. Mayer, L. Luzi, and R. G. Baraniuk. Subspace fitting meets regression: The effects of supervision and orthonormality constraints on double descent of generalization errors. In ICML, 2020. \n[21] S. d’Ascoli, L. Sagun, and G. Biroli. Triple descent and the two kinds of overfitting: Where & why do they appear? arXiv preprint arXiv:2006.03509, 2020. \n[22] E. De Vito, A. Caponnetto, and L. Rosasco. Model selection for regularized least-squares algorithm in learning theory. Foundations of Computational Mathematics, 5(1):59–85, 2005. \n[23] S. Du, J. Lee, H. Li, L. Wang, and X. Zhai. Gradient descent finds global minima of deep neural networks. In International Conference on Machine Learning, pages 1675–1685, 2019. \n[24] Y. Fei and Y. Chen. Exponential error rates of sdp for block models: Beyond grothendieck’s inequality. IEEE Transactions on Information Theory, 65(1):551–571, 2018. \n[25] Y. Fei and Y. Chen. Hidden integrality of sdp relaxations for sub-gaussian mixture models. In Conference On Learning Theory, pages 1931–1965. PMLR, 2018. \n[26] Y. Fei and Y. Chen. Achieving the bayes error rate in stochastic block model by sdp, robustly. In Conference on Learning Theory, pages 1235–1269. PMLR, 2019. \n[27] Y. Fei and Y. Chen. Achieving the bayes error rate in synchronization and block models by sdp, robustly. IEEE Transactions on Information Theory, 66(6):3929–3953, 2020. \n[28] Y. Fei, Z. Yang, Y. Chen, Z. Wang, and Q. Xie. Risk-sensitive reinforcement learning: Nearoptimal risk-sample tradeoff in regret. arXiv preprint arXiv:2006.13827, 2020. \n[29] M. Geiger, S. Spigler, S. d’Ascoli, L. Sagun, M. Baity-Jesi, G. Biroli, and M. Wyart. Jamming transition as a paradigm to understand the loss landscape of deep neural networks. Physical Review E, 100(1):012115, 2019. \n[30] M. Geiger, A. Jacot, S. Spigler, F. Gabriel, L. Sagun, S. d’Ascoli, G. Biroli, C. Hongler, and M. Wyart. Scaling description of generalization with number of parameters in deep learning. Journal of Statistical Mechanics: Theory and Experiment, 2020(2):023401, 2020. \n[31] S. Geman, E. Bienenstock, and R. Doursat. Neural networks and the bias/variance dilemma. Neural computation, 4(1):1–58, 1992. \n[32] B. Ghorbani, S. Mei, T. Misiakiewicz, and A. Montanari. Linearized two-layers neural networks in high dimension. arXiv preprint arXiv:1904.12191, 2019. \n[33] T. Hastie, R. Tibshirani, and J. Friedman. The elements of statistical learning: data mining, inference, and prediction. Springer Science & Business Media, 2009. \n[34] T. Hastie, A. Montanari, S. Rosset, and R. J. Tibshirani. Surprises in high-dimensional ridgeless least squares interpolation. arXiv preprint arXiv:1903.08560, 2019. \n[35] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770– 778, 2016. \n[36] Y. Huang, Y. Cheng, A. Bapna, O. Firat, D. Chen, M. Chen, H. Lee, J. Ngiam, Q. V. Le, Y. Wu, et al. Gpipe: Efficient training of giant neural networks using pipeline parallelism. In Advances in neural information processing systems, pages 103–112, 2019. \n[37] A. Javanmard, M. Soltanolkotabi, and H. Hassani. Precise tradeoffs in adversarial training for linear regression. In Conference on Learning Theory, 2020. \n[38] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097–1105, 2012. \n[39] Y. Li and Y. Wei. Minimum $\\ell _ { 1 }$ -norm interpolators: Precise asymptotics and multiple descent. arXiv preprint arXiv:2110.09502, 2021. \n[40] T. Liang and A. Rakhlin. Just interpolate: Kernel “ridgeles” regression can generalize. Annals of Statistics, page to appear, 2019. \n[41] T. Liang, A. Rakhlin, and X. Zhai. On the multiple descent of minimum-norm interpolants and restricted lower isometry of kernels. In COLT, 2020. \n[42] F. Liu, Z. Liao, and J. Suykens. Kernel regression in high dimensions: Refined analysis beyond double descent. In International Conference on Artificial Intelligence and Statistics, pages 649–657. PMLR, 2021. \n[43] M. Loog, T. Viering, and A. Mey. Minimizers of the empirical risk and risk monotonicity. In Advances in Neural Information Processing Systems, pages 7478–7487, 2019. \n[44] S. Mei and A. Montanari. The generalization error of random features regression: Precise asymptotics and double descent curve. arXiv preprint arXiv:1908.05355, 2019. \n[45] Y. Min, L. Chen, and A. Karbasi. The curious case of adversarially robust models: More data can help, double descend, or hurt generalization. arXiv preprint arXiv:2002.11080, 2020. \n[46] P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, and I. Sutskever. Deep double descent: Where bigger models and more data hurt. arXiv preprint arXiv:1912.02292, 2019. \n[47] P. Nakkiran, P. Venkat, S. Kakade, and T. Ma. Optimal regularization can mitigate double descent. arXiv preprint arXiv:2003.01897, 2020. \n[48] B. Neal, S. Mittal, A. Baratin, V. Tantia, M. Scicluna, S. Lacoste-Julien, and I. Mitliagkas. A modern take on the bias-variance tradeoff in neural networks. arXiv preprint arXiv:1810.08591, 2018. \n[49] B. Neyshabur, R. Tomioka, and N. Srebro. In search of the real inductive bias: On the role of implicit regularization in deep learning. In ICLR (Workshop), 2015. \n[50] A. Rahimi and B. Recht. Random features for large-scale kernel machines. In Advances in neural information processing systems, pages 1177–1184, 2008. \n[51] A. Rakhlin and X. Zhai. Consistency of interpolation with laplace kernels is a high-dimensional phenomenon. In Conference on Learning Theory, pages 2595–2623, 2019. \n[52] D. Richards, J. Mourtada, and L. Rosasco. Asymptotics of ridge (less) regression under general source condition. arXiv preprint arXiv:2006.06386, 2020. \n[53] A. Rudi and L. Rosasco. Generalization properties of learning with random features. In Advances in Neural Information Processing Systems, pages 3215–3225, 2017. \n[54] G. Song, R. Xu, and J. Lafferty. Convergence and alignment of gradient descent with random back propagation weights. arXiv preprint arXiv:2106.06044, 2021. \n[55] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1–9, 2015. \n[56] A. Tsigler and P. L. Bartlett. Benign overfitting in ridge regression. arXiv preprint arXiv:2009.14286, 2020. \n[57] D. von Rosen. Moments for the inverted wishart distribution. Scandinavian Journal of Statistics, pages 97–109, 1988. \n[58] C. Wei, J. D. Lee, Q. Liu, and T. Ma. Regularization matters: Generalization and optimization of neural nets vs their induced kernel. In Advances in Neural Information Processing Systems, pages 9712–9724, 2019. \n[59] A. J. Wyner, M. Olson, J. Bleich, and D. Mease. Explaining the success of adaboost and random forests as interpolating classifiers. The Journal of Machine Learning Research, 18(1): 1558–1590, 2017. \n[60] J. Xu and D. J. Hsu. On the number of variables to use in principal component regression. In Advances in Neural Information Processing Systems, pages 5094–5103, 2019. \n[61] C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017. \n[62] D. Zou, Y. Cao, D. Zhou, and Q. Gu. Gradient descent optimizes over-parameterized deep relu networks. Machine Learning, 109(3):467–492, 2020. ",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
171,
|
| 1494 |
+
276,
|
| 1495 |
+
828,
|
| 1496 |
+
916
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 10
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
171,
|
| 1505 |
+
64,
|
| 1506 |
+
830,
|
| 1507 |
+
911
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 11
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
171,
|
| 1516 |
+
75,
|
| 1517 |
+
828,
|
| 1518 |
+
917
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 12
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
171,
|
| 1527 |
+
90,
|
| 1528 |
+
826,
|
| 1529 |
+
381
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 13
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "Checklist ",
|
| 1536 |
+
"text_level": 1,
|
| 1537 |
+
"bbox": [
|
| 1538 |
+
174,
|
| 1539 |
+
407,
|
| 1540 |
+
254,
|
| 1541 |
+
424
|
| 1542 |
+
],
|
| 1543 |
+
"page_idx": 13
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"type": "text",
|
| 1547 |
+
"text": "1. For all authors... ",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
214,
|
| 1550 |
+
434,
|
| 1551 |
+
339,
|
| 1552 |
+
449
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 13
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "text",
|
| 1558 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
238,
|
| 1561 |
+
454,
|
| 1562 |
+
825,
|
| 1563 |
+
546
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 13
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "2. If you are including theoretical results... ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
214,
|
| 1572 |
+
551,
|
| 1573 |
+
493,
|
| 1574 |
+
565
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 13
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "text",
|
| 1580 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] ",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
238,
|
| 1583 |
+
570,
|
| 1584 |
+
735,
|
| 1585 |
+
602
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 13
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "3. If you ran experiments... ",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
212,
|
| 1594 |
+
607,
|
| 1595 |
+
393,
|
| 1596 |
+
621
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 13
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "text",
|
| 1602 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [N/A] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [N/A] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [N/A] ",
|
| 1603 |
+
"bbox": [
|
| 1604 |
+
238,
|
| 1605 |
+
626,
|
| 1606 |
+
825,
|
| 1607 |
+
746
|
| 1608 |
+
],
|
| 1609 |
+
"page_idx": 13
|
| 1610 |
+
},
|
| 1611 |
+
{
|
| 1612 |
+
"type": "text",
|
| 1613 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1614 |
+
"bbox": [
|
| 1615 |
+
214,
|
| 1616 |
+
750,
|
| 1617 |
+
823,
|
| 1618 |
+
765
|
| 1619 |
+
],
|
| 1620 |
+
"page_idx": 13
|
| 1621 |
+
},
|
| 1622 |
+
{
|
| 1623 |
+
"type": "text",
|
| 1624 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
238,
|
| 1627 |
+
768,
|
| 1628 |
+
825,
|
| 1629 |
+
892
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 13
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "text",
|
| 1635 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
212,
|
| 1638 |
+
897,
|
| 1639 |
+
705,
|
| 1640 |
+
911
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 13
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "text",
|
| 1646 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1647 |
+
"bbox": [
|
| 1648 |
+
238,
|
| 1649 |
+
90,
|
| 1650 |
+
826,
|
| 1651 |
+
180
|
| 1652 |
+
],
|
| 1653 |
+
"page_idx": 14
|
| 1654 |
+
}
|
| 1655 |
+
]
|
parse/train/rh0vIXw6i33/rh0vIXw6i33_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rh0vIXw6i33/rh0vIXw6i33_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|