ZHANGYUXUAN-zR commited on
Commit
9d09a67
·
verified ·
1 Parent(s): 161cf7d

Add files using upload-large-folder tool

Browse files
parse/train/5SST78xEh4A/5SST78xEh4A.md ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PROSELFLC: PROGRESSIVE SELF LABEL CORRECTION FOR TRAINING ROBUST DEEP NEURAL NETWORKS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ To train robust deep neural networks (DNNs), we systematically study several target modification approaches, which include output regularisation, self and nonself label correction (LC). Two key issues are discovered: (1) Self LC is the most appealing as it exploits its own knowledge and requires no extra models. However, how to automatically decide the trust degree of a learner as training goes is not well answered in the literature? (2) Some methods penalise while the others reward low-entropy predictions, prompting us to ask which one is better?
8
+
9
+ To resolve the first issue, taking two well-accepted propositions–deep neural networks learn meaningful patterns before fitting noise (Arpit et al., 2017) and minimum entropy regularisation principle (Grandvalet & Bengio, 2006)–we propose a novel end-to-end method named ProSelfLC, which is designed according to learning time and entropy. Specifically, given a data point, we progressively increase trust in its predicted label distribution versus its annotated one if a model has been trained for enough time and the prediction is of low entropy (high confidence). For the second issue, according to ProSelfLC, we empirically prove that it is better to redefine a meaningful low-entropy status and optimise the learner toward it. This serves as a defence of entropy minimisation. We demonstrate the effectiveness of ProSelfLC through extensive experiments in both clean and noisy settings.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ There exist many target (label) modification approaches. They can be roughly divided into two groups: (1) Output regularisation (OR), which is proposed to penalise overconfident predictions for regularising deep neural networks. It includes label smoothing (LS) (Szegedy et al., 2016; Müller et al., 2019) and confidence penalty (CP) (Pereyra et al., 2017); (2) Label correction (LC). On the one hand, LC regularises neural networks by adding the similarity structure information over training classes into one-hot label distributions so that the learning targets become structured and soft. On the other hand, it can correct the semantic classes of noisy label distributions. LC can be further divided into two subgroups: Non-self LC and Self LC. The former requires extra learners, while the latter relies on the model itself. A typical approach of Non-self LC is knowledge distillation (KD), which exploits the predictions of other model(s), usually termed teacher(s) (Hinton et al., 2015). Self LC methods include Pseudo-Label (Lee, 2013), bootstrapping (Boot-soft and Boot-hard) (Reed et al., 2015), Joint Optimisation (Joint-soft and Joint-hard) (Tanaka et al., 2018), and Tf- ${ \mathrm { K D } } _ { s e l f }$ (Yuan et al., 2020). According to an overview in Figure 1 (detailed derivation is in Section 3 and Table 1), in label modification, the output target of a data point is defined by combining a one-hot label distribution and its corresponding prediction or a predefined label distribution.
14
+
15
+ Firstly, we present the drawbacks of existing approaches: (1) OR methods naively penalise confident outputs without leveraging easily accessible knowledge from other learners or itself (Figure 1a); (2) Non-self LC relies on accurate auxiliary models to generate predictions (Figure 1b). (3) Self LC is the most appealing because it exploits its own knowledge and requires no extra learners. However, there is a core question that is not well answered:
16
+
17
+ # In Self LC, how much should we trust a learner to leverage its knowledge?
18
+
19
+ As shown in Figure 1b, in Self LC, for a data point, we have two labels: a predefined one-hot q and a predicted structured p. Its learning target is $( 1 - \epsilon ) \mathbf { q } + \epsilon \mathbf { p }$ , i.e., a trade-off between q and p, where $\epsilon$ defines the trust score of a learner. In existing methods, $\epsilon$ is fixed without considering that a model’s (a) OR includes LS (Szegedy et al., 2016) and CP (Pereyra et al., 2017). LS softens a target by adding a uniform label distribution. CP changes the probability 1 to a smaller value $1 - \epsilon$ in the one-hot target. The double-ended arrow means factual equivalence, because an output is definitely non-negative after a softmax layer.
20
+
21
+ ![](images/4ec618d424c008219333fd3aad931860b7ccc3edfad166d77494cd98dd80172f.jpg)
22
+
23
+ ![](images/667be94f42736a8518c158bc6b48a8079ddbc87fa14a14e0db24550b250a7407.jpg)
24
+
25
+ (b) LC contains Self LC (Lee, 2013; Reed et al., 2015; Tanaka et al., 2018; Yuan et al., 2020) and Non-self LC (Hinton et al., 2015). The parameter  defines how much a predicted label distribution is trusted.
26
+
27
+ Figure 1: Target modification includes OR (LS and CP), and LC (Self LC and Non-self LC). Assume there are three training classes. q is the one-hot target. u is a uniform label distribution. p denotes a predicted label distribution. The target combination parameter is $\epsilon \in [ 0 , 1 ]$ .
28
+
29
+ knowledge grows as the training progresses. For example, in bootstrapping, $\epsilon$ is fixed throughout the training process. Joint Optimisation stage-wisely trains a model. It fully trusts predicted labels and uses them to replace old ones when a stage ends, i.e., $\epsilon = 1$ . Tf- ${ \mathrm { K D } } _ { s e l f }$ trains a model by two stages: $\epsilon = 0$ in the first one while $\epsilon$ is tuned for the second stage. Note that $\mathbf { p }$ is generated by a preceding-stage model in stage-wise training, which requires significant human intervention and is time-consuming in practice.
30
+
31
+ To improve Self LC, we propose a novel method named Progressive Self Label Correction (ProSelfLC), which is end-to-end trainable and needs negligible extra cost. Most importantly, ProSelfLC modifies the target progressively and adaptively as training goes. Two design principles of ProSelfLC are: (1) When a model learns from scratch, human annotations are more reliable than its own predictions in the early phase, during which the model is learning simple meaningful patterns before fitting noise, even when severe label noise exists in human annotations (Arpit et al., 2017). (2) As a learner attains confident knowledge as time progresses, we leverage it to revise annotated labels. This is surrounded by minimum entropy regularisation, which is widely evaluated in unsupervised and semi-supervised scenarios (Grandvalet & Bengio, 2005; 2006).
32
+
33
+ Secondly, note that OR methods penalise low entropy while LC rewards it, intuitively leading to a second vital question:
34
+
35
+ Should we penalise a low-entropy status or reward it?
36
+
37
+ Entropy minimisation is the most widely used principle in machine learning (Hartigan & Wong, 1979; Rumelhart et al., 1986; Grandvalet & Bengio, 2005; 2006; LeCun et al., 2015). In standard classification, minimising categorical cross entropy (CCE) optimises a model towards a low-entropy status defined by human annotations, which contain noise in very large-scale machine learning. As a result, confidence penalty becomes popular for reducing noisy fitting. In contrast, we prove that it is better to reward a meaningful low-entropy status redefined by our ProSelfLC. Therefore, our work offers a defence of entropy minimisation against the recent confidence penalty practice (Szegedy et al., 2016; Müller et al., 2019; Pereyra et al., 2017; Dubey et al., 2018).
38
+
39
+ Finally, we summarise our main contributions:
40
+
41
+ • We provide a theoretical study on popular target modification methods through entropy and KL divergence (Kullback & Leibler, 1951). Accordingly, we reveal their drawbacks and propose ProSelfLC as a solution. ProSelfLC can: (1) enhance the similarity structure information over training classes; (2) correct the semantic classes of noisy label distributions. ProSelfLC is the first method to trust self knowledge progressively and adaptively. Our extensive experiments: (1) defend the entropy minimisation principle; (2) demonstrate the effectiveness of ProSelfLC in both clean and noisy settings.
42
+
43
+ # 2 RELATED WORK
44
+
45
+ Label noise and semi-supervised learning. We test target modification approaches in the setting of label noise because it is generic and connected with semi-supervised learning, where only a subset of training examples are annotated, leading to missing labels. Then the key to semi-supervised training is to reliably fill them. When these missing labels are incorrectly filled, the challenge of semisupervised learning changes to noisy labels. For a further comparison, in semi-supervised learning, the annotated set is clean and reliable, because the label noise only exists in the unannotated set. While in our experimental setting, we are not given information on whether an example is trusted or not, thus being even more challenging. We summarise existing approaches for solving label noise: (1) Loss correction, in which we are given or we need to estimate a noise-transition matrix, which defines the distribution of noise labels (Li et al., 2017; Goldberger & Ben-Reuven, 2017; Sukhbaatar & Fergus, 2014; Vahdat, 2017; Yao et al., 2019; Han et al., 2018a; Patrini et al., 2017; Xiao et al., 2015). A noise-transition matrix is difficult and complex to estimate in practice; (2) Exploiting an auxiliary trusted training set to differentiate examples (Veit et al., 2017; Lee et al., 2018; Hendrycks et al., 2018). This requires extra annotation cost; (3) Co-training strategies, which train two or more learners (Malach & Shalev-Shwartz, 2017; Jiang et al., 2018; Han et al., 2018b; Yu et al., 2019; Wei et al., 2020; Qiao et al., 2018) and exploit their ‘disagreement’ information to differentiate data points; (4) Label engineering methods (Song et al., 2019; Lee, 2013; Reed et al., 2015; Tanaka et al., 2018; Yao et al., 2019), which relate to our focus in this work. Their strategy is to annotate unlabelled samples or correct noisy labels.
46
+
47
+ LC and knowledge distillation $( K D )$ (Bucila et al., 2006; Hinton et al., 2015). Mathematically, we derive that some KD methods also modify labels. We use the term label correction instead of KD for two reasons: (1) label correction is more descriptive; (2) the scope of KD is not limited to label modification. For example, multiple networks are trained for KD (Furlanello et al., 2018). When two models are trained, the consistency between their predictions of a data point is promoted in (Ba & Caruana, 2014; Zhang et al., 2018), while the distance between their feature maps is reduced in (Romero et al., 2015). Regarding self KD, two examples of the same class are constrained to have consistent output distributions (Xu & Liu, 2019; Yun et al., 2020). In another self KD (Zhang et al., 2019), the deepest classifier provides knowledge for shallower classifiers. In a recent self KD method (Yuan et al., 2020), Tf- $\mathrm { K D } _ { s e l f }$ applies two-stage training. In the second stage, a model is trained by exploiting its knowledge learned in the first stage. Our focus is to improve the end-to-end self LC. Finally, we acknowledge that exploiting ProSelfLC to improve non-self KD and stage-wise approaches is an area for future work, e.g., a better teacher model can be trained using ProSelfLC.
48
+
49
+ # 3 MATHEMATICAL ANALYSIS AND THEORY
50
+
51
+ Let $\mathbf { X } = \{ ( \mathbf { x } _ { i } , y _ { i } ) \} _ { i = 1 } ^ { N }$ represent $N$ training examples, where $\left( \mathbf { x } _ { i } , y _ { i } \right)$ denotes $i -$ th sample with input $\mathbf { x } _ { i } \in \mathbb { R } ^ { D }$ and label $y _ { i } \in \{ 1 , 2 , . . . , C \}$ . $C$ is the number of classes. A deep neural network $z$ consists of an embedding network $f ( \cdot ) : \bar { \mathbb { R } } ^ { D } \mathbb { R } ^ { K }$ and a linear classifier $\begin{array} { r } { g ( \cdot ) \dot { \mathbf { \Psi } } : \mathbb { R } ^ { K } \mathbb { R } ^ { C } } \end{array}$ , i.e., $\mathbf { z } _ { i } = z ( \mathbf { x } _ { i } ) = g ( f ( \mathbf { x } _ { i } ) ) ^ { \mathit { \prime } } : \mathbb { R } ^ { D } \mathbb { R } ^ { C }$ . For the brevity of analysis, we take a data point and omit its subscript so that it is denoted by $\left( \mathbf { x } , y \right)$ . The linear classifier is usually the last fully-connected layer. Its output is named logit vector $\mathbf { z } \in \mathbb { R } ^ { C }$ . We produce its classification probabilities $\mathbf { p }$ by normalising the logits using a softmax function:
52
+
53
+ $$
54
+ \mathbf { p } ( j | \mathbf { x } ) = \exp ( \mathbf { z } _ { j } ) / { \sum _ { m = 1 } ^ { C } \exp ( \mathbf { z } _ { m } ) } ,
55
+ $$
56
+
57
+ where $\mathbf { p } ( j | \mathbf { x } )$ is the probability of $\mathbf { x }$ belonging to class $j$ . Its corresponding ground-truth is usually denoted by a one-hot representation q: $\mathbf { q } ( j | \mathbf { x } ) = 1$ if $j = y$ , $\mathbf { q } ( j | \mathbf { x } ) = 0$ otherwise.
58
+
59
+ # 3.1 SEMANTIC CLASS AND SIMILARITY STRUCTURE IN A LABEL DISTRIBUTION
60
+
61
+ Definition 1 (Semantic Class). Given a target label distribution $\tilde { \mathbf { q } } ( \mathbf { x } ) \in \mathbb { R } ^ { C }$ , the semantic class is defined by arg $\operatorname* { m a x } _ { j } { \tilde { \mathbf { q } } } ( j | \mathbf { x } )$ , i.e., the class whose probability is the largest.
62
+
63
+ Definition 2 (Similarity Structure). In $\tilde { \bf q } ( { \bf x } )$ , $\mathbf { x }$ has $C$ probabilities of being predicted to $C$ classes.
64
+ The similarity structure of $\mathbf { x }$ versus $C$ classes is defined by these probabilities and their differences.
65
+
66
+ Table 1: Summary of CCE, LS, CP and LC.
67
+
68
+ <table><tr><td></td><td>CCE</td><td>LS</td><td>CP</td><td>LC</td></tr><tr><td>Learning Target</td><td>q</td><td>qLs = (1- ε)q +εu</td><td>qcp = (1- e)q -ep</td><td>qLc = (1 - ɕ)q +ep</td></tr><tr><td>Cross Entropy</td><td>Eq(-log_P)</td><td>EaLs(-log_P) (1-e)KL(qlIp)</td><td>Eacp(-log P) (1-c)KL(qllp)</td><td>EqLc(-log P) (1-c)KL(qlIp)</td></tr><tr><td>KL Divergence</td><td>KL(qllp)</td><td>+eKL(ullp)</td><td>+eKL(pllu)</td><td>-eKL(pllu)</td></tr><tr><td>Entropy minimisation</td><td></td><td>Penalise over CCE</td><td>Penalise over CCE</td><td>Reward over CCE</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Semantic class</td><td>Annotated</td><td>Annotated</td><td>Annotated</td><td>Annotated andLearned</td></tr><tr><td>Similarity structure</td><td>No</td><td>No</td><td>No</td><td>Yes</td></tr></table>
69
+
70
+ # 3.2 REVISIT OF CCE, LS, CP AND LC
71
+
72
+ Standard CCE. For any input $\left( \mathbf { x } , y \right)$ , the minimisation objective of standard CCE is:
73
+
74
+ $$
75
+ L _ { \mathrm { C C E } } ( \mathbf { q } , \mathbf { p } ) = \mathrm { H } ( \mathbf { q } , \mathbf { p } ) = \mathrm { E } _ { \mathbf { q } } ( - \log \ \mathbf { p } ) ,
76
+ $$
77
+
78
+ where $\operatorname { H } ( \cdot , \cdot )$ represents the cross entropy. $\operatorname { E } _ { \mathbf { q } } ( - \log \mathbf { \delta p } )$ denotes the expectation of negative loglikelihood, and $\mathbf { q }$ is the probability mass function.
79
+
80
+ Label smoothing. In LS (Szegedy et al., 2016; Hinton et al., 2015), we soften one-hot targets by adding a uniform distribution: $\tilde { \bf q } _ { \mathrm { L S } } = ( 1 - \epsilon ) { \bf q } + \epsilon { \bf u }$ , $\mathbf { u } \in \mathbb { R } ^ { C }$ , and $\begin{array} { r } { \forall j , \mathbf { u } _ { j } = \frac { 1 } { C } } \end{array}$ . Consequently:
81
+
82
+ $$
83
+ L _ { \mathrm { C C E + L S } } ( \mathbf { q } , \mathbf { p } ; \epsilon ) = \mathrm { H } ( \tilde { \mathbf { q } } _ { \mathrm { L S } } , \mathbf { p } ) = \mathrm { E } _ { \tilde { \mathbf { q } } _ { \mathrm { L S } } } ( - \log \mathbf { \delta p } ) = ( 1 - \epsilon ) \mathrm { H } ( \mathbf { q } , \mathbf { p } ) + \epsilon \mathrm { H } ( \mathbf { u } , \mathbf { p } ) .
84
+ $$
85
+
86
+ Confidence penalty. CP (Pereyra et al., 2017) penalises highly confident predictions:
87
+
88
+ $$
89
+ L _ { \mathrm { C C E + C P } } ( \mathbf { q } , \mathbf { p } ; \epsilon ) = ( 1 - \epsilon ) \mathrm { H } ( \mathbf { q } , \mathbf { p } ) - \epsilon \mathrm { H } ( \mathbf { p } , \mathbf { p } ) .
90
+ $$
91
+
92
+ Label correction. As illustrated in Figure 1, LC is a family of algorithms, where a one-hot label distribution is modified to a convex combination of itself and a predicted distribution:
93
+
94
+ $$
95
+ \tilde { \bf q } _ { \mathrm { I C } } = ( 1 - \epsilon ) { \bf q } + \epsilon { \bf p } \Rightarrow L _ { \mathrm { C C E + L C } } ( { \bf q } , { \bf p } ; \epsilon ) = \mathrm { H } ( \tilde { \bf q } _ { \mathrm { L C } } , { \bf p } ) = ( 1 - \epsilon ) \mathrm { H } ( { \bf q } , { \bf p } ) + \epsilon \mathrm { H } ( { \bf p } , { \bf p } ) .
96
+ $$
97
+
98
+ We remark: (1) $\mathbf { p }$ provides meaningful information about an example’s relative probabilities of being different training classes; (2) If $\epsilon$ is large, and $\mathbf { p }$ is confident in predicting a different class, i.e., a $\begin{array} { r } { \arg \operatorname* { m a x } _ { j } \mathbf { p } ( j | \mathbf { x } ) \neq \arg \operatorname* { m a x } _ { j } \mathbf { q } ( j | \mathbf { x } ) , } \end{array}$ $\tilde { \bf q } _ { \mathrm { L C } }$ defines a different semantic class from $\mathbf { q }$ .
99
+
100
+ # 3.3 THEORY
101
+
102
+ Proposition 1. LS, CP and $L C$ modify the learning targets of standard CCE
103
+
104
+ Proof. $L _ { \mathrm { C C E + C P } } ( \mathbf { q } , \mathbf { p } ; \epsilon ) = ( 1 - \epsilon ) \mathrm { H } ( \mathbf { q } , \mathbf { p } ) - \epsilon \mathrm { H } ( \mathbf { p } , \mathbf { p } ) = \mathrm { E } _ { ( \mathbf { 1 } - \epsilon ) \mathbf { q } - \epsilon \mathbf { p } } ( - \log \mathbf { \ p } )$ . Therefore, $\mathbf { \tilde { q } } _ { \mathrm { C P } } =$ $( 1 - \epsilon ) \mathbf { q } { - } \epsilon \mathbf { p }$ . Additionally, $\tilde { \mathbf { q } } _ { \mathrm { L S } } = ( 1 - \epsilon ) \mathbf { q } + \epsilon \mathbf { u }$ , $\tilde { \bf q } _ { \mathrm { L C } } = ( 1 - \epsilon ) { \bf q } + \epsilon { \bf p }$ . 
105
+
106
+ Proposition 2. Some $K D$ methods, which aim to minimise the KL divergence between predictions of a teacher and a student, belong to the family of label correction.
107
+
108
+ Proof. In general, a loss function of such methods can be defined to be $L _ { \mathrm { K D } } ( \mathbf { q } , \mathbf { p } _ { t } , \mathbf { p } ) = ( 1 -$ $\epsilon ) \mathrm { H } ( \mathbf { q } , \mathbf { p } ) \bar { + } \epsilon \mathrm { K L } ( \mathbf { p } _ { t } | | \mathbf { p } )$ (Yuan et al., 2020). $\operatorname { K L } ( \cdot | | \cdot )$ denotes the KL divergence. As ${ \mathrm { K L } } ( \mathbf { p } _ { t } | | \mathbf { p } ) =$ $\mathrm { H } ( \mathbf { p } _ { t } , \mathbf { p } ) { - } \mathrm { H } ( \mathbf { p } _ { t } , \mathbf { p } _ { t } )$ , $\mathbf { p } _ { t }$ is from a teacher and fixed when training a student. We can omit $\mathrm { H } ( \mathbf { p } _ { t } , \mathbf { p } _ { t } )$ :
109
+
110
+ $$
111
+ \begin{array} { r } { L _ { \mathrm { K D } } ( \mathbf { q } , \mathbf { p } t , \mathbf { p } ) = ( 1 - \epsilon ) \mathrm { H } ( \mathbf { q } , \mathbf { p } ) + \epsilon \mathrm { H } ( \mathbf { p } t , \mathbf { p } ) = \mathrm { E } _ { ( 1 - \epsilon ) \mathbf { q } + \mathbf { c p } _ { t } } ( - \log \mathbf { p } ) \Rightarrow \tilde { \mathbf { q } } _ { \mathrm { K D } } = ( 1 - \epsilon ) \mathbf { q } + \epsilon \mathbf { p } t . } \end{array}
112
+ $$
113
+
114
+ Consistent with LC in Eq (5), $L _ { \mathrm { K D } } ( \mathbf { q } , \mathbf { p } _ { t } , \mathbf { p } )$ revises a label using $\mathbf { p } _ { t }$ .
115
+
116
+ Proposition 3. Compared with CCE, LS and $C P$ penalise entropy minimisation while $L C$ reward it.
117
+
118
+ Proposition 4. In CCE, $L S$ and $C P ,$ a data point x has the same semantic class. In addition, x has an identical probability of belonging to other classes except for its semantic class.
119
+
120
+ The proof of propositions 3 and 4 is presented in the Appendix A. Only LC exploits informative information and has the ability to correct labels, while LS and CP only relax the hard targets. We summarise CCE, LS, CP and LC in Table 1. Constant terms are ignored for concision.
121
+
122
+ # 4 PROSELFLC: PROGRESSIVE AND ADAPTIVE LABEL CORRECTION
123
+
124
+ In standard CCE, a semantic class is considered while the similarity structure is ignored. It is mainly due to the difficulty of annotating the similarity structure for every data point, especially when $C$ is large ( $\mathrm { { X u } }$ et al., 2020). Fortunately, recent progress demonstrates that there are some effective approaches to define the similarity structure of data points without annotation: (1) In KD, an auxiliary teacher model can provide a student model the similarity structure information (Hinton et al., 2015; Müller et al., 2019); (2) In Self LC, e.g., Boot-soft, a model helps itself by exploiting the knowledge it has learned so far. We focus on studying the end-to-end Self LC.
125
+
126
+ Table 2: Instantiating ProSelfLC under different cases. For all terms, we use concrete values for concise interpretation. We bold the special case when the semantic class is changed.
127
+
128
+ <table><tr><td rowspan="2"></td><td colspan="3">l(p): Consistency is defined by whether p and q share the semantic class or not.</td></tr><tr><td></td><td></td><td>0.1(non-confident)0.9(confidently consistent) 0.9(confidently inconsistent)</td></tr><tr><td>Earlier phase g(t) = 0.1</td><td>0.01</td><td>0.09</td><td>0.09</td></tr><tr><td>Later phase g(t) = 0.9</td><td>0.09</td><td>0.81</td><td>0.81</td></tr></table>
129
+
130
+ In Self LC, $\epsilon$ indicates how much a predicted label distribution is trusted. In ProSelfLC, we propose to set it automatically according to learning time $t$ and prediction entropy $\mathrm { H } ( \mathbf { p } )$ , i.e., ProSelfLC trusts self knowledge according to training time and confidence. For any $\mathbf { x }$ , we summarise:
131
+
132
+ Loss: $: L _ { ( \tilde { \bf q } _ { \mathrm { P r o S e l f L C } } , { \bf p } ; \epsilon _ { \mathrm { P r o S e l f L C } } ) } = \mathrm { H } ( \tilde { \bf q } _ { \mathrm { P r o S e l f L C } } , { \bf p } ) = \mathrm { E } _ { \tilde { \bf q } _ { \mathrm { P r o S e l f L C } } } ( - \log { \bf p } ) .$ Label: $\begin{array} { r } { \tilde { \bf q } _ { \mathrm { P r o S e l f L C } } = ( 1 - \epsilon _ { \mathrm { P r o S e l f L C } } ) { \bf q } + \epsilon _ { \mathrm { P r o S e l f L C } } { \bf p } . } \end{array}$ $\mathrm { S e l f ~ t r u s t : } \ \epsilon _ { \mathrm { P r o S e l f L C } } = g ( t ) \times l ( \mathbf { p } ) \left\{ g ( t ) = h ( t / \Gamma - 0 . 5 , B ) \in ( 0 , 1 ) , \right. $
133
+
134
+ $t$ and $\Gamma$ are the iteration counter and the number of total iterations, respectively. $h ( \eta , B ) ~ =$ $1 / ( 1 + \exp ( - \eta \times B ) ) . B$ $B , \Gamma$ are task-dependent and searched on a validation set. We clarify: Global trust score $g ( t )$ denotes how much we trust a learner. It is independent of data points, thus being global. $g ( t )$ grows as $t$ rises. $B$ adjusts the exponentiation’s base and growth speed of $g ( t )$ . The local trust score $l ( \mathbf { p } )$ indicates how much we trust an output distribution $\mathbf { p }$ , which is datadependent. $l ( \mathbf { p } )$ rises as $\mathrm { H } ( \mathbf { p } )$ becomes lower, rewarding a confident distribution.
135
+
136
+ Design reason. (1) Regarding $g ( t )$ , in the earlier learning phase, i.e., $t < \Gamma / 2$ , $g ( t ) < 0 . 5 \Rightarrow$ ProSelfLC $< 0 . 5 , \forall \mathbf { p }$ , so that the human annotations dominate and ProSelfLC only modifies the similarity structure. When a learner has not seen the training data for enough time at the earlier stage, its knowledge is less reliable and a wrong confident prediction may occur. Our design assuages the bad impact of such unexpected cases. When it comes to the later training phase, i.e., $t > \Gamma / 2$ , we have $g ( t ) > 0 . 5$ as it has been trained for more than half of entire iterations. (2) Regarding $l ( \mathbf { p } )$ , it affects the later learning phase. If $\mathbf { p }$ is less confident, $l ( \mathbf { p } )$ will be smaller, then ProSelfLC will be smaller, hence we trust $\mathbf { p }$ less when it is of higher uncertainty. If $\mathbf { p }$ is highly confident, we trust its confident knowledge. Ablation study of our design is in Figure 2, where three variants of  are presented. In our experiments, note that when $\epsilon$ is fixed, we try three values (0.125, 0.25, 0.50) and display the best instantiation, i.e., $\epsilon = 0 . 5 0$ .
137
+
138
+ We conduct the case analysis of ProSelfLC in Table 2 and summarise its core tactics as follows: (1) Correct the similarity structure for every data point in all cases, thanks to exploiting the self knowledge of a learner, i.e., $\mathbf { p }$ . (2) Revise the semantic class when $t$ is large enough and $\mathbf { p }$ is confidently inconsistent. As highlighted in Table 2, when two conditions are met, we have $\epsilon _ { \mathrm { P r o S e l f L C } } > 0 . 5$ and $\operatorname { a r g m a x } _ { j } \mathbf { p } ( j | \mathbf { x } ) \ \neq \ \operatorname { a r g m a x } _ { j } \mathbf { q } ( j | \mathbf { x } )$ , then $\mathbf { p }$ redefines the semantic class. For example, if $\mathbf { p } ~ = ~ [ 0 . 9 5 , 0 . 0 1 , 0 . 0 4 ] , \mathbf { q } ~ = ~ [ 0 , 0 , 1 ] ,$ $\epsilon _ { \mathrm { P r o S e l f L C } } ~ = ~ 0 . 8 ~ \Rightarrow ~ \tilde { \bf q } _ { \mathrm { P r o S e l f L C } } ~ = ~ ( 1 ~ -$  $\mathrm { \Delta \ p o S e l f L C } \mathbf { \Psi } ) \mathbf { q } + \epsilon _ { \mathrm { P r o S e l f L C } } \mathbf { p } = [ 0 . 7 6 , 0 . 0 0 8 , 0 . 2 3 2 ]$ . Note that ProSelfLC also becomes robust against lengthy exposure to the training data, as demonstrated in Figures 2 and 3.
139
+
140
+ # 5 EXPERIMENTS
141
+
142
+ In our experiments, we re-implement CCE, LS and CP. Regarding Self LC methods, we reimplement Boot-soft (Reed et al., 2015), where $\epsilon$ is fixed throughout training. We do not reimplement stage-wise Self LC and KD methods, e.g., Joint Optimisation and Tf- $\mathrm { K D } _ { s e l f }$ respectively, because time-consuming tuning is required. We fix the random seed and do not use any random accelerator for an entirely fair comparison. In standard and synthetic cases, we train on $80 \%$ training data (corrupted in synthetic cases) and use $20 \%$ trusted training data as a validation set to search hyperparameters, e.g., $\epsilon , \Gamma , B$ and settings of an optimiser. Note that $\Gamma$ and an optimiser’s settings are searched first and then shared by all methods. Finally, we retrain a model on the entire training data (corrupted in synthetic cases) and report its accuracy on the test data to fairly compare with prior results. In real-world label noise, the used dataset has a separate clean validation set for searching hyperparameters. Code will be released once this work is accepted.
143
+
144
+ ![](images/b82a73bddf1405565e918850ac86e4d14d341ba4f7fe03f94c02e04204a87e30.jpg)
145
+ Figure 2: Comparison of setting $\epsilon$ using different schemes. Experiments are done on CIFAR-100 with asymmetric label noise $r = 0 . 4$ . For data-dependent items, mean results are reported.
146
+
147
+ # 5.1 STANDARD IMAGE CLASSIFICATION
148
+
149
+ Datasets and training details. (1) CIFAR-100 (Krizhevsky, 2009) has 20 coarse classes, each containing 5 fine classes. There are 500 and 100 images per class in the training and testing sets, respectively. The image size is $3 2 \times 3 2$ . We apply simple data augmentation (He et al., 2016), i.e., we pad 4 pixels on every side of the image, and then randomly crop it with a size of $3 2 \times 3 2$ . Finally, this crop is horizontally flipped with a probability of 0.5. We choose SGD with its settings as: (a) a learning rate of 0.1; (b) a momentum of 0.9; (c) a weight decay of $5 e - 4$ ; (d) the batch size is 256 and the number of training iterations is $3 0 \mathrm { k }$ . We divide the learning rate by 10 at $1 5 \mathrm { k }$ and $2 2 \mathrm { k }$ iterations, respectively. (2) We train ResNet-50 (He et al., 2016) on ImageNet 2012 classification dataset, which has 1k classes and $5 0 \mathrm { k }$ images in the test set (Russakovsky et al., 2015). We use SGD with a start learning rate of $2 e - 3$ . A polynomial learning rate decay with a power of 2 is used. We set the momentum to 0.95 and the weight decay to $1 e - 4$ . We train on a single V100 GPU and the batch size is 64. We report the final test accuracy when the training ends at 500k iterations. We use the standard data augmentation: an original image is warped to $2 5 6 \times 2 5 6$ , followed by a random crop of $2 2 4 \times 2 2 4$ . This crop is randomly flipped. We fix common settings to fairly compare CCE, LS, CP, Boot-soft and ProSelfLC.
150
+
151
+ Result analysis. In Table 3, we observe the superiority of ProSelfLC in standard setting without considering label noise. Being probably surprising, LS and CP reduce the performance consistently as $\epsilon$ increases on ImageNet. Instead, Boot-soft and ProSelfLC improve versus CCE. We remark that both test sets are large so that their differences are noticeable.
152
+
153
+ # 5.2 SYNTHETIC LABEL NOISE
154
+
155
+ Noise generation. (1) Symmetric label noise: the original label of an image is uniformly changed to one of the other classes with a probability of $r$ ; (2) Asymmetric label noise: we follow (Wang et al., 2019) to generate asymmetric label noise to fairly compare with their reported results. Within each coarse class, we randomly select two fine classes $A$ and $B$ . Then we flip $\overline { { r } } \times 1 0 0 \%$ labels of $A$ to $B$ , and $r \times 1 0 0 \%$ labels of $B$ to $A$ . We remark that the overall label noise rate is smaller than $r$ .
156
+
157
+ Baselines.1 We compare with the results reported recently in SL (Wang et al., 2019). Forward is a loss correction approach that uses a noise-transition matrix (Patrini et al., 2017). D2L monitors the subspace dimensionality change at training (Ma et al., 2018). GCE denotes generalised cross entropy (Zhang & Sabuncu, 2018) and SL is symmetric cross entropy (Wang et al., 2019). They are robust losses designed for solving label noise. Training details are the same as Section 5.1.
158
+
159
+ Result analysis. For all methods, we directly report their final results when training terminates. Therefore, we test the robustness of a model against not only label noise, but also a long time being exposed to the data. In Table 4, we observe that: (1) ProSelfLC outperforms all baselines, which is significant in most cases; (2) In both implementation, Boot-hard and Boot-soft perform worse than the others. However, our ProSelfLC makes Self LC the best solution. Furthermore, learning dynamics are visualised in Figure 3, which helps to understand why ProSelfLC works better.
160
+
161
+ Table 3: Test accuracy $( \% )$ in the standard setting. We report three settings of hyperparameters.
162
+
163
+ ![](images/ca018fc03e952dcd2298d4fa92a06cbe8e9325f355fda66e63778d74ee3c7064.jpg)
164
+ Figure 3: Comprehensive learning dynamics on CIFAR-100 with asymmetric label noise $r = 0 . 4$ . For data-dependent items, mean results are reported. At training, a learner is NOT GIVEN whether a label is trusted or not. We store intermediate models and analyse them when the training ends.
165
+
166
+ Results of different $B , \epsilon$ are in Table 5. Appendix B shows the learning dynamics when $r$ changes.
167
+
168
+ Revising the semantic class and similarity structure. In Figures 3b and 3c, we show dynamic statistics of different approaches on fitting wrong labels and correcting them. ProSelfLC is much better than its counterparts. Semantic class correction reflects the change of similarity structure.
169
+
170
+ To redefine and reward a low-entropy status. On the one hand, we observe that LS and CP work well, being consistent with prior claims. In Figures 3d and 3e, the entropies of both clean and noisy subsets are much higher in LS and CP, correspondingly their generalisation is the best except for ProSelfLC in Figure 3f. On the other hand, ProSelfLC has the lowest entropy while performs the best, which proves that a learner’s confidence does not necessarily weaken its generalisation performance. Instead, a model needs to be careful with what to be confident in. As shown by Figures 3b and 3c, ProSelfLC has the least wrong fitting and most semantic class correction, which indicates that a meaningful low-entropy status is redefined.
171
+
172
+ # 5.3 REAL-WORLD LABEL NOISE
173
+
174
+ Clothing 1M (Xiao et al., 2015) has around $3 8 . 4 6 \%$ label noise in the training data and about 1 million images of 14 classes from shopping websites. Its internal noise structure is agnostic.
175
+
176
+ Baselines. For loss correction and estimating the noise-transition matrix, S-adaption (Goldberger & Ben-Reuven, 2017) uses an extra softmax layer, while Masking (Han et al., 2018a) exploits human cognition. MD-DYR-SH (Arazo et al., 2019) is a combination of three techniques: dynamic mixup (MD), dynamic bootstrapping together with label regularisation (DYR) and soft to hard (SH). The
177
+
178
+ Table 4: Accuracy $( \% )$ on the CIFAR-100 clean test set. All compared methods use ResNet-44.
179
+
180
+ <table><tr><td rowspan="2"></td><td rowspan="2">Method</td><td colspan="3">Asymmetric Noisy Labels</td><td rowspan="2"></td><td colspan="3">Symmetric Noisy Labels</td></tr><tr><td>r=0.2</td><td>r=0.3</td><td>r=0.4</td><td>r=0.2</td><td>r=0.4</td><td>r=0.6</td></tr><tr><td rowspan="5">Results From SL (Wang et al., 2019)</td><td>Boot-hard</td><td>63.4</td><td>63.2</td><td>62.1</td><td></td><td>57.9</td><td>48.2</td><td>12.3</td></tr><tr><td>Forward</td><td>64.1</td><td>64.0</td><td>60.9</td><td></td><td>59.8</td><td>53.1</td><td>24.7</td></tr><tr><td>D2L</td><td>62.4</td><td>63.2</td><td>61.4</td><td></td><td>59.2</td><td>52.0</td><td>35.3</td></tr><tr><td>GCE</td><td>63.0</td><td>63.2</td><td>61.7</td><td></td><td>59.1</td><td>53.3</td><td>36.2</td></tr><tr><td>SL</td><td>65.6</td><td>65.1</td><td>63.1</td><td></td><td>60.0</td><td>53.7</td><td>41.5</td></tr><tr><td rowspan="5">Our Trained Results</td><td>CCE</td><td>66.6</td><td>63.4</td><td>59.5</td><td></td><td>58.0</td><td>50.1</td><td>37.9</td></tr><tr><td>LS</td><td>67.9</td><td>66.4</td><td>65.0</td><td></td><td>63.8</td><td>57.2</td><td>46.5</td></tr><tr><td>CP</td><td>67.7</td><td>66.0</td><td>64.4</td><td></td><td>64.0</td><td>56.8</td><td>44.1</td></tr><tr><td>Boot-soft</td><td>66.9</td><td>65.3</td><td>61.0</td><td></td><td>63.2</td><td>59.0</td><td>44.8</td></tr><tr><td>ProSelfLC</td><td>68.7</td><td>68.5</td><td>67.9</td><td></td><td>64.8</td><td>59.3</td><td>47.7</td></tr></table>
181
+
182
+ Table 5: The results of different hyperparameters on CIFAR-100 using ResNet-44. Under different noise rates, the best instantiation of each approach is bolded except for CCE.
183
+
184
+ <table><tr><td>Method</td><td>Value of</td><td colspan="3">Asymmetric label noise</td><td colspan="3">Symmetric label noise</td><td rowspan="2">Clean</td></tr><tr><td>(hyperparameter)</td><td>hyperparameter</td><td>20%</td><td>30%</td><td>40%</td><td>20%</td><td>40%</td><td>60%</td></tr><tr><td rowspan="2">CCE</td><td>None or ε = 0</td><td>66.6</td><td>63.4</td><td>59.5</td><td>58.0</td><td>50.1</td><td>37.9</td><td>69.0</td></tr><tr><td>0.125</td><td>66.4</td><td>65.6</td><td>63.1</td><td>61.7</td><td>52.5</td><td>39.1</td><td>69.9</td></tr><tr><td rowspan="3">LS (e)</td><td>0.25</td><td>67.9</td><td>66.4</td><td>65.0</td><td>62.8</td><td>55.9</td><td>40.9</td><td>69.6</td></tr><tr><td>0.50</td><td>66.8</td><td>65.8</td><td>64.6</td><td>63.8</td><td>57.2</td><td>46.5</td><td>68.4</td></tr><tr><td>0.125</td><td>65.7</td><td>64.2</td><td>60.3</td><td>59.8</td><td>52.3</td><td>39.6</td><td>69.5</td></tr><tr><td rowspan="3">CP(e)</td><td>0.25</td><td>66.8</td><td>65.1</td><td>61.6</td><td>61.0</td><td>53.3</td><td>40.9</td><td>69.3</td></tr><tr><td>0.50</td><td>67.7</td><td>66.0</td><td>64.4</td><td>64.0</td><td>56.8</td><td>44.1</td><td>68.7</td></tr><tr><td>0.125</td><td>65.8</td><td>64.1</td><td>60.7</td><td>59.7</td><td>51.2</td><td>40.6</td><td>68.9</td></tr><tr><td rowspan="3">Boot-soft (ε)</td><td>0.25</td><td>66.2</td><td>64.1</td><td>60.3</td><td>61.1</td><td>54.4</td><td>43.3</td><td>69.1</td></tr><tr><td>0.50</td><td>66.9</td><td>65.3</td><td>61.0</td><td>63.2</td><td>59.0</td><td>44.8</td><td>69.1</td></tr><tr><td>8</td><td>67.8</td><td>67.4</td><td>67.9</td><td>64.7</td><td>57.7</td><td>47.7</td><td>70.1</td></tr><tr><td rowspan="4">ProSelfLC (B)</td><td>10</td><td>68.5</td><td>68.5</td><td>66.8</td><td>63.9</td><td>59.0</td><td>47.5</td><td>70.3</td></tr><tr><td>12</td><td>68.6</td><td>67.9</td><td>67.4</td><td>64.0</td><td>59.3</td><td>47.5</td><td>69.8</td></tr><tr><td>14</td><td>68.7</td><td>68.0</td><td>67.8</td><td>64.8</td><td>59.0</td><td>47.4</td><td>69.6</td></tr><tr><td>16</td><td>68.4</td><td>67.2</td><td>67.3</td><td>63.7</td><td>59.0</td><td>32.3</td><td>69.9</td></tr></table>
185
+
186
+ Table 6: Test accuracy $( \% )$ on the real-world noisy dataset Clothing 1M.
187
+
188
+ <table><tr><td rowspan="2">Boot- hard</td><td rowspan="2">Forward</td><td rowspan="2">D2L</td><td rowspan="2">GCE</td><td rowspan="2">SL</td><td rowspan="2">S- adaptation</td><td rowspan="2">Masking</td><td rowspan="2">MD- DYR-SH</td><td rowspan="2">Joint- soft</td><td colspan="4">Our Trained Results</td></tr><tr><td>CCE</td><td>LS</td><td>CP</td><td>Boot-soft ProSelfLC</td></tr><tr><td>68.9</td><td>69.8</td><td>69.5</td><td>69.8</td><td>71.0</td><td>70.3</td><td>71.1</td><td>71.0</td><td>72.2</td><td>71.8</td><td>72.6 72.4</td><td>72.3</td><td>73.4</td></tr></table>
189
+
190
+ other baselines have been introduced heretofore.
191
+
192
+ Training details. We follow (Tanaka et al., 2018) to train ResNet-50 and initialise it by a trained model on ImageNet. We follow Section 5.1 with small changes: the initial learning rate is 0.01 and we train 10k iterations. They are searched on the separate clean validation set.
193
+
194
+ Result analysis. In Table 6, analogously to CIFAR-100, we report our trained results of CCE, LS, CP, Boot-soft and ProSelfLC for an entirely fair comparison. ProSelfLC has the highest accuracy, which demonstrates its effectiveness again.
195
+
196
+ # 6 CONCLUSION
197
+
198
+ We present a thorough mathematical study on several target modification techniques. Through analysis of entropy and KL divergence, we reveal their relationships and limitations.
199
+
200
+ To improve and endorse self label correction, we propose ProSelfLC. Extensive experiments prove its superiority over existing methods under standard and noisy settings. ProSelfLC enhances the similarity structure information over classes, and rectifies the semantic classes of noisy label distributions. ProSelfLC is the first approach to trust self knowledge progressively and adaptively.
201
+
202
+ ProSelfLC redirects and promotes entropy minimisation, which is in marked contrast to recent practices of confidence penalty (Szegedy et al., 2016; Pereyra et al., 2017; Dubey et al., 2018).
203
+
204
+ # REFERENCES
205
+
206
+ Eric Arazo, Diego Ortego, Paul Albert, Noel O’Connor, and Kevin Mcguinness. Unsupervised label noise modeling and loss correction. In ICML, 2019.
207
+
208
+ Devansh Arpit, Stanisław Jastrz˛ebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S. Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, and Simon Lacoste-Julien. A closer look at memorization in deep networks. In ICML, 2017.
209
+
210
+ Jimmy Ba and Rich Caruana. Do deep nets really need to be deep? In NeurIPS, 2014.
211
+
212
+ Cristian Bucila, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In KDDM, 2006.
213
+
214
+ Abhimanyu Dubey, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Maximum-entropy fine grained classification. In NeurIPS, 2018.
215
+
216
+ Tommaso Furlanello, Zachary Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. In ICML, 2018.
217
+
218
+ Jacob Goldberger and Ehud Ben-Reuven. Training deep neural-networks using a noise adaptation layer. In ICLR, 2017.
219
+
220
+ Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In NeurIPS, 2005.
221
+
222
+ Yves Grandvalet and Yoshua Bengio. Entropy regularization. Semi-supervised learning, pp. 151– 168, 2006.
223
+
224
+ Bo Han, Jiangchao Yao, Gang Niu, Mingyuan Zhou, Ivor Tsang, Ya Zhang, and Masashi Sugiyama. Masking: A new perspective of noisy supervision. In NeurIPS, 2018a.
225
+
226
+ Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. In NeurIPS, 2018b.
227
+
228
+ John A Hartigan and Manchek A Wong. Algorithm as 136: A k-means clustering algorithm. Journal of the Royal Statistical Society. Series C (Applied Statistics), 28(1):100–108, 1979.
229
+
230
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
231
+
232
+ Dan Hendrycks, Mantas Mazeika, Duncan Wilson, and Kevin Gimpel. Using trusted data to train deep networks on labels corrupted by severe noise. In NeurIPS, 2018.
233
+
234
+ Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. In NeurIPS Deep Learning and Representation Learning Workshop, 2015.
235
+
236
+ Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Learning datadriven curriculum for very deep neural networks on corrupted labels. In ICML, 2018.
237
+
238
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
239
+
240
+ Solomon Kullback and Richard A Leibler. On information and sufficiency. The annals of mathematical statistics, pp. 79–86, 1951.
241
+
242
+ Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, pp. 436, 2015.
243
+
244
+ Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. 2013.
245
+
246
+ Kuang-Huei Lee, Xiaodong He, Lei Zhang, and Linjun Yang. Cleannet: Transfer learning for scalable image classifier training with label noise. In CVPR, 2018.
247
+
248
+ Yuncheng Li, Jianchao Yang, Yale Song, Liangliang Cao, Jiebo Luo, and Li-Jia Li. Learning from noisy labels with distillation. In ICCV, 2017.
249
+
250
+ Xingjun Ma, Yisen Wang, Michael E Houle, Shuo Zhou, Sarah M Erfani, Shu-Tao Xia, Sudanthi Wijewickrema, and James Bailey. Dimensionality-driven learning with noisy labels. In ICML, 2018.
251
+
252
+ Eran Malach and Shai Shalev-Shwartz. Decoupling "when to update" from "how to update". In NeurIPS, 2017.
253
+
254
+ Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? In NeurIPS, 2019.
255
+
256
+ Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017.
257
+
258
+ Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. In ICLR Workshop, 2017.
259
+
260
+ Siyuan Qiao, Wei Shen, Zhishuai Zhang, Bo Wang, and Alan Yuille. Deep co-training for semisupervised image recognition. In ECCV, 2018.
261
+
262
+ Scott Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. In ICLR Workshop, 2015.
263
+
264
+ Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. In ICLR, 2015.
265
+
266
+ David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Nature, pp. 533–536, 1986.
267
+
268
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, pp. 211–252, 2015.
269
+
270
+ Hwanjun Song, Minseok Kim, and Jae-Gil Lee. Selfie: Refurbishing unclean samples for robust deep learning. In ICML, 2019.
271
+
272
+ Sainbayar Sukhbaatar and Rob Fergus. Learning from noisy labels with deep neural networks. arXiv preprint arXiv:1406.2080, 2014.
273
+
274
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016.
275
+
276
+ Daiki Tanaka, Daiki Ikami, Toshihiko Yamasaki, and Kiyoharu Aizawa. Joint optimization framework for learning with noisy labels. In CVPR, 2018.
277
+
278
+ Arash Vahdat. Toward robustness against label noise in training deep discriminative neural networks. In NeurIPS, 2017.
279
+
280
+ Andreas Veit, Neil Alldrin, Gal Chechik, Ivan Krasin, Abhinav Gupta, and Serge Belongie. Learning from noisy large-scale datasets with minimal supervision. In CVPR, 2017.
281
+
282
+ Yisen Wang, Xingjun Ma, Zaiyi Chen, Yuan Luo, Jinfeng Yi, and James Bailey. Symmetric cross entropy for robust learning with noisy labels. In ICCV, 2019.
283
+
284
+ Hongxin Wei, Lei Feng, Xiangyu Chen, and Bo An. Combating noisy labels by agreement: A joint training method with co-regularization. In CVPR, 2020.
285
+
286
+ Tong Xiao, Tian Xia, Yi Yang, Chang Huang, and Xiaogang Wang. Learning from massive noisy labeled data for image classification. In CVPR, 2015.
287
+
288
+ Lingxi Xie, Jingdong Wang, Zhen Wei, Meng Wang, and Qi Tian. Disturblabel: Regularizing cnn on the loss layer. In CVPR, 2016.
289
+
290
+ Ning Xu, Jun Shu, Yun-Peng Liu, and Xin Geng. Variational label enhancement. In ICML, 2020.
291
+
292
+ Ting-Bing Xu and Cheng-Lin Liu. Data-distortion guided self-distillation for deep neural networks. In AAAI, 2019.
293
+
294
+ Jiangchao Yao, Hao Wu, Ya Zhang, Ivor W Tsang, and Jun Sun. Safeguarded dynamic label regression for noisy supervision. In AAAI, 2019.
295
+
296
+ Xingrui Yu, Bo Han, Jiangchao Yao, Gang Niu, Ivor W Tsang, and Masashi Sugiyama. How does disagreement help generalization against label corruption? In ICML, 2019.
297
+
298
+ Li Yuan, Francis EH Tay, Guilin Li, Tao Wang, and Jiashi Feng. Revisiting knowledge distillation via label smoothing regularization. In CVPR, 2020.
299
+
300
+ Sukmin Yun, Jongjin Park, Kimin Lee, and Jinwoo Shin. Regularizing class-wise predictions via self-knowledge distillation. In CVPR, 2020.
301
+
302
+ Linfeng Zhang, Jiebo Song, Anni Gao, Jingwei Chen, Chenglong Bao, and Kaisheng Ma. Be your own teacher: Improve the performance of convolutional neural networks via self distillation. In ICCV, 2019.
303
+
304
+ Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In CVPR, 2018.
305
+
306
+ Zhilu Zhang and Mert R Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. In NeurIPS, 2018.
307
+
308
+ # A PROOF OF PROPOSITIONS
309
+
310
+ Proposition 3. Compared with CCE, LS and $C P$ penalise entropy minimisation while $L C$ reward it. Proof. We can rewrite CCE, LS, CP, and LC from the viewpoint of KL divergence:
311
+
312
+ $$
313
+ L _ { \mathrm { C C E } } ( \mathbf { q } , \mathbf { p } ) = \mathrm { H } ( \mathbf { q } , \mathbf { p } ) = \mathrm { K L } ( \mathbf { q } | | \mathbf { p } ) + \mathrm { H } ( \mathbf { q } , \mathbf { q } ) = \mathrm { K L } ( \mathbf { q } | | \mathbf { p } ) ,
314
+ $$
315
+
316
+ where we have $\mathrm { H } ( \mathbf { q } , \mathbf { q } ) = 0$ because $\mathbf { q }$ is a one-hot distribution.
317
+
318
+ $$
319
+ \begin{array} { r l } & { L _ { \mathrm { C C E + L S } } ( \mathbf { q } , \mathbf { p } ; \epsilon ) = ( 1 - \epsilon ) \mathrm { K L } ( \mathbf { q } | | \mathbf { p } ) + \epsilon \mathrm { K L } ( \mathbf { u } | | \mathbf { p } ) + \epsilon \mathrm { H } ( \mathbf { u } , \mathbf { u } ) } \\ & { \quad \quad \quad = ( 1 - \epsilon ) \mathrm { K L } ( \mathbf { q } | | \mathbf { p } ) + \epsilon \mathrm { K L } ( \mathbf { u } | | \mathbf { p } ) + \epsilon \cdot \mathrm { c o n s t a n t } , } \end{array}
320
+ $$
321
+
322
+ $$
323
+ \begin{array} { r l } & { L _ { \mathrm { C C E + C P } } ( { \mathbf { q } } , { \mathbf { p } } ; \epsilon ) = ( 1 - \epsilon ) \mathrm { K L } ( { \mathbf { q } } | | { \mathbf { p } } ) - \epsilon ( \mathrm { H } ( { \mathbf { p } } , { \mathbf { u } } ) - \mathrm { K L } ( { \mathbf { p } } | | { \mathbf { u } } ) ) } \\ & { \qquad = ( 1 - \epsilon ) \mathrm { K L } ( { \mathbf { q } } | | { \mathbf { p } } ) + \epsilon \mathrm { K L } ( { \mathbf { p } } | | { \mathbf { u } } ) - \epsilon \cdot \mathrm { c o n s t a n t } , } \end{array}
324
+ $$
325
+
326
+ where $\mathrm { H } ( \mathbf { p } , \mathbf { u } ) = \mathrm { H } ( \mathbf { u } , \mathbf { u } ) = { \mathrm { c c } }$ onstant. Analogously, LC in Eq (5) can also be rewritten:
327
+
328
+ $$
329
+ L _ { \mathrm { C C E + L C } } ( \mathbf { q } , \mathbf { p } ; \epsilon ) = ( 1 - \epsilon ) \mathrm { K L } ( \mathbf { q } | | \mathbf { p } ) - \epsilon \mathrm { K L } ( \mathbf { p } | | \mathbf { u } ) + \epsilon \cdot \mathrm { c o n s t a n t } .
330
+ $$
331
+
332
+ In LS and CP, both $+ \mathrm { K L } ( \mathbf { u } | | \mathbf { p } )$ and $+ \mathrm { K L } ( \mathbf { p } | | \mathbf { u } )$ pulls $\mathbf { p }$ towards $\mathbf { u }$ . While in LC, the term $- \mathrm { K L } ( \mathbf { p } | | \mathbf { u } )$ pushes $\mathbf { p }$ away from $\mathbf { u }$ . 
333
+
334
+ Proposition 4. In CCE, $L S$ and $C P ,$ a data point x has the same semantic class. In addition, x has an identical probability of belonging to other classes except for its semantic class.
335
+
336
+ Proof. In LS, the target is $\tilde { \mathbf { q } } _ { \mathrm { L S } } = ( 1 - \epsilon ) \mathbf { q } + \epsilon \mathbf { u }$ . For any $0 \leq \epsilon < 1$ , the semantic class is not changed, because $1 - \epsilon + \epsilon * \overset { - } { \underset { C } { \ F } } > \bar { \epsilon } * \frac { 1 } { C }$ . In addition, $\begin{array} { r } { j _ { 1 } \neq y , \dot { j } _ { 2 } \neq y \Rightarrow \tilde { \mathbf { q } } _ { \mathrm { L S } } ( j _ { 1 } | \mathbf { x } ) = \tilde { \mathbf { q } } _ { \mathrm { L S } } ( j _ { 2 } | \mathbf { x } ) = \frac { \epsilon } { C } } \end{array}$ .
337
+
338
+ In CP, $\tilde { \bf q } _ { \mathrm { C P } } = ( 1 - \epsilon ) { \bf q } - \epsilon { \bf p }$ . In terms of label definition, $C P$ is against intuition because these zero-value positions in q are filled with negative values in $\tilde { \mathbf { q } } _ { \mathrm { C P } }$ . A probability has to be not smaller than zero. So we rephrase $\tilde { \mathbf { q } } _ { \mathrm { C P } } ( y | \mathbf { x } ) = ( 1 - \epsilon ) - \epsilon * \mathbf { p } ( y | \mathbf { x } )$ , and $\forall j \neq y , \tilde { \mathbf { q } } _ { \mathrm { C P } } ( j | \mathbf { x } ) = 0$ by replacing negative values with zeros, as illustrated in Figure 1a. 
339
+
340
+ # B LEARNING DYNAMICS OF DIFFERENT NOISE RATES
341
+
342
+ In Figure 4, we store a model every 1000 iterations to monitor the learning process.
343
+
344
+ C THE CHANGES OF ENTROPY STATISTICS AND ProSelfLC AT TRAINING
345
+
346
+ In Figure 5, we visualise how the entropies of noisy and clean subsets change at training.
347
+
348
+ ![](images/d88add6873c102c97acc6fd4a47f9e73306162e4658746c17c92302937b7099f.jpg)
349
+ Figure 4: Learning dynamics on CIFAR-100 under asymmetric noisy labels. We show all iterations only in (a) and (d). In the others, we show the second half iterations, which are of higher interest. As the noise rate increases, the superiority of ProSelfLC becomes more significant, i.e., avoiding fitting noise in the 2nd row and leading to better generalisation in the 1st row.
350
+
351
+ ![](images/87d3947c11ab7a345e37aa40de395b01cf8f4a64c3228a8fe122237e7d38ce9f.jpg)
352
+ Figure 5: The changes of entropy statistics and ProSelfLC at training. We store a model every 1000 iterations to monitor the learning process. For data-dependent metrics, after training, we split the corrupted training data into clean and noisy subsets according to the information about how the training data is corrupted before training. Finally, we report the mean results of each subset.
parse/train/5SST78xEh4A/5SST78xEh4A_content_list.json ADDED
@@ -0,0 +1,1876 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PROSELFLC: PROGRESSIVE SELF LABEL CORRECTION FOR TRAINING ROBUST DEEP NEURAL NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 170
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 189,
20
+ 398,
21
+ 215
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "To train robust deep neural networks (DNNs), we systematically study several target modification approaches, which include output regularisation, self and nonself label correction (LC). Two key issues are discovered: (1) Self LC is the most appealing as it exploits its own knowledge and requires no extra models. However, how to automatically decide the trust degree of a learner as training goes is not well answered in the literature? (2) Some methods penalise while the others reward low-entropy predictions, prompting us to ask which one is better? ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 764,
44
+ 364
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "To resolve the first issue, taking two well-accepted propositions–deep neural networks learn meaningful patterns before fitting noise (Arpit et al., 2017) and minimum entropy regularisation principle (Grandvalet & Bengio, 2006)–we propose a novel end-to-end method named ProSelfLC, which is designed according to learning time and entropy. Specifically, given a data point, we progressively increase trust in its predicted label distribution versus its annotated one if a model has been trained for enough time and the prediction is of low entropy (high confidence). For the second issue, according to ProSelfLC, we empirically prove that it is better to redefine a meaningful low-entropy status and optimise the learner toward it. This serves as a defence of entropy minimisation. We demonstrate the effectiveness of ProSelfLC through extensive experiments in both clean and noisy settings. ",
51
+ "bbox": [
52
+ 233,
53
+ 366,
54
+ 764,
55
+ 517
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 178,
65
+ 544,
66
+ 334,
67
+ 560
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "There exist many target (label) modification approaches. They can be roughly divided into two groups: (1) Output regularisation (OR), which is proposed to penalise overconfident predictions for regularising deep neural networks. It includes label smoothing (LS) (Szegedy et al., 2016; Müller et al., 2019) and confidence penalty (CP) (Pereyra et al., 2017); (2) Label correction (LC). On the one hand, LC regularises neural networks by adding the similarity structure information over training classes into one-hot label distributions so that the learning targets become structured and soft. On the other hand, it can correct the semantic classes of noisy label distributions. LC can be further divided into two subgroups: Non-self LC and Self LC. The former requires extra learners, while the latter relies on the model itself. A typical approach of Non-self LC is knowledge distillation (KD), which exploits the predictions of other model(s), usually termed teacher(s) (Hinton et al., 2015). Self LC methods include Pseudo-Label (Lee, 2013), bootstrapping (Boot-soft and Boot-hard) (Reed et al., 2015), Joint Optimisation (Joint-soft and Joint-hard) (Tanaka et al., 2018), and Tf- ${ \\mathrm { K D } } _ { s e l f }$ (Yuan et al., 2020). According to an overview in Figure 1 (detailed derivation is in Section 3 and Table 1), in label modification, the output target of a data point is defined by combining a one-hot label distribution and its corresponding prediction or a predefined label distribution. ",
74
+ "bbox": [
75
+ 174,
76
+ 574,
77
+ 825,
78
+ 784
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Firstly, we present the drawbacks of existing approaches: (1) OR methods naively penalise confident outputs without leveraging easily accessible knowledge from other learners or itself (Figure 1a); (2) Non-self LC relies on accurate auxiliary models to generate predictions (Figure 1b). (3) Self LC is the most appealing because it exploits its own knowledge and requires no extra learners. However, there is a core question that is not well answered: ",
85
+ "bbox": [
86
+ 174,
87
+ 787,
88
+ 823,
89
+ 857
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In Self LC, how much should we trust a learner to leverage its knowledge? ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 253,
99
+ 862,
100
+ 740,
101
+ 876
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "As shown in Figure 1b, in Self LC, for a data point, we have two labels: a predefined one-hot q and a predicted structured p. Its learning target is $( 1 - \\epsilon ) \\mathbf { q } + \\epsilon \\mathbf { p }$ , i.e., a trade-off between q and p, where $\\epsilon$ defines the trust score of a learner. In existing methods, $\\epsilon$ is fixed without considering that a model’s (a) OR includes LS (Szegedy et al., 2016) and CP (Pereyra et al., 2017). LS softens a target by adding a uniform label distribution. CP changes the probability 1 to a smaller value $1 - \\epsilon$ in the one-hot target. The double-ended arrow means factual equivalence, because an output is definitely non-negative after a softmax layer. ",
108
+ "bbox": [
109
+ 176,
110
+ 882,
111
+ 823,
112
+ 922
113
+ ],
114
+ "page_idx": 0
115
+ },
116
+ {
117
+ "type": "image",
118
+ "img_path": "images/4ec618d424c008219333fd3aad931860b7ccc3edfad166d77494cd98dd80172f.jpg",
119
+ "image_caption": [],
120
+ "image_footnote": [],
121
+ "bbox": [
122
+ 209,
123
+ 94,
124
+ 789,
125
+ 189
126
+ ],
127
+ "page_idx": 1
128
+ },
129
+ {
130
+ "type": "text",
131
+ "text": "",
132
+ "bbox": [
133
+ 173,
134
+ 193,
135
+ 825,
136
+ 232
137
+ ],
138
+ "page_idx": 1
139
+ },
140
+ {
141
+ "type": "image",
142
+ "img_path": "images/667be94f42736a8518c158bc6b48a8079ddbc87fa14a14e0db24550b250a7407.jpg",
143
+ "image_caption": [],
144
+ "image_footnote": [],
145
+ "bbox": [
146
+ 210,
147
+ 239,
148
+ 787,
149
+ 333
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "(b) LC contains Self LC (Lee, 2013; Reed et al., 2015; Tanaka et al., 2018; Yuan et al., 2020) and Non-self LC (Hinton et al., 2015). The parameter \u000f defines how much a predicted label distribution is trusted. ",
156
+ "bbox": [
157
+ 174,
158
+ 337,
159
+ 823,
160
+ 363
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Figure 1: Target modification includes OR (LS and CP), and LC (Self LC and Non-self LC). Assume there are three training classes. q is the one-hot target. u is a uniform label distribution. p denotes a predicted label distribution. The target combination parameter is $\\epsilon \\in [ 0 , 1 ]$ . ",
167
+ "bbox": [
168
+ 173,
169
+ 371,
170
+ 825,
171
+ 414
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "knowledge grows as the training progresses. For example, in bootstrapping, $\\epsilon$ is fixed throughout the training process. Joint Optimisation stage-wisely trains a model. It fully trusts predicted labels and uses them to replace old ones when a stage ends, i.e., $\\epsilon = 1$ . Tf- ${ \\mathrm { K D } } _ { s e l f }$ trains a model by two stages: $\\epsilon = 0$ in the first one while $\\epsilon$ is tuned for the second stage. Note that $\\mathbf { p }$ is generated by a preceding-stage model in stage-wise training, which requires significant human intervention and is time-consuming in practice. ",
178
+ "bbox": [
179
+ 174,
180
+ 426,
181
+ 825,
182
+ 511
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "To improve Self LC, we propose a novel method named Progressive Self Label Correction (ProSelfLC), which is end-to-end trainable and needs negligible extra cost. Most importantly, ProSelfLC modifies the target progressively and adaptively as training goes. Two design principles of ProSelfLC are: (1) When a model learns from scratch, human annotations are more reliable than its own predictions in the early phase, during which the model is learning simple meaningful patterns before fitting noise, even when severe label noise exists in human annotations (Arpit et al., 2017). (2) As a learner attains confident knowledge as time progresses, we leverage it to revise annotated labels. This is surrounded by minimum entropy regularisation, which is widely evaluated in unsupervised and semi-supervised scenarios (Grandvalet & Bengio, 2005; 2006). ",
189
+ "bbox": [
190
+ 173,
191
+ 515,
192
+ 825,
193
+ 641
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Secondly, note that OR methods penalise low entropy while LC rewards it, intuitively leading to a second vital question: ",
200
+ "bbox": [
201
+ 178,
202
+ 645,
203
+ 823,
204
+ 674
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Should we penalise a low-entropy status or reward it? ",
211
+ "bbox": [
212
+ 315,
213
+ 675,
214
+ 676,
215
+ 689
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Entropy minimisation is the most widely used principle in machine learning (Hartigan & Wong, 1979; Rumelhart et al., 1986; Grandvalet & Bengio, 2005; 2006; LeCun et al., 2015). In standard classification, minimising categorical cross entropy (CCE) optimises a model towards a low-entropy status defined by human annotations, which contain noise in very large-scale machine learning. As a result, confidence penalty becomes popular for reducing noisy fitting. In contrast, we prove that it is better to reward a meaningful low-entropy status redefined by our ProSelfLC. Therefore, our work offers a defence of entropy minimisation against the recent confidence penalty practice (Szegedy et al., 2016; Müller et al., 2019; Pereyra et al., 2017; Dubey et al., 2018). ",
222
+ "bbox": [
223
+ 173,
224
+ 690,
225
+ 825,
226
+ 801
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Finally, we summarise our main contributions: ",
233
+ "bbox": [
234
+ 174,
235
+ 806,
236
+ 480,
237
+ 820
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "• We provide a theoretical study on popular target modification methods through entropy and KL divergence (Kullback & Leibler, 1951). Accordingly, we reveal their drawbacks and propose ProSelfLC as a solution. ProSelfLC can: (1) enhance the similarity structure information over training classes; (2) correct the semantic classes of noisy label distributions. ProSelfLC is the first method to trust self knowledge progressively and adaptively. Our extensive experiments: (1) defend the entropy minimisation principle; (2) demonstrate the effectiveness of ProSelfLC in both clean and noisy settings. ",
244
+ "bbox": [
245
+ 215,
246
+ 825,
247
+ 825,
248
+ 924
249
+ ],
250
+ "page_idx": 1
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "2 RELATED WORK ",
255
+ "text_level": 1,
256
+ "bbox": [
257
+ 176,
258
+ 102,
259
+ 344,
260
+ 117
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Label noise and semi-supervised learning. We test target modification approaches in the setting of label noise because it is generic and connected with semi-supervised learning, where only a subset of training examples are annotated, leading to missing labels. Then the key to semi-supervised training is to reliably fill them. When these missing labels are incorrectly filled, the challenge of semisupervised learning changes to noisy labels. For a further comparison, in semi-supervised learning, the annotated set is clean and reliable, because the label noise only exists in the unannotated set. While in our experimental setting, we are not given information on whether an example is trusted or not, thus being even more challenging. We summarise existing approaches for solving label noise: (1) Loss correction, in which we are given or we need to estimate a noise-transition matrix, which defines the distribution of noise labels (Li et al., 2017; Goldberger & Ben-Reuven, 2017; Sukhbaatar & Fergus, 2014; Vahdat, 2017; Yao et al., 2019; Han et al., 2018a; Patrini et al., 2017; Xiao et al., 2015). A noise-transition matrix is difficult and complex to estimate in practice; (2) Exploiting an auxiliary trusted training set to differentiate examples (Veit et al., 2017; Lee et al., 2018; Hendrycks et al., 2018). This requires extra annotation cost; (3) Co-training strategies, which train two or more learners (Malach & Shalev-Shwartz, 2017; Jiang et al., 2018; Han et al., 2018b; Yu et al., 2019; Wei et al., 2020; Qiao et al., 2018) and exploit their ‘disagreement’ information to differentiate data points; (4) Label engineering methods (Song et al., 2019; Lee, 2013; Reed et al., 2015; Tanaka et al., 2018; Yao et al., 2019), which relate to our focus in this work. Their strategy is to annotate unlabelled samples or correct noisy labels. ",
267
+ "bbox": [
268
+ 173,
269
+ 135,
270
+ 825,
271
+ 400
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "LC and knowledge distillation $( K D )$ (Bucila et al., 2006; Hinton et al., 2015). Mathematically, we derive that some KD methods also modify labels. We use the term label correction instead of KD for two reasons: (1) label correction is more descriptive; (2) the scope of KD is not limited to label modification. For example, multiple networks are trained for KD (Furlanello et al., 2018). When two models are trained, the consistency between their predictions of a data point is promoted in (Ba & Caruana, 2014; Zhang et al., 2018), while the distance between their feature maps is reduced in (Romero et al., 2015). Regarding self KD, two examples of the same class are constrained to have consistent output distributions (Xu & Liu, 2019; Yun et al., 2020). In another self KD (Zhang et al., 2019), the deepest classifier provides knowledge for shallower classifiers. In a recent self KD method (Yuan et al., 2020), Tf- $\\mathrm { K D } _ { s e l f }$ applies two-stage training. In the second stage, a model is trained by exploiting its knowledge learned in the first stage. Our focus is to improve the end-to-end self LC. Finally, we acknowledge that exploiting ProSelfLC to improve non-self KD and stage-wise approaches is an area for future work, e.g., a better teacher model can be trained using ProSelfLC. ",
278
+ "bbox": [
279
+ 173,
280
+ 402,
281
+ 825,
282
+ 583
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "3 MATHEMATICAL ANALYSIS AND THEORY ",
289
+ "text_level": 1,
290
+ "bbox": [
291
+ 174,
292
+ 607,
293
+ 545,
294
+ 622
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Let $\\mathbf { X } = \\{ ( \\mathbf { x } _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { N }$ represent $N$ training examples, where $\\left( \\mathbf { x } _ { i } , y _ { i } \\right)$ denotes $i -$ th sample with input $\\mathbf { x } _ { i } \\in \\mathbb { R } ^ { D }$ and label $y _ { i } \\in \\{ 1 , 2 , . . . , C \\}$ . $C$ is the number of classes. A deep neural network $z$ consists of an embedding network $f ( \\cdot ) : \\bar { \\mathbb { R } } ^ { D } \\mathbb { R } ^ { K }$ and a linear classifier $\\begin{array} { r } { g ( \\cdot ) \\dot { \\mathbf { \\Psi } } : \\mathbb { R } ^ { K } \\mathbb { R } ^ { C } } \\end{array}$ , i.e., $\\mathbf { z } _ { i } = z ( \\mathbf { x } _ { i } ) = g ( f ( \\mathbf { x } _ { i } ) ) ^ { \\mathit { \\prime } } : \\mathbb { R } ^ { D } \\mathbb { R } ^ { C }$ . For the brevity of analysis, we take a data point and omit its subscript so that it is denoted by $\\left( \\mathbf { x } , y \\right)$ . The linear classifier is usually the last fully-connected layer. Its output is named logit vector $\\mathbf { z } \\in \\mathbb { R } ^ { C }$ . We produce its classification probabilities $\\mathbf { p }$ by normalising the logits using a softmax function: ",
301
+ "bbox": [
302
+ 173,
303
+ 638,
304
+ 825,
305
+ 739
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "equation",
311
+ "img_path": "images/00a477304ca995486ef0820e17f65a96ee3afbb879c03e8cd6c07079f46ab3ad.jpg",
312
+ "text": "$$\n\\mathbf { p } ( j | \\mathbf { x } ) = \\exp ( \\mathbf { z } _ { j } ) / { \\sum _ { m = 1 } ^ { C } \\exp ( \\mathbf { z } _ { m } ) } ,\n$$",
313
+ "text_format": "latex",
314
+ "bbox": [
315
+ 374,
316
+ 744,
317
+ 624,
318
+ 773
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "where $\\mathbf { p } ( j | \\mathbf { x } )$ is the probability of $\\mathbf { x }$ belonging to class $j$ . Its corresponding ground-truth is usually denoted by a one-hot representation q: $\\mathbf { q } ( j | \\mathbf { x } ) = 1$ if $j = y$ , $\\mathbf { q } ( j | \\mathbf { x } ) = 0$ otherwise. ",
325
+ "bbox": [
326
+ 174,
327
+ 782,
328
+ 823,
329
+ 813
330
+ ],
331
+ "page_idx": 2
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "3.1 SEMANTIC CLASS AND SIMILARITY STRUCTURE IN A LABEL DISTRIBUTION ",
336
+ "text_level": 1,
337
+ "bbox": [
338
+ 176,
339
+ 832,
340
+ 736,
341
+ 845
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "Definition 1 (Semantic Class). Given a target label distribution $\\tilde { \\mathbf { q } } ( \\mathbf { x } ) \\in \\mathbb { R } ^ { C }$ , the semantic class is defined by arg $\\operatorname* { m a x } _ { j } { \\tilde { \\mathbf { q } } } ( j | \\mathbf { x } )$ , i.e., the class whose probability is the largest. ",
348
+ "bbox": [
349
+ 173,
350
+ 858,
351
+ 821,
352
+ 887
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Definition 2 (Similarity Structure). In $\\tilde { \\bf q } ( { \\bf x } )$ , $\\mathbf { x }$ has $C$ probabilities of being predicted to $C$ classes. \nThe similarity structure of $\\mathbf { x }$ versus $C$ classes is defined by these probabilities and their differences. ",
359
+ "bbox": [
360
+ 173,
361
+ 895,
362
+ 823,
363
+ 924
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "table",
369
+ "img_path": "images/98d4b4b6a2be0ff28f4ea456f83d9a1fab9ed2bcd8635ed5556b0413b9b00830.jpg",
370
+ "table_caption": [
371
+ "Table 1: Summary of CCE, LS, CP and LC. "
372
+ ],
373
+ "table_footnote": [],
374
+ "table_body": "<table><tr><td></td><td>CCE</td><td>LS</td><td>CP</td><td>LC</td></tr><tr><td>Learning Target</td><td>q</td><td>qLs = (1- ε)q +εu</td><td>qcp = (1- e)q -ep</td><td>qLc = (1 - ɕ)q +ep</td></tr><tr><td>Cross Entropy</td><td>Eq(-log_P)</td><td>EaLs(-log_P) (1-e)KL(qlIp)</td><td>Eacp(-log P) (1-c)KL(qllp)</td><td>EqLc(-log P) (1-c)KL(qlIp)</td></tr><tr><td>KL Divergence</td><td>KL(qllp)</td><td>+eKL(ullp)</td><td>+eKL(pllu)</td><td>-eKL(pllu)</td></tr><tr><td>Entropy minimisation</td><td></td><td>Penalise over CCE</td><td>Penalise over CCE</td><td>Reward over CCE</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Semantic class</td><td>Annotated</td><td>Annotated</td><td>Annotated</td><td>Annotated andLearned</td></tr><tr><td>Similarity structure</td><td>No</td><td>No</td><td>No</td><td>Yes</td></tr></table>",
375
+ "bbox": [
376
+ 174,
377
+ 107,
378
+ 823,
379
+ 238
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "3.2 REVISIT OF CCE, LS, CP AND LC ",
386
+ "text_level": 1,
387
+ "bbox": [
388
+ 176,
389
+ 255,
390
+ 455,
391
+ 270
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "Standard CCE. For any input $\\left( \\mathbf { x } , y \\right)$ , the minimisation objective of standard CCE is: ",
398
+ "bbox": [
399
+ 173,
400
+ 281,
401
+ 732,
402
+ 296
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "equation",
408
+ "img_path": "images/59970a540dbaae239ce6ebd2acc1e8960a4e60c2231096d41879c9e527c2233a.jpg",
409
+ "text": "$$\nL _ { \\mathrm { C C E } } ( \\mathbf { q } , \\mathbf { p } ) = \\mathrm { H } ( \\mathbf { q } , \\mathbf { p } ) = \\mathrm { E } _ { \\mathbf { q } } ( - \\log \\ \\mathbf { p } ) ,\n$$",
410
+ "text_format": "latex",
411
+ "bbox": [
412
+ 356,
413
+ 299,
414
+ 625,
415
+ 316
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "where $\\operatorname { H } ( \\cdot , \\cdot )$ represents the cross entropy. $\\operatorname { E } _ { \\mathbf { q } } ( - \\log \\mathbf { \\delta p } )$ denotes the expectation of negative loglikelihood, and $\\mathbf { q }$ is the probability mass function. ",
422
+ "bbox": [
423
+ 174,
424
+ 320,
425
+ 821,
426
+ 348
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "Label smoothing. In LS (Szegedy et al., 2016; Hinton et al., 2015), we soften one-hot targets by adding a uniform distribution: $\\tilde { \\bf q } _ { \\mathrm { L S } } = ( 1 - \\epsilon ) { \\bf q } + \\epsilon { \\bf u }$ , $\\mathbf { u } \\in \\mathbb { R } ^ { C }$ , and $\\begin{array} { r } { \\forall j , \\mathbf { u } _ { j } = \\frac { 1 } { C } } \\end{array}$ . Consequently: ",
433
+ "bbox": [
434
+ 173,
435
+ 354,
436
+ 821,
437
+ 386
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "equation",
443
+ "img_path": "images/6575075bc935932841e22f37e387087b1119c2d49ecc48fa0456203abf22ea7a.jpg",
444
+ "text": "$$\nL _ { \\mathrm { C C E + L S } } ( \\mathbf { q } , \\mathbf { p } ; \\epsilon ) = \\mathrm { H } ( \\tilde { \\mathbf { q } } _ { \\mathrm { L S } } , \\mathbf { p } ) = \\mathrm { E } _ { \\tilde { \\mathbf { q } } _ { \\mathrm { L S } } } ( - \\log \\mathbf { \\delta p } ) = ( 1 - \\epsilon ) \\mathrm { H } ( \\mathbf { q } , \\mathbf { p } ) + \\epsilon \\mathrm { H } ( \\mathbf { u } , \\mathbf { p } ) .\n$$",
445
+ "text_format": "latex",
446
+ "bbox": [
447
+ 225,
448
+ 388,
449
+ 758,
450
+ 406
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "Confidence penalty. CP (Pereyra et al., 2017) penalises highly confident predictions: ",
457
+ "bbox": [
458
+ 174,
459
+ 410,
460
+ 738,
461
+ 425
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "equation",
467
+ "img_path": "images/0d23b0883c7809cdcb5200c96857966f6e16e521ab904e6976d743243dc3cd3e.jpg",
468
+ "text": "$$\nL _ { \\mathrm { C C E + C P } } ( \\mathbf { q } , \\mathbf { p } ; \\epsilon ) = ( 1 - \\epsilon ) \\mathrm { H } ( \\mathbf { q } , \\mathbf { p } ) - \\epsilon \\mathrm { H } ( \\mathbf { p } , \\mathbf { p } ) .\n$$",
469
+ "text_format": "latex",
470
+ "bbox": [
471
+ 330,
472
+ 426,
473
+ 651,
474
+ 444
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "Label correction. As illustrated in Figure 1, LC is a family of algorithms, where a one-hot label distribution is modified to a convex combination of itself and a predicted distribution: ",
481
+ "bbox": [
482
+ 176,
483
+ 445,
484
+ 825,
485
+ 474
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "equation",
491
+ "img_path": "images/346a9fe59519337f7da3dc55ca72aa758cb5860a886af04e80bac12d97982b39.jpg",
492
+ "text": "$$\n\\tilde { \\bf q } _ { \\mathrm { I C } } = ( 1 - \\epsilon ) { \\bf q } + \\epsilon { \\bf p } \\Rightarrow L _ { \\mathrm { C C E + L C } } ( { \\bf q } , { \\bf p } ; \\epsilon ) = \\mathrm { H } ( \\tilde { \\bf q } _ { \\mathrm { L C } } , { \\bf p } ) = ( 1 - \\epsilon ) \\mathrm { H } ( { \\bf q } , { \\bf p } ) + \\epsilon \\mathrm { H } ( { \\bf p } , { \\bf p } ) .\n$$",
493
+ "text_format": "latex",
494
+ "bbox": [
495
+ 186,
496
+ 477,
497
+ 779,
498
+ 494
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "We remark: (1) $\\mathbf { p }$ provides meaningful information about an example’s relative probabilities of being different training classes; (2) If $\\epsilon$ is large, and $\\mathbf { p }$ is confident in predicting a different class, i.e., a $\\begin{array} { r } { \\arg \\operatorname* { m a x } _ { j } \\mathbf { p } ( j | \\mathbf { x } ) \\neq \\arg \\operatorname* { m a x } _ { j } \\mathbf { q } ( j | \\mathbf { x } ) , } \\end{array}$ $\\tilde { \\bf q } _ { \\mathrm { L C } }$ defines a different semantic class from $\\mathbf { q }$ . ",
505
+ "bbox": [
506
+ 174,
507
+ 498,
508
+ 826,
509
+ 542
510
+ ],
511
+ "page_idx": 3
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "3.3 THEORY ",
516
+ "text_level": 1,
517
+ "bbox": [
518
+ 174,
519
+ 553,
520
+ 274,
521
+ 568
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "Proposition 1. LS, CP and $L C$ modify the learning targets of standard CCE ",
528
+ "bbox": [
529
+ 186,
530
+ 579,
531
+ 663,
532
+ 594
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "Proof. $L _ { \\mathrm { C C E + C P } } ( \\mathbf { q } , \\mathbf { p } ; \\epsilon ) = ( 1 - \\epsilon ) \\mathrm { H } ( \\mathbf { q } , \\mathbf { p } ) - \\epsilon \\mathrm { H } ( \\mathbf { p } , \\mathbf { p } ) = \\mathrm { E } _ { ( \\mathbf { 1 } - \\epsilon ) \\mathbf { q } - \\epsilon \\mathbf { p } } ( - \\log \\mathbf { \\ p } )$ . Therefore, $\\mathbf { \\tilde { q } } _ { \\mathrm { C P } } =$ $( 1 - \\epsilon ) \\mathbf { q } { - } \\epsilon \\mathbf { p }$ . Additionally, $\\tilde { \\mathbf { q } } _ { \\mathrm { L S } } = ( 1 - \\epsilon ) \\mathbf { q } + \\epsilon \\mathbf { u }$ , $\\tilde { \\bf q } _ { \\mathrm { L C } } = ( 1 - \\epsilon ) { \\bf q } + \\epsilon { \\bf p }$ . \u0003 ",
539
+ "bbox": [
540
+ 176,
541
+ 594,
542
+ 820,
543
+ 625
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "Proposition 2. Some $K D$ methods, which aim to minimise the KL divergence between predictions of a teacher and a student, belong to the family of label correction. ",
550
+ "bbox": [
551
+ 171,
552
+ 630,
553
+ 823,
554
+ 659
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "Proof. In general, a loss function of such methods can be defined to be $L _ { \\mathrm { K D } } ( \\mathbf { q } , \\mathbf { p } _ { t } , \\mathbf { p } ) = ( 1 -$ $\\epsilon ) \\mathrm { H } ( \\mathbf { q } , \\mathbf { p } ) \\bar { + } \\epsilon \\mathrm { K L } ( \\mathbf { p } _ { t } | | \\mathbf { p } )$ (Yuan et al., 2020). $\\operatorname { K L } ( \\cdot | | \\cdot )$ denotes the KL divergence. As ${ \\mathrm { K L } } ( \\mathbf { p } _ { t } | | \\mathbf { p } ) =$ $\\mathrm { H } ( \\mathbf { p } _ { t } , \\mathbf { p } ) { - } \\mathrm { H } ( \\mathbf { p } _ { t } , \\mathbf { p } _ { t } )$ , $\\mathbf { p } _ { t }$ is from a teacher and fixed when training a student. We can omit $\\mathrm { H } ( \\mathbf { p } _ { t } , \\mathbf { p } _ { t } )$ : ",
561
+ "bbox": [
562
+ 176,
563
+ 659,
564
+ 825,
565
+ 700
566
+ ],
567
+ "page_idx": 3
568
+ },
569
+ {
570
+ "type": "equation",
571
+ "img_path": "images/618b429db7a0be04c81d8cf2705e0a8c707d534c9491536080d376663bb10d6b.jpg",
572
+ "text": "$$\n\\begin{array} { r } { L _ { \\mathrm { K D } } ( \\mathbf { q } , \\mathbf { p } t , \\mathbf { p } ) = ( 1 - \\epsilon ) \\mathrm { H } ( \\mathbf { q } , \\mathbf { p } ) + \\epsilon \\mathrm { H } ( \\mathbf { p } t , \\mathbf { p } ) = \\mathrm { E } _ { ( 1 - \\epsilon ) \\mathbf { q } + \\mathbf { c p } _ { t } } ( - \\log \\mathbf { p } ) \\Rightarrow \\tilde { \\mathbf { q } } _ { \\mathrm { K D } } = ( 1 - \\epsilon ) \\mathbf { q } + \\epsilon \\mathbf { p } t . } \\end{array}\n$$",
573
+ "text_format": "latex",
574
+ "bbox": [
575
+ 181,
576
+ 703,
577
+ 795,
578
+ 720
579
+ ],
580
+ "page_idx": 3
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "Consistent with LC in Eq (5), $L _ { \\mathrm { K D } } ( \\mathbf { q } , \\mathbf { p } _ { t } , \\mathbf { p } )$ revises a label using $\\mathbf { p } _ { t }$ . ",
585
+ "bbox": [
586
+ 176,
587
+ 724,
588
+ 633,
589
+ 739
590
+ ],
591
+ "page_idx": 3
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "Proposition 3. Compared with CCE, LS and $C P$ penalise entropy minimisation while $L C$ reward it. ",
596
+ "bbox": [
597
+ 173,
598
+ 746,
599
+ 823,
600
+ 761
601
+ ],
602
+ "page_idx": 3
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "Proposition 4. In CCE, $L S$ and $C P ,$ a data point x has the same semantic class. In addition, x has an identical probability of belonging to other classes except for its semantic class. ",
607
+ "bbox": [
608
+ 173,
609
+ 767,
610
+ 823,
611
+ 796
612
+ ],
613
+ "page_idx": 3
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "The proof of propositions 3 and 4 is presented in the Appendix A. Only LC exploits informative information and has the ability to correct labels, while LS and CP only relax the hard targets. We summarise CCE, LS, CP and LC in Table 1. Constant terms are ignored for concision. ",
618
+ "bbox": [
619
+ 174,
620
+ 801,
621
+ 825,
622
+ 844
623
+ ],
624
+ "page_idx": 3
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "4 PROSELFLC: PROGRESSIVE AND ADAPTIVE LABEL CORRECTION ",
629
+ "text_level": 1,
630
+ "bbox": [
631
+ 171,
632
+ 863,
633
+ 753,
634
+ 881
635
+ ],
636
+ "page_idx": 3
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "In standard CCE, a semantic class is considered while the similarity structure is ignored. It is mainly due to the difficulty of annotating the similarity structure for every data point, especially when $C$ is large ( $\\mathrm { { X u } }$ et al., 2020). Fortunately, recent progress demonstrates that there are some effective approaches to define the similarity structure of data points without annotation: (1) In KD, an auxiliary teacher model can provide a student model the similarity structure information (Hinton et al., 2015; Müller et al., 2019); (2) In Self LC, e.g., Boot-soft, a model helps itself by exploiting the knowledge it has learned so far. We focus on studying the end-to-end Self LC. ",
641
+ "bbox": [
642
+ 173,
643
+ 895,
644
+ 823,
645
+ 924
646
+ ],
647
+ "page_idx": 3
648
+ },
649
+ {
650
+ "type": "table",
651
+ "img_path": "images/aa788af78281dbcf10621812f5119b8c66d04bc5c9f9df0636a60c2194484ac0.jpg",
652
+ "table_caption": [
653
+ "Table 2: Instantiating \u000fProSelfLC under different cases. For all terms, we use concrete values for concise interpretation. We bold the special case when the semantic class is changed. "
654
+ ],
655
+ "table_footnote": [],
656
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">l(p): Consistency is defined by whether p and q share the semantic class or not.</td></tr><tr><td></td><td></td><td>0.1(non-confident)0.9(confidently consistent) 0.9(confidently inconsistent)</td></tr><tr><td>Earlier phase g(t) = 0.1</td><td>0.01</td><td>0.09</td><td>0.09</td></tr><tr><td>Later phase g(t) = 0.9</td><td>0.09</td><td>0.81</td><td>0.81</td></tr></table>",
657
+ "bbox": [
658
+ 174,
659
+ 127,
660
+ 823,
661
+ 196
662
+ ],
663
+ "page_idx": 4
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "",
668
+ "bbox": [
669
+ 173,
670
+ 213,
671
+ 825,
672
+ 284
673
+ ],
674
+ "page_idx": 4
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "In Self LC, $\\epsilon$ indicates how much a predicted label distribution is trusted. In ProSelfLC, we propose to set it automatically according to learning time $t$ and prediction entropy $\\mathrm { H } ( \\mathbf { p } )$ , i.e., ProSelfLC trusts self knowledge according to training time and confidence. For any $\\mathbf { x }$ , we summarise: ",
679
+ "bbox": [
680
+ 173,
681
+ 290,
682
+ 825,
683
+ 333
684
+ ],
685
+ "page_idx": 4
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "Loss: $: L _ { ( \\tilde { \\bf q } _ { \\mathrm { P r o S e l f L C } } , { \\bf p } ; \\epsilon _ { \\mathrm { P r o S e l f L C } } ) } = \\mathrm { H } ( \\tilde { \\bf q } _ { \\mathrm { P r o S e l f L C } } , { \\bf p } ) = \\mathrm { E } _ { \\tilde { \\bf q } _ { \\mathrm { P r o S e l f L C } } } ( - \\log { \\bf p } ) .$ Label: $\\begin{array} { r } { \\tilde { \\bf q } _ { \\mathrm { P r o S e l f L C } } = ( 1 - \\epsilon _ { \\mathrm { P r o S e l f L C } } ) { \\bf q } + \\epsilon _ { \\mathrm { P r o S e l f L C } } { \\bf p } . } \\end{array}$ $\\mathrm { S e l f ~ t r u s t : } \\ \\epsilon _ { \\mathrm { P r o S e l f L C } } = g ( t ) \\times l ( \\mathbf { p } ) \\left\\{ g ( t ) = h ( t / \\Gamma - 0 . 5 , B ) \\in ( 0 , 1 ) , \\right. $ ",
690
+ "bbox": [
691
+ 235,
692
+ 334,
693
+ 763,
694
+ 410
695
+ ],
696
+ "page_idx": 4
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "$t$ and $\\Gamma$ are the iteration counter and the number of total iterations, respectively. $h ( \\eta , B ) ~ =$ $1 / ( 1 + \\exp ( - \\eta \\times B ) ) . B$ $B , \\Gamma$ are task-dependent and searched on a validation set. We clarify: Global trust score $g ( t )$ denotes how much we trust a learner. It is independent of data points, thus being global. $g ( t )$ grows as $t$ rises. $B$ adjusts the exponentiation’s base and growth speed of $g ( t )$ . The local trust score $l ( \\mathbf { p } )$ indicates how much we trust an output distribution $\\mathbf { p }$ , which is datadependent. $l ( \\mathbf { p } )$ rises as $\\mathrm { H } ( \\mathbf { p } )$ becomes lower, rewarding a confident distribution. ",
701
+ "bbox": [
702
+ 171,
703
+ 417,
704
+ 826,
705
+ 501
706
+ ],
707
+ "page_idx": 4
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "Design reason. (1) Regarding $g ( t )$ , in the earlier learning phase, i.e., $t < \\Gamma / 2$ , $g ( t ) < 0 . 5 \\Rightarrow$ \u000fProSelfLC $< 0 . 5 , \\forall \\mathbf { p }$ , so that the human annotations dominate and ProSelfLC only modifies the similarity structure. When a learner has not seen the training data for enough time at the earlier stage, its knowledge is less reliable and a wrong confident prediction may occur. Our design assuages the bad impact of such unexpected cases. When it comes to the later training phase, i.e., $t > \\Gamma / 2$ , we have $g ( t ) > 0 . 5$ as it has been trained for more than half of entire iterations. (2) Regarding $l ( \\mathbf { p } )$ , it affects the later learning phase. If $\\mathbf { p }$ is less confident, $l ( \\mathbf { p } )$ will be smaller, then \u000fProSelfLC will be smaller, hence we trust $\\mathbf { p }$ less when it is of higher uncertainty. If $\\mathbf { p }$ is highly confident, we trust its confident knowledge. Ablation study of our design is in Figure 2, where three variants of \u000f are presented. In our experiments, note that when $\\epsilon$ is fixed, we try three values (0.125, 0.25, 0.50) and display the best instantiation, i.e., $\\epsilon = 0 . 5 0$ . ",
712
+ "bbox": [
713
+ 173,
714
+ 507,
715
+ 825,
716
+ 661
717
+ ],
718
+ "page_idx": 4
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "We conduct the case analysis of ProSelfLC in Table 2 and summarise its core tactics as follows: (1) Correct the similarity structure for every data point in all cases, thanks to exploiting the self knowledge of a learner, i.e., $\\mathbf { p }$ . (2) Revise the semantic class when $t$ is large enough and $\\mathbf { p }$ is confidently inconsistent. As highlighted in Table 2, when two conditions are met, we have $\\epsilon _ { \\mathrm { P r o S e l f L C } } > 0 . 5$ and $\\operatorname { a r g m a x } _ { j } \\mathbf { p } ( j | \\mathbf { x } ) \\ \\neq \\ \\operatorname { a r g m a x } _ { j } \\mathbf { q } ( j | \\mathbf { x } )$ , then $\\mathbf { p }$ redefines the semantic class. For example, if $\\mathbf { p } ~ = ~ [ 0 . 9 5 , 0 . 0 1 , 0 . 0 4 ] , \\mathbf { q } ~ = ~ [ 0 , 0 , 1 ] ,$ $\\epsilon _ { \\mathrm { P r o S e l f L C } } ~ = ~ 0 . 8 ~ \\Rightarrow ~ \\tilde { \\bf q } _ { \\mathrm { P r o S e l f L C } } ~ = ~ ( 1 ~ -$ \u000f $\\mathrm { \\Delta \\ p o S e l f L C } \\mathbf { \\Psi } ) \\mathbf { q } + \\epsilon _ { \\mathrm { P r o S e l f L C } } \\mathbf { p } = [ 0 . 7 6 , 0 . 0 0 8 , 0 . 2 3 2 ]$ . Note that ProSelfLC also becomes robust against lengthy exposure to the training data, as demonstrated in Figures 2 and 3. ",
723
+ "bbox": [
724
+ 173,
725
+ 667,
726
+ 825,
727
+ 781
728
+ ],
729
+ "page_idx": 4
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "5 EXPERIMENTS ",
734
+ "text_level": 1,
735
+ "bbox": [
736
+ 176,
737
+ 797,
738
+ 326,
739
+ 814
740
+ ],
741
+ "page_idx": 4
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "In our experiments, we re-implement CCE, LS and CP. Regarding Self LC methods, we reimplement Boot-soft (Reed et al., 2015), where $\\epsilon$ is fixed throughout training. We do not reimplement stage-wise Self LC and KD methods, e.g., Joint Optimisation and Tf- $\\mathrm { K D } _ { s e l f }$ respectively, because time-consuming tuning is required. We fix the random seed and do not use any random accelerator for an entirely fair comparison. In standard and synthetic cases, we train on $80 \\%$ training data (corrupted in synthetic cases) and use $20 \\%$ trusted training data as a validation set to search hyperparameters, e.g., $\\epsilon , \\Gamma , B$ and settings of an optimiser. Note that $\\Gamma$ and an optimiser’s settings are searched first and then shared by all methods. Finally, we retrain a model on the entire training data (corrupted in synthetic cases) and report its accuracy on the test data to fairly compare with prior results. In real-world label noise, the used dataset has a separate clean validation set for searching hyperparameters. Code will be released once this work is accepted. ",
746
+ "bbox": [
747
+ 173,
748
+ 825,
749
+ 823,
750
+ 924
751
+ ],
752
+ "page_idx": 4
753
+ },
754
+ {
755
+ "type": "image",
756
+ "img_path": "images/b82a73bddf1405565e918850ac86e4d14d341ba4f7fe03f94c02e04204a87e30.jpg",
757
+ "image_caption": [
758
+ "Figure 2: Comparison of setting $\\epsilon$ using different schemes. Experiments are done on CIFAR-100 with asymmetric label noise $r = 0 . 4$ . For data-dependent items, mean results are reported. "
759
+ ],
760
+ "image_footnote": [],
761
+ "bbox": [
762
+ 173,
763
+ 106,
764
+ 826,
765
+ 262
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "",
772
+ "bbox": [
773
+ 174,
774
+ 309,
775
+ 825,
776
+ 366
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "5.1 STANDARD IMAGE CLASSIFICATION ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 178,
786
+ 385,
787
+ 460,
788
+ 398
789
+ ],
790
+ "page_idx": 5
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Datasets and training details. (1) CIFAR-100 (Krizhevsky, 2009) has 20 coarse classes, each containing 5 fine classes. There are 500 and 100 images per class in the training and testing sets, respectively. The image size is $3 2 \\times 3 2$ . We apply simple data augmentation (He et al., 2016), i.e., we pad 4 pixels on every side of the image, and then randomly crop it with a size of $3 2 \\times 3 2$ . Finally, this crop is horizontally flipped with a probability of 0.5. We choose SGD with its settings as: (a) a learning rate of 0.1; (b) a momentum of 0.9; (c) a weight decay of $5 e - 4$ ; (d) the batch size is 256 and the number of training iterations is $3 0 \\mathrm { k }$ . We divide the learning rate by 10 at $1 5 \\mathrm { k }$ and $2 2 \\mathrm { k }$ iterations, respectively. (2) We train ResNet-50 (He et al., 2016) on ImageNet 2012 classification dataset, which has 1k classes and $5 0 \\mathrm { k }$ images in the test set (Russakovsky et al., 2015). We use SGD with a start learning rate of $2 e - 3$ . A polynomial learning rate decay with a power of 2 is used. We set the momentum to 0.95 and the weight decay to $1 e - 4$ . We train on a single V100 GPU and the batch size is 64. We report the final test accuracy when the training ends at 500k iterations. We use the standard data augmentation: an original image is warped to $2 5 6 \\times 2 5 6$ , followed by a random crop of $2 2 4 \\times 2 2 4$ . This crop is randomly flipped. We fix common settings to fairly compare CCE, LS, CP, Boot-soft and ProSelfLC. ",
795
+ "bbox": [
796
+ 173,
797
+ 410,
798
+ 825,
799
+ 617
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "Result analysis. In Table 3, we observe the superiority of ProSelfLC in standard setting without considering label noise. Being probably surprising, LS and CP reduce the performance consistently as $\\epsilon$ increases on ImageNet. Instead, Boot-soft and ProSelfLC improve versus CCE. We remark that both test sets are large so that their differences are noticeable. ",
806
+ "bbox": [
807
+ 174,
808
+ 618,
809
+ 825,
810
+ 674
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "5.2 SYNTHETIC LABEL NOISE ",
817
+ "text_level": 1,
818
+ "bbox": [
819
+ 176,
820
+ 693,
821
+ 393,
822
+ 707
823
+ ],
824
+ "page_idx": 5
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "Noise generation. (1) Symmetric label noise: the original label of an image is uniformly changed to one of the other classes with a probability of $r$ ; (2) Asymmetric label noise: we follow (Wang et al., 2019) to generate asymmetric label noise to fairly compare with their reported results. Within each coarse class, we randomly select two fine classes $A$ and $B$ . Then we flip $\\overline { { r } } \\times 1 0 0 \\%$ labels of $A$ to $B$ , and $r \\times 1 0 0 \\%$ labels of $B$ to $A$ . We remark that the overall label noise rate is smaller than $r$ . ",
829
+ "bbox": [
830
+ 174,
831
+ 718,
832
+ 825,
833
+ 787
834
+ ],
835
+ "page_idx": 5
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "Baselines.1 We compare with the results reported recently in SL (Wang et al., 2019). Forward is a loss correction approach that uses a noise-transition matrix (Patrini et al., 2017). D2L monitors the subspace dimensionality change at training (Ma et al., 2018). GCE denotes generalised cross entropy (Zhang & Sabuncu, 2018) and SL is symmetric cross entropy (Wang et al., 2019). They are robust losses designed for solving label noise. Training details are the same as Section 5.1. ",
840
+ "bbox": [
841
+ 174,
842
+ 789,
843
+ 825,
844
+ 857
845
+ ],
846
+ "page_idx": 5
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Result analysis. For all methods, we directly report their final results when training terminates. Therefore, we test the robustness of a model against not only label noise, but also a long time being exposed to the data. In Table 4, we observe that: (1) ProSelfLC outperforms all baselines, which is significant in most cases; (2) In both implementation, Boot-hard and Boot-soft perform worse than the others. However, our ProSelfLC makes Self LC the best solution. Furthermore, learning dynamics are visualised in Figure 3, which helps to understand why ProSelfLC works better. ",
851
+ "bbox": [
852
+ 176,
853
+ 858,
854
+ 820,
855
+ 886
856
+ ],
857
+ "page_idx": 5
858
+ },
859
+ {
860
+ "type": "table",
861
+ "img_path": "",
862
+ "table_caption": [
863
+ "Table 3: Test accuracy $( \\% )$ in the standard setting. We report three settings of hyperparameters. "
864
+ ],
865
+ "table_footnote": [],
866
+ "page_idx": 6
867
+ },
868
+ {
869
+ "type": "image",
870
+ "img_path": "images/ca018fc03e952dcd2298d4fa92a06cbe8e9325f355fda66e63778d74ee3c7064.jpg",
871
+ "image_caption": [
872
+ "Figure 3: Comprehensive learning dynamics on CIFAR-100 with asymmetric label noise $r = 0 . 4$ . For data-dependent items, mean results are reported. At training, a learner is NOT GIVEN whether a label is trusted or not. We store intermediate models and analyse them when the training ends. "
873
+ ],
874
+ "image_footnote": [],
875
+ "bbox": [
876
+ 173,
877
+ 114,
878
+ 826,
879
+ 502
880
+ ],
881
+ "page_idx": 6
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "",
886
+ "bbox": [
887
+ 174,
888
+ 560,
889
+ 825,
890
+ 616
891
+ ],
892
+ "page_idx": 6
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Results of different $B , \\epsilon$ are in Table 5. Appendix B shows the learning dynamics when $r$ changes. ",
897
+ "bbox": [
898
+ 173,
899
+ 622,
900
+ 816,
901
+ 637
902
+ ],
903
+ "page_idx": 6
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "Revising the semantic class and similarity structure. In Figures 3b and 3c, we show dynamic statistics of different approaches on fitting wrong labels and correcting them. ProSelfLC is much better than its counterparts. Semantic class correction reflects the change of similarity structure. ",
908
+ "bbox": [
909
+ 176,
910
+ 643,
911
+ 820,
912
+ 685
913
+ ],
914
+ "page_idx": 6
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "To redefine and reward a low-entropy status. On the one hand, we observe that LS and CP work well, being consistent with prior claims. In Figures 3d and 3e, the entropies of both clean and noisy subsets are much higher in LS and CP, correspondingly their generalisation is the best except for ProSelfLC in Figure 3f. On the other hand, ProSelfLC has the lowest entropy while performs the best, which proves that a learner’s confidence does not necessarily weaken its generalisation performance. Instead, a model needs to be careful with what to be confident in. As shown by Figures 3b and 3c, ProSelfLC has the least wrong fitting and most semantic class correction, which indicates that a meaningful low-entropy status is redefined. ",
919
+ "bbox": [
920
+ 174,
921
+ 686,
922
+ 825,
923
+ 797
924
+ ],
925
+ "page_idx": 6
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "5.3 REAL-WORLD LABEL NOISE ",
930
+ "text_level": 1,
931
+ "bbox": [
932
+ 176,
933
+ 814,
934
+ 408,
935
+ 828
936
+ ],
937
+ "page_idx": 6
938
+ },
939
+ {
940
+ "type": "text",
941
+ "text": "Clothing 1M (Xiao et al., 2015) has around $3 8 . 4 6 \\%$ label noise in the training data and about 1 million images of 14 classes from shopping websites. Its internal noise structure is agnostic. ",
942
+ "bbox": [
943
+ 173,
944
+ 840,
945
+ 821,
946
+ 868
947
+ ],
948
+ "page_idx": 6
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "Baselines. For loss correction and estimating the noise-transition matrix, S-adaption (Goldberger & Ben-Reuven, 2017) uses an extra softmax layer, while Masking (Han et al., 2018a) exploits human cognition. MD-DYR-SH (Arazo et al., 2019) is a combination of three techniques: dynamic mixup (MD), dynamic bootstrapping together with label regularisation (DYR) and soft to hard (SH). The ",
953
+ "bbox": [
954
+ 176,
955
+ 869,
956
+ 823,
957
+ 924
958
+ ],
959
+ "page_idx": 6
960
+ },
961
+ {
962
+ "type": "table",
963
+ "img_path": "images/909ce8b536e6b1e2d695268d2958e69c8a80ca847a8e6a90ab023e0c79e456ef.jpg",
964
+ "table_caption": [
965
+ "Table 4: Accuracy $( \\% )$ on the CIFAR-100 clean test set. All compared methods use ResNet-44. "
966
+ ],
967
+ "table_footnote": [],
968
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Method</td><td colspan=\"3\">Asymmetric Noisy Labels</td><td rowspan=\"2\"></td><td colspan=\"3\">Symmetric Noisy Labels</td></tr><tr><td>r=0.2</td><td>r=0.3</td><td>r=0.4</td><td>r=0.2</td><td>r=0.4</td><td>r=0.6</td></tr><tr><td rowspan=\"5\">Results From SL (Wang et al., 2019)</td><td>Boot-hard</td><td>63.4</td><td>63.2</td><td>62.1</td><td></td><td>57.9</td><td>48.2</td><td>12.3</td></tr><tr><td>Forward</td><td>64.1</td><td>64.0</td><td>60.9</td><td></td><td>59.8</td><td>53.1</td><td>24.7</td></tr><tr><td>D2L</td><td>62.4</td><td>63.2</td><td>61.4</td><td></td><td>59.2</td><td>52.0</td><td>35.3</td></tr><tr><td>GCE</td><td>63.0</td><td>63.2</td><td>61.7</td><td></td><td>59.1</td><td>53.3</td><td>36.2</td></tr><tr><td>SL</td><td>65.6</td><td>65.1</td><td>63.1</td><td></td><td>60.0</td><td>53.7</td><td>41.5</td></tr><tr><td rowspan=\"5\">Our Trained Results</td><td>CCE</td><td>66.6</td><td>63.4</td><td>59.5</td><td></td><td>58.0</td><td>50.1</td><td>37.9</td></tr><tr><td>LS</td><td>67.9</td><td>66.4</td><td>65.0</td><td></td><td>63.8</td><td>57.2</td><td>46.5</td></tr><tr><td>CP</td><td>67.7</td><td>66.0</td><td>64.4</td><td></td><td>64.0</td><td>56.8</td><td>44.1</td></tr><tr><td>Boot-soft</td><td>66.9</td><td>65.3</td><td>61.0</td><td></td><td>63.2</td><td>59.0</td><td>44.8</td></tr><tr><td>ProSelfLC</td><td>68.7</td><td>68.5</td><td>67.9</td><td></td><td>64.8</td><td>59.3</td><td>47.7</td></tr></table>",
969
+ "bbox": [
970
+ 189,
971
+ 113,
972
+ 805,
973
+ 272
974
+ ],
975
+ "page_idx": 7
976
+ },
977
+ {
978
+ "type": "table",
979
+ "img_path": "images/25f76fb77eeb1383e93192567e32f6f47e6c072a3fed741ce5bde85a5742ed86.jpg",
980
+ "table_caption": [
981
+ "Table 5: The results of different hyperparameters on CIFAR-100 using ResNet-44. Under different noise rates, the best instantiation of each approach is bolded except for CCE. "
982
+ ],
983
+ "table_footnote": [],
984
+ "table_body": "<table><tr><td>Method</td><td>Value of</td><td colspan=\"3\">Asymmetric label noise</td><td colspan=\"3\">Symmetric label noise</td><td rowspan=\"2\">Clean</td></tr><tr><td>(hyperparameter)</td><td>hyperparameter</td><td>20%</td><td>30%</td><td>40%</td><td>20%</td><td>40%</td><td>60%</td></tr><tr><td rowspan=\"2\">CCE</td><td>None or ε = 0</td><td>66.6</td><td>63.4</td><td>59.5</td><td>58.0</td><td>50.1</td><td>37.9</td><td>69.0</td></tr><tr><td>0.125</td><td>66.4</td><td>65.6</td><td>63.1</td><td>61.7</td><td>52.5</td><td>39.1</td><td>69.9</td></tr><tr><td rowspan=\"3\">LS (e)</td><td>0.25</td><td>67.9</td><td>66.4</td><td>65.0</td><td>62.8</td><td>55.9</td><td>40.9</td><td>69.6</td></tr><tr><td>0.50</td><td>66.8</td><td>65.8</td><td>64.6</td><td>63.8</td><td>57.2</td><td>46.5</td><td>68.4</td></tr><tr><td>0.125</td><td>65.7</td><td>64.2</td><td>60.3</td><td>59.8</td><td>52.3</td><td>39.6</td><td>69.5</td></tr><tr><td rowspan=\"3\">CP(e)</td><td>0.25</td><td>66.8</td><td>65.1</td><td>61.6</td><td>61.0</td><td>53.3</td><td>40.9</td><td>69.3</td></tr><tr><td>0.50</td><td>67.7</td><td>66.0</td><td>64.4</td><td>64.0</td><td>56.8</td><td>44.1</td><td>68.7</td></tr><tr><td>0.125</td><td>65.8</td><td>64.1</td><td>60.7</td><td>59.7</td><td>51.2</td><td>40.6</td><td>68.9</td></tr><tr><td rowspan=\"3\">Boot-soft (ε)</td><td>0.25</td><td>66.2</td><td>64.1</td><td>60.3</td><td>61.1</td><td>54.4</td><td>43.3</td><td>69.1</td></tr><tr><td>0.50</td><td>66.9</td><td>65.3</td><td>61.0</td><td>63.2</td><td>59.0</td><td>44.8</td><td>69.1</td></tr><tr><td>8</td><td>67.8</td><td>67.4</td><td>67.9</td><td>64.7</td><td>57.7</td><td>47.7</td><td>70.1</td></tr><tr><td rowspan=\"4\">ProSelfLC (B)</td><td>10</td><td>68.5</td><td>68.5</td><td>66.8</td><td>63.9</td><td>59.0</td><td>47.5</td><td>70.3</td></tr><tr><td>12</td><td>68.6</td><td>67.9</td><td>67.4</td><td>64.0</td><td>59.3</td><td>47.5</td><td>69.8</td></tr><tr><td>14</td><td>68.7</td><td>68.0</td><td>67.8</td><td>64.8</td><td>59.0</td><td>47.4</td><td>69.6</td></tr><tr><td>16</td><td>68.4</td><td>67.2</td><td>67.3</td><td>63.7</td><td>59.0</td><td>32.3</td><td>69.9</td></tr></table>",
985
+ "bbox": [
986
+ 204,
987
+ 314,
988
+ 790,
989
+ 544
990
+ ],
991
+ "page_idx": 7
992
+ },
993
+ {
994
+ "type": "table",
995
+ "img_path": "images/5c3a99364419320baeab29dbc3eaefccbe8b71d16319cfea9e373d8a2b3fa7d8.jpg",
996
+ "table_caption": [
997
+ "Table 6: Test accuracy $( \\% )$ on the real-world noisy dataset Clothing 1M. "
998
+ ],
999
+ "table_footnote": [],
1000
+ "table_body": "<table><tr><td rowspan=\"2\">Boot- hard</td><td rowspan=\"2\">Forward</td><td rowspan=\"2\">D2L</td><td rowspan=\"2\">GCE</td><td rowspan=\"2\">SL</td><td rowspan=\"2\">S- adaptation</td><td rowspan=\"2\">Masking</td><td rowspan=\"2\">MD- DYR-SH</td><td rowspan=\"2\">Joint- soft</td><td colspan=\"4\">Our Trained Results</td></tr><tr><td>CCE</td><td>LS</td><td>CP</td><td>Boot-soft ProSelfLC</td></tr><tr><td>68.9</td><td>69.8</td><td>69.5</td><td>69.8</td><td>71.0</td><td>70.3</td><td>71.1</td><td>71.0</td><td>72.2</td><td>71.8</td><td>72.6 72.4</td><td>72.3</td><td>73.4</td></tr></table>",
1001
+ "bbox": [
1002
+ 174,
1003
+ 573,
1004
+ 823,
1005
+ 627
1006
+ ],
1007
+ "page_idx": 7
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "other baselines have been introduced heretofore. ",
1012
+ "bbox": [
1013
+ 174,
1014
+ 642,
1015
+ 490,
1016
+ 655
1017
+ ],
1018
+ "page_idx": 7
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Training details. We follow (Tanaka et al., 2018) to train ResNet-50 and initialise it by a trained model on ImageNet. We follow Section 5.1 with small changes: the initial learning rate is 0.01 and we train 10k iterations. They are searched on the separate clean validation set. ",
1023
+ "bbox": [
1024
+ 174,
1025
+ 656,
1026
+ 823,
1027
+ 698
1028
+ ],
1029
+ "page_idx": 7
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Result analysis. In Table 6, analogously to CIFAR-100, we report our trained results of CCE, LS, CP, Boot-soft and ProSelfLC for an entirely fair comparison. ProSelfLC has the highest accuracy, which demonstrates its effectiveness again. ",
1034
+ "bbox": [
1035
+ 174,
1036
+ 698,
1037
+ 825,
1038
+ 739
1039
+ ],
1040
+ "page_idx": 7
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "6 CONCLUSION ",
1045
+ "text_level": 1,
1046
+ "bbox": [
1047
+ 174,
1048
+ 762,
1049
+ 318,
1050
+ 780
1051
+ ],
1052
+ "page_idx": 7
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "We present a thorough mathematical study on several target modification techniques. Through analysis of entropy and KL divergence, we reveal their relationships and limitations. ",
1057
+ "bbox": [
1058
+ 174,
1059
+ 797,
1060
+ 821,
1061
+ 825
1062
+ ],
1063
+ "page_idx": 7
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "To improve and endorse self label correction, we propose ProSelfLC. Extensive experiments prove its superiority over existing methods under standard and noisy settings. ProSelfLC enhances the similarity structure information over classes, and rectifies the semantic classes of noisy label distributions. ProSelfLC is the first approach to trust self knowledge progressively and adaptively. ",
1068
+ "bbox": [
1069
+ 174,
1070
+ 833,
1071
+ 823,
1072
+ 888
1073
+ ],
1074
+ "page_idx": 7
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "ProSelfLC redirects and promotes entropy minimisation, which is in marked contrast to recent practices of confidence penalty (Szegedy et al., 2016; Pereyra et al., 2017; Dubey et al., 2018). ",
1079
+ "bbox": [
1080
+ 173,
1081
+ 895,
1082
+ 821,
1083
+ 924
1084
+ ],
1085
+ "page_idx": 7
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "REFERENCES ",
1090
+ "text_level": 1,
1091
+ "bbox": [
1092
+ 174,
1093
+ 102,
1094
+ 287,
1095
+ 118
1096
+ ],
1097
+ "page_idx": 8
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Eric Arazo, Diego Ortego, Paul Albert, Noel O’Connor, and Kevin Mcguinness. Unsupervised label noise modeling and loss correction. In ICML, 2019. ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 126,
1105
+ 823,
1106
+ 155
1107
+ ],
1108
+ "page_idx": 8
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Devansh Arpit, Stanisław Jastrz˛ebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S. Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, and Simon Lacoste-Julien. A closer look at memorization in deep networks. In ICML, 2017. ",
1113
+ "bbox": [
1114
+ 176,
1115
+ 162,
1116
+ 823,
1117
+ 205
1118
+ ],
1119
+ "page_idx": 8
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Jimmy Ba and Rich Caruana. Do deep nets really need to be deep? In NeurIPS, 2014. ",
1124
+ "bbox": [
1125
+ 174,
1126
+ 213,
1127
+ 738,
1128
+ 229
1129
+ ],
1130
+ "page_idx": 8
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Cristian Bucila, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In KDDM, 2006. ",
1135
+ "bbox": [
1136
+ 173,
1137
+ 237,
1138
+ 825,
1139
+ 266
1140
+ ],
1141
+ "page_idx": 8
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Abhimanyu Dubey, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Maximum-entropy fine grained classification. In NeurIPS, 2018. ",
1146
+ "bbox": [
1147
+ 173,
1148
+ 273,
1149
+ 825,
1150
+ 304
1151
+ ],
1152
+ "page_idx": 8
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Tommaso Furlanello, Zachary Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. In ICML, 2018. ",
1157
+ "bbox": [
1158
+ 174,
1159
+ 311,
1160
+ 823,
1161
+ 342
1162
+ ],
1163
+ "page_idx": 8
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Jacob Goldberger and Ehud Ben-Reuven. Training deep neural-networks using a noise adaptation layer. In ICLR, 2017. ",
1168
+ "bbox": [
1169
+ 173,
1170
+ 348,
1171
+ 823,
1172
+ 378
1173
+ ],
1174
+ "page_idx": 8
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In NeurIPS, 2005. ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 386,
1182
+ 825,
1183
+ 415
1184
+ ],
1185
+ "page_idx": 8
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Yves Grandvalet and Yoshua Bengio. Entropy regularization. Semi-supervised learning, pp. 151– 168, 2006. ",
1190
+ "bbox": [
1191
+ 173,
1192
+ 422,
1193
+ 823,
1194
+ 453
1195
+ ],
1196
+ "page_idx": 8
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Bo Han, Jiangchao Yao, Gang Niu, Mingyuan Zhou, Ivor Tsang, Ya Zhang, and Masashi Sugiyama. Masking: A new perspective of noisy supervision. In NeurIPS, 2018a. ",
1201
+ "bbox": [
1202
+ 173,
1203
+ 460,
1204
+ 823,
1205
+ 491
1206
+ ],
1207
+ "page_idx": 8
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. In NeurIPS, 2018b. ",
1212
+ "bbox": [
1213
+ 174,
1214
+ 498,
1215
+ 823,
1216
+ 541
1217
+ ],
1218
+ "page_idx": 8
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "John A Hartigan and Manchek A Wong. Algorithm as 136: A k-means clustering algorithm. Journal of the Royal Statistical Society. Series C (Applied Statistics), 28(1):100–108, 1979. ",
1223
+ "bbox": [
1224
+ 173,
1225
+ 549,
1226
+ 823,
1227
+ 579
1228
+ ],
1229
+ "page_idx": 8
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
1234
+ "bbox": [
1235
+ 174,
1236
+ 587,
1237
+ 821,
1238
+ 616
1239
+ ],
1240
+ "page_idx": 8
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "Dan Hendrycks, Mantas Mazeika, Duncan Wilson, and Kevin Gimpel. Using trusted data to train deep networks on labels corrupted by severe noise. In NeurIPS, 2018. ",
1245
+ "bbox": [
1246
+ 173,
1247
+ 623,
1248
+ 823,
1249
+ 654
1250
+ ],
1251
+ "page_idx": 8
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. In NeurIPS Deep Learning and Representation Learning Workshop, 2015. ",
1256
+ "bbox": [
1257
+ 174,
1258
+ 661,
1259
+ 823,
1260
+ 691
1261
+ ],
1262
+ "page_idx": 8
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Learning datadriven curriculum for very deep neural networks on corrupted labels. In ICML, 2018. ",
1267
+ "bbox": [
1268
+ 173,
1269
+ 698,
1270
+ 823,
1271
+ 728
1272
+ ],
1273
+ "page_idx": 8
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. ",
1278
+ "bbox": [
1279
+ 174,
1280
+ 736,
1281
+ 691,
1282
+ 751
1283
+ ],
1284
+ "page_idx": 8
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "Solomon Kullback and Richard A Leibler. On information and sufficiency. The annals of mathematical statistics, pp. 79–86, 1951. ",
1289
+ "bbox": [
1290
+ 173,
1291
+ 758,
1292
+ 820,
1293
+ 789
1294
+ ],
1295
+ "page_idx": 8
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, pp. 436, 2015. ",
1300
+ "bbox": [
1301
+ 169,
1302
+ 796,
1303
+ 767,
1304
+ 813
1305
+ ],
1306
+ "page_idx": 8
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. 2013. ",
1311
+ "bbox": [
1312
+ 173,
1313
+ 820,
1314
+ 821,
1315
+ 849
1316
+ ],
1317
+ "page_idx": 8
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "Kuang-Huei Lee, Xiaodong He, Lei Zhang, and Linjun Yang. Cleannet: Transfer learning for scalable image classifier training with label noise. In CVPR, 2018. ",
1322
+ "bbox": [
1323
+ 173,
1324
+ 858,
1325
+ 821,
1326
+ 887
1327
+ ],
1328
+ "page_idx": 8
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "Yuncheng Li, Jianchao Yang, Yale Song, Liangliang Cao, Jiebo Luo, and Li-Jia Li. Learning from noisy labels with distillation. In ICCV, 2017. ",
1333
+ "bbox": [
1334
+ 174,
1335
+ 895,
1336
+ 820,
1337
+ 924
1338
+ ],
1339
+ "page_idx": 8
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "Xingjun Ma, Yisen Wang, Michael E Houle, Shuo Zhou, Sarah M Erfani, Shu-Tao Xia, Sudanthi Wijewickrema, and James Bailey. Dimensionality-driven learning with noisy labels. In ICML, 2018. ",
1344
+ "bbox": [
1345
+ 174,
1346
+ 103,
1347
+ 823,
1348
+ 146
1349
+ ],
1350
+ "page_idx": 9
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "Eran Malach and Shai Shalev-Shwartz. Decoupling \"when to update\" from \"how to update\". In NeurIPS, 2017. ",
1355
+ "bbox": [
1356
+ 173,
1357
+ 155,
1358
+ 823,
1359
+ 184
1360
+ ],
1361
+ "page_idx": 9
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "text": "Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? In NeurIPS, 2019. ",
1366
+ "bbox": [
1367
+ 176,
1368
+ 193,
1369
+ 823,
1370
+ 222
1371
+ ],
1372
+ "page_idx": 9
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017. ",
1377
+ "bbox": [
1378
+ 174,
1379
+ 232,
1380
+ 823,
1381
+ 261
1382
+ ],
1383
+ "page_idx": 9
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. In ICLR Workshop, 2017. ",
1388
+ "bbox": [
1389
+ 174,
1390
+ 270,
1391
+ 823,
1392
+ 299
1393
+ ],
1394
+ "page_idx": 9
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "Siyuan Qiao, Wei Shen, Zhishuai Zhang, Bo Wang, and Alan Yuille. Deep co-training for semisupervised image recognition. In ECCV, 2018. ",
1399
+ "bbox": [
1400
+ 174,
1401
+ 308,
1402
+ 821,
1403
+ 337
1404
+ ],
1405
+ "page_idx": 9
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "Scott Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. In ICLR Workshop, 2015. ",
1410
+ "bbox": [
1411
+ 176,
1412
+ 345,
1413
+ 823,
1414
+ 388
1415
+ ],
1416
+ "page_idx": 9
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. In ICLR, 2015. ",
1421
+ "bbox": [
1422
+ 174,
1423
+ 398,
1424
+ 823,
1425
+ 428
1426
+ ],
1427
+ "page_idx": 9
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Nature, pp. 533–536, 1986. ",
1432
+ "bbox": [
1433
+ 173,
1434
+ 435,
1435
+ 823,
1436
+ 467
1437
+ ],
1438
+ "page_idx": 9
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, pp. 211–252, 2015. ",
1443
+ "bbox": [
1444
+ 176,
1445
+ 474,
1446
+ 823,
1447
+ 518
1448
+ ],
1449
+ "page_idx": 9
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "Hwanjun Song, Minseok Kim, and Jae-Gil Lee. Selfie: Refurbishing unclean samples for robust deep learning. In ICML, 2019. ",
1454
+ "bbox": [
1455
+ 171,
1456
+ 526,
1457
+ 823,
1458
+ 555
1459
+ ],
1460
+ "page_idx": 9
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "Sainbayar Sukhbaatar and Rob Fergus. Learning from noisy labels with deep neural networks. arXiv preprint arXiv:1406.2080, 2014. ",
1465
+ "bbox": [
1466
+ 173,
1467
+ 564,
1468
+ 823,
1469
+ 594
1470
+ ],
1471
+ "page_idx": 9
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016. ",
1476
+ "bbox": [
1477
+ 173,
1478
+ 603,
1479
+ 823,
1480
+ 632
1481
+ ],
1482
+ "page_idx": 9
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "Daiki Tanaka, Daiki Ikami, Toshihiko Yamasaki, and Kiyoharu Aizawa. Joint optimization framework for learning with noisy labels. In CVPR, 2018. ",
1487
+ "bbox": [
1488
+ 171,
1489
+ 641,
1490
+ 823,
1491
+ 670
1492
+ ],
1493
+ "page_idx": 9
1494
+ },
1495
+ {
1496
+ "type": "text",
1497
+ "text": "Arash Vahdat. Toward robustness against label noise in training deep discriminative neural networks. In NeurIPS, 2017. ",
1498
+ "bbox": [
1499
+ 173,
1500
+ 679,
1501
+ 823,
1502
+ 708
1503
+ ],
1504
+ "page_idx": 9
1505
+ },
1506
+ {
1507
+ "type": "text",
1508
+ "text": "Andreas Veit, Neil Alldrin, Gal Chechik, Ivan Krasin, Abhinav Gupta, and Serge Belongie. Learning from noisy large-scale datasets with minimal supervision. In CVPR, 2017. ",
1509
+ "bbox": [
1510
+ 171,
1511
+ 717,
1512
+ 823,
1513
+ 747
1514
+ ],
1515
+ "page_idx": 9
1516
+ },
1517
+ {
1518
+ "type": "text",
1519
+ "text": "Yisen Wang, Xingjun Ma, Zaiyi Chen, Yuan Luo, Jinfeng Yi, and James Bailey. Symmetric cross entropy for robust learning with noisy labels. In ICCV, 2019. ",
1520
+ "bbox": [
1521
+ 171,
1522
+ 756,
1523
+ 823,
1524
+ 785
1525
+ ],
1526
+ "page_idx": 9
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "Hongxin Wei, Lei Feng, Xiangyu Chen, and Bo An. Combating noisy labels by agreement: A joint training method with co-regularization. In CVPR, 2020. ",
1531
+ "bbox": [
1532
+ 174,
1533
+ 794,
1534
+ 823,
1535
+ 824
1536
+ ],
1537
+ "page_idx": 9
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "Tong Xiao, Tian Xia, Yi Yang, Chang Huang, and Xiaogang Wang. Learning from massive noisy labeled data for image classification. In CVPR, 2015. ",
1542
+ "bbox": [
1543
+ 174,
1544
+ 832,
1545
+ 821,
1546
+ 862
1547
+ ],
1548
+ "page_idx": 9
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "Lingxi Xie, Jingdong Wang, Zhen Wei, Meng Wang, and Qi Tian. Disturblabel: Regularizing cnn on the loss layer. In CVPR, 2016. ",
1553
+ "bbox": [
1554
+ 174,
1555
+ 869,
1556
+ 821,
1557
+ 900
1558
+ ],
1559
+ "page_idx": 9
1560
+ },
1561
+ {
1562
+ "type": "text",
1563
+ "text": "Ning Xu, Jun Shu, Yun-Peng Liu, and Xin Geng. Variational label enhancement. In ICML, 2020. ",
1564
+ "bbox": [
1565
+ 171,
1566
+ 909,
1567
+ 808,
1568
+ 924
1569
+ ],
1570
+ "page_idx": 9
1571
+ },
1572
+ {
1573
+ "type": "text",
1574
+ "text": "Ting-Bing Xu and Cheng-Lin Liu. Data-distortion guided self-distillation for deep neural networks. In AAAI, 2019. ",
1575
+ "bbox": [
1576
+ 173,
1577
+ 103,
1578
+ 823,
1579
+ 132
1580
+ ],
1581
+ "page_idx": 10
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "Jiangchao Yao, Hao Wu, Ya Zhang, Ivor W Tsang, and Jun Sun. Safeguarded dynamic label regression for noisy supervision. In AAAI, 2019. ",
1586
+ "bbox": [
1587
+ 173,
1588
+ 140,
1589
+ 823,
1590
+ 170
1591
+ ],
1592
+ "page_idx": 10
1593
+ },
1594
+ {
1595
+ "type": "text",
1596
+ "text": "Xingrui Yu, Bo Han, Jiangchao Yao, Gang Niu, Ivor W Tsang, and Masashi Sugiyama. How does disagreement help generalization against label corruption? In ICML, 2019. ",
1597
+ "bbox": [
1598
+ 173,
1599
+ 178,
1600
+ 823,
1601
+ 208
1602
+ ],
1603
+ "page_idx": 10
1604
+ },
1605
+ {
1606
+ "type": "text",
1607
+ "text": "Li Yuan, Francis EH Tay, Guilin Li, Tao Wang, and Jiashi Feng. Revisiting knowledge distillation via label smoothing regularization. In CVPR, 2020. ",
1608
+ "bbox": [
1609
+ 171,
1610
+ 215,
1611
+ 823,
1612
+ 246
1613
+ ],
1614
+ "page_idx": 10
1615
+ },
1616
+ {
1617
+ "type": "text",
1618
+ "text": "Sukmin Yun, Jongjin Park, Kimin Lee, and Jinwoo Shin. Regularizing class-wise predictions via self-knowledge distillation. In CVPR, 2020. ",
1619
+ "bbox": [
1620
+ 173,
1621
+ 253,
1622
+ 823,
1623
+ 284
1624
+ ],
1625
+ "page_idx": 10
1626
+ },
1627
+ {
1628
+ "type": "text",
1629
+ "text": "Linfeng Zhang, Jiebo Song, Anni Gao, Jingwei Chen, Chenglong Bao, and Kaisheng Ma. Be your own teacher: Improve the performance of convolutional neural networks via self distillation. In ICCV, 2019. ",
1630
+ "bbox": [
1631
+ 174,
1632
+ 291,
1633
+ 823,
1634
+ 334
1635
+ ],
1636
+ "page_idx": 10
1637
+ },
1638
+ {
1639
+ "type": "text",
1640
+ "text": "Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In CVPR, 2018. ",
1641
+ "bbox": [
1642
+ 171,
1643
+ 343,
1644
+ 823,
1645
+ 372
1646
+ ],
1647
+ "page_idx": 10
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "text": "Zhilu Zhang and Mert R Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. In NeurIPS, 2018. ",
1652
+ "bbox": [
1653
+ 174,
1654
+ 381,
1655
+ 821,
1656
+ 410
1657
+ ],
1658
+ "page_idx": 10
1659
+ },
1660
+ {
1661
+ "type": "text",
1662
+ "text": "A PROOF OF PROPOSITIONS ",
1663
+ "text_level": 1,
1664
+ "bbox": [
1665
+ 176,
1666
+ 102,
1667
+ 421,
1668
+ 118
1669
+ ],
1670
+ "page_idx": 11
1671
+ },
1672
+ {
1673
+ "type": "text",
1674
+ "text": "Proposition 3. Compared with CCE, LS and $C P$ penalise entropy minimisation while $L C$ reward it. Proof. We can rewrite CCE, LS, CP, and LC from the viewpoint of KL divergence: ",
1675
+ "bbox": [
1676
+ 171,
1677
+ 133,
1678
+ 820,
1679
+ 162
1680
+ ],
1681
+ "page_idx": 11
1682
+ },
1683
+ {
1684
+ "type": "equation",
1685
+ "img_path": "images/cf2c32d920cd3833c3eaea59690db16e8b8a2b9931738fece5bcaa12067746e7.jpg",
1686
+ "text": "$$\nL _ { \\mathrm { C C E } } ( \\mathbf { q } , \\mathbf { p } ) = \\mathrm { H } ( \\mathbf { q } , \\mathbf { p } ) = \\mathrm { K L } ( \\mathbf { q } | | \\mathbf { p } ) + \\mathrm { H } ( \\mathbf { q } , \\mathbf { q } ) = \\mathrm { K L } ( \\mathbf { q } | | \\mathbf { p } ) ,\n$$",
1687
+ "text_format": "latex",
1688
+ "bbox": [
1689
+ 287,
1690
+ 167,
1691
+ 694,
1692
+ 185
1693
+ ],
1694
+ "page_idx": 11
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "text": "where we have $\\mathrm { H } ( \\mathbf { q } , \\mathbf { q } ) = 0$ because $\\mathbf { q }$ is a one-hot distribution. ",
1699
+ "bbox": [
1700
+ 176,
1701
+ 193,
1702
+ 591,
1703
+ 208
1704
+ ],
1705
+ "page_idx": 11
1706
+ },
1707
+ {
1708
+ "type": "equation",
1709
+ "img_path": "images/f9478f1274643093262418a73b2d9817efc531915e3d8bc6b94fea83ac4cf90d.jpg",
1710
+ "text": "$$\n\\begin{array} { r l } & { L _ { \\mathrm { C C E + L S } } ( \\mathbf { q } , \\mathbf { p } ; \\epsilon ) = ( 1 - \\epsilon ) \\mathrm { K L } ( \\mathbf { q } | | \\mathbf { p } ) + \\epsilon \\mathrm { K L } ( \\mathbf { u } | | \\mathbf { p } ) + \\epsilon \\mathrm { H } ( \\mathbf { u } , \\mathbf { u } ) } \\\\ & { \\quad \\quad \\quad = ( 1 - \\epsilon ) \\mathrm { K L } ( \\mathbf { q } | | \\mathbf { p } ) + \\epsilon \\mathrm { K L } ( \\mathbf { u } | | \\mathbf { p } ) + \\epsilon \\cdot \\mathrm { c o n s t a n t } , } \\end{array}\n$$",
1711
+ "text_format": "latex",
1712
+ "bbox": [
1713
+ 276,
1714
+ 213,
1715
+ 723,
1716
+ 252
1717
+ ],
1718
+ "page_idx": 11
1719
+ },
1720
+ {
1721
+ "type": "equation",
1722
+ "img_path": "images/c95152480cc2f65878af5c19aeb537a3f5f3e9701e56352dc9f88f5ec43ef941.jpg",
1723
+ "text": "$$\n\\begin{array} { r l } & { L _ { \\mathrm { C C E + C P } } ( { \\mathbf { q } } , { \\mathbf { p } } ; \\epsilon ) = ( 1 - \\epsilon ) \\mathrm { K L } ( { \\mathbf { q } } | | { \\mathbf { p } } ) - \\epsilon ( \\mathrm { H } ( { \\mathbf { p } } , { \\mathbf { u } } ) - \\mathrm { K L } ( { \\mathbf { p } } | | { \\mathbf { u } } ) ) } \\\\ & { \\qquad = ( 1 - \\epsilon ) \\mathrm { K L } ( { \\mathbf { q } } | | { \\mathbf { p } } ) + \\epsilon \\mathrm { K L } ( { \\mathbf { p } } | | { \\mathbf { u } } ) - \\epsilon \\cdot \\mathrm { c o n s t a n t } , } \\end{array}\n$$",
1724
+ "text_format": "latex",
1725
+ "bbox": [
1726
+ 274,
1727
+ 256,
1728
+ 722,
1729
+ 291
1730
+ ],
1731
+ "page_idx": 11
1732
+ },
1733
+ {
1734
+ "type": "text",
1735
+ "text": "where $\\mathrm { H } ( \\mathbf { p } , \\mathbf { u } ) = \\mathrm { H } ( \\mathbf { u } , \\mathbf { u } ) = { \\mathrm { c c } }$ onstant. Analogously, LC in Eq (5) can also be rewritten: ",
1736
+ "bbox": [
1737
+ 173,
1738
+ 294,
1739
+ 750,
1740
+ 310
1741
+ ],
1742
+ "page_idx": 11
1743
+ },
1744
+ {
1745
+ "type": "equation",
1746
+ "img_path": "images/1dd57dcecc0d0fece5f01781e1d666ad81b224e33d9b88d809ef3333427529c2.jpg",
1747
+ "text": "$$\nL _ { \\mathrm { C C E + L C } } ( \\mathbf { q } , \\mathbf { p } ; \\epsilon ) = ( 1 - \\epsilon ) \\mathrm { K L } ( \\mathbf { q } | | \\mathbf { p } ) - \\epsilon \\mathrm { K L } ( \\mathbf { p } | | \\mathbf { u } ) + \\epsilon \\cdot \\mathrm { c o n s t a n t } .\n$$",
1748
+ "text_format": "latex",
1749
+ "bbox": [
1750
+ 267,
1751
+ 315,
1752
+ 717,
1753
+ 333
1754
+ ],
1755
+ "page_idx": 11
1756
+ },
1757
+ {
1758
+ "type": "text",
1759
+ "text": "In LS and CP, both $+ \\mathrm { K L } ( \\mathbf { u } | | \\mathbf { p } )$ and $+ \\mathrm { K L } ( \\mathbf { p } | | \\mathbf { u } )$ pulls $\\mathbf { p }$ towards $\\mathbf { u }$ . While in LC, the term $- \\mathrm { K L } ( \\mathbf { p } | | \\mathbf { u } )$ pushes $\\mathbf { p }$ away from $\\mathbf { u }$ . \u0003 ",
1760
+ "bbox": [
1761
+ 171,
1762
+ 339,
1763
+ 823,
1764
+ 368
1765
+ ],
1766
+ "page_idx": 11
1767
+ },
1768
+ {
1769
+ "type": "text",
1770
+ "text": "Proposition 4. In CCE, $L S$ and $C P ,$ a data point x has the same semantic class. In addition, x has an identical probability of belonging to other classes except for its semantic class. ",
1771
+ "bbox": [
1772
+ 171,
1773
+ 375,
1774
+ 820,
1775
+ 404
1776
+ ],
1777
+ "page_idx": 11
1778
+ },
1779
+ {
1780
+ "type": "text",
1781
+ "text": "Proof. In LS, the target is $\\tilde { \\mathbf { q } } _ { \\mathrm { L S } } = ( 1 - \\epsilon ) \\mathbf { q } + \\epsilon \\mathbf { u }$ . For any $0 \\leq \\epsilon < 1$ , the semantic class is not changed, because $1 - \\epsilon + \\epsilon * \\overset { - } { \\underset { C } { \\ F } } > \\bar { \\epsilon } * \\frac { 1 } { C }$ . In addition, $\\begin{array} { r } { j _ { 1 } \\neq y , \\dot { j } _ { 2 } \\neq y \\Rightarrow \\tilde { \\mathbf { q } } _ { \\mathrm { L S } } ( j _ { 1 } | \\mathbf { x } ) = \\tilde { \\mathbf { q } } _ { \\mathrm { L S } } ( j _ { 2 } | \\mathbf { x } ) = \\frac { \\epsilon } { C } } \\end{array}$ . ",
1782
+ "bbox": [
1783
+ 169,
1784
+ 404,
1785
+ 826,
1786
+ 433
1787
+ ],
1788
+ "page_idx": 11
1789
+ },
1790
+ {
1791
+ "type": "text",
1792
+ "text": "In CP, $\\tilde { \\bf q } _ { \\mathrm { C P } } = ( 1 - \\epsilon ) { \\bf q } - \\epsilon { \\bf p }$ . In terms of label definition, $C P$ is against intuition because these zero-value positions in q are filled with negative values in $\\tilde { \\mathbf { q } } _ { \\mathrm { C P } }$ . A probability has to be not smaller than zero. So we rephrase $\\tilde { \\mathbf { q } } _ { \\mathrm { C P } } ( y | \\mathbf { x } ) = ( 1 - \\epsilon ) - \\epsilon * \\mathbf { p } ( y | \\mathbf { x } )$ , and $\\forall j \\neq y , \\tilde { \\mathbf { q } } _ { \\mathrm { C P } } ( j | \\mathbf { x } ) = 0$ by replacing negative values with zeros, as illustrated in Figure 1a. \u0003 ",
1793
+ "bbox": [
1794
+ 173,
1795
+ 438,
1796
+ 825,
1797
+ 494
1798
+ ],
1799
+ "page_idx": 11
1800
+ },
1801
+ {
1802
+ "type": "text",
1803
+ "text": "B LEARNING DYNAMICS OF DIFFERENT NOISE RATES ",
1804
+ "text_level": 1,
1805
+ "bbox": [
1806
+ 174,
1807
+ 515,
1808
+ 632,
1809
+ 530
1810
+ ],
1811
+ "page_idx": 11
1812
+ },
1813
+ {
1814
+ "type": "text",
1815
+ "text": "In Figure 4, we store a model every 1000 iterations to monitor the learning process. ",
1816
+ "bbox": [
1817
+ 173,
1818
+ 545,
1819
+ 718,
1820
+ 561
1821
+ ],
1822
+ "page_idx": 11
1823
+ },
1824
+ {
1825
+ "type": "text",
1826
+ "text": "C THE CHANGES OF ENTROPY STATISTICS AND \u000fProSelfLC AT TRAINING ",
1827
+ "bbox": [
1828
+ 169,
1829
+ 580,
1830
+ 771,
1831
+ 598
1832
+ ],
1833
+ "page_idx": 11
1834
+ },
1835
+ {
1836
+ "type": "text",
1837
+ "text": "In Figure 5, we visualise how the entropies of noisy and clean subsets change at training. ",
1838
+ "bbox": [
1839
+ 171,
1840
+ 611,
1841
+ 756,
1842
+ 627
1843
+ ],
1844
+ "page_idx": 11
1845
+ },
1846
+ {
1847
+ "type": "image",
1848
+ "img_path": "images/d88add6873c102c97acc6fd4a47f9e73306162e4658746c17c92302937b7099f.jpg",
1849
+ "image_caption": [
1850
+ "Figure 4: Learning dynamics on CIFAR-100 under asymmetric noisy labels. We show all iterations only in (a) and (d). In the others, we show the second half iterations, which are of higher interest. As the noise rate increases, the superiority of ProSelfLC becomes more significant, i.e., avoiding fitting noise in the 2nd row and leading to better generalisation in the 1st row. "
1851
+ ],
1852
+ "image_footnote": [],
1853
+ "bbox": [
1854
+ 174,
1855
+ 143,
1856
+ 818,
1857
+ 454
1858
+ ],
1859
+ "page_idx": 12
1860
+ },
1861
+ {
1862
+ "type": "image",
1863
+ "img_path": "images/87d3947c11ab7a345e37aa40de395b01cf8f4a64c3228a8fe122237e7d38ce9f.jpg",
1864
+ "image_caption": [
1865
+ "Figure 5: The changes of entropy statistics and \u000fProSelfLC at training. We store a model every 1000 iterations to monitor the learning process. For data-dependent metrics, after training, we split the corrupted training data into clean and noisy subsets according to the information about how the training data is corrupted before training. Finally, we report the mean results of each subset. "
1866
+ ],
1867
+ "image_footnote": [],
1868
+ "bbox": [
1869
+ 189,
1870
+ 608,
1871
+ 813,
1872
+ 820
1873
+ ],
1874
+ "page_idx": 12
1875
+ }
1876
+ ]
parse/train/5SST78xEh4A/5SST78xEh4A_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/5SST78xEh4A/5SST78xEh4A_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/63pC59XOZLZ/63pC59XOZLZ.md ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Learning to Iteratively Solve Routing Problems with Dual-Aspect Collaborative Transformer
2
+
3
+ Yining $\mathbf { M } \mathbf { a } ^ { 1 }$ , Jingwen $\mathbf { L i } ^ { 1 }$ , Zhiguang $\mathbf { C a o ^ { 2 , * } }$ , Wen Song3,∗, Le Zhang4, Zhenghua Chen5, Jing Tang6
4
+
5
+ 1National University of Singapore 2Singapore Institute of Manufacturing Technology, A\*STAR 3Institute of Marine Science and Technology, Shandong University 4University of Electronic Science and Technology of China 5Institute for Infocomm Research, A\*STAR 6The Hong Kong University of Science and Technology {yiningma, lijingwen}@u.nus.edu, zhiguangcao@outlook.com, wensong@email.sdu.edu.cn, zhangleuestc@gmail.com, chen0832@e.ntu.edu.sg, jingtang@ust.hk
6
+
7
+ # Abstract
8
+
9
+ Recently, Transformer has become a prevailing deep architecture for solving vehicle routing problems (VRPs). However, it is less effective in learning improvement models for VRP because its positional encoding (PE) method is not suitable in representing VRP solutions. This paper presents a novel Dual-Aspect Collaborative Transformer (DACT) to learn embeddings for the node and positional features separately, instead of fusing them together as done in existing ones, so as to avoid potential noises and incompatible correlations. Moreover, the positional features are embedded through a novel cyclic positional encoding (CPE) method to allow Transformer to effectively capture the circularity and symmetry of VRP solutions (i.e., cyclic sequences). We train DACT using Proximal Policy Optimization and design a curriculum learning strategy for better sample efficiency. We apply DACT to solve the traveling salesman problem (TSP) and capacitated vehicle routing problem (CVRP). Results show that our DACT outperforms existing Transformer based improvement models, and exhibits much better generalization performance across different problem sizes on synthetic and benchmark instances, respectively.
10
+
11
+ # 1 Introduction
12
+
13
+ Vehicle Routing problems (VRPs), such as the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP) which consider finding the optimal route for a single or fleet of vehicles to serve a set of customers, have ubiquitous real-world applications [1, 2]. Despite being intensively studied in the Operations Research (OR) community, VRPs still remain challenging due to their NP-hard nature [3]. Recent studies on learning neural heuristics are gathering attention as promising extensions to traditional hand-crafted ones (e.g., [4–14]), where reinforcement learning (RL) [15] is usually exploited to train a deep neural network as an efficient solver without hand-crafted rules. A salient motivation is that deep neural networks may learn better heuristics by identifying useful patterns in an end-to-end and data-driven fashion.
14
+
15
+ Solutions to VRPs, i.e., routes, are sequences of nodes (customer and depot locations). Naturally, deep models for Natural Language Processing (NLP), which deal with sequence data as well, are ideal choices for encoding VRP solutions. Given its remarkable performance in NLP tasks, Transformer [16] is standing at the forefront in the learning based methods for VRPs (e.g., [5, 7, 8, 11–13, 17]). The original Transformer encodes a sentence, i.e., a sequence of words, into a unified set of embeddings by injecting word positional information into its word embeddings through positional encoding (PE). When it comes to VRPs, while is not required in construction models, positional information is critical for deep models that learn improvement heuristics since the input are solutions to be improved.
16
+
17
+ ![](images/17403d04b62870e5603e11128aad37f05c9529785e72e7e24fbc237438272fea.jpg)
18
+ Figure 1: Transformer frameworks for VRPs. (a) $\mathrm { W u }$ et al. [11] (the original one); (b) DACT (ours).
19
+
20
+ Although some success has been achieved, learning improvement heuristics for VRPs based on the original Transformer encoder is yet lacking from our perspective. Firstly, directly applying addition operation on PE vectors and the embeddings in absolute PE method (i.e., Figure 1(a)) could limit the representation of the model [18], as the mixed correlations2 existing in the self-attention can bring unreasonable noises and random biases to the encoder (details in Appendix A). Secondly, existing PE methods tend to fuse the node and positional information into one unified representation. NLP tasks such as translation may benefit from this owing to the deterministic and instructive nature of the positional information. However, such design may not be optimal for routing tasks because the positional information therein can be non-deterministic and sometimes even random. This may cause disharmony or disturbance in the encoder and may thus deteriorate the performance. Finally, most VRPs seek the shortest loop of the nodes, making their solutions to be cyclic sequences. However, existing PE methods are only designated to encode linear sequences3, which may fail to identify such circular input. As will be shown in our experiments, this could severely damage the generalization performance, since the cyclic feature of VRP solutions is not correctly reflected by the encoder.
21
+
22
+ In this paper, we address the above issues and contribute to the line of using RL to learn neural improvement heuristics for VRPs. We introduce the Dual-Aspect Collaborative Transformer (DACT), where we revisit the solution representations and propose to learn separated groups of embeddings for the node and positional features of a VRP solution as shown in Figure 1(b). Our DACT follows the encoder-decoder structure. In the encoder, each set of embeddings encodes the solution mainly from its own aspect, and at the same time exploits a cross-aspect referential attention mechanism for better perceiving the consistence and differentiation with respect to the other aspect. The decoder then collects action distribution proposals from the two aspects and synthesizes them to output the final one. Meanwhile, we design a novel cyclic positional encoding (CPE) method to capture the circularity and symmetry of VRP solutions, which allows Transformer to encode cyclic inputs, and also boost the generalization performance for solving VRPs. As the last contribution, we design a simple yet effective curriculum learning strategy to improve the sample efficiency. This further leads to faster and more stable convergence of RL training. Extensive experiments show that our DACT can outperform existing Transformer based improvement models with fewer parameters, and also generalizes well across different sizes of synthetic and benchmark instances, respectively.
23
+
24
+ # 2 Related work
25
+
26
+ # 2.1 Positional encoding (PE) in Transformer.
27
+
28
+ The original Transformer adopted the absolute PE method to describe the absolute position of elements in the sequence [16], especially for NLP. As formulated in Eq. (1), each generated positional embedding $p _ { i } \in \mathbb { R } ^ { d }$ is added together with the $i$ -th word embedding $x _ { i }$ in the first layer of the encoder,
29
+
30
+ $$
31
+ \alpha _ { i , j } ^ { \mathrm { A b s } } = \frac { 1 } { \sqrt { d } } ( ( x _ { i } + p _ { i } ) W ^ { Q } ) ( ( x _ { j } + p _ { j } ) W ^ { K } ) ^ { T } .
32
+ $$
33
+
34
+ The relative PE method was further proposed in Shaw et al. [19] to better capture the relative order information. On the basis of absolute PE, it introduces an inductive bias to the attention as follows,
35
+
36
+ $$
37
+ \alpha _ { i , j } ^ { \mathrm { R e l } } = \frac { 1 } { \sqrt { d } } ( ( x _ { i } + p _ { i } ) W ^ { Q } ) ( ( x _ { j } + p _ { j } ) W ^ { K } + a _ { j - i } ) ^ { T } ,
38
+ $$
39
+
40
+ where $a _ { j - i } \in \mathbb { R } ^ { d }$ is learnable parameters for encoding the relative position $j - i$ . To avoid the mixed and noisy correlations between word semantics and positional information in the above two PEs, the Transformer with United Positional Encoding (TUPE) [18] was proposed for NLP which utilizes separated projection metrics $W _ { x }$ and $W _ { p }$ for each information as follows,
41
+
42
+ $$
43
+ \alpha _ { i , j } ^ { \mathrm { T U P E } } = \frac { 1 } { \sqrt { 2 d } } ( x _ { i } W _ { x } ^ { Q } ) ( x _ { j } W _ { x } ^ { K } ) ^ { T } + \frac { 1 } { \sqrt { 2 d } } ( p _ { i } W _ { p } ^ { Q } ) ( p _ { j } W _ { p } ^ { K } ) ^ { T } + b _ { j - i } .
44
+ $$
45
+
46
+ However, as mentioned previously, existing PE methods are less effective for VRPs since they simply fuse the node and positional information into one unified set of embeddings during or after the calculation of the attention correlation $\alpha _ { i , j }$ . Meanwhile, they are also unable to properly encode and handle cyclic input sequences as in VRP solutions.
47
+
48
+ # 2.2 Deep models for VRP.
49
+
50
+ Various deep architectures such as Recurrent Neural Network (RNN), Graph Neural Network (GNN), and Transformer have been employed in solving VRPs.
51
+
52
+ RNN based models. As the pioneering work of neural VRP solvers, Pointer Network adopted RNN and supervised learning to solve TSP [20] (extended to RL in Bello et al. [21] and CVRP in Nazari et al. [22]). While the models in [20–23] learn construction heuristics, NeuRewriter [4] learns improvement heuristic for CVRP using LSTM to encode the positional information of a solution. In Hottung et al. [13], the conditional variational autoencoder was adopted to learn a continuous and latent search space for VRP, where high-quality solutions were taken as input and encoded by RNNs. However, recurrence structures in RNN are less efficient in both representation and computation [5].
53
+
54
+ GNN based models. In Dai et al. [24], GNN was combined with Q-learning for solving TSP. Based on supervised learning, Joshi et al. [6] used GNN to learn heatmaps that prescribe the probability of each edge appearing in the optimal TSP tour. This idea was extended in Fu et al. [25] with additional components such as graph sampling and heatmap merging to enable generalization to larger TSP instances. These models often require post-processing to construct feasible solutions from heatmaps (e.g., beam search [6], Monte-Carlo tree search [25], and dynamic programming [26]).
55
+
56
+ Transformer based models. The Attention Model (AM) by Kool et al. [5] was recognized as the first success of Transformer based models for VRPs. Based on AM, Xin et al. [7] proposed a MultiDecoder AM that learns multiple diverse policies for better performance. In Kwon et al. [8], the RL algorithm of AM was improved which leaded to a new solver, i.e., POMO (Policy Optimization with Multiple Optima), and achieved the state-of-the-art performance. However, POMO is still lacking in generalization. Besides these construction models, Transformer was also explored to learn improvement heuristics. Hottung and Tierney [27] learned first neural large neighborhood search algorithm for VRPs. Lu et al. [12] proposed the L2I model that learns to select local search operators from a pool of traditional ones. Both methods used a Transformer-style encoder, but the positional information is captured in the node features (information of previous and next nodes) instead of using PE methods. Though L2I was shown to outperform LKH3 [28], it is limited to CVRP and the required time is considerably long. Wu et al. [11] proposed a Transformer model which learns to pick node pair in each step to perform a pairwise local operator (e.g., 2-opt). However, it suffers from the inaccurate representation of positional information given the original Transformer encoder.
57
+
58
+ ![](images/5ace11ce359bbb755998396b80534ff05688295f43970028840cdf0661b073b3.jpg)
59
+ Figure 3: Architecture of our policy network, dual-aspect collaborative Transformer (DACT).
60
+
61
+ # 3 Problem formulation
62
+
63
+ We define a VRP instance as a group of $N$ nodes to visit, where the node feature $x _ { i }$ of node $i$ contains 2-dim coordinates and other problem-specific features (e.g., customer demand). A solution $\delta$ consists of a sequence of nodes visited in order where we denote $p _ { i }$ to be the position (indices) of node $i$ in the solution which is deemed as the positional feature of node $i$ . The objective is to minimize the total travel distance $D ( \delta )$ under certain problem-specific constraints.
64
+
65
+ Starting with an initial yet complete solution, our neural RL policy tries to improve the solution iteratively. At each step, the policy automatically selects a pair of nodes and locally adjusts the solution using a preset pairwise operator such as 2-opt, insert, or swap. As illustrated in Figure 2, given a node pair $( i , j )$ , the 2-opt operator adjusts a solution by reversing the segment between node $i$ and node $j$ ; the insert operator adjusts a solution by placing node $i$ after node $j$ ; and the swap operator adjusts a solution by exchanging the position of node $i$ and node $j$ . Such operation is repeated until reaching the step limit $T$ and we model it in the form of Markov Decision Process (MDP) as follows.
66
+
67
+ ![](images/3abc3c66ae47d31052903aafee9790f52c0e269b59a1a7ed0217c149d678c265.jpg)
68
+ Figure 2: Illustration examples of three pairwise operators for routing problems when node pair $( i = 2 , j = 1 )$ ) is specified for operating. From left to right: 2-opt, insert, and swap.
69
+
70
+ State. For an instance with $N$ nodes, a state describes current solution $\delta _ { t }$ using its node and positional features of each node, i.e., $s _ { t } = \Psi ( \delta _ { t } ) = \{ x _ { 1 } ^ { t } , . . . , x _ { N } ^ { t } , p _ { 1 } ^ { t } , . . . , p _ { N } ^ { t } \}$ .
71
+
72
+ Action. The action $a _ { t } = ( i , j )$ specifies a node pair $( i , j )$ for the pairwise operator.
73
+
74
+ Reward. The reward function is defined as, $r _ { t } = D ( \delta _ { t } ^ { * } ) - m i n \left[ D ( \delta _ { t + 1 } ) , D ( \delta _ { t } ^ { * } ) \right]$ where $\delta _ { t } ^ { * }$ is the best incumbent solution found until time $t$ . It refers to the immediate reduced cost at each step with respects to the best incumbent solution, which ensures the cumulative reward equal to the total reduced cost over the initial solution. Hence the reward $r _ { t } > 0$ if and only if a better solution is found. Policy. The policy $\pi _ { \theta }$ is parameterized by the proposed DACT model with parameters $\theta$ . At each time step, the action $( i , j )$ is obtained by sampling the stochastic policy for both training and inference.
75
+
76
+ Transition. The next state $s _ { t + 1 }$ is originated from $s _ { t }$ by performing the preset pairwise operator on the given node pair (action). Our state transient is deterministic, in the sense that it always accepts the next solution as the next state (infeasible solutions will be masked), regardless of its objective value. With such simple rule, the RL agent is expected to automatically learn how to combine multiple steps of simple local movements to achieve better solutions, even if some of them may worsen the current solution. Note that the step limit $T$ can be any user-specified value according to the allowed time budget. Hence, our MDP can have infinite horizon and we consider the reward discount factor $\gamma < 1$ .
77
+
78
+ # 4 Dual-aspect collaborative Transformer model
79
+
80
+ We now present the details of our Dual-Aspect Collaborative Transformer (DACT). The concrete architecture of DACT is presented in Figure 3, where we take the TSP with $N$ nodes as an illustration example. Our DACT leverages separate aspects of embeddings to encode a VRP solution. In the DAC encoder, the self-attention correlations are computed individually for each aspect, and a cross-aspect referential attention mechanism is proposed to enable one aspect to effectively exploit attention correlations from the other aspect as optional references. The DAC decoder then collects action distribution proposals from both aspects and synthesize them to the final one.
81
+
82
+ ![](images/89f6fef802cd35891d1ed76d002b348f40ea6b89b2545c5f6d954311286d8b4a.jpg)
83
+ Figure 5: Comparison of our CPE method with absolute PE method on a TSP instance with 20 nodes. (a) the embedding vectors, (b) the correlations (dot products) between every two embeddings, and (c) the top two principal components after PCA (principal component analysis) projection.
84
+ Figure 4: An example of cyclic Gray code where 4 digits are used to encode $N { = } 1 6$ nodes. The top left shows the base symmetry pattern $\cdot _ { 1 0 0 1 }$ ’ in Gray code, and the top right plots its representation in our method.
85
+
86
+ # 4.1 Dual-aspect solution representation
87
+
88
+ Specifically, we propose to learn two sets of embeddings, i.e., the node feature embeddings (NFEs) for node representation and the positional feature embeddings (PFEs) for positional representation.
89
+
90
+ NFEs. Following [5, 11], the NFE $h _ { i }$ of node $i$ is initialized as the linear projection of its node feature $x _ { i }$ with output dimension4 $d i m = 6 4$ .
91
+
92
+ PFEs. The PFE $g _ { i }$ of the positional feature $p _ { i }$ is initialized as a real-valued vector $( d i m = 6 4 )$ by applying our cyclic positional encoding (CPE), which is designed based on cyclic Gray codes [29].
93
+
94
+ <table><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>14</td><td rowspan=1 colspan=1>15</td><td rowspan=1 colspan=1>16</td></tr><tr><td rowspan=2 colspan=1>11</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td></tr></table>
95
+
96
+ As illustrated in Figure 4, the cyclic Gray codes present a cyclic property (‘1110’ in the last column is adjacent to ‘1111’ in the first column) and an adjacency similarity property (any codes in adjacent columns only differ in one digit), both of which are desirable for cyclic sequences. To preserve these properties in designing our CPE, we follow two observed patterns: 1) each numerical digit contains a periodic cycle with reflectional symmetry, e.g., the $\mathbf { \dot { \rho } } _ { 1 0 | 0 1 } ,$ in the lowest digit; and 2) the higher the numerical digit, the longer the period. Accordingly, we create similar patterns based on the sinusoidal functions in Eq. (4), where a periodic function with period $\frac { 4 \pi } { \omega _ { d } }$ (induced by modulus) is used to generate one base symmetry pattern (the top right in Figure 4),
97
+
98
+ $$
99
+ \begin{array} { r } { \overrightarrow { g _ { i } ^ { \prime } } ^ { ( d ) } : = \left\{ \begin{array} { l l } { s i n ( \omega _ { d } \cdot \mathrm { \Gamma } ( z ( i ) \bmod \frac { 4 \pi } { \omega _ { d } } ) - \frac { 2 \pi } { \omega _ { d } } \mathrm { \Gamma } ) , \mathrm { ~ i f ~ } d \mathrm { ~ i s ~ e v e n } } \\ { c o s ( \omega _ { d } \cdot \mathrm { \Gamma } ( z ( i ) \bmod \frac { 4 \pi } { \omega _ { d } } ) - \frac { 2 \pi } { \omega _ { d } } \mathrm { \Gamma } ) , \mathrm { ~ i f ~ } d \mathrm { ~ i s ~ o d d } } \end{array} \right. } \end{array}
100
+ $$
101
+
102
+ $\begin{array} { r } { z ( i ) = \frac { i - 1 } { N } \frac { 2 \pi } { \omega _ { d } } \left\lceil \frac { N + 1 } { 2 \pi / \omega _ { d } } \right\rceil } \end{array}$ is to make $N$ nodes linearly spaced in the generated pattern; the angular frequency $\omega _ { d }$ is decreasing along the dimension to make the wavelength longer within the range $[ N ^ { \frac { 1 } { [ d i m / 2 ] } } , N ]$ (see Appendix B for details). In Figure 5, we visualize the comparison between the absolute PE and our CPE for encoding a TSP instance of 20 nodes. Figure 5(a) demonstrates that our real-valued base symmetry pattern has a longer cyclic period as the digit grows. Figure 5(b) indicates that our method (blue) is able to correctly reflect the adjacency between the head and tail of the cyclic sequence whereas the PE method (red) fails to do so. Figure 5(c) verifies that our CPE vectors are well distributed in space with desired cyclic and adjacency similarity properties.
103
+
104
+ # 4.2 The encoder
105
+
106
+ The encoder consists of $L = 3$ stacked DAC encoders. In each DAC encoder, we retain relatively independent encoding stream for NFEs and PFEs as in Eq. (5) and Eq. (6), respectively, each of which consists of a shared Dual-Aspect Collaborative Attention (DAC-Att) sub-layer and an independent feed-forward network (FFN) sub-layer. DAC-Att takes both sets of embeddings as input and then outputs their respective enhanced embeddings, i.e., NFEs $\{ \tilde { h } \} _ { i = 1 } ^ { N }$ and PFEs $\{ \tilde { g } \} _ { i = 1 } ^ { N }$ . Each sub-layer is followed by skip connection [30] and layer normalization [31] as same as the original Transformer.
107
+
108
+ $$
109
+ \begin{array} { r } { h _ { i } ^ { ( l ) } = \mathbf { L N } \Big ( h _ { i } ^ { \prime } + \mathbf { F F N } _ { h } ^ { ( l ) } ( h _ { i } ^ { \prime } ) \Big ) , h _ { i } ^ { \prime } = \mathbf { L N } \Big ( h _ { i } ^ { ( l - 1 ) } + \tilde { h } _ { i } ^ { ( l ) } \Big ) , } \\ { g _ { i } ^ { ( l ) } = \mathbf { L N } \Big ( g _ { i } ^ { \prime } + \mathbf { F F N } _ { g } ^ { ( l ) } ( g _ { i } ^ { \prime } ) \Big ) , g _ { i } ^ { \prime } = \mathbf { L N } \Big ( g _ { i } ^ { ( l - 1 ) } + \tilde { g } _ { i } ^ { ( l ) } \Big ) . } \end{array}
110
+ $$
111
+
112
+ DAC-Att. The DAC-Att sub-layer enhances each set of embedding from its own aspect, while leveraging attention correlations from the other aspect to achieve the synergy. Given the two sets of embeddings5, $\{ h _ { i } \} _ { i = 1 } ^ { N }$ and $\{ g _ { i } \} _ { i = 1 } ^ { N }$ , we first compute the self-attention correlation from both aspects,
113
+
114
+ $$
115
+ \alpha _ { i , j } ^ { h } = \frac { 1 } { \sqrt { d _ { k } } } \left( h _ { i } W _ { h } ^ { Q } \right) \left( h _ { j } W _ { h } ^ { K } \right) ^ { T } , \quad \alpha _ { i , j } ^ { g } = \frac { 1 } { \sqrt { d _ { k } } } \left( g _ { i } W _ { g } ^ { Q } \right) \left( g _ { j } W _ { g } ^ { K } \right) ^ { T } ,
116
+ $$
117
+
118
+ where independent matrices $W _ { h } ^ { Q } , W _ { h } ^ { K } , W _ { g } ^ { Q }$ and $W _ { g } ^ { K } \in \mathbb { R } ^ { d i m \times d _ { k } }$ are used to calculate queries and keys. The obtained correlations are further normalized to $\tilde { \alpha } _ { i , j } ^ { h }$ and $\tilde { \alpha } _ { i , j } ^ { g }$ via Softmax. Note that the correlations are computed from their own aspect, which eliminates possible noises and conduces to correctly describe the incompatible node pair relationships in different aspects of VRP solutions.
119
+
120
+ We then exploit a cross-aspect referential attention mechanism, which allows computed correlations to be shared between each other, as additional references for both contradistinction and collaboration,
121
+
122
+ $$
123
+ \mathrm { o u t } _ { i } ^ { h } = \mathrm { C o n c a t } \left[ \sum _ { j = 1 } ^ { N } \tilde { \alpha } _ { i , j } ^ { h } \left( h _ { j } W _ { h } ^ { V } \right) , \sum _ { j = 1 } ^ { N } \tilde { \alpha } _ { i , j } ^ { g } \left( h _ { j } W _ { h } ^ { V r e f } \right) \right] ,
124
+ $$
125
+
126
+ $$
127
+ \mathrm { o u t } _ { i } ^ { g } = \mathrm { C o n c a t } \left[ \sum _ { j = 1 } ^ { N } { \tilde { \alpha } } _ { i , j } ^ { g } \left( g _ { j } W _ { g } ^ { V } \right) , \sum _ { j = 1 } ^ { N } { \tilde { \alpha } } _ { i , j } ^ { h } \left( g _ { j } W _ { g } ^ { V r e f } \right) \right] ,
128
+ $$
129
+
130
+ wheand $W _ { h } ^ { V } , W _ { g } ^ { V } \in \mathbb R ^ { d i m \times d _ { v } }$ are trainable parameter matrices for formulating values in each aspect; are parameter matrices for each aspect to generate referential values. $W _ { h } ^ { V r e f } , W _ { g } ^ { V r e f } \in \mathbb R ^ { d i m \times d _ { v } }$ We finally use the multi-head attention to get NFEs $\tilde { h } _ { i }$ and PFEs $\tilde { g } _ { i }$ as follows,
131
+
132
+ $$
133
+ \begin{array} { r } { \begin{array} { c } { \tilde { h } _ { i } , \tilde { g } _ { i } = \mathbf { D A C - A t t } \left( W ^ { Q } , ~ W ^ { K } , W ^ { V } , W ^ { V _ { r e f } } , W ^ { O } \right) , } \\ { \tilde { h } _ { i } = \mathbf { C o n c a t } \left[ \mathrm { h e a d } _ { i , 1 } ^ { h } , . . . , \mathrm { h e a d } _ { i , m } ^ { h } \right] W _ { h } ^ { O } , ~ \tilde { g } _ { i } = \mathbf { C o n c a t } \left[ \mathrm { h e a d } _ { i , 1 } ^ { g } , . . . , \mathrm { h e a d } _ { i , m } ^ { g } \right] W _ { g } ^ { O } , } \end{array} } \end{array}
134
+ $$
135
+
136
+ where h $\mathbf { e a d } _ { i , k } ^ { h } = o u t _ { i , k } ^ { h }$ , $\mathbf { h e a d } _ { i , k } ^ { g } = o u t _ { i , k } ^ { g }$ , and $W _ { h } ^ { O } , W _ { g } ^ { O } \ \in \ \mathbb { R } ^ { 2 m d _ { v } \times d i m }$ are trainable parameter matrices. In our model, we adopt $m = 4$ and $d _ { k } = d _ { v } = 1 6$ .
137
+
138
+ FFN. Our FFN sub-layer has only one hidden layer with 64 hidden unites and adopts the ReLU activation function. The parameters of $\mathbf { F F N } _ { h }$ and $\mathbf { F F N } _ { g }$ are different for each group of embeddings.
139
+
140
+ # 4.3 The decoder
141
+
142
+ In the DAC decoder, the two sets of embeddings $\{ h _ { i } ^ { ( L ) } \} _ { i = 1 } ^ { N }$ and $\{ g _ { i } ^ { ( L ) } \} _ { i = 1 } ^ { N }$ are first passed through a Max-pooling sub-layer and a multi-head compatibility (MHC) sub-layer to independently generate diversified node-pair selection proposals from their own aspect, which are then aggregated through a feed-forward aggregation (FFA) sub-layer for output.
143
+
144
+ Max-pooling. For each set of embeddings, we adopt the max-pooling sub-layer in Wu et al. [11] to aggregate the global representation of all $N$ embeddings into each respective one6.
145
+
146
+ MHC. The compatibility sub-layer computes the attention correlations for each embedding pair, where the obtained correlations with size $N \times N$ will be deemed as a proposal distribution for node pair selection. Our correlations are computed based on multiple heads for diversity. And we calculate separated attention score matrices $\boldsymbol { Y } _ { k } ^ { h } , \boldsymbol { \dot { Y } } _ { k } ^ { g } \in \mathbb { R } ^ { N \times N }$ (of head $k$ ) from the two aspects independently. Accordingly, the action distribution proposals would be different due to their aspect-specific focus and cognitions of the current solution, which will provide the subsequent FFA layer with a rich pool of proposals and allow our model to be more flexible and robust.
147
+
148
+ FFA. Once all proposals from two aspects are collected, a FFN with four layers (dimensions are $2 m$ , 32, 32 and 1, respectively) and ReLU activation is used to aggregate them,
149
+
150
+ $$
151
+ \tilde { Y } _ { i , j } = \mathbf { F } \mathbf { F } \mathbf { A } \left( Y _ { i , j , 1 } ^ { g } , . . . , Y _ { i , j , m } ^ { g } , Y _ { i , j , 1 } ^ { h } , . . . Y _ { i , j , m } ^ { h } \right) ,
152
+ $$
153
+
154
+ where $m = 4$ is the number of heads; and the output $\tilde { Y } _ { i , j }$ is a scalar indicating the likelihood of selecting node pair $( i , j )$ as an action. Afterwards, we apply $\hat { Y } _ { i j } = C \cdot \mathrm { T a n h } ( \tilde { Y } _ { i , j } )$ with $C = 6$ to control the entropy, and mask 7 the infeasible node pairs $( i ^ { \prime } , j ^ { \prime } )$ as $\hat { Y } _ { i ^ { \prime } j ^ { \prime } } = - \infty$ . Lastly, the likelihoods are normalized using Softmax function to obtain the final action distribution $P _ { i , j }$ .
155
+
156
+ # 4.4 Reinforcement learning algorithm
157
+
158
+ We adopt the proximal policy optimization [32] with $n$ -step return estimation for training (details are given in Appendix C), and design a curriculum learning (CL) strategy for better sample efficiency.
159
+
160
+ Curriculum learning strategy. The strategy in Wu et al. [11] sets a maximum of $T _ { t r a i n }$ steps for training and estimates future returns by bootstrapping [33]. However, due to the concern of training cost, $T _ { t r a i n }$ is usually much smaller than actual $T$ for inference (e.g., 200 v.s. 10k), which may leave the agent a poor chance of observing high-quality solutions (states) during training. Consequently, it may cause high variance for bootstrapping because the value function is mostly fitted on low-quality solutions and may render it less knowledgeable in estimating long-term future returns accurately. In this paper, we tackle this issue by a simple yet efficient strategy which gradually prescribes higher-quality solutions as the initial states for training. In doing so, 1) it increases the probability for the agent to observe better solutions and thus reduce the variance of the value function; 2) it increases the difficulty of the learning task (higher-quality solutions are harder to improve) in a gradual manner and achieves better sample efficiency [34]. In practice, those higher-quality solutions can be easily achieved by improving the randomly generated ones using the current policy for a few $T _ { i n i t }$ steps, where $T _ { i n i t }$ could be slightly increased as the epoch grows.
161
+
162
+ # 5 Experiments
163
+
164
+ We evaluate our DACT model on two representative routing problems, i.e., TSP and CVRP [5, 8, 11]. For each problem, we abide by existing conventions to randomly generate instances on the fly for three sizes, i.e., $N = 2 0$ , 50 and 100. Initial experiments with three operators including 2-opt, swap and insert show that 2-opt performs best for both TSP and CVRP (with insert better than swap), hence we report results of our method based on 2-opt. Following [4, 11, 27] we use randomly generated initial solutions for training and the solutions generated by the greedy algorithm for inference. Since each problem has its own constraints and node features, we adjust the input, feasibility masks, and problem-dependent hyperparameters for each problem, the details of which are provided in Appendix D and E. The DACT is trained and tested on a server equipped with TITAN RTX GPU cards and Intel i9-10940X CPU at $3 . 3 0 \mathrm { G H z }$ . Our code in PyTorch are available here8.
165
+
166
+ Table 1: Comparison with various baselines on TSP and CVRP.
167
+
168
+ <table><tr><td rowspan="2" colspan="2">Method</td><td colspan="3">N=20</td><td colspan="3">N=50</td><td colspan="3">N=100</td></tr><tr><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td></tr><tr><td rowspan="10">LKH P</td><td>Concorde</td><td>3.83</td><td>=</td><td>(3m)</td><td>5.70</td><td></td><td>(10m)</td><td>7.76</td><td></td><td>(1h)</td></tr><tr><td></td><td>3.83</td><td>0.00%</td><td>(38s)</td><td>5.70</td><td>0.00%</td><td>(5m)</td><td>7.76</td><td>0.00%</td><td>(20m)</td></tr><tr><td>OR-Tools</td><td>3.86</td><td>0.94%</td><td>(42s)</td><td>5.85</td><td>2.87%</td><td>(5m)</td><td>8.06</td><td>3.86%</td><td>(23m)</td></tr><tr><td>Neural-2-Opt [23]</td><td>3.84</td><td>0.00%</td><td>(15m)</td><td>5.70</td><td>0.12%</td><td>(29m)</td><td>7.83</td><td>0.87%</td><td>(41m)</td></tr><tr><td>Wu et al. [11] (T=5k)</td><td>3.83</td><td>0.00%</td><td>(1h)</td><td>5.70</td><td>0.20%</td><td>(1.5h)</td><td>7.87</td><td>1.42%</td><td>(2h)</td></tr><tr><td>DACT (T=1k)</td><td>3.83</td><td>0.04%</td><td>{7s}(24s)</td><td>5.70</td><td>0.14%</td><td>{16s}(1m)</td><td>7.89</td><td>1.62%</td><td>{48s}(4m)</td></tr><tr><td>DACT (T=5k)</td><td>3.83</td><td>0.00%</td><td>{32s}(2m)</td><td>5.70</td><td>0.02%</td><td>{2m}(6m)</td><td>7.81</td><td>0.61%</td><td>{4m}(18m)</td></tr><tr><td>DACT (T=10k)</td><td>3.83</td><td>0.00%</td><td>{1m}(5m)</td><td>5.70</td><td>0.01%</td><td>{3m}(13m)</td><td>7.79</td><td>0.37%</td><td>{8m}(40m)</td></tr><tr><td>DACT×4 augment</td><td>3.83</td><td>0.00%</td><td>{3m}(10m)</td><td>5.70</td><td>0.00%</td><td>{10m}(1h)</td><td>7.77</td><td>0.09%</td><td>{29m}(2.5h)</td></tr><tr><td>GCN-BS [6]</td><td>3.84</td><td>0.01%</td><td>(12m)</td><td>5.70</td><td>0.01%</td><td>(18m)</td><td>7.87</td><td>1.39%</td><td>(40m)</td></tr><tr><td>AM-sampling [5]</td><td>3.84</td><td>0.08%</td><td>(5m)</td><td>5.73</td><td>0.52%</td><td>(24m)</td><td>7.94</td><td>2.26%</td><td>(1h)</td></tr><tr><td>MDAM-BS[7]</td><td>3.84t</td><td>0.00%</td><td>(3m)</td><td>5.70</td><td>0.03%</td><td>(14m)</td><td>7.79</td><td>0.38%</td><td>(44m)</td></tr><tr><td>POMO [8]</td><td>3.83</td><td>0.04%</td><td>(1s)</td><td>5.70</td><td>0.21%</td><td>(2s)</td><td>7.80</td><td>0.46%</td><td>(11s)</td></tr><tr><td>POMO×8 augment [8]</td><td>3.83</td><td>0.00%</td><td>(3s)</td><td>5.69t</td><td>0.03%</td><td>(16s)</td><td>7.78</td><td>0.15%</td><td>(1m)</td></tr><tr><td>DPDP(100k) [26]</td><td>-</td><td></td><td></td><td>-</td><td></td><td>=</td><td>7.77+</td><td>0.00%</td><td>(3h)</td></tr><tr><td rowspan="9">LKH OR-Tools NeuRewriter [4] NLNS [27]</td><td rowspan="9">CVAE-Opt-DE [13]</td><td>1</td><td>0.00%#</td><td>11m#</td><td>-</td><td>0.02%#</td><td>22m#</td><td>-</td><td>0.34%#</td><td>55m#</td></tr><tr><td></td><td>0.00%</td><td></td><td></td><td></td><td>4h</td><td>15.68</td><td></td><td></td></tr><tr><td>6.14 6.46</td><td>5.68%</td><td>1h 2m</td><td>10.38 11.27</td><td>0.00% 8.61%</td><td>13m</td><td>17.12</td><td>0.00% 9.54%</td><td>8h 46m</td></tr><tr><td>6.15#</td><td></td><td>6m#</td><td>10.51#</td><td></td><td>11m#</td><td>16.10#</td><td></td><td></td></tr><tr><td>6.19#</td><td>=</td><td>6m#</td><td>10.54#</td><td></td><td>11m#</td><td>15.99#</td><td>=</td><td>17m# 16m#</td></tr><tr><td>Wu et al. [11] (T=5k) 6.12</td><td>0.39%</td><td>(2h)</td><td>10.45</td><td>0.70%</td><td>(4h)</td><td>16.03t</td><td>= 2.47%</td><td></td></tr><tr><td>DACT (T=1k)</td><td>0.28%</td><td>{16s}(33s)</td><td>10.61</td><td>2.13%</td><td>{43s}(2m)</td><td>16.17</td><td>3.18%</td><td>(5h) {2m}(5m)</td></tr><tr><td>DACT (T=5k)</td><td>6.15 6.13 -0.00%</td><td>{1m}(3m)</td><td>10.48</td><td>1.01%</td><td>{3m}(8m)</td><td>15.92</td><td>1.55%</td><td>{8m}(23m)</td></tr><tr><td>DACT (T=10k)</td><td>-0.04%</td><td>{2m}(6m)</td><td>10.46</td><td>0.79%</td><td>{6m}(16m)</td><td>15.85</td><td>1.12%</td><td>{16m}(45m)</td></tr><tr><td rowspan="2">DACT×6 augment</td><td>6.13 6.13</td><td>-0.08%</td><td>{11m}(35m)</td><td>10.39</td><td>0.14%</td><td>{32m}(1.5h)</td><td>15.71</td><td>0.19%</td><td>{1.5h}(4.5h)</td></tr><tr><td>AM-sampling [5]</td><td>1.87%</td><td>(6m)</td><td>10.62</td><td>2.40%</td><td>(28m)</td><td></td><td></td><td></td></tr><tr><td rowspan="2">MDAM-BS[7]</td><td>6.25 6.14</td><td>0.18%</td><td>(5m)</td><td>10.48</td><td>0.98%</td><td>(15m)</td><td>16.23 15.99#</td><td>3.72% 2.23%</td><td>(2h)</td></tr><tr><td></td><td>0.82%</td><td>(1s)</td><td>10.49</td><td>1.14%</td><td>(4s)</td><td>15.83</td><td>0.98%</td><td>(1h) (19s)</td></tr><tr><td>POMO [8] POMO×8 augment [8]</td><td>6.17 6.14</td><td>0.21%</td><td>(5s)</td><td>10.42</td><td>0.45%</td><td>(26s)</td><td>15.73</td><td>0.32%</td><td>(2m)</td></tr><tr><td>DPDP(100k)[26]</td><td></td><td></td><td></td><td></td><td></td><td></td><td>15.69</td><td>0.31%</td><td></td></tr><tr><td>CVAE-Opt-DE [13]</td><td>= 6.14#</td><td></td><td>= 21m#</td><td>= 10.40#</td><td></td><td>41m#</td><td>15.75#</td><td></td><td>(6h) 1.5h#</td></tr></table>
169
+
170
+ # the obj. values, gaps or time are obtained based on 2,000 instances in their original papers, and not directly comparable to ours. ‡ the obj. values obtained by Concorde or LKH may be slightly different from ours since the 10,000 instances are randomly generated. E.g., for TSP50, the optimal values according to our running of Concorde is 5.70, while 5.69 in POMO and Wu et al.. We thus focus more on gaps.
171
+
172
+ # 5.1 Comparison studies
173
+
174
+ In Table 1, we compare our DACT with, (1) learning based improvement methods, including Wu et al. [11], Neural-2-Opt [23] (TSP only), NeuRewriter [4] (CVRP only), NLNS [27] (CVRP only), (2) learning based construction methods, including AM-sampling [5], GCN-BS [6] (TSP only), MDAM-BS [7], POMO [8], (3) conventional optimization algorithms equipped with learning based component(s), including DPDP [26], CVAE-Opt-DE [13], and (4) strong conventional solvers including Concorde [35], LKH [28, 36], and OR-Tools [37]. Though L2I [12] can outstrip LKH on CVRP, we do not inlude it as a baseline since it requires a prohibitively longer inference time than others9. All results are averaged over 10,000 randomly generated instances unless specified otherwise (e.g., the ones marked with # only infer 2,000 instances), and we report the metrics of objective values, (optimality) gaps and run time. Regarding baselines, we follow the results reported in their original papers, which may not include all the three metrics. For TSP, Concorde is adopted to get the optimal solutions, based on which the optimality gaps of other methods are calculated. CVRP is harder to be solved optimally, and the gaps are calculated based on solutions of LKH. Note that even for the baselines which infer 10,000 random instances, their objective values might be slightly different from ours (e.g., the ones marked with $\ddagger .$ ), therefore we focus more on gaps for fair comparison. The run time is also hard to compare due to various factors (e.g., GPU/CPU models, batch sizes, Python v.s. $\mathrm { C } { + + }$ ). For DACT, we report the time for inferring all 10,000 instances with multiple GPU cards in $^ { 6 6 } ( ) "$ , and a small batch (512 instances) with one single GPU card in “{}".
175
+
176
+ Pertaining to TSP, our DACT with inference step limit of 5,000 $\mathrm { ( T = 5 k }$ ) outperforms the traditional solver OR-Tools and all improvement models in terms of optimality gap, including Wu et al. [11] which directly adopted the original Transformer encoder. It also outstrips construction methods
177
+
178
+ Table 2: Generalization performance. (a) DACT v.s. baselines on benchmark datasets (up to 200 customers, see Appendix E.4 for detailed results and discussion); (b) PE v.s. CPE on different sizes.
179
+
180
+ <table><tr><td>Method</td><td>TSPLIB</td><td>CVRPLIB</td></tr><tr><td>OR-Tools [37]</td><td>3.34%</td><td>8.06%</td></tr><tr><td>AM-sampling [5]</td><td>22.83%</td><td>26.66%</td></tr><tr><td>POMO [8]</td><td>10.06%</td><td>6.10%</td></tr><tr><td>Wu et al. [11]</td><td>4.17%</td><td>5.20%</td></tr><tr><td>DACT</td><td>2.07%</td><td>3.41%</td></tr></table>
181
+
182
+ (a)
183
+
184
+ <table><tr><td rowspan="2">Method</td><td colspan="2">N=20</td><td colspan="2">N=100</td></tr><tr><td>Obj.</td><td>Gap</td><td>Obj.</td><td>Gap</td></tr><tr><td>DACT-PE (T=5k)</td><td>3.84</td><td>0.21%</td><td>8.38</td><td>7.93%</td></tr><tr><td>DACT-CPE (T=5k)</td><td>3.83</td><td>0.10%</td><td>7.99</td><td>2.98%</td></tr><tr><td>Wu et al.[11] (T=5k)</td><td>3.91</td><td>2.14%</td><td>9.03</td><td>16.37%</td></tr><tr><td>OR-Tools [37]</td><td>3.83</td><td>0.00%</td><td>8.06</td><td>3.87%</td></tr></table>
185
+
186
+ (b)
187
+
188
+ Table 3: Dual v.s. single aspect representation
189
+
190
+ <table><tr><td>Steps</td><td>Method</td><td>#Params</td><td>N=50</td><td>N=100</td></tr><tr><td rowspan="2">T=1k</td><td>SA-T</td><td>0.37M</td><td>0.35% (1m)</td><td>3.49% (3m)</td></tr><tr><td>DACT</td><td>0.29M</td><td>0.14% (1m)</td><td>1.62% (4m)</td></tr><tr><td rowspan="2">T=5k</td><td>SA-T</td><td>0.37M</td><td>0.05% (5m)</td><td>1.55% (16m)</td></tr><tr><td>DACT</td><td>0.29M</td><td>0.02% (6m)</td><td>0.61% (18m)</td></tr></table>
191
+
192
+ including AM-sampling and GCN-BS on TSP100. With larger step limit $\mathrm { T } { = } 1 0 \mathrm { k }$ , our DACT further boosts the solution qualities and outperforms other construction methods including MDAM-BS (beam search), and POMO (the current state-of-the-art). To further reduce the gaps, we also leverage the data augmentation technique in POMO (which considers flipping node coordinates without changing the optimal solution) to solve same instances multiple times in different ways. Although the inference time increases (we run data augmentation in serial on the same GPUs), our DACT with 4 augments not only outstrips POMO with 8 augments but also achieves the lowest objective values and gaps among all purely learning based models. In particular, our method almost optimally solved TSP20 and TSP50 with gap lower than $0 . 0 0 5 \%$ , and $0 . 0 9 \%$ on TSP100, which is superior to most of the recent neural solvers. Pertaining to CVRP, our DACT with $\mathrm { T } { = } 5 \mathrm { k }$ produces lower gaps than that of improvement models including NeuRewriter and NLNS. It also performs much better than Wu et al. [11] except on CVRP50. With $\mathrm { T } { = } 1 0 \mathrm { k }$ and 6 augments10, our DACT exhibits even better performance than the highly specialized heuristic solver LKH on CVRP20 and delivers the smallest gap of $0 . 1 9 \%$ on CVRP100 against other neural solvers including POMO with 8 augments. Besides, our DACT is also competitive to DPDP which leverages learnt heatmap and dynamic programming to search solutions. Though DPDP (100k) can solve TSP100 instances almost optimally, our DACT is more efficient than DPDP on CVRP100. Compared with CVAE-Opt-DE, despite that it is averaged over fewer instances and integrated with differential evolution, our objective values are still lower.
193
+
194
+ In terms of the inference time, our DACT is highly competitive against all neural solvers except POMO which learns a construction model by sampling diverse trajectories. However, when it comes to the generalization performance on benchmark datasets, i.e., TSPLIB [38] and CVRPLIB [39] in Table 2(a), DACT produces significantly lower average gaps than the POMO with 8 augments, which indicates that our DACT is more advantageous in practice despite its longer inference time. On the other hand, it is possible to adopt a similar diverse rollout strategy for DACT to find better solutions earlier, or explore other model compression techniques such as the knowledge distillation [40] to learn a lighter DACT model for faster inference. Since our focus is to ameliorate Transformer for neural improvement solvers, we will investigate these possibilities in the future.
195
+
196
+ # 5.2 Ablation studies
197
+
198
+ Dual-aspect representation. In Table 3, we evaluate the effectiveness of our dual-aspect representation against the single-aspect one (SA-T) on TSP50 and TSP100, where SA-T mainly follows the Transformer in $\mathbf { W } \mathbf { u }$ et al. [11] but equipped with the CPE, multi-head attentions and CL strategy for fair comparison. We observe that our DACT with fewer parameters consistently outperforms SA-T, which verifies the effectiveness of the dual-aspect representation.
199
+
200
+ ![](images/2102778a136af66f4a0dae7bc32cd3d938ae977b3f9616db51da4c7cf94b2d1f.jpg)
201
+ Figure 6: Visualization of the attention scores for the encoder when a trained model is used to solve instances with a larger size. (a) using PE method; (b) using CPE method (ours).
202
+
203
+ Cyclic positional encoding. Here we show that CPE significantly improves the generalization performance across different problem sizes. In Table 2(b), we record the results of our DACT with PE and CPE, and Wu et al. [11], when the model trained on TSP50 is directly used to solve instances from TSP20 and TSP100 with $\mathrm { T } { = } 5 \mathrm { k }$ . We see that even with PE, our DACT outperforms Wu et al. [11]. Further equipped with CPE, DACT outstrips DACT-PE and OR-Tools on TSP100. We continue to compare the two DACT variants by visualizing their attention scores. As depicted in Figure 6(a), although the absolute PE is designed for linear sequences, it did attempt to capture the circularity of
204
+
205
+ ![](images/dcaf347b7b825fb752b6ddcd50ad1a4968c6104e02beab829841e1b66d04fde2.jpg)
206
+ Figure 7: Training curves of PPO with and without CL on CVRP20 (random seeds 1-5).
207
+
208
+ VRP solutions (as highlighted in the green boxes) after training. However, the ability to perceive such properties significantly drops when generalizing over different problem size, which instead engenders random attention scores when generalizing to larger size (see right side of Figure 6(a)). In contrast, our DACT with CPE is able to capture the circularity as depicted in Figure 6(b), which verifies the effectiveness of CPE in representing cyclic sequences (i.e., VRP solutions).
209
+
210
+ Curriculum learning (CL) strategy. In Figure 7, we plot the training curves of PPO algorithm with and without our CL strategy, where the results are averaged over 5 independent runs with $90 \%$ confidence intervals. It shows that our CL strategy significantly improves the sample efficiency while reducing the variance of training, which aligns with our analysis in Section 4.4.
211
+
212
+ # 6 Conclusions and future work
213
+
214
+ In this paper, we present a novel DACT model for routing problems. It learns separate groups of embeddings for the node and positional features, and is equipped with cyclic positional encoding (CPE) to capture the circularity and symmetry of VRP solutions. A curriculum learning (CL) strategy is also exploited to improve the RL training efficiency. Extensive experiments on both synthetic and benchmark datasets justified the effectiveness of DACT in terms of both inference and generalization. A potential limitation is that DACT is more useful for learning improvement models at present. In the future, we will investigate how to extend DACT to construction models, and how to speed up the DACT through diverse rollouts or model compression techniques. It is also interesting to apply the proposed CPE to develop Transformer based model for other tasks where the cyclic property is also important, e.g., encoding circular DNA/RNA structures in computational biology [41, 42].
215
+
216
+ # Acknowledgments and Disclosure of Funding
217
+
218
+ This work was supported in part by the National Natural Science Foundation of China under Grant 61803104 and Grant 62102228, in part by the Young Scholar Future Plan of Shandong University under Grant 62420089964188, and in part by the A\*STAR CyberPhysical Production System (CPPS) - Towards Contextual and Intelligent Response Research Program, under the RIE2020 IAF-PP Grant A19C1a0018, and Model Factory $@$ SIMTech.
219
+
220
+ References
221
+ [1] Paolo Toth and Daniele Vigo. Vehicle routing: problems, methods, and applications. SIAM press, 2014.
222
+ [2] Michael Schneider, Andreas Stenger, and Dominik Goeke. The electric vehicle-routing problem with time windows and recharging stations. Transportation Science, 48(4):500–520, 2014.
223
+ [3] Jan Karel Lenstra and AHG Rinnooy Kan. Complexity of vehicle routing and scheduling problems. Networks, 11(2):221–227, 1981.
224
+ [4] Xinyun Chen and Yuandong Tian. Learning to perform local rewriting for combinatorial optimization. In Advances in Neural Information Processing Systems, volume 32, pages 6281–6292, 2019.
225
+ [5] Wouter Kool, Herke van Hoof, and Max Welling. Attention, learn to solve routing problems! In International Conference on Learning Representations, 2018.
226
+ [6] Chaitanya K Joshi, Thomas Laurent, and Xavier Bresson. An efficient graph convolutional network technique for the travelling salesman problem. arxiv preprint arxiv:1906.01227, ArXiV, 2019.
227
+ [7] Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Multi-decoder attention model with embedding glimpse for solving vehicle routing problems. In Proceedings of 35th AAAI Conference on Artificial Intelligence, pages 12042–12049, 2021.
228
+ [8] Yeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon, Youngjune Gwon, and Seungjai Min. POMO: Policy optimization with multiple optima for reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pages 21188–21198, 2020.
229
+ [9] Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Step-wise deep learning models for solving routing problems. IEEE Transactions on Industrial Informatics, 17(7):4861–4871, 2020.
230
+ [10] Cong Zhang, Wen Song, Zhiguang Cao, Jie Zhang, Puay Siew Tan, and Xu Chi. Learning to dispatch for job shop scheduling via deep reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pages 1621–1632, 2020.
231
+ [11] Yaoxin Wu, Wen Song, Zhiguang Cao, Jie Zhang, and Andrew Lim. Learning improvement heuristics for solving routing problems. IEEE Transactions on Neural Networks and Learning Systems, 2021.
232
+ [12] Hao Lu, Xingwen Zhang, and Shuang Yang. A learning-based iterative method for solving vehicle routing problems. In International Conference on Learning Representations, 2019.
233
+ [13] André Hottung, Bhanu Bhandari, and Kevin Tierney. Learning a latent search space for routing problems using variational autoencoders. In International Conference on Learning Representations, 2021.
234
+ [14] Jingwen Li, Yining Ma, Ruize Gao, Zhiguang Cao, Andrew Lim, Wen Song, and Jie Zhang. Deep reinforcement learning for solving the heterogeneous capacitated vehicle routing problem. IEEE Transactions on Cybernetics, 2021.
235
+ [15] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
236
+ [16] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, pages 6000–6010, 2017.
237
+ [17] Jingwen Li, Liang Xin, Zhiguang Cao, Andrew Lim, Wen Song, and Jie Zhang. Heterogeneous attentions for solving pickup and delivery problem via deep reinforcement learning. IEEE Transactions on Intelligent Transportation Systems, 2021.
238
+ [18] Guolin Ke, Di He, and Tie-Yan Liu. Rethinking the positional encoding in language pre-training. In International Conference on Learning Representations, 2020.
239
+ [19] Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 464–468, 2018.
240
+ [20] Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, volume 28, pages 2692–2700, 2015.
241
+ [21] Irwan Bello, Hieu Pham, Quoc V Le, Mohammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. In International Conference on Machine Learning (Workshop), 2017.
242
+ [22] Mohammadreza Nazari, Afshin Oroojlooy, Martin Takác, and Lawrence V Snyder. Reinforcement learning ˇ for solving the vehicle routing problem. In Advances in Neural Information Processing Systems, pages 9861–9871, 2018.
243
+ [23] Paulo R d O Costa, Jason Rhuggenaath, Yingqian Zhang, and Alp Akcay. Learning 2-opt heuristics for the traveling salesman problem via deep reinforcement learning. In Asian Conference on Machine Learning, pages 465–480, 2020.
244
+ [24] Hanjun Dai, Elias B Khalil, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. In Advances in Neural Information Processing Systems, pages 6351–6361, 2017.
245
+ [25] Zhang-Hua Fu, Kai-Bin Qiu, and Hongyuan Zha. Generalize a small pre-trained model to arbitrarily large TSP instances. In AAAI Conference on Artificial Intelligence, 2021.
246
+ [26] Wouter Kool, Herke van Hoof, Joaquim Gromicho, and Max Welling. Deep policy dynamic programming for vehicle routing problems. arXiv preprint arXiv:2102.11756, 2021.
247
+ [27] André Hottung and Kevin Tierney. Neural large neighborhood search for the capacitated vehicle routing problem. In European Conference on Artificial Intelligence, 2020.
248
+ [28] Keld Helsgaun. LKH-3 (version 3.0.6), 2019. URL http://webhotel4.ruc.dk/\~keld/research/ LKH-3/.
249
+ [29] Wikipedia. Gray code, 2021. URL: https://en.wikipedia.org/wiki/Gray_code. Last visited on 2020/05/19.
250
+ [30] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.
251
+ [31] Lei Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. Corr: abs/1607.06450, ArXiV, 2016.
252
+ [32] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arxiv preprint arxiv:1707.06347, ArXiV, 2017.
253
+ [33] Fabio Pardo, Arash Tavakoli, Vitaly Levdik, and Petar Kormushev. Time limits in reinforcement learning. In International Conference on Machine Learning, pages 4045–4054, 2018.
254
+ [34] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In International Conference on Machine Learning, pages 41–48, 2009.
255
+ [35] David L Applegate, Robert E Bixby, Vašek Chvátal, and William J Cook. Concorde TSP Solver, 2020. URL http://www.math.uwaterloo.ca/tsp/concorde/.
256
+ [36] Keld Helsgaun. LKH (version 2.0.9), 2018. URL http://webhotel4.ruc.dk/\~keld/research/ LKH/.
257
+ [37] Laurent Perron and Vincent Furnon. OR-Tools (version 7.2), 2019. URL https://developers.google. com/optimization/.
258
+ [38] Gerhard Reinelt. TSPLIB-A traveling salesman problem library. ORSA journal on computing, 3(4): 376–384, 1991.
259
+ [39] Eduardo Uchoa, Diego Pecin, Artur Pessoa, Marcus Poggi, Thibaut Vidal, and Anand Subramanian. New benchmark instances for the capacitated vehicle routing problem. European Journal of Operational Research, 257(3):845–858, 2017.
260
+ [40] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
261
+ [41] Chun-Ying Yu, Tung-Cheng Li, Yi-Ying Wu, Chan-Hsien Yeh, Wei Chiang, Ching-Yu Chuang, and Hung-Chih Kuo. The circular rna circbirc6 participates in the molecular circuitry controlling human pluripotency. Nature communications, 8(1):1–15, 2017.
262
+ [42] Chengyu Liu, Yu-Chen Liu, Hsien-Da Huang, and Wei Wang. Biogenesis mechanisms of circular rna can be categorized through feature extraction of a machine learning model. Bioinformatics, 35(23):4867–4870, 2019.
263
+ [43] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Firdaus Janoos, Larry Rudolph, and Aleksander Madry. Implementation matters in deep policy gradients: A case study on PPO and TRPO. In International Conference on Learning Representations, 2020.
parse/train/63pC59XOZLZ/63pC59XOZLZ_content_list.json ADDED
@@ -0,0 +1,1156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Learning to Iteratively Solve Routing Problems with Dual-Aspect Collaborative Transformer ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 184,
8
+ 122,
9
+ 816,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yining $\\mathbf { M } \\mathbf { a } ^ { 1 }$ , Jingwen $\\mathbf { L i } ^ { 1 }$ , Zhiguang $\\mathbf { C a o ^ { 2 , * } }$ , Wen Song3,∗, Le Zhang4, Zhenghua Chen5, Jing Tang6 ",
17
+ "bbox": [
18
+ 258,
19
+ 224,
20
+ 740,
21
+ 256
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1National University of Singapore 2Singapore Institute of Manufacturing Technology, A\\*STAR 3Institute of Marine Science and Technology, Shandong University 4University of Electronic Science and Technology of China 5Institute for Infocomm Research, A\\*STAR 6The Hong Kong University of Science and Technology {yiningma, lijingwen}@u.nus.edu, zhiguangcao@outlook.com, wensong@email.sdu.edu.cn, zhangleuestc@gmail.com, chen0832@e.ntu.edu.sg, jingtang@ust.hk ",
28
+ "bbox": [
29
+ 254,
30
+ 267,
31
+ 741,
32
+ 397
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 431,
43
+ 535,
44
+ 448
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Recently, Transformer has become a prevailing deep architecture for solving vehicle routing problems (VRPs). However, it is less effective in learning improvement models for VRP because its positional encoding (PE) method is not suitable in representing VRP solutions. This paper presents a novel Dual-Aspect Collaborative Transformer (DACT) to learn embeddings for the node and positional features separately, instead of fusing them together as done in existing ones, so as to avoid potential noises and incompatible correlations. Moreover, the positional features are embedded through a novel cyclic positional encoding (CPE) method to allow Transformer to effectively capture the circularity and symmetry of VRP solutions (i.e., cyclic sequences). We train DACT using Proximal Policy Optimization and design a curriculum learning strategy for better sample efficiency. We apply DACT to solve the traveling salesman problem (TSP) and capacitated vehicle routing problem (CVRP). Results show that our DACT outperforms existing Transformer based improvement models, and exhibits much better generalization performance across different problem sizes on synthetic and benchmark instances, respectively. ",
51
+ "bbox": [
52
+ 232,
53
+ 462,
54
+ 764,
55
+ 669
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 691,
66
+ 310,
67
+ 708
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Vehicle Routing problems (VRPs), such as the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP) which consider finding the optimal route for a single or fleet of vehicles to serve a set of customers, have ubiquitous real-world applications [1, 2]. Despite being intensively studied in the Operations Research (OR) community, VRPs still remain challenging due to their NP-hard nature [3]. Recent studies on learning neural heuristics are gathering attention as promising extensions to traditional hand-crafted ones (e.g., [4–14]), where reinforcement learning (RL) [15] is usually exploited to train a deep neural network as an efficient solver without hand-crafted rules. A salient motivation is that deep neural networks may learn better heuristics by identifying useful patterns in an end-to-end and data-driven fashion. ",
74
+ "bbox": [
75
+ 174,
76
+ 722,
77
+ 825,
78
+ 847
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Solutions to VRPs, i.e., routes, are sequences of nodes (customer and depot locations). Naturally, deep models for Natural Language Processing (NLP), which deal with sequence data as well, are ideal choices for encoding VRP solutions. Given its remarkable performance in NLP tasks, Transformer [16] is standing at the forefront in the learning based methods for VRPs (e.g., [5, 7, 8, 11–13, 17]). The original Transformer encodes a sentence, i.e., a sequence of words, into a unified set of embeddings by injecting word positional information into its word embeddings through positional encoding (PE). When it comes to VRPs, while is not required in construction models, positional information is critical for deep models that learn improvement heuristics since the input are solutions to be improved. ",
85
+ "bbox": [
86
+ 176,
87
+ 854,
88
+ 823,
89
+ 882
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/17403d04b62870e5603e11128aad37f05c9529785e72e7e24fbc237438272fea.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Transformer frameworks for VRPs. (a) $\\mathrm { W u }$ et al. [11] (the original one); (b) DACT (ours). "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 303,
102
+ 87,
103
+ 692,
104
+ 299
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 174,
113
+ 351,
114
+ 825,
115
+ 435
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Although some success has been achieved, learning improvement heuristics for VRPs based on the original Transformer encoder is yet lacking from our perspective. Firstly, directly applying addition operation on PE vectors and the embeddings in absolute PE method (i.e., Figure 1(a)) could limit the representation of the model [18], as the mixed correlations2 existing in the self-attention can bring unreasonable noises and random biases to the encoder (details in Appendix A). Secondly, existing PE methods tend to fuse the node and positional information into one unified representation. NLP tasks such as translation may benefit from this owing to the deterministic and instructive nature of the positional information. However, such design may not be optimal for routing tasks because the positional information therein can be non-deterministic and sometimes even random. This may cause disharmony or disturbance in the encoder and may thus deteriorate the performance. Finally, most VRPs seek the shortest loop of the nodes, making their solutions to be cyclic sequences. However, existing PE methods are only designated to encode linear sequences3, which may fail to identify such circular input. As will be shown in our experiments, this could severely damage the generalization performance, since the cyclic feature of VRP solutions is not correctly reflected by the encoder. ",
122
+ "bbox": [
123
+ 174,
124
+ 440,
125
+ 825,
126
+ 633
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this paper, we address the above issues and contribute to the line of using RL to learn neural improvement heuristics for VRPs. We introduce the Dual-Aspect Collaborative Transformer (DACT), where we revisit the solution representations and propose to learn separated groups of embeddings for the node and positional features of a VRP solution as shown in Figure 1(b). Our DACT follows the encoder-decoder structure. In the encoder, each set of embeddings encodes the solution mainly from its own aspect, and at the same time exploits a cross-aspect referential attention mechanism for better perceiving the consistence and differentiation with respect to the other aspect. The decoder then collects action distribution proposals from the two aspects and synthesizes them to output the final one. Meanwhile, we design a novel cyclic positional encoding (CPE) method to capture the circularity and symmetry of VRP solutions, which allows Transformer to encode cyclic inputs, and also boost the generalization performance for solving VRPs. As the last contribution, we design a simple yet effective curriculum learning strategy to improve the sample efficiency. This further leads to faster and more stable convergence of RL training. Extensive experiments show that our DACT can outperform existing Transformer based improvement models with fewer parameters, and also generalizes well across different sizes of synthetic and benchmark instances, respectively. ",
133
+ "bbox": [
134
+ 174,
135
+ 641,
136
+ 825,
137
+ 848
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 Related work ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 174,
147
+ 89,
148
+ 318,
149
+ 106
150
+ ],
151
+ "page_idx": 2
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "2.1 Positional encoding (PE) in Transformer. ",
156
+ "text_level": 1,
157
+ "bbox": [
158
+ 173,
159
+ 119,
160
+ 496,
161
+ 135
162
+ ],
163
+ "page_idx": 2
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "The original Transformer adopted the absolute PE method to describe the absolute position of elements in the sequence [16], especially for NLP. As formulated in Eq. (1), each generated positional embedding $p _ { i } \\in \\mathbb { R } ^ { d }$ is added together with the $i$ -th word embedding $x _ { i }$ in the first layer of the encoder, ",
168
+ "bbox": [
169
+ 173,
170
+ 145,
171
+ 825,
172
+ 188
173
+ ],
174
+ "page_idx": 2
175
+ },
176
+ {
177
+ "type": "equation",
178
+ "img_path": "images/06c8617b60f87154a9c18b93350fe384c2b92dcbc879ec3ead141f3979fd5a3f.jpg",
179
+ "text": "$$\n\\alpha _ { i , j } ^ { \\mathrm { A b s } } = \\frac { 1 } { \\sqrt { d } } ( ( x _ { i } + p _ { i } ) W ^ { Q } ) ( ( x _ { j } + p _ { j } ) W ^ { K } ) ^ { T } .\n$$",
180
+ "text_format": "latex",
181
+ "bbox": [
182
+ 346,
183
+ 195,
184
+ 651,
185
+ 229
186
+ ],
187
+ "page_idx": 2
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "The relative PE method was further proposed in Shaw et al. [19] to better capture the relative order information. On the basis of absolute PE, it introduces an inductive bias to the attention as follows, ",
192
+ "bbox": [
193
+ 176,
194
+ 229,
195
+ 821,
196
+ 257
197
+ ],
198
+ "page_idx": 2
199
+ },
200
+ {
201
+ "type": "equation",
202
+ "img_path": "images/eb1536b0cd4bebe430402cd1ff3c8d032df2e5351e5010caf10bb27d09a60901.jpg",
203
+ "text": "$$\n\\alpha _ { i , j } ^ { \\mathrm { R e l } } = \\frac { 1 } { \\sqrt { d } } ( ( x _ { i } + p _ { i } ) W ^ { Q } ) ( ( x _ { j } + p _ { j } ) W ^ { K } + a _ { j - i } ) ^ { T } ,\n$$",
204
+ "text_format": "latex",
205
+ "bbox": [
206
+ 323,
207
+ 260,
208
+ 674,
209
+ 292
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "where $a _ { j - i } \\in \\mathbb { R } ^ { d }$ is learnable parameters for encoding the relative position $j - i$ . To avoid the mixed and noisy correlations between word semantics and positional information in the above two PEs, the Transformer with United Positional Encoding (TUPE) [18] was proposed for NLP which utilizes separated projection metrics $W _ { x }$ and $W _ { p }$ for each information as follows, ",
216
+ "bbox": [
217
+ 173,
218
+ 297,
219
+ 825,
220
+ 354
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "equation",
226
+ "img_path": "images/cde20607c5d2e4f5c92239343ac4f181cb00350f92f6445069b5ef43e3a4815c.jpg",
227
+ "text": "$$\n\\alpha _ { i , j } ^ { \\mathrm { T U P E } } = \\frac { 1 } { \\sqrt { 2 d } } ( x _ { i } W _ { x } ^ { Q } ) ( x _ { j } W _ { x } ^ { K } ) ^ { T } + \\frac { 1 } { \\sqrt { 2 d } } ( p _ { i } W _ { p } ^ { Q } ) ( p _ { j } W _ { p } ^ { K } ) ^ { T } + b _ { j - i } .\n$$",
228
+ "text_format": "latex",
229
+ "bbox": [
230
+ 271,
231
+ 358,
232
+ 727,
233
+ 391
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "However, as mentioned previously, existing PE methods are less effective for VRPs since they simply fuse the node and positional information into one unified set of embeddings during or after the calculation of the attention correlation $\\alpha _ { i , j }$ . Meanwhile, they are also unable to properly encode and handle cyclic input sequences as in VRP solutions. ",
240
+ "bbox": [
241
+ 174,
242
+ 393,
243
+ 825,
244
+ 449
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "2.2 Deep models for VRP. ",
251
+ "text_level": 1,
252
+ "bbox": [
253
+ 174,
254
+ 464,
255
+ 364,
256
+ 479
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Various deep architectures such as Recurrent Neural Network (RNN), Graph Neural Network (GNN), and Transformer have been employed in solving VRPs. ",
263
+ "bbox": [
264
+ 174,
265
+ 489,
266
+ 823,
267
+ 518
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "RNN based models. As the pioneering work of neural VRP solvers, Pointer Network adopted RNN and supervised learning to solve TSP [20] (extended to RL in Bello et al. [21] and CVRP in Nazari et al. [22]). While the models in [20–23] learn construction heuristics, NeuRewriter [4] learns improvement heuristic for CVRP using LSTM to encode the positional information of a solution. In Hottung et al. [13], the conditional variational autoencoder was adopted to learn a continuous and latent search space for VRP, where high-quality solutions were taken as input and encoded by RNNs. However, recurrence structures in RNN are less efficient in both representation and computation [5]. ",
274
+ "bbox": [
275
+ 174,
276
+ 523,
277
+ 825,
278
+ 622
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "GNN based models. In Dai et al. [24], GNN was combined with Q-learning for solving TSP. Based on supervised learning, Joshi et al. [6] used GNN to learn heatmaps that prescribe the probability of each edge appearing in the optimal TSP tour. This idea was extended in Fu et al. [25] with additional components such as graph sampling and heatmap merging to enable generalization to larger TSP instances. These models often require post-processing to construct feasible solutions from heatmaps (e.g., beam search [6], Monte-Carlo tree search [25], and dynamic programming [26]). ",
285
+ "bbox": [
286
+ 174,
287
+ 627,
288
+ 825,
289
+ 712
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "Transformer based models. The Attention Model (AM) by Kool et al. [5] was recognized as the first success of Transformer based models for VRPs. Based on AM, Xin et al. [7] proposed a MultiDecoder AM that learns multiple diverse policies for better performance. In Kwon et al. [8], the RL algorithm of AM was improved which leaded to a new solver, i.e., POMO (Policy Optimization with Multiple Optima), and achieved the state-of-the-art performance. However, POMO is still lacking in generalization. Besides these construction models, Transformer was also explored to learn improvement heuristics. Hottung and Tierney [27] learned first neural large neighborhood search algorithm for VRPs. Lu et al. [12] proposed the L2I model that learns to select local search operators from a pool of traditional ones. Both methods used a Transformer-style encoder, but the positional information is captured in the node features (information of previous and next nodes) instead of using PE methods. Though L2I was shown to outperform LKH3 [28], it is limited to CVRP and the required time is considerably long. Wu et al. [11] proposed a Transformer model which learns to pick node pair in each step to perform a pairwise local operator (e.g., 2-opt). However, it suffers from the inaccurate representation of positional information given the original Transformer encoder. ",
296
+ "bbox": [
297
+ 173,
298
+ 717,
299
+ 825,
300
+ 911
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "image",
306
+ "img_path": "images/5ace11ce359bbb755998396b80534ff05688295f43970028840cdf0661b073b3.jpg",
307
+ "image_caption": [
308
+ "Figure 3: Architecture of our policy network, dual-aspect collaborative Transformer (DACT). "
309
+ ],
310
+ "image_footnote": [],
311
+ "bbox": [
312
+ 176,
313
+ 90,
314
+ 812,
315
+ 271
316
+ ],
317
+ "page_idx": 3
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "3 Problem formulation ",
322
+ "text_level": 1,
323
+ "bbox": [
324
+ 174,
325
+ 325,
326
+ 380,
327
+ 342
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "We define a VRP instance as a group of $N$ nodes to visit, where the node feature $x _ { i }$ of node $i$ contains 2-dim coordinates and other problem-specific features (e.g., customer demand). A solution $\\delta$ consists of a sequence of nodes visited in order where we denote $p _ { i }$ to be the position (indices) of node $i$ in the solution which is deemed as the positional feature of node $i$ . The objective is to minimize the total travel distance $D ( \\delta )$ under certain problem-specific constraints. ",
334
+ "bbox": [
335
+ 173,
336
+ 358,
337
+ 825,
338
+ 428
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "Starting with an initial yet complete solution, our neural RL policy tries to improve the solution iteratively. At each step, the policy automatically selects a pair of nodes and locally adjusts the solution using a preset pairwise operator such as 2-opt, insert, or swap. As illustrated in Figure 2, given a node pair $( i , j )$ , the 2-opt operator adjusts a solution by reversing the segment between node $i$ and node $j$ ; the insert operator adjusts a solution by placing node $i$ after node $j$ ; and the swap operator adjusts a solution by exchanging the position of node $i$ and node $j$ . Such operation is repeated until reaching the step limit $T$ and we model it in the form of Markov Decision Process (MDP) as follows. ",
345
+ "bbox": [
346
+ 174,
347
+ 434,
348
+ 503,
349
+ 571
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "image",
355
+ "img_path": "images/3abc3c66ae47d31052903aafee9790f52c0e269b59a1a7ed0217c149d678c265.jpg",
356
+ "image_caption": [
357
+ "Figure 2: Illustration examples of three pairwise operators for routing problems when node pair $( i = 2 , j = 1 )$ ) is specified for operating. From left to right: 2-opt, insert, and swap. "
358
+ ],
359
+ "image_footnote": [],
360
+ "bbox": [
361
+ 521,
362
+ 444,
363
+ 813,
364
+ 489
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "",
371
+ "bbox": [
372
+ 176,
373
+ 573,
374
+ 825,
375
+ 599
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "State. For an instance with $N$ nodes, a state describes current solution $\\delta _ { t }$ using its node and positional features of each node, i.e., $s _ { t } = \\Psi ( \\delta _ { t } ) = \\{ x _ { 1 } ^ { t } , . . . , x _ { N } ^ { t } , p _ { 1 } ^ { t } , . . . , p _ { N } ^ { t } \\}$ . ",
382
+ "bbox": [
383
+ 171,
384
+ 606,
385
+ 823,
386
+ 635
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "Action. The action $a _ { t } = ( i , j )$ specifies a node pair $( i , j )$ for the pairwise operator. ",
393
+ "bbox": [
394
+ 176,
395
+ 636,
396
+ 714,
397
+ 648
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Reward. The reward function is defined as, $r _ { t } = D ( \\delta _ { t } ^ { * } ) - m i n \\left[ D ( \\delta _ { t + 1 } ) , D ( \\delta _ { t } ^ { * } ) \\right]$ where $\\delta _ { t } ^ { * }$ is the best incumbent solution found until time $t$ . It refers to the immediate reduced cost at each step with respects to the best incumbent solution, which ensures the cumulative reward equal to the total reduced cost over the initial solution. Hence the reward $r _ { t } > 0$ if and only if a better solution is found. Policy. The policy $\\pi _ { \\theta }$ is parameterized by the proposed DACT model with parameters $\\theta$ . At each time step, the action $( i , j )$ is obtained by sampling the stochastic policy for both training and inference. ",
404
+ "bbox": [
405
+ 173,
406
+ 648,
407
+ 825,
408
+ 733
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Transition. The next state $s _ { t + 1 }$ is originated from $s _ { t }$ by performing the preset pairwise operator on the given node pair (action). Our state transient is deterministic, in the sense that it always accepts the next solution as the next state (infeasible solutions will be masked), regardless of its objective value. With such simple rule, the RL agent is expected to automatically learn how to combine multiple steps of simple local movements to achieve better solutions, even if some of them may worsen the current solution. Note that the step limit $T$ can be any user-specified value according to the allowed time budget. Hence, our MDP can have infinite horizon and we consider the reward discount factor $\\gamma < 1$ . ",
415
+ "bbox": [
416
+ 173,
417
+ 733,
418
+ 825,
419
+ 829
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "4 Dual-aspect collaborative Transformer model ",
426
+ "text_level": 1,
427
+ "bbox": [
428
+ 174,
429
+ 849,
430
+ 584,
431
+ 867
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "We now present the details of our Dual-Aspect Collaborative Transformer (DACT). The concrete architecture of DACT is presented in Figure 3, where we take the TSP with $N$ nodes as an illustration example. Our DACT leverages separate aspects of embeddings to encode a VRP solution. In the DAC encoder, the self-attention correlations are computed individually for each aspect, and a cross-aspect referential attention mechanism is proposed to enable one aspect to effectively exploit attention correlations from the other aspect as optional references. The DAC decoder then collects action distribution proposals from both aspects and synthesize them to the final one. ",
438
+ "bbox": [
439
+ 173,
440
+ 882,
441
+ 821,
442
+ 911
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "image",
448
+ "img_path": "images/89f6fef802cd35891d1ed76d002b348f40ea6b89b2545c5f6d954311286d8b4a.jpg",
449
+ "image_caption": [
450
+ "Figure 5: Comparison of our CPE method with absolute PE method on a TSP instance with 20 nodes. (a) the embedding vectors, (b) the correlations (dot products) between every two embeddings, and (c) the top two principal components after PCA (principal component analysis) projection. ",
451
+ "Figure 4: An example of cyclic Gray code where 4 digits are used to encode $N { = } 1 6$ nodes. The top left shows the base symmetry pattern $\\cdot _ { 1 0 0 1 }$ ’ in Gray code, and the top right plots its representation in our method. "
452
+ ],
453
+ "image_footnote": [],
454
+ "bbox": [
455
+ 178,
456
+ 87,
457
+ 818,
458
+ 193
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "",
465
+ "bbox": [
466
+ 173,
467
+ 275,
468
+ 825,
469
+ 344
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "4.1 Dual-aspect solution representation ",
476
+ "text_level": 1,
477
+ "bbox": [
478
+ 176,
479
+ 367,
480
+ 459,
481
+ 382
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "Specifically, we propose to learn two sets of embeddings, i.e., the node feature embeddings (NFEs) for node representation and the positional feature embeddings (PFEs) for positional representation. ",
488
+ "bbox": [
489
+ 173,
490
+ 395,
491
+ 825,
492
+ 422
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "NFEs. Following [5, 11], the NFE $h _ { i }$ of node $i$ is initialized as the linear projection of its node feature $x _ { i }$ with output dimension4 $d i m = 6 4$ . ",
499
+ "bbox": [
500
+ 173,
501
+ 429,
502
+ 501,
503
+ 472
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "PFEs. The PFE $g _ { i }$ of the positional feature $p _ { i }$ is initialized as a real-valued vector $( d i m = 6 4 )$ by applying our cyclic positional encoding (CPE), which is designed based on cyclic Gray codes [29]. ",
510
+ "bbox": [
511
+ 173,
512
+ 478,
513
+ 503,
514
+ 534
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "table",
520
+ "img_path": "images/ccfccd4ff2eed9413b669543d02262098d302494abdd216c4cef68c8aa0a0d67.jpg",
521
+ "table_caption": [],
522
+ "table_footnote": [],
523
+ "table_body": "<table><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>14</td><td rowspan=1 colspan=1>15</td><td rowspan=1 colspan=1>16</td></tr><tr><td rowspan=2 colspan=1>11</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td></tr></table>",
524
+ "bbox": [
525
+ 517,
526
+ 429,
527
+ 813,
528
+ 502
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "As illustrated in Figure 4, the cyclic Gray codes present a cyclic property (‘1110’ in the last column is adjacent to ‘1111’ in the first column) and an adjacency similarity property (any codes in adjacent columns only differ in one digit), both of which are desirable for cyclic sequences. To preserve these properties in designing our CPE, we follow two observed patterns: 1) each numerical digit contains a periodic cycle with reflectional symmetry, e.g., the $\\mathbf { \\dot { \\rho } } _ { 1 0 | 0 1 } ,$ in the lowest digit; and 2) the higher the numerical digit, the longer the period. Accordingly, we create similar patterns based on the sinusoidal functions in Eq. (4), where a periodic function with period $\\frac { 4 \\pi } { \\omega _ { d } }$ (induced by modulus) is used to generate one base symmetry pattern (the top right in Figure 4), ",
535
+ "bbox": [
536
+ 173,
537
+ 540,
538
+ 501,
539
+ 595
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "",
546
+ "bbox": [
547
+ 173,
548
+ 594,
549
+ 826,
550
+ 680
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "equation",
556
+ "img_path": "images/761131c312918e281f2f5384381e85ec2923a640ca9e38a2d9d86de612f763b2.jpg",
557
+ "text": "$$\n\\begin{array} { r } { \\overrightarrow { g _ { i } ^ { \\prime } } ^ { ( d ) } : = \\left\\{ \\begin{array} { l l } { s i n ( \\omega _ { d } \\cdot \\mathrm { \\Gamma } ( z ( i ) \\bmod \\frac { 4 \\pi } { \\omega _ { d } } ) - \\frac { 2 \\pi } { \\omega _ { d } } \\mathrm { \\Gamma } ) , \\mathrm { ~ i f ~ } d \\mathrm { ~ i s ~ e v e n } } \\\\ { c o s ( \\omega _ { d } \\cdot \\mathrm { \\Gamma } ( z ( i ) \\bmod \\frac { 4 \\pi } { \\omega _ { d } } ) - \\frac { 2 \\pi } { \\omega _ { d } } \\mathrm { \\Gamma } ) , \\mathrm { ~ i f ~ } d \\mathrm { ~ i s ~ o d d } } \\end{array} \\right. } \\end{array}\n$$",
558
+ "text_format": "latex",
559
+ "bbox": [
560
+ 313,
561
+ 690,
562
+ 679,
563
+ 742
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "$\\begin{array} { r } { z ( i ) = \\frac { i - 1 } { N } \\frac { 2 \\pi } { \\omega _ { d } } \\left\\lceil \\frac { N + 1 } { 2 \\pi / \\omega _ { d } } \\right\\rceil } \\end{array}$ is to make $N$ nodes linearly spaced in the generated pattern; the angular frequency $\\omega _ { d }$ is decreasing along the dimension to make the wavelength longer within the range $[ N ^ { \\frac { 1 } { [ d i m / 2 ] } } , N ]$ (see Appendix B for details). In Figure 5, we visualize the comparison between the absolute PE and our CPE for encoding a TSP instance of 20 nodes. Figure 5(a) demonstrates that our real-valued base symmetry pattern has a longer cyclic period as the digit grows. Figure 5(b) indicates that our method (blue) is able to correctly reflect the adjacency between the head and tail of the cyclic sequence whereas the PE method (red) fails to do so. Figure 5(c) verifies that our CPE vectors are well distributed in space with desired cyclic and adjacency similarity properties. ",
570
+ "bbox": [
571
+ 173,
572
+ 752,
573
+ 825,
574
+ 877
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "4.2 The encoder ",
581
+ "text_level": 1,
582
+ "bbox": [
583
+ 174,
584
+ 90,
585
+ 299,
586
+ 106
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "The encoder consists of $L = 3$ stacked DAC encoders. In each DAC encoder, we retain relatively independent encoding stream for NFEs and PFEs as in Eq. (5) and Eq. (6), respectively, each of which consists of a shared Dual-Aspect Collaborative Attention (DAC-Att) sub-layer and an independent feed-forward network (FFN) sub-layer. DAC-Att takes both sets of embeddings as input and then outputs their respective enhanced embeddings, i.e., NFEs $\\{ \\tilde { h } \\} _ { i = 1 } ^ { N }$ and PFEs $\\{ \\tilde { g } \\} _ { i = 1 } ^ { N }$ . Each sub-layer is followed by skip connection [30] and layer normalization [31] as same as the original Transformer. ",
593
+ "bbox": [
594
+ 173,
595
+ 116,
596
+ 826,
597
+ 204
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "equation",
603
+ "img_path": "images/b3c27f072c19590bb60be7226f1f0fd9cb7fd14ba92fa17514b83d481ad23218.jpg",
604
+ "text": "$$\n\\begin{array} { r } { h _ { i } ^ { ( l ) } = \\mathbf { L N } \\Big ( h _ { i } ^ { \\prime } + \\mathbf { F F N } _ { h } ^ { ( l ) } ( h _ { i } ^ { \\prime } ) \\Big ) , h _ { i } ^ { \\prime } = \\mathbf { L N } \\Big ( h _ { i } ^ { ( l - 1 ) } + \\tilde { h } _ { i } ^ { ( l ) } \\Big ) , } \\\\ { g _ { i } ^ { ( l ) } = \\mathbf { L N } \\Big ( g _ { i } ^ { \\prime } + \\mathbf { F F N } _ { g } ^ { ( l ) } ( g _ { i } ^ { \\prime } ) \\Big ) , g _ { i } ^ { \\prime } = \\mathbf { L N } \\Big ( g _ { i } ^ { ( l - 1 ) } + \\tilde { g } _ { i } ^ { ( l ) } \\Big ) . } \\end{array}\n$$",
605
+ "text_format": "latex",
606
+ "bbox": [
607
+ 312,
608
+ 213,
609
+ 683,
610
+ 281
611
+ ],
612
+ "page_idx": 5
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "DAC-Att. The DAC-Att sub-layer enhances each set of embedding from its own aspect, while leveraging attention correlations from the other aspect to achieve the synergy. Given the two sets of embeddings5, $\\{ h _ { i } \\} _ { i = 1 } ^ { N }$ and $\\{ g _ { i } \\} _ { i = 1 } ^ { N }$ , we first compute the self-attention correlation from both aspects, ",
617
+ "bbox": [
618
+ 173,
619
+ 290,
620
+ 825,
621
+ 335
622
+ ],
623
+ "page_idx": 5
624
+ },
625
+ {
626
+ "type": "equation",
627
+ "img_path": "images/6e1058866e25e4d647cc2fd0b0d63302df8fedbe20722e8773d594addc8589b4.jpg",
628
+ "text": "$$\n\\alpha _ { i , j } ^ { h } = \\frac { 1 } { \\sqrt { d _ { k } } } \\left( h _ { i } W _ { h } ^ { Q } \\right) \\left( h _ { j } W _ { h } ^ { K } \\right) ^ { T } , \\quad \\alpha _ { i , j } ^ { g } = \\frac { 1 } { \\sqrt { d _ { k } } } \\left( g _ { i } W _ { g } ^ { Q } \\right) \\left( g _ { j } W _ { g } ^ { K } \\right) ^ { T } ,\n$$",
629
+ "text_format": "latex",
630
+ "bbox": [
631
+ 261,
632
+ 343,
633
+ 736,
634
+ 377
635
+ ],
636
+ "page_idx": 5
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "where independent matrices $W _ { h } ^ { Q } , W _ { h } ^ { K } , W _ { g } ^ { Q }$ and $W _ { g } ^ { K } \\in \\mathbb { R } ^ { d i m \\times d _ { k } }$ are used to calculate queries and keys. The obtained correlations are further normalized to $\\tilde { \\alpha } _ { i , j } ^ { h }$ and $\\tilde { \\alpha } _ { i , j } ^ { g }$ via Softmax. Note that the correlations are computed from their own aspect, which eliminates possible noises and conduces to correctly describe the incompatible node pair relationships in different aspects of VRP solutions. ",
641
+ "bbox": [
642
+ 173,
643
+ 382,
644
+ 826,
645
+ 444
646
+ ],
647
+ "page_idx": 5
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "We then exploit a cross-aspect referential attention mechanism, which allows computed correlations to be shared between each other, as additional references for both contradistinction and collaboration, ",
652
+ "bbox": [
653
+ 171,
654
+ 449,
655
+ 826,
656
+ 478
657
+ ],
658
+ "page_idx": 5
659
+ },
660
+ {
661
+ "type": "equation",
662
+ "img_path": "images/a6345560f8ea0e3a7ce2dd7e14bffaf039c3fa79d48bbc491342cf315f04e49d.jpg",
663
+ "text": "$$\n\\mathrm { o u t } _ { i } ^ { h } = \\mathrm { C o n c a t } \\left[ \\sum _ { j = 1 } ^ { N } \\tilde { \\alpha } _ { i , j } ^ { h } \\left( h _ { j } W _ { h } ^ { V } \\right) , \\sum _ { j = 1 } ^ { N } \\tilde { \\alpha } _ { i , j } ^ { g } \\left( h _ { j } W _ { h } ^ { V r e f } \\right) \\right] ,\n$$",
664
+ "text_format": "latex",
665
+ "bbox": [
666
+ 313,
667
+ 488,
668
+ 681,
669
+ 540
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "equation",
675
+ "img_path": "images/2a48535120551d7df98fe87035c01b8a5d7d6f7b1f42271786b1c469f93da9c7.jpg",
676
+ "text": "$$\n\\mathrm { o u t } _ { i } ^ { g } = \\mathrm { C o n c a t } \\left[ \\sum _ { j = 1 } ^ { N } { \\tilde { \\alpha } } _ { i , j } ^ { g } \\left( g _ { j } W _ { g } ^ { V } \\right) , \\sum _ { j = 1 } ^ { N } { \\tilde { \\alpha } } _ { i , j } ^ { h } \\left( g _ { j } W _ { g } ^ { V r e f } \\right) \\right] ,\n$$",
677
+ "text_format": "latex",
678
+ "bbox": [
679
+ 315,
680
+ 546,
681
+ 679,
682
+ 597
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "wheand $W _ { h } ^ { V } , W _ { g } ^ { V } \\in \\mathbb R ^ { d i m \\times d _ { v } }$ are trainable parameter matrices for formulating values in each aspect; are parameter matrices for each aspect to generate referential values. $W _ { h } ^ { V r e f } , W _ { g } ^ { V r e f } \\in \\mathbb R ^ { d i m \\times d _ { v } }$ We finally use the multi-head attention to get NFEs $\\tilde { h } _ { i }$ and PFEs $\\tilde { g } _ { i }$ as follows, ",
689
+ "bbox": [
690
+ 176,
691
+ 602,
692
+ 826,
693
+ 655
694
+ ],
695
+ "page_idx": 5
696
+ },
697
+ {
698
+ "type": "equation",
699
+ "img_path": "images/b68e363878666ea949f94c4dd3c67f66b6ae414ba43bbab76187fd699f625cc7.jpg",
700
+ "text": "$$\n\\begin{array} { r } { \\begin{array} { c } { \\tilde { h } _ { i } , \\tilde { g } _ { i } = \\mathbf { D A C - A t t } \\left( W ^ { Q } , ~ W ^ { K } , W ^ { V } , W ^ { V _ { r e f } } , W ^ { O } \\right) , } \\\\ { \\tilde { h } _ { i } = \\mathbf { C o n c a t } \\left[ \\mathrm { h e a d } _ { i , 1 } ^ { h } , . . . , \\mathrm { h e a d } _ { i , m } ^ { h } \\right] W _ { h } ^ { O } , ~ \\tilde { g } _ { i } = \\mathbf { C o n c a t } \\left[ \\mathrm { h e a d } _ { i , 1 } ^ { g } , . . . , \\mathrm { h e a d } _ { i , m } ^ { g } \\right] W _ { g } ^ { O } , } \\end{array} } \\end{array}\n$$",
701
+ "text_format": "latex",
702
+ "bbox": [
703
+ 230,
704
+ 660,
705
+ 766,
706
+ 712
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "where h $\\mathbf { e a d } _ { i , k } ^ { h } = o u t _ { i , k } ^ { h }$ , $\\mathbf { h e a d } _ { i , k } ^ { g } = o u t _ { i , k } ^ { g }$ , and $W _ { h } ^ { O } , W _ { g } ^ { O } \\ \\in \\ \\mathbb { R } ^ { 2 m d _ { v } \\times d i m }$ are trainable parameter matrices. In our model, we adopt $m = 4$ and $d _ { k } = d _ { v } = 1 6$ . ",
713
+ "bbox": [
714
+ 176,
715
+ 717,
716
+ 823,
717
+ 751
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "FFN. Our FFN sub-layer has only one hidden layer with 64 hidden unites and adopts the ReLU activation function. The parameters of $\\mathbf { F F N } _ { h }$ and $\\mathbf { F F N } _ { g }$ are different for each group of embeddings. ",
724
+ "bbox": [
725
+ 173,
726
+ 756,
727
+ 823,
728
+ 786
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "4.3 The decoder ",
735
+ "text_level": 1,
736
+ "bbox": [
737
+ 174,
738
+ 803,
739
+ 299,
740
+ 818
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "In the DAC decoder, the two sets of embeddings $\\{ h _ { i } ^ { ( L ) } \\} _ { i = 1 } ^ { N }$ and $\\{ g _ { i } ^ { ( L ) } \\} _ { i = 1 } ^ { N }$ are first passed through a Max-pooling sub-layer and a multi-head compatibility (MHC) sub-layer to independently generate diversified node-pair selection proposals from their own aspect, which are then aggregated through a feed-forward aggregation (FFA) sub-layer for output. ",
747
+ "bbox": [
748
+ 173,
749
+ 824,
750
+ 825,
751
+ 885
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "Max-pooling. For each set of embeddings, we adopt the max-pooling sub-layer in Wu et al. [11] to aggregate the global representation of all $N$ embeddings into each respective one6. ",
758
+ "bbox": [
759
+ 171,
760
+ 90,
761
+ 823,
762
+ 119
763
+ ],
764
+ "page_idx": 6
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "MHC. The compatibility sub-layer computes the attention correlations for each embedding pair, where the obtained correlations with size $N \\times N$ will be deemed as a proposal distribution for node pair selection. Our correlations are computed based on multiple heads for diversity. And we calculate separated attention score matrices $\\boldsymbol { Y } _ { k } ^ { h } , \\boldsymbol { \\dot { Y } } _ { k } ^ { g } \\in \\mathbb { R } ^ { N \\times N }$ (of head $k$ ) from the two aspects independently. Accordingly, the action distribution proposals would be different due to their aspect-specific focus and cognitions of the current solution, which will provide the subsequent FFA layer with a rich pool of proposals and allow our model to be more flexible and robust. ",
769
+ "bbox": [
770
+ 173,
771
+ 126,
772
+ 825,
773
+ 223
774
+ ],
775
+ "page_idx": 6
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "FFA. Once all proposals from two aspects are collected, a FFN with four layers (dimensions are $2 m$ , 32, 32 and 1, respectively) and ReLU activation is used to aggregate them, ",
780
+ "bbox": [
781
+ 171,
782
+ 228,
783
+ 825,
784
+ 257
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "equation",
790
+ "img_path": "images/a1d3544bbc2ae4bb92727490faabc0cdc3a752492a632c084015c7fdfdfeba67.jpg",
791
+ "text": "$$\n\\tilde { Y } _ { i , j } = \\mathbf { F } \\mathbf { F } \\mathbf { A } \\left( Y _ { i , j , 1 } ^ { g } , . . . , Y _ { i , j , m } ^ { g } , Y _ { i , j , 1 } ^ { h } , . . . Y _ { i , j , m } ^ { h } \\right) ,\n$$",
792
+ "text_format": "latex",
793
+ "bbox": [
794
+ 343,
795
+ 270,
796
+ 651,
797
+ 290
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "where $m = 4$ is the number of heads; and the output $\\tilde { Y } _ { i , j }$ is a scalar indicating the likelihood of selecting node pair $( i , j )$ as an action. Afterwards, we apply $\\hat { Y } _ { i j } = C \\cdot \\mathrm { T a n h } ( \\tilde { Y } _ { i , j } )$ with $C = 6$ to control the entropy, and mask 7 the infeasible node pairs $( i ^ { \\prime } , j ^ { \\prime } )$ as $\\hat { Y } _ { i ^ { \\prime } j ^ { \\prime } } = - \\infty$ . Lastly, the likelihoods are normalized using Softmax function to obtain the final action distribution $P _ { i , j }$ . ",
804
+ "bbox": [
805
+ 174,
806
+ 303,
807
+ 825,
808
+ 367
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "4.4 Reinforcement learning algorithm ",
815
+ "text_level": 1,
816
+ "bbox": [
817
+ 176,
818
+ 388,
819
+ 449,
820
+ 404
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "We adopt the proximal policy optimization [32] with $n$ -step return estimation for training (details are given in Appendix C), and design a curriculum learning (CL) strategy for better sample efficiency. ",
827
+ "bbox": [
828
+ 173,
829
+ 416,
830
+ 823,
831
+ 445
832
+ ],
833
+ "page_idx": 6
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "Curriculum learning strategy. The strategy in Wu et al. [11] sets a maximum of $T _ { t r a i n }$ steps for training and estimates future returns by bootstrapping [33]. However, due to the concern of training cost, $T _ { t r a i n }$ is usually much smaller than actual $T$ for inference (e.g., 200 v.s. 10k), which may leave the agent a poor chance of observing high-quality solutions (states) during training. Consequently, it may cause high variance for bootstrapping because the value function is mostly fitted on low-quality solutions and may render it less knowledgeable in estimating long-term future returns accurately. In this paper, we tackle this issue by a simple yet efficient strategy which gradually prescribes higher-quality solutions as the initial states for training. In doing so, 1) it increases the probability for the agent to observe better solutions and thus reduce the variance of the value function; 2) it increases the difficulty of the learning task (higher-quality solutions are harder to improve) in a gradual manner and achieves better sample efficiency [34]. In practice, those higher-quality solutions can be easily achieved by improving the randomly generated ones using the current policy for a few $T _ { i n i t }$ steps, where $T _ { i n i t }$ could be slightly increased as the epoch grows. ",
838
+ "bbox": [
839
+ 173,
840
+ 450,
841
+ 825,
842
+ 631
843
+ ],
844
+ "page_idx": 6
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "5 Experiments ",
849
+ "text_level": 1,
850
+ "bbox": [
851
+ 174,
852
+ 656,
853
+ 312,
854
+ 674
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "We evaluate our DACT model on two representative routing problems, i.e., TSP and CVRP [5, 8, 11]. For each problem, we abide by existing conventions to randomly generate instances on the fly for three sizes, i.e., $N = 2 0$ , 50 and 100. Initial experiments with three operators including 2-opt, swap and insert show that 2-opt performs best for both TSP and CVRP (with insert better than swap), hence we report results of our method based on 2-opt. Following [4, 11, 27] we use randomly generated initial solutions for training and the solutions generated by the greedy algorithm for inference. Since each problem has its own constraints and node features, we adjust the input, feasibility masks, and problem-dependent hyperparameters for each problem, the details of which are provided in Appendix D and E. The DACT is trained and tested on a server equipped with TITAN RTX GPU cards and Intel i9-10940X CPU at $3 . 3 0 \\mathrm { G H z }$ . Our code in PyTorch are available here8. ",
861
+ "bbox": [
862
+ 173,
863
+ 690,
864
+ 826,
865
+ 830
866
+ ],
867
+ "page_idx": 6
868
+ },
869
+ {
870
+ "type": "table",
871
+ "img_path": "images/a5a1b6f0e80b2409834bf4f4c112e90e12459f5074bcf9746c847b6e5821cb01.jpg",
872
+ "table_caption": [
873
+ "Table 1: Comparison with various baselines on TSP and CVRP. "
874
+ ],
875
+ "table_footnote": [
876
+ "# the obj. values, gaps or time are obtained based on 2,000 instances in their original papers, and not directly comparable to ours. ‡ the obj. values obtained by Concorde or LKH may be slightly different from ours since the 10,000 instances are randomly generated. E.g., for TSP50, the optimal values according to our running of Concorde is 5.70, while 5.69 in POMO and Wu et al.. We thus focus more on gaps. "
877
+ ],
878
+ "table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\">Method</td><td colspan=\"3\">N=20</td><td colspan=\"3\">N=50</td><td colspan=\"3\">N=100</td></tr><tr><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td><td>Obj.</td><td>Gap</td><td>Time</td></tr><tr><td rowspan=\"10\">LKH P</td><td>Concorde</td><td>3.83</td><td>=</td><td>(3m)</td><td>5.70</td><td></td><td>(10m)</td><td>7.76</td><td></td><td>(1h)</td></tr><tr><td></td><td>3.83</td><td>0.00%</td><td>(38s)</td><td>5.70</td><td>0.00%</td><td>(5m)</td><td>7.76</td><td>0.00%</td><td>(20m)</td></tr><tr><td>OR-Tools</td><td>3.86</td><td>0.94%</td><td>(42s)</td><td>5.85</td><td>2.87%</td><td>(5m)</td><td>8.06</td><td>3.86%</td><td>(23m)</td></tr><tr><td>Neural-2-Opt [23]</td><td>3.84</td><td>0.00%</td><td>(15m)</td><td>5.70</td><td>0.12%</td><td>(29m)</td><td>7.83</td><td>0.87%</td><td>(41m)</td></tr><tr><td>Wu et al. [11] (T=5k)</td><td>3.83</td><td>0.00%</td><td>(1h)</td><td>5.70</td><td>0.20%</td><td>(1.5h)</td><td>7.87</td><td>1.42%</td><td>(2h)</td></tr><tr><td>DACT (T=1k)</td><td>3.83</td><td>0.04%</td><td>{7s}(24s)</td><td>5.70</td><td>0.14%</td><td>{16s}(1m)</td><td>7.89</td><td>1.62%</td><td>{48s}(4m)</td></tr><tr><td>DACT (T=5k)</td><td>3.83</td><td>0.00%</td><td>{32s}(2m)</td><td>5.70</td><td>0.02%</td><td>{2m}(6m)</td><td>7.81</td><td>0.61%</td><td>{4m}(18m)</td></tr><tr><td>DACT (T=10k)</td><td>3.83</td><td>0.00%</td><td>{1m}(5m)</td><td>5.70</td><td>0.01%</td><td>{3m}(13m)</td><td>7.79</td><td>0.37%</td><td>{8m}(40m)</td></tr><tr><td>DACT×4 augment</td><td>3.83</td><td>0.00%</td><td>{3m}(10m)</td><td>5.70</td><td>0.00%</td><td>{10m}(1h)</td><td>7.77</td><td>0.09%</td><td>{29m}(2.5h)</td></tr><tr><td>GCN-BS [6]</td><td>3.84</td><td>0.01%</td><td>(12m)</td><td>5.70</td><td>0.01%</td><td>(18m)</td><td>7.87</td><td>1.39%</td><td>(40m)</td></tr><tr><td>AM-sampling [5]</td><td>3.84</td><td>0.08%</td><td>(5m)</td><td>5.73</td><td>0.52%</td><td>(24m)</td><td>7.94</td><td>2.26%</td><td>(1h)</td></tr><tr><td>MDAM-BS[7]</td><td>3.84t</td><td>0.00%</td><td>(3m)</td><td>5.70</td><td>0.03%</td><td>(14m)</td><td>7.79</td><td>0.38%</td><td>(44m)</td></tr><tr><td>POMO [8]</td><td>3.83</td><td>0.04%</td><td>(1s)</td><td>5.70</td><td>0.21%</td><td>(2s)</td><td>7.80</td><td>0.46%</td><td>(11s)</td></tr><tr><td>POMO×8 augment [8]</td><td>3.83</td><td>0.00%</td><td>(3s)</td><td>5.69t</td><td>0.03%</td><td>(16s)</td><td>7.78</td><td>0.15%</td><td>(1m)</td></tr><tr><td>DPDP(100k) [26]</td><td>-</td><td></td><td></td><td>-</td><td></td><td>=</td><td>7.77+</td><td>0.00%</td><td>(3h)</td></tr><tr><td rowspan=\"9\">LKH OR-Tools NeuRewriter [4] NLNS [27]</td><td rowspan=\"9\">CVAE-Opt-DE [13]</td><td>1</td><td>0.00%#</td><td>11m#</td><td>-</td><td>0.02%#</td><td>22m#</td><td>-</td><td>0.34%#</td><td>55m#</td></tr><tr><td></td><td>0.00%</td><td></td><td></td><td></td><td>4h</td><td>15.68</td><td></td><td></td></tr><tr><td>6.14 6.46</td><td>5.68%</td><td>1h 2m</td><td>10.38 11.27</td><td>0.00% 8.61%</td><td>13m</td><td>17.12</td><td>0.00% 9.54%</td><td>8h 46m</td></tr><tr><td>6.15#</td><td></td><td>6m#</td><td>10.51#</td><td></td><td>11m#</td><td>16.10#</td><td></td><td></td></tr><tr><td>6.19#</td><td>=</td><td>6m#</td><td>10.54#</td><td></td><td>11m#</td><td>15.99#</td><td>=</td><td>17m# 16m#</td></tr><tr><td>Wu et al. [11] (T=5k) 6.12</td><td>0.39%</td><td>(2h)</td><td>10.45</td><td>0.70%</td><td>(4h)</td><td>16.03t</td><td>= 2.47%</td><td></td></tr><tr><td>DACT (T=1k)</td><td>0.28%</td><td>{16s}(33s)</td><td>10.61</td><td>2.13%</td><td>{43s}(2m)</td><td>16.17</td><td>3.18%</td><td>(5h) {2m}(5m)</td></tr><tr><td>DACT (T=5k)</td><td>6.15 6.13 -0.00%</td><td>{1m}(3m)</td><td>10.48</td><td>1.01%</td><td>{3m}(8m)</td><td>15.92</td><td>1.55%</td><td>{8m}(23m)</td></tr><tr><td>DACT (T=10k)</td><td>-0.04%</td><td>{2m}(6m)</td><td>10.46</td><td>0.79%</td><td>{6m}(16m)</td><td>15.85</td><td>1.12%</td><td>{16m}(45m)</td></tr><tr><td rowspan=\"2\">DACT×6 augment</td><td>6.13 6.13</td><td>-0.08%</td><td>{11m}(35m)</td><td>10.39</td><td>0.14%</td><td>{32m}(1.5h)</td><td>15.71</td><td>0.19%</td><td>{1.5h}(4.5h)</td></tr><tr><td>AM-sampling [5]</td><td>1.87%</td><td>(6m)</td><td>10.62</td><td>2.40%</td><td>(28m)</td><td></td><td></td><td></td></tr><tr><td rowspan=\"2\">MDAM-BS[7]</td><td>6.25 6.14</td><td>0.18%</td><td>(5m)</td><td>10.48</td><td>0.98%</td><td>(15m)</td><td>16.23 15.99#</td><td>3.72% 2.23%</td><td>(2h)</td></tr><tr><td></td><td>0.82%</td><td>(1s)</td><td>10.49</td><td>1.14%</td><td>(4s)</td><td>15.83</td><td>0.98%</td><td>(1h) (19s)</td></tr><tr><td>POMO [8] POMO×8 augment [8]</td><td>6.17 6.14</td><td>0.21%</td><td>(5s)</td><td>10.42</td><td>0.45%</td><td>(26s)</td><td>15.73</td><td>0.32%</td><td>(2m)</td></tr><tr><td>DPDP(100k)[26]</td><td></td><td></td><td></td><td></td><td></td><td></td><td>15.69</td><td>0.31%</td><td></td></tr><tr><td>CVAE-Opt-DE [13]</td><td>= 6.14#</td><td></td><td>= 21m#</td><td>= 10.40#</td><td></td><td>41m#</td><td>15.75#</td><td></td><td>(6h) 1.5h#</td></tr></table>",
879
+ "bbox": [
880
+ 173,
881
+ 126,
882
+ 823,
883
+ 497
884
+ ],
885
+ "page_idx": 7
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "5.1 Comparison studies ",
890
+ "text_level": 1,
891
+ "bbox": [
892
+ 174,
893
+ 558,
894
+ 349,
895
+ 571
896
+ ],
897
+ "page_idx": 7
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "In Table 1, we compare our DACT with, (1) learning based improvement methods, including Wu et al. [11], Neural-2-Opt [23] (TSP only), NeuRewriter [4] (CVRP only), NLNS [27] (CVRP only), (2) learning based construction methods, including AM-sampling [5], GCN-BS [6] (TSP only), MDAM-BS [7], POMO [8], (3) conventional optimization algorithms equipped with learning based component(s), including DPDP [26], CVAE-Opt-DE [13], and (4) strong conventional solvers including Concorde [35], LKH [28, 36], and OR-Tools [37]. Though L2I [12] can outstrip LKH on CVRP, we do not inlude it as a baseline since it requires a prohibitively longer inference time than others9. All results are averaged over 10,000 randomly generated instances unless specified otherwise (e.g., the ones marked with # only infer 2,000 instances), and we report the metrics of objective values, (optimality) gaps and run time. Regarding baselines, we follow the results reported in their original papers, which may not include all the three metrics. For TSP, Concorde is adopted to get the optimal solutions, based on which the optimality gaps of other methods are calculated. CVRP is harder to be solved optimally, and the gaps are calculated based on solutions of LKH. Note that even for the baselines which infer 10,000 random instances, their objective values might be slightly different from ours (e.g., the ones marked with $\\ddagger .$ ), therefore we focus more on gaps for fair comparison. The run time is also hard to compare due to various factors (e.g., GPU/CPU models, batch sizes, Python v.s. $\\mathrm { C } { + + }$ ). For DACT, we report the time for inferring all 10,000 instances with multiple GPU cards in $^ { 6 6 } ( ) \"$ , and a small batch (512 instances) with one single GPU card in “{}\". ",
902
+ "bbox": [
903
+ 174,
904
+ 584,
905
+ 825,
906
+ 833
907
+ ],
908
+ "page_idx": 7
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "Pertaining to TSP, our DACT with inference step limit of 5,000 $\\mathrm { ( T = 5 k }$ ) outperforms the traditional solver OR-Tools and all improvement models in terms of optimality gap, including Wu et al. [11] which directly adopted the original Transformer encoder. It also outstrips construction methods ",
913
+ "bbox": [
914
+ 178,
915
+ 839,
916
+ 821,
917
+ 881
918
+ ],
919
+ "page_idx": 7
920
+ },
921
+ {
922
+ "type": "table",
923
+ "img_path": "images/41ddc55113bc20c00330d1d54f1fb2f1085c8a072a1b553c83fdd329e09b3ee4.jpg",
924
+ "table_caption": [
925
+ "Table 2: Generalization performance. (a) DACT v.s. baselines on benchmark datasets (up to 200 customers, see Appendix E.4 for detailed results and discussion); (b) PE v.s. CPE on different sizes. "
926
+ ],
927
+ "table_footnote": [
928
+ "(a) "
929
+ ],
930
+ "table_body": "<table><tr><td>Method</td><td>TSPLIB</td><td>CVRPLIB</td></tr><tr><td>OR-Tools [37]</td><td>3.34%</td><td>8.06%</td></tr><tr><td>AM-sampling [5]</td><td>22.83%</td><td>26.66%</td></tr><tr><td>POMO [8]</td><td>10.06%</td><td>6.10%</td></tr><tr><td>Wu et al. [11]</td><td>4.17%</td><td>5.20%</td></tr><tr><td>DACT</td><td>2.07%</td><td>3.41%</td></tr></table>",
931
+ "bbox": [
932
+ 222,
933
+ 137,
934
+ 447,
935
+ 222
936
+ ],
937
+ "page_idx": 8
938
+ },
939
+ {
940
+ "type": "table",
941
+ "img_path": "images/081993af0c54bd66251b078601ab5ac12b18fda9eb3f644704622f30a657c213.jpg",
942
+ "table_caption": [],
943
+ "table_footnote": [],
944
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">N=20</td><td colspan=\"2\">N=100</td></tr><tr><td>Obj.</td><td>Gap</td><td>Obj.</td><td>Gap</td></tr><tr><td>DACT-PE (T=5k)</td><td>3.84</td><td>0.21%</td><td>8.38</td><td>7.93%</td></tr><tr><td>DACT-CPE (T=5k)</td><td>3.83</td><td>0.10%</td><td>7.99</td><td>2.98%</td></tr><tr><td>Wu et al.[11] (T=5k)</td><td>3.91</td><td>2.14%</td><td>9.03</td><td>16.37%</td></tr><tr><td>OR-Tools [37]</td><td>3.83</td><td>0.00%</td><td>8.06</td><td>3.87%</td></tr></table>",
945
+ "bbox": [
946
+ 488,
947
+ 138,
948
+ 779,
949
+ 220
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "(b) ",
956
+ "bbox": [
957
+ 624,
958
+ 229,
959
+ 643,
960
+ 242
961
+ ],
962
+ "page_idx": 8
963
+ },
964
+ {
965
+ "type": "table",
966
+ "img_path": "images/3e514a6a6f3e64798484b6231ff48235bab57d2952f3272297517edb6831f287.jpg",
967
+ "table_caption": [
968
+ "Table 3: Dual v.s. single aspect representation "
969
+ ],
970
+ "table_footnote": [],
971
+ "table_body": "<table><tr><td>Steps</td><td>Method</td><td>#Params</td><td>N=50</td><td>N=100</td></tr><tr><td rowspan=\"2\">T=1k</td><td>SA-T</td><td>0.37M</td><td>0.35% (1m)</td><td>3.49% (3m)</td></tr><tr><td>DACT</td><td>0.29M</td><td>0.14% (1m)</td><td>1.62% (4m)</td></tr><tr><td rowspan=\"2\">T=5k</td><td>SA-T</td><td>0.37M</td><td>0.05% (5m)</td><td>1.55% (16m)</td></tr><tr><td>DACT</td><td>0.29M</td><td>0.02% (6m)</td><td>0.61% (18m)</td></tr></table>",
972
+ "bbox": [
973
+ 336,
974
+ 295,
975
+ 656,
976
+ 369
977
+ ],
978
+ "page_idx": 8
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "including AM-sampling and GCN-BS on TSP100. With larger step limit $\\mathrm { T } { = } 1 0 \\mathrm { k }$ , our DACT further boosts the solution qualities and outperforms other construction methods including MDAM-BS (beam search), and POMO (the current state-of-the-art). To further reduce the gaps, we also leverage the data augmentation technique in POMO (which considers flipping node coordinates without changing the optimal solution) to solve same instances multiple times in different ways. Although the inference time increases (we run data augmentation in serial on the same GPUs), our DACT with 4 augments not only outstrips POMO with 8 augments but also achieves the lowest objective values and gaps among all purely learning based models. In particular, our method almost optimally solved TSP20 and TSP50 with gap lower than $0 . 0 0 5 \\%$ , and $0 . 0 9 \\%$ on TSP100, which is superior to most of the recent neural solvers. Pertaining to CVRP, our DACT with $\\mathrm { T } { = } 5 \\mathrm { k }$ produces lower gaps than that of improvement models including NeuRewriter and NLNS. It also performs much better than Wu et al. [11] except on CVRP50. With $\\mathrm { T } { = } 1 0 \\mathrm { k }$ and 6 augments10, our DACT exhibits even better performance than the highly specialized heuristic solver LKH on CVRP20 and delivers the smallest gap of $0 . 1 9 \\%$ on CVRP100 against other neural solvers including POMO with 8 augments. Besides, our DACT is also competitive to DPDP which leverages learnt heatmap and dynamic programming to search solutions. Though DPDP (100k) can solve TSP100 instances almost optimally, our DACT is more efficient than DPDP on CVRP100. Compared with CVAE-Opt-DE, despite that it is averaged over fewer instances and integrated with differential evolution, our objective values are still lower. ",
983
+ "bbox": [
984
+ 174,
985
+ 392,
986
+ 825,
987
+ 642
988
+ ],
989
+ "page_idx": 8
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "In terms of the inference time, our DACT is highly competitive against all neural solvers except POMO which learns a construction model by sampling diverse trajectories. However, when it comes to the generalization performance on benchmark datasets, i.e., TSPLIB [38] and CVRPLIB [39] in Table 2(a), DACT produces significantly lower average gaps than the POMO with 8 augments, which indicates that our DACT is more advantageous in practice despite its longer inference time. On the other hand, it is possible to adopt a similar diverse rollout strategy for DACT to find better solutions earlier, or explore other model compression techniques such as the knowledge distillation [40] to learn a lighter DACT model for faster inference. Since our focus is to ameliorate Transformer for neural improvement solvers, we will investigate these possibilities in the future. ",
994
+ "bbox": [
995
+ 174,
996
+ 648,
997
+ 825,
998
+ 773
999
+ ],
1000
+ "page_idx": 8
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "5.2 Ablation studies ",
1005
+ "text_level": 1,
1006
+ "bbox": [
1007
+ 174,
1008
+ 790,
1009
+ 326,
1010
+ 805
1011
+ ],
1012
+ "page_idx": 8
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Dual-aspect representation. In Table 3, we evaluate the effectiveness of our dual-aspect representation against the single-aspect one (SA-T) on TSP50 and TSP100, where SA-T mainly follows the Transformer in $\\mathbf { W } \\mathbf { u }$ et al. [11] but equipped with the CPE, multi-head attentions and CL strategy for fair comparison. We observe that our DACT with fewer parameters consistently outperforms SA-T, which verifies the effectiveness of the dual-aspect representation. ",
1017
+ "bbox": [
1018
+ 174,
1019
+ 815,
1020
+ 825,
1021
+ 886
1022
+ ],
1023
+ "page_idx": 8
1024
+ },
1025
+ {
1026
+ "type": "image",
1027
+ "img_path": "images/2102778a136af66f4a0dae7bc32cd3d938ae977b3f9616db51da4c7cf94b2d1f.jpg",
1028
+ "image_caption": [
1029
+ "Figure 6: Visualization of the attention scores for the encoder when a trained model is used to solve instances with a larger size. (a) using PE method; (b) using CPE method (ours). "
1030
+ ],
1031
+ "image_footnote": [],
1032
+ "bbox": [
1033
+ 251,
1034
+ 85,
1035
+ 743,
1036
+ 202
1037
+ ],
1038
+ "page_idx": 9
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "Cyclic positional encoding. Here we show that CPE significantly improves the generalization performance across different problem sizes. In Table 2(b), we record the results of our DACT with PE and CPE, and Wu et al. [11], when the model trained on TSP50 is directly used to solve instances from TSP20 and TSP100 with $\\mathrm { T } { = } 5 \\mathrm { k }$ . We see that even with PE, our DACT outperforms Wu et al. [11]. Further equipped with CPE, DACT outstrips DACT-PE and OR-Tools on TSP100. We continue to compare the two DACT variants by visualizing their attention scores. As depicted in Figure 6(a), although the absolute PE is designed for linear sequences, it did attempt to capture the circularity of ",
1043
+ "bbox": [
1044
+ 174,
1045
+ 268,
1046
+ 526,
1047
+ 446
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "image",
1053
+ "img_path": "images/dcaf347b7b825fb752b6ddcd50ad1a4968c6104e02beab829841e1b66d04fde2.jpg",
1054
+ "image_caption": [
1055
+ "Figure 7: Training curves of PPO with and without CL on CVRP20 (random seeds 1-5). "
1056
+ ],
1057
+ "image_footnote": [],
1058
+ "bbox": [
1059
+ 571,
1060
+ 272,
1061
+ 789,
1062
+ 393
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "VRP solutions (as highlighted in the green boxes) after training. However, the ability to perceive such properties significantly drops when generalizing over different problem size, which instead engenders random attention scores when generalizing to larger size (see right side of Figure 6(a)). In contrast, our DACT with CPE is able to capture the circularity as depicted in Figure 6(b), which verifies the effectiveness of CPE in representing cyclic sequences (i.e., VRP solutions). ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 448,
1072
+ 825,
1073
+ 517
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Curriculum learning (CL) strategy. In Figure 7, we plot the training curves of PPO algorithm with and without our CL strategy, where the results are averaged over 5 independent runs with $90 \\%$ confidence intervals. It shows that our CL strategy significantly improves the sample efficiency while reducing the variance of training, which aligns with our analysis in Section 4.4. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 535,
1083
+ 825,
1084
+ 590
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "6 Conclusions and future work ",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 176,
1094
+ 613,
1095
+ 446,
1096
+ 631
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "In this paper, we present a novel DACT model for routing problems. It learns separate groups of embeddings for the node and positional features, and is equipped with cyclic positional encoding (CPE) to capture the circularity and symmetry of VRP solutions. A curriculum learning (CL) strategy is also exploited to improve the RL training efficiency. Extensive experiments on both synthetic and benchmark datasets justified the effectiveness of DACT in terms of both inference and generalization. A potential limitation is that DACT is more useful for learning improvement models at present. In the future, we will investigate how to extend DACT to construction models, and how to speed up the DACT through diverse rollouts or model compression techniques. It is also interesting to apply the proposed CPE to develop Transformer based model for other tasks where the cyclic property is also important, e.g., encoding circular DNA/RNA structures in computational biology [41, 42]. ",
1103
+ "bbox": [
1104
+ 173,
1105
+ 646,
1106
+ 825,
1107
+ 786
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Acknowledgments and Disclosure of Funding ",
1114
+ "text_level": 1,
1115
+ "bbox": [
1116
+ 174,
1117
+ 808,
1118
+ 553,
1119
+ 825
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "This work was supported in part by the National Natural Science Foundation of China under Grant 61803104 and Grant 62102228, in part by the Young Scholar Future Plan of Shandong University under Grant 62420089964188, and in part by the A\\*STAR CyberPhysical Production System (CPPS) - Towards Contextual and Intelligent Response Research Program, under the RIE2020 IAF-PP Grant A19C1a0018, and Model Factory $@$ SIMTech. ",
1126
+ "bbox": [
1127
+ 173,
1128
+ 842,
1129
+ 825,
1130
+ 911
1131
+ ],
1132
+ "page_idx": 9
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "References \n[1] Paolo Toth and Daniele Vigo. Vehicle routing: problems, methods, and applications. SIAM press, 2014. \n[2] Michael Schneider, Andreas Stenger, and Dominik Goeke. The electric vehicle-routing problem with time windows and recharging stations. Transportation Science, 48(4):500–520, 2014. \n[3] Jan Karel Lenstra and AHG Rinnooy Kan. Complexity of vehicle routing and scheduling problems. Networks, 11(2):221–227, 1981. \n[4] Xinyun Chen and Yuandong Tian. Learning to perform local rewriting for combinatorial optimization. In Advances in Neural Information Processing Systems, volume 32, pages 6281–6292, 2019. \n[5] Wouter Kool, Herke van Hoof, and Max Welling. Attention, learn to solve routing problems! In International Conference on Learning Representations, 2018. \n[6] Chaitanya K Joshi, Thomas Laurent, and Xavier Bresson. An efficient graph convolutional network technique for the travelling salesman problem. arxiv preprint arxiv:1906.01227, ArXiV, 2019. \n[7] Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Multi-decoder attention model with embedding glimpse for solving vehicle routing problems. In Proceedings of 35th AAAI Conference on Artificial Intelligence, pages 12042–12049, 2021. \n[8] Yeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon, Youngjune Gwon, and Seungjai Min. POMO: Policy optimization with multiple optima for reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pages 21188–21198, 2020. \n[9] Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Step-wise deep learning models for solving routing problems. IEEE Transactions on Industrial Informatics, 17(7):4861–4871, 2020. \n[10] Cong Zhang, Wen Song, Zhiguang Cao, Jie Zhang, Puay Siew Tan, and Xu Chi. Learning to dispatch for job shop scheduling via deep reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pages 1621–1632, 2020. \n[11] Yaoxin Wu, Wen Song, Zhiguang Cao, Jie Zhang, and Andrew Lim. Learning improvement heuristics for solving routing problems. IEEE Transactions on Neural Networks and Learning Systems, 2021. \n[12] Hao Lu, Xingwen Zhang, and Shuang Yang. A learning-based iterative method for solving vehicle routing problems. In International Conference on Learning Representations, 2019. \n[13] André Hottung, Bhanu Bhandari, and Kevin Tierney. Learning a latent search space for routing problems using variational autoencoders. In International Conference on Learning Representations, 2021. \n[14] Jingwen Li, Yining Ma, Ruize Gao, Zhiguang Cao, Andrew Lim, Wen Song, and Jie Zhang. Deep reinforcement learning for solving the heterogeneous capacitated vehicle routing problem. IEEE Transactions on Cybernetics, 2021. \n[15] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018. \n[16] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, pages 6000–6010, 2017. \n[17] Jingwen Li, Liang Xin, Zhiguang Cao, Andrew Lim, Wen Song, and Jie Zhang. Heterogeneous attentions for solving pickup and delivery problem via deep reinforcement learning. IEEE Transactions on Intelligent Transportation Systems, 2021. \n[18] Guolin Ke, Di He, and Tie-Yan Liu. Rethinking the positional encoding in language pre-training. In International Conference on Learning Representations, 2020. \n[19] Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 464–468, 2018. \n[20] Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, volume 28, pages 2692–2700, 2015. \n[21] Irwan Bello, Hieu Pham, Quoc V Le, Mohammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. In International Conference on Machine Learning (Workshop), 2017. \n[22] Mohammadreza Nazari, Afshin Oroojlooy, Martin Takác, and Lawrence V Snyder. Reinforcement learning ˇ for solving the vehicle routing problem. In Advances in Neural Information Processing Systems, pages 9861–9871, 2018. \n[23] Paulo R d O Costa, Jason Rhuggenaath, Yingqian Zhang, and Alp Akcay. Learning 2-opt heuristics for the traveling salesman problem via deep reinforcement learning. In Asian Conference on Machine Learning, pages 465–480, 2020. \n[24] Hanjun Dai, Elias B Khalil, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. In Advances in Neural Information Processing Systems, pages 6351–6361, 2017. \n[25] Zhang-Hua Fu, Kai-Bin Qiu, and Hongyuan Zha. Generalize a small pre-trained model to arbitrarily large TSP instances. In AAAI Conference on Artificial Intelligence, 2021. \n[26] Wouter Kool, Herke van Hoof, Joaquim Gromicho, and Max Welling. Deep policy dynamic programming for vehicle routing problems. arXiv preprint arXiv:2102.11756, 2021. \n[27] André Hottung and Kevin Tierney. Neural large neighborhood search for the capacitated vehicle routing problem. In European Conference on Artificial Intelligence, 2020. \n[28] Keld Helsgaun. LKH-3 (version 3.0.6), 2019. URL http://webhotel4.ruc.dk/\\~keld/research/ LKH-3/. \n[29] Wikipedia. Gray code, 2021. URL: https://en.wikipedia.org/wiki/Gray_code. Last visited on 2020/05/19. \n[30] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. \n[31] Lei Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. Corr: abs/1607.06450, ArXiV, 2016. \n[32] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arxiv preprint arxiv:1707.06347, ArXiV, 2017. \n[33] Fabio Pardo, Arash Tavakoli, Vitaly Levdik, and Petar Kormushev. Time limits in reinforcement learning. In International Conference on Machine Learning, pages 4045–4054, 2018. \n[34] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In International Conference on Machine Learning, pages 41–48, 2009. \n[35] David L Applegate, Robert E Bixby, Vašek Chvátal, and William J Cook. Concorde TSP Solver, 2020. URL http://www.math.uwaterloo.ca/tsp/concorde/. \n[36] Keld Helsgaun. LKH (version 2.0.9), 2018. URL http://webhotel4.ruc.dk/\\~keld/research/ LKH/. \n[37] Laurent Perron and Vincent Furnon. OR-Tools (version 7.2), 2019. URL https://developers.google. com/optimization/. \n[38] Gerhard Reinelt. TSPLIB-A traveling salesman problem library. ORSA journal on computing, 3(4): 376–384, 1991. \n[39] Eduardo Uchoa, Diego Pecin, Artur Pessoa, Marcus Poggi, Thibaut Vidal, and Anand Subramanian. New benchmark instances for the capacitated vehicle routing problem. European Journal of Operational Research, 257(3):845–858, 2017. \n[40] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. \n[41] Chun-Ying Yu, Tung-Cheng Li, Yi-Ying Wu, Chan-Hsien Yeh, Wei Chiang, Ching-Yu Chuang, and Hung-Chih Kuo. The circular rna circbirc6 participates in the molecular circuitry controlling human pluripotency. Nature communications, 8(1):1–15, 2017. \n[42] Chengyu Liu, Yu-Chen Liu, Hsien-Da Huang, and Wei Wang. Biogenesis mechanisms of circular rna can be categorized through feature extraction of a machine learning model. Bioinformatics, 35(23):4867–4870, 2019. \n[43] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Firdaus Janoos, Larry Rudolph, and Aleksander Madry. Implementation matters in deep policy gradients: A case study on PPO and TRPO. In International Conference on Learning Representations, 2020. ",
1137
+ "bbox": [
1138
+ 171,
1139
+ 80,
1140
+ 828,
1141
+ 915
1142
+ ],
1143
+ "page_idx": 10
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "",
1148
+ "bbox": [
1149
+ 171,
1150
+ 78,
1151
+ 828,
1152
+ 916
1153
+ ],
1154
+ "page_idx": 11
1155
+ }
1156
+ ]
parse/train/63pC59XOZLZ/63pC59XOZLZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/63pC59XOZLZ/63pC59XOZLZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HfpNVDg3ExA/HfpNVDg3ExA.md ADDED
@@ -0,0 +1,366 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Probabilistic Transformer for Time Series Analysis
2
+
3
+ Binh Tang Department of Statistics and Data Science Cornell University Ithaca, NY 14850 bvt5@cornell.edu
4
+
5
+ David S. Matteson Department of Statistics and Data Science Cornell University Ithaca, NY 14850 matteson@cornell.edu
6
+
7
+ # Abstract
8
+
9
+ Generative modeling of multivariate time series has remained challenging partly due to the complex, non-deterministic dynamics across long-distance time steps. In this paper, we propose deep probabilistic methods that combine state-space models (SSMs) with transformer architectures. In contrast to previously proposed SSMs, our approaches use attention mechanism to model non-Markovian dynamics in the latent space and avoid recurrent neural networks entirely. We also extend our models to include several layers of stochastic variables organized in a hierarchy for further expressiveness. Compared to transformer models, ours are probabilistic, non-autoregressive, and capable of generating diverse long-term forecasts with accounted uncertainty. Extensive experiments show that our models consistently outperform competitive baselines on various tasks and datasets, including time series forecasting and human motion prediction.
10
+
11
+ # 1 Introduction
12
+
13
+ Generative modeling of multivariate time series is a challenging problem with wide-ranging applications in demand forecasting [15, 76], autonomous driving [2, 16], robotics [29, 67], and health care [20, 21, 59]. Despite remarkable progress in recent years, models that predict high-dimensional future observations from a few past examples have remained intractable, partly due to the complex, non-deterministic temporal dynamics across long-distance time steps. Given a sequence of human poses, for example, such models must internally figure out the involved dynamics of various body components across space and time while maintaining the inherent uncertainty of multiple plausible futures, even though only one such future is observed.
14
+
15
+ Among proposed probabilistic approaches, state space models (SSMs) provide a principled framework for learning and drawing inference from sequential inputs [27, 66]. While autoregressive models feed its predictions back into the dynamics model without any compressed representation of data, SSMs model stochastic transitions between abstract states using latent variables, allowing for efficient state-to-state sampling without the need to render high-dimensional observations. Gaussian linear dynamical systems (LDSs), one of the best known SSMs [92], for example, postulate linear state transitions and enjoy exact inference via the celebrated Kalman filter algorithm.
16
+
17
+ While early extensions of LDSs focus on linearization [46] and unscented transform [88], recent work that marry state space models with deep neural networks offers much more flexibility to model complex dependencies across different time steps. Some approaches retain the Markovian dynamics of LDSs and only replace their linear observation models with feed-forward networks [23, 31, 47, 71], whereas others favor nonlinear state transitions and parametrize such dependencies via recurrent neural networks (RNNs) [22, 23, 30, 39, 51, 75]. Despite differences, both Markovian transitions and RNNs are often not capable of capturing long-range dependencies in highly structured sequential inputs [36, 100], limiting the capacity of the corresponding SSMs.
18
+
19
+ ![](images/6209b8c1681d417ef10b0d5a80eb743603ec9c0900243de7593a7d1462ab034a.jpg)
20
+ Figure 1: Graphical model representations of linear dynamical systems (LDSs) in (a), and our proposed models (ProTran) in (b), (c), and (d). Black arrows denote the generative mechanism and red arrows the inference procedure. The separation of generation and inference in (c) and (d) is for readability. While traditional SSMs such as LDSs are limited to Markovian dynamics and linear dependencies, our models allow for non-Markovian and non-linear interactions between time steps via attention mechanism. A multi-layer extension of our models further increases expressiveness without compromising the tractable inference procedure.
21
+
22
+ In this work, we propose to combine the complementary strengths of SSMs and transformer architectures [85], a powerful mechanism for modeling long-term interactions that enjoys success across a variety of sequence modeling tasks [26, 48, 99]. In contrast to most SSMs, our models make extensive use of attention mechanism [5, 85] between latent variables to model non-Markovian dynamics (see Figure 1). Compared to transformer-based methods, our models are probabilistic, nonautoregressive in a similar fashion to LDSs, and capable of generating diverse long-term forecasts with uncertainty estimates.
23
+
24
+ Our main contributions are threefold. First, we propose novel SSMs based on transformer architectures for multivariate time series, which include generative models and inference procedures based on variational inference [49, 74]. Second, we extend our models to include several layers of stochastic latent variables organized in a hierarchy for further expressiveness. Third, we conduct extensive experiments on time series forecasting and human motion prediction and demonstrate that our Probabilistic Transformer (ProTran) performs remarkably well compared to various state-of-theart baselines.
25
+
26
+ # 2 Preliminaries
27
+
28
+ # 2.1 Variational State Space Models
29
+
30
+ Let $\{ \mathbf { x } _ { 1 : T _ { i } } ^ { ( i ) } \} _ { i = 1 } ^ { N }$ consist of $N$ univariate time series w ere $\mathbf { x } _ { 1 : T _ { i } } ^ { ( i ) } = ( \mathbf { x } _ { 1 } ^ { ( i ) } , \mathbf { x } _ { 2 } ^ { ( i ) } , \cdot \cdot \cdot \mathbf { x } _ { T _ { i } } ^ { ( i ) } )$ and $\mathbf { x } _ { t } ^ { ( i ) }$ denotes the vaue of the $i$ $t$ We consider the multivariate form $\mathbf { x } _ { 1 : T } = ( \mathbf { x } _ { 1 } , \mathbf { x } _ { 2 } , \ldots , \mathbf { x } _ { T } )$ where $\mathbf { x } _ { t } = ( \mathbf { x } _ { t } ^ { ( 1 ) } , . . . \mathbf { x } _ { t } ^ { ( N ) } ) \in \mathbb { R } ^ { N }$ . Conditioning on observed values up to time $C$ , we aim to produce distributional forecasts into the future $p ( \mathbf { x } _ { C + 1 : T } \mid \mathbf { x } _ { 1 : C } )$ . For clarity, we refer to $\mathbf { x } _ { 1 : C }$ and $\mathbf { x } _ { C + 1 : T }$ as contexts and targets, respectively.
31
+
32
+ We are interested in probabilistic models parametrized by $\theta$ of the form
33
+
34
+ $$
35
+ p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { x } _ { 1 : C } ) = \int p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } ) p _ { \theta } ( \mathbf { z } _ { 1 : T } \mid \mathbf { x } _ { 1 : C } ) d \mathbf { z } _ { 1 : T }
36
+ $$
37
+
38
+ where ${ \bf z } _ { 1 : T } = ( { \bf z } _ { 1 } , { \bf z } _ { 2 } , \ldots , { \bf z } _ { T } )$ denotes the corresponding sequence of latent variables, sometimes referred to as states. In other words, we assume a generative model that can be decomposed into a transition model $p _ { \theta } ( \mathbf { z } _ { 1 : T } \mid \mathbf { x } _ { 1 : C } )$ between the latent variables conditioned on the contexts, and an emission model $p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } )$ from the latent variables to observable outputs. In particular, we further impose several assumptions on both models: 1
39
+
40
+ $$
41
+ p _ { \theta } ( \mathbf { z } _ { 1 : T } \mid \mathbf { x } _ { 1 : C } ) = \prod _ { t = 1 } ^ { T } p _ { \theta } ( \mathbf { z } _ { t } \mid \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : C } ) , \qquad p _ { \theta } ( \mathbf { x } _ { 1 : T } \mid \mathbf { z } _ { 1 : T } ) = \prod _ { t = 1 } ^ { T } p _ { \theta } ( \mathbf { x } _ { t } \mid \mathbf { z } _ { t } ) .
42
+ $$
43
+
44
+ As demonstrated in Figure 1(b), the latent variable $\mathbf { z } _ { t + 1 }$ depends not only on $\mathbf { z } _ { t }$ but also on all of its preceding latent variables, including $\mathbf { z } _ { t - 1 }$ , in contrast to linear dynamical systems (LDSs). In addition, the transition and emission models allow for non-linearity via neural network parametrizations. These assumptions aim to maximize model capacity for real-world applications with complex emissions or temporal dependencies.
45
+
46
+ However, neither $\mathbf { x } _ { 1 : t - 1 }$ nor $\mathbf { z } _ { 1 : t - 1 }$ are included in the emission model $p ( \mathbf { x } _ { t } \mid \mathbf { z } _ { 1 : T } , \mathbf { x } _ { 1 : C } )$ . Such assumptions are important, as it has been argued previously that a leakage of information from the latent space in autoregressive models can hinder long-term predictions [23, 47]. While all ground truth observations are available during training, the entire sequence has to be generated sequentially at test time, making the dependencies on $\mathbf { x } _ { 1 : t - 1 }$ prone to accumulated errors over multiple time steps. By letting the latent variable $\mathbf { z } _ { t }$ capture all information needed to render $\mathbf { x } _ { t }$ , we also avoid the computational costs associated with repeatedly decoding and encoding $\mathbf { x } _ { t }$ in multi-step predictions.
47
+
48
+ The inclusion of nonlinear state transitions and observation models necessarily requires approximate inference. We follow the stochastic variational inference framework [49, 74] and assume that the variational posterior parametrized by $\phi$ can be decomposed auto-regressively as $q _ { \phi } ( { \bf z } _ { 1 : T } \mid { \bf x } _ { 1 : T } ) =$ $\begin{array} { r } { \prod _ { t } q _ { \phi } ( \mathbf { z } _ { t } \mid \dot { \mathbf { z } } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : T } ) } \end{array}$ , which leads to a lower bound on the log likelihood:
49
+
50
+ $$
51
+ \log p _ { \theta } ( \mathbf { x } _ { 1 : T } | \mathbf { x } _ { 1 : C } ) \geq \sum _ { t = 1 } ^ { T } ( \mathbb { E } _ { q } \left[ \log p _ { \theta } ( \mathbf { x } _ { t } | \mathbf { z } _ { t } ) \right] - \mathsf { K L } ( q _ { \phi } ( \mathbf { z } _ { t } | \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : T } ) \parallel p _ { \theta } ( \mathbf { z } _ { t } | \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : C } ) ) ) ,
52
+ $$
53
+
54
+ where $\mathsf { K L }$ is the Kullback-Leibler divergence.
55
+
56
+ For computational stability, we assume homoscedasticity and choose Laplace distribution with scale parameter $\beta$ as a parametric form for $p _ { \theta } ( \mathbf { x } _ { t } \mid \mathbf { z } _ { t } )$ , i.e. we optimize for $L _ { 1 }$ reconstruction loss with a cross-validated factor $\beta$ for the KL term, following similar variational autoencoder (VAE) work [24, 41, 86]. Such an assumption does not necessarily limit the capacity of our models, as powerful stochastic transitions and flexible emission models can theoretically characterize arbitrary noise covariance [66]. Incorporating structured probabilistic outputs such as Gaussian copulas [75] or normalizing flows [23] can potentially further improve our model performance.
57
+
58
+ # 2.2 Transformer Architectures
59
+
60
+ Central to our models and other transformer-based approaches [48, 85] is the notion of attention [5], which allows the models to focus on important parts within a context. Multi-head attention, for example, maps a sequence of queries $\mathbf { Q } \doteq \mathbb { R } ^ { \ell _ { q } \times \dot { d } }$ of length $\ell _ { q }$ to a sequence of outputs ${ \bf O } =$ $[ \mathbf { O } _ { 1 } , \dots , \mathbf { O } _ { H } ] \in \mathbb { R } ^ { \ell _ { q } \times d }$ of the same size by attending over given $\ell _ { k }$ key-value pairs $\mathbf { K } \in \mathbb { R } ^ { \ell _ { k } \times d }$ , V ∈ R\`k×d:
61
+
62
+ $$
63
+ \mathbf { O } _ { h } = \mathsf { A t t e n t i o n } ( \mathbf { Q } _ { h } , \mathbf { K } _ { h } , \mathbf { V } _ { h } ) = \mathsf { S o f t m a x } \left( \frac { \mathbf { Q } _ { h } \mathbf { K } _ { h } ^ { \mathsf { T } } } { \sqrt { d } } \right) \mathbf { V } _ { h } ,
64
+ $$
65
+
66
+ where $\mathbf { Q } _ { h } = \mathbf { Q } \mathbf { W } _ { h } ^ { Q }$ , $\mathbf { K } _ { h } = \mathbf { K } \mathbf { W } _ { h } ^ { K }$ , $\mathbf { V } _ { h } = \mathbf { V } \mathbf { W } _ { h } ^ { V }$ are projected queries, keys, and values coro head , we re $h \in [ 1 , H ]$ with learning parameters n attention mechanism as s $\mathbf { W } _ { h } ^ { Q } , \mathbf { W } _ { h } ^ { K } , \mathbf { W } _ { h } ^ { V }$ , respectively. In case $\mathbf { Q } = \mathbf { K } = \mathbf { V }$
67
+
68
+ Given fully observed sequences of inputs, the mapping can be computed efficiently without any imposed sequential order often seen in recurrent neural networks [19, 42]. More importantly, the direct connections between long-distance time steps are baked into the mechanism as information from previous time steps is easily accessible without being compressed into a fixed representation, easing optimization and learning of long-term dependencies [5, 85].
69
+
70
+ Without recurrence, Transformer [85] encodes information about each time step $t$ with pred efined sinusoidal positional embeddings Position $( t ) = [ p _ { t } ( 1 ) , \ldots , p _ { t } ( d ) ] \in \mathbb { R } ^ { d }$ where the $i$ -th embedding is given by $p _ { t } ( i ) = \sin ( t \cdot c ^ { i / d } )$ for even $i$ and $p _ { t } ( i ) = \cos ( t \cdot c ^ { i / d } )$ for odd $i$ and $c$ is some large constant. Empirical results show that such positional embeddings are also important to our models.
71
+
72
+ # 3 Probabilistic Transformer
73
+
74
+ In this section, we first present our single-layered model and subsequently its multi-layered extension for a hierarchy of stochastic latent variables. As alluded earlier, our model consists of a generative model and an inference model that share information and parameters extensively.
75
+
76
+ # 3.1 Single-Layered Probabilistic Transformer
77
+
78
+ Generative Model. Given some contexts $\mathbf { x } _ { 1 : C }$ , we first apply a linear projection and combine it with a positional embedding to obtain $\mathbf { h } _ { 1 : C } \in \mathbb { R } ^ { d }$ , i.e.
79
+
80
+ $$
81
+ \mathbf { h } _ { t } = \mathsf { L a y e r N o r m } ( \mathsf { M L P } ( \mathbf { x } _ { t } ) + \mathsf { P o s i t i o n } ( t ) ) ,
82
+ $$
83
+
84
+ where LayerNorm and MLP denote layer normalizations [4] and multi-layer perceptrons, respectively. While a traditional transformer model often dedicates an entire encoder for the same purpose [55, 72], we find such a simple mapping works sufficiently well in conjunction with the contextattention module of the corresponding decoder.
85
+
86
+ As implied in Equation (2), our latent dynamics decomposes auto-regressively. At each time step, we parametri ze the distribution $p _ { \theta } ( \mathbf { z } _ { t } \mid \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : C } )$ by a Gaussian with parameters resulting from two sequential steps of attention: a self-attention over the previously inferred states $\mathbf { z } _ { 1 : t - 1 }$ and another attention over the projected contexts $\mathbf { h } _ { 1 : C }$ . These two operations mirror those found in the decoder of Transformer [85], with the stochastic latent variables replacing its decoder inputs.
87
+
88
+ Unfortunately, using stochastic samples of $\mathbf { z } _ { t }$ as attention queries is problematic, as purely stochastic transitions make it difficult for the model to reliably retain information across multiple time steps [17, 30, 39]. We therefore encapsulate the latent variables in hidden representations $\mathbf { w } _ { t }$ that also has a deterministic component. Combined with the attention steps, such representations help model long-range temporal dependencies while accounting for the stochasticity of future observations.
89
+
90
+ Starting with a learnable, context-agnostic representation $\mathbf { w } _ { 0 }$ , we recursively update $\mathbf { w } _ { t }$ using a stochastic sample from $p _ { \theta } ( \mathbf { z } _ { t } \mid \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : C } )$ and th e positional embedding for the current time step $t$ . The generating process for the time step $t$ can be summarized by the following pseudocode:
91
+
92
+ $$
93
+ \begin{array} { r l } & { \bar { { \bf w } } _ { t } = \mathsf { L a y e r N o r m } \big ( { \bf w } _ { t - 1 } + \mathsf { A t t e n t i o n } \big ( { \bf w } _ { t - 1 } , { \bf w } _ { 1 : t - 1 } , { \bf w } _ { 1 : t - 1 } \big ) \big ) } \\ & { \hat { \bf w } _ { t } = \mathsf { L a y e r N o r m } \big ( \bar { \bf w } _ { t } + \mathsf { A t t e n t i o n } \big ( \bar { \bf w } _ { t } , { \bf h } _ { 1 : C } , { \bf h } _ { 1 : C } \big ) \big ) } \\ & { { \bf z } _ { t } = \mathsf { S a m p l e } \big ( \mathcal { N } \big ( { \bf z } _ { t } ; \mathsf { M L P } ( \hat { \bf w } _ { t } ) , \mathsf { S o f t p l u s } ( \mathsf { M L P } ( \hat { \bf w } _ { t } ) \big ) \big ) \big ) } \\ & { { \bf w } _ { t } = \mathsf { L a y e r N o r m } \big ( \hat { \bf w } _ { t } + \mathsf { M L P } ( { \bf z } _ { t } ) + \mathsf { P o s i t i o n } ( t ) \big ) , } \end{array}
94
+ $$
95
+
96
+ where Sample and Softplus are the Gaussian sampling and approximating rectifier operators.
97
+
98
+ Each stochastic sample of $\mathbf { w } _ { 1 : T }$ is then mapped to a sequence of $\mathbf { x } _ { \mathrm { 1 : } T }$ via a multi-layer perceptron. We emphasize that our generation procedure in the latent space is more efficient than others in the observation space, which requires encoding and decoding high-dimensional inputs repeatedly.
99
+
100
+ Inference Model. We parametrize the approximate posterior $q _ { \phi } ( \mathbf { z } _ { t } \mid \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : T } )$ at time step $t$ in a simi lar fashion to the prior $p _ { \theta } ( \mathbf { z } _ { t } \mid \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : C } )$ . Indeed, these parametrizations share most parameters and are done simultaneously in the same recursive loop, following the exact same steps in Equation (6) and Equation (7) (see Figure 1). We note that similar sharing techniques between the generative and inference processes have emerged as a common theme among recent successful VAE models [17, 62, 83].
101
+
102
+ While the prior only has access to the conditioning observations $\mathbf { x } _ { 1 : C }$ , the approximate posterior should take into account all observations during training, including the targets $x _ { C + 1 : T }$ . Due to the inherent unidirectional aspect of RNNs, previous work that uses RNNs to parametrize the approximate posterior often disregards such a property [22, 30, 51] and often resorts to a filtering routine $p ( \mathbf { z } _ { t } \mid \mathbf { z } _ { 1 : t - 1 } , \mathbf { x } _ { 1 : t } )$ . In contrast, our inference procedure resembles more of the smoothing process of LDSs, factoring in both past and future observations via another application of self-attention:
103
+
104
+ $$
105
+ \begin{array} { r l } & { { \bf k } _ { t } = \mathrm { A t t e n t i o n } ( { \bf h } _ { 1 : T } , { \bf h } _ { 1 : T } , { \bf h } _ { 1 : T } ) ) } \\ & { { \bf z } _ { t } = \mathsf { S a m p l e } ( \mathcal { N } ( { \bf z } _ { t } ; { \sf M L P } ( [ \hat { \bf w } _ { t } , { \bf k } _ { t } ] ) , \mathsf { S o f t p l u s } ( { \sf M L P } ( [ \hat { \bf w } _ { t } , { \bf k } _ { t } ] ) ) ) . } \end{array}
106
+ $$
107
+
108
+ Here, we replace Equation (8) in the generative model with Equation (11), where the hidden representation $\mathbf { k } _ { t }$ summarizing all information relevant to the current tim estep $t$ has been concatenate to the latent-and-context-aware representation $\hat { \mathbf { w } } _ { t }$ preceding the Gaussian parametrization.
109
+
110
+ The generative model and the inference model are trained end-to-end with a single stochastic variational inference objective stated in Equation (3). Such a variational bound includes the reconstruction loss for $\mathbf { X } _ { 1 : C }$ and the $\mathsf { K L }$ term for $\mathbf { z } _ { 1 : C }$ . Alternatively, we can exclude these terms from the objective, which is equivalent to starting the inference process from $t = C + 1$ instead of $t = 1$ .
111
+
112
+ Our models incur a time complexity of $\mathcal { O } ( T ^ { 2 } d )$ and a memory cost of $\mathcal { O } ( T ^ { 2 } d )$ , where $T$ is the total sequence length and $d$ is the dimensionality of the latent space. The recursive latent dynamics also does not allow use the take full advantange of parallelizable attentions. However, we find that our models are still efficient in practice, especially for reasonably small values of $T$ .
113
+
114
+ # 3.2 Multi-Layered Extension for Probabilistic Transformer
115
+
116
+ Inspired by recent work on hierarchical VAEs for non-sequential inputs [17, 80, 83, 101], we extend our proposed model to include several layers of latent variables, aiming to further increase its flexibility for modelling sequential data.
117
+
118
+ We represent each time step $t$ with a Ma rkov chain of $L$ latent variables $\mathbf { z } _ { t } ^ { ( 1 : L ) } = ( \mathbf { z } _ { t } ^ { ( 1 ) } , \ldots , \mathbf { z } _ { t } ^ { ( L ) } )$ for simplicity (see Figure 1). The generative and inference model also decompose auto-regressively across different time steps and may exhibit non-Markovian dynamics:
119
+
120
+ $$
121
+ \begin{array} { l } { { \displaystyle p _ { \theta } \left( { \bf x } _ { 1 : T } , { \bf z } _ { 1 : T } ^ { ( 1 : L ) } | { \bf x } _ { 1 : C } \right) = \left( \prod _ { \ell = 1 } ^ { T } p _ { \theta } \left( { \bf x } _ { t } | { \bf z } _ { t } ^ { ( L ) } \right) \right) \left( \prod _ { \ell = 1 } ^ { L } \prod _ { \ell = 1 } ^ { T } p _ { \theta } \left( { \bf z } _ { t } ^ { ( \ell ) } | { \bf z } _ { 1 : t - 1 } ^ { ( \ell ) } , { \bf z } _ { 1 : T } ^ { ( \ell - 1 ) } , { \bf x } _ { 1 : C } \right) \right) } } \\ { { \displaystyle q _ { \phi } \left( { \bf z } _ { 1 : T } ^ { ( 1 : L ) } | { \bf x } _ { 1 : T } \right) = \prod _ { \ell = 1 } ^ { L } \prod _ { \ell = 1 } ^ { T } q _ { \phi } \left( { \bf z } _ { t } ^ { ( \ell ) } | { \bf z } _ { 1 : t - 1 } ^ { ( \ell ) } , { \bf z } _ { 1 : T } ^ { ( \ell - 1 ) } , { \bf x } _ { 1 : T } \right) . } } \end{array}
122
+ $$
123
+
124
+ Intuitively, we generate samples $\mathbf { x } _ { 1 : T }$ conditioning on $\mathbf { x } _ { 1 : C }$ by following the latent dynamics from the bottom up and using the generative process described earlier within each layer. Analogously, inference proceeds in the same order, resulting in a variational bound similar to Equation (3):
125
+
126
+ $$
127
+ \begin{array} { l } { { \displaystyle \log p _ { \theta } \big ( { \bf x } _ { 1 : T } \mid { \bf x } _ { 1 : C } \big ) \geq \sum _ { t = 1 } ^ { T } \mathbb { E } _ { q } \left[ \log p _ { \theta } \big ( { \bf x } _ { t } ^ { ( L ) } \mid { \bf z } _ { t } \big ) \right] } \ ~ } \\ { { \displaystyle ~ - \sum _ { \ell = 1 } ^ { L } \mathsf { K L } \big ( q _ { \phi } \big ( { \bf z } _ { t } ^ { ( \ell ) } \mid { \bf z } _ { 1 : t - 1 } ^ { ( \ell ) } , { \bf z } _ { 1 : T } ^ { ( \ell ) } , { \bf x } _ { 1 : T } \big ) \ \big \| \ p _ { \theta } \big ( { \bf z } _ { t } ^ { ( \ell ) } \mid { \bf z } _ { 1 : t - 1 } ^ { ( \ell ) } , { \bf z } _ { 1 : T } ^ { ( \ell ) } , { \bf x } _ { 1 : C } \big ) \big ) } . } \end{array}
128
+ $$
129
+
130
+ As before, we parametrize the prior ) | z(\`)1:t−1, z(\`)1:T , x1:C ) using self-attention over the inferred(\`) latent variables from previous time steps w t−1 o n the same layer and another attention over contexts $\mathbf { h } _ { 1 : C }$ . In this case, however, we include an additional self-attention over all latent variables from the layer immediately below it (see Equation (16)):
131
+
132
+ $$
133
+ \begin{array} { r l } & { \tilde { \mathbf { w } } _ { t } ^ { ( \ell ) } = \mathsf { L a y e r N o r m } ( \mathbf { w } _ { t - 1 } ^ { ( \ell ) } + \mathsf { A t t e n t i o n } ( \mathbf { w } _ { t - 1 } ^ { ( \ell ) } , \mathbf { w } _ { 1 : T } ^ { ( \ell - 1 ) } , \mathbf { w } _ { 1 : T } ^ { ( \ell - 1 ) } ) ) } \\ & { \bar { \mathbf { w } } _ { t } ^ { ( \ell ) } = \mathsf { L a y e r N o r m } ( \tilde { \mathbf { w } } _ { t } ^ { ( \ell ) } + \mathsf { A t t e n t i o n } ( \tilde { \mathbf { w } } _ { t } ^ { ( \ell ) } , \mathbf { w } _ { 1 : t - 1 } ^ { ( \ell ) } , \mathbf { w } _ { 1 : t - 1 } ^ { ( \ell ) } ) ) } \\ & { \hat { \mathbf { w } } _ { t } ^ { ( \ell ) } = \mathsf { L a y e r N o r m } ( \bar { \mathbf { w } } _ { t } ^ { ( \ell ) } + \mathsf { A t t e n t i o n } ( \bar { \mathbf { w } } _ { t } ^ { ( \ell ) } , \mathbf { h } _ { 1 : C } , \mathbf { h } _ { 1 : C } ) ) } \\ & { \mathbf { z } _ { t } ^ { ( \ell ) } = \mathsf { S a m p l e } ( \mathcal { N } ( \mathbf { z } _ { t } ^ { ( \ell ) } ; \mathsf { M L P } ( \hat { \mathbf { w } } _ { t } ^ { ( \ell ) } ) , \mathbf { S o f t p l u s } ( \mathsf { M L P } ( \hat { \mathbf { w } } _ { t } ^ { ( \ell ) } ) ) ) ) } \\ & { \mathbf { w } _ { t } ^ { ( \ell ) } = \mathsf { L a y e r N o r m } ( \hat { \mathbf { w } } _ { t } ^ { ( \ell ) } + \mathsf { M L P } ( \mathbf { z } _ { t } ^ { ( \ell ) } ) + \mathsf { P o s i t i o n } ( t ) ) , } \end{array}
134
+ $$
135
+
136
+ Stacking multiple layers of latent variables increases model expressiveness, but it also result in a linear increase in running time and the number of parameters. The time complexity for the $L$ - layers transformer is $\mathcal { O } ( \bar { L _ { 1 } } T ^ { 2 } d )$ , while the space complexity remains $\mathcal { D } ( T ^ { 2 } d )$ due to the Markovian structure of the chain $\mathbf { z } _ { t } ^ { ( 1 : L ) }$ at each time step $t$ . In our experiments, we restrict the number of layers of our hierachical models to two or three.
137
+
138
+ # 4 Related Work
139
+
140
+ Deep State Space Models. Deep neural networks have been extensively combined with state space models, resulting in flexible, yet principledly motivated latent variable approaches. While some work keep the linear state transition intact to leverage the efficient Kalman filer algorithms [23, 31, 47, 71], more expressive, nonlinear latent dynamics parametrized by neural networks have been proposed [51, 52]. All such models are limited to the Markovian dynamics of LDSs, which hinders learning of long-range dependencies. The limitation is often alleviated by combining the stochastic transitions with a deterministic RNN that enables access to all past states [3, 8, 22, 30, 39, 77]. Our models are similarly non-Markovian, but the dependencies on the past states are done via attention, which allows for easy connections between long-distance time steps. In addition, while most existing deep SSMs represent each time step with a single latent variable, our models include several layers of hierarchical latent variables with tractable inference mechanism.
141
+
142
+ Attentive Recurrent Networks. Attention mechanism has also been widely adopted in recent time series work using sequence-to-sequence models [1, 28] or transformer architectures [14, 55, 57, 72, 81, 94]. While our models are equipped with latent variables, these transformer approaches [55, 72] lack inference mechanism and are susceptible to feeding back observation noise into the dynamics model at test time. Our work, however, can be considered as an extension of the attentive state space model proposed in [1], with discrete latent states replaced by their continuous analogs. Recent developments in natural language processing [58, 60, 90] also combine transformer and VAE; however, these approaches often use a time-agnostic latent variable, in contrast to our SSM formulation.
143
+
144
+ Time Series Forecasting. Traditional univariate time series models, such as Box-Jenkins methods [12] and exponential smoothing [43], often assume independence between any collection of time series [76]. While multivariate extensions of the classical approaches, including vector autoregression [82] and multivariate GARCH [7], do not require such a strong assumption, they come with many others such as stationarity and homocesdasticity, demand manual selection of covariates and models, and do not scale well to even a moderate number of time series [40, 69].
145
+
146
+ Deep learning methods for time series forecasting have recently emerged as an expressive, scalable framework for industrial applications [10, 68, 79, 91]. While early work focus on point forecasts [53, 70, 96], recent approaches often employ recurrent neural networks with probabilistic forecasts parametrized directly [76], using quantile functions [33], Gaussian copulas [75], normalizing flows [23], or diffusion models [73]. In contrast, our models are entirely devoid of such recurrent architectures and rely on latent variables to output distributional forecasts.
147
+
148
+ Human Motion Prediction. Despite being almost identical in formulation, human motion prediction has often been studied independently from time series forecasting. While some work deterministically generate future motions or video frames [13, 32, 34, 56], stochastic prediction has also been proposed with deep neural networks often outperforming traditional methods such as hidden Markov models [93] or Gaussian processes [89] on complex motion datasets [13, 32, 45, 54, 63]. In contrast to earlier work [95, 97] that employ a global latent variable across different time steps via conditional VAE [49], we leverage the principled framework of state space models for learning and inference of hierarchical, time-dependent latent variables.
149
+
150
+ # 5 Experiments
151
+
152
+ We present our experiment results on two tasks, namely, time series forecasting and human motion prediction. These tasks are often studied independently, despite being almost identical as conditional prediction problems.
153
+
154
+ Table 1: Test set ${ \mathsf { C R P S } } _ { \mathsf { s u m } }$ of time series forecasting models (lower is better). The means and standard deviations are computed over five runs using different random seeds.
155
+
156
+ <table><tr><td>DATASET</td><td>SOLAR</td><td>ELECTRICITY</td><td>TRAFFIC</td><td>TAXI</td><td>WIKIPEDIA</td></tr><tr><td>VES [43]</td><td>0.900 ± 0.003</td><td>0.880 ± 0.004</td><td>0.350 ± 0.002</td><td></td><td></td></tr><tr><td>VAR [61]</td><td>0.830 ± 0.006</td><td>0.039 ± 0.001</td><td>0.290 ± 0.001</td><td></td><td></td></tr><tr><td>VAR-Lasso [61]</td><td>0.510 ± 0.006</td><td>0.025 ± 0.000</td><td>0.150 ± 0.002</td><td></td><td>3.100 ± 0.004</td></tr><tr><td>GARCH [84]</td><td>0.880 ± 0.002</td><td>0.190 ± 0.001</td><td>0.370 ± 0.001</td><td></td><td></td></tr><tr><td>DeepAR [76]</td><td>0.336 ± 0.014</td><td>0.023 ± 0.001</td><td>0.055 ± 0.003</td><td></td><td>0.127 ± 0.042</td></tr><tr><td>LSTM-Copula [75]</td><td>0.319 ± 0.011</td><td>0.064 ± 0.008</td><td>0.103 ± 0.006</td><td>0.326 ± 0.007</td><td>0.241± 0.003</td></tr><tr><td>GP-Copula [75]</td><td>0.337 ± 0.024</td><td>0.024 ± 0.002</td><td>0.078 ± 0.002</td><td>0.208 ± 0.183</td><td>0.086 ± 0.004</td></tr><tr><td>KVAE [51]</td><td>0.340 ± 0.025</td><td>0.051 ± 0.019</td><td>0.100 ± 0.005</td><td></td><td>0.095 ± 0.012</td></tr><tr><td>NKF [23]</td><td>0.320 ± 0.020</td><td>0.016 ± 0.001</td><td>0.100 ± 0.002</td><td></td><td>0.071 ± 0.002</td></tr><tr><td>Transformer-MAF[72]</td><td>0.301 ± 0.014</td><td>0.021 ± 0.000</td><td>0.056 ± 0.001</td><td>0.179 ± 0.002</td><td>0.063 ± 0.003</td></tr><tr><td>TimeGrad[73]</td><td>0.287 ± 0.020</td><td>0.021 ± 0.001</td><td>0.044 ± 0.006</td><td>0.114 ± 0.020</td><td>0.049 ± 0.002</td></tr><tr><td>ProTran (Ours)</td><td>0.194 ± 0.030</td><td>0.016 ± 0.001</td><td>0.028 ± 0.001</td><td>0.084 ± 0.003</td><td>0.047 ± 0.004</td></tr></table>
157
+
158
+ # 5.1 Time-series Forecasting
159
+
160
+ Datasets & Covariates. Following the experiment setup in [72, 73, 75], we evaluate our models and multiple competitive baselines on five popular public datasets: SOLAR, ELECTRICITY, TRAFFIC, TAXI, and WIKIPEDIA. The data is recorded with hourly or daily frequency and shows seasonal patterns of different frequencies (see Appendix A for more dataset details). As in [72, 73], the covariates include lagged inputs, fixed time embeddings (e.g. day of week, hour of day), and learnable time-series embeddings. The inputs are scaled using the conditioning examples before being fed into the model, and the predictions are rescaled appropriately afterward.
161
+
162
+ Metrics. Following [23, 72, 75], we evaluate our model and all baselines using continuous ranked probability score (CRPS) [65] summed across time series, denoted by ${ \mathsf { C R P S } } _ { \mathsf { s u m } }$ . Given a univariate distribution function $F$ and an observation $x$ , CRPS is defined as
163
+
164
+ $$
165
+ { \mathsf { C R P S } } ( F , x ) = \int _ { \mathbb { R } } ( F ( z ) - \mathbb { 1 } _ { \{ x \leq z \} } ) ^ { 2 } d z ,
166
+ $$
167
+
168
+ where $1 _ { \{ x \leq z \} }$ is the indicator function. As argued in de Bezenac et al. [ ´ 23], ${ \mathsf { C R P S } } _ { \mathsf { s u m } }$ is a proper scoring rule [35] and can be computed without analytical forecast distributions. We compute the metrics in a rolling fashion and use 100 samples for the distributional forecasts, similar to the aforementioned work.
169
+
170
+ Baselines. We benchmark our models against various baselines, including (1) VES [43], an innovation state space model; (2) VAR-Lasso and VAR [61], two multivariate linear autoregressive models with and without Lasso regularization; (3) GARCH [84], a multivariate conditional heteroskedastic model; (4) DeepAR [76], an autoregressive recurrent neural network; LSTM-Copula and GP-Copula [75], two RNN-based models that use Gaussian copula to model nonlinearity; (5) KVAE [51], a variational approach based on linear dynamics; (6) NKF [23], a normalizing-flow model coupled with Kalman filters; (7) Transformer [72], a transformer-based model based on masked autoregressive flow; and (8) TimeGrad [73], a recent autoregressive approach that uses a diffusion model.
171
+
172
+ Implementations. We use 8-head attentions and 2-layers MLPs to parametrize the generative and inference models. The stochastic latent variables $\mathbf { z } _ { t }$ are 16-dimensional while the hidden representations $\mathbf { w } _ { t }$ are in $\mathbb { R } ^ { 1 2 8 }$ . Our probabilistic transformers for SOLAR and ELECTRICITY have one stochastic layer while those for the other datasets of higher dimensional observations employ two layers. We re
173
+
174
+ Table 2: Ablation study on TRAFFIC.
175
+
176
+ <table><tr><td>Two Layers One Layer Context Attention</td><td>√ × √</td><td>× √</td><td>× ×</td><td>× √</td></tr><tr><td>Deterministic</td><td>×</td><td>×</td><td>×</td><td>√</td></tr><tr><td>CRPSsum</td><td>0.028</td><td>0.031</td><td>0.033</td><td>0.041</td></tr></table>
177
+
178
+ port the numbers of parameters of our models in Table 4 in Appendix C, which are all comparable to those of the state-of-the-art approaches. See Appendix D for more details about hyper-parameters and training processes.
179
+
180
+ ![](images/2c04e02911790d4e50312ce21468be872c3332091a686e454ec6bd62c82ad8ba.jpg)
181
+ Figure 2: Prediction intervals and test set ground-truth from ProTran (our model) for the TRAFFIC dataset of the first 16 of 963 time series.
182
+
183
+ Accuracy Comparison. Table 1 shows that our models perform competitively across all five highdimensional time series datasets, achieving ${ \mathsf { C R P S } } _ { \mathsf { s u m } }$ comparable to the best methods on ELECTRICITY and WIKIPEDIA while outperforming all baselines, including a non-SSM transformer-based approach [72], by significant margins on SOLAR, TRAFFIC and TAXI. Further analyses with other metrics, including CRPS and MSE, in Appendix B also help confirm our findings.
184
+
185
+ Qualitative Results. Figure 2 shows that the distribution forecasts generated by our model follow closely the ground truths, which is consistent with our accuracy results. In addition, the model appears to capture the uncertainty of future forecasts to some extent; observations of large magnitudes and far into the future seem to correctly have higher variance estimates.
186
+
187
+ Ablation Study. We include a small scale ablation study on the TRAFFIC dataset to investigate which components of our models are essential. Table 2 suggests that removing the stochasticity from $\mathbf { w } _ { t }$ has most impacts on model performance, implying that incorprating latent variables into a transformer is indeed useful. Other aspects such as context attention or multiple layers of stochastic variables do not show dramatic effects in this study; however, they do contribute performance gains.
188
+
189
+ # 5.2 Human Motion Prediction
190
+
191
+ Datasets. Following the experiment setup in [97], we evaluation our models on two public motion capture datasets: Human3.6M[44] and HumanEva-I [78]. While Human3.6 is a large-scale dataset with 3.6 million video frames recorded at $5 0 \mathrm { H z }$ , HumanEva-I is smaller with only 3 subjects and recorded at $6 0 \mathrm { H z }$ . We follow the preprocessing steps of previous work [64, 97] and obtain a 17-joint skeleton for Human3.6 and a 15-joint skeleton for HumanEva-I. As in [97], we predict future motion for 2 seconds conditioning on observed motion of 0.5 seconds and 1 second conditioning on 0.25 seconds for Human3.6 and HumanEva-I, respectively.
192
+
193
+ ![](images/d9383da574a0f2a8ae5ae9ead64786b43baceb750e09f80f4d1df9b51d63a693.jpg)
194
+ Figure 3: Ground-truth pose sequences (first row) and corresponding predictions by ProTran (second row). Solid colors indicate later time-steps and faded ones are older. The body-part movements in the predicted and ground-truth poses resemble similar patterns, while certain variations are retained.
195
+
196
+ Table 3: Human motion prediction results.
197
+
198
+ <table><tr><td>DATASET</td><td colspan="2">HUMAN3.6M</td><td colspan="2">HUMANEVA-I</td></tr><tr><td>Method</td><td>ADE↓</td><td>FDE↓ ADE↓</td><td></td><td rowspan="3">FDE↓</td></tr><tr><td>ERD [32]</td><td>0.722</td><td>0.969 0.382</td><td>0.461</td></tr><tr><td>acLSTM[56]</td><td>0.789 1.126</td><td></td><td>0.429 0.541</td></tr><tr><td>MT-VAE [95]</td><td>0.457</td><td>0.595</td><td>0.345</td><td rowspan="4">0.403</td></tr><tr><td>Pose-Knows [87]</td><td>0.461</td><td>0.560</td><td>0.269 0.296</td></tr><tr><td>HP-GAN [6]</td><td>0.858</td><td>0.867</td><td>0.772 0.749</td></tr><tr><td>Best-Many [11]</td><td>0.448</td><td>0.533 0.271</td><td>0.279</td></tr><tr><td>GMVAE [25]</td><td>0.461</td><td>0.555</td><td>0.305</td><td>0.345</td></tr><tr><td>DeliGAN[38]</td><td>0.483</td><td>0.534</td><td>0.306</td><td>0.322</td></tr><tr><td>DSP [98]</td><td>0.493</td><td>0.592</td><td>0.273</td><td>0.290</td></tr><tr><td>DLow [97]</td><td>0.425</td><td>0.518</td><td>0.251</td><td>0.268</td></tr><tr><td>ProTran (Ours)</td><td>0.381</td><td>0.491</td><td>0.258</td><td>0.255</td></tr></table>
199
+
200
+ Metrics. Following previous work on trajectory forecasting [2, 37], we adopt two popular metrics, namely, average displacement error (ADE) and final displacement error (FDE). ADE measures the average $L _ { 2 }$ distance over all time steps between the ground truth motion and the closest sample, while FDE only consider such distance for the final pose.
201
+
202
+ Baselines. We compare our models against 9 models, including ERD [32] and acLSTM [56], two deterministic RNN-based approaches; MT-VAE [95] and Pose-Knows [87], two conditional VAE models; HP-GAN [6], a conditional GAN; Best-Many [11], GMVAE [25], DeliGAN [38]. and DSP [98], four approaches optimizing for diversity objectives. The results for these baselines are reported as in [97].
203
+
204
+ Implementations. Similar to the previous experiments, we use 8-head attentions and 2-layers MLPs. Since Human3.6M is significantly more complex and multi-modal than the time series forecasting datasets, we make use of 3 stochastic layers, as opposed to 2 layers for HumanEva-I. For Human3.6M, the context and target observations are significantly longer and set up for long-term predictions, so we only infer latent variables for target observations. Appendix C also contains further details about our models and their number of parameters.
205
+
206
+ Quantitative Results. Table 3 shows that our models convincingly outperform all baselines based on both metrics ADE and FDE, with the gains significantly higher for the larger dataset Human3.6M. We emphasize that our favorable performance is evaluated using random samples, while the closest competitor, DLow [97], relies on a separate model for selecting samples to promote diversity, which can potentially be combined with our probabilistic transformer for further improvements.
207
+
208
+ Qualitative Results. We show in Figure 3 human pose predictions made by our model that are most similar to the corresponding ground truths among a collection of such stochastic predictions. The similarities between the body-part movements in both sequences suggest that our model has been able to capture the temporal dynamics quite well.
209
+
210
+ # 6 Conclusion & Discussion
211
+
212
+ In this work, we have introduced generative models for multivariate time series that combines strengths of state space models and transformer architectures. In contrast to previous work, our models do not rely on recurrent neural networks but make extensive use of attention mechanism. We also extend our models to include hierarchical latent variables, inspired by recent developments of VAEs for non-sequential data [17, 83]. Empirical experiments show that our models perform remarkably well on time series forecasting and human motion prediction.
213
+
214
+ Our models do not come without limitations, however. As in other transformer-based approaches, the reliance on attention incurs a quadratic time and memory complexity. While we do not find it problematic in our experiments, the limitation necessarily hinders applications of our models in tasks characterized by long-term dependencies such as language modelling or music generation [36]. Fortunately, recent work on sparse transformer [9, 18, 50, 55] can potentially address the issue, and we leave such an investigation for future work.
215
+
216
+ Probabilistic time series forecasting is a fundamental research problem with wide-ranging applications in society. Although we have not explored healthcare applications of our work, previously proposed methods with similar formulations have demonstrated potentials of forecasting techniques [1, 81] in diagnoses or disease control.
217
+
218
+ # 7 Acknowledgment
219
+
220
+ Financial support is gratefully acknowledged from a Xerox PARC Faculty Research Award, National Science Foundation Awards 1455172, 1934985, 1940124, and 1940276, USAID, and Cornell University Atkinson Center for a Sustainable Future.
221
+
222
+ References
223
+ [1] Ahmed Alaa and Mihaela van der Schaar. Attentive state-space modeling of disease progression. 2019.
224
+ [2] Alexandre Alahi, Kratarth Goel, Vignesh Ramanathan, Alexandre Robicquet, Li Fei-Fei, and Silvio Savarese. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 961–971, 2016.
225
+ [3] Evan Archer, Il Memming Park, Lars Buesing, John Cunningham, and Liam Paninski. Black box variational inference for state space models. arXiv preprint arXiv:1511.07367, 2015.
226
+ [4] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
227
+ [5] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. [6] Emad Barsoum, John Kender, and Zicheng Liu. Hp-gan: Probabilistic 3d human motion prediction via gan. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 1418–1427, 2018. [7] Luc Bauwens, Sebastien Laurent, and Jeroen VK Rombouts. Multivariate garch models: a ´ survey. Journal of applied econometrics, 21(1):79–109, 2006. [8] Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. In NIPS 2014 Workshop on Advances in Variational Inference, 2014.
228
+ [9] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
229
+ [10] Konstantinos Benidis, Syama Sundar Rangapuram, Valentin Flunkert, Bernie Wang, Danielle Maddix, Caner Turkmen, Jan Gasthaus, Michael Bohlke-Schneider, David Salinas, Lorenzo Stella, et al. Neural forecasting: Introduction and literature overview. arXiv preprint arXiv:2004.10240, 2020.
230
+ [11] Apratim Bhattacharyya, Bernt Schiele, and Mario Fritz. Accurate and diverse sampling of sequences based on a “best of many” sample objective. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8485–8493, 2018.
231
+ [12] George EP Box, Gwilym M Jenkins, Gregory C Reinsel, and Greta M Ljung. Time series analysis: forecasting and control. John Wiley & Sons, 2015.
232
+ [13] Judith Butepage, Michael J Black, Danica Kragic, and Hedvig Kjellstrom. Deep representation learning for human motion prediction and classification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6158–6166, 2017.
233
+ [14] Defu Cao, Yujing Wang, Juanyong Duan, Ce Zhang, Xia Zhu, Conguri Huang, Yunhai Tong, Bixiong Xu, Jing Bai, Jie Tong, et al. Spectral temporal graph neural network for multivariate time-series forecasting. arXiv preprint arXiv:2103.07719, 2021.
234
+ [15] Real Carbonneau, Kevin Laframboise, and Rustam Vahidov. Application of machine learning techniques for supply chain demand forecasting. European Journal of Operational Research, 184(3):1140–1154, 2008.
235
+ [16] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, et al. Argoverse: 3d tracking and forecasting with rich maps. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8740–8749. IEEE Computer Society, 2019.
236
+ [17] Rewon Child. Very deep vaes generalize autoregressive models and can outperform them on images. arXiv preprint arXiv:2011.10650, 2020.
237
+ [18] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
238
+ [19] Kyunghyun Cho, B van Merrienboer, Caglar Gulcehre, F Bougares, H Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP 2014), 2014.
239
+ [20] Edward Choi, Mohammad Taha Bahadori, Joshua A Kulas, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Retain: An interpretable predictive model for healthcare using reverse time attention mechanism. Advances in Neural Information Processing Systems, pages 3512–3520, 2016.
240
+ [21] Edward Choi, Mohammad Taha Bahadori, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Doctor ai: Predicting clinical events via recurrent neural networks. In Machine learning for healthcare conference, pages 301–318. PMLR, 2016.
241
+ [22] Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. Advances in Neural Information Processing Systems, 28:2980–2988, 2015.
242
+ [23] Emmanuel de Bezenac, Syama Sundar Rangapuram, Konstantinos Benidis, Michael Bohlke- ´ Schneider, Richard Kurle, Lorenzo Stella, Hilaf Hasson, Patrick Gallinari, and Tim Januschowski. Normalizing kalman filters for multivariate time series analysis. Advances in Neural Information Processing Systems, 33, 2020.
243
+ [24] Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. In International Conference on Machine Learning, pages 1174–1183. PMLR, 2018.
244
+ [25] Nat Dilokthanakul, Pedro AM Mediano, Marta Garnelo, Matthew CH Lee, Hugh Salimbeni, Kai Arulkumaran, and Murray Shanahan. Deep unsupervised clustering with gaussian mixture variational autoencoders. arXiv preprint arXiv:1611.02648, 2016.
245
+ [26] Linhao Dong, Shuang Xu, and Bo Xu. Speech-transformer: a no-recurrence sequence-tosequence model for speech recognition. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5884–5888. IEEE, 2018.
246
+ [27] James Durbin and Siem Jan Koopman. Time series analysis by state space methods. Oxford university press, 2012.
247
+ [28] Chenyou Fan, Yuze Zhang, Yi Pan, Xiaoyue Li, Chi Zhang, Rong Yuan, Di Wu, Wensheng Wang, Jian Pei, and Heng Huang. Multi-horizon time series forecasting with temporal attention learning. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 2527–2535, 2019.
248
+ [29] Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 64–72, 2016.
249
+ [30] Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 2207–2215, 2016.
250
+ [31] Marco Fraccaro, Simon Kamronn, Ulrich Paquet, and Ole Winther. A disentangled recognition and nonlinear dynamics model for unsupervised learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 3604–3613, 2017.
251
+ [32] Katerina Fragkiadaki, Sergey Levine, Panna Felsen, and Jitendra Malik. Recurrent network models for human dynamics. In Proceedings of the IEEE International Conference on Computer Vision, pages 4346–4354, 2015.
252
+ [33] Jan Gasthaus, Konstantinos Benidis, Yuyang Wang, Syama Sundar Rangapuram, David Salinas, Valentin Flunkert, and Tim Januschowski. Probabilistic forecasting with spline quantile function rnns. In The 22nd international conference on artificial intelligence and statistics, pages 1901–1910. PMLR, 2019.
253
+ [34] Partha Ghosh, Jie Song, Emre Aksan, and Otmar Hilliges. Learning human motion models for long-term predictions. In 2017 International Conference on 3D Vision (3DV), pages 458– 466. IEEE, 2017.
254
+ [35] Tilmann Gneiting and Adrian E Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American statistical Association, 102(477):359–378, 2007.
255
+ [36] Alexander Greaves-Tunnell and Zaid Harchaoui. A statistical investigation of long memory in language and music. In International Conference on Machine Learning, pages 2394–2403. PMLR, 2019.
256
+ [37] Agrim Gupta, Justin Johnson, Li Fei-Fei, Silvio Savarese, and Alexandre Alahi. Social gan: Socially acceptable trajectories with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2255–2264, 2018.
257
+ [38] Swaminathan Gurumurthy, Ravi Kiran Sarvadevabhatla, and R Venkatesh Babu. Deligan: Generative adversarial networks for diverse and limited data. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 166–174, 2017.
258
+ [39] Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In International Conference on Machine Learning, pages 2555–2565. PMLR, 2019.
259
+ [40] Andrew C Harvey. Forecasting, Structural Time Series Models and the Kalman Filter. Cambridge University Press, 1990.
260
+ [41] Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. 2016.
261
+ [42] Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9 (8):1735–1780, 1997.
262
+ [43] Rob Hyndman, Anne B Koehler, J Keith Ord, and Ralph D Snyder. Forecasting with exponential smoothing: the state space approach. Springer Science & Business Media, 2008.
263
+ [44] Catalin Ionescu, Dragos Papava, Vlad Olaru, and Cristian Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE transactions on pattern analysis and machine intelligence, 36(7):1325–1339, 2013.
264
+ [45] Ashesh Jain, Amir R Zamir, Silvio Savarese, and Ashutosh Saxena. Structural-rnn: Deep learning on spatio-temporal graphs. In Proceedings of the ieee conference on computer vision and pattern recognition, pages 5308–5317, 2016.
265
+ [46] Andrew H Jazwinski. Stochastic processes and filtering theory. Courier Corporation, 2007.
266
+ [47] Maximilian Karl, Maximilian Soelch, Justin Bayer, and Patrick Van der Smagt. Deep variational bayes filters: Unsupervised learning of state space models from raw data. arXiv preprint arXiv:1605.06432, 2016.
267
+ [48] Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171–4186, 2019.
268
+ [49] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. 2014.
269
+ [50] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020.
270
+ [51] Rahul Krishnan, Uri Shalit, and David Sontag. Structured inference networks for nonlinear state space models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017.
271
+ [52] Rahul G Krishnan, Uri Shalit, and David Sontag. Deep kalman filters. arXiv preprint arXiv:1511.05121, 2015.
272
+ [53] Guokun Lai, Wei-Cheng Chang, Yiming Yang, and Hanxiao Liu. Modeling long-and shortterm temporal patterns with deep neural networks. In The 41st International ACM SIGIR Conference on Research & Development in Information Retrieval, pages 95–104, 2018.
273
+ [54] Chen Li, Zhen Zhang, Wee Sun Lee, and Gim Hee Lee. Convolutional sequence to sequence model for human dynamics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5226–5234, 2018.
274
+ [55] Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, and Xifeng Yan. Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. Advances in Neural Information Processing Systems, 32:5243–5253, 2019.
275
+ [56] Zimo Li, Yi Zhou, Shuangjiu Xiao, Chong He, Zeng Huang, and Hao Li. Autoconditioned recurrent networks for extended complex human motion synthesis. arXiv preprint arXiv:1707.05363, 2017.
276
+ [57] Bryan Lim, Sercan O Arik, Nicolas Loeff, and Tomas Pfister. Temporal fusion transformers for interpretable multi-horizon time series forecasting. arXiv preprint arXiv:1912.09363, 2019.
277
+ [58] Zhaojiang Lin, Genta Indra Winata, Peng Xu, Zihan Liu, and Pascale Fung. Variational transformers for diverse response generation. arXiv preprint arXiv:2003.12738, 2020.
278
+ [59] Zachary C Lipton, David C Kale, Charles Elkan, and Randall Wetzel. Learning to diagnose with lstm recurrent neural networks. In International Conference on Learning Representations, 2016.
279
+ [60] Danyang Liu and Gongshen Liu. A transformer-based variational autoencoder for sentence generation. In 2019 International Joint Conference on Neural Networks (IJCNN), pages 1–7. IEEE, 2019.
280
+ [61] Helmut Lutkepohl. ¨ New introduction to multiple time series analysis. Springer Science & Business Media, 2005.
281
+ [62] Lars Maaløe, Marco Fraccaro, Valentin Lievin, and Ole Winther. Biva: A very deep hierarchy of latent variables for generative modeling. In 33rd Conference on Neural Information Processing Systems, page 8882. Neural Information Processing Systems Foundation, 2019.
282
+ [63] Julieta Martinez, Michael J Black, and Javier Romero. On human motion prediction using recurrent neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2891–2900, 2017.
283
+ [64] Julieta Martinez, Rayat Hossain, Javier Romero, and James J Little. A simple yet effective baseline for 3d human pose estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 2640–2649, 2017.
284
+ [65] James E Matheson and Robert L Winkler. Scoring rules for continuous probability distributions. Management science, 22(10):1087–1096, 1976.
285
+ [66] Kevin P Murphy. Machine learning: a probabilistic perspective. 2012.
286
+ [67] Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard Lewis, and Satinder Singh. Actionconditional video prediction using deep networks in atari games. arXiv preprint arXiv:1507.08750, 2015.
287
+ [68] Boris N Oreshkin, Dmitri Carpov, Nicolas Chapados, and Yoshua Bengio. N-beats: Neural basis expansion analysis for interpretable time series forecasting. In International Conference on Learning Representations, 2019.
288
+ [69] Andrew J Patton. A review of copula models for economic time series. Journal of Multivariate Analysis, 110:4–18, 2012.
289
+ [70] Yao Qin, Dongjin Song, Haifeng Chen, Wei Cheng, Guofei Jiang, and Garrison Cottrell. A dual-stage attention-based recurrent neural network for time series prediction. arXiv preprint arXiv:1704.02971, 2017.
290
+ [71] Syama Sundar Rangapuram, Matthias W Seeger, Jan Gasthaus, Lorenzo Stella, Yuyang Wang, and Tim Januschowski. Deep state space models for time series forecasting. Advances in neural information processing systems, 31:7785–7794, 2018.
291
+ [72] Kashif Rasul, Abdul-Saboor Sheikh, Ingmar Schuster, Urs Bergmann, and Roland Vollgraf. Multi-variate probabilistic time series forecasting via conditioned normalizing flows. arXiv preprint arXiv:2002.06103, 2020.
292
+ [73] Kashif Rasul, Calvin Seward, Ingmar Schuster, and Roland Vollgraf. Autoregressive denoising diffusion models for multivariate probabilistic time series forecasting. arXiv preprint arXiv:2101.12072, 2021.
293
+ [74] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International conference on machine learning, pages 1278–1286. PMLR, 2014.
294
+ [75] David Salinas, Michael Bohlke-Schneider, Laurent Callot, Roberto Medico, and Jan Gasthaus. High-dimensional multivariate forecasting with low-rank gaussian copula processes. arXiv preprint arXiv:1910.03002, 2019.
295
+ [76] David Salinas, Valentin Flunkert, Jan Gasthaus, and Tim Januschowski. Deepar: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting, 36 (3):1181–1191, 2020.
296
+ [77] Iulian Serban, Alessandro Sordoni, Ryan Lowe, Laurent Charlin, Joelle Pineau, Aaron Courville, and Yoshua Bengio. A hierarchical latent variable encoder-decoder model for generating dialogues. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017.
297
+ [78] Leonid Sigal and Michael J Black. Humaneva: Synchronized video and motion capture dataset for evaluation of articulated human motion. Brown Univertsity TR, 120(2), 2006.
298
+ [79] Slawek Smyl, Jai Ranganathan, and Andrea Pasqua. M4 forecasting competition: Introducing a new hybrid es-rnn model. URL: https://eng. uber. com/m4-forecasting-competition, 2018.
299
+ [80] Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. Ladder variational autoencoders. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 3745–3753, 2016.
300
+ [81] Huan Song, Deepta Rajan, Jayaraman Thiagarajan, and Andreas Spanias. Attend and diagnose: Clinical time series analysis using attention models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.
301
+ [82] Ruey S Tsay. Multivariate time series analysis: with R and financial applications. John Wiley & Sons, 2013.
302
+ [83] Arash Vahdat and Jan Kautz. Nvae: A deep hierarchical variational autoencoder. arXiv preprint arXiv:2007.03898, 2020.
303
+ [84] Roy Van der Weide. Go-garch: a multivariate generalized orthogonal garch model. Journal of Applied Econometrics, 17(5):549–564, 2002.
304
+ [85] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6000–6010, 2017.
305
+ [86] Ruben Villegas, Arkanath Pathak, Harini Kannan, Dumitru Erhan, Quoc V Le, and Honglak Lee. High fidelity video prediction with large stochastic recurrent neural networks. In NeurIPS, 2019.
306
+ [87] Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In Proceedings of the IEEE international conference on computer vision, pages 3332–3341, 2017.
307
+
308
+ [88] Eric A Wan and Rudolph Van Der Merwe. The unscented kalman filter for nonlinear estimation. In Proceedings of the IEEE 2000 Adaptive Systems for Signal Processing, Communications, and Control Symposium (Cat. No. 00EX373), pages 153–158. Ieee, 2000.
309
+
310
+ [89] Jack M Wang, David J Fleet, and Aaron Hertzmann. Gaussian process dynamical models for human motion. IEEE transactions on pattern analysis and machine intelligence, 30(2): 283–298, 2007.
311
+
312
+ [90] Tianming Wang and Xiaojun Wan. T-cvae: Transformer-based conditioned variational autoencoder for story completion. In IJCAI, pages 5233–5239, 2019.
313
+
314
+ [91] Yuyang Wang, Alex Smola, Danielle Maddix, Jan Gasthaus, Dean Foster, and Tim Januschowski. Deep factors for forecasting. In International Conference on Machine Learning, pages 6607–6617. PMLR, 2019.
315
+
316
+ [92] Mike West and Jeff Harrison. Bayesian forecasting and dynamic models. Springer Science & Business Media, 2006.
317
+
318
+ [93] Di Wu and Ling Shao. Leveraging hierarchical parametric networks for skeletal joints based action segmentation and recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 724–731, 2014.
319
+
320
+ [94] Neo Wu, Bradley Green, Xue Ben, and Shawn O’Banion. Deep transformer models for time series forecasting: The influenza prevalence case. arXiv preprint arXiv:2001.08317, 2020.
321
+
322
+ [95] Xinchen Yan, Akash Rastogi, Ruben Villegas, Kalyan Sunkavalli, Eli Shechtman, Sunil Hadap, Ersin Yumer, and Honglak Lee. Mt-vae: Learning motion transformations to generate multimodal human dynamics. In Proceedings of the European Conference on Computer Vision (ECCV), pages 265–281, 2018.
323
+
324
+ [96] Rose Yu, Stephan Zheng, Anima Anandkumar, and Yisong Yue. Long-term forecasting using tensor-train rnns. Arxiv, 2017.
325
+
326
+ [97] Ye Yuan and Kris Kitani. Dlow: Diversifying latent flows for diverse human motion prediction. In European Conference on Computer Vision, pages 346–364. Springer, 2020.
327
+
328
+ [98] Ye Yuan and Kris M Kitani. Diverse trajectory forecasting with determinantal point processes. In International Conference on Learning Representations, 2019.
329
+
330
+ [99] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In International conference on machine learning, pages 7354– 7363. PMLR, 2019.
331
+
332
+ [100] Jingyu Zhao, Feiqing Huang, Jia Lv, Yanjie Duan, Zhen Qin, Guodong Li, and Guangjian Tian. Do rnn and lstm have long memory? In International Conference on Machine Learning, pages 11365–11375. PMLR, 2020.
333
+
334
+ [101] Shengjia Zhao, Jiaming Song, and Stefano Ermon. Learning hierarchical features from generative models. arXiv preprint arXiv:1702.08396, 2017.
335
+
336
+ 1. For all authors...
337
+
338
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Section 1 and 5.
339
+ (b) Did you describe the limitations of your work? [Yes] See Section 6.
340
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 6.
341
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
342
+
343
+ 2. If you are including theoretical results...
344
+
345
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
346
+
347
+ 3. If you ran experiments...
348
+
349
+ (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)? [Yes] See supplemental material.
350
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appdendix D in supplemental material.
351
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Table 1.
352
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appdendix D in supplemental material.
353
+
354
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
355
+
356
+ (a) If your work uses existing assets, did you cite the creators? [Yes] See Section 4.
357
+ (b) Did you mention the license of the assets? [Yes] See Appendix A in supplemental material.
358
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] See supplemental material. We are also commited to open source our code upon publication.
359
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] See Appendix A in supplemental material.
360
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] See Appendix A in supplemental material.
361
+
362
+ 5. If you used crowdsourcing or conducted research with human subjects...
363
+
364
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
365
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
366
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/HfpNVDg3ExA/HfpNVDg3ExA_content_list.json ADDED
@@ -0,0 +1,1452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Probabilistic Transformer for Time Series Analysis ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 187,
8
+ 122,
9
+ 807,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Binh Tang Department of Statistics and Data Science Cornell University Ithaca, NY 14850 bvt5@cornell.edu ",
17
+ "bbox": [
18
+ 204,
19
+ 200,
20
+ 480,
21
+ 270
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "David S. Matteson Department of Statistics and Data Science Cornell University Ithaca, NY 14850 matteson@cornell.edu ",
28
+ "bbox": [
29
+ 517,
30
+ 200,
31
+ 794,
32
+ 270
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 306,
43
+ 535,
44
+ 323
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Generative modeling of multivariate time series has remained challenging partly due to the complex, non-deterministic dynamics across long-distance time steps. In this paper, we propose deep probabilistic methods that combine state-space models (SSMs) with transformer architectures. In contrast to previously proposed SSMs, our approaches use attention mechanism to model non-Markovian dynamics in the latent space and avoid recurrent neural networks entirely. We also extend our models to include several layers of stochastic variables organized in a hierarchy for further expressiveness. Compared to transformer models, ours are probabilistic, non-autoregressive, and capable of generating diverse long-term forecasts with accounted uncertainty. Extensive experiments show that our models consistently outperform competitive baselines on various tasks and datasets, including time series forecasting and human motion prediction. ",
51
+ "bbox": [
52
+ 233,
53
+ 339,
54
+ 764,
55
+ 505
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 534,
66
+ 310,
67
+ 551
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Generative modeling of multivariate time series is a challenging problem with wide-ranging applications in demand forecasting [15, 76], autonomous driving [2, 16], robotics [29, 67], and health care [20, 21, 59]. Despite remarkable progress in recent years, models that predict high-dimensional future observations from a few past examples have remained intractable, partly due to the complex, non-deterministic temporal dynamics across long-distance time steps. Given a sequence of human poses, for example, such models must internally figure out the involved dynamics of various body components across space and time while maintaining the inherent uncertainty of multiple plausible futures, even though only one such future is observed. ",
74
+ "bbox": [
75
+ 174,
76
+ 566,
77
+ 825,
78
+ 678
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Among proposed probabilistic approaches, state space models (SSMs) provide a principled framework for learning and drawing inference from sequential inputs [27, 66]. While autoregressive models feed its predictions back into the dynamics model without any compressed representation of data, SSMs model stochastic transitions between abstract states using latent variables, allowing for efficient state-to-state sampling without the need to render high-dimensional observations. Gaussian linear dynamical systems (LDSs), one of the best known SSMs [92], for example, postulate linear state transitions and enjoy exact inference via the celebrated Kalman filter algorithm. ",
85
+ "bbox": [
86
+ 174,
87
+ 684,
88
+ 825,
89
+ 781
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "While early extensions of LDSs focus on linearization [46] and unscented transform [88], recent work that marry state space models with deep neural networks offers much more flexibility to model complex dependencies across different time steps. Some approaches retain the Markovian dynamics of LDSs and only replace their linear observation models with feed-forward networks [23, 31, 47, 71], whereas others favor nonlinear state transitions and parametrize such dependencies via recurrent neural networks (RNNs) [22, 23, 30, 39, 51, 75]. Despite differences, both Markovian transitions and RNNs are often not capable of capturing long-range dependencies in highly structured sequential inputs [36, 100], limiting the capacity of the corresponding SSMs. ",
96
+ "bbox": [
97
+ 174,
98
+ 787,
99
+ 825,
100
+ 898
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/6209b8c1681d417ef10b0d5a80eb743603ec9c0900243de7593a7d1462ab034a.jpg",
107
+ "image_caption": [
108
+ "Figure 1: Graphical model representations of linear dynamical systems (LDSs) in (a), and our proposed models (ProTran) in (b), (c), and (d). Black arrows denote the generative mechanism and red arrows the inference procedure. The separation of generation and inference in (c) and (d) is for readability. While traditional SSMs such as LDSs are limited to Markovian dynamics and linear dependencies, our models allow for non-Markovian and non-linear interactions between time steps via attention mechanism. A multi-layer extension of our models further increases expressiveness without compromising the tractable inference procedure. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 191,
113
+ 85,
114
+ 813,
115
+ 285
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "In this work, we propose to combine the complementary strengths of SSMs and transformer architectures [85], a powerful mechanism for modeling long-term interactions that enjoys success across a variety of sequence modeling tasks [26, 48, 99]. In contrast to most SSMs, our models make extensive use of attention mechanism [5, 85] between latent variables to model non-Markovian dynamics (see Figure 1). Compared to transformer-based methods, our models are probabilistic, nonautoregressive in a similar fashion to LDSs, and capable of generating diverse long-term forecasts with uncertainty estimates. ",
122
+ "bbox": [
123
+ 173,
124
+ 404,
125
+ 825,
126
+ 502
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Our main contributions are threefold. First, we propose novel SSMs based on transformer architectures for multivariate time series, which include generative models and inference procedures based on variational inference [49, 74]. Second, we extend our models to include several layers of stochastic latent variables organized in a hierarchy for further expressiveness. Third, we conduct extensive experiments on time series forecasting and human motion prediction and demonstrate that our Probabilistic Transformer (ProTran) performs remarkably well compared to various state-of-theart baselines. ",
133
+ "bbox": [
134
+ 173,
135
+ 507,
136
+ 825,
137
+ 606
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 Preliminaries ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 174,
147
+ 633,
148
+ 318,
149
+ 651
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "2.1 Variational State Space Models ",
156
+ "text_level": 1,
157
+ "bbox": [
158
+ 174,
159
+ 670,
160
+ 429,
161
+ 685
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "Let $\\{ \\mathbf { x } _ { 1 : T _ { i } } ^ { ( i ) } \\} _ { i = 1 } ^ { N }$ consist of $N$ univariate time series w ere $\\mathbf { x } _ { 1 : T _ { i } } ^ { ( i ) } = ( \\mathbf { x } _ { 1 } ^ { ( i ) } , \\mathbf { x } _ { 2 } ^ { ( i ) } , \\cdot \\cdot \\cdot \\mathbf { x } _ { T _ { i } } ^ { ( i ) } )$ and $\\mathbf { x } _ { t } ^ { ( i ) }$ denotes the vaue of the $i$ $t$ We consider the multivariate form $\\mathbf { x } _ { 1 : T } = ( \\mathbf { x } _ { 1 } , \\mathbf { x } _ { 2 } , \\ldots , \\mathbf { x } _ { T } )$ where $\\mathbf { x } _ { t } = ( \\mathbf { x } _ { t } ^ { ( 1 ) } , . . . \\mathbf { x } _ { t } ^ { ( N ) } ) \\in \\mathbb { R } ^ { N }$ . Conditioning on observed values up to time $C$ , we aim to produce distributional forecasts into the future $p ( \\mathbf { x } _ { C + 1 : T } \\mid \\mathbf { x } _ { 1 : C } )$ . For clarity, we refer to $\\mathbf { x } _ { 1 : C }$ and $\\mathbf { x } _ { C + 1 : T }$ as contexts and targets, respectively. ",
168
+ "bbox": [
169
+ 173,
170
+ 698,
171
+ 825,
172
+ 773
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "We are interested in probabilistic models parametrized by $\\theta$ of the form ",
179
+ "bbox": [
180
+ 173,
181
+ 779,
182
+ 642,
183
+ 794
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "equation",
189
+ "img_path": "images/a0644fcb9c8f885a685398a8b6f6f73851de38e5831cc86bfc4027ce014d2bef.jpg",
190
+ "text": "$$\np _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { x } _ { 1 : C } ) = \\int p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } ) p _ { \\theta } ( \\mathbf { z } _ { 1 : T } \\mid \\mathbf { x } _ { 1 : C } ) d \\mathbf { z } _ { 1 : T }\n$$",
191
+ "text_format": "latex",
192
+ "bbox": [
193
+ 310,
194
+ 808,
195
+ 687,
196
+ 840
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "where ${ \\bf z } _ { 1 : T } = ( { \\bf z } _ { 1 } , { \\bf z } _ { 2 } , \\ldots , { \\bf z } _ { T } )$ denotes the corresponding sequence of latent variables, sometimes referred to as states. In other words, we assume a generative model that can be decomposed into a transition model $p _ { \\theta } ( \\mathbf { z } _ { 1 : T } \\mid \\mathbf { x } _ { 1 : C } )$ between the latent variables conditioned on the contexts, and an emission model $p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } )$ from the latent variables to observable outputs. In particular, we further impose several assumptions on both models: 1 ",
203
+ "bbox": [
204
+ 174,
205
+ 854,
206
+ 825,
207
+ 912
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "",
214
+ "bbox": [
215
+ 176,
216
+ 90,
217
+ 521,
218
+ 106
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "equation",
224
+ "img_path": "images/0fd14c83e4f3f2c7584f799eb3cc4b42db04d9bdee8e4f0c19a6f5d3fdaa2e81.jpg",
225
+ "text": "$$\np _ { \\theta } ( \\mathbf { z } _ { 1 : T } \\mid \\mathbf { x } _ { 1 : C } ) = \\prod _ { t = 1 } ^ { T } p _ { \\theta } ( \\mathbf { z } _ { t } \\mid \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : C } ) , \\qquad p _ { \\theta } ( \\mathbf { x } _ { 1 : T } \\mid \\mathbf { z } _ { 1 : T } ) = \\prod _ { t = 1 } ^ { T } p _ { \\theta } ( \\mathbf { x } _ { t } \\mid \\mathbf { z } _ { t } ) .\n$$",
226
+ "text_format": "latex",
227
+ "bbox": [
228
+ 232,
229
+ 113,
230
+ 766,
231
+ 157
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "As demonstrated in Figure 1(b), the latent variable $\\mathbf { z } _ { t + 1 }$ depends not only on $\\mathbf { z } _ { t }$ but also on all of its preceding latent variables, including $\\mathbf { z } _ { t - 1 }$ , in contrast to linear dynamical systems (LDSs). In addition, the transition and emission models allow for non-linearity via neural network parametrizations. These assumptions aim to maximize model capacity for real-world applications with complex emissions or temporal dependencies. ",
238
+ "bbox": [
239
+ 173,
240
+ 170,
241
+ 825,
242
+ 239
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "However, neither $\\mathbf { x } _ { 1 : t - 1 }$ nor $\\mathbf { z } _ { 1 : t - 1 }$ are included in the emission model $p ( \\mathbf { x } _ { t } \\mid \\mathbf { z } _ { 1 : T } , \\mathbf { x } _ { 1 : C } )$ . Such assumptions are important, as it has been argued previously that a leakage of information from the latent space in autoregressive models can hinder long-term predictions [23, 47]. While all ground truth observations are available during training, the entire sequence has to be generated sequentially at test time, making the dependencies on $\\mathbf { x } _ { 1 : t - 1 }$ prone to accumulated errors over multiple time steps. By letting the latent variable $\\mathbf { z } _ { t }$ capture all information needed to render $\\mathbf { x } _ { t }$ , we also avoid the computational costs associated with repeatedly decoding and encoding $\\mathbf { x } _ { t }$ in multi-step predictions. ",
249
+ "bbox": [
250
+ 173,
251
+ 246,
252
+ 825,
253
+ 344
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "The inclusion of nonlinear state transitions and observation models necessarily requires approximate inference. We follow the stochastic variational inference framework [49, 74] and assume that the variational posterior parametrized by $\\phi$ can be decomposed auto-regressively as $q _ { \\phi } ( { \\bf z } _ { 1 : T } \\mid { \\bf x } _ { 1 : T } ) =$ $\\begin{array} { r } { \\prod _ { t } q _ { \\phi } ( \\mathbf { z } _ { t } \\mid \\dot { \\mathbf { z } } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : T } ) } \\end{array}$ , which leads to a lower bound on the log likelihood: ",
260
+ "bbox": [
261
+ 173,
262
+ 349,
263
+ 823,
264
+ 406
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "equation",
270
+ "img_path": "images/ce4b1a73304e24b184833394510d4ee03297b0f7b049de958c830d34e7c27af2.jpg",
271
+ "text": "$$\n\\log p _ { \\theta } ( \\mathbf { x } _ { 1 : T } | \\mathbf { x } _ { 1 : C } ) \\geq \\sum _ { t = 1 } ^ { T } ( \\mathbb { E } _ { q } \\left[ \\log p _ { \\theta } ( \\mathbf { x } _ { t } | \\mathbf { z } _ { t } ) \\right] - \\mathsf { K L } ( q _ { \\phi } ( \\mathbf { z } _ { t } | \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : T } ) \\parallel p _ { \\theta } ( \\mathbf { z } _ { t } | \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : C } ) ) ) ,\n$$",
272
+ "text_format": "latex",
273
+ "bbox": [
274
+ 184,
275
+ 412,
276
+ 810,
277
+ 458
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "where $\\mathsf { K L }$ is the Kullback-Leibler divergence. ",
284
+ "bbox": [
285
+ 176,
286
+ 479,
287
+ 472,
288
+ 494
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "For computational stability, we assume homoscedasticity and choose Laplace distribution with scale parameter $\\beta$ as a parametric form for $p _ { \\theta } ( \\mathbf { x } _ { t } \\mid \\mathbf { z } _ { t } )$ , i.e. we optimize for $L _ { 1 }$ reconstruction loss with a cross-validated factor $\\beta$ for the KL term, following similar variational autoencoder (VAE) work [24, 41, 86]. Such an assumption does not necessarily limit the capacity of our models, as powerful stochastic transitions and flexible emission models can theoretically characterize arbitrary noise covariance [66]. Incorporating structured probabilistic outputs such as Gaussian copulas [75] or normalizing flows [23] can potentially further improve our model performance. ",
295
+ "bbox": [
296
+ 173,
297
+ 500,
298
+ 825,
299
+ 598
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "2.2 Transformer Architectures ",
306
+ "text_level": 1,
307
+ "bbox": [
308
+ 174,
309
+ 614,
310
+ 400,
311
+ 628
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Central to our models and other transformer-based approaches [48, 85] is the notion of attention [5], which allows the models to focus on important parts within a context. Multi-head attention, for example, maps a sequence of queries $\\mathbf { Q } \\doteq \\mathbb { R } ^ { \\ell _ { q } \\times \\dot { d } }$ of length $\\ell _ { q }$ to a sequence of outputs ${ \\bf O } =$ $[ \\mathbf { O } _ { 1 } , \\dots , \\mathbf { O } _ { H } ] \\in \\mathbb { R } ^ { \\ell _ { q } \\times d }$ of the same size by attending over given $\\ell _ { k }$ key-value pairs $\\mathbf { K } \\in \\mathbb { R } ^ { \\ell _ { k } \\times d }$ , V ∈ R\\`k×d: ",
318
+ "bbox": [
319
+ 173,
320
+ 640,
321
+ 825,
322
+ 712
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "img_path": "images/1d2e4c99d03481dab110a931afaf26be7a39372e107e60a899e93cb9f2466531.jpg",
329
+ "text": "$$\n\\mathbf { O } _ { h } = \\mathsf { A t t e n t i o n } ( \\mathbf { Q } _ { h } , \\mathbf { K } _ { h } , \\mathbf { V } _ { h } ) = \\mathsf { S o f t m a x } \\left( \\frac { \\mathbf { Q } _ { h } \\mathbf { K } _ { h } ^ { \\mathsf { T } } } { \\sqrt { d } } \\right) \\mathbf { V } _ { h } ,\n$$",
330
+ "text_format": "latex",
331
+ "bbox": [
332
+ 302,
333
+ 718,
334
+ 694,
335
+ 753
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "where $\\mathbf { Q } _ { h } = \\mathbf { Q } \\mathbf { W } _ { h } ^ { Q }$ , $\\mathbf { K } _ { h } = \\mathbf { K } \\mathbf { W } _ { h } ^ { K }$ , $\\mathbf { V } _ { h } = \\mathbf { V } \\mathbf { W } _ { h } ^ { V }$ are projected queries, keys, and values coro head , we re $h \\in [ 1 , H ]$ with learning parameters n attention mechanism as s $\\mathbf { W } _ { h } ^ { Q } , \\mathbf { W } _ { h } ^ { K } , \\mathbf { W } _ { h } ^ { V }$ , respectively. In case $\\mathbf { Q } = \\mathbf { K } = \\mathbf { V }$ ",
342
+ "bbox": [
343
+ 173,
344
+ 761,
345
+ 825,
346
+ 810
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "Given fully observed sequences of inputs, the mapping can be computed efficiently without any imposed sequential order often seen in recurrent neural networks [19, 42]. More importantly, the direct connections between long-distance time steps are baked into the mechanism as information from previous time steps is easily accessible without being compressed into a fixed representation, easing optimization and learning of long-term dependencies [5, 85]. ",
353
+ "bbox": [
354
+ 173,
355
+ 815,
356
+ 825,
357
+ 886
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Without recurrence, Transformer [85] encodes information about each time step $t$ with pred efined sinusoidal positional embeddings Position $( t ) = [ p _ { t } ( 1 ) , \\ldots , p _ { t } ( d ) ] \\in \\mathbb { R } ^ { d }$ where the $i$ -th embedding is given by $p _ { t } ( i ) = \\sin ( t \\cdot c ^ { i / d } )$ for even $i$ and $p _ { t } ( i ) = \\cos ( t \\cdot c ^ { i / d } )$ for odd $i$ and $c$ is some large constant. Empirical results show that such positional embeddings are also important to our models. ",
364
+ "bbox": [
365
+ 174,
366
+ 90,
367
+ 825,
368
+ 147
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "3 Probabilistic Transformer ",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 176,
378
+ 165,
379
+ 423,
380
+ 183
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "In this section, we first present our single-layered model and subsequently its multi-layered extension for a hierarchy of stochastic latent variables. As alluded earlier, our model consists of a generative model and an inference model that share information and parameters extensively. ",
387
+ "bbox": [
388
+ 174,
389
+ 196,
390
+ 825,
391
+ 239
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "3.1 Single-Layered Probabilistic Transformer ",
398
+ "text_level": 1,
399
+ "bbox": [
400
+ 173,
401
+ 255,
402
+ 504,
403
+ 271
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "Generative Model. Given some contexts $\\mathbf { x } _ { 1 : C }$ , we first apply a linear projection and combine it with a positional embedding to obtain $\\mathbf { h } _ { 1 : C } \\in \\mathbb { R } ^ { d }$ , i.e. ",
410
+ "bbox": [
411
+ 174,
412
+ 281,
413
+ 823,
414
+ 310
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "equation",
420
+ "img_path": "images/4c78c8fd31901e729197f33f534ccb60844c538fb889cc90cd3aea786d06e82d.jpg",
421
+ "text": "$$\n\\mathbf { h } _ { t } = \\mathsf { L a y e r N o r m } ( \\mathsf { M L P } ( \\mathbf { x } _ { t } ) + \\mathsf { P o s i t i o n } ( t ) ) ,\n$$",
422
+ "text_format": "latex",
423
+ "bbox": [
424
+ 354,
425
+ 316,
426
+ 642,
427
+ 333
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "where LayerNorm and MLP denote layer normalizations [4] and multi-layer perceptrons, respectively. While a traditional transformer model often dedicates an entire encoder for the same purpose [55, 72], we find such a simple mapping works sufficiently well in conjunction with the contextattention module of the corresponding decoder. ",
434
+ "bbox": [
435
+ 174,
436
+ 339,
437
+ 823,
438
+ 396
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "As implied in Equation (2), our latent dynamics decomposes auto-regressively. At each time step, we parametri ze the distribution $p _ { \\theta } ( \\mathbf { z } _ { t } \\mid \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : C } )$ by a Gaussian with parameters resulting from two sequential steps of attention: a self-attention over the previously inferred states $\\mathbf { z } _ { 1 : t - 1 }$ and another attention over the projected contexts $\\mathbf { h } _ { 1 : C }$ . These two operations mirror those found in the decoder of Transformer [85], with the stochastic latent variables replacing its decoder inputs. ",
445
+ "bbox": [
446
+ 174,
447
+ 401,
448
+ 825,
449
+ 472
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Unfortunately, using stochastic samples of $\\mathbf { z } _ { t }$ as attention queries is problematic, as purely stochastic transitions make it difficult for the model to reliably retain information across multiple time steps [17, 30, 39]. We therefore encapsulate the latent variables in hidden representations $\\mathbf { w } _ { t }$ that also has a deterministic component. Combined with the attention steps, such representations help model long-range temporal dependencies while accounting for the stochasticity of future observations. ",
456
+ "bbox": [
457
+ 173,
458
+ 478,
459
+ 825,
460
+ 547
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Starting with a learnable, context-agnostic representation $\\mathbf { w } _ { 0 }$ , we recursively update $\\mathbf { w } _ { t }$ using a stochastic sample from $p _ { \\theta } ( \\mathbf { z } _ { t } \\mid \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : C } )$ and th e positional embedding for the current time step $t$ . The generating process for the time step $t$ can be summarized by the following pseudocode: ",
467
+ "bbox": [
468
+ 173,
469
+ 553,
470
+ 821,
471
+ 597
472
+ ],
473
+ "page_idx": 3
474
+ },
475
+ {
476
+ "type": "equation",
477
+ "img_path": "images/79d10428ba726f276b73d0eb6f9c84f49d12e173f73bee794357ec744004ef84.jpg",
478
+ "text": "$$\n\\begin{array} { r l } & { \\bar { { \\bf w } } _ { t } = \\mathsf { L a y e r N o r m } \\big ( { \\bf w } _ { t - 1 } + \\mathsf { A t t e n t i o n } \\big ( { \\bf w } _ { t - 1 } , { \\bf w } _ { 1 : t - 1 } , { \\bf w } _ { 1 : t - 1 } \\big ) \\big ) } \\\\ & { \\hat { \\bf w } _ { t } = \\mathsf { L a y e r N o r m } \\big ( \\bar { \\bf w } _ { t } + \\mathsf { A t t e n t i o n } \\big ( \\bar { \\bf w } _ { t } , { \\bf h } _ { 1 : C } , { \\bf h } _ { 1 : C } \\big ) \\big ) } \\\\ & { { \\bf z } _ { t } = \\mathsf { S a m p l e } \\big ( \\mathcal { N } \\big ( { \\bf z } _ { t } ; \\mathsf { M L P } ( \\hat { \\bf w } _ { t } ) , \\mathsf { S o f t p l u s } ( \\mathsf { M L P } ( \\hat { \\bf w } _ { t } ) \\big ) \\big ) \\big ) } \\\\ & { { \\bf w } _ { t } = \\mathsf { L a y e r N o r m } \\big ( \\hat { \\bf w } _ { t } + \\mathsf { M L P } ( { \\bf z } _ { t } ) + \\mathsf { P o s i t i o n } ( t ) \\big ) , } \\end{array}\n$$",
479
+ "text_format": "latex",
480
+ "bbox": [
481
+ 294,
482
+ 602,
483
+ 702,
484
+ 674
485
+ ],
486
+ "page_idx": 3
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "where Sample and Softplus are the Gaussian sampling and approximating rectifier operators. ",
491
+ "bbox": [
492
+ 173,
493
+ 679,
494
+ 787,
495
+ 694
496
+ ],
497
+ "page_idx": 3
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "Each stochastic sample of $\\mathbf { w } _ { 1 : T }$ is then mapped to a sequence of $\\mathbf { x } _ { \\mathrm { 1 : } T }$ via a multi-layer perceptron. We emphasize that our generation procedure in the latent space is more efficient than others in the observation space, which requires encoding and decoding high-dimensional inputs repeatedly. ",
502
+ "bbox": [
503
+ 174,
504
+ 718,
505
+ 825,
506
+ 761
507
+ ],
508
+ "page_idx": 3
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "Inference Model. We parametrize the approximate posterior $q _ { \\phi } ( \\mathbf { z } _ { t } \\mid \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : T } )$ at time step $t$ in a simi lar fashion to the prior $p _ { \\theta } ( \\mathbf { z } _ { t } \\mid \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : C } )$ . Indeed, these parametrizations share most parameters and are done simultaneously in the same recursive loop, following the exact same steps in Equation (6) and Equation (7) (see Figure 1). We note that similar sharing techniques between the generative and inference processes have emerged as a common theme among recent successful VAE models [17, 62, 83]. ",
513
+ "bbox": [
514
+ 173,
515
+ 765,
516
+ 825,
517
+ 849
518
+ ],
519
+ "page_idx": 3
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "While the prior only has access to the conditioning observations $\\mathbf { x } _ { 1 : C }$ , the approximate posterior should take into account all observations during training, including the targets $x _ { C + 1 : T }$ . Due to the inherent unidirectional aspect of RNNs, previous work that uses RNNs to parametrize the approximate posterior often disregards such a property [22, 30, 51] and often resorts to a filtering routine $p ( \\mathbf { z } _ { t } \\mid \\mathbf { z } _ { 1 : t - 1 } , \\mathbf { x } _ { 1 : t } )$ . In contrast, our inference procedure resembles more of the smoothing process of LDSs, factoring in both past and future observations via another application of self-attention: ",
524
+ "bbox": [
525
+ 174,
526
+ 856,
527
+ 823,
528
+ 911
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "",
535
+ "bbox": [
536
+ 169,
537
+ 90,
538
+ 823,
539
+ 119
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "equation",
545
+ "img_path": "images/25309cc0158c0723496f2f11cb61d057d84a3cc6670ca582dd313b9d5180ae9f.jpg",
546
+ "text": "$$\n\\begin{array} { r l } & { { \\bf k } _ { t } = \\mathrm { A t t e n t i o n } ( { \\bf h } _ { 1 : T } , { \\bf h } _ { 1 : T } , { \\bf h } _ { 1 : T } ) ) } \\\\ & { { \\bf z } _ { t } = \\mathsf { S a m p l e } ( \\mathcal { N } ( { \\bf z } _ { t } ; { \\sf M L P } ( [ \\hat { \\bf w } _ { t } , { \\bf k } _ { t } ] ) , \\mathsf { S o f t p l u s } ( { \\sf M L P } ( [ \\hat { \\bf w } _ { t } , { \\bf k } _ { t } ] ) ) ) . } \\end{array}\n$$",
547
+ "text_format": "latex",
548
+ "bbox": [
549
+ 284,
550
+ 126,
551
+ 712,
552
+ 162
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "Here, we replace Equation (8) in the generative model with Equation (11), where the hidden representation $\\mathbf { k } _ { t }$ summarizing all information relevant to the current tim estep $t$ has been concatenate to the latent-and-context-aware representation $\\hat { \\mathbf { w } } _ { t }$ preceding the Gaussian parametrization. ",
559
+ "bbox": [
560
+ 176,
561
+ 174,
562
+ 823,
563
+ 218
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "The generative model and the inference model are trained end-to-end with a single stochastic variational inference objective stated in Equation (3). Such a variational bound includes the reconstruction loss for $\\mathbf { X } _ { 1 : C }$ and the $\\mathsf { K L }$ term for $\\mathbf { z } _ { 1 : C }$ . Alternatively, we can exclude these terms from the objective, which is equivalent to starting the inference process from $t = C + 1$ instead of $t = 1$ . ",
570
+ "bbox": [
571
+ 173,
572
+ 223,
573
+ 825,
574
+ 280
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "Our models incur a time complexity of $\\mathcal { O } ( T ^ { 2 } d )$ and a memory cost of $\\mathcal { O } ( T ^ { 2 } d )$ , where $T$ is the total sequence length and $d$ is the dimensionality of the latent space. The recursive latent dynamics also does not allow use the take full advantange of parallelizable attentions. However, we find that our models are still efficient in practice, especially for reasonably small values of $T$ . ",
581
+ "bbox": [
582
+ 173,
583
+ 285,
584
+ 825,
585
+ 342
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "3.2 Multi-Layered Extension for Probabilistic Transformer ",
592
+ "text_level": 1,
593
+ "bbox": [
594
+ 173,
595
+ 357,
596
+ 598,
597
+ 372
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Inspired by recent work on hierarchical VAEs for non-sequential inputs [17, 80, 83, 101], we extend our proposed model to include several layers of latent variables, aiming to further increase its flexibility for modelling sequential data. ",
604
+ "bbox": [
605
+ 173,
606
+ 382,
607
+ 825,
608
+ 425
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "We represent each time step $t$ with a Ma rkov chain of $L$ latent variables $\\mathbf { z } _ { t } ^ { ( 1 : L ) } = ( \\mathbf { z } _ { t } ^ { ( 1 ) } , \\ldots , \\mathbf { z } _ { t } ^ { ( L ) } )$ for simplicity (see Figure 1). The generative and inference model also decompose auto-regressively across different time steps and may exhibit non-Markovian dynamics: ",
615
+ "bbox": [
616
+ 174,
617
+ 429,
618
+ 825,
619
+ 473
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "equation",
625
+ "img_path": "images/9e77200db40fe310bda7d11cb45a13e41b2d0474fe93ac818dad9b1ca90b9770.jpg",
626
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle p _ { \\theta } \\left( { \\bf x } _ { 1 : T } , { \\bf z } _ { 1 : T } ^ { ( 1 : L ) } | { \\bf x } _ { 1 : C } \\right) = \\left( \\prod _ { \\ell = 1 } ^ { T } p _ { \\theta } \\left( { \\bf x } _ { t } | { \\bf z } _ { t } ^ { ( L ) } \\right) \\right) \\left( \\prod _ { \\ell = 1 } ^ { L } \\prod _ { \\ell = 1 } ^ { T } p _ { \\theta } \\left( { \\bf z } _ { t } ^ { ( \\ell ) } | { \\bf z } _ { 1 : t - 1 } ^ { ( \\ell ) } , { \\bf z } _ { 1 : T } ^ { ( \\ell - 1 ) } , { \\bf x } _ { 1 : C } \\right) \\right) } } \\\\ { { \\displaystyle q _ { \\phi } \\left( { \\bf z } _ { 1 : T } ^ { ( 1 : L ) } | { \\bf x } _ { 1 : T } \\right) = \\prod _ { \\ell = 1 } ^ { L } \\prod _ { \\ell = 1 } ^ { T } q _ { \\phi } \\left( { \\bf z } _ { t } ^ { ( \\ell ) } | { \\bf z } _ { 1 : t - 1 } ^ { ( \\ell ) } , { \\bf z } _ { 1 : T } ^ { ( \\ell - 1 ) } , { \\bf x } _ { 1 : T } \\right) . } } \\end{array}\n$$",
627
+ "text_format": "latex",
628
+ "bbox": [
629
+ 184,
630
+ 479,
631
+ 784,
632
+ 570
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "Intuitively, we generate samples $\\mathbf { x } _ { 1 : T }$ conditioning on $\\mathbf { x } _ { 1 : C }$ by following the latent dynamics from the bottom up and using the generative process described earlier within each layer. Analogously, inference proceeds in the same order, resulting in a variational bound similar to Equation (3): ",
639
+ "bbox": [
640
+ 174,
641
+ 580,
642
+ 825,
643
+ 623
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "equation",
649
+ "img_path": "images/51b64919a33bb441cf03ca4f902aaeea2dfa93646ba997764fcaf73982079a74.jpg",
650
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle \\log p _ { \\theta } \\big ( { \\bf x } _ { 1 : T } \\mid { \\bf x } _ { 1 : C } \\big ) \\geq \\sum _ { t = 1 } ^ { T } \\mathbb { E } _ { q } \\left[ \\log p _ { \\theta } \\big ( { \\bf x } _ { t } ^ { ( L ) } \\mid { \\bf z } _ { t } \\big ) \\right] } \\ ~ } \\\\ { { \\displaystyle ~ - \\sum _ { \\ell = 1 } ^ { L } \\mathsf { K L } \\big ( q _ { \\phi } \\big ( { \\bf z } _ { t } ^ { ( \\ell ) } \\mid { \\bf z } _ { 1 : t - 1 } ^ { ( \\ell ) } , { \\bf z } _ { 1 : T } ^ { ( \\ell ) } , { \\bf x } _ { 1 : T } \\big ) \\ \\big \\| \\ p _ { \\theta } \\big ( { \\bf z } _ { t } ^ { ( \\ell ) } \\mid { \\bf z } _ { 1 : t - 1 } ^ { ( \\ell ) } , { \\bf z } _ { 1 : T } ^ { ( \\ell ) } , { \\bf x } _ { 1 : C } \\big ) \\big ) } . } \\end{array}\n$$",
651
+ "text_format": "latex",
652
+ "bbox": [
653
+ 191,
654
+ 628,
655
+ 779,
656
+ 720
657
+ ],
658
+ "page_idx": 4
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "As before, we parametrize the prior ) | z(\\`)1:t−1, z(\\`)1:T , x1:C ) using self-attention over the inferred(\\`) latent variables from previous time steps w t−1 o n the same layer and another attention over contexts $\\mathbf { h } _ { 1 : C }$ . In this case, however, we include an additional self-attention over all latent variables from the layer immediately below it (see Equation (16)): ",
663
+ "bbox": [
664
+ 176,
665
+ 732,
666
+ 823,
667
+ 791
668
+ ],
669
+ "page_idx": 4
670
+ },
671
+ {
672
+ "type": "equation",
673
+ "img_path": "images/30d022c63236a8b9105d0aabb427ac7c6f556c1e27cb2d3eb571ea73185b60cb.jpg",
674
+ "text": "$$\n\\begin{array} { r l } & { \\tilde { \\mathbf { w } } _ { t } ^ { ( \\ell ) } = \\mathsf { L a y e r N o r m } ( \\mathbf { w } _ { t - 1 } ^ { ( \\ell ) } + \\mathsf { A t t e n t i o n } ( \\mathbf { w } _ { t - 1 } ^ { ( \\ell ) } , \\mathbf { w } _ { 1 : T } ^ { ( \\ell - 1 ) } , \\mathbf { w } _ { 1 : T } ^ { ( \\ell - 1 ) } ) ) } \\\\ & { \\bar { \\mathbf { w } } _ { t } ^ { ( \\ell ) } = \\mathsf { L a y e r N o r m } ( \\tilde { \\mathbf { w } } _ { t } ^ { ( \\ell ) } + \\mathsf { A t t e n t i o n } ( \\tilde { \\mathbf { w } } _ { t } ^ { ( \\ell ) } , \\mathbf { w } _ { 1 : t - 1 } ^ { ( \\ell ) } , \\mathbf { w } _ { 1 : t - 1 } ^ { ( \\ell ) } ) ) } \\\\ & { \\hat { \\mathbf { w } } _ { t } ^ { ( \\ell ) } = \\mathsf { L a y e r N o r m } ( \\bar { \\mathbf { w } } _ { t } ^ { ( \\ell ) } + \\mathsf { A t t e n t i o n } ( \\bar { \\mathbf { w } } _ { t } ^ { ( \\ell ) } , \\mathbf { h } _ { 1 : C } , \\mathbf { h } _ { 1 : C } ) ) } \\\\ & { \\mathbf { z } _ { t } ^ { ( \\ell ) } = \\mathsf { S a m p l e } ( \\mathcal { N } ( \\mathbf { z } _ { t } ^ { ( \\ell ) } ; \\mathsf { M L P } ( \\hat { \\mathbf { w } } _ { t } ^ { ( \\ell ) } ) , \\mathbf { S o f t p l u s } ( \\mathsf { M L P } ( \\hat { \\mathbf { w } } _ { t } ^ { ( \\ell ) } ) ) ) ) } \\\\ & { \\mathbf { w } _ { t } ^ { ( \\ell ) } = \\mathsf { L a y e r N o r m } ( \\hat { \\mathbf { w } } _ { t } ^ { ( \\ell ) } + \\mathsf { M L P } ( \\mathbf { z } _ { t } ^ { ( \\ell ) } ) + \\mathsf { P o s i t i o n } ( t ) ) , } \\end{array}\n$$",
675
+ "text_format": "latex",
676
+ "bbox": [
677
+ 287,
678
+ 796,
679
+ 707,
680
+ 911
681
+ ],
682
+ "page_idx": 4
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "Stacking multiple layers of latent variables increases model expressiveness, but it also result in a linear increase in running time and the number of parameters. The time complexity for the $L$ - layers transformer is $\\mathcal { O } ( \\bar { L _ { 1 } } T ^ { 2 } d )$ , while the space complexity remains $\\mathcal { D } ( T ^ { 2 } d )$ due to the Markovian structure of the chain $\\mathbf { z } _ { t } ^ { ( 1 : L ) }$ at each time step $t$ . In our experiments, we restrict the number of layers of our hierachical models to two or three. ",
687
+ "bbox": [
688
+ 174,
689
+ 92,
690
+ 825,
691
+ 160
692
+ ],
693
+ "page_idx": 5
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "4 Related Work ",
698
+ "text_level": 1,
699
+ "bbox": [
700
+ 174,
701
+ 188,
702
+ 321,
703
+ 205
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Deep State Space Models. Deep neural networks have been extensively combined with state space models, resulting in flexible, yet principledly motivated latent variable approaches. While some work keep the linear state transition intact to leverage the efficient Kalman filer algorithms [23, 31, 47, 71], more expressive, nonlinear latent dynamics parametrized by neural networks have been proposed [51, 52]. All such models are limited to the Markovian dynamics of LDSs, which hinders learning of long-range dependencies. The limitation is often alleviated by combining the stochastic transitions with a deterministic RNN that enables access to all past states [3, 8, 22, 30, 39, 77]. Our models are similarly non-Markovian, but the dependencies on the past states are done via attention, which allows for easy connections between long-distance time steps. In addition, while most existing deep SSMs represent each time step with a single latent variable, our models include several layers of hierarchical latent variables with tractable inference mechanism. ",
710
+ "bbox": [
711
+ 173,
712
+ 224,
713
+ 825,
714
+ 377
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "Attentive Recurrent Networks. Attention mechanism has also been widely adopted in recent time series work using sequence-to-sequence models [1, 28] or transformer architectures [14, 55, 57, 72, 81, 94]. While our models are equipped with latent variables, these transformer approaches [55, 72] lack inference mechanism and are susceptible to feeding back observation noise into the dynamics model at test time. Our work, however, can be considered as an extension of the attentive state space model proposed in [1], with discrete latent states replaced by their continuous analogs. Recent developments in natural language processing [58, 60, 90] also combine transformer and VAE; however, these approaches often use a time-agnostic latent variable, in contrast to our SSM formulation. ",
721
+ "bbox": [
722
+ 174,
723
+ 383,
724
+ 825,
725
+ 508
726
+ ],
727
+ "page_idx": 5
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Time Series Forecasting. Traditional univariate time series models, such as Box-Jenkins methods [12] and exponential smoothing [43], often assume independence between any collection of time series [76]. While multivariate extensions of the classical approaches, including vector autoregression [82] and multivariate GARCH [7], do not require such a strong assumption, they come with many others such as stationarity and homocesdasticity, demand manual selection of covariates and models, and do not scale well to even a moderate number of time series [40, 69]. ",
732
+ "bbox": [
733
+ 174,
734
+ 515,
735
+ 825,
736
+ 598
737
+ ],
738
+ "page_idx": 5
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Deep learning methods for time series forecasting have recently emerged as an expressive, scalable framework for industrial applications [10, 68, 79, 91]. While early work focus on point forecasts [53, 70, 96], recent approaches often employ recurrent neural networks with probabilistic forecasts parametrized directly [76], using quantile functions [33], Gaussian copulas [75], normalizing flows [23], or diffusion models [73]. In contrast, our models are entirely devoid of such recurrent architectures and rely on latent variables to output distributional forecasts. ",
743
+ "bbox": [
744
+ 174,
745
+ 604,
746
+ 823,
747
+ 688
748
+ ],
749
+ "page_idx": 5
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "Human Motion Prediction. Despite being almost identical in formulation, human motion prediction has often been studied independently from time series forecasting. While some work deterministically generate future motions or video frames [13, 32, 34, 56], stochastic prediction has also been proposed with deep neural networks often outperforming traditional methods such as hidden Markov models [93] or Gaussian processes [89] on complex motion datasets [13, 32, 45, 54, 63]. In contrast to earlier work [95, 97] that employ a global latent variable across different time steps via conditional VAE [49], we leverage the principled framework of state space models for learning and inference of hierarchical, time-dependent latent variables. ",
754
+ "bbox": [
755
+ 174,
756
+ 694,
757
+ 825,
758
+ 804
759
+ ],
760
+ "page_idx": 5
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "5 Experiments ",
765
+ "text_level": 1,
766
+ "bbox": [
767
+ 174,
768
+ 833,
769
+ 312,
770
+ 849
771
+ ],
772
+ "page_idx": 5
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "We present our experiment results on two tasks, namely, time series forecasting and human motion prediction. These tasks are often studied independently, despite being almost identical as conditional prediction problems. ",
777
+ "bbox": [
778
+ 174,
779
+ 869,
780
+ 823,
781
+ 911
782
+ ],
783
+ "page_idx": 5
784
+ },
785
+ {
786
+ "type": "table",
787
+ "img_path": "images/bd9124778ddd19c48cddc3dd21e3414ee18aab3d6c91e96a608a922249966cdc.jpg",
788
+ "table_caption": [
789
+ "Table 1: Test set ${ \\mathsf { C R P S } } _ { \\mathsf { s u m } }$ of time series forecasting models (lower is better). The means and standard deviations are computed over five runs using different random seeds. "
790
+ ],
791
+ "table_footnote": [],
792
+ "table_body": "<table><tr><td>DATASET</td><td>SOLAR</td><td>ELECTRICITY</td><td>TRAFFIC</td><td>TAXI</td><td>WIKIPEDIA</td></tr><tr><td>VES [43]</td><td>0.900 ± 0.003</td><td>0.880 ± 0.004</td><td>0.350 ± 0.002</td><td></td><td></td></tr><tr><td>VAR [61]</td><td>0.830 ± 0.006</td><td>0.039 ± 0.001</td><td>0.290 ± 0.001</td><td></td><td></td></tr><tr><td>VAR-Lasso [61]</td><td>0.510 ± 0.006</td><td>0.025 ± 0.000</td><td>0.150 ± 0.002</td><td></td><td>3.100 ± 0.004</td></tr><tr><td>GARCH [84]</td><td>0.880 ± 0.002</td><td>0.190 ± 0.001</td><td>0.370 ± 0.001</td><td></td><td></td></tr><tr><td>DeepAR [76]</td><td>0.336 ± 0.014</td><td>0.023 ± 0.001</td><td>0.055 ± 0.003</td><td></td><td>0.127 ± 0.042</td></tr><tr><td>LSTM-Copula [75]</td><td>0.319 ± 0.011</td><td>0.064 ± 0.008</td><td>0.103 ± 0.006</td><td>0.326 ± 0.007</td><td>0.241± 0.003</td></tr><tr><td>GP-Copula [75]</td><td>0.337 ± 0.024</td><td>0.024 ± 0.002</td><td>0.078 ± 0.002</td><td>0.208 ± 0.183</td><td>0.086 ± 0.004</td></tr><tr><td>KVAE [51]</td><td>0.340 ± 0.025</td><td>0.051 ± 0.019</td><td>0.100 ± 0.005</td><td></td><td>0.095 ± 0.012</td></tr><tr><td>NKF [23]</td><td>0.320 ± 0.020</td><td>0.016 ± 0.001</td><td>0.100 ± 0.002</td><td></td><td>0.071 ± 0.002</td></tr><tr><td>Transformer-MAF[72]</td><td>0.301 ± 0.014</td><td>0.021 ± 0.000</td><td>0.056 ± 0.001</td><td>0.179 ± 0.002</td><td>0.063 ± 0.003</td></tr><tr><td>TimeGrad[73]</td><td>0.287 ± 0.020</td><td>0.021 ± 0.001</td><td>0.044 ± 0.006</td><td>0.114 ± 0.020</td><td>0.049 ± 0.002</td></tr><tr><td>ProTran (Ours)</td><td>0.194 ± 0.030</td><td>0.016 ± 0.001</td><td>0.028 ± 0.001</td><td>0.084 ± 0.003</td><td>0.047 ± 0.004</td></tr></table>",
793
+ "bbox": [
794
+ 179,
795
+ 130,
796
+ 818,
797
+ 303
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "5.1 Time-series Forecasting ",
804
+ "text_level": 1,
805
+ "bbox": [
806
+ 174,
807
+ 335,
808
+ 379,
809
+ 351
810
+ ],
811
+ "page_idx": 6
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Datasets & Covariates. Following the experiment setup in [72, 73, 75], we evaluate our models and multiple competitive baselines on five popular public datasets: SOLAR, ELECTRICITY, TRAFFIC, TAXI, and WIKIPEDIA. The data is recorded with hourly or daily frequency and shows seasonal patterns of different frequencies (see Appendix A for more dataset details). As in [72, 73], the covariates include lagged inputs, fixed time embeddings (e.g. day of week, hour of day), and learnable time-series embeddings. The inputs are scaled using the conditioning examples before being fed into the model, and the predictions are rescaled appropriately afterward. ",
816
+ "bbox": [
817
+ 173,
818
+ 363,
819
+ 825,
820
+ 462
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "Metrics. Following [23, 72, 75], we evaluate our model and all baselines using continuous ranked probability score (CRPS) [65] summed across time series, denoted by ${ \\mathsf { C R P S } } _ { \\mathsf { s u m } }$ . Given a univariate distribution function $F$ and an observation $x$ , CRPS is defined as ",
827
+ "bbox": [
828
+ 173,
829
+ 467,
830
+ 823,
831
+ 510
832
+ ],
833
+ "page_idx": 6
834
+ },
835
+ {
836
+ "type": "equation",
837
+ "img_path": "images/eed19f3b2f91088324b060d953afee6b8e280ecea7f8ef31f3bce05edbc0983c.jpg",
838
+ "text": "$$\n{ \\mathsf { C R P S } } ( F , x ) = \\int _ { \\mathbb { R } } ( F ( z ) - \\mathbb { 1 } _ { \\{ x \\leq z \\} } ) ^ { 2 } d z ,\n$$",
839
+ "text_format": "latex",
840
+ "bbox": [
841
+ 364,
842
+ 521,
843
+ 630,
844
+ 554
845
+ ],
846
+ "page_idx": 6
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "where $1 _ { \\{ x \\leq z \\} }$ is the indicator function. As argued in de Bezenac et al. [ ´ 23], ${ \\mathsf { C R P S } } _ { \\mathsf { s u m } }$ is a proper scoring rule [35] and can be computed without analytical forecast distributions. We compute the metrics in a rolling fashion and use 100 samples for the distributional forecasts, similar to the aforementioned work. ",
851
+ "bbox": [
852
+ 174,
853
+ 565,
854
+ 825,
855
+ 621
856
+ ],
857
+ "page_idx": 6
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "Baselines. We benchmark our models against various baselines, including (1) VES [43], an innovation state space model; (2) VAR-Lasso and VAR [61], two multivariate linear autoregressive models with and without Lasso regularization; (3) GARCH [84], a multivariate conditional heteroskedastic model; (4) DeepAR [76], an autoregressive recurrent neural network; LSTM-Copula and GP-Copula [75], two RNN-based models that use Gaussian copula to model nonlinearity; (5) KVAE [51], a variational approach based on linear dynamics; (6) NKF [23], a normalizing-flow model coupled with Kalman filters; (7) Transformer [72], a transformer-based model based on masked autoregressive flow; and (8) TimeGrad [73], a recent autoregressive approach that uses a diffusion model. ",
862
+ "bbox": [
863
+ 173,
864
+ 627,
865
+ 825,
866
+ 739
867
+ ],
868
+ "page_idx": 6
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Implementations. We use 8-head attentions and 2-layers MLPs to parametrize the generative and inference models. The stochastic latent variables $\\mathbf { z } _ { t }$ are 16-dimensional while the hidden representations $\\mathbf { w } _ { t }$ are in $\\mathbb { R } ^ { 1 2 8 }$ . Our probabilistic transformers for SOLAR and ELECTRICITY have one stochastic layer while those for the other datasets of higher dimensional observations employ two layers. We re",
873
+ "bbox": [
874
+ 174,
875
+ 746,
876
+ 473,
877
+ 869
878
+ ],
879
+ "page_idx": 6
880
+ },
881
+ {
882
+ "type": "table",
883
+ "img_path": "images/88b146427d825c9442effc55d34d5e390d40cf12572fce124d5352b797cdfe58.jpg",
884
+ "table_caption": [
885
+ "Table 2: Ablation study on TRAFFIC. "
886
+ ],
887
+ "table_footnote": [],
888
+ "table_body": "<table><tr><td>Two Layers One Layer Context Attention</td><td>√ × √</td><td>× √</td><td>× ×</td><td>× √</td></tr><tr><td>Deterministic</td><td>×</td><td>×</td><td>×</td><td>√</td></tr><tr><td>CRPSsum</td><td>0.028</td><td>0.031</td><td>0.033</td><td>0.041</td></tr></table>",
889
+ "bbox": [
890
+ 486,
891
+ 775,
892
+ 825,
893
+ 854
894
+ ],
895
+ "page_idx": 6
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "port the numbers of parameters of our models in Table 4 in Appendix C, which are all comparable to those of the state-of-the-art approaches. See Appendix D for more details about hyper-parameters and training processes. ",
900
+ "bbox": [
901
+ 174,
902
+ 869,
903
+ 826,
904
+ 911
905
+ ],
906
+ "page_idx": 6
907
+ },
908
+ {
909
+ "type": "image",
910
+ "img_path": "images/2c04e02911790d4e50312ce21468be872c3332091a686e454ec6bd62c82ad8ba.jpg",
911
+ "image_caption": [
912
+ "Figure 2: Prediction intervals and test set ground-truth from ProTran (our model) for the TRAFFIC dataset of the first 16 of 963 time series. "
913
+ ],
914
+ "image_footnote": [],
915
+ "bbox": [
916
+ 189,
917
+ 88,
918
+ 813,
919
+ 500
920
+ ],
921
+ "page_idx": 7
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "Accuracy Comparison. Table 1 shows that our models perform competitively across all five highdimensional time series datasets, achieving ${ \\mathsf { C R P S } } _ { \\mathsf { s u m } }$ comparable to the best methods on ELECTRICITY and WIKIPEDIA while outperforming all baselines, including a non-SSM transformer-based approach [72], by significant margins on SOLAR, TRAFFIC and TAXI. Further analyses with other metrics, including CRPS and MSE, in Appendix B also help confirm our findings. ",
926
+ "bbox": [
927
+ 174,
928
+ 565,
929
+ 823,
930
+ 635
931
+ ],
932
+ "page_idx": 7
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "Qualitative Results. Figure 2 shows that the distribution forecasts generated by our model follow closely the ground truths, which is consistent with our accuracy results. In addition, the model appears to capture the uncertainty of future forecasts to some extent; observations of large magnitudes and far into the future seem to correctly have higher variance estimates. ",
937
+ "bbox": [
938
+ 174,
939
+ 640,
940
+ 823,
941
+ 696
942
+ ],
943
+ "page_idx": 7
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Ablation Study. We include a small scale ablation study on the TRAFFIC dataset to investigate which components of our models are essential. Table 2 suggests that removing the stochasticity from $\\mathbf { w } _ { t }$ has most impacts on model performance, implying that incorprating latent variables into a transformer is indeed useful. Other aspects such as context attention or multiple layers of stochastic variables do not show dramatic effects in this study; however, they do contribute performance gains. ",
948
+ "bbox": [
949
+ 174,
950
+ 703,
951
+ 825,
952
+ 772
953
+ ],
954
+ "page_idx": 7
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "5.2 Human Motion Prediction ",
959
+ "text_level": 1,
960
+ "bbox": [
961
+ 176,
962
+ 789,
963
+ 397,
964
+ 804
965
+ ],
966
+ "page_idx": 7
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Datasets. Following the experiment setup in [97], we evaluation our models on two public motion capture datasets: Human3.6M[44] and HumanEva-I [78]. While Human3.6 is a large-scale dataset with 3.6 million video frames recorded at $5 0 \\mathrm { H z }$ , HumanEva-I is smaller with only 3 subjects and recorded at $6 0 \\mathrm { H z }$ . We follow the preprocessing steps of previous work [64, 97] and obtain a 17-joint skeleton for Human3.6 and a 15-joint skeleton for HumanEva-I. As in [97], we predict future motion for 2 seconds conditioning on observed motion of 0.5 seconds and 1 second conditioning on 0.25 seconds for Human3.6 and HumanEva-I, respectively. ",
971
+ "bbox": [
972
+ 174,
973
+ 814,
974
+ 825,
975
+ 911
976
+ ],
977
+ "page_idx": 7
978
+ },
979
+ {
980
+ "type": "image",
981
+ "img_path": "images/d9383da574a0f2a8ae5ae9ead64786b43baceb750e09f80f4d1df9b51d63a693.jpg",
982
+ "image_caption": [
983
+ "Figure 3: Ground-truth pose sequences (first row) and corresponding predictions by ProTran (second row). Solid colors indicate later time-steps and faded ones are older. The body-part movements in the predicted and ground-truth poses resemble similar patterns, while certain variations are retained. "
984
+ ],
985
+ "image_footnote": [],
986
+ "bbox": [
987
+ 181,
988
+ 85,
989
+ 813,
990
+ 226
991
+ ],
992
+ "page_idx": 8
993
+ },
994
+ {
995
+ "type": "table",
996
+ "img_path": "images/5cd7d906b1d9892d4f2cdbfeac6804bc0254a1b3d2803e3c6a282f3524fdcd2c.jpg",
997
+ "table_caption": [
998
+ "Table 3: Human motion prediction results. "
999
+ ],
1000
+ "table_footnote": [],
1001
+ "table_body": "<table><tr><td>DATASET</td><td colspan=\"2\">HUMAN3.6M</td><td colspan=\"2\">HUMANEVA-I</td></tr><tr><td>Method</td><td>ADE↓</td><td>FDE↓ ADE↓</td><td></td><td rowspan=\"3\">FDE↓</td></tr><tr><td>ERD [32]</td><td>0.722</td><td>0.969 0.382</td><td>0.461</td></tr><tr><td>acLSTM[56]</td><td>0.789 1.126</td><td></td><td>0.429 0.541</td></tr><tr><td>MT-VAE [95]</td><td>0.457</td><td>0.595</td><td>0.345</td><td rowspan=\"4\">0.403</td></tr><tr><td>Pose-Knows [87]</td><td>0.461</td><td>0.560</td><td>0.269 0.296</td></tr><tr><td>HP-GAN [6]</td><td>0.858</td><td>0.867</td><td>0.772 0.749</td></tr><tr><td>Best-Many [11]</td><td>0.448</td><td>0.533 0.271</td><td>0.279</td></tr><tr><td>GMVAE [25]</td><td>0.461</td><td>0.555</td><td>0.305</td><td>0.345</td></tr><tr><td>DeliGAN[38]</td><td>0.483</td><td>0.534</td><td>0.306</td><td>0.322</td></tr><tr><td>DSP [98]</td><td>0.493</td><td>0.592</td><td>0.273</td><td>0.290</td></tr><tr><td>DLow [97]</td><td>0.425</td><td>0.518</td><td>0.251</td><td>0.268</td></tr><tr><td>ProTran (Ours)</td><td>0.381</td><td>0.491</td><td>0.258</td><td>0.255</td></tr></table>",
1002
+ "bbox": [
1003
+ 330,
1004
+ 332,
1005
+ 661,
1006
+ 512
1007
+ ],
1008
+ "page_idx": 8
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Metrics. Following previous work on trajectory forecasting [2, 37], we adopt two popular metrics, namely, average displacement error (ADE) and final displacement error (FDE). ADE measures the average $L _ { 2 }$ distance over all time steps between the ground truth motion and the closest sample, while FDE only consider such distance for the final pose. ",
1013
+ "bbox": [
1014
+ 173,
1015
+ 553,
1016
+ 825,
1017
+ 608
1018
+ ],
1019
+ "page_idx": 8
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Baselines. We compare our models against 9 models, including ERD [32] and acLSTM [56], two deterministic RNN-based approaches; MT-VAE [95] and Pose-Knows [87], two conditional VAE models; HP-GAN [6], a conditional GAN; Best-Many [11], GMVAE [25], DeliGAN [38]. and DSP [98], four approaches optimizing for diversity objectives. The results for these baselines are reported as in [97]. ",
1024
+ "bbox": [
1025
+ 173,
1026
+ 614,
1027
+ 825,
1028
+ 684
1029
+ ],
1030
+ "page_idx": 8
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Implementations. Similar to the previous experiments, we use 8-head attentions and 2-layers MLPs. Since Human3.6M is significantly more complex and multi-modal than the time series forecasting datasets, we make use of 3 stochastic layers, as opposed to 2 layers for HumanEva-I. For Human3.6M, the context and target observations are significantly longer and set up for long-term predictions, so we only infer latent variables for target observations. Appendix C also contains further details about our models and their number of parameters. ",
1035
+ "bbox": [
1036
+ 173,
1037
+ 690,
1038
+ 825,
1039
+ 773
1040
+ ],
1041
+ "page_idx": 8
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Quantitative Results. Table 3 shows that our models convincingly outperform all baselines based on both metrics ADE and FDE, with the gains significantly higher for the larger dataset Human3.6M. We emphasize that our favorable performance is evaluated using random samples, while the closest competitor, DLow [97], relies on a separate model for selecting samples to promote diversity, which can potentially be combined with our probabilistic transformer for further improvements. ",
1046
+ "bbox": [
1047
+ 174,
1048
+ 780,
1049
+ 825,
1050
+ 849
1051
+ ],
1052
+ "page_idx": 8
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Qualitative Results. We show in Figure 3 human pose predictions made by our model that are most similar to the corresponding ground truths among a collection of such stochastic predictions. The similarities between the body-part movements in both sequences suggest that our model has been able to capture the temporal dynamics quite well. ",
1057
+ "bbox": [
1058
+ 174,
1059
+ 856,
1060
+ 823,
1061
+ 911
1062
+ ],
1063
+ "page_idx": 8
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "6 Conclusion & Discussion ",
1068
+ "text_level": 1,
1069
+ "bbox": [
1070
+ 174,
1071
+ 89,
1072
+ 413,
1073
+ 106
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "In this work, we have introduced generative models for multivariate time series that combines strengths of state space models and transformer architectures. In contrast to previous work, our models do not rely on recurrent neural networks but make extensive use of attention mechanism. We also extend our models to include hierarchical latent variables, inspired by recent developments of VAEs for non-sequential data [17, 83]. Empirical experiments show that our models perform remarkably well on time series forecasting and human motion prediction. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 121,
1083
+ 825,
1084
+ 203
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Our models do not come without limitations, however. As in other transformer-based approaches, the reliance on attention incurs a quadratic time and memory complexity. While we do not find it problematic in our experiments, the limitation necessarily hinders applications of our models in tasks characterized by long-term dependencies such as language modelling or music generation [36]. Fortunately, recent work on sparse transformer [9, 18, 50, 55] can potentially address the issue, and we leave such an investigation for future work. ",
1091
+ "bbox": [
1092
+ 174,
1093
+ 210,
1094
+ 825,
1095
+ 292
1096
+ ],
1097
+ "page_idx": 9
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Probabilistic time series forecasting is a fundamental research problem with wide-ranging applications in society. Although we have not explored healthcare applications of our work, previously proposed methods with similar formulations have demonstrated potentials of forecasting techniques [1, 81] in diagnoses or disease control. ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 299,
1105
+ 825,
1106
+ 354
1107
+ ],
1108
+ "page_idx": 9
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "7 Acknowledgment ",
1113
+ "text_level": 1,
1114
+ "bbox": [
1115
+ 176,
1116
+ 375,
1117
+ 349,
1118
+ 392
1119
+ ],
1120
+ "page_idx": 9
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Financial support is gratefully acknowledged from a Xerox PARC Faculty Research Award, National Science Foundation Awards 1455172, 1934985, 1940124, and 1940276, USAID, and Cornell University Atkinson Center for a Sustainable Future. ",
1125
+ "bbox": [
1126
+ 176,
1127
+ 406,
1128
+ 825,
1129
+ 448
1130
+ ],
1131
+ "page_idx": 9
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "References \n[1] Ahmed Alaa and Mihaela van der Schaar. Attentive state-space modeling of disease progression. 2019. \n[2] Alexandre Alahi, Kratarth Goel, Vignesh Ramanathan, Alexandre Robicquet, Li Fei-Fei, and Silvio Savarese. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 961–971, 2016. \n[3] Evan Archer, Il Memming Park, Lars Buesing, John Cunningham, and Liam Paninski. Black box variational inference for state space models. arXiv preprint arXiv:1511.07367, 2015. \n[4] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. \n[5] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. [6] Emad Barsoum, John Kender, and Zicheng Liu. Hp-gan: Probabilistic 3d human motion prediction via gan. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 1418–1427, 2018. [7] Luc Bauwens, Sebastien Laurent, and Jeroen VK Rombouts. Multivariate garch models: a ´ survey. Journal of applied econometrics, 21(1):79–109, 2006. [8] Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. In NIPS 2014 Workshop on Advances in Variational Inference, 2014. \n[9] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. \n[10] Konstantinos Benidis, Syama Sundar Rangapuram, Valentin Flunkert, Bernie Wang, Danielle Maddix, Caner Turkmen, Jan Gasthaus, Michael Bohlke-Schneider, David Salinas, Lorenzo Stella, et al. Neural forecasting: Introduction and literature overview. arXiv preprint arXiv:2004.10240, 2020. \n[11] Apratim Bhattacharyya, Bernt Schiele, and Mario Fritz. Accurate and diverse sampling of sequences based on a “best of many” sample objective. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8485–8493, 2018. \n[12] George EP Box, Gwilym M Jenkins, Gregory C Reinsel, and Greta M Ljung. Time series analysis: forecasting and control. John Wiley & Sons, 2015. \n[13] Judith Butepage, Michael J Black, Danica Kragic, and Hedvig Kjellstrom. Deep representation learning for human motion prediction and classification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6158–6166, 2017. \n[14] Defu Cao, Yujing Wang, Juanyong Duan, Ce Zhang, Xia Zhu, Conguri Huang, Yunhai Tong, Bixiong Xu, Jing Bai, Jie Tong, et al. Spectral temporal graph neural network for multivariate time-series forecasting. arXiv preprint arXiv:2103.07719, 2021. \n[15] Real Carbonneau, Kevin Laframboise, and Rustam Vahidov. Application of machine learning techniques for supply chain demand forecasting. European Journal of Operational Research, 184(3):1140–1154, 2008. \n[16] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, et al. Argoverse: 3d tracking and forecasting with rich maps. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8740–8749. IEEE Computer Society, 2019. \n[17] Rewon Child. Very deep vaes generalize autoregressive models and can outperform them on images. arXiv preprint arXiv:2011.10650, 2020. \n[18] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. \n[19] Kyunghyun Cho, B van Merrienboer, Caglar Gulcehre, F Bougares, H Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP 2014), 2014. \n[20] Edward Choi, Mohammad Taha Bahadori, Joshua A Kulas, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Retain: An interpretable predictive model for healthcare using reverse time attention mechanism. Advances in Neural Information Processing Systems, pages 3512–3520, 2016. \n[21] Edward Choi, Mohammad Taha Bahadori, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Doctor ai: Predicting clinical events via recurrent neural networks. In Machine learning for healthcare conference, pages 301–318. PMLR, 2016. \n[22] Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. Advances in Neural Information Processing Systems, 28:2980–2988, 2015. \n[23] Emmanuel de Bezenac, Syama Sundar Rangapuram, Konstantinos Benidis, Michael Bohlke- ´ Schneider, Richard Kurle, Lorenzo Stella, Hilaf Hasson, Patrick Gallinari, and Tim Januschowski. Normalizing kalman filters for multivariate time series analysis. Advances in Neural Information Processing Systems, 33, 2020. \n[24] Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. In International Conference on Machine Learning, pages 1174–1183. PMLR, 2018. \n[25] Nat Dilokthanakul, Pedro AM Mediano, Marta Garnelo, Matthew CH Lee, Hugh Salimbeni, Kai Arulkumaran, and Murray Shanahan. Deep unsupervised clustering with gaussian mixture variational autoencoders. arXiv preprint arXiv:1611.02648, 2016. \n[26] Linhao Dong, Shuang Xu, and Bo Xu. Speech-transformer: a no-recurrence sequence-tosequence model for speech recognition. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5884–5888. IEEE, 2018. \n[27] James Durbin and Siem Jan Koopman. Time series analysis by state space methods. Oxford university press, 2012. \n[28] Chenyou Fan, Yuze Zhang, Yi Pan, Xiaoyue Li, Chi Zhang, Rong Yuan, Di Wu, Wensheng Wang, Jian Pei, and Heng Huang. Multi-horizon time series forecasting with temporal attention learning. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 2527–2535, 2019. \n[29] Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 64–72, 2016. \n[30] Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 2207–2215, 2016. \n[31] Marco Fraccaro, Simon Kamronn, Ulrich Paquet, and Ole Winther. A disentangled recognition and nonlinear dynamics model for unsupervised learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 3604–3613, 2017. \n[32] Katerina Fragkiadaki, Sergey Levine, Panna Felsen, and Jitendra Malik. Recurrent network models for human dynamics. In Proceedings of the IEEE International Conference on Computer Vision, pages 4346–4354, 2015. \n[33] Jan Gasthaus, Konstantinos Benidis, Yuyang Wang, Syama Sundar Rangapuram, David Salinas, Valentin Flunkert, and Tim Januschowski. Probabilistic forecasting with spline quantile function rnns. In The 22nd international conference on artificial intelligence and statistics, pages 1901–1910. PMLR, 2019. \n[34] Partha Ghosh, Jie Song, Emre Aksan, and Otmar Hilliges. Learning human motion models for long-term predictions. In 2017 International Conference on 3D Vision (3DV), pages 458– 466. IEEE, 2017. \n[35] Tilmann Gneiting and Adrian E Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American statistical Association, 102(477):359–378, 2007. \n[36] Alexander Greaves-Tunnell and Zaid Harchaoui. A statistical investigation of long memory in language and music. In International Conference on Machine Learning, pages 2394–2403. PMLR, 2019. \n[37] Agrim Gupta, Justin Johnson, Li Fei-Fei, Silvio Savarese, and Alexandre Alahi. Social gan: Socially acceptable trajectories with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2255–2264, 2018. \n[38] Swaminathan Gurumurthy, Ravi Kiran Sarvadevabhatla, and R Venkatesh Babu. Deligan: Generative adversarial networks for diverse and limited data. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 166–174, 2017. \n[39] Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In International Conference on Machine Learning, pages 2555–2565. PMLR, 2019. \n[40] Andrew C Harvey. Forecasting, Structural Time Series Models and the Kalman Filter. Cambridge University Press, 1990. \n[41] Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. 2016. \n[42] Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9 (8):1735–1780, 1997. \n[43] Rob Hyndman, Anne B Koehler, J Keith Ord, and Ralph D Snyder. Forecasting with exponential smoothing: the state space approach. Springer Science & Business Media, 2008. \n[44] Catalin Ionescu, Dragos Papava, Vlad Olaru, and Cristian Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE transactions on pattern analysis and machine intelligence, 36(7):1325–1339, 2013. \n[45] Ashesh Jain, Amir R Zamir, Silvio Savarese, and Ashutosh Saxena. Structural-rnn: Deep learning on spatio-temporal graphs. In Proceedings of the ieee conference on computer vision and pattern recognition, pages 5308–5317, 2016. \n[46] Andrew H Jazwinski. Stochastic processes and filtering theory. Courier Corporation, 2007. \n[47] Maximilian Karl, Maximilian Soelch, Justin Bayer, and Patrick Van der Smagt. Deep variational bayes filters: Unsupervised learning of state space models from raw data. arXiv preprint arXiv:1605.06432, 2016. \n[48] Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171–4186, 2019. \n[49] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. 2014. \n[50] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020. \n[51] Rahul Krishnan, Uri Shalit, and David Sontag. Structured inference networks for nonlinear state space models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017. \n[52] Rahul G Krishnan, Uri Shalit, and David Sontag. Deep kalman filters. arXiv preprint arXiv:1511.05121, 2015. \n[53] Guokun Lai, Wei-Cheng Chang, Yiming Yang, and Hanxiao Liu. Modeling long-and shortterm temporal patterns with deep neural networks. In The 41st International ACM SIGIR Conference on Research & Development in Information Retrieval, pages 95–104, 2018. \n[54] Chen Li, Zhen Zhang, Wee Sun Lee, and Gim Hee Lee. Convolutional sequence to sequence model for human dynamics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5226–5234, 2018. \n[55] Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, and Xifeng Yan. Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. Advances in Neural Information Processing Systems, 32:5243–5253, 2019. \n[56] Zimo Li, Yi Zhou, Shuangjiu Xiao, Chong He, Zeng Huang, and Hao Li. Autoconditioned recurrent networks for extended complex human motion synthesis. arXiv preprint arXiv:1707.05363, 2017. \n[57] Bryan Lim, Sercan O Arik, Nicolas Loeff, and Tomas Pfister. Temporal fusion transformers for interpretable multi-horizon time series forecasting. arXiv preprint arXiv:1912.09363, 2019. \n[58] Zhaojiang Lin, Genta Indra Winata, Peng Xu, Zihan Liu, and Pascale Fung. Variational transformers for diverse response generation. arXiv preprint arXiv:2003.12738, 2020. \n[59] Zachary C Lipton, David C Kale, Charles Elkan, and Randall Wetzel. Learning to diagnose with lstm recurrent neural networks. In International Conference on Learning Representations, 2016. \n[60] Danyang Liu and Gongshen Liu. A transformer-based variational autoencoder for sentence generation. In 2019 International Joint Conference on Neural Networks (IJCNN), pages 1–7. IEEE, 2019. \n[61] Helmut Lutkepohl. ¨ New introduction to multiple time series analysis. Springer Science & Business Media, 2005. \n[62] Lars Maaløe, Marco Fraccaro, Valentin Lievin, and Ole Winther. Biva: A very deep hierarchy of latent variables for generative modeling. In 33rd Conference on Neural Information Processing Systems, page 8882. Neural Information Processing Systems Foundation, 2019. \n[63] Julieta Martinez, Michael J Black, and Javier Romero. On human motion prediction using recurrent neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2891–2900, 2017. \n[64] Julieta Martinez, Rayat Hossain, Javier Romero, and James J Little. A simple yet effective baseline for 3d human pose estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 2640–2649, 2017. \n[65] James E Matheson and Robert L Winkler. Scoring rules for continuous probability distributions. Management science, 22(10):1087–1096, 1976. \n[66] Kevin P Murphy. Machine learning: a probabilistic perspective. 2012. \n[67] Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard Lewis, and Satinder Singh. Actionconditional video prediction using deep networks in atari games. arXiv preprint arXiv:1507.08750, 2015. \n[68] Boris N Oreshkin, Dmitri Carpov, Nicolas Chapados, and Yoshua Bengio. N-beats: Neural basis expansion analysis for interpretable time series forecasting. In International Conference on Learning Representations, 2019. \n[69] Andrew J Patton. A review of copula models for economic time series. Journal of Multivariate Analysis, 110:4–18, 2012. \n[70] Yao Qin, Dongjin Song, Haifeng Chen, Wei Cheng, Guofei Jiang, and Garrison Cottrell. A dual-stage attention-based recurrent neural network for time series prediction. arXiv preprint arXiv:1704.02971, 2017. \n[71] Syama Sundar Rangapuram, Matthias W Seeger, Jan Gasthaus, Lorenzo Stella, Yuyang Wang, and Tim Januschowski. Deep state space models for time series forecasting. Advances in neural information processing systems, 31:7785–7794, 2018. \n[72] Kashif Rasul, Abdul-Saboor Sheikh, Ingmar Schuster, Urs Bergmann, and Roland Vollgraf. Multi-variate probabilistic time series forecasting via conditioned normalizing flows. arXiv preprint arXiv:2002.06103, 2020. \n[73] Kashif Rasul, Calvin Seward, Ingmar Schuster, and Roland Vollgraf. Autoregressive denoising diffusion models for multivariate probabilistic time series forecasting. arXiv preprint arXiv:2101.12072, 2021. \n[74] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International conference on machine learning, pages 1278–1286. PMLR, 2014. \n[75] David Salinas, Michael Bohlke-Schneider, Laurent Callot, Roberto Medico, and Jan Gasthaus. High-dimensional multivariate forecasting with low-rank gaussian copula processes. arXiv preprint arXiv:1910.03002, 2019. \n[76] David Salinas, Valentin Flunkert, Jan Gasthaus, and Tim Januschowski. Deepar: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting, 36 (3):1181–1191, 2020. \n[77] Iulian Serban, Alessandro Sordoni, Ryan Lowe, Laurent Charlin, Joelle Pineau, Aaron Courville, and Yoshua Bengio. A hierarchical latent variable encoder-decoder model for generating dialogues. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017. \n[78] Leonid Sigal and Michael J Black. Humaneva: Synchronized video and motion capture dataset for evaluation of articulated human motion. Brown Univertsity TR, 120(2), 2006. \n[79] Slawek Smyl, Jai Ranganathan, and Andrea Pasqua. M4 forecasting competition: Introducing a new hybrid es-rnn model. URL: https://eng. uber. com/m4-forecasting-competition, 2018. \n[80] Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. Ladder variational autoencoders. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 3745–3753, 2016. \n[81] Huan Song, Deepta Rajan, Jayaraman Thiagarajan, and Andreas Spanias. Attend and diagnose: Clinical time series analysis using attention models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. \n[82] Ruey S Tsay. Multivariate time series analysis: with R and financial applications. John Wiley & Sons, 2013. \n[83] Arash Vahdat and Jan Kautz. Nvae: A deep hierarchical variational autoencoder. arXiv preprint arXiv:2007.03898, 2020. \n[84] Roy Van der Weide. Go-garch: a multivariate generalized orthogonal garch model. Journal of Applied Econometrics, 17(5):549–564, 2002. \n[85] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6000–6010, 2017. \n[86] Ruben Villegas, Arkanath Pathak, Harini Kannan, Dumitru Erhan, Quoc V Le, and Honglak Lee. High fidelity video prediction with large stochastic recurrent neural networks. In NeurIPS, 2019. \n[87] Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In Proceedings of the IEEE international conference on computer vision, pages 3332–3341, 2017. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 109,
1139
+ 828,
1140
+ 921
1141
+ ],
1142
+ "page_idx": 10
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "",
1147
+ "bbox": [
1148
+ 176,
1149
+ 60,
1150
+ 826,
1151
+ 917
1152
+ ],
1153
+ "page_idx": 11
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "",
1158
+ "bbox": [
1159
+ 178,
1160
+ 44,
1161
+ 828,
1162
+ 920
1163
+ ],
1164
+ "page_idx": 12
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "",
1169
+ "bbox": [
1170
+ 178,
1171
+ 70,
1172
+ 826,
1173
+ 915
1174
+ ],
1175
+ "page_idx": 13
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "",
1180
+ "bbox": [
1181
+ 176,
1182
+ 90,
1183
+ 826,
1184
+ 919
1185
+ ],
1186
+ "page_idx": 14
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "[88] Eric A Wan and Rudolph Van Der Merwe. The unscented kalman filter for nonlinear estimation. In Proceedings of the IEEE 2000 Adaptive Systems for Signal Processing, Communications, and Control Symposium (Cat. No. 00EX373), pages 153–158. Ieee, 2000. ",
1191
+ "bbox": [
1192
+ 181,
1193
+ 90,
1194
+ 821,
1195
+ 133
1196
+ ],
1197
+ "page_idx": 15
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "[89] Jack M Wang, David J Fleet, and Aaron Hertzmann. Gaussian process dynamical models for human motion. IEEE transactions on pattern analysis and machine intelligence, 30(2): 283–298, 2007. ",
1202
+ "bbox": [
1203
+ 181,
1204
+ 142,
1205
+ 821,
1206
+ 184
1207
+ ],
1208
+ "page_idx": 15
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "[90] Tianming Wang and Xiaojun Wan. T-cvae: Transformer-based conditioned variational autoencoder for story completion. In IJCAI, pages 5233–5239, 2019. ",
1213
+ "bbox": [
1214
+ 178,
1215
+ 193,
1216
+ 823,
1217
+ 222
1218
+ ],
1219
+ "page_idx": 15
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "[91] Yuyang Wang, Alex Smola, Danielle Maddix, Jan Gasthaus, Dean Foster, and Tim Januschowski. Deep factors for forecasting. In International Conference on Machine Learning, pages 6607–6617. PMLR, 2019. ",
1224
+ "bbox": [
1225
+ 183,
1226
+ 231,
1227
+ 823,
1228
+ 273
1229
+ ],
1230
+ "page_idx": 15
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "[92] Mike West and Jeff Harrison. Bayesian forecasting and dynamic models. Springer Science & Business Media, 2006. ",
1235
+ "bbox": [
1236
+ 181,
1237
+ 281,
1238
+ 823,
1239
+ 310
1240
+ ],
1241
+ "page_idx": 15
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "[93] Di Wu and Ling Shao. Leveraging hierarchical parametric networks for skeletal joints based action segmentation and recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 724–731, 2014. ",
1246
+ "bbox": [
1247
+ 181,
1248
+ 319,
1249
+ 823,
1250
+ 363
1251
+ ],
1252
+ "page_idx": 15
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "[94] Neo Wu, Bradley Green, Xue Ben, and Shawn O’Banion. Deep transformer models for time series forecasting: The influenza prevalence case. arXiv preprint arXiv:2001.08317, 2020. ",
1257
+ "bbox": [
1258
+ 181,
1259
+ 371,
1260
+ 821,
1261
+ 400
1262
+ ],
1263
+ "page_idx": 15
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "[95] Xinchen Yan, Akash Rastogi, Ruben Villegas, Kalyan Sunkavalli, Eli Shechtman, Sunil Hadap, Ersin Yumer, and Honglak Lee. Mt-vae: Learning motion transformations to generate multimodal human dynamics. In Proceedings of the European Conference on Computer Vision (ECCV), pages 265–281, 2018. ",
1268
+ "bbox": [
1269
+ 181,
1270
+ 407,
1271
+ 825,
1272
+ 464
1273
+ ],
1274
+ "page_idx": 15
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "[96] Rose Yu, Stephan Zheng, Anima Anandkumar, and Yisong Yue. Long-term forecasting using tensor-train rnns. Arxiv, 2017. ",
1279
+ "bbox": [
1280
+ 179,
1281
+ 473,
1282
+ 823,
1283
+ 502
1284
+ ],
1285
+ "page_idx": 15
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "[97] Ye Yuan and Kris Kitani. Dlow: Diversifying latent flows for diverse human motion prediction. In European Conference on Computer Vision, pages 346–364. Springer, 2020. ",
1290
+ "bbox": [
1291
+ 181,
1292
+ 510,
1293
+ 823,
1294
+ 540
1295
+ ],
1296
+ "page_idx": 15
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "[98] Ye Yuan and Kris M Kitani. Diverse trajectory forecasting with determinantal point processes. In International Conference on Learning Representations, 2019. ",
1301
+ "bbox": [
1302
+ 179,
1303
+ 547,
1304
+ 823,
1305
+ 577
1306
+ ],
1307
+ "page_idx": 15
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "[99] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In International conference on machine learning, pages 7354– 7363. PMLR, 2019. ",
1312
+ "bbox": [
1313
+ 181,
1314
+ 585,
1315
+ 825,
1316
+ 627
1317
+ ],
1318
+ "page_idx": 15
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "[100] Jingyu Zhao, Feiqing Huang, Jia Lv, Yanjie Duan, Zhen Qin, Guodong Li, and Guangjian Tian. Do rnn and lstm have long memory? In International Conference on Machine Learning, pages 11365–11375. PMLR, 2020. ",
1323
+ "bbox": [
1324
+ 176,
1325
+ 636,
1326
+ 825,
1327
+ 679
1328
+ ],
1329
+ "page_idx": 15
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "[101] Shengjia Zhao, Jiaming Song, and Stefano Ermon. Learning hierarchical features from generative models. arXiv preprint arXiv:1702.08396, 2017. ",
1334
+ "bbox": [
1335
+ 173,
1336
+ 688,
1337
+ 823,
1338
+ 717
1339
+ ],
1340
+ "page_idx": 15
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "1. For all authors... ",
1345
+ "bbox": [
1346
+ 214,
1347
+ 734,
1348
+ 339,
1349
+ 750
1350
+ ],
1351
+ "page_idx": 15
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Section 1 and 5. \n(b) Did you describe the limitations of your work? [Yes] See Section 6. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 6. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1356
+ "bbox": [
1357
+ 238,
1358
+ 753,
1359
+ 825,
1360
+ 858
1361
+ ],
1362
+ "page_idx": 15
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "2. If you are including theoretical results... ",
1367
+ "bbox": [
1368
+ 215,
1369
+ 862,
1370
+ 493,
1371
+ 877
1372
+ ],
1373
+ "page_idx": 15
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
1378
+ "bbox": [
1379
+ 236,
1380
+ 881,
1381
+ 738,
1382
+ 911
1383
+ ],
1384
+ "page_idx": 15
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "3. If you ran experiments... ",
1389
+ "bbox": [
1390
+ 214,
1391
+ 92,
1392
+ 393,
1393
+ 106
1394
+ ],
1395
+ "page_idx": 16
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "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)? [Yes] See supplemental material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appdendix D in supplemental material. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Table 1. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appdendix D in supplemental material. ",
1400
+ "bbox": [
1401
+ 238,
1402
+ 109,
1403
+ 825,
1404
+ 256
1405
+ ],
1406
+ "page_idx": 16
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1411
+ "bbox": [
1412
+ 209,
1413
+ 261,
1414
+ 821,
1415
+ 275
1416
+ ],
1417
+ "page_idx": 16
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 4. \n(b) Did you mention the license of the assets? [Yes] See Appendix A in supplemental material. \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] See supplemental material. We are also commited to open source our code upon publication. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] See Appendix A in supplemental material. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] See Appendix A in supplemental material. ",
1422
+ "bbox": [
1423
+ 238,
1424
+ 280,
1425
+ 825,
1426
+ 440
1427
+ ],
1428
+ "page_idx": 16
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1433
+ "bbox": [
1434
+ 214,
1435
+ 445,
1436
+ 705,
1437
+ 460
1438
+ ],
1439
+ "page_idx": 16
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "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] ",
1444
+ "bbox": [
1445
+ 238,
1446
+ 464,
1447
+ 825,
1448
+ 554
1449
+ ],
1450
+ "page_idx": 16
1451
+ }
1452
+ ]
parse/train/HfpNVDg3ExA/HfpNVDg3ExA_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HfpNVDg3ExA/HfpNVDg3ExA_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HklXn1BKDH/HklXn1BKDH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hklso24Kwr/Hklso24Kwr.md ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CONTINUAL LEARNING WITH ADAPTIVE WEIGHTS(CLAW)
2
+
3
+ Tameem Adel
4
+ Department of Engineering, University of Cambridge
5
+ tah47@cam.ac.uk
6
+
7
+ Han Zhao Carnegie Mellon University han.zhao@cs.cmu.edu
8
+
9
+ Richard E. Turner
10
+ Department of Engineering, University of Cambridge
11
+ Microsoft Research
12
+ ret26@cam.ac.uk
13
+
14
+ # ABSTRACT
15
+
16
+ Approaches to continual learning aim to successfully learn a set of related tasks that arrive in an online manner. Recently, several frameworks have been developed which enable deep learning to be deployed in this learning scenario. A key modelling decision is to what extent the architecture should be shared across tasks. On the one hand, separately modelling each task avoids catastrophic forgetting but it does not support transfer learning and leads to large models. On the other hand, rigidly specifying a shared component and a task-specific part enables task transfer and limits the model size, but it is vulnerable to catastrophic forgetting and restricts the form of task-transfer that can occur. Ideally, the network should adaptively identify which parts of the network to share in a data driven way. Here we introduce such an approach called Continual Learning with Adaptive Weights (CLAW), which is based on probabilistic modelling and variational inference. Experiments show that CLAW achieves state-of-the-art performance on six benchmarks in terms of overall continual learning performance, as measured by classification accuracy, and in terms of addressing catastrophic forgetting.
17
+
18
+ # 1 INTRODUCTION
19
+
20
+ Continual learning (CL), sometimes called lifelong or incremental learning, refers to an online framework where the knowledge acquired from learning tasks in the past is kept and accumulated so that it can be reused in the present and future. Data belonging to different tasks could potentially be non i.i.d. (Schlimmer & Fisher, 1986; Sutton & Whitehead, 1993; Ring, 1997; Schmidhuber, 2013; Nguyen et al., 2018; Schmidhuber, 2018). A continual learner must be able to learn a new task, crucially, without forgetting previous tasks (Ring, 1995; Srivastava et al., 2013; Schwarz et al., 2018; Serra et al., 2018; Hu et al., 2019). In addition, CL frameworks should continually adapt to any domain shift occurring across tasks. The learning updates must be incremental – i.e, the model is updated at each task only using the new data and the old model, without access to all previous data (from earlier tasks) – due to speed, security and privacy constraints. A compromise must be found between adapting to new tasks and enforcing stability to preserve knowledge from previous tasks. Excessive adaptation could lead to inadvertent forgetting of how to perform earlier tasks. Indeed, catastrophic forgetting is one of the main pathologies in continual learning (McCloskey & Cohen, 1989; Ratcliff, 1990; Robins, 1993; 1995; French, 1999; Pape et al., 2011; Goodfellow et al., 2014a; Achille et al., 2018; Kemker et al., 2018; Kemker & Kanan, 2018; Diaz-Rodriguez et al., 2018; Zeno et al., 2018; Ahn et al., 2019; Parisi et al., 2019; Pfulb & Gepperth, 2019; Rajasegaran et al., 2019).
21
+
22
+ Many approaches to continual learning employ an architecture which is divided a priori into (i) a slowly evolving, global part; and (ii) a quickly evolving, task-specific, local part. This is one way to enable multi-task transfer whilst mitigating catastrophic forgetting, which has proven to be effective (Rusu et al., 2016b; Fernando et al., 2017; Yoon et al., 2018), albeit with limitations. Specifying a priori the shared global, and task-specific local parts in the architecture restricts flexibility. As more complex and heterogeneous tasks are considered, one would like a more flexible, data-driven approach to determine the appropriate amount of sharing across tasks. Here, we aim at automating the architecture adaptation process so that each neuron of the network can either be kept intact, i.e. acting as global, or adapted to the new task locally. Our proposed variational inference framework is flexible enough to learn the range within which the adaptation parameters can vary. We introduce for each neuron one binary parameter controlling whether or not to adapt, and two parameters to control the magnitude of adaptation. All parameters are learnt via variational inference. We introduce our framework as an expansion of the variational continual learning algorithm (Nguyen et al., 2018), whose variational and sequential Bayesian nature makes it convenient for our modelling and architecture adaptation procedure. Our modelling ideas can also be applied to other continual learning frameworks, see the Appendix for a brief discussion.
23
+
24
+ We highlight the following contributions: (1) A modelling framework which flexibly automates the adaptation of local and global parts of the (multi-task) continual architecture. This optimizes the tradeoff between mitigating catastrophic forgetting and improving task transfer. (2) A probabilistic variational inference algorithm which supports incremental updates with adaptively learned parameters. (3) The ability to combine our modelling and inference approaches without any significant augmentation of the architecture (no new neurons are needed). (4) State-of-the-art results in six experiments on five datasets, which demonstrate the effectiveness of our framework in terms of overall accuracy and reducing catastrophic forgetting.
25
+
26
+ # 2 BACKGROUND ON VARIATIONAL CONTINUAL LEARNING (VCL)
27
+
28
+ In this paper, we use Variational Continual Learning (VCL, Nguyen et al., 2018) as the underlying continual learning framework. However, our methods apply to other frameworks, see Appendix (Section A.1). VCL is a variational Bayesian framework where the posterior of the model parameters $\pmb \theta$ is learnt and updated continually from a sequence of $T$ datasets, $\{ \pmb { x } _ { t } ^ { ( n ) } , \pmb { y } _ { t } ^ { ( n ) } \} _ { n = 1 } ^ { N _ { t } }$ } tn=1 , where $t =$ $1 , 2 , \ldots , T$ and $N _ { t }$ is the size of the dataset associated with the $t$ -th task. More specifically, denote by $p ( \pmb { y } | \pmb { \theta } , \pmb { x } )$ the probability distribution returned by a discriminative classifier with input $_ { \textbf { \em x } }$ , output $\textbf { { y } }$ and parameters $\pmb { \theta }$ . For $\mathcal { D } _ { t } = \{ \pmb { y } _ { t } ^ { ( n ) } \} _ { n = 1 } ^ { N _ { t } }$ , we approximate the intractable posterior $p ( \pmb { \theta } | \mathcal { D } _ { 1 : t } )$ after observing the first $t$ datasets via a tractable variational distribution $q _ { t }$ as:1
29
+
30
+ $$
31
+ \mathbf { q } _ { t } ( \pmb \theta ) \approx \frac { 1 } { Z _ { t } } \mathbf { q } _ { t - 1 } ( \pmb \theta ) p ( \mathcal { D } _ { t } | \pmb \theta ) ,
32
+ $$
33
+
34
+ where ${ \bf q } _ { 0 }$ is the prior $p$ , $\begin{array} { r } { p ( \mathcal { D } _ { t } | \pmb { \theta } ) = \prod _ { n = 1 } ^ { N _ { t } } p ( \pmb { y } _ { t } ^ { ( n ) } | \pmb { \theta } , \pmb { x } _ { t } ^ { ( n ) } ) } \end{array}$ , and $Z _ { t }$ is the normalizing constant which does not depend on $\pmb \theta$ but only on the data $\mathcal { D }$ . This framework allows the approximate posterior $\mathbf { q } _ { t } ( \pmb { \theta } )$ to be updated incrementally from the previous approximate posterior $\mathbf { q } _ { t - 1 } ( \pmb { \theta } )$ in an online fashion. In VCL, the approximation in (1) is performed by minimizing the following KL-divergence over a family $\mathcal { Q }$ of tractable distributions:
35
+
36
+ $$
37
+ \mathbf { q } _ { t } ( \pmb \theta ) = \underset { \mathbf { q } \in \mathcal { Q } } { \mathrm { a r g m i n } } \mathrm { K L } \Big ( \mathbf { q } ( \pmb \theta ) \parallel \frac { 1 } { Z _ { t } } \mathbf { q } _ { t - 1 } ( \pmb \theta ) p ( \mathcal { D } _ { t } | \pmb \theta ) \Big ) .
38
+ $$
39
+
40
+ This framework can be enhanced to further mitigate catastrophic forgetting by using a coreset (Nguyen et al., 2018), i.e. a representative set of data from previously observed tasks that can serve as memory and can be revisited before making a decision. As discussed in the Related Work, this leads to overhead costs of memory and optimisation (selecting most representative data points). Previous work on VCL considered simple models without automatic architecture building or adaptation.
41
+
42
+ # 3 OUR CLAW APPROACH
43
+
44
+ In earlier CL approaches, the parts of the network architecture that are shared among the learnt tasks are designated a priori. To alleviate this rigidity and to effectively balance adaptation and stability, we propose a multi-task, continual model in which the adaptation of the architecture is data-driven by learning which neurons need to be adapted as well as the maximum adaptation capacity for each. All the model parameters (including those used for adaptation) are estimated via an efficient variational inference algorithm which incrementally learns from data of the successive tasks, without a need to store (nor generate) data from previous tasks and with no expansion in the network size.
45
+
46
+ # 3.1 MODELLING
47
+
48
+ With model parameters $\pmb \theta$ , the overall variational objective we aim at maximising at task with index t is equivalent to the following online marginal likelihood:
49
+
50
+ $$
51
+ \mathcal { L } ( \pmb { \theta } ) = - \mathrm { K L } \Big ( \mathbf { q } _ { t } ( \pmb { \theta } ) \| \mathbf { q } _ { t - 1 } ( \pmb { \theta } ) \Big ) + \sum _ { n = 1 } ^ { N _ { t } } \mathbb { E } _ { \mathbf { q } _ { t } ( \pmb { \theta } ) } \big [ \log p ( \pmb { y } ^ { ( n ) } | \pmb { x } ^ { ( n ) } , \pmb { \theta } ) \big ] .
52
+ $$
53
+
54
+ We propose a framework where the architecture, whose parameters are $\pmb \theta$ , is flexibly adapted based on the available tasks, via a learning procedure that will be described below. With each task, we automate the adaptation of the neuron contributions. Both the adaptation decisions (i.e. whether or not to adapt) and the maximum allowed degree of adaptation for every neuron are learnt. We refer to the binary adaptation variable as $_ \alpha$ . There is another variable s that is learnt in a multi-task fashion to control the maximum degree of adaptation, such that the expression s1+e−a − 1 limits how far the task-specific weights can differ from the global weights, in case the respective neuron is to be adapted. The parameter a depicts unconstrained adaptation, as described later.2
55
+
56
+ We illustrate the proposed model to perform this adaptation by learning the probabilistic contributions of the different neurons within the network architecture on a task-by-task basis. We follow this with the inference details. Steps of the proposed modeling are listed as follows:
57
+
58
+ • For a task $T$ , the classifier that we are modeling outputs: $\begin{array} { r } { \sum _ { n = 1 } ^ { N _ { T } } \left[ \log p ( \pmb { y } ^ { ( n ) } | \pmb { x } ^ { ( n ) } , \mathbf { w } ^ { T } ) \right] . } \end{array}$ • The task-specific weights $\mathbf { w } ^ { T }$ can be expressed in terms of their global counterparts as follows:
59
+
60
+ $$
61
+ \mathbf { w } ^ { T } = ( 1 + \mathbf { b } ^ { T } \pmb { \alpha } ^ { T } ) \circ \mathbf { w } .
62
+ $$
63
+
64
+ The symbol $\circ$ denotes an element-wise (Hadamard) multiplication.
65
+
66
+ • For each task $T$ and each neuron $\mathbf { j }$ at layer i, $\alpha _ { \mathrm { i , j } } ^ { T }$ is a binary variable which indicates whether the corresponding weight is adapted $( \alpha _ { \mathbf { i } , \mathbf { j } } ^ { T } = 1 )$ ) or unadapted $( \alpha _ { \mathbf { i } , \mathbf { j } } ^ { T } = 0 )$ . Initially assume that the adaptation probability $\alpha _ { \mathrm { i , j } } ^ { T }$ follows a Bernoulli distribution with probability $\mathbf { p _ { i , j } } ^ { 3 }$ , $\alpha _ { \mathrm { i , j } } ^ { T } \sim$ Bernoulli . Since this Bernoulli is not straightforward to optimise, and to adopt a scalable inference procedure based on continuous latent variables, we replace this Bernoulli with a Gaussian that has an equivalent mean and variance from which we draw $\alpha _ { \mathrm { i , j } } ^ { T }$ . For the sake of attaining higher fidelity than what is granted by a standard Gaussian, we base our inference on a variational Gaussian estimation. Though in a context different from continual learning and with different estimators, the idea of replacing Bernoulli with an equivalent Gaussian has proven to be effective with dropout (Srivastava et al., 2014; Kingma et al., 2015).
67
+
68
+ The approximation of the Bernoulli distribution by the corresponding Gaussian distribution is achieved by matching the mean and variance. The mean and variance of the Bernoulli distribution are $\mathbf { p _ { i , j } }$ , $\mathbf { p _ { i , j } } ( 1 - \mathbf { p _ { i , j } } )$ , respectively. A Gaussian distribution with the same mean and variance is used to fit αTi,j.
69
+
70
+ $$
71
+ \alpha _ { \mathbf { i } , \mathbf { j } } ^ { T } \sim \mathcal { N } ( \mathbf { p } _ { \mathbf { i } , \mathbf { j } } , \mathbf { p } _ { \mathbf { i } , \mathbf { j } } ( 1 - \mathbf { p } _ { \mathbf { i } , \mathbf { j } } ) ) .
72
+ $$
73
+
74
+ • The variable $\mathbf { b } ^ { T }$ controls the strength of the adaptation and it limits the range of adaptation via:
75
+
76
+ $$
77
+ 1 + \mathbf { b } ^ { T } = \frac { \mathbf { s } } { 1 + \mathrm { e } ^ { - \mathbf { a } ^ { T } } } .
78
+ $$
79
+
80
+ So that the maximum adaptation is s. The variable $\mathbf { a } ^ { T }$ is an unconstrained adaptation value, similar to that in (Swietojanski & Renals, 2014). The addition of 1 is to facilitate the usage of a probability distribution while still keeping an adaptation range allowing for the attenuation or amplification of each neuron’s contribution.
81
+
82
+ • Before facing the first dataset and learning task $\mathbf { t } = 1$ , the prior on the weights ${ \bf q } _ { 0 } ( { \bf w } ) = { \bf p } ( { \bf w } )$ is chosen to be a log-scale prior, which can be expressed as: $\mathbf { p } ( \log | \mathbf { w } | ) \propto \mathbf { c }$ , where $\mathbf { c }$ is a constant. The log-scale prior can alternatively be described as:
83
+
84
+ $$
85
+ \mathbf { p } ( | \mathbf { w } | ) \propto \frac { 1 } { | \mathbf { w } | } .
86
+ $$
87
+
88
+ At a high level, adapting neuron contributions can be seen as a generalisation of attention mechanisms in the context of continual learning. Applying this adaptation procedure to the input leads to an attention mechanism. However, our approach is more general since we do not apply it only to the very bottom (i.e. input) layer, but throughout the whole network. We next show how our variational inference mechanism enables us to learn the adaptation parameters.
89
+
90
+ # 3.2 INFERENCE
91
+
92
+ We describe the details related to the proposed variational inference mechanism. The adaptation parameters are included within the variational parameters.
93
+
94
+ The (unadapted version of the) model parameters $\pmb \theta$ consist of the weight vectors w. To automate adaptation, we perform inference on $\mathbf { p _ { i , j } }$ , which would have otherwise been a hyperparameter of the prior (Louizos et al., 2017; Molchanov et al., 2017; Ghosh et al., 2018). Multiplying w by $\left( 1 + \mathbf { b } \alpha \right)$ where $_ { \pmb { \alpha } }$ is distributed according to (5), then from (4) with random noise variable $\mathbf { \epsilon } \sim \mathcal { N } ( 0 , 1 )$ :
95
+
96
+ $$
97
+ \begin{array} { r } { \mathbf { w _ { i , j } ^ { T } } = \gamma _ { \mathbf { i , j } } \left( 1 + \mathbf { b _ { i , j } } \mathbf { p _ { i , j } } + \mathbf { b _ { i , j } } \sqrt { \mathbf { p _ { i , j } } ( 1 - \mathbf { p _ { i , j } } ) } \epsilon \right) , } \\ { \mathbf { q ( w _ { i , j } } \mid \gamma _ { \mathbf { i , j } } ) \sim \mathcal { N } \biggl ( \gamma _ { \mathbf { i , j } } ( 1 + \mathbf { b _ { i , j } } \mathbf { p _ { i , j } } ) , \mathbf { b _ { i , j } ^ { 2 } } \gamma _ { \mathbf { i , j } } ^ { 2 } \mathbf { p _ { i , j } } ( 1 - \mathbf { p _ { i , j } } ) \biggr ) . } \end{array}
98
+ $$
99
+
100
+ From (7) and (8), the corresponding KL-divergence between the variational posterior of $\mathbf { w }$ , $\mathbf { q } ( \mathbf { w } | \gamma )$ and the prior $\mathbf { p } ( \mathbf { w } )$ is as follows. The subscripts are removed when $\mathbf { q }$ in turn is used as a subscript for improved readability. The variational parameters are $\gamma _ { \mathrm { i , j } }$ and $\mathbf { p _ { i , j } }$ .
101
+
102
+ $$
103
+ \begin{array} { r l } & { \mathrm { K L } \Big ( \mathbf { q } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } | \gamma _ { \mathrm { i } , \mathrm { j } } ) \ \lVert \ \mathbf { p } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } ) \Big ) = \mathbb { E } _ { \mathbf { q } ( \mathbf { w } | \gamma ) } \log [ \mathbf { q } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } | \gamma _ { \mathrm { i } , \mathrm { j } } ) / \mathbf { p } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } ) ] = } \\ & { \mathbb { E } _ { \mathbf { q } ( \mathbf { w } | \gamma ) } \log \mathbf { q } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } | \gamma _ { \mathrm { i } , \mathrm { j } } ) - \mathbb { E } _ { \mathbf { q } ( \mathbf { w } | \gamma ) } \log \mathbf { p } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } ) = - \mathbf { H } ( \mathbf { q } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } | \gamma _ { \mathrm { i } , \mathrm { j } } ) ) - \mathbb { E } _ { \mathbf { q } ( \mathbf { w } | \gamma ) } \log \mathbf { p } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } ) } \\ & { = - 0 . 5 \Big ( 1 + \log ( 2 \pi ) + \log ( \mathbf { b } _ { \mathrm { i } , \mathrm { j } } ^ { 2 } \mathbf { p } _ { \mathrm { i } , \mathrm { j } } ( 1 - \mathbf { p } _ { \mathrm { i } , \mathrm { j } } ) ) \Big ) - \mathbb { E } _ { \mathbf { q } ( \mathbf { w } | \gamma ) } \log \frac { 1 } { \lvert \epsilon \rvert } } \\ & { = - \log \mathbf { b } _ { \mathrm { i } , \mathrm { j } } - 0 . 5 \log \mathbf { p } _ { \mathrm { i } , \mathrm { j } } - 0 . 5 \log ( 1 - \mathbf { p } _ { \mathrm { i } , \mathrm { j } } ) + \mathbf { c } + \mathbb { E } _ { \mathbf { q } ( \mathbf { w } _ { \mathrm { i } , \mathrm { j } } ) } \log \vert \epsilon \vert , } \end{array}
104
+ $$
105
+
106
+ where the switch from (9) to (10) is due to the entropy computation (Bernardo & Smith, 2000) of the Gaussian $\bf q ( w _ { i , j } | \gamma _ { i , j } )$ defined in (8). The switch from (10) to (11) is due to using a log-scale prior, similar to Appendix C in (Kingma et al., 2015) and to Section 4.2 in (Molchanov et al., 2017). $\mathbb { E } _ { \mathbf { q } ( \mathbf { w } \mid \gamma ) } \log | \boldsymbol { \epsilon } |$ is computed via an accurate approximation similar to equation (14) in (Molchanov et al., 2017), with slightly different values of $k _ { 1 }$ , $k _ { 2 }$ and $k _ { 3 }$ . This is a very close approximation via numerically pre-computing $\mathbb { E } _ { \mathbf { q } ( \mathbf { w } \mid \gamma ) } \log | \boldsymbol { \epsilon } |$ using a third degree polynomial (Kingma et al., 2015; Molchanov et al., 2017).
107
+
108
+ This is the form of the KL-divergence between the approximate posterior after the first task and the prior. Afterwards, it is straightforward to see how this KL-divergence applies for the subsequent tasks in a manner similar to (2), but while taking into account the new posterior form and original prior.
109
+
110
+ The KL-divergence expression derived in (11) is to be minimised. By minimising (11) with respect to $\mathbf { p _ { i , j } }$ and then using samples from the respective distributions to assign values to $\alpha _ { \mathrm { { i , j } } }$ , adapted contributions of each neuron j at each layer i of the network are learnt per task. Values of $\mathbf { p _ { i , j } }$ are constrained between 0 and 1 during training via projected gradient descent.
111
+
112
+ # Algorithm 1 Continual Learning with Adaptive Weights (CLAW)
113
+
114
+ Input: A sequence of $T$ datasets, $\{ \pmb { x } _ { t } ^ { ( n ) } , \pmb { y } _ { t } ^ { ( n ) } \} _ { n = 1 } ^ { N _ { t } }$ , where $t = 1 , 2 , \dots , T$ and $N _ { t }$ is the size of the dataset associated with the $t$ -th task.
115
+
116
+ Output: $\mathbf { q } _ { t } ( \pmb { \theta } )$ , where $\pmb \theta$ are the model parameters. Initialise all $\bf { p } ( | \mathbf { w _ { i , j } } | )$ with a log-scale prior, as in (7). for $t = 1 \dots T$ do Disclose the dataset $\{ \pmb { x } _ { t } ^ { ( n ) } , \pmb { y } _ { t } ^ { ( n ) } \} _ { n = 1 } ^ { N _ { t } }$ y(n)t }Ntn=1 for the current task t. for $\mathbf { i } = 1 \ldots \#$ layers do for $\mathbf { j } = 1 \ldots \#$ neurons at layer i do Compute $\mathbf { p _ { i , j } }$ using stochastic gradient descent on (11). Compute $\bf { s _ { i , j , t } }$ using (13). Update the corresponding general value $\mathbf { s _ { i , j } }$ using (14). end for end for end for
117
+
118
+ # 3.2.1 LEARNING THE MAXIMUM ADAPTATION VALUES
119
+
120
+ Using (6) to express the value of $\mathbf { b _ { i , j } }$ , and neglecting the constant term therein since it does not affect the optimisation, the KL-divergence in (11) is equivalent to:
121
+
122
+ $$
123
+ \begin{array} { r l } & { \mathrm { K L } \Big ( \mathbf { q } ( \mathbf { w _ { i , j } } | \gamma _ { \mathrm { i , j } } ) \ | \ \mathbf { p } ( \mathbf { w _ { i , j } } ) \Big ) \approx } \\ & { \mathrm { ~ - l o g ~ } \mathbf { s _ { i , j } } + \log ( 1 + \mathrm { e ^ { - \mathbf { a _ { i , j } } } } ) - 0 . 5 \log \mathbf { p _ { i , j } } - 0 . 5 \log ( 1 - \mathbf { p _ { i , j } } ) + \mathbf { c } + \mathbb { E } _ { \mathbf { q } ( \mathbf { w } / \gamma ) } \log | \epsilon | . } \end{array}
124
+ $$
125
+
126
+ Values of $\mathbf { a _ { i , j } }$ are learnt by minimising (12) with respect to $\mathbf { a _ { i , j } }$ . This subsection explains how to learn the maximum adaptation variable $\mathbf { s _ { i , j } }$ . Values of the maximum $\mathbf { s _ { i , j } }$ of the logistic function defined in (6) are learnt from multiple tasks. For each neuron $\mathbf { j }$ at layer i, there is a general value $\mathbf { s _ { i , j } }$ and another value that is specific for each task t, referred to as $\bf { s _ { i , j , t } }$ . This is similar to the meta-learning procedure proposed in (Finn et al., 2017). The following procedure to learn s is performed for each task t such that: (i) the optimisation performed to learn a task-specific value $\bf { s _ { i , j , t } }$ benefits from the warm initialisation with the general value $\mathbf { s _ { i , j } }$ rather than a random initial condition; and then (ii) the new information obtained from the current task $\mathbf { t }$ is reflected back to update the general value $\mathbf { s _ { i , j } }$ .
127
+
128
+ • First divide the sample $N _ { \mathbf { t } }$ into two halves. For the first half, depart from the general value of $\mathbf { s _ { i , j } }$ as an initial condition, and use the assigned data examples from task $\mathbf { t }$ to learn the taskspecific values $\begin{array} { r } { \sum _ { n = 1 } ^ { N _ { t } } \mathbb { E } _ { \mathbf { q } _ { t } ( \theta ) } \big [ \log p ( \pmb { y } ^ { ( n ) } | \pmb { x } ^ { ( n ) } , \pmb { \theta } ) \big ] } \end{array}$ $\bf { s _ { i , j , t } }$ for the current task t. For neuron j at layer i, refer to the second term in (3), as $\mathbf { f } _ { t } ( \pmb { x } , \pmb { y } , \mathbf { s _ { i , j } } )$ . The set of parameters $\pmb \theta$ contains s as well as other parameters, but we focus here on s in the f notation since the following procedure is developed to optimise s. Also, refer to the loss of the (classification) function f as $\mathbf { E r r ( f ) } = \mathbf { C E } ( \mathbf { f } ( \pmb { x } , \theta ) | | \pmb { y } )$ , where CE stands for the cross-entropy:
129
+
130
+ $$
131
+ \mathbf { s _ { i , j , t } } = \mathbf { s _ { i , j } } - \frac { 2 \omega _ { 1 } } { N _ { t } } \nabla _ { \mathbf { s _ { i , j } } } \sum _ { d = 1 } ^ { N _ { t } / 2 } \mathbf { E r r } ( \mathbf { f } _ { t } ( x _ { d } , y _ { d } , \mathbf { s _ { i , j } } ) ) .
132
+ $$
133
+
134
+ • Now use the second half of the data from task $\mathbf { t }$ to update the general learnt value $\mathbf { s _ { i , j } }$ :
135
+
136
+ $$
137
+ \mathbf { s _ { i , j } } = \mathbf { s _ { i , j } } - \frac { 2 \omega _ { 2 } } { N _ { t } } \nabla _ { \mathbf { s _ { i , j } } } \sum _ { d = 1 + N _ { t } / 2 } ^ { N _ { t } } \mathbf { E r r } \big ( \mathbf { f } _ { t } ( x _ { d } , y _ { d } , \mathbf { s } _ { i , j , t } ) \big ) .
138
+ $$
139
+
140
+ Where $\omega _ { 1 }$ and $\omega _ { 2 }$ are step-size parameters.
141
+
142
+ When testing on samples from task t after having faced future tasks $\mathbf { t } + 1 , \mathbf { t } + 2 , \ldots$ , the value of $\mathbf { s _ { i , j } }$ used is the learnt $\bf { s _ { i , j , t } }$ . There is only one value per neuron, so the overhead resulting from storing such values is negligible. The key steps of the algorithm are listed in Algorithm 1.
143
+
144
+ At task t, the algorithmic complexity of a single joint update of the parameters $\pmb \theta$ based on the additive terms in (12) is $O ( M \bar { E } L D ^ { 2 } )$ , where $L$ is the number of layers in the network, $D$ is the
145
+
146
+ (largest) number of neurons within a single layer, $E$ is the number of samples taken from the random noise variable $\epsilon$ , and $M$ is the minibatch size. Each $_ { \pmb { \alpha } }$ is obtained by taking one sample from the corresponding $\mathbf { p }$ , so that does not result in an overhead in terms of the complexity.
147
+
148
+ # 4 EXPERIMENTS
149
+
150
+ Our experiments mainly aim at evaluating the following: (i) the overall performance of the introduced CLAW, depicted by the average classification accuracy over all the tasks; (ii) the extent to which catastrophic forgetting can be mitigated when deploying CLAW; and (iii) the achieved degree of positive forward transfer. The experiments demonstrate the effectiveness of CLAW in achieving state-of-the-art continual learning results measured by classification accuracy and by the achieved reduction in catastrophic forgetting. We also perform ablations in Section D in the Appendix which exhibit the relevance of each of the proposed adaptation parameters.
151
+
152
+ We perform six experiments on five datasets. The datasets in use are: MNIST (LeCun et al., 1998), notMNIST (Butalov, 2011), Fashion-MNIST (Xiao et al., 2017), Omniglot (Lake et al., 2011) and CIFAR-100 (Krizhevsky & Hinton, 2009). We compare the results obtained by CLAW to six different state-of-the-art continual learning algorithms: the VCL algorithm (Nguyen et al., 2018) (original form and one with a coreset), the elastic weight consolidation (EWC) algorithm (Kirkpatrick et al., 2017), the progress and compress (P&C) algorithm (Schwarz et al., 2018), the reinforced continual learning (RCL) algorithm (Xu & Zhu, 2018), the one referred to as functional regularisation for continual learning (FRCL) using Gaussian processes (Titsias et al., 2019) and the learn-to-grow (LTG) algorithm (Li et al., 2019b).
153
+
154
+ # 4.1 OVERALL CLASSIFICATION ACCURACY
155
+
156
+ Our main metric is the all-important classification accuracy. We consider six continual learning experiments, based on the MNIST, notMNIST, Fashion-MNIST, Omniglot and CIFAR-100 datasets. The introduced CLAW is compared to two VCL versions: VCL with no coreset and VCL with a 200-point coreset assembled by the K-center method (Nguyen et al., 2018), EWC, P&C, RCL, FRCL (its TR version) and LTG4. All the reported classification accuracy values reflect the average classification accuracy over all tasks the learner has trained on so far. More specifically, assume that the continual learner has just finished training on a task $t$ , then the reported classification accuracy at time $t$ is the average accuracy value obtained from testing on equally sized sets each belonging to one of the tasks 1, 2, . . . , t. For all the classification experiments, statistics reported are averages of ten repetitions. Statistical significance and standard error of the average classification accuracy obtained after completing the last two tasks of each experiment are displayed in Section E in the Appendix.
157
+
158
+ As can be seen in Figure 1, CLAW achieves state-of-the-art classification accuracy in all the six experiments. The minibatch size is 128 for Split MNIST and 256 for all the other experiments. More detailed descriptions of the results of every experiment are given next:
159
+
160
+ Permuted MNIST Using MNIST, Permuted MNIST is a standard continual learning benchmark (Goodfellow et al., 2014a; Kirkpatrick et al., 2017; Zenke et al., 2017). For each task $t$ , the corresponding dataset is formed by performing a fixed random permutation process on labeled MNIST images. This random permutation is unique per task, i.e. it differs for each task. For the hyperparameter $\lambda$ of EWC, which controls the overall contribution from previous data, we experimented with two values, $\lambda = 1$ and $\lambda = 1 0 0$ . We report the latter since it has always outperformed EWC with $\lambda = 1$ in this experiment. EWC with $\lambda = 1 0 0$ has also previously produced the best EWC classification results (Nguyen et al., 2018). In this experiment, fully connected single-head networks with two hidden layers are used. There are 100 hidden units in each layer, with ReLU activations. Adam (Kingma & Ba, 2015) is the optimiser used in the 6 experiments with $\eta = 0 . 0 0 1$ , $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 9 9$ . Further experimental details are given in Section C in the Appendix. Results of the accumulated classification accuracy, averaged over tasks, on a test set are displayed in Figure 1a. After 10 tasks, CLAW achieves significantly (check the Appendix) higher classification results than all the competitors.
161
+
162
+ Split MNIST In this MNIST based experiment, five binary classification tasks are processed in the following sequence: 0/1, 2/3, 4/5, 6/7, and 8/9 (Zenke et al., 2017). The architecture used consists of fully connected multi-head networks with two hidden layers, each consisting of 256 hidden units with ReLU activations. As can be seen in Figure 1b, CLAW achieves the highest classification accuracy.
163
+
164
+ Split notMNIST It contains 400,000 training images, and the classes are 10 characters, from A to J. Each image consists of one character, and there are different font styles. The five binary classification tasks are: A/F, B/G, C/H, D/I, and E/J. The networks used here contain four hidden layers, each containing 150 hidden units with ReLU activations. CLAW achieves a clear improvement in classification accuracy over competitors (Figure 1c).
165
+
166
+ Split Fashion-MNIST Fashion-MNIST is a dataset whose size is the same as MNIST but it is based on different (and more challenging) 10 classes. The five binary classification tasks here are: T-shirt/Trouser, Pullover/Dress, Coat/Sandals, Shirt/Sneaker, and Bag/Ankle boots. The architecture used is the same as in Split notMNIST. In most of the continual learning tasks (including the more significant, later ones) CLAW achieves a clear classification improvement (Figure 1d).
167
+
168
+ Omniglot This is a sequential learning task of handwritten characters of 50 alphabets (a total of over 1,600 characters with 20 examples each) belonging to the Omniglot dataset (Lake et al., 2011). We follow the same way via which this task has been used in continual learning before (Schwarz et al., 2018; Titsias et al., 2019); handwritten characters from each alphabet constitute a separate task. We thus have 50 tasks, which also allows to evaluate the scalability of the frameworks in comparison. The model used is a CNN. To deal with the convolutions in CLAW, we used the idea proposed and referred to as the local reparameterisation trick by Kingma et al. (2014; 2015), where a single global parameter is employed per neuron activation in the variational distribution, rather than employing parameters for every constituent weight element5. Further details about the CNN used are given in Section C. The automatically adaptable CLAW achieves better classification accuracy (Figure 1e).
169
+
170
+ CIFAR-100 This dataset consists of 60,000 colour images of size $3 2 \times 3 2$ . It contains 100 classes, with 600 images per class. We use a split version CIFAR-100. Similar to Lopez-Paz & Ranzato (2017), we perform a 20-task experiment with a disjoint subset of five classes per task. CLAW achieves significantly higher classification accuracy (Figure 1f) -also higher than the previous state of the art on CIFAR-100 by Kemker & Kanan (2018). Details of the used CNN are in Section C.
171
+
172
+ A conclusion that can be taken from Figure 1(a-f) is that CLAW consistently achieves state-of-the-art results (in all the 6 experiments). It can also be seen that CLAW scales well. For instance, the difference between CLAW and the best competitor is more significant with Split notMNIST than it is with the first two experiments, which are based on the smaller and less challenging MNIST. Also, CLAW achieves good results with Omniglot and CIFAR-100.
173
+
174
+ # 4.2 CATASTROPHIC FORGETTING
175
+
176
+ To assess catastrophic forgetting, we show how the accuracy on the initial task varies over the course of the training procedure on the remaining tasks (Schwarz et al., 2018). Since Omniglot (and CIFAR-100) contain a larger number of tasks: 50 (20) tasks, i.e. 49 (19) remaining tasks after the initial task, this setting is more relevant for Omniglot and CIFAR-100. We nonetheless display the results for Split MNIST, Split notMNIST, Split Fashion-MNIST, Omniglot and CIFAR-100. As can be seen in Figure 2, CLAW (at times jointly) achieves state-of-the-art performance retention degrees. Among the competitors, P&C and LTG also achieve high performance retention degrees.
177
+
178
+ An empirical conclusion that can be made out of this and the previous experiment, is that CLAW achieves better overall continual learning results, partially thanks to the way it addresses catastrophic forgetting. The idea of adapting the architecture by adapting the contributions of neurons of each layer also seems to be working well with datasets like Omniglot and CIFAR-100, giving directions for imminent future work where CLAW can be extended for other application areas based on CNNs.
179
+
180
+ # 4.3 POSITIVE FORWARD TRANSFER
181
+
182
+ The purpose of this experiment is to assess the impact of learning previous tasks on the current task. In other words, we want to evaluate whether an algorithm avoids negative transfer, by evaluating the
183
+
184
+ ![](images/e6ecdbe7d4c10b405132eb4e476925e2418df12a452749b89c23a32ad002e39e.jpg)
185
+ Figure 1: Average test classification accuracy vs. the number of observed tasks in 6 experiments. CLAW achieves significantly higher classification results than the competing continual learning frameworks. Statistical significance values are presented in Section E in the Appendix. The value of $\lambda$ for EWC is 10,000 in (c), and 100 in the other experiments. Best viewed in colour.
186
+
187
+ relative performance achieved on a unique task after learning a varying number of previous tasks (Schwarz et al., 2018). From Figure 3, we can see that CLAW achieves state-of-the-art results in 4 out of the 5 experiments (at par in the fifth) in terms of avoiding negative transfer.
188
+
189
+ ![](images/24bd99e22d08dd9ec2da8a8ae8c5091dc1b6f98f35803912905b538e304ea87b.jpg)
190
+ Figure 2: Evaluating catastrophic forgetting by measuring performance retention. Classification accuracy of the initial task is monitored along with the progression of tasks. Results are displayed for five datasets. CLAW is the least forgetful algorithm since performance levels achieved on the initial task do not degrade as much as in the other methods after facing new tasks. The legend and $\lambda$ values for EWC are the same as in Figure 1. Best viewed in colour.
191
+
192
+ ![](images/d854c8d0f2de31beb1e016c16efbae916c70049a0b38f49e1594338cf9599b38.jpg)
193
+ Figure 3: Evaluating Forward transfer, or to what extent a continual learning framework can avoid negative transfer. The impact of learning previous tasks on a specific task (the last task) is inspected and used as a proxy for evaluating forward transfer. This is performed by evaluating the relative performance achieved on a unique task after learning a varying number of previous tasks. This means that the value at $\mathbf { X } { \cdot } \mathbf { a } \mathbf { X } \mathbf { i } \mathbf { s } = 1$ refers to the learning accuracy of the last task after having learnt solely one task (only itself), the value at 2 refers to the learning accuracy of the last task after having learnt two tasks (an additional previous task), etc. Overall, CLAW achieves state-of-the-art results in 4 out of the 5 experiments (at par in the fifth) in terms of avoiding negative transfer. Best viewed in colour.
194
+
195
+ # 5 RELATED WORK
196
+
197
+ We briefly discuss three related approaches to continual learning: (a) regularisation-based, (b) architecture-based and (c) memory-based. We provide more details of related work in Section A in the Appendix. (a) A complementary approach to CLAW is the regularisation-based approach to balance adaptability with catastrophic forgetting: a level of stability is kept via protecting parameters that greatly influence the prediction against radical changes, while allowing the rest of the parameters to change without restriction (Li & Hoiem, 2016; Lee et al., 2017; Zenke et al., 2017; Chaudhry et al., 2018; Kim et al., 2018; Nguyen et al., 2018; Srivastava et al., 2013; Schwarz et al., 2018; Vuorio et al., 2018; Aljundi et al., 2019c). The elastic weight consolidation (EWC) algorithm by Kirkpatrick et al. (2017) is a seminal example, where a quadratic penalty is imposed on the difference between parameter values of the old and new tasks. One limitation is the high level of hand tuning required. (b) The architecture-based approach aims to deal with stability and adaptation issues by a fixed division of the architecture into global and local parts (Rusu et al., 2016b; Fernando et al., 2017; Shin et al., 2017; Kaplanis et al., 2018; Xu & Zhu, 2018; Yoon et al., 2018; Li et al., 2019b). (c) The memory-based approach relies on episodic memory to store data (or pseudo-data) from previous tasks (Ratcliff, 1990; Robins, 1993; 1995; Thrun, 1996; Schmidhuber, 2013; Hattori, 2014; Mocanu et al., 2016; Rebuffi et al., 2017; Kamra et al., 2017; Shin et al., 2017; Rolnick et al., 2018; van de Ven & Tolias, 2018; Wu et al., 2018; Titsias et al., 2019). Limitations include overheads for tasks such as data storage, replay, and optimisation to select (or generate) the points. CLAW can as well be seen as a combination of a regularisation-based approach (the variational inference mechanism) and a modelling approach which automates the architecture building process in a data-driven manner, avoiding the overhead resulting from either storing or generating data points from previous tasks. CLAW is also orthogonal to (and simple to combine with, if needed) memory-based methods.
198
+
199
+ # 6 CONCLUSION
200
+
201
+ We introduced a continual learning framework which learns how to adapt its architecture from the tasks and data at hand, based on variational inference. Rather than rigidly dividing the architecture into shared and task-specific parts, our approach adapts the contributions of each neuron. We achieve that without having to expand the architecture with new layers or new neurons. Results of six different experiments on five datasets demonstrate the strong empirical performance of the introduced framework, in terms of the average overall continual learning accuracy and forward transfer, and also in terms of effectively alleviating catastrophic forgetting.
202
+
203
+ # ACKNOWLEDGMENTS
204
+
205
+ HZ acknowledges support from the DARPA XAI project, contract#FA87501720152 and an Nvidia GPU grant. RT acknowledges support by Google, Amazon, Improbable and EPSRC grants EP/M0269571 and EP/L000776/1.
206
+
207
+ # REFERENCES
208
+
209
+ A. Achille, T. Eccles, L. Matthey, C. Burgess, N. Watters, A. Lerchner, and I. Higgins. Life-long disentangled representation learning with cross-domain latent homologies. Advances in neural information processing systems (NIPS), 2018.
210
+ Tameem Adel, Han Zhao, and Alexander Wong. Unsupervised domain adaptation with a relaxed covariate shift assumption. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
211
+ H. Ahn, D. Lee, S. Cha, and T. Moon. Uncertainty-based continual learning with adaptive regularization. arXiv preprint arXiv:1905.11614, 2019.
212
+ R. Aljundi, L. Caccia, E. Belilovsky, M. Caccia, M. Lin, L. Charlin, and T. Tuytelaars. Online continual learning with maximally interfered retrieval. Advances in neural information processing systems (NeurIPS), 2019a.
213
+ R. Aljundi, M. Lin, B. Goujaud, and Y. Bengio. Gradient based sample selection for online continual learning. Advances in neural information processing systems (NeurIPS), 2019b.
214
+ R. Aljundi, M. Rohrbach, and T. Tuytelaars. Selfless sequential learning. International Conference on Learning Representations (ICLR), 2019c.
215
+ B. Bakker and T. Heskes. Task clustering and gating for Bayesian multitask learning. Journal of Machine Learning Research (JMLR), 4:83–99, 2003.
216
+ J. Bernardo and A. Smith. Bayesian theory. John Wiley & Sons, 2000.
217
+ Y. Butalov. The notMNIST dataset. http://yaroslavvb.com/upload/notMNIST/, 2011.
218
+ G. Carpenter and S. Grossberg. A massively parallel architecture for a self-organizing neural pattern recognition machine. Computer vision, graphics, and image processing, 37:54–115, 1987.
219
+ R. Caruana. Multi-task learning. Machine Learning, 1997.
220
+ A. Chaudhry, P. Dokania, T. Ajanthan, and P. Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. arXiv preprint arXiv:1801.10112, 2018.
221
+ E. Choi, K. Lee, and K. Choi. Autoencoder-based incremental class learning without retraining on old data. arXiv preprint arXiv:1907.07872, 2019.
222
+ N. Diaz-Rodriguez, V. Lomonaco, D. Filliat, and D. Maltoni. Don’t forget, there is more than forgetting: new metrics for Continual Learning. NIPS Continual Learning Workshop, 2018.
223
+ X. Du, G. Charan, F. Liu, and Y. Cao. Single-net continual learning with progressive segmented training (PST). arXiv preprint arXiv:1905.11550, 2019.
224
+ S. Ebrahimi, M. Elhoseiny, T. Darrell, and M. Rohrbach. Uncertainty-guided continual learning with Bayesian neural networks. arXiv preprint arXiv:1906.02425, 2019.
225
+ C. Fernando, D. Banarse, C. Blundell, Y. Zwols, D. Ha, A. Rusu, A. Pritzel, and D. Wierstra. PathNet: Evolution channels gradient descent in super neural networks. arXiv preprint arXiv:1701.08734, 2017.
226
+ C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. International Conference on Machine Learning (ICML), 2017.
227
+ R. French. Catastrophic forgetting in connectionist networks. Trends in cognitive sciences, 3:128–135, 1999.
228
+ S. Ghosh, J. Yao, and F. Doshi-Velez. Structured variational learning of Bayesian neural networks with horseshoe priors. International Conference on Machine Learning (ICML), 2018.
229
+ I. Goodfellow. NIPS 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:1701.00160, 2016.
230
+ I. Goodfellow, D. Warde-Farley, M. Mirza, A. Courville, and Y. Bengio. Maxout networks. International Conference on Machine Learning (ICML), 2013.
231
+ I. Goodfellow, M. Mirza, D. Xiao, A. Courville, and Y. Bengio. An empirical investigation of catastrophic forgetting in gradient-based neural networks. International Conference on Learning Representations (ICLR), 2014a.
232
+ I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. Advances in neural information processing systems (NIPS), pp. 2672–2680, 2014b.
233
+ M. Hattori. A biologically inspired dual-network memory model for reduction of catastrophic forgetting. Neurocomputing, 134:262–268, 2014.
234
+ X. He, J. Sygnowski, A. Galashov, A. Rusu, Y. Whye Teh, and R. Pascanu. Task agnostic continual learning via meta learning. arXiv preprint arXiv:1906.05201, 2019.
235
+ T. Heskes. Empirical Bayes for learning to learn. 2000.
236
+ W. Hu, Z. Lin, B. Liu, C. Tao, Z. Tao, J. Ma, D. Zhao, and R. Yan. Overcoming catastrophic forgetting via model adaptation. International Conference on Learning Representations (ICLR), 2019.
237
+ D. Isele and A. Cosgun. Selective experience replay for lifelong learning. arXiv preprint arXiv:1802.10269, 2018.
238
+ K. Javed and M. White. Meta-learning representations for continual learning. Advances in neural information processing systems (NeurIPS), 2019.
239
+ H. Jung, J. Ju, M. Jung, and J. Kim. Less-forgetting learning in deep neural networks. arXiv preprint arXiv:1607.00122, 2016.
240
+ N. Kamra, U. Gupta, and Y. Liu. Deep generative dual memory network for continual learning. arXiv preprint arXiv:1710.10368, 2017.
241
+ C. Kaplanis, M. Shanahan, and C. Clopath. Continual reinforcement learning with complex synapses. International Conference on Machine Learning (ICML), 2018.
242
+ R. Kemker and C. Kanan. FearNet: Brain-inspired model for incremental learnings. International Conference on Learning Representations (ICLR), 2018.
243
+ R. Kemker, M. McClure, A. Abitino, T. Hayes, and C. Kanan. Measuring catastrophic forgetting in neural networks. AAAI Conference on Artificial Intelligence, 32, 2018.
244
+ D. Kim, J. Bae, Y. Jo, and J. Choi. Incremental learning with maximum entropy regularization: Rethinking forgetting and intransigence. arXiv preprint arXiv:1902.00829, 2019.
245
+ H. Kim, S. Kim, and J. Lee. Keep and learn: Continual learning by constraining the latent space for knowledge preservation in neural networks. MICCAI, 2018.
246
+ D. Kingma and J. Ba. Adam: A Method for Stochastic Optimization. International Conference on Learning Representations (ICLR), 2015.
247
+
248
+ D. Kingma, D. Rezende, S. Mohamed, and M. Welling. Semi-supervised learning with deep generative models. Advances in neural information processing systems (NIPS), 28:3581–3589, 2014.
249
+
250
+ D. Kingma, T. Salimans, and M. Welling. Variational dropout and the local reparameterization trick. Advances in neural information processing systems (NIPS), pp. 2575–2583, 2015.
251
+
252
+ J. Kirkpatrick, R. Pascanu, N. Rabinowitz, J. Veness, G. Desjardins, A. Rusu, K. Milan, J. Quan, T. Ramalho, A. Grabska-Barwinska, D. Hassabis, C. Clopath, D. Kumaran, and R. Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences (PNAS), 2017.
253
+
254
+ A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Technical Report, University of Toronto, 2009.
255
+
256
+ B. Lake, R. Salakhutdinov, J. Gross, and J. Tenenbaum. One shot learning of simple visual concepts. Proceedings of the Cognitive Science Society, 33, 2011.
257
+
258
+ Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. In Proceedings of the IEEE, 86(11):2278–2324, 1998.
259
+
260
+ S. Lee, J. Kim, J. Jun, J. Ha, and B. Zhang. Overcoming catastrophic forgetting by incremental moment matching. Advances in neural information processing systems (NIPS), 2017.
261
+
262
+ H. Li, S. Enshaeifar, F. Ganz, and P. Barnaghi. Continual learning in deep neural network by using a Kalman optimiser. ICML Workshop, 2019a.
263
+
264
+ X. Li, Y. Zhou, T. Wu, R. Socher, and C. Xiong. Learn to grow: A continual structure learning framework for overcoming catastrophic forgetting. International Conference on Machine Learning (ICML), 2019b.
265
+
266
+ Z. Li and D. Hoiem. Learning without forgetting. European Conference on Computer Vision (ECCV), 2016.
267
+
268
+ M. Lin, J. Fu, and Y. Bengio. Conditional computation for continual learning. NIPS Continual Learning Workshop, 2018.
269
+
270
+ D. Lopez-Paz and M. Ranzato. Gradient episodic memory for continual learning. Advances in neural information processing systems (NIPS), 2017.
271
+
272
+ C. Louizos, K. Ullrich, and M. Welling. Bayesian compression for deep learning. Advances in neural information processing systems (NIPS), pp. 3288–3298, 2017.
273
+
274
+ M. McCloskey and N. Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of Learning and Motivation, 1989.
275
+
276
+ D. Mocanu, M. Vega, E. Eaton, P. Stone, and A. Liotta. Online contrastive divergence with generative replay: Experience replay without storing data. arXiv preprint arXiv:1610.05555, 2016.
277
+
278
+ D. Molchanov, A. Ashukha, and D. Vetrov. Variational dropout sparsifies deep neural networks. International Conference on Machine Learning (ICML), pp. 2498–2507, 2017.
279
+
280
+ C. Nguyen, Y. Li, T. Bui, and R. Turner. Variational continual learning. International Conference on Learning Representations (ICLR), 2018.
281
+
282
+ O. Ostapenko, M. Puscas, T. Klein, P. Jahnichen, and M. Nabi. Learning to remember: A synaptic plasticity driven framework for continual learning. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
283
+
284
+ L. Pape, F. Gomez, M. Ring, and J. Schmidhuber. Modular deep belief networks that do not forget. IEEE International Joint Conference on Neural Networks (IJCNN), 2011.
285
+
286
+ G. Parisi, R. Kemker, J. Part, C. Kanan, and S. Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 2019.
287
+
288
+ D. Park, S. Hong, B. Han, and K. Lee. Continual learning by asymmetric loss approximation with single-side overestimation. arXiv preprint arXiv:1908.02984, 2019.
289
+ B. Pfulb and A. Gepperth. A comprehensive, application-oriented study of catastrophic forgetting in DNNs. International Conference on Learning Representations (ICLR), 2019.
290
+ J. Rajasegaran, M. Hayat, S. Khan, F. Khan, and L. Shao. Random path selection for incremental learning. Advances in neural information processing systems (NeurIPS), 2019.
291
+ R. Ratcliff. Connectionist models of recognition memory: Constraints imposed by learning and forgetting functions. Psychological Review, 1990.
292
+ S. Rebuffi, A. Kolesnikov, G. Sperl, and C. Lampert. iCaRL: Incremental classifier and representation learning. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
293
+ M. Riemer, I. Cases, R. Ajemian, M. Liu, I.Rish, Y. Tu, and G. Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. International Conference on Learning Representations (ICLR), 2019.
294
+ M. Ring. Continual learning in reinforcement environments. PhD thesis, University of Texas, Austin, 1995.
295
+ M. Ring. CHILD: A first step towards continual learning. Machine Learning, 1997.
296
+ A. Robins. Catastrophic forgetting in neural networks: The role of rehearsal mechanisms. IEEE Artificial Neural Networks and Expert Systems, pp. 65–68, 1993.
297
+ A. Robins. Catastrophic forgetting, rehearsal and pseudorehearsal. Connection Science, 7:123–146, 1995.
298
+ D. Rolnick, A. Ahuja, J. Schwarz, T. Lillicrap, and G. Wayne. Experience replay for continual learning. arXiv preprint arXiv:1811.11682, 2018.
299
+ A. Rusu, N. Rabinowitz, G. Desjardins, H. Soyer, J. Kirkpatrick, K. Kavukcuoglu, R. Pascanu, and R. Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016a.
300
+ A. Rusu, M. Vecerik, T. Rothoerl, N. Heess, R. Pascanu, and R. Hadsell. Sim-to-Real robot learning from pixels with progressive nets. arXiv preprint arXiv:1610.04286, 2016b.
301
+ J. Schlimmer and D. Fisher. A case study of incremental concept induction. The National Conference on Artificial Intelligence, 1986.
302
+ J. Schmidhuber. Powerplay: Training an increasingly general problem solver by continually searching for the simplest still unsolvable problem. Frontiers in psychology, 4, 2013.
303
+ J. Schmidhuber. One big net for everything. arXiv preprint arXiv:1802.08864, 2018.
304
+ J. Schwarz, J. Luketina, W. Czarnecki, A. Grabska-Barwinska, Y. Whye Teh, R. Pascanu, and R. Hadsell. Progress & compress: A scalable framework for continual learning. International Conference on Machine Learning (ICML), 2018.
305
+ J. Serra, D. Suris, M. Miron, and A. Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. International Conference on Machine Learning (ICML), 2018.
306
+ H. Shin, J. Lee, J. Kim, and J. Kim. Continual learning with deep generative replay. Advances in neural information processing systems (NIPS), 2017.
307
+ N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research (JMLR), 15: 1929–1958, 2014.
308
+ R. Srivastava, J. Masci, S. Kazerounian, F. Gomez, and J. Schmidhuber. Compete to compute. Advances in neural information processing systems (NIPS), 2013.
309
+ A. Stickland and I. Murray. BERT and PALs: Projected attention layers for efficient adaptation in multi-task learning. International Conference on Machine Learning (ICML), 2019.
310
+ R. Sutton and S. Whitehead. Online learning with random representations. International Conference on Machine Learning (ICML), 1993.
311
+ P. Swietojanski and S. Renals. Learning hidden unit contributions for unsupervised speaker adaptation of neural network acoustic models. IEEE Spoken Language Technology Workshop (SLT), 2014.
312
+ D. Teng and S. Dasgupta. Continual learning via online leverage score sampling. arXiv preprint arXiv:1908.00355, 2019.
313
+ S. Thrun. Explanation-based neural network learning: A lifelong learning approach. Springer Science & Business Media, 357, 1996.
314
+ M. Titsias, J. Schwarz, A. Matthews, R. Pascanu, and Y. Whye Teh. Functional regularisation for continual learning using Gaussian processes. arXiv preprint arXiv:1901.11356, 2019.
315
+ G. van de Ven and A. Tolias. Generative replay with feedback connections as a general strategy for continual learning. arXiv preprint arXiv:1809.10635, 2018.
316
+ R. Vuorio, D. Cho, D. Kim, and J. Kim. Meta continual learning. arXiv preprint arXiv:1806.06928, 2018.
317
+ C. Wu, L. Herranz, X. Liu, Y. Wang, J. van de Weijer, and B. Raducanu. Memory replay GANs: Learning to generate new categories without forgetting. Advances in neural information processing systems (NIPS), 2018.
318
+ H. Xiao, K. Rasul, and R. Vollgraf. Fashion-MNIST: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
319
+ J. Xu and Z. Zhu. Reinforced continual learning. Advances in neural information processing systems (NIPS), 2018.
320
+ J. Xu, J. Ma, and Z. Zhu. Bayesian Optimized Continual Learning with Attention Mechanism. arXiv preprint arXiv:1905.03980, 2019.
321
+ J. Yoon, E. Yang, J. Lee, and S. Hwang. Lifelong learning with dynamically expandable networks. International Conference on Learning Representations (ICLR), 2018.
322
+ J. Yoon, S. Kim, E. Yang, and S. Hwang. ORACLE: Order robust adaptive continual learning. arXiv preprint arXiv:1902.09432, 2019.
323
+ F. Zenke, B. Poole, and S. Ganguli. Continual learning through synaptic intelligence. International Conference on Machine Learning (ICML), 2017.
324
+ C. Zeno, I. Golan, E. Hoffer, and D. Soudry. Task agnostic continual learning using online variational Bayes. NIPS Bayesian Deep Learning Workshop, 2018.
325
+ Han Zhao, Otilia Stretcu, Alex Smola, and Geoff Gordon. Efficient multitask feature and relationship learning. In Proceedings of the Thirty-Fifth Conference on Uncertainty in Artificial Intelligence. AUAI Press, 2019a.
326
+ Han Zhao, Yao-Hung Hubert Tsai, Ruslan Salakhutdinov, and Geoffrey J Gordon. Learning neural networks with adaptive regularization. In Advances in Neural Information Processing Systems, 2019b.
327
+
328
+ # APPENDIX
329
+
330
+ We begin by briefly summarising the contents of the Appendix below:
331
+
332
+ • Related works are described in Section A, followed by a brief discussion on the potential applicability of CLAW to another continual learning (CL) framework in Section A.1.
333
+ • In Section E, we provide the statistical significance and standard error of the average classification accuracy results obtained after completing the last two tasks from each experiment.
334
+ • Further experimental details are given in Section C.
335
+ • In Section D and Figures 4a- 4e, we display the results of performed ablations which manifest the relevance of each adaptation parameter.
336
+
337
+ # A MORE RELATED WORK
338
+
339
+ A complementary approach to CLAW, which could be combined with it, is the regularisation-based approach to balance adaptability with catastrophic forgetting: a level of stability is kept via protecting parameters that greatly influence the prediction against radical changes, while allowing the rest of the parameters to change without restriction (Li & Hoiem, 2016; Vuorio et al., 2018). In (Zenke et al., 2017), the regulariser is based on synapses where an importance measure is locally computed at each synapse during training, based on their respective contributions to the change in the global loss. During a task change, the less important synapses are given the freedom to change whereas catastrophic forgetting is avoided by preventing the important synapses from changing (Zenke et al., 2017). The elastic weight consolidation (EWC) algorithm, introduced by Kirkpatrick et al. (2017), is a seminal example of this approach where a quadratic penalty is imposed on the difference between parameter values of the old and new tasks. One limitation of EWC, which is rather alleviated by using minibatch or stochastic estimates, appears when the output space is not low-dimensional, since the diagonal of the Fisher information matrix over parameters of the old task must be computed, which requires a summation over all possible output labels (Kirkpatrick et al., 2017; Zenke et al., 2017; Schwarz et al., 2018). In addition, the regularisation term involves a sum over all previous tasks with a term from each and a hand-tuned hyperparameter that alters the weight given to it. The accumulation of this leads to a lot of hand-tuning. The work in (Chaudhry et al., 2018) is based on penalising confident fitting to the uncertain knowledge by a maximum entropy regulariser.
340
+
341
+ Another seminal algorithm based on regularisation, which can be applied to any model, is variational continual learning (VCL) (Nguyen et al., 2018) which formulates CL as a sequential approximate (variational) inference problem. However, VCL has only been applied to simple architectures, not involving any automatic model building or adaptation. The framework in (Lee et al., 2017) incrementally matches the moments of the posterior of a Bayesian neural network that has been trained on the first and then the second task, and so on. Other algorithms pursue regularisation approaches based on sparsity (Srivastava et al., 2013; Kim et al., 2018). For example, the work in (Aljundi et al., 2019c) encourages sparsity on the neuron activations to alleviate catastrophic forgetting. The $l _ { 2 }$ distance between the top hidden activations of the old and new tasks is used for regularisation in (Jung et al., 2016). This approach has achieved good results, but is computationally expensive due to the necessity of computing at least a forward pass for every new data point through the network representing the old task (Zenke et al., 2017). Other regularisation-based continual learning algorithms include (Ebrahimi et al., 2019; Park et al., 2019).
342
+
343
+ Another approach is the architecture-based one where the principal aim is to administer both the stability and adaptation issues via dividing the architecture into reusable parts that are less prone to changes, and other parts especially devoted to individual tasks (Rusu et al., 2016b; Fernando et al., 2017; Yoon et al., 2018; Du et al., 2019; He et al., 2019; Li et al., 2019a; Xu et al., 2019). To learn a new task in the work by Rusu et al. (2016a), the whole network from the previous task is first copied then augmented with a new part of the architecture. Although this is effective in eradicating catastrophic forgetting, there is a clear scalability issue since the architecture growth can be prohibitively high, especially with an increasing number of tasks. The work introduced in (Li et al., 2019b) bases its continual learning on neural architecture search, whereas the representation in (Javed & White, 2019) is optimised such that online updates minimize the error on all samples while limiting forgetting. The framework proposed by Xu & Zhu (2018) interestingly aims at solving this neural architecture structure learning problem, while balancing the tradeoff between adaptation and stability, via designed reinforcement learning (RL) strategies. When facing a new task, the optimal number of neurons and filters to add to each layer is cast as a combinatorial optimisation problem solved by an RL strategy whose reward signal is a function of validation accuracy and network complexity. Another RL based framework is the one presented by Kaplanis et al. (2018) where catastrophic forgetting is mitigated at multiple time scales via RL agents with a synaptic model inspired by neuroscience. Bottom layers (those near the input) are generally shared among the different tasks, while layers near the output are task-specific. Since the model structure is usually divided a priori and no automatic architecture learning nor adaptation takes place, alteration on the shared layers can still cause performance loss on earlier tasks due to forgetting (Shin et al., 2017). A clipped version of maxout networks (Goodfellow et al., 2013) is developed in (Lin et al., 2018) where parameters are partially shared among examples. The method in (Ostapenko et al., 2019) is based a dynamic network expansion accomplished by a generative adversarial network.
344
+
345
+ The memory-based approach, which is the third influential approach to address the adaptationcatastrophic forgetting tradeoff, relies on episodic memory to store data (or pseudodata) from previous tasks (Ratcliff, 1990; Robins, 1993; 1995; Hattori, 2014; Rolnick et al., 2018; Teng & Dasgupta, 2019). A major limitation of the memory-based approach is that data from previous tasks may not be available in all real-world problems (Shin et al., 2017; Choi et al., 2019). Another limitation is the overhead resulting from the memory requirements, e.g. storage, replay, etc. In addition, the optimisation required to select the best observation to replay for future tasks is a source of further overhead (Titsias et al., 2019). In addition to the explicit replay form, some works have been based on generative replay (Thrun, 1996; Schmidhuber, 2013; Mocanu et al., 2016; Rebuffi et al., 2017; Kamra et al., 2017; Shin et al., 2017; van de Ven & Tolias, 2018; Wu et al., 2018). Notably, Shin et al. (2017) train a deep generative model based on generative adversarial networks (GANs, Goodfellow et al., 2014b; Goodfellow, 2016) to mimic past data. This mitigates the aforementioned problem, albeit at the added cost of the training of the generative model (Schwarz et al., 2018) and sharing its parameters. Alleviating catastrophic forgetting via replay mechanisms has also been adopted in reinforcement learning, e.g. (Isele & Cosgun, 2018; Rolnick et al., 2018). A similar approach was introduced by Lopez-Paz & Ranzato (2017) where gradients of the previous task (rather than data examples) are stored so that a trust region consisting of gradients of all previous tasks can be formed to reduce forgetting. Other algorithms based on replay mechanisms include (Aljundi et al., 2019a;b).
346
+
347
+ Equivalent tradeoffs to the one between adaptation and stability can be found in the literature since the work in (Carpenter & Grossberg, 1987), in which a balance was needed to resolve the stabilityplasticity dilemma, where the latter refers to the ability to rapidly adapt to new tasks. The works introduced in (Chaudhry et al., 2018; Kim et al., 2019) shed light on the tradeoff between adaptation and stability, where they explore measures of intransigence and forgetting. The former refers to the inability to adapt to new tasks and data, whereas an increase in the latter clearly signifies an instability problem. Other recent works tackling the same tradeoff include (Riemer et al., 2019) where the transfer-interference (interference is catastrophic forgetting) tradeoff is optimised for the sake of maximising transfer and minimising interference by an algorithm based on experience replay and meta-learning. Other recent algorithms include the ORACLE algorithm by Yoon et al. (2019), which addresses the sensitivity of a continual learner to the order of tasks it encounters by establishing an order robust learner that represents the parameters of each task as a sum of task-shared and task-specific parameters. The algorithm in (Titsias et al., 2019) achieves functional regularisation by performing approximate inference over the function (instead of parameter) space. They use a Gaussian process obtained by assuming the weights of the last neural network layer to be Gaussian distributed. Our model is also related to the multi-task learning approach (Caruana, 1997; Heskes, 2000; Bakker & Heskes, 2003; Adel et al., 2017; Zhao et al., 2019a; Stickland & Murray, 2019; Zhao et al., 2019b).
348
+
349
+ # A.1 APPLICABILITY OF CLAW TO OTHER CL FRAMEWORKS
350
+
351
+ As mentioned in the main document, ideas of the proposed CLAW can be applied to continual learning frameworks other than VCL. The latter is more relevant for the inference part of CLAW since both are based on variational inference. As per the modeling ideas, e.g. the binary adaptation parameter depicting whether or not to adapt, and the maximum allowed adaptation, these can be integrated within other continual learning frameworks. For example, the algorithm in Xu & Zhu (2018) utilises reinforcement learning to adaptively expand the network. The optimal number of nodes and filters to be added is cast as a combinatorial optimisation problem. In CLAW, we do not expand the network. As such, an extension of the work in (Xu & Zhu, 2018) can be inspired by CLAW where not only the number of nodes and filters to be added is decided for each task, but also a soft and more general version where an adaptation based on the same network size is performed such that the network expansion needed in (Xu & Zhu, 2018) can be further moderated.
352
+
353
+ # B STATISTICAL SIGNIFICANCE AND STANDARD ERROR
354
+
355
+ In this section, we provide information about the statistical significance and standard error of CLAW and the competing continual learning frameworks. In Table 1, we list the average accuracy values (Figure 1 in the main document) obtained after completing the last two tasks from each of the six experiments. A bold entry in Table 1 denotes that the classification accuracy of an algorithm is significantly higher than its competitors. Significance results are identified using a paired t-test with $\mathrm { p = 0 . 0 5 }$ . Each average accuracy value is followed by the corresponding standard error. Average classification accuracy resulting from CLAW is significantly higher than its competitors on the 6 experiments.
356
+
357
+ Table 1: Average test classification accuracy of the last two tasks in each of the six experiments: Permuted MNIST, Split MNIST, Split notMNIST, Split Fashion-MNIST, Omniglot and CIFAR-100, followed by the corresponding standard error. A bold entry denotes that the classification accuracy of an algorithm is significantly higher than its competitors. Significance results are identified using a paired t-test with $\mathrm { p = 0 . 0 5 }$ . Average classification accuracy resulting from CLAW is significantly higher than its competitors on the 6 experiments.
358
+
359
+ <table><tr><td>Classification Accuracy</td><td>CLAW</td><td>VCL</td><td>VCL +Coreset</td><td>EWC</td></tr><tr><td>Permuted MNIST (task 9) Permuted MNIST (task 10) Split MNIST (task 4) Split MNIST (task 5) Split notMNIST (task 4) Split notMNIST (task 5) Split Fashion-MNIST (task 4) Split Fashion-MNIST (task 5) Omniglot (task 49)</td><td>99.2 ± 0.2 % 99.2 ± 0.1 % 99.2 ± 0.2 % 99.1 ± 0.2 % 98.7 ± 0.3 % 98.4 ± 0.2 % 93.2 ± 0.2 % 92.5 ± 0.2 % 84.5 ± 0.2 % 84.6 ± 0.3 %</td><td>93.5 ± 0.3 % 92.1 ± 0.3 % 98.6 ± 0.3 % 97.0 ± 0.4 % 95.8 ± 0.4 % 92.1 ± 0.3 % 90.0 ± 0.3 % 88.0 ± 0.2 % 81.1 ± 0.3 % 80.7 ± 0.3 %</td><td>95.5 ± 0.3 % 95 ± 0.5 % 98.7 ± 0.2 % 98.4 ± 0.3 % 96.9 ± 0.5 % 96.0 ± 0.3 % 90.7 ± 0.2 % 88.5 ± 0.4 % 81.8 ± 0.3 % 81.1 ± 0.4 %</td><td>92.1 ± 0.4 % 90.2 ± 0.4 % 94.9 ± 0.4 % 94.2 ± 0.5 % 92.9 ± 0.4 % 92.3 ± 0.4 % 89.4 ± 0.4 % 87.6 ± 0.3 % 78.2 ± 0.3 %</td></tr><tr><td>CIFAR-100 (task 19) CIFAR-100 (task 20) Classification Accuracy</td><td>95.6 ± 0.3 % P&amp;C</td><td>78.7 ± 0.4 % 77.2 ± 0.4 % RCL 96.4 ± 0.5 %</td><td>80.8 ± 0.3 % 79.9 ± 0.4 % FRCL 98.4 ± 0.4 %</td><td>63.1 ± 0.5 % 62.4 ± 0.4 % LTG</td></tr><tr><td>Permuted MNIST (task 9) Permuted MNIST (task 10) Split MNIST (task 4) Split MNIST (task 5) Split notMNIST (task 4) Split notMNIST (task 5) Split Fashion-MNIST (task 4) Split Fashion-MNIST (task 5) Omniglot (task 49) Omniglot (task 50)</td><td>94.4 ± 0.3 % 94.1± 0.6 % 97.3 ± 0.5 % 96.4 ± 0.4 % 97.8 ± 0.4 % 96.9 ± 0.5 % 91.4 ± 0.3 % 90.8 ± 0.2 % 82.8 ± 0.2 % 82.7 ± 0.3 %</td><td>96.3 ± 0.3 % 97.8 ± 0.7 % 97.5 ± 0.6 % 97.7 ± 0.2 % 97.3 ± 0.5 % 91.1 ± 0.3 % 89.7 ± 0.4 % 80.1 ± 0.4 % 80.2 ± 0.4 %</td><td>98.4± 0.5 % 98.2 ± 0.3 % 98.1 ± 0.2 % 96.1 ± 0.6 % 95.2 ± 0.7 % 90.4 ± 0.2 % 87.7 ± 0.4 % 79.9 ± 0.3 %</td><td>98.7 ± 0.3 % 98.7 ± 0.3 % 98.7 ± 0.2 % 98.3 ± 0.3 % 97.8 ± 0.3 % 97.4 ± 0.3 % 92.5 ± 0.4 % 91.1 ± 0.3 %</td></tr></table>
360
+
361
+ # C OTHER EXPERIMENTAL DETAILS
362
+
363
+ Here are some additional details about the datasets in use:
364
+
365
+ The MNIST dataset is used in both the Permuted MNIST and Split MNIST experiments. The MNIST (Mixed National Institute of Standards and Technology) dataset (LeCun et al., 1998) is a handwritten digit dataset. Each MNIST image consists of $2 8 \times 2 8$ pixels, which is also the pixel size of the notMNIST and Fashion-MNIST datasets. The MNIST dataset contains a training set of 60,000 instances and a test set of 10,000 instances.
366
+
367
+ As mentioned in the main document, each experiment is repeated ten times. Data is randomly split into three partitions, training, validation and test. A portion of $6 0 \%$ of the data is reserved for training, $2 0 \%$ for validation and $2 0 \%$ for testing. Statistics reported are the averages of these ten repetitions.
368
+
369
+ Number of epochs required per task to reach a saturation level for CLAW (and the bulk of the methods in comparison) was 10 epochs for all experiments except for Omniglot and CIFAR-100 (15 epochs). Used values of $\omega _ { 1 }$ and $\omega _ { 2 }$ are 0.05 and 0.02, respectively.
370
+
371
+ For Omniglot, we used a network similar to the one used in (Schwarz et al., 2018), which consists of 4 blocks of $3 \times 3$ convolutions with 64 filters, followed by a ReLU and a $2 \times 2$ max-pooling. The same CNN is used for CIFAR-100. CLAW achieves clearly higher classification accuracy on both Omniglot and CIFAR-100 (Figures 1e and 1f).
372
+
373
+ # D ABLATIONS
374
+
375
+ The plots displayed in this section empirically demonstrate how important the main adaptation parameters are in achieving the classification performance levels reached by CLAW. In each of the Figures 4a- 4f, the classification performance of CLAW is compared to the following three cases: 1) when the parameter controlling the maximum degree of adaptation is not learnt in a multi-task fashion, i.e. when the respective general value $\mathbf { s _ { i , j } }$ is used instead of $\mathbf { s _ { i , j , t } } . 2 )$ ) when adaptation always happens, i.e. the binary variable denoting the adaptation decision is always activated. 3) when adaptation never takes place. The differences in classification accuracy between CLAW and each of the other three plots in Figures 4a- 4f empirically demonstrate the relevance of each adaptation parameter.
376
+
377
+ # E RUN-TIME
378
+
379
+ In Table 2, we report the wall-clock run time (in seconds) after finishing training in each of the six experiments: Permuted MNIST, Split MNIST, Split notMNIST, Split Fashion-MNIST, Omniglot and CIFAR-100. VCL and CLAW converge (i.e. reach the accuracy levels reported earlier) more quickly than the other methods. CLAW was the fastest in 3 out of the 6 experiments, whereas VCL was the fastest in the other 3, but their training run-time values have always been close to each other. As reported in the earlier sections, there is a significant difference in classification accuracy in favour of CLAW. This has been achieved within reasonably acceptable run-time levels thanks to the proposed design where the whole data-driven adaptation procedure is kept as part of an amortised variational inference algorithm. RCL is the slowest since it is based on reinforcement learning, where a large number of trials are typically required. This has also been acknowledged and reported therein (Xu & Zhu, 2018).
380
+
381
+ Table 2: Wall-clock run time (in seconds) after finishing training in each of the six experiments: Permuted MNIST, Split MNIST, Split notMNIST, Split Fashion-MNIST, Omniglot and CIFAR-100. As mentioned earlier, the statistics reported are averages of ten repetitions.
382
+
383
+ <table><tr><td>Training Time (in seconds)</td><td>CLAW</td><td>VCL</td><td> VCL + Coreset EWC P&amp;C</td><td></td><td></td><td>RCL</td><td>FRCL</td><td>LTG</td></tr><tr><td>Permuted MNIST (after 10 tasks)</td><td>667</td><td>682</td><td>724</td><td>1117</td><td>1355</td><td>32575</td><td>919</td><td>705</td></tr><tr><td>Split MNIST (after 5 tasks)</td><td>649</td><td>637</td><td>708</td><td>1054</td><td>1312</td><td>31110</td><td>891</td><td>648</td></tr><tr><td>Split notMNIST (after 5 tasks)</td><td>722</td><td>714</td><td>792</td><td>1210</td><td>1407</td><td>34123</td><td>898</td><td>781</td></tr><tr><td>Split Fashion-MNIST(after 5 tasks)</td><td>829</td><td>818</td><td>901</td><td>1284</td><td></td><td>1498 35086</td><td>972</td><td>915</td></tr><tr><td>Omniglot (after 50 tasks)</td><td>1126</td><td>1241</td><td>1513</td><td>1637</td><td></td><td>1714 37247</td><td>1620</td><td>1312</td></tr><tr><td>CIFAR-100 (after 20 tasks)</td><td>792</td><td>810</td><td>914</td><td>802</td><td>1322</td><td>6102</td><td>1016</td><td>896</td></tr></table>
384
+
385
+ ![](images/c0ad7f594cb131bd63f8a58d89ff5d4798ba0d138c303661ecd49fbe7734dc4e.jpg)
386
+ Figure 4: Ablation studies on different datasets.
parse/train/Hklso24Kwr/Hklso24Kwr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hklso24Kwr/Hklso24Kwr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hklso24Kwr/Hklso24Kwr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/YTWGvpFOQD-/YTWGvpFOQD-.md ADDED
@@ -0,0 +1,591 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DIFFERENTIALLY PRIVATE LEARNING NEEDS BETTER FEATURES (OR MUCH MORE DATA)
2
+
3
+ Florian Tramèr
4
+ Stanford University
5
+ tramer@cs.stanford.edu
6
+
7
+ Dan Boneh Stanford University dabo@cs.stanford.edu
8
+
9
+ # ABSTRACT
10
+
11
+ We demonstrate that differentially private machine learning has not yet reached its “AlexNet moment” on many canonical vision tasks: linear models trained on handcrafted features significantly outperform end-to-end deep neural networks for moderate privacy budgets. To exceed the performance of handcrafted features, we show that private learning requires either much more private data, or access to features learned on public data from a similar domain. Our work introduces simple yet strong baselines for differentially private learning that can inform the evaluation of future progress in this area.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Machine learning (ML) models have been successfully applied to the analysis of sensitive user data such as medical images (Lundervold & Lundervold, 2019), text messages (Chen et al., 2019) or social media posts (Wu et al., 2016). Training these ML models under the framework of differential privacy (DP) (Dwork et al., 2006b; Chaudhuri et al., 2011; Shokri & Shmatikov, 2015; Abadi et al., 2016) can protect deployed classifiers against unintentional leakage of private training data (Shokri et al., 2017; Song et al., 2017; Carlini et al., 2019; 2020).
16
+
17
+ Yet, training deep neural networks with strong DP guarantees comes at a significant cost in utility (Abadi et al., 2016; Yu et al., 2020; Bagdasaryan et al., 2019; Feldman, 2020). In fact, on many ML benchmarks the reported accuracy of private deep learning still falls short of “shallow” (non-private) techniques. For example, on CIFAR-10, Papernot et al. (2020b) train a neural network to $6 6 . 2 \%$ accuracy for a large DP budget of $\varepsilon = 7 . 5 3$ , the highest accuracy we are aware of for this privacy budget. Yet, without privacy, higher accuracy is achievable with linear models and non-learned “handcrafted” features, e.g., (Coates & $\mathrm { N g }$ , 2012; Oyallon & Mallat, 2015). This leads to the central question of our work:
18
+
19
+ Can differentially private learning benefit from handcrafted features?
20
+
21
+ We answer this question affirmatively by introducing simple and strong handcrafted baselines for differentially private learning, that significantly improve the privacy-utility guarantees on canonical vision benchmarks.
22
+
23
+ Our contributions. We leverage the Scattering Network (ScatterNet) of Oyallon & Mallat (2015)— a non-learned SIFT-like feature extractor (Lowe, 1999)—to train linear models that improve upon the privacy-utility guarantees of deep learning on MNIST, Fashion-MNIST and CIFAR-10 (see Table 1). For example, on CIFAR-10 we exceed the accuracy reported by Papernot et al. (2020b) while simultaneously improving the provable DP-guarantee by $1 3 0 \times$ . On MNIST, we match the privacy-utility guarantees obtained with PATE (Papernot et al., 2018) without requiring access to any public data. We find that privately training deeper neural networks on handcrafted features also significantly improves over end-to-end deep learning, and even slightly exceeds the simpler linear models on CIFAR-10. Our results show that private deep learning remains outperformed by handcrafted priors on many tasks, and thus has yet to reach its “AlexNet moment” (Krizhevsky et al., 2012).
24
+
25
+ We find that models with handcrafted features outperform end-to-end deep models, despite having more trainable parameters. This is counter-intuitive, as the guarantees of private learning degrade with dimensionality in the worst case (Bassily et al., 2014).1 We explain the benefits of handcrafted features by analyzing the convergence rate of non-private gradient descent. First, we observe that with low enough learning rates, training converges similarly with or without privacy (both for models with and without handcrafted features). Second, we show that handcrafted features significantly boost the convergence rate of non-private learning at low learning rates. As a result, when training with privacy, handcrafted features lead to more accurate models for a fixed privacy budget.
26
+
27
+ Table 1: Test accuracy of models with handcrafted ScatterNet features compared to prior results with end-to-end CNNs for various DP budgets $( \varepsilon , \delta = 1 0 ^ { - 5 } )$ ). Lower $\varepsilon$ values provide stronger privacy. The end-to-end CNNs with maximal accuracy for each privacy budget are underlined. We select the best ScatterNet model for each DP budget $\varepsilon \le 3$ with a hyper-parameter search, and show the mean and standard deviation in accuracy for five runs.
28
+ Test Accuracy $( \% )$
29
+
30
+ <table><tr><td>Data</td><td>ε-DP</td><td>Source</td><td>CNN</td><td>ScatterNet+linear</td><td>ScatterNet+CNN</td></tr><tr><td rowspan="7">MNIST</td><td>1.2</td><td>Feldman &amp; Zrnic (2020)</td><td>96.6</td><td>98.1±0.1</td><td>97.8 ±0.1</td></tr><tr><td>2.0</td><td>Abadi et al. (2016)</td><td>95.0</td><td>98.5 ± 0.0</td><td>98.4±0.1</td></tr><tr><td>2.32</td><td>Bu et al. (2019)</td><td>96.6</td><td>98.6±0.0</td><td>98.5 ±0.0</td></tr><tr><td>2.5</td><td>Chen&amp;Lee (2020)</td><td>90.0</td><td>98.7 ± 0.0</td><td>98.6 ±0.0</td></tr><tr><td>2.93</td><td>Papernot et al. (2020a)</td><td>98.1</td><td>98.7 ± 0.0</td><td>98.7 ± 0.1</td></tr><tr><td>3.2</td><td>Nasr et al. (2020)</td><td>96.1</td><td>一</td><td></td></tr><tr><td>6.78</td><td>Yu et al. (2019b)</td><td>93.2</td><td>1</td><td></td></tr><tr><td rowspan="2">Fashion-MNIST</td><td>2.7</td><td>Papernot et al. (2020a)</td><td>86.1</td><td>89.5 ±0.0</td><td>88.7 ±0.1</td></tr><tr><td>3.0</td><td>Chen &amp; Lee (2020)</td><td>82.3</td><td>89.7 ± 0.0</td><td>89.0±0.1</td></tr><tr><td rowspan="4">CIFAR-10</td><td>3.0</td><td>Nasr et al. (2020)</td><td>55.0</td><td>67.0 ±0.1</td><td>69.3± 0.2</td></tr><tr><td>6.78</td><td>Yu et al. (2019b)</td><td>44.3</td><td></td><td></td></tr><tr><td>7.53</td><td>Papernot et al. (2020a)</td><td>66.2</td><td></td><td></td></tr><tr><td>8.0</td><td>Chen &amp; Lee (2020)</td><td>53.0</td><td></td><td></td></tr></table>
31
+
32
+ Considering these results, we ask: what is the cost of private learning’s “AlexNet moment”? That is, which additional resources do we need in order to outperform our private handcrafted baselines? Following McMahan et al. (2018), we first consider the data complexity of private end-to-end learning. On CIFAR-10, we use an additional 500,000 labeled Tiny Images from Carmon et al. (2019) to show that about an order of magnitude more private training data is needed for end-to-end deep models to outperform our handcrafted features baselines. The high sample-complexity of private deep learning could be detrimental for tasks that cannot leverage “internet-scale” data collection (e.g., most medical applications).
33
+
34
+ We further consider private learning with access to public data from a similar domain. In this setting, handcrafted features can be replaced by features learned from public data via transfer learning (Razavian et al., 2014). While differentially private transfer learning has been studied in prior work (Abadi et al., 2016; Papernot et al., 2020a), we find that its privacy-utility guarantees have been underestimated. We revisit these results and show that with transfer learning, strong privacy comes at only a minor cost in accuracy. For example, given public unlabeled ImageNet data, we train a CIFAR-10 model to $9 2 . 7 \%$ accuracy for a DP budget of $\varepsilon = 2$ .
35
+
36
+ Our work demonstrates that higher quality features—whether handcrafted or transferred from public data—are of paramount importance for improving the performance of private classifiers in low (private) data regimes.
37
+
38
+ Code to reproduce our experiments is available at https://github.com/ftramer/ Handcrafted-DP.
39
+
40
+ # 2 STRONG SHALLOW BASELINES FOR DIFFERENTIALLY PRIVATE LEARNING
41
+
42
+ We consider the standard central model of differential privacy (DP): a trusted party trains an ML model $f$ on a private dataset $D \in \mathcal { D }$ , and publicly releases the model. The learning algorithm $A$
43
+
44
+ satisfies $( \varepsilon , \delta )$ -differential privacy (Dwork et al., 2006a), if for any datasets $D , D ^ { \prime }$ that differ in one record, and any set of models $S$ :
45
+
46
+ $$
47
+ \operatorname* { P r } [ A ( D ) \in S ] \leq e ^ { \varepsilon } \operatorname* { P r } [ A ( D ^ { \prime } ) \in S ] + \delta .
48
+ $$
49
+
50
+ DP bounds an adversary’s ability to infer information about any individual training point from the model. Cryptography can split the trust in a central party across users (Jayaraman et al., 2018; Bonawitz et al., 2017).
51
+
52
+ Prior work has trained private deep neural networks “end-to-end” (e.g., from image pixels), with large losses in utility (Shokri & Shmatikov, 2015; Abadi et al., 2016; Papernot et al., 2020b). In contrast, we study the benefits of handcrafted features that encode priors on the learning task’s public domain (e.g., edge detectors for images). Although end-to-end neural networks outperform such features in the non-private setting, our thesis is that handcrafted features result in an easier learning task that is more amenable to privacy. We focus on computer vision, a canonical domain for private deep learning (Abadi et al., 2016; Yu et al., 2019b; Papernot et al., 2020b; Nasr et al., 2020)), with a rich literature on handcrafted features (Lowe, 1999; Dalal & Triggs, 2005; Bruna & Mallat, 2013). Our approach can be extended to handcrafted features in other domains, e.g., text or speech.
53
+
54
+ # 2.1 SCATTERING NETWORKS
55
+
56
+ We use the Scattering Network (ScatterNet) of Oyallon & Mallat (2015), a feature extractor that encodes natural image priors (e.g., invariance to small rotations and translations) using a cascade of wavelet transforms (Bruna & Mallat, 2013). As this cascade of transforms is data independent, we can obtain a differentially private classifier by privately fine-tuning a (linear) model on top of locally extracted features. In Appendix A, we discuss other candidate “non-deep” approaches that we believe to be less suitable for differentially private learning.
57
+
58
+ We use the default parameters in (Oyallon & Mallat, 2015), a ScatterNet $S ( { \pmb x } )$ of depth two with wavelets rotated along eight angles. For images of size $H \times W$ , this network extracts features of dimension $( K , H / 4 , \bar { W _ { } } / 4 )$ , with $K = 8 1$ for grayscale images, and $K = 2 4 3$ for RGB images. Note that the transform is thus expansive. More details on ScatterNets are in Appendix C.1.
59
+
60
+ # 2.2 DIFFERENTIALLY PRIVATE SCATTERNET CLASSIFIERS
61
+
62
+ To train private classifiers, we use the DP-SGD algorithm2 of Abadi et al. (2016) (see Appendix B). DP-SGD works as follows: (1) batches of expected size $B$ are sampled at random;3 (2) gradients are clipped to norm $C$ ; (3) Gaussian noise of variance $\sigma ^ { 2 } C ^ { 2 } / B ^ { 2 }$ is added to the mean gradient. DP-SGD guarantees privacy for gradients, and is thus oblivious to preprocessing applied independently to each data sample, such as the ScatterNet transform.
63
+
64
+ When training a supervised classifier on top of ScatterNet features with gradient descent, we find that normalizing the features is crucial to obtain strong performance. We consider two approaches:
65
+
66
+ • Group Normalization (Wu & He, 2018): the channels of $S ( { \pmb x } )$ are split into $G$ groups, and each is normalized to zero mean and unit variance. Data points are normalized independently so this step incurs no privacy cost.
67
+ • Data Normalization: the channels of $S ( { \pmb x } )$ are normalized by their mean and variance across the training data. This step incurs a privacy cost as the per-channel means and variances need to be privately estimated.
68
+
69
+ Table 2 shows that normalization significantly accelerates convergence of non-private linear models trained on ScatterNet features, for MNIST, Fashion-MNIST and CIFAR-10. For CIFAR-10, Data
70
+
71
+ Table 2: Effect of feature normalization on the test accuracy of non-private ScatterNet models after 20 epochs. We also report the maximal test accuracy upon convergence (mean and standard deviation over five runs).
72
+ Normalization (Test accuracy after 20 epochs)
73
+
74
+ <table><tr><td>Dataset</td><td>None</td><td>Group Normalization</td><td>Data Normalization</td><td>Maximal Accuracy</td></tr><tr><td>MNIST</td><td>95.9±0.0</td><td>99.1±0.0</td><td>99.1±0.0</td><td>99.3± 0.0</td></tr><tr><td>Fashion-MNIST</td><td>82.6 ±0.1</td><td>90.9 ± 0.1</td><td>91.0±0.2</td><td>91.5 ± 0.0</td></tr><tr><td>CIFAR-10</td><td>58.0±0.1</td><td>67.8± 0.2</td><td>70.7 ± 0.1</td><td>71.1 ± 0.0</td></tr></table>
75
+
76
+ Normalization performs significantly better than Group Normalization, so the small privacy cost of estimating channel statistics is warranted. While the maximal test accuracy of these models falls short of state-of-the-art CNNs, it exceeds all previously reported results for differentially private neural networks (even for large privacy budgets).
77
+
78
+ # 3 EVALUATING PRIVATE SCATTERNET CLASSIFIERS
79
+
80
+ We compare differentially private ScatterNet classifiers and deep learning models on MNIST (LeCun et al., 2010), Fashion-MNIST (Xiao et al., 2017) and CIFAR-10 (Krizhevsky, 2009). Many prior works have reported improvements over the DP-SGD procedure of Abadi et al. (2016) for these datasets. As we will show, ScatterNet classifiers outperform all prior approaches while making no algorithmic changes to DP-SGD. ScatterNet classifiers can thus serve as a strong canonical baseline for evaluating proposed improvements over DP-SGD in the future.
81
+
82
+ # 3.1 EXPERIMENTAL SETUP
83
+
84
+ Most prior works find the best model for a given DP budget using a hyper-parameter search. As the private training data is re-used many times, this overestimates the privacy guarantees. Private hyper-parameter search is possible at a small cost in the DP budget (Liu & Talwar, 2019), but we argue that fully accounting for this privacy leakage is hard as even our choices of architectures, optimizers, hyper-parameter ranges, etc. are informed by prior analysis of the same data. As in prior work, we thus do not account for this privacy leakage, and instead compare ScatterNet models and end-to-end CNNs with similar hyper-parameter searches. Moreover, we find that ScatterNet models are very robust to hyper-parameter changes and achieve near-optimal utility with random hyper-parameters (see Table 3). To evaluate ScatterNet models, we apply the following hyper-parameter search:
85
+
86
+ • We begin by fixing a privacy schedule. We target a moderate differential privacy budget of $( \varepsilon = \bar { 3 , } \delta = 1 0 ^ { - 5 } )$ and compute the noise scale $\sigma$ of DP-SGD so that the privacy budget is consumed after $T$ epochs. We try different values of $T$ , with larger values resulting in training for more steps but with higher noise.
87
+ • We fix the gradient clipping threshold for DP-SGD to $C = 0 . 1$ for all our experiments. Thakkar et al. (2019) suggest to vary this threshold adaptively, but we did not observe better performance by doing so.
88
+ • We try various batch sizes $B$ and base learning rates $\eta$ , with linear learning rate scaling (Goyal
89
+ et al., 2017).4
90
+ • We try both Group Normalization (Wu & He, 2018) with different choices for the number of groups, and private Data Normalization with different choices of privacy budgets (see Appendix B for details).
91
+
92
+ We perform a grid-search over all parameters as detailed in Appendix C.5. We compare our ScatterNet classifiers to the CNN models of Papernot et al. (2020b) (see Appendix C.2), which achieve the highest reported accuracy for our targeted privacy budget for all three datasets. We also perform a grid-search for these models, which reproduces the results of Papernot et al. (2020b). We use the ScatterNet implementation from Kymatio (Andreux et al., 2020), and the DP-SGD implementation in opacus (pytorch/opacus, 2020) (formerly called pytorch-dp).
93
+
94
+ ![](images/76722765eda82a7f80348b436da41ca7d2d38fe948cfbb64805ee66df04d605c.jpg)
95
+ Figure 1: Highest test accuracy achieved for each DP budget $( \varepsilon , \delta = 1 0 ^ { - 5 } )$ ) for ScatterNet classifiers and the end-to-end CNNs of Papernot et al. (2020b). We plot the mean and standard deviation across five runs.
96
+
97
+ We use a NVIDIA Titan $\mathrm { X p }$ GPU with 12GB of RAM for all our experiments. To run DP-SGD with large batch sizes $B$ , we use the “virtual batch” approach of opacus: the average of clipped gradients is accumulated over multiple “mini-batches”; once $B$ gradients have been averaged, we add noise and take a gradient update step. Code to reproduce our experiments is available at https://github.com/ftramer/Handcrafted-DP.
98
+
99
+ # 3.2 RESULTS
100
+
101
+ To measure a classifier’s accuracy for a range of privacy budgets, we compute the test accuracy as well as the DP budget $\varepsilon$ after each training epoch (with the last epoch corresponding to $\varepsilon = 3$ ). For various DP budgets $\mathit { \check { \Psi } } _ { \varepsilon , \delta } = 1 0 ^ { - 5 }$ ) used in prior work, Table 1 shows the maximal test accuracy achieved by a linear ScatterNet model in our hyper-parameter search, averaged over five runs. We also report results with CNNs trained on ScatterNet models, which are described in more detail below. Figure 1 further compares the full privacy-accuracy curves of our ScatterNets and of the CNNs of Papernot et al. (2020b). Linear models with handcrafted features significantly outperform prior results with end-to-end CNNs, for all privacy budgets $\varepsilon \le 3$ we consider. Even when prior work reports results for larger budgets, they do not exceed the accuracy of our baseline.
102
+
103
+ In particular, for CIFAR-10, we match the best CNN accuracy in (Papernot et al., 2020b)—namely $6 6 . \hat { 2 } \%$ for a budget of $\varepsilon = 7 . 5 3$ —with a much smaller budget of $\varepsilon = 2 . 6$ . This is an improvement in the DP-guarantee of $e ^ { 4 . 9 } \approx 1 3 4$ . On MNIST, we significantly improve upon CNN models, and match the results of PATE (Papernot et al., 2018), namely $9 8 . 5 \%$ accuracy at $\varepsilon = 1 . 9 7$ , in a more restricted setting (PATE uses 5,000 public unlabeled MNIST digits). In Appendix C.5, we provide the hyperparameters that result in the highest test accuracy for our target DP budget of $( \varepsilon = \mathsf { \bar { 3 } } , \delta = 1 0 ^ { - 5 } )$ . We did not consider larger privacy budgets for ScatterNet classifiers, as the accuracy we achieve at $\varepsilon = 3$ is close to the accuracy of non-private ScatterNet models (see Table 2).
104
+
105
+ As noted above, our models (and those of most prior work) are the result of a hyper-parameter search. While we do not account for the privacy cost of this search, Table 3 shows that an additional advantage of ScatterNet classifiers is an increased robustness to hyper-parameter changes. In particular, for CIFAR-10 the worst configuration for linear ScatterNet classifiers outperforms the best configuration for end-to-end CNNs. Moreover, on MNIST and Fashion-MNIST, the median accuracy of linear ScatterNet models outperforms the best end-to-end CNN.
106
+
107
+ Training CNNs on Handcrafted Features. Since linear models trained on handcrafted features outperform the privacy-utility guarantees of deep models trained end-to-end, a natural question is whether training deeper models on these features achieves even better results. We repeat the above experiment with a similar CNN model trained on ScatterNet features (see Appendix C.2). The privacy-accuracy curves for these models are in Figure 2. We find that handcrafted features also improve the utility of private deep models, a phenomenon which we analyze and explain in Section 4. On CIFAR-10, the deeper ScatterNet models even slightly outperform the linear models, while for MNIST and Fashion-MNIST the linear models perform best. This can be explained by the fact that in the non-private setting, linear ScatterNet models achieve close to state-of-the-art accuracy on MNIST and Fashion-MNIST, and thus there is little room for improvement with deeper models (see Table 11). Table 3 further shows that ScatterNet CNNs are also less sensitive to hyper-parameters than end-to-end CNNs.
108
+
109
+ Table 3: Variability across hyper-parameters. For each model, we report the minimum, maximum, median and median absolute deviation (MAD) in test accuracy (in $\%$ ) achieved for a DP budget of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 } ,$ ). The maximum accuracy below may exceed those in Table 1 and Figure 1, which are averages of five runs. SN stands for ScatterNet.
110
+
111
+ <table><tr><td></td><td colspan="4">MNIST</td><td colspan="4">Fashion-MNIST</td><td colspan="4">CIFAR-10</td></tr><tr><td>Model</td><td>Min</td><td>Max</td><td>Median</td><td>MAD</td><td>Min</td><td>Max</td><td>Median</td><td>MAD</td><td>Min</td><td>Max</td><td>Median</td><td>MAD</td></tr><tr><td>SN + Linear</td><td>96.8</td><td>98.8</td><td>98.4</td><td>0.2</td><td>85.3</td><td>89.8</td><td>88.7</td><td>0.5</td><td>59.5</td><td>67.0</td><td>65.4</td><td>0.9</td></tr><tr><td>SN +CNN</td><td>95.6</td><td>98.8</td><td>98.1</td><td>0.3</td><td>77.8</td><td>89.1</td><td>87.2</td><td>1.0</td><td>57.3</td><td>69.5</td><td>66.9</td><td>1.6</td></tr><tr><td>CNN</td><td>86.1</td><td>98.2</td><td>97.4</td><td>0.5</td><td>20.2</td><td>86.2</td><td>83.6</td><td>1.8</td><td>39.4</td><td>59.2</td><td>52.5</td><td>5.4</td></tr></table>
112
+
113
+ ![](images/62bdee377199d6d69c3d504af4fd39ce1cc5b1d74829a52eba6801829b5e7786.jpg)
114
+ Figure 2: Highest test accuracy achieved for each DP budget $( \varepsilon , \delta = 1 0 ^ { - 5 } )$ ) for linear ScatterNet classifiers, CNNs on top of ScatterNet features, and end-to-end CNNs. Shows mean and standard deviation across five runs.
115
+
116
+ Note that on each dataset we consider, end-to-end CNNs can outperform ScatterNet models when trained without privacy. Thus, end-to-end CNNs trained with DP-SGD must eventually surpass ScatterNet models for large enough privacy budgets. But this currently requires settling for weak provable privacy guarantees. On CIFAR-10 for example, ScatterNet classifiers still outperform end-to-end CNNs for $\varepsilon = 7 . 5 3$ (Papernot et al., 2020b). While the analysis of DP-SGD might not be tight, Jagielski et al. (2020) suggest that the true $\varepsilon$ guarantee of DP-SGD is at most one order of magnitude smaller than the current analysis suggests. Thus, surpassing handcrafted features for small privacy budgets on CIFAR-10 may require improvements beyond a tighter analysis of DP-SGD.
117
+
118
+ # 4 HOW DO HANDCRAFTED FEATURES HELP?
119
+
120
+ In this section, we analyze why private models with handcrafted features outperform end-to-end CNNs. We first consider the dimensionality of our models, but show that this does not explain the utility gap. Rather, we find that the higher accuracy of ScatterNet classifiers is due to their faster convergence rate when trained without noise.
121
+
122
+ Smaller models are not easier to train privately. The utility of private learning typically degrades as the model’s dimensionality increases (Chaudhuri et al., 2011; Bassily et al., 2014). This is also the case with DP-SGD which adds Gaussian noise, of scale proportional to the gradients, to each model parameter. We thus expect smaller models to be easier to train privately. Yet, as we see from Table 4, for MNIST and Fashion-MNIST the linear ScatterNet model has more parameters than the CNNs. For CIFAR-10, the end-to-end CNN we used is larger, so we repeat the experiment from Section 3 with a CNN of comparable size to the ScatterNet classifiers (see Appendix D.5). This has a minor effect on the performance of the CNN. Thus, the dimensionality of ScatterNet classifiers fails to explain their better performance.
123
+
124
+ Models with handcrafted features converge faster without privacy. DP-SGD typically requires a smaller learning rate than noiseless (clipped) SGD, so that the added noise gets averaged out over small steps. We indeed find that the optimal learning rate when training with DP-SGD is an order of magnitude lower than the optimal learning rate for training without noise addition (with gradients clipped to the same norm in both cases).
125
+
126
+ Table 4: Number of trainable parameters of our models. For CIFAR-10, we consider two different end-to-end CNN architectures (see Appendix C.2), the smaller of which has approximately as many parameters as the linear ScatterNet model.
127
+
128
+ <table><tr><td colspan="2">MNIST&amp;Fashion-MNIST</td><td>CIFAR-10</td></tr><tr><td>ScatterNet+Linear</td><td>40K</td><td>155K</td></tr><tr><td>ScatterNet+CNN</td><td>33K</td><td>187K</td></tr><tr><td>CNN</td><td>26K</td><td>551K/168K</td></tr></table>
129
+
130
+ ![](images/2af929bdcef192a8ec7be61ed64dd878bb38b710fbc9c6c3449c457c135cf5fa.jpg)
131
+ Figure 3: Convergence of DP-SGD with and without noise on CIFAR-10, for ScatterNet classifiers and end-to-end CNNs. (Left): low learning rate. (Right): high learning rate.
132
+
133
+ To understand the impact of gradient noise on the learning process, we conduct the following experiment: we select a low learning rate that is near-optimal for training models with gradient noise, and a high learning rate that is near-optimal for training without noise. For both learning rates, we train CIFAR-10 models both with and without noise (with gradient clipping in all cases). Figure 3 shows that with a high learning rate, all classifiers converge rapidly when trained without noise, but gradient noise vastly degrades performance. With a low learning rate however, training converges similarly whether we add noise or not. What distinguishes the ScatterNet models is the faster convergence rate of noiseless SGD. The experimental setup and similar qualitative results on MNIST and Fashion-MNIST are in Appendix C.6. Thus, we find that handcrafted features are beneficial for private learning because they result in a simpler learning task where training converges rapidly even with small update steps. Our analysis suggests two avenues towards obtaining higher accuracy with private deep learning:
134
+
135
+ • Faster convergence: Figure 3 suggests that faster convergence of non-private training could translate to better private learning. DP-SGD with adaptive updates (e.g., Adam (Kingma & Ba,
136
+ 2015)) indeed sometimes leads to small improvements (Papernot et al., 2020b; Chen & Lee,
137
+ 2020; Zhou et al., 2020a). Investigating private variants of second-order optimization methods is an interesting direction for future work. • More training steps (a.k.a more data): For a fixed DP-budget $\varepsilon$ and noise scale $\sigma$ , increasing the training set size $N$ allows for running more steps of DP-SGD (McMahan et al., 2018). In Section 5.1, we investigate how the collection of additional private data impacts the utility of private end-to-end models.
138
+
139
+ # 5 TOWARDS BETTER PRIVATE DEEP LEARNING
140
+
141
+ We have shown that on standard vision tasks, private learning strongly benefits from handcrafted features. Further improving our private baselines seems hard, as they come close to the maximal accuracy of ScatterNet models (see Table 2). We thus turn to other avenues for obtaining stronger privacy-utility guarantees. We focus on CIFAR-10, and discuss two natural paths towards better private models: (1) access to a larger private training set, and (2) access to a public image dataset from a different distribution (some works also consider access to public unlabeled data from the same distribution as the private data (Papernot et al., 2017; 2018; Zhu et al., 2020)).
142
+
143
+ ![](images/1026acafa710cb0c8ef6574d0ad16e92bacf81d41282a4065ed8bee8465b5094.jpg)
144
+ Figure 4: CIFAR-10 test accuracy for a training set of size $N$ and a DP budget of $( \varepsilon = 3 , \delta =$ $^ { 1 } / 2 N )$ ). For $N \mathrm { ~ > ~ } 5 0 \mathrm { K }$ , we augment CIFAR10 with pseudo-labeled Tiny Images collected by Carmon et al. (2019).
145
+
146
+ ![](images/ff7afb1249f0affcf176baad5c456972d60729366d02154137970a41d5e9ebe1.jpg)
147
+ Figure 5: Privacy-utility tradeoffs for transfer learning on CIFAR-10. We fine-tune linear models on features from a ResNeXt model trained on CIFAR-100, and from a SimCLR model trained on unlabeled ImageNet.
148
+
149
+ # 5.1 IMPROVING PRIVACY BY COLLECTING MORE DATA
150
+
151
+ We first analyze the benefits of additional private labeled data on the utility of private models. Since the privacy budget consumed by DP-SGD scales inversely with the size of the training data $N$ , collecting more data allows either to train for more steps, or to lower the amount of noise added per step—for a fixed DP budget $\varepsilon$ .
152
+
153
+ To obtain a larger dataset comparable to CIFAR-10, we use 500K pseudo-labeled Tiny Images5 (Torralba et al., 2008) collected by Carmon et al. (2019).6 We then train private models on subsets of size $1 0 , 0 0 0 \le N \le 5 5 0 , 0 0 0$ from this dataset. Figure 4 reports the highest test accuracy achieved for a privacy budget of $( \varepsilon = 3 , \delta = { ^ { 1 } \mathrm { / } } 2 N )$ ) (see Appendix C.7 for the experimental setup). We find that we need about an order-of-magnitude increase in the size of the private training dataset in order for end-to-end CNNs to outperform ScatterNet features. As we show in Appendix C.7, larger datasets allow DP-SGD to be run for more steps at a fixed privacy budget and noise level (as also observed in (McMahan et al., 2018))—thereby overcoming the slow convergence rate we uncovered in Section 4. While the increased sample complexity of private deep learning might be viable for “internet-scale” applications (e.g., language modeling across mobile devices), it is detrimental for sensitive applications with more stringent data collection requirements, such as in healthcare.
154
+
155
+ 5.2 TRANSFER LEARNING: BETTER FEATURES FROM PUBLIC DATA
156
+
157
+ Transfer learning is a natural candidate for privacy-preserving computer vision, as features learned on public image data often significantly outperform handcrafted features (Razavian et al., 2014). We first consider transfer learning from CIFAR-100 to CIFAR-10, where the labeled CIFAR-100 data is assumed public. We extract features from the penultimate layer of a ResNeXt (Xie et al., 2017) model trained on CIFAR-100. A non-private linear model trained on these features achieves $8 4 \%$ accuracy on CIFAR-10. When training linear models with DP-SGD, we get the privacy-utility curve in Figure 5 (see Appendix C.8 for details). We reach an accuracy of $8 0 . 0 \%$ at a budget of $( \varepsilon = 2 , \delta = \mathsf { \bar { 1 0 } ^ { - 5 } }$ ), a significant improvement over prior work for the same setting and privacy budget, e.g., $6 7 \%$ accuracy in (Abadi et al., 2016) and $7 2 \%$ accuracy in (Papernot et al., 2020a). The large gap between our results and prior work is mainly attributed to a better choice of source model (e.g., the transfer learning setup in (Papernot et al., 2020a) achieves $7 5 \%$ accuracy on CIFAR-10 in the non-private setting). Mirroring the work of Kornblith et al. (2019) on non-private transfer learning, we thus find that the heuristic rule “better models transfer better” also holds with differential privacy.
158
+
159
+ We further consider access to a public dataset of unlabeled images. We extract features from the penultimate layer of a SimCLR model (Chen et al., 2020a) trained on unlabeled ImageNet. A nonprivate linear model trained on these features achieves $9 5 \%$ accuracy on CIFAR-10 (using labeled ImageNet data marginally improves non-private transfer learning to CIFAR-10 (Chen et al., 2020a)). With the same setup as for CIFAR-100 (see Appendix C.8), we train a linear model to $9 2 . 7 \%$ accuracy for a DP budget of $( \varepsilon = 2 , \delta = 1 0 ^ { - 5 }$ ) (see Figure 5).
160
+
161
+ # 6 CONCLUSION AND OPEN PROBLEMS
162
+
163
+ We have demonstrated that differentially private learning benefits from “handcrafted” features that encode priors on the learning task’s domain. In particular, we have shown that private ScatterNet classifiers outperform end-to-end CNNs on MNIST, Fashion-MNIST and CIFAR-10. We have further found that handcrafted features can be surpassed when given access to more data, either a larger private training set, or a public dataset from a related domain. In addition to introducing strong baselines for evaluating future improvements to private deep learning and DP-SGD, our work suggests a number of open problems and directions for future work:
164
+
165
+ Improving DP by accelerating convergence: Our analysis in Section 4 shows that a limiting factor of private deep learning is the slow convergence rate of end-to-end deep models. While the existing literature on second-order optimization for deep learning has mainly focused on improving the overall wall-clock time of training, it suffices for DP to reduce the number of private training steps—possibly at an increase in computational cost.
166
+
167
+ Federated learning: While we have focused on a standard centralized setting for DP, our techniques can be extended to decentralized training schemes such as Federated Learning (McMahan et al., 2017; Bonawitz et al., 2017; Kairouz et al., 2019). DP has been considered for Federated Learning (Geyer et al., 2017; McMahan et al., 2018), but has also been found to significantly degrade performance in some settings (Yu et al., 2020).
168
+
169
+ Handcrafted features for ImageNet and non-vision domains: To our knowledge, there have not yet been any attempts to train ImageNet models with DP-SGD, partly due to the cost of computing per-sample gradients. While linear classifiers are unlikely to be competitive on ImageNet, handcrafted features can also help private learning by accelerating the convergence of CNNs, as we have shown in Figure 2. Notably, Oyallon et al. (2018) match the (non-private) accuracy of AlexNet (Krizhevsky et al., 2012) on ImageNet with a small six-layer CNN trained on ScatterNet features. Another interesting direction is to extend our results to domains beyond vision, e.g., with handcrafted features for text (Manning & Schutze, 1999) or speech (Andén & Mallat, 2014).
170
+
171
+ # ACKNOWLEDGEMENTS
172
+
173
+ We thank: Mani Malek, Ilya Mironov, Vaishaal Shankar and Ludwig Schmidt for fruitful discussions about differential privacy and computer vision baselines, and comments on early drafts of this paper; Nicolas Papernot and Shuang Song for helping us reproduce the results in (Papernot et al., 2020b); Nicolas Papernot for comments on early drafts of this paper; Edouard Oyallon for enlightening discussions about Scattering networks.
174
+
175
+ # REFERENCES
176
+
177
+ tensorflow/privacy, 2019. URL https://github.com/tensorflow/privacy.
178
+
179
+ pytorch/opacus, 2020. URL https://github.com/pytorch/opacus.
180
+
181
+ Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, pp. 308–318, 2016.
182
+
183
+ Joakim Andén and Stéphane Mallat. Deep scattering spectrum. IEEE Transactions on Signal Processing, 62 (16):4114–4128, 2014.
184
+
185
+ Mathieu Andreux, Tomás Angles, Georgios Exarchakis, Roberto Leonarduzzi, Gaspar Rochette, Louis Thiry, John Zarka, Stéphane Mallat, Joakim Andén, Eugene Belilovsky, Joan Bruna, Vincent Lostanlen, Matthew J. Hirn, Edouard Oyallon, Sixin Zhang, Carmine Cella, and Michael Eickenberg. Kymatio: Scattering transforms in Python. Journal of Machine Learning Research, 21(60):1–6, 2020.
186
+
187
+ Sanjeev Arora, Simon S Du, Zhiyuan Li, Ruslan Salakhutdinov, Ruosong Wang, and Dingli Yu. Harnessing the power of infinitely wide deep nets on small-data tasks. In International Conference on Learning Representations (ICLR), 2020.
188
+
189
+ Eugene Bagdasaryan, Omid Poursaeed, and Vitaly Shmatikov. Differential privacy has disparate impact on model accuracy. In Advances in Neural Information Processing Systems, pp. 15479–15488, 2019.
190
+
191
+ Raef Bassily, Adam Smith, and Abhradeep Thakurta. Private empirical risk minimization: Efficient algorithms and tight error bounds. In 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, pp. 464–473. IEEE, 2014.
192
+
193
+ Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for privacy-preserving machine learning. In ACM SIGSAC Conference on Computer and Communications Security (CCS), pp. 1175–1191. ACM, 2017.
194
+
195
+ Joan Bruna and Stéphane Mallat. Invariant scattering convolution networks. IEEE transactions on pattern analysis and machine intelligence, 35(8):1872–1886, 2013.
196
+
197
+ Zhiqi Bu, Jinshuo Dong, Qi Long, and Weijie J Su. Deep learning with Gaussian differential privacy. arXiv preprint arXiv:1911.11607, 2019.
198
+
199
+ Nicholas Carlini, Chang Liu, Úlfar Erlingsson, Jernej Kos, and Dawn Song. The secret sharer: Evaluating and testing unintended memorization in neural networks. In 28th USENIX Security Symposium, pp. 267–284, 2019.
200
+
201
+ Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, Alina Oprea, and Colin Raffel. Extracting training data from large language models. arXiv preprint arXiv:2012.07805, 2020.
202
+
203
+ Yair Carmon, Aditi Raghunathan, Ludwig Schmidt, John C Duchi, and Percy S Liang. Unlabeled data improves adversarial robustness. In Advances in Neural Information Processing Systems, pp. 11192–11203, 2019.
204
+
205
+ Kamalika Chaudhuri, Claire Monteleoni, and Anand D Sarwate. Differentially private empirical risk minimization. Journal of Machine Learning Research, 12(3), 2011.
206
+
207
+ Chen Chen and Jaewoo Lee. Stochastic adaptive line search for differentially private optimization. arXiv preprint arXiv:2008.07978, 2020.
208
+
209
+ Mia Xu Chen, Benjamin N Lee, Gagan Bansal, Yuan Cao, Shuyuan Zhang, Justin Lu, Jackie Tsay, Yinan Wang, Andrew M Dai, Zhifeng Chen, et al. Gmail smart compose: Real-time assisted writing. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 2287–2295, 2019.
210
+
211
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. arXiv preprint arXiv:2002.05709, 2020a.
212
+
213
+ Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton. Big self-supervised models are strong semi-supervised learners. arXiv preprint arXiv:2006.10029, 2020b.
214
+
215
+ Adam Coates and Andrew Y Ng. Learning feature representations with k-means. In Neural networks: Tricks of the trade, pp. 561–580. Springer, 2012.
216
+
217
+ Navneet Dalal and Bill Triggs. Histograms of oriented gradients for human detection. In 2005 IEEE computer society conference on computer vision and pattern recognition (CVPR’05), volume 1, pp. 886–893. IEEE, 2005.
218
+
219
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Conference on Computer Vision and Pattern Recognition (CVPR), pp. 248–255. IEEE, 2009.
220
+
221
+ Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In Annual International Conference on the Theory and Applications of Cryptographic Techniques, pp. 486–503. Springer, 2006a.
222
+
223
+ Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pp. 265–284. Springer, 2006b.
224
+
225
+ Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Leon Roth. Preserving statistical validity in adaptive data analysis. In Proceedings of the forty-seventh annual ACM symposium on Theory of computing, pp. 117–126, 2015.
226
+
227
+ Vitaly Feldman. Does learning require memorization? a short tale about a long tail. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pp. 954–959, 2020.
228
+
229
+ Vitaly Feldman and Tijana Zrnic. Individual privacy accounting via a Rényi filter. arXiv preprint arXiv:2008.11193, 2020.
230
+
231
+ Vitaly Feldman, Ilya Mironov, Kunal Talwar, and Abhradeep Thakurta. Privacy amplification by iteration. In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS), pp. 521–532. IEEE, 2018.
232
+
233
+ Robin C Geyer, Tassilo Klein, and Moin Nabi. Differentially private federated learning: A client level perspective. arXiv preprint arXiv:1712.07557, 2017.
234
+
235
+ Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SGD: Training ImageNet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
236
+
237
+ Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in neural information processing systems, pp. 8571–8580, 2018.
238
+
239
+ Matthew Jagielski, Jonathan Ullman, and Alina Oprea. Auditing differentially private machine learning: How private is private SGD? arXiv preprint arXiv:2006.07709, 2020.
240
+
241
+ Bargav Jayaraman, Lingxiao Wang, David Evans, and Quanquan Gu. Distributed learning without distress: Privacy-preserving empirical risk minimization. In Advances in Neural Information Processing Systems, pp. 6343–6354, 2018.
242
+
243
+ Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Keith Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. arXiv preprint arXiv:1912.04977, 2019.
244
+
245
+ Peter Kairouz, Mónica Ribero, Keith Rush, and Abhradeep Thakurta. Dimension independence in unconstrained private erm via adaptive preconditioning. arXiv preprint arXiv:2008.06570, 2020.
246
+
247
+ Daniel Kifer, Adam Smith, and Abhradeep Thakurta. Private convex empirical risk minimization and highdimensional regression. In Conference on Learning Theory, pp. 25–1, 2012.
248
+
249
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
250
+
251
+ Simon Kornblith, Jonathon Shlens, and Quoc V Le. Do better imagenet models transfer better? In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2661–2671, 2019.
252
+
253
+ Alex Krizhevsky. Learning multiple layers of features from tiny images, 2009.
254
+
255
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
256
+
257
+ Yann LeCun, Corinna Cortes, and CJ Burges. MNIST handwritten digit database. ATT Labs, 2010.
258
+
259
+ Zhiyuan Li, Ruosong Wang, Dingli Yu, Simon S Du, Wei Hu, Ruslan Salakhutdinov, and Sanjeev Arora. Enhanced convolutional neural tangent kernels. arXiv preprint arXiv:1911.00809, 2019.
260
+
261
+ Jingcheng Liu and Kunal Talwar. Private selection from private candidates. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pp. 298–309, 2019.
262
+
263
+ David G Lowe. Object recognition from local scale-invariant features. In Proceedings of the seventh IEEE international conference on computer vision, volume 2, pp. 1150–1157. Ieee, 1999.
264
+
265
+ Alexander Selvikvåg Lundervold and Arvid Lundervold. An overview of deep learning in medical imaging focusing on MRI. Zeitschrift für Medizinische Physik, 29(2):102–127, 2019.
266
+
267
+ Christopher Manning and Hinrich Schutze. Foundations of statistical natural language processing. 1999.
268
+
269
+ Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communicationefficient learning of deep networks from decentralized data. In Artificial Intelligence and Statistics, pp. 1273–1282. PMLR, 2017.
270
+
271
+ H Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. Learning differentially private recurrent language models. In International Conference on Learning Representations (ICLR), 2018.
272
+
273
+ Ilya Mironov. Rényi differential privacy. In 2017 IEEE 30th Computer Security Foundations Symposium (CSF), pp. 263–275. IEEE, 2017.
274
+
275
+ Ilya Mironov, Kunal Talwar, and Li Zhang. Rényi differential privacy of the sampled Gaussian mechanism. arXiv preprint arXiv:1908.10530, 2019.
276
+
277
+ Milad Nasr, Reza Shokri, and Amir houmansadr. Improving deep learning with differential privacy using gradient encoding and denoising. arXiv preprint arXiv:2007.11524, 2020.
278
+
279
+ Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. Smooth sensitivity and sampling in private data analysis. In Proceedings of the thirty-ninth annual ACM symposium on Theory of computing, pp. 75–84, 2007.
280
+
281
+ Edouard Oyallon and Stéphane Mallat. Deep roto-translation scattering for object classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2865–2873, 2015.
282
+
283
+ Edouard Oyallon, Sergey Zagoruyko, Gabriel Huang, Nikos Komodakis, Simon Lacoste-Julien, Matthew Blaschko, and Eugene Belilovsky. Scattering networks for hybrid representation learning. IEEE transactions on pattern analysis and machine intelligence, 41(9):2208–2221, 2018.
284
+
285
+ Nicolas Papernot, Martín Abadi, Ulfar Erlingsson, Ian Goodfellow, and Kunal Talwar. Semi-supervised knowledge transfer for deep learning from private training data. In International Conference on Learning Representations (ICLR), 2017.
286
+
287
+ Nicolas Papernot, Shuang Song, Ilya Mironov, Ananth Raghunathan, Kunal Talwar, and Úlfar Erlingsson. Scalable private learning with PATE. In International Conference on Learning Representations (ICLR), 2018.
288
+
289
+ Nicolas Papernot, Steve Chien, Shuang Song, Abhradeep Thakurta, and Ulfar Erlingsson. Making the shoe fit: Architectures, initializations, and tuning for learning with privacy, 2020a. URL https://openreview. net/forum?id $=$ rJg851rYwH.
290
+
291
+ Nicolas Papernot, Abhradeep Thakurta, Shuang Song, Steve Chien, and Úlfar Erlingsson. Tempered sigmoid activations for deep learning with differential privacy. In Theory and Practice of Differential Privacy, 2020b.
292
+
293
+ Vinay Uday Prabhu and Abeba Birhane. Large image datasets: A pyrrhic win for computer vision? arXiv preprint arXiv:2006.16923, 2020.
294
+
295
+ Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. In Advances in neural information processing systems, pp. 1177–1184, 2008.
296
+
297
+ Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. CNN features off-the-shelf: an astounding baseline for recognition. In Computer Vision and Pattern Recognition Workshops (CVPRW), 2014 IEEE Conference on, pp. 512–519. IEEE, 2014.
298
+
299
+ Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do CIFAR-10 classifiers generalize to CIFAR-10? arXiv preprint arXiv:1806.00451, 2018.
300
+
301
+ Benjamin Rubinstein, Peter Bartlett, Ling Huang, and Nina Taft. Learning in a large function space: Privacypreserving mechanisms for SVM learning. Journal of Privacy and Confidentiality, 4(1):65–100, 2012.
302
+
303
+ Vaishaal Shankar, Alex Fang, Wenshuo Guo, Sara Fridovich-Keil, Ludwig Schmidt, Jonathan Ragan-Kelley, and Benjamin Recht. Neural kernels without tangents. In International Conference on Machine Learning (ICML), 2020.
304
+
305
+ Reza Shokri and Vitaly Shmatikov. Privacy-preserving deep learning. In Proceedings of the 22nd ACM SIGSAC conference on computer and communications security, pp. 1310–1321, 2015.
306
+
307
+ Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 3–18. IEEE, 2017.
308
+
309
+ Congzheng Song, Thomas Ristenpart, and Vitaly Shmatikov. Machine learning models that remember too much. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, pp. 587–601, 2017.
310
+
311
+ Om Thakkar, Galen Andrew, and H Brendan McMahan. Differentially private learning with adaptive clipping. arXiv preprint arXiv:1905.03871, 2019.
312
+
313
+ Antonio Torralba, Rob Fergus, and William T Freeman. 80 million tiny images: A large data set for nonparametric object and scene recognition. IEEE transactions on pattern analysis and machine intelligence, 30(11):1958– 1970, 2008.
314
+
315
+ Yu-Xiang Wang, Borja Balle, and Shiva Prasad Kasiviswanathan. Subsampled Rényi differential privacy and analytical moments accountant. Proceedings of Machine Learning Research, 89:1226–1235, 16–18 Apr 2019.
316
+
317
+ Shaomei Wu, Hermes Pique, and Jeffrey Wieland. Using artificial intelligence to help blind people ‘see’ Facebook. https://about.fb.com/news/2016/04/using-artificial-intelligenceto-help-blind-people-see-facebook/, 2016.
318
+
319
+ Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the European conference on computer vision (ECCV), pp. 3–19, 2018.
320
+
321
+ Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
322
+
323
+ Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1492–1500, 2017.
324
+
325
+ Da Yu, Huishuai Zhang, Wei Chen, Tie-Yan Liu, and Jian Yin. Gradient perturbation is underrated for differentially private convex optimization. arXiv preprint arXiv:1911.11363, 2019a.
326
+
327
+ Lei Yu, Ling Liu, Calton Pu, Mehmet Emre Gursoy, and Stacey Truex. Differentially private model publishing for deep learning. In 2019 IEEE Symposium on Security and Privacy (SP), pp. 332–349. IEEE, 2019b.
328
+
329
+ Tao Yu, Eugene Bagdasaryan, and Vitaly Shmatikov. Salvaging federated learning by local adaptation. arXiv preprint arXiv:2002.04758, 2020.
330
+
331
+ Yingxue Zhou, Xiangyi Chen, Mingyi Hong, Zhiwei Steven Wu, and Arindam Banerjee. Private stochastic nonconvex optimization: Adaptive algorithms and tighter generalization bounds. arXiv preprint arXiv:2006.13501, 2020a.
332
+
333
+ Yingxue Zhou, Zhiwei Steven Wu, and Arindam Banerjee. Bypassing the ambient dimension: Private SGD with gradient subspace identification. arXiv preprint arXiv:2007.03813, 2020b.
334
+
335
+ Yuqing Zhu, Xiang Yu, Manmohan Chandraker, and Yu-Xiang Wang. Private-kNN: Practical differential privacy for computer vision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11854–11862, 2020.
336
+
337
+ # A WHY SCATTERNETS?
338
+
339
+ In this paper, we propose to use the ScatterNet features of Oyallon & Mallat (2015) as a basis for shallow differentially private vision classifiers. We briefly discuss a number of other shallow approaches that produce competitive results for canonical vision tasks, but which appear less suitable for private learning.
340
+
341
+ Unsupervised feature dictionaries. Coates & $\mathrm { N g }$ (2012) achieve above $8 0 \%$ test accuracy on CIFAR-10 with linear models trained on top of a dictionary of features extracted from a mixture of image patches. Their approach relies on a combination of many ‘tricks”, including data normalization, data whitening, tweaks to standard Gaussian-Mixture-Model (GMM) algorithms, feature selection, etc. While it is conceivable that each of these steps could be made differentially private, we opt here for a much simpler unlearned baseline that is easier to analyze and to apply to a variety of different tasks. We note that existing work on differentially-private learning of mixtures (e.g., (Nissim et al., 2007)) has mainly focused on asymptotic guarantees, and we are not aware of any exiting algorithms that have been evaluated on high-dimensional datasets such as CIFAR-10.
342
+
343
+ Kernel Machines. Recent work on Neural Tangent Kernels (Jacot et al., 2018) has shown that the performance of deep neural networks on CIFAR-10 could be matched by specialized kernel methods (Li et al., 2019; Arora et al., 2020; Shankar et al., 2020). Unfortunately, private learning with non-linear kernels is intractable in general (Chaudhuri et al., 2011; Rubinstein et al., 2012). Chaudhuri et al. (2011) propose to obtain private classifiers by approximating kernels using random features (Rahimi & Recht, 2008), but the very high dimensionality of the resulting learning problem makes it challenging to outperform our handcrafted features baseline. Indeed, we had originally considered a differentially-private variant of the random-feature CIFAR-10 classifier proposed in (Recht et al., 2018), but found the model’s high dimensionality (over 10 million features) to be detrimental to private learning.
344
+
345
+ # B DP-SGD, RDP AND PRIVATE DATA NORMALIZATION
346
+
347
+ Throughout this work, we use the DP-SGD algorithm of Abadi et al. (2016):
348
+
349
+ # Algorithm 1: DP-SGD (Abadi et al., 2016)
350
+
351
+ input :Data $\{ \pmb { x } _ { 1 } \ldots , \pmb { x } _ { N } \}$ , learning rate $\eta$ , noise scale $\sigma$ , batch size $B$ , gradient norm bound $C$ , epochs $T$
352
+ 1 Initialize $\pmb { \theta } _ { 0 }$ randomly for $t \in [ T \cdot ^ { N } / B ]$ do
353
+ 2 Sample a batch $\mathbf { \delta } _ { B _ { t } }$ by selecting each $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ independently with probability $B / _ { N }$
354
+ 3 For each $\pmb { x } _ { i } \in \pmb { B } _ { t }$ : $\pmb { g } _ { t } ( \pmb { x } _ { i } ) \nabla _ { \pmb { \theta } _ { t } } L ( \pmb { \theta } _ { t } , \pmb { x } _ { i } )$ // compute per-sample gradients
355
+ 4 $\tilde { g } _ { t } ( \pmb { x } _ { i } ) \gets g _ { t } ( \pmb { x } _ { i } ) \cdot \operatorname* { m i n } ( 1 , ^ { C } / | | g _ { t } ( \pmb { x } _ { i } ) | | _ { 2 } )$ // clip gradients
356
+ 5 $\begin{array} { r } { \tilde { g } _ { t } \gets \frac { 1 } { B } \Big ( \sum _ { \pmb { x } _ { i } \in B _ { t } } \tilde { g } _ { t } ( \pmb { x } _ { i } ) + \mathcal { N } ( 0 , \sigma ^ { 2 } C ^ { 2 } I ) \Big ) } \end{array}$ // add noise to average gradient with Gaussian mechanism
357
+ 6 $\begin{array} { r } { \pmb { \theta } _ { t + 1 } \pmb { \theta } _ { t } - \eta \tilde { \pmb { g } } _ { t } } \\ { \mathbf { p u t } : \pmb { \theta } _ { T N / B } } \end{array}$ // SGD step out
358
+
359
+ Definition B.1 (Rényi Divergence). For two probability distributions $P$ and $Q$ defined over a range $\mathcal { R }$ , the Rényi divergence of order $\alpha > 1$ is
360
+
361
+ $$
362
+ D _ { \alpha } ( P \| Q ) : = \frac { 1 } { \alpha - 1 } \log \underset { x \sim Q } { \mathbb { E } } \left( \frac { P ( x ) } { Q ( x ) } \right) ^ { \alpha } .
363
+ $$
364
+
365
+ Definition B.2 ( $( \alpha , \varepsilon )$ -RDP (Mironov, 2017)). A randomized mechanism $f : \mathcal { D } \mathcal { R }$ is said to have $\varepsilon$ -Rényi differential privacy of order $\alpha$ , or $( \alpha , \varepsilon )$ -RDP for short, if for any adjacent $D , D ^ { \prime } \in { \mathcal { D } }$ it holds that
366
+
367
+ $$
368
+ D _ { \alpha } ( f ( D ) \| f ( D ^ { \prime } ) ) \leq \varepsilon .
369
+ $$
370
+
371
+ To analyze the privacy guarantees of DP-SGD, we numerically compute $D _ { \alpha } ( f ( D ) \| f ( D ^ { \prime } ) )$ for a range of orders $\alpha$ (Mironov et al., 2019; Wang et al., 2019) in each training step, where $D$ and $D ^ { \prime }$ are training sets that differ in a single element. To obtain privacy guarantees for $t$ training steps, we use the composition properties of RDP:
372
+
373
+ Lemma B.3 (Adaptive composition of RDP (Mironov et al., 2019)). Let $f : \mathcal { D } \mathcal { R } _ { 1 }$ be $( \alpha , \varepsilon _ { 1 } )$ -RDP and $g : \mathcal { R } _ { 1 } \times \mathcal { D } \mathcal { R } _ { 2 }$ be $( \alpha , \varepsilon _ { 2 } )$ -RDP, then the mechanism defined as $( X , Y )$ , where $X \sim f ( D )$ and $Y \sim g ( X , D )$ , satisfies $( \alpha , \varepsilon _ { 1 } + \varepsilon _ { 2 } )$ -RDP.
374
+
375
+ Finally, the RDP guarantees of the full DP-SGD procedure can be converted into a $( \varepsilon , \delta )$ -DP guarantee:
376
+
377
+ Lemma B.4 (From RDP to $( \varepsilon , \delta )$ -DP (Mironov et al., 2019)). If $f$ is an $( \alpha , \varepsilon )$ -RDP mechanism, it also satisfies $\begin{array} { r } { ( \varepsilon + \frac { \log { 1 / \delta } } { \alpha - 1 } , \delta ) } \end{array}$ -DP for any $0 < \delta < 1$ .
378
+
379
+ Private Data Normalization. In order to apply Data Normalization to the ScatterNet features (which greatly improves convergence, especially on CIFAR-10), we use the PrivDataNorm procedure in Algorithm 2 to compute private estimates of the per-channel mean and variance of the ScatterNet features.
380
+
381
+ # Algorithm 2: Private Data Normalization
382
+
383
+ Function PrivChannelMean(data $\pmb { D } \in \mathbb { R } ^ { N \times K \times H \times W }$ , norm bound $C$ , noise scale $\sigma _ { n o r m }$
384
+
385
+ <table><tr><td>1</td><td>For1≤i≤ N: μi ← En,ω [D(i,,h,w)] ∈ RK // compute per-channel means for each sample μi ← μi · min(1,C/μill2) // clip each sample&#x27;s per-channel</td></tr></table>
386
+
387
+ In order to obtain tight privacy guarantees for the full training procedure (i.e., privacy-preserving Data Normalization followed by DP-SGD), we first derive the RDP guarantees of PrivDataNorm:
388
+
389
+ Claim B.5. The PrivDataNorm procedure is $( \alpha , \alpha / \sigma _ { n o r m } ^ { 2 } )$ -RDP for any $\alpha > 1$ .
390
+
391
+ The above claim follows from the RDP guarantees of the Gaussian mechanism in (Mironov, 2017), together with the composition properties of RDP in Lemma B.3 above.
392
+
393
+ Finally, given an RDP guarantee of $( \alpha , \varepsilon _ { 1 } )$ for PrivDataNorm, and an RDP guarantee of $( \alpha , \varepsilon _ { 2 } )$ for DP-SGD, we apply Lemma B.3 to obtain an RDP guarantee of $( \alpha , \varepsilon _ { 1 } + \varepsilon _ { 2 } )$ , and convert to a DP guarantee using Lemma B.4.
394
+
395
+ # C EXPERIMENTAL SETUP
396
+
397
+ # C.1 SCATTERING NETWORKS
398
+
399
+ We briefly review the scattering network (ScatterNet) of Oyallon & Mallat (2015). Consider an input $_ { \textbf { \em x } }$ . The output of a scattering network of depth $J$ is a feature vector given by
400
+
401
+ $$
402
+ S ( { \pmb x } ) : = A _ { J } \left| W _ { 2 } \left| W _ { 1 } { \pmb x } \right| \right| ,
403
+ $$
404
+
405
+ where the operators $W _ { 1 }$ and $W _ { 2 }$ are complex-valued wavelet transforms, each followed by a non-linear complex modulus, and the final operator $A$ performs spatial averaging over patches of $2 ^ { J }$ features. Both wavelet transforms $W _ { 1 }$ and $W _ { 2 }$ are linear operators that compute a cascade of convolutions with filters from a fixed family of wavelets. For an input image of spatial dimensions $H \times W$ , the ScatterNet is aptensor of dimension $( K , { \frac { H } { 2 ^ { J } } } , { \frac { W } { 2 ^ { J } } } )$ h of the image’s color channe. The channel dimensionality $K$ y to yield an outpthe network depth $J$ $K / 2 ^ { 2 J } = O ( 1 )$ approximately preserves the data dimensionality).
406
+
407
+ For all experiments, we use the default parameters proposed by Oyallon & Mallat (2015), namely a Scattering Network of depth $J = 2$ , consisting of wavelet filters rotated along eight angles. For an an input image of spatial dimensions $H \times W$ , this configuration produces an output of dimension $( K , \bar { H } / 4 , W / 4 )$ , with $K = 8 1$ for grayscale images, and $K = 2 4 3$ for RGB images.
408
+
409
+ # C.2 MODEL ARCHITECTURES
410
+
411
+ Below, we describe the ScatterNet+Linear, ScatterNet+CNN and end-to-end CNN architectures used in Section 3 and Section 4. The CNN architectures are adapted from Papernot et al. (2020b).
412
+
413
+ Linear ScatterNet Classifiers. The default Scattering Network of Oyallon & Mallat (2015) extracts feature vectors of size (81, 7, 7) for MNIST and Fashion-MNIST and of size (243, 8, 8) for CIFAR-10. We then train a standard logistic regression classifier (with per-class bias) on top of these features, as summarized below:
414
+
415
+ Table 5: Size of linear ScatterNet classifiers.
416
+
417
+ <table><tr><td>Dataset</td><td>Image size</td><td>Linear ScatterNet size</td></tr><tr><td>MNIST</td><td>28×28</td><td>3969 ×10</td></tr><tr><td>Fashion-MNIST</td><td>28×28</td><td>3969 ×10</td></tr><tr><td>CIFAR-10</td><td>32 ×32×3</td><td>15552 ×10</td></tr></table>
418
+
419
+ End-to-end CNNs. We use the CNN architectures proposed by Papernot et al. (2020b), which were found as a result of an architecture search tailored to DP-SGD.7 Notably, these CNNs are quite small (since the noise of DP-SGD grows with the model’s dimensionality) and use Tanh activations, which Papernot et al. (2020b) found to outperform the more common ReLU activations. For the experiments in Section 4, we also consider a smaller CIFAR-10 model, with a dimensionality comparable to the linear ScatterNet classifier. While the standard model has six convolutional layers of size 32-32-64-64-128-128, the smaller model has five convolutional layers of size 16-16-32-32-64 (with max-pooling after the $2 ^ { \mathrm { n d } }$ , $4 ^ { \mathrm { t h } }$ and $5 ^ { \mathrm { t h } }$ convolution).
420
+
421
+ Table 6: End-to-end CNN model for MNIST and Fashion-MNIST, with Tanh activations (Papernot et al., 2020b).
422
+
423
+ <table><tr><td>Layer</td><td>Parameters</td></tr><tr><td>Convolution</td><td>16 filters of 8x8,stride 2,padding 2</td></tr><tr><td>Max-Pooling</td><td>2x2,stride 1</td></tr><tr><td>Convolution</td><td>32 filters of 4x4,stride 2,padding O</td></tr><tr><td>Max-Pooling</td><td>2x2,stride 1</td></tr><tr><td>Fully connected</td><td>32 units</td></tr><tr><td>Fully connected</td><td>10 units</td></tr></table>
424
+
425
+ Table 7: End-to-end CNN model for CIFAR-10, with Tanh activations (Papernot et al., 2020b). In Section 4, we also use a smaller variant of this architecture with five convolutional layers of 16-16-32-32-64 filters.
426
+
427
+ <table><tr><td>Layer</td><td>Parameters</td></tr><tr><td>Convolution x2</td><td>32 filters of 3x3,stride 1,padding 1</td></tr><tr><td>Max-Pooling</td><td>2x2,stride 2</td></tr><tr><td>Convolution x2 Max-Pooling</td><td>64 filters of 3x3,stride 1, padding 1 2x2,stride 2</td></tr><tr><td>Convolution x2</td><td>128 filters of 3x3,stride 1,padding 1</td></tr><tr><td>Max-Pooling</td><td>2x2,stride 2</td></tr><tr><td>Fully connected</td><td>128 units</td></tr><tr><td>Fully connected</td><td>10 units</td></tr></table>
428
+
429
+ ScatterNet CNNs. To fine-tune CNNs on top of ScatterNet features, we adapt the CNNs from Table 6 and Table 7. As the ScatterNet feature vector is larger than the input image $7 8 4 3 9 6 9$ features for MNIST and Fashion-MNIST, and $3 0 7 2 1 5 5 5 2$ features for CIFAR-10), we use smaller CNN models. For MNIST and Fashion MNIST, we reduce the number of convolutional filters. For CIFAR-10, we reduce the network depth from 8 to 3, which results in a model with approximately as many parameters as the linear ScatterNet classifier.
430
+
431
+ Table 8: CNN model fine-tuned on ScatterNet features for MNIST and Fashion-MNIST, with Tanh activations.
432
+
433
+ <table><tr><td>Layer</td><td>Parameters</td></tr><tr><td>Convolution</td><td>16 filters of 3x3,stride 2,padding 1</td></tr><tr><td>Max-Pooling</td><td>2x2,stride 1</td></tr><tr><td>Convolution</td><td>32 filters of 3x3,stride1,padding 1</td></tr><tr><td>Max-Pooling</td><td>2x2,stride 1</td></tr><tr><td>Fully connected</td><td>32 units</td></tr><tr><td>Fully connected</td><td>10 units</td></tr></table>
434
+
435
+ Table 9: CNN model on ScatterNet features for CIFAR-10, with Tanh activations. In Section 4, we also use a smaller variant of this model with four convolutional layers of 16-16-32-32 filters.
436
+
437
+ <table><tr><td>Layer</td><td>Parameters</td></tr><tr><td>Convolution</td><td>64 filters of 3x3,stride 1, padding 1</td></tr><tr><td>Max-Pooling</td><td>2x2, stride 2</td></tr><tr><td>Convolution</td><td>64 filters of 3x3,stride1,padding 1</td></tr><tr><td>Max-Pooling</td><td>2x2,stride 2</td></tr><tr><td>Fully connected</td><td>10 units</td></tr></table>
438
+
439
+ # C.3 EFFECT OF NORMALIZATION
440
+
441
+ To evaluate the effect of feature normalization in Table 2, we train linear models on ScatterNet features using DP-SGD without noise $( \sigma = 0$ ). We train one model without feature normalization, one with Data Normalization, and three with Group Normalization (Wu & He, 2018) with $G \in \{ 9 , 2 7 , 8 1 \}$ groups. For Group Normalization, Table 2 reports results for the best choice of groups. The remaining hyper-parameters are given below.
442
+
443
+ Table 10: Hyper-parameters for evaluating the effect of feature normalization in Table 2.
444
+
445
+ <table><tr><td>Parameter</td><td>MNIST</td><td>Fashion-MNIST</td><td>CIFAR-10</td></tr><tr><td>Gradient clipping norm C</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Momentum</td><td>0.9</td><td>0.9</td><td>0.9</td></tr><tr><td>Epochs T</td><td>20</td><td>20</td><td>20</td></tr><tr><td>Batch size B</td><td>512</td><td>512</td><td>512</td></tr><tr><td>Learning rate n</td><td>2</td><td>4</td><td>2</td></tr><tr><td>Best choice of groups G</td><td>27</td><td>81</td><td>27</td></tr></table>
446
+
447
+ # C.4 NON-PRIVATE MODEL PERFORMANCE
448
+
449
+ For each of the model architectures described in Appendix C.2, we report the best achieved test accuracy without privacy, and without any other form of explicit regularization. For MNIST and Fashion-MNIST, fine-tuning a linear model or a CNN on top of ScatterNet features results in similar performance, whereas on CIFAR-10, the CNN performs slightly better. For Fashion-MNIST the end-to-end CNN performs slightly worse than the linear model (mainly due to a lack of regularization). For CIFAR-10, the end-to-end CNN significantly outperforms the ScatterNet models.
450
+
451
+ Table 11: Test accuracy $( \mathrm { i n \% } )$ ) for models trained without privacy. Average and standard deviation are computed over five runs.
452
+
453
+ <table><tr><td>Dataset</td><td>ScatterNet+Linear</td><td>ScatterNet+CNN</td><td>CNN</td></tr><tr><td>MNIST</td><td>99.3 ±0.0</td><td>99.2 ± 0.0</td><td>99.2 ±0.0</td></tr><tr><td>Fashion-MNIST</td><td>91.5 ± 0.0</td><td>91.5 ± 0.2</td><td>90.1±0.2</td></tr><tr><td>CIFAR-10</td><td>71.1 ± 0.0</td><td>73.8 ± 0.3</td><td>80.0±0.1</td></tr></table>
454
+
455
+ # C.5 EVALUATING PRIVATE SCATTERNET CLASSIFIERS
456
+
457
+ We use DP-SGD with momentum for all experiments. Prior work found that the use of adaptive optimizers (e.g., Adam (Kingma & Ba, 2015)) provided only marginal benefits for private learning (Papernot et al., 2020a). Moreover, we use no data augmentation, weight decay, or other mechanisms aimed at preventing overfitting. The reason is that differential privacy is itself a powerful regularizer (informally, differential privacy implies low generalization error (Dwork et al., 2015)), so our models all underfit the training data.
458
+
459
+ The table below lists the ranges of hyper-parameters used for the experiments in Section 3, to train linear ScatterNet classifiers, end-to-end CNNs, and CNNs fine-tuned on ScatterNet features.
460
+
461
+ Table 12: Hyper-parameters for the evaluation of private linear classifiers fine-tuned on ScatterNet features, CNNs fine-tuned on ScatterNet features, and end-to-end CNNs in Section 3.
462
+
463
+ <table><tr><td>Parameter</td><td>MNIST</td><td>Fashion-MNIST</td><td>CIFAR-10</td></tr><tr><td>DP guarantee (ε, δ)</td><td>(3,10-5)</td><td>(3,10-5)</td><td>(3,10-5)</td></tr><tr><td>Gradient clipping norm C</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Momentum</td><td>0.9</td><td>0.9</td><td>0.9</td></tr><tr><td>Batch size B</td><td>{512,1024,...,16384} {512,1024,...,16384} {512,1024,...,16384}</td><td></td><td></td></tr><tr><td>Learning rate n</td><td>{1/4,1/2,1,2} .B/512</td><td>{1/4,1/2,1,2}.B/512</td><td>{1/8,1/4,1/2,1}.B/512</td></tr><tr><td>Epochs T</td><td>{15,25,40}</td><td>{15,25,40}</td><td>{30,60,120}</td></tr><tr><td>DP-SGD noise scale σ</td><td>calculated numerically so that a DP budget of (ε,δ) is spent after T epochs</td><td></td><td></td></tr><tr><td>Group Norm. groups G Data Norm.(C1,C2,Onorm)</td><td>{9,27,81} (0.2,0.05,{6,8})</td><td>{9,27,81} (0.3,0.15, {6,8})</td><td>{9,27,81} (1.0,1.5, {6,8})</td></tr></table>
464
+
465
+ In Table 13, we give the set of hyper-parameters that resulted in the maximal accuracy for our target DP budget of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 } \mathrm { . }$ ). For each model, we report the base learning rate, before re-scaling by $B / 5 1 2$ . We find that some hyper-parameters that result in the best performance are at the boundary of our search range. Yet, as we show in Figure 8, modifying these hyper-parameters results in no significant upward trend, so we refrained from further increasing our search space.
466
+
467
+ Table 13: Set of hyper-parameters resulting in the highest test accuracy for a privacy budget of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 } )$ ). Note that we report the base learning rate (LR), before scaling by a factor of $B / 5 1 2$ . SN stands for ScatterNet.
468
+
469
+ <table><tr><td></td><td colspan="3">MNIST</td><td colspan="3">Fashion-MNIST</td><td colspan="3">CIFAR-10</td></tr><tr><td>Parameter</td><td>SN+Linear</td><td>SN+CNN</td><td>CNN</td><td>SN+Linear</td><td>SN+CNN</td><td>CNN</td><td>SN+Linear</td><td>SN+CNN</td><td>CNN</td></tr><tr><td>Batch size B</td><td>4096</td><td>1024</td><td>512</td><td>8192</td><td>2048</td><td>2048</td><td>8192</td><td>8192</td><td>1024</td></tr><tr><td>Base LR n</td><td>1</td><td>/</td><td>/</td><td>1</td><td>1</td><td>1</td><td>1/4</td><td>1/4</td><td>1/</td></tr><tr><td>Epochs T</td><td>40</td><td>25</td><td>40</td><td>40</td><td>40</td><td>40</td><td>60</td><td>60</td><td>30</td></tr><tr><td>Groups G</td><td>-</td><td>1</td><td>-</td><td>27</td><td>27</td><td>-</td><td>-</td><td>-</td><td>1</td></tr><tr><td>Data Norm. Onorm</td><td>8</td><td>8</td><td>-</td><td>1</td><td>-</td><td>-</td><td>8</td><td>8</td><td>1</td></tr></table>
470
+
471
+ # C.6 MEASURING MODEL CONVERGENCE SPEED
472
+
473
+ For the experiments in Section 4, we compare the convergence of the models from Appendix C.2 when trained with and without noise, and with either a low or high learning rate. The table below lists the hyper-parameters for the CIFAR-10 experiment in Figure 3, as well as for the corresponding experiments for MNIST and Fashion-MNIST in Figure 11. When training without privacy, we still clip gradients to a maximal norm of $C = 0 . 1$ , but omit the noise addition step of DP-SGD (and we also omit the noise when using Data Normalization).
474
+
475
+ Table 14: Hyper-parameters for the experiments on model convergence rates in Figure 3 and Figure 11.
476
+
477
+ <table><tr><td>Dataset</td><td>Batch size B Gradient Norm C</td><td></td><td>Learning rate n (low, high)</td><td>Epochs T</td><td>Normalization</td></tr><tr><td>MNIST</td><td>512</td><td>0.1</td><td>(1,8)</td><td>40</td><td>Data Norm. (Onorm = 8)</td></tr><tr><td>Fashion-MNIST</td><td>512</td><td>0.1</td><td>(1,16)</td><td>40</td><td>Group Norm. (G= 81)</td></tr><tr><td>CIFAR-10</td><td>512</td><td>0.1</td><td>(1/4,4)</td><td>60</td><td>Data Norm. (Onorm = 8)</td></tr></table>
478
+
479
+ # C.7 PRIVATE LEARNING ON LARGER DATASETS
480
+
481
+ For the experiment in Section 5.1, we use an additional 500K images from the Tiny Images dataset (Torralba et al., 2008), which were collected and labeled by Carmon et al. (2019) using a pre-trained CIFAR-10 classifier (see (Carmon et al., 2019, Appendix B.6) for details on the selection process for this dataset).8 We create datasets of size $N \in \{ 1 0 \mathbf { K } , 2 5 \mathbf { K } , 5 0 \mathbf { K } , 1 0 0 \mathbf { K } , 2 5 0 \mathbf { K } , 5 5 0 \mathbf { K } \}$ by taking subsets of this larger dataset. We only use the data of Carmon et al. (2019) to complement the CIFAR-10 dataset when $N > 5 0 \mathrm { K }$ . As noted by Carmon et al. (2019), the additional 500K images do not entirely match the distribution of CIFAR-10. Nevertheless, we find that training our classifiers without privacy on augmented datasets of size $N > 5 0 \mathrm { K }$ does not negatively impact the test accuracy on CIFAR-10.
482
+
483
+ For each training set size, we re-train our models with a hyper-parameter search. To limit computational cost, and informed by our prior experiments, we fix some parameters, as shown in Table 15. When applying Data Normalization to ScatterNet features, we compute the per-channel statistics only over the original CIFAR-10 samples, and compute the privacy guarantees of PrivDataNorm using the Rényi DP analysis of the sampled Gaussian mechanism (Mironov et al., 2019; Wang et al., 2019).
484
+
485
+ Table 15: Hyper-parameters for the evaluation of private classifiers on larger datasets in Section 5.1.
486
+
487
+ <table><tr><td>Parameter</td><td>Value for dataset of size N</td></tr><tr><td>DP guarantee (ε, δ)</td><td>(3,1/2N)</td></tr><tr><td>Gradient norm C</td><td>0.1</td></tr><tr><td>Momentum</td><td>0.9</td></tr><tr><td>Batch size B</td><td>8192</td></tr><tr><td>Learning rate n</td><td>{1/8,1/4,1/2,1,2}.8192/512</td></tr><tr><td>Epochs T</td><td>{15,30,60,120} . 50000/N</td></tr><tr><td>Data Norm. params (C1,C2, Onorm)</td><td>(1,1.5,8)</td></tr></table>
488
+
489
+ The only hyper-parameters are thus the number of epochs (normalized by the size of the original CIFAR-10 data) and the learning rate $\eta$ . The optimal values we found for these parameters are given below in Table 16. As we increase the dataset size, we obtain better accuracy by training for more steps and with higher learning rates. Figure 4 reports the final accuracy for these best-performing models.
490
+
491
+ Table 16: Set of hyper-parameters resulting in the highest test accuracy for a privacy budget of $( \varepsilon = 3 , \delta = { ^ { 1 } \mathrm { / 2 } } N _ { . }$ ). The test accuracy for these models are in Figure 4. Epochs are normalized by the size of the original CIFAR-10 dataset, so training for $T$ epochs corresponds to training on $T \cdot 5 0 { , } 0 0 0$ examples. Note that we report the base learning rate, before scaling by a factor of $8 1 9 2 / 5 1 2$ .
492
+
493
+ <table><tr><td></td><td colspan="2">ScatterNet+Linear</td><td colspan="2">ScatterNet+CNN</td><td colspan="2">CNN</td></tr><tr><td>N</td><td>Epochs T</td><td>Learning rate n</td><td>Epochs T</td><td>Learning rate n</td><td>Epochs T</td><td>Learning rate n</td></tr><tr><td>10K</td><td>30</td><td>1/8</td><td>60</td><td>1/8</td><td>30</td><td>1/8</td></tr><tr><td>25K</td><td>30</td><td></td><td>60</td><td>1/8</td><td>60</td><td>1/8</td></tr><tr><td>50K</td><td>60</td><td>诊</td><td>60</td><td>1/4</td><td>60</td><td>1/4</td></tr><tr><td>100K</td><td>60</td><td>诊</td><td>120</td><td></td><td>120</td><td>1/4</td></tr><tr><td>250K</td><td>120</td><td></td><td>120</td><td>14</td><td>120</td><td>1</td></tr><tr><td>550K</td><td>120</td><td></td><td>120</td><td>1</td><td>120</td><td>1</td></tr></table>
494
+
495
+ # C.8 EVALUATION OF PRIVATE TRANSFER LEARNING
496
+
497
+ For the transfer learning experiments in Figure 5, we use a ResNeXt-29 model pre-trained on CIFAR-100,9 and a ResNet-50 model trained on unlabeled ImageNet (Deng et al., 2009) using SimCLRv2 (Chen et al., 2020b).10
498
+
499
+ To train private linear classifiers on CIFAR-10, we first extract features from the penultimate layer of the above pre-trained models. For the ResNeXt model, we obtain features of dimension 1024, and for the SimCLRv2 ResNet, we obtain features of dimension 4096. We then use DP-SGD with a similar setup as for the linear ScatterNet classifiers, except that we do not normalize the extracted features. We also target a tighter privacy budget of $( \varepsilon = 2 , \bar { \delta } = 1 0 ^ { - 5 }$ ). We then run a hyper-parameter search as listed below in Table 17. Figure 5 shows the best test accuracy achieved for each DP budget, averaged across five runs. We further report the set of hyper-parameters that resulted in the maximal accuracy for the targeted privacy budget of $\mathit { \check { \Psi } } \varepsilon = 2 , \delta = \mathit { \dot { 1 } } 0 ^ { - 5 }$ ).
500
+
501
+ Table 17: Hyper-parameters for the evaluation of private transfer learning from CIFAR-100 (using a ResNeXt model) and from unlabeled ImageNet (using a SimCLR v2 model) in Section 5.2.
502
+
503
+ <table><tr><td>Parameter</td><td>Values</td><td>Best forResNeXtBest forSimCLRv2</td><td></td></tr><tr><td>DP guarantee (ε, δ)</td><td>(2,10-5)</td><td></td><td></td></tr><tr><td>Gradient norm C</td><td>0.1</td><td></td><td></td></tr><tr><td>Momentum</td><td>0.9</td><td></td><td>=</td></tr><tr><td>Batch size B</td><td>{512,1024,...,16384}</td><td>2048</td><td>1024</td></tr><tr><td>Learning rate n</td><td>{1/2,1,2,4} . B/512</td><td>2 . 2048/512</td><td>2 . 1024/512</td></tr><tr><td>Epochs T</td><td>{15,25,40}</td><td>40</td><td>40</td></tr></table>
504
+
505
+ # D ADDITIONAL EXPERIMENTS AND FIGURES
506
+
507
+ # D.1 ON THE EFFECT OF BATCH SIZES IN DP-SGD
508
+
509
+ In this section, we revisit the question of the selection of an optimal batch size for DP-SGD. In their seminal work, Abadi et al. (2016) already investigated this question, and noted that the choice of batch size can have a large influence on the privacy-utility tradeoff. They empirically found that for a dataset of size $N$ , a batch size of size approximately $\sqrt { N }$ produced the best results. However, their experiments measured the effect of the batch size while keeping other parameters, including the noise multiplier $\sigma$ and the learning rate $\eta _ { : }$ fixed.
510
+
511
+ When training without privacy, it has been shown empirically that the choice of batch size has little effect on the convergence rate of SGD, as long as the learning rate $\eta$ is scaled linearly with the batch size (Goyal et al., 2017). Hereafter, we argue formally and demonstrate empirically that if we use a linear learning rate scaling, and fix the number of training epochs $T$ for a target privacy budget $\varepsilon$ then the choice of batch size also has a minimal influence on the performance of DP-SGD.
512
+
513
+ We first consider the effect of the sampling rate $B / _ { N }$ on the noise scale $\sigma$ required to attain a fixed privacy budget of $\varepsilon$ after $T$ epochs. There is no known closed form expression for $\sigma$ , so it is usually estimated numerically. We empirically establish the following claim, and verify numerically that it holds for our setting in Figure 6:
514
+
515
+ Claim D.1. Given a fixed $D P$ budget $( \varepsilon , \delta )$ to be reached after $T$ epochs, the noise scale $\sigma$ as a function of the sampling rate $B / _ { N }$ is given by $\sigma ( { ^ B } / { _ { N } } ) \approx c \cdot \sqrt { { ^ B } / { N } } ,$ , for some constant $c \geq 0$ .
516
+
517
+ ![](images/b7e9c7babed34410c50d760b8d5d844ea358cef7d1c2ee30573b3f9661274326.jpg)
518
+ Figure 6: Noise scale $\sigma$ for DP-SGD that results in a privacy guarantee of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 }$ ) after 60 training epochs, for different batch sampling rates $B / _ { N }$ .
519
+
520
+ Given this relation between batch size and noise scale, we proceed with a similar analysis as in (Goyal et al., 2017), for the case of DP-SGD. Given some initial weight $\theta _ { t }$ , performing $k$ steps of DP-SGD with clipping norm $C = 1$ , batch size $B$ , learning rate $\eta$ and noise scale $\sigma$ yields:
521
+
522
+ $$
523
+ \begin{array} { l } { { \pmb \theta } _ { t + k } = \pmb \theta _ { t } - \eta \displaystyle \sum _ { j < k } \frac { 1 } { B } \big ( \displaystyle \sum _ { \pmb x \in B _ { t + j } } \tilde { \pmb g } _ { t + j } ( \pmb x ) + \mathcal { N } ( 0 , \sigma ^ { 2 } { \pmb I } ) \big ) } \\ { = \Big ( \pmb \theta _ { t } - \eta \displaystyle \frac { 1 } { B } \displaystyle \sum _ { j < k } \sum _ { \pmb x \in B _ { t + j } } \tilde { \pmb g } _ { t + j } ( \pmb x ) \Big ) + \mathcal { N } \Big ( 0 , \frac { k \eta ^ { 2 } \sigma ^ { 2 } } { B ^ { 2 } } \pmb I \Big ) } \end{array}
524
+ $$
525
+
526
+ If we instead take a single step of DP-SGD with larger batch size $k B$ , a linearly scaled learning rate of $k \eta$ , and an adjusted noise scale $\tilde { \sigma } = \sqrt { k } \sigma$ (by Claim D.1), we get:11
527
+
528
+ $$
529
+ \begin{array} { r l r } { { \pmb { \theta } _ { t + 1 } = \pmb { \theta } _ { t } - k \eta \frac { 1 } { k B } \big ( \sum _ { j < k } \sum _ { \pmb { x } \in B _ { t + j } } \pmb { \tilde { g } } _ { t } ( \pmb { x } ) + \mathcal { N } ( 0 , \tilde { \sigma } ^ { 2 } \pmb { I } ) \big ) } } \\ & { } & { = \bigg ( \pmb { \theta } _ { t } - \eta \frac { 1 } { B } \sum _ { j < k } \sum _ { \pmb { x } \in B _ { t + j } } \pmb { \tilde { g } } _ { t } ( \pmb { x } ) \bigg ) + \mathcal { N } \bigg ( 0 , \frac { k \eta ^ { 2 } \sigma ^ { 2 } } { B ^ { 2 } } \pmb { I } \bigg ) } \end{array}
530
+ $$
531
+
532
+ Thus, we find that the total noise in both updates is identical. Under the same heuristic assumption as in (Goyal et al., 2017) that $\tilde { \pmb { g } } _ { t } ( \pmb { x } ) \approx \tilde { \pmb { g } } _ { t + j } ( \pmb { x } )$ for all $j < k$ , the two DP-SGD updates above are thus similar. This analysis suggests that as in the non-private case (Goyal et al., 2017), increasing the batch size and linearly scaling the learning rate should have only a small effect on a model’s learning curve.
533
+
534
+ We now verify this claim empirically. We follow the experimental setup in Section 3, and set a privacy budget of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 } )$ to be reached after a fixed number of epochs $T$ . For different choices of batch size $B$ , we numerically compute the noise scale $\sigma$ that fits this “privacy schedule”. For the initial batch size of $B _ { 0 } = 5 1 2$ , we select a base learning rate $\eta$ that maximizes test accuracy at epoch $T$ . As we increase the batch size to $B = k B _ { 0 }$ , we linearly scale the learning rate to kη. The concrete parameters are given below:
535
+
536
+ Table 18: Hyper-parameters for comparing the convergence rate of DP-SGD with different batch sizes in Figure 7.
537
+
538
+ <table><tr><td></td><td>Epochs T</td><td>Batch size B</td><td>Learning rate η</td></tr><tr><td>MNIST</td><td>40</td><td>{512,1024,2048,4096}</td><td>1/2 . B/512</td></tr><tr><td>Fashion-MNIST</td><td>40</td><td>{512,1024,2048,4096}</td><td>1.B/512</td></tr><tr><td>CIFAR-10</td><td>60</td><td>{512,1024,2048,4096}</td><td>1/4 · B/512</td></tr></table>
539
+
540
+ As we can see in Figure 7, the training curves for CNNs trained with DP-SGD are indeed near identical across a variety of batch sizes.
541
+
542
+ ![](images/034428c0e834f4a5165823f473382154fb4d9aa72cbe72ed6777a6506fcbc298.jpg)
543
+ Figure 7: Convergence rate of DP-SGD for different batch sizes, with a fixed targeted privacy budget of $( \varepsilon = 3 , \delta = 1 \bar { 0 } ^ { - 5 } ,$ ) after $T = 4 0$ or $T = 6 0$ epochs, and linear scaling of the learning rate $\eta \cdot ^ { B } / 5 1 2$ .
544
+
545
+ # D.2 ANALYSIS OF HYPER-PARAMETERS
546
+
547
+ To understand the effect of varying the different hyper-parameters of DP-SGD, Figure 8 shows the median and maximum model performance for different choices of a single parameter. The median and maximum are computed over all choices for the other hyper-parameters in Table 12. As we can see, the maximal achievable test accuracy is remarkably stable when fixing one of the algorithm’s hyper-parameters, with the exception of overly large batch sizes or overly low learning rates for end-to-end CNNs.
548
+
549
+ ![](images/1b484164c0a0a8103ed353bebecbb42fa481b4aaf8d14ce2c81cf19935afc79d.jpg)
550
+ Figure 8: Median and maximum test accuracy of linear ScatterNet classifiers and end-to-end CNNs when we fix one hyper-parameter in Table 12 and run a grid-search over all others (for a privacy budget of $( \varepsilon = 3 , \delta = 1 \bar { 0 } ^ { - 5 } ,$ )).
551
+
552
+ # D.3 COMPARING DP-SGD AND PRIVACY AMPLIFICATION BY ITERATION
553
+
554
+ While DP-SGD is the algorithm of choice for differentially private non-convex learning, it is unclear why it should be the best choice for learning private linear models. Indeed, starting with the work of Chaudhuri et al. (2011), there have been many other proposals of algorithms for private convex optimization with provable utility guarantees, e.g., (Bassily et al., 2014; Kifer et al., 2012; Feldman et al., 2018). Yet, Yu et al. (2019a) show that DP-SGD can achieve higher utility than many of these approaches, both asymptotically and empirically.
555
+
556
+ Here, we take a closer look at the “Privacy Amplification by Iteration” work of (Feldman et al., 2018). Feldman et al. (2018) observe that DP-SGD guarantees differential privacy for every gradient update step. Under the assumption that intermediate model updates can be hidden from the adversary, they propose a different analysis of DP-SGD for convex optimization problems that has a number of conceptual advantages. First, the algorithm of Feldman et al. (2018) does not require the training indices selected for each batch $B _ { t }$ do be hidden from the adversary. Second, their approach can support much smaller privacy budgets than DP-SGD.
557
+
558
+ However, we show that these benefits come at a cost in practice: for the range of privacy budgets we consider in this work, DP-SGD requires adding less noise than Privacy Amplification by Iteration (PAI). To compare the two approaches, we proceed as follows: We analytically compute the noise scale $\sigma$ that results in a privacy guarantee of $( \varepsilon , \delta = 1 0 ^ { - 5 } )$ ) after 10 training epochs with a batch sampling rate of $5 1 2 / 5 0 0 0 0$ .12 Figure 9 shows that DP-SGD requires adding less noise, except for large privacy budgets $\varepsilon > 4 0$ ), or very small ones $\left( \varepsilon < 0 . 2 \right)$ . In the latter case, both algorithms require adding excessively large amounts of noise. We observe a qualitatively similar behavior for other sampling rates.
559
+
560
+ For completeness, we evaluate the PAI algorithm of Feldman et al. (2018) for training linear ScatterNet classifiers on CIFAR-10. We evaluate a broader range of hyper-parameters, including different clipping thresholds $C \in \{ 0 . 1 , 1 , 1 0 \}$ (PAI clips the data rather than the gradients), a wider range of batch sizes $B \in \{ 3 2 , 6 4 , \dotsc , 2 0 4 8 \}$ , and a wider range of base learning rates $\eta \in \{ 2 ^ { - 3 } , 2 ^ { - 2 } , . . . , 2 ^ { 3 } \}$ We find that for privacy budgets $1 \leq \varepsilon \leq 3$ , the optimal hyper-parameters for PAI and DP-SGD are similar, but the analysis of PAI requires a larger noise scale $\sigma$ . As a result, PAI performs worse than DP-SGD, as shown in Figure 10.
561
+
562
+ ![](images/d73462dc4094fd3aa7b439ace75f575cf49d4c27a1a858587b9f4e7558b46f56.jpg)
563
+ Figure 9: Gradient noise scale $\sigma$ required for a privacy guarantee of $( \varepsilon , \delta = 1 0 ^ { - 5 } )$ after 10 training epochs with batch sampling rate $5 1 2 / 5 0 0 0 0$ Privacy Amplification by Iteration (PAI) (Feldman et al., 2018) requires less noise than DPSGD only for very small or very large privacy budgets.
564
+
565
+ ![](images/e37dedc48513878f576eed38e1b0c0b6c677a0856b9629bfa41af878f10da8e0.jpg)
566
+ Figure 10: Comparison of DP-SGD (Abadi et al., 2016) and Privacy Amplification by Iteration (PAI) (Feldman et al., 2018) for training a private linear ScatterNet classifier on CIFAR-10. Shows the maximum accuracy achieved for each privacy budget, averaged over five runs.
567
+
568
+ # D.4 DP-SGD WITH POISSON SAMPLING
569
+
570
+ The analysis of DP-SGD (Abadi et al., 2016; Mironov et al., 2019) assumes that each batch $\scriptstyle { B _ { t } }$ is created by independently selecting each training sample with probability $B / _ { N }$ . This is in contrast to typical implementations of SGD, where the training data is randomly shuffled once per epoch, and divided into successive batches of size exactly $B$ . The latter “random shuffle” approach has been used in most implementations of DP-SGD (e.g., (tensorflow/privacy, 2019; pytorch/opacus, 2020)) as well as in prior work (e.g., (Abadi et al., 2016; Papernot et al., 2020b)), with the (implicit) assumption that this difference in batch sampling strategies will not affect model performance. We verify that this assumption is indeed valid in our setting. We re-train the linear ScatterNet and end-to-end CNN models that achieved the highest accuracy for a DP budget of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 } )$ ) (with the hyper-parameters detailed in Table 13), using the correct “Poisson sampling” strategy. The test accuracy of these models (averaged over five runs) are shown in Table 19. For all datasets and models, the two sampling schemes achieve similar accuracy when averaged over five runs.
571
+
572
+ Table 19: Comparison of DP-SGD with two different batch sampling schemes: (1) Poisson sampling, where a batch is formed by selecting each data point independently with probability $B / _ { N }$ ; (2) Random shuffle, where the training set is randomly shuffled at the beginning of each epoch, and split into consecutive batches of size $B$ . For both sampling schemes, we report the best test accuracy (in $\%$ ) at a DP budget of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 } )$ ), with means and standard deviations over five runs.
573
+
574
+ <table><tr><td></td><td colspan="2">ScatterNet</td><td colspan="2">CNN</td></tr><tr><td>Dataset</td><td>Poisson Sampling</td><td>Random Shuffle</td><td>Poisson Sampling</td><td>Random Shuffle</td></tr><tr><td>MNIST</td><td>98.6 ± 0.1</td><td>98.7±0.0</td><td>98.0±0.1</td><td>98.1±0.0</td></tr><tr><td>Fashion-MNIST</td><td>89.6 ± 0.1</td><td>89.7 ± 0.0</td><td>86.1 ± 0.2</td><td>86.0± 0.1</td></tr><tr><td>CIFAR-10</td><td>66.8 ± 0.2</td><td>67.0± 0.0</td><td>59.0± 0.4</td><td>59.2 ± 0.1</td></tr></table>
575
+
576
+ # D.5 EXPERIMENTS WITH SMALLER END-TO-END CNN MODEL ON CIFAR-10
577
+
578
+ In Section 4, we investigate whether the dimensionality of different classifiers has a noticeable impact on their privacy-utility tradeoffs. To this end, we repeat the CIFAR-10 experiments from
579
+
580
+ Section 3 with a smaller end-to-end CNN architecture. Specifically, we take the end-to-end CNN architecture from Table 7 and reduce the number of filters in each convolutional layer by a factor of two and remove the last convolutional layer). This results in a CNN model with a comparable number of trainable parameters as the linear ScatterNet classifier (see Table 4). In Table 20, we compare the privacy-utility of this smaller CNN models with the original larger CNN model evaluated in Section 3. While the change of model architecture does affect the model accuracy, the effect is minor, and the accuracy remains far below that of the ScatterNet classifiers with a comparable number of parameters.
581
+
582
+ Table 20: Best test accuracy $( \mathrm { i n ~ } \% )$ ) for two different model sizes on CIFAR-10 for a DP budget of $( \varepsilon = 3 , \delta = 1 0 ^ { - 5 } \mathrm { . }$ ). We compare two variants of the end-to-end CNN architecture from Table 7, with respectively 551K and 168K parameters. Average and standard deviation computed over five runs.
583
+
584
+ <table><tr><td>Model</td><td>Parameters</td><td>Accuracy</td></tr><tr><td>CNN</td><td>168K</td><td>60.7 ± 0.3</td></tr><tr><td></td><td>551K</td><td>59.2 ±0.1</td></tr></table>
585
+
586
+ # D.6 MODEL CONVERGENCE SPEED ON MNIST AND FASHION-MNIST
587
+
588
+ We run the same experiment as in Figure 3 for MNIST and Fashion-MNIST, to compare the convergence rate of different classifiers with and without privacy, for different learning rates. The experimental setup is described in Appendix C.6. Figure 11 shows qualitatively similar results as Figure 3: with a high learning rate, all models converge quickly when trained without gradient noise, but the addition of noise is detrimental to the learning process. In contrast, with a much lower learning rate the training curves for DP-SGD are nearly identical, whether we add noise or not. In this regime, the ScatterNet classifiers converge significantly faster than end-to-end CNNs when trained without privacy.
589
+
590
+ ![](images/6642bca072d43fce08c54ccb3b96895df7cb085967be14a190d64125d1ef4a32.jpg)
591
+ Figure 11: Comparison of convergence rates of linear classifiers fine-tuned on ScatterNet features, CNNs fine-tuned on ScatterNet features), and end-to-end CNNs with and without noise addition in DP-SGD. (Left): low learning rate. (Right): high learning rate. See Figure 3 for results on CIFAR-10.
parse/train/YTWGvpFOQD-/YTWGvpFOQD-_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/YTWGvpFOQD-/YTWGvpFOQD-_middle.json ADDED
The diff for this file is too large to render. See raw diff