ZHANGYUXUAN-zR commited on
Commit
47744c5
·
verified ·
1 Parent(s): 7f9fbcb

Add files using upload-large-folder tool

Browse files
parse/train/8dqEeFuhgMG/8dqEeFuhgMG.md ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Class-Incremental Learning via Dual Augmentation
2
+
3
+ Fei Zhu1,2, Zhen Cheng1,2, Xu-Yao Zhang1,2∗, Cheng-Lin Liu1,2,3 1NLPR, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China 2University of Chinese Academy of Sciences, Beijing, 100049, China 3Center for Excellence of Brain Science and Intelligence Technology, CAS {zhufei2018, chengzhen2019}@ia.ac.cn, {xyz, liucl}@nlpr.ia.ac.cn
4
+
5
+ # Abstract
6
+
7
+ Deep learning systems typically suffer from catastrophic forgetting of past knowledge when acquiring new skills continually. In this paper, we emphasize two dilemmas, representation bias and classifier bias in class-incremental learning, and present a simple and novel approach that employs explicit class augmentation (classAug) and implicit semantic augmentation (semanAug) to address the two biases, respectively. On the one hand, we propose to address the representation bias by learning transferable and diverse representations. Specifically, we investigate the feature representations in incremental learning based on spectral analysis and present a simple technique called classAug, to let the model see more classes during training for learning representations transferable across classes. On the other hand, to overcome the classifier bias, semanAug implicitly involves the simultaneous generating of an infinite number of instances of old classes in the deep feature space, which poses tighter constraints to maintain the decision boundary of previously learned classes. Without storing any old samples, our method can perform comparably with representative data replay based approaches.
8
+
9
+ # 1 Introduction
10
+
11
+ Deep neural networks (DNNs) have enabled great success in many machine learning tasks, based on stationary, large-scale, computationally expensive, and memory-intensive training data [1, 2, 3]. Yet the need of the ability to acquire sequential experience in dynamic and open environments [4, 5, 6] poses a serious challenge to modern deep learning systems, which only perform well on homogenized, balanced, and shuffled data [7]. Typically, DNNs suffer from drastic performance degradation of previously learned tasks after learning new knowledge, which is a well-documented phenomenon, known as catastrophic forgetting [8, 9, 10]. Recently, incremental learning (IL), also referred to as lifelong learning or continual learning, has received extensive attention [11, 12, 13, 14] to enable DNNs to preserve and extend knowledge continually.
12
+
13
+ Many earlier studies focus on task-incremental learning, which uses separate output layers for different tasks, and needs the task identity for inference [11, 15, 16]. In this work, we consider a more realistic and challenging setting of class-incremental learning (Class-IL), where the model only has access to data of new classes at each stage and needs to learn a unified classifier that can classify all seen classes [13, 17, 18]. Unfortunately, the learning paradigm of Class-IL will lead to two problems: representation bias and classifier bias, as shown in Figure 1. First, for representation learning, if the feature extractor is fixed after learning old classes, the learned representations could be preserved, but suffer from the lack of transferability for new classes; on the contrary, if we update the feature extractor on new classes, the updated representations would be no longer suitable for old classes. Consequently, the old and new classes would be easily overlapped in the deep feature space. We denote this dilemma as the representation bias. Second, to distinguish new classes from old classes, the training loss is typically calculated on all classes. Without old training data, the class weights of old classes would be ill-updated and mismatched with the updated representation space. We denote this dilemma as the classifier bias. In this work, we investigate the learning of representation and classifier in incremental learning and propose a simple and effective dual augmentation framework to overcome these two biases in Class-IL without storing and replaying training data of old classes.
14
+
15
+ ![](images/56c1745bf29cb30faff0510f63ad52cd36cf90119927dafc9626d55d5e972832.jpg)
16
+ Figure 1: Two inherent problems in Class-IL: representation bias and classifier bias.
17
+
18
+ Learning Representation for Incremental Learning. Existing works typically regularize network parameters explicitly [11, 15, 16] or implicitly [12] to reduce the representation shift when learning new classes. In this paper, instead of asking how to keep previously learned representations unchanged, we investigate the following question:
19
+
20
+ What properties of learned representations could facilitate incremental learning? We hypothesize that learning transferable and diverse representations is an important requirement for incremental learning. Intuitively, with such representations, it could be easier to find a model to perform well on all tasks and improve both plasticity and stability, since different tasks would be closer in the parameters space. From a spectral analysis viewpoint, we investigate which components of feature representations are more transferable and less forgettable in the incremental learning process. It is found that spectral components with large eigenvalues are less forgettable. Furthermore, we exploit this finding to propose a simple technique named classAug, which can enlarge the spectral components to introduce more diverse and transferable representations for incremental learning.
21
+
22
+ Learning Classifier for Incremental Learning. Recently, several works were proposed to alleviate the classifier bias in data replay based methods [18, 19, 20]. However, in non-exemplar based (i.e., without storing and replaying old data) Class-IL setting, the classifier bias is more serious and the above methods can not be directly used. A straightforward way is storing instances of old classes in the deep feature space. However, this strategy is undesirable due to the limited memory resource and scalability. This work delves into the classifier learning for Class-IL and proposes an implicit semantic augmentation (semanAug) approach to generate an infinite number of instances of old classes in the deep feature space by leveraging the distribution information. SemanAug is inspired by MCF [21] and ISDA [22], which have performed semantic augmentation for linear models and DNNs, respectively. However, both our way to leverage semantic augmentation and the motivation fundamentally differ from them [21, 22].
23
+
24
+ Contributions. (i) We provide new insights into the representation learning in incremental learning by analyzing the structural characteristics of the learned embedding space via spectral decomposition and find that spectral components with large eigenvalues are less forgettable and carry more transferable features. Based on this observation, we propose a simple and effective method of classAug to learn better embedding space for incremental learning. (ii) For classifier learning in incremental learning, we propose semanAug which implicitly involves simultaneous generating an infinite number of instances of old classes in the deep feature space to maintain the decision boundary of previously learned classes. (iii) Extensive experiments on benchmark datasets demonstrate the superior performance of our dual augmentation framework for the challenging scenario of Class-IL.
25
+
26
+ # 2 Related Work
27
+
28
+ Incremental Learning. Diverse approaches have been proposed for incremental learning of DNNs. They can be roughly divided into three categories: regularization based, data replay based, and architecture based approaches. Regularization based methods focus on weight regularization by estimating and preventing the important network weights from changing [11, 15, 16]. The difference among those methods is the way to compute the importance of the parameters. However, it is hard to design a reasonable metric to measure the importance of parameters, and it is known that regularization strategies show poor performance in Class-IL scenario [23, 24]. Data replay based methods address both the representation bias and classifier bias straightforwardly by storing a fraction of old data to jointly train the model with current data. With stored real samples, some works [17, 13, 25] use a distillation loss to prevent forgetting, while others [26, 27, 28] develop gradient-based regularization to make more efficient use of the rehearsal data. To avoid storing real data, another line of works generates pseudo-samples of all previous classes for replay using deep generative models [29, 30, 31, 32]. Nevertheless, storing real data is undesirable for resource-limited or privacy and safety concerning scenarios. Moreover, training big generative models for complex datasets is inefficient. Architecture based methods dynamically extend the network structure during the course of incremental learning [33, 34, 35, 36]. However, growing architecture is unfeasible for large numbers of tasks, and those methods are often impractical for Class-IL.
29
+
30
+ Data Augmentation. Literature is rich on data augmentation for improving the generalization of DNNs. Classical strategies commonly synthesize “positive” new samples in a way that is consistent with the underlying data distribution of the original dataset [3]. Recent works show that label mixing based methods such as Mixup [37] and Cutmix [38] can greatly improve the generalization of DNNs. In complement to the input space augmentations mentioned above, some works have explored feature space augmentations which augment the learned representations in deep embedding space to enhance classifier performance. The intuition behind those works is that certain directions in the deep feature space correspond to meaningful semantic transformations [39, 40]. For instance, deep feature interpolation [40] leverages simple interpolations in the embedding space to achieve semantic augmentation. A recently proposed ISDA [22] performs semantic augmentation by estimating and leveraging the category-wise distribution of deep representations in an online manner. Despite the simplicity, ISDA shows its effectiveness in semi-supervised learning [22], contrastive learning [41], domain adaptation [42] and long-tailed recognition [43].
31
+
32
+ # 3 Dual Augmentation Framework for Class-Incremental Learning
33
+
34
+ We first formalize the problem of Class-IL, and then introduce the proposed classAug for representation learning and semanAug for classifier learning, respectively. Finally, we present the dual augmentation framework for Class-IL by combing the two augmentations.
35
+
36
+ Problem Definition. Typically, a Class-IL problem involves the sequential learning of $\tau$ tasks that consist of disjoint classes sets, and the model has to classify all seen classes at any given point in training. At incremental step $t \in \{ 1 , . . . , T \}$ , $( \pmb { x } , y ) \in \mathcal { D } _ { t }$ denotes a training sample, where $_ { \textbf { \em x } }$ is an sample in the input space $\mathcal { X }$ and $\boldsymbol { y } \in \mathcal { C } _ { t }$ is its corresponding label. $\mathcal { C } _ { t }$ is the class set of task $t$ . To facilitate analysis, we represent the DNN based model with two components: a feature extractor and a unified classifier. Specifically, the feature extractor $f _ { \pmb \theta } : \mathcal { X } \mathcal { Z }$ , parameterized by $\pmb \theta$ , maps the input $_ { \textbf { \em x } }$ into a feature vector $z \doteq f _ { \pmb \theta } ( \pmb x ) \in \mathbb R ^ { d }$ in the deep feature space $\mathcal { Z }$ ; the unified classifier $g _ { \varphi } : \dot { \mathcal { Z } } \mathbb { R } ^ { \mathcal { C } _ { 1 : t } }$ , parameterized by $\varphi$ , produces a probability distribution $g _ { \varphi } ( z )$ as the prediction for $_ { \textbf { \em x } }$ . Denote the overall parameters by $\Theta = ( \theta , \varphi )$ .
37
+
38
+ The general objective is to correctly classify test examples from all seen classes [44]. The key challenge of Class- $\mathrm { . I L }$ is that data from previous tasks are assumed to be unavailable, which means that the best configuration of the model for all seen tasks must be sought by minimizing the predefined loss function $\mathcal { L }$ (e.g., cross-entropy) on current data $\mathcal { D } _ { t }$ :
39
+
40
+ $$
41
+ \underset { \theta , \varphi } { \mathrm { a r g m i n } } \ \mathbb { E } _ { ( \pmb { x } , \pmb { y } ) \sim \mathcal { D } _ { t } } [ \mathcal { L } ( g _ { \varphi } ( f _ { \theta } ( \pmb { x } ) ) , \pmb { y } ) ] .
42
+ $$
43
+
44
+ A widely used strategy to preserve old knowledge is knowledge distillation [45], which typically matches the current model with previous model response to current training data using the teacherstudent framework [12, 13, 19].
45
+
46
+ # 3.1 Learning Representation with Class Augmentation
47
+
48
+ As we focus on non-exemplar based Class-IL, we intentionally avoid storing training samples of old classes. To maintain the generalizability of the learned representations for old classes, existing methods typically restrain the feature extractor from changing [11, 15, 16, 12]. However, this would lead to a trade-off between the plasticity and stability [5], and it would be hard to perform long-step incremental learning. Our high-level idea is to learn transferable and diverse representations to bridge the old and new classes in a better feature space. To delve into this problem, we want to answer two questions: (1) Which part of feature representations tends to be forgotten in incremental learning? (2) How to facilitate the representation learning for incremental learning?
49
+
50
+ # 3.1.1 Analyzing Forgetting via Spectral Decomposition
51
+
52
+ In what follows, we explore which part of feature representations tends to be forgotten and may not be transferable across different tasks in incremental learning. To this end, we propose to quantify the sensitivity of the model to different directions in the deep feature space by measuring the similarity of the space before and after learning new tasks.
53
+
54
+ Formally, given a feature extractor $f _ { \pmb { \theta } , o l d }$ trained on dataset $\mathcal { D } _ { o l d } = \{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n }$ . A new dataset $\mathcal { D } _ { n e w }$ that contains disjoint classes with $\mathcal { D } _ { o l d }$ is used to update $f _ { \pmb { \theta } , o l d }$ , and the updated feature extractor is denoted as $f _ { \pmb { \theta } , n e w }$ . For the samples in $\mathcal { D } _ { o l d }$ , we can get two groups of deep features mapped by $f _ { \pmb { \theta } , o l d }$ and $f _ { \pmb { \theta } , n e w }$ , respectively. Using eigenvalue decomposition, we could respectively decompose the features mapped by original feature extractor (i.e., $f _ { \pmb \theta , o l d } ( \pmb x _ { i } ) )$ as well as the features mapped by updated feature extractor (i.e., $f _ { \pmb { \theta } , n e w } ( \pmb { x } _ { i } ) )$ to different directions as following:
55
+
56
+ $$
57
+ \frac { 1 } { n } \sum _ { i = 1 } ^ { n } f _ { \pmb { \theta } } ( \pmb { x } _ { i } ) f _ { \pmb { \theta } } ( \pmb { x } _ { i } ) ^ { \mathrm { T } } = \sum _ { j = 1 } ^ { d } \pmb { u } _ { j } \lambda _ { j } \pmb { u } _ { j } ^ { \mathrm { T } } ,
58
+ $$
59
+
60
+ where $\lambda _ { j }$ represents the eigenvalue with index $j$ and $\mathbf { \Delta } \mathbf { \em u } _ { j }$ is its eigenvector. $d$ is the dimensionality of the feature space. Through spectral factorization in Eq. (2), we can represent the original and new representations with two groups of eigenvectors: $\{ \pmb { u } _ { o l d , 1 } , . . . , \pmb { u } _ { o l d , d } \}$ and $\{ { \pmb u } _ { n e w , 1 } , . . . , { \pmb u } _ { n e w , d } \}$ .
61
+
62
+ Next, we investigate the forgetting or transferability of each direction. Shonkwiler [46] introduced the principal angles [47] to measure the similarity of two subspaces. However, it is unreasonable to treat all eigenvectors equally to calculate the principal angles, regardless of their relative eigenvalues. Inspired by [48], we use corresponding angles, denoted by $\psi$ , to explore the distance between two subspaces in incremental learning:
63
+
64
+ Definition 1 (Corresponding Angle) Given two groups of eigenvectors: $\{ \pmb { u } _ { o l d , 1 } , . . . , \pmb { u } _ { o l d , d } \}$ and $\{ { \pmb u } _ { n e w , 1 } , . . . , { \pmb u } _ { n e w , d } \}$ , corresponding angle represents the angle between two eigenvectors corresponding to the same eigenvalue value index. The cosine value of the corresponding angle is:
65
+
66
+ $$
67
+ \cos ( \psi _ { j } ) = \frac { \langle { \pmb u } _ { o l d , j } , { \pmb u } _ { n e w , j } \rangle } { \| { \pmb u } _ { o l d , j } \| \cdot \| { \pmb u } _ { n e w , j } \| } ,
68
+ $$
69
+
70
+ where $\mathbf { \Delta } \pmb { u } _ { o l d , j }$ is the $j$ -th eigenvectors with the $j$ -th largest eigenvalue in the old feature space, and similarly for $\mathbf { \Delta } \mathbf { u } _ { n e w , j }$ . Note that $\| \pmb { u } _ { o l d , j } \| = 1$ and $\| \boldsymbol { u } _ { n e w , j } \| = 1$ . For $\mathrm { I L }$ , the meaning of “preserve old knowledge” refers to maintain the previously learned decision boundary among classes. At representation level, for an old class, the shape (i.e., covariance) of the distributions should not be changed too much. If an eigenvector direction only changes slightly after updating the feature extractor, the corresponding angle is small, and vice versa. Intuitively, the corresponding angle could capture the representation shift between the old and updated feature extractor during incremental learning, and reflect the forgetting along certain directions in the deep feature space.
71
+
72
+ Based on the metric defined above, we explore the forgetting of different directions in Class-IL. We use LwF-MC [12, 13] as baseline method and train a ResNet-18 [1] on CIFAR-100 [49] using SGD in a 2-step manner. Concretely, the model is first trained on the first 50 classes and then updated on the other 50 classes. Figure 2 (a) shows the absolute cosine values of corresponding angles between the old and new eigenvectors. We can observe that eigenvectors with larger eigenvalues produce larger similarity (small corresponding angles), which indicates those directions are more transferable and less forgettable across different tasks. On the contrary, the eigenvectors with small eigenvalues prefer to move after updating the model on new tasks, and could be regarded as forgettable directions.
73
+
74
+ Transferable and Diverse Representations. As demonstrated above, the directions with larger eigenvalues transfer better and suffer less forgetting. This thought-provoking observation indicates that our learned representations should have the following properties: (1) Transferability: the eigenvalues of those several significant directions should be enlarged to transfer across tasks (or classes). (2) Diversity: the number of the directions with significant eigenvalues should be increased. Note that those properties are different from that in the common single-task learning scenario. Actually, reducing the number of directions with significant variance has been seen as a form of feature compression [51], which is linked to generalization by information theory [52, 53]. However, the usual concepts of generalization may not entirely be appropriate for IL, since standard learning only aims to learn compact representations within training classes without considering new class generalizability. In IL, those less discriminative directions for the current task could capture useful representations for future tasks. A recent paper [54] has shown that strong compressed representations can actually hurt the generalization ability in the deep metric learning setting. Therefore, to reduce forgetting and enhance the transferability of the representations, it is important to enlarge the eigenvalues and increase the number of eigenvectors with significant variance.
75
+
76
+ ![](images/a847d226ee3580ebc04448949af3e1e4cf495144dc2eb03ca315145529a0457e.jpg)
77
+ Figure 2: (a) Absolute cosine values of corresponding angles. (b) Distribution of eigenvalues for baseline, Mixup [37], LS [50], and our classAug training based models.
78
+
79
+ # 3.1.2 Learning Representations via Class Augmentation
80
+
81
+ We now exploit our above analysis to propose a simple method for representation learning in ClassIL. Our key idea is to learn transferable and diverse representations by learning more classes at each incremental stage $t$ . To do so, a direct way is to introduce real classes from other datasets as auxiliary. However, it is unrealistic to always have access to other real classes, and which datasets should be used remains unknown. Therefore, we propose class augmentation (classAug) to augment the original classes by synthesizing auxiliary classes based on $\mathcal { D } _ { t }$ . Concretely, inspired
82
+
83
+ by Mixup [37], classAug randomly interpolates two samples $\scriptstyle { \mathbf { { \mathit { x } } } } _ { a }$ and $\mathbf { \delta } _ { \mathbf { \mathcal { X } } _ { b } }$ from two different classes $a$ and $b$ to generate a new sample $\pmb { x } _ { a b } ^ { \mathrm { n e w } }$ representing a new class:
84
+
85
+ $$
86
+ \begin{array} { r } { \pmb { x } _ { a b } ^ { \mathrm { n e w } } = \lambda \pmb { x } _ { a } + ( 1 - \lambda ) \pmb { x } _ { b } , } \end{array}
87
+ $$
88
+
89
+ where $\lambda$ is a random number of interpolation coefficient. For a $k$ -class problem, we can generate $k ( k - 1 ) / 2$ new classes using the above method, which can be further merged to $m$ auxiliary classes. As a result, the original $k$ -class
90
+
91
+ ![](images/181a0feee2667ad82c937d1822282b688f49bffd084261e8171eb8fe738b4674.jpg)
92
+ Figure 3: Illustration of classAug.
93
+
94
+ problem in the current task is extended to a $( k + m )$ -class problem. Moreover, we restrict the $\lambda$ to be sampled from the interval of [0.4, 0.6], to reduce the overlap between the augmented and original classes. At the end of each $\mathrm { I L }$ stage, the augmented class nodes in the classifier would be removed.
95
+
96
+ Discussion. The proposed classAug is related to Mixup [37] which applies random interpolation on a pair of training samples and the respective one-hot labels. However, the interpolated samples in Mixup are near original data, and the number of classes is not changed, but in our method, it is increased. By learning to classify more classes in each stage $t$ , the model could learn more transferable and diverse representations. Figure 2 (b) displays and compares the eigenvalues 2 of representations learned with different methods on the first 50 classes of CIFAR-100. It is obvious that the proposed classAug can enhance the value of eigenvalues significantly, and produce more directions with significant variance compared with other methods. On the contrary, Mixup and Label-Smoothing (LS) [50] lead to significantly smaller eigenvalues for the several top eigenvectors, which represent more compact representations. Indeed, the compression effect of soft-label based methods has also been demonstrated in [51, 50]. As shown in Section 4.3, classAug can improve the performance of Class-IL significantly, while Mixup and LS have negative effect in our experiments.
97
+
98
+ # 3.2 Learning Classifier with Semantic Augmentation
99
+
100
+ As demonstrated in Section 1, classifier bias is another problem in Class-IL. When learning new classes, the previously learned decision boundary would suffer from catastrophic distortion and thus the test samples from old classes could be easily mapped to wrong classes. To overcome this issue, we propose semantic augmentation (semanAug), which leverages the distribution information (i.e., class mean and covariance) of old classes to regularize the learning of the classifier. Formally, for each old class $k \in \{ 1 , . . . , \mathcal { C } _ { o l d } \}$ , we can generate $M$ instances in the deep feature space from its distribution, i.e., $\widetilde { z } _ { k } \backsim \mathcal { N } ( \mu _ { k } , \gamma \Sigma _ { k } )$ , in which $\gamma$ is a non-negative coefficient. Then the generated einstances of old classes and real instances of new classes in the deep feature space can be jointly fed to the classifier for minimizing cross-entropy loss:
101
+
102
+ $$
103
+ \mathcal { L } _ { t } = \frac { 1 } { n _ { t } } \sum _ { i = 1 } ^ { n _ { t } } - \log \left( \frac { e ^ { \varphi _ { y _ { i } } ^ { \mathrm { T } } z _ { i } + b _ { y _ { i } } } } { \sum _ { c = 1 } ^ { \mathcal { C } _ { a l l } } e ^ { \varphi _ { c } ^ { \mathrm { T } } z _ { i } + b _ { c } } } \right) + \frac { 1 } { \mathcal { C } _ { o l l } } \sum _ { k = 1 } ^ { \mathcal { C } _ { o l l } } \frac { 1 } { M } \sum _ { m = 1 } ^ { M } - \log \left( \frac { e ^ { \varphi _ { k } ^ { \mathrm { T } } \widetilde z _ { k , m } + b _ { k } } } { \sum _ { c = 1 } ^ { \mathcal { C } _ { a l l } } e ^ { \varphi _ { c } ^ { \mathrm { T } } \widetilde z _ { k , m } + b _ { c } } } \right) _ { \textstyle ; }
104
+ $$
105
+
106
+ $\mathcal { L } _ { t , o l d }$ {z: loss on generated features of old classes
107
+
108
+ where $n _ { t }$ is the number of training samples in current task dataset $\mathcal { D } _ { t }$ , $\mathcal { C } _ { o l d }$ is the number of total old classes upon stage $t$ , and $\mathcal { C } _ { a l l } = \mathcal { C } _ { o l d } + \mathcal { C } _ { t }$ is the number of all seen classes at stage $t$ . $\varphi =$ $\left[ \varphi _ { 1 } , . . . , \varphi _ { \mathcal { C } _ { a l l } } \right] ^ { \mathrm { T } } \in \mathcal { R } ^ { \check { C } _ { a l l } \times d }$ and $b = [ b _ { 1 } , . . . , b _ { { \mathcal { C } } _ { a l l } } ] ^ { \mathrm { T } } \in { \mathcal { R } } ^ { { \mathcal { C } } _ { a l l } }$ are the weight matrix and bias vector of the last fully connected layer, respectively.
109
+
110
+ In Class-IL, the second term in Eq. (5), $\mathcal { L } _ { t , o l d }$ , is computationally inefficient when $M$ and $\mathcal { C } _ { o l d }$ are large. In the following, we present an easy-to-compute way to implicitly generate infinite instances in the deep feature space for old classes.
111
+
112
+ Upper bound of $\mathcal { L } _ { t , o l d }$ . Concretely, in the case of $M \to \infty$ , the second term in Eq. (5):
113
+
114
+ $$
115
+ \begin{array} { l } { \displaystyle \mathcal { L } _ { t , o l d } = \frac { 1 } { \tilde { C } _ { o l d } } \sum _ { k = 1 } ^ { \tilde { C } _ { o l d } } \mathbb { E } _ { \Xi _ { k } } \left[ - \log \left( \frac { e ^ { \varphi _ { k } ^ { \mathsf { T } } \bar { \varepsilon } _ { k } + b _ { k } } } { \sum _ { c = 1 } ^ { \tilde { C } _ { o l d } } e ^ { \varphi _ { c } ^ { \Gamma } \bar { \varepsilon } _ { k } + b _ { c } } } \right) \right] = \frac { 1 } { \tilde { C } _ { o l d } } \sum _ { k = 1 } ^ { \tilde { C } _ { o l d } } \mathbb { E } _ { \Xi _ { k } } \left[ \log \left( \displaystyle \sum _ { c = 1 } ^ { \tilde { C } _ { o l l } } e ^ { ( \varphi _ { c } ^ { \mathsf { T } } - \varphi _ { k } ^ { \mathsf { T } } ) \bar { \varepsilon } _ { k } + ( b _ { c } - b _ { k } ) } \right) \right] } \\ { \displaystyle \leqslant \frac { 1 } { \tilde { C } _ { o l d } } \sum _ { k = 1 } ^ { \infty } \log \left( \mathbb { E } _ { \Xi _ { k } } \left[ \displaystyle \sum _ { c = 1 } ^ { \tilde { C } _ { o l l } } e ^ { ( \varphi _ { c } ^ { \mathsf { T } } - \varphi _ { k } ^ { \mathsf { T } } ) \bar { \varepsilon } _ { k } + ( b _ { c } - b _ { k } ) } \right] \right) } \\ { \displaystyle = \frac { 1 } { \tilde { C } _ { o l d } } \sum _ { k = 1 } ^ { \infty } \log \left( \displaystyle \sum _ { c = 1 } ^ { \tilde { C } _ { o l l } } e ^ { \nu _ { c , k } ^ { \mathsf { T } } \mu _ { k } + ( b _ { c } - b _ { k } ) + \frac { \gamma } { 2 } \upsilon _ { c , k } ^ { \mathsf { T } } \Sigma _ { k } \nu _ { c , k } } \right) . } \end{array}
116
+ $$
117
+
118
+ In above equation, ${ \pmb v } _ { c , k } = { \pmb \varphi } _ { c } - { \pmb \varphi } _ { k }$ . The inequality is based on Jensen’s inequality $\mathbb { E } [ \log ( X ) ] \leqslant$ $\log \mathbb { E } [ X ]$ , and the last equality is obtained by using the moment-generating function $\mathbb { E } [ e ^ { t X } ] =$ $e ^ { t \mu + { \frac { 1 } { 2 } } \sigma ^ { 2 } t ^ { 2 } }$ , $X \backsim \mathcal N ( \mu , \sigma ^ { 2 } )$ , due to the fact that $( \varphi _ { c } - \varphi _ { k } ) \widetilde { z } _ { k } + ( b _ { c } - b _ { k } )$ is a Gaussian random evariable. As can be seen, Eq. (6) is an upper bound of original $\mathcal { L } _ { t , o l d }$ , which provides an elegant and much efficient way to implicitly generate infinite instances in the deep feature space for old classes. The $\mathcal { L } _ { t , o l d }$ in Eq. (6) can be write in the common cross-entropy loss form:
119
+
120
+ $$
121
+ \mathcal { L } _ { t , s e m a n A u g } \triangleq \mathcal { L } _ { t , o l d } = \frac { 1 } { \mathcal { C } _ { o l d } } \sum _ { k = 1 } ^ { \mathcal { C } _ { o l d } } - \log \left( \frac { e ^ { \varphi _ { k } ^ { \mathrm { T } } \mu _ { k } + b _ { k } } } { \sum _ { c = 1 } ^ { \mathcal { C } _ { a l l } } e ^ { \varphi _ { c } ^ { \mathrm { T } } \mu _ { k } + b _ { c } + \frac { \gamma } { 2 } \upsilon _ { c , k } ^ { \mathrm { T } } \Sigma _ { k } v _ { c , k } } } \right) .
122
+ $$
123
+
124
+ Intuitively, $\mathcal { L } _ { t , o l d }$ implicitly performs semantic transformations for $\mu _ { k }$ based on $\Sigma _ { k }$ . To maintain the decision boundary, $\gamma$ should be smaller if the distribution of a class is near the decision boundary; instead, $\gamma$ should be bigger if the distance is relatively far. We set $\gamma = 2$ in our experiments. In addition, we can observe that when $\gamma = 0$ , only the class means are used for knowledge retention.
125
+
126
+ Discussion. (1) Although the derivation of the upper bound in Eq. (6) is similar with ISDA [22], both our motivation and the way to leverage semanAug are different from ISDA. When learning new classes, we only apply semanAug for the class mean of each old class based on the memorized distribution information. While ISDA applies semanAug on all the training samples to improve generalization in standard supervised learning. In addition, a crucial step in ISDA is to estimate the mean and covariance matrix of each class in an online manner. Differently, semanAug is naturally suitable for Class-IL, since the distribution of old classes can be estimated with all training samples at the end of each learning stage. (2) Using previous class statistics for $\mathrm { I L }$ has also been explored in IL2M [55]. However, our method differs from IL2M in both the statistics information and the way to leverage them. First, The class statistics in IL2M is the prediction score of the classifier, while ours is the class distribution statistics in the deep feature space. Second, IL2M uses the class statistics to calibrate the prediction of a continual learner in a post-processing manner, while our method leverage the statistics to automatically learn a balanced classifier.
127
+
128
+ ![](images/922d60182efbe7fdd1ddad11c8566318e3d0dd841048f2bc6908945a1fbce749.jpg)
129
+ Figure 4: Illustration of our dual augmentation framework (IL2A) for Class-IL. On the one hand, the training samples of new classes at current task are augmented via the proposed classAug. On the other hand, the distributions of old classes are retained by semanAug in the deep feature space.
130
+
131
+ # 3.3 The Dual Augmentation Learning Framework
132
+
133
+ With classAug for representation bias and semanAug for classifier bias, Figure 4 describes the learning process of the dual augmentation framework (IL2A). We also use the well-known knowledge distillation (KD) [19] for two reasons. Firstly, classAug and KD are complementary and focus on different aspect of learning representation. Secondly, KD can reduce the change of feature extractor, which is crucial for semanAug because it implicitly generate instances in the deep feature space from old distribution. The total learning objective at each stage $t$ is as following:
134
+
135
+ $$
136
+ \mathcal { L } _ { t } = \mathcal { L } _ { t , n e w } + \alpha \mathcal { L } _ { t , s e m a n A u g } + \beta \mathcal { L } _ { t , k d } ,
137
+ $$
138
+
139
+ where $\alpha$ and $\beta$ are two hyper-parameters. $\mathcal { L } _ { t , n e w }$ and $\mathcal { L } _ { t , s e m a n A u g }$ are shown in Eq. (5) and Eq. (7), respectively. $\begin{array} { r } { \mathcal { L } _ { t , k d } = \frac { 1 } { n _ { t } } \sum _ { i = 1 } ^ { n _ { t } } \| f _ { \pmb { \theta } _ { t - 1 } } ( \pmb { x } _ { i } ) - f _ { \pmb { \theta } _ { t } } ( \pmb { x } _ { i } ) \| } \end{array}$ . Note that $\mathcal { L } _ { t , n e w }$ and $\mathcal { L } _ { t , s e m a n A u g }$ are applied to both the original and synthesized samples. Algorithm 1 presents the pseudo code of IL2A.
140
+
141
+ # 4 Experiments
142
+
143
+ # 4.1 Evaluation Protocol
144
+
145
+ Datasets. We perform our experiments on CIFAR-100 [49] and Tiny-ImageNet [56]. A common setting is to train the model on half of classes for first task, and equal classes in the remaining incremental steps. Based on this, we split the CIFAR-100 dataset in different settings: $5 0 + 5 \times 1 0$ , $5 0 + \pm 0 \times 5$ , $4 0 + 2 { \pmb \theta } \times 3$ . For instance, $5 0 +$ $I { \pmb \theta } \times 5$ represents that the first task contains 50 classes and there are 5 classes for the following 10 tasks. Similarly, the settings for Tiny-ImageNet are $1 0 0 + { \pmb { 5 } } \times 2 0 $ , $1 0 0 +$ $1 0 \times 1 0$ and $1 0 0 { + } 2 { \pm } 5$ . Intuitively, more classes in each tasks requires the model to learn a harder problem for each task, while increasing the length of the task sequence challenges the model’s retention.
146
+
147
+ # Algorithm 1: IL2A: Dual augmentation algorithm
148
+
149
+ Randomly initialize $\Theta ^ { 0 } = \{ \theta ^ { 0 } , \varphi ^ { 0 } \}$ ; ${ \mathcal { S } } ^ { 0 } = \emptyset$ ;
150
+ foreach incremental stage $t \in \{ 1 , . . . , T \}$ do Input: model $\Theta ^ { t - 1 }$ , data $\mathcal { D } _ { t } = \{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n _ { t } }$ ; Output: model $\Theta ^ { t }$ ; $\Theta ^ { t } \bar { } \Theta ^ { t - 1 }$ ; $\mathcal { D } _ { t , a u g } = \{ ( \boldsymbol { x } _ { i } ^ { \prime } , \boldsymbol { y } _ { i } ^ { \prime } ) \} _ { i = 1 } ^ { n _ { t } ^ { \prime } }$ via classAug; add class nodes for augmented classes; if $t = 1$ then train $\Theta ^ { t }$ by minimizing $\mathcal { L } ( g _ { \varphi } ( f _ { \theta } ( \pmb { x } ^ { \prime } ) ) , y ^ { \prime } )$ ; else train $\Theta ^ { t }$ by minimizing Eq. (8); $s \gets$ compute $\{ \mu , \Sigma \}$ for each class in $\mathcal { D } _ { t }$ ; $S ^ { t } \gets S ^ { t - 1 } \cup s ;$ remove augmented class nodes in classifier;
151
+
152
+ ![](images/fcb711f00b1081d5d60c7b70d9e62c8c544bcc4686b010481488154f5665887a.jpg)
153
+ Figure 5: Results of top-1 accuracy on CIFAR-100 and Tiny-ImageNet under different settings. Solid lines present methods that do not store old exemplars, dashed lines present data replay based methods.
154
+
155
+ in each experiment. All models are trained using Adam [57] optimizer with an initial learning rate of 0.001 for 100 epochs with the mini-batch size of 64. The learning rate is reduced by a factor of 10 at 45 and 90 epochs. We use the same hyper-parameter value for all experiments. Specifically, we set $\alpha = 1 0$ and $\beta = 1 0$ in Eq. (8). The number of augmented classes (i.e. The number of augmented classes (i.e., $m$ ) depends on the number of (original) classes at current incremental step. Taking CIFAR-100 as an example, the $m$ is 45 for 5 phases setting where each incremental step has 10 classes; and $m$ is 10 for 10 phases setting where each incremental step has 5 classes. At the end of each incremental stage, we evaluate the model on all seen classes after removing the class nodes of the $m$ augmented classes in the classifier. Our code is available at https://github.com/Impression2805/IL2A.
156
+
157
+ Comparison Methods. Our method (IL2A) does not store any old samples for replay when learning new classes. Therefore, we first compare IL2A with several non-exemplar based approaches: MAS [16], LwF-MC [13], MUC [58], LwM [59]. In addition, we also compare with several exemplar based methods such as iCaRL [13], EEIL [18] and LUCIR [19]. Specifically, for the data replay based methods, we follow [13, 19] to store 20 samples for each class using ‘herd’ selection technique [13]. We report the average top-1 accuracy of all previously seen classes up to each incremental step t. For iCaRL, we respectively report its results of CNN predictions and nearest-mean-of-exemplars classification, denoted as iCaRL-CNN and iCaRL-NME.
158
+
159
+ # 4.2 Experimental Results
160
+
161
+ Main Results. Comparative results are shown in Figure 5. Firstly, we observe that our method performs much better than non-exemplar based methods such as LwF-MC and MUC in the trend of accuracy curve under different settings. Particularly, the gap appears unbridgeable in the long-step Class-IL setting, e.g., 10 phases and 20 phases. This suggests that only constraining old parameters does not suffice to prevent forgetting. We argue that this is partly due to the unaddressed classifier bias. When compared to representative data replay based methods such as iCaRL, EEIL and LUCIR, our method remarkably shows strong performance without storing old samples.
162
+
163
+ The success of our method can contribute to the proposed classAug and semanAug. Specifically, classAug is applied to new classes of current task, which enables the model to learn more transferable and diverse representations for future classes and in turn, reduces the forgetting of old parameters when learning new classes. While semanAug is applied to old classes of previous tasks, which leverage the valuable distribution information of old classes to learn a unified classifier to connect the classes from different tasks to each other.
164
+
165
+ Ablation Study. To evaluate the effect of each component in IL2A, we perform the ablation study and show the results of 10 phases setting (CIFAR-100) in Table 1. Specifically, the baseline denotes the method that does not generate pseudo-instance using semanAug, but only replays the class-mean of each old class when training new classes. By doing so, we aim to validate the effectiveness of semanAug compared with only replaying class-mean. In summary, we can observe that: (1) Baseline improves the performance of KD significantly. (2) SemanAug improves the performance of baseline from $3 4 . 7 1 \%$ to $4 2 . 0 9 \%$ . Those results indicate the effect of the distribution information for maintaining old knowledge in Class-IL. (3) ClassAug also has remarkably effect on baseline, and (4) the performance can be further improved by combing with semanAug, which indicates that those two modules are complementary. Similar results are observed in other settings of CIFAR-100 and Tiny-ImageNet datasets. (5) As for the computational complexity, classAug involves input level sample mixing and the augmented samples are fed to feature extractor. Differently, semanAug performs implicit old instance generation in the deep feature space. Therefore, semanAug is cheaper compared with classAug from the computation perspective.
166
+
167
+ Table 1: The effect of each component in IL2A.
168
+
169
+ <table><tr><td rowspan=1 colspan=1>Method\Incremental stage</td><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>Final</td></tr><tr><td rowspan=4 colspan=1>Knowledge Distillationbaseline+ semanAug+ classAug</td><td rowspan=1 colspan=1>78.78</td><td rowspan=1 colspan=1>30.18</td><td rowspan=1 colspan=1>20.71</td><td rowspan=1 colspan=1>14.61</td><td rowspan=1 colspan=1>11.87</td><td rowspan=1 colspan=1>8.80</td><td rowspan=1 colspan=1>7.70</td><td rowspan=1 colspan=1>7.23</td><td rowspan=1 colspan=1>7.10</td><td rowspan=1 colspan=1>6.05</td><td rowspan=1 colspan=1>6.04</td></tr><tr><td rowspan=1 colspan=1>78.86</td><td rowspan=1 colspan=1>62.85</td><td rowspan=1 colspan=1>56.96</td><td rowspan=1 colspan=1>54.66</td><td rowspan=1 colspan=1>51.72</td><td rowspan=1 colspan=1>47.33</td><td rowspan=1 colspan=1>43.61</td><td rowspan=1 colspan=1>40.12</td><td rowspan=1 colspan=1>40.76</td><td rowspan=1 colspan=1>36.55</td><td rowspan=1 colspan=1>34.71</td></tr><tr><td rowspan=1 colspan=1>79.16</td><td rowspan=1 colspan=1>69.14</td><td rowspan=1 colspan=1>60.68</td><td rowspan=1 colspan=1>58.18</td><td rowspan=1 colspan=1>54.77</td><td rowspan=1 colspan=1>50.89</td><td rowspan=1 colspan=1>48.45</td><td rowspan=1 colspan=1>46.29</td><td rowspan=1 colspan=1>46.97</td><td rowspan=1 colspan=1>44.38</td><td rowspan=1 colspan=1>42.09</td></tr><tr><td rowspan=1 colspan=1>79.72</td><td rowspan=1 colspan=1>68.30</td><td rowspan=1 colspan=1>64.15</td><td rowspan=1 colspan=1>60.15</td><td rowspan=1 colspan=1>56.21</td><td rowspan=1 colspan=1>52.61</td><td rowspan=1 colspan=1>51.48</td><td rowspan=1 colspan=1>46.48</td><td rowspan=1 colspan=1>46.36</td><td rowspan=1 colspan=1>43.63</td><td rowspan=1 colspan=1>41.56</td></tr><tr><td rowspan=1 colspan=1> + classAug + semanAug</td><td rowspan=1 colspan=1>81.08</td><td rowspan=1 colspan=1>74.54</td><td rowspan=1 colspan=1>66.28</td><td rowspan=1 colspan=1>63.89</td><td rowspan=1 colspan=1>58.80</td><td rowspan=1 colspan=1>54.97</td><td rowspan=1 colspan=1>51.32</td><td rowspan=1 colspan=1>48.64</td><td rowspan=1 colspan=1>49.74</td><td rowspan=1 colspan=1>47.05</td><td rowspan=1 colspan=1>45.07</td></tr></table>
170
+
171
+ # 4.3 Further Analysis
172
+
173
+ ClassAug Improves both Plasticity and Stability in Class-IL. To analyze the effectiveness of classAug more concretely, we explore how it affects the new tasks accuracy (↑) and average forgetting (↓) (CIFAR-100, 10 phases setting). Average forgetting [60] is defined to estimate the forgetting of previous tasks. The forgetting measure $\bar { f } _ { k } ^ { i }$ of the $i$ -th task after training $k$ -th task is defined as $f _ { k } ^ { i } = \operatorname* { m a x } _ { t \in 1 , \ldots , k - 1 } ( a _ { t , i } - a _ { k , i } ) , \forall i < k$ , in which $a _ { m , n }$ is the accuracy of task $n$ after training task $m$ .
174
+
175
+ The average forgetting measure $F _ { k }$ is then defined as 1k−1 Pk−1i=1 f ik. Intuitively, new task accuracy can be viewed as the plasticity of the incremental learner and the average forgetting can be viewed as the stability of the incremental learner. Figure 6 (a) and (b) report the results, from which we see that classAug simultaneously improves the new task accuracy and reduces the average forgetting. Specifically, the significant improvement on new task accuracy implies that the model training with classAug is a good initialization for the following tasks. Consequently, classAug is effective to improve the trade-off between plasticity and stability of a continual learner.
176
+
177
+ ![](images/74b1ad39f42f5a89b574e88fa477fed16c9e657e8a74d5d3be13dc2d0e41c807.jpg)
178
+ Figure 6: (a, b) ClassAug can simultaneously improve the new task accuracy and reduce the average forgetting. (c) Compared with classAug, Mixup and LS have negative effect for Class-IL.
179
+
180
+ Compare ClassAug with Other Regularizers. We compare the proposed classAug with Mixup and LS in Figure 6 (c), where the baseline (with semanAug) represents our IL2A without using classAug. As can be seen, Mixup and LS have negative effect on the final accuracy. This phenomenon could be interpreted based on the analysis in Section 3.1.1 and Figure 2 (b). Specifically, those regularizers result in more compressed representations, damaging the transferability of the representations. Besides, the label smoothing strategy also affects the weights of old classes in the classifier, thus increasing the classifier bias. Similar results have also been reported in [61].
181
+
182
+ Discussion of Covariance Matrix. In our main experiments, we use the original covariance matrix for semanAug. However, storing the original covariance matrix might be inefficient when the matrix dimension is large. An alternative way is to only store the elements on the diagonal, which could greatly reduce the cost of memory. Figure 7 also reports the results of using the diagonal covariance matrix. Under different settings, using the original covariance matrix is slightly better than the diagonal form. This is reasonable because the original covariance matrix stores more distribution information of old classes. However, using the diagonal covariance matrix would be more memory-efficient in practice.
183
+
184
+ Table 2: OOD detection results. $\uparrow$ indicates higher is better.
185
+
186
+ <table><tr><td rowspan="2">0OD</td><td colspan="3">AUROC↑</td><td colspan="3">AUPR-In↑</td><td colspan="3">AUPR-Out个</td></tr><tr><td>baseline</td><td>Mixup</td><td>classAug</td><td>baseline</td><td>Mixup</td><td>classAug</td><td>baseline</td><td>Mixup</td><td>classAug</td></tr><tr><td>MNIST</td><td>87.02</td><td>92.46</td><td>94.99</td><td>79.89</td><td>89.00</td><td>93.05</td><td>92.26</td><td>95.48</td><td>97.20</td></tr><tr><td>Fashion-MNIST</td><td>90.28</td><td>93.37</td><td>94.40</td><td>86.18</td><td>89.11</td><td>92.43</td><td>94.26</td><td>96.19</td><td>96.78</td></tr><tr><td>LSUN</td><td>88.50</td><td>88.80</td><td>93.90</td><td>83.48</td><td>74.71</td><td>91.08</td><td>92.92</td><td>94.09</td><td>96.73</td></tr><tr><td>Tiny-ImageNet</td><td>88.49</td><td>84.96</td><td>93.92</td><td>83.84</td><td>64.02</td><td>91.77</td><td>92.70</td><td>92.19</td><td>96.55</td></tr><tr><td>Mean</td><td>88.57</td><td>89.90</td><td>94.30</td><td>83.35</td><td>79.21</td><td>92.08</td><td>93.04</td><td>94.49</td><td>96.81</td></tr></table>
187
+
188
+ ClassAug Improves Confidence Reliability. During continuous use of a machine learning system in open-world applications, there are mainly three key steps [62]. The first step is out-of-distribution (OOD) detection [63], which requires the system to detect unknown samples from novel classes. The second step is to label the collected unknown samples by humans or automatic algorithms [64]. Finally, the system must scale and adapt incrementally to learn the novel classes, which is the Class-IL problem studied in this paper. Recently studies found that DNNs are overconfident for their predictions [63, 65], lacking the ability to detect samples from unknown classes. In real-world applications, we expect a continual learner has good OOD detection ability.
189
+
190
+ ![](images/b0ee6625c379c219150f00397ededed20299312038543491731ac6f129574fbc.jpg)
191
+ Figure 7: Original v.s. diagonal covariance matrix. CIFAR-100.
192
+
193
+ We explore the OOD detection ability of the proposed classAug. Concretely, we train a ResNet-18 on CIFAR-10, and the test samples from CIFAR-10 are in-distribution. For OOD examples, we test on MNIST [66], Fashion-MNIST [67], LSUN (resized) [68] and Tiny-ImageNet (resized). As shown in Table 2, classAug noticeably improves the OOD detection performance of baseline [63] on commonly used metrics such as AUROC, AUPR-In and AUPR-Out [63]. By recognizing synthetic samples, DNNs could learn more robust and transferable representations which could be generalized to OOD samples. Moreover, as shown in Table 2, Mixup sometimes damages the performance of OOD detection, which further demonstrates the superiority of classAug.
194
+
195
+ # 5 Conclusion
196
+
197
+ In this paper, we propose a simple and effective dual augmentation framework to address the representation bias and classifier bias in Class-IL. We first investigate the transferability (or forgetting) of representations via spectral decomposition, which motivates us to propose classAug that can learn transferable, diverse and less compact representations for IL. Furthermore, we propose to use semanAug to implicitly generate infinite instances of old classes in the deep feature space during jointly learning of the unified classifier. Experiments show that our method could achieve remarkable performance compared with state-of-the-art Class-IL methods. Future works will consider the dual augmentation framework for more challenging scenarios like Class-IL with distribution shift and OOD data, few-shot Class-IL, and federated incremental learning.
198
+
199
+ # Acknowledgements
200
+
201
+ This work has been supported by the National Key Research and Development Program under Grant No. 2018AAA0100400, the National Natural Science Foundation of China (NSFC) grants U20A20223, 61633021, 62076236, 61721004, the Key Research Program of Frontier Sciences of CAS under Grant ZDBS-LY-7004, and the Youth Innovation Promotion Association of CAS under Grant 2019141.
202
+
203
+ References
204
+ [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778, 2016. 1, 4, 7
205
+ [2] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, 2009. 1
206
+ [3] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, pages 1097–1105, 2012. 1, 3
207
+ [4] Gregory Ditzler, Manuel Roveri, Cesare Alippi, and Robi Polikar. Learning in nonstationary environments: A survey. IEEE Computational Intelligence Magazine, 10(4):12–25, 2015. 1
208
+ [5] German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019. 1, 4
209
+ [6] Matthias Delange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Greg Slabaugh, and Tinne Tuytelaars. A continual learning survey: Defying forgetting in classification tasks. IEEE Trans. Pattern Anal. Mach. Intell., 2021. 1
210
+ [7] Raia Hadsell, Dushyant Rao, Andrei A Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in Cognitive Sciences, 2020. 1
211
+ [8] Ian J. Goodfellow, M. Mirza, Xia Da, Aaron C. Courville, and Yoshua Bengio. An empirical investigation of catastrophic forgeting in gradient-based neural networks. CoRR, 2014. 1
212
+ [9] M. McCloskey and N. J. Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of Learning and Motivation, pages 109–165, 1989. 1
213
+ [10] Robert M French. Interactive tandem networks and the sequential learning problem. Citeseer. 1
214
+ [11] J. Kirkpatrick, Razvan Pascanu, Neil C. Rabinowitz, J. Veness, G. Desjardins, Andrei A. Rusu, K. Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, C. Clopath, D. Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, pages 3521 – 3526, 2017. 1, 2, 3, 4
215
+ [12] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Trans. Pattern Anal. Mach. Intell., pages 2935–2947, 2018. 1, 2, 3, 4
216
+ [13] Sylvestre-Alvise Rebuffi, A. Kolesnikov, Georg Sperl, and Christoph H. Lampert. icarl: Incremental classifier and representation learning. In CVPR, pages 5533–5542, 2017. 1, 3, 4, 8
217
+ [14] Ameya Prabhu, Philip HS Torr, and Puneet K Dokania. Gdumb: A simple approach that questions our progress in continual learning. In ECCV, pages 524–540, 2020. 1
218
+ [15] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In ICML, pages 3987–3995, 2017. 1, 2, 3, 4
219
+ [16] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In ECCV, pages 139–154, 2018. 1, 2, 3, 4, 8
220
+ [17] Y. Wu, Yan-Jia Chen, Lijuan Wang, Yuancheng Ye, Zicheng Liu, Yandong Guo, and Yun Fu. Large scale incremental learning. In CVPR, pages 374–382, 2019. 1, 3
221
+ [18] Francisco M Castro, Manuel J Marín-Jiménez, Nicolás Guil, Cordelia Schmid, and Karteek Alahari. End-to-end incremental learning. In ECCV, pages 233–248, 2018. 1, 2, 8
222
+ [19] Saihui Hou, Xinyu Pan, Chen Change Loy, Zilei Wang, and D. Lin. Learning a unified classifier incrementally via rebalancing. In CVPR, pages 831–839, 2019. 2, 3, 7, 8
223
+ [20] Bowen Zhao, Xi Xiao, Guojun Gan, Bin Zhang, and Shu-Tao Xia. Maintaining discrimination and fairness in class incremental learning. In CVPR, pages 13205–13214, 2020. 2
224
+ [21] Laurens Maaten, Minmin Chen, Stephen Tyree, and Kilian Weinberger. Learning with marginalized corrupted features. In ICML, pages 410–418, 2013. 2
225
+ [22] Yulin Wang, Gao Huang, Shiji Song, Xuran Pan, Yitong Xia, and Cheng Wu. Regularizing deep networks with semantic data augmentation. IEEE Trans. Pattern Anal. Mach. Intell., 2021. 2, 3, 6
226
+ [23] Yen-Chang Hsu, Yen-Cheng Liu, Anita Ramasamy, and Zsolt Kira. Re-evaluating continual learning scenarios: A categorization and case for strong baselines. arXiv preprint arXiv:1810.12488, 2018. 3
227
+ [24] Gido M Van de Ven and Andreas S Tolias. Three scenarios for continual learning. arXiv preprint arXiv:1904.07734, 2019. 3
228
+ [25] Arthur Douillard, Matthieu Cord, Charles Ollion, Thomas Robert, and Eduardo Valle. Podnet: Pooled outputs distillation for small-tasks incremental learning. In ECCV, pages 86–102, 2020. 3
229
+ [26] Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, and Gerald Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. In ICLR, 2018. 3
230
+ [27] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. In NeurIPS, 2017. 3
231
+ [28] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. In ICLR, 2019. 3
232
+ [29] Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. In NeurIPS, pages 2994–3003, 2017. 3
233
+ [30] Chenshen Wu, L. Herranz, X. Liu, Y. Wang, Joost van de Weijer, and B. Raducanu. Memory replay gans: Learning to generate new categories without forgetting. In NeurIPS, pages 5962–5972, 2018. 3
234
+ [31] Ye Xiang, Ying Fu, Pan Ji, and Hua Huang. Incremental learning using conditional adversarial networks. In ICCV, pages 6618–6627, 2019. 3
235
+ [32] Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. In ICLR, 2018. 3
236
+ [33] Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016. 3
237
+ [34] Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In CVPR, pages 7765–7773, 2018. 3
238
+ [35] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. In ICML, pages 4548–4557, 2018. 3
239
+ [36] Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. In ICLR, 2018. 3
240
+ [37] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. Mixup: Beyond empirical risk minimization. In ICLR, 2018. 3, 5
241
+ [38] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, pages 6023–6032, 2019. 3
242
+ [39] Yoshua Bengio, Grégoire Mesnil, Yann Dauphin, and Salah Rifai. Better mixing via deep representations. In ICML, pages 552–560, 2013. 3
243
+ [40] Paul Upchurch, Jacob Gardner, Geoff Pleiss, Robert Pless, Noah Snavely, Kavita Bala, and Kilian Weinberger. Deep feature interpolation for image content changes. In CVPR, pages 7064–7073, 2017. 3
244
+ [41] Qi Cai, Yu Wang, Yingwei Pan, Ting Yao, and Tao Mei. Joint contrastive learning with infinite possibilities. In NeurIPS, 2020. 3
245
+ [42] Shuang Li, Mixue Xie, Kaixiong Gong, Chi Harold Liu, Yulin Wang, and Wei Li. Transferable semantic augmentation for domain adaptation. arXiv preprint arXiv:2103.12562, 2021. 3
246
+ [43] Shuang Li, Kaixiong Gong, Chi Harold Liu, Yulin Wang, Feng Qiao, and Xinjing Cheng. Metasaug: Meta semantic augmentation for long-tailed visual recognition. arXiv preprint arXiv:2103.12579, 2021. 3
247
+ [44] Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and Simone Calderara. Dark experience for general continual learning: a strong, simple baseline. In NeurIPS, 2020. 3, 7
248
+ [45] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 3
249
+ [46] Clayton Shonkwiler. Poincaré duality angles for riemannian manifolds with boundary. arXiv preprint arXiv:0909.1967, 2009. 4
250
+ [47] Jianming Miao and Adi Ben-Israel. On principal angles between subspaces in rn. Linear algebra and its applications, 171:81–98, 1992. 4
251
+ [48] Xinyang Chen, Sinan Wang, Mingsheng Long, and Jianmin Wang. Transferability vs. discriminability: Batch spectral penalization for adversarial domain adaptation. In ICML, pages 1081–1090, 2019. 4
252
+ [49] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, 2009. 4, 7
253
+ [50] Rafael Müller, Simon Kornblith, and Geoffrey E. Hinton. When does label smoothing help? In NeurIPS, pages 4696–4705, 2019. 5
254
+ [51] Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David Lopez-Paz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In ICML, pages 6438–6447, 2019. 5
255
+ [52] Naftali Tishby and Noga Zaslavsky. Deep learning and the information bottleneck principle. In 2015 IEEE Information Theory Workshop (ITW), pages 1–5, 2015. 5
256
+ [53] Ravid Shwartz-Ziv and Naftali Tishby. Opening the black box of deep neural networks via information. arXiv preprint arXiv:1703.00810, 2017. 5
257
+ [54] Karsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta, Björn Ommer, and Joseph Paul Cohen. Revisiting training strategies and generalization performance in deep metric learning. In ICML, 2020. 5
258
+ [55] Eden Belouadah and Adrian Popescu. Il2m: Class incremental learning with dual memory. In ICCV, pages 583–592, 2019. 6
259
+ [56] Leon Yao and John Miller. Tiny imagenet classification with convolutional neural networks. CS 231N. 7
260
+ [57] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 8
261
+ [58] Yu Liu, Sarah Parisot, Gregory G. Slabaugh, Xu Jia, Ales Leonardis, and Tinne Tuytelaars. More classifiers, less forgetting: A generic multi-classifier paradigm for incremental learning. In ECCV, pages 699–716, 2020. 8
262
+ [59] Prithviraj Dhar, Rajat Vikram Singh, Kuan-Chuan Peng, Ziyan Wu, and Rama Chellappa. Learning without memorizing. In CVPR, pages 5138–5146, 2019. 8
263
+ [60] Arslan Chaudhry, P. Dokania, Thalaiyasingam Ajanthan, and P. Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. In ECCV, pages 532–547, 2018. 9
264
+ [61] Sudhanshu Mittal, Silvio Galesso, and Thomas Brox. Essentials for class incremental learning. arXiv preprint arXiv:2102.09517, 2021. 9
265
+ [62] Xu-Yao Zhang, Cheng-Lin Liu, and Ching Y Suen. Towards robust pattern recognition: A review. Proceedings of the IEEE, 108(6):894–922, 2020. 10
266
+ [63] Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In ICLR, 2017. 10
267
+ [64] Kai Han, Sylvestre-Alvise Rebuffi, Sébastien Ehrhardt, Andrea Vedaldi, and Andrew Zisserman. Autonovel: Automatically discovering and learning novel visual categories. IEEE Trans. Pattern Anal. Mach. Intell., 2021. 10
268
+ [65] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, pages 1321–1330, 2017. 10
269
+ [66] Yann LeCun and Corinna Cortes. The mnist database of handwritten digits. 2005. 10
270
+ [67] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. 10
271
+ [68] Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. ArXiv, abs/1506.03365, 2015. 10
parse/train/8dqEeFuhgMG/8dqEeFuhgMG_content_list.json ADDED
@@ -0,0 +1,1140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Class-Incremental Learning via Dual Augmentation ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 184,
8
+ 122,
9
+ 812,
10
+ 148
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Fei Zhu1,2, Zhen Cheng1,2, Xu-Yao Zhang1,2∗, Cheng-Lin Liu1,2,3 1NLPR, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China 2University of Chinese Academy of Sciences, Beijing, 100049, China 3Center for Excellence of Brain Science and Intelligence Technology, CAS {zhufei2018, chengzhen2019}@ia.ac.cn, {xyz, liucl}@nlpr.ia.ac.cn ",
17
+ "bbox": [
18
+ 214,
19
+ 199,
20
+ 787,
21
+ 272
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 308,
32
+ 535,
33
+ 324
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Deep learning systems typically suffer from catastrophic forgetting of past knowledge when acquiring new skills continually. In this paper, we emphasize two dilemmas, representation bias and classifier bias in class-incremental learning, and present a simple and novel approach that employs explicit class augmentation (classAug) and implicit semantic augmentation (semanAug) to address the two biases, respectively. On the one hand, we propose to address the representation bias by learning transferable and diverse representations. Specifically, we investigate the feature representations in incremental learning based on spectral analysis and present a simple technique called classAug, to let the model see more classes during training for learning representations transferable across classes. On the other hand, to overcome the classifier bias, semanAug implicitly involves the simultaneous generating of an infinite number of instances of old classes in the deep feature space, which poses tighter constraints to maintain the decision boundary of previously learned classes. Without storing any old samples, our method can perform comparably with representative data replay based approaches. ",
40
+ "bbox": [
41
+ 233,
42
+ 340,
43
+ 766,
44
+ 546
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 574,
55
+ 310,
56
+ 592
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Deep neural networks (DNNs) have enabled great success in many machine learning tasks, based on stationary, large-scale, computationally expensive, and memory-intensive training data [1, 2, 3]. Yet the need of the ability to acquire sequential experience in dynamic and open environments [4, 5, 6] poses a serious challenge to modern deep learning systems, which only perform well on homogenized, balanced, and shuffled data [7]. Typically, DNNs suffer from drastic performance degradation of previously learned tasks after learning new knowledge, which is a well-documented phenomenon, known as catastrophic forgetting [8, 9, 10]. Recently, incremental learning (IL), also referred to as lifelong learning or continual learning, has received extensive attention [11, 12, 13, 14] to enable DNNs to preserve and extend knowledge continually. ",
63
+ "bbox": [
64
+ 174,
65
+ 606,
66
+ 825,
67
+ 731
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Many earlier studies focus on task-incremental learning, which uses separate output layers for different tasks, and needs the task identity for inference [11, 15, 16]. In this work, we consider a more realistic and challenging setting of class-incremental learning (Class-IL), where the model only has access to data of new classes at each stage and needs to learn a unified classifier that can classify all seen classes [13, 17, 18]. Unfortunately, the learning paradigm of Class-IL will lead to two problems: representation bias and classifier bias, as shown in Figure 1. First, for representation learning, if the feature extractor is fixed after learning old classes, the learned representations could be preserved, but suffer from the lack of transferability for new classes; on the contrary, if we update the feature extractor on new classes, the updated representations would be no longer suitable for old classes. Consequently, the old and new classes would be easily overlapped in the deep feature space. We denote this dilemma as the representation bias. Second, to distinguish new classes from old classes, the training loss is typically calculated on all classes. Without old training data, the class weights of old classes would be ill-updated and mismatched with the updated representation space. We denote this dilemma as the classifier bias. In this work, we investigate the learning of representation and classifier in incremental learning and propose a simple and effective dual augmentation framework to overcome these two biases in Class-IL without storing and replaying training data of old classes. ",
74
+ "bbox": [
75
+ 174,
76
+ 737,
77
+ 825,
78
+ 876
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/56c1745bf29cb30faff0510f63ad52cd36cf90119927dafc9626d55d5e972832.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Two inherent problems in Class-IL: representation bias and classifier bias. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 174,
91
+ 94,
92
+ 820,
93
+ 220
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 174,
102
+ 260,
103
+ 825,
104
+ 343
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Learning Representation for Incremental Learning. Existing works typically regularize network parameters explicitly [11, 15, 16] or implicitly [12] to reduce the representation shift when learning new classes. In this paper, instead of asking how to keep previously learned representations unchanged, we investigate the following question: ",
111
+ "bbox": [
112
+ 174,
113
+ 349,
114
+ 825,
115
+ 405
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "What properties of learned representations could facilitate incremental learning? We hypothesize that learning transferable and diverse representations is an important requirement for incremental learning. Intuitively, with such representations, it could be easier to find a model to perform well on all tasks and improve both plasticity and stability, since different tasks would be closer in the parameters space. From a spectral analysis viewpoint, we investigate which components of feature representations are more transferable and less forgettable in the incremental learning process. It is found that spectral components with large eigenvalues are less forgettable. Furthermore, we exploit this finding to propose a simple technique named classAug, which can enlarge the spectral components to introduce more diverse and transferable representations for incremental learning. ",
122
+ "bbox": [
123
+ 173,
124
+ 405,
125
+ 825,
126
+ 529
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Learning Classifier for Incremental Learning. Recently, several works were proposed to alleviate the classifier bias in data replay based methods [18, 19, 20]. However, in non-exemplar based (i.e., without storing and replaying old data) Class-IL setting, the classifier bias is more serious and the above methods can not be directly used. A straightforward way is storing instances of old classes in the deep feature space. However, this strategy is undesirable due to the limited memory resource and scalability. This work delves into the classifier learning for Class-IL and proposes an implicit semantic augmentation (semanAug) approach to generate an infinite number of instances of old classes in the deep feature space by leveraging the distribution information. SemanAug is inspired by MCF [21] and ISDA [22], which have performed semantic augmentation for linear models and DNNs, respectively. However, both our way to leverage semantic augmentation and the motivation fundamentally differ from them [21, 22]. ",
133
+ "bbox": [
134
+ 174,
135
+ 535,
136
+ 825,
137
+ 688
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Contributions. (i) We provide new insights into the representation learning in incremental learning by analyzing the structural characteristics of the learned embedding space via spectral decomposition and find that spectral components with large eigenvalues are less forgettable and carry more transferable features. Based on this observation, we propose a simple and effective method of classAug to learn better embedding space for incremental learning. (ii) For classifier learning in incremental learning, we propose semanAug which implicitly involves simultaneous generating an infinite number of instances of old classes in the deep feature space to maintain the decision boundary of previously learned classes. (iii) Extensive experiments on benchmark datasets demonstrate the superior performance of our dual augmentation framework for the challenging scenario of Class-IL. ",
144
+ "bbox": [
145
+ 174,
146
+ 694,
147
+ 825,
148
+ 818
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 Related Work ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 837,
159
+ 321,
160
+ 854
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Incremental Learning. Diverse approaches have been proposed for incremental learning of DNNs. They can be roughly divided into three categories: regularization based, data replay based, and architecture based approaches. Regularization based methods focus on weight regularization by estimating and preventing the important network weights from changing [11, 15, 16]. The difference among those methods is the way to compute the importance of the parameters. However, it is hard to design a reasonable metric to measure the importance of parameters, and it is known that regularization strategies show poor performance in Class-IL scenario [23, 24]. Data replay based methods address both the representation bias and classifier bias straightforwardly by storing a fraction of old data to jointly train the model with current data. With stored real samples, some works [17, 13, 25] use a distillation loss to prevent forgetting, while others [26, 27, 28] develop gradient-based regularization to make more efficient use of the rehearsal data. To avoid storing real data, another line of works generates pseudo-samples of all previous classes for replay using deep generative models [29, 30, 31, 32]. Nevertheless, storing real data is undesirable for resource-limited or privacy and safety concerning scenarios. Moreover, training big generative models for complex datasets is inefficient. Architecture based methods dynamically extend the network structure during the course of incremental learning [33, 34, 35, 36]. However, growing architecture is unfeasible for large numbers of tasks, and those methods are often impractical for Class-IL. ",
167
+ "bbox": [
168
+ 176,
169
+ 869,
170
+ 825,
171
+ 911
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "",
178
+ "bbox": [
179
+ 173,
180
+ 90,
181
+ 825,
182
+ 285
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Data Augmentation. Literature is rich on data augmentation for improving the generalization of DNNs. Classical strategies commonly synthesize “positive” new samples in a way that is consistent with the underlying data distribution of the original dataset [3]. Recent works show that label mixing based methods such as Mixup [37] and Cutmix [38] can greatly improve the generalization of DNNs. In complement to the input space augmentations mentioned above, some works have explored feature space augmentations which augment the learned representations in deep embedding space to enhance classifier performance. The intuition behind those works is that certain directions in the deep feature space correspond to meaningful semantic transformations [39, 40]. For instance, deep feature interpolation [40] leverages simple interpolations in the embedding space to achieve semantic augmentation. A recently proposed ISDA [22] performs semantic augmentation by estimating and leveraging the category-wise distribution of deep representations in an online manner. Despite the simplicity, ISDA shows its effectiveness in semi-supervised learning [22], contrastive learning [41], domain adaptation [42] and long-tailed recognition [43]. ",
189
+ "bbox": [
190
+ 173,
191
+ 291,
192
+ 825,
193
+ 470
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "3 Dual Augmentation Framework for Class-Incremental Learning ",
200
+ "text_level": 1,
201
+ "bbox": [
202
+ 174,
203
+ 489,
204
+ 741,
205
+ 507
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "We first formalize the problem of Class-IL, and then introduce the proposed classAug for representation learning and semanAug for classifier learning, respectively. Finally, we present the dual augmentation framework for Class-IL by combing the two augmentations. ",
212
+ "bbox": [
213
+ 174,
214
+ 522,
215
+ 825,
216
+ 564
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "Problem Definition. Typically, a Class-IL problem involves the sequential learning of $\\tau$ tasks that consist of disjoint classes sets, and the model has to classify all seen classes at any given point in training. At incremental step $t \\in \\{ 1 , . . . , T \\}$ , $( \\pmb { x } , y ) \\in \\mathcal { D } _ { t }$ denotes a training sample, where $_ { \\textbf { \\em x } }$ is an sample in the input space $\\mathcal { X }$ and $\\boldsymbol { y } \\in \\mathcal { C } _ { t }$ is its corresponding label. $\\mathcal { C } _ { t }$ is the class set of task $t$ . To facilitate analysis, we represent the DNN based model with two components: a feature extractor and a unified classifier. Specifically, the feature extractor $f _ { \\pmb \\theta } : \\mathcal { X } \\mathcal { Z }$ , parameterized by $\\pmb \\theta$ , maps the input $_ { \\textbf { \\em x } }$ into a feature vector $z \\doteq f _ { \\pmb \\theta } ( \\pmb x ) \\in \\mathbb R ^ { d }$ in the deep feature space $\\mathcal { Z }$ ; the unified classifier $g _ { \\varphi } : \\dot { \\mathcal { Z } } \\mathbb { R } ^ { \\mathcal { C } _ { 1 : t } }$ , parameterized by $\\varphi$ , produces a probability distribution $g _ { \\varphi } ( z )$ as the prediction for $_ { \\textbf { \\em x } }$ . Denote the overall parameters by $\\Theta = ( \\theta , \\varphi )$ . ",
223
+ "bbox": [
224
+ 173,
225
+ 569,
226
+ 825,
227
+ 696
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "The general objective is to correctly classify test examples from all seen classes [44]. The key challenge of Class- $\\mathrm { . I L }$ is that data from previous tasks are assumed to be unavailable, which means that the best configuration of the model for all seen tasks must be sought by minimizing the predefined loss function $\\mathcal { L }$ (e.g., cross-entropy) on current data $\\mathcal { D } _ { t }$ : ",
234
+ "bbox": [
235
+ 173,
236
+ 700,
237
+ 825,
238
+ 757
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "equation",
244
+ "img_path": "images/a3efe1a443fb9cdc6fb12fff6b8fcaaea984d3fadd80ee6a8dfe8bacbf90d099.jpg",
245
+ "text": "$$\n\\underset { \\theta , \\varphi } { \\mathrm { a r g m i n } } \\ \\mathbb { E } _ { ( \\pmb { x } , \\pmb { y } ) \\sim \\mathcal { D } _ { t } } [ \\mathcal { L } ( g _ { \\varphi } ( f _ { \\theta } ( \\pmb { x } ) ) , \\pmb { y } ) ] .\n$$",
246
+ "text_format": "latex",
247
+ "bbox": [
248
+ 372,
249
+ 763,
250
+ 625,
251
+ 791
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "A widely used strategy to preserve old knowledge is knowledge distillation [45], which typically matches the current model with previous model response to current training data using the teacherstudent framework [12, 13, 19]. ",
258
+ "bbox": [
259
+ 174,
260
+ 799,
261
+ 825,
262
+ 840
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "3.1 Learning Representation with Class Augmentation ",
269
+ "text_level": 1,
270
+ "bbox": [
271
+ 173,
272
+ 857,
273
+ 566,
274
+ 872
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "As we focus on non-exemplar based Class-IL, we intentionally avoid storing training samples of old classes. To maintain the generalizability of the learned representations for old classes, existing methods typically restrain the feature extractor from changing [11, 15, 16, 12]. However, this would lead to a trade-off between the plasticity and stability [5], and it would be hard to perform long-step incremental learning. Our high-level idea is to learn transferable and diverse representations to bridge the old and new classes in a better feature space. To delve into this problem, we want to answer two questions: (1) Which part of feature representations tends to be forgotten in incremental learning? (2) How to facilitate the representation learning for incremental learning? ",
281
+ "bbox": [
282
+ 173,
283
+ 882,
284
+ 821,
285
+ 911
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "",
292
+ "bbox": [
293
+ 174,
294
+ 90,
295
+ 825,
296
+ 175
297
+ ],
298
+ "page_idx": 3
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "3.1.1 Analyzing Forgetting via Spectral Decomposition ",
303
+ "text_level": 1,
304
+ "bbox": [
305
+ 173,
306
+ 188,
307
+ 566,
308
+ 204
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "In what follows, we explore which part of feature representations tends to be forgotten and may not be transferable across different tasks in incremental learning. To this end, we propose to quantify the sensitivity of the model to different directions in the deep feature space by measuring the similarity of the space before and after learning new tasks. ",
315
+ "bbox": [
316
+ 174,
317
+ 212,
318
+ 825,
319
+ 268
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "Formally, given a feature extractor $f _ { \\pmb { \\theta } , o l d }$ trained on dataset $\\mathcal { D } _ { o l d } = \\{ ( x _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { n }$ . A new dataset $\\mathcal { D } _ { n e w }$ that contains disjoint classes with $\\mathcal { D } _ { o l d }$ is used to update $f _ { \\pmb { \\theta } , o l d }$ , and the updated feature extractor is denoted as $f _ { \\pmb { \\theta } , n e w }$ . For the samples in $\\mathcal { D } _ { o l d }$ , we can get two groups of deep features mapped by $f _ { \\pmb { \\theta } , o l d }$ and $f _ { \\pmb { \\theta } , n e w }$ , respectively. Using eigenvalue decomposition, we could respectively decompose the features mapped by original feature extractor (i.e., $f _ { \\pmb \\theta , o l d } ( \\pmb x _ { i } ) )$ as well as the features mapped by updated feature extractor (i.e., $f _ { \\pmb { \\theta } , n e w } ( \\pmb { x } _ { i } ) )$ to different directions as following: ",
326
+ "bbox": [
327
+ 173,
328
+ 273,
329
+ 825,
330
+ 358
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "equation",
336
+ "img_path": "images/fdee3cf260d9b9b490273ed60c2c85f0989f2b3a294d8e425cde73824dce904d.jpg",
337
+ "text": "$$\n\\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } f _ { \\pmb { \\theta } } ( \\pmb { x } _ { i } ) f _ { \\pmb { \\theta } } ( \\pmb { x } _ { i } ) ^ { \\mathrm { T } } = \\sum _ { j = 1 } ^ { d } \\pmb { u } _ { j } \\lambda _ { j } \\pmb { u } _ { j } ^ { \\mathrm { T } } ,\n$$",
338
+ "text_format": "latex",
339
+ "bbox": [
340
+ 370,
341
+ 363,
342
+ 625,
343
+ 409
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "where $\\lambda _ { j }$ represents the eigenvalue with index $j$ and $\\mathbf { \\Delta } \\mathbf { \\em u } _ { j }$ is its eigenvector. $d$ is the dimensionality of the feature space. Through spectral factorization in Eq. (2), we can represent the original and new representations with two groups of eigenvectors: $\\{ \\pmb { u } _ { o l d , 1 } , . . . , \\pmb { u } _ { o l d , d } \\}$ and $\\{ { \\pmb u } _ { n e w , 1 } , . . . , { \\pmb u } _ { n e w , d } \\}$ . ",
350
+ "bbox": [
351
+ 173,
352
+ 411,
353
+ 825,
354
+ 455
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "Next, we investigate the forgetting or transferability of each direction. Shonkwiler [46] introduced the principal angles [47] to measure the similarity of two subspaces. However, it is unreasonable to treat all eigenvectors equally to calculate the principal angles, regardless of their relative eigenvalues. Inspired by [48], we use corresponding angles, denoted by $\\psi$ , to explore the distance between two subspaces in incremental learning: ",
361
+ "bbox": [
362
+ 174,
363
+ 460,
364
+ 825,
365
+ 531
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Definition 1 (Corresponding Angle) Given two groups of eigenvectors: $\\{ \\pmb { u } _ { o l d , 1 } , . . . , \\pmb { u } _ { o l d , d } \\}$ and $\\{ { \\pmb u } _ { n e w , 1 } , . . . , { \\pmb u } _ { n e w , d } \\}$ , corresponding angle represents the angle between two eigenvectors corresponding to the same eigenvalue value index. The cosine value of the corresponding angle is: ",
372
+ "bbox": [
373
+ 174,
374
+ 536,
375
+ 825,
376
+ 579
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/674365d4f4a9a90d24ee21182cb39589ad639facbdf171651f19de2fdce7d888.jpg",
383
+ "text": "$$\n\\cos ( \\psi _ { j } ) = \\frac { \\langle { \\pmb u } _ { o l d , j } , { \\pmb u } _ { n e w , j } \\rangle } { \\| { \\pmb u } _ { o l d , j } \\| \\cdot \\| { \\pmb u } _ { n e w , j } \\| } ,\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 390,
387
+ 583,
388
+ 606,
389
+ 617
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "where $\\mathbf { \\Delta } \\pmb { u } _ { o l d , j }$ is the $j$ -th eigenvectors with the $j$ -th largest eigenvalue in the old feature space, and similarly for $\\mathbf { \\Delta } \\mathbf { u } _ { n e w , j }$ . Note that $\\| \\pmb { u } _ { o l d , j } \\| = 1$ and $\\| \\boldsymbol { u } _ { n e w , j } \\| = 1$ . For $\\mathrm { I L }$ , the meaning of “preserve old knowledge” refers to maintain the previously learned decision boundary among classes. At representation level, for an old class, the shape (i.e., covariance) of the distributions should not be changed too much. If an eigenvector direction only changes slightly after updating the feature extractor, the corresponding angle is small, and vice versa. Intuitively, the corresponding angle could capture the representation shift between the old and updated feature extractor during incremental learning, and reflect the forgetting along certain directions in the deep feature space. ",
396
+ "bbox": [
397
+ 173,
398
+ 621,
399
+ 825,
400
+ 733
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Based on the metric defined above, we explore the forgetting of different directions in Class-IL. We use LwF-MC [12, 13] as baseline method and train a ResNet-18 [1] on CIFAR-100 [49] using SGD in a 2-step manner. Concretely, the model is first trained on the first 50 classes and then updated on the other 50 classes. Figure 2 (a) shows the absolute cosine values of corresponding angles between the old and new eigenvectors. We can observe that eigenvectors with larger eigenvalues produce larger similarity (small corresponding angles), which indicates those directions are more transferable and less forgettable across different tasks. On the contrary, the eigenvectors with small eigenvalues prefer to move after updating the model on new tasks, and could be regarded as forgettable directions. ",
407
+ "bbox": [
408
+ 173,
409
+ 737,
410
+ 825,
411
+ 849
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "Transferable and Diverse Representations. As demonstrated above, the directions with larger eigenvalues transfer better and suffer less forgetting. This thought-provoking observation indicates that our learned representations should have the following properties: (1) Transferability: the eigenvalues of those several significant directions should be enlarged to transfer across tasks (or classes). (2) Diversity: the number of the directions with significant eigenvalues should be increased. Note that those properties are different from that in the common single-task learning scenario. Actually, reducing the number of directions with significant variance has been seen as a form of feature compression [51], which is linked to generalization by information theory [52, 53]. However, the usual concepts of generalization may not entirely be appropriate for IL, since standard learning only aims to learn compact representations within training classes without considering new class generalizability. In IL, those less discriminative directions for the current task could capture useful representations for future tasks. A recent paper [54] has shown that strong compressed representations can actually hurt the generalization ability in the deep metric learning setting. Therefore, to reduce forgetting and enhance the transferability of the representations, it is important to enlarge the eigenvalues and increase the number of eigenvectors with significant variance. ",
418
+ "bbox": [
419
+ 174,
420
+ 856,
421
+ 825,
422
+ 911
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "image",
428
+ "img_path": "images/a847d226ee3580ebc04448949af3e1e4cf495144dc2eb03ca315145529a0457e.jpg",
429
+ "image_caption": [
430
+ "Figure 2: (a) Absolute cosine values of corresponding angles. (b) Distribution of eigenvalues for baseline, Mixup [37], LS [50], and our classAug training based models. "
431
+ ],
432
+ "image_footnote": [],
433
+ "bbox": [
434
+ 169,
435
+ 82,
436
+ 820,
437
+ 190
438
+ ],
439
+ "page_idx": 4
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "",
444
+ "bbox": [
445
+ 173,
446
+ 241,
447
+ 825,
448
+ 393
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "3.1.2 Learning Representations via Class Augmentation ",
455
+ "text_level": 1,
456
+ "bbox": [
457
+ 173,
458
+ 409,
459
+ 575,
460
+ 424
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "We now exploit our above analysis to propose a simple method for representation learning in ClassIL. Our key idea is to learn transferable and diverse representations by learning more classes at each incremental stage $t$ . To do so, a direct way is to introduce real classes from other datasets as auxiliary. However, it is unrealistic to always have access to other real classes, and which datasets should be used remains unknown. Therefore, we propose class augmentation (classAug) to augment the original classes by synthesizing auxiliary classes based on $\\mathcal { D } _ { t }$ . Concretely, inspired ",
467
+ "bbox": [
468
+ 173,
469
+ 433,
470
+ 826,
471
+ 516
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "by Mixup [37], classAug randomly interpolates two samples $\\scriptstyle { \\mathbf { { \\mathit { x } } } } _ { a }$ and $\\mathbf { \\delta } _ { \\mathbf { \\mathcal { X } } _ { b } }$ from two different classes $a$ and $b$ to generate a new sample $\\pmb { x } _ { a b } ^ { \\mathrm { n e w } }$ representing a new class: ",
478
+ "bbox": [
479
+ 174,
480
+ 516,
481
+ 483,
482
+ 571
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "equation",
488
+ "img_path": "images/2c62d580d54164e680a46a5a9eec602f46e6adcfe628741ea40a58825f6ba714.jpg",
489
+ "text": "$$\n\\begin{array} { r } { \\pmb { x } _ { a b } ^ { \\mathrm { n e w } } = \\lambda \\pmb { x } _ { a } + ( 1 - \\lambda ) \\pmb { x } _ { b } , } \\end{array}\n$$",
490
+ "text_format": "latex",
491
+ "bbox": [
492
+ 238,
493
+ 578,
494
+ 413,
495
+ 597
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "where $\\lambda$ is a random number of interpolation coefficient. For a $k$ -class problem, we can generate $k ( k - 1 ) / 2$ new classes using the above method, which can be further merged to $m$ auxiliary classes. As a result, the original $k$ -class ",
502
+ "bbox": [
503
+ 173,
504
+ 603,
505
+ 485,
506
+ 672
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "image",
512
+ "img_path": "images/181a0feee2667ad82c937d1822282b688f49bffd084261e8171eb8fe738b4674.jpg",
513
+ "image_caption": [
514
+ "Figure 3: Illustration of classAug. "
515
+ ],
516
+ "image_footnote": [],
517
+ "bbox": [
518
+ 500,
519
+ 522,
520
+ 815,
521
+ 646
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "problem in the current task is extended to a $( k + m )$ -class problem. Moreover, we restrict the $\\lambda$ to be sampled from the interval of [0.4, 0.6], to reduce the overlap between the augmented and original classes. At the end of each $\\mathrm { I L }$ stage, the augmented class nodes in the classifier would be removed. ",
528
+ "bbox": [
529
+ 174,
530
+ 672,
531
+ 826,
532
+ 714
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "Discussion. The proposed classAug is related to Mixup [37] which applies random interpolation on a pair of training samples and the respective one-hot labels. However, the interpolated samples in Mixup are near original data, and the number of classes is not changed, but in our method, it is increased. By learning to classify more classes in each stage $t$ , the model could learn more transferable and diverse representations. Figure 2 (b) displays and compares the eigenvalues 2 of representations learned with different methods on the first 50 classes of CIFAR-100. It is obvious that the proposed classAug can enhance the value of eigenvalues significantly, and produce more directions with significant variance compared with other methods. On the contrary, Mixup and Label-Smoothing (LS) [50] lead to significantly smaller eigenvalues for the several top eigenvectors, which represent more compact representations. Indeed, the compression effect of soft-label based methods has also been demonstrated in [51, 50]. As shown in Section 4.3, classAug can improve the performance of Class-IL significantly, while Mixup and LS have negative effect in our experiments. ",
539
+ "bbox": [
540
+ 173,
541
+ 719,
542
+ 825,
543
+ 886
544
+ ],
545
+ "page_idx": 4
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "3.2 Learning Classifier with Semantic Augmentation ",
550
+ "text_level": 1,
551
+ "bbox": [
552
+ 173,
553
+ 90,
554
+ 552,
555
+ 107
556
+ ],
557
+ "page_idx": 5
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "As demonstrated in Section 1, classifier bias is another problem in Class-IL. When learning new classes, the previously learned decision boundary would suffer from catastrophic distortion and thus the test samples from old classes could be easily mapped to wrong classes. To overcome this issue, we propose semantic augmentation (semanAug), which leverages the distribution information (i.e., class mean and covariance) of old classes to regularize the learning of the classifier. Formally, for each old class $k \\in \\{ 1 , . . . , \\mathcal { C } _ { o l d } \\}$ , we can generate $M$ instances in the deep feature space from its distribution, i.e., $\\widetilde { z } _ { k } \\backsim \\mathcal { N } ( \\mu _ { k } , \\gamma \\Sigma _ { k } )$ , in which $\\gamma$ is a non-negative coefficient. Then the generated einstances of old classes and real instances of new classes in the deep feature space can be jointly fed to the classifier for minimizing cross-entropy loss: ",
562
+ "bbox": [
563
+ 173,
564
+ 116,
565
+ 826,
566
+ 242
567
+ ],
568
+ "page_idx": 5
569
+ },
570
+ {
571
+ "type": "equation",
572
+ "img_path": "images/bdce3d92d4e559ac126a79ce9857ed09f3abcccc96e0201907bb63030375f671.jpg",
573
+ "text": "$$\n\\mathcal { L } _ { t } = \\frac { 1 } { n _ { t } } \\sum _ { i = 1 } ^ { n _ { t } } - \\log \\left( \\frac { e ^ { \\varphi _ { y _ { i } } ^ { \\mathrm { T } } z _ { i } + b _ { y _ { i } } } } { \\sum _ { c = 1 } ^ { \\mathcal { C } _ { a l l } } e ^ { \\varphi _ { c } ^ { \\mathrm { T } } z _ { i } + b _ { c } } } \\right) + \\frac { 1 } { \\mathcal { C } _ { o l l } } \\sum _ { k = 1 } ^ { \\mathcal { C } _ { o l l } } \\frac { 1 } { M } \\sum _ { m = 1 } ^ { M } - \\log \\left( \\frac { e ^ { \\varphi _ { k } ^ { \\mathrm { T } } \\widetilde z _ { k , m } + b _ { k } } } { \\sum _ { c = 1 } ^ { \\mathcal { C } _ { a l l } } e ^ { \\varphi _ { c } ^ { \\mathrm { T } } \\widetilde z _ { k , m } + b _ { c } } } \\right) _ { \\textstyle ; }\n$$",
574
+ "text_format": "latex",
575
+ "bbox": [
576
+ 196,
577
+ 247,
578
+ 781,
579
+ 291
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "$\\mathcal { L } _ { t , o l d }$ {z: loss on generated features of old classes ",
586
+ "bbox": [
587
+ 511,
588
+ 299,
589
+ 738,
590
+ 310
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "where $n _ { t }$ is the number of training samples in current task dataset $\\mathcal { D } _ { t }$ , $\\mathcal { C } _ { o l d }$ is the number of total old classes upon stage $t$ , and $\\mathcal { C } _ { a l l } = \\mathcal { C } _ { o l d } + \\mathcal { C } _ { t }$ is the number of all seen classes at stage $t$ . $\\varphi =$ $\\left[ \\varphi _ { 1 } , . . . , \\varphi _ { \\mathcal { C } _ { a l l } } \\right] ^ { \\mathrm { T } } \\in \\mathcal { R } ^ { \\check { C } _ { a l l } \\times d }$ and $b = [ b _ { 1 } , . . . , b _ { { \\mathcal { C } } _ { a l l } } ] ^ { \\mathrm { T } } \\in { \\mathcal { R } } ^ { { \\mathcal { C } } _ { a l l } }$ are the weight matrix and bias vector of the last fully connected layer, respectively. ",
597
+ "bbox": [
598
+ 173,
599
+ 316,
600
+ 826,
601
+ 375
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "In Class-IL, the second term in Eq. (5), $\\mathcal { L } _ { t , o l d }$ , is computationally inefficient when $M$ and $\\mathcal { C } _ { o l d }$ are large. In the following, we present an easy-to-compute way to implicitly generate infinite instances in the deep feature space for old classes. ",
608
+ "bbox": [
609
+ 174,
610
+ 378,
611
+ 823,
612
+ 421
613
+ ],
614
+ "page_idx": 5
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "Upper bound of $\\mathcal { L } _ { t , o l d }$ . Concretely, in the case of $M \\to \\infty$ , the second term in Eq. (5): ",
619
+ "bbox": [
620
+ 173,
621
+ 426,
622
+ 750,
623
+ 443
624
+ ],
625
+ "page_idx": 5
626
+ },
627
+ {
628
+ "type": "equation",
629
+ "img_path": "images/7552e473158fd4bb866ffc27efa5949f3e4828470358fa3d38249529b552a6a3.jpg",
630
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\mathcal { L } _ { t , o l d } = \\frac { 1 } { \\tilde { C } _ { o l d } } \\sum _ { k = 1 } ^ { \\tilde { C } _ { o l d } } \\mathbb { E } _ { \\Xi _ { k } } \\left[ - \\log \\left( \\frac { e ^ { \\varphi _ { k } ^ { \\mathsf { T } } \\bar { \\varepsilon } _ { k } + b _ { k } } } { \\sum _ { c = 1 } ^ { \\tilde { C } _ { o l d } } e ^ { \\varphi _ { c } ^ { \\Gamma } \\bar { \\varepsilon } _ { k } + b _ { c } } } \\right) \\right] = \\frac { 1 } { \\tilde { C } _ { o l d } } \\sum _ { k = 1 } ^ { \\tilde { C } _ { o l d } } \\mathbb { E } _ { \\Xi _ { k } } \\left[ \\log \\left( \\displaystyle \\sum _ { c = 1 } ^ { \\tilde { C } _ { o l l } } e ^ { ( \\varphi _ { c } ^ { \\mathsf { T } } - \\varphi _ { k } ^ { \\mathsf { T } } ) \\bar { \\varepsilon } _ { k } + ( b _ { c } - b _ { k } ) } \\right) \\right] } \\\\ { \\displaystyle \\leqslant \\frac { 1 } { \\tilde { C } _ { o l d } } \\sum _ { k = 1 } ^ { \\infty } \\log \\left( \\mathbb { E } _ { \\Xi _ { k } } \\left[ \\displaystyle \\sum _ { c = 1 } ^ { \\tilde { C } _ { o l l } } e ^ { ( \\varphi _ { c } ^ { \\mathsf { T } } - \\varphi _ { k } ^ { \\mathsf { T } } ) \\bar { \\varepsilon } _ { k } + ( b _ { c } - b _ { k } ) } \\right] \\right) } \\\\ { \\displaystyle = \\frac { 1 } { \\tilde { C } _ { o l d } } \\sum _ { k = 1 } ^ { \\infty } \\log \\left( \\displaystyle \\sum _ { c = 1 } ^ { \\tilde { C } _ { o l l } } e ^ { \\nu _ { c , k } ^ { \\mathsf { T } } \\mu _ { k } + ( b _ { c } - b _ { k } ) + \\frac { \\gamma } { 2 } \\upsilon _ { c , k } ^ { \\mathsf { T } } \\Sigma _ { k } \\nu _ { c , k } } \\right) . } \\end{array}\n$$",
631
+ "text_format": "latex",
632
+ "bbox": [
633
+ 181,
634
+ 448,
635
+ 820,
636
+ 571
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "In above equation, ${ \\pmb v } _ { c , k } = { \\pmb \\varphi } _ { c } - { \\pmb \\varphi } _ { k }$ . The inequality is based on Jensen’s inequality $\\mathbb { E } [ \\log ( X ) ] \\leqslant$ $\\log \\mathbb { E } [ X ]$ , and the last equality is obtained by using the moment-generating function $\\mathbb { E } [ e ^ { t X } ] =$ $e ^ { t \\mu + { \\frac { 1 } { 2 } } \\sigma ^ { 2 } t ^ { 2 } }$ , $X \\backsim \\mathcal N ( \\mu , \\sigma ^ { 2 } )$ , due to the fact that $( \\varphi _ { c } - \\varphi _ { k } ) \\widetilde { z } _ { k } + ( b _ { c } - b _ { k } )$ is a Gaussian random evariable. As can be seen, Eq. (6) is an upper bound of original $\\mathcal { L } _ { t , o l d }$ , which provides an elegant and much efficient way to implicitly generate infinite instances in the deep feature space for old classes. The $\\mathcal { L } _ { t , o l d }$ in Eq. (6) can be write in the common cross-entropy loss form: ",
643
+ "bbox": [
644
+ 173,
645
+ 579,
646
+ 826,
647
+ 669
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "equation",
653
+ "img_path": "images/8435c172106fae4978404824b5fd946f94c74cc124abc8c2fe6fc99da0439dd3.jpg",
654
+ "text": "$$\n\\mathcal { L } _ { t , s e m a n A u g } \\triangleq \\mathcal { L } _ { t , o l d } = \\frac { 1 } { \\mathcal { C } _ { o l d } } \\sum _ { k = 1 } ^ { \\mathcal { C } _ { o l d } } - \\log \\left( \\frac { e ^ { \\varphi _ { k } ^ { \\mathrm { T } } \\mu _ { k } + b _ { k } } } { \\sum _ { c = 1 } ^ { \\mathcal { C } _ { a l l } } e ^ { \\varphi _ { c } ^ { \\mathrm { T } } \\mu _ { k } + b _ { c } + \\frac { \\gamma } { 2 } \\upsilon _ { c , k } ^ { \\mathrm { T } } \\Sigma _ { k } v _ { c , k } } } \\right) .\n$$",
655
+ "text_format": "latex",
656
+ "bbox": [
657
+ 251,
658
+ 675,
659
+ 745,
660
+ 719
661
+ ],
662
+ "page_idx": 5
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Intuitively, $\\mathcal { L } _ { t , o l d }$ implicitly performs semantic transformations for $\\mu _ { k }$ based on $\\Sigma _ { k }$ . To maintain the decision boundary, $\\gamma$ should be smaller if the distribution of a class is near the decision boundary; instead, $\\gamma$ should be bigger if the distance is relatively far. We set $\\gamma = 2$ in our experiments. In addition, we can observe that when $\\gamma = 0$ , only the class means are used for knowledge retention. ",
667
+ "bbox": [
668
+ 173,
669
+ 724,
670
+ 825,
671
+ 781
672
+ ],
673
+ "page_idx": 5
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "Discussion. (1) Although the derivation of the upper bound in Eq. (6) is similar with ISDA [22], both our motivation and the way to leverage semanAug are different from ISDA. When learning new classes, we only apply semanAug for the class mean of each old class based on the memorized distribution information. While ISDA applies semanAug on all the training samples to improve generalization in standard supervised learning. In addition, a crucial step in ISDA is to estimate the mean and covariance matrix of each class in an online manner. Differently, semanAug is naturally suitable for Class-IL, since the distribution of old classes can be estimated with all training samples at the end of each learning stage. (2) Using previous class statistics for $\\mathrm { I L }$ has also been explored in IL2M [55]. However, our method differs from IL2M in both the statistics information and the way to leverage them. First, The class statistics in IL2M is the prediction score of the classifier, while ours is the class distribution statistics in the deep feature space. Second, IL2M uses the class statistics to calibrate the prediction of a continual learner in a post-processing manner, while our method leverage the statistics to automatically learn a balanced classifier. ",
678
+ "bbox": [
679
+ 173,
680
+ 786,
681
+ 825,
682
+ 911
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "image",
688
+ "img_path": "images/922d60182efbe7fdd1ddad11c8566318e3d0dd841048f2bc6908945a1fbce749.jpg",
689
+ "image_caption": [
690
+ "Figure 4: Illustration of our dual augmentation framework (IL2A) for Class-IL. On the one hand, the training samples of new classes at current task are augmented via the proposed classAug. On the other hand, the distributions of old classes are retained by semanAug in the deep feature space. "
691
+ ],
692
+ "image_footnote": [],
693
+ "bbox": [
694
+ 179,
695
+ 93,
696
+ 815,
697
+ 239
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "",
704
+ "bbox": [
705
+ 174,
706
+ 309,
707
+ 825,
708
+ 366
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "3.3 The Dual Augmentation Learning Framework ",
715
+ "text_level": 1,
716
+ "bbox": [
717
+ 174,
718
+ 381,
719
+ 534,
720
+ 397
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "With classAug for representation bias and semanAug for classifier bias, Figure 4 describes the learning process of the dual augmentation framework (IL2A). We also use the well-known knowledge distillation (KD) [19] for two reasons. Firstly, classAug and KD are complementary and focus on different aspect of learning representation. Secondly, KD can reduce the change of feature extractor, which is crucial for semanAug because it implicitly generate instances in the deep feature space from old distribution. The total learning objective at each stage $t$ is as following: ",
727
+ "bbox": [
728
+ 173,
729
+ 406,
730
+ 825,
731
+ 491
732
+ ],
733
+ "page_idx": 6
734
+ },
735
+ {
736
+ "type": "equation",
737
+ "img_path": "images/597d07fee78ab248bc3d9559e70a28eadafeda15ec7ddb6134a7c053f30f8b3e.jpg",
738
+ "text": "$$\n\\mathcal { L } _ { t } = \\mathcal { L } _ { t , n e w } + \\alpha \\mathcal { L } _ { t , s e m a n A u g } + \\beta \\mathcal { L } _ { t , k d } ,\n$$",
739
+ "text_format": "latex",
740
+ "bbox": [
741
+ 362,
742
+ 497,
743
+ 633,
744
+ 515
745
+ ],
746
+ "page_idx": 6
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "where $\\alpha$ and $\\beta$ are two hyper-parameters. $\\mathcal { L } _ { t , n e w }$ and $\\mathcal { L } _ { t , s e m a n A u g }$ are shown in Eq. (5) and Eq. (7), respectively. $\\begin{array} { r } { \\mathcal { L } _ { t , k d } = \\frac { 1 } { n _ { t } } \\sum _ { i = 1 } ^ { n _ { t } } \\| f _ { \\pmb { \\theta } _ { t - 1 } } ( \\pmb { x } _ { i } ) - f _ { \\pmb { \\theta } _ { t } } ( \\pmb { x } _ { i } ) \\| } \\end{array}$ . Note that $\\mathcal { L } _ { t , n e w }$ and $\\mathcal { L } _ { t , s e m a n A u g }$ are applied to both the original and synthesized samples. Algorithm 1 presents the pseudo code of IL2A. ",
751
+ "bbox": [
752
+ 174,
753
+ 521,
754
+ 826,
755
+ 566
756
+ ],
757
+ "page_idx": 6
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "4 Experiments ",
762
+ "text_level": 1,
763
+ "bbox": [
764
+ 174,
765
+ 585,
766
+ 312,
767
+ 603
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "4.1 Evaluation Protocol ",
774
+ "text_level": 1,
775
+ "bbox": [
776
+ 174,
777
+ 616,
778
+ 351,
779
+ 631
780
+ ],
781
+ "page_idx": 6
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "Datasets. We perform our experiments on CIFAR-100 [49] and Tiny-ImageNet [56]. A common setting is to train the model on half of classes for first task, and equal classes in the remaining incremental steps. Based on this, we split the CIFAR-100 dataset in different settings: $5 0 + 5 \\times 1 0$ , $5 0 + \\pm 0 \\times 5$ , $4 0 + 2 { \\pmb \\theta } \\times 3$ . For instance, $5 0 +$ $I { \\pmb \\theta } \\times 5$ represents that the first task contains 50 classes and there are 5 classes for the following 10 tasks. Similarly, the settings for Tiny-ImageNet are $1 0 0 + { \\pmb { 5 } } \\times 2 0 $ , $1 0 0 +$ $1 0 \\times 1 0$ and $1 0 0 { + } 2 { \\pm } 5$ . Intuitively, more classes in each tasks requires the model to learn a harder problem for each task, while increasing the length of the task sequence challenges the model’s retention. ",
786
+ "bbox": [
787
+ 173,
788
+ 641,
789
+ 446,
790
+ 877
791
+ ],
792
+ "page_idx": 6
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Algorithm 1: IL2A: Dual augmentation algorithm ",
797
+ "text_level": 1,
798
+ "bbox": [
799
+ 459,
800
+ 647,
801
+ 792,
802
+ 661
803
+ ],
804
+ "page_idx": 6
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "Randomly initialize $\\Theta ^ { 0 } = \\{ \\theta ^ { 0 } , \\varphi ^ { 0 } \\}$ ; ${ \\mathcal { S } } ^ { 0 } = \\emptyset$ ; \nforeach incremental stage $t \\in \\{ 1 , . . . , T \\}$ do Input: model $\\Theta ^ { t - 1 }$ , data $\\mathcal { D } _ { t } = \\{ ( x _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { n _ { t } }$ ; Output: model $\\Theta ^ { t }$ ; $\\Theta ^ { t } \\bar { } \\Theta ^ { t - 1 }$ ; $\\mathcal { D } _ { t , a u g } = \\{ ( \\boldsymbol { x } _ { i } ^ { \\prime } , \\boldsymbol { y } _ { i } ^ { \\prime } ) \\} _ { i = 1 } ^ { n _ { t } ^ { \\prime } }$ via classAug; add class nodes for augmented classes; if $t = 1$ then train $\\Theta ^ { t }$ by minimizing $\\mathcal { L } ( g _ { \\varphi } ( f _ { \\theta } ( \\pmb { x } ^ { \\prime } ) ) , y ^ { \\prime } )$ ; else train $\\Theta ^ { t }$ by minimizing Eq. (8); $s \\gets$ compute $\\{ \\mu , \\Sigma \\}$ for each class in $\\mathcal { D } _ { t }$ ; $S ^ { t } \\gets S ^ { t - 1 } \\cup s ;$ remove augmented class nodes in classifier; ",
809
+ "bbox": [
810
+ 459,
811
+ 665,
812
+ 794,
813
+ 876
814
+ ],
815
+ "page_idx": 6
816
+ },
817
+ {
818
+ "type": "image",
819
+ "img_path": "images/fcb711f00b1081d5d60c7b70d9e62c8c544bcc4686b010481488154f5665887a.jpg",
820
+ "image_caption": [
821
+ "Figure 5: Results of top-1 accuracy on CIFAR-100 and Tiny-ImageNet under different settings. Solid lines present methods that do not store old exemplars, dashed lines present data replay based methods. "
822
+ ],
823
+ "image_footnote": [],
824
+ "bbox": [
825
+ 171,
826
+ 85,
827
+ 826,
828
+ 319
829
+ ],
830
+ "page_idx": 7
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "in each experiment. All models are trained using Adam [57] optimizer with an initial learning rate of 0.001 for 100 epochs with the mini-batch size of 64. The learning rate is reduced by a factor of 10 at 45 and 90 epochs. We use the same hyper-parameter value for all experiments. Specifically, we set $\\alpha = 1 0$ and $\\beta = 1 0$ in Eq. (8). The number of augmented classes (i.e. The number of augmented classes (i.e., $m$ ) depends on the number of (original) classes at current incremental step. Taking CIFAR-100 as an example, the $m$ is 45 for 5 phases setting where each incremental step has 10 classes; and $m$ is 10 for 10 phases setting where each incremental step has 5 classes. At the end of each incremental stage, we evaluate the model on all seen classes after removing the class nodes of the $m$ augmented classes in the classifier. Our code is available at https://github.com/Impression2805/IL2A. ",
835
+ "bbox": [
836
+ 174,
837
+ 375,
838
+ 825,
839
+ 512
840
+ ],
841
+ "page_idx": 7
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Comparison Methods. Our method (IL2A) does not store any old samples for replay when learning new classes. Therefore, we first compare IL2A with several non-exemplar based approaches: MAS [16], LwF-MC [13], MUC [58], LwM [59]. In addition, we also compare with several exemplar based methods such as iCaRL [13], EEIL [18] and LUCIR [19]. Specifically, for the data replay based methods, we follow [13, 19] to store 20 samples for each class using ‘herd’ selection technique [13]. We report the average top-1 accuracy of all previously seen classes up to each incremental step t. For iCaRL, we respectively report its results of CNN predictions and nearest-mean-of-exemplars classification, denoted as iCaRL-CNN and iCaRL-NME. ",
846
+ "bbox": [
847
+ 173,
848
+ 520,
849
+ 825,
850
+ 630
851
+ ],
852
+ "page_idx": 7
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "4.2 Experimental Results ",
857
+ "text_level": 1,
858
+ "bbox": [
859
+ 176,
860
+ 650,
861
+ 362,
862
+ 665
863
+ ],
864
+ "page_idx": 7
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Main Results. Comparative results are shown in Figure 5. Firstly, we observe that our method performs much better than non-exemplar based methods such as LwF-MC and MUC in the trend of accuracy curve under different settings. Particularly, the gap appears unbridgeable in the long-step Class-IL setting, e.g., 10 phases and 20 phases. This suggests that only constraining old parameters does not suffice to prevent forgetting. We argue that this is partly due to the unaddressed classifier bias. When compared to representative data replay based methods such as iCaRL, EEIL and LUCIR, our method remarkably shows strong performance without storing old samples. ",
869
+ "bbox": [
870
+ 173,
871
+ 676,
872
+ 825,
873
+ 773
874
+ ],
875
+ "page_idx": 7
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "The success of our method can contribute to the proposed classAug and semanAug. Specifically, classAug is applied to new classes of current task, which enables the model to learn more transferable and diverse representations for future classes and in turn, reduces the forgetting of old parameters when learning new classes. While semanAug is applied to old classes of previous tasks, which leverage the valuable distribution information of old classes to learn a unified classifier to connect the classes from different tasks to each other. ",
880
+ "bbox": [
881
+ 174,
882
+ 780,
883
+ 825,
884
+ 863
885
+ ],
886
+ "page_idx": 7
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Ablation Study. To evaluate the effect of each component in IL2A, we perform the ablation study and show the results of 10 phases setting (CIFAR-100) in Table 1. Specifically, the baseline denotes the method that does not generate pseudo-instance using semanAug, but only replays the class-mean of each old class when training new classes. By doing so, we aim to validate the effectiveness of semanAug compared with only replaying class-mean. In summary, we can observe that: (1) Baseline improves the performance of KD significantly. (2) SemanAug improves the performance of baseline from $3 4 . 7 1 \\%$ to $4 2 . 0 9 \\%$ . Those results indicate the effect of the distribution information for maintaining old knowledge in Class-IL. (3) ClassAug also has remarkably effect on baseline, and (4) the performance can be further improved by combing with semanAug, which indicates that those two modules are complementary. Similar results are observed in other settings of CIFAR-100 and Tiny-ImageNet datasets. (5) As for the computational complexity, classAug involves input level sample mixing and the augmented samples are fed to feature extractor. Differently, semanAug performs implicit old instance generation in the deep feature space. Therefore, semanAug is cheaper compared with classAug from the computation perspective. ",
891
+ "bbox": [
892
+ 176,
893
+ 869,
894
+ 823,
895
+ 911
896
+ ],
897
+ "page_idx": 7
898
+ },
899
+ {
900
+ "type": "table",
901
+ "img_path": "images/05cca1f8f6db26a183def87fe02b1c2a8780825a76ebcfab0dcd1e1b41f01d4e.jpg",
902
+ "table_caption": [
903
+ "Table 1: The effect of each component in IL2A. "
904
+ ],
905
+ "table_footnote": [],
906
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method\\Incremental stage</td><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>Final</td></tr><tr><td rowspan=4 colspan=1>Knowledge Distillationbaseline+ semanAug+ classAug</td><td rowspan=1 colspan=1>78.78</td><td rowspan=1 colspan=1>30.18</td><td rowspan=1 colspan=1>20.71</td><td rowspan=1 colspan=1>14.61</td><td rowspan=1 colspan=1>11.87</td><td rowspan=1 colspan=1>8.80</td><td rowspan=1 colspan=1>7.70</td><td rowspan=1 colspan=1>7.23</td><td rowspan=1 colspan=1>7.10</td><td rowspan=1 colspan=1>6.05</td><td rowspan=1 colspan=1>6.04</td></tr><tr><td rowspan=1 colspan=1>78.86</td><td rowspan=1 colspan=1>62.85</td><td rowspan=1 colspan=1>56.96</td><td rowspan=1 colspan=1>54.66</td><td rowspan=1 colspan=1>51.72</td><td rowspan=1 colspan=1>47.33</td><td rowspan=1 colspan=1>43.61</td><td rowspan=1 colspan=1>40.12</td><td rowspan=1 colspan=1>40.76</td><td rowspan=1 colspan=1>36.55</td><td rowspan=1 colspan=1>34.71</td></tr><tr><td rowspan=1 colspan=1>79.16</td><td rowspan=1 colspan=1>69.14</td><td rowspan=1 colspan=1>60.68</td><td rowspan=1 colspan=1>58.18</td><td rowspan=1 colspan=1>54.77</td><td rowspan=1 colspan=1>50.89</td><td rowspan=1 colspan=1>48.45</td><td rowspan=1 colspan=1>46.29</td><td rowspan=1 colspan=1>46.97</td><td rowspan=1 colspan=1>44.38</td><td rowspan=1 colspan=1>42.09</td></tr><tr><td rowspan=1 colspan=1>79.72</td><td rowspan=1 colspan=1>68.30</td><td rowspan=1 colspan=1>64.15</td><td rowspan=1 colspan=1>60.15</td><td rowspan=1 colspan=1>56.21</td><td rowspan=1 colspan=1>52.61</td><td rowspan=1 colspan=1>51.48</td><td rowspan=1 colspan=1>46.48</td><td rowspan=1 colspan=1>46.36</td><td rowspan=1 colspan=1>43.63</td><td rowspan=1 colspan=1>41.56</td></tr><tr><td rowspan=1 colspan=1> + classAug + semanAug</td><td rowspan=1 colspan=1>81.08</td><td rowspan=1 colspan=1>74.54</td><td rowspan=1 colspan=1>66.28</td><td rowspan=1 colspan=1>63.89</td><td rowspan=1 colspan=1>58.80</td><td rowspan=1 colspan=1>54.97</td><td rowspan=1 colspan=1>51.32</td><td rowspan=1 colspan=1>48.64</td><td rowspan=1 colspan=1>49.74</td><td rowspan=1 colspan=1>47.05</td><td rowspan=1 colspan=1>45.07</td></tr></table>",
907
+ "bbox": [
908
+ 181,
909
+ 103,
910
+ 823,
911
+ 202
912
+ ],
913
+ "page_idx": 8
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "",
918
+ "bbox": [
919
+ 173,
920
+ 220,
921
+ 826,
922
+ 375
923
+ ],
924
+ "page_idx": 8
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "4.3 Further Analysis ",
929
+ "text_level": 1,
930
+ "bbox": [
931
+ 174,
932
+ 391,
933
+ 331,
934
+ 406
935
+ ],
936
+ "page_idx": 8
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "ClassAug Improves both Plasticity and Stability in Class-IL. To analyze the effectiveness of classAug more concretely, we explore how it affects the new tasks accuracy (↑) and average forgetting (↓) (CIFAR-100, 10 phases setting). Average forgetting [60] is defined to estimate the forgetting of previous tasks. The forgetting measure $\\bar { f } _ { k } ^ { i }$ of the $i$ -th task after training $k$ -th task is defined as $f _ { k } ^ { i } = \\operatorname* { m a x } _ { t \\in 1 , \\ldots , k - 1 } ( a _ { t , i } - a _ { k , i } ) , \\forall i < k$ , in which $a _ { m , n }$ is the accuracy of task $n$ after training task $m$ . ",
941
+ "bbox": [
942
+ 173,
943
+ 417,
944
+ 826,
945
+ 494
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "The average forgetting measure $F _ { k }$ is then defined as 1k−1 Pk−1i=1 f ik. Intuitively, new task accuracy can be viewed as the plasticity of the incremental learner and the average forgetting can be viewed as the stability of the incremental learner. Figure 6 (a) and (b) report the results, from which we see that classAug simultaneously improves the new task accuracy and reduces the average forgetting. Specifically, the significant improvement on new task accuracy implies that the model training with classAug is a good initialization for the following tasks. Consequently, classAug is effective to improve the trade-off between plasticity and stability of a continual learner. ",
952
+ "bbox": [
953
+ 173,
954
+ 497,
955
+ 825,
956
+ 598
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "image",
962
+ "img_path": "images/74b1ad39f42f5a89b574e88fa477fed16c9e657e8a74d5d3be13dc2d0e41c807.jpg",
963
+ "image_caption": [
964
+ "Figure 6: (a, b) ClassAug can simultaneously improve the new task accuracy and reduce the average forgetting. (c) Compared with classAug, Mixup and LS have negative effect for Class-IL. "
965
+ ],
966
+ "image_footnote": [],
967
+ "bbox": [
968
+ 171,
969
+ 611,
970
+ 820,
971
+ 729
972
+ ],
973
+ "page_idx": 8
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Compare ClassAug with Other Regularizers. We compare the proposed classAug with Mixup and LS in Figure 6 (c), where the baseline (with semanAug) represents our IL2A without using classAug. As can be seen, Mixup and LS have negative effect on the final accuracy. This phenomenon could be interpreted based on the analysis in Section 3.1.1 and Figure 2 (b). Specifically, those regularizers result in more compressed representations, damaging the transferability of the representations. Besides, the label smoothing strategy also affects the weights of old classes in the classifier, thus increasing the classifier bias. Similar results have also been reported in [61]. ",
978
+ "bbox": [
979
+ 173,
980
+ 779,
981
+ 825,
982
+ 877
983
+ ],
984
+ "page_idx": 8
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Discussion of Covariance Matrix. In our main experiments, we use the original covariance matrix for semanAug. However, storing the original covariance matrix might be inefficient when the matrix dimension is large. An alternative way is to only store the elements on the diagonal, which could greatly reduce the cost of memory. Figure 7 also reports the results of using the diagonal covariance matrix. Under different settings, using the original covariance matrix is slightly better than the diagonal form. This is reasonable because the original covariance matrix stores more distribution information of old classes. However, using the diagonal covariance matrix would be more memory-efficient in practice. ",
989
+ "bbox": [
990
+ 173,
991
+ 883,
992
+ 821,
993
+ 911
994
+ ],
995
+ "page_idx": 8
996
+ },
997
+ {
998
+ "type": "table",
999
+ "img_path": "images/16676de3fa28355396593ce2fac1d385d8b52e0ede9eb599fca010e11dc5394e.jpg",
1000
+ "table_caption": [
1001
+ "Table 2: OOD detection results. $\\uparrow$ indicates higher is better. "
1002
+ ],
1003
+ "table_footnote": [],
1004
+ "table_body": "<table><tr><td rowspan=\"2\">0OD</td><td colspan=\"3\">AUROC↑</td><td colspan=\"3\">AUPR-In↑</td><td colspan=\"3\">AUPR-Out个</td></tr><tr><td>baseline</td><td>Mixup</td><td>classAug</td><td>baseline</td><td>Mixup</td><td>classAug</td><td>baseline</td><td>Mixup</td><td>classAug</td></tr><tr><td>MNIST</td><td>87.02</td><td>92.46</td><td>94.99</td><td>79.89</td><td>89.00</td><td>93.05</td><td>92.26</td><td>95.48</td><td>97.20</td></tr><tr><td>Fashion-MNIST</td><td>90.28</td><td>93.37</td><td>94.40</td><td>86.18</td><td>89.11</td><td>92.43</td><td>94.26</td><td>96.19</td><td>96.78</td></tr><tr><td>LSUN</td><td>88.50</td><td>88.80</td><td>93.90</td><td>83.48</td><td>74.71</td><td>91.08</td><td>92.92</td><td>94.09</td><td>96.73</td></tr><tr><td>Tiny-ImageNet</td><td>88.49</td><td>84.96</td><td>93.92</td><td>83.84</td><td>64.02</td><td>91.77</td><td>92.70</td><td>92.19</td><td>96.55</td></tr><tr><td>Mean</td><td>88.57</td><td>89.90</td><td>94.30</td><td>83.35</td><td>79.21</td><td>92.08</td><td>93.04</td><td>94.49</td><td>96.81</td></tr></table>",
1005
+ "bbox": [
1006
+ 181,
1007
+ 104,
1008
+ 825,
1009
+ 210
1010
+ ],
1011
+ "page_idx": 9
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "",
1016
+ "bbox": [
1017
+ 173,
1018
+ 227,
1019
+ 823,
1020
+ 310
1021
+ ],
1022
+ "page_idx": 9
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "ClassAug Improves Confidence Reliability. During continuous use of a machine learning system in open-world applications, there are mainly three key steps [62]. The first step is out-of-distribution (OOD) detection [63], which requires the system to detect unknown samples from novel classes. The second step is to label the collected unknown samples by humans or automatic algorithms [64]. Finally, the system must scale and adapt incrementally to learn the novel classes, which is the Class-IL problem studied in this paper. Recently studies found that DNNs are overconfident for their predictions [63, 65], lacking the ability to detect samples from unknown classes. In real-world applications, we expect a continual learner has good OOD detection ability. ",
1027
+ "bbox": [
1028
+ 174,
1029
+ 315,
1030
+ 599,
1031
+ 482
1032
+ ],
1033
+ "page_idx": 9
1034
+ },
1035
+ {
1036
+ "type": "image",
1037
+ "img_path": "images/b0ee6625c379c219150f00397ededed20299312038543491731ac6f129574fbc.jpg",
1038
+ "image_caption": [
1039
+ "Figure 7: Original v.s. diagonal covariance matrix. CIFAR-100. "
1040
+ ],
1041
+ "image_footnote": [],
1042
+ "bbox": [
1043
+ 614,
1044
+ 320,
1045
+ 825,
1046
+ 444
1047
+ ],
1048
+ "page_idx": 9
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "We explore the OOD detection ability of the proposed classAug. Concretely, we train a ResNet-18 on CIFAR-10, and the test samples from CIFAR-10 are in-distribution. For OOD examples, we test on MNIST [66], Fashion-MNIST [67], LSUN (resized) [68] and Tiny-ImageNet (resized). As shown in Table 2, classAug noticeably improves the OOD detection performance of baseline [63] on commonly used metrics such as AUROC, AUPR-In and AUPR-Out [63]. By recognizing synthetic samples, DNNs could learn more robust and transferable representations which could be generalized to OOD samples. Moreover, as shown in Table 2, Mixup sometimes damages the performance of OOD detection, which further demonstrates the superiority of classAug. ",
1053
+ "bbox": [
1054
+ 174,
1055
+ 488,
1056
+ 825,
1057
+ 599
1058
+ ],
1059
+ "page_idx": 9
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "5 Conclusion ",
1064
+ "text_level": 1,
1065
+ "bbox": [
1066
+ 174,
1067
+ 621,
1068
+ 299,
1069
+ 637
1070
+ ],
1071
+ "page_idx": 9
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "In this paper, we propose a simple and effective dual augmentation framework to address the representation bias and classifier bias in Class-IL. We first investigate the transferability (or forgetting) of representations via spectral decomposition, which motivates us to propose classAug that can learn transferable, diverse and less compact representations for IL. Furthermore, we propose to use semanAug to implicitly generate infinite instances of old classes in the deep feature space during jointly learning of the unified classifier. Experiments show that our method could achieve remarkable performance compared with state-of-the-art Class-IL methods. Future works will consider the dual augmentation framework for more challenging scenarios like Class-IL with distribution shift and OOD data, few-shot Class-IL, and federated incremental learning. ",
1076
+ "bbox": [
1077
+ 174,
1078
+ 652,
1079
+ 825,
1080
+ 777
1081
+ ],
1082
+ "page_idx": 9
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Acknowledgements ",
1087
+ "text_level": 1,
1088
+ "bbox": [
1089
+ 176,
1090
+ 799,
1091
+ 338,
1092
+ 816
1093
+ ],
1094
+ "page_idx": 9
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "This work has been supported by the National Key Research and Development Program under Grant No. 2018AAA0100400, the National Natural Science Foundation of China (NSFC) grants U20A20223, 61633021, 62076236, 61721004, the Key Research Program of Frontier Sciences of CAS under Grant ZDBS-LY-7004, and the Youth Innovation Promotion Association of CAS under Grant 2019141. ",
1099
+ "bbox": [
1100
+ 176,
1101
+ 832,
1102
+ 825,
1103
+ 901
1104
+ ],
1105
+ "page_idx": 9
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "References \n[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778, 2016. 1, 4, 7 \n[2] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, 2009. 1 \n[3] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, pages 1097–1105, 2012. 1, 3 \n[4] Gregory Ditzler, Manuel Roveri, Cesare Alippi, and Robi Polikar. Learning in nonstationary environments: A survey. IEEE Computational Intelligence Magazine, 10(4):12–25, 2015. 1 \n[5] German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019. 1, 4 \n[6] Matthias Delange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Greg Slabaugh, and Tinne Tuytelaars. A continual learning survey: Defying forgetting in classification tasks. IEEE Trans. Pattern Anal. Mach. Intell., 2021. 1 \n[7] Raia Hadsell, Dushyant Rao, Andrei A Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in Cognitive Sciences, 2020. 1 \n[8] Ian J. Goodfellow, M. Mirza, Xia Da, Aaron C. Courville, and Yoshua Bengio. An empirical investigation of catastrophic forgeting in gradient-based neural networks. CoRR, 2014. 1 \n[9] M. McCloskey and N. J. Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of Learning and Motivation, pages 109–165, 1989. 1 \n[10] Robert M French. Interactive tandem networks and the sequential learning problem. Citeseer. 1 \n[11] J. Kirkpatrick, Razvan Pascanu, Neil C. Rabinowitz, J. Veness, G. Desjardins, Andrei A. Rusu, K. Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, C. Clopath, D. Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, pages 3521 – 3526, 2017. 1, 2, 3, 4 \n[12] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Trans. Pattern Anal. Mach. Intell., pages 2935–2947, 2018. 1, 2, 3, 4 \n[13] Sylvestre-Alvise Rebuffi, A. Kolesnikov, Georg Sperl, and Christoph H. Lampert. icarl: Incremental classifier and representation learning. In CVPR, pages 5533–5542, 2017. 1, 3, 4, 8 \n[14] Ameya Prabhu, Philip HS Torr, and Puneet K Dokania. Gdumb: A simple approach that questions our progress in continual learning. In ECCV, pages 524–540, 2020. 1 \n[15] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In ICML, pages 3987–3995, 2017. 1, 2, 3, 4 \n[16] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In ECCV, pages 139–154, 2018. 1, 2, 3, 4, 8 \n[17] Y. Wu, Yan-Jia Chen, Lijuan Wang, Yuancheng Ye, Zicheng Liu, Yandong Guo, and Yun Fu. Large scale incremental learning. In CVPR, pages 374–382, 2019. 1, 3 \n[18] Francisco M Castro, Manuel J Marín-Jiménez, Nicolás Guil, Cordelia Schmid, and Karteek Alahari. End-to-end incremental learning. In ECCV, pages 233–248, 2018. 1, 2, 8 \n[19] Saihui Hou, Xinyu Pan, Chen Change Loy, Zilei Wang, and D. Lin. Learning a unified classifier incrementally via rebalancing. In CVPR, pages 831–839, 2019. 2, 3, 7, 8 \n[20] Bowen Zhao, Xi Xiao, Guojun Gan, Bin Zhang, and Shu-Tao Xia. Maintaining discrimination and fairness in class incremental learning. In CVPR, pages 13205–13214, 2020. 2 \n[21] Laurens Maaten, Minmin Chen, Stephen Tyree, and Kilian Weinberger. Learning with marginalized corrupted features. In ICML, pages 410–418, 2013. 2 \n[22] Yulin Wang, Gao Huang, Shiji Song, Xuran Pan, Yitong Xia, and Cheng Wu. Regularizing deep networks with semantic data augmentation. IEEE Trans. Pattern Anal. Mach. Intell., 2021. 2, 3, 6 \n[23] Yen-Chang Hsu, Yen-Cheng Liu, Anita Ramasamy, and Zsolt Kira. Re-evaluating continual learning scenarios: A categorization and case for strong baselines. arXiv preprint arXiv:1810.12488, 2018. 3 \n[24] Gido M Van de Ven and Andreas S Tolias. Three scenarios for continual learning. arXiv preprint arXiv:1904.07734, 2019. 3 \n[25] Arthur Douillard, Matthieu Cord, Charles Ollion, Thomas Robert, and Eduardo Valle. Podnet: Pooled outputs distillation for small-tasks incremental learning. In ECCV, pages 86–102, 2020. 3 \n[26] Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, and Gerald Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. In ICLR, 2018. 3 \n[27] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. In NeurIPS, 2017. 3 \n[28] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. In ICLR, 2019. 3 \n[29] Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. In NeurIPS, pages 2994–3003, 2017. 3 \n[30] Chenshen Wu, L. Herranz, X. Liu, Y. Wang, Joost van de Weijer, and B. Raducanu. Memory replay gans: Learning to generate new categories without forgetting. In NeurIPS, pages 5962–5972, 2018. 3 \n[31] Ye Xiang, Ying Fu, Pan Ji, and Hua Huang. Incremental learning using conditional adversarial networks. In ICCV, pages 6618–6627, 2019. 3 \n[32] Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. In ICLR, 2018. 3 \n[33] Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016. 3 \n[34] Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In CVPR, pages 7765–7773, 2018. 3 \n[35] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. In ICML, pages 4548–4557, 2018. 3 \n[36] Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. In ICLR, 2018. 3 \n[37] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. Mixup: Beyond empirical risk minimization. In ICLR, 2018. 3, 5 \n[38] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, pages 6023–6032, 2019. 3 \n[39] Yoshua Bengio, Grégoire Mesnil, Yann Dauphin, and Salah Rifai. Better mixing via deep representations. In ICML, pages 552–560, 2013. 3 \n[40] Paul Upchurch, Jacob Gardner, Geoff Pleiss, Robert Pless, Noah Snavely, Kavita Bala, and Kilian Weinberger. Deep feature interpolation for image content changes. In CVPR, pages 7064–7073, 2017. 3 \n[41] Qi Cai, Yu Wang, Yingwei Pan, Ting Yao, and Tao Mei. Joint contrastive learning with infinite possibilities. In NeurIPS, 2020. 3 \n[42] Shuang Li, Mixue Xie, Kaixiong Gong, Chi Harold Liu, Yulin Wang, and Wei Li. Transferable semantic augmentation for domain adaptation. arXiv preprint arXiv:2103.12562, 2021. 3 \n[43] Shuang Li, Kaixiong Gong, Chi Harold Liu, Yulin Wang, Feng Qiao, and Xinjing Cheng. Metasaug: Meta semantic augmentation for long-tailed visual recognition. arXiv preprint arXiv:2103.12579, 2021. 3 \n[44] Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and Simone Calderara. Dark experience for general continual learning: a strong, simple baseline. In NeurIPS, 2020. 3, 7 \n[45] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 3 \n[46] Clayton Shonkwiler. Poincaré duality angles for riemannian manifolds with boundary. arXiv preprint arXiv:0909.1967, 2009. 4 \n[47] Jianming Miao and Adi Ben-Israel. On principal angles between subspaces in rn. Linear algebra and its applications, 171:81–98, 1992. 4 \n[48] Xinyang Chen, Sinan Wang, Mingsheng Long, and Jianmin Wang. Transferability vs. discriminability: Batch spectral penalization for adversarial domain adaptation. In ICML, pages 1081–1090, 2019. 4 \n[49] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, 2009. 4, 7 \n[50] Rafael Müller, Simon Kornblith, and Geoffrey E. Hinton. When does label smoothing help? In NeurIPS, pages 4696–4705, 2019. 5 \n[51] Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David Lopez-Paz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In ICML, pages 6438–6447, 2019. 5 \n[52] Naftali Tishby and Noga Zaslavsky. Deep learning and the information bottleneck principle. In 2015 IEEE Information Theory Workshop (ITW), pages 1–5, 2015. 5 \n[53] Ravid Shwartz-Ziv and Naftali Tishby. Opening the black box of deep neural networks via information. arXiv preprint arXiv:1703.00810, 2017. 5 \n[54] Karsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta, Björn Ommer, and Joseph Paul Cohen. Revisiting training strategies and generalization performance in deep metric learning. In ICML, 2020. 5 \n[55] Eden Belouadah and Adrian Popescu. Il2m: Class incremental learning with dual memory. In ICCV, pages 583–592, 2019. 6 \n[56] Leon Yao and John Miller. Tiny imagenet classification with convolutional neural networks. CS 231N. 7 \n[57] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 8 \n[58] Yu Liu, Sarah Parisot, Gregory G. Slabaugh, Xu Jia, Ales Leonardis, and Tinne Tuytelaars. More classifiers, less forgetting: A generic multi-classifier paradigm for incremental learning. In ECCV, pages 699–716, 2020. 8 \n[59] Prithviraj Dhar, Rajat Vikram Singh, Kuan-Chuan Peng, Ziyan Wu, and Rama Chellappa. Learning without memorizing. In CVPR, pages 5138–5146, 2019. 8 \n[60] Arslan Chaudhry, P. Dokania, Thalaiyasingam Ajanthan, and P. Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. In ECCV, pages 532–547, 2018. 9 \n[61] Sudhanshu Mittal, Silvio Galesso, and Thomas Brox. Essentials for class incremental learning. arXiv preprint arXiv:2102.09517, 2021. 9 \n[62] Xu-Yao Zhang, Cheng-Lin Liu, and Ching Y Suen. Towards robust pattern recognition: A review. Proceedings of the IEEE, 108(6):894–922, 2020. 10 \n[63] Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In ICLR, 2017. 10 \n[64] Kai Han, Sylvestre-Alvise Rebuffi, Sébastien Ehrhardt, Andrea Vedaldi, and Andrew Zisserman. Autonovel: Automatically discovering and learning novel visual categories. IEEE Trans. Pattern Anal. Mach. Intell., 2021. 10 \n[65] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, pages 1321–1330, 2017. 10 \n[66] Yann LeCun and Corinna Cortes. The mnist database of handwritten digits. 2005. 10 \n[67] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. 10 \n[68] Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. ArXiv, abs/1506.03365, 2015. 10 ",
1110
+ "bbox": [
1111
+ 169,
1112
+ 73,
1113
+ 826,
1114
+ 924
1115
+ ],
1116
+ "page_idx": 10
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "",
1121
+ "bbox": [
1122
+ 171,
1123
+ 50,
1124
+ 828,
1125
+ 919
1126
+ ],
1127
+ "page_idx": 11
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "",
1132
+ "bbox": [
1133
+ 171,
1134
+ 50,
1135
+ 830,
1136
+ 900
1137
+ ],
1138
+ "page_idx": 12
1139
+ }
1140
+ ]
parse/train/8dqEeFuhgMG/8dqEeFuhgMG_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/8dqEeFuhgMG/8dqEeFuhgMG_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bkg6RiCqY7/Bkg6RiCqY7.md ADDED
@@ -0,0 +1,342 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DECOUPLED WEIGHT DECAY REGULARIZATION
2
+
3
+ Ilya Loshchilov & Frank Hutter
4
+
5
+ University of Freiburg
6
+ Freiburg, Germany,
7
+ ilya.loshchilov@gmail.com, fh@cs.uni-freiburg.de
8
+
9
+ # ABSTRACT
10
+
11
+ $\mathrm { L _ { 2 } }$ regularization and weight decay regularization are equivalent for standard stochastic gradient descent (when rescaled by the learning rate), but as we demonstrate this is not the case for adaptive gradient algorithms, such as Adam. While common implementations of these algorithms employ $\mathrm { L _ { 2 } }$ regularization (often calling it “weight decay” in what may be misleading due to the inequivalence we expose), we propose a simple modification to recover the original formulation of weight decay regularization by decoupling the weight decay from the optimization steps taken w.r.t. the loss function. We provide empirical evidence that our proposed modification (i) decouples the optimal choice of weight decay factor from the setting of the learning rate for both standard SGD and Adam and (ii) substantially improves Adam’s generalization performance, allowing it to compete with SGD with momentum on image classification datasets (on which it was previously typically outperformed by the latter). Our proposed decoupled weight decay has already been adopted by many researchers, and the community has implemented it in TensorFlow and PyTorch; the complete source code for our experiments is available at https://github.com/loshchil/AdamW-and-SGDW
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Adaptive gradient methods, such as AdaGrad (Duchi et al., 2011), RMSProp (Tieleman & Hinton, 2012), Adam (Kingma & Ba, 2014) and most recently AMSGrad (Reddi et al., 2018) have become a default method of choice for training feed-forward and recurrent neural networks (Xu et al., 2015; Radford et al., 2015). Nevertheless, state-of-the-art results for popular image classification datasets, such as CIFAR-10 and CIFAR-100 Krizhevsky (2009), are still obtained by applying SGD with momentum (Gastaldi, 2017; Cubuk et al., 2018). Furthermore, Wilson et al. (2017) suggested that adaptive gradient methods do not generalize as well as SGD with momentum when tested on a diverse set of deep learning tasks, such as image classification, character-level language modeling and constituency parsing. Different hypotheses about the origins of this worse generalization have been investigated, such as the presence of sharp local minima (Keskar et al., 2016; Dinh et al., 2017) and inherent problems of adaptive gradient methods (Wilson et al., 2017). In this paper, we investigate whether it is better to use $\mathrm { L _ { 2 } }$ regularization or weight decay regularization to train deep neural networks with SGD and Adam. We show that a major factor of the poor generalization of the most popular adaptive gradient method, Adam, is due to the fact that $\mathrm { L _ { 2 } }$ regularization is not nearly as effective for it as for SGD. Specifically, our analysis of Adam leads to the following observations:
16
+
17
+ $\mathbf { L } _ { 2 }$ regularization and weight decay are not identical. Contrary to a belief which seems popular among some practitioners, the two techniques are not equivalent. For SGD, they can be made equivalent by a reparameterization of the weight decay factor based on the learning rate; this is not the case for Adam. In particular, when combined with adaptive gradients, $\mathrm { L _ { 2 } }$ regularization leads to weights with large parameter and/or gradient amplitudes being regularized less than they would be when using weight decay.
18
+
19
+ $\mathbf { L } _ { 2 }$ regularization is not effective in Adam. One possible explanation why Adam and other adaptive gradient methods might be outperformed by SGD with momentum is that common deep learning libraries only implement $\mathrm { L _ { 2 } }$ regularization, not the original weight decay. Therefore, on tasks/datasets where the use of $\mathrm { L _ { 2 } }$ regularization is beneficial for SGD (e.g., on many popular image classification datasets), Adam leads to worse results than SGD with momentum (for which $\mathrm { L _ { 2 } }$ regularization behaves as expected).
20
+
21
+ Weight decay is equally effective in both SGD and Adam. For SGD, it is equivalent to $\mathrm { L _ { 2 } }$ regularization, while for Adam it is not.
22
+
23
+ Optimal weight decay depends on the total number of batch passes/weight updates. Our empirical analysis of SGD and Adam suggests that the larger the runtime/number of batch passes to be performed, the smaller the optimal weight decay. This effect tends to be neglected because hyperparameters are often tuned for a fixed number of training epochs. As a result, the values of the weight decay found to perform best for short runs do not generalize to much longer runs.
24
+
25
+ The main contribution of this paper is to improve regularization in Adam by decoupling the weight decay from the gradient-based update. In a comprehensive analysis, we show that Adam generalizes substantially better with decoupled weight decay than with $\mathrm { L _ { 2 } }$ regularization, achieving $15 \%$ relative improvement in test error (see Figures 2 and 3); this holds true for various image recognition datasets (CIFAR-10 and ImageNet32x32), training budgets (ranging from 100 to 1800 epochs), and learning rate schedules (fixed, drop-step, and cosine annealing; see Figure 1). We demonstrate that our decoupled weight decay renders the optimal settings of the learning rate and the weight decay factor much more independent, thereby easing hyperparameter optimization (see Figure 2).
26
+
27
+ The main motivation of this paper is to improve Adam to make it competitive w.r.t. SGD with momentum even for those problems where it did not use to be competitive. We hope that as a result, practitioners do not need to switch between Adam and SGD anymore, which in turn should reduce the common issue of selecting dataset/task-specific training algorithms and their hyperparameters.
28
+
29
+ 2 DECOUPLING THE WEIGHT DECAY FROM THE GRADIENT-BASED UPDATE
30
+
31
+ In the weight decay described by Hanson & Pratt (1988), the weights $\pmb \theta$ decay exponentially as
32
+
33
+ $$
34
+ \pmb { \theta } _ { t + 1 } = ( 1 - \lambda ) \pmb { \theta } _ { t } - \alpha \nabla f _ { t } ( \pmb { \theta } _ { t } ) ,
35
+ $$
36
+
37
+ where $\lambda$ defines the rate of the weight decay per step and $\nabla f _ { t } ( \pmb { \theta } _ { t } )$ is the $t$ -th batch gradient to be multiplied by a learning rate $\alpha$ . For standard SGD, it is equivalent to standard $\mathrm { L _ { 2 } }$ regularization:
38
+
39
+ Proposition 1 (Weight decay ${ \bf \tau } = { \bf L } _ { 2 }$ reg for standard SGD). Standard SGD with base learning rate $\alpha$ executes the same steps on batch loss functions $f _ { t } ( \pmb \theta )$ with weight decay $\lambda$ (defined in Equation $I$ ) as it executes without weight decay on $\begin{array} { r } { f _ { t } ^ { r e g } ( { \pmb { \theta } } ) = f _ { t } ( { \pmb { \theta } } ) + \frac { \lambda ^ { \prime } } { 2 } \left\| { \pmb { \theta } } \right\| _ { 2 } ^ { 2 } } \end{array}$ , with $\begin{array} { r } { \lambda ^ { \prime } = \frac { \lambda } { \alpha } } \end{array}$ .
40
+
41
+ The proofs of this well-known fact, as well as our other propositions, are given in the Appendix A.
42
+
43
+ Due to this equivalence, $\mathrm { L _ { 2 } }$ regularization is very frequently referred to as weight decay, including in popular deep learning libraries. However, as we will demonstrate later in this section, this equivalence does not hold for adaptive gradient methods. One fact that is often overlooked already for the simple case of SGD is that in order for the equivalence to hold, the $\mathrm { L _ { 2 } }$ regularizer $\lambda ^ { \prime }$ has to be set to $\frac { \lambda } { \underset { \mathbf { x } } { \alpha } }$ , i.e., if there ie learning rate n overall best weight decay value . In order to decouple the effects $\lambda$ , the best value of these two hyperp $\lambda ^ { \prime }$ is tightly coupled withmeters, we advocate to $\alpha$ decouple the weight decay step as proposed by Hanson & Pratt (1988) (Equation 1).
44
+
45
+ Looking first at the case of SGD, we propose to decay the weights simultaneously with the update of $\theta _ { t }$ based on gradient information in Line 9 of Algorithm 1. This yields our proposed variant of SGD with momentum using decoupled weight decay (SGDW). This simple modification explicitly decouples $\lambda$ and $\alpha$ (although some problem-dependent implicit coupling may of course remain as for any two hyperparameters). In order to account for a possible scheduling of both $\alpha$ and $\lambda$ , we introduce a scaling factor $\eta _ { t }$ delivered by a user-defined procedure SetScheduleMultiplier $( t )$ .
46
+
47
+ Now, let’s turn to adaptive gradient algorithms like the popular optimizer Adam Kingma & Ba (2014), which scale gradients by their historic magnitudes. Intuitively, when Adam is run on a loss function $f$ plus $\mathrm { L _ { 2 } }$ regularization, weights that tend to have large gradients in $f$ do not get regularized as much as they would with decoupled weight decay, since the gradient of the regularizer gets scaled along with the gradient of $f$ . This leads to an inequivalence of $\mathrm { L _ { 2 } }$ and decoupled weight decay regularization for adaptive gradient algorithms:
48
+
49
+ <table><tr><td>Algorithm 1 SGD with L2 regularization</td><td></td><td>SGD with decoupled weight decay (SGDW) both</td></tr><tr><td>with momentum</td><td colspan="2"></td></tr></table>
50
+
51
+ 1: given initial learning rate $\alpha \in \mathbb { R }$ , momentum factor $\beta _ { 1 } \in \mathbb { R }$ , weight decay/L2 regularization factor $\overline { { \lambda \in \mathbb { R } } }$
52
+ 2: initialize time step $t 0$ , parameter vector $\pmb { \theta } _ { t = 0 } ~ \in ~ \mathbb { R } ^ { n }$ , first moment vector $\pmb { m } _ { t = 0 } \gets \pmb { \theta }$ , schedule
53
+ multiplier $\eta _ { t = 0 } \in \mathbb { R }$
54
+ 3: repeat
55
+ 4: $t \gets t + 1$
56
+ 5: $\nabla f _ { t } \big ( \pmb { \theta } _ { t - 1 } \big ) \gets \mathrm { S e l e c t B a t c h } \big ( \pmb { \theta } _ { t - 1 } \big )$ . select batch and return the corresponding gradient
57
+ 6: $\pmb { g } _ { t } \gets \nabla f _ { t } ( \pmb { \theta } _ { t - 1 } ) \ + \lambda \pmb { \theta } _ { t - 1 }$
58
+ 7: ηt ← SetScheduleMultiplier(t) . can be fixed, decay, be used for warm restarts
59
+ 8: ${ \pmb { m } } _ { t } \gets \beta _ { 1 } { \pmb { m } } _ { t - 1 } + \eta _ { t } \alpha { \pmb { g } } _ { t }$
60
+ 9: $\pmb { \theta } _ { t } \gets \pmb { \theta } _ { t - 1 } - \pmb { m } _ { t } - \eta _ { t } \lambda \pmb { \theta } _ { t - 1 }$
61
+ 10: until stopping criterion is met
62
+ 11: return optimized parameters ${ \pmb \theta } _ { t }$
63
+ 1: given $\alpha = 0 . 0 0 1 , \beta _ { 1 } = 0 . 9 , \beta _ { 2 } = 0 . 9 9 9 , \epsilon = 1 0 ^ { - 8 } , \lambda \in \mathbb { R }$
64
+ 2: initialize time step $t \gets 0$ , parameter vector $\pmb { \theta } _ { t = 0 } \in \mathbb { R } ^ { n }$ , first moment vector $\pmb { m } _ { t = 0 } \pmb { \theta }$ , second moment
65
+ vector $\pmb { \nu } _ { t = 0 } \pmb { \theta }$ , schedule multiplier $\eta _ { t = 0 } \in \mathbb { R }$
66
+ 3: repeat
67
+ 4: $t \gets t + 1$
68
+ 5: $\nabla f _ { t } ( { \mathbf { \dot { \theta } } } _ { t - 1 } ^ { \phantom { \dagger } } ) \gets \mathrm { S e l e c t B a t c h } ( { \mathbf { \theta } } _ { t - 1 } )$ . select batch and return the corresponding gradient
69
+ 6: $\pmb { \mathscr { g } } _ { t } \gets \nabla f _ { t } ( \pmb { \theta } _ { t - 1 } ) \ + \lambda \pmb { \theta } _ { t - 1 }$
70
+ 7: $\pmb { m } _ { t } \gets \beta _ { 1 } \pmb { m } _ { t - 1 } + ( 1 - \beta _ { 1 } ) \pmb { g } _ { t }$ . here and below all operations are element-wise
71
+ 8: $\pmb { \nu } _ { t } \gets \beta _ { 2 } \pmb { \nu } _ { t - 1 } + ( 1 - \beta _ { 2 } ) \pmb { g } _ { t } ^ { 2 }$
72
+ 9: $\hat { { \pmb { m } } } _ { t } \gets { \pmb { m } } _ { t } / ( 1 - \beta _ { 1 } ^ { t } )$ . $\beta _ { 1 }$ is taken to the power of $t$
73
+ 10: ˆvt ← vt/(1 − βt2) . $\beta _ { 2 }$ is taken to the power of $t$
74
+ 11: $\eta _ { t } \gets$ SetScheduleMultiplier(t) . can be fixed, decay, or also be used for warm restarts
75
+ 12: θt ← θt−1 − ηt αmˆ t/( ˆvt + ) +λθt−1
76
+ 13: until stopping criterion is met
77
+
78
+ <table><tr><td>Algorithm 2 Adam with L2 regularization</td><td>and</td></tr></table>
79
+
80
+ 14: return optimized parameters ${ \pmb \theta } _ { t }$
81
+
82
+ Proposition 2 (Weight decay $\neq \mathrm { L } _ { 2 }$ reg for adaptive gradients). Let $O$ denote an optimizer that has iterates $\pmb { \theta } _ { t + 1 } \pmb { \theta } _ { t } - \alpha \mathbf { M } _ { t } \nabla f _ { t } ( \pmb { \theta } _ { t } )$ when run on batch loss function $f _ { t } ( \pmb \theta )$ without weight decay, and $\pmb { \theta } _ { t + 1 } \gets ( 1 - \lambda ) \pmb { \theta } _ { t } - \alpha \mathbf { M } _ { t } \nabla f _ { t } ( \pmb { \theta } _ { t } )$ when run on $f _ { t } ( \pmb \theta )$ with weight decay, respectively, with $\mathbf { M } _ { t } \neq k \mathbf { I }$ (where $k \in \mathbb { R } ,$ ). Then, for $O$ there exists no $L _ { 2 }$ coefficient $\lambda ^ { \prime }$ such that running $O$ on batch loss $\begin{array} { r } { f _ { t } ^ { r e g } ( { \pmb \theta } ) = f _ { t } ( { \pmb \theta } ) + \frac { \lambda ^ { \prime } } { 2 } \left. { \pmb \theta } \right. _ { 2 } ^ { 2 } } \end{array}$ without weight decay is equivalent to running $O$ on $f _ { t } ( \pmb \theta )$ with decay $\lambda \in \mathbb { R } ^ { + }$ .
83
+
84
+ We decouple weight decay and loss-based gradient updates in Adam as shown in line 12 of Algorithm 2; this gives rise to our variant of Adam with decoupled weight decay (AdamW).
85
+
86
+ Having shown that $\mathrm { L _ { 2 } }$ regularization and weight decay regularization differ for adaptive gradient algorithms raises the question of how they differ and how to interpret their effects. Their equivalence for standard SGD remains very helpful for intuition: both mechanisms push weights closer to zero, at the same rate. However, for adaptive gradient algorithms they differ: with $\mathrm { L _ { 2 } }$ regularization, the sums of the gradient of the loss function and the gradient of the regularizer (i.e., the $\mathrm { L _ { 2 } }$ norm of the weights) are adapted, whereas with weight decay, only the gradients of the loss function are adapted (with the weight decay step separated from the adaptive gradient mechanism). With $\mathrm { L _ { 2 } }$ regularization both types of gradients are normalized by their typical (summed) magnitudes, and therefore weights $x$ with large typical gradient magnitude $s$ are regularized by a smaller relative amount than other weights. In contrast, weight decay regularizes all weights with the same rate $\lambda$ , effectively regularizing weights $x$ with large $s$ more than standard $\mathrm { L _ { 2 } }$ regularization does. We demonstrate this formally for a simple special case of adaptive gradient algorithm with a fixed preconditioner:
87
+
88
+ Proposition 3 (Weight decay $=$ scale-adjusted $L _ { 2 }$ reg for adaptive gradient algorithm with fixed preconditioner). Let $O$ denote an algorithm with the same characteristics as in Proposition 2, and using a fixed preconditioner matrix ${ \bf \bar { \cal M } } _ { t } = d i a g ( s ) ^ { - 1 }$ (with $s _ { i } > 0$ for all $i _ { , }$ ). Then, $O$ with base learning rate $\alpha$ executes the same steps on batch loss functions $f _ { t } ( \pmb \theta )$ with weight decay $\lambda$ as it executes without weight decay on the scale-adjusted regularized batch loss
89
+
90
+ $$
91
+ f _ { t } ^ { s r e g } ( \pmb { \theta } ) = f _ { t } ( \pmb { \theta } ) + \frac { \lambda ^ { \prime } } { 2 \alpha } \left\| \pmb { \theta } \odot \sqrt { \pmb { s } } \right\| _ { 2 } ^ { 2 } ,
92
+ $$
93
+
94
+ where $\odot$ and $\sqrt { \cdot }$ denote element-wise multiplication and square root, respectively, and $\begin{array} { r } { \lambda ^ { \prime } = \frac { \lambda } { \alpha } } \end{array}$
95
+
96
+ # 3 JUSTIFICATION OF DECOUPLED WEIGHT DECAY VIA A VIEW OF ADAPTIVE GRADIENT METHODS AS BAYESIAN FILTERING
97
+
98
+ We now discuss a justification of decoupled weight decay in the framework of Bayesian filtering for a unified theory of adaptive gradient algorithms due to Aitchison (2018). After we posted a preliminary version of our current paper on arXiv, Aitchison noted that his theory “gives us a theoretical framework in which we can understand the superiority of this weight decay over $L _ { 2 }$ regularization, because it is weight decay, rather than $L _ { 2 }$ regularization that emerges through the straightforward application of Bayesian filtering.”(Aitchison, 2018). While full credit for this theory goes to Aitchison, we summarize it here to shed some light on why weight decay may be favored over $L _ { 2 }$ regularization.
99
+
100
+ Aitchison (2018) views stochastic optimization of $n$ parameters $x _ { 1 } , \ldots , x _ { n }$ as a Bayesian filtering problem with the goal of inferring a distribution over the optimal values of each of the parameters $x _ { i }$ given the current values of the other parameters $\pmb \theta _ { - i } ( t )$ at time step $t$ . When the other parameters do not change this is an optimization problem, but when they do change it becomes one of “tracking” the optimizer using Bayesian filtering as follows. One is given a probability distribution $\bar { P ( \pmb \theta _ { t } ) } \ |$ $y _ { 1 : t } )$ of the optimizer at time step $t$ that takes into account the data $\scriptstyle { \boldsymbol { y } } _ { 1 : t }$ from the first $t$ mini batches, a state transition prior $P ( \pmb \theta _ { t + 1 } \mid \pmb \theta _ { t } )$ reflecting a (small) data-independent change in this distribution from one step to the next, and a likelihood $\mathbf { \bar { \ u } } _ { P ( \pmb { y } _ { t + 1 } \mid \mathbf { \theta } _ { t + 1 } ) }$ derived from the mini batch at step $t + 1$ . The posterior distribution $P ( \pmb { \theta } _ { t + 1 } \mid \mathbf { y } _ { 1 : t + 1 } )$ of the optimizer at time step $t + 1$ can then be computed (as usual in Bayesian filtering) by marginalizing over $\theta _ { t }$ to obtain the onestep ahead predictions $P ( \pmb { \theta } _ { t + 1 } \mid \pmb { y } _ { 1 : t } )$ and then applying Bayes’ rule to incorporate the likelihood $\textstyle P ( \mathbf { \bar { y } } _ { t + 1 } \mid \theta _ { t + 1 } )$ . Aitchison (2018) assumes a Gaussian state transition distribution $P ( \pmb \theta _ { t + 1 } \mid \pmb \theta _ { t } )$ and an approximate conjugate likelihood $\textstyle P ( \pmb { y } _ { t + 1 } \mid \pmb { \theta } _ { t + 1 } )$ , leading to the following closed-form update of the filtering distribution’s mean:
101
+
102
+ $$
103
+ \begin{array} { r } { \pmb { \mu } _ { p o s t } = \pmb { \mu } _ { p r i o r } + \pmb { \Sigma } _ { p o s t } \times \pmb { g } , } \end{array}
104
+ $$
105
+
106
+ where $\textbf { { g } }$ is the gradient of the log likelihood of the mini batch at time $t$ . This result implies a preconditioner of the gradients that is given by the posterior uncertainty $\Sigma _ { p o s t }$ of the filtering distribution: updates are larger for parameters we are more uncertain about and smaller for parameters we are more certain about. Aitchison (2018) goes on to show that popular adaptive gradient methods, such as Adam and RMSprop, as well as Kronecker-factorized methods are special cases of this framework.
107
+
108
+ Decoupled weight decay very naturally fits into this unified framework can express weight decay as part of the state-transition distribution: Aitchison (2018) assumes a slow change of the optimizer according to the following Gaussian:
109
+
110
+ $$
111
+ P ( \pmb \theta _ { t + 1 } \mid \pmb \theta _ { t } ) = N ( ( \pmb I - \pmb A ) \pmb \theta _ { t } , \pmb Q ) ,
112
+ $$
113
+
114
+ where $Q$ is the covariance of Gaussian perturbations of the weights, and $\pmb { A }$ is a regularizer to avoid values growing unboundedly over time. When instantiated as $A = \lambda \times I$ , this regularizer $\pmb { A }$ plays exactly the role of decoupled weight decay as described in Equation 1, since this leads to multiplying the current mean estimate $\theta _ { t }$ by $( 1 - \lambda )$ at each step. Notably, this regularization is also directly applied to the prior and does not depend on the uncertainty in each of the parameters (which would be required for $L _ { 2 }$ regularization).
115
+
116
+ ![](images/cdc01f838cc870b7893f2bd8b1b4fdadd1d0ed078db65ddff2d8aef49b319780.jpg)
117
+ Figure 1: Adam performs better with decoupled weight decay (bottom row, AdamW) than with $L _ { 2 }$ regularization (top row, Adam). We show the final test error of a $2 6 ~ 2 \mathrm { x } 6 4 \mathrm { d }$ ResNet on CIFAR-10 after 100 epochs of training with fixed learning rate (left column), step-drop learning rate (with drops at epoch indexes 30, 60 and 80, middle column) and cosine annealing (right column). AdamW leads to a more separable hyperparameter search space, especially when a learning rate schedule, such as step-drop and cosine annealing is applied. Cosine annealing yields clearly superior results.
118
+
119
+ # 4 EXPERIMENTAL VALIDATION
120
+
121
+ We now evaluate the performance of decoupled weight decay under various training budgets and learning rate schedules. Our experimental setup follows that of Gastaldi (2017), who proposed, in addition to $\mathrm { L _ { 2 } }$ regularization, to apply the new Shake-Shake regularization to a 3-branch residual DNN that allowed to achieve new state-of-the-art results of $2 . 8 6 \%$ on the CIFAR-10 dataset (Krizhevsky, 2009). We always used a batch size of 128. The regular data augmentation procedure used for the CIFAR datasets was applied. We used the same model/source code based on fb.resnet.torch 1. The base networks are a $2 6 ~ 2 \mathrm { x } 6 4 \mathrm { d }$ ResNet (i.e. the network has a depth of 26, 2 residual branches and the first residual block has a width of 64) and a $2 6 2 \mathrm { x } 9 6 \mathrm { d }$ ResNet with $1 1 . 6 \mathbf { M }$ and $2 5 . 6 \mathbf { M }$ parameters, respectively. For a detailed description of the network and the Shake-Shake method, we refer the interested reader to Gastaldi (2017). We also perform experiments on the ImageNet32x32 dataset (Chrabaszcz et al., 2017), a downsampled version of the original ImageNet dataset with 1.2 million $3 2 \times 3 2$ pixels images.
122
+
123
+ # 4.1 EVALUATING DECOUPLED WEIGHT DECAY WITH DIFFERENT LEARNING RATE SCHEDULES
124
+
125
+ In our first experiment, we compare Adam with $L _ { 2 }$ regularization to Adam with decoupled weight decay (AdamW), using three different learning rate schedules: a fixed learning rate, a drop-step schedule, and a cosine annealing schedule (Loshchilov & Hutter, 2016). For each learning rate schedule and weight decay variant, we trained a 2x64d ResNet for 100 epochs, using different settings of the initial learning rate $\alpha$ and the weight decay factor $\lambda$ . Figure 1 shows that decoupled weight decay outperforms $L _ { 2 }$ regularization for all learning rate schedules, with larger differences for better learning rate schedules. We also note that decoupled weight decay leads to a more separable hyperparameter search space, especially when a learning rate schedule, such as step-drop and cosine annealing is applied. The figure also shows that cosine annealing clearly outperforms the other learning rate schedules; we thus used cosine annealing for the remainder of the experiments.
126
+
127
+ ![](images/912ae7b475cea2253f76582036e0793936fecf71a117beab28917bbc8e28d712.jpg)
128
+ Figure 2: The Top-1 test error of a 26 2x64d ResNet on CIFAR-10 measured after 100 epochs. The proposed SGDW and AdamW (right column) have a more separable hyperparameter space.
129
+
130
+ ![](images/ebfc9d3556d4d95c8aaba3765fe521f34e36b21c331fc769c98b81b49d5fe39f.jpg)
131
+ Figure 3: Learning curves (top row) and generalization results (bottom row) obtained by a 26 $2 \mathrm { x } 9 6 \mathrm { d }$ ResNet trained with Adam and AdamW on CIFAR-10. See text for details. SuppFigure 4 in the Appendix shows the same qualitative results for ImageNet $3 2 \mathbf { x } 3 2$ .
132
+
133
+ 4.2 DECOUPLING THE WEIGHT DECAY AND INITIAL LEARNING RATE PARAMETERS
134
+
135
+ In order to verify our hypothesis about the coupling of $\alpha$ and $\lambda$ , in Figure 2 we compare the performance of $\mathrm { L _ { 2 } }$ regularization vs. decoupled weight decay in SGD (SGD vs. SGDW, top row) and in Adam (Adam vs. AdamW, bottom row). In SGD (Figure 2, top left), $\mathrm { L _ { 2 } }$ regularization is not decoupled from the learning rate (the common way as described in Algorithm 1), and the figure clearly shows that the basin of best hyperparameter settings (depicted by color and top-10 hyperparameter settings by black circles) is not aligned with the $\mathbf { X }$ -axis or y-axis but lies on the diagonal. This suggests that the two hyperparameters are interdependent and need to be changed simultaneously, while only changing one of them might substantially worsen results. Consider, e.g., the setting at the top left black circle $( \alpha = 1 / 2$ , $\lambda \overset { - } { = } 1 / 8 * 0 . 0 0 1 )$ ; only changing either $\alpha$ or $\lambda$ by itself would worsen results, while changing both of them could still yield clear improvements. We note that this coupling of initial learning rate and $\mathrm { L _ { 2 } }$ regularization factor might have contributed to SGD’s reputation of being very sensitive to its hyperparameter settings.
136
+
137
+ In contrast, the results for SGD with decoupled weight decay (SGDW) in Figure 2 (top right) show that weight decay and initial learning rate are decoupled. The proposed approach renders the two hyperparameters more separable: even if the learning rate is not well tuned yet (e.g., consider the value of 1/1024 in Figure 2, top right), leaving it fixed and only optimizing the weight decay factor would yield a good value (of $1 / 4 ^ { * } 0 . 0 0 1$ ). This is not the case for SGD with $\mathrm { L _ { 2 } }$ regularization (see Figure 2, top left).
138
+
139
+ The results for Adam with $\mathrm { L _ { 2 } }$ regularization are given in Figure 2 (bottom left). Adam’s best hyperparameter settings performed clearly worse than SGD’s best ones (compare Figure 2, top left). While both methods used $\mathrm { L _ { 2 } }$ regularization, Adam did not benefit from it at all: its best results obtained for non-zero $\mathrm { L _ { 2 } }$ regularization factors were comparable to the best ones obtained without the $\mathrm { L _ { 2 } }$ regularization, i.e., when $\lambda = 0$ . Similarly to the original SGD, the shape of the hyperparameter landscape suggests that the two hyperparameters are coupled.
140
+
141
+ In contrast, the results for our new variant of Adam with decoupled weight decay (AdamW) in Figure 2 (bottom right) show that AdamW largely decouples weight decay and learning rate. The results for the best hyperparameter settings were substantially better than the best ones of Adam with $\mathrm { L _ { 2 } }$ regularization and rivaled those of SGD and SGDW.
142
+
143
+ In summary, the results in Figure 2 support our hypothesis that the weight decay and learning rate hyperparameters can be decoupled, and that this in turn simplifies the problem of hyperparameter tuning in SGD and improves Adam’s performance to be competitive w.r.t. SGD with momentum.
144
+
145
+ # 4.3 BETTER GENERALIZATION OF ADAMW
146
+
147
+ While the previous experiment suggested that the basin of optimal hyperparameters of AdamW is broader and deeper than the one of Adam, we next investigated the results for much longer runs of 1800 epochs to compare the generalization capabilities of AdamW and Adam.
148
+
149
+ We fixed the initial learning rate to 0.001 which represents both the default learning rate for Adam and the one which showed reasonably good results in our experiments. Figure 3 shows the results for 12 settings of the $\mathrm { L _ { 2 } }$ regularization of Adam and 7 settings of the normalized weight decay of AdamW (the normalized weight decay represents a rescaling formally defined in the Appendix B.1, it amounts to a multiplicative factor which depends on the number of bath passes). Interestingly, while the dynamics of the learning curves of Adam and AdamW often coincided for the first half of the training run, AdamW often led to lower training loss and test errors (see Figure 3 top left and top right, respectively). Importantly, the use of weight decay in Adam did not yield as good results as in AdamW (see also Figure 3, bottom left). Next, we investigated whether AdamW’s better results were only due to better convergence or due to better generalization. The results in Figure 3 (bottom right) for the best settings of Adam and AdamW suggest that AdamW did not only yield better training loss but also yielded better generalization performance for similar training loss values. The results on ImageNet32x32 (see SuppFigure 4 in the Appendix) lead to the same conclusion of substantially improved generalization performance.
150
+
151
+ ![](images/601a579961d1f5b8ba84aa32ca7fd5710ad12c354741ccbf24164731e477145b.jpg)
152
+ Figure 4: Top-1 test error on CIFAR-10 (left) and Top-5 test error on ImageNet32x32 (right). For a better resolution and with training loss curves, see SuppFigure 5 and SuppFigure 6 in the supplementary material.
153
+
154
+ # 4.4 ADAMWR WITH WARM RESTARTS FOR BETTER ANYTIME PERFORMANCE
155
+
156
+ In order to improve anytime performance of SGDW and AdamW we extended them with warm restarts of (Loshchilov & Hutter, 2016) to obtain SGDWR and AdamWR, respectively (see section B.2 in the Appendix). As Figure 4 shows, AdamWR greatly sped up AdamW on CIFAR-10 and ImageNet32x32, up to a factor of 10 (see the results at the first restart). For the default learning rate of 0.001, AdamW achieved $1 5 \%$ relative improvement in test errors compared to Adam both on CIFAR-10 (also see Figure 3) and ImageNet $3 2 x 3 2$ (also see SuppFigure 5). AdamWR achieved the same improved results but with a much better anytime performance. These improvements closed most of the gap between Adam and SGDWR on CIFAR-10 and yielded comparable performance on ImageNet32x32.
157
+
158
+ # 4.5 USE OF ADAMW ON OTHER DATASETS AND ARCHITECTURES
159
+
160
+ Several other research groups have already successfully applied AdamW in citable works. For example, Wang et al. (2018) used AdamW to train a novel architecture for face detection on the standard WIDER FACE dataset (Yang et al., 2016), obtaining almost 10x faster predictions than the previous state of the art algorithms while achieving comparable performance. Volker et al. (2018) employed ¨ AdamW with cosine annealing to train convolutional neural networks to classify and characterize error-related brain signals measured from intracranial electroencephalography (EEG) recordings. While their paper does not provide a comparison to Adam, they kindly provided us with a direct comparison of the two on their best-performing problem-specific network architecture Deep4Net and a variant of ResNet. AdamW with the same hyperparameter setting as Adam yielded higher test set accuracy on Deep4Net $7 3 . 6 8 \%$ versus $7 1 . 3 7 \%$ ) and statistically significantly higher test set accuracy on ResNet $( 7 2 . 0 4 \%$ versus $6 1 . 3 4 \%$ . Radford et al. (2018) employed AdamW to train Transformer (Vaswani et al., 2017) architectures to obtain new state-of-the-art results on a wide range of benchmarks for natural language understanding. Zhang et al. (2018) compared $\mathrm { L _ { 2 } }$ regularization vs. weight decay for SGD, Adam and the Kronecker-Factored Approximate Curvature (K-FAC) optimizer (Martens & Grosse, 2015) on the CIFAR datasets with ResNet and VGG architectures, reporting that decoupled weight decay consistently outperformed $\mathrm { L _ { 2 } }$ regularization in cases where they differ.
161
+
162
+ # 5 CONCLUSION AND FUTURE WORK
163
+
164
+ Following suggestions that adaptive gradient methods such as Adam might lead to worse generalization than SGD with momentum (Wilson et al., 2017), we identified and exposed the inequivalence of $\mathrm { L _ { 2 } }$ regularization and weight decay for Adam. We empirically showed that our version of Adam with decoupled weight decay yields substantially better generalization performance than the common implementation of Adam with $\mathrm { L _ { 2 } }$ regularization. We also proposed to use warm restarts for Adam to improve its anytime performance.
165
+
166
+ Our results obtained on image classification datasets must be verified on a wider range of tasks, especially ones where the use of regularization is expected to be important. It would be interesting to integrate our findings on weight decay into other methods which attempt to improve Adam, e.g, normalized direction-preserving Adam (Zhang et al., 2017). While we focused our experimental analysis on Adam, we believe that similar results also hold for other adaptive gradient methods, such as AdaGrad (Duchi et al., 2011) and AMSGrad (Reddi et al., 2018).
167
+
168
+ # 6 ACKNOWLEDGMENTS
169
+
170
+ This work was supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme under grant no. 716721, by the German Research Foundation (DFG), under the BrainLinksBrainTools Cluster of Excellence (grant number EXC 1086) and through grant no. INST 37/935-1 FUGG, and by the German state of BadenWurttemberg through bwHPC. We thank Patryk Chrabaszcz for helping running experiments with ¨ ImageNet32x32. We thank Matthias Feurer and Robin Schirrmeister for providing valuable feedback on this paper in several iterations. We thank Martin Volker, Robin Schirrmeister, and Tonio ¨ Ball for providing us with a comparison of AdamW and Adam on their EEG data.
171
+
172
+ Finally, we thank the following members of the deep learning community for implementing decoupled weight decay in various deep learning libraries:
173
+
174
+ • Jingwei Zhang, Lei Tai, Robin Schirrmeister, and Kashif Rasul for their implementations in PyTorch (see https://github.com/pytorch/pytorch/pull/4429)
175
+ • Phil Jund for his implementation in TensorFlow described at https://www.tensorflow.org/api_docs/python/tf/contrib/opt/ DecoupledWeightDecayExtension Sylvain Gugger, Anand Saha, Jeremy Howard and other members of fast.ai for their implementation available at https://github.com/sgugger/Adam-experiments Guillaume Lambard for his implementation in Keras available at https://github. com/GLambard/AdamW_Keras
176
+ • Yagami Lin for his implementation in Caffe available at https://github.com/ Yagami123/Caffe-AdamW-AdamWR
177
+
178
+ # REFERENCES
179
+
180
+ Laurence Aitchison. A unified theory of adaptive stochastic gradient descent as Bayesian filtering. arXiv:1507.02030, 2018.
181
+
182
+ Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of ImageNet as an alternative to the CIFAR datasets. arXiv:1707.08819, 2017.
183
+
184
+ Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018.
185
+
186
+ Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. arXiv:1703.04933, 2017.
187
+
188
+ John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 12:2121–2159, 2011.
189
+
190
+ Xavier Gastaldi. Shake-Shake regularization. arXiv preprint arXiv:1705.07485, 2017.
191
+
192
+ Stephen Jose Hanson and Lorien Y Pratt. Comparing biases for minimal network construction with ´ back-propagation. In Proceedings of the 1st International Conference on Neural Information Processing Systems, pp. 177–185, 1988.
193
+
194
+ Gao Huang, Yixuan Li, Geoff Pleiss, Zhuang Liu, John E Hopcroft, and Kilian Q Weinberger. Snapshot ensembles: Train 1, get m for free. arXiv:1704.00109, 2017.
195
+
196
+ Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv:1609.04836, 2016.
197
+
198
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014.
199
+
200
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
201
+
202
+ Hao Li, Zheng Xu, Gavin Taylor, and Tom Goldstein. Visualizing the loss landscape of neural nets. arXiv preprint arXiv:1712.09913, 2017.
203
+
204
+ Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. arXiv:1608.03983, 2016.
205
+
206
+ James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In International conference on machine learning, pp. 2408–2417, 2015.
207
+
208
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv:1511.06434, 2015.
209
+
210
+ Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openaiassets/research-covers/language-unsupervised/language understanding paper. pdf, 2018.
211
+
212
+ Sashank J. Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. Inter national Conference on Learning Representations, 2018.
213
+
214
+ Leslie N Smith. Cyclical learning rates for training neural networks. arXiv:1506.01186v3, 2016.
215
+
216
+ Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26– 31, 2012.
217
+
218
+ 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, pp. 5998–6008, 2017.
219
+
220
+ Martin Volker, Ji ¨ ˇr´ı Hammer, Robin T Schirrmeister, Joos Behncke, Lukas DJ Fiederer, Andreas Schulze-Bonhage, Petr Marusic, Wolfram Burgard, and Tonio Ball. Intracranial error detection ˇ via deep learning. arXiv preprint arXiv:1805.01667, 2018.
221
+
222
+ Jianfeng Wang, Ye Yuan, Gang Yu, and Sun Jian. Sface: An efficient network for face detection in large scale variations. arXiv preprint arXiv:1804.06559, 2018.
223
+
224
+ Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nathan Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. arXiv:1705.08292, 2017.
225
+
226
+ Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015.
227
+
228
+ Shuo Yang, Ping Luo, Chen-Change Loy, and Xiaoou Tang. Wider face: A face detection benchmark. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5525–5533, 2016.
229
+
230
+ Guodong Zhang, Chaoqi Wang, Bowen Xu, and Roger Grosse. Three mechanisms of weight decay regularization. arXiv preprint arXiv:1810.12281, 2018.
231
+
232
+ Zijun Zhang, Lin Ma, Zongpeng Li, and Chuan Wu. Normalized direction-preserving adam. arXiv:1709.04546, 2017.
233
+
234
+ Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In arXiv:1707.07012 [cs.CV], 2017.
235
+
236
+ # Appendix
237
+
238
+ A FORMAL ANALYSIS OF WEIGHT DECAY VS $\mathrm { L _ { 2 } }$ REGULARIZATION
239
+
240
+ # Proof of Proposition 1
241
+
242
+ The proof for this well-known fact is straight-forward. SGD without weight decay has the following iterates on $\begin{array} { r } { f _ { t } ^ { \mathrm { r e g } } ( { \pmb \theta } ) = f _ { t } ( { \pmb \theta } ) + \frac { \lambda ^ { \prime } } { 2 } \left\| { \pmb \theta } \right\| _ { 2 } ^ { 2 } } \end{array}$ :
243
+
244
+ $$
245
+ \pmb { \theta } _ { t + 1 } \pmb { \theta } _ { t } - \alpha \nabla f _ { t } ^ { \mathrm { r e g } } ( \pmb { \theta } _ { t } ) = \pmb { \theta } _ { t } - \alpha \nabla f _ { t } ( \pmb { \theta } _ { t } ) - \alpha \lambda ^ { \prime } \pmb { \theta } _ { t } .
246
+ $$
247
+
248
+ SGD with weight decay has the following iterates on $f _ { t } ( \pmb \theta )$ :
249
+
250
+ $$
251
+ \pmb { \theta } _ { t + 1 } ( 1 - \lambda ) \pmb { \theta } _ { t } - \alpha \nabla f _ { t } ( \pmb { \theta } _ { t } ) .
252
+ $$
253
+
254
+ These iterates are identical since $\begin{array} { r } { \lambda ^ { \prime } = \frac { \lambda } { \alpha } } \end{array}$
255
+
256
+ # Proof of Proposition 2
257
+
258
+ Similarly to the Proof of Proposition 1, the iterates of $O$ without weight decay on $f _ { t } ^ { \mathrm { r e g } } ( { \pmb \theta } ) = f _ { t } ( { \pmb \theta } ) +$ $\begin{array} { r } { \frac { 1 } { 2 } \lambda ^ { \prime } \left. \pmb { \theta } \right. _ { 2 } ^ { 2 } } \end{array}$ and $O$ with weight decay $\lambda$ on $f _ { t }$ are, respectively:
259
+
260
+ $$
261
+ \begin{array} { l l l } { \pmb { \theta } _ { t + 1 } } & { } & { \pmb { \theta } _ { t } - \alpha \lambda ^ { \prime } \mathbf { M } _ { t } \pmb { \theta } _ { t } - \alpha \mathbf { M } _ { t } \nabla f _ { t } ( \pmb { \theta } _ { t } ) . } \\ { \pmb { \theta } _ { t + 1 } } & { } & { ( 1 - \lambda ) \pmb { \theta } _ { t } - \alpha \mathbf { M } _ { t } \nabla f _ { t } ( \pmb { \theta } _ { t } ) . } \end{array}
262
+ $$
263
+
264
+ The equality of these iterates for all $\theta _ { t }$ would imply $\lambda \pmb { \theta } _ { t } = \alpha \lambda ^ { \prime } \mathbf { M } _ { t } \pmb { \theta } _ { t }$ . This can only hold for all $\theta _ { t }$ if $\mathbf { M } _ { t } = k \mathbf { I }$ , with $k \in \mathbb { R }$ , which is not the case for $O$ . Therefore, no $\mathrm { L _ { 2 } }$ regularizer $\lambda ^ { \prime } \left\| \pmb { \theta } \right\| _ { 2 } ^ { 2 }$ exists that makes the iterates equivalent. □
265
+
266
+ # Proof of Proposition 3
267
+
268
+ $O$ without weight decay has the following iterates on $\begin{array} { r } { f _ { t } ^ { \mathrm { s r e g } } ( \pmb { \theta } ) = f _ { t } ( \pmb { \theta } ) + \frac { \lambda ^ { \prime } } { 2 } \left\| \pmb { \theta } \odot \sqrt { s } \right\| _ { 2 } ^ { 2 } ; } \end{array}$
269
+
270
+ $$
271
+ \begin{array} { r c l } { \pmb { \theta } _ { t + 1 } } & { } & { \pmb { \theta } _ { t } - \alpha \nabla f _ { t } ^ { \mathrm { s r e g } } ( \pmb { \theta } _ { t } ) / s } \\ & { = } & { \pmb { \theta } _ { t } - \alpha \nabla f _ { t } ( \pmb { \theta } _ { t } ) / s - \alpha \lambda ^ { \prime } \pmb { \theta } _ { t } \odot s / s } \\ & { = } & { \pmb { \theta } _ { t } - \alpha \nabla f _ { t } ( \pmb { \theta } _ { t } ) / s - \alpha \lambda ^ { \prime } \pmb { \theta } _ { t } , } \end{array}
272
+ $$
273
+
274
+ where the division by $\pmb { S }$ is element-wise. $O$ with weight decay has the following iterates on $f _ { t } ( \pmb \theta )$ :
275
+
276
+ $$
277
+ \begin{array} { r l r } { \pmb { \theta } _ { t + 1 } } & { } & { ( 1 - \lambda ) \pmb { \theta } _ { t } - \alpha \nabla f ( \pmb { \theta } _ { t } ) / s } \\ & { = } & { \pmb { \theta } _ { t } - \alpha \nabla f ( \pmb { \theta } _ { t } ) / s - \lambda \pmb { \theta } _ { t } , } \end{array}
278
+ $$
279
+
280
+ These iterates are identical since $\begin{array} { r } { \lambda ^ { \prime } = \frac { \lambda } { \alpha } } \end{array}$ .
281
+
282
+ # B ADDITIONAL PRACTICAL IMPROVEMENTS OF ADAM
283
+
284
+ Having discussed decoupled weight decay for improving Adam’s generalization, in this section we introduce two additional components to improve Adam’s performance in practice.
285
+
286
+ # B.1 NORMALIZED WEIGHT DECAY
287
+
288
+ Our preliminary experiments showed that different weight decay factors are optimal for different computational budgets (defined in terms of the number of batch passes). Relatedly, Li et al. (2017) demonstrated that a smaller batch size (for the same total number of epochs) leads to the shrinking effect of weight decay being more pronounced. Here, we propose to reduce this dependence by normalizing the values of weight decay. Specifically, we replace the hyperparameter $\lambda$ by a new (more robust) normalized weight decay hyperparameter $\lambda _ { n o r m }$ , and use this to set $\lambda$ as $\begin{array} { r } { \lambda = \lambda _ { n o r m } \sqrt { \frac { b } { B T } } } \end{array}$ , where $b$ is the batch size, $B$ is the total number of training points and $T$ is the total number of epochs.2 Thus, $\lambda _ { n o r m }$ can be interpreted as the weight decay used if only one batch pass is allowed. We emphasize that our choice of normalization is merely one possibility informed by few experiments; a more lasting conclusion we draw is that using some normalization can substantially improve results.
289
+
290
+ # B.2 ADAM WITH COSINE ANNEALING AND WARM RESTARTS
291
+
292
+ We now apply cosine annealing and warm restarts to Adam, following the recent work of Loshchilov & Hutter (2016). There, the authors proposed Stochastic Gradient Descent with Warm Restarts (SGDR) to improve anytime performance of SGD by quickly cooling down the learning rate according to a cosine schedule and periodically increasing it. SGDR has been successfully adopted to lead to new state-of-the-art results for popular image classification benchmarks (Huang et al., 2017; Gastaldi, 2017; Zoph et al., 2017), and we therefore tried extending it to Adam. However, while our initial version of Adam with warm restarts had better anytime performance than Adam, it was not competitive with SGD with warm restarts, precisely because $\mathrm { L _ { 2 } }$ regularization was not working as well as in SGD. Now, having fixed this issue by means of the original weight decay regularization (Section 2) and also having introduced normalized weight decay (Section B.1), the original work on cosine annealing and warm restarts by Loshchilov & Hutter (2016) directly carries over to Adam.
293
+
294
+ In the interest of keeping the presentation self-contained, we briefly describe how SGDR schedules the change of the effective learning rate in order to accelerate the training of DNNs. Here, we decouple the initial learning rate $\alpha$ and its multiplier $\eta _ { t }$ used to obtain the actual learning rate at iteration $t$ (see, e.g., line 8 in Algorithm 1). In SGDR, we simulate a new warm-started run/restart of SGD once $T _ { i }$ epochs are performed, where $i$ is the index of the run. Importantly, the restarts are not performed from scratch but emulated by increasing $\eta _ { t }$ while the old value of $\theta _ { t }$ is used as an initial solution. The amount by which $\eta _ { t }$ is increased controls to which extent the previously acquired information (e.g., momentum) is used. Within the $i$ -th run, the value of $\eta _ { t }$ decays according to a cosine annealing (Loshchilov & Hutter, 2016) learning rate for each batch as follows:
295
+
296
+ $$
297
+ \eta _ { t } = \eta _ { m i n } ^ { ( i ) } + 0 . 5 ( \eta _ { m a x } ^ { ( i ) } - \eta _ { m i n } ^ { ( i ) } ) ( 1 + \cos ( \pi T _ { c u r } / T _ { i } ) ) ,
298
+ $$
299
+
300
+ where η min and $\eta _ { m a x } ^ { ( i ) }$ are ranges for the multiplier and $T _ { c u r }$ accounts for how many epochs have been performed since the last restart. $T _ { c u r }$ is updated at each batch iteration $t$ and is thus not constrained to integer values. Adjusting (e.g., decreasing) $\eta _ { m i n } ^ { ( i ) }$ and $\eta _ { m a x } ^ { ( i ) }$ at every $i$ -th restart (see also Smith (2016)) could potentially improve performance, but we do not consider that option here because it would involve additional hyperparameters. For $\eta _ { m a x } ^ { ( i ) } = 1$ = 1 and η(i)min $\eta _ { m i n } ^ { ( i ) } = 0$ , one can simplify Eq. (14) to
301
+
302
+ $$
303
+ \eta _ { t } = 0 . 5 + 0 . 5 \cos ( \pi T _ { c u r } / T _ { i } ) .
304
+ $$
305
+
306
+ In order to achieve good anytime performance, one can start with an initially small $T _ { i }$ (e.g., from $1 \%$ to $10 \%$ of the expected total budget) and multiply it by a factor of $T _ { m u l t }$ (e.g., $T _ { m u l t } = 2$ ) at every restart. The $( i + 1 )$ -th restart is triggered when $T _ { c u r } = T _ { i }$ by setting $T _ { c u r }$ to 0. An example setting of the schedule multiplier is given in C.
307
+
308
+ Our proposed AdamWR algorithm represents AdamW (see Algorithm 2) with $\eta _ { t }$ following Eq. (15) and $\lambda$ computed at each iteration using normalized weight decay described in the previous section. We note that normalized weight decay allowed us to use a constant parameter setting across short and long runs performed within AdamWR and SGDWR (SGDW with warm restarts).
309
+
310
+ # C AN EXAMPLE SETTING OF THE SCHEDULE MULTIPLIER
311
+
312
+ An example schedule of the schedule multiplier $\eta _ { t }$ is given in SuppFigure 1 for $T _ { i = 0 } = 1 0 0$ and $T _ { m u l t } = 2$ . After the initial 100 epochs the learning rate will reach 0 because $\eta _ { t = 1 0 0 } = 0$ . Then, since $T _ { c u r } = T _ { i = 0 }$ , we restart by resetting $T _ { c u r } = 0$ , causing the multiplier $\eta _ { t }$ to be reset to 1 due to Eq. (15). This multiplier will then decrease again from 1 to 0, but now over the course of 200 epochs because $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ . Solutions obtained right before the restarts, when $\eta _ { t } = 0$ (e.g., at epoch indexes 100, 300, 700 and 1500 as shown in SuppFigure 1) are recommended by the optimizer as the solutions, with more recent solutions prioritized.
313
+
314
+ # D ADDITIONAL RESULTS
315
+
316
+ We investigated whether the use of much longer runs (1800 epochs) of “standard Adam” (Adam with $\mathrm { L _ { 2 } }$ regularization and a fixed learning rate) makes the use of cosine annealing unnecessary.
317
+
318
+ ![](images/05aeac11b243ee1c9b6ee060aff58ac2592760fb64cd2d49c797565303ec0f23.jpg)
319
+ SuppFigure 1: An example schedule of the learning rate multiplier as a function of epoch index. The first run is scheduled to converge at epoch $T _ { i = 0 } ~ = ~ 1 0 0$ , then the budget for the next run is doubled as $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ , etc.
320
+
321
+ SuppFigure 2 shows the results of standard Adam for a 4 by 4 logarithmic grid of hyperparameter settings (the coarseness of the grid is due to the high computational expense of runs for 1800 epochs). Even after taking the low resolution of the grid into account, the results appear to be at best comparable to the ones obtained with AdamW with 18 times less epochs and a smaller network (see SuppFigure 3, top row, middle). These results are not very surprising given Figure 2 in the main paper (which demonstrates the effectiveness of AdamW) and SuppFigure 1 (which demonstrates the necessity to use some learning rate schedule such as cosine annealing).
322
+
323
+ Our experimental results with Adam and SGD suggested that the total runtime in terms of the number of epochs affect the basin of optimal hyperparameters (see SuppFigure 3). More specifically, the greater the total number of epochs the smaller the values of the weight decay should be. SuppFigure 4 shows that our remedy for this problem, the normalized weight decay defined in Eq. (15), simplifies hyperparameter selection because the optimal values observed for short runs are similar to the ones for much longer runs. We used our initial experiments on CIFAR-10 to suggest the square root normalization we proposed in Eq. (15) and double-checked that this is not a coincidence on the ImageNet32x32 dataset (Chrabaszcz et al., 2017), a downsampled version of the original ImageNet dataset with 1.2 million $3 2 \times 3 2$ pixels images, where an epoch is 24 times longer than on CIFAR-10. This experiment also supported the square root scaling: the best values of the normalized weight decay observed on CIFAR-10 represented nearly optimal values for ImageNet32x32 (see SuppFigure 3). In contrast, had we used the same raw weight decay values $\lambda$ for ImageNet32x32 as for CIFAR10 and for the same number of epochs, without the proposed normalization, $\lambda$ would have been roughly 5 times too large for ImageNe $3 2 x 3 2$ , leading to much worse performance. The optimal normalized weight decay values were also very similar (e.g., $\lambda _ { n o r m } = 0 . 0 2 5$ and $\lambda _ { n o r m } = 0 . 0 5 )$ ) across SGDW and AdamW.
324
+
325
+ SuppFigure 4 is the equivalent of Figure 3 in the main paper, but for ImageNet32x32 instead of for CIFAR-10. The qualitative results are identical: weight decay leads to better training loss (crossentropy) than $\mathrm { L _ { 2 } }$ regularization, and to an even greater improvement of test error.
326
+
327
+ SuppFigure 5 and SuppFigure 6 are the equivalents of Figure 4 in the main paper but supplemented with training loss curves in its bottom row. The results show that Adam and its variants with decoupled weight decay converge faster (in terms of training loss) on CIFAR-10 than the corresponding SGD variants (the difference for ImageNet32x32 is small). As is discussed in the main paper, when the same values of training loss are considered, AdamW demonstrates better values of test error than Adam. Interestingly, SuppFigure 5 and SuppFigure 6 show that restart variants AdamWR and SGDWR also demonstrate better generalization than AdamW and SGDW, respectively.
328
+
329
+ ![](images/d61e04f283fa31f4651067bc40c835a7e0d1c6120984b5b1ce501d36ef00cee2.jpg)
330
+ SuppFigure 2: Performance of “standard Adam”: Adam with $\mathrm { L _ { 2 } }$ regularization and a fixed learning rate. We show the final test error of a $2 6 ~ 2 \mathrm { x } 9 6 \mathrm { d }$ ResNet on CIFAR-10 after 1800 epochs of the original Adam for different settings of learning rate and weight decay used for $\mathrm { L _ { 2 } }$ regularization.
331
+
332
+ ![](images/dd04a2ab90cfc312d3ac98c8dc68782db24031d7719e24db29f24240372c8b49.jpg)
333
+ SuppFigure 3: Effect of normalized weight decay. We show the final test Top-1 error on CIFAR10 (first two rows for AdamW without and with normalized weight decay) and Top-5 error on ImageNet32x32 (last two rows for AdamW and SGDW, both with normalized weight decay) of a $2 6 2 \mathrm { x } 6 4 \mathrm { d }$ ResNet after different numbers of epochs (see columns). While the optimal settings of the raw weight decay change significantly for different runtime budgets (see the first row), the values of the normalized weight decay remain very similar for different budgets (see the second row) and different datasets (here, CIFAR-10 and ImageNet32x32), and even across AdamW and SGDW.
334
+
335
+ ![](images/cae7758f0603d244c6a3533a4e7895f997ffe6ec31c9bfd389ed44477fe94759.jpg)
336
+ SuppFigure 4: Learning curves (top row) and generalization results (Top-5 errors in bottom row) obtained by a $2 6 2 \mathrm { x } 9 6 \mathrm { d }$ ResNet trained with Adam and AdamW on ImageNet32x32.
337
+
338
+ ![](images/5ab029b7e35779e3bea2ccd6ef38c9aa1439a43f3f4434a679a70961745062d0.jpg)
339
+ SuppFigure 5: Test error curves (top row) and training loss curves (bottom row) for CIFAR-10.
340
+
341
+ ![](images/1eca1bdf2cf4c17312faab960a100d5dd1708b424add1e9f49f170d4725df754.jpg)
342
+ SuppFigure 6: Test error curves (top row) and training loss curves (bottom row) for ImageNet32x32.
parse/train/Bkg6RiCqY7/Bkg6RiCqY7_content_list.json ADDED
@@ -0,0 +1,1675 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DECOUPLED WEIGHT DECAY REGULARIZATION",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 753,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ilya Loshchilov & Frank Hutter ",
17
+ "bbox": [
18
+ 184,
19
+ 145,
20
+ 408,
21
+ 159
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "University of Freiburg \nFreiburg, Germany, \nilya.loshchilov@gmail.com, fh@cs.uni-freiburg.de ",
28
+ "bbox": [
29
+ 184,
30
+ 160,
31
+ 655,
32
+ 200
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 237,
43
+ 544,
44
+ 252
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "$\\mathrm { L _ { 2 } }$ regularization and weight decay regularization are equivalent for standard stochastic gradient descent (when rescaled by the learning rate), but as we demonstrate this is not the case for adaptive gradient algorithms, such as Adam. While common implementations of these algorithms employ $\\mathrm { L _ { 2 } }$ regularization (often calling it “weight decay” in what may be misleading due to the inequivalence we expose), we propose a simple modification to recover the original formulation of weight decay regularization by decoupling the weight decay from the optimization steps taken w.r.t. the loss function. We provide empirical evidence that our proposed modification (i) decouples the optimal choice of weight decay factor from the setting of the learning rate for both standard SGD and Adam and (ii) substantially improves Adam’s generalization performance, allowing it to compete with SGD with momentum on image classification datasets (on which it was previously typically outperformed by the latter). Our proposed decoupled weight decay has already been adopted by many researchers, and the community has implemented it in TensorFlow and PyTorch; the complete source code for our experiments is available at https://github.com/loshchil/AdamW-and-SGDW ",
51
+ "bbox": [
52
+ 233,
53
+ 270,
54
+ 764,
55
+ 492
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 522,
66
+ 336,
67
+ 537
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Adaptive gradient methods, such as AdaGrad (Duchi et al., 2011), RMSProp (Tieleman & Hinton, 2012), Adam (Kingma & Ba, 2014) and most recently AMSGrad (Reddi et al., 2018) have become a default method of choice for training feed-forward and recurrent neural networks (Xu et al., 2015; Radford et al., 2015). Nevertheless, state-of-the-art results for popular image classification datasets, such as CIFAR-10 and CIFAR-100 Krizhevsky (2009), are still obtained by applying SGD with momentum (Gastaldi, 2017; Cubuk et al., 2018). Furthermore, Wilson et al. (2017) suggested that adaptive gradient methods do not generalize as well as SGD with momentum when tested on a diverse set of deep learning tasks, such as image classification, character-level language modeling and constituency parsing. Different hypotheses about the origins of this worse generalization have been investigated, such as the presence of sharp local minima (Keskar et al., 2016; Dinh et al., 2017) and inherent problems of adaptive gradient methods (Wilson et al., 2017). In this paper, we investigate whether it is better to use $\\mathrm { L _ { 2 } }$ regularization or weight decay regularization to train deep neural networks with SGD and Adam. We show that a major factor of the poor generalization of the most popular adaptive gradient method, Adam, is due to the fact that $\\mathrm { L _ { 2 } }$ regularization is not nearly as effective for it as for SGD. Specifically, our analysis of Adam leads to the following observations: ",
74
+ "bbox": [
75
+ 174,
76
+ 555,
77
+ 825,
78
+ 762
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "$\\mathbf { L } _ { 2 }$ regularization and weight decay are not identical. Contrary to a belief which seems popular among some practitioners, the two techniques are not equivalent. For SGD, they can be made equivalent by a reparameterization of the weight decay factor based on the learning rate; this is not the case for Adam. In particular, when combined with adaptive gradients, $\\mathrm { L _ { 2 } }$ regularization leads to weights with large parameter and/or gradient amplitudes being regularized less than they would be when using weight decay. ",
85
+ "bbox": [
86
+ 183,
87
+ 777,
88
+ 823,
89
+ 862
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "$\\mathbf { L } _ { 2 }$ regularization is not effective in Adam. One possible explanation why Adam and other adaptive gradient methods might be outperformed by SGD with momentum is that common deep learning libraries only implement $\\mathrm { L _ { 2 } }$ regularization, not the original weight decay. Therefore, on tasks/datasets where the use of $\\mathrm { L _ { 2 } }$ regularization is beneficial for SGD (e.g., on many popular image classification datasets), Adam leads to worse results than SGD with momentum (for which $\\mathrm { L _ { 2 } }$ regularization behaves as expected). ",
96
+ "bbox": [
97
+ 183,
98
+ 868,
99
+ 823,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 228,
109
+ 103,
110
+ 821,
111
+ 132
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Weight decay is equally effective in both SGD and Adam. For SGD, it is equivalent to $\\mathrm { L _ { 2 } }$ regularization, while for Adam it is not. ",
118
+ "bbox": [
119
+ 181,
120
+ 136,
121
+ 821,
122
+ 164
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Optimal weight decay depends on the total number of batch passes/weight updates. Our empirical analysis of SGD and Adam suggests that the larger the runtime/number of batch passes to be performed, the smaller the optimal weight decay. This effect tends to be neglected because hyperparameters are often tuned for a fixed number of training epochs. As a result, the values of the weight decay found to perform best for short runs do not generalize to much longer runs. ",
129
+ "bbox": [
130
+ 183,
131
+ 169,
132
+ 825,
133
+ 252
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "The main contribution of this paper is to improve regularization in Adam by decoupling the weight decay from the gradient-based update. In a comprehensive analysis, we show that Adam generalizes substantially better with decoupled weight decay than with $\\mathrm { L _ { 2 } }$ regularization, achieving $15 \\%$ relative improvement in test error (see Figures 2 and 3); this holds true for various image recognition datasets (CIFAR-10 and ImageNet32x32), training budgets (ranging from 100 to 1800 epochs), and learning rate schedules (fixed, drop-step, and cosine annealing; see Figure 1). We demonstrate that our decoupled weight decay renders the optimal settings of the learning rate and the weight decay factor much more independent, thereby easing hyperparameter optimization (see Figure 2). ",
140
+ "bbox": [
141
+ 173,
142
+ 265,
143
+ 825,
144
+ 377
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "The main motivation of this paper is to improve Adam to make it competitive w.r.t. SGD with momentum even for those problems where it did not use to be competitive. We hope that as a result, practitioners do not need to switch between Adam and SGD anymore, which in turn should reduce the common issue of selecting dataset/task-specific training algorithms and their hyperparameters. ",
151
+ "bbox": [
152
+ 174,
153
+ 383,
154
+ 825,
155
+ 439
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 DECOUPLING THE WEIGHT DECAY FROM THE GRADIENT-BASED UPDATE",
162
+ "bbox": [
163
+ 174,
164
+ 459,
165
+ 816,
166
+ 476
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "In the weight decay described by Hanson & Pratt (1988), the weights $\\pmb \\theta$ decay exponentially as ",
173
+ "bbox": [
174
+ 173,
175
+ 489,
176
+ 795,
177
+ 506
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "equation",
183
+ "img_path": "images/f81ce8600080bc8924728648634ee9f4bcff28e5f5a49122865b38acc2338ec0.jpg",
184
+ "text": "$$\n\\pmb { \\theta } _ { t + 1 } = ( 1 - \\lambda ) \\pmb { \\theta } _ { t } - \\alpha \\nabla f _ { t } ( \\pmb { \\theta } _ { t } ) ,\n$$",
185
+ "text_format": "latex",
186
+ "bbox": [
187
+ 375,
188
+ 511,
189
+ 588,
190
+ 529
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "where $\\lambda$ defines the rate of the weight decay per step and $\\nabla f _ { t } ( \\pmb { \\theta } _ { t } )$ is the $t$ -th batch gradient to be multiplied by a learning rate $\\alpha$ . For standard SGD, it is equivalent to standard $\\mathrm { L _ { 2 } }$ regularization: ",
197
+ "bbox": [
198
+ 173,
199
+ 535,
200
+ 825,
201
+ 563
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "Proposition 1 (Weight decay ${ \\bf \\tau } = { \\bf L } _ { 2 }$ reg for standard SGD). Standard SGD with base learning rate $\\alpha$ executes the same steps on batch loss functions $f _ { t } ( \\pmb \\theta )$ with weight decay $\\lambda$ (defined in Equation $I$ ) as it executes without weight decay on $\\begin{array} { r } { f _ { t } ^ { r e g } ( { \\pmb { \\theta } } ) = f _ { t } ( { \\pmb { \\theta } } ) + \\frac { \\lambda ^ { \\prime } } { 2 } \\left\\| { \\pmb { \\theta } } \\right\\| _ { 2 } ^ { 2 } } \\end{array}$ , with $\\begin{array} { r } { \\lambda ^ { \\prime } = \\frac { \\lambda } { \\alpha } } \\end{array}$ . ",
208
+ "bbox": [
209
+ 174,
210
+ 566,
211
+ 825,
212
+ 614
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "The proofs of this well-known fact, as well as our other propositions, are given in the Appendix A. ",
219
+ "bbox": [
220
+ 173,
221
+ 623,
222
+ 818,
223
+ 638
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Due to this equivalence, $\\mathrm { L _ { 2 } }$ regularization is very frequently referred to as weight decay, including in popular deep learning libraries. However, as we will demonstrate later in this section, this equivalence does not hold for adaptive gradient methods. One fact that is often overlooked already for the simple case of SGD is that in order for the equivalence to hold, the $\\mathrm { L _ { 2 } }$ regularizer $\\lambda ^ { \\prime }$ has to be set to $\\frac { \\lambda } { \\underset { \\mathbf { x } } { \\alpha } }$ , i.e., if there ie learning rate n overall best weight decay value . In order to decouple the effects $\\lambda$ , the best value of these two hyperp $\\lambda ^ { \\prime }$ is tightly coupled withmeters, we advocate to $\\alpha$ decouple the weight decay step as proposed by Hanson & Pratt (1988) (Equation 1). ",
230
+ "bbox": [
231
+ 174,
232
+ 645,
233
+ 825,
234
+ 743
235
+ ],
236
+ "page_idx": 1
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "Looking first at the case of SGD, we propose to decay the weights simultaneously with the update of $\\theta _ { t }$ based on gradient information in Line 9 of Algorithm 1. This yields our proposed variant of SGD with momentum using decoupled weight decay (SGDW). This simple modification explicitly decouples $\\lambda$ and $\\alpha$ (although some problem-dependent implicit coupling may of course remain as for any two hyperparameters). In order to account for a possible scheduling of both $\\alpha$ and $\\lambda$ , we introduce a scaling factor $\\eta _ { t }$ delivered by a user-defined procedure SetScheduleMultiplier $( t )$ . ",
241
+ "bbox": [
242
+ 173,
243
+ 750,
244
+ 825,
245
+ 833
246
+ ],
247
+ "page_idx": 1
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "Now, let’s turn to adaptive gradient algorithms like the popular optimizer Adam Kingma & Ba (2014), which scale gradients by their historic magnitudes. Intuitively, when Adam is run on a loss function $f$ plus $\\mathrm { L _ { 2 } }$ regularization, weights that tend to have large gradients in $f$ do not get regularized as much as they would with decoupled weight decay, since the gradient of the regularizer gets scaled along with the gradient of $f$ . This leads to an inequivalence of $\\mathrm { L _ { 2 } }$ and decoupled weight decay regularization for adaptive gradient algorithms: ",
252
+ "bbox": [
253
+ 174,
254
+ 840,
255
+ 825,
256
+ 924
257
+ ],
258
+ "page_idx": 1
259
+ },
260
+ {
261
+ "type": "table",
262
+ "img_path": "images/d28caad00fcf5caa5d4473cafd1a45b04c0393d1844616f9e5acbea388ec756e.jpg",
263
+ "table_caption": [],
264
+ "table_footnote": [],
265
+ "table_body": "<table><tr><td>Algorithm 1 SGD with L2 regularization</td><td></td><td>SGD with decoupled weight decay (SGDW) both</td></tr><tr><td>with momentum</td><td colspan=\"2\"></td></tr></table>",
266
+ "bbox": [
267
+ 173,
268
+ 103,
269
+ 823,
270
+ 136
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "1: given initial learning rate $\\alpha \\in \\mathbb { R }$ , momentum factor $\\beta _ { 1 } \\in \\mathbb { R }$ , weight decay/L2 regularization factor $\\overline { { \\lambda \\in \\mathbb { R } } }$ \n2: initialize time step $t 0$ , parameter vector $\\pmb { \\theta } _ { t = 0 } ~ \\in ~ \\mathbb { R } ^ { n }$ , first moment vector $\\pmb { m } _ { t = 0 } \\gets \\pmb { \\theta }$ , schedule \nmultiplier $\\eta _ { t = 0 } \\in \\mathbb { R }$ \n3: repeat \n4: $t \\gets t + 1$ \n5: $\\nabla f _ { t } \\big ( \\pmb { \\theta } _ { t - 1 } \\big ) \\gets \\mathrm { S e l e c t B a t c h } \\big ( \\pmb { \\theta } _ { t - 1 } \\big )$ . select batch and return the corresponding gradient \n6: $\\pmb { g } _ { t } \\gets \\nabla f _ { t } ( \\pmb { \\theta } _ { t - 1 } ) \\ + \\lambda \\pmb { \\theta } _ { t - 1 }$ \n7: ηt ← SetScheduleMultiplier(t) . can be fixed, decay, be used for warm restarts \n8: ${ \\pmb { m } } _ { t } \\gets \\beta _ { 1 } { \\pmb { m } } _ { t - 1 } + \\eta _ { t } \\alpha { \\pmb { g } } _ { t }$ \n9: $\\pmb { \\theta } _ { t } \\gets \\pmb { \\theta } _ { t - 1 } - \\pmb { m } _ { t } - \\eta _ { t } \\lambda \\pmb { \\theta } _ { t - 1 }$ \n10: until stopping criterion is met \n11: return optimized parameters ${ \\pmb \\theta } _ { t }$ \n1: given $\\alpha = 0 . 0 0 1 , \\beta _ { 1 } = 0 . 9 , \\beta _ { 2 } = 0 . 9 9 9 , \\epsilon = 1 0 ^ { - 8 } , \\lambda \\in \\mathbb { R }$ \n2: initialize time step $t \\gets 0$ , parameter vector $\\pmb { \\theta } _ { t = 0 } \\in \\mathbb { R } ^ { n }$ , first moment vector $\\pmb { m } _ { t = 0 } \\pmb { \\theta }$ , second moment \nvector $\\pmb { \\nu } _ { t = 0 } \\pmb { \\theta }$ , schedule multiplier $\\eta _ { t = 0 } \\in \\mathbb { R }$ \n3: repeat \n4: $t \\gets t + 1$ \n5: $\\nabla f _ { t } ( { \\mathbf { \\dot { \\theta } } } _ { t - 1 } ^ { \\phantom { \\dagger } } ) \\gets \\mathrm { S e l e c t B a t c h } ( { \\mathbf { \\theta } } _ { t - 1 } )$ . select batch and return the corresponding gradient \n6: $\\pmb { \\mathscr { g } } _ { t } \\gets \\nabla f _ { t } ( \\pmb { \\theta } _ { t - 1 } ) \\ + \\lambda \\pmb { \\theta } _ { t - 1 }$ \n7: $\\pmb { m } _ { t } \\gets \\beta _ { 1 } \\pmb { m } _ { t - 1 } + ( 1 - \\beta _ { 1 } ) \\pmb { g } _ { t }$ . here and below all operations are element-wise \n8: $\\pmb { \\nu } _ { t } \\gets \\beta _ { 2 } \\pmb { \\nu } _ { t - 1 } + ( 1 - \\beta _ { 2 } ) \\pmb { g } _ { t } ^ { 2 }$ \n9: $\\hat { { \\pmb { m } } } _ { t } \\gets { \\pmb { m } } _ { t } / ( 1 - \\beta _ { 1 } ^ { t } )$ . $\\beta _ { 1 }$ is taken to the power of $t$ \n10: ˆvt ← vt/(1 − βt2) . $\\beta _ { 2 }$ is taken to the power of $t$ \n11: $\\eta _ { t } \\gets$ SetScheduleMultiplier(t) . can be fixed, decay, or also be used for warm restarts \n12: θt ← θt−1 − ηt \u0010αmˆ t/( ˆvt + \u000f) +λθt−1 \n13: until stopping criterion is met ",
277
+ "bbox": [
278
+ 174,
279
+ 138,
280
+ 825,
281
+ 314
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "table",
287
+ "img_path": "images/427aa4b7248d59bec9c9c1190f8d57ada93091c883fb27d91441fcc12e42681d.jpg",
288
+ "table_caption": [],
289
+ "table_footnote": [],
290
+ "table_body": "<table><tr><td>Algorithm 2 Adam with L2 regularization</td><td>and</td></tr></table>",
291
+ "bbox": [
292
+ 173,
293
+ 345,
294
+ 807,
295
+ 366
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "",
302
+ "bbox": [
303
+ 176,
304
+ 369,
305
+ 825,
306
+ 565
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "14: return optimized parameters ${ \\pmb \\theta } _ { t }$ ",
313
+ "bbox": [
314
+ 176,
315
+ 564,
316
+ 393,
317
+ 577
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Proposition 2 (Weight decay $\\neq \\mathrm { L } _ { 2 }$ reg for adaptive gradients). Let $O$ denote an optimizer that has iterates $\\pmb { \\theta } _ { t + 1 } \\pmb { \\theta } _ { t } - \\alpha \\mathbf { M } _ { t } \\nabla f _ { t } ( \\pmb { \\theta } _ { t } )$ when run on batch loss function $f _ { t } ( \\pmb \\theta )$ without weight decay, and $\\pmb { \\theta } _ { t + 1 } \\gets ( 1 - \\lambda ) \\pmb { \\theta } _ { t } - \\alpha \\mathbf { M } _ { t } \\nabla f _ { t } ( \\pmb { \\theta } _ { t } )$ when run on $f _ { t } ( \\pmb \\theta )$ with weight decay, respectively, with $\\mathbf { M } _ { t } \\neq k \\mathbf { I }$ (where $k \\in \\mathbb { R } ,$ ). Then, for $O$ there exists no $L _ { 2 }$ coefficient $\\lambda ^ { \\prime }$ such that running $O$ on batch loss $\\begin{array} { r } { f _ { t } ^ { r e g } ( { \\pmb \\theta } ) = f _ { t } ( { \\pmb \\theta } ) + \\frac { \\lambda ^ { \\prime } } { 2 } \\left. { \\pmb \\theta } \\right. _ { 2 } ^ { 2 } } \\end{array}$ without weight decay is equivalent to running $O$ on $f _ { t } ( \\pmb \\theta )$ with decay $\\lambda \\in \\mathbb { R } ^ { + }$ . ",
324
+ "bbox": [
325
+ 173,
326
+ 617,
327
+ 825,
328
+ 705
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "We decouple weight decay and loss-based gradient updates in Adam as shown in line 12 of Algorithm 2; this gives rise to our variant of Adam with decoupled weight decay (AdamW). ",
335
+ "bbox": [
336
+ 173,
337
+ 722,
338
+ 823,
339
+ 750
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Having shown that $\\mathrm { L _ { 2 } }$ regularization and weight decay regularization differ for adaptive gradient algorithms raises the question of how they differ and how to interpret their effects. Their equivalence for standard SGD remains very helpful for intuition: both mechanisms push weights closer to zero, at the same rate. However, for adaptive gradient algorithms they differ: with $\\mathrm { L _ { 2 } }$ regularization, the sums of the gradient of the loss function and the gradient of the regularizer (i.e., the $\\mathrm { L _ { 2 } }$ norm of the weights) are adapted, whereas with weight decay, only the gradients of the loss function are adapted (with the weight decay step separated from the adaptive gradient mechanism). With $\\mathrm { L _ { 2 } }$ regularization both types of gradients are normalized by their typical (summed) magnitudes, and therefore weights $x$ with large typical gradient magnitude $s$ are regularized by a smaller relative amount than other weights. In contrast, weight decay regularizes all weights with the same rate $\\lambda$ , effectively regularizing weights $x$ with large $s$ more than standard $\\mathrm { L _ { 2 } }$ regularization does. We demonstrate this formally for a simple special case of adaptive gradient algorithm with a fixed preconditioner: ",
346
+ "bbox": [
347
+ 174,
348
+ 757,
349
+ 825,
350
+ 924
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "Proposition 3 (Weight decay $=$ scale-adjusted $L _ { 2 }$ reg for adaptive gradient algorithm with fixed preconditioner). Let $O$ denote an algorithm with the same characteristics as in Proposition 2, and using a fixed preconditioner matrix ${ \\bf \\bar { \\cal M } } _ { t } = d i a g ( s ) ^ { - 1 }$ (with $s _ { i } > 0$ for all $i _ { , }$ ). Then, $O$ with base learning rate $\\alpha$ executes the same steps on batch loss functions $f _ { t } ( \\pmb \\theta )$ with weight decay $\\lambda$ as it executes without weight decay on the scale-adjusted regularized batch loss ",
357
+ "bbox": [
358
+ 173,
359
+ 102,
360
+ 825,
361
+ 174
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "equation",
367
+ "img_path": "images/d2f73cbd4b3badd7ea44a4678ea341de35400758883285a44a5d1c0161c90886.jpg",
368
+ "text": "$$\nf _ { t } ^ { s r e g } ( \\pmb { \\theta } ) = f _ { t } ( \\pmb { \\theta } ) + \\frac { \\lambda ^ { \\prime } } { 2 \\alpha } \\left\\| \\pmb { \\theta } \\odot \\sqrt { \\pmb { s } } \\right\\| _ { 2 } ^ { 2 } ,\n$$",
369
+ "text_format": "latex",
370
+ "bbox": [
371
+ 379,
372
+ 176,
373
+ 619,
374
+ 208
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "where $\\odot$ and $\\sqrt { \\cdot }$ denote element-wise multiplication and square root, respectively, and $\\begin{array} { r } { \\lambda ^ { \\prime } = \\frac { \\lambda } { \\alpha } } \\end{array}$ ",
381
+ "bbox": [
382
+ 171,
383
+ 217,
384
+ 794,
385
+ 233
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "3 JUSTIFICATION OF DECOUPLED WEIGHT DECAY VIA A VIEW OF ADAPTIVE GRADIENT METHODS AS BAYESIAN FILTERING ",
392
+ "text_level": 1,
393
+ "bbox": [
394
+ 176,
395
+ 256,
396
+ 740,
397
+ 291
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "We now discuss a justification of decoupled weight decay in the framework of Bayesian filtering for a unified theory of adaptive gradient algorithms due to Aitchison (2018). After we posted a preliminary version of our current paper on arXiv, Aitchison noted that his theory “gives us a theoretical framework in which we can understand the superiority of this weight decay over $L _ { 2 }$ regularization, because it is weight decay, rather than $L _ { 2 }$ regularization that emerges through the straightforward application of Bayesian filtering.”(Aitchison, 2018). While full credit for this theory goes to Aitchison, we summarize it here to shed some light on why weight decay may be favored over $L _ { 2 }$ regularization. ",
404
+ "bbox": [
405
+ 173,
406
+ 308,
407
+ 825,
408
+ 420
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Aitchison (2018) views stochastic optimization of $n$ parameters $x _ { 1 } , \\ldots , x _ { n }$ as a Bayesian filtering problem with the goal of inferring a distribution over the optimal values of each of the parameters $x _ { i }$ given the current values of the other parameters $\\pmb \\theta _ { - i } ( t )$ at time step $t$ . When the other parameters do not change this is an optimization problem, but when they do change it becomes one of “tracking” the optimizer using Bayesian filtering as follows. One is given a probability distribution $\\bar { P ( \\pmb \\theta _ { t } ) } \\ |$ $y _ { 1 : t } )$ of the optimizer at time step $t$ that takes into account the data $\\scriptstyle { \\boldsymbol { y } } _ { 1 : t }$ from the first $t$ mini batches, a state transition prior $P ( \\pmb \\theta _ { t + 1 } \\mid \\pmb \\theta _ { t } )$ reflecting a (small) data-independent change in this distribution from one step to the next, and a likelihood $\\mathbf { \\bar { \\ u } } _ { P ( \\pmb { y } _ { t + 1 } \\mid \\mathbf { \\theta } _ { t + 1 } ) }$ derived from the mini batch at step $t + 1$ . The posterior distribution $P ( \\pmb { \\theta } _ { t + 1 } \\mid \\mathbf { y } _ { 1 : t + 1 } )$ of the optimizer at time step $t + 1$ can then be computed (as usual in Bayesian filtering) by marginalizing over $\\theta _ { t }$ to obtain the onestep ahead predictions $P ( \\pmb { \\theta } _ { t + 1 } \\mid \\pmb { y } _ { 1 : t } )$ and then applying Bayes’ rule to incorporate the likelihood $\\textstyle P ( \\mathbf { \\bar { y } } _ { t + 1 } \\mid \\theta _ { t + 1 } )$ . Aitchison (2018) assumes a Gaussian state transition distribution $P ( \\pmb \\theta _ { t + 1 } \\mid \\pmb \\theta _ { t } )$ and an approximate conjugate likelihood $\\textstyle P ( \\pmb { y } _ { t + 1 } \\mid \\pmb { \\theta } _ { t + 1 } )$ , leading to the following closed-form update of the filtering distribution’s mean: ",
415
+ "bbox": [
416
+ 173,
417
+ 426,
418
+ 825,
419
+ 621
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "equation",
425
+ "img_path": "images/6e63676b3bb3b5319b7de8b42bd389c6c33d70aaafbc1affe0bbc3fda6910821.jpg",
426
+ "text": "$$\n\\begin{array} { r } { \\pmb { \\mu } _ { p o s t } = \\pmb { \\mu } _ { p r i o r } + \\pmb { \\Sigma } _ { p o s t } \\times \\pmb { g } , } \\end{array}\n$$",
427
+ "text_format": "latex",
428
+ "bbox": [
429
+ 400,
430
+ 632,
431
+ 598,
432
+ 650
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "where $\\textbf { { g } }$ is the gradient of the log likelihood of the mini batch at time $t$ . This result implies a preconditioner of the gradients that is given by the posterior uncertainty $\\Sigma _ { p o s t }$ of the filtering distribution: updates are larger for parameters we are more uncertain about and smaller for parameters we are more certain about. Aitchison (2018) goes on to show that popular adaptive gradient methods, such as Adam and RMSprop, as well as Kronecker-factorized methods are special cases of this framework. ",
439
+ "bbox": [
440
+ 174,
441
+ 660,
442
+ 823,
443
+ 744
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "Decoupled weight decay very naturally fits into this unified framework can express weight decay as part of the state-transition distribution: Aitchison (2018) assumes a slow change of the optimizer according to the following Gaussian: ",
450
+ "bbox": [
451
+ 174,
452
+ 751,
453
+ 825,
454
+ 792
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "equation",
460
+ "img_path": "images/c33ccc7525a2c3a479e48f9ee6eb2aab1cd47603d352fea8c880562351ac2f7b.jpg",
461
+ "text": "$$\nP ( \\pmb \\theta _ { t + 1 } \\mid \\pmb \\theta _ { t } ) = N ( ( \\pmb I - \\pmb A ) \\pmb \\theta _ { t } , \\pmb Q ) ,\n$$",
462
+ "text_format": "latex",
463
+ "bbox": [
464
+ 380,
465
+ 804,
466
+ 617,
467
+ 821
468
+ ],
469
+ "page_idx": 3
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "where $Q$ is the covariance of Gaussian perturbations of the weights, and $\\pmb { A }$ is a regularizer to avoid values growing unboundedly over time. When instantiated as $A = \\lambda \\times I$ , this regularizer $\\pmb { A }$ plays exactly the role of decoupled weight decay as described in Equation 1, since this leads to multiplying the current mean estimate $\\theta _ { t }$ by $( 1 - \\lambda )$ at each step. Notably, this regularization is also directly applied to the prior and does not depend on the uncertainty in each of the parameters (which would be required for $L _ { 2 }$ regularization). ",
474
+ "bbox": [
475
+ 173,
476
+ 839,
477
+ 825,
478
+ 924
479
+ ],
480
+ "page_idx": 3
481
+ },
482
+ {
483
+ "type": "image",
484
+ "img_path": "images/cdc01f838cc870b7893f2bd8b1b4fdadd1d0ed078db65ddff2d8aef49b319780.jpg",
485
+ "image_caption": [
486
+ "Figure 1: Adam performs better with decoupled weight decay (bottom row, AdamW) than with $L _ { 2 }$ regularization (top row, Adam). We show the final test error of a $2 6 ~ 2 \\mathrm { x } 6 4 \\mathrm { d }$ ResNet on CIFAR-10 after 100 epochs of training with fixed learning rate (left column), step-drop learning rate (with drops at epoch indexes 30, 60 and 80, middle column) and cosine annealing (right column). AdamW leads to a more separable hyperparameter search space, especially when a learning rate schedule, such as step-drop and cosine annealing is applied. Cosine annealing yields clearly superior results. "
487
+ ],
488
+ "image_footnote": [],
489
+ "bbox": [
490
+ 225,
491
+ 98,
492
+ 774,
493
+ 382
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "4 EXPERIMENTAL VALIDATION ",
500
+ "text_level": 1,
501
+ "bbox": [
502
+ 178,
503
+ 515,
504
+ 446,
505
+ 530
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "We now evaluate the performance of decoupled weight decay under various training budgets and learning rate schedules. Our experimental setup follows that of Gastaldi (2017), who proposed, in addition to $\\mathrm { L _ { 2 } }$ regularization, to apply the new Shake-Shake regularization to a 3-branch residual DNN that allowed to achieve new state-of-the-art results of $2 . 8 6 \\%$ on the CIFAR-10 dataset (Krizhevsky, 2009). We always used a batch size of 128. The regular data augmentation procedure used for the CIFAR datasets was applied. We used the same model/source code based on fb.resnet.torch 1. The base networks are a $2 6 ~ 2 \\mathrm { x } 6 4 \\mathrm { d }$ ResNet (i.e. the network has a depth of 26, 2 residual branches and the first residual block has a width of 64) and a $2 6 2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet with $1 1 . 6 \\mathbf { M }$ and $2 5 . 6 \\mathbf { M }$ parameters, respectively. For a detailed description of the network and the Shake-Shake method, we refer the interested reader to Gastaldi (2017). We also perform experiments on the ImageNet32x32 dataset (Chrabaszcz et al., 2017), a downsampled version of the original ImageNet dataset with 1.2 million $3 2 \\times 3 2$ pixels images. ",
512
+ "bbox": [
513
+ 174,
514
+ 549,
515
+ 825,
516
+ 715
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "4.1 EVALUATING DECOUPLED WEIGHT DECAY WITH DIFFERENT LEARNING RATE SCHEDULES ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 176,
526
+ 737,
527
+ 761,
528
+ 765
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "In our first experiment, we compare Adam with $L _ { 2 }$ regularization to Adam with decoupled weight decay (AdamW), using three different learning rate schedules: a fixed learning rate, a drop-step schedule, and a cosine annealing schedule (Loshchilov & Hutter, 2016). For each learning rate schedule and weight decay variant, we trained a 2x64d ResNet for 100 epochs, using different settings of the initial learning rate $\\alpha$ and the weight decay factor $\\lambda$ . Figure 1 shows that decoupled weight decay outperforms $L _ { 2 }$ regularization for all learning rate schedules, with larger differences for better learning rate schedules. We also note that decoupled weight decay leads to a more separable hyperparameter search space, especially when a learning rate schedule, such as step-drop and cosine annealing is applied. The figure also shows that cosine annealing clearly outperforms the other learning rate schedules; we thus used cosine annealing for the remainder of the experiments. ",
535
+ "bbox": [
536
+ 173,
537
+ 779,
538
+ 825,
539
+ 891
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "image",
545
+ "img_path": "images/912ae7b475cea2253f76582036e0793936fecf71a117beab28917bbc8e28d712.jpg",
546
+ "image_caption": [
547
+ "Figure 2: The Top-1 test error of a 26 2x64d ResNet on CIFAR-10 measured after 100 epochs. The proposed SGDW and AdamW (right column) have a more separable hyperparameter space. "
548
+ ],
549
+ "image_footnote": [],
550
+ "bbox": [
551
+ 245,
552
+ 98,
553
+ 754,
554
+ 410
555
+ ],
556
+ "page_idx": 5
557
+ },
558
+ {
559
+ "type": "image",
560
+ "img_path": "images/ebfc9d3556d4d95c8aaba3765fe521f34e36b21c331fc769c98b81b49d5fe39f.jpg",
561
+ "image_caption": [
562
+ "Figure 3: Learning curves (top row) and generalization results (bottom row) obtained by a 26 $2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet trained with Adam and AdamW on CIFAR-10. See text for details. SuppFigure 4 in the Appendix shows the same qualitative results for ImageNet $3 2 \\mathbf { x } 3 2$ . "
563
+ ],
564
+ "image_footnote": [],
565
+ "bbox": [
566
+ 236,
567
+ 487,
568
+ 754,
569
+ 794
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "",
576
+ "bbox": [
577
+ 174,
578
+ 895,
579
+ 823,
580
+ 924
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "4.2 DECOUPLING THE WEIGHT DECAY AND INITIAL LEARNING RATE PARAMETERS",
587
+ "bbox": [
588
+ 173,
589
+ 103,
590
+ 771,
591
+ 117
592
+ ],
593
+ "page_idx": 6
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "In order to verify our hypothesis about the coupling of $\\alpha$ and $\\lambda$ , in Figure 2 we compare the performance of $\\mathrm { L _ { 2 } }$ regularization vs. decoupled weight decay in SGD (SGD vs. SGDW, top row) and in Adam (Adam vs. AdamW, bottom row). In SGD (Figure 2, top left), $\\mathrm { L _ { 2 } }$ regularization is not decoupled from the learning rate (the common way as described in Algorithm 1), and the figure clearly shows that the basin of best hyperparameter settings (depicted by color and top-10 hyperparameter settings by black circles) is not aligned with the $\\mathbf { X }$ -axis or y-axis but lies on the diagonal. This suggests that the two hyperparameters are interdependent and need to be changed simultaneously, while only changing one of them might substantially worsen results. Consider, e.g., the setting at the top left black circle $( \\alpha = 1 / 2$ , $\\lambda \\overset { - } { = } 1 / 8 * 0 . 0 0 1 )$ ; only changing either $\\alpha$ or $\\lambda$ by itself would worsen results, while changing both of them could still yield clear improvements. We note that this coupling of initial learning rate and $\\mathrm { L _ { 2 } }$ regularization factor might have contributed to SGD’s reputation of being very sensitive to its hyperparameter settings. ",
598
+ "bbox": [
599
+ 174,
600
+ 140,
601
+ 825,
602
+ 306
603
+ ],
604
+ "page_idx": 6
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "In contrast, the results for SGD with decoupled weight decay (SGDW) in Figure 2 (top right) show that weight decay and initial learning rate are decoupled. The proposed approach renders the two hyperparameters more separable: even if the learning rate is not well tuned yet (e.g., consider the value of 1/1024 in Figure 2, top right), leaving it fixed and only optimizing the weight decay factor would yield a good value (of $1 / 4 ^ { * } 0 . 0 0 1$ ). This is not the case for SGD with $\\mathrm { L _ { 2 } }$ regularization (see Figure 2, top left). ",
609
+ "bbox": [
610
+ 174,
611
+ 313,
612
+ 825,
613
+ 397
614
+ ],
615
+ "page_idx": 6
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "The results for Adam with $\\mathrm { L _ { 2 } }$ regularization are given in Figure 2 (bottom left). Adam’s best hyperparameter settings performed clearly worse than SGD’s best ones (compare Figure 2, top left). While both methods used $\\mathrm { L _ { 2 } }$ regularization, Adam did not benefit from it at all: its best results obtained for non-zero $\\mathrm { L _ { 2 } }$ regularization factors were comparable to the best ones obtained without the $\\mathrm { L _ { 2 } }$ regularization, i.e., when $\\lambda = 0$ . Similarly to the original SGD, the shape of the hyperparameter landscape suggests that the two hyperparameters are coupled. ",
620
+ "bbox": [
621
+ 174,
622
+ 404,
623
+ 823,
624
+ 488
625
+ ],
626
+ "page_idx": 6
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "In contrast, the results for our new variant of Adam with decoupled weight decay (AdamW) in Figure 2 (bottom right) show that AdamW largely decouples weight decay and learning rate. The results for the best hyperparameter settings were substantially better than the best ones of Adam with $\\mathrm { L _ { 2 } }$ regularization and rivaled those of SGD and SGDW. ",
631
+ "bbox": [
632
+ 174,
633
+ 494,
634
+ 825,
635
+ 550
636
+ ],
637
+ "page_idx": 6
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "In summary, the results in Figure 2 support our hypothesis that the weight decay and learning rate hyperparameters can be decoupled, and that this in turn simplifies the problem of hyperparameter tuning in SGD and improves Adam’s performance to be competitive w.r.t. SGD with momentum. ",
642
+ "bbox": [
643
+ 176,
644
+ 558,
645
+ 825,
646
+ 599
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "4.3 BETTER GENERALIZATION OF ADAMW ",
653
+ "text_level": 1,
654
+ "bbox": [
655
+ 176,
656
+ 643,
657
+ 486,
658
+ 657
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "While the previous experiment suggested that the basin of optimal hyperparameters of AdamW is broader and deeper than the one of Adam, we next investigated the results for much longer runs of 1800 epochs to compare the generalization capabilities of AdamW and Adam. ",
665
+ "bbox": [
666
+ 176,
667
+ 680,
668
+ 823,
669
+ 722
670
+ ],
671
+ "page_idx": 6
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "We fixed the initial learning rate to 0.001 which represents both the default learning rate for Adam and the one which showed reasonably good results in our experiments. Figure 3 shows the results for 12 settings of the $\\mathrm { L _ { 2 } }$ regularization of Adam and 7 settings of the normalized weight decay of AdamW (the normalized weight decay represents a rescaling formally defined in the Appendix B.1, it amounts to a multiplicative factor which depends on the number of bath passes). Interestingly, while the dynamics of the learning curves of Adam and AdamW often coincided for the first half of the training run, AdamW often led to lower training loss and test errors (see Figure 3 top left and top right, respectively). Importantly, the use of weight decay in Adam did not yield as good results as in AdamW (see also Figure 3, bottom left). Next, we investigated whether AdamW’s better results were only due to better convergence or due to better generalization. The results in Figure 3 (bottom right) for the best settings of Adam and AdamW suggest that AdamW did not only yield better training loss but also yielded better generalization performance for similar training loss values. The results on ImageNet32x32 (see SuppFigure 4 in the Appendix) lead to the same conclusion of substantially improved generalization performance. ",
676
+ "bbox": [
677
+ 174,
678
+ 729,
679
+ 825,
680
+ 924
681
+ ],
682
+ "page_idx": 6
683
+ },
684
+ {
685
+ "type": "image",
686
+ "img_path": "images/601a579961d1f5b8ba84aa32ca7fd5710ad12c354741ccbf24164731e477145b.jpg",
687
+ "image_caption": [
688
+ "Figure 4: Top-1 test error on CIFAR-10 (left) and Top-5 test error on ImageNet32x32 (right). For a better resolution and with training loss curves, see SuppFigure 5 and SuppFigure 6 in the supplementary material. "
689
+ ],
690
+ "image_footnote": [],
691
+ "bbox": [
692
+ 202,
693
+ 101,
694
+ 790,
695
+ 268
696
+ ],
697
+ "page_idx": 7
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "4.4 ADAMWR WITH WARM RESTARTS FOR BETTER ANYTIME PERFORMANCE ",
702
+ "text_level": 1,
703
+ "bbox": [
704
+ 176,
705
+ 343,
706
+ 728,
707
+ 358
708
+ ],
709
+ "page_idx": 7
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "In order to improve anytime performance of SGDW and AdamW we extended them with warm restarts of (Loshchilov & Hutter, 2016) to obtain SGDWR and AdamWR, respectively (see section B.2 in the Appendix). As Figure 4 shows, AdamWR greatly sped up AdamW on CIFAR-10 and ImageNet32x32, up to a factor of 10 (see the results at the first restart). For the default learning rate of 0.001, AdamW achieved $1 5 \\%$ relative improvement in test errors compared to Adam both on CIFAR-10 (also see Figure 3) and ImageNet $3 2 x 3 2$ (also see SuppFigure 5). AdamWR achieved the same improved results but with a much better anytime performance. These improvements closed most of the gap between Adam and SGDWR on CIFAR-10 and yielded comparable performance on ImageNet32x32. ",
714
+ "bbox": [
715
+ 174,
716
+ 371,
717
+ 825,
718
+ 496
719
+ ],
720
+ "page_idx": 7
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "4.5 USE OF ADAMW ON OTHER DATASETS AND ARCHITECTURES ",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 176,
728
+ 518,
729
+ 637,
730
+ 531
731
+ ],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "Several other research groups have already successfully applied AdamW in citable works. For example, Wang et al. (2018) used AdamW to train a novel architecture for face detection on the standard WIDER FACE dataset (Yang et al., 2016), obtaining almost 10x faster predictions than the previous state of the art algorithms while achieving comparable performance. Volker et al. (2018) employed ¨ AdamW with cosine annealing to train convolutional neural networks to classify and characterize error-related brain signals measured from intracranial electroencephalography (EEG) recordings. While their paper does not provide a comparison to Adam, they kindly provided us with a direct comparison of the two on their best-performing problem-specific network architecture Deep4Net and a variant of ResNet. AdamW with the same hyperparameter setting as Adam yielded higher test set accuracy on Deep4Net $7 3 . 6 8 \\%$ versus $7 1 . 3 7 \\%$ ) and statistically significantly higher test set accuracy on ResNet $( 7 2 . 0 4 \\%$ versus $6 1 . 3 4 \\%$ . Radford et al. (2018) employed AdamW to train Transformer (Vaswani et al., 2017) architectures to obtain new state-of-the-art results on a wide range of benchmarks for natural language understanding. Zhang et al. (2018) compared $\\mathrm { L _ { 2 } }$ regularization vs. weight decay for SGD, Adam and the Kronecker-Factored Approximate Curvature (K-FAC) optimizer (Martens & Grosse, 2015) on the CIFAR datasets with ResNet and VGG architectures, reporting that decoupled weight decay consistently outperformed $\\mathrm { L _ { 2 } }$ regularization in cases where they differ. ",
737
+ "bbox": [
738
+ 174,
739
+ 545,
740
+ 825,
741
+ 781
742
+ ],
743
+ "page_idx": 7
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "5 CONCLUSION AND FUTURE WORK ",
748
+ "text_level": 1,
749
+ "bbox": [
750
+ 176,
751
+ 806,
752
+ 495,
753
+ 821
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Following suggestions that adaptive gradient methods such as Adam might lead to worse generalization than SGD with momentum (Wilson et al., 2017), we identified and exposed the inequivalence of $\\mathrm { L _ { 2 } }$ regularization and weight decay for Adam. We empirically showed that our version of Adam with decoupled weight decay yields substantially better generalization performance than the common implementation of Adam with $\\mathrm { L _ { 2 } }$ regularization. We also proposed to use warm restarts for Adam to improve its anytime performance. ",
760
+ "bbox": [
761
+ 174,
762
+ 840,
763
+ 823,
764
+ 924
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Our results obtained on image classification datasets must be verified on a wider range of tasks, especially ones where the use of regularization is expected to be important. It would be interesting to integrate our findings on weight decay into other methods which attempt to improve Adam, e.g, normalized direction-preserving Adam (Zhang et al., 2017). While we focused our experimental analysis on Adam, we believe that similar results also hold for other adaptive gradient methods, such as AdaGrad (Duchi et al., 2011) and AMSGrad (Reddi et al., 2018). ",
771
+ "bbox": [
772
+ 174,
773
+ 103,
774
+ 825,
775
+ 188
776
+ ],
777
+ "page_idx": 8
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "6 ACKNOWLEDGMENTS ",
782
+ "text_level": 1,
783
+ "bbox": [
784
+ 176,
785
+ 209,
786
+ 387,
787
+ 226
788
+ ],
789
+ "page_idx": 8
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "This work was supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme under grant no. 716721, by the German Research Foundation (DFG), under the BrainLinksBrainTools Cluster of Excellence (grant number EXC 1086) and through grant no. INST 37/935-1 FUGG, and by the German state of BadenWurttemberg through bwHPC. We thank Patryk Chrabaszcz for helping running experiments with ¨ ImageNet32x32. We thank Matthias Feurer and Robin Schirrmeister for providing valuable feedback on this paper in several iterations. We thank Martin Volker, Robin Schirrmeister, and Tonio ¨ Ball for providing us with a comparison of AdamW and Adam on their EEG data. ",
794
+ "bbox": [
795
+ 174,
796
+ 241,
797
+ 825,
798
+ 353
799
+ ],
800
+ "page_idx": 8
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Finally, we thank the following members of the deep learning community for implementing decoupled weight decay in various deep learning libraries: ",
805
+ "bbox": [
806
+ 173,
807
+ 359,
808
+ 821,
809
+ 388
810
+ ],
811
+ "page_idx": 8
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "• Jingwei Zhang, Lei Tai, Robin Schirrmeister, and Kashif Rasul for their implementations in PyTorch (see https://github.com/pytorch/pytorch/pull/4429) \n• Phil Jund for his implementation in TensorFlow described at https://www.tensorflow.org/api_docs/python/tf/contrib/opt/ DecoupledWeightDecayExtension Sylvain Gugger, Anand Saha, Jeremy Howard and other members of fast.ai for their implementation available at https://github.com/sgugger/Adam-experiments Guillaume Lambard for his implementation in Keras available at https://github. com/GLambard/AdamW_Keras \n• Yagami Lin for his implementation in Caffe available at https://github.com/ Yagami123/Caffe-AdamW-AdamWR ",
816
+ "bbox": [
817
+ 215,
818
+ 400,
819
+ 825,
820
+ 565
821
+ ],
822
+ "page_idx": 8
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "REFERENCES ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 174,
830
+ 588,
831
+ 287,
832
+ 604
833
+ ],
834
+ "page_idx": 8
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "Laurence Aitchison. A unified theory of adaptive stochastic gradient descent as Bayesian filtering. arXiv:1507.02030, 2018. ",
839
+ "bbox": [
840
+ 173,
841
+ 613,
842
+ 821,
843
+ 642
844
+ ],
845
+ "page_idx": 8
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of ImageNet as an alternative to the CIFAR datasets. arXiv:1707.08819, 2017. ",
850
+ "bbox": [
851
+ 169,
852
+ 652,
853
+ 823,
854
+ 683
855
+ ],
856
+ "page_idx": 8
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018. ",
861
+ "bbox": [
862
+ 171,
863
+ 693,
864
+ 823,
865
+ 722
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. arXiv:1703.04933, 2017. ",
872
+ "bbox": [
873
+ 173,
874
+ 733,
875
+ 823,
876
+ 762
877
+ ],
878
+ "page_idx": 8
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 12:2121–2159, 2011. ",
883
+ "bbox": [
884
+ 173,
885
+ 773,
886
+ 823,
887
+ 804
888
+ ],
889
+ "page_idx": 8
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Xavier Gastaldi. Shake-Shake regularization. arXiv preprint arXiv:1705.07485, 2017. ",
894
+ "bbox": [
895
+ 174,
896
+ 814,
897
+ 740,
898
+ 830
899
+ ],
900
+ "page_idx": 8
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "Stephen Jose Hanson and Lorien Y Pratt. Comparing biases for minimal network construction with ´ back-propagation. In Proceedings of the 1st International Conference on Neural Information Processing Systems, pp. 177–185, 1988. ",
905
+ "bbox": [
906
+ 176,
907
+ 840,
908
+ 825,
909
+ 883
910
+ ],
911
+ "page_idx": 8
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "Gao Huang, Yixuan Li, Geoff Pleiss, Zhuang Liu, John E Hopcroft, and Kilian Q Weinberger. Snapshot ensembles: Train 1, get m for free. arXiv:1704.00109, 2017. ",
916
+ "bbox": [
917
+ 176,
918
+ 895,
919
+ 821,
920
+ 924
921
+ ],
922
+ "page_idx": 8
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv:1609.04836, 2016. ",
927
+ "bbox": [
928
+ 174,
929
+ 103,
930
+ 821,
931
+ 146
932
+ ],
933
+ "page_idx": 9
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014. ",
938
+ "bbox": [
939
+ 173,
940
+ 155,
941
+ 823,
942
+ 184
943
+ ],
944
+ "page_idx": 9
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. ",
949
+ "bbox": [
950
+ 173,
951
+ 193,
952
+ 692,
953
+ 208
954
+ ],
955
+ "page_idx": 9
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "Hao Li, Zheng Xu, Gavin Taylor, and Tom Goldstein. Visualizing the loss landscape of neural nets. arXiv preprint arXiv:1712.09913, 2017. ",
960
+ "bbox": [
961
+ 169,
962
+ 217,
963
+ 821,
964
+ 246
965
+ ],
966
+ "page_idx": 9
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. arXiv:1608.03983, 2016. ",
971
+ "bbox": [
972
+ 169,
973
+ 253,
974
+ 823,
975
+ 284
976
+ ],
977
+ "page_idx": 9
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In International conference on machine learning, pp. 2408–2417, 2015. ",
982
+ "bbox": [
983
+ 169,
984
+ 291,
985
+ 823,
986
+ 321
987
+ ],
988
+ "page_idx": 9
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv:1511.06434, 2015. ",
993
+ "bbox": [
994
+ 173,
995
+ 329,
996
+ 823,
997
+ 359
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openaiassets/research-covers/language-unsupervised/language understanding paper. pdf, 2018. ",
1004
+ "bbox": [
1005
+ 174,
1006
+ 367,
1007
+ 821,
1008
+ 411
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Sashank J. Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. Inter national Conference on Learning Representations, 2018. ",
1015
+ "bbox": [
1016
+ 174,
1017
+ 419,
1018
+ 818,
1019
+ 448
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Leslie N Smith. Cyclical learning rates for training neural networks. arXiv:1506.01186v3, 2016. ",
1026
+ "bbox": [
1027
+ 171,
1028
+ 457,
1029
+ 805,
1030
+ 473
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26– 31, 2012. ",
1037
+ "bbox": [
1038
+ 174,
1039
+ 481,
1040
+ 821,
1041
+ 523
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "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, pp. 5998–6008, 2017. ",
1048
+ "bbox": [
1049
+ 174,
1050
+ 531,
1051
+ 821,
1052
+ 575
1053
+ ],
1054
+ "page_idx": 9
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Martin Volker, Ji ¨ ˇr´ı Hammer, Robin T Schirrmeister, Joos Behncke, Lukas DJ Fiederer, Andreas Schulze-Bonhage, Petr Marusic, Wolfram Burgard, and Tonio Ball. Intracranial error detection ˇ via deep learning. arXiv preprint arXiv:1805.01667, 2018. ",
1059
+ "bbox": [
1060
+ 176,
1061
+ 583,
1062
+ 825,
1063
+ 627
1064
+ ],
1065
+ "page_idx": 9
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Jianfeng Wang, Ye Yuan, Gang Yu, and Sun Jian. Sface: An efficient network for face detection in large scale variations. arXiv preprint arXiv:1804.06559, 2018. ",
1070
+ "bbox": [
1071
+ 173,
1072
+ 636,
1073
+ 823,
1074
+ 665
1075
+ ],
1076
+ "page_idx": 9
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nathan Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. arXiv:1705.08292, 2017. ",
1081
+ "bbox": [
1082
+ 173,
1083
+ 672,
1084
+ 825,
1085
+ 702
1086
+ ],
1087
+ "page_idx": 9
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015. ",
1092
+ "bbox": [
1093
+ 174,
1094
+ 710,
1095
+ 825,
1096
+ 753
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Shuo Yang, Ping Luo, Chen-Change Loy, and Xiaoou Tang. Wider face: A face detection benchmark. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5525–5533, 2016. ",
1103
+ "bbox": [
1104
+ 173,
1105
+ 762,
1106
+ 823,
1107
+ 805
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Guodong Zhang, Chaoqi Wang, Bowen Xu, and Roger Grosse. Three mechanisms of weight decay regularization. arXiv preprint arXiv:1810.12281, 2018. ",
1114
+ "bbox": [
1115
+ 169,
1116
+ 814,
1117
+ 823,
1118
+ 843
1119
+ ],
1120
+ "page_idx": 9
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Zijun Zhang, Lin Ma, Zongpeng Li, and Chuan Wu. Normalized direction-preserving adam. arXiv:1709.04546, 2017. ",
1125
+ "bbox": [
1126
+ 173,
1127
+ 852,
1128
+ 823,
1129
+ 881
1130
+ ],
1131
+ "page_idx": 9
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In arXiv:1707.07012 [cs.CV], 2017. ",
1136
+ "bbox": [
1137
+ 171,
1138
+ 890,
1139
+ 823,
1140
+ 919
1141
+ ],
1142
+ "page_idx": 9
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Appendix ",
1147
+ "text_level": 1,
1148
+ "bbox": [
1149
+ 449,
1150
+ 99,
1151
+ 549,
1152
+ 119
1153
+ ],
1154
+ "page_idx": 10
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "A FORMAL ANALYSIS OF WEIGHT DECAY VS $\\mathrm { L _ { 2 } }$ REGULARIZATION",
1159
+ "bbox": [
1160
+ 174,
1161
+ 136,
1162
+ 751,
1163
+ 155
1164
+ ],
1165
+ "page_idx": 10
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Proof of Proposition 1 ",
1170
+ "text_level": 1,
1171
+ "bbox": [
1172
+ 174,
1173
+ 169,
1174
+ 328,
1175
+ 183
1176
+ ],
1177
+ "page_idx": 10
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "The proof for this well-known fact is straight-forward. SGD without weight decay has the following iterates on $\\begin{array} { r } { f _ { t } ^ { \\mathrm { r e g } } ( { \\pmb \\theta } ) = f _ { t } ( { \\pmb \\theta } ) + \\frac { \\lambda ^ { \\prime } } { 2 } \\left\\| { \\pmb \\theta } \\right\\| _ { 2 } ^ { 2 } } \\end{array}$ : ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 183,
1185
+ 823,
1186
+ 215
1187
+ ],
1188
+ "page_idx": 10
1189
+ },
1190
+ {
1191
+ "type": "equation",
1192
+ "img_path": "images/12cbf277b1d29cdc60da8debb02fb17bb5f24e120c7bda7e5413ec0f6fff36fd.jpg",
1193
+ "text": "$$\n\\pmb { \\theta } _ { t + 1 } \\pmb { \\theta } _ { t } - \\alpha \\nabla f _ { t } ^ { \\mathrm { r e g } } ( \\pmb { \\theta } _ { t } ) = \\pmb { \\theta } _ { t } - \\alpha \\nabla f _ { t } ( \\pmb { \\theta } _ { t } ) - \\alpha \\lambda ^ { \\prime } \\pmb { \\theta } _ { t } .\n$$",
1194
+ "text_format": "latex",
1195
+ "bbox": [
1196
+ 320,
1197
+ 218,
1198
+ 678,
1199
+ 236
1200
+ ],
1201
+ "page_idx": 10
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "SGD with weight decay has the following iterates on $f _ { t } ( \\pmb \\theta )$ : ",
1206
+ "bbox": [
1207
+ 171,
1208
+ 238,
1209
+ 568,
1210
+ 253
1211
+ ],
1212
+ "page_idx": 10
1213
+ },
1214
+ {
1215
+ "type": "equation",
1216
+ "img_path": "images/e07444167de97d4326d5c625942bbfcbff7568caef91f9008ebdd7becccf9e8d.jpg",
1217
+ "text": "$$\n\\pmb { \\theta } _ { t + 1 } ( 1 - \\lambda ) \\pmb { \\theta } _ { t } - \\alpha \\nabla f _ { t } ( \\pmb { \\theta } _ { t } ) .\n$$",
1218
+ "text_format": "latex",
1219
+ "bbox": [
1220
+ 390,
1221
+ 257,
1222
+ 606,
1223
+ 275
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "These iterates are identical since $\\begin{array} { r } { \\lambda ^ { \\prime } = \\frac { \\lambda } { \\alpha } } \\end{array}$ ",
1230
+ "bbox": [
1231
+ 176,
1232
+ 279,
1233
+ 444,
1234
+ 294
1235
+ ],
1236
+ "page_idx": 10
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Proof of Proposition 2 ",
1241
+ "text_level": 1,
1242
+ "bbox": [
1243
+ 174,
1244
+ 300,
1245
+ 330,
1246
+ 314
1247
+ ],
1248
+ "page_idx": 10
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Similarly to the Proof of Proposition 1, the iterates of $O$ without weight decay on $f _ { t } ^ { \\mathrm { r e g } } ( { \\pmb \\theta } ) = f _ { t } ( { \\pmb \\theta } ) +$ $\\begin{array} { r } { \\frac { 1 } { 2 } \\lambda ^ { \\prime } \\left. \\pmb { \\theta } \\right. _ { 2 } ^ { 2 } } \\end{array}$ and $O$ with weight decay $\\lambda$ on $f _ { t }$ are, respectively: ",
1253
+ "bbox": [
1254
+ 173,
1255
+ 314,
1256
+ 820,
1257
+ 345
1258
+ ],
1259
+ "page_idx": 10
1260
+ },
1261
+ {
1262
+ "type": "equation",
1263
+ "img_path": "images/8faff44faea95d8310f1550b2782f9d03233c188a9841efae0b3da3884a0ae66.jpg",
1264
+ "text": "$$\n\\begin{array} { l l l } { \\pmb { \\theta } _ { t + 1 } } & { } & { \\pmb { \\theta } _ { t } - \\alpha \\lambda ^ { \\prime } \\mathbf { M } _ { t } \\pmb { \\theta } _ { t } - \\alpha \\mathbf { M } _ { t } \\nabla f _ { t } ( \\pmb { \\theta } _ { t } ) . } \\\\ { \\pmb { \\theta } _ { t + 1 } } & { } & { ( 1 - \\lambda ) \\pmb { \\theta } _ { t } - \\alpha \\mathbf { M } _ { t } \\nabla f _ { t } ( \\pmb { \\theta } _ { t } ) . } \\end{array}\n$$",
1265
+ "text_format": "latex",
1266
+ "bbox": [
1267
+ 349,
1268
+ 349,
1269
+ 647,
1270
+ 387
1271
+ ],
1272
+ "page_idx": 10
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "The equality of these iterates for all $\\theta _ { t }$ would imply $\\lambda \\pmb { \\theta } _ { t } = \\alpha \\lambda ^ { \\prime } \\mathbf { M } _ { t } \\pmb { \\theta } _ { t }$ . This can only hold for all $\\theta _ { t }$ if $\\mathbf { M } _ { t } = k \\mathbf { I }$ , with $k \\in \\mathbb { R }$ , which is not the case for $O$ . Therefore, no $\\mathrm { L _ { 2 } }$ regularizer $\\lambda ^ { \\prime } \\left\\| \\pmb { \\theta } \\right\\| _ { 2 } ^ { 2 }$ exists that makes the iterates equivalent. □ ",
1277
+ "bbox": [
1278
+ 174,
1279
+ 388,
1280
+ 825,
1281
+ 433
1282
+ ],
1283
+ "page_idx": 10
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "Proof of Proposition 3 ",
1288
+ "text_level": 1,
1289
+ "bbox": [
1290
+ 173,
1291
+ 439,
1292
+ 330,
1293
+ 454
1294
+ ],
1295
+ "page_idx": 10
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "$O$ without weight decay has the following iterates on $\\begin{array} { r } { f _ { t } ^ { \\mathrm { s r e g } } ( \\pmb { \\theta } ) = f _ { t } ( \\pmb { \\theta } ) + \\frac { \\lambda ^ { \\prime } } { 2 } \\left\\| \\pmb { \\theta } \\odot \\sqrt { s } \\right\\| _ { 2 } ^ { 2 } ; } \\end{array}$ ",
1300
+ "bbox": [
1301
+ 171,
1302
+ 454,
1303
+ 753,
1304
+ 473
1305
+ ],
1306
+ "page_idx": 10
1307
+ },
1308
+ {
1309
+ "type": "equation",
1310
+ "img_path": "images/beb754811806709c880ce130b08cd9f3bad3c04fd3e2baeaf9d596e8f48bbf67.jpg",
1311
+ "text": "$$\n\\begin{array} { r c l } { \\pmb { \\theta } _ { t + 1 } } & { } & { \\pmb { \\theta } _ { t } - \\alpha \\nabla f _ { t } ^ { \\mathrm { s r e g } } ( \\pmb { \\theta } _ { t } ) / s } \\\\ & { = } & { \\pmb { \\theta } _ { t } - \\alpha \\nabla f _ { t } ( \\pmb { \\theta } _ { t } ) / s - \\alpha \\lambda ^ { \\prime } \\pmb { \\theta } _ { t } \\odot s / s } \\\\ & { = } & { \\pmb { \\theta } _ { t } - \\alpha \\nabla f _ { t } ( \\pmb { \\theta } _ { t } ) / s - \\alpha \\lambda ^ { \\prime } \\pmb { \\theta } _ { t } , } \\end{array}\n$$",
1312
+ "text_format": "latex",
1313
+ "bbox": [
1314
+ 348,
1315
+ 476,
1316
+ 648,
1317
+ 531
1318
+ ],
1319
+ "page_idx": 10
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "where the division by $\\pmb { S }$ is element-wise. $O$ with weight decay has the following iterates on $f _ { t } ( \\pmb \\theta )$ : ",
1324
+ "bbox": [
1325
+ 171,
1326
+ 532,
1327
+ 810,
1328
+ 547
1329
+ ],
1330
+ "page_idx": 10
1331
+ },
1332
+ {
1333
+ "type": "equation",
1334
+ "img_path": "images/41cca19e0ca33e70014a9795460fec9953a7d8ad306f9c85f673698dfc04c125.jpg",
1335
+ "text": "$$\n\\begin{array} { r l r } { \\pmb { \\theta } _ { t + 1 } } & { } & { ( 1 - \\lambda ) \\pmb { \\theta } _ { t } - \\alpha \\nabla f ( \\pmb { \\theta } _ { t } ) / s } \\\\ & { = } & { \\pmb { \\theta } _ { t } - \\alpha \\nabla f ( \\pmb { \\theta } _ { t } ) / s - \\lambda \\pmb { \\theta } _ { t } , } \\end{array}\n$$",
1336
+ "text_format": "latex",
1337
+ "bbox": [
1338
+ 375,
1339
+ 550,
1340
+ 622,
1341
+ 587
1342
+ ],
1343
+ "page_idx": 10
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "These iterates are identical since $\\begin{array} { r } { \\lambda ^ { \\prime } = \\frac { \\lambda } { \\alpha } } \\end{array}$ . ",
1348
+ "bbox": [
1349
+ 176,
1350
+ 589,
1351
+ 444,
1352
+ 606
1353
+ ],
1354
+ "page_idx": 10
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "B ADDITIONAL PRACTICAL IMPROVEMENTS OF ADAM ",
1359
+ "text_level": 1,
1360
+ "bbox": [
1361
+ 176,
1362
+ 625,
1363
+ 647,
1364
+ 641
1365
+ ],
1366
+ "page_idx": 10
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "Having discussed decoupled weight decay for improving Adam’s generalization, in this section we introduce two additional components to improve Adam’s performance in practice. ",
1371
+ "bbox": [
1372
+ 173,
1373
+ 655,
1374
+ 823,
1375
+ 684
1376
+ ],
1377
+ "page_idx": 10
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "B.1 NORMALIZED WEIGHT DECAY",
1382
+ "text_level": 1,
1383
+ "bbox": [
1384
+ 176,
1385
+ 700,
1386
+ 429,
1387
+ 714
1388
+ ],
1389
+ "page_idx": 10
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Our preliminary experiments showed that different weight decay factors are optimal for different computational budgets (defined in terms of the number of batch passes). Relatedly, Li et al. (2017) demonstrated that a smaller batch size (for the same total number of epochs) leads to the shrinking effect of weight decay being more pronounced. Here, we propose to reduce this dependence by normalizing the values of weight decay. Specifically, we replace the hyperparameter $\\lambda$ by a new (more robust) normalized weight decay hyperparameter $\\lambda _ { n o r m }$ , and use this to set $\\lambda$ as $\\begin{array} { r } { \\lambda = \\lambda _ { n o r m } \\sqrt { \\frac { b } { B T } } } \\end{array}$ , where $b$ is the batch size, $B$ is the total number of training points and $T$ is the total number of epochs.2 Thus, $\\lambda _ { n o r m }$ can be interpreted as the weight decay used if only one batch pass is allowed. We emphasize that our choice of normalization is merely one possibility informed by few experiments; a more lasting conclusion we draw is that using some normalization can substantially improve results. ",
1394
+ "bbox": [
1395
+ 173,
1396
+ 726,
1397
+ 825,
1398
+ 888
1399
+ ],
1400
+ "page_idx": 10
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "B.2 ADAM WITH COSINE ANNEALING AND WARM RESTARTS ",
1405
+ "text_level": 1,
1406
+ "bbox": [
1407
+ 174,
1408
+ 103,
1409
+ 614,
1410
+ 117
1411
+ ],
1412
+ "page_idx": 11
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "We now apply cosine annealing and warm restarts to Adam, following the recent work of Loshchilov & Hutter (2016). There, the authors proposed Stochastic Gradient Descent with Warm Restarts (SGDR) to improve anytime performance of SGD by quickly cooling down the learning rate according to a cosine schedule and periodically increasing it. SGDR has been successfully adopted to lead to new state-of-the-art results for popular image classification benchmarks (Huang et al., 2017; Gastaldi, 2017; Zoph et al., 2017), and we therefore tried extending it to Adam. However, while our initial version of Adam with warm restarts had better anytime performance than Adam, it was not competitive with SGD with warm restarts, precisely because $\\mathrm { L _ { 2 } }$ regularization was not working as well as in SGD. Now, having fixed this issue by means of the original weight decay regularization (Section 2) and also having introduced normalized weight decay (Section B.1), the original work on cosine annealing and warm restarts by Loshchilov & Hutter (2016) directly carries over to Adam. ",
1417
+ "bbox": [
1418
+ 174,
1419
+ 128,
1420
+ 825,
1421
+ 284
1422
+ ],
1423
+ "page_idx": 11
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "In the interest of keeping the presentation self-contained, we briefly describe how SGDR schedules the change of the effective learning rate in order to accelerate the training of DNNs. Here, we decouple the initial learning rate $\\alpha$ and its multiplier $\\eta _ { t }$ used to obtain the actual learning rate at iteration $t$ (see, e.g., line 8 in Algorithm 1). In SGDR, we simulate a new warm-started run/restart of SGD once $T _ { i }$ epochs are performed, where $i$ is the index of the run. Importantly, the restarts are not performed from scratch but emulated by increasing $\\eta _ { t }$ while the old value of $\\theta _ { t }$ is used as an initial solution. The amount by which $\\eta _ { t }$ is increased controls to which extent the previously acquired information (e.g., momentum) is used. Within the $i$ -th run, the value of $\\eta _ { t }$ decays according to a cosine annealing (Loshchilov & Hutter, 2016) learning rate for each batch as follows: ",
1428
+ "bbox": [
1429
+ 174,
1430
+ 289,
1431
+ 825,
1432
+ 415
1433
+ ],
1434
+ "page_idx": 11
1435
+ },
1436
+ {
1437
+ "type": "equation",
1438
+ "img_path": "images/6be3ae5693cc1f7e4cdd9c925b48f5909d54cedd42074f003f912c5c309135af.jpg",
1439
+ "text": "$$\n\\eta _ { t } = \\eta _ { m i n } ^ { ( i ) } + 0 . 5 ( \\eta _ { m a x } ^ { ( i ) } - \\eta _ { m i n } ^ { ( i ) } ) ( 1 + \\cos ( \\pi T _ { c u r } / T _ { i } ) ) ,\n$$",
1440
+ "text_format": "latex",
1441
+ "bbox": [
1442
+ 303,
1443
+ 421,
1444
+ 660,
1445
+ 443
1446
+ ],
1447
+ "page_idx": 11
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "where η min and $\\eta _ { m a x } ^ { ( i ) }$ are ranges for the multiplier and $T _ { c u r }$ accounts for how many epochs have been performed since the last restart. $T _ { c u r }$ is updated at each batch iteration $t$ and is thus not constrained to integer values. Adjusting (e.g., decreasing) $\\eta _ { m i n } ^ { ( i ) }$ and $\\eta _ { m a x } ^ { ( i ) }$ at every $i$ -th restart (see also Smith (2016)) could potentially improve performance, but we do not consider that option here because it would involve additional hyperparameters. For $\\eta _ { m a x } ^ { ( i ) } = 1$ = 1 and η(i)min $\\eta _ { m i n } ^ { ( i ) } = 0$ , one can simplify Eq. (14) to ",
1452
+ "bbox": [
1453
+ 173,
1454
+ 450,
1455
+ 825,
1456
+ 544
1457
+ ],
1458
+ "page_idx": 11
1459
+ },
1460
+ {
1461
+ "type": "equation",
1462
+ "img_path": "images/76dd7c1980f17fb581c4ecc823972c194f42282cdc024e747f844e301b969c19.jpg",
1463
+ "text": "$$\n\\eta _ { t } = 0 . 5 + 0 . 5 \\cos ( \\pi T _ { c u r } / T _ { i } ) .\n$$",
1464
+ "text_format": "latex",
1465
+ "bbox": [
1466
+ 379,
1467
+ 550,
1468
+ 586,
1469
+ 568
1470
+ ],
1471
+ "page_idx": 11
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "In order to achieve good anytime performance, one can start with an initially small $T _ { i }$ (e.g., from $1 \\%$ to $10 \\%$ of the expected total budget) and multiply it by a factor of $T _ { m u l t }$ (e.g., $T _ { m u l t } = 2$ ) at every restart. The $( i + 1 )$ -th restart is triggered when $T _ { c u r } = T _ { i }$ by setting $T _ { c u r }$ to 0. An example setting of the schedule multiplier is given in C. ",
1476
+ "bbox": [
1477
+ 174,
1478
+ 574,
1479
+ 825,
1480
+ 631
1481
+ ],
1482
+ "page_idx": 11
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "Our proposed AdamWR algorithm represents AdamW (see Algorithm 2) with $\\eta _ { t }$ following Eq. (15) and $\\lambda$ computed at each iteration using normalized weight decay described in the previous section. We note that normalized weight decay allowed us to use a constant parameter setting across short and long runs performed within AdamWR and SGDWR (SGDW with warm restarts). ",
1487
+ "bbox": [
1488
+ 174,
1489
+ 637,
1490
+ 825,
1491
+ 694
1492
+ ],
1493
+ "page_idx": 11
1494
+ },
1495
+ {
1496
+ "type": "text",
1497
+ "text": "C AN EXAMPLE SETTING OF THE SCHEDULE MULTIPLIER ",
1498
+ "text_level": 1,
1499
+ "bbox": [
1500
+ 174,
1501
+ 713,
1502
+ 673,
1503
+ 731
1504
+ ],
1505
+ "page_idx": 11
1506
+ },
1507
+ {
1508
+ "type": "text",
1509
+ "text": "An example schedule of the schedule multiplier $\\eta _ { t }$ is given in SuppFigure 1 for $T _ { i = 0 } = 1 0 0$ and $T _ { m u l t } = 2$ . After the initial 100 epochs the learning rate will reach 0 because $\\eta _ { t = 1 0 0 } = 0$ . Then, since $T _ { c u r } = T _ { i = 0 }$ , we restart by resetting $T _ { c u r } = 0$ , causing the multiplier $\\eta _ { t }$ to be reset to 1 due to Eq. (15). This multiplier will then decrease again from 1 to 0, but now over the course of 200 epochs because $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ . Solutions obtained right before the restarts, when $\\eta _ { t } = 0$ (e.g., at epoch indexes 100, 300, 700 and 1500 as shown in SuppFigure 1) are recommended by the optimizer as the solutions, with more recent solutions prioritized. ",
1510
+ "bbox": [
1511
+ 173,
1512
+ 744,
1513
+ 825,
1514
+ 843
1515
+ ],
1516
+ "page_idx": 11
1517
+ },
1518
+ {
1519
+ "type": "text",
1520
+ "text": "D ADDITIONAL RESULTS ",
1521
+ "text_level": 1,
1522
+ "bbox": [
1523
+ 176,
1524
+ 864,
1525
+ 400,
1526
+ 880
1527
+ ],
1528
+ "page_idx": 11
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "We investigated whether the use of much longer runs (1800 epochs) of “standard Adam” (Adam with $\\mathrm { L _ { 2 } }$ regularization and a fixed learning rate) makes the use of cosine annealing unnecessary. ",
1533
+ "bbox": [
1534
+ 176,
1535
+ 895,
1536
+ 823,
1537
+ 924
1538
+ ],
1539
+ "page_idx": 11
1540
+ },
1541
+ {
1542
+ "type": "image",
1543
+ "img_path": "images/05aeac11b243ee1c9b6ee060aff58ac2592760fb64cd2d49c797565303ec0f23.jpg",
1544
+ "image_caption": [
1545
+ "SuppFigure 1: An example schedule of the learning rate multiplier as a function of epoch index. The first run is scheduled to converge at epoch $T _ { i = 0 } ~ = ~ 1 0 0$ , then the budget for the next run is doubled as $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ , etc. "
1546
+ ],
1547
+ "image_footnote": [],
1548
+ "bbox": [
1549
+ 341,
1550
+ 113,
1551
+ 650,
1552
+ 296
1553
+ ],
1554
+ "page_idx": 12
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "SuppFigure 2 shows the results of standard Adam for a 4 by 4 logarithmic grid of hyperparameter settings (the coarseness of the grid is due to the high computational expense of runs for 1800 epochs). Even after taking the low resolution of the grid into account, the results appear to be at best comparable to the ones obtained with AdamW with 18 times less epochs and a smaller network (see SuppFigure 3, top row, middle). These results are not very surprising given Figure 2 in the main paper (which demonstrates the effectiveness of AdamW) and SuppFigure 1 (which demonstrates the necessity to use some learning rate schedule such as cosine annealing). ",
1559
+ "bbox": [
1560
+ 174,
1561
+ 380,
1562
+ 825,
1563
+ 477
1564
+ ],
1565
+ "page_idx": 12
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "Our experimental results with Adam and SGD suggested that the total runtime in terms of the number of epochs affect the basin of optimal hyperparameters (see SuppFigure 3). More specifically, the greater the total number of epochs the smaller the values of the weight decay should be. SuppFigure 4 shows that our remedy for this problem, the normalized weight decay defined in Eq. (15), simplifies hyperparameter selection because the optimal values observed for short runs are similar to the ones for much longer runs. We used our initial experiments on CIFAR-10 to suggest the square root normalization we proposed in Eq. (15) and double-checked that this is not a coincidence on the ImageNet32x32 dataset (Chrabaszcz et al., 2017), a downsampled version of the original ImageNet dataset with 1.2 million $3 2 \\times 3 2$ pixels images, where an epoch is 24 times longer than on CIFAR-10. This experiment also supported the square root scaling: the best values of the normalized weight decay observed on CIFAR-10 represented nearly optimal values for ImageNet32x32 (see SuppFigure 3). In contrast, had we used the same raw weight decay values $\\lambda$ for ImageNet32x32 as for CIFAR10 and for the same number of epochs, without the proposed normalization, $\\lambda$ would have been roughly 5 times too large for ImageNe $3 2 x 3 2$ , leading to much worse performance. The optimal normalized weight decay values were also very similar (e.g., $\\lambda _ { n o r m } = 0 . 0 2 5$ and $\\lambda _ { n o r m } = 0 . 0 5 )$ ) across SGDW and AdamW. ",
1570
+ "bbox": [
1571
+ 174,
1572
+ 484,
1573
+ 825,
1574
+ 705
1575
+ ],
1576
+ "page_idx": 12
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "SuppFigure 4 is the equivalent of Figure 3 in the main paper, but for ImageNet32x32 instead of for CIFAR-10. The qualitative results are identical: weight decay leads to better training loss (crossentropy) than $\\mathrm { L _ { 2 } }$ regularization, and to an even greater improvement of test error. ",
1581
+ "bbox": [
1582
+ 174,
1583
+ 713,
1584
+ 825,
1585
+ 756
1586
+ ],
1587
+ "page_idx": 12
1588
+ },
1589
+ {
1590
+ "type": "text",
1591
+ "text": "SuppFigure 5 and SuppFigure 6 are the equivalents of Figure 4 in the main paper but supplemented with training loss curves in its bottom row. The results show that Adam and its variants with decoupled weight decay converge faster (in terms of training loss) on CIFAR-10 than the corresponding SGD variants (the difference for ImageNet32x32 is small). As is discussed in the main paper, when the same values of training loss are considered, AdamW demonstrates better values of test error than Adam. Interestingly, SuppFigure 5 and SuppFigure 6 show that restart variants AdamWR and SGDWR also demonstrate better generalization than AdamW and SGDW, respectively. ",
1592
+ "bbox": [
1593
+ 174,
1594
+ 762,
1595
+ 825,
1596
+ 859
1597
+ ],
1598
+ "page_idx": 12
1599
+ },
1600
+ {
1601
+ "type": "image",
1602
+ "img_path": "images/d61e04f283fa31f4651067bc40c835a7e0d1c6120984b5b1ce501d36ef00cee2.jpg",
1603
+ "image_caption": [
1604
+ "SuppFigure 2: Performance of “standard Adam”: Adam with $\\mathrm { L _ { 2 } }$ regularization and a fixed learning rate. We show the final test error of a $2 6 ~ 2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet on CIFAR-10 after 1800 epochs of the original Adam for different settings of learning rate and weight decay used for $\\mathrm { L _ { 2 } }$ regularization. "
1605
+ ],
1606
+ "image_footnote": [],
1607
+ "bbox": [
1608
+ 343,
1609
+ 359,
1610
+ 656,
1611
+ 604
1612
+ ],
1613
+ "page_idx": 13
1614
+ },
1615
+ {
1616
+ "type": "image",
1617
+ "img_path": "images/dd04a2ab90cfc312d3ac98c8dc68782db24031d7719e24db29f24240372c8b49.jpg",
1618
+ "image_caption": [
1619
+ "SuppFigure 3: Effect of normalized weight decay. We show the final test Top-1 error on CIFAR10 (first two rows for AdamW without and with normalized weight decay) and Top-5 error on ImageNet32x32 (last two rows for AdamW and SGDW, both with normalized weight decay) of a $2 6 2 \\mathrm { x } 6 4 \\mathrm { d }$ ResNet after different numbers of epochs (see columns). While the optimal settings of the raw weight decay change significantly for different runtime budgets (see the first row), the values of the normalized weight decay remain very similar for different budgets (see the second row) and different datasets (here, CIFAR-10 and ImageNet32x32), and even across AdamW and SGDW. "
1620
+ ],
1621
+ "image_footnote": [],
1622
+ "bbox": [
1623
+ 199,
1624
+ 125,
1625
+ 797,
1626
+ 779
1627
+ ],
1628
+ "page_idx": 14
1629
+ },
1630
+ {
1631
+ "type": "image",
1632
+ "img_path": "images/cae7758f0603d244c6a3533a4e7895f997ffe6ec31c9bfd389ed44477fe94759.jpg",
1633
+ "image_caption": [
1634
+ "SuppFigure 4: Learning curves (top row) and generalization results (Top-5 errors in bottom row) obtained by a $2 6 2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet trained with Adam and AdamW on ImageNet32x32. "
1635
+ ],
1636
+ "image_footnote": [],
1637
+ "bbox": [
1638
+ 171,
1639
+ 292,
1640
+ 803,
1641
+ 688
1642
+ ],
1643
+ "page_idx": 15
1644
+ },
1645
+ {
1646
+ "type": "image",
1647
+ "img_path": "images/5ab029b7e35779e3bea2ccd6ef38c9aa1439a43f3f4434a679a70961745062d0.jpg",
1648
+ "image_caption": [
1649
+ "SuppFigure 5: Test error curves (top row) and training loss curves (bottom row) for CIFAR-10. "
1650
+ ],
1651
+ "image_footnote": [],
1652
+ "bbox": [
1653
+ 171,
1654
+ 118,
1655
+ 764,
1656
+ 867
1657
+ ],
1658
+ "page_idx": 16
1659
+ },
1660
+ {
1661
+ "type": "image",
1662
+ "img_path": "images/1eca1bdf2cf4c17312faab960a100d5dd1708b424add1e9f49f170d4725df754.jpg",
1663
+ "image_caption": [
1664
+ "SuppFigure 6: Test error curves (top row) and training loss curves (bottom row) for ImageNet32x32. "
1665
+ ],
1666
+ "image_footnote": [],
1667
+ "bbox": [
1668
+ 169,
1669
+ 103,
1670
+ 761,
1671
+ 854
1672
+ ],
1673
+ "page_idx": 17
1674
+ }
1675
+ ]
parse/train/Bkg6RiCqY7/Bkg6RiCqY7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bkg6RiCqY7/Bkg6RiCqY7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJMnG2C9YX/SJMnG2C9YX.md ADDED
@@ -0,0 +1,298 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # COMPLEMENTARY-LABEL LEARNING FOR ARBITRARY LOSSES AND MODELS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ In contrast to the standard classification paradigm where the true (or possibly noisy) class is given to each training pattern, complementary-label learning only uses training patterns each equipped with a complementary label. This only specifies one of the classes that the pattern does not belong to. The seminal paper on complementary-label learning proposed an unbiased estimator of the classification risk that can be computed only from complementarily labeled data. However, it required a restrictive condition on the loss functions, making it impossible to use popular losses such as the softmax cross-entropy loss. Recently, another formulation with the softmax cross-entropy loss was proposed with consistency guarantee. However, this formulation does not explicitly involve a risk estimator. Thus model/hyper-parameter selection is not possible by cross-validation— we may need additional ordinarily labeled data for validation purposes, which is not available in the current setup. In this paper, we give a novel general framework of complementary-label learning, and derive an unbiased risk estimator for arbitrary losses and models. We further improve the risk estimator by non-negative correction and demonstrate its superiority through experiments.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Modern classification methods usually require massive data with high-quality labels, but preparing such datasets is unrealistic in many practical domains. To mitigate the problem, many previous works have investigated ways to learn from weak supervision: semi-supervised learning (Chapelle et al., 2006; Miyato et al., 2016; Kipf & Welling, 2017; Sakai et al., 2017; Tarvainen & Valpola, 2017; Oliver et al., 2018), learning from noisily-labeled data (Natarajan et al., 2013; Patrini et al., 2017; Ma et al., 2018), learning from positive-unlabeled data (Elkan & Noto, 2008; du Plessis et al., 2014; 2015; Kiryo et al., 2017), learning from similar-unlabeled data (Bao et al., 2018), learning from positive-confidence data (Ishida et al., 2018), and others.
12
+
13
+ In this paper, we consider learning from another type of weak but natural supervision called complementary-label learning (Ishida et al., 2017; Yu et al., 2018), where the label only specifies one of the classes that the pattern does not belong to. In contrast to the ordinary case where the true class is given to each pattern (which often needs to be chosen out of many candidate classes precisely), collecting these complementary labels is obviously much easier and less costly. A natural question is, however, is it possible to learn from such complementary labels (without any true labels)?
14
+
15
+ The problem has previously been tackled by Ishida et al. (2017), showing that the classification risk can be recovered only from complementarily labeled data. They also gave consistency gaurantee in theoretical analysis. However, they required strong restrictions on the loss functions, allowing only one-versus-all and pairwise comparison multi-class loss functions (Zhang, 2004) with certain non-convex binary losses. This is a severe limitation when we use deep learning since the softmax cross-entropy loss is often used to boost the classification performance.
16
+
17
+ Later, Yu et al. (2018) proposed a different formulation for complementary labels by employing the forward loss correction technique (Patrini et al., 2017) to adjust the learning objective. Their proposed risk estimator is not necessarily unbiased but the minimizer is theoretically guaranteed to be consistent with the minimizer of the risk for ordinary labels (under an implicit assumption on the model for convergence analysis).
18
+
19
+ Table 1: Comparison of two proposed complementary-label methods with previous works.
20
+
21
+ <table><tr><td>Methods</td><td>loss assump. free</td><td>model assump. free</td><td>unbiased estimator</td><td>explicit risk correction</td></tr><tr><td>Ishida et al. (2017)</td><td>×</td><td>√</td><td>√</td><td>×</td></tr><tr><td>Yu et al. (2018)</td><td>×</td><td>×</td><td>×</td><td>×</td></tr><tr><td>Proposed (General formulation)</td><td></td><td>√</td><td>√</td><td></td></tr><tr><td>Proposed (Non-negative formulation)</td><td>√</td><td></td><td>×</td><td>×</td></tr></table>
22
+
23
+ They also extended the problem setting to where complementary labels are chosen in an uneven (biased) way. This is a realistic problem setting because labelers are more likely to complementarily label a pattern when they feel it is not a certain class which they have more knowledge or experience about.
24
+
25
+ In this paper, we first derive an unbiased risk estimator with a general loss function, making any loss functions available for use: not only the softmax cross-entropy loss function but other convex/nonconvex loss functions can also be applied. We also do not have implicit assumptions on the classifier, allowing both linear and non-linear models.
26
+
27
+ Yu et al. (2018) does not have an unbiased risk estimator, which means users will need clean data with true labels to calculate the error rate during the validation process. On the other hand, our proposed unbiased risk estimator can handle complementarily labeled validation data not only for our learning objective, but also for Yu et al. (2018). This is helpful since collecting clean data is usually much more expensive.
28
+
29
+ Finally, our proposed unbiased risk estimator has an issue that it is unbounded from below and suffers from the classification risk going to negative after learning, leading to overfitting. We further propose a non-negative correction to the original unbiased risk estimator to improve our estimator. We experimentally show that our proposed method is comparable to or better than previous methods (Ishida et al., 2017; Yu et al., 2018) in terms of classification accuracy.
30
+
31
+ # 2 REVIEW OF PREVIOUS WORKS
32
+
33
+ In this section, we explain the notations and review the formulations of learning from ordinary labels, learning from complementary labels, and learning from both ordinary and complementary labels.
34
+
35
+ Learning from ordinary labels Let $\mathcal { X }$ be an instance space and $\mathcal { D }$ be the joint distribution over $\mathcal { X } \times [ K ]$ for class label set $[ K ] : = \{ 1 , 2 , \dots , K \}$ , with random variables $( { \bar { X } } , Y ) \sim { \mathcal { D } }$ . The data at hand is sampled inThe joint distribution pendently and identically from the joint distributiocan be either decomposed into class-conditionals $\{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n } \stackrel { \mathrm { i . i . d . } } { \sim } \mathcal { D }$ $\mathcal { D }$ $\{ P _ { k } \} _ { k = 1 } ^ { K }$ $\{ \pi _ { k } \} _ { k = 1 } ^ { K }$ , where $P _ { k } : = \mathbb { P } ( X | Y = k )$ and $\pi _ { k } : = \mathbb { P } ( Y = k )$ , or the marginal $M$ and class-probability function $\eta : \mathcal { X } \ : \ : \Delta _ { k }$ , where $M : = \mathbb { P } ( X )$ and $\pmb { \eta } _ { k } ( x ) : = \mathbb { P } ( Y = \pmb { k } | X = x )$ . A loss is any $\ell : [ K ] \times \mathbb { R } ^ { K } \to \mathbb { R } _ { + }$ and the decision function is any $g : \mathcal { X } \overset { } { } \mathbb { R } ^ { K }$ . The risk for the decision function $\textbf { { g } }$ with respect to loss $\ell$ and implicit distribution $\mathcal { D }$ is:
36
+
37
+ $$
38
+ R ( g ; \ell ) : = \mathbb { E } _ { ( X , Y ) \sim \mathcal { D } } [ \ell ( Y , \pmb { g } ( X ) ) ] ,
39
+ $$
40
+
41
+ where $\mathbb { E }$ denotes the expectation. Two useful equivalent expressions of classification risk (1) used in later sections are
42
+
43
+ $$
44
+ R ( g ; \ell ) : = \mathbb { E } _ { X } [ \eta ( x ) ^ { T } \ell ( { \pmb g } ( X ) ) ] = \sum _ { k = 1 } ^ { K } \pi _ { k } \mathbb { E } _ { \mathbb { P } _ { k } } \Big [ \ell ( k , { \pmb g } ( X ) ) \Big ] ,
45
+ $$
46
+
47
+ where $\ell : = [ \ell ( 1 , \pmb { g } ) , \ell ( 2 , \pmb { g } ) , \dots , \ell ( K , \pmb { g } ) ] ^ { T }$ . The goal of classification is to learn the decision function that minimizes the risk. In the usual classification case with ordinarily labeled data at hand, approximating the risk empirically is straightforward: $\begin{array} { r } { \widehat { R } ( g ; \ell ) : = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ( y _ { i } , g ( x _ { i } ) ) } \end{array}$ .
48
+
49
+ Learning from complementary labels Next we consider the problem of learning from complementary labels (Ishida et al., 2017). We observe patterns each equipped with a complementary label $\{ ( x _ { i ^ { \prime } } , \stackrel { \cdot } { y } _ { i ^ { \prime } } ) \} _ { i ^ { \prime } = 1 } ^ { n ^ { \prime } }$ sampled independently and identically from a different joint distribution $\overline { { \mathcal { D } } } \neq \mathcal { D }$ . We denote random variables as $( X , { \overline { { Y } } } ) \sim { \overline { { \mathcal { D } } } }$ . As before, we assume this distribution can be decomposed into either class-conditionals $\{ \overline { { P } } _ { k } \} _ { k = 1 } ^ { K }$ and base rate $\{ \overline { { \pi } } \} _ { k = 1 } ^ { K }$ , or marginal $M$ and classprobability function $\overline { { \eta } } : \mathcal { X } \to \Delta _ { K }$ , where ${ \overline { { P } } } _ { k } : = \mathbb { P } ( X | { \overline { { Y } } } = k )$ , $\overline { { \pi } } _ { k } : = \mathbb { P } ( \overline { { Y } } = k )$ , $M : = \mathbb { P } ( X )$ , $\overline { { \eta } } _ { k } ( x ) : = \mathbb { P } ( \overline { { Y } } = k | X = x )$ , $\overline { { Y } }$ is the complementary label, and $\Delta _ { K }$ is the conditional probability simplex for $K$ classes. Without any assumptions on $\overline { { \mathcal { D } } }$ , it is impossible to design a suitable learning procedure. The assumption for unbiased complementary learning used in Ishida et al. (2017) was
50
+
51
+ $$
52
+ \overline { { { \eta } } } ( \boldsymbol { x } ) = T \eta ( \boldsymbol { x } ) ,
53
+ $$
54
+
55
+ where $\pmb { T } \in \mathbb { R } ^ { K \times K }$ is a matrix that takes 0 on diagonals and $\frac { 1 } { K - 1 }$ on non-diagonals. Under this assumption, Ishida et al. (2017) proved that they can recover the classification risk (1) from an alternative formulation using only complementarily labeled data when he loss function satisfies certain conditions. More specifically, usable loss functions are pairwise comparison or one-versus-all multi-class loss functions (Zhang, 2004) each with binary loss function $\ell ^ { \bar { \prime } } ( z ) : \mathbb { R } \to \mathbb { R } _ { + }$ that satisfies $\ell ^ { \prime } ( z ) + \ell ^ { \prime } ( - z ) = 1$ , such as ramp loss $\begin{array} { r } { \ell _ { R } ^ { \prime } ( z ) = \frac { 1 } { 2 } \operatorname* { m a x } \left( 0 , \operatorname* { m i n } ( 2 , 1 - z ) \right) } \end{array}$ or sigmoid loss ℓ′S (z ) = 11+ez .
56
+
57
+ Having an unbiased risk estimator is also helpful for the validation process. Since we do not have ordinary labels in our validation set in the complementary-label learning setting, we cannot follow the usual validation procedure that uses zero-one error or accuracy. If we have an unbiased estimator of the original classification risk (which can be interpreted as zero-one error), we can use the empirical risk for (cross)-validated complementary data to select the best hyper-parameter or deploy early stopping.
58
+
59
+ An extension of the above method was considered in Yu et al. (2018) by using a different assumption than the unbiased complementary learning of Ishida et al. (2017): there is some bias amongst the possible complementary labels that can be chosen, thus the non-diagonals of $_ { \mathbf { T } }$ is not restricted to $\frac { 1 } { K - 1 }$ . However, one will need to prepare a separate dataset with ordinary labels in order to estimate $_ { \mathbf { T } }$ beforehand.
60
+
61
+ Unlike Ishida et al. (2017), Yu et al. (2018) did not directly provide a risk estimator, but they showed that the minimizer of their learning objective agrees with the minimizer of the original classification risk (1). Note that, in their formulation, the loss function is restricted to the softmax cross-entropy loss. Furthermore, the use of a highly non-linear model is supposed for consistency guarantee in their theoretical analysis. Since the learning objective of $\mathrm { Y u }$ et al. (2018) does not correspond to the classification risk, one will need clean data with true labels to calculate the error rate during the validation process. On the other hand, our proposed risk estimator can cope with complementarily labeled validation data not only for our own learning objective, but can be used to select hyperparameters for others such as Yu et al. (2018).
62
+
63
+ Learning from both ordinary and complementary labels In many practical situations, we may also have ordinarily labeled data in addition to complementarily labeled data. Ishida et al. (2017) touched on the idea of crowdsourcing for an application with both types of data. For example, we may choose one of the classes randomly by following the uniform distribution, with probability $\frac { 1 } { K - 1 }$ for each class, and ask crowdworkers whether a pattern belongs to the chosen class or not. Then the pattern is treated as ordinarily labeled if the answer is yes; otherwise, the pattern is regarded as complementarily labeled. If the true label was $y$ for a pattern, we can naturally assume that the crowdworker will answer yes by $\mathbb { P } ( Y = y | X = \overset { \cdot } { x } )$ and no by $1 - \mathbb { P } ( Y = y | X \mathbf { \hat { = } } x )$ . This way, ordinarily labeled data can be regarded as samples from $\mathcal { D }$ , and complementarily labeled data from $\overline { { \mathcal { D } } }$ , justifying the assumption of unbiased complementary learning (3). In Ishida et al. (2017), they considered a convex combination of the classification risks derived from ordinarily labeled data and complementarily labeled data: $\alpha R ( g ; \overline { { \ell } } ) + ( 1 - \alpha ) R ( g ; \ell )$ , where $\alpha \in [ 0 , 1 ]$ is a hyper-parameter that interpolates between the two risks. The combined (also unbiased) risk estimator can utilize both kinds of data in order to obtain better classifiers, which was demonstrated to perform well in experiments.
64
+
65
+ # 3 PROPOSED METHOD
66
+
67
+ As discussed in the previous section, the method by Ishida et al. (2017) works well in practice, but it has restriction on the loss functions—the popular softmax cross-entropy loss is not allowed. On the other hand, the method by Yu et al. (2018) allows us to use the softmax cross-entropy loss, but it does not directly provide an estimator of the classification risk and thus model selection is problematic in practice. We first describe our general unbiased risk formulation in Section 3.1. Then we discuss how the estimator can be further improved in Section 3.2. Third, we propose a way for our risk estimator to avoid overfitting by a non-negative risk estimator in Section 3.3. Finally, we show practical implementation of our risk estimator with stochastic optimization methods in Section 3.4.
68
+
69
+ # 3.1 GENERAL RISK FORMULATION
70
+
71
+ First, we describe our general unbiased risk formulation. We give the following theorem, which allows unbiased estimation of the classification risk from complementarily labeled samples:
72
+
73
+ Theorem 1. For any ordinary distribution $\mathcal { D }$ and complementary distribution $\overline { { \mathcal { D } } }$ related by (3) with decision function $\textbf { { g } }$ , and loss $\ell$ , we have
74
+
75
+ $$
76
+ R ( \pmb { g } ; \ell ) = R ( \pmb { g } ; \bar { \ell } )
77
+ $$
78
+
79
+ for the complementary loss
80
+
81
+ $$
82
+ \overline { { \ell } } ( \pmb { g } ) : = \Big ( - ( K - 1 ) \pmb { I } _ { K } + \frac { 1 } { K - 1 } \pmb { 1 } \pmb { 1 } ^ { \top } \Big ) \cdot \pmb { \ell } ( \pmb { g } ) ,
83
+ $$
84
+
85
+ where 1 is a A. The key $K$ -dimensional column vector with 1 in each ela of the proof is to not rely on the condition e found in Appendix used in Ishida et al. $\begin{array} { r } { \sum _ { k = 1 } ^ { K } \overline { { \ell } } ( k , g ) = 1 } \end{array}$ (2017), which is a condition inspired by the property of binary 0-1 loss $\ell _ { 0 - 1 }$ , where if $z < 0$ and 0 otherwise. Note that such a technique was also used when designing unbiased risk estimators for learning from positive and unlabeled data in a binary classification setup (?), but was later shown to be unnecessary (du Plessis et al., 2015).
86
+
87
+ According to Theorem 1, we can derive an equivalent form,
88
+
89
+ $$
90
+ \boldsymbol { \overline { { \ell } } } ( \boldsymbol { k } , g ) = - ( K - 1 ) \cdot \boldsymbol { \ell } ( \boldsymbol { k } , g ) + \sum _ { j = 1 } ^ { K } \boldsymbol { \ell } ( j , g ) .
91
+ $$
92
+
93
+ Therefore, the classification risk can be written as
94
+
95
+ $$
96
+ R ( g ; \ell ) = \sum _ { k = 1 } ^ { K } \overline { { { \pi } } } _ { k } \mathbb { E } _ { \overline { { { P } } } _ { k } } \Big [ - ( K - 1 ) \cdot \ell ( k , g ) + \sum _ { j = 1 } ^ { K } \ell ( j , g ) \Big ] .
97
+ $$
98
+
99
+ This expression of the classification risk allows us to naively approximate it in an unbiased fashion using complementarily labeled data as
100
+
101
+ $$
102
+ \widehat { R } ( g ; \ell ) = \sum _ { k = 1 } ^ { K } \frac { \widehat { \pi } _ { k } } { n _ { k } } \sum _ { i = 1 } ^ { n _ { k } } \Big [ - ( K - 1 ) \cdot \ell \big ( k , g ( \pmb { x } _ { i } ) \big ) + \sum _ { j = 1 } ^ { K } \ell ( j , g \big ( \pmb { x } _ { i } \big ) \big ) \Big ] ,
103
+ $$
104
+
105
+ where $n _ { k }$ is the number of samples complementarily labeled as the $k$ th class. It is worth noting that, in the above derivation, there are no constraints on the loss function and classifier. Thus, we can use any convex/non-convex loss and any linear/non-linear parametric/non-parametric model for complementary learning.
106
+
107
+ # 3.2 NECESSITY OF RISK CORRECTION
108
+
109
+ The original expression of the classification risk (1) includes an expectation over non-negative loss $\ell : [ K ] \times \mathbb { R } ^ { K } \overset { \cdot } { } \mathbb { R } _ { + }$ , so the risk and its empirical approximator are both lower-bounded by zero. On the other hand, the expression (7) derived above contains an negative element. Although (7) is still non-negative by definition, due to the negative term, its empirical estimator can go negative, leading to over-fitting.
110
+
111
+ ![](images/2c0b3b6c6c254c771a08350f3b0ac953c987ce742855b305c3cfabbf17657d04.jpg)
112
+ Figure 1: The left and middle graphs shows the total risk (8) (in black color) and the risk decomposed into each ordinary class term (9) (in other colors) for training data with linear and MLP models, respectively. As an MLP model, a one-hidden-layer neural network with 500 units was used, with $R e L U$ (Nair & Hinton, 2010) as the activation function, Adam (Kingma & Ba, 2015) for optimization with learning rate $5 e - 5$ and weight decay of $1 e - 4$ . The right graph shows the corresponding test accuracy for both models.
113
+
114
+ We elaborate on this issue with an illustrative numerical example. In the left graph of Figure 1, we show an example of training a linear model trained on the handwritten digits dataset $\mathrm { \bf M N I S T ^ { 1 } }$ , with complementary labels generated to satisfy (3). We used Adam (Kingma & Ba, 2015) for optimization with learning rate $5 e - 5$ , and weight decay of $1 e - 4$ with 300 epochs. The empirical classification risk (8) is shown in black. We can see that the empirical classification risk continues decreasing and can go below zero at around 100 epochs. The test accuracy on the right graph hits the peak also at around epoch 100 and then the accuracy gradually deteriorates.
115
+
116
+ This issue stands out even more significantly when we use a flexible model. The middle graph shows the empirical classification risk for a multilayer perceptron (MLP) with one hidden layer (500 units), where ReLU (Nair & Hinton, 2010) was used as the activation function. The optimization setup was the same as the case of the linear model above. We can see the empirical risk decreasing much more quickly and going negative. Correspondingly, as the right graph shows, the test accuracy drops significantly after the empirical risk goes negative.
117
+
118
+ In fact, a similar issue has already been conceivable in the original paper by Ishida et al. (2017): According to Theorem 1 in Ishida et al. (2017), the unbiased risk estimator includes subtraction of a positive constant term which increases with respect to the number of classes. This means that the learning objective of Ishida et al. (2017) has a (negative) lower bound. Our objective, however, is unbounded from below and thus can end up in even heavier overfitting.
119
+
120
+ # 3.3 NON-NEGATIVE RISK ESTIMATOR
121
+
122
+ As we saw in Section 3.2, our risk estimator can suffer from overfitting due to the non-negative issue. Here, we propose a correction to the risk estimator to overcome this problem.
123
+
124
+ Each term in the risk with ordinary labels (right-hand side of (2)), which corresponds to each class, is non-negative. We can reformulate (7) in order to show the counterpart for each non-negative term in right-hand side of (2) for complementarily labeled data as
125
+
126
+ $$
127
+ R ( g ; \ell ) = \sum _ { k = 1 } ^ { K } \overline { { \pi } } _ { k } \Big [ - ( K - 1 ) \cdot \mathbb { E } _ { \overline { { P } } _ { k } } [ \ell ( k , g ) ] + \sum _ { j = 1 } ^ { K } \mathbb { E } _ { \overline { { P } } _ { j } } [ \ell ( k , g ) ] \Big ] .
128
+ $$
129
+
130
+ These counterparts (9) were originally non-negative when ordinary labels were used. In the left and middle graphs of Figure 1, we plot the decomposed risk with respect to each ordinary class (9) (shown in different colors). We can see that the decomposed risks for all classes become negative eventually. Based on this observation, our basic idea for correction is to enforce non-negativity for each ordinary class, with the expression based on complementary labels. More specifically, we propose a non-negative (nn) version by
131
+
132
+ $$
133
+ R _ { \mathrm { n n } } ( g ; \ell ) = \sum _ { k = 1 } ^ { K } \operatorname* { m a x } \Big \{ 0 , \overline { { \pi } } _ { k } \Big [ - ( K - 1 ) \cdot \mathbb { E } _ { \overline { { P } } _ { k } } [ \ell ( k , g ) ] + \sum _ { j = 1 } ^ { K } \mathbb { E } _ { \overline { { P } } _ { j } } [ \ell ( k , g ) ] \Big ] \Big \} .
134
+ $$
135
+
136
+ This non-negative risk can be naively approximated by the sample average as
137
+
138
+ $$
139
+ \widehat { R } _ { \mathrm { n n } } ( g ; \ell ) = \sum _ { k = 1 } ^ { K } \operatorname* { m a x } \Big \{ 0 , \pi \Big [ - \frac { K - 1 } { n _ { k } } \sum _ { i = 1 } ^ { n _ { k } } \ell ( k , g ( x _ { i } ) ) + \sum _ { j = 1 } ^ { K } \frac { 1 } { n _ { i ^ { \prime } } } \sum _ { i ^ { \prime } = 1 } ^ { n _ { i ^ { \prime } } } \ell ( j , g ( x _ { i ^ { \prime } } ) ) \Big ] \Big \} .
140
+ $$
141
+
142
+ Enforcing the reformulated risk to become non-negative was previously explored in Kiryo et al. (2017), in the context of binary classification from positive and unlabeled data. The positive class risk is already bounded below by zero in their case (because they have true positive labels), so there was a max operator only on the negative class risk. We basically follow their footsteps, but since our setting is a multi-class scenario and also differs by not having any true labels, we put a max operator on every $K$ class.
143
+
144
+ # 3.4 IMPLEMENTATION
145
+
146
+ Implementation with max operator We show practical implementation under stochastic optimization for our non-negative risk estimator. An unfortunate issue is that the minimization of (11) is not point-wise due to the max-operator, thus cannot be used directly for stochastic optimization methods with mini-batch. However, an upper bound of the risk can be minimized in parallel by using mini-batch as the following,
147
+
148
+ $$
149
+ \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \sum _ { k = 1 } ^ { K } \operatorname* { m a x } \Big \{ 0 , \pi _ { k } \Big [ - ( K - 1 ) \widehat { \mathbb { E } } _ { \overline { { P } } _ { k } } [ \ell ( k , g ) ; \mathcal { X } _ { \widehat { k } } ^ { i } ] + \sum _ { j = 1 } ^ { K } \widehat { \mathbb { E } } _ { \overline { { P } } _ { j } } [ \ell ( k , g ) ; \mathcal { X } _ { \widehat { j } } ^ { i } ] \Big ] \Big \} ,
150
+ $$
151
+
152
+ where $\widehat { \mathbb { E } }$ is the empirical version of the expectation and $\mathcal { X } _ { \overline { { j } } } ^ { i }$ denotes the samples complementarily labeled as the $j$ th class in the ith mini-batch.
153
+
154
+ Implementation with gradient ascent If the objective is negative for a certain mini-batch, the previous implementation based on the max operator will avoid the objective to further decrease. However, if the objective is already negative, that mini-batch has already started to overfit. Therefore, it would be preferable to increase itself to make this mini-batch less overfitted.
155
+
156
+ Our idea is the following. We denote the risk that corresponds to the $k$ th ordinary class for the ith mini-batch as
157
+
158
+ $$
159
+ r _ { k } ^ { i } ( \theta ) = \overline { { \pi } } _ { k } \big [ - ( K - 1 ) \widehat { \mathbb { E } } _ { \overline { { P } } _ { k } } [ \ell ( k , g ) ; \mathcal { X } _ { \overline { { k } } } ^ { i } ] + \sum _ { j = 1 } ^ { K } \widehat { \mathbb { E } } _ { \overline { { P } } _ { j } } [ \ell ( k , g ) ; \mathcal { X } _ { \overline { { j } } } ^ { i } ] \big ] ,
160
+ $$
161
+
162
+ and the total risk as $\begin{array} { r } { L ^ { i } ( \theta ) = \sum _ { k = 1 } ^ { K } r _ { k } ^ { i } ( \theta ) } \end{array}$ . When $\mathrm { m i n } _ { k } \{ r _ { k } ^ { i } ( \theta ) \} _ { k = 1 } ^ { K } \geq - \beta$ , we conduct gradient descent as usual with gradient $\nabla _ { \theta } L ^ { i } ( \theta )$ . On the other hand, if $\mathrm { m i n } _ { k } \{ r _ { k } ^ { i } ( \theta ) \} _ { k = 1 } ^ { K } < - \beta$ , we first squash the class-decomposed risks over $- \beta$ to $- \beta$ with a min operator, and then sum the results: $\begin{array} { r } { \tilde { L ^ { i } } ( \theta ) = \sum _ { k = 1 } ^ { K } \operatorname* { m i n } \{ - \bar { \beta } , r _ { k } ^ { i } ( \theta ) \} , } \end{array}$ .
163
+
164
+ Next we set the gradient in the opposite direction with $- \nabla _ { \boldsymbol { \theta } } \widetilde { L } ^ { i } ( \boldsymbol { \theta } )$ . Conceptually, we are going up the gradient $\nabla _ { \boldsymbol { \theta } } \widetilde { L } ^ { i } ( { \boldsymbol { \theta } } )$ for only the class-decomposed risks below $- \beta$ , to avoid the class-decomposed risks that are already large to further increase. Note that $\beta$ is a hyper-parameter that controls the tolerance of negativity. $\beta = 0$ would mean there is zero tolerance, but in practice we can also have $- \beta \neq 0$ for a threshold that allows some negative ${ \mathit { \Omega } } ^ { \prime } - \beta < 0 { \mathit { \Gamma } }$ or positive $( - \beta > 0 )$ ) amount. The procedure is shown in detail in Algorithm 1.
165
+
166
+ # 4 EXPERIMENTS
167
+
168
+ In this section, we experimentally compare our three proposed methods (Algorithm 1, (8) and (12), with two baseline methods from Ishida et al. (2017) and Yu et al. (2018). Table 2 describes the summary statistics of the benchmark datasets used in this section. The implementation is based on Pytorch2 and our code will be available on http://anonymized for reproducing results.
169
+
170
+ Input: complementarily labeled training data $\{ \mathcal { X } _ { \overline { { k } } } \} _ { \overline { { k } } = 1 } ^ { K }$ , where ${ \mathit { X } } _ { \overline { { k } } }$ denotes the samples comple
171
+ mentarily labeled as class $\overline { { k } }$ ;
172
+ Output: model parameter $\theta$ for $g ( { \pmb x } ; { \boldsymbol \theta } )$
173
+ 1: Let $\mathcal { A }$ be an external SGD-like stochastic optimization algorithm such as Kingma & Ba (2015)
174
+ 2: Denote $\{ \mathcal { X } _ { \overline { { j } } } ^ { i } \}$ as the $i$ -th mini-batch for complementary class $j$
175
+ 3: Denote $\begin{array} { r } { L ^ { i } ( \theta ) = \sum _ { k = 1 } ^ { K } r _ { k } ^ { i } ( \theta ) } \end{array}$
176
+ 4: Denote $\begin{array} { r } { r _ { k } ^ { i } ( \theta ) = \overline { { \pi } } _ { k } \widetilde { \big [ } - ( K - 1 ) \widehat { \mathbb { E } } _ { \overline { { P } } _ { k } } [ \ell ( k , g ) ; \mathcal { X } _ { \overline { { k } } } ^ { i } ] + \sum _ { j = 1 } ^ { K } \widehat { \mathbb { E } } _ { \overline { { P } } _ { j } } [ \ell ( k , g ) ; \mathcal { X } _ { \overline { { j } } } ^ { i } ] \big ] } \end{array}$
177
+ 5: Denote $\begin{array} { r } { \widetilde L ^ { i } ( \theta ) = \sum _ { k = 1 } ^ { K } \operatorname* { m i n } \{ - \beta , r _ { k } ^ { i } ( \theta ) \} } \end{array}$
178
+ 6: while no stopping criterion has been met:
179
+ 7: Shuffle $\{ \hat { \mathcal { X } } _ { \bar { j } } ^ { - } \} _ { \bar { j } } ^ { K }$ into $N$ mini-batches;
180
+ 8: for $i = 1$ to $N$ :
181
+ 9: $\begin{array} { r } { \mathbf { i f } \operatorname* { m i n } _ { k } [ r _ { 1 } ^ { i } ( \theta ) , \dots , r _ { k } ^ { i } ( \theta ) , \dots , r _ { K } ^ { i } ( \theta ) ] > - \beta \colon } \end{array}$
182
+ 10: Set gradient $\nabla _ { \theta } L ^ { i } ( \theta )$ ;
183
+ 11: Update $\theta$ by $\mathcal { A }$ with its current step size $\eta$ ;
184
+ 12: else:
185
+ 13: Set gradient $- \nabla _ { \boldsymbol { \theta } } \widetilde { L } ^ { i } ( \boldsymbol { \theta } )$ ;
186
+ 14: Update $\theta$ by $\mathcal { A }$ with a discounted step size $\gamma \eta$ ;
187
+
188
+ # 4.1 SETUP
189
+
190
+ For MNIST and Fashion-MNIST, a linear-in-input model with a bias term and a MLP model $( d -$ $5 0 0 - 1 )$ was trained with softmax cross-entropy loss function. Weight decay of $1 e - 4$ for weight parameters and learning rate of $5 e - 5$ for Adam (Kingma & Ba, 2015) was used.
191
+
192
+ For CIFAR-10, DenseNet (Huang et al., 2017) and Resnet-18 (He et al., 2016) with default parameter settings were trained. Weight decay of $5 e - 4$ and initial learning rate of $1 e - 2$ was used. For optimization, stochastic gradient descent was used with the momentum set to 0.9. Learning rate was halved every 30 epochs.
193
+
194
+ We trained and compared 5 methods (Free (8), Max operator (12), Gradient ascent (Alg.1), PC (Ishida et al., 2017) and Forward (Yu et al., 2018)) with only complementarily labeled data. Note that the first three are the proposed methods. We complementarily labeled our benchmark datasets so that the assumption of (3) is satisfied. This is straightforward when the dataset has a uniform (ordinarily-labeled) class prior, because it reduces to just choosing a class randomly other than the true class. For Gradient ascent, we used $\beta = 0$ and $\gamma = 0$ for simplicity. We trained 300 epochs, where mini-batch was set to 100.
195
+
196
+ # 4.2 RESULTS
197
+
198
+ Instead of showing the test accuracy for a single chosen model based on validation, we show the accuracy for all 300 epochs on test data to demonstrate how the issues discussed in Section 3.2 appear and how different implementations Section 3.4 is effective. In Figure 2, we show the mean test accuracy and standard deviation for 4 trials for the three benchmark datasets, on test data evaluated with ordinary labels.
199
+
200
+ First we compare our three proposed methods with each other. For linear models in MNIST and Fashion-MNIST, all proposed methods work similarly. However in the case of using a more flexible model (MLP model for MNIST/Fashion-MNIST, Densenet/Resnet for CIFAR-10), we can see that Free is the worst, Max operator is better and Gradient ascent is the best out of the proposed three methods at the end of all epochs $F r e e < M a x$ operator $<$ Gradient ascent). These results are consistent with the discussions of overfitting in Section 3.2 and the motivations for different implementations in Section 3.4.
201
+
202
+ Next, we compare with baseline methods. For linear models, all methods have similar performance.
203
+ However for deep models, the superiority stands out for Gradient ascent for all datasets.
204
+
205
+ ![](images/24f13e5b2ca81db9ac3aad7836e191f1ab7625e4edac07a846fa1a3b3f80c16d.jpg)
206
+ Figure 2: Experimental results for various datasets and models. Dark colors show the mean accuracy of 4 trials and light colors show standard deviation.
207
+
208
+ # 5 CONCLUSION
209
+
210
+ We first proposed a general risk estimator for learning from complementary labels that does not require restrictions on the form of the loss function or the model. However, since the proposed method suffers from overfitting, we proposed a modified version to alleviate this issue in two ways and have better performance. At last, we conducted experiments to show our proposed method outperforms or is comparable to current state-of-the-art methods for various benchmark datasets and for both linear and deep models.
211
+
212
+ # REFERENCES
213
+
214
+ Han Bao, Gang Niu, and Masashi Sugiyama. Classification from pairwise similarity and unlabeled data. In ICML, 2018.
215
+
216
+ Olivier Chapelle, Bernhard Schölkopf, and Alexander Zien (eds.). Semi-Supervised Learning. MIT Press, 2006.
217
+
218
+ Marthinus Christoffel du Plessis, Gang Niu, and Masashi Sugiyama. Analysis of learning from positive and unlabeled data. In NIPS, 2014.
219
+
220
+ Marthinus Christoffel du Plessis, Gang Niu, and Masashi Sugiyama. Convex formulation for learning from positive and unlabeled data. In ICML, 2015.
221
+
222
+ Charles Elkan and Keith Noto. Learning classifiers from only positive and unlabeled data. In KDD, 2008.
223
+
224
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
225
+
226
+ Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In CVPR, 2017.
227
+
228
+ Takashi Ishida, Gang Niu, Weihua Hu, and Masashi Sugiyama. Learning from complementary labels. In NIPS, 2017.
229
+
230
+ Takashi Ishida, Gang Niu, and Masashi Sugiyama. Binary classification from positive-confidence data. In NIPS, 2018. To appear.
231
+
232
+ Diederik P. Kingma and Jimmy L. Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
233
+
234
+ Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
235
+
236
+ Ryuichi Kiryo, Gang Niu, Marthinus Christoffel du Plessis, and Masashi Sugiyama. Positiveunlabeled learning with non-negative risk estimator. In NIPS, 2017.
237
+
238
+ 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.
239
+
240
+ Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional smoothing with virtual adversarial training. In ICLR, 2016.
241
+
242
+ Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In ICML, 2010.
243
+
244
+ Nagarajan Natarajan, Inderjit S. Dhillon, Pradeep K. Ravikumar, and Ambuj Tewari. Learning with noisy labels. In NIPS, 2013.
245
+
246
+ Avital Oliver, Augustus Odena, Colin Raffel, Ekin D. Cubuk, and Ian J. Goodfellow. Realistic evaluation of deep semi-supervised learning algorithms. In NIPS, 2018. To appear.
247
+
248
+ Giorgio Patrini, Alessandro Rozza, Aditya Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017.
249
+
250
+ Tomoya Sakai, Marthinus Christoffel du Plessis, Gang Niu, and Masashi Sugiyama. Semisupervised classification based on classification from positive and unlabeled data. In ICML, 2017.
251
+
252
+ Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In NIPS, 2017.
253
+
254
+ Xiyu Yu, Tongliang Liu, Mingming Gong, and Dacheng Tao. Learning with biased complementary labels. In ECCV, 2018.
255
+
256
+ Tong Zhang. Statistical analysis of some multi-category large margin classification methods. Journal of Machine Learning Research, 5:1225–1251, 2004.
257
+
258
+ # A PROOF OF THEOREM 1
259
+
260
+ Proof. First of all,
261
+
262
+ $$
263
+ { \begin{array} { r l } & { \mathbb { P } ( X , { \overline { { Y } } } = { \overline { { y } } } ) = { \frac { 1 } { K - 1 } } \sum _ { y \neq { \overline { { y } } } } \mathbb { P } ( X , Y = y ) } \\ & { \quad \quad = { \frac { 1 } { K - 1 } } { \Big ( } \sum _ { y = 1 } ^ { K } \mathbb { P } ( X , Y = y ) - \mathbb { P } ( X , Y = { \overline { { y } } } ) { \Big ) } } \\ & { \quad \quad = { \frac { 1 } { K - 1 } } { \big ( } \mathbb { P } ( X ) - \mathbb { P } ( X , Y = { \overline { { y } } } ) { \big ) } . } \end{array} }
264
+ $$
265
+
266
+ The first equality holds since the marginal distribution is equivalent for $\mathcal { D }$ and $\overline { { \mathcal { D } } }$ and we assume (3). Consequently,
267
+
268
+ $$
269
+ \begin{array} { l } { \displaystyle \mathbb { P } ( \overline { { Y } } = \overline { { y } } | X = x ) = \frac { \mathbb { P } ( X = x , \overline { { Y } } = \overline { { y } } ) } { \mathbb { P } ( X = x ) } } \\ { \displaystyle = \frac { 1 } { K - 1 } \cdot \Big ( 1 - \frac { \mathbb { P } ( X , Y = \overline { { y } } ) } { \mathbb { P } ( X = x ) } \Big ) } \\ { \displaystyle = \frac { 1 } { K - 1 } \cdot \big ( 1 - \mathbb { P } ( Y = \overline { { y } } | X = x ) \big ) } \\ { \displaystyle = - \frac { 1 } { K - 1 } \mathbb { P } ( Y = \overline { { y } } | X = x ) + \frac { 1 } { K - 1 } . } \end{array}
270
+ $$
271
+
272
+ More simply, we have
273
+
274
+ $$
275
+ \pmb { \eta } ( x ) = - ( K - 1 ) \overline { { \pmb { \eta } } } ( x ) + \mathbf { 1 } .
276
+ $$
277
+
278
+ Finally, we transform the classification risk,
279
+
280
+ $$
281
+ \begin{array} { r l } { R ( g ; \ell ) = \mathbb { E } _ { ( X , Y ) \sim \overline { { D } } } [ \ell ( Y , g ( X ) ) ] } & { } \\ & { = \mathbb { E } _ { X \sim M } [ \eta ^ { \top } \ell ( g ( X ) ) ] } \\ & { = \mathbb { E } _ { X \sim M } \Big [ \big ( - ( K - 1 ) \overline { { \eta } } ^ { \top } + \mathbf { 1 } ^ { \top } \big ) \ell \big ( g ( X ) \big ) \Big ] } \\ & { = \mathbb { E } _ { X \sim M } \Big [ - ( K - 1 ) \overline { { \eta } } ^ { \top } \ell \big ( g ( X ) \big ) + \mathbf { 1 } ^ { \top } \ell \big ( g ( X ) \big ) \Big ] } \\ & { = \mathbb { E } _ { ( X , \overline { { Y } } ) \sim \overline { { D } } } \big [ - ( K - 1 ) \cdot \ell \big ( \overline { { Y } } , g ( X ) \big ) \big ] + \mathbf { 1 } ^ { \top } \mathbb { E } _ { X \sim M } \big [ \ell \big ( g ( X ) \big ) \big ] } \\ & { = \displaystyle \sum _ { k = 1 } ^ { K } \mathbb { E } _ { X \sim \overline { { P } } _ { k } } \Big [ \overline { { \pi } } _ { k } \cdot \Big ( - ( K - 1 ) \cdot \ell \big ( k , g ( X ) \big ) + \mathbf { 1 } ^ { \top } \ell \big ( g ( X ) \big ) \Big ) \Big ] } \\ & { = R ( g ; \overline { { \ell } } ) } \end{array}
282
+ $$
283
+
284
+ for the complementary loss,
285
+
286
+ $$
287
+ \overline { { \ell } } ( k , \pmb { g } ) : = - ( K - 1 ) \ell ( k , \pmb { g } ) + \mathbf { 1 } ^ { \top } \ell ( \pmb { g } ) ,
288
+ $$
289
+
290
+ which concludes the proof.
291
+
292
+ # B DETAILS OF DATASETS USED IN SECTION 4
293
+
294
+ In Table 2, we explain the details of the datasets used in Section 4. See http://yann.lecun.com/exdb/mnist/ for MNIST, https://github.com/zalandoresearch/fashion-mnist for Fashion-MNIST, and https://www.cs.toronto.edu/\~kriz/cifar.html for CIFAR-10.
295
+
296
+ Table 2: Summary statistics of benchmark datasets.
297
+
298
+ <table><tr><td>Name</td><td>#Train</td><td>#Test</td><td>#Dim</td><td># Classes</td><td>Model</td></tr><tr><td>MNIST</td><td>60,000</td><td>10,000</td><td>784</td><td>10</td><td>Linear, MLP</td></tr><tr><td>Fashion MNIST</td><td>60.000</td><td>10,000</td><td>784</td><td>10</td><td>Linear,MLP</td></tr><tr><td>CIFAR-10</td><td>60,000</td><td>10,000</td><td>2,048</td><td>10</td><td>DenseNet, Resnet</td></tr></table>
parse/train/SJMnG2C9YX/SJMnG2C9YX_content_list.json ADDED
@@ -0,0 +1,1392 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "COMPLEMENTARY-LABEL LEARNING FOR ARBITRARY LOSSES AND MODELS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 99,
9
+ 648,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "In contrast to the standard classification paradigm where the true (or possibly noisy) class is given to each training pattern, complementary-label learning only uses training patterns each equipped with a complementary label. This only specifies one of the classes that the pattern does not belong to. The seminal paper on complementary-label learning proposed an unbiased estimator of the classification risk that can be computed only from complementarily labeled data. However, it required a restrictive condition on the loss functions, making it impossible to use popular losses such as the softmax cross-entropy loss. Recently, another formulation with the softmax cross-entropy loss was proposed with consistency guarantee. However, this formulation does not explicitly involve a risk estimator. Thus model/hyper-parameter selection is not possible by cross-validation— we may need additional ordinarily labeled data for validation purposes, which is not available in the current setup. In this paper, we give a novel general framework of complementary-label learning, and derive an unbiased risk estimator for arbitrary losses and models. We further improve the risk estimator by non-negative correction and demonstrate its superiority through experiments. ",
40
+ "bbox": [
41
+ 233,
42
+ 263,
43
+ 764,
44
+ 486
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 510,
55
+ 336,
56
+ 526
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Modern classification methods usually require massive data with high-quality labels, but preparing such datasets is unrealistic in many practical domains. To mitigate the problem, many previous works have investigated ways to learn from weak supervision: semi-supervised learning (Chapelle et al., 2006; Miyato et al., 2016; Kipf & Welling, 2017; Sakai et al., 2017; Tarvainen & Valpola, 2017; Oliver et al., 2018), learning from noisily-labeled data (Natarajan et al., 2013; Patrini et al., 2017; Ma et al., 2018), learning from positive-unlabeled data (Elkan & Noto, 2008; du Plessis et al., 2014; 2015; Kiryo et al., 2017), learning from similar-unlabeled data (Bao et al., 2018), learning from positive-confidence data (Ishida et al., 2018), and others. ",
63
+ "bbox": [
64
+ 174,
65
+ 541,
66
+ 825,
67
+ 652
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper, we consider learning from another type of weak but natural supervision called complementary-label learning (Ishida et al., 2017; Yu et al., 2018), where the label only specifies one of the classes that the pattern does not belong to. In contrast to the ordinary case where the true class is given to each pattern (which often needs to be chosen out of many candidate classes precisely), collecting these complementary labels is obviously much easier and less costly. A natural question is, however, is it possible to learn from such complementary labels (without any true labels)? ",
74
+ "bbox": [
75
+ 174,
76
+ 659,
77
+ 825,
78
+ 756
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The problem has previously been tackled by Ishida et al. (2017), showing that the classification risk can be recovered only from complementarily labeled data. They also gave consistency gaurantee in theoretical analysis. However, they required strong restrictions on the loss functions, allowing only one-versus-all and pairwise comparison multi-class loss functions (Zhang, 2004) with certain non-convex binary losses. This is a severe limitation when we use deep learning since the softmax cross-entropy loss is often used to boost the classification performance. ",
85
+ "bbox": [
86
+ 174,
87
+ 762,
88
+ 823,
89
+ 847
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Later, Yu et al. (2018) proposed a different formulation for complementary labels by employing the forward loss correction technique (Patrini et al., 2017) to adjust the learning objective. Their proposed risk estimator is not necessarily unbiased but the minimizer is theoretically guaranteed to be consistent with the minimizer of the risk for ordinary labels (under an implicit assumption on the model for convergence analysis). ",
96
+ "bbox": [
97
+ 174,
98
+ 854,
99
+ 823,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "table",
106
+ "img_path": "images/0e12f248bdd891be58d9e64c4c17e075d17735520309277423b06765a505fc47.jpg",
107
+ "table_caption": [
108
+ "Table 1: Comparison of two proposed complementary-label methods with previous works. "
109
+ ],
110
+ "table_footnote": [],
111
+ "table_body": "<table><tr><td>Methods</td><td>loss assump. free</td><td>model assump. free</td><td>unbiased estimator</td><td>explicit risk correction</td></tr><tr><td>Ishida et al. (2017)</td><td>×</td><td>√</td><td>√</td><td>×</td></tr><tr><td>Yu et al. (2018)</td><td>×</td><td>×</td><td>×</td><td>×</td></tr><tr><td>Proposed (General formulation)</td><td></td><td>√</td><td>√</td><td></td></tr><tr><td>Proposed (Non-negative formulation)</td><td>√</td><td></td><td>×</td><td>×</td></tr></table>",
112
+ "bbox": [
113
+ 173,
114
+ 127,
115
+ 830,
116
+ 233
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "They also extended the problem setting to where complementary labels are chosen in an uneven (biased) way. This is a realistic problem setting because labelers are more likely to complementarily label a pattern when they feel it is not a certain class which they have more knowledge or experience about. ",
123
+ "bbox": [
124
+ 174,
125
+ 261,
126
+ 825,
127
+ 316
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "In this paper, we first derive an unbiased risk estimator with a general loss function, making any loss functions available for use: not only the softmax cross-entropy loss function but other convex/nonconvex loss functions can also be applied. We also do not have implicit assumptions on the classifier, allowing both linear and non-linear models. ",
134
+ "bbox": [
135
+ 173,
136
+ 323,
137
+ 825,
138
+ 380
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "Yu et al. (2018) does not have an unbiased risk estimator, which means users will need clean data with true labels to calculate the error rate during the validation process. On the other hand, our proposed unbiased risk estimator can handle complementarily labeled validation data not only for our learning objective, but also for Yu et al. (2018). This is helpful since collecting clean data is usually much more expensive. ",
145
+ "bbox": [
146
+ 174,
147
+ 387,
148
+ 825,
149
+ 457
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Finally, our proposed unbiased risk estimator has an issue that it is unbounded from below and suffers from the classification risk going to negative after learning, leading to overfitting. We further propose a non-negative correction to the original unbiased risk estimator to improve our estimator. We experimentally show that our proposed method is comparable to or better than previous methods (Ishida et al., 2017; Yu et al., 2018) in terms of classification accuracy. ",
156
+ "bbox": [
157
+ 174,
158
+ 463,
159
+ 825,
160
+ 534
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "2 REVIEW OF PREVIOUS WORKS ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 174,
170
+ 556,
171
+ 457,
172
+ 571
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "In this section, we explain the notations and review the formulations of learning from ordinary labels, learning from complementary labels, and learning from both ordinary and complementary labels. ",
179
+ "bbox": [
180
+ 173,
181
+ 589,
182
+ 823,
183
+ 618
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Learning from ordinary labels Let $\\mathcal { X }$ be an instance space and $\\mathcal { D }$ be the joint distribution over $\\mathcal { X } \\times [ K ]$ for class label set $[ K ] : = \\{ 1 , 2 , \\dots , K \\}$ , with random variables $( { \\bar { X } } , Y ) \\sim { \\mathcal { D } }$ . The data at hand is sampled inThe joint distribution pendently and identically from the joint distributiocan be either decomposed into class-conditionals $\\{ ( x _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { n } \\stackrel { \\mathrm { i . i . d . } } { \\sim } \\mathcal { D }$ $\\mathcal { D }$ $\\{ P _ { k } \\} _ { k = 1 } ^ { K }$ $\\{ \\pi _ { k } \\} _ { k = 1 } ^ { K }$ , where $P _ { k } : = \\mathbb { P } ( X | Y = k )$ and $\\pi _ { k } : = \\mathbb { P } ( Y = k )$ , or the marginal $M$ and class-probability function $\\eta : \\mathcal { X } \\ : \\ : \\Delta _ { k }$ , where $M : = \\mathbb { P } ( X )$ and $\\pmb { \\eta } _ { k } ( x ) : = \\mathbb { P } ( Y = \\pmb { k } | X = x )$ . A loss is any $\\ell : [ K ] \\times \\mathbb { R } ^ { K } \\to \\mathbb { R } _ { + }$ and the decision function is any $g : \\mathcal { X } \\overset { } { } \\mathbb { R } ^ { K }$ . The risk for the decision function $\\textbf { { g } }$ with respect to loss $\\ell$ and implicit distribution $\\mathcal { D }$ is: ",
190
+ "bbox": [
191
+ 173,
192
+ 635,
193
+ 825,
194
+ 756
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "equation",
200
+ "img_path": "images/b9934d81fe10507256f7e191c28bff9d8da73f3f61fbbbd0d7142f041fea99ec.jpg",
201
+ "text": "$$\nR ( g ; \\ell ) : = \\mathbb { E } _ { ( X , Y ) \\sim \\mathcal { D } } [ \\ell ( Y , \\pmb { g } ( X ) ) ] ,\n$$",
202
+ "text_format": "latex",
203
+ "bbox": [
204
+ 379,
205
+ 763,
206
+ 617,
207
+ 782
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "where $\\mathbb { E }$ denotes the expectation. Two useful equivalent expressions of classification risk (1) used in later sections are ",
214
+ "bbox": [
215
+ 171,
216
+ 790,
217
+ 825,
218
+ 819
219
+ ],
220
+ "page_idx": 1
221
+ },
222
+ {
223
+ "type": "equation",
224
+ "img_path": "images/3e0a2dc742605b177742009f56521efb03572b736d79b24f8f4281b20147f78c.jpg",
225
+ "text": "$$\nR ( g ; \\ell ) : = \\mathbb { E } _ { X } [ \\eta ( x ) ^ { T } \\ell ( { \\pmb g } ( X ) ) ] = \\sum _ { k = 1 } ^ { K } \\pi _ { k } \\mathbb { E } _ { \\mathbb { P } _ { k } } \\Big [ \\ell ( k , { \\pmb g } ( X ) ) \\Big ] ,\n$$",
226
+ "text_format": "latex",
227
+ "bbox": [
228
+ 299,
229
+ 825,
230
+ 697,
231
+ 869
232
+ ],
233
+ "page_idx": 1
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "where $\\ell : = [ \\ell ( 1 , \\pmb { g } ) , \\ell ( 2 , \\pmb { g } ) , \\dots , \\ell ( K , \\pmb { g } ) ] ^ { T }$ . The goal of classification is to learn the decision function that minimizes the risk. In the usual classification case with ordinarily labeled data at hand, approximating the risk empirically is straightforward: $\\begin{array} { r } { \\widehat { R } ( g ; \\ell ) : = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\ell ( y _ { i } , g ( x _ { i } ) ) } \\end{array}$ . ",
238
+ "bbox": [
239
+ 174,
240
+ 877,
241
+ 825,
242
+ 926
243
+ ],
244
+ "page_idx": 1
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "Learning from complementary labels Next we consider the problem of learning from complementary labels (Ishida et al., 2017). We observe patterns each equipped with a complementary label $\\{ ( x _ { i ^ { \\prime } } , \\stackrel { \\cdot } { y } _ { i ^ { \\prime } } ) \\} _ { i ^ { \\prime } = 1 } ^ { n ^ { \\prime } }$ sampled independently and identically from a different joint distribution $\\overline { { \\mathcal { D } } } \\neq \\mathcal { D }$ . We denote random variables as $( X , { \\overline { { Y } } } ) \\sim { \\overline { { \\mathcal { D } } } }$ . As before, we assume this distribution can be decomposed into either class-conditionals $\\{ \\overline { { P } } _ { k } \\} _ { k = 1 } ^ { K }$ and base rate $\\{ \\overline { { \\pi } } \\} _ { k = 1 } ^ { K }$ , or marginal $M$ and classprobability function $\\overline { { \\eta } } : \\mathcal { X } \\to \\Delta _ { K }$ , where ${ \\overline { { P } } } _ { k } : = \\mathbb { P } ( X | { \\overline { { Y } } } = k )$ , $\\overline { { \\pi } } _ { k } : = \\mathbb { P } ( \\overline { { Y } } = k )$ , $M : = \\mathbb { P } ( X )$ , $\\overline { { \\eta } } _ { k } ( x ) : = \\mathbb { P } ( \\overline { { Y } } = k | X = x )$ , $\\overline { { Y } }$ is the complementary label, and $\\Delta _ { K }$ is the conditional probability simplex for $K$ classes. Without any assumptions on $\\overline { { \\mathcal { D } } }$ , it is impossible to design a suitable learning procedure. The assumption for unbiased complementary learning used in Ishida et al. (2017) was ",
249
+ "bbox": [
250
+ 173,
251
+ 103,
252
+ 825,
253
+ 241
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "equation",
259
+ "img_path": "images/99dd43699ca8abaddb1ee2e3b840f40bd9b51d86e45184e53c63dd7069c124c1.jpg",
260
+ "text": "$$\n\\overline { { { \\eta } } } ( \\boldsymbol { x } ) = T \\eta ( \\boldsymbol { x } ) ,\n$$",
261
+ "text_format": "latex",
262
+ "bbox": [
263
+ 442,
264
+ 250,
265
+ 553,
266
+ 268
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "where $\\pmb { T } \\in \\mathbb { R } ^ { K \\times K }$ is a matrix that takes 0 on diagonals and $\\frac { 1 } { K - 1 }$ on non-diagonals. Under this assumption, Ishida et al. (2017) proved that they can recover the classification risk (1) from an alternative formulation using only complementarily labeled data when he loss function satisfies certain conditions. More specifically, usable loss functions are pairwise comparison or one-versus-all multi-class loss functions (Zhang, 2004) each with binary loss function $\\ell ^ { \\bar { \\prime } } ( z ) : \\mathbb { R } \\to \\mathbb { R } _ { + }$ that satisfies $\\ell ^ { \\prime } ( z ) + \\ell ^ { \\prime } ( - z ) = 1$ , such as ramp loss $\\begin{array} { r } { \\ell _ { R } ^ { \\prime } ( z ) = \\frac { 1 } { 2 } \\operatorname* { m a x } \\left( 0 , \\operatorname* { m i n } ( 2 , 1 - z ) \\right) } \\end{array}$ or sigmoid loss ℓ′S (z ) = 11+ez . ",
273
+ "bbox": [
274
+ 173,
275
+ 286,
276
+ 825,
277
+ 393
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Having an unbiased risk estimator is also helpful for the validation process. Since we do not have ordinary labels in our validation set in the complementary-label learning setting, we cannot follow the usual validation procedure that uses zero-one error or accuracy. If we have an unbiased estimator of the original classification risk (which can be interpreted as zero-one error), we can use the empirical risk for (cross)-validated complementary data to select the best hyper-parameter or deploy early stopping. ",
284
+ "bbox": [
285
+ 173,
286
+ 398,
287
+ 825,
288
+ 483
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "An extension of the above method was considered in Yu et al. (2018) by using a different assumption than the unbiased complementary learning of Ishida et al. (2017): there is some bias amongst the possible complementary labels that can be chosen, thus the non-diagonals of $_ { \\mathbf { T } }$ is not restricted to $\\frac { 1 } { K - 1 }$ . However, one will need to prepare a separate dataset with ordinary labels in order to estimate $_ { \\mathbf { T } }$ beforehand. ",
295
+ "bbox": [
296
+ 174,
297
+ 489,
298
+ 825,
299
+ 560
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Unlike Ishida et al. (2017), Yu et al. (2018) did not directly provide a risk estimator, but they showed that the minimizer of their learning objective agrees with the minimizer of the original classification risk (1). Note that, in their formulation, the loss function is restricted to the softmax cross-entropy loss. Furthermore, the use of a highly non-linear model is supposed for consistency guarantee in their theoretical analysis. Since the learning objective of $\\mathrm { Y u }$ et al. (2018) does not correspond to the classification risk, one will need clean data with true labels to calculate the error rate during the validation process. On the other hand, our proposed risk estimator can cope with complementarily labeled validation data not only for our own learning objective, but can be used to select hyperparameters for others such as Yu et al. (2018). ",
306
+ "bbox": [
307
+ 173,
308
+ 566,
309
+ 825,
310
+ 693
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Learning from both ordinary and complementary labels In many practical situations, we may also have ordinarily labeled data in addition to complementarily labeled data. Ishida et al. (2017) touched on the idea of crowdsourcing for an application with both types of data. For example, we may choose one of the classes randomly by following the uniform distribution, with probability $\\frac { 1 } { K - 1 }$ for each class, and ask crowdworkers whether a pattern belongs to the chosen class or not. Then the pattern is treated as ordinarily labeled if the answer is yes; otherwise, the pattern is regarded as complementarily labeled. If the true label was $y$ for a pattern, we can naturally assume that the crowdworker will answer yes by $\\mathbb { P } ( Y = y | X = \\overset { \\cdot } { x } )$ and no by $1 - \\mathbb { P } ( Y = y | X \\mathbf { \\hat { = } } x )$ . This way, ordinarily labeled data can be regarded as samples from $\\mathcal { D }$ , and complementarily labeled data from $\\overline { { \\mathcal { D } } }$ , justifying the assumption of unbiased complementary learning (3). In Ishida et al. (2017), they considered a convex combination of the classification risks derived from ordinarily labeled data and complementarily labeled data: $\\alpha R ( g ; \\overline { { \\ell } } ) + ( 1 - \\alpha ) R ( g ; \\ell )$ , where $\\alpha \\in [ 0 , 1 ]$ is a hyper-parameter that interpolates between the two risks. The combined (also unbiased) risk estimator can utilize both kinds of data in order to obtain better classifiers, which was demonstrated to perform well in experiments. ",
317
+ "bbox": [
318
+ 173,
319
+ 713,
320
+ 825,
321
+ 924
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "3 PROPOSED METHOD ",
328
+ "text_level": 1,
329
+ "bbox": [
330
+ 176,
331
+ 102,
332
+ 372,
333
+ 117
334
+ ],
335
+ "page_idx": 3
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "As discussed in the previous section, the method by Ishida et al. (2017) works well in practice, but it has restriction on the loss functions—the popular softmax cross-entropy loss is not allowed. On the other hand, the method by Yu et al. (2018) allows us to use the softmax cross-entropy loss, but it does not directly provide an estimator of the classification risk and thus model selection is problematic in practice. We first describe our general unbiased risk formulation in Section 3.1. Then we discuss how the estimator can be further improved in Section 3.2. Third, we propose a way for our risk estimator to avoid overfitting by a non-negative risk estimator in Section 3.3. Finally, we show practical implementation of our risk estimator with stochastic optimization methods in Section 3.4. ",
340
+ "bbox": [
341
+ 174,
342
+ 132,
343
+ 825,
344
+ 244
345
+ ],
346
+ "page_idx": 3
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "3.1 GENERAL RISK FORMULATION ",
351
+ "text_level": 1,
352
+ "bbox": [
353
+ 176,
354
+ 261,
355
+ 426,
356
+ 275
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "First, we describe our general unbiased risk formulation. We give the following theorem, which allows unbiased estimation of the classification risk from complementarily labeled samples: ",
363
+ "bbox": [
364
+ 173,
365
+ 286,
366
+ 823,
367
+ 315
368
+ ],
369
+ "page_idx": 3
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "Theorem 1. For any ordinary distribution $\\mathcal { D }$ and complementary distribution $\\overline { { \\mathcal { D } } }$ related by (3) with decision function $\\textbf { { g } }$ , and loss $\\ell$ , we have ",
374
+ "bbox": [
375
+ 173,
376
+ 319,
377
+ 823,
378
+ 348
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "equation",
384
+ "img_path": "images/ffc6b652d750b48460edad25672884fe2012414499a8a79fd85f63b006d8eec4.jpg",
385
+ "text": "$$\nR ( \\pmb { g } ; \\ell ) = R ( \\pmb { g } ; \\bar { \\ell } )\n$$",
386
+ "text_format": "latex",
387
+ "bbox": [
388
+ 437,
389
+ 353,
390
+ 562,
391
+ 371
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "for the complementary loss ",
398
+ "bbox": [
399
+ 173,
400
+ 376,
401
+ 354,
402
+ 391
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "equation",
408
+ "img_path": "images/3383e0de90353f84a64f8d495753a87ba4c25fedbde862302768ed2cbf0186f3.jpg",
409
+ "text": "$$\n\\overline { { \\ell } } ( \\pmb { g } ) : = \\Big ( - ( K - 1 ) \\pmb { I } _ { K } + \\frac { 1 } { K - 1 } \\pmb { 1 } \\pmb { 1 } ^ { \\top } \\Big ) \\cdot \\pmb { \\ell } ( \\pmb { g } ) ,\n$$",
410
+ "text_format": "latex",
411
+ "bbox": [
412
+ 338,
413
+ 396,
414
+ 656,
415
+ 428
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "where 1 is a A. The key $K$ -dimensional column vector with 1 in each ela of the proof is to not rely on the condition e found in Appendix used in Ishida et al. $\\begin{array} { r } { \\sum _ { k = 1 } ^ { K } \\overline { { \\ell } } ( k , g ) = 1 } \\end{array}$ (2017), which is a condition inspired by the property of binary 0-1 loss $\\ell _ { 0 - 1 }$ , where if $z < 0$ and 0 otherwise. Note that such a technique was also used when designing unbiased risk estimators for learning from positive and unlabeled data in a binary classification setup (?), but was later shown to be unnecessary (du Plessis et al., 2015). ",
422
+ "bbox": [
423
+ 173,
424
+ 439,
425
+ 825,
426
+ 526
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "According to Theorem 1, we can derive an equivalent form, ",
433
+ "bbox": [
434
+ 174,
435
+ 532,
436
+ 565,
437
+ 546
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "equation",
443
+ "img_path": "images/53b4892812cc109c530f56ac7db47e711cf45ed2a54cbf6ade4decc00bdd4fba.jpg",
444
+ "text": "$$\n\\boldsymbol { \\overline { { \\ell } } } ( \\boldsymbol { k } , g ) = - ( K - 1 ) \\cdot \\boldsymbol { \\ell } ( \\boldsymbol { k } , g ) + \\sum _ { j = 1 } ^ { K } \\boldsymbol { \\ell } ( j , g ) .\n$$",
445
+ "text_format": "latex",
446
+ "bbox": [
447
+ 354,
448
+ 553,
449
+ 642,
450
+ 597
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "Therefore, the classification risk can be written as ",
457
+ "bbox": [
458
+ 174,
459
+ 602,
460
+ 501,
461
+ 617
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "equation",
467
+ "img_path": "images/e99a31f33a23ed2914c6da80c6a127cda493eef2497b49d8a456fda079599988.jpg",
468
+ "text": "$$\nR ( g ; \\ell ) = \\sum _ { k = 1 } ^ { K } \\overline { { { \\pi } } } _ { k } \\mathbb { E } _ { \\overline { { { P } } } _ { k } } \\Big [ - ( K - 1 ) \\cdot \\ell ( k , g ) + \\sum _ { j = 1 } ^ { K } \\ell ( j , g ) \\Big ] .\n$$",
469
+ "text_format": "latex",
470
+ "bbox": [
471
+ 305,
472
+ 621,
473
+ 692,
474
+ 666
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "This expression of the classification risk allows us to naively approximate it in an unbiased fashion using complementarily labeled data as ",
481
+ "bbox": [
482
+ 173,
483
+ 671,
484
+ 823,
485
+ 699
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "equation",
491
+ "img_path": "images/60ad28e409970055a32d28c4dff3581235b00de507a2be2eb877e7b407e3f77d.jpg",
492
+ "text": "$$\n\\widehat { R } ( g ; \\ell ) = \\sum _ { k = 1 } ^ { K } \\frac { \\widehat { \\pi } _ { k } } { n _ { k } } \\sum _ { i = 1 } ^ { n _ { k } } \\Big [ - ( K - 1 ) \\cdot \\ell \\big ( k , g ( \\pmb { x } _ { i } ) \\big ) + \\sum _ { j = 1 } ^ { K } \\ell ( j , g \\big ( \\pmb { x } _ { i } \\big ) \\big ) \\Big ] ,\n$$",
493
+ "text_format": "latex",
494
+ "bbox": [
495
+ 272,
496
+ 705,
497
+ 723,
498
+ 750
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "where $n _ { k }$ is the number of samples complementarily labeled as the $k$ th class. It is worth noting that, in the above derivation, there are no constraints on the loss function and classifier. Thus, we can use any convex/non-convex loss and any linear/non-linear parametric/non-parametric model for complementary learning. ",
505
+ "bbox": [
506
+ 176,
507
+ 755,
508
+ 825,
509
+ 811
510
+ ],
511
+ "page_idx": 3
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "3.2 NECESSITY OF RISK CORRECTION ",
516
+ "text_level": 1,
517
+ "bbox": [
518
+ 176,
519
+ 828,
520
+ 447,
521
+ 843
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "The original expression of the classification risk (1) includes an expectation over non-negative loss $\\ell : [ K ] \\times \\mathbb { R } ^ { K } \\overset { \\cdot } { } \\mathbb { R } _ { + }$ , so the risk and its empirical approximator are both lower-bounded by zero. On the other hand, the expression (7) derived above contains an negative element. Although (7) is still non-negative by definition, due to the negative term, its empirical estimator can go negative, leading to over-fitting. ",
528
+ "bbox": [
529
+ 174,
530
+ 853,
531
+ 825,
532
+ 924
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "image",
538
+ "img_path": "images/2c0b3b6c6c254c771a08350f3b0ac953c987ce742855b305c3cfabbf17657d04.jpg",
539
+ "image_caption": [
540
+ "Figure 1: The left and middle graphs shows the total risk (8) (in black color) and the risk decomposed into each ordinary class term (9) (in other colors) for training data with linear and MLP models, respectively. As an MLP model, a one-hidden-layer neural network with 500 units was used, with $R e L U$ (Nair & Hinton, 2010) as the activation function, Adam (Kingma & Ba, 2015) for optimization with learning rate $5 e - 5$ and weight decay of $1 e - 4$ . The right graph shows the corresponding test accuracy for both models. "
541
+ ],
542
+ "image_footnote": [],
543
+ "bbox": [
544
+ 173,
545
+ 77,
546
+ 825,
547
+ 218
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "We elaborate on this issue with an illustrative numerical example. In the left graph of Figure 1, we show an example of training a linear model trained on the handwritten digits dataset $\\mathrm { \\bf M N I S T ^ { 1 } }$ , with complementary labels generated to satisfy (3). We used Adam (Kingma & Ba, 2015) for optimization with learning rate $5 e - 5$ , and weight decay of $1 e - 4$ with 300 epochs. The empirical classification risk (8) is shown in black. We can see that the empirical classification risk continues decreasing and can go below zero at around 100 epochs. The test accuracy on the right graph hits the peak also at around epoch 100 and then the accuracy gradually deteriorates. ",
554
+ "bbox": [
555
+ 174,
556
+ 320,
557
+ 825,
558
+ 417
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "This issue stands out even more significantly when we use a flexible model. The middle graph shows the empirical classification risk for a multilayer perceptron (MLP) with one hidden layer (500 units), where ReLU (Nair & Hinton, 2010) was used as the activation function. The optimization setup was the same as the case of the linear model above. We can see the empirical risk decreasing much more quickly and going negative. Correspondingly, as the right graph shows, the test accuracy drops significantly after the empirical risk goes negative. ",
565
+ "bbox": [
566
+ 173,
567
+ 424,
568
+ 825,
569
+ 508
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "In fact, a similar issue has already been conceivable in the original paper by Ishida et al. (2017): According to Theorem 1 in Ishida et al. (2017), the unbiased risk estimator includes subtraction of a positive constant term which increases with respect to the number of classes. This means that the learning objective of Ishida et al. (2017) has a (negative) lower bound. Our objective, however, is unbounded from below and thus can end up in even heavier overfitting. ",
576
+ "bbox": [
577
+ 174,
578
+ 515,
579
+ 825,
580
+ 585
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "3.3 NON-NEGATIVE RISK ESTIMATOR ",
587
+ "text_level": 1,
588
+ "bbox": [
589
+ 176,
590
+ 603,
591
+ 446,
592
+ 616
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "As we saw in Section 3.2, our risk estimator can suffer from overfitting due to the non-negative issue. Here, we propose a correction to the risk estimator to overcome this problem. ",
599
+ "bbox": [
600
+ 171,
601
+ 628,
602
+ 823,
603
+ 656
604
+ ],
605
+ "page_idx": 4
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Each term in the risk with ordinary labels (right-hand side of (2)), which corresponds to each class, is non-negative. We can reformulate (7) in order to show the counterpart for each non-negative term in right-hand side of (2) for complementarily labeled data as ",
610
+ "bbox": [
611
+ 174,
612
+ 664,
613
+ 823,
614
+ 707
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "equation",
620
+ "img_path": "images/8e2fdaad09a4004bb7d048cdbbbbf4849ffb37fe583ce01e659f30885db70a1d.jpg",
621
+ "text": "$$\nR ( g ; \\ell ) = \\sum _ { k = 1 } ^ { K } \\overline { { \\pi } } _ { k } \\Big [ - ( K - 1 ) \\cdot \\mathbb { E } _ { \\overline { { P } } _ { k } } [ \\ell ( k , g ) ] + \\sum _ { j = 1 } ^ { K } \\mathbb { E } _ { \\overline { { P } } _ { j } } [ \\ell ( k , g ) ] \\Big ] .\n$$",
622
+ "text_format": "latex",
623
+ "bbox": [
624
+ 281,
625
+ 713,
626
+ 717,
627
+ 757
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "These counterparts (9) were originally non-negative when ordinary labels were used. In the left and middle graphs of Figure 1, we plot the decomposed risk with respect to each ordinary class (9) (shown in different colors). We can see that the decomposed risks for all classes become negative eventually. Based on this observation, our basic idea for correction is to enforce non-negativity for each ordinary class, with the expression based on complementary labels. More specifically, we propose a non-negative (nn) version by ",
634
+ "bbox": [
635
+ 173,
636
+ 763,
637
+ 825,
638
+ 848
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "equation",
644
+ "img_path": "images/c2bd209cbf3ca0d17dfd000369c773eef65f56e7c636e4a0323c6d1bc2fc8a78.jpg",
645
+ "text": "$$\nR _ { \\mathrm { n n } } ( g ; \\ell ) = \\sum _ { k = 1 } ^ { K } \\operatorname* { m a x } \\Big \\{ 0 , \\overline { { \\pi } } _ { k } \\Big [ - ( K - 1 ) \\cdot \\mathbb { E } _ { \\overline { { P } } _ { k } } [ \\ell ( k , g ) ] + \\sum _ { j = 1 } ^ { K } \\mathbb { E } _ { \\overline { { P } } _ { j } } [ \\ell ( k , g ) ] \\Big ] \\Big \\} .\n$$",
646
+ "text_format": "latex",
647
+ "bbox": [
648
+ 238,
649
+ 854,
650
+ 758,
651
+ 900
652
+ ],
653
+ "page_idx": 4
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "This non-negative risk can be naively approximated by the sample average as ",
658
+ "bbox": [
659
+ 173,
660
+ 103,
661
+ 679,
662
+ 119
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "equation",
668
+ "img_path": "images/42623d65d17e04da3b355dca2ca8edb5fbeebee3d76983a5728b5e6af6c541a3.jpg",
669
+ "text": "$$\n\\widehat { R } _ { \\mathrm { n n } } ( g ; \\ell ) = \\sum _ { k = 1 } ^ { K } \\operatorname* { m a x } \\Big \\{ 0 , \\pi \\Big [ - \\frac { K - 1 } { n _ { k } } \\sum _ { i = 1 } ^ { n _ { k } } \\ell ( k , g ( x _ { i } ) ) + \\sum _ { j = 1 } ^ { K } \\frac { 1 } { n _ { i ^ { \\prime } } } \\sum _ { i ^ { \\prime } = 1 } ^ { n _ { i ^ { \\prime } } } \\ell ( j , g ( x _ { i ^ { \\prime } } ) ) \\Big ] \\Big \\} .\n$$",
670
+ "text_format": "latex",
671
+ "bbox": [
672
+ 205,
673
+ 125,
674
+ 764,
675
+ 170
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "Enforcing the reformulated risk to become non-negative was previously explored in Kiryo et al. (2017), in the context of binary classification from positive and unlabeled data. The positive class risk is already bounded below by zero in their case (because they have true positive labels), so there was a max operator only on the negative class risk. We basically follow their footsteps, but since our setting is a multi-class scenario and also differs by not having any true labels, we put a max operator on every $K$ class. ",
682
+ "bbox": [
683
+ 173,
684
+ 176,
685
+ 825,
686
+ 261
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "3.4 IMPLEMENTATION ",
693
+ "text_level": 1,
694
+ "bbox": [
695
+ 174,
696
+ 279,
697
+ 341,
698
+ 292
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "Implementation with max operator We show practical implementation under stochastic optimization for our non-negative risk estimator. An unfortunate issue is that the minimization of (11) is not point-wise due to the max-operator, thus cannot be used directly for stochastic optimization methods with mini-batch. However, an upper bound of the risk can be minimized in parallel by using mini-batch as the following, ",
705
+ "bbox": [
706
+ 174,
707
+ 304,
708
+ 825,
709
+ 375
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "equation",
715
+ "img_path": "images/d80dc19ae2b9255c8a9c85440c17732d4644dd64d167035aae1a301ab9bceac0.jpg",
716
+ "text": "$$\n\\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\sum _ { k = 1 } ^ { K } \\operatorname* { m a x } \\Big \\{ 0 , \\pi _ { k } \\Big [ - ( K - 1 ) \\widehat { \\mathbb { E } } _ { \\overline { { P } } _ { k } } [ \\ell ( k , g ) ; \\mathcal { X } _ { \\widehat { k } } ^ { i } ] + \\sum _ { j = 1 } ^ { K } \\widehat { \\mathbb { E } } _ { \\overline { { P } } _ { j } } [ \\ell ( k , g ) ; \\mathcal { X } _ { \\widehat { j } } ^ { i } ] \\Big ] \\Big \\} ,\n$$",
717
+ "text_format": "latex",
718
+ "bbox": [
719
+ 236,
720
+ 381,
721
+ 759,
722
+ 426
723
+ ],
724
+ "page_idx": 5
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "where $\\widehat { \\mathbb { E } }$ is the empirical version of the expectation and $\\mathcal { X } _ { \\overline { { j } } } ^ { i }$ denotes the samples complementarily labeled as the $j$ th class in the ith mini-batch. ",
729
+ "bbox": [
730
+ 176,
731
+ 435,
732
+ 823,
733
+ 468
734
+ ],
735
+ "page_idx": 5
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "Implementation with gradient ascent If the objective is negative for a certain mini-batch, the previous implementation based on the max operator will avoid the objective to further decrease. However, if the objective is already negative, that mini-batch has already started to overfit. Therefore, it would be preferable to increase itself to make this mini-batch less overfitted. ",
740
+ "bbox": [
741
+ 174,
742
+ 483,
743
+ 825,
744
+ 540
745
+ ],
746
+ "page_idx": 5
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "Our idea is the following. We denote the risk that corresponds to the $k$ th ordinary class for the ith mini-batch as ",
751
+ "bbox": [
752
+ 174,
753
+ 546,
754
+ 823,
755
+ 575
756
+ ],
757
+ "page_idx": 5
758
+ },
759
+ {
760
+ "type": "equation",
761
+ "img_path": "images/693afb0e783bb9f5fdc2973acbd7d43bad8d7dc79df129c27bab809b4ce5261a.jpg",
762
+ "text": "$$\nr _ { k } ^ { i } ( \\theta ) = \\overline { { \\pi } } _ { k } \\big [ - ( K - 1 ) \\widehat { \\mathbb { E } } _ { \\overline { { P } } _ { k } } [ \\ell ( k , g ) ; \\mathcal { X } _ { \\overline { { k } } } ^ { i } ] + \\sum _ { j = 1 } ^ { K } \\widehat { \\mathbb { E } } _ { \\overline { { P } } _ { j } } [ \\ell ( k , g ) ; \\mathcal { X } _ { \\overline { { j } } } ^ { i } ] \\big ] ,\n$$",
763
+ "text_format": "latex",
764
+ "bbox": [
765
+ 279,
766
+ 580,
767
+ 717,
768
+ 625
769
+ ],
770
+ "page_idx": 5
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "and the total risk as $\\begin{array} { r } { L ^ { i } ( \\theta ) = \\sum _ { k = 1 } ^ { K } r _ { k } ^ { i } ( \\theta ) } \\end{array}$ . When $\\mathrm { m i n } _ { k } \\{ r _ { k } ^ { i } ( \\theta ) \\} _ { k = 1 } ^ { K } \\geq - \\beta$ , we conduct gradient descent as usual with gradient $\\nabla _ { \\theta } L ^ { i } ( \\theta )$ . On the other hand, if $\\mathrm { m i n } _ { k } \\{ r _ { k } ^ { i } ( \\theta ) \\} _ { k = 1 } ^ { K } < - \\beta$ , we first squash the class-decomposed risks over $- \\beta$ to $- \\beta$ with a min operator, and then sum the results: $\\begin{array} { r } { \\tilde { L ^ { i } } ( \\theta ) = \\sum _ { k = 1 } ^ { K } \\operatorname* { m i n } \\{ - \\bar { \\beta } , r _ { k } ^ { i } ( \\theta ) \\} , } \\end{array}$ . ",
775
+ "bbox": [
776
+ 173,
777
+ 632,
778
+ 825,
779
+ 698
780
+ ],
781
+ "page_idx": 5
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "Next we set the gradient in the opposite direction with $- \\nabla _ { \\boldsymbol { \\theta } } \\widetilde { L } ^ { i } ( \\boldsymbol { \\theta } )$ . Conceptually, we are going up the gradient $\\nabla _ { \\boldsymbol { \\theta } } \\widetilde { L } ^ { i } ( { \\boldsymbol { \\theta } } )$ for only the class-decomposed risks below $- \\beta$ , to avoid the class-decomposed risks that are already large to further increase. Note that $\\beta$ is a hyper-parameter that controls the tolerance of negativity. $\\beta = 0$ would mean there is zero tolerance, but in practice we can also have $- \\beta \\neq 0$ for a threshold that allows some negative ${ \\mathit { \\Omega } } ^ { \\prime } - \\beta < 0 { \\mathit { \\Gamma } }$ or positive $( - \\beta > 0 )$ ) amount. The procedure is shown in detail in Algorithm 1. ",
786
+ "bbox": [
787
+ 173,
788
+ 704,
789
+ 825,
790
+ 794
791
+ ],
792
+ "page_idx": 5
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "4 EXPERIMENTS ",
797
+ "text_level": 1,
798
+ "bbox": [
799
+ 176,
800
+ 813,
801
+ 326,
802
+ 829
803
+ ],
804
+ "page_idx": 5
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "In this section, we experimentally compare our three proposed methods (Algorithm 1, (8) and (12), with two baseline methods from Ishida et al. (2017) and Yu et al. (2018). Table 2 describes the summary statistics of the benchmark datasets used in this section. The implementation is based on Pytorch2 and our code will be available on http://anonymized for reproducing results. ",
809
+ "bbox": [
810
+ 174,
811
+ 844,
812
+ 825,
813
+ 901
814
+ ],
815
+ "page_idx": 5
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Input: complementarily labeled training data $\\{ \\mathcal { X } _ { \\overline { { k } } } \\} _ { \\overline { { k } } = 1 } ^ { K }$ , where ${ \\mathit { X } } _ { \\overline { { k } } }$ denotes the samples comple \nmentarily labeled as class $\\overline { { k } }$ ; \nOutput: model parameter $\\theta$ for $g ( { \\pmb x } ; { \\boldsymbol \\theta } )$ \n1: Let $\\mathcal { A }$ be an external SGD-like stochastic optimization algorithm such as Kingma & Ba (2015) \n2: Denote $\\{ \\mathcal { X } _ { \\overline { { j } } } ^ { i } \\}$ as the $i$ -th mini-batch for complementary class $j$ \n3: Denote $\\begin{array} { r } { L ^ { i } ( \\theta ) = \\sum _ { k = 1 } ^ { K } r _ { k } ^ { i } ( \\theta ) } \\end{array}$ \n4: Denote $\\begin{array} { r } { r _ { k } ^ { i } ( \\theta ) = \\overline { { \\pi } } _ { k } \\widetilde { \\big [ } - ( K - 1 ) \\widehat { \\mathbb { E } } _ { \\overline { { P } } _ { k } } [ \\ell ( k , g ) ; \\mathcal { X } _ { \\overline { { k } } } ^ { i } ] + \\sum _ { j = 1 } ^ { K } \\widehat { \\mathbb { E } } _ { \\overline { { P } } _ { j } } [ \\ell ( k , g ) ; \\mathcal { X } _ { \\overline { { j } } } ^ { i } ] \\big ] } \\end{array}$ \n5: Denote $\\begin{array} { r } { \\widetilde L ^ { i } ( \\theta ) = \\sum _ { k = 1 } ^ { K } \\operatorname* { m i n } \\{ - \\beta , r _ { k } ^ { i } ( \\theta ) \\} } \\end{array}$ \n6: while no stopping criterion has been met: \n7: Shuffle $\\{ \\hat { \\mathcal { X } } _ { \\bar { j } } ^ { - } \\} _ { \\bar { j } } ^ { K }$ into $N$ mini-batches; \n8: for $i = 1$ to $N$ : \n9: $\\begin{array} { r } { \\mathbf { i f } \\operatorname* { m i n } _ { k } [ r _ { 1 } ^ { i } ( \\theta ) , \\dots , r _ { k } ^ { i } ( \\theta ) , \\dots , r _ { K } ^ { i } ( \\theta ) ] > - \\beta \\colon } \\end{array}$ \n10: Set gradient $\\nabla _ { \\theta } L ^ { i } ( \\theta )$ ; \n11: Update $\\theta$ by $\\mathcal { A }$ with its current step size $\\eta$ ; \n12: else: \n13: Set gradient $- \\nabla _ { \\boldsymbol { \\theta } } \\widetilde { L } ^ { i } ( \\boldsymbol { \\theta } )$ ; \n14: Update $\\theta$ by $\\mathcal { A }$ with a discounted step size $\\gamma \\eta$ ; ",
820
+ "bbox": [
821
+ 178,
822
+ 118,
823
+ 821,
824
+ 395
825
+ ],
826
+ "page_idx": 6
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "4.1 SETUP ",
831
+ "text_level": 1,
832
+ "bbox": [
833
+ 174,
834
+ 425,
835
+ 261,
836
+ 439
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "For MNIST and Fashion-MNIST, a linear-in-input model with a bias term and a MLP model $( d -$ $5 0 0 - 1 )$ was trained with softmax cross-entropy loss function. Weight decay of $1 e - 4$ for weight parameters and learning rate of $5 e - 5$ for Adam (Kingma & Ba, 2015) was used. ",
843
+ "bbox": [
844
+ 176,
845
+ 454,
846
+ 823,
847
+ 496
848
+ ],
849
+ "page_idx": 6
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "For CIFAR-10, DenseNet (Huang et al., 2017) and Resnet-18 (He et al., 2016) with default parameter settings were trained. Weight decay of $5 e - 4$ and initial learning rate of $1 e - 2$ was used. For optimization, stochastic gradient descent was used with the momentum set to 0.9. Learning rate was halved every 30 epochs. ",
854
+ "bbox": [
855
+ 174,
856
+ 502,
857
+ 825,
858
+ 559
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "We trained and compared 5 methods (Free (8), Max operator (12), Gradient ascent (Alg.1), PC (Ishida et al., 2017) and Forward (Yu et al., 2018)) with only complementarily labeled data. Note that the first three are the proposed methods. We complementarily labeled our benchmark datasets so that the assumption of (3) is satisfied. This is straightforward when the dataset has a uniform (ordinarily-labeled) class prior, because it reduces to just choosing a class randomly other than the true class. For Gradient ascent, we used $\\beta = 0$ and $\\gamma = 0$ for simplicity. We trained 300 epochs, where mini-batch was set to 100. ",
865
+ "bbox": [
866
+ 174,
867
+ 565,
868
+ 825,
869
+ 664
870
+ ],
871
+ "page_idx": 6
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "4.2 RESULTS ",
876
+ "text_level": 1,
877
+ "bbox": [
878
+ 174,
879
+ 685,
880
+ 277,
881
+ 700
882
+ ],
883
+ "page_idx": 6
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Instead of showing the test accuracy for a single chosen model based on validation, we show the accuracy for all 300 epochs on test data to demonstrate how the issues discussed in Section 3.2 appear and how different implementations Section 3.4 is effective. In Figure 2, we show the mean test accuracy and standard deviation for 4 trials for the three benchmark datasets, on test data evaluated with ordinary labels. ",
888
+ "bbox": [
889
+ 174,
890
+ 714,
891
+ 825,
892
+ 784
893
+ ],
894
+ "page_idx": 6
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "First we compare our three proposed methods with each other. For linear models in MNIST and Fashion-MNIST, all proposed methods work similarly. However in the case of using a more flexible model (MLP model for MNIST/Fashion-MNIST, Densenet/Resnet for CIFAR-10), we can see that Free is the worst, Max operator is better and Gradient ascent is the best out of the proposed three methods at the end of all epochs $F r e e < M a x$ operator $<$ Gradient ascent). These results are consistent with the discussions of overfitting in Section 3.2 and the motivations for different implementations in Section 3.4. ",
899
+ "bbox": [
900
+ 174,
901
+ 791,
902
+ 825,
903
+ 888
904
+ ],
905
+ "page_idx": 6
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Next, we compare with baseline methods. For linear models, all methods have similar performance. \nHowever for deep models, the superiority stands out for Gradient ascent for all datasets. ",
910
+ "bbox": [
911
+ 174,
912
+ 895,
913
+ 823,
914
+ 924
915
+ ],
916
+ "page_idx": 6
917
+ },
918
+ {
919
+ "type": "image",
920
+ "img_path": "images/24f13e5b2ca81db9ac3aad7836e191f1ab7625e4edac07a846fa1a3b3f80c16d.jpg",
921
+ "image_caption": [
922
+ "Figure 2: Experimental results for various datasets and models. Dark colors show the mean accuracy of 4 trials and light colors show standard deviation. "
923
+ ],
924
+ "image_footnote": [],
925
+ "bbox": [
926
+ 196,
927
+ 93,
928
+ 810,
929
+ 693
930
+ ],
931
+ "page_idx": 7
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "5 CONCLUSION ",
936
+ "text_level": 1,
937
+ "bbox": [
938
+ 174,
939
+ 785,
940
+ 318,
941
+ 800
942
+ ],
943
+ "page_idx": 7
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "We first proposed a general risk estimator for learning from complementary labels that does not require restrictions on the form of the loss function or the model. However, since the proposed method suffers from overfitting, we proposed a modified version to alleviate this issue in two ways and have better performance. At last, we conducted experiments to show our proposed method outperforms or is comparable to current state-of-the-art methods for various benchmark datasets and for both linear and deep models. ",
948
+ "bbox": [
949
+ 174,
950
+ 839,
951
+ 825,
952
+ 924
953
+ ],
954
+ "page_idx": 7
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "REFERENCES ",
959
+ "text_level": 1,
960
+ "bbox": [
961
+ 174,
962
+ 103,
963
+ 287,
964
+ 117
965
+ ],
966
+ "page_idx": 8
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Han Bao, Gang Niu, and Masashi Sugiyama. Classification from pairwise similarity and unlabeled data. In ICML, 2018. ",
971
+ "bbox": [
972
+ 173,
973
+ 125,
974
+ 823,
975
+ 154
976
+ ],
977
+ "page_idx": 8
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "Olivier Chapelle, Bernhard Schölkopf, and Alexander Zien (eds.). Semi-Supervised Learning. MIT Press, 2006. ",
982
+ "bbox": [
983
+ 176,
984
+ 161,
985
+ 823,
986
+ 190
987
+ ],
988
+ "page_idx": 8
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Marthinus Christoffel du Plessis, Gang Niu, and Masashi Sugiyama. Analysis of learning from positive and unlabeled data. In NIPS, 2014. ",
993
+ "bbox": [
994
+ 176,
995
+ 198,
996
+ 823,
997
+ 227
998
+ ],
999
+ "page_idx": 8
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Marthinus Christoffel du Plessis, Gang Niu, and Masashi Sugiyama. Convex formulation for learning from positive and unlabeled data. In ICML, 2015. ",
1004
+ "bbox": [
1005
+ 173,
1006
+ 234,
1007
+ 821,
1008
+ 263
1009
+ ],
1010
+ "page_idx": 8
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Charles Elkan and Keith Noto. Learning classifiers from only positive and unlabeled data. In KDD, 2008. ",
1015
+ "bbox": [
1016
+ 173,
1017
+ 271,
1018
+ 823,
1019
+ 301
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 308,
1029
+ 821,
1030
+ 337
1031
+ ],
1032
+ "page_idx": 8
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In CVPR, 2017. ",
1037
+ "bbox": [
1038
+ 174,
1039
+ 343,
1040
+ 821,
1041
+ 373
1042
+ ],
1043
+ "page_idx": 8
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Takashi Ishida, Gang Niu, Weihua Hu, and Masashi Sugiyama. Learning from complementary labels. In NIPS, 2017. ",
1048
+ "bbox": [
1049
+ 176,
1050
+ 381,
1051
+ 823,
1052
+ 410
1053
+ ],
1054
+ "page_idx": 8
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Takashi Ishida, Gang Niu, and Masashi Sugiyama. Binary classification from positive-confidence data. In NIPS, 2018. To appear. ",
1059
+ "bbox": [
1060
+ 174,
1061
+ 416,
1062
+ 823,
1063
+ 446
1064
+ ],
1065
+ "page_idx": 8
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Diederik P. Kingma and Jimmy L. Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
1070
+ "bbox": [
1071
+ 173,
1072
+ 454,
1073
+ 823,
1074
+ 470
1075
+ ],
1076
+ "page_idx": 8
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017. ",
1081
+ "bbox": [
1082
+ 173,
1083
+ 477,
1084
+ 821,
1085
+ 506
1086
+ ],
1087
+ "page_idx": 8
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Ryuichi Kiryo, Gang Niu, Marthinus Christoffel du Plessis, and Masashi Sugiyama. Positiveunlabeled learning with non-negative risk estimator. In NIPS, 2017. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 512,
1095
+ 821,
1096
+ 542
1097
+ ],
1098
+ "page_idx": 8
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "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. ",
1103
+ "bbox": [
1104
+ 174,
1105
+ 549,
1106
+ 823,
1107
+ 592
1108
+ ],
1109
+ "page_idx": 8
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional smoothing with virtual adversarial training. In ICLR, 2016. ",
1114
+ "bbox": [
1115
+ 173,
1116
+ 599,
1117
+ 823,
1118
+ 630
1119
+ ],
1120
+ "page_idx": 8
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In ICML, 2010. ",
1125
+ "bbox": [
1126
+ 174,
1127
+ 636,
1128
+ 821,
1129
+ 665
1130
+ ],
1131
+ "page_idx": 8
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Nagarajan Natarajan, Inderjit S. Dhillon, Pradeep K. Ravikumar, and Ambuj Tewari. Learning with noisy labels. In NIPS, 2013. ",
1136
+ "bbox": [
1137
+ 173,
1138
+ 672,
1139
+ 823,
1140
+ 702
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Avital Oliver, Augustus Odena, Colin Raffel, Ekin D. Cubuk, and Ian J. Goodfellow. Realistic evaluation of deep semi-supervised learning algorithms. In NIPS, 2018. To appear. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 709,
1150
+ 821,
1151
+ 739
1152
+ ],
1153
+ "page_idx": 8
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Giorgio Patrini, Alessandro Rozza, Aditya Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017. ",
1158
+ "bbox": [
1159
+ 173,
1160
+ 746,
1161
+ 821,
1162
+ 775
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Tomoya Sakai, Marthinus Christoffel du Plessis, Gang Niu, and Masashi Sugiyama. Semisupervised classification based on classification from positive and unlabeled data. In ICML, 2017. ",
1169
+ "bbox": [
1170
+ 174,
1171
+ 782,
1172
+ 821,
1173
+ 813
1174
+ ],
1175
+ "page_idx": 8
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In NIPS, 2017. ",
1180
+ "bbox": [
1181
+ 173,
1182
+ 819,
1183
+ 821,
1184
+ 849
1185
+ ],
1186
+ "page_idx": 8
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Xiyu Yu, Tongliang Liu, Mingming Gong, and Dacheng Tao. Learning with biased complementary labels. In ECCV, 2018. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 856,
1194
+ 823,
1195
+ 885
1196
+ ],
1197
+ "page_idx": 8
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Tong Zhang. Statistical analysis of some multi-category large margin classification methods. Journal of Machine Learning Research, 5:1225–1251, 2004. ",
1202
+ "bbox": [
1203
+ 173,
1204
+ 892,
1205
+ 823,
1206
+ 921
1207
+ ],
1208
+ "page_idx": 8
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "A PROOF OF THEOREM 1 ",
1213
+ "text_level": 1,
1214
+ "bbox": [
1215
+ 176,
1216
+ 102,
1217
+ 398,
1218
+ 118
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Proof. First of all, ",
1225
+ "bbox": [
1226
+ 173,
1227
+ 133,
1228
+ 297,
1229
+ 148
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "equation",
1235
+ "img_path": "images/dbe5ceaf84aaefbe83ee54896f46936a04500135e6c49dfa82b27e2a77751eff.jpg",
1236
+ "text": "$$\n{ \\begin{array} { r l } & { \\mathbb { P } ( X , { \\overline { { Y } } } = { \\overline { { y } } } ) = { \\frac { 1 } { K - 1 } } \\sum _ { y \\neq { \\overline { { y } } } } \\mathbb { P } ( X , Y = y ) } \\\\ & { \\quad \\quad = { \\frac { 1 } { K - 1 } } { \\Big ( } \\sum _ { y = 1 } ^ { K } \\mathbb { P } ( X , Y = y ) - \\mathbb { P } ( X , Y = { \\overline { { y } } } ) { \\Big ) } } \\\\ & { \\quad \\quad = { \\frac { 1 } { K - 1 } } { \\big ( } \\mathbb { P } ( X ) - \\mathbb { P } ( X , Y = { \\overline { { y } } } ) { \\big ) } . } \\end{array} }\n$$",
1237
+ "text_format": "latex",
1238
+ "bbox": [
1239
+ 295,
1240
+ 155,
1241
+ 699,
1242
+ 272
1243
+ ],
1244
+ "page_idx": 9
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "The first equality holds since the marginal distribution is equivalent for $\\mathcal { D }$ and $\\overline { { \\mathcal { D } } }$ and we assume (3). Consequently, ",
1249
+ "bbox": [
1250
+ 171,
1251
+ 279,
1252
+ 821,
1253
+ 309
1254
+ ],
1255
+ "page_idx": 9
1256
+ },
1257
+ {
1258
+ "type": "equation",
1259
+ "img_path": "images/ac2b17b18d52e219ae52032094fa0cd6a32ea2f288e703cf8a330668ce04928f.jpg",
1260
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\mathbb { P } ( \\overline { { Y } } = \\overline { { y } } | X = x ) = \\frac { \\mathbb { P } ( X = x , \\overline { { Y } } = \\overline { { y } } ) } { \\mathbb { P } ( X = x ) } } \\\\ { \\displaystyle = \\frac { 1 } { K - 1 } \\cdot \\Big ( 1 - \\frac { \\mathbb { P } ( X , Y = \\overline { { y } } ) } { \\mathbb { P } ( X = x ) } \\Big ) } \\\\ { \\displaystyle = \\frac { 1 } { K - 1 } \\cdot \\big ( 1 - \\mathbb { P } ( Y = \\overline { { y } } | X = x ) \\big ) } \\\\ { \\displaystyle = - \\frac { 1 } { K - 1 } \\mathbb { P } ( Y = \\overline { { y } } | X = x ) + \\frac { 1 } { K - 1 } . } \\end{array}\n$$",
1261
+ "text_format": "latex",
1262
+ "bbox": [
1263
+ 302,
1264
+ 313,
1265
+ 694,
1266
+ 450
1267
+ ],
1268
+ "page_idx": 9
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "More simply, we have ",
1273
+ "bbox": [
1274
+ 173,
1275
+ 453,
1276
+ 320,
1277
+ 468
1278
+ ],
1279
+ "page_idx": 9
1280
+ },
1281
+ {
1282
+ "type": "equation",
1283
+ "img_path": "images/3e8f0dc4a8f18f47a1a584612707c3ed3a5b8353b78510bc523196e9a66a8d70.jpg",
1284
+ "text": "$$\n\\pmb { \\eta } ( x ) = - ( K - 1 ) \\overline { { \\pmb { \\eta } } } ( x ) + \\mathbf { 1 } .\n$$",
1285
+ "text_format": "latex",
1286
+ "bbox": [
1287
+ 401,
1288
+ 474,
1289
+ 596,
1290
+ 492
1291
+ ],
1292
+ "page_idx": 9
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Finally, we transform the classification risk, ",
1297
+ "bbox": [
1298
+ 173,
1299
+ 497,
1300
+ 464,
1301
+ 512
1302
+ ],
1303
+ "page_idx": 9
1304
+ },
1305
+ {
1306
+ "type": "equation",
1307
+ "img_path": "images/8baf7b4b31866d67a54bb4d85b2e9ef7cf1fab84b7d4f197384c6bf0172dd5bd.jpg",
1308
+ "text": "$$\n\\begin{array} { r l } { R ( g ; \\ell ) = \\mathbb { E } _ { ( X , Y ) \\sim \\overline { { D } } } [ \\ell ( Y , g ( X ) ) ] } & { } \\\\ & { = \\mathbb { E } _ { X \\sim M } [ \\eta ^ { \\top } \\ell ( g ( X ) ) ] } \\\\ & { = \\mathbb { E } _ { X \\sim M } \\Big [ \\big ( - ( K - 1 ) \\overline { { \\eta } } ^ { \\top } + \\mathbf { 1 } ^ { \\top } \\big ) \\ell \\big ( g ( X ) \\big ) \\Big ] } \\\\ & { = \\mathbb { E } _ { X \\sim M } \\Big [ - ( K - 1 ) \\overline { { \\eta } } ^ { \\top } \\ell \\big ( g ( X ) \\big ) + \\mathbf { 1 } ^ { \\top } \\ell \\big ( g ( X ) \\big ) \\Big ] } \\\\ & { = \\mathbb { E } _ { ( X , \\overline { { Y } } ) \\sim \\overline { { D } } } \\big [ - ( K - 1 ) \\cdot \\ell \\big ( \\overline { { Y } } , g ( X ) \\big ) \\big ] + \\mathbf { 1 } ^ { \\top } \\mathbb { E } _ { X \\sim M } \\big [ \\ell \\big ( g ( X ) \\big ) \\big ] } \\\\ & { = \\displaystyle \\sum _ { k = 1 } ^ { K } \\mathbb { E } _ { X \\sim \\overline { { P } } _ { k } } \\Big [ \\overline { { \\pi } } _ { k } \\cdot \\Big ( - ( K - 1 ) \\cdot \\ell \\big ( k , g ( X ) \\big ) + \\mathbf { 1 } ^ { \\top } \\ell \\big ( g ( X ) \\big ) \\Big ) \\Big ] } \\\\ & { = R ( g ; \\overline { { \\ell } } ) } \\end{array}\n$$",
1309
+ "text_format": "latex",
1310
+ "bbox": [
1311
+ 258,
1312
+ 517,
1313
+ 738,
1314
+ 689
1315
+ ],
1316
+ "page_idx": 9
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "text": "for the complementary loss, ",
1321
+ "bbox": [
1322
+ 173,
1323
+ 694,
1324
+ 357,
1325
+ 708
1326
+ ],
1327
+ "page_idx": 9
1328
+ },
1329
+ {
1330
+ "type": "equation",
1331
+ "img_path": "images/83cc4a90c01087af8e4d474806047245108f860d7cdf367488f0e9baf69de027.jpg",
1332
+ "text": "$$\n\\overline { { \\ell } } ( k , \\pmb { g } ) : = - ( K - 1 ) \\ell ( k , \\pmb { g } ) + \\mathbf { 1 } ^ { \\top } \\ell ( \\pmb { g } ) ,\n$$",
1333
+ "text_format": "latex",
1334
+ "bbox": [
1335
+ 366,
1336
+ 714,
1337
+ 629,
1338
+ 733
1339
+ ],
1340
+ "page_idx": 9
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "which concludes the proof. ",
1345
+ "bbox": [
1346
+ 174,
1347
+ 741,
1348
+ 352,
1349
+ 755
1350
+ ],
1351
+ "page_idx": 9
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "B DETAILS OF DATASETS USED IN SECTION 4 ",
1356
+ "text_level": 1,
1357
+ "bbox": [
1358
+ 174,
1359
+ 773,
1360
+ 566,
1361
+ 791
1362
+ ],
1363
+ "page_idx": 9
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "In Table 2, we explain the details of the datasets used in Section 4. See http://yann.lecun.com/exdb/mnist/ for MNIST, https://github.com/zalandoresearch/fashion-mnist for Fashion-MNIST, and https://www.cs.toronto.edu/\\~kriz/cifar.html for CIFAR-10. ",
1368
+ "bbox": [
1369
+ 173,
1370
+ 806,
1371
+ 825,
1372
+ 863
1373
+ ],
1374
+ "page_idx": 9
1375
+ },
1376
+ {
1377
+ "type": "table",
1378
+ "img_path": "images/f24640f736a3e5cfa8c27febc3467670fbc4ab5a1a9ae15529cb3570ed41ce44.jpg",
1379
+ "table_caption": [
1380
+ "Table 2: Summary statistics of benchmark datasets. "
1381
+ ],
1382
+ "table_footnote": [],
1383
+ "table_body": "<table><tr><td>Name</td><td>#Train</td><td>#Test</td><td>#Dim</td><td># Classes</td><td>Model</td></tr><tr><td>MNIST</td><td>60,000</td><td>10,000</td><td>784</td><td>10</td><td>Linear, MLP</td></tr><tr><td>Fashion MNIST</td><td>60.000</td><td>10,000</td><td>784</td><td>10</td><td>Linear,MLP</td></tr><tr><td>CIFAR-10</td><td>60,000</td><td>10,000</td><td>2,048</td><td>10</td><td>DenseNet, Resnet</td></tr></table>",
1384
+ "bbox": [
1385
+ 250,
1386
+ 483,
1387
+ 745,
1388
+ 561
1389
+ ],
1390
+ "page_idx": 10
1391
+ }
1392
+ ]
parse/train/SJMnG2C9YX/SJMnG2C9YX_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJMnG2C9YX/SJMnG2C9YX_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SygcCnNKwr/SygcCnNKwr.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SygcCnNKwr/SygcCnNKwr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SygcCnNKwr/SygcCnNKwr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SygcCnNKwr/SygcCnNKwr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rYhBGWYm6AU/rYhBGWYm6AU.md ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Intriguing Properties of Contrastive Losses
2
+
3
+ Ting Chen Google Research iamtingchen@google.com
4
+
5
+ Calvin Luo Google Research calvinluo@google.com
6
+
7
+ Lala Li Google Research lala@google.com
8
+
9
+ # Abstract
10
+
11
+ We study three intriguing properties of contrastive learning. First, we generalize the standard contrastive loss to a broader family of losses, and we find that various instantiations of the generalized loss perform similarly under the presence of a multi-layer non-linear projection head. Second, we study if instance-based contrastive learning (with a global image representation) can learn well on images with multiple objects present. We find that meaningful hierarchical local features can be learned despite the fact that these objectives operate on global instancelevel features. Finally, we study the phenomenon of feature suppression among competing features shared across augmented views, such as “color distribution” vs “object class”. We construct datasets with explicit and controllable competing features and show that, for contrastive learning, a few bits of easy-to-learn shared features can suppress, and even fully prevent, the learning of other sets of competing features. In scenarios where there are multiple objects in an image, the dominant object would suppress the learning of smaller objects. Existing contrastive learning methods critically rely on data augmentation to favor certain sets of features over others, and could suffer from learning saturation for scenarios where existing augmentations cannot fully address the feature suppression. This poses open challenges to existing contrastive learning techniques 1.
12
+
13
+ # 1 Introduction
14
+
15
+ Contrastive learning [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] has recently achieved great successes in learning visual representations without supervision. As shown in [13, 14], contrastive learning can learn representations that rival supervised learning, and significantly improve the state-of-the-art in semi-supervised learning on ImageNet. One successful use case of contrastive loss for self-supervised learning is to make augmented views of the same example agree [1, 2, 13]. A widely used contrastive loss to encourage agreement is based on cross entropy [15, 3, 4, 13]. Given an augmented view of an example, the contrastive prediction task aims to classify a set of candidates into the positive example (i.e. the other augmented view of the same example) and negative ones via the cross entropy loss.
16
+
17
+ In this work, to understand the effectiveness and limitation of existing contrastive learning methods, we study three intriguing aspects. First, we propose a generalization of the standard contrastive loss, and systematically study their performance differences. Second, we study if the instance-based contrastive learning, for which the contrastive loss operates on global representation of an input image, can learn well on images with multiple objects present, and whether or not it leads to meaningful local features. Finally, we systematically study the feature suppression phenomenon in contrastive learning. The suppression effect occurs among competing features shared across augmented views. For example, with random cropping as the augmentation, “color distribution” and “object class” are often competing features as they are likely shared between two augmented views. The suppression effect among competing features can significantly degenerate the representation quality, or even completely disable the learning of certain features, as shown in our experiments. Existing methods critically rely on hand-crafted data augmentation to favor certain sets of competing features than others.
18
+
19
+ Our main findings and contributions are summarized below.
20
+
21
+ • We propose a generalized contrastive loss, and show that differences between contrastive losses are small with a deep projection head.
22
+ • We show that the instance-based objective widely used in existing contrastive learning methods can learn on images with multiple objects, and also learn meaningful local features despite operating on global image representation.
23
+ • We construct three datasets with explicit and controllable competing features to systematically study the feature suppression effect in contrastive learning.
24
+ • We show that a few bits of easy-to-learn shared features can suppress, and even fully prevent, the learning of other sets of competing features. In scenarios where there are multiple objects in an image, the dominant object would suppress the learning of smaller objects. This poses open challenges to existing contrastive learning.
25
+
26
+ # 2 Generalized contrastive loss and differences among its instantiations
27
+
28
+ The common contrastive loss used in most recent work is based on cross entropy [15, 3, 4]. Following the notation in [13], the contrastive loss can be defined between two augmented views $( i , j )$ of the same example for a mini-batch of size of $n$ , and can be written as the following.
29
+
30
+ $$
31
+ \mathcal { L } ^ { \mathrm { N T - X e n t } } = - \frac { 1 } { n } \sum _ { i , j \in \mathcal { M B } } \log \frac { \exp ( \sin ( z _ { i } , z _ { j } ) / \tau ) } { \sum _ { k = 1 } ^ { 2 n } \mathbb { 1 } _ { [ k \neq i ] } \exp ( \sin ( z _ { i } , z _ { k } ) / \tau ) }
32
+ $$
33
+
34
+ where $z _ { i } , z _ { j }$ are hidden representations of two augmented views of the same example; $\sin ( { \boldsymbol { \mathbf { u } } } , { \boldsymbol { \mathbf { v } } } ) =$ $\pmb { u } ^ { T } \pmb { v } / ( \lVert \pmb { u } \rVert \lVert \pmb { v } \rVert )$ is the cosine similarity between two vectors; $\tau$ is a temperature scalar and $\mathcal { M } \mathcal { B }$ is a randomly sampled mini-batch consisting of augmented pairs of images. In [13], a MLP projection head is introduced between intermediate layer $^ { h }$ (e.g. output of ResNet encoder) and final output $_ { z }$ . It is shown that the projection head is very beneficial and $^ { h }$ is a much better feature representation than $_ { z }$ .
35
+
36
+ In this work, we generalize the standard contrastive loss to the following form.
37
+
38
+ $$
39
+ \boxed { \mathcal { L } _ { \mathrm { g e n e r a l i z e d c o n t r a s t i v e } } = \mathcal { L } _ { \mathrm { a l i g n m e n t } } + \lambda \mathcal { L } _ { \mathrm { d i s t r i b u t i o n } } }
40
+ $$
41
+
42
+ Both terms are defined on hidden representations. $\mathcal { L } _ { \mathrm { a l i g n m e n t } }$ encourages representations of augmented views to be consistent, while ${ \mathcal { L } } _ { \mathrm { d i s t r i b u t i o n } }$ encourages representations (or a random subset of them) to match a prior distribution (of high entropy). It is not difficult to see that the standard contrastive loss in Eq. 1 is a special case as it can be re-written as follows (scaled by a constant $\tau$ ).
43
+
44
+ $$
45
+ \tau \mathcal { L } ^ { \mathrm { N T - X e n t } } = \underbrace { - \frac { 1 } { n } \sum _ { i , j } \sin ( z _ { i } , z _ { j } ) } _ { \mathcal { L } _ { \mathrm { a l i g n m e n t } } } + \underbrace { \frac { \tau } { n } \sum _ { i } \log \sum _ { k = 1 } ^ { 2 n } \mathbb { 1 } _ { [ k \neq i ] } \exp ( \sin ( z _ { i } , z _ { k } ) / \tau ) } _ { \mathcal { L } _ { \mathrm { d i s t r i b u t i o n } } }
46
+ $$
47
+
48
+ This form of factorization in Eq. 3 has been proposed in [16], where the second LogSumExp term is referred to as uniformity since it encourages representation to uniformly distributed in the hypersphere. Different from [16], here we generalize the hypersphere uniform distribution and study a wider set of prior distributions for their effectiveness in learning representations.
49
+
50
+ SWD for supporting diverse prior distributions. One issue of using more diverse set of priors is we cannot rely on LogSumExp for matching the distribution. To this end, we resort to the theory of optimal transport, via Sliced Wasserstein Distance (SWD) [17, 18, 19]. For two sets of equalsized samples from two 1-D distributions, the optimal transport can be obtained by computing two permutations that order the values of both sets of samples respectively. The 1-D Wasserstein distance can then be computed with $\ell _ { 2 }$ distance between the ordered values. For n-D distributions, we first project the samples to $n$ randomly-generated orthogonal 1-D subspaces, and then compute the sum of 1-D Wasserstein distance across all 1-D subspaces. By adjusting the network weights to minimize the SWD, we are able to reduce the mismatch between the distribution of hidden vectors and a known prior distribution. The detailed algorithm can be found in Algorithm 1. With SWD loss, we are able to use a wider set of priors, and Table 1 summarizes instantiations of the generalized contrastive loss with different prior distributions and distribution matching loss.
51
+
52
+ Algorithm 1 Sliced Wasserstein Distance (SWD) loss.
53
+
54
+ <table><tr><td>input: activation vectors H ∈ Rb×d, ,a prior distribution (e.g. Gaussian) sampler S draw prior vectors P ∈ Rb×d using S</td></tr><tr><td></td></tr><tr><td>generate random orthogonal matrix W ∈ Rd×d&#x27;</td></tr><tr><td>make projections: H-= HW; P⊥ = PW</td></tr><tr><td>initializeSWDlossl=0</td></tr><tr><td>forj∈{1,2,.,d&#x27;} do l =l+ |lsort(H:j)-sort(P:j)|l²</td></tr><tr><td></td></tr><tr><td>end for return l/(dd&#x27;)</td></tr></table>
55
+
56
+ Table 1: Instantiations of the generalized contrastive loss, i.e. $\mathcal { L } _ { \mathrm { a l i g n m e n t } } + \lambda \mathcal { L } _ { \mathrm { d i s t r i b u t i o n } }$ , that we use in this work. $\tilde { z }$ denotes $\ell _ { 2 }$ -normalized $z \in \mathbb { R } ^ { d }$ , and is only used for uniform hypersphere prior.
57
+
58
+ <table><tr><td>Laign</td><td>Prior distribution</td><td>Ldistribution</td></tr><tr><td>nd∑i, |lzi - zj|l²Uniform hypersphere</td><td></td><td>e∑log∑exp(Tzj/T)</td></tr><tr><td>nd∑ij |lz- zjll2Uniform hypersphere</td><td></td><td>SWD(Z, zprior)</td></tr><tr><td>d∑ij|lz-zjll²Uniform hypercube</td><td></td><td>SWD(Z, Zprior)</td></tr><tr><td>nd∑i,j |lzi - zjll2Normal distribution</td><td></td><td>SWD(Z, Zprior)</td></tr></table>
59
+
60
+ Connection with mutual information. The connection between the standard contrastive loss and mutual information has been shown before [3, 20], where the contrastive loss (a.k.a. InfoNCE loss [3]) is shown to be a lower bound of the mutual information. To connect the generalized contrastive loss to mutual information, we start by the definition of mutual information between two latent variables $U , V$ , which is $I ( U ; V ) = H ( U ) - H ( U | V )$ . Comparing this factorization of mutual information with generalized contrastive loss, it is not difficult to see that: 1) the alignment term $\mathcal { L } _ { \mathrm { a l i g n m e n t } }$ is directly related to $H ( U | V )$ which aims to reduce uncertainty of the other views given one view of the example; and 2) the distribution matching term ${ \mathcal { L } } _ { \mathrm { d i s t r i b u t i o n } }$ can be considered as a proxy to $H ( u )$ for maximizing the entropy in the representation. It is perhaps worth noting that different from mutual information, the generalized contrastive loss (Eq. 2) allows a tunable weight $( \lambda )$ between the alignment and distribution matching term. The weighting scalar $\lambda$ is (inversely) related to the temperature $\tau$ (details in Appendix A.2).
61
+
62
+ Comparing different instantiations of generalized contrastive loss. Here we ask: Is it essential to use a uniform hypersphere prior for the effectiveness of contrastive loss? How much difference does it make when distinct generalized contrastive losses are used? To answer this question, we conduct experiments following SimCLR settings [13, 14], and use the linear evaluation protocol. Detailed experimental setup can be found in Appendix A.1.
63
+
64
+ Figure 1 shows linear evaluation results of models trained with different losses under different training epochs. On CIFAR-10, we see little difference in terms of linear evaluation for variants of the generalized contrastive losses, especially when trained longer than 200 epochs. As for ImageNet, there are some discrepancies between different losses, but they disappear when a deeper 3-layer non-linear projection head is used.
65
+
66
+ ![](images/b2443f8eabb0e0479457a5400ec51cc75e840fb6d83df72f3695d1b7938e34df.jpg)
67
+ Figure 1: Linear evaluation accuracy of ResNet-50 trained with different losses on CIFAR-10 and ImageNet datasets. Numbers of projection head layers are in parentheses. Differences between variants of generalized contrastive loss are small with a deep projection head. Decoupled NT-Xent loss is introduced in A.2. Numerical results can be found in Appendix A.3.
68
+
69
+ Furthermore, we find that deep projection head not only reduces the differences among different generalized contrastive losses, but has a similar effect for batch size. With proper learning rate scaling across batch sizes (e.g. square root scaling with LARS optimizer [21]), the impact of batch size on representation quality is small. Table 2 demonstrate this phenomenon for the standard contrastive loss, and more results on other losses can be found in Appendix A.3.
70
+
71
+ Table 2: Linear eval accuracy of ResNet-50 on ImageNet.
72
+
73
+ <table><tr><td rowspan="2">Projection head</td><td rowspan="2">Batch size</td><td colspan="4">Epoch</td></tr><tr><td>100</td><td>200</td><td>400</td><td>800</td></tr><tr><td rowspan="3">2 layers</td><td>512</td><td>65.4</td><td>67.3</td><td>68.7</td><td>69.3</td></tr><tr><td>1024</td><td>65.6</td><td>67.6</td><td>68.8</td><td>69.8</td></tr><tr><td>2048</td><td>65.3</td><td>67.6</td><td>69.0</td><td>70.1</td></tr><tr><td rowspan="3">3 layers</td><td>512</td><td>66.6</td><td>68.4</td><td>70.0</td><td>71.0</td></tr><tr><td>1024</td><td>66.8</td><td>68.9</td><td>70.1</td><td>70.9</td></tr><tr><td>2048</td><td>66.8</td><td>69.1</td><td>70.4</td><td>71.3</td></tr><tr><td rowspan="3">4 layers</td><td>512</td><td>66.8</td><td>68.8</td><td>70.0</td><td>70.7</td></tr><tr><td>1024</td><td>67.0</td><td>69.0</td><td>70.4</td><td>70.9</td></tr><tr><td>2048</td><td>67.0</td><td>69.3</td><td>70.4</td><td>71.3</td></tr></table>
74
+
75
+ # 3 Instance-based objective can learn on images with multiple objects and learn good local features
76
+
77
+ Most existing contrastive learning methods [13, 10, 22, 4] define their objectives at the instance level where each image is encoded into a single vector representation (e.g. representations of two random crops of the same image instance are treated as a positive pair). In other words, the objective operates on a global representation of its input rather than on some local regions (of its input). We pose two questions regarding instance-based global objective: 1) when there is only a single (dominant) object in the image, the objective seems reasonable as it encourages the model to learn features relevant to object class, but when there are multiple objects present in the image, can instance-based objective still learn well? 2) Since the instance-based objective uses a global summary of its input, can it still learn good local features (e.g. parts of an object, or multiple objects in the same scheme)? To answer these questions, we use SimCLR as representative for the instance-based objective.
78
+
79
+ # 3.1 SimCLR can learn on images with multiple objects
80
+
81
+ Commonly used self-supervised learning datasets, such as MNIST, CIFAR-10, ImageNet, are object centered, i.e. the image is mainly occupied by a single (dominant) object. To experiment with multiple objects in a controllable setting, we propose a new dataset setting by composing multiple digits as follows.
82
+
83
+ MultiDigits dataset. We place MNIST digits ( $2 8 \times 2 8$ size) on a shared canvas $1 1 2 \times 1 1 2$ size). We vary the number of digits placed on the canvas. One factor that could interfere with learning of multiple digits is overlapping digits, therefore we use two placement strategies: random vs in-grid (Figure 2). Random placement of digits incurs no constraint on where digits can be placed on the canvas, whereas in-grid placement puts each digit in one of the $4 \times 4$ grid cells the canvas is divided into, and no two digits can fall in the same cell. In-grid placement ensures no overlapping of digits.
84
+
85
+ ![](images/c71d419367e52d12da14816741144d4a892cd0560eb7e00b6d37305ccc59ec1e.jpg)
86
+ Figure 2: MultiDigit dataset. More digits lead to more overlapping in random placement.
87
+
88
+ We first pretrain a ResNet-18 with SimCLR or supervised learning with the same augmentation policy (random cropping and resize) on MultiDigits dataset. To access the representation quality, we then train linear classifiers for images with a single digit of size $2 8 \times 2 8$ on the canvas. Similarly during evaluation, we place only one digit of size $2 8 \times 2 8$ on the canvas.
89
+
90
+ As shown in Table 3, representations learned using supervised loss maintains its quality when up to 8 digits are placed in the image. After that the representation becomes worse as the canvas gets more crowded. Notably, representations learned using SimCLR display a similar phenomenon. Regardless of placement strategy, top-1 accuracy stays at the same level up to 8 digits, demonstrating that SimCLR can learn from images with multiple objects. In addition, the increased performance gap between the two placement strategies with increased number of digits shows that object overlapping makes it harder for contrastive losses to learn from multiple objects.
91
+
92
+ Table 3: Top-1 linear evaluation accuracy $( \% )$ for pretrained ResNet-18 on the MultiDigits dataset. We vary the number of digits placed on the canvas during training from 1 to 16. During evaluation only 1 digit is present. As a baseline, a network with random weights gives $18 \%$ top-1 accuracy.
93
+
94
+ <table><tr><td rowspan="2"></td><td rowspan="2">Placing of digits</td><td colspan="6">Number of digits (size 28 × 28)</td></tr><tr><td>1</td><td>2</td><td>4</td><td>8</td><td>12</td><td>16</td></tr><tr><td rowspan="2">Supervised</td><td>Random</td><td>99.5</td><td>99.5</td><td>99.3</td><td>99.4</td><td>98.9</td><td>98.3</td></tr><tr><td>In-grid</td><td>99.5</td><td>99.6</td><td>99.5</td><td>99.3</td><td>98.6</td><td>92.4</td></tr><tr><td rowspan="2">SimCLR</td><td>Random</td><td>98.9</td><td>98.9</td><td>99.0</td><td>98.9</td><td>98.2</td><td>96.4</td></tr><tr><td>In-grid</td><td>98.3</td><td>98.6</td><td>99.1</td><td>99.2</td><td>99.1</td><td>98.3</td></tr></table>
95
+
96
+ # 3.2 SimCLR learns local features that exhibit hierarchical properties
97
+
98
+ To understand the local features learned by SimCLR, we apply K-means on intermediate features of the pretrained ResNet with SimCLR, and see how local regions of an image are grouped together. For good representations, we expect that regions of similar objects or object parts should be grouped together.
99
+
100
+ Specifically, we take a pretrained Resnet- $5 0 2 \times$ on ImageNet, and run inference on images (from ImageNet validation set and COCO [23]) of size $4 4 8 \times 4 4 8$ . We run K-means with various numbers of clusters on the l2-normalized hidden features from middle layers of the network (e.g. block group 2,3,4 of the ResNet). We also compare SimCLR learned features with supervised learned features, as well as the raw pixel (RGB) features extracted from each $1 4 \times 1 4$ patch.
101
+
102
+ Figure 3a shows that as the number of clusters increases, the learned representations tend to group image regions based on parts of the object (i.e. facial components of the dog). This phenomenon appears in both SimCLR and supervised learned features, but not with raw pixel features, indicating meaningful local features learned by SimCLR and supervised learning. In Figure 3b, we compare ResNet intermediate features at different layers, and it suggests that earlier layers contain more edge-related features, while later layers contain more object/part features.
103
+
104
+ ![](images/043491355a096c32ce3d26731e8d7e91ef6ef346ae1830e7b7ba567dee42aa4e.jpg)
105
+ Figure 3: Visualizing features on a ImageNet validation image with K-means clustering. Each row denotes a type of local features used, and each column denotes the number of K-means clusters. Later layers of SimCLR/supervised ResNet tend to group by object parts. More visualization examples can be found in https://contrastive-learning.github.io/intriguing.
106
+
107
+ ![](images/4abcffd2abc33c1ac2982c97c9aa7b81d6dbcd9f72ed0faee407ee9907b9e2b0.jpg)
108
+ Figure 4: Visualizing features on two images from COCO. Each row denotes a type of local features (SimCLR, Supervised, and raw pixels; both SimCLR and Supervised are trained on ImageNet), and each column denotes the number of K-means clusters. Region grouping by SimCLR/supervised features tend to overlap with object class.
109
+
110
+ Region grouping results on two COCO images for SimCLR and supervised learning (trained on ImageNet) are shown in Figure 4. Again, region grouping by local features tend to overlap with object class, indicating good local features learned.
111
+
112
+ # 4 Feature suppression limits the potential of contrastive learning
113
+
114
+ Contrastive learning requires good design of data augmentation to work well. As shown in [13], without color augmentations that randomly shift color distribution (while maintaining information regarding object class), the quality of learned representations are significantly worse. In other words, the presence of “color distribution” features suppresses their competing feature of “object class”, and is addressed by color augmentation. However, there may be scenarios where the known augmentations cannot fully address this feature suppression effect, and it can thus limit the potential of contrastive learning. Here we quantitatively study the feature suppression phenomenon by constructing datasets with explicit and controllable competing features, and see how well contrastive learning method could learn.
115
+
116
+ ![](images/2d24a657de9002696702a1f1f3f206b04f81b0e136641be565d7250e4cbfd08a.jpg)
117
+
118
+ (a) ImageNet images overlaid with MNIST digits. The left most column is original image, and others are augmented views via random crop and color distortion. MNIST digits and ImageNet classes are competing features. We vary the number of unique MNIST digits to control the competing features.
119
+
120
+ ![](images/9f7491107755ce039f3ec5e905e7aac4cdee2a3b3d886f2a7809a848aaa2d3e2.jpg)
121
+
122
+ (b) Two MNIST digits randomly placed on a shared canvas (of size $1 1 2 \times 1 1 2 )$ . The two digits can have the same size (upper row) or different sizes (lower row), and digits of different sizes can be considered as competing features. We fix the size of one digit and vary the other.
123
+
124
+ ![](images/081d486d795cdcd891fae2fb1694148acdc8a72f06d343a13fdf2aec95006645.jpg)
125
+ Figure 5: Probing datasets with explicit and controllable competing features.
126
+
127
+ (c) Images (of RGB channels) are concatenated with additional channels of random integer sampled from range of $[ 1 , \log _ { 2 } ( n ) ]$ . The integer, shared between two views, is replicated for spatial dimension and represented as $n$ binary channels. RGB channels and random bits are competing features.
128
+
129
+ # 4.1 Datasets with explicit and controllable competing features
130
+
131
+ To construct datasets with controllable competing features, we leverage two strategies: channel addition that adds different feature information in a shared canvas, and channel concatenation that expand the RGB channels to include additional features. With these strategies, we construct three datasets below.
132
+
133
+ DigitOnImageNet dataset. We overlay MNIST digits on ImageNet images via channel addition/summation (Figure 5a). For each ImageNet image, we assign a unique MNIST digit and replicate it in nine fixed locations before the standard SimCLR augmentations [13] are applied to create augmented views. Therefore the original ImageNet images and added MNIST digits are competing features. Although it is difficult to quantify information in MNIST digits, we can manually control the number of unique MNIST digits used. Ideally, we want the model to learn both set of features so that it could perform well for both MNIST digit and ImageNet object recognition.
134
+
135
+ MultiDigits dataset (varying the size of one digit). This dataset is modified from MultiDigits introduced above. Here we only consider two digits, and vary the size of one of them (Figure 5b). In this work, we place two digits on a canvas of size $1 1 2 \times 1 1 2$ . We fix the size of one of the digits to be $2 0 \times 2 0$ while varying the other from $2 0 \times 2 0$ to $8 0 \times 8 0$ . Digits of different sizes can be considered as competing features. Ideally, we want the model to learn features for digits of all sizes appeared during training.
136
+
137
+ RandBit dataset. We concatenate a real image with an image of a random integer in the channel dimension (Figure 5c). The random integer is randomly sampled from range of $[ 1 , \log _ { 2 } ( n ) ]$ where $n$ is a parameter to control. It is replicated across spatial dimension (i.e. all pixel location shares the same value), and it is also represented as $n$ binary bits/channels instead of an integer or floating number to make it easily learnable. Furthermore, unlike RGB channels, these additional channels of random bits will not be altered by augmentation, so they are identical for both augmented views of the same image. The RGB channels and the added channels of random bits are competing features, and this construction allows us to control the amount of information in the added competing feature, which is $n$ bits. Also, we know that the mutual information between two views given this construction is at least $\log _ { 2 } ( n )$ .
138
+
139
+ ![](images/acfe4178ba9ddc62ef5a9895c5449a4629859731538e08911841be4b0f7c777d.jpg)
140
+ 4.2 Easy-to-learn features (MNIST digit) suppress the learning of other features (ImageNet object class)
141
+ Figure 6: (a) Supervised learning accuracy on ImageNet classification. (b) Linear evaluation of learned features for both MNIST classification and ImageNet classification on the DigitOnImageNet dataset. Batch size of 1024 and 2-layer projection head is used. Different batch sizes and projection head layers have negligible influence on the trade-off between ImageNet vs MNIST accuracy.
142
+
143
+ On DigitOnImageNet datasets, we vary the number of unique MNIST digits used in the training set, and all MNIST digits are used in the validation/test set. As a baseline, we train supervised ResNet-50 on the created datasets with ImageNet labels, and the number of unique MNIST digits has little impact on the top-1 ImageNet classification accuracy (Figure 6a).
144
+
145
+ We then train SimCLR on the datasets with different temperatures. As shown in Figure 6b, when we increase the number of unique MNIST digits, the linear evaluation performance of the learned features for MNIST classes increases accordingly, while the accuracy for ImageNet classes decreases dramatically. The trade-off between digit recognition ability and object recognition ability shows that simple features suppress the learning of difficult features, when both are shared between two augmented views. Different batch sizes and projection head depths have negligible influence to the outcome we observe here. Therefore, it is difficult to learn both of the competing features using existing contrastive losses (e.g. SimCLR).
146
+
147
+ # 4.3 The presence of dominant object suppresses the learning of features of smaller objects
148
+
149
+ On the MultiDigits dataset, as mentioned, we fix one digit to be size of $2 0 \times 2 0$ while varying the other from $2 0 \times 2 0$ to $8 0 \times 8 0$ , on a canvas of $1 1 2 \times 1 1 2$ . We first pretrain a ResNet-18 with SimCLR or supervised learning with the same augmentation policy (random cropping and resize) and batch size of 1024. To access the representation quality, we then train linear classifiers for each of the digit sizes that appeared during pretraining. For training of the linear classifier, we only place a single digit at a time on the canvas of the same size as during pretraining.
150
+
151
+ The results are summarized in Table 4. For supervised learning, the learned representations for the smaller digit do not change much as the other digit increases its size, and the model perform well for both small and large digits (accuracy $> 9 9 \%$ ). However, for SimCLR, the learned representations of the smaller digit degenerate significantly when the size of the other digit increases, almost to the level of a random untrained network. The dominant object can be learned very well (accuracy $> 9 9 \%$ ) while suppressing the learning of the smaller object. Although tuning temperature has some effects on reducing the feature suppression, the trend stays unchanged.
152
+
153
+ Table 4: Top-1 linear evaluation accuracy $( \% )$ for pretrained ResNet-18 on the MultiDigits dataset. We fix the size of 1st digit while increasing the size of the 2nd digit. For SimCLR, results are presented for two temperatures. Accuracies suffered from a significant drop when increasing 2nd digit size are red colored.
154
+
155
+ <table><tr><td></td><td></td><td colspan="7">2nd digit size (1st digit is kept the same size of 20 × 20)</td></tr><tr><td></td><td></td><td>20×20</td><td>30×30</td><td>40×40</td><td>50×50</td><td>60×60</td><td>70×70</td><td>80×80</td></tr><tr><td rowspan="2">Supervised</td><td>1st digit</td><td>99.1</td><td>99.2</td><td>99.2</td><td>99.2</td><td>99.1</td><td>99.1</td><td>99.0</td></tr><tr><td>2nd digit</td><td>99.1</td><td>99.5</td><td>99.5</td><td>99.6</td><td>99.5</td><td>99.5</td><td>99.6</td></tr><tr><td rowspan="2">SimCLR (t = 0.05)</td><td>1st digit</td><td>97.8</td><td>97.6</td><td>96.2</td><td>96.5</td><td>88.5</td><td>74.5</td><td>39.9</td></tr><tr><td>2nd digit</td><td>97.8</td><td>97.9</td><td>97.8</td><td>98.3</td><td>98.2</td><td>97.7</td><td>98.2</td></tr><tr><td rowspan="2">SimCLR (T = 0.2)</td><td>1st digit</td><td>98.7</td><td>98.8</td><td>98.3</td><td>87.5</td><td>24.9</td><td>19.8</td><td>20.3</td></tr><tr><td>2nd digit</td><td>98.7</td><td>99.2</td><td>99.2</td><td>99.0</td><td>99.1</td><td>98.9</td><td>99.4</td></tr><tr><td rowspan="2">Random net (untrained)</td><td>1st digit</td><td>16.5</td><td>16.7</td><td>16.6</td><td>16.6</td><td>16.6</td><td>16.9</td><td>16.5</td></tr><tr><td>2nd digit</td><td>16.5</td><td>19.1</td><td>21.9</td><td>24.1</td><td>26.5</td><td>28.1</td><td>29.0</td></tr></table>
156
+
157
+ # 4.4 Extra channels with a few bits of easy-to-learn mutual information suppress the learning of all features in RGB channels
158
+
159
+ In the RandBit datasets, we add additional channels (identical across pixels) of random bits to MNIST and ImageNet. As mentioned above, SimCLR augmentation is only applied to RGB channels so extra added channels will be shared among two view.
160
+
161
+ ![](images/5eb27c72fac25f6634e9c79d0a24735a1a738b8e428b8cb474fa9e027848f287.jpg)
162
+ Figure 7: Linear evaluation of learned features when a few bits of competing features added (on MNIST). Adding a few bits completely disables contrastive learning (across various batch size or losses). Interestingly, it has little effects on a generative model (VAE). The detrimental effects are just as strong for larger datasets such as CIFAR-10 and ImageNet (Appendix B.1).
163
+
164
+ Figure 7 shows the linear evaluation accuracy of models trained on MNIST (with additional random bits added). We observe that the linear evaluation accuracy quickly drops with a few bits of competing feature added. This detrimental effect on the representation quality persists on bigger datasets like CIFAR-10 and ImageNet as well, and cannot be avoided by using different contrastive losses, batch sizes, or memory mechanism based on momentum contrast (details in Appendix B.1). We believe the fact that just a few bits of easy-to-learn features can completely disable the good representation learning is related to the saturation of the distribution matching loss. As shown in Appendix B.2, the linear increase in bits requires an exponential increase in batch size, which is not sustainable as the required batch size can quickly go beyond the size of the dataset size. In practice, we rely on using data augmentation to remove those uninformative easy-to-learn features so that contrastive learning can learn useful representations. Interestingly, the extra bits do not affect a generative model, variational autoencoder [24, 25], nearly as much, despite other settings such as model size are held the same, prompting a potential direction of addressing the issue.
165
+
166
+ # 5 Related Work
167
+
168
+ Our work studies the contrastive loss based on cross entropy loss [15, 3, 4, 13]. This loss is widely used in recent successful contrastive learning methods [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]. In terms of the contrastive loss, our work is perhaps most related to [16], which shows that formulating contrastive loss as alignment and uniformity in the hypersphere gives similar performance as the standard contrastive loss. We further generalize this factorization, and show other distribution matching losses can be used, and they could achieve similar results. Other than standard contrastive loss that directly utilize negative examples, BYOL [22] demonstrates another way to maintain representation distribution/entropy without directly relying on distribution matching, and SWAV [26] shows clustering-based method equipped with proper data augmentations could also achieve similar performance. We conduct preliminary experiments of BYOL on RandBit and found that it also suffers from feature suppression as generalized contrastive loss. It is expected that SWAV would exhibit similar behaviors on RandBit as those random bits could fuel representations for perfect clustering.
169
+
170
+ The connection between contrastive loss and mutual information has been studied before [3, 20]. We show that for the generalized contrastive loss, it can also be related to mutual information. Despite the connection between contrastive loss and mutual information, it has been pointed out that mutual information estimation may suffer from certain limitations [27, 28]. Moreover, [29, 12] show that higher mutual information learned by the network does not warrant better representation quality. In our work, we find adding mutual information bits between two views which are irrelevant to downstream tasks can be harmful for the quality of learned representations. Data augmentation plays an important role at favoring certain bits of mutual information than others.
171
+
172
+ There is a growing number of recent work on the topic of understanding contrastive learning, both theoretically [30, 31, 32, 33, 34] and empirically [16, 12, 35, 36]. However, little work has been done to study the phenomenon of feature suppression. To our knowledge, we are the first one to quantitatively and systematically study this problem. We believe this is still a very open question and could benefit from more future investigation. Finally, the feature suppression effect in unsupervised contrastive learning that we study in this work may also exist in standard supervised learning (“contrastive loss” between examples and class labels), as suggested by [37, 38], though the specific form would be different.
173
+
174
+ # 6 Conclusion
175
+
176
+ In this work, we study three intriguing properties of contrastive losses. In particular, our results highlight that feature suppression is still an open challenge in contrastive learning. While there is a plethora of work on improving contrastive learning, few of them directly aim to address feature suppression. This limitation of contrastive learning becomes a bottleneck for scenarios where existing augmentation cannot fully address the feature suppression phenomenon, and learning would saturate at a level of dissatisfaction.
177
+
178
+ We would also like to point out some limitations of our study. Firstly, we focus mostly on contrastive learning with explicit negatives (e.g. SimCLR and MoCo). We believe other methods based on clustering and/or without negative pairs would exhibit similar phenomenon but we leave that as future work. Secondly, many of our proposed image datasets are not fully realistic despite being composed from some (challenging) natural image datasets such as ImageNet. We admit it is very hard to explore competing features or multiple objects in a controllable fashion on realistic large scale image datasets.
179
+
180
+ # Acknowledgements
181
+
182
+ We specially thank Geoffrey Hinton for many inspiring discussions and helpful advice. We would also like to thank David Fleet, Simon Kornblith, Mohammad Norouzi, Kevin Swersky and Katherine Hermann for insightful discussions. In addition, we are thankful to William Chan and Sara Sabour for ideas on implementation of sorting on TPUs. We also thank the anonymous reviewers for their constructive feedback.
183
+
184
+ References
185
+ [1] Suzanna Becker and Geoffrey E Hinton. Self-organizing neural network that discovers surfaces in randomdot stereograms. Nature, 355(6356):161–163, 1992.
186
+ [2] Alexey Dosovitskiy, Jost Tobias Springenberg, Martin Riedmiller, and Thomas Brox. Discriminative unsupervised feature learning with convolutional neural networks. In Advances in neural information processing systems, pages 766–774, 2014.
187
+ [3] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
188
+ [4] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3733–3742, 2018.
189
+ [5] R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. arXiv preprint arXiv:1808.06670, 2018.
190
+ [6] Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems, pages 15509–15519, 2019.
191
+ [7] Olivier J Hénaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019.
192
+ [8] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019.
193
+ [9] Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. arXiv preprint arXiv:1912.01991, 2019.
194
+ [10] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. arXiv preprint arXiv:1911.05722, 2019.
195
+ [11] Junnan Li, Pan Zhou, Caiming Xiong, Richard Socher, and Steven CH Hoi. Prototypical contrastive learning of unsupervised representations. arXiv preprint arXiv:2005.04966, 2020.
196
+ [12] Yonglong Tian, Chen Sun, Ben Poole, Dilip Krishnan, Cordelia Schmid, and Phillip Isola. What makes for good views for contrastive learning. arXiv preprint arXiv:2005.10243, 2020.
197
+ [13] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. arXiv preprint arXiv:2002.05709, 2020.
198
+ [14] Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton. Big selfsupervised models are strong semi-supervised learners. arXiv preprint arXiv:2006.10029, 2020.
199
+ [15] Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. In Advances in neural information processing systems, pages 1857–1865, 2016.
200
+ [16] Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. arXiv preprint arXiv:2005.10242, 2020.
201
+ [17] Julien Rabin, Gabriel Peyré, Julie Delon, and Marc Bernot. Wasserstein barycenter and its application to texture mixing. In International Conference on Scale Space and Variational Methods in Computer Vision, pages 435–446. Springer, 2011.
202
+ [18] Nicolas Bonneel, Julien Rabin, Gabriel Peyré, and Hanspeter Pfister. Sliced and radon wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 51(1):22–45, 2015.
203
+ [19] Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo Rohde. Generalized sliced wasserstein distances. In Advances in Neural Information Processing Systems, pages 261–272, 2019.
204
+ [20] Ben Poole, Sherjil Ozair, Aaron van den Oord, Alexander A Alemi, and George Tucker. On variational bounds of mutual information. arXiv preprint arXiv:1905.06922, 2019.
205
+ [21] Yang You, Igor Gitman, and Boris Ginsburg. Large batch training of convolutional networks. arXiv preprint arXiv:1708.03888, 2017.
206
+ [22] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. Bootstrap your own latent: A new approach to selfsupervised learning, 2020.
207
+ [23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014.
208
+ [24] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
209
+ [25] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014.
210
+ [26] Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020.
211
+ [27] David McAllester and Karl Stratos. Formal limitations on the measurement of mutual information. In International Conference on Artificial Intelligence and Statistics, pages 875–884, 2020.
212
+ [28] Jiaming Song and Stefano Ermon. Understanding the limitations of variational mutual information estimators. arXiv preprint arXiv:1910.06222, 2019.
213
+ [29] Michael Tschannen, Josip Djolonga, Paul K Rubenstein, Sylvain Gelly, and Mario Lucic. On mutual information maximization for representation learning. arXiv preprint arXiv:1907.13625, 2019.
214
+ [30] Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Orestis Plevrakis, and Nikunj Saunshi. A theoretical analysis of contrastive unsupervised representation learning. arXiv preprint arXiv:1902.09229, 2019.
215
+ [31] Yao-Hung Hubert Tsai, Yue Wu, Ruslan Salakhutdinov, and Louis-Philippe Morency. Demystifying self-supervised learning: An information-theoretical framework. arXiv preprint arXiv:2006.05576, 2020.
216
+ [32] Christopher Tosh, Akshay Krishnamurthy, and Daniel Hsu. Contrastive learning, multi-view redundancy, and linear models. arXiv preprint arXiv:2008.10150, 2020.
217
+ [33] Yuandong Tian, Lantao Yu, Xinlei Chen, and Surya Ganguli. Understanding self-supervised learning with dual deep networks. arXiv preprint arXiv:2010.00578, 2020.
218
+ [34] Jason D Lee, Qi Lei, Nikunj Saunshi, and Jiacheng Zhuo. Predicting what you already know helps: Provable self-supervised learning. arXiv preprint arXiv:2008.01064, 2020.
219
+ [35] Nanxuan Zhao, Zhirong Wu, Rynson WH Lau, and Stephen Lin. What makes instance discrimination good for transfer learning? arXiv preprint arXiv:2006.06606, 2020.
220
+ [36] Senthil Purushwalkam and Abhinav Gupta. Demystifying contrastive self-supervised learning: Invariances, augmentations and dataset biases. arXiv preprint arXiv:2007.13916, 2020.
221
+ [37] Katherine L Hermann and Andrew K Lampinen. What shapes feature representations? exploring datasets, architectures, and training. arXiv preprint arXiv:2006.12433, 2020.
222
+ [38] Harshay Shah, Kaustav Tamuly, Aditi Raghunathan, Prateek Jain, and Praneeth Netrapalli. The pitfalls of simplicity bias in neural networks. arXiv preprint arXiv:2006.07710, 2020.
223
+ [39] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.
parse/train/rYhBGWYm6AU/rYhBGWYm6AU_content_list.json ADDED
@@ -0,0 +1,1015 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Intriguing Properties of Contrastive Losses ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 235,
8
+ 122,
9
+ 761,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ting Chen Google Research iamtingchen@google.com ",
17
+ "bbox": [
18
+ 222,
19
+ 200,
20
+ 393,
21
+ 243
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Calvin Luo Google Research calvinluo@google.com ",
28
+ "bbox": [
29
+ 447,
30
+ 200,
31
+ 604,
32
+ 243
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Lala Li Google Research lala@google.com ",
39
+ "bbox": [
40
+ 658,
41
+ 200,
42
+ 774,
43
+ 243
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 279,
54
+ 535,
55
+ 295
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "We study three intriguing properties of contrastive learning. First, we generalize the standard contrastive loss to a broader family of losses, and we find that various instantiations of the generalized loss perform similarly under the presence of a multi-layer non-linear projection head. Second, we study if instance-based contrastive learning (with a global image representation) can learn well on images with multiple objects present. We find that meaningful hierarchical local features can be learned despite the fact that these objectives operate on global instancelevel features. Finally, we study the phenomenon of feature suppression among competing features shared across augmented views, such as “color distribution” vs “object class”. We construct datasets with explicit and controllable competing features and show that, for contrastive learning, a few bits of easy-to-learn shared features can suppress, and even fully prevent, the learning of other sets of competing features. In scenarios where there are multiple objects in an image, the dominant object would suppress the learning of smaller objects. Existing contrastive learning methods critically rely on data augmentation to favor certain sets of features over others, and could suffer from learning saturation for scenarios where existing augmentations cannot fully address the feature suppression. This poses open challenges to existing contrastive learning techniques 1. ",
62
+ "bbox": [
63
+ 233,
64
+ 310,
65
+ 766,
66
+ 559
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 587,
77
+ 310,
78
+ 603
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Contrastive learning [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] has recently achieved great successes in learning visual representations without supervision. As shown in [13, 14], contrastive learning can learn representations that rival supervised learning, and significantly improve the state-of-the-art in semi-supervised learning on ImageNet. One successful use case of contrastive loss for self-supervised learning is to make augmented views of the same example agree [1, 2, 13]. A widely used contrastive loss to encourage agreement is based on cross entropy [15, 3, 4, 13]. Given an augmented view of an example, the contrastive prediction task aims to classify a set of candidates into the positive example (i.e. the other augmented view of the same example) and negative ones via the cross entropy loss. ",
85
+ "bbox": [
86
+ 174,
87
+ 617,
88
+ 825,
89
+ 729
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work, to understand the effectiveness and limitation of existing contrastive learning methods, we study three intriguing aspects. First, we propose a generalization of the standard contrastive loss, and systematically study their performance differences. Second, we study if the instance-based contrastive learning, for which the contrastive loss operates on global representation of an input image, can learn well on images with multiple objects present, and whether or not it leads to meaningful local features. Finally, we systematically study the feature suppression phenomenon in contrastive learning. The suppression effect occurs among competing features shared across augmented views. For example, with random cropping as the augmentation, “color distribution” and “object class” are often competing features as they are likely shared between two augmented views. The suppression effect among competing features can significantly degenerate the representation quality, or even completely disable the learning of certain features, as shown in our experiments. Existing methods critically rely on hand-crafted data augmentation to favor certain sets of competing features than others. ",
96
+ "bbox": [
97
+ 174,
98
+ 734,
99
+ 825,
100
+ 873
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 90,
110
+ 823,
111
+ 133
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Our main findings and contributions are summarized below. ",
118
+ "bbox": [
119
+ 174,
120
+ 138,
121
+ 566,
122
+ 154
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "• We propose a generalized contrastive loss, and show that differences between contrastive losses are small with a deep projection head. \n• We show that the instance-based objective widely used in existing contrastive learning methods can learn on images with multiple objects, and also learn meaningful local features despite operating on global image representation. \n• We construct three datasets with explicit and controllable competing features to systematically study the feature suppression effect in contrastive learning. \n• We show that a few bits of easy-to-learn shared features can suppress, and even fully prevent, the learning of other sets of competing features. In scenarios where there are multiple objects in an image, the dominant object would suppress the learning of smaller objects. This poses open challenges to existing contrastive learning. ",
129
+ "bbox": [
130
+ 181,
131
+ 160,
132
+ 826,
133
+ 332
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 Generalized contrastive loss and differences among its instantiations ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 173,
143
+ 349,
144
+ 774,
145
+ 367
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "The common contrastive loss used in most recent work is based on cross entropy [15, 3, 4]. Following the notation in [13], the contrastive loss can be defined between two augmented views $( i , j )$ of the same example for a mini-batch of size of $n$ , and can be written as the following. ",
152
+ "bbox": [
153
+ 174,
154
+ 380,
155
+ 825,
156
+ 422
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "equation",
162
+ "img_path": "images/29b537f8d27e012e5ac872acf55cf4fe9b069f335f4d210c3543bb91a9c52772.jpg",
163
+ "text": "$$\n\\mathcal { L } ^ { \\mathrm { N T - X e n t } } = - \\frac { 1 } { n } \\sum _ { i , j \\in \\mathcal { M B } } \\log \\frac { \\exp ( \\sin ( z _ { i } , z _ { j } ) / \\tau ) } { \\sum _ { k = 1 } ^ { 2 n } \\mathbb { 1 } _ { [ k \\neq i ] } \\exp ( \\sin ( z _ { i } , z _ { k } ) / \\tau ) }\n$$",
164
+ "text_format": "latex",
165
+ "bbox": [
166
+ 307,
167
+ 438,
168
+ 691,
169
+ 474
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "where $z _ { i } , z _ { j }$ are hidden representations of two augmented views of the same example; $\\sin ( { \\boldsymbol { \\mathbf { u } } } , { \\boldsymbol { \\mathbf { v } } } ) =$ $\\pmb { u } ^ { T } \\pmb { v } / ( \\lVert \\pmb { u } \\rVert \\lVert \\pmb { v } \\rVert )$ is the cosine similarity between two vectors; $\\tau$ is a temperature scalar and $\\mathcal { M } \\mathcal { B }$ is a randomly sampled mini-batch consisting of augmented pairs of images. In [13], a MLP projection head is introduced between intermediate layer $^ { h }$ (e.g. output of ResNet encoder) and final output $_ { z }$ . It is shown that the projection head is very beneficial and $^ { h }$ is a much better feature representation than $_ { z }$ . ",
176
+ "bbox": [
177
+ 173,
178
+ 481,
179
+ 826,
180
+ 566
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "In this work, we generalize the standard contrastive loss to the following form. ",
187
+ "bbox": [
188
+ 173,
189
+ 571,
190
+ 689,
191
+ 588
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "equation",
197
+ "img_path": "images/1eaa63438cc08e864f99d7dfab6ddcbe330b877c50b2333022d89fc69fe9d5a8.jpg",
198
+ "text": "$$\n\\boxed { \\mathcal { L } _ { \\mathrm { g e n e r a l i z e d c o n t r a s t i v e } } = \\mathcal { L } _ { \\mathrm { a l i g n m e n t } } + \\lambda \\mathcal { L } _ { \\mathrm { d i s t r i b u t i o n } } }\n$$",
199
+ "text_format": "latex",
200
+ "bbox": [
201
+ 344,
202
+ 603,
203
+ 651,
204
+ 626
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Both terms are defined on hidden representations. $\\mathcal { L } _ { \\mathrm { a l i g n m e n t } }$ encourages representations of augmented views to be consistent, while ${ \\mathcal { L } } _ { \\mathrm { d i s t r i b u t i o n } }$ encourages representations (or a random subset of them) to match a prior distribution (of high entropy). It is not difficult to see that the standard contrastive loss in Eq. 1 is a special case as it can be re-written as follows (scaled by a constant $\\tau$ ). ",
211
+ "bbox": [
212
+ 174,
213
+ 645,
214
+ 825,
215
+ 700
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "equation",
221
+ "img_path": "images/740f495d4c71eaca9395db0658aa3be3befa543e2227a8896736fe0980a7fc51.jpg",
222
+ "text": "$$\n\\tau \\mathcal { L } ^ { \\mathrm { N T - X e n t } } = \\underbrace { - \\frac { 1 } { n } \\sum _ { i , j } \\sin ( z _ { i } , z _ { j } ) } _ { \\mathcal { L } _ { \\mathrm { a l i g n m e n t } } } + \\underbrace { \\frac { \\tau } { n } \\sum _ { i } \\log \\sum _ { k = 1 } ^ { 2 n } \\mathbb { 1 } _ { [ k \\neq i ] } \\exp ( \\sin ( z _ { i } , z _ { k } ) / \\tau ) } _ { \\mathcal { L } _ { \\mathrm { d i s t r i b u t i o n } } }\n$$",
223
+ "text_format": "latex",
224
+ "bbox": [
225
+ 261,
226
+ 717,
227
+ 738,
228
+ 779
229
+ ],
230
+ "page_idx": 1
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "This form of factorization in Eq. 3 has been proposed in [16], where the second LogSumExp term is referred to as uniformity since it encourages representation to uniformly distributed in the hypersphere. Different from [16], here we generalize the hypersphere uniform distribution and study a wider set of prior distributions for their effectiveness in learning representations. ",
235
+ "bbox": [
236
+ 178,
237
+ 785,
238
+ 823,
239
+ 842
240
+ ],
241
+ "page_idx": 1
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "SWD for supporting diverse prior distributions. One issue of using more diverse set of priors is we cannot rely on LogSumExp for matching the distribution. To this end, we resort to the theory of optimal transport, via Sliced Wasserstein Distance (SWD) [17, 18, 19]. For two sets of equalsized samples from two 1-D distributions, the optimal transport can be obtained by computing two permutations that order the values of both sets of samples respectively. The 1-D Wasserstein distance can then be computed with $\\ell _ { 2 }$ distance between the ordered values. For n-D distributions, we first project the samples to $n$ randomly-generated orthogonal 1-D subspaces, and then compute the sum of 1-D Wasserstein distance across all 1-D subspaces. By adjusting the network weights to minimize the SWD, we are able to reduce the mismatch between the distribution of hidden vectors and a known prior distribution. The detailed algorithm can be found in Algorithm 1. With SWD loss, we are able to use a wider set of priors, and Table 1 summarizes instantiations of the generalized contrastive loss with different prior distributions and distribution matching loss. ",
246
+ "bbox": [
247
+ 174,
248
+ 854,
249
+ 825,
250
+ 911
251
+ ],
252
+ "page_idx": 1
253
+ },
254
+ {
255
+ "type": "table",
256
+ "img_path": "images/d5fec96aeacddf4b8573946c705bda47855c02a443ededef1bf933e289a56ed0.jpg",
257
+ "table_caption": [
258
+ "Algorithm 1 Sliced Wasserstein Distance (SWD) loss. "
259
+ ],
260
+ "table_footnote": [],
261
+ "table_body": "<table><tr><td>input: activation vectors H ∈ Rb×d, ,a prior distribution (e.g. Gaussian) sampler S draw prior vectors P ∈ Rb×d using S</td></tr><tr><td></td></tr><tr><td>generate random orthogonal matrix W ∈ Rd×d&#x27;</td></tr><tr><td>make projections: H-= HW; P⊥ = PW</td></tr><tr><td>initializeSWDlossl=0</td></tr><tr><td>forj∈{1,2,.,d&#x27;} do l =l+ |lsort(H:j)-sort(P:j)|l²</td></tr><tr><td></td></tr><tr><td>end for return l/(dd&#x27;)</td></tr></table>",
262
+ "bbox": [
263
+ 178,
264
+ 109,
265
+ 738,
266
+ 246
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "table",
272
+ "img_path": "images/3a3eed4a2d996e3879ad40c806cc09b248123762a01c1400080926cb0ca874a6.jpg",
273
+ "table_caption": [
274
+ "Table 1: Instantiations of the generalized contrastive loss, i.e. $\\mathcal { L } _ { \\mathrm { a l i g n m e n t } } + \\lambda \\mathcal { L } _ { \\mathrm { d i s t r i b u t i o n } }$ , that we use in this work. $\\tilde { z }$ denotes $\\ell _ { 2 }$ -normalized $z \\in \\mathbb { R } ^ { d }$ , and is only used for uniform hypersphere prior. "
275
+ ],
276
+ "table_footnote": [],
277
+ "table_body": "<table><tr><td>Laign</td><td>Prior distribution</td><td>Ldistribution</td></tr><tr><td>nd∑i, |lzi - zj|l²Uniform hypersphere</td><td></td><td>e∑log∑exp(Tzj/T)</td></tr><tr><td>nd∑ij |lz- zjll2Uniform hypersphere</td><td></td><td>SWD(Z, zprior)</td></tr><tr><td>d∑ij|lz-zjll²Uniform hypercube</td><td></td><td>SWD(Z, Zprior)</td></tr><tr><td>nd∑i,j |lzi - zjll2Normal distribution</td><td></td><td>SWD(Z, Zprior)</td></tr></table>",
278
+ "bbox": [
279
+ 256,
280
+ 303,
281
+ 740,
282
+ 411
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "",
289
+ "bbox": [
290
+ 173,
291
+ 443,
292
+ 825,
293
+ 554
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "Connection with mutual information. The connection between the standard contrastive loss and mutual information has been shown before [3, 20], where the contrastive loss (a.k.a. InfoNCE loss [3]) is shown to be a lower bound of the mutual information. To connect the generalized contrastive loss to mutual information, we start by the definition of mutual information between two latent variables $U , V$ , which is $I ( U ; V ) = H ( U ) - H ( U | V )$ . Comparing this factorization of mutual information with generalized contrastive loss, it is not difficult to see that: 1) the alignment term $\\mathcal { L } _ { \\mathrm { a l i g n m e n t } }$ is directly related to $H ( U | V )$ which aims to reduce uncertainty of the other views given one view of the example; and 2) the distribution matching term ${ \\mathcal { L } } _ { \\mathrm { d i s t r i b u t i o n } }$ can be considered as a proxy to $H ( u )$ for maximizing the entropy in the representation. It is perhaps worth noting that different from mutual information, the generalized contrastive loss (Eq. 2) allows a tunable weight $( \\lambda )$ between the alignment and distribution matching term. The weighting scalar $\\lambda$ is (inversely) related to the temperature $\\tau$ (details in Appendix A.2). ",
300
+ "bbox": [
301
+ 173,
302
+ 575,
303
+ 825,
304
+ 742
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "Comparing different instantiations of generalized contrastive loss. Here we ask: Is it essential to use a uniform hypersphere prior for the effectiveness of contrastive loss? How much difference does it make when distinct generalized contrastive losses are used? To answer this question, we conduct experiments following SimCLR settings [13, 14], and use the linear evaluation protocol. Detailed experimental setup can be found in Appendix A.1. ",
311
+ "bbox": [
312
+ 174,
313
+ 763,
314
+ 825,
315
+ 833
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "Figure 1 shows linear evaluation results of models trained with different losses under different training epochs. On CIFAR-10, we see little difference in terms of linear evaluation for variants of the generalized contrastive losses, especially when trained longer than 200 epochs. As for ImageNet, there are some discrepancies between different losses, but they disappear when a deeper 3-layer non-linear projection head is used. ",
322
+ "bbox": [
323
+ 174,
324
+ 839,
325
+ 825,
326
+ 909
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "image",
332
+ "img_path": "images/b2443f8eabb0e0479457a5400ec51cc75e840fb6d83df72f3695d1b7938e34df.jpg",
333
+ "image_caption": [
334
+ "Figure 1: Linear evaluation accuracy of ResNet-50 trained with different losses on CIFAR-10 and ImageNet datasets. Numbers of projection head layers are in parentheses. Differences between variants of generalized contrastive loss are small with a deep projection head. Decoupled NT-Xent loss is introduced in A.2. Numerical results can be found in Appendix A.3. "
335
+ ],
336
+ "image_footnote": [],
337
+ "bbox": [
338
+ 191,
339
+ 85,
340
+ 803,
341
+ 247
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "Furthermore, we find that deep projection head not only reduces the differences among different generalized contrastive losses, but has a similar effect for batch size. With proper learning rate scaling across batch sizes (e.g. square root scaling with LARS optimizer [21]), the impact of batch size on representation quality is small. Table 2 demonstrate this phenomenon for the standard contrastive loss, and more results on other losses can be found in Appendix A.3. ",
348
+ "bbox": [
349
+ 174,
350
+ 343,
351
+ 408,
352
+ 535
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "table",
358
+ "img_path": "images/2ed625c7bef748f906967df1f45626d85dee7d4e879b7be2b09215328867e8b3.jpg",
359
+ "table_caption": [
360
+ "Table 2: Linear eval accuracy of ResNet-50 on ImageNet. "
361
+ ],
362
+ "table_footnote": [],
363
+ "table_body": "<table><tr><td rowspan=\"2\">Projection head</td><td rowspan=\"2\">Batch size</td><td colspan=\"4\">Epoch</td></tr><tr><td>100</td><td>200</td><td>400</td><td>800</td></tr><tr><td rowspan=\"3\">2 layers</td><td>512</td><td>65.4</td><td>67.3</td><td>68.7</td><td>69.3</td></tr><tr><td>1024</td><td>65.6</td><td>67.6</td><td>68.8</td><td>69.8</td></tr><tr><td>2048</td><td>65.3</td><td>67.6</td><td>69.0</td><td>70.1</td></tr><tr><td rowspan=\"3\">3 layers</td><td>512</td><td>66.6</td><td>68.4</td><td>70.0</td><td>71.0</td></tr><tr><td>1024</td><td>66.8</td><td>68.9</td><td>70.1</td><td>70.9</td></tr><tr><td>2048</td><td>66.8</td><td>69.1</td><td>70.4</td><td>71.3</td></tr><tr><td rowspan=\"3\">4 layers</td><td>512</td><td>66.8</td><td>68.8</td><td>70.0</td><td>70.7</td></tr><tr><td>1024</td><td>67.0</td><td>69.0</td><td>70.4</td><td>70.9</td></tr><tr><td>2048</td><td>67.0</td><td>69.3</td><td>70.4</td><td>71.3</td></tr></table>",
364
+ "bbox": [
365
+ 431,
366
+ 366,
367
+ 808,
368
+ 534
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "3 Instance-based objective can learn on images with multiple objects and learn good local features ",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 176,
378
+ 558,
379
+ 797,
380
+ 593
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "Most existing contrastive learning methods [13, 10, 22, 4] define their objectives at the instance level where each image is encoded into a single vector representation (e.g. representations of two random crops of the same image instance are treated as a positive pair). In other words, the objective operates on a global representation of its input rather than on some local regions (of its input). We pose two questions regarding instance-based global objective: 1) when there is only a single (dominant) object in the image, the objective seems reasonable as it encourages the model to learn features relevant to object class, but when there are multiple objects present in the image, can instance-based objective still learn well? 2) Since the instance-based objective uses a global summary of its input, can it still learn good local features (e.g. parts of an object, or multiple objects in the same scheme)? To answer these questions, we use SimCLR as representative for the instance-based objective. ",
387
+ "bbox": [
388
+ 173,
389
+ 608,
390
+ 825,
391
+ 747
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "3.1 SimCLR can learn on images with multiple objects ",
398
+ "text_level": 1,
399
+ "bbox": [
400
+ 176,
401
+ 766,
402
+ 562,
403
+ 781
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "Commonly used self-supervised learning datasets, such as MNIST, CIFAR-10, ImageNet, are object centered, i.e. the image is mainly occupied by a single (dominant) object. To experiment with multiple objects in a controllable setting, we propose a new dataset setting by composing multiple digits as follows. ",
410
+ "bbox": [
411
+ 174,
412
+ 794,
413
+ 825,
414
+ 849
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "MultiDigits dataset. We place MNIST digits ( $2 8 \\times 2 8$ size) on a shared canvas $1 1 2 \\times 1 1 2$ size). We vary the number of digits placed on the canvas. One factor that could interfere with learning of multiple digits is overlapping digits, therefore we use two placement strategies: random vs in-grid (Figure 2). Random placement of digits incurs no constraint on where digits can be placed on the canvas, whereas in-grid placement puts each digit in one of the $4 \\times 4$ grid cells the canvas is divided into, and no two digits can fall in the same cell. In-grid placement ensures no overlapping of digits. ",
421
+ "bbox": [
422
+ 174,
423
+ 856,
424
+ 825,
425
+ 911
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "image",
431
+ "img_path": "images/c71d419367e52d12da14816741144d4a892cd0560eb7e00b6d37305ccc59ec1e.jpg",
432
+ "image_caption": [
433
+ "Figure 2: MultiDigit dataset. More digits lead to more overlapping in random placement. "
434
+ ],
435
+ "image_footnote": [],
436
+ "bbox": [
437
+ 184,
438
+ 85,
439
+ 816,
440
+ 215
441
+ ],
442
+ "page_idx": 4
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "",
447
+ "bbox": [
448
+ 173,
449
+ 268,
450
+ 823,
451
+ 296
452
+ ],
453
+ "page_idx": 4
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "We first pretrain a ResNet-18 with SimCLR or supervised learning with the same augmentation policy (random cropping and resize) on MultiDigits dataset. To access the representation quality, we then train linear classifiers for images with a single digit of size $2 8 \\times 2 8$ on the canvas. Similarly during evaluation, we place only one digit of size $2 8 \\times 2 8$ on the canvas. ",
458
+ "bbox": [
459
+ 174,
460
+ 303,
461
+ 825,
462
+ 359
463
+ ],
464
+ "page_idx": 4
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "As shown in Table 3, representations learned using supervised loss maintains its quality when up to 8 digits are placed in the image. After that the representation becomes worse as the canvas gets more crowded. Notably, representations learned using SimCLR display a similar phenomenon. Regardless of placement strategy, top-1 accuracy stays at the same level up to 8 digits, demonstrating that SimCLR can learn from images with multiple objects. In addition, the increased performance gap between the two placement strategies with increased number of digits shows that object overlapping makes it harder for contrastive losses to learn from multiple objects. ",
469
+ "bbox": [
470
+ 174,
471
+ 364,
472
+ 825,
473
+ 462
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "table",
479
+ "img_path": "images/f1aaae4f2fb5d0d1558b8da072cc8a84c49a853ec202e5586d6400e8b9e27272.jpg",
480
+ "table_caption": [
481
+ "Table 3: Top-1 linear evaluation accuracy $( \\% )$ for pretrained ResNet-18 on the MultiDigits dataset. We vary the number of digits placed on the canvas during training from 1 to 16. During evaluation only 1 digit is present. As a baseline, a network with random weights gives $18 \\%$ top-1 accuracy. "
482
+ ],
483
+ "table_footnote": [],
484
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Placing of digits</td><td colspan=\"6\">Number of digits (size 28 × 28)</td></tr><tr><td>1</td><td>2</td><td>4</td><td>8</td><td>12</td><td>16</td></tr><tr><td rowspan=\"2\">Supervised</td><td>Random</td><td>99.5</td><td>99.5</td><td>99.3</td><td>99.4</td><td>98.9</td><td>98.3</td></tr><tr><td>In-grid</td><td>99.5</td><td>99.6</td><td>99.5</td><td>99.3</td><td>98.6</td><td>92.4</td></tr><tr><td rowspan=\"2\">SimCLR</td><td>Random</td><td>98.9</td><td>98.9</td><td>99.0</td><td>98.9</td><td>98.2</td><td>96.4</td></tr><tr><td>In-grid</td><td>98.3</td><td>98.6</td><td>99.1</td><td>99.2</td><td>99.1</td><td>98.3</td></tr></table>",
485
+ "bbox": [
486
+ 259,
487
+ 530,
488
+ 736,
489
+ 628
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "3.2 SimCLR learns local features that exhibit hierarchical properties ",
496
+ "text_level": 1,
497
+ "bbox": [
498
+ 174,
499
+ 661,
500
+ 665,
501
+ 678
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "To understand the local features learned by SimCLR, we apply K-means on intermediate features of the pretrained ResNet with SimCLR, and see how local regions of an image are grouped together. For good representations, we expect that regions of similar objects or object parts should be grouped together. ",
508
+ "bbox": [
509
+ 174,
510
+ 689,
511
+ 825,
512
+ 746
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "Specifically, we take a pretrained Resnet- $5 0 2 \\times$ on ImageNet, and run inference on images (from ImageNet validation set and COCO [23]) of size $4 4 8 \\times 4 4 8$ . We run K-means with various numbers of clusters on the l2-normalized hidden features from middle layers of the network (e.g. block group 2,3,4 of the ResNet). We also compare SimCLR learned features with supervised learned features, as well as the raw pixel (RGB) features extracted from each $1 4 \\times 1 4$ patch. ",
519
+ "bbox": [
520
+ 174,
521
+ 752,
522
+ 825,
523
+ 821
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "Figure 3a shows that as the number of clusters increases, the learned representations tend to group image regions based on parts of the object (i.e. facial components of the dog). This phenomenon appears in both SimCLR and supervised learned features, but not with raw pixel features, indicating meaningful local features learned by SimCLR and supervised learning. In Figure 3b, we compare ResNet intermediate features at different layers, and it suggests that earlier layers contain more edge-related features, while later layers contain more object/part features. ",
530
+ "bbox": [
531
+ 174,
532
+ 828,
533
+ 823,
534
+ 911
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "image",
540
+ "img_path": "images/043491355a096c32ce3d26731e8d7e91ef6ef346ae1830e7b7ba567dee42aa4e.jpg",
541
+ "image_caption": [
542
+ "Figure 3: Visualizing features on a ImageNet validation image with K-means clustering. Each row denotes a type of local features used, and each column denotes the number of K-means clusters. Later layers of SimCLR/supervised ResNet tend to group by object parts. More visualization examples can be found in https://contrastive-learning.github.io/intriguing. "
543
+ ],
544
+ "image_footnote": [],
545
+ "bbox": [
546
+ 174,
547
+ 87,
548
+ 820,
549
+ 292
550
+ ],
551
+ "page_idx": 5
552
+ },
553
+ {
554
+ "type": "image",
555
+ "img_path": "images/4abcffd2abc33c1ac2982c97c9aa7b81d6dbcd9f72ed0faee407ee9907b9e2b0.jpg",
556
+ "image_caption": [
557
+ "Figure 4: Visualizing features on two images from COCO. Each row denotes a type of local features (SimCLR, Supervised, and raw pixels; both SimCLR and Supervised are trained on ImageNet), and each column denotes the number of K-means clusters. Region grouping by SimCLR/supervised features tend to overlap with object class. "
558
+ ],
559
+ "image_footnote": [],
560
+ "bbox": [
561
+ 176,
562
+ 376,
563
+ 821,
564
+ 583
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "Region grouping results on two COCO images for SimCLR and supervised learning (trained on ImageNet) are shown in Figure 4. Again, region grouping by local features tend to overlap with object class, indicating good local features learned. ",
571
+ "bbox": [
572
+ 176,
573
+ 681,
574
+ 825,
575
+ 723
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "4 Feature suppression limits the potential of contrastive learning ",
582
+ "text_level": 1,
583
+ "bbox": [
584
+ 174,
585
+ 750,
586
+ 725,
587
+ 768
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "Contrastive learning requires good design of data augmentation to work well. As shown in [13], without color augmentations that randomly shift color distribution (while maintaining information regarding object class), the quality of learned representations are significantly worse. In other words, the presence of “color distribution” features suppresses their competing feature of “object class”, and is addressed by color augmentation. However, there may be scenarios where the known augmentations cannot fully address this feature suppression effect, and it can thus limit the potential of contrastive learning. Here we quantitatively study the feature suppression phenomenon by constructing datasets with explicit and controllable competing features, and see how well contrastive learning method could learn. ",
594
+ "bbox": [
595
+ 174,
596
+ 786,
597
+ 825,
598
+ 911
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "image",
604
+ "img_path": "images/2d24a657de9002696702a1f1f3f206b04f81b0e136641be565d7250e4cbfd08a.jpg",
605
+ "image_caption": [],
606
+ "image_footnote": [],
607
+ "bbox": [
608
+ 253,
609
+ 89,
610
+ 735,
611
+ 212
612
+ ],
613
+ "page_idx": 6
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "(a) ImageNet images overlaid with MNIST digits. The left most column is original image, and others are augmented views via random crop and color distortion. MNIST digits and ImageNet classes are competing features. We vary the number of unique MNIST digits to control the competing features. ",
618
+ "bbox": [
619
+ 204,
620
+ 224,
621
+ 787,
622
+ 263
623
+ ],
624
+ "page_idx": 6
625
+ },
626
+ {
627
+ "type": "image",
628
+ "img_path": "images/9f7491107755ce039f3ec5e905e7aac4cdee2a3b3d886f2a7809a848aaa2d3e2.jpg",
629
+ "image_caption": [],
630
+ "image_footnote": [],
631
+ "bbox": [
632
+ 251,
633
+ 279,
634
+ 738,
635
+ 349
636
+ ],
637
+ "page_idx": 6
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "(b) Two MNIST digits randomly placed on a shared canvas (of size $1 1 2 \\times 1 1 2 )$ . The two digits can have the same size (upper row) or different sizes (lower row), and digits of different sizes can be considered as competing features. We fix the size of one digit and vary the other. ",
642
+ "bbox": [
643
+ 200,
644
+ 354,
645
+ 789,
646
+ 393
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "image",
652
+ "img_path": "images/081d486d795cdcd891fae2fb1694148acdc8a72f06d343a13fdf2aec95006645.jpg",
653
+ "image_caption": [
654
+ "Figure 5: Probing datasets with explicit and controllable competing features. "
655
+ ],
656
+ "image_footnote": [],
657
+ "bbox": [
658
+ 284,
659
+ 411,
660
+ 712,
661
+ 472
662
+ ],
663
+ "page_idx": 6
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "(c) Images (of RGB channels) are concatenated with additional channels of random integer sampled from range of $[ 1 , \\log _ { 2 } ( n ) ]$ . The integer, shared between two views, is replicated for spatial dimension and represented as $n$ binary channels. RGB channels and random bits are competing features. ",
668
+ "bbox": [
669
+ 204,
670
+ 482,
671
+ 794,
672
+ 521
673
+ ],
674
+ "page_idx": 6
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "4.1 Datasets with explicit and controllable competing features ",
679
+ "text_level": 1,
680
+ "bbox": [
681
+ 173,
682
+ 574,
683
+ 614,
684
+ 588
685
+ ],
686
+ "page_idx": 6
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "To construct datasets with controllable competing features, we leverage two strategies: channel addition that adds different feature information in a shared canvas, and channel concatenation that expand the RGB channels to include additional features. With these strategies, we construct three datasets below. ",
691
+ "bbox": [
692
+ 174,
693
+ 601,
694
+ 825,
695
+ 655
696
+ ],
697
+ "page_idx": 6
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "DigitOnImageNet dataset. We overlay MNIST digits on ImageNet images via channel addition/summation (Figure 5a). For each ImageNet image, we assign a unique MNIST digit and replicate it in nine fixed locations before the standard SimCLR augmentations [13] are applied to create augmented views. Therefore the original ImageNet images and added MNIST digits are competing features. Although it is difficult to quantify information in MNIST digits, we can manually control the number of unique MNIST digits used. Ideally, we want the model to learn both set of features so that it could perform well for both MNIST digit and ImageNet object recognition. ",
702
+ "bbox": [
703
+ 174,
704
+ 662,
705
+ 825,
706
+ 761
707
+ ],
708
+ "page_idx": 6
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "MultiDigits dataset (varying the size of one digit). This dataset is modified from MultiDigits introduced above. Here we only consider two digits, and vary the size of one of them (Figure 5b). In this work, we place two digits on a canvas of size $1 1 2 \\times 1 1 2$ . We fix the size of one of the digits to be $2 0 \\times 2 0$ while varying the other from $2 0 \\times 2 0$ to $8 0 \\times 8 0$ . Digits of different sizes can be considered as competing features. Ideally, we want the model to learn features for digits of all sizes appeared during training. ",
713
+ "bbox": [
714
+ 173,
715
+ 766,
716
+ 825,
717
+ 849
718
+ ],
719
+ "page_idx": 6
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "RandBit dataset. We concatenate a real image with an image of a random integer in the channel dimension (Figure 5c). The random integer is randomly sampled from range of $[ 1 , \\log _ { 2 } ( n ) ]$ where $n$ is a parameter to control. It is replicated across spatial dimension (i.e. all pixel location shares the same value), and it is also represented as $n$ binary bits/channels instead of an integer or floating number to make it easily learnable. Furthermore, unlike RGB channels, these additional channels of random bits will not be altered by augmentation, so they are identical for both augmented views of the same image. The RGB channels and the added channels of random bits are competing features, and this construction allows us to control the amount of information in the added competing feature, which is $n$ bits. Also, we know that the mutual information between two views given this construction is at least $\\log _ { 2 } ( n )$ . ",
724
+ "bbox": [
725
+ 174,
726
+ 856,
727
+ 823,
728
+ 911
729
+ ],
730
+ "page_idx": 6
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "",
735
+ "bbox": [
736
+ 173,
737
+ 90,
738
+ 826,
739
+ 175
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "image",
745
+ "img_path": "images/acfe4178ba9ddc62ef5a9895c5449a4629859731538e08911841be4b0f7c777d.jpg",
746
+ "image_caption": [
747
+ "4.2 Easy-to-learn features (MNIST digit) suppress the learning of other features (ImageNet object class) ",
748
+ "Figure 6: (a) Supervised learning accuracy on ImageNet classification. (b) Linear evaluation of learned features for both MNIST classification and ImageNet classification on the DigitOnImageNet dataset. Batch size of 1024 and 2-layer projection head is used. Different batch sizes and projection head layers have negligible influence on the trade-off between ImageNet vs MNIST accuracy. "
749
+ ],
750
+ "image_footnote": [],
751
+ "bbox": [
752
+ 187,
753
+ 258,
754
+ 803,
755
+ 404
756
+ ],
757
+ "page_idx": 7
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "On DigitOnImageNet datasets, we vary the number of unique MNIST digits used in the training set, and all MNIST digits are used in the validation/test set. As a baseline, we train supervised ResNet-50 on the created datasets with ImageNet labels, and the number of unique MNIST digits has little impact on the top-1 ImageNet classification accuracy (Figure 6a). ",
762
+ "bbox": [
763
+ 174,
764
+ 493,
765
+ 825,
766
+ 549
767
+ ],
768
+ "page_idx": 7
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "We then train SimCLR on the datasets with different temperatures. As shown in Figure 6b, when we increase the number of unique MNIST digits, the linear evaluation performance of the learned features for MNIST classes increases accordingly, while the accuracy for ImageNet classes decreases dramatically. The trade-off between digit recognition ability and object recognition ability shows that simple features suppress the learning of difficult features, when both are shared between two augmented views. Different batch sizes and projection head depths have negligible influence to the outcome we observe here. Therefore, it is difficult to learn both of the competing features using existing contrastive losses (e.g. SimCLR). ",
773
+ "bbox": [
774
+ 174,
775
+ 556,
776
+ 825,
777
+ 666
778
+ ],
779
+ "page_idx": 7
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "4.3 The presence of dominant object suppresses the learning of features of smaller objects ",
784
+ "text_level": 1,
785
+ "bbox": [
786
+ 174,
787
+ 694,
788
+ 807,
789
+ 709
790
+ ],
791
+ "page_idx": 7
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "On the MultiDigits dataset, as mentioned, we fix one digit to be size of $2 0 \\times 2 0$ while varying the other from $2 0 \\times 2 0$ to $8 0 \\times 8 0$ , on a canvas of $1 1 2 \\times 1 1 2$ . We first pretrain a ResNet-18 with SimCLR or supervised learning with the same augmentation policy (random cropping and resize) and batch size of 1024. To access the representation quality, we then train linear classifiers for each of the digit sizes that appeared during pretraining. For training of the linear classifier, we only place a single digit at a time on the canvas of the same size as during pretraining. ",
796
+ "bbox": [
797
+ 174,
798
+ 724,
799
+ 825,
800
+ 808
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "The results are summarized in Table 4. For supervised learning, the learned representations for the smaller digit do not change much as the other digit increases its size, and the model perform well for both small and large digits (accuracy $> 9 9 \\%$ ). However, for SimCLR, the learned representations of the smaller digit degenerate significantly when the size of the other digit increases, almost to the level of a random untrained network. The dominant object can be learned very well (accuracy $> 9 9 \\%$ ) while suppressing the learning of the smaller object. Although tuning temperature has some effects on reducing the feature suppression, the trend stays unchanged. ",
807
+ "bbox": [
808
+ 174,
809
+ 814,
810
+ 825,
811
+ 911
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "table",
817
+ "img_path": "images/cd5f56aec9cce63927c852380288fb31382d82accd72859ece7d6ead2ce4eb0e.jpg",
818
+ "table_caption": [
819
+ "Table 4: Top-1 linear evaluation accuracy $( \\% )$ for pretrained ResNet-18 on the MultiDigits dataset. We fix the size of 1st digit while increasing the size of the 2nd digit. For SimCLR, results are presented for two temperatures. Accuracies suffered from a significant drop when increasing 2nd digit size are red colored. "
820
+ ],
821
+ "table_footnote": [],
822
+ "table_body": "<table><tr><td></td><td></td><td colspan=\"7\">2nd digit size (1st digit is kept the same size of 20 × 20)</td></tr><tr><td></td><td></td><td>20×20</td><td>30×30</td><td>40×40</td><td>50×50</td><td>60×60</td><td>70×70</td><td>80×80</td></tr><tr><td rowspan=\"2\">Supervised</td><td>1st digit</td><td>99.1</td><td>99.2</td><td>99.2</td><td>99.2</td><td>99.1</td><td>99.1</td><td>99.0</td></tr><tr><td>2nd digit</td><td>99.1</td><td>99.5</td><td>99.5</td><td>99.6</td><td>99.5</td><td>99.5</td><td>99.6</td></tr><tr><td rowspan=\"2\">SimCLR (t = 0.05)</td><td>1st digit</td><td>97.8</td><td>97.6</td><td>96.2</td><td>96.5</td><td>88.5</td><td>74.5</td><td>39.9</td></tr><tr><td>2nd digit</td><td>97.8</td><td>97.9</td><td>97.8</td><td>98.3</td><td>98.2</td><td>97.7</td><td>98.2</td></tr><tr><td rowspan=\"2\">SimCLR (T = 0.2)</td><td>1st digit</td><td>98.7</td><td>98.8</td><td>98.3</td><td>87.5</td><td>24.9</td><td>19.8</td><td>20.3</td></tr><tr><td>2nd digit</td><td>98.7</td><td>99.2</td><td>99.2</td><td>99.0</td><td>99.1</td><td>98.9</td><td>99.4</td></tr><tr><td rowspan=\"2\">Random net (untrained)</td><td>1st digit</td><td>16.5</td><td>16.7</td><td>16.6</td><td>16.6</td><td>16.6</td><td>16.9</td><td>16.5</td></tr><tr><td>2nd digit</td><td>16.5</td><td>19.1</td><td>21.9</td><td>24.1</td><td>26.5</td><td>28.1</td><td>29.0</td></tr></table>",
823
+ "bbox": [
824
+ 176,
825
+ 152,
826
+ 821,
827
+ 314
828
+ ],
829
+ "page_idx": 8
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "4.4 Extra channels with a few bits of easy-to-learn mutual information suppress the learning of all features in RGB channels ",
834
+ "text_level": 1,
835
+ "bbox": [
836
+ 176,
837
+ 337,
838
+ 766,
839
+ 364
840
+ ],
841
+ "page_idx": 8
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "In the RandBit datasets, we add additional channels (identical across pixels) of random bits to MNIST and ImageNet. As mentioned above, SimCLR augmentation is only applied to RGB channels so extra added channels will be shared among two view. ",
846
+ "bbox": [
847
+ 174,
848
+ 376,
849
+ 825,
850
+ 417
851
+ ],
852
+ "page_idx": 8
853
+ },
854
+ {
855
+ "type": "image",
856
+ "img_path": "images/5eb27c72fac25f6634e9c79d0a24735a1a738b8e428b8cb474fa9e027848f287.jpg",
857
+ "image_caption": [
858
+ "Figure 7: Linear evaluation of learned features when a few bits of competing features added (on MNIST). Adding a few bits completely disables contrastive learning (across various batch size or losses). Interestingly, it has little effects on a generative model (VAE). The detrimental effects are just as strong for larger datasets such as CIFAR-10 and ImageNet (Appendix B.1). "
859
+ ],
860
+ "image_footnote": [],
861
+ "bbox": [
862
+ 184,
863
+ 428,
864
+ 815,
865
+ 574
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Figure 7 shows the linear evaluation accuracy of models trained on MNIST (with additional random bits added). We observe that the linear evaluation accuracy quickly drops with a few bits of competing feature added. This detrimental effect on the representation quality persists on bigger datasets like CIFAR-10 and ImageNet as well, and cannot be avoided by using different contrastive losses, batch sizes, or memory mechanism based on momentum contrast (details in Appendix B.1). We believe the fact that just a few bits of easy-to-learn features can completely disable the good representation learning is related to the saturation of the distribution matching loss. As shown in Appendix B.2, the linear increase in bits requires an exponential increase in batch size, which is not sustainable as the required batch size can quickly go beyond the size of the dataset size. In practice, we rely on using data augmentation to remove those uninformative easy-to-learn features so that contrastive learning can learn useful representations. Interestingly, the extra bits do not affect a generative model, variational autoencoder [24, 25], nearly as much, despite other settings such as model size are held the same, prompting a potential direction of addressing the issue. ",
872
+ "bbox": [
873
+ 173,
874
+ 654,
875
+ 825,
876
+ 833
877
+ ],
878
+ "page_idx": 8
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "5 Related Work ",
883
+ "text_level": 1,
884
+ "bbox": [
885
+ 174,
886
+ 852,
887
+ 321,
888
+ 869
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "Our work studies the contrastive loss based on cross entropy loss [15, 3, 4, 13]. This loss is widely used in recent successful contrastive learning methods [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]. In terms of the contrastive loss, our work is perhaps most related to [16], which shows that formulating contrastive loss as alignment and uniformity in the hypersphere gives similar performance as the standard contrastive loss. We further generalize this factorization, and show other distribution matching losses can be used, and they could achieve similar results. Other than standard contrastive loss that directly utilize negative examples, BYOL [22] demonstrates another way to maintain representation distribution/entropy without directly relying on distribution matching, and SWAV [26] shows clustering-based method equipped with proper data augmentations could also achieve similar performance. We conduct preliminary experiments of BYOL on RandBit and found that it also suffers from feature suppression as generalized contrastive loss. It is expected that SWAV would exhibit similar behaviors on RandBit as those random bits could fuel representations for perfect clustering. ",
895
+ "bbox": [
896
+ 174,
897
+ 883,
898
+ 821,
899
+ 911
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "",
906
+ "bbox": [
907
+ 174,
908
+ 90,
909
+ 825,
910
+ 229
911
+ ],
912
+ "page_idx": 9
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "The connection between contrastive loss and mutual information has been studied before [3, 20]. We show that for the generalized contrastive loss, it can also be related to mutual information. Despite the connection between contrastive loss and mutual information, it has been pointed out that mutual information estimation may suffer from certain limitations [27, 28]. Moreover, [29, 12] show that higher mutual information learned by the network does not warrant better representation quality. In our work, we find adding mutual information bits between two views which are irrelevant to downstream tasks can be harmful for the quality of learned representations. Data augmentation plays an important role at favoring certain bits of mutual information than others. ",
917
+ "bbox": [
918
+ 174,
919
+ 236,
920
+ 825,
921
+ 347
922
+ ],
923
+ "page_idx": 9
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "There is a growing number of recent work on the topic of understanding contrastive learning, both theoretically [30, 31, 32, 33, 34] and empirically [16, 12, 35, 36]. However, little work has been done to study the phenomenon of feature suppression. To our knowledge, we are the first one to quantitatively and systematically study this problem. We believe this is still a very open question and could benefit from more future investigation. Finally, the feature suppression effect in unsupervised contrastive learning that we study in this work may also exist in standard supervised learning (“contrastive loss” between examples and class labels), as suggested by [37, 38], though the specific form would be different. ",
928
+ "bbox": [
929
+ 174,
930
+ 353,
931
+ 825,
932
+ 463
933
+ ],
934
+ "page_idx": 9
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "6 Conclusion ",
939
+ "text_level": 1,
940
+ "bbox": [
941
+ 174,
942
+ 483,
943
+ 299,
944
+ 500
945
+ ],
946
+ "page_idx": 9
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "In this work, we study three intriguing properties of contrastive losses. In particular, our results highlight that feature suppression is still an open challenge in contrastive learning. While there is a plethora of work on improving contrastive learning, few of them directly aim to address feature suppression. This limitation of contrastive learning becomes a bottleneck for scenarios where existing augmentation cannot fully address the feature suppression phenomenon, and learning would saturate at a level of dissatisfaction. ",
951
+ "bbox": [
952
+ 174,
953
+ 515,
954
+ 825,
955
+ 597
956
+ ],
957
+ "page_idx": 9
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "We would also like to point out some limitations of our study. Firstly, we focus mostly on contrastive learning with explicit negatives (e.g. SimCLR and MoCo). We believe other methods based on clustering and/or without negative pairs would exhibit similar phenomenon but we leave that as future work. Secondly, many of our proposed image datasets are not fully realistic despite being composed from some (challenging) natural image datasets such as ImageNet. We admit it is very hard to explore competing features or multiple objects in a controllable fashion on realistic large scale image datasets. ",
962
+ "bbox": [
963
+ 174,
964
+ 603,
965
+ 825,
966
+ 688
967
+ ],
968
+ "page_idx": 9
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "Acknowledgements ",
973
+ "text_level": 1,
974
+ "bbox": [
975
+ 176,
976
+ 707,
977
+ 338,
978
+ 723
979
+ ],
980
+ "page_idx": 9
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "We specially thank Geoffrey Hinton for many inspiring discussions and helpful advice. We would also like to thank David Fleet, Simon Kornblith, Mohammad Norouzi, Kevin Swersky and Katherine Hermann for insightful discussions. In addition, we are thankful to William Chan and Sara Sabour for ideas on implementation of sorting on TPUs. We also thank the anonymous reviewers for their constructive feedback. ",
985
+ "bbox": [
986
+ 174,
987
+ 738,
988
+ 825,
989
+ 808
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "References \n[1] Suzanna Becker and Geoffrey E Hinton. Self-organizing neural network that discovers surfaces in randomdot stereograms. Nature, 355(6356):161–163, 1992. \n[2] Alexey Dosovitskiy, Jost Tobias Springenberg, Martin Riedmiller, and Thomas Brox. Discriminative unsupervised feature learning with convolutional neural networks. In Advances in neural information processing systems, pages 766–774, 2014. \n[3] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. \n[4] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3733–3742, 2018. \n[5] R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. arXiv preprint arXiv:1808.06670, 2018. \n[6] Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems, pages 15509–15519, 2019. \n[7] Olivier J Hénaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019. \n[8] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019. \n[9] Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. arXiv preprint arXiv:1912.01991, 2019. \n[10] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. arXiv preprint arXiv:1911.05722, 2019. \n[11] Junnan Li, Pan Zhou, Caiming Xiong, Richard Socher, and Steven CH Hoi. Prototypical contrastive learning of unsupervised representations. arXiv preprint arXiv:2005.04966, 2020. \n[12] Yonglong Tian, Chen Sun, Ben Poole, Dilip Krishnan, Cordelia Schmid, and Phillip Isola. What makes for good views for contrastive learning. arXiv preprint arXiv:2005.10243, 2020. \n[13] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. arXiv preprint arXiv:2002.05709, 2020. \n[14] Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton. Big selfsupervised models are strong semi-supervised learners. arXiv preprint arXiv:2006.10029, 2020. \n[15] Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. In Advances in neural information processing systems, pages 1857–1865, 2016. \n[16] Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. arXiv preprint arXiv:2005.10242, 2020. \n[17] Julien Rabin, Gabriel Peyré, Julie Delon, and Marc Bernot. Wasserstein barycenter and its application to texture mixing. In International Conference on Scale Space and Variational Methods in Computer Vision, pages 435–446. Springer, 2011. \n[18] Nicolas Bonneel, Julien Rabin, Gabriel Peyré, and Hanspeter Pfister. Sliced and radon wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 51(1):22–45, 2015. \n[19] Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo Rohde. Generalized sliced wasserstein distances. In Advances in Neural Information Processing Systems, pages 261–272, 2019. \n[20] Ben Poole, Sherjil Ozair, Aaron van den Oord, Alexander A Alemi, and George Tucker. On variational bounds of mutual information. arXiv preprint arXiv:1905.06922, 2019. \n[21] Yang You, Igor Gitman, and Boris Ginsburg. Large batch training of convolutional networks. arXiv preprint arXiv:1708.03888, 2017. \n[22] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. Bootstrap your own latent: A new approach to selfsupervised learning, 2020. \n[23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. \n[24] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. \n[25] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. \n[26] Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020. \n[27] David McAllester and Karl Stratos. Formal limitations on the measurement of mutual information. In International Conference on Artificial Intelligence and Statistics, pages 875–884, 2020. \n[28] Jiaming Song and Stefano Ermon. Understanding the limitations of variational mutual information estimators. arXiv preprint arXiv:1910.06222, 2019. \n[29] Michael Tschannen, Josip Djolonga, Paul K Rubenstein, Sylvain Gelly, and Mario Lucic. On mutual information maximization for representation learning. arXiv preprint arXiv:1907.13625, 2019. \n[30] Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Orestis Plevrakis, and Nikunj Saunshi. A theoretical analysis of contrastive unsupervised representation learning. arXiv preprint arXiv:1902.09229, 2019. \n[31] Yao-Hung Hubert Tsai, Yue Wu, Ruslan Salakhutdinov, and Louis-Philippe Morency. Demystifying self-supervised learning: An information-theoretical framework. arXiv preprint arXiv:2006.05576, 2020. \n[32] Christopher Tosh, Akshay Krishnamurthy, and Daniel Hsu. Contrastive learning, multi-view redundancy, and linear models. arXiv preprint arXiv:2008.10150, 2020. \n[33] Yuandong Tian, Lantao Yu, Xinlei Chen, and Surya Ganguli. Understanding self-supervised learning with dual deep networks. arXiv preprint arXiv:2010.00578, 2020. \n[34] Jason D Lee, Qi Lei, Nikunj Saunshi, and Jiacheng Zhuo. Predicting what you already know helps: Provable self-supervised learning. arXiv preprint arXiv:2008.01064, 2020. \n[35] Nanxuan Zhao, Zhirong Wu, Rynson WH Lau, and Stephen Lin. What makes instance discrimination good for transfer learning? arXiv preprint arXiv:2006.06606, 2020. \n[36] Senthil Purushwalkam and Abhinav Gupta. Demystifying contrastive self-supervised learning: Invariances, augmentations and dataset biases. arXiv preprint arXiv:2007.13916, 2020. \n[37] Katherine L Hermann and Andrew K Lampinen. What shapes feature representations? exploring datasets, architectures, and training. arXiv preprint arXiv:2006.12433, 2020. \n[38] Harshay Shah, Kaustav Tamuly, Aditi Raghunathan, Prateek Jain, and Praneeth Netrapalli. The pitfalls of simplicity bias in neural networks. arXiv preprint arXiv:2006.07710, 2020. \n[39] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. ",
996
+ "bbox": [
997
+ 171,
998
+ 85,
999
+ 828,
1000
+ 912
1001
+ ],
1002
+ "page_idx": 10
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "",
1007
+ "bbox": [
1008
+ 171,
1009
+ 89,
1010
+ 828,
1011
+ 602
1012
+ ],
1013
+ "page_idx": 11
1014
+ }
1015
+ ]
parse/train/rYhBGWYm6AU/rYhBGWYm6AU_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rYhBGWYm6AU/rYhBGWYm6AU_model.json ADDED
The diff for this file is too large to render. See raw diff