Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/0zXJRJecC_/0zXJRJecC_.md +287 -0
- parse/train/0zXJRJecC_/0zXJRJecC__content_list.json +1064 -0
- parse/train/0zXJRJecC_/0zXJRJecC__middle.json +0 -0
- parse/train/0zXJRJecC_/0zXJRJecC__model.json +0 -0
- parse/train/2j_cut38wv/2j_cut38wv.md +288 -0
- parse/train/2j_cut38wv/2j_cut38wv_content_list.json +1321 -0
- parse/train/2j_cut38wv/2j_cut38wv_middle.json +0 -0
- parse/train/2j_cut38wv/2j_cut38wv_model.json +0 -0
- parse/train/H113pWZRb/H113pWZRb.md +298 -0
- parse/train/H113pWZRb/H113pWZRb_content_list.json +1513 -0
- parse/train/HkfXMz-Ab/HkfXMz-Ab.md +388 -0
- parse/train/HkfXMz-Ab/HkfXMz-Ab_content_list.json +0 -0
- parse/train/HkfXMz-Ab/HkfXMz-Ab_middle.json +0 -0
- parse/train/HkfXMz-Ab/HkfXMz-Ab_model.json +0 -0
- parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj.md +286 -0
- parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj_content_list.json +1412 -0
- parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj_middle.json +0 -0
- parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj_model.json +0 -0
- parse/train/eom0IUrF__F/eom0IUrF__F.md +0 -0
- parse/train/eom0IUrF__F/eom0IUrF__F_model.json +0 -0
parse/train/0zXJRJecC_/0zXJRJecC_.md
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model Adaptation: Historical Contrastive Learning for Unsupervised Domain Adaptation without Source Data
|
| 2 |
+
|
| 3 |
+
Jiaxing Huang, Dayan Guan, Aoran Xiao, Shijian Lu∗ School of Computer Science Engineering, Nanyang Technological University {Jiaxing.Huang, Dayan.Guan, Aoran.Xiao, Shijian.Lu}@ntu.edu.sg
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Unsupervised domain adaptation aims to align a labeled source domain and an unlabeled target domain, but it requires to access the source data which often raises concerns in data privacy, data portability and data transmission efficiency. We study unsupervised model adaptation (UMA), or called Unsupervised Domain Adaptation without Source Data, an alternative setting that aims to adapt source-trained models towards target distributions without accessing source data. To this end, we design an innovative historical contrastive learning (HCL) technique that exploits historical source hypothesis to make up for the absence of source data in UMA. HCL addresses the UMA challenge from two perspectives. First, it introduces historical contrastive instance discrimination (HCID) that learns from target samples by contrasting their embeddings which are generated by the currently adapted model and the historical models. With the historical models, HCID encourages UMA to learn instance-discriminative target representations while preserving the source hypothesis. Second, it introduces historical contrastive category discrimination (HCCD) that pseudo-labels target samples to learn category-discriminative target representations. Specifically, HCCD re-weights pseudo labels according to their prediction consistency across the current and historical models. Extensive experiments show that HCL outperforms and state-of-the-art methods consistently across a variety of visual tasks and setups.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Deep neural networks (DNNs) [28, 73, 23] have achieved great success in various computer vision tasks [8, 55, 60, 59, 28, 73, 23] but often generalize poorly to new domains due to the inter-domain discrepancy [1]. Unsupervised domain adaptation (UDA) [78, 51, 76, 64, 66, 79, 77, 103, 102, 25, 71, 44, 26, 86] addresses the inter-domain discrepancy by aligning the source and target data distributions, but it requires to access the source-domain data which often raises concerns in data privacy, data portability, and data transmission efficiency.
|
| 12 |
+
|
| 13 |
+
In this work, we study unsupervised model adaptation (UMA), an alternative setting that aims to adapt source-trained models to fit target data distribution without accessing the source-domain data. Under the UMA setting, the only information carried forward is a portable source-trained model which is usually much smaller than the source-domain data and can be transmitted more efficiently [45, 42, 43, 72, 48] as illustrated in Table 1. Beyond that, the UMA setting also alleviates the concern of data privacy and intellectual property effectively. On the other hand, the absence of the labeled source-domain data makes domain adaptation much more challenging and susceptible to collapse.
|
| 14 |
+
|
| 15 |
+
Table 1: Source data have much larger sizes than source-trained models.
|
| 16 |
+
|
| 17 |
+
<table><tr><td rowspan="2">Storage size (MB)</td><td colspan="2">Semantic segmentation</td><td>Object detection</td><td>Image classification</td></tr><tr><td>GTA5</td><td>SYNTHIA</td><td>Cityscapes</td><td>VisDA17</td></tr><tr><td>Source dataset</td><td>62,873.6</td><td>22,323.2</td><td>12,697.6</td><td>7,884.8</td></tr><tr><td>Source-trained model</td><td>179.1</td><td>179.1</td><td>553.4</td><td>172.6</td></tr></table>
|
| 18 |
+
|
| 19 |
+
To this end, we develop historical contrastive learning (HCL) that aims to make up for the absence of source data by adapting the source-trained model to fit target data distribution without forgetting source hypothesis, as illustrated in Fig. 1. HCL addresses the UMA challenge from two perspectives. First, it introduces historical contrastive instance discrimination (HCID) that learns target samples by comparing their embeddings generated by the current model (as queries) and those generated by historical models (as keys): a query is pulled close to its positive keys while pushed apart from its negative keys. HCID can thus be viewed as a new type of instance contrastive learning for the task of UMA with historical models, which learns instance-discriminative target representations without forgetting source-domain hypothesis. Second, it introduces historical contrastive category discrimination (HCCD) that pseudo-labels target samples for learning category-discriminative target representations. Specifically, HCCD re-weights the pseudo labels according to their consistency across the current and historical models.
|
| 20 |
+
|
| 21 |
+
The proposed HCL tackles UMA with three desirable features: 1) It introduces historical contrast and achieves UMA without forgetting source hypothesis; 2) The HCID works at instance level, which encourages to learn instance-discriminative target representations that generalize well to unseen data [98]; 3) The HCCD works at category level (i.e., output space) which encourages to learn category-discriminative target representation that is well aligned with the objective of down-stream tasks.
|
| 22 |
+
|
| 23 |
+
The contributions of this work can be summarized in three aspects. First, we investigate memorybased learning for unsupervised model adaptation that learns discriminative representations for unlabeled target data without forgetting source hypothesis. To the best of our knowledge, this is the first work that explores memory-based learning for the task of UMA. Second, we design historical contrastive learning which introduces historical contrastive instance discrimination and category discrimination, the latter is naturally aligned with the objective of UMA. Third, extensive experiments show that the proposed historical contrastive learning outperforms state-of-the-art methods consistently across a variety of visual tasks and setups.
|
| 24 |
+
|
| 25 |
+
# 2 Related Works
|
| 26 |
+
|
| 27 |
+
Our work is closely related to several branches of research in unsupervised model adaptation, domain adaptation, memory-based learning and contrastive learning.
|
| 28 |
+
|
| 29 |
+
Unsupervised model adaptation aims to adapt a source-trained model to fit target data distributions without accessing source-domain data. This problem has attracted increasing attention recently with a few pioneer studies each of which focuses on a specific visual task. For example, [45, 46] freezes the classifier of source-trained model and performs information maximization on target data for classification model adaptation. [42] tackles classification model adaptation with a conditional GANs that generates training images with target-alike styles and source-alike semantics. [43] presents a self-entropy descent algorithm to improve model adaptation for object detection. [72] reduces the uncertainty of target predictions (by source-trained model) for segmentation model adaptation. [48] introduces data-free knowledge distillation to transfer source-domain knowledge for segmentation model adaptation. Despite the different designs for different tasks, the common motivation of these studies is to make up for the absence of source data in domain adaptation. [40] and [88] tackle source-free domain adaptation from a generative manner by generating samples from the source classes and generating reference distributions, respectively.
|
| 30 |
+
|
| 31 |
+
We tackle the absence of source data by a memory mechanism that encourages to memorize source hypothesis during model adaptation. Specifically, we design historical contrastive learning that learns target representations by contrasting historical and currently evolved models. To the best of our knowledge, this is the first work that explores memory mechanism for UMA.
|
| 32 |
+
|
| 33 |
+
${ x _ { s r c } } / { x _ { t g t } }$ : Source/target data $G ^ { t } / G ^ { t - m }$ : Current/historical model ????????/???????? : Source/target feature $f ^ { t } / f ^ { t - m }$ Current/historical feature:
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 1: Illustration of unsupervised domain adaptation, unsupervised model adaptation and the proposed historical contrastive learning which exploits historical source hypothesis (or memorized knowledge) to make up for the absence of source supervision in the process of UMA. Here the historical source hypothesis could be the original source hypothesis $G ^ { 0 }$ (i.e. $\scriptstyle { \mathrm { t } } = { \mathrm { m } }$ , trained using the labeled source data only), the adapted source hypothesis $\bar { G } ^ { t - m }$ (i.e. $m < t$ , trained in the last $m$ epoch), or other types of previous models.
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
|
| 40 |
+
Domain adaptation is related to UMA but it requires to access labeled source data in training. Most existing work handles UDA from three typical approaches. The first exploits adversarial training to align source and target distributions in the feature, output or latent space [78, 51, 76, 14, 96, 64, 66, 79, 34, 77, 35, 21, 94, 29, 10, 9, 80, 20]. The second employs self-training to generate pseudo labels to learn from unlabeled target data iteratively [103, 69, 100, 102, 31, 19, 90, 91]. The third leverages image translation to modify image styles to reduce domain gaps [25, 71, 44, 95, 26, 86, 32, 33, 93, 92]. In addition, [30] proposes a categorical contrastive learning for domain adaptation.
|
| 41 |
+
|
| 42 |
+
Memory-based learning has been studied extensively. Memory networks [81] as one of early efforts explores to use external modules to store memory for supervised learning. Temporal ensemble [41], as well as a few following works [74, 12] extend the memory mechanism to semi-supervised learning. It employs historical hypothesis/models to regularize the current model and produces stable and competitive predictions. Mean Teacher [74] leverages moving-average models as the memory model to regularize the training, and similar idea was extended for UDA [16, 99, 4, 52]. Mutual learning [97] has also been proposed for learning among multiple peer student models.
|
| 43 |
+
|
| 44 |
+
Most aforementioned methods require labeled data in training. They do not work very well for UMA due to the absence of supervision from the labeled source data, by either collapsing in training or helping little in model adaptation performance. We design innovative historical contrastive learning to make up for the absence of the labeled source data, more details to be presented in the ensuing subsections.
|
| 45 |
+
|
| 46 |
+
Contrastive learning [82, 87, 22, 54, 101, 24, 56, 75, 36, 11] learns discriminative representations from multiple views of the same instance. It works with certain dictionary look-up mechanism [22], where a given image $x$ is augmented into two views, query and key, and the query token $q$ should match its designated key $k _ { + }$ over a set of negative keys $k _ { - }$ from other images. Existing work can be broadly classified into three categories based on dictionary creation strategies. The first creates a memory bank [82] to store all the keys in the previous epoch. The second builds an end-to-end dictionary [87, 75, 36, 11] that generates keys using samples from the current mini-batch. The third employs a momentum encoder [22] that generates keys on-the-fly by a momentum-updated encoder.
|
| 47 |
+
|
| 48 |
+
Other related source-free adaptation works. [7] considers supervised continual learning from previously learned tasks to a new task, which learns representations using the contrastive learning objective and preserves learned representations using a self-supervised distillation step, where the contrastively learned representations are more robust against the catastrophic forgetting for supervised continual learning. [38] addresses a source-free universal domain adaptation problem that does not guarantee that the classes in the target domain are the same as in the source domain. [39] propose a simple yet effective solution to realize inheritable models suitable for open-set source-free DA problem.
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 2: The proposed historical contrastive learning consists of two key designs including historical contrastive instance discrimination (HCID) and historical contrastive category discrimination (HCCD). HCID learns from target samples by contrasting their embeddings generated by the current model (as queries) and historical models (as keys), which learns instance-discriminative target representations. HCCD pseudo-labels target samples to learn category-discriminative target representations, where the pseudo labels are re-weighted adaptively according to the prediction consistency across the current and historical models.
|
| 52 |
+
|
| 53 |
+
# 3 Historical Contrastive Learning
|
| 54 |
+
|
| 55 |
+
This section presents the proposed historical contrastive learning that memorizes source hypothesis to make up for the absence of source data as illustrated in Fig. 2. The proposed HCL consists of two key designs. The first is historical contrastive instance discrimination which encourages to learn instance-discriminative target representations that generalize well to unseen data [98]. The second is historical contrastive category discrimination that encourages to learn category-discriminative target representations which is well aligned with the objective of visual recognition tasks. More details to be described in the ensuring subsections.
|
| 56 |
+
|
| 57 |
+
# 3.1 Historical Contrastive Instance Discrimination
|
| 58 |
+
|
| 59 |
+
The proposed HCID learns from unlabeled target samples via contrastive learning over their embeddings generated from current and historical models: the positive pairs are pulled close while negative pairs are pushed apart. It is a new type of contrastive learning for UMA, which preserves sourcedomain hypothesis by generating positive keys from historical models. HCID works at instance level and encourages to learn instance-discriminative target representations that generalize well to unseen data [98].
|
| 60 |
+
|
| 61 |
+
HCID loss. Given a query sample $x _ { q }$ and a set of key samples $X _ { k } = \{ x _ { k _ { 0 } } , x _ { k _ { 1 } } , x _ { k _ { 2 } } , . . . , x _ { k _ { N } } \}$ , HCID employs current model $E ^ { t }$ to encode the query $q ^ { t } = E ^ { t } ( x _ { q } )$ , and historical encoders $E ^ { t - m }$ to encode the keys $k _ { n } ^ { t - m } = E ^ { t - m } ( x _ { k _ { n } } ) , n = 0 , \cdots , \bar { N }$ . With the encoded embeddings, HCID is achieved via a historical contrastive loss $\mathcal { L } _ { \mathrm { H i s N C E } }$ , minimization of which pulls $q$ close to its positive key $k _ { + } ^ { t - m }$ while pushing it apart from all other (negative) keys:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\mathcal { L } _ { \mathrm { H i s N C E } } = \sum _ { x _ { q } \in X _ { t g t } } - \log \frac { \exp ( q ^ { t } \cdot k _ { + } ^ { t - m } / \tau ) r _ { + } ^ { t - m } } { \sum _ { i = 0 } ^ { N } \exp ( q ^ { t } \cdot k _ { i } ^ { t - m } / \tau ) r _ { i } ^ { t - m } }
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $\tau$ is a temperature parameter [82], $r$ indicates the reliability of each key $k _ { n } ^ { t - m }$ , with which we reweight the similarity loss of each key to encourage to memorize well-learnt instead of poorly-learnt historical embeddings. In this work, we use the classification entropy to estimate the reliability of each key. The positive key sample is the augmentation of the query sample[22, 36], and all the rest are negative keys.
|
| 68 |
+
|
| 69 |
+
Remark 1 Note $\mathcal { L } _ { H i s N C E }$ in Eq.1 has a similar form as the InfoNCE loss[56, 22]. InfoNCE can actually be viewed as a special case of HisNCE, where all the query and keys are encoded by the current model ${ ' m = 0 }$ ) and the reliability is fixed ${ \bf \zeta } r _ { i } ^ { t - m } = 1 , \forall i )$ . For HisNCE, we assign each key a reliability score to encourage to memorize the well-learnt historical embeddings only. It is also worth noting that Eq. 1 only shows historical contrast with one historical model for simplicity. In practice, we could employ multiple historical models to comprehensively distill (memorize) the well-learnt embeddings from them. It could be achieved by computing Eq.1 multiple times.
|
| 70 |
+
|
| 71 |
+
# 3.2 Historical contrastive category discrimination
|
| 72 |
+
|
| 73 |
+
We design HCCD that generates pseudo labels and learns them conditioned on a historical consistency, i.e., the prediction consistency across the current and historical models. HCCD can be viewed as a new type of self-training, where pseudo labels are re-weighted by the historical consistency. It works at category level and encourages to learn category-discriminative target representations that are aligned with the objective of visual recognition tasks in UMA.
|
| 74 |
+
|
| 75 |
+
Historical contrastive pseudo label generation. Given an unlabeled sample $x$ , the current and historical models predict $p ^ { t } = G ^ { t } ( x )$ (as the query) and $p ^ { t - m } = G ^ { t - m } ( x )$ (as the keys). The pseudo label and the historical consistency of the sample are computed by:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\begin{array} { l } { { \hat { y } = \mathbf { { \Gamma } } ( p ^ { t } ) , } } \\ { { h _ { c o n } = 1 - \mathrm { S i g m o i d } ( | | p ^ { t } - p ^ { t - m } | | _ { 1 } ) , } } \end{array}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $p$ is a $K$ -class probability vector, $\mathbf { \delta T }$ is the pseudo label generation function [103, 102] and $\hat { y } = ( \hat { y } ^ { ( 1 ) } , \hat { y } ^ { ( 2 ) } , . . . , \hat { y } ^ { ( \bar { C } ) } )$ is the predicted category label.
|
| 82 |
+
|
| 83 |
+
HCCD loss. Given the unlabeled data $x$ and its historical contrastive pseudo label $\left( \hat { y } , h _ { c o n } \right)$ , HCCD performs self-training on target data $x$ via a weighted cross-entropy loss:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\mathcal { L } _ { \mathrm { H i s S T } } = - \sum _ { x \in X _ { t g t } } h _ { c o n } \times \hat { y } \log p _ { x } ,
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $h _ { c o n }$ is the per-sample historical consistency and we use it to re-weight the self-training loss. If the predictions of a sample across the current and historical models are consistent, we consider it as a well-learnt sample and increase its influence in self-training. Otherwise, we consider it as pooly-learnt sample and decrease its influence in self-training.
|
| 90 |
+
|
| 91 |
+
# 3.3 Theoretical Insights
|
| 92 |
+
|
| 93 |
+
The two designs in Historical Contrastive Learning (HCL) are inherently connected with some probabilistic models and convergent under certain conditions:
|
| 94 |
+
|
| 95 |
+
Proposition 1 The historical contrastive instance discrimination (HCID) can be modelled as a maximum likelihood problem optimized via Expectation Maximization.
|
| 96 |
+
|
| 97 |
+
Proposition 2 The HCID is convergent under certain conditions.
|
| 98 |
+
|
| 99 |
+
Proposition 3 The historical contrastive category discrimination (HCCD) can be modelled as a classification maximum likelihood problem optimized via Classification Expectation Maximization.
|
| 100 |
+
|
| 101 |
+
Proposition 4 The HCCD is convergent under certain conditions.
|
| 102 |
+
|
| 103 |
+
The proofs of Proposition 1, Proposition 2, Proposition 3 and Proposition 4 are provided in the appendix, respectively.
|
| 104 |
+
|
| 105 |
+
# 4 Experiments
|
| 106 |
+
|
| 107 |
+
This section presents experiments including datasets, implementation details, evaluations of the proposed HCL in semantic segmentation, object detection and image classification tasks as well as the discussion of its desirable features.
|
| 108 |
+
|
| 109 |
+
Table 2: Experiments on semantic segmentation task GTA5 Cityscapes (“SF” denotes source-data free, i.e., adaptation without source data).
|
| 110 |
+
|
| 111 |
+
<table><tr><td>Method</td><td>SF</td><td>Road</td><td>SW</td><td>Build</td><td>Wall</td><td>Fence</td><td>Pole</td><td>TL</td><td>TS</td><td>Veg.</td><td>Terrain</td><td>Sky</td><td>PR</td><td>Rider</td><td>Car</td><td>Truck</td><td>Bus</td><td>Train</td><td>Motor</td><td>Bike</td><td>mIoU</td></tr><tr><td>AdaptSeg [76]</td><td>X</td><td>86.5</td><td>36.0</td><td>79.9</td><td>23.4</td><td>23.3</td><td>23.9</td><td>35.2</td><td>14.8</td><td>83.4</td><td>33.3</td><td>75.6</td><td>58.5</td><td>27.6</td><td>73.7</td><td>32.5</td><td>35.4</td><td>3.9</td><td>30.1</td><td>28.1</td><td>42.4</td></tr><tr><td>AdvEnt [79]</td><td>X</td><td>89.4</td><td>33.1</td><td>81.0</td><td>26.6</td><td>26.8</td><td>27.2</td><td>33.5</td><td>24.7</td><td>83.9</td><td>36.7</td><td>78.8</td><td>58.7</td><td>30.5</td><td>84.8</td><td>38.5</td><td>44.5</td><td>1.7</td><td>31.6</td><td>32.4</td><td>45.5</td></tr><tr><td>IDA [57]</td><td>X</td><td>90.6</td><td>37.1</td><td>82.6</td><td>30.1</td><td>19.1</td><td>29.5</td><td>32.4</td><td>20.6</td><td>85.7</td><td>40.5</td><td>79.7</td><td>58.7</td><td>31.1</td><td>86.3</td><td>31.5</td><td>48.3</td><td>0.0</td><td>30.2</td><td>35.8</td><td>46.3</td></tr><tr><td>CRST[102]</td><td>X</td><td>91.0</td><td>55.4</td><td>80.0</td><td>33.7</td><td>21.4</td><td>37.3</td><td>32.9</td><td>24.5</td><td>85.0</td><td>34.1</td><td>80.8</td><td>57.7</td><td>24.6</td><td>84.1</td><td>27.8</td><td>30.1</td><td>26.9</td><td>26.0</td><td>42.3</td><td>47.1</td></tr><tr><td>CrCDA [35]</td><td>X</td><td>92.4</td><td>55.3</td><td>82.3</td><td>31.2</td><td>29.1</td><td>32.5</td><td>33.2</td><td>35.6</td><td>83.5</td><td>34.8</td><td>84.2</td><td>58.9</td><td>32.2</td><td>84.7</td><td>40.6</td><td>46.1</td><td>2.1</td><td>31.1</td><td>32.7</td><td>48.6</td></tr><tr><td>UR [72]</td><td>√</td><td>92.3</td><td>55.2</td><td>81.6</td><td>30.8</td><td>18.8</td><td>37.1</td><td>17.7</td><td>12.1</td><td>84.2</td><td>35.9</td><td>83.8</td><td>57.7</td><td>24.1</td><td>81.7</td><td>27.5</td><td>44.3</td><td>6.9</td><td>24.1</td><td>40.4</td><td>45.1</td></tr><tr><td>+HCL</td><td>√</td><td>92.2</td><td>54.1</td><td>81.7</td><td>34.2</td><td>25.4</td><td>37.9</td><td>35.8</td><td>29.8</td><td>84.1</td><td>38.0</td><td>83.9</td><td>59.1</td><td>27.1</td><td>84.6</td><td>33.9</td><td>41.9</td><td>16.2</td><td>27.7</td><td>44.7</td><td>49.1</td></tr><tr><td>SFDA [48]</td><td>√</td><td>91.7</td><td>52.7</td><td>82.2</td><td>28.7</td><td>20.3</td><td></td><td>36.530.6</td><td></td><td>23.681.7</td><td>35.6</td><td>84.859.5</td><td></td><td>22.6</td><td>83.4</td><td>29.6</td><td>32.4</td><td>11.8</td><td>23.8</td><td>39.6</td><td>45.8</td></tr><tr><td>+HCL</td><td>√</td><td>92.3</td><td>54.5</td><td>82.6</td><td>33.1</td><td>26.2</td><td>38.9</td><td>37.9</td><td>31.7</td><td>83.5</td><td>38.1</td><td>84.4</td><td>60.9</td><td>30.0</td><td>84.5</td><td>32.6</td><td>41.2</td><td>14.2</td><td>26.4</td><td>43.2</td><td>49.3</td></tr><tr><td>HCID</td><td>√</td><td>89.5</td><td>53</td><td>80.3</td><td>33.9</td><td>22.9</td><td>36.2</td><td>32.7</td><td></td><td>23.882.3</td><td>36.5</td><td>73.7</td><td>60.0</td><td>22.4</td><td>83.8</td><td>28.9</td><td>34.7</td><td>13.5</td><td>21.2</td><td>38.0</td><td>45.6</td></tr><tr><td>HCCD</td><td>√</td><td>91.0</td><td>53.6</td><td>81.5</td><td>32.4</td><td>23.1</td><td>36.9</td><td>32.3</td><td>26.3</td><td>82.8</td><td>37.2</td><td>80.4</td><td>58.5</td><td>25.0</td><td>82.5</td><td>29.9</td><td>34.2</td><td>15.5</td><td>23.2</td><td>40.5</td><td>46.7</td></tr><tr><td>HCL</td><td></td><td>92.0</td><td>55.0</td><td>80.4</td><td>33.5</td><td>24.6</td><td>37.1</td><td>35.1</td><td></td><td>28.883.0</td><td>37.6</td><td>82.359.4</td><td></td><td>27.6</td><td>83.6</td><td>32.3</td><td>36.6</td><td>14.1</td><td>28.7</td><td>43.0</td><td>48.1</td></tr></table>
|
| 112 |
+
|
| 113 |
+
Table 3: Experiments on semantic segmentation task SYNTHIA Cityscapes (“SF” denotes source-data free, i.e., adaptation without source data).
|
| 114 |
+
|
| 115 |
+
<table><tr><td>Method</td><td>SF</td><td>Road</td><td>SW</td><td>Build</td><td>Wall</td><td>Fence</td><td>Pole</td><td>TL</td><td>TS</td><td>Veg.</td><td>Sky</td><td>PR</td><td>Rider</td><td>Car</td><td>Bus</td><td>Motor</td><td>Bike</td><td>mIoU</td><td>mIoU</td></tr><tr><td>AdaptSeg[76]</td><td>X</td><td>84.3</td><td>42.7</td><td>77.5</td><td>,</td><td>1</td><td>-</td><td>4.7</td><td>7.0</td><td>77.9</td><td>82.5</td><td>54.3</td><td>21.0</td><td>72.3</td><td>32.2</td><td>18.9</td><td>32.3</td><td>1</td><td>46.7</td></tr><tr><td>AdvEnt [79]</td><td>X</td><td>85.6</td><td>42.2</td><td>79.7</td><td>8.7</td><td>0.4</td><td>25.9</td><td>5.4</td><td>8.1</td><td>80.4</td><td>84.1</td><td>57.9</td><td>23.8</td><td>73.3</td><td>36.4</td><td>14.2</td><td>33.0</td><td>41.2</td><td>48.0</td></tr><tr><td>IDA [57]</td><td>X</td><td>84.3</td><td>37.7</td><td>79.5</td><td>5.3</td><td>0.4</td><td>24.9</td><td>9.2</td><td>8.4</td><td>80.0</td><td>84.1</td><td>57.2</td><td>23.0</td><td>78.0</td><td>38.1</td><td>20.3</td><td>36.5</td><td>41.7</td><td>48.9</td></tr><tr><td>CRST[102]</td><td>×</td><td>67.7</td><td>32.2</td><td>73.9</td><td>10.7</td><td>1.6</td><td>37.4</td><td>22.2</td><td>31.2</td><td>80.8</td><td>80.5</td><td>60.8</td><td>29.1</td><td>82.8</td><td>25.0</td><td>19.4</td><td>45.3</td><td>43.8</td><td>50.1</td></tr><tr><td>CrCDA[35]</td><td>X</td><td>86.2</td><td>44.9</td><td>79.5</td><td>8.3</td><td>0.7</td><td>27.8</td><td>9.4</td><td>11.8</td><td>78.6</td><td>86.5</td><td>57.2</td><td>26.1</td><td>76.8</td><td>39.9</td><td>21.5</td><td>32.1</td><td>42.9</td><td>50.0</td></tr><tr><td>UR[72]</td><td>√</td><td>59.3</td><td>24.6</td><td>77.0</td><td>14.0</td><td>1.8</td><td>31.5</td><td>18.3</td><td>32.0</td><td>83.1</td><td>80.4</td><td>46.3</td><td>17.8</td><td>76.7</td><td>17.0</td><td>18.5</td><td>34.6</td><td>39.6</td><td>45.0</td></tr><tr><td>+HCL</td><td>√</td><td>76.7</td><td>33.7</td><td>78.7</td><td>7.2</td><td>0.1</td><td>34.4</td><td>23.2</td><td>31.6</td><td>80.5</td><td>84.3</td><td>54.4</td><td>26.6</td><td>79.5</td><td>35.9</td><td>24.8</td><td>34.4</td><td>44.1</td><td>51.1</td></tr><tr><td>SFDA [48]</td><td>√</td><td>67.8</td><td>31.9</td><td>77.1</td><td>8.3</td><td>1.1</td><td>35.9</td><td>21.2</td><td>26.7</td><td>79.8</td><td>79.4</td><td>58.8</td><td>27.3</td><td>80.4</td><td>25.3</td><td>19.5</td><td>37.4</td><td>42.4</td><td>48.7</td></tr><tr><td>+HCL</td><td>√</td><td>78.2</td><td>35.3</td><td>79.6</td><td>7.3</td><td>0.2</td><td>37.7</td><td>21</td><td>30.9</td><td>80.4</td><td>83.3</td><td>59.8</td><td>29.4</td><td>79.2</td><td>34.2</td><td>24.5</td><td>38.9</td><td>45.0</td><td>51.9</td></tr><tr><td>HCL</td><td>√</td><td>80.9</td><td>34.9</td><td>76.7</td><td>6.6</td><td>0.2</td><td>36.1</td><td>20.1</td><td>28.2</td><td>79.1</td><td>83.1</td><td>55.6</td><td>25.6</td><td>78.8</td><td>32.7</td><td>24.1</td><td>32.7</td><td>43.5</td><td>50.2</td></tr></table>
|
| 116 |
+
|
| 117 |
+
# 4.1 Datasets
|
| 118 |
+
|
| 119 |
+
UMA for semantic segmentation is evaluated on two challenging tasks GTA5 $[ 6 1 ] $ Cityscapes [15] and SYNTHIA $[ 6 2 ] \cdot$ Cityscapes. GTA5 has 24, 966 synthetic images and shares 19 categories with Cityscapes. SYNTHIA contains 9, 400 synthetic images and shares 16 categories with Cityscapes. Cityscapes has 2975 and 500 real-world images for training and validation, respectively.
|
| 120 |
+
|
| 121 |
+
UMA for object detection is evaluated on tasks Cityscapes Foggy Cityscapes [68] and Cityscapes $ \mathrm { B D D 1 0 0 k }$ [89]. Foggy Cityscapes is derived by applying simulated fog to the 2, 975 Cityscapes images. BDD100k has $7 0 k$ training images and $1 0 k$ validation images, and shares 7 categories with Cityscapes. We evaluate a subset of BDD100k (i.e., daytime) as in [84, 65, 13] for fair comparisons.
|
| 122 |
+
|
| 123 |
+
UMA for image classification is evaluated on benchmarks VisDA17 [58] and Office-31 [63]. VisDA17 has 152, 409 synthetic images as the source domain and 55, 400 real images of 12 shared categories as the target domain. Office-31 has 4110 images of three sources including 2817 from Amazon, 795 from Webcam and 498 from DSLR (with 31 shared categories). Following [102, 63, 70], the evaluation is on six adaptation tasks $\mathbf { A } { } \mathbf { W } .$ , $\mathrm { D } \to \mathsf { W } .$ , $\mathrm { W } { } \mathrm { D }$ , $\mathbf { A } { } \mathbf { D }$ , $\mathrm { D } { \to } \mathsf { A }$ , and $\mathrm { W } { \to } \mathrm { A }$ .
|
| 124 |
+
|
| 125 |
+
# 4.2 Implementation Details
|
| 126 |
+
|
| 127 |
+
Semantic segmentation: Following [79, 103], we employ DeepLab-V2 [8] as the segmentation model. We adopt SGD [3] with momentum 0.9, weight decay $1 e - 4$ and learning rate $2 . 5 e \mathrm { ~ - ~ } 4$ where the learning rate is decayed by a polynomial annealing policy [8].
|
| 128 |
+
|
| 129 |
+
Object detection: Following [84, 65, 13], we adopt Faster R-CNN [60] as the detection model. We use SGD [3] with momentum 0.9 and weight decay $5 e - 4$ . The learning rate is $1 e - 3$ for first $5 0 k$ iterations and then decreased to $1 e - 4$ for another $2 0 k$ iterations.
|
| 130 |
+
|
| 131 |
+
Image classification: Following [102, 63, 70], we adopt ResNet-101 and ResNet-50 [23] as the classification models for VisDA17 and Office-31, respectively. We use SGD [3] with momentum 0.9, weight decay $5 e - 4$ , learning rate $1 e - 3$ and batch size 32.
|
| 132 |
+
|
| 133 |
+
# 4.3 Unsupervised Domain Adaption for Semantic Segmentation
|
| 134 |
+
|
| 135 |
+
We evaluated the proposed HCL in UMA-based semantic segmentation tasks $\mathrm { G T A } 5 $ Cityscapes and SYNTHIA Cityscapes. Tables 2 and 3 show experimental results in mean Intersectionover-Union (mIoU). We can see that HCL outperforms state-of-the-art UMA methods by large margins. In addition, HCL is complementary to existing UMA methods and incorporating it as denoted by $\mathrm { ^ { 6 6 } { + } H C L ^ { 9 3 } }$ improves the existing UMA methods clearly and consistently. Furthermore, HCL even achieves competitive performance as compared with state-of-the-art UDA methods (labeled by ✗in the column SF) which require to access the labeled source data in training. Further, We conduct ablation studies of the proposed HCL over the UMA-based semantic segmentation task $\mathrm { G T A } 5 $ Cityscapes. As the bottom of Table 2 shows, either HCID or HCCD achieves comparable performance. In addition, HCID and HCCD offer orthogonal self-supervision signals where HCID focuses on instance-level discrimination between queries and historical keys and HCCD focuses on category-level discrimination among samples with different pseudo category labels. The two designs are thus complementary and the combination of them in HCL produces the best segmentation.
|
| 136 |
+
|
| 137 |
+
Table 4: Experiments on object detection task Cityscapes Foggy Cityscapes (“SF” denotes source-data free, i.e., adaptation without source data).
|
| 138 |
+
|
| 139 |
+
<table><tr><td>Method</td><td>SF</td><td>person</td><td>rider</td><td>car</td><td>truck</td><td>bus</td><td>train</td><td>mcycle</td><td>bicycle</td><td>mAP</td></tr><tr><td>DA [13]</td><td></td><td>25.0</td><td>31.0</td><td>40.5</td><td>22.1</td><td>35.3</td><td>20.2</td><td>20.0</td><td>27.1</td><td>27.6</td></tr><tr><td>MLDA [83]</td><td></td><td>33.2</td><td>44.2</td><td>44.8</td><td>28.2</td><td>41.8</td><td>28.7</td><td>30.5</td><td>36.5</td><td>36.0</td></tr><tr><td>DMA [37]</td><td></td><td>30.8</td><td>40.5</td><td>44.3</td><td>27.2</td><td>38.4</td><td>34.5</td><td>28.4</td><td>32.2</td><td>34.6</td></tr><tr><td>CAFA [27]</td><td></td><td>41.9</td><td>38.7</td><td>56.7</td><td>22.6</td><td>41.5</td><td>26.8</td><td>24.6</td><td>35.5</td><td>36.0</td></tr><tr><td>SWDA [65]</td><td></td><td>36.2</td><td>35.3</td><td>43.5</td><td>30.0</td><td>29.9</td><td>42.3</td><td>32.6</td><td>24.5</td><td>34.3</td></tr><tr><td>CRDA [84]</td><td>xxxxxx</td><td>32.9</td><td>43.8</td><td>49.2</td><td>27.2</td><td>45.1</td><td>36.4</td><td>30.3</td><td>34.6</td><td>37.4</td></tr><tr><td>SFOD [43]</td><td>1</td><td>25.5</td><td>44.5</td><td>40.7</td><td>33.2</td><td>22.2</td><td>28.4</td><td>34.1</td><td>39.0</td><td>33.5</td></tr><tr><td>+HCL</td><td></td><td>39.3</td><td>46.7</td><td>48.6</td><td>32.9</td><td>46.2</td><td>38.2</td><td>33.9</td><td>36.9</td><td>40.3</td></tr><tr><td>HCL</td><td>√</td><td>38.7</td><td>46.0</td><td>47.9</td><td>33.0</td><td>45.7</td><td>38.9</td><td>32.8</td><td>34.9</td><td>39.7</td></tr></table>
|
| 140 |
+
|
| 141 |
+
Table 5: Experiments on object detection task Cityscapes $ \mathrm { B D D 1 0 0 k }$ (“SF” denotes source-data free, i.e., adaptation without source data).
|
| 142 |
+
|
| 143 |
+
<table><tr><td>Method</td><td>SF</td><td>person</td><td>rider</td><td>car</td><td>truck</td><td>bus</td><td>mcycle</td><td>bicycle</td><td>mAP</td></tr><tr><td>DA[13]</td><td>X</td><td>29.4</td><td>26.5</td><td>44.6</td><td>14.3</td><td>16.8</td><td>15.8</td><td>20.6</td><td>24.0</td></tr><tr><td rowspan="3">SWDA [65] CRDA [84]</td><td></td><td>30.2</td><td>29.5</td><td>45.7</td><td>15.2</td><td>18.4</td><td>17.1</td><td>21.2</td><td>25.3</td></tr><tr><td>X</td><td>31.4</td><td>31.3</td><td>46.3</td><td>19.5</td><td>18.9</td><td>17.3</td><td>23.8</td><td>26.9</td></tr><tr><td>·</td><td>32.4</td><td>32.6</td><td>50.4</td><td>20.6</td><td>23.4</td><td>18.9</td><td>25.0</td><td>29.0</td></tr><tr><td>SFOD [43] +HCL</td><td></td><td>33.9</td><td>34.4</td><td>52.8</td><td>22.1</td><td>25.3</td><td>22.6</td><td>26.7</td><td>31.1</td></tr><tr><td>HCL</td><td>√</td><td>32.7</td><td>33.2</td><td>52.0</td><td>21.3</td><td>25.6</td><td>21.5</td><td>26.0</td><td>30.3</td></tr></table>
|
| 144 |
+
|
| 145 |
+
# 4.4 Unsupervised Domain Adaptation for Object Detection
|
| 146 |
+
|
| 147 |
+
We evaluated the proposed HCL over the UMA-based object detection tasks Cityscapes $\mathrm { : F o g g y }$ Cityscapes and Cityscapes $ \mathrm { B D D 1 0 0 k }$ . Tables 4 and 5 show experimental results. We can observe that HCL outperforms state-of-the-art UMA method SFOD clearly. Similar to the semantic segmentation experiments, HCL achieves competitive performance as compared with state-of-the-art UDA methods (labeled by ✗in column SF) which require to access labeled source data in training.
|
| 148 |
+
|
| 149 |
+
# 4.5 Unsupervised Domain Adaptation for Image Classification
|
| 150 |
+
|
| 151 |
+
We evaluate the proposed HCL over the UMA-based image classificat tasks VisDA17 and Office-31. Tables 6 and 7 show experimental results. We can observe that HCL outperforms state-of-the-art UMA methods clearly. Similar to the semantic segmentation and object detection experiments, HCL achieves competitive performance as compared with state-of-the-art UDA methods (labeled by $\pmb { \chi }$ ) which require to access labeled source data in training.
|
| 152 |
+
|
| 153 |
+
# 4.6 Discussion
|
| 154 |
+
|
| 155 |
+
Generalization across computer vision tasks: We study how HCL generalizes across computer vision tasks by evaluating it over three representative tasks on semantic segmentation, object detection and image classification. Experiments in Tables 2- 7 show that HCL achieves competitive performance consistently across all three visual tasks, demonstrating the generalization ability of HCL across computer vision tasks.
|
| 156 |
+
|
| 157 |
+
Complementarity studies: We study the complementarity of our proposed HCL by combining it with existing UMA methods. Experiments in Table 2 (the row highlighted by $\ " + \mathrm { H C L } \ '$ ) shows that incorporating HCL boosts the existing UMA methods consistently.
|
| 158 |
+
|
| 159 |
+
Table 6: Experiments on image classification benchmark VisDA17 (“SF” denotes source-data free, i.e., adaptation without source data).
|
| 160 |
+
|
| 161 |
+
<table><tr><td>Method</td><td>SF</td><td>Aero</td><td>Bike</td><td>Bus</td><td>Car</td><td>Horse</td><td>Knife</td><td>Motor</td><td>Person</td><td>Plant</td><td>Skateboard</td><td>Train</td><td>Truck</td><td>Mean</td></tr><tr><td>DANN [17]</td><td></td><td>81.9</td><td>77.7</td><td>82.8</td><td>44.3</td><td>81.2</td><td>29.5</td><td>65.1</td><td>28.6</td><td>51.9</td><td>54.6</td><td>82.8</td><td>7.8</td><td>57.4</td></tr><tr><td>ENT[18]</td><td></td><td>80.3</td><td>75.5</td><td>75.8</td><td>48.3</td><td>77.9</td><td>27.3</td><td>69.7</td><td>40.2</td><td>46.5</td><td>46.6</td><td>79.3</td><td>16.0</td><td>57.0</td></tr><tr><td>MCD [66]</td><td></td><td>87.0</td><td>60.9</td><td>83.7</td><td>64.0</td><td>88.9</td><td>79.6</td><td>84.7</td><td>76.9</td><td>88.6</td><td>40.3</td><td>83.0</td><td>25.8</td><td>71.9</td></tr><tr><td>CBST [103]</td><td></td><td>87.2</td><td>78.8</td><td>56.5</td><td>55.4</td><td>85.1</td><td>79.2</td><td>83.8</td><td>77.7</td><td>82.8</td><td>88.8</td><td>69.0</td><td>72.0</td><td>76.4</td></tr><tr><td>CRST[102]</td><td>xxxxx</td><td>88.0</td><td>79.2</td><td>61.0</td><td>60.0</td><td>87.5</td><td>81.4</td><td>86.3</td><td>78.8</td><td>85.6</td><td>86.6</td><td>73.9</td><td>68.8</td><td>78.1</td></tr><tr><td>3C-GAN [42]</td><td>√</td><td>94.8</td><td>73.4</td><td>68.8</td><td>74.8</td><td>93.1</td><td>95.4</td><td>88.6</td><td>84.7</td><td>89.1</td><td>84.7</td><td>83.5</td><td>48.1</td><td>81.6</td></tr><tr><td>+HCL</td><td>√</td><td>93.8</td><td>86.6</td><td>84.1</td><td>74.3</td><td>93.2</td><td>95.0</td><td>88.4</td><td>85.0</td><td>90.4</td><td>85.2</td><td>84.5</td><td>49.8</td><td>84.2</td></tr><tr><td>SHOT[45]</td><td>√</td><td>93.7</td><td>86.4</td><td>78.7</td><td>50.7</td><td>91.0</td><td>93.5</td><td>79.0</td><td>78.3</td><td>89.2</td><td>85.4</td><td>87.9</td><td>51.1</td><td>80.4</td></tr><tr><td>+HCL</td><td>√</td><td>94.3</td><td>87.0</td><td>82.6</td><td>70.6</td><td>92.0</td><td>93.2</td><td>87.0</td><td>80.6</td><td>89.6</td><td>86.8</td><td>84.6</td><td>58.7</td><td>83.9</td></tr><tr><td>HCL</td><td>√</td><td>93.3</td><td>85.4</td><td>80.7</td><td>68.5</td><td>91.0</td><td>88.1</td><td>86.0</td><td>78.6</td><td>86.6</td><td>88.8</td><td>80.0</td><td>74.7</td><td>83.5</td></tr></table>
|
| 162 |
+
|
| 163 |
+
Table 7: Experiments on image classification benchmark Office-31 (“SF” denotes source-data free, i.e., adaptation without source data).
|
| 164 |
+
|
| 165 |
+
<table><tr><td>Method</td><td>SF</td><td>A→W</td><td>D→W</td><td>W→D</td><td>A→D</td><td>D→A</td><td>W→A</td><td>Mean</td></tr><tr><td>DAN [49]</td><td></td><td>80.5</td><td>97.1</td><td>99.6</td><td>78.6</td><td>63.6</td><td>62.8</td><td>80.4</td></tr><tr><td>DANN [17]</td><td></td><td>82.0</td><td>96.9</td><td>99.1</td><td>79.7</td><td>68.2</td><td>67.4</td><td>82.2</td></tr><tr><td>ADDA [78]</td><td></td><td>86.2</td><td>96.2</td><td>98.4</td><td>77.8</td><td>69.5</td><td>68.9</td><td>82.9</td></tr><tr><td>JAN [50]</td><td></td><td>85.4</td><td>97.4</td><td>99.8</td><td>84.7</td><td>68.6</td><td>70.0</td><td>84.3</td></tr><tr><td>CBST[103]</td><td></td><td>87.8</td><td>98.5</td><td>100</td><td>86.5</td><td>71.2</td><td>70.9</td><td>85.8</td></tr><tr><td>CRST[102]</td><td>xxxxxx</td><td>89.4</td><td>98.9</td><td>100</td><td>88.7</td><td>72.6</td><td>70.9</td><td>86.8</td></tr><tr><td>3C-GAN [42]</td><td></td><td>93.7</td><td>98.5</td><td>99.8</td><td>92.7</td><td>75.3</td><td>77.8</td><td>89.6</td></tr><tr><td>+HCL</td><td>V</td><td>93.4</td><td>99.3</td><td>100.0</td><td>94.6</td><td>77.1</td><td>79.0</td><td>90.6</td></tr><tr><td>SHOT[45]</td><td></td><td>91.2</td><td>98.3</td><td>99.9</td><td>90.6</td><td>72.5</td><td>71.4</td><td>87.3</td></tr><tr><td>+HCL</td><td>1</td><td>92.8</td><td>99.0</td><td>100.0</td><td>94.4</td><td>76.1</td><td>78.3</td><td>90.1</td></tr><tr><td>HCL</td><td>√</td><td>92.5</td><td>98.2</td><td>100.0</td><td>94.7</td><td>75.9</td><td>77.7</td><td>89.8</td></tr></table>
|
| 166 |
+
|
| 167 |
+
Feature visualization: This paragraph presents the t-SNE [53] visualization of feature representation on GTA Cityscapes model adaptation task. We compare HCL with two state-of-the-art UMA methods, i.e., “UR" [72] and “SFDA" [48], and Fig.3 shows the visualization. We can observe that HCL can learn desirable instance-discriminative yet category-discriminative representations because it incorporates two key designs that work in a complementary manner: 1) HCID works at instance level, which encourages to learn instance-discriminative target representations that generalize well to unseen data [98]; 2) HCCD works at category level which encourages to learn category-discriminative target representations that are well aligned with the objective of down-stream visual tasks. In addition, qualitative illustrations are provided in Fig.4. It can be observed that our proposed HCL clearly outperforms UR and SFDA.
|
| 168 |
+
|
| 169 |
+
Generalization across learning setups: We study how HCL generalizes across learning setups by adapting it into two adaptation setups, i.e., partial-set adaptation and open-set adaptation. Experiments in Table 8 show that HCL achieves competitive performance consistently across both setups.
|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
Figure 3: The t-SNE [53] visualization of feature representation on $\mathrm { { G T A } }$ Cityscapes unsupervsied model adaptation task: Each color in the graphs stands for a category of samples (image pixels) with a digit representing the center of a category of samples. It can be observed that the proposed HCL outperforms “UR" and “SFDA" qualitatively, by generating instance-discriminative and categorydiscriminative representations for unlabeled target data.
|
| 173 |
+
|
| 174 |
+
Table 8: Experiments on image classification benchmark Office-Home under the setup of partial-set DA (domain adaptation) and open-set DA (“SF” denotes source-data free, i.e., adaptation without source data).
|
| 175 |
+
|
| 176 |
+
<table><tr><td>Partial-set DA</td><td>SF</td><td>A→C</td><td>A→P</td><td>A→R</td><td>C→A</td><td>C→P</td><td>C→R</td><td>P→A</td><td>P→C</td><td>P→R</td><td>R→A</td><td>R→C</td><td>R→P</td><td>Mean</td></tr><tr><td>SAN[5]</td><td>X</td><td>44.4</td><td>68.7</td><td>74.6</td><td>67.5</td><td>65.0</td><td>77.8</td><td>59.8</td><td>44.7</td><td>80.1</td><td>72.2</td><td>50.2</td><td>78.7</td><td>65.3</td></tr><tr><td>ETN [6]</td><td>×</td><td>59.2</td><td>77.0</td><td>79.5</td><td>62.9</td><td>65.7</td><td>75.0</td><td>68.3</td><td>55.4</td><td>84.4</td><td>75.7</td><td>57.7</td><td>84.5</td><td>70.5</td></tr><tr><td>SAFN [85]</td><td>X</td><td>58.9</td><td>76.3</td><td>81.4</td><td>70.4</td><td>73.0</td><td>77.8</td><td>72.4</td><td>55.3</td><td>80.4</td><td>75.8</td><td>60.4</td><td>79.9</td><td>71.8</td></tr><tr><td>SHOT [45]</td><td></td><td>57.9</td><td>83.6</td><td>88.8</td><td>72.4</td><td>74.0</td><td>79.0</td><td>76.1</td><td>60.6</td><td>90.1</td><td>81.9</td><td>68.3</td><td>88.5</td><td>76.8</td></tr><tr><td>+HCL</td><td>·</td><td>66.9</td><td>85.5</td><td>92.5</td><td>78.3</td><td>77.2</td><td>87.1</td><td>78.3</td><td>65.1</td><td>90.7</td><td>82.4</td><td>68.7</td><td>88.4</td><td>80.1</td></tr><tr><td>HCL</td><td>√</td><td>65.6</td><td>85.2</td><td>92.7</td><td>77.3</td><td>76.2</td><td>87.2</td><td>78.2</td><td>66.0</td><td>89.1</td><td>81.5</td><td>68.4</td><td>87.3</td><td>79.6</td></tr><tr><td>Open-set DA</td><td>SF</td><td>A→C</td><td>A→P</td><td>A→R</td><td>C→A</td><td>C→P</td><td>C→R</td><td>P→A</td><td>P→C</td><td>P→R</td><td>R→A</td><td>R→C</td><td>R→P</td><td>Mean</td></tr><tr><td>OSBP[67]</td><td>X</td><td>56.7</td><td>51.5</td><td>49.2</td><td>67.5</td><td>65.5</td><td>74.0</td><td>62.5</td><td>64.8</td><td>69.3</td><td>80.6</td><td>74.7</td><td>71.5</td><td>65.7</td></tr><tr><td>OpenMax [2]</td><td></td><td>56.5</td><td>52.9</td><td>53.7</td><td>69.1</td><td>64.8</td><td>74.5</td><td>64.1</td><td>64.0</td><td>71.2</td><td>80.3</td><td>73.0</td><td>76.9</td><td>66.7</td></tr><tr><td>STA [47]</td><td>X</td><td>58.1</td><td>53.1</td><td>54.4</td><td>71.6</td><td>69.3</td><td>81.9</td><td>63.4</td><td>65.2</td><td>74.9</td><td>85.0</td><td>75.8</td><td>80.8</td><td>69.5</td></tr><tr><td>SHOT[45]</td><td></td><td>62.5</td><td>77.8</td><td>83.9</td><td>60.9</td><td>73.4</td><td>79.4</td><td>64.7</td><td>58.7</td><td>83.1</td><td>69.1</td><td>62.0</td><td>82.1</td><td>71.5</td></tr><tr><td>+HCL</td><td>1</td><td>64.2</td><td>78.3</td><td>83.0</td><td>61.1</td><td>72.2</td><td>79.6</td><td>65.5</td><td>59.3</td><td>80.6</td><td>80.1</td><td>72.0</td><td>82.8</td><td>73.2</td></tr><tr><td>HCL</td><td>√</td><td>64.0</td><td>78.6</td><td>82.4</td><td>64.5</td><td>73.1</td><td>80.1</td><td>64.8</td><td>59.8</td><td>75.3</td><td>78.1</td><td>69.3</td><td>81.5</td><td>72.6</td></tr></table>
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 4: Qualitative illustrations and comparison over domain adaptive semantic segmentation task $\mathrm { G T A } 5 $ Cityscapes. Our historical contrastive learning (HCL) exploits historical source hypothesis to make up for the absence of source data in UMA, which produces better qualitative results (i.e., semantic segmentation) by preserving the source hypothesis. It can be observed that HCL generates better segmentation results, for example, the sidewalk in the first row, the road in the second row and the sky and sidewalk in the third row.
|
| 180 |
+
|
| 181 |
+
# 5 Conclusion
|
| 182 |
+
|
| 183 |
+
In this work, we studied historical contrastive learning, an innovative UMA technique that exploits historical source hypothesis to make up for the absence of source data in UMA. We achieve historical contrastive learning by novel designs of historical contrastive instance discrimination and historical contrastive category discrimination which learn discriminative representations for target data while preserving source hypothesis simultaneously. Extensive experiments over a variety of visual tasks and learning setups show that HCL outperforms state-of-the-art techniques consistently. Moving forward, we will explore memory-based learning in other transfer learning tasks.
|
| 184 |
+
|
| 185 |
+
# Acknowledgement
|
| 186 |
+
|
| 187 |
+
This research was conducted at Singtel Cognitive and Artificial Intelligence Lab for Enterprises (SCALE $@$ NTU), which is a collaboration between Singapore Telecommunications Limited (Singtel) and Nanyang Technological University (NTU) that is supported by $\mathbf { A } { ^ { * } \mathbf { S } } \mathbf { T } \mathbf { A } \mathbf { R }$ under its Industry Alignment Fund (LOA Award number: I1701E0013).
|
| 188 |
+
|
| 189 |
+
References
|
| 190 |
+
[1] Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In Advances in neural information processing systems, pages 137–144, 2007.
|
| 191 |
+
[2] Abhijit Bendale and Terrance E Boult. Towards open set deep networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1563–1572, 2016.
|
| 192 |
+
[3] Léon Bottou. Large-scale machine learning with stochastic gradient descent. In Proceedings of COMPSTAT’2010, pages 177–186. Springer, 2010. [4] Qi Cai, Yingwei Pan, Chong-Wah Ngo, Xinmei Tian, Lingyu Duan, and Ting Yao. Exploring object relation in mean teacher for cross-domain detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11457–11466, 2019. [5] Zhangjie Cao, Mingsheng Long, Jianmin Wang, and Michael I Jordan. Partial transfer learning with selective adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2724–2732, 2018. [6] Zhangjie Cao, Kaichao You, Mingsheng Long, Jianmin Wang, and Qiang Yang. Learning to transfer examples for partial domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2985–2994, 2019.
|
| 193 |
+
[7] Hyuntak Cha, Jaeho Lee, and Jinwoo Shin. Co2l: Contrastive continual learning. arXiv preprint arXiv:2106.14413, 2021. [8] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834–848, 2017. [9] Shiming Chen, Wenjie Wang, Beihao Xia, Qinmu Peng, Xinge You, Feng Zheng, and Ling Shao. Free: Feature refinement for generalized zero-shot learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 122–131, 2021.
|
| 194 |
+
[10] Shiming Chen, GuoSen Xie, Yang Liu, Qinmu Peng, Baigui Sun, Hao Li, Xinge You, and Ling Shao. Hsva: Hierarchical semantic-visual adaptation for zero-shot learning. In 35th Conference on Neural Information Processing Systems (NeurIPS), 2021.
|
| 195 |
+
[11] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020.
|
| 196 |
+
[12] Yanbei Chen, Xiatian Zhu, and Shaogang Gong. Semi-supervised deep learning with memory. In Proceedings of the European Conference on Computer Vision (ECCV), pages 268–283, 2018.
|
| 197 |
+
[13] Yuhua Chen, Wen Li, Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Domain adaptive faster r-cnn for object detection in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3339–3348, 2018.
|
| 198 |
+
[14] Yuhua Chen, Wen Li, and Luc Van Gool. Road: Reality oriented adaptation for semantic segmentation of urban scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7892–7901, 2018.
|
| 199 |
+
[15] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213–3223, 2016.
|
| 200 |
+
[16] Geoffrey French, Michal Mackiewicz, and Mark Fisher. Self-ensembling for visual domain adaptation. arXiv preprint arXiv:1706.05208, 2017.
|
| 201 |
+
[17] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016.
|
| 202 |
+
[18] Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pages 529–536, 2005.
|
| 203 |
+
[19] Dayan Guan, Jiaxing Huang, Shijian Lu, and Aoran Xiao. Scale variance minimization for unsupervised domain adaptation in image segmentation. Pattern Recognition, 112:107764, 2021.
|
| 204 |
+
[20] Dayan Guan, Jiaxing Huang, Aoran Xiao, and Shijian Lu. Domain adaptive video segmentation via temporal consistency regularization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8053–8064, 2021.
|
| 205 |
+
[21] Dayan Guan, Jiaxing Huang, Aoran Xiao, Shijian Lu, and Yanpeng Cao. Uncertainty-aware unsupervised domain adaptation in object detection. IEEE Transactions on Multimedia, 2021.
|
| 206 |
+
[22] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9729–9738, 2020.
|
| 207 |
+
[23] 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.
|
| 208 |
+
[24] 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.
|
| 209 |
+
[25] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. In International Conference on Machine Learning, pages 1989–1998, 2018.
|
| 210 |
+
[26] Weixiang Hong, Zhenzhen Wang, Ming Yang, and Junsong Yuan. Conditional generative adversarial network for structured domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1335–1344, 2018.
|
| 211 |
+
[27] Cheng-Chun Hsu, Yi-Hsuan Tsai, Yen-Yu Lin, and Ming-Hsuan Yang. Every pixel matters: Center-aware feature alignment for domain adaptive object detector. In European Conference on Computer Vision, pages 733–748. Springer, 2020.
|
| 212 |
+
[28] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700–4708, 2017.
|
| 213 |
+
[29] Jiaxing Huang, Dayan Guan, Shijian Lu, and Aoran Xiao. Mlan: Multi-level adversarial network for domain adaptive semantic segmentation. Pattern Recognition, 2021.
|
| 214 |
+
[30] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Category contrast for unsupervised domain adaptation in visual tasks. arXiv preprint arXiv:2106.02885, 2021.
|
| 215 |
+
[31] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Cross-view regularization for domain adaptive panoptic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10133–10144, 2021.
|
| 216 |
+
[32] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Fsdr: Frequency space domain randomization for domain generalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6891–6902, 2021.
|
| 217 |
+
[33] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Rda: Robust domain adaptation via fourier adversarial attacking. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2021.
|
| 218 |
+
[34] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Semi-supervised domain adaptation via adaptive and progressive feature alignment. arXiv preprint arXiv:2106.02845, 2021.
|
| 219 |
+
[35] Jiaxing Huang, Shijian Lu, Dayan Guan, and Xiaobing Zhang. Contextual-relation consistent domain adaptation for semantic segmentation. In European Conference on Computer Vision, pages 705–722. Springer, 2020.
|
| 220 |
+
[36] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. arXiv preprint arXiv:2004.11362, 2020.
|
| 221 |
+
[37] Taekyung Kim, Minki Jeong, Seunghyeon Kim, Seokeon Choi, and Changick Kim. Diversify and match: A domain adaptive representation learning paradigm for object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12456–12465, 2019.
|
| 222 |
+
[38] Jogendra Nath Kundu, Naveen Venkat, R Venkatesh Babu, et al. Universal source-free domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4544– 4553, 2020.
|
| 223 |
+
[39] Jogendra Nath Kundu, Naveen Venkat, Ambareesh Revanur, R Venkatesh Babu, et al. Towards inheritable models for open-set domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12376–12385, 2020.
|
| 224 |
+
[40] Vinod K Kurmi, Venkatesh K Subramanian, and Vinay P Namboodiri. Domain impression: A source data free domain adaptation method. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 615–625, 2021.
|
| 225 |
+
[41] Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. arXiv preprint arXiv:1610.02242, 2016.
|
| 226 |
+
[42] Rui Li, Qianfen Jiao, Wenming Cao, Hau-San Wong, and Si Wu. Model adaptation: Unsupervised domain adaptation without source data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9641–9650, 2020.
|
| 227 |
+
[43] Xianfeng Li, Weijie Chen, Di Xie, Shicai Yang, Peng Yuan, Shiliang Pu, and Yueting Zhuang. A free lunch for unsupervised domain adaptive object detection without source data. arXiv preprint arXiv:2012.05400, 2020.
|
| 228 |
+
[44] Yunsheng Li, Lu Yuan, and Nuno Vasconcelos. Bidirectional learning for domain adaptation of semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6936–6945, 2019.
|
| 229 |
+
[45] Jian Liang, Dapeng Hu, and Jiashi Feng. Do we really need to access the source data? source hypothesis transfer for unsupervised domain adaptation. In International Conference on Machine Learning, pages 6028–6039. PMLR, 2020.
|
| 230 |
+
[46] Jian Liang, Dapeng Hu, Yunbo Wang, Ran He, and Jiashi Feng. Source data-absent unsupervised domain adaptation through hypothesis transfer and labeling transfer. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021.
|
| 231 |
+
[47] Hong Liu, Zhangjie Cao, Mingsheng Long, Jianmin Wang, and Qiang Yang. Separate to adapt: Open set domain adaptation via progressive separation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2927–2936, 2019.
|
| 232 |
+
[48] Yuang Liu, Wei Zhang, and Jun Wang. Source-free domain adaptation for semantic segmentation. arXiv preprint arXiv:2103.16372, 2021.
|
| 233 |
+
[49] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael Jordan. Learning transferable features with deep adaptation networks. In International Conference on Machine Learning, pages 97–105, 2015.
|
| 234 |
+
[50] Mingsheng Long, Han Zhu, Jianmin Wang, and Michael I Jordan. Deep transfer learning with joint adaptation networks. In International conference on machine learning, pages 2208–2217. PMLR, 2017.
|
| 235 |
+
[51] Yawei Luo, Liang Zheng, Tao Guan, Junqing Yu, and Yi Yang. Taking a closer look at domain shift: Category-level adversaries for semantics consistent domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2507–2516, 2019.
|
| 236 |
+
[52] Zhipeng Luo, Zhongang Cai, Changqing Zhou, Gongjie Zhang, Haiyu Zhao, Shuai Yi, Shijian Lu, Hongsheng Li, Shanghang Zhang, and Ziwei Liu. Unsupervised domain adaptive 3d detection with multi-level consistency. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8866–8875, 2021.
|
| 237 |
+
[53] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579–2605, 2008.
|
| 238 |
+
[54] Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6707–6717, 2020.
|
| 239 |
+
[55] Hyeonwoo Noh, Seunghoon Hong, and Bohyung Han. Learning deconvolution network for semantic segmentation. In Proceedings of the IEEE international conference on computer vision, pages 1520–1528, 2015.
|
| 240 |
+
[56] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
|
| 241 |
+
[57] Fei Pan, Inkyu Shin, Francois Rameau, Seokju Lee, and In So Kweon. Unsupervised intra-domain adaptation for semantic segmentation through self-supervision. arXiv preprint arXiv:2004.07703, 2020.
|
| 242 |
+
[58] Xingchao Peng, Ben Usman, Neela Kaushik, Dequan Wang, Judy Hoffman, and Kate Saenko. Visda: A synthetic-to-real benchmark for visual domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 2021–2026, 2018.
|
| 243 |
+
[59] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779–788, 2016.
|
| 244 |
+
[60] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91–99, 2015.
|
| 245 |
+
[61] Stephan R Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In European conference on computer vision, pages 102–118. Springer, 2016.
|
| 246 |
+
[62] German Ros, Laura Sellart, Joanna Materzynska, David Vazquez, and Antonio M Lopez. The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3234–3243, 2016.
|
| 247 |
+
[63] Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. Adapting visual category models to new domains. In European conference on computer vision, pages 213–226. Springer, 2010.
|
| 248 |
+
[64] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Adversarial dropout regularization. arXiv preprint arXiv:1711.01575, 2017.
|
| 249 |
+
[65] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Strong-weak distribution alignment for adaptive object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6956–6965, 2019.
|
| 250 |
+
[66] Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, and Tatsuya Harada. Maximum classifier discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3723–3732, 2018.
|
| 251 |
+
[67] Kuniaki Saito, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Open set domain adaptation by backpropagation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 153–168, 2018.
|
| 252 |
+
[68] Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Semantic foggy scene understanding with synthetic data. International Journal of Computer Vision, 126(9):973–992, 2018.
|
| 253 |
+
[69] Fatemeh Sadat Saleh, Mohammad Sadegh Aliakbarian, Mathieu Salzmann, Lars Petersson, and Jose M Alvarez. Effective use of synthetic data for urban scene semantic segmentation. In European Conference on Computer Vision, pages 86–103. Springer, 2018.
|
| 254 |
+
[70] Swami Sankaranarayanan, Yogesh Balaji, Carlos D Castillo, and Rama Chellappa. Generate to adapt: Aligning domains using generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8503–8512, 2018.
|
| 255 |
+
[71] Swami Sankaranarayanan, Yogesh Balaji, Arpit Jain, Ser Nam Lim, and Rama Chellappa. Learning from synthetic data: Addressing domain shift for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3752–3761, 2018.
|
| 256 |
+
[72] Prabhu Teja Sivaprasad and Francois Fleuret. Uncertainty reduction for model adaptation in semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), number CONF. IEEE, 2021.
|
| 257 |
+
[73] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1–9, 2015.
|
| 258 |
+
[74] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Advances in neural information processing systems, pages 1195–1204, 2017.
|
| 259 |
+
[75] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019.
|
| 260 |
+
[76] Yi-Hsuan Tsai, Wei-Chih Hung, Samuel Schulter, Kihyuk Sohn, Ming-Hsuan Yang, and Manmohan Chandraker. Learning to adapt structured output space for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7472–7481, 2018.
|
| 261 |
+
[77] Yi-Hsuan Tsai, Kihyuk Sohn, Samuel Schulter, and Manmohan Chandraker. Domain adaptation for structured output via discriminative patch representations. In Proceedings of the IEEE International Conference on Computer Vision, pages 1456–1465, 2019.
|
| 262 |
+
[78] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7167–7176, 2017.
|
| 263 |
+
[79] Tuan-Hung Vu, Himalaya Jain, Maxime Bucher, Matthieu Cord, and Patrick Pérez. Advent: Adversarial entropy minimization for domain adaptation in semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2517–2526, 2019.
|
| 264 |
+
[80] Guoqiang Wei, Cuiling Lan, Wenjun Zeng, Zhizheng Zhang, and Zhibo Chen. Toalign: Task-oriented alignment for unsupervised domain adaptation. 35th Advances in Neural Information Processing Systems, 2021.
|
| 265 |
+
[81] Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014.
|
| 266 |
+
[82] 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.
|
| 267 |
+
[83] Rongchang Xie, Fei Yu, Jiachao Wang, Yizhou Wang, and Li Zhang. Multi-level domain adaptive learning for cross-domain detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, Oct 2019.
|
| 268 |
+
[84] Chang-Dong Xu, Xing-Ran Zhao, Xin Jin, and Xiu-Shen Wei. Exploring categorical regularization for domain adaptive object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11724–11733, 2020.
|
| 269 |
+
[85] Ruijia Xu, Guanbin Li, Jihan Yang, and Liang Lin. Larger norm more transferable: An adaptive feature norm approach for unsupervised domain adaptation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1426–1435, 2019.
|
| 270 |
+
[86] Yanchao Yang and Stefano Soatto. Fda: Fourier domain adaptation for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4085– 4095, 2020.
|
| 271 |
+
[87] Mang Ye, Xu Zhang, Pong C Yuen, and Shih-Fu Chang. Unsupervised embedding learning via invariant and spreading instance feature. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6210–6219, 2019.
|
| 272 |
+
[88] Hao-Wei Yeh, Baoyao Yang, Pong C Yuen, and Tatsuya Harada. Sofa: Source-data-free feature alignment for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 474–483, 2021.
|
| 273 |
+
[89] Fisher Yu, Wenqi Xian, Yingying Chen, Fangchen Liu, Mike Liao, Vashisht Madhavan, and Trevor Darrell. Bdd100k: A diverse driving video database with scalable annotation tooling. arXiv preprint arXiv:1805.04687, 2(5):6, 2018.
|
| 274 |
+
[90] Yunpeng Zhai, Shijian Lu, Qixiang Ye, Xuebo Shan, Jie Chen, Rongrong Ji, and Yonghong Tian. Adcluster: Augmented discriminative clustering for domain adaptive person re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9021–9030, 2020.
|
| 275 |
+
[91] Yunpeng Zhai, Qixiang Ye, Shijian Lu, Mengxi Jia, Rongrong Ji, and Yonghong Tian. Multiple expert brainstorming for domain adaptive person re-identification. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part VII 16, pages 594–611. Springer, 2020.
|
| 276 |
+
[92] Fangneng Zhan, Chuhui Xue, and Shijian Lu. Ga-dan: Geometry-aware domain adaptation network for scene text detection and recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9105–9115, 2019.
|
| 277 |
+
[93] Jingyi Zhang, Jiaxing Huang, and Shijian Lu. Spectral unsupervised domain adaptation for visual recognition. arXiv preprint arXiv:2106.06112, 2021.
|
| 278 |
+
[94] Jingyi Zhang, Jiaxing Huang, Zhipeng Luo, Gongjie Zhang, and Shijian Lu. Da-detr: Domain adaptive detection transformer by hybrid attention. arXiv preprint arXiv:2103.17084, 2021.
|
| 279 |
+
[95] Xiaobing Zhang, Haigang Gong, Xili Dai, Fan Yang, Nianbo Liu, and Ming Liu. Understanding pictograph with facial features: End-to-end sentence-level lip reading of chinese. In AAAI, pages 9211–9218, 2019.
|
| 280 |
+
[96] Yang Zhang, Philip David, and Boqing Gong. Curriculum domain adaptation for semantic segmentation of urban scenes. In Proceedings of the IEEE International Conference on Computer Vision, pages 2020–2030, 2017.
|
| 281 |
+
[97] Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4320–4328, 2018.
|
| 282 |
+
[98] Nanxuan Zhao, Zhirong Wu, Rynson W. H. Lau, and Stephen Lin. What makes instance discrimination good for transfer learning? In International Conference on Learning Representations, 2021.
|
| 283 |
+
[99] Zhedong Zheng and Yi Yang. Unsupervised scene adaptation with memory regularization in vivo. arXiv preprint arXiv:1912.11164, 2019.
|
| 284 |
+
[100] Zhun Zhong, Liang Zheng, Zhiming Luo, Shaozi Li, and Yi Yang. Invariance matters: Exemplar memory for domain adaptive person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 598–607, 2019.
|
| 285 |
+
[101] Chengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6002–6012, 2019.
|
| 286 |
+
[102] Yang Zou, Zhiding Yu, Xiaofeng Liu, BVK Kumar, and Jinsong Wang. Confidence regularized selftraining. In Proceedings of the IEEE International Conference on Computer Vision, pages 5982–5991, 2019.
|
| 287 |
+
[103] Yang Zou, Zhiding Yu, BVK Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic segmentation via class-balanced self-training. In Proceedings of the European Conference on Computer Vision (ECCV), pages 289–305, 2018.
|
parse/train/0zXJRJecC_/0zXJRJecC__content_list.json
ADDED
|
@@ -0,0 +1,1064 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Model Adaptation: Historical Contrastive Learning for Unsupervised Domain Adaptation without Source Data ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
178,
|
| 8 |
+
122,
|
| 9 |
+
820,
|
| 10 |
+
196
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jiaxing Huang, Dayan Guan, Aoran Xiao, Shijian Lu∗ School of Computer Science Engineering, Nanyang Technological University {Jiaxing.Huang, Dayan.Guan, Aoran.Xiao, Shijian.Lu}@ntu.edu.sg ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
245,
|
| 19 |
+
246,
|
| 20 |
+
753,
|
| 21 |
+
289
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
324,
|
| 32 |
+
535,
|
| 33 |
+
340
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Unsupervised domain adaptation aims to align a labeled source domain and an unlabeled target domain, but it requires to access the source data which often raises concerns in data privacy, data portability and data transmission efficiency. We study unsupervised model adaptation (UMA), or called Unsupervised Domain Adaptation without Source Data, an alternative setting that aims to adapt source-trained models towards target distributions without accessing source data. To this end, we design an innovative historical contrastive learning (HCL) technique that exploits historical source hypothesis to make up for the absence of source data in UMA. HCL addresses the UMA challenge from two perspectives. First, it introduces historical contrastive instance discrimination (HCID) that learns from target samples by contrasting their embeddings which are generated by the currently adapted model and the historical models. With the historical models, HCID encourages UMA to learn instance-discriminative target representations while preserving the source hypothesis. Second, it introduces historical contrastive category discrimination (HCCD) that pseudo-labels target samples to learn category-discriminative target representations. Specifically, HCCD re-weights pseudo labels according to their prediction consistency across the current and historical models. Extensive experiments show that HCL outperforms and state-of-the-art methods consistently across a variety of visual tasks and setups. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
358,
|
| 43 |
+
766,
|
| 44 |
+
619
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
650,
|
| 55 |
+
310,
|
| 56 |
+
667
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep neural networks (DNNs) [28, 73, 23] have achieved great success in various computer vision tasks [8, 55, 60, 59, 28, 73, 23] but often generalize poorly to new domains due to the inter-domain discrepancy [1]. Unsupervised domain adaptation (UDA) [78, 51, 76, 64, 66, 79, 77, 103, 102, 25, 71, 44, 26, 86] addresses the inter-domain discrepancy by aligning the source and target data distributions, but it requires to access the source-domain data which often raises concerns in data privacy, data portability, and data transmission efficiency. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
683,
|
| 66 |
+
825,
|
| 67 |
+
766
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In this work, we study unsupervised model adaptation (UMA), an alternative setting that aims to adapt source-trained models to fit target data distribution without accessing the source-domain data. Under the UMA setting, the only information carried forward is a portable source-trained model which is usually much smaller than the source-domain data and can be transmitted more efficiently [45, 42, 43, 72, 48] as illustrated in Table 1. Beyond that, the UMA setting also alleviates the concern of data privacy and intellectual property effectively. On the other hand, the absence of the labeled source-domain data makes domain adaptation much more challenging and susceptible to collapse. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
773,
|
| 77 |
+
825,
|
| 78 |
+
871
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "table",
|
| 84 |
+
"img_path": "images/1ce920a0a2b185e5c3db3ef1d6e40136100febf543a2af0e89856c1c233f4304.jpg",
|
| 85 |
+
"table_caption": [
|
| 86 |
+
"Table 1: Source data have much larger sizes than source-trained models. "
|
| 87 |
+
],
|
| 88 |
+
"table_footnote": [],
|
| 89 |
+
"table_body": "<table><tr><td rowspan=\"2\">Storage size (MB)</td><td colspan=\"2\">Semantic segmentation</td><td>Object detection</td><td>Image classification</td></tr><tr><td>GTA5</td><td>SYNTHIA</td><td>Cityscapes</td><td>VisDA17</td></tr><tr><td>Source dataset</td><td>62,873.6</td><td>22,323.2</td><td>12,697.6</td><td>7,884.8</td></tr><tr><td>Source-trained model</td><td>179.1</td><td>179.1</td><td>553.4</td><td>172.6</td></tr></table>",
|
| 90 |
+
"bbox": [
|
| 91 |
+
238,
|
| 92 |
+
111,
|
| 93 |
+
753,
|
| 94 |
+
176
|
| 95 |
+
],
|
| 96 |
+
"page_idx": 1
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"type": "text",
|
| 100 |
+
"text": "To this end, we develop historical contrastive learning (HCL) that aims to make up for the absence of source data by adapting the source-trained model to fit target data distribution without forgetting source hypothesis, as illustrated in Fig. 1. HCL addresses the UMA challenge from two perspectives. First, it introduces historical contrastive instance discrimination (HCID) that learns target samples by comparing their embeddings generated by the current model (as queries) and those generated by historical models (as keys): a query is pulled close to its positive keys while pushed apart from its negative keys. HCID can thus be viewed as a new type of instance contrastive learning for the task of UMA with historical models, which learns instance-discriminative target representations without forgetting source-domain hypothesis. Second, it introduces historical contrastive category discrimination (HCCD) that pseudo-labels target samples for learning category-discriminative target representations. Specifically, HCCD re-weights the pseudo labels according to their consistency across the current and historical models. ",
|
| 101 |
+
"bbox": [
|
| 102 |
+
173,
|
| 103 |
+
205,
|
| 104 |
+
825,
|
| 105 |
+
369
|
| 106 |
+
],
|
| 107 |
+
"page_idx": 1
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"type": "text",
|
| 111 |
+
"text": "The proposed HCL tackles UMA with three desirable features: 1) It introduces historical contrast and achieves UMA without forgetting source hypothesis; 2) The HCID works at instance level, which encourages to learn instance-discriminative target representations that generalize well to unseen data [98]; 3) The HCCD works at category level (i.e., output space) which encourages to learn category-discriminative target representation that is well aligned with the objective of down-stream tasks. ",
|
| 112 |
+
"bbox": [
|
| 113 |
+
174,
|
| 114 |
+
377,
|
| 115 |
+
825,
|
| 116 |
+
460
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "The contributions of this work can be summarized in three aspects. First, we investigate memorybased learning for unsupervised model adaptation that learns discriminative representations for unlabeled target data without forgetting source hypothesis. To the best of our knowledge, this is the first work that explores memory-based learning for the task of UMA. Second, we design historical contrastive learning which introduces historical contrastive instance discrimination and category discrimination, the latter is naturally aligned with the objective of UMA. Third, extensive experiments show that the proposed historical contrastive learning outperforms state-of-the-art methods consistently across a variety of visual tasks and setups. ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
467,
|
| 126 |
+
825,
|
| 127 |
+
578
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "2 Related Works ",
|
| 134 |
+
"text_level": 1,
|
| 135 |
+
"bbox": [
|
| 136 |
+
174,
|
| 137 |
+
601,
|
| 138 |
+
330,
|
| 139 |
+
618
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "Our work is closely related to several branches of research in unsupervised model adaptation, domain adaptation, memory-based learning and contrastive learning. ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
174,
|
| 148 |
+
635,
|
| 149 |
+
823,
|
| 150 |
+
662
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "Unsupervised model adaptation aims to adapt a source-trained model to fit target data distributions without accessing source-domain data. This problem has attracted increasing attention recently with a few pioneer studies each of which focuses on a specific visual task. For example, [45, 46] freezes the classifier of source-trained model and performs information maximization on target data for classification model adaptation. [42] tackles classification model adaptation with a conditional GANs that generates training images with target-alike styles and source-alike semantics. [43] presents a self-entropy descent algorithm to improve model adaptation for object detection. [72] reduces the uncertainty of target predictions (by source-trained model) for segmentation model adaptation. [48] introduces data-free knowledge distillation to transfer source-domain knowledge for segmentation model adaptation. Despite the different designs for different tasks, the common motivation of these studies is to make up for the absence of source data in domain adaptation. [40] and [88] tackle source-free domain adaptation from a generative manner by generating samples from the source classes and generating reference distributions, respectively. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
670,
|
| 160 |
+
825,
|
| 161 |
+
849
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "We tackle the absence of source data by a memory mechanism that encourages to memorize source hypothesis during model adaptation. Specifically, we design historical contrastive learning that learns target representations by contrasting historical and currently evolved models. To the best of our knowledge, this is the first work that explores memory mechanism for UMA. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
176,
|
| 170 |
+
856,
|
| 171 |
+
823,
|
| 172 |
+
911
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "${ x _ { s r c } } / { x _ { t g t } }$ : Source/target data $G ^ { t } / G ^ { t - m }$ : Current/historical model ????????/???????? : Source/target feature $f ^ { t } / f ^ { t - m }$ Current/historical feature: ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
183,
|
| 181 |
+
89,
|
| 182 |
+
517,
|
| 183 |
+
114
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "image",
|
| 189 |
+
"img_path": "images/a7b73cae93218e46b16f87ef85b82645c03ffed18ea4ededb7c1b6796d7b9609.jpg",
|
| 190 |
+
"image_caption": [
|
| 191 |
+
"Figure 1: Illustration of unsupervised domain adaptation, unsupervised model adaptation and the proposed historical contrastive learning which exploits historical source hypothesis (or memorized knowledge) to make up for the absence of source supervision in the process of UMA. Here the historical source hypothesis could be the original source hypothesis $G ^ { 0 }$ (i.e. $\\scriptstyle { \\mathrm { t } } = { \\mathrm { m } }$ , trained using the labeled source data only), the adapted source hypothesis $\\bar { G } ^ { t - m }$ (i.e. $m < t$ , trained in the last $m$ epoch), or other types of previous models. "
|
| 192 |
+
],
|
| 193 |
+
"image_footnote": [],
|
| 194 |
+
"bbox": [
|
| 195 |
+
200,
|
| 196 |
+
121,
|
| 197 |
+
472,
|
| 198 |
+
256
|
| 199 |
+
],
|
| 200 |
+
"page_idx": 2
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"type": "image",
|
| 204 |
+
"img_path": "images/5f47b4088424c1bf835a66b73a5cf9927777552921bdaa0df571f46f0f833254.jpg",
|
| 205 |
+
"image_caption": [
|
| 206 |
+
""
|
| 207 |
+
],
|
| 208 |
+
"image_footnote": [],
|
| 209 |
+
"bbox": [
|
| 210 |
+
522,
|
| 211 |
+
119,
|
| 212 |
+
794,
|
| 213 |
+
253
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "Domain adaptation is related to UMA but it requires to access labeled source data in training. Most existing work handles UDA from three typical approaches. The first exploits adversarial training to align source and target distributions in the feature, output or latent space [78, 51, 76, 14, 96, 64, 66, 79, 34, 77, 35, 21, 94, 29, 10, 9, 80, 20]. The second employs self-training to generate pseudo labels to learn from unlabeled target data iteratively [103, 69, 100, 102, 31, 19, 90, 91]. The third leverages image translation to modify image styles to reduce domain gaps [25, 71, 44, 95, 26, 86, 32, 33, 93, 92]. In addition, [30] proposes a categorical contrastive learning for domain adaptation. ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
173,
|
| 222 |
+
400,
|
| 223 |
+
825,
|
| 224 |
+
498
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "Memory-based learning has been studied extensively. Memory networks [81] as one of early efforts explores to use external modules to store memory for supervised learning. Temporal ensemble [41], as well as a few following works [74, 12] extend the memory mechanism to semi-supervised learning. It employs historical hypothesis/models to regularize the current model and produces stable and competitive predictions. Mean Teacher [74] leverages moving-average models as the memory model to regularize the training, and similar idea was extended for UDA [16, 99, 4, 52]. Mutual learning [97] has also been proposed for learning among multiple peer student models. ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
173,
|
| 233 |
+
503,
|
| 234 |
+
825,
|
| 235 |
+
602
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "Most aforementioned methods require labeled data in training. They do not work very well for UMA due to the absence of supervision from the labeled source data, by either collapsing in training or helping little in model adaptation performance. We design innovative historical contrastive learning to make up for the absence of the labeled source data, more details to be presented in the ensuing subsections. ",
|
| 242 |
+
"bbox": [
|
| 243 |
+
174,
|
| 244 |
+
607,
|
| 245 |
+
825,
|
| 246 |
+
676
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "Contrastive learning [82, 87, 22, 54, 101, 24, 56, 75, 36, 11] learns discriminative representations from multiple views of the same instance. It works with certain dictionary look-up mechanism [22], where a given image $x$ is augmented into two views, query and key, and the query token $q$ should match its designated key $k _ { + }$ over a set of negative keys $k _ { - }$ from other images. Existing work can be broadly classified into three categories based on dictionary creation strategies. The first creates a memory bank [82] to store all the keys in the previous epoch. The second builds an end-to-end dictionary [87, 75, 36, 11] that generates keys using samples from the current mini-batch. The third employs a momentum encoder [22] that generates keys on-the-fly by a momentum-updated encoder. ",
|
| 253 |
+
"bbox": [
|
| 254 |
+
174,
|
| 255 |
+
683,
|
| 256 |
+
825,
|
| 257 |
+
795
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 2
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "text",
|
| 263 |
+
"text": "Other related source-free adaptation works. [7] considers supervised continual learning from previously learned tasks to a new task, which learns representations using the contrastive learning objective and preserves learned representations using a self-supervised distillation step, where the contrastively learned representations are more robust against the catastrophic forgetting for supervised continual learning. [38] addresses a source-free universal domain adaptation problem that does not guarantee that the classes in the target domain are the same as in the source domain. [39] propose a simple yet effective solution to realize inheritable models suitable for open-set source-free DA problem. ",
|
| 264 |
+
"bbox": [
|
| 265 |
+
174,
|
| 266 |
+
800,
|
| 267 |
+
825,
|
| 268 |
+
911
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 2
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "image",
|
| 274 |
+
"img_path": "images/fb878d7d22a0b009deca2f1081b39ae80e7f8442f02f9246c50db87303021e17.jpg",
|
| 275 |
+
"image_caption": [
|
| 276 |
+
"Figure 2: The proposed historical contrastive learning consists of two key designs including historical contrastive instance discrimination (HCID) and historical contrastive category discrimination (HCCD). HCID learns from target samples by contrasting their embeddings generated by the current model (as queries) and historical models (as keys), which learns instance-discriminative target representations. HCCD pseudo-labels target samples to learn category-discriminative target representations, where the pseudo labels are re-weighted adaptively according to the prediction consistency across the current and historical models. "
|
| 277 |
+
],
|
| 278 |
+
"image_footnote": [],
|
| 279 |
+
"bbox": [
|
| 280 |
+
181,
|
| 281 |
+
88,
|
| 282 |
+
810,
|
| 283 |
+
267
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 3
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "3 Historical Contrastive Learning ",
|
| 290 |
+
"text_level": 1,
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
395,
|
| 294 |
+
473,
|
| 295 |
+
412
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "This section presents the proposed historical contrastive learning that memorizes source hypothesis to make up for the absence of source data as illustrated in Fig. 2. The proposed HCL consists of two key designs. The first is historical contrastive instance discrimination which encourages to learn instance-discriminative target representations that generalize well to unseen data [98]. The second is historical contrastive category discrimination that encourages to learn category-discriminative target representations which is well aligned with the objective of visual recognition tasks. More details to be described in the ensuring subsections. ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
173,
|
| 304 |
+
426,
|
| 305 |
+
825,
|
| 306 |
+
525
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "3.1 Historical Contrastive Instance Discrimination ",
|
| 313 |
+
"text_level": 1,
|
| 314 |
+
"bbox": [
|
| 315 |
+
176,
|
| 316 |
+
541,
|
| 317 |
+
537,
|
| 318 |
+
556
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 3
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "The proposed HCID learns from unlabeled target samples via contrastive learning over their embeddings generated from current and historical models: the positive pairs are pulled close while negative pairs are pushed apart. It is a new type of contrastive learning for UMA, which preserves sourcedomain hypothesis by generating positive keys from historical models. HCID works at instance level and encourages to learn instance-discriminative target representations that generalize well to unseen data [98]. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
173,
|
| 327 |
+
566,
|
| 328 |
+
826,
|
| 329 |
+
651
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "HCID loss. Given a query sample $x _ { q }$ and a set of key samples $X _ { k } = \\{ x _ { k _ { 0 } } , x _ { k _ { 1 } } , x _ { k _ { 2 } } , . . . , x _ { k _ { N } } \\}$ , HCID employs current model $E ^ { t }$ to encode the query $q ^ { t } = E ^ { t } ( x _ { q } )$ , and historical encoders $E ^ { t - m }$ to encode the keys $k _ { n } ^ { t - m } = E ^ { t - m } ( x _ { k _ { n } } ) , n = 0 , \\cdots , \\bar { N }$ . With the encoded embeddings, HCID is achieved via a historical contrastive loss $\\mathcal { L } _ { \\mathrm { H i s N C E } }$ , minimization of which pulls $q$ close to its positive key $k _ { + } ^ { t - m }$ while pushing it apart from all other (negative) keys: ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
173,
|
| 338 |
+
656,
|
| 339 |
+
825,
|
| 340 |
+
728
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "equation",
|
| 346 |
+
"img_path": "images/edb785e04771ab3b8fe5fbf09589dfe8598cbd17888d7a903753aa2443d58248.jpg",
|
| 347 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { H i s N C E } } = \\sum _ { x _ { q } \\in X _ { t g t } } - \\log \\frac { \\exp ( q ^ { t } \\cdot k _ { + } ^ { t - m } / \\tau ) r _ { + } ^ { t - m } } { \\sum _ { i = 0 } ^ { N } \\exp ( q ^ { t } \\cdot k _ { i } ^ { t - m } / \\tau ) r _ { i } ^ { t - m } }\n$$",
|
| 348 |
+
"text_format": "latex",
|
| 349 |
+
"bbox": [
|
| 350 |
+
318,
|
| 351 |
+
734,
|
| 352 |
+
678,
|
| 353 |
+
779
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "where $\\tau$ is a temperature parameter [82], $r$ indicates the reliability of each key $k _ { n } ^ { t - m }$ , with which we reweight the similarity loss of each key to encourage to memorize well-learnt instead of poorly-learnt historical embeddings. In this work, we use the classification entropy to estimate the reliability of each key. The positive key sample is the augmentation of the query sample[22, 36], and all the rest are negative keys. ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
174,
|
| 362 |
+
786,
|
| 363 |
+
825,
|
| 364 |
+
857
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "Remark 1 Note $\\mathcal { L } _ { H i s N C E }$ in Eq.1 has a similar form as the InfoNCE loss[56, 22]. InfoNCE can actually be viewed as a special case of HisNCE, where all the query and keys are encoded by the current model ${ ' m = 0 }$ ) and the reliability is fixed ${ \\bf \\zeta } r _ { i } ^ { t - m } = 1 , \\forall i )$ . For HisNCE, we assign each key a reliability score to encourage to memorize the well-learnt historical embeddings only. It is also worth noting that Eq. 1 only shows historical contrast with one historical model for simplicity. In practice, we could employ multiple historical models to comprehensively distill (memorize) the well-learnt embeddings from them. It could be achieved by computing Eq.1 multiple times. ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
174,
|
| 373 |
+
868,
|
| 374 |
+
825,
|
| 375 |
+
912
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "",
|
| 382 |
+
"bbox": [
|
| 383 |
+
174,
|
| 384 |
+
90,
|
| 385 |
+
825,
|
| 386 |
+
147
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 4
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "3.2 Historical contrastive category discrimination ",
|
| 393 |
+
"text_level": 1,
|
| 394 |
+
"bbox": [
|
| 395 |
+
174,
|
| 396 |
+
166,
|
| 397 |
+
532,
|
| 398 |
+
183
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 4
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "We design HCCD that generates pseudo labels and learns them conditioned on a historical consistency, i.e., the prediction consistency across the current and historical models. HCCD can be viewed as a new type of self-training, where pseudo labels are re-weighted by the historical consistency. It works at category level and encourages to learn category-discriminative target representations that are aligned with the objective of visual recognition tasks in UMA. ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
173,
|
| 407 |
+
194,
|
| 408 |
+
825,
|
| 409 |
+
263
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 4
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "Historical contrastive pseudo label generation. Given an unlabeled sample $x$ , the current and historical models predict $p ^ { t } = G ^ { t } ( x )$ (as the query) and $p ^ { t - m } = G ^ { t - m } ( x )$ (as the keys). The pseudo label and the historical consistency of the sample are computed by: ",
|
| 416 |
+
"bbox": [
|
| 417 |
+
174,
|
| 418 |
+
270,
|
| 419 |
+
825,
|
| 420 |
+
313
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 4
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "equation",
|
| 426 |
+
"img_path": "images/a05fef448944a895e04f1aaa84ff584917ef98e106a465c0a363e6eac368fc6f.jpg",
|
| 427 |
+
"text": "$$\n\\begin{array} { l } { { \\hat { y } = \\mathbf { { \\Gamma } } ( p ^ { t } ) , } } \\\\ { { h _ { c o n } = 1 - \\mathrm { S i g m o i d } ( | | p ^ { t } - p ^ { t - m } | | _ { 1 } ) , } } \\end{array}\n$$",
|
| 428 |
+
"text_format": "latex",
|
| 429 |
+
"bbox": [
|
| 430 |
+
370,
|
| 431 |
+
321,
|
| 432 |
+
624,
|
| 433 |
+
362
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 4
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "where $p$ is a $K$ -class probability vector, $\\mathbf { \\delta T }$ is the pseudo label generation function [103, 102] and $\\hat { y } = ( \\hat { y } ^ { ( 1 ) } , \\hat { y } ^ { ( 2 ) } , . . . , \\hat { y } ^ { ( \\bar { C } ) } )$ is the predicted category label. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
173,
|
| 442 |
+
371,
|
| 443 |
+
821,
|
| 444 |
+
401
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "HCCD loss. Given the unlabeled data $x$ and its historical contrastive pseudo label $\\left( \\hat { y } , h _ { c o n } \\right)$ , HCCD performs self-training on target data $x$ via a weighted cross-entropy loss: ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
406,
|
| 454 |
+
820,
|
| 455 |
+
435
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "equation",
|
| 461 |
+
"img_path": "images/992658b5a4609e186647af311e949498cec6ac02f5776f0f3b261c2392f0ac80.jpg",
|
| 462 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { H i s S T } } = - \\sum _ { x \\in X _ { t g t } } h _ { c o n } \\times \\hat { y } \\log p _ { x } ,\n$$",
|
| 463 |
+
"text_format": "latex",
|
| 464 |
+
"bbox": [
|
| 465 |
+
382,
|
| 466 |
+
445,
|
| 467 |
+
614,
|
| 468 |
+
481
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 4
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "where $h _ { c o n }$ is the per-sample historical consistency and we use it to re-weight the self-training loss. If the predictions of a sample across the current and historical models are consistent, we consider it as a well-learnt sample and increase its influence in self-training. Otherwise, we consider it as pooly-learnt sample and decrease its influence in self-training. ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
491,
|
| 478 |
+
825,
|
| 479 |
+
547
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 4
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "3.3 Theoretical Insights ",
|
| 486 |
+
"text_level": 1,
|
| 487 |
+
"bbox": [
|
| 488 |
+
174,
|
| 489 |
+
566,
|
| 490 |
+
352,
|
| 491 |
+
582
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 4
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "The two designs in Historical Contrastive Learning (HCL) are inherently connected with some probabilistic models and convergent under certain conditions: ",
|
| 498 |
+
"bbox": [
|
| 499 |
+
171,
|
| 500 |
+
593,
|
| 501 |
+
825,
|
| 502 |
+
622
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 4
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "Proposition 1 The historical contrastive instance discrimination (HCID) can be modelled as a maximum likelihood problem optimized via Expectation Maximization. ",
|
| 509 |
+
"bbox": [
|
| 510 |
+
174,
|
| 511 |
+
637,
|
| 512 |
+
823,
|
| 513 |
+
666
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 4
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "Proposition 2 The HCID is convergent under certain conditions. ",
|
| 520 |
+
"bbox": [
|
| 521 |
+
173,
|
| 522 |
+
680,
|
| 523 |
+
602,
|
| 524 |
+
696
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "Proposition 3 The historical contrastive category discrimination (HCCD) can be modelled as a classification maximum likelihood problem optimized via Classification Expectation Maximization. ",
|
| 531 |
+
"bbox": [
|
| 532 |
+
176,
|
| 533 |
+
710,
|
| 534 |
+
825,
|
| 535 |
+
739
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Proposition 4 The HCCD is convergent under certain conditions. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
174,
|
| 544 |
+
753,
|
| 545 |
+
607,
|
| 546 |
+
770
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "The proofs of Proposition 1, Proposition 2, Proposition 3 and Proposition 4 are provided in the appendix, respectively. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
176,
|
| 555 |
+
784,
|
| 556 |
+
823,
|
| 557 |
+
813
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "4 Experiments ",
|
| 564 |
+
"text_level": 1,
|
| 565 |
+
"bbox": [
|
| 566 |
+
174,
|
| 567 |
+
835,
|
| 568 |
+
312,
|
| 569 |
+
853
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 4
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "This section presents experiments including datasets, implementation details, evaluations of the proposed HCL in semantic segmentation, object detection and image classification tasks as well as the discussion of its desirable features. ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
869,
|
| 579 |
+
823,
|
| 580 |
+
911
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "table",
|
| 586 |
+
"img_path": "images/2f7c4c8e18c3f385427be875880cd9ccdf4962e5a7999257b75ad32b42776b26.jpg",
|
| 587 |
+
"table_caption": [
|
| 588 |
+
"Table 2: Experiments on semantic segmentation task GTA5 Cityscapes (“SF” denotes source-data free, i.e., adaptation without source data). "
|
| 589 |
+
],
|
| 590 |
+
"table_footnote": [],
|
| 591 |
+
"table_body": "<table><tr><td>Method</td><td>SF</td><td>Road</td><td>SW</td><td>Build</td><td>Wall</td><td>Fence</td><td>Pole</td><td>TL</td><td>TS</td><td>Veg.</td><td>Terrain</td><td>Sky</td><td>PR</td><td>Rider</td><td>Car</td><td>Truck</td><td>Bus</td><td>Train</td><td>Motor</td><td>Bike</td><td>mIoU</td></tr><tr><td>AdaptSeg [76]</td><td>X</td><td>86.5</td><td>36.0</td><td>79.9</td><td>23.4</td><td>23.3</td><td>23.9</td><td>35.2</td><td>14.8</td><td>83.4</td><td>33.3</td><td>75.6</td><td>58.5</td><td>27.6</td><td>73.7</td><td>32.5</td><td>35.4</td><td>3.9</td><td>30.1</td><td>28.1</td><td>42.4</td></tr><tr><td>AdvEnt [79]</td><td>X</td><td>89.4</td><td>33.1</td><td>81.0</td><td>26.6</td><td>26.8</td><td>27.2</td><td>33.5</td><td>24.7</td><td>83.9</td><td>36.7</td><td>78.8</td><td>58.7</td><td>30.5</td><td>84.8</td><td>38.5</td><td>44.5</td><td>1.7</td><td>31.6</td><td>32.4</td><td>45.5</td></tr><tr><td>IDA [57]</td><td>X</td><td>90.6</td><td>37.1</td><td>82.6</td><td>30.1</td><td>19.1</td><td>29.5</td><td>32.4</td><td>20.6</td><td>85.7</td><td>40.5</td><td>79.7</td><td>58.7</td><td>31.1</td><td>86.3</td><td>31.5</td><td>48.3</td><td>0.0</td><td>30.2</td><td>35.8</td><td>46.3</td></tr><tr><td>CRST[102]</td><td>X</td><td>91.0</td><td>55.4</td><td>80.0</td><td>33.7</td><td>21.4</td><td>37.3</td><td>32.9</td><td>24.5</td><td>85.0</td><td>34.1</td><td>80.8</td><td>57.7</td><td>24.6</td><td>84.1</td><td>27.8</td><td>30.1</td><td>26.9</td><td>26.0</td><td>42.3</td><td>47.1</td></tr><tr><td>CrCDA [35]</td><td>X</td><td>92.4</td><td>55.3</td><td>82.3</td><td>31.2</td><td>29.1</td><td>32.5</td><td>33.2</td><td>35.6</td><td>83.5</td><td>34.8</td><td>84.2</td><td>58.9</td><td>32.2</td><td>84.7</td><td>40.6</td><td>46.1</td><td>2.1</td><td>31.1</td><td>32.7</td><td>48.6</td></tr><tr><td>UR [72]</td><td>√</td><td>92.3</td><td>55.2</td><td>81.6</td><td>30.8</td><td>18.8</td><td>37.1</td><td>17.7</td><td>12.1</td><td>84.2</td><td>35.9</td><td>83.8</td><td>57.7</td><td>24.1</td><td>81.7</td><td>27.5</td><td>44.3</td><td>6.9</td><td>24.1</td><td>40.4</td><td>45.1</td></tr><tr><td>+HCL</td><td>√</td><td>92.2</td><td>54.1</td><td>81.7</td><td>34.2</td><td>25.4</td><td>37.9</td><td>35.8</td><td>29.8</td><td>84.1</td><td>38.0</td><td>83.9</td><td>59.1</td><td>27.1</td><td>84.6</td><td>33.9</td><td>41.9</td><td>16.2</td><td>27.7</td><td>44.7</td><td>49.1</td></tr><tr><td>SFDA [48]</td><td>√</td><td>91.7</td><td>52.7</td><td>82.2</td><td>28.7</td><td>20.3</td><td></td><td>36.530.6</td><td></td><td>23.681.7</td><td>35.6</td><td>84.859.5</td><td></td><td>22.6</td><td>83.4</td><td>29.6</td><td>32.4</td><td>11.8</td><td>23.8</td><td>39.6</td><td>45.8</td></tr><tr><td>+HCL</td><td>√</td><td>92.3</td><td>54.5</td><td>82.6</td><td>33.1</td><td>26.2</td><td>38.9</td><td>37.9</td><td>31.7</td><td>83.5</td><td>38.1</td><td>84.4</td><td>60.9</td><td>30.0</td><td>84.5</td><td>32.6</td><td>41.2</td><td>14.2</td><td>26.4</td><td>43.2</td><td>49.3</td></tr><tr><td>HCID</td><td>√</td><td>89.5</td><td>53</td><td>80.3</td><td>33.9</td><td>22.9</td><td>36.2</td><td>32.7</td><td></td><td>23.882.3</td><td>36.5</td><td>73.7</td><td>60.0</td><td>22.4</td><td>83.8</td><td>28.9</td><td>34.7</td><td>13.5</td><td>21.2</td><td>38.0</td><td>45.6</td></tr><tr><td>HCCD</td><td>√</td><td>91.0</td><td>53.6</td><td>81.5</td><td>32.4</td><td>23.1</td><td>36.9</td><td>32.3</td><td>26.3</td><td>82.8</td><td>37.2</td><td>80.4</td><td>58.5</td><td>25.0</td><td>82.5</td><td>29.9</td><td>34.2</td><td>15.5</td><td>23.2</td><td>40.5</td><td>46.7</td></tr><tr><td>HCL</td><td></td><td>92.0</td><td>55.0</td><td>80.4</td><td>33.5</td><td>24.6</td><td>37.1</td><td>35.1</td><td></td><td>28.883.0</td><td>37.6</td><td>82.359.4</td><td></td><td>27.6</td><td>83.6</td><td>32.3</td><td>36.6</td><td>14.1</td><td>28.7</td><td>43.0</td><td>48.1</td></tr></table>",
|
| 592 |
+
"bbox": [
|
| 593 |
+
174,
|
| 594 |
+
123,
|
| 595 |
+
823,
|
| 596 |
+
233
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 5
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "table",
|
| 602 |
+
"img_path": "images/ad2e3a4e9f1655f462f3a117065e1d4335bb1470dc0dec8b60ae6148f59a840e.jpg",
|
| 603 |
+
"table_caption": [
|
| 604 |
+
"Table 3: Experiments on semantic segmentation task SYNTHIA Cityscapes (“SF” denotes source-data free, i.e., adaptation without source data). "
|
| 605 |
+
],
|
| 606 |
+
"table_footnote": [],
|
| 607 |
+
"table_body": "<table><tr><td>Method</td><td>SF</td><td>Road</td><td>SW</td><td>Build</td><td>Wall</td><td>Fence</td><td>Pole</td><td>TL</td><td>TS</td><td>Veg.</td><td>Sky</td><td>PR</td><td>Rider</td><td>Car</td><td>Bus</td><td>Motor</td><td>Bike</td><td>mIoU</td><td>mIoU</td></tr><tr><td>AdaptSeg[76]</td><td>X</td><td>84.3</td><td>42.7</td><td>77.5</td><td>,</td><td>1</td><td>-</td><td>4.7</td><td>7.0</td><td>77.9</td><td>82.5</td><td>54.3</td><td>21.0</td><td>72.3</td><td>32.2</td><td>18.9</td><td>32.3</td><td>1</td><td>46.7</td></tr><tr><td>AdvEnt [79]</td><td>X</td><td>85.6</td><td>42.2</td><td>79.7</td><td>8.7</td><td>0.4</td><td>25.9</td><td>5.4</td><td>8.1</td><td>80.4</td><td>84.1</td><td>57.9</td><td>23.8</td><td>73.3</td><td>36.4</td><td>14.2</td><td>33.0</td><td>41.2</td><td>48.0</td></tr><tr><td>IDA [57]</td><td>X</td><td>84.3</td><td>37.7</td><td>79.5</td><td>5.3</td><td>0.4</td><td>24.9</td><td>9.2</td><td>8.4</td><td>80.0</td><td>84.1</td><td>57.2</td><td>23.0</td><td>78.0</td><td>38.1</td><td>20.3</td><td>36.5</td><td>41.7</td><td>48.9</td></tr><tr><td>CRST[102]</td><td>×</td><td>67.7</td><td>32.2</td><td>73.9</td><td>10.7</td><td>1.6</td><td>37.4</td><td>22.2</td><td>31.2</td><td>80.8</td><td>80.5</td><td>60.8</td><td>29.1</td><td>82.8</td><td>25.0</td><td>19.4</td><td>45.3</td><td>43.8</td><td>50.1</td></tr><tr><td>CrCDA[35]</td><td>X</td><td>86.2</td><td>44.9</td><td>79.5</td><td>8.3</td><td>0.7</td><td>27.8</td><td>9.4</td><td>11.8</td><td>78.6</td><td>86.5</td><td>57.2</td><td>26.1</td><td>76.8</td><td>39.9</td><td>21.5</td><td>32.1</td><td>42.9</td><td>50.0</td></tr><tr><td>UR[72]</td><td>√</td><td>59.3</td><td>24.6</td><td>77.0</td><td>14.0</td><td>1.8</td><td>31.5</td><td>18.3</td><td>32.0</td><td>83.1</td><td>80.4</td><td>46.3</td><td>17.8</td><td>76.7</td><td>17.0</td><td>18.5</td><td>34.6</td><td>39.6</td><td>45.0</td></tr><tr><td>+HCL</td><td>√</td><td>76.7</td><td>33.7</td><td>78.7</td><td>7.2</td><td>0.1</td><td>34.4</td><td>23.2</td><td>31.6</td><td>80.5</td><td>84.3</td><td>54.4</td><td>26.6</td><td>79.5</td><td>35.9</td><td>24.8</td><td>34.4</td><td>44.1</td><td>51.1</td></tr><tr><td>SFDA [48]</td><td>√</td><td>67.8</td><td>31.9</td><td>77.1</td><td>8.3</td><td>1.1</td><td>35.9</td><td>21.2</td><td>26.7</td><td>79.8</td><td>79.4</td><td>58.8</td><td>27.3</td><td>80.4</td><td>25.3</td><td>19.5</td><td>37.4</td><td>42.4</td><td>48.7</td></tr><tr><td>+HCL</td><td>√</td><td>78.2</td><td>35.3</td><td>79.6</td><td>7.3</td><td>0.2</td><td>37.7</td><td>21</td><td>30.9</td><td>80.4</td><td>83.3</td><td>59.8</td><td>29.4</td><td>79.2</td><td>34.2</td><td>24.5</td><td>38.9</td><td>45.0</td><td>51.9</td></tr><tr><td>HCL</td><td>√</td><td>80.9</td><td>34.9</td><td>76.7</td><td>6.6</td><td>0.2</td><td>36.1</td><td>20.1</td><td>28.2</td><td>79.1</td><td>83.1</td><td>55.6</td><td>25.6</td><td>78.8</td><td>32.7</td><td>24.1</td><td>32.7</td><td>43.5</td><td>50.2</td></tr></table>",
|
| 608 |
+
"bbox": [
|
| 609 |
+
176,
|
| 610 |
+
282,
|
| 611 |
+
823,
|
| 612 |
+
382
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 5
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "4.1 Datasets ",
|
| 619 |
+
"text_level": 1,
|
| 620 |
+
"bbox": [
|
| 621 |
+
173,
|
| 622 |
+
411,
|
| 623 |
+
272,
|
| 624 |
+
425
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 5
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "UMA for semantic segmentation is evaluated on two challenging tasks GTA5 $[ 6 1 ] $ Cityscapes [15] and SYNTHIA $[ 6 2 ] \\cdot$ Cityscapes. GTA5 has 24, 966 synthetic images and shares 19 categories with Cityscapes. SYNTHIA contains 9, 400 synthetic images and shares 16 categories with Cityscapes. Cityscapes has 2975 and 500 real-world images for training and validation, respectively. ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
436,
|
| 634 |
+
825,
|
| 635 |
+
492
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "UMA for object detection is evaluated on tasks Cityscapes Foggy Cityscapes [68] and Cityscapes $ \\mathrm { B D D 1 0 0 k }$ [89]. Foggy Cityscapes is derived by applying simulated fog to the 2, 975 Cityscapes images. BDD100k has $7 0 k$ training images and $1 0 k$ validation images, and shares 7 categories with Cityscapes. We evaluate a subset of BDD100k (i.e., daytime) as in [84, 65, 13] for fair comparisons. ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
173,
|
| 644 |
+
498,
|
| 645 |
+
825,
|
| 646 |
+
554
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 5
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "UMA for image classification is evaluated on benchmarks VisDA17 [58] and Office-31 [63]. VisDA17 has 152, 409 synthetic images as the source domain and 55, 400 real images of 12 shared categories as the target domain. Office-31 has 4110 images of three sources including 2817 from Amazon, 795 from Webcam and 498 from DSLR (with 31 shared categories). Following [102, 63, 70], the evaluation is on six adaptation tasks $\\mathbf { A } { } \\mathbf { W } .$ , $\\mathrm { D } \\to \\mathsf { W } .$ , $\\mathrm { W } { } \\mathrm { D }$ , $\\mathbf { A } { } \\mathbf { D }$ , $\\mathrm { D } { \\to } \\mathsf { A }$ , and $\\mathrm { W } { \\to } \\mathrm { A }$ . ",
|
| 653 |
+
"bbox": [
|
| 654 |
+
174,
|
| 655 |
+
560,
|
| 656 |
+
825,
|
| 657 |
+
630
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 5
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "4.2 Implementation Details ",
|
| 664 |
+
"text_level": 1,
|
| 665 |
+
"bbox": [
|
| 666 |
+
176,
|
| 667 |
+
647,
|
| 668 |
+
377,
|
| 669 |
+
662
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 5
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "Semantic segmentation: Following [79, 103], we employ DeepLab-V2 [8] as the segmentation model. We adopt SGD [3] with momentum 0.9, weight decay $1 e - 4$ and learning rate $2 . 5 e \\mathrm { ~ - ~ } 4$ where the learning rate is decayed by a polynomial annealing policy [8]. ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
174,
|
| 678 |
+
672,
|
| 679 |
+
825,
|
| 680 |
+
715
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 5
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "text",
|
| 686 |
+
"text": "Object detection: Following [84, 65, 13], we adopt Faster R-CNN [60] as the detection model. We use SGD [3] with momentum 0.9 and weight decay $5 e - 4$ . The learning rate is $1 e - 3$ for first $5 0 k$ iterations and then decreased to $1 e - 4$ for another $2 0 k$ iterations. ",
|
| 687 |
+
"bbox": [
|
| 688 |
+
174,
|
| 689 |
+
722,
|
| 690 |
+
825,
|
| 691 |
+
763
|
| 692 |
+
],
|
| 693 |
+
"page_idx": 5
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "text",
|
| 697 |
+
"text": "Image classification: Following [102, 63, 70], we adopt ResNet-101 and ResNet-50 [23] as the classification models for VisDA17 and Office-31, respectively. We use SGD [3] with momentum 0.9, weight decay $5 e - 4$ , learning rate $1 e - 3$ and batch size 32. ",
|
| 698 |
+
"bbox": [
|
| 699 |
+
174,
|
| 700 |
+
770,
|
| 701 |
+
825,
|
| 702 |
+
813
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 5
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "text",
|
| 708 |
+
"text": "4.3 Unsupervised Domain Adaption for Semantic Segmentation ",
|
| 709 |
+
"text_level": 1,
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
829,
|
| 713 |
+
629,
|
| 714 |
+
844
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 5
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "We evaluated the proposed HCL in UMA-based semantic segmentation tasks $\\mathrm { G T A } 5 $ Cityscapes and SYNTHIA Cityscapes. Tables 2 and 3 show experimental results in mean Intersectionover-Union (mIoU). We can see that HCL outperforms state-of-the-art UMA methods by large margins. In addition, HCL is complementary to existing UMA methods and incorporating it as denoted by $\\mathrm { ^ { 6 6 } { + } H C L ^ { 9 3 } }$ improves the existing UMA methods clearly and consistently. Furthermore, HCL even achieves competitive performance as compared with state-of-the-art UDA methods (labeled by ✗in the column SF) which require to access the labeled source data in training. Further, We conduct ablation studies of the proposed HCL over the UMA-based semantic segmentation task $\\mathrm { G T A } 5 $ Cityscapes. As the bottom of Table 2 shows, either HCID or HCCD achieves comparable performance. In addition, HCID and HCCD offer orthogonal self-supervision signals where HCID focuses on instance-level discrimination between queries and historical keys and HCCD focuses on category-level discrimination among samples with different pseudo category labels. The two designs are thus complementary and the combination of them in HCL produces the best segmentation. ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
174,
|
| 723 |
+
856,
|
| 724 |
+
825,
|
| 725 |
+
911
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 5
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "table",
|
| 731 |
+
"img_path": "images/2af0398575810e0d235c9033b8ce137d16b876a7ea5d4a9a19fa3da13f724c80.jpg",
|
| 732 |
+
"table_caption": [
|
| 733 |
+
"Table 4: Experiments on object detection task Cityscapes Foggy Cityscapes (“SF” denotes source-data free, i.e., adaptation without source data). "
|
| 734 |
+
],
|
| 735 |
+
"table_footnote": [],
|
| 736 |
+
"table_body": "<table><tr><td>Method</td><td>SF</td><td>person</td><td>rider</td><td>car</td><td>truck</td><td>bus</td><td>train</td><td>mcycle</td><td>bicycle</td><td>mAP</td></tr><tr><td>DA [13]</td><td></td><td>25.0</td><td>31.0</td><td>40.5</td><td>22.1</td><td>35.3</td><td>20.2</td><td>20.0</td><td>27.1</td><td>27.6</td></tr><tr><td>MLDA [83]</td><td></td><td>33.2</td><td>44.2</td><td>44.8</td><td>28.2</td><td>41.8</td><td>28.7</td><td>30.5</td><td>36.5</td><td>36.0</td></tr><tr><td>DMA [37]</td><td></td><td>30.8</td><td>40.5</td><td>44.3</td><td>27.2</td><td>38.4</td><td>34.5</td><td>28.4</td><td>32.2</td><td>34.6</td></tr><tr><td>CAFA [27]</td><td></td><td>41.9</td><td>38.7</td><td>56.7</td><td>22.6</td><td>41.5</td><td>26.8</td><td>24.6</td><td>35.5</td><td>36.0</td></tr><tr><td>SWDA [65]</td><td></td><td>36.2</td><td>35.3</td><td>43.5</td><td>30.0</td><td>29.9</td><td>42.3</td><td>32.6</td><td>24.5</td><td>34.3</td></tr><tr><td>CRDA [84]</td><td>xxxxxx</td><td>32.9</td><td>43.8</td><td>49.2</td><td>27.2</td><td>45.1</td><td>36.4</td><td>30.3</td><td>34.6</td><td>37.4</td></tr><tr><td>SFOD [43]</td><td>1</td><td>25.5</td><td>44.5</td><td>40.7</td><td>33.2</td><td>22.2</td><td>28.4</td><td>34.1</td><td>39.0</td><td>33.5</td></tr><tr><td>+HCL</td><td></td><td>39.3</td><td>46.7</td><td>48.6</td><td>32.9</td><td>46.2</td><td>38.2</td><td>33.9</td><td>36.9</td><td>40.3</td></tr><tr><td>HCL</td><td>√</td><td>38.7</td><td>46.0</td><td>47.9</td><td>33.0</td><td>45.7</td><td>38.9</td><td>32.8</td><td>34.9</td><td>39.7</td></tr></table>",
|
| 737 |
+
"bbox": [
|
| 738 |
+
277,
|
| 739 |
+
123,
|
| 740 |
+
717,
|
| 741 |
+
232
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 6
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "table",
|
| 747 |
+
"img_path": "images/6dedae6b361bf5b490df5f9c456df7822471fcab805409cb3ca00df2aac1d12c.jpg",
|
| 748 |
+
"table_caption": [
|
| 749 |
+
"Table 5: Experiments on object detection task Cityscapes $ \\mathrm { B D D 1 0 0 k }$ (“SF” denotes source-data free, i.e., adaptation without source data). "
|
| 750 |
+
],
|
| 751 |
+
"table_footnote": [],
|
| 752 |
+
"table_body": "<table><tr><td>Method</td><td>SF</td><td>person</td><td>rider</td><td>car</td><td>truck</td><td>bus</td><td>mcycle</td><td>bicycle</td><td>mAP</td></tr><tr><td>DA[13]</td><td>X</td><td>29.4</td><td>26.5</td><td>44.6</td><td>14.3</td><td>16.8</td><td>15.8</td><td>20.6</td><td>24.0</td></tr><tr><td rowspan=\"3\">SWDA [65] CRDA [84]</td><td></td><td>30.2</td><td>29.5</td><td>45.7</td><td>15.2</td><td>18.4</td><td>17.1</td><td>21.2</td><td>25.3</td></tr><tr><td>X</td><td>31.4</td><td>31.3</td><td>46.3</td><td>19.5</td><td>18.9</td><td>17.3</td><td>23.8</td><td>26.9</td></tr><tr><td>·</td><td>32.4</td><td>32.6</td><td>50.4</td><td>20.6</td><td>23.4</td><td>18.9</td><td>25.0</td><td>29.0</td></tr><tr><td>SFOD [43] +HCL</td><td></td><td>33.9</td><td>34.4</td><td>52.8</td><td>22.1</td><td>25.3</td><td>22.6</td><td>26.7</td><td>31.1</td></tr><tr><td>HCL</td><td>√</td><td>32.7</td><td>33.2</td><td>52.0</td><td>21.3</td><td>25.6</td><td>21.5</td><td>26.0</td><td>30.3</td></tr></table>",
|
| 753 |
+
"bbox": [
|
| 754 |
+
277,
|
| 755 |
+
282,
|
| 756 |
+
715,
|
| 757 |
+
364
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "",
|
| 764 |
+
"bbox": [
|
| 765 |
+
173,
|
| 766 |
+
392,
|
| 767 |
+
825,
|
| 768 |
+
517
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 6
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "4.4 Unsupervised Domain Adaptation for Object Detection ",
|
| 775 |
+
"text_level": 1,
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
536,
|
| 779 |
+
596,
|
| 780 |
+
551
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "We evaluated the proposed HCL over the UMA-based object detection tasks Cityscapes $\\mathrm { : F o g g y }$ Cityscapes and Cityscapes $ \\mathrm { B D D 1 0 0 k }$ . Tables 4 and 5 show experimental results. We can observe that HCL outperforms state-of-the-art UMA method SFOD clearly. Similar to the semantic segmentation experiments, HCL achieves competitive performance as compared with state-of-the-art UDA methods (labeled by ✗in column SF) which require to access labeled source data in training. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
563,
|
| 790 |
+
825,
|
| 791 |
+
632
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 6
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "4.5 Unsupervised Domain Adaptation for Image Classification ",
|
| 798 |
+
"text_level": 1,
|
| 799 |
+
"bbox": [
|
| 800 |
+
173,
|
| 801 |
+
651,
|
| 802 |
+
619,
|
| 803 |
+
666
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "We evaluate the proposed HCL over the UMA-based image classificat tasks VisDA17 and Office-31. Tables 6 and 7 show experimental results. We can observe that HCL outperforms state-of-the-art UMA methods clearly. Similar to the semantic segmentation and object detection experiments, HCL achieves competitive performance as compared with state-of-the-art UDA methods (labeled by $\\pmb { \\chi }$ ) which require to access labeled source data in training. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
174,
|
| 812 |
+
678,
|
| 813 |
+
826,
|
| 814 |
+
747
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 6
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "4.6 Discussion ",
|
| 821 |
+
"text_level": 1,
|
| 822 |
+
"bbox": [
|
| 823 |
+
174,
|
| 824 |
+
767,
|
| 825 |
+
285,
|
| 826 |
+
781
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Generalization across computer vision tasks: We study how HCL generalizes across computer vision tasks by evaluating it over three representative tasks on semantic segmentation, object detection and image classification. Experiments in Tables 2- 7 show that HCL achieves competitive performance consistently across all three visual tasks, demonstrating the generalization ability of HCL across computer vision tasks. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
174,
|
| 835 |
+
794,
|
| 836 |
+
825,
|
| 837 |
+
863
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 6
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Complementarity studies: We study the complementarity of our proposed HCL by combining it with existing UMA methods. Experiments in Table 2 (the row highlighted by $\\ \" + \\mathrm { H C L } \\ '$ ) shows that incorporating HCL boosts the existing UMA methods consistently. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
176,
|
| 846 |
+
869,
|
| 847 |
+
825,
|
| 848 |
+
911
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 6
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "table",
|
| 854 |
+
"img_path": "images/81d57b4003733910479fea22a5569ce2e82411b213111b329ee4ff690e932778.jpg",
|
| 855 |
+
"table_caption": [
|
| 856 |
+
"Table 6: Experiments on image classification benchmark VisDA17 (“SF” denotes source-data free, i.e., adaptation without source data). "
|
| 857 |
+
],
|
| 858 |
+
"table_footnote": [],
|
| 859 |
+
"table_body": "<table><tr><td>Method</td><td>SF</td><td>Aero</td><td>Bike</td><td>Bus</td><td>Car</td><td>Horse</td><td>Knife</td><td>Motor</td><td>Person</td><td>Plant</td><td>Skateboard</td><td>Train</td><td>Truck</td><td>Mean</td></tr><tr><td>DANN [17]</td><td></td><td>81.9</td><td>77.7</td><td>82.8</td><td>44.3</td><td>81.2</td><td>29.5</td><td>65.1</td><td>28.6</td><td>51.9</td><td>54.6</td><td>82.8</td><td>7.8</td><td>57.4</td></tr><tr><td>ENT[18]</td><td></td><td>80.3</td><td>75.5</td><td>75.8</td><td>48.3</td><td>77.9</td><td>27.3</td><td>69.7</td><td>40.2</td><td>46.5</td><td>46.6</td><td>79.3</td><td>16.0</td><td>57.0</td></tr><tr><td>MCD [66]</td><td></td><td>87.0</td><td>60.9</td><td>83.7</td><td>64.0</td><td>88.9</td><td>79.6</td><td>84.7</td><td>76.9</td><td>88.6</td><td>40.3</td><td>83.0</td><td>25.8</td><td>71.9</td></tr><tr><td>CBST [103]</td><td></td><td>87.2</td><td>78.8</td><td>56.5</td><td>55.4</td><td>85.1</td><td>79.2</td><td>83.8</td><td>77.7</td><td>82.8</td><td>88.8</td><td>69.0</td><td>72.0</td><td>76.4</td></tr><tr><td>CRST[102]</td><td>xxxxx</td><td>88.0</td><td>79.2</td><td>61.0</td><td>60.0</td><td>87.5</td><td>81.4</td><td>86.3</td><td>78.8</td><td>85.6</td><td>86.6</td><td>73.9</td><td>68.8</td><td>78.1</td></tr><tr><td>3C-GAN [42]</td><td>√</td><td>94.8</td><td>73.4</td><td>68.8</td><td>74.8</td><td>93.1</td><td>95.4</td><td>88.6</td><td>84.7</td><td>89.1</td><td>84.7</td><td>83.5</td><td>48.1</td><td>81.6</td></tr><tr><td>+HCL</td><td>√</td><td>93.8</td><td>86.6</td><td>84.1</td><td>74.3</td><td>93.2</td><td>95.0</td><td>88.4</td><td>85.0</td><td>90.4</td><td>85.2</td><td>84.5</td><td>49.8</td><td>84.2</td></tr><tr><td>SHOT[45]</td><td>√</td><td>93.7</td><td>86.4</td><td>78.7</td><td>50.7</td><td>91.0</td><td>93.5</td><td>79.0</td><td>78.3</td><td>89.2</td><td>85.4</td><td>87.9</td><td>51.1</td><td>80.4</td></tr><tr><td>+HCL</td><td>√</td><td>94.3</td><td>87.0</td><td>82.6</td><td>70.6</td><td>92.0</td><td>93.2</td><td>87.0</td><td>80.6</td><td>89.6</td><td>86.8</td><td>84.6</td><td>58.7</td><td>83.9</td></tr><tr><td>HCL</td><td>√</td><td>93.3</td><td>85.4</td><td>80.7</td><td>68.5</td><td>91.0</td><td>88.1</td><td>86.0</td><td>78.6</td><td>86.6</td><td>88.8</td><td>80.0</td><td>74.7</td><td>83.5</td></tr></table>",
|
| 860 |
+
"bbox": [
|
| 861 |
+
199,
|
| 862 |
+
123,
|
| 863 |
+
794,
|
| 864 |
+
237
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 7
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "table",
|
| 870 |
+
"img_path": "images/af3f58cc1f01c8a97aafbe0526b89e4bb43b36f67b1bc3279de45df4eb3d6de8.jpg",
|
| 871 |
+
"table_caption": [
|
| 872 |
+
"Table 7: Experiments on image classification benchmark Office-31 (“SF” denotes source-data free, i.e., adaptation without source data). "
|
| 873 |
+
],
|
| 874 |
+
"table_footnote": [],
|
| 875 |
+
"table_body": "<table><tr><td>Method</td><td>SF</td><td>A→W</td><td>D→W</td><td>W→D</td><td>A→D</td><td>D→A</td><td>W→A</td><td>Mean</td></tr><tr><td>DAN [49]</td><td></td><td>80.5</td><td>97.1</td><td>99.6</td><td>78.6</td><td>63.6</td><td>62.8</td><td>80.4</td></tr><tr><td>DANN [17]</td><td></td><td>82.0</td><td>96.9</td><td>99.1</td><td>79.7</td><td>68.2</td><td>67.4</td><td>82.2</td></tr><tr><td>ADDA [78]</td><td></td><td>86.2</td><td>96.2</td><td>98.4</td><td>77.8</td><td>69.5</td><td>68.9</td><td>82.9</td></tr><tr><td>JAN [50]</td><td></td><td>85.4</td><td>97.4</td><td>99.8</td><td>84.7</td><td>68.6</td><td>70.0</td><td>84.3</td></tr><tr><td>CBST[103]</td><td></td><td>87.8</td><td>98.5</td><td>100</td><td>86.5</td><td>71.2</td><td>70.9</td><td>85.8</td></tr><tr><td>CRST[102]</td><td>xxxxxx</td><td>89.4</td><td>98.9</td><td>100</td><td>88.7</td><td>72.6</td><td>70.9</td><td>86.8</td></tr><tr><td>3C-GAN [42]</td><td></td><td>93.7</td><td>98.5</td><td>99.8</td><td>92.7</td><td>75.3</td><td>77.8</td><td>89.6</td></tr><tr><td>+HCL</td><td>V</td><td>93.4</td><td>99.3</td><td>100.0</td><td>94.6</td><td>77.1</td><td>79.0</td><td>90.6</td></tr><tr><td>SHOT[45]</td><td></td><td>91.2</td><td>98.3</td><td>99.9</td><td>90.6</td><td>72.5</td><td>71.4</td><td>87.3</td></tr><tr><td>+HCL</td><td>1</td><td>92.8</td><td>99.0</td><td>100.0</td><td>94.4</td><td>76.1</td><td>78.3</td><td>90.1</td></tr><tr><td>HCL</td><td>√</td><td>92.5</td><td>98.2</td><td>100.0</td><td>94.7</td><td>75.9</td><td>77.7</td><td>89.8</td></tr></table>",
|
| 876 |
+
"bbox": [
|
| 877 |
+
284,
|
| 878 |
+
290,
|
| 879 |
+
709,
|
| 880 |
+
428
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "Feature visualization: This paragraph presents the t-SNE [53] visualization of feature representation on GTA Cityscapes model adaptation task. We compare HCL with two state-of-the-art UMA methods, i.e., “UR\" [72] and “SFDA\" [48], and Fig.3 shows the visualization. We can observe that HCL can learn desirable instance-discriminative yet category-discriminative representations because it incorporates two key designs that work in a complementary manner: 1) HCID works at instance level, which encourages to learn instance-discriminative target representations that generalize well to unseen data [98]; 2) HCCD works at category level which encourages to learn category-discriminative target representations that are well aligned with the objective of down-stream visual tasks. In addition, qualitative illustrations are provided in Fig.4. It can be observed that our proposed HCL clearly outperforms UR and SFDA. ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
173,
|
| 889 |
+
458,
|
| 890 |
+
825,
|
| 891 |
+
597
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 7
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "Generalization across learning setups: We study how HCL generalizes across learning setups by adapting it into two adaptation setups, i.e., partial-set adaptation and open-set adaptation. Experiments in Table 8 show that HCL achieves competitive performance consistently across both setups. ",
|
| 898 |
+
"bbox": [
|
| 899 |
+
174,
|
| 900 |
+
603,
|
| 901 |
+
825,
|
| 902 |
+
659
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 7
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "image",
|
| 908 |
+
"img_path": "images/59c0d9e83b71f70ca19cbbba092b5f2d24b5854dd3a4148224d33b368f5d7aa6.jpg",
|
| 909 |
+
"image_caption": [
|
| 910 |
+
"Figure 3: The t-SNE [53] visualization of feature representation on $\\mathrm { { G T A } }$ Cityscapes unsupervsied model adaptation task: Each color in the graphs stands for a category of samples (image pixels) with a digit representing the center of a category of samples. It can be observed that the proposed HCL outperforms “UR\" and “SFDA\" qualitatively, by generating instance-discriminative and categorydiscriminative representations for unlabeled target data. "
|
| 911 |
+
],
|
| 912 |
+
"image_footnote": [],
|
| 913 |
+
"bbox": [
|
| 914 |
+
183,
|
| 915 |
+
676,
|
| 916 |
+
810,
|
| 917 |
+
819
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 7
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "table",
|
| 923 |
+
"img_path": "images/617a24c2b7a268d606f636752ace876e752c5f29111b46cf0e85dec07d475770.jpg",
|
| 924 |
+
"table_caption": [
|
| 925 |
+
"Table 8: Experiments on image classification benchmark Office-Home under the setup of partial-set DA (domain adaptation) and open-set DA (“SF” denotes source-data free, i.e., adaptation without source data). "
|
| 926 |
+
],
|
| 927 |
+
"table_footnote": [],
|
| 928 |
+
"table_body": "<table><tr><td>Partial-set DA</td><td>SF</td><td>A→C</td><td>A→P</td><td>A→R</td><td>C→A</td><td>C→P</td><td>C→R</td><td>P→A</td><td>P→C</td><td>P→R</td><td>R→A</td><td>R→C</td><td>R→P</td><td>Mean</td></tr><tr><td>SAN[5]</td><td>X</td><td>44.4</td><td>68.7</td><td>74.6</td><td>67.5</td><td>65.0</td><td>77.8</td><td>59.8</td><td>44.7</td><td>80.1</td><td>72.2</td><td>50.2</td><td>78.7</td><td>65.3</td></tr><tr><td>ETN [6]</td><td>×</td><td>59.2</td><td>77.0</td><td>79.5</td><td>62.9</td><td>65.7</td><td>75.0</td><td>68.3</td><td>55.4</td><td>84.4</td><td>75.7</td><td>57.7</td><td>84.5</td><td>70.5</td></tr><tr><td>SAFN [85]</td><td>X</td><td>58.9</td><td>76.3</td><td>81.4</td><td>70.4</td><td>73.0</td><td>77.8</td><td>72.4</td><td>55.3</td><td>80.4</td><td>75.8</td><td>60.4</td><td>79.9</td><td>71.8</td></tr><tr><td>SHOT [45]</td><td></td><td>57.9</td><td>83.6</td><td>88.8</td><td>72.4</td><td>74.0</td><td>79.0</td><td>76.1</td><td>60.6</td><td>90.1</td><td>81.9</td><td>68.3</td><td>88.5</td><td>76.8</td></tr><tr><td>+HCL</td><td>·</td><td>66.9</td><td>85.5</td><td>92.5</td><td>78.3</td><td>77.2</td><td>87.1</td><td>78.3</td><td>65.1</td><td>90.7</td><td>82.4</td><td>68.7</td><td>88.4</td><td>80.1</td></tr><tr><td>HCL</td><td>√</td><td>65.6</td><td>85.2</td><td>92.7</td><td>77.3</td><td>76.2</td><td>87.2</td><td>78.2</td><td>66.0</td><td>89.1</td><td>81.5</td><td>68.4</td><td>87.3</td><td>79.6</td></tr><tr><td>Open-set DA</td><td>SF</td><td>A→C</td><td>A→P</td><td>A→R</td><td>C→A</td><td>C→P</td><td>C→R</td><td>P→A</td><td>P→C</td><td>P→R</td><td>R→A</td><td>R→C</td><td>R→P</td><td>Mean</td></tr><tr><td>OSBP[67]</td><td>X</td><td>56.7</td><td>51.5</td><td>49.2</td><td>67.5</td><td>65.5</td><td>74.0</td><td>62.5</td><td>64.8</td><td>69.3</td><td>80.6</td><td>74.7</td><td>71.5</td><td>65.7</td></tr><tr><td>OpenMax [2]</td><td></td><td>56.5</td><td>52.9</td><td>53.7</td><td>69.1</td><td>64.8</td><td>74.5</td><td>64.1</td><td>64.0</td><td>71.2</td><td>80.3</td><td>73.0</td><td>76.9</td><td>66.7</td></tr><tr><td>STA [47]</td><td>X</td><td>58.1</td><td>53.1</td><td>54.4</td><td>71.6</td><td>69.3</td><td>81.9</td><td>63.4</td><td>65.2</td><td>74.9</td><td>85.0</td><td>75.8</td><td>80.8</td><td>69.5</td></tr><tr><td>SHOT[45]</td><td></td><td>62.5</td><td>77.8</td><td>83.9</td><td>60.9</td><td>73.4</td><td>79.4</td><td>64.7</td><td>58.7</td><td>83.1</td><td>69.1</td><td>62.0</td><td>82.1</td><td>71.5</td></tr><tr><td>+HCL</td><td>1</td><td>64.2</td><td>78.3</td><td>83.0</td><td>61.1</td><td>72.2</td><td>79.6</td><td>65.5</td><td>59.3</td><td>80.6</td><td>80.1</td><td>72.0</td><td>82.8</td><td>73.2</td></tr><tr><td>HCL</td><td>√</td><td>64.0</td><td>78.6</td><td>82.4</td><td>64.5</td><td>73.1</td><td>80.1</td><td>64.8</td><td>59.8</td><td>75.3</td><td>78.1</td><td>69.3</td><td>81.5</td><td>72.6</td></tr></table>",
|
| 929 |
+
"bbox": [
|
| 930 |
+
186,
|
| 931 |
+
137,
|
| 932 |
+
810,
|
| 933 |
+
325
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 8
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "image",
|
| 939 |
+
"img_path": "images/209e3b18de22c7d192c35d0e2839dfa1cd7f4269f1ba67662048a326e08c5ec7.jpg",
|
| 940 |
+
"image_caption": [
|
| 941 |
+
"Figure 4: Qualitative illustrations and comparison over domain adaptive semantic segmentation task $\\mathrm { G T A } 5 $ Cityscapes. Our historical contrastive learning (HCL) exploits historical source hypothesis to make up for the absence of source data in UMA, which produces better qualitative results (i.e., semantic segmentation) by preserving the source hypothesis. It can be observed that HCL generates better segmentation results, for example, the sidewalk in the first row, the road in the second row and the sky and sidewalk in the third row. "
|
| 942 |
+
],
|
| 943 |
+
"image_footnote": [],
|
| 944 |
+
"bbox": [
|
| 945 |
+
184,
|
| 946 |
+
348,
|
| 947 |
+
797,
|
| 948 |
+
546
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 8
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "5 Conclusion ",
|
| 955 |
+
"text_level": 1,
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
667,
|
| 959 |
+
299,
|
| 960 |
+
684
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 8
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "In this work, we studied historical contrastive learning, an innovative UMA technique that exploits historical source hypothesis to make up for the absence of source data in UMA. We achieve historical contrastive learning by novel designs of historical contrastive instance discrimination and historical contrastive category discrimination which learn discriminative representations for target data while preserving source hypothesis simultaneously. Extensive experiments over a variety of visual tasks and learning setups show that HCL outperforms state-of-the-art techniques consistently. Moving forward, we will explore memory-based learning in other transfer learning tasks. ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
174,
|
| 969 |
+
700,
|
| 970 |
+
825,
|
| 971 |
+
799
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 8
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "Acknowledgement ",
|
| 978 |
+
"text_level": 1,
|
| 979 |
+
"bbox": [
|
| 980 |
+
176,
|
| 981 |
+
821,
|
| 982 |
+
330,
|
| 983 |
+
838
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "This research was conducted at Singtel Cognitive and Artificial Intelligence Lab for Enterprises (SCALE $@$ NTU), which is a collaboration between Singapore Telecommunications Limited (Singtel) and Nanyang Technological University (NTU) that is supported by $\\mathbf { A } { ^ { * } \\mathbf { S } } \\mathbf { T } \\mathbf { A } \\mathbf { R }$ under its Industry Alignment Fund (LOA Award number: I1701E0013). ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
174,
|
| 992 |
+
856,
|
| 993 |
+
825,
|
| 994 |
+
911
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 8
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "References \n[1] Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In Advances in neural information processing systems, pages 137–144, 2007. \n[2] Abhijit Bendale and Terrance E Boult. Towards open set deep networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1563–1572, 2016. \n[3] Léon Bottou. Large-scale machine learning with stochastic gradient descent. In Proceedings of COMPSTAT’2010, pages 177–186. Springer, 2010. [4] Qi Cai, Yingwei Pan, Chong-Wah Ngo, Xinmei Tian, Lingyu Duan, and Ting Yao. Exploring object relation in mean teacher for cross-domain detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11457–11466, 2019. [5] Zhangjie Cao, Mingsheng Long, Jianmin Wang, and Michael I Jordan. Partial transfer learning with selective adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2724–2732, 2018. [6] Zhangjie Cao, Kaichao You, Mingsheng Long, Jianmin Wang, and Qiang Yang. Learning to transfer examples for partial domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2985–2994, 2019. \n[7] Hyuntak Cha, Jaeho Lee, and Jinwoo Shin. Co2l: Contrastive continual learning. arXiv preprint arXiv:2106.14413, 2021. [8] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834–848, 2017. [9] Shiming Chen, Wenjie Wang, Beihao Xia, Qinmu Peng, Xinge You, Feng Zheng, and Ling Shao. Free: Feature refinement for generalized zero-shot learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 122–131, 2021. \n[10] Shiming Chen, GuoSen Xie, Yang Liu, Qinmu Peng, Baigui Sun, Hao Li, Xinge You, and Ling Shao. Hsva: Hierarchical semantic-visual adaptation for zero-shot learning. In 35th Conference on Neural Information Processing Systems (NeurIPS), 2021. \n[11] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020. \n[12] Yanbei Chen, Xiatian Zhu, and Shaogang Gong. Semi-supervised deep learning with memory. In Proceedings of the European Conference on Computer Vision (ECCV), pages 268–283, 2018. \n[13] Yuhua Chen, Wen Li, Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Domain adaptive faster r-cnn for object detection in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3339–3348, 2018. \n[14] Yuhua Chen, Wen Li, and Luc Van Gool. Road: Reality oriented adaptation for semantic segmentation of urban scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7892–7901, 2018. \n[15] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213–3223, 2016. \n[16] Geoffrey French, Michal Mackiewicz, and Mark Fisher. Self-ensembling for visual domain adaptation. arXiv preprint arXiv:1706.05208, 2017. \n[17] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016. \n[18] Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pages 529–536, 2005. \n[19] Dayan Guan, Jiaxing Huang, Shijian Lu, and Aoran Xiao. Scale variance minimization for unsupervised domain adaptation in image segmentation. Pattern Recognition, 112:107764, 2021. \n[20] Dayan Guan, Jiaxing Huang, Aoran Xiao, and Shijian Lu. Domain adaptive video segmentation via temporal consistency regularization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8053–8064, 2021. \n[21] Dayan Guan, Jiaxing Huang, Aoran Xiao, Shijian Lu, and Yanpeng Cao. Uncertainty-aware unsupervised domain adaptation in object detection. IEEE Transactions on Multimedia, 2021. \n[22] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9729–9738, 2020. \n[23] 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. \n[24] 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[25] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. In International Conference on Machine Learning, pages 1989–1998, 2018. \n[26] Weixiang Hong, Zhenzhen Wang, Ming Yang, and Junsong Yuan. Conditional generative adversarial network for structured domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1335–1344, 2018. \n[27] Cheng-Chun Hsu, Yi-Hsuan Tsai, Yen-Yu Lin, and Ming-Hsuan Yang. Every pixel matters: Center-aware feature alignment for domain adaptive object detector. In European Conference on Computer Vision, pages 733–748. Springer, 2020. \n[28] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700–4708, 2017. \n[29] Jiaxing Huang, Dayan Guan, Shijian Lu, and Aoran Xiao. Mlan: Multi-level adversarial network for domain adaptive semantic segmentation. Pattern Recognition, 2021. \n[30] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Category contrast for unsupervised domain adaptation in visual tasks. arXiv preprint arXiv:2106.02885, 2021. \n[31] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Cross-view regularization for domain adaptive panoptic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10133–10144, 2021. \n[32] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Fsdr: Frequency space domain randomization for domain generalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6891–6902, 2021. \n[33] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Rda: Robust domain adaptation via fourier adversarial attacking. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2021. \n[34] Jiaxing Huang, Dayan Guan, Aoran Xiao, and Shijian Lu. Semi-supervised domain adaptation via adaptive and progressive feature alignment. arXiv preprint arXiv:2106.02845, 2021. \n[35] Jiaxing Huang, Shijian Lu, Dayan Guan, and Xiaobing Zhang. Contextual-relation consistent domain adaptation for semantic segmentation. In European Conference on Computer Vision, pages 705–722. Springer, 2020. \n[36] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. arXiv preprint arXiv:2004.11362, 2020. \n[37] Taekyung Kim, Minki Jeong, Seunghyeon Kim, Seokeon Choi, and Changick Kim. Diversify and match: A domain adaptive representation learning paradigm for object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12456–12465, 2019. \n[38] Jogendra Nath Kundu, Naveen Venkat, R Venkatesh Babu, et al. Universal source-free domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4544– 4553, 2020. \n[39] Jogendra Nath Kundu, Naveen Venkat, Ambareesh Revanur, R Venkatesh Babu, et al. Towards inheritable models for open-set domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12376–12385, 2020. \n[40] Vinod K Kurmi, Venkatesh K Subramanian, and Vinay P Namboodiri. Domain impression: A source data free domain adaptation method. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 615–625, 2021. \n[41] Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. arXiv preprint arXiv:1610.02242, 2016. \n[42] Rui Li, Qianfen Jiao, Wenming Cao, Hau-San Wong, and Si Wu. Model adaptation: Unsupervised domain adaptation without source data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9641–9650, 2020. \n[43] Xianfeng Li, Weijie Chen, Di Xie, Shicai Yang, Peng Yuan, Shiliang Pu, and Yueting Zhuang. A free lunch for unsupervised domain adaptive object detection without source data. arXiv preprint arXiv:2012.05400, 2020. \n[44] Yunsheng Li, Lu Yuan, and Nuno Vasconcelos. Bidirectional learning for domain adaptation of semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6936–6945, 2019. \n[45] Jian Liang, Dapeng Hu, and Jiashi Feng. Do we really need to access the source data? source hypothesis transfer for unsupervised domain adaptation. In International Conference on Machine Learning, pages 6028–6039. PMLR, 2020. \n[46] Jian Liang, Dapeng Hu, Yunbo Wang, Ran He, and Jiashi Feng. Source data-absent unsupervised domain adaptation through hypothesis transfer and labeling transfer. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021. \n[47] Hong Liu, Zhangjie Cao, Mingsheng Long, Jianmin Wang, and Qiang Yang. Separate to adapt: Open set domain adaptation via progressive separation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2927–2936, 2019. \n[48] Yuang Liu, Wei Zhang, and Jun Wang. Source-free domain adaptation for semantic segmentation. arXiv preprint arXiv:2103.16372, 2021. \n[49] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael Jordan. Learning transferable features with deep adaptation networks. In International Conference on Machine Learning, pages 97–105, 2015. \n[50] Mingsheng Long, Han Zhu, Jianmin Wang, and Michael I Jordan. Deep transfer learning with joint adaptation networks. In International conference on machine learning, pages 2208–2217. PMLR, 2017. \n[51] Yawei Luo, Liang Zheng, Tao Guan, Junqing Yu, and Yi Yang. Taking a closer look at domain shift: Category-level adversaries for semantics consistent domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2507–2516, 2019. \n[52] Zhipeng Luo, Zhongang Cai, Changqing Zhou, Gongjie Zhang, Haiyu Zhao, Shuai Yi, Shijian Lu, Hongsheng Li, Shanghang Zhang, and Ziwei Liu. Unsupervised domain adaptive 3d detection with multi-level consistency. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8866–8875, 2021. \n[53] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579–2605, 2008. \n[54] Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6707–6717, 2020. \n[55] Hyeonwoo Noh, Seunghoon Hong, and Bohyung Han. Learning deconvolution network for semantic segmentation. In Proceedings of the IEEE international conference on computer vision, pages 1520–1528, 2015. \n[56] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. \n[57] Fei Pan, Inkyu Shin, Francois Rameau, Seokju Lee, and In So Kweon. Unsupervised intra-domain adaptation for semantic segmentation through self-supervision. arXiv preprint arXiv:2004.07703, 2020. \n[58] Xingchao Peng, Ben Usman, Neela Kaushik, Dequan Wang, Judy Hoffman, and Kate Saenko. Visda: A synthetic-to-real benchmark for visual domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 2021–2026, 2018. \n[59] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779–788, 2016. \n[60] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91–99, 2015. \n[61] Stephan R Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In European conference on computer vision, pages 102–118. Springer, 2016. \n[62] German Ros, Laura Sellart, Joanna Materzynska, David Vazquez, and Antonio M Lopez. The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3234–3243, 2016. \n[63] Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. Adapting visual category models to new domains. In European conference on computer vision, pages 213–226. Springer, 2010. \n[64] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Adversarial dropout regularization. arXiv preprint arXiv:1711.01575, 2017. \n[65] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Strong-weak distribution alignment for adaptive object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6956–6965, 2019. \n[66] Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, and Tatsuya Harada. Maximum classifier discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3723–3732, 2018. \n[67] Kuniaki Saito, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Open set domain adaptation by backpropagation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 153–168, 2018. \n[68] Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Semantic foggy scene understanding with synthetic data. International Journal of Computer Vision, 126(9):973–992, 2018. \n[69] Fatemeh Sadat Saleh, Mohammad Sadegh Aliakbarian, Mathieu Salzmann, Lars Petersson, and Jose M Alvarez. Effective use of synthetic data for urban scene semantic segmentation. In European Conference on Computer Vision, pages 86–103. Springer, 2018. \n[70] Swami Sankaranarayanan, Yogesh Balaji, Carlos D Castillo, and Rama Chellappa. Generate to adapt: Aligning domains using generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8503–8512, 2018. \n[71] Swami Sankaranarayanan, Yogesh Balaji, Arpit Jain, Ser Nam Lim, and Rama Chellappa. Learning from synthetic data: Addressing domain shift for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3752–3761, 2018. \n[72] Prabhu Teja Sivaprasad and Francois Fleuret. Uncertainty reduction for model adaptation in semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), number CONF. IEEE, 2021. \n[73] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1–9, 2015. \n[74] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Advances in neural information processing systems, pages 1195–1204, 2017. \n[75] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019. \n[76] Yi-Hsuan Tsai, Wei-Chih Hung, Samuel Schulter, Kihyuk Sohn, Ming-Hsuan Yang, and Manmohan Chandraker. Learning to adapt structured output space for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7472–7481, 2018. \n[77] Yi-Hsuan Tsai, Kihyuk Sohn, Samuel Schulter, and Manmohan Chandraker. Domain adaptation for structured output via discriminative patch representations. In Proceedings of the IEEE International Conference on Computer Vision, pages 1456–1465, 2019. \n[78] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7167–7176, 2017. \n[79] Tuan-Hung Vu, Himalaya Jain, Maxime Bucher, Matthieu Cord, and Patrick Pérez. Advent: Adversarial entropy minimization for domain adaptation in semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2517–2526, 2019. \n[80] Guoqiang Wei, Cuiling Lan, Wenjun Zeng, Zhizheng Zhang, and Zhibo Chen. Toalign: Task-oriented alignment for unsupervised domain adaptation. 35th Advances in Neural Information Processing Systems, 2021. \n[81] Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014. \n[82] 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[83] Rongchang Xie, Fei Yu, Jiachao Wang, Yizhou Wang, and Li Zhang. Multi-level domain adaptive learning for cross-domain detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, Oct 2019. \n[84] Chang-Dong Xu, Xing-Ran Zhao, Xin Jin, and Xiu-Shen Wei. Exploring categorical regularization for domain adaptive object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11724–11733, 2020. \n[85] Ruijia Xu, Guanbin Li, Jihan Yang, and Liang Lin. Larger norm more transferable: An adaptive feature norm approach for unsupervised domain adaptation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1426–1435, 2019. \n[86] Yanchao Yang and Stefano Soatto. Fda: Fourier domain adaptation for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4085– 4095, 2020. \n[87] Mang Ye, Xu Zhang, Pong C Yuen, and Shih-Fu Chang. Unsupervised embedding learning via invariant and spreading instance feature. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6210–6219, 2019. \n[88] Hao-Wei Yeh, Baoyao Yang, Pong C Yuen, and Tatsuya Harada. Sofa: Source-data-free feature alignment for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 474–483, 2021. \n[89] Fisher Yu, Wenqi Xian, Yingying Chen, Fangchen Liu, Mike Liao, Vashisht Madhavan, and Trevor Darrell. Bdd100k: A diverse driving video database with scalable annotation tooling. arXiv preprint arXiv:1805.04687, 2(5):6, 2018. \n[90] Yunpeng Zhai, Shijian Lu, Qixiang Ye, Xuebo Shan, Jie Chen, Rongrong Ji, and Yonghong Tian. Adcluster: Augmented discriminative clustering for domain adaptive person re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9021–9030, 2020. \n[91] Yunpeng Zhai, Qixiang Ye, Shijian Lu, Mengxi Jia, Rongrong Ji, and Yonghong Tian. Multiple expert brainstorming for domain adaptive person re-identification. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part VII 16, pages 594–611. Springer, 2020. \n[92] Fangneng Zhan, Chuhui Xue, and Shijian Lu. Ga-dan: Geometry-aware domain adaptation network for scene text detection and recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9105–9115, 2019. \n[93] Jingyi Zhang, Jiaxing Huang, and Shijian Lu. Spectral unsupervised domain adaptation for visual recognition. arXiv preprint arXiv:2106.06112, 2021. \n[94] Jingyi Zhang, Jiaxing Huang, Zhipeng Luo, Gongjie Zhang, and Shijian Lu. Da-detr: Domain adaptive detection transformer by hybrid attention. arXiv preprint arXiv:2103.17084, 2021. \n[95] Xiaobing Zhang, Haigang Gong, Xili Dai, Fan Yang, Nianbo Liu, and Ming Liu. Understanding pictograph with facial features: End-to-end sentence-level lip reading of chinese. In AAAI, pages 9211–9218, 2019. \n[96] Yang Zhang, Philip David, and Boqing Gong. Curriculum domain adaptation for semantic segmentation of urban scenes. In Proceedings of the IEEE International Conference on Computer Vision, pages 2020–2030, 2017. \n[97] Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4320–4328, 2018. \n[98] Nanxuan Zhao, Zhirong Wu, Rynson W. H. Lau, and Stephen Lin. What makes instance discrimination good for transfer learning? In International Conference on Learning Representations, 2021. \n[99] Zhedong Zheng and Yi Yang. Unsupervised scene adaptation with memory regularization in vivo. arXiv preprint arXiv:1912.11164, 2019. \n[100] Zhun Zhong, Liang Zheng, Zhiming Luo, Shaozi Li, and Yi Yang. Invariance matters: Exemplar memory for domain adaptive person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 598–607, 2019. \n[101] Chengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6002–6012, 2019. \n[102] Yang Zou, Zhiding Yu, Xiaofeng Liu, BVK Kumar, and Jinsong Wang. Confidence regularized selftraining. In Proceedings of the IEEE International Conference on Computer Vision, pages 5982–5991, 2019. \n[103] Yang Zou, Zhiding Yu, BVK Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic segmentation via class-balanced self-training. In Proceedings of the European Conference on Computer Vision (ECCV), pages 289–305, 2018. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
174,
|
| 1003 |
+
80,
|
| 1004 |
+
826,
|
| 1005 |
+
916
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 9
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
178,
|
| 1014 |
+
68,
|
| 1015 |
+
828,
|
| 1016 |
+
917
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 10
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
176,
|
| 1025 |
+
61,
|
| 1026 |
+
828,
|
| 1027 |
+
915
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 11
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
178,
|
| 1036 |
+
39,
|
| 1037 |
+
828,
|
| 1038 |
+
920
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 12
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
176,
|
| 1047 |
+
53,
|
| 1048 |
+
828,
|
| 1049 |
+
920
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 13
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
173,
|
| 1058 |
+
92,
|
| 1059 |
+
828,
|
| 1060 |
+
467
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 14
|
| 1063 |
+
}
|
| 1064 |
+
]
|
parse/train/0zXJRJecC_/0zXJRJecC__middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/0zXJRJecC_/0zXJRJecC__model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/2j_cut38wv/2j_cut38wv.md
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Backdoor Attack with Imperceptible Input and Latent Modification
|
| 2 |
+
|
| 3 |
+
Khoa Doan, Yingjie Lao, Ping Li Cognitive Computing Lab Baidu Research 10900 NE 8th St. Bellevue, WA 98004, USA {khoadoan106, laoyingjie, pingli98}@gmail.com
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Recent studies have shown that deep neural networks (DNN) are vulnerable to various adversarial attacks. In particular, an adversary can inject a stealthy backdoor into a model such that the compromised model will behave normally without the presence of the trigger. Techniques for generating backdoor images that are visually imperceptible from clean images have also been developed recently, which further enhance the stealthiness of the backdoor attacks from the input space. Along with the development of attacks, defense against backdoor attacks is also evolving. Many existing countermeasures found that backdoor tends to leave tangible footprints in the latent or feature space, which can be utilized to mitigate backdoor attacks.
|
| 8 |
+
|
| 9 |
+
In this paper, we extend the concept of imperceptible backdoor from the input space to the latent representation, which significantly improves the effectiveness against the existing defense mechanisms, especially those relying on the distinguishability between clean inputs and backdoor inputs in latent space. In the proposed framework, the trigger function will learn to manipulate the input by injecting imperceptible input noise while matching the latent representations of the clean and manipulated inputs via a Wasserstein-based regularization of the corresponding empirical distributions. We formulate such an objective as a non-convex and constrained optimization problem and solve the problem with an efficient stochastic alternating optimization procedure. We name the proposed backdoor attack as Wasserstein Backdoor (WB), which achieves a high attack success rate while being stealthy from both the input and latent spaces, as tested in several benchmark datasets, including MNIST, CIFAR10, GTSRB, and TinyImagenet.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
In the past years, deep neural network (DNN) has successfully transformed many technological fields, such as object classification [26, 20], face recognition [31, 1], autonomous driving [53], security applications [19, 3], etc. Meanwhile, due to the underlying black-box nature, its security and privacy implications have also raised serious concerns recently. Efforts in the research community have exposed the vulnerability of DNN classifiers to various attacks [50, 41, 33]. For instance, adversarial examples leverage the difference between the classifier and human to misclassify specific inputs by adding imperceptible perturbations without altering the model [17]. Such attacks during the inference phase are categorized as evasion attacks [27, 5]. On the other hand, poisoning attacks attempt to inject malicious data points or manipulate the training process to either degrade the model accuracy [37, 45, 60] or cause misclassification for specific inputs (a.k.a. backdoor attacks) [8, 36, 34, 18].
|
| 14 |
+
|
| 15 |
+
In general, backdoor attacks aim at injecting a malicious behavior into a DNN model so that the model would perform normally on clean inputs but yield misclassification in the presence of the backdoor trigger (e.g., a specific pattern such as a small square [18]). Later on, many works adopt the concepts and techniques in adversarial examples to improve the stealthiness of the trigger against human observers [34, 2, 35]. Recent works have demonstrated more powerful backdoor attacks that are capable of mounting attacks with visual indistinguishable backdoor images [29, 55, 59, 39, 13]. For instance, WaNet [39] generates backdoor images with warping transformation to minimize input difference while LIRA [13] generates backdoor images with imperceptible conditional noise addition, resulting in much stealthier triggers.
|
| 16 |
+
|
| 17 |
+
To alleviate the threats originated from the ever-growing powerful backdoor attacks, several categories of countermeasures have been developed. One promising direction for backdoor detection entails identifying backdoor images by characterizing the distinguishable dissimilarity in the feature or latent representation between backdoor images and clean images [6, 54, 42, 47, 52]. These methods rely on the assumption that the injected backdoor would leave a noticeable fingerprint in the latent space. For example, activation clustering [6] and spectral signature [54] detect malicious samples by inspecting the clusters of the latent space and the spectrum of the covariance of latent representations, respectively. Thus, a stronger adaptive backdoor attack should also ensure its stealthiness from the latent space.
|
| 18 |
+
|
| 19 |
+
In this paper, we present a novel methodology for a backdoor attack that is imperceptible from both the input and latent spaces. We extend the concept of generating imperceptible backdoor triggers to the latent space by minimizing the Wasserstein distance between the latent representations of the clean and backdoor data, which significantly improves the effectiveness against the existing defense mechanisms, especially those aforementioned that rely on the distinguishability in latent space. We name the proposed method Wasserstein Backdoor, or WB. Our technical contributions are summarized below:
|
| 20 |
+
|
| 21 |
+
• We propose a non-convex, constrained optimization problem, which learns to poison the classifier with a backdoor whose trigger is visually imperceptible in the input space and whose poisoned samples have indistinguishable latent distribution to the latent distribution of the clean samples. The latent constraint is formulated via a variant of Wasserstein distance, called sliced-Wasserstein distance [24], between the two sets of clean and backdoor data. • We then develop an efficient estimation of the sliced-Wasserstein distance by exploiting the discriminant directions of the trained classifier, instead of randomly sampling from the unit sphere. The proposed distance is a valid distance metric and requires significantly less computation, while yielding a better estimate than the existing calculations of the sliced-Wasserstein distance. • Finally, we demonstrate the superior attack performance of the proposed method and its robustness against several representative defense mechanisms. Specifically, we show that the proposed method outperforms the state-of-the-art attacks in terms of latent indistinguishability, while maintaining similar attack success rates and input indistinguishability.
|
| 22 |
+
|
| 23 |
+
The rest of the paper is organized as follows. We review the background and related work in Section 2. In Section 3, we define the threat model. Section 4 presents the details of the proposed methodology. We evaluate the performance and compare to prior works in Section 5. Finally, Section 6 presents remarks and concludes this paper. We present more details about experimental settings and results as well as supporting proofs in the supplementary material.
|
| 24 |
+
|
| 25 |
+
# 2 Background and Related Work
|
| 26 |
+
|
| 27 |
+
# 2.1 Backdoor Attack
|
| 28 |
+
|
| 29 |
+
The increasing popularity of training outsourcing and machine learning as a service (MLaaS) has created potential security risks in the supply chain [10, 58]. One important security threat is backdoor attacks against DNNs, which have recently attracted a lot of attention. Backdoor attacks inject a malicious behavior by leveraging the redundancies inside the model such that the model responds to inputs with triggers maliciously (e.g., classify as a target class that would normally be considered as a wrong class by manual annotation), while preserving the benign behavior for clean inputs without the triggers. Hence, a typical backdoor embedding process is to train the model by minimizing the loss of the clean inputs and the corresponding labels as well as backdoor inputs (with triggers) and the target class(es). A trigger is typically applied on a clean image by superimposing at a certain location (i.e., patch-based) [18, 34] or adding perturbations [44]. Various forms of the triggers have been investigated in the literature, including blended [8], sinusoidal strips (SIG) [2], reflection (ReFool) [35], and warping-based (WaNet) [39]. As we mentioned above, several techniques have been developed recently that can significantly reduce the visibility of the trigger in the input space to enhance the stealthiness of the backdoor attack [34, 2, 35]. In particular, WaNet uses a smooth warping field to generate backdoor images with unnoticeable modifications [39], while LIRA [13] alternates between the processes of trigger generation and backdoor injection to learn visually stealthy triggers. One prior work, Adversarial Embedding [51], also attempted to improve the latent indistinguishability of the backdoor attack by using adversarial regularization to minimize the distance between the latent distributions of the backdoor inputs and clean inputs.
|
| 30 |
+
|
| 31 |
+
# 2.2 Backdoor Defense
|
| 32 |
+
|
| 33 |
+
By exploring specific characteristics of the injected backdoor, various countermeasures have been proposed [6, 54, 16, 47, 9, 7, 42], although they are often circumvented by subsequent adaptive attacks. For instance, based on the property that a backdoor attack usually targets redundant weights or neurons based on the clean images, model pruning can be used to eliminate the injected backdoor [32]. In contrast, Neural Cleanse assumes a known subset of clean inputs to reverse-engineer possible trigger patches [56]. It is also possible to filter the images to nullify the presence of triggers at the test phase to defend against backdoor attacks [36, 30].
|
| 34 |
+
|
| 35 |
+
In this paper, we focus on optimizing the characteristics of backdoor attacks in the latent space. As we discussed above, the rationale behind this is that prior works have demonstrated backdoor images cause distinctive activations in the latent space from those of clean inputs. Hence, this distinguishable dissimilarity between clean images and backdoor images can be utilized for defense in both training [6, 54] and test phases [49, 23, 22]. Most of these approaches compute an outlier score to detect abnormal inputs that will be filtered afterward. For example, spectral signature [54] computes the outlier score based on the singular value decomposition of the covariance matrix of the latent representations, while CleaNN [22] leverages a concentration inequality to detect anomalous reconstruction errors that are then suppressed before the input entering the victim DNN.
|
| 36 |
+
|
| 37 |
+
This work proposes a method to minimize the difference between clean images and backdoor images in the latent space to improve the attack stealthiness. While doing this, we also optimize the visual imperceptibility in the input space, so that our proposed method can bypass visual inspection.
|
| 38 |
+
|
| 39 |
+
# 3 Threat Model
|
| 40 |
+
|
| 41 |
+
We consider the same threat model as in prior studies [44, 51, 39], which assumes the backdoor injection is performed at training and the adversary can access to the victim model including both structures and parameters. A successful backdoor attack over an image classification task should produce malicious behavior on images with the trigger, while otherwise working normally on clean images. However, in typical backdoor attacks, the poisoned images are visually inconsistent with natural images, which can be identified easily by human observers. Besides, these attacks usually leave a tangible trace in the latent space of the poisoned classifier; thus, some defense methods can easily detect and discard the poisoned models. To this end, we propose a stronger backdoor attack where the poisoned images are crafted with imperceptible perturbation in the input space to clean images as well as unnoticeable trace in the latent space. We advance the state-of-the-art by significantly enhancing the imperceptibility and robustness of the backdoor attack.
|
| 42 |
+
|
| 43 |
+
# 4 Proposed Methodology: Wasserstein Backdoor (WB)
|
| 44 |
+
|
| 45 |
+
# 4.1 Preliminaries
|
| 46 |
+
|
| 47 |
+
Consider the standard supervised classification task where one seeks to learn a mapping function $f _ { \theta } : \mathcal { X } \longrightarrow \mathcal { C }$ where $\mathcal { X }$ is the input domain and $\mathcal { C }$ is the set of target classes. The task is to learn the parameters $\theta$ by using the training dataset $\mathcal { S } = \{ ( x _ { i } , y _ { i } ) : x _ { i } \in \bar { \mathcal { X } } , y _ { i } \in \mathcal { C } , i = 1 , . . , N \}$ .
|
| 48 |
+
|
| 49 |
+
Following the standard training scheme of backdoor attacks, the classifier is trained with the combination of the clean and poisoned subsets of $S$ . To create a poisoned sample, a clean training sample $( x , y )$ is transformed into a backdoor sample $( T ( x ) , \eta ( y ) )$ , where $T$ is a backdoor injection function (also called the trigger function) and $\eta$ is the target label function. When training $f$ with the clean and poison samples, we alter the behavior of $f$ so that:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
f ( x ) = y , \quad f ( T ( x ) ) = \eta ( y ) ,
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
for any pair of clean data $x \in \mathcal { X }$ and its corresponding label $y \in { \mathcal { C } }$ . There are two commonly studied backdoor attack settings [18, 39, 51]: all-to-one and all-to-all. In the all-to-one attack, the label is changed to a constant target, i.e. $\eta ( y ) = c$ ; while for the all-to-all attack, the true label is one-shifted, i.e. $\bar { \eta ( y ) } = ( y + 1 )$ mod $| { \mathcal { C } } |$ . In the existing works, the trigger function $T$ is usually selected before training $f$ and fixed during the training process of $f$ .
|
| 56 |
+
|
| 57 |
+
# 4.2 Learning to Backdoor
|
| 58 |
+
|
| 59 |
+
Given the training dataset $s$ and a loss function $\mathcal { L }$ , e.g., cross entropy loss, empirical risk minimization can be used to learn the parameters $\theta$ , as follows:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\theta ^ { * } = \arg \operatorname* { m i n } _ { \theta } \sum _ { i = 1 } ^ { N } \mathcal { L } ( f _ { \theta } ( x _ { i } ) , y _ { i } ) .
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
The goal of this work is to learn a trigger function $T _ { \xi } : \mathcal { X } \longrightarrow \mathcal { X }$ and a classification model $f _ { \theta }$ in such a way that the clean image $x$ and its corresponding backdoor image $T ( x )$ are visually consistent in the input space while the backdoor attack does not leave a detectable trace in the latent space of the poisoned classifier. When $f$ is a neural network, $\phi ( x )$ can be the output of an intermediate, hidden layer of $f$ , which captures some high-level abstractions of the input. Note that we require the classifier to perform normally on the clean sample, $x$ , compared to the classifier’s vanilla version, but change its prediction on the poisoned image, $T ( x )$ , to the target class $\eta ( y )$ .
|
| 66 |
+
|
| 67 |
+
To generate a trigger and poison the image, we follow the prior work [13] and formulate the trigger function as a conditional noise generator $g$ , as follows:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
T _ { \xi } ( x ) = x + g _ { \xi } ( x ) , \quad | | g _ { \xi } ( x ) | | _ { \infty } \leq \epsilon \forall x
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
The generator function $g _ { \xi }$ takes an input $x$ and generates an artificially imperceptible noise on the same input space, which guarantees the stealthiness of the backdoor attack. We can design such generator function as an autoencoder or the more complex U-Net architecture [43].
|
| 74 |
+
|
| 75 |
+
With the above objectives and notations, similar to [13, 4], we can formulate the task into the following constrained optimization problem:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\begin{array} { r l } { \displaystyle } & { { } \displaystyle \operatorname* { m i n } _ { \theta } \sum _ { i = 1 } ^ { N } \alpha \mathcal { L } \big ( f _ { \theta } ( x _ { i } ) , y _ { i } \big ) + \beta \mathcal { L } \big ( f _ { \theta } ( T _ { \xi ^ { * } ( \theta ) } ( x _ { i } ) \big ) , \eta ( y _ { i } ) \big ) } \\ { \displaystyle s . t . \quad } & { { } \xi ^ { * } = \arg \operatorname* { m i n } _ { \xi } \sum _ { i = 1 } ^ { N } \mathcal { L } \big ( f _ { \theta } ( T _ { \xi } ( x _ { i } ) ) , \eta ( y _ { i } ) \big ) + \mathcal { R } _ { \phi } ( \mathcal { F } _ { c } , \mathcal { F } _ { b } ) } \end{array}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $\mathcal { R } _ { \phi }$ is the regularization constraint of the clean and poisoned representations, denoted as $\mathcal { F } _ { c } = \{ \phi ( x _ { i } ) : i = 1 , . . , N \}$ and $\mathcal { F } _ { b } \{ \phi ( T ( x _ { i } ) ) : i = 1 , . . , N \}$ , respectively.
|
| 82 |
+
|
| 83 |
+
In this problem, a learned classification model with a specific parameter configuration $\theta$ is associated with an optimal yet stealthy backdoor trigger function, which is trained to poison the model. The classifier is trained to minimize a linear combination of clean and targeted backdoor objectives. The parameters $\alpha$ and $\beta$ control the mixing strengths of the clean and backdoor loss signals. The trigger function is trained to perturb an image within its $\ell _ { \infty }$ ball in the input space, so that the loss towards the attack target class is minimized while regularizing the latent representations of the backdoor images.
|
| 84 |
+
|
| 85 |
+
# 4.3 Stealthy Latent Representation via Wasserstein Regularization
|
| 86 |
+
|
| 87 |
+
In practical applications, latent-space defense methods investigate the abnormal trace of incoming data points with respect to the previous stream of data. These traces exist primarily because of the fact that the clean and backdoor latent representations are separated or distributed differently (e.g., the separated clusters of the clean and poison representations that can be seen in Figures 2 and 3). Thus, we aim to minimize such distributional difference through the regularization constraint $\mathcal { R } _ { \phi }$ . Since we cannot assume that the two latent distributions have common support or their density functions are known, commonly-used divergences, such as $f$ -divergences [40, 15] (which include KL and JSD), are difficult to minimize. Instead, we consider the Wasserstein-2 distance and formulate the regularization constraint as follows:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\mathcal { R } \phi ( \mu , \nu ) = \left( \operatorname* { i n f } _ { \gamma \in \Pi ( \mu , \nu ) } \int _ { ( x , z ) \sim \gamma } p ( x , z ) | | x - z | | _ { 2 } d x d z \right) ^ { 1 / 2 }
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $\mu$ and $\nu$ are marginal probability measures defined by empirical samples $\mathcal { F } _ { c }$ and $\mathcal { F } _ { b }$ of the latent representations of the clean and poisoned data, respectively.
|
| 94 |
+
|
| 95 |
+
Estimating the Wasserstein distance also has some challenges. From the primal domain, computing the infimum in Equation (4) is particularly difficult since the data distributions are not fixed or known. On the other hand, employing the Kantorovich-Rubinstein duality requires a separate, parameterized Lipschitz function and a minimax solver, which increases the complexity of the proposed problem. Fortunately, for one-dimensional continuous measures, the Wasserstein distance has an elegant yet closed-form solution. Let $q _ { \mu }$ and $q _ { \nu }$ be the corresponding density functions of $\mu$ and $\nu$ , respectively. The Wasserstein-2 distance between one-dimensional measures $\mu$ and $\nu$ can be given by:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\mathcal { W } ( \mu , \nu ) = \left( \int _ { 0 } ^ { 1 } | | ( F _ { \mu } ^ { - 1 } ( z ) - F _ { \nu } ^ { - 1 } ( z ) | | _ { 2 } d z \right) ^ { 1 / 2 }
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where $\begin{array} { r } { F _ { \mu } ( z ) = \int _ { \infty } ^ { z } q _ { \mu } ( \rho ) d \rho } \end{array}$ and $\begin{array} { r } { F _ { \nu } ( z ) = \int _ { \infty } ^ { z } q _ { \nu } ( \rho ) d \rho } \end{array}$ are the cumulative distribution functions. 1 1Inspired by the efficiency of this solution and its successful applications in a variety of tasks [12, 24, 14], we propose to first find a family of one-dimensional representations, e.g., through the linear projections, and approximate the Wasserstein distance as a function of these one-dimensional marginals, as follows:
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\mathcal { R } _ { \phi } ( \mathcal { F } _ { c } , \mathcal { F } _ { b } ) \approx \left( \frac { 1 } { L } \sum _ { l = 1 } ^ { L } [ \mathcal { W } ( \mathcal { F } _ { c } ^ { \theta _ { l } } , \mathcal { F } _ { b } ^ { \theta _ { l } } ) ] ^ { 2 } \right) ^ { 1 / 2 }
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
where $\mathcal { F } _ { c } ^ { \theta _ { l } } = \{ \theta _ { l } ^ { T } \phi ( x _ { i } ) : i = 1 , . . , N \}$ and $\mathcal { F } _ { b } ^ { \theta _ { l } } = \{ \theta _ { l } ^ { T } \phi ( T ( x _ { i } ) ) : i = 1 , . . , N \}$ contains the projections of the clean and poisoned datasets into a one-dimensional direction defined by $\theta _ { l }$ (a slice). Typically, $\theta _ { l }$ is drawn from a uniform distribution on the unit sphere. This formulation is also known as the sliced-Wasserstein distance (SWD) [12, 24]. One particular problem with this approach is that the random nature of the slices could lead to several non-informative directions; i.e., the sliced distances are close to 0 in directions that do not lie on the manifolds of the data. Consequently, a large number $L$ of random directions are needed to approximate the sliced-Wasserstein distance, which increases the computational complexity of the estimation.
|
| 108 |
+
|
| 109 |
+
To remedy this issue, we avoid the uniform sampling of the unit sphere and select directions that contain discriminant information of the two data sources, by exploiting the following fact in the classification task. For backdoor samples of a target class $c _ { 1 } \in { \mathcal { C } }$ , created from clean samples of some other class $c _ { 2 } \in { \mathcal { C } }$ , the projections into an output dimension represent meaningful discriminant information that distinguishes the backdoor samples (from class $c _ { 2 }$ ) and the clean samples (from class $c _ { 1 }$ ). Thus, we propose to replace the uniform linear projections of SWD with the projections into the output layer. When the latent space is the penultimate layer of the classifier, such projections are equivalent to the following approximation:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\mathcal { R } _ { \phi } ( \mathcal { F } _ { c } , \mathcal { F } _ { b } ) \approx \left( \frac { 1 } { | \mathcal { C } | } \sum _ { c = 1 } ^ { | \mathcal { C } | } \left[ \mathcal { W } ( \mathcal { F } _ { c } ^ { W _ { c , : } } , \mathcal { F } _ { c } ^ { W _ { c , : } } ) \right] ^ { 2 } \right) ^ { 1 / 2 } .
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $W _ { c , : }$ is a row of the matrix $W \in \mathbb { R } ^ { | \mathcal { C } | \times d }$ ( $d$ is the dimension of the latent space), which is the normalized parameter matrix between the penultimate and the output layers.
|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
Figure 1: Distance estimates (normalized) in the latent space for SWD with different number of sampled directions (between 10 to 10,000) and DSWD.
|
| 119 |
+
|
| 120 |
+
Empirically, Figure 1 shows the estimated SWD with different numbers of random directions and the proposed calculation, so called DSWD, when the latent space is defined at the penultimate layer of the classifier. The dimension of the latent space is 512 for both MNIST and CIFAR10 datasets. Each distance is computed on a random sample of 1000 clean and 1000 backdoor images, and each calculation is repeated 100 times. It can be seen that with only a fraction of slices, DSWD achieves a significantly smaller variance than that of the SWD estimates. Furthermore, in MNIST, the selected directions of DSWD leads to higher distance estimates than SWD, which means that DSWD selects more discriminant directions than SWD while SWD underestimates the distance between the two empirical samples. In addition, we show that DSWD is a valid distance metric of the latent distributions. The detailed proof is presented in the supplementary material.
|
| 121 |
+
|
| 122 |
+
Theorem 1. When the latent space is the penultimate layer of a neural network, the proposed DSWD distance is a valid distance function of probability measures in this space.
|
| 123 |
+
|
| 124 |
+
Remark 1. Since existing defense methods choose the penultimate layer of a neural network. as the space to perform the defense analysis, in most cases, we can employ the proposed DSWD calculation.
|
| 125 |
+
|
| 126 |
+
Remark 2. To preserve the clean classification performance, the classifier seeks optimal parameters that lead to similar predictions of clean samples from the same class. The goal of the trigger function is to make the poisoned samples classified toward a different class. This leads to an adversarial game between the classifier and the trigger functions.
|
| 127 |
+
|
| 128 |
+
DSWD also has a significantly better computational efficiency than SWD. In most problems, SWD requires a large number of random directions, typically between 1000 to 10,000, in order to provide a reliable estimate of the distance [38, 14]. In DSWD, the number of random directions is fixed to the number of possible output labels, which is typically small for many classification problems.
|
| 129 |
+
|
| 130 |
+
# 4.4 Optimization
|
| 131 |
+
|
| 132 |
+
The non-convex, constrained optimization in Equation (3) is challenging because of its non-linear constraint. In general, we can alternately update one of $f$ and $T$ while keeping the other fixed, similar to training GANs. However, it is difficult and slow for the classifier to reach an acceptable performance on the clean data, i.e., similar accuracy to that of the vanilla classifier.
|
| 133 |
+
|
| 134 |
+
Under the alternating update scheme, we observe that on MNIST, the poisoned classifier can reach the acceptable clean-data performance after several epochs; while on other more complex datasets (i.e. CIFAR10, GTSRB, and TinyImagenet), this procedure results in sub-optimal clean-data performance. One possible explanation is that training the vanilla classifier with complex architecture and dataset to reach a decent accuracy is already a difficult and time-consuming task (e.g., 2 to 3 epochs to reach the optimal performance on MNIST but several hundreds of epochs on the other datasets).
|
| 135 |
+
|
| 136 |
+
Fortunately, we observe that after training the classifier and the trigger functions in an alternating update scheme for a certain number of epochs (denoted as Stage I), we can fix the trigger function and only train the classifier for the remaining epochs (denoted as Stage II). This two-stage training scheme is adopted in our experiments.
|
| 137 |
+
|
| 138 |
+
# 5 Experimental Results
|
| 139 |
+
|
| 140 |
+
# 5.1 Experimental Setup
|
| 141 |
+
|
| 142 |
+
We demonstrate the effectiveness of the proposed method through a range of experiments on four widely-used datasets for backdoor attack study: MNIST, CIFAR10, GTSRB and TinyImagenet. For these experiments, we follow the previous works [51, 54, 6, 39] and select the penultimate layers of the classifiers as the latent space for the defense experiments. The implementation of WB was based on the PaddlePaddle deep learning platform.
|
| 143 |
+
|
| 144 |
+
Architectures: For the classifier $f$ , we consider several popular models: Pre-activation Resnet18 [20], VGG [46], DenseNet [21] for CIFAR10 and GTSRB datasets, and Resnet-18 for TinyImagenet. For the MNIST dataset, we employ a CNN model.
|
| 145 |
+
|
| 146 |
+
Hyperparameters: For the baselines, we train the classifiers using the SGD optimizer with an initial learning rate of 0.01 and a learning rate decay of 0.1 after every 100 epochs. For other hyperparameters, we follow the proposed setup in [39] for all datasets. We use the same configurations for WB. We train the classifier and trigger functions alternately (Stage I) for 10 and 50 epochs for MNIST and the other datasets, respectively, and fine-tune the classifier (Stage II) for another 40 epochs and 450 epochs for MNIST and the other datasets, respectively. To achieve a high-degree stealthiness of WB, we pick $\epsilon$ as small as 0.01 for all datasets. In general, the larger the value of $\epsilon$ the easier the trigger functions can be learned and the more successful the attacks are.
|
| 147 |
+
|
| 148 |
+
# 5.2 Attack Performance
|
| 149 |
+
|
| 150 |
+
We present the attack success rates of the proposed WB method, along with a comparison to two state-of-the-art methods, i.e., WaNet [39] and LIRA [13]. Both LIRA and Wanet’s attack performances are significantly better than other approaches, including BadNets [18], and are two of the strongest existing methods that generate very stealthy triggers on the images. We first poison the classifier using the backdoor attack methods in both all-to-one and all-to-all settings and record the performance of the classifier on both clean and backdoor test samples. For all-to-one, we randomly pick the target label $\hat { c }$ (i.e., $\eta ( y ) = \hat { c } \forall y )$ , while for all-to-all, the target label function is defined as $\eta ( y ) = { \bar { ( y + 1 ) } }$ mod $| { \mathcal { C } } | \ \forall y$ , which is widely used to evaluate the backdoor-related works [39, 18, 6, 13]. Note that this all-to-all attack setting is more challenging than the all-to-one setting, especially on datasets with a large number of classes such as TinyImagenet.
|
| 151 |
+
|
| 152 |
+
The classification accuracy on the clean test samples and the attack success rate for each method is represented in Table 1 and Table 2 for the all-to-one and all-to-all settings, respectively. As we can observe from these tables, all the methods can achieve high clean-data accuracies and attack success rates. While WB’s attack performance slightly drops compared to LIRA’s performance, WB is significantly more stealthy in the latent space, as being discussed next.
|
| 153 |
+
|
| 154 |
+
Table 1: Attack Performance: All-to-one Attack
|
| 155 |
+
|
| 156 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="2">WaNet</td><td colspan="2">LIRA</td><td colspan="2">WB</td></tr><tr><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td></tr><tr><td>MNIST</td><td>0.99</td><td>0.99</td><td>0.99</td><td>1.00</td><td>0.99</td><td>0.99</td></tr><tr><td>CIFAR10</td><td>0.94</td><td>0.99</td><td>0.94</td><td>1.00</td><td>0.94</td><td>0.99</td></tr><tr><td>GTSRB</td><td>0.99</td><td>0.98</td><td>0.99</td><td>1.00</td><td>0.99</td><td>0.99</td></tr><tr><td>TinyImagenet</td><td>0.57</td><td>0.99</td><td>0.58</td><td>1.00</td><td>0.57</td><td>0.99</td></tr></table>
|
| 157 |
+
|
| 158 |
+
Table 2: Attack Performance: All-to-all Attack
|
| 159 |
+
|
| 160 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="2">WaNet</td><td colspan="2">LIRA</td><td colspan="2">WB</td></tr><tr><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td></tr><tr><td>MNIST</td><td>0.99</td><td>0.95</td><td>0.99</td><td>0.99</td><td>0.99</td><td>0.96</td></tr><tr><td>CIFAR10</td><td>0.94</td><td>0.93</td><td>0.94</td><td>0.94</td><td>0.94</td><td>0.94</td></tr><tr><td>GTSRB</td><td>0.99</td><td>0.98</td><td>0.99</td><td>1.00</td><td>0.99</td><td>0.98</td></tr><tr><td>TinyImagenet</td><td>0.58</td><td>0.58</td><td>0.58</td><td>0.59</td><td>0.58</td><td>0.58</td></tr></table>
|
| 161 |
+
|
| 162 |
+
# 5.3 Latent-Space Defense
|
| 163 |
+
|
| 164 |
+
Recent works on backdoor defense have found that backdoor attacks tend to leave a tangible trace in the latent space of the poisoned classifier. Activation Clustering [6] and Spectral Signature [54] are two representative defenses used for analyzing the latent space in prior work [51]. In this section, we also examine the latent space of the backdoor-injected classifiers through the lens of these defense methods.
|
| 165 |
+
|
| 166 |
+
# 5.3.1 Learned Latent Representation and Activation Clustering
|
| 167 |
+
|
| 168 |
+
It has been shown in [6] that in a poisoned classifier, the latent representations of the clean and backdoor samples form separate clusters, which can be easily detected using clustering methods such as K-means. The authors also recommend a process called exclusionary reclassification to determine which cluster is poisoned and re-train the poisoned classifier.
|
| 169 |
+
|
| 170 |
+
In Figure 2 and Figure 3, we can observe highly separated clusters (for samples with the sample predictions of $y = 0$ ) in the latent space when we omit the latent regularization term $\mathcal { R } _ { \phi }$ in WB (Baseline), which is similar to LIRA [13]. However, when $\mathcal { R } _ { \phi }$ is included, the latent representations of the clean and backdoor samples are distributed similarly. Without well-separated clusters of the clean and poisoned samples, the exclusionary reclassification process in the activation clustering is not effective against the attacks.
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 2: MNIST: t-SNE embedding in the latent space. Baseline is WB without $\mathcal { R } _ { \phi }$ .
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 3: CIFAR10: t-SNE embedding in the latent space. Baseline is WB without $\mathcal { R } _ { \phi }$ .
|
| 177 |
+
|
| 178 |
+
Quantitatively, we present the quality scores (i.e., the adjusted Rand Index) of the clustering step in Table 3. The adjusted Rand Index is 1 when the samples form two distinct clusters and is close to 0 for a random separation. We compare WB with BadNets [18] and Adversarial Embedding [51], which is the state-of-the-art backdoor attack method with stealthy latent space. As we can observe in this table, the defense is most successful on BadNets since there exists a perfect clustering of the clean and poisoned samples (Rand Index $\geq 0 . 9 5$ ). While Adversarial Embedding is more resistant against the defense, WB is significantly more stealthy against the defense since the values of Rand Index are all very close to 0. Note that, similar to BadNets, WaNet also does not pass this defense (please see the supplementary material).
|
| 179 |
+
|
| 180 |
+
Table 3: Adjusted Rand Index in All-to-one Attack
|
| 181 |
+
|
| 182 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Dataset</td><td rowspan="2">Rand Index (BadNets)</td><td colspan="2">Adversarial Embedding</td><td colspan="2">WB</td></tr><tr><td>Rand Index</td><td>Attack</td><td>Rand Index</td><td>Attack</td></tr><tr><td>DenseNet</td><td>CIFAR10</td><td>0.979</td><td>0.1820</td><td>0.764</td><td>0.0382</td><td>0.998</td></tr><tr><td>DenseNet</td><td>GTSRB</td><td>0.997</td><td>0.2710</td><td>0.914</td><td>0.0135</td><td>0.997</td></tr><tr><td>VGG</td><td>CIFAR10</td><td>0.998</td><td>0.0006</td><td>0.962</td><td>0.0002</td><td>0.999</td></tr><tr><td>VGG</td><td>GTSRB</td><td>0.997</td><td>0.6420</td><td>0.743</td><td>0.1010</td><td>0.999</td></tr></table>
|
| 183 |
+
|
| 184 |
+
# 5.3.2 Spectral Signature Defense
|
| 185 |
+
|
| 186 |
+
The work in [54] proposes a defense method that identifies and removes backdoor samples using the Spectral Signature. For data from each predicted class, Spectral Signature first finds the top singular value of the covariance matrix of the latent vectors of the data. Then it computes the correlation score to this singular value for each sample and those samples with the outlier scores are flagged as backdoor samples. While Spectral Signature is a sample filtering-based defense method, the inspection of the correlation scores can also be useful to verify whether there is a tangible trace in the latent space of the classifier.
|
| 187 |
+
|
| 188 |
+
Following the same experiments in [54], we first pick 5,000 clean samples and 500 backdoor samples for each dataset. Then, we plot the histograms of the correlation scores for both sets of samples. As we can observe in Figure 4, there is no clear separation between the scores of the backdoor samples and those of the clean samples.
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
Figure 4: Defense experiments of the all-to-one attack against Spectral Signature. The correlations of the clean and backdoor samples with the top singular vector of the covariance matrix in the latent space are not separable.
|
| 192 |
+
|
| 193 |
+
# 5.4 Model Mitigation Defense
|
| 194 |
+
|
| 195 |
+
In this section, we evaluate the robustness of WB against another popular defense, Neural Cleanse [56], which is model mitigation defense based on a pattern optimization approach. Specifically, Neural Cleanse searches for the optimal patch pattern for each possible target label that induces a misclassification to that label. It then quantifies whether any of the optimal backdoor trigger pattern is an outlier via a metric called Anomaly Index. The model has a backdoor if the Anomaly Index is greater than 2 for any class. The anomaly indices are presented in Figure 5.
|
| 196 |
+
|
| 197 |
+
It can be seen that both WaNet and WB can pass the detection of Neural Cleanse, similar to that of the vanilla classifier (Clean). In MNIST and CIFAR10, WB even achieves smaller Anomaly Indices than those of the vanilla models. Note that popular backdoor attacks, such as BadNets, can be defended by Neural Cleanse in most of these datasets [56].
|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
Figure 5: Backdoor attacks against Neural Cleanse defense.
|
| 201 |
+
|
| 202 |
+
# 5.5 Input Perturbation Defense
|
| 203 |
+
|
| 204 |
+
In this section, we study the stealthiness of WB against STRIP [16], a representative detection based backdoor defense mechanism. Given the classifier and an input image, STRIP first perturbs the image and determines the presence of a backdoor in the model according to the entropy of the predictions of these perturbed images (i.e., if the predictions are consistent or not).
|
| 205 |
+
|
| 206 |
+
In Figure 6, we plot the entropy of clean and backdoor images, which are computed by STRIP. We can observe that the distribution of entropy of the backdoor samples is similar to that of the clean samples. In other words, STRIP fails to detect backdoor samples generated by WB, which further validates the advantage of the proposed method.
|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
Figure 6: Performance against STRIP defense.
|
| 210 |
+
|
| 211 |
+
Additional experiments for demonstrating the stealthiness of WB against several other defense approaches can be found in the supplementary material.
|
| 212 |
+
|
| 213 |
+
# 6 Conclusion
|
| 214 |
+
|
| 215 |
+
This paper presented a novel methodology for a backdoor attack that is imperceptible from both the input and latent spaces, i.e., Wasserstein Backdoor (WB). WB learns a trigger function that adds visually imperceptible noise to an input image and minimizes the distributional difference via a novel sliced Wasserstein distance formulation between representations of the clean and backdoor images in the latent space of the trained classifier. We comprehensively evaluated the performance of the proposed method on various image classification benchmark models over a wide range of datasets. Our experimental results demonstrated that the proposed method could significantly improve the effectiveness against the existing defense mechanisms, especially those relying on the distinguishability in latent space.
|
| 216 |
+
|
| 217 |
+
References
|
| 218 |
+
[1] Tadas Baltrusaitis, Amir Zadeh, Yao Chong Lim, and Louis-Philippe Morency. Openface 2.0: Facial behavior analysis toolkit. In Proceedings of the 13th IEEE International Conference on Automatic Face & Gesture Recognition (FG), pages 59–66, Xi’an, China, 2018.
|
| 219 |
+
[2] Mauro Barni, Kassem Kallas, and Benedetta Tondi. A new backdoor attack in CNNS by training set corruption without label poisoning. In Proceedings of the 2019 IEEE International Conference on Image Processing (ICIP), pages 101–105, Taipei, 2019.
|
| 220 |
+
[3] Daniel S Berman, Anna L Buczak, Jeffrey S Chavis, and Cherita L Corbett. A survey of deep learning methods for cyber security. Information, 10(4):122, 2019.
|
| 221 |
+
[4] Avishek Joey Bose, Gauthier Gidel, Hugo Berard, Andre Cianflone, Pascal Vincent, Simon Lacoste-Julien, and William L. Hamilton. Adversarial example games. In Advances in Neural Information Processing Systems (NeurIPS), virtual, 2020.
|
| 222 |
+
[5] Nicholas Carlini and David A. Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Bhavani M. Thuraisingham, Battista Biggio, David Mandell Freeman, Brad Miller, and Arunesh Sinha, editors, Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security (AISec@CCS), pages 3–14, Dallas, TX, 2017.
|
| 223 |
+
[6] Bryant Chen, Wilka Carvalho, Nathalie Baracaldo, Heiko Ludwig, Benjamin Edwards, Taesung Lee, Ian M. Molloy, and Biplav Srivastava. Detecting backdoor attacks on deep neural networks by activation clustering. In Proceedings of the Workshop on Artificial Intelligence Safety, Honolulu, HI, 2019.
|
| 224 |
+
[7] Huili Chen, Cheng Fu, Jishen Zhao, and Farinaz Koushanfar. Deepinspect: A black-box trojan detection and mitigation framework for deep neural networks. In Proceedings of the TwentyEighth International Joint Conference on Artificial Intelligence (IJCAI), pages 4658–4664, Macao, China, 2019.
|
| 225 |
+
[8] Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017.
|
| 226 |
+
[9] Hao Cheng, Kaidi Xu, Sijia Liu, Pin-Yu Chen, Pu Zhao, and Xue Lin. Defending against backdoor attack on deep neural networks. arXiv preprint arXiv:2002.12162, 2020.
|
| 227 |
+
[10] Joseph Clements and Yingjie Lao. Hardware trojan design on neural networks. In 2019 IEEE International Symposium on Circuits and Systems (ISCAS), pages 1–5. IEEE, 2019.
|
| 228 |
+
[11] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In Proceedings of the 2009 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), pages 248–255, Miami, FL, 2009.
|
| 229 |
+
[12] Ishan Deshpande, Ziyu Zhang, and Alexander G. Schwing. Generative modeling using the sliced wasserstein distance. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3483–3491, Salt Lake City, UT, 2018.
|
| 230 |
+
[13] Khoa Doan, Yingjie Lao, Weijie Zhao, and Ping Li. LIRA: Learnable, imperceptible and robust backdoor attacks. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 11966–11976, 2021.
|
| 231 |
+
[14] Khoa D Doan, Amir Kimiyaie, Saurav Manchanda, and Chandan K Reddy. Image hashing by minimizing independent relaxed wasserstein distance. arXiv preprint arXiv:2003.00134, 2020.
|
| 232 |
+
[15] Khoa D Doan, Saurav Manchanda, Fengjiao Wang, Sathiya Keerthi, Avradeep Bhowmik, and Chandan K Reddy. Image generation via minimizing fr\’echet distance in discriminator feature space. arXiv preprint arXiv:2003.11774, 2020.
|
| 233 |
+
[16] Yansong Gao, Change Xu, Derui Wang, Shiping Chen, Damith Chinthana Ranasinghe, and Surya Nepal. STRIP: a defence against trojan attacks on deep neural networks. In Proceedings of the 35th Annual Computer Security Applications Conference (ACSAC), pages 113–125, San Juan, PR, 2019.
|
| 234 |
+
[17] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), San Diego, CA, 2015.
|
| 235 |
+
[18] Tianyu Gu, Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. BadNets: Evaluating backdooring attacks on deep neural networks. IEEE Access, 7:47230–47244, 2019.
|
| 236 |
+
[19] Wenbo Guo, Dongliang Mu, Jun Xu, Purui Su, Gang Wang, and Xinyu Xing. LEMNA: explaining deep learning based security applications. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security (CCS), pages 364–379, Toronto, Canada, 2018.
|
| 237 |
+
[20] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, Las Vegas, NV, 2016.
|
| 238 |
+
[21] Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPR Workshops), pages 1614–1619, Salt Lake City, UT, 2018.
|
| 239 |
+
[22] Mojan Javaheripi, Mohammad Samragh, Gregory Fields, Tara Javidi, and Farinaz Koushanfar. Cleann: Accelerated trojan shield for embedded neural networks. In Proceedings of the IEEE/ACM International Conference On Computer Aided Design (ICCAD), pages 11:1–11:9, San Diego, CA, 2020.
|
| 240 |
+
[23] Kaidi Jin, Tianwei Zhang, Chao Shen, Yufei Chen, Ming Fan, Chenhao Lin, and Ting Liu. A unified framework for analyzing and detecting malicious examples of dnn models. arXiv preprint arXiv:2006.14871, 2020.
|
| 241 |
+
[24] Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo K. Rohde. Generalized sliced wasserstein distances. In Advances in Neural Information Processing Systems (NeurIPS), pages 261–272, Vancouver, Canada, 2019.
|
| 242 |
+
[25] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 243 |
+
[26] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 1106–1114, Lake Tahoe, NV, 2012.
|
| 244 |
+
[27] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016.
|
| 245 |
+
[28] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 246 |
+
[29] Shaofeng Li, Minhui Xue, Benjamin Zi Hao Zhao, Haojin Zhu, and Xinpeng Zhang. Invisible backdoor attacks on deep neural networks via steganography and regularization. IEEE Trans. Dependable Secur. Comput., 18(5):2088–2105, 2021.
|
| 247 |
+
[30] Yiming Li, Tongqing Zhai, Baoyuan Wu, Yong Jiang, Zhifeng Li, and Shutao Xia. Rethinking the trigger of backdoor attack. arXiv preprint arXiv:2004.04692, 2020.
|
| 248 |
+
[31] Jingtuo Liu, Yafeng Deng, Tao Bai, Zhengping Wei, and Chang Huang. Targeting ultimate accuracy: Face recognition via deep embedding. arXiv preprint arXiv:1506.07310, 2015.
|
| 249 |
+
[32] Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Fine-pruning: Defending against backdooring attacks on deep neural networks. In Proceedings of the 21st International Symposium on Research in Attacks, Intrusions, and Defenses (RAID), pages 273–294, Heraklion, Crete, Greece, 2018.
|
| 250 |
+
[33] Qiang Liu, Pan Li, Wentao Zhao, Wei Cai, Shui Yu, and Victor C. M. Leung. A survey on security threats and defensive techniques of machine learning: A data driven view. IEEE Access, 6:12103–12117, 2018.
|
| 251 |
+
[34] Yingqi Liu, Shiqing Ma, Yousra Aafer, Wen-Chuan Lee, Juan Zhai, Weihang Wang, and Xiangyu Zhang. Trojaning attack on neural networks. In Proceedings of the 25th Annual Network and Distributed System Security Symposium (NDSS), San Diego, CA, 2018.
|
| 252 |
+
[35] Yunfei Liu, Xingjun Ma, James Bailey, and Feng Lu. Reflection backdoor: A natural backdoor attack on deep neural networks. In Proceedings of the 16th European Conference on Computer Vision (ECCV), Part X, pages 182–199, Glasgow, UK, 2020.
|
| 253 |
+
[36] Yuntao Liu, Yang Xie, and Ankur Srivastava. Neural trojans. In Proceedings of the 2017 IEEE International Conference on Computer Design (ICCD), pages 45–48, Boston, MA, 2017.
|
| 254 |
+
[37] Luis Muñoz-González, Battista Biggio, Ambra Demontis, Andrea Paudice, Vasin Wongrassamee, Emil C. Lupu, and Fabio Roli. Towards poisoning of deep learning algorithms with back-gradient optimization. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security (AISec@CCS), pages 27–38, Dallas, TX, 2017.
|
| 255 |
+
[38] Khai Nguyen, Nhat Ho, Tung Pham, and Hung Bui. Distributional sliced-wasserstein and applications to generative modeling. In Proceedings of the 9th International Conference on Learning Representations (ICLR), Virtual Event, Austria, 2021.
|
| 256 |
+
[39] Tuan Anh Nguyen and Anh Tuan Tran. Wanet - imperceptible warping-based backdoor attack. In Proceedings of the 9th International Conference on Learning Representations (ICLR), Virtual Event, Austria, 2021.
|
| 257 |
+
[40] Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-gan: Training generative neural samplers using variational divergence minimization. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 271–279, 2016.
|
| 258 |
+
[41] Nicolas Papernot, Patrick D. McDaniel, Somesh Jha, Matt Fredrikson, Z. Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In Proceedings of the IEEE European Symposium on Security and Privacy (EuroS&P), pages 372–387, Saarbrücken, Germany, 2016.
|
| 259 |
+
[42] Ximing Qiao, Yukun Yang, and Hai Li. Defending neural backdoors via generative distribution modeling. In Advances in Neural Information Processing Systems (NeurIPS), pages 14004– 14013, Vancouver, Canada, 2019.
|
| 260 |
+
[43] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of the 8th International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI), Part III, pages 234–241, Munich, Germany, 2015.
|
| 261 |
+
[44] Aniruddha Saha, Akshayvarun Subramanya, and Hamed Pirsiavash. Hidden trigger backdoor attacks. In Proceedings of the Thirty-Fourth AAAI Conference on Artificial Intelligence (AAAI), pages 11957–11965, New York, NY, 2020.
|
| 262 |
+
[45] Ali Shafahi, W. Ronny Huang, Mahyar Najibi, Octavian Suciu, Christoph Studer, Tudor Dumitras, and Tom Goldstein. Poison frogs! targeted clean-label poisoning attacks on neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 6106–6116, Montréal, Canada, 2018.
|
| 263 |
+
[46] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 264 |
+
[47] Ezekiel Soremekun, Sakshi Udeshi, Sudipta Chattopadhyay, and Andreas Zeller. Exposing backdoors in robust machine learning models. arXiv preprint arXiv:2003.00865, 2020.
|
| 265 |
+
[48] Johannes Stallkamp, Marc Schlipsing, Jan Salmen, and Christian Igel. Man vs. computer: Benchmarking machine learning algorithms for traffic sign recognition. Neural networks, 32:323–332, 2012.
|
| 266 |
+
[49] Mahesh Subedar, Nilesh Ahuja, Ranganath Krishnan, Ibrahima J Ndiour, and Omesh Tickoo. Deep probabilistic models to detect data poisoning attacks. arXiv preprint arXiv:1912.01206, 2019.
|
| 267 |
+
|
| 268 |
+
[50] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of the 2nd International Conference on Learning Representations (ICLR), Banff, Canada, 2014.
|
| 269 |
+
|
| 270 |
+
[51] Te Juin Lester Tan and Reza Shokri. Bypassing backdoor detection algorithms in deep learning. In Proceedings of the IEEE European Symposium on Security and Privacy (EuroS&P), pages 175–183, Genoa, Italy, 2020.
|
| 271 |
+
|
| 272 |
+
[52] Di Tang, XiaoFeng Wang, Haixu Tang, and Kehuan Zhang. Demon in the variant: Statistical analysis of dnns for robust backdoor contamination detection. In Proceedings of the 30th USENIX Security Symposium (USENIX Security), pages 1541–1558, 2021.
|
| 273 |
+
|
| 274 |
+
[53] Yuchi Tian, Kexin Pei, Suman Jana, and Baishakhi Ray. Deeptest: automated testing of deepneural-network-driven autonomous cars. In Proceedings of the 40th International Conference on Software Engineering (ICSE), pages 303–314, Gothenburg, Sweden, 2018.
|
| 275 |
+
|
| 276 |
+
[54] Brandon Tran, Jerry Li, and Aleksander Madry. Spectral signatures in backdoor attacks. In Advances in Neural Information Processing Systems (NeurIPS), pages 8011–8021, Montréal, Canada, 2018.
|
| 277 |
+
|
| 278 |
+
[55] Alexander Turner, Dimitris Tsipras, and Aleksander Madry. Label-consistent backdoor attacks. arXiv preprint arXiv:1912.02771, 2019.
|
| 279 |
+
|
| 280 |
+
[56] Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y. Zhao. Neural cleanse: Identifying and mitigating backdoor attacks in neural networks. In Proceedings of the 2019 IEEE Symposium on Security and Privacy $( S P )$ , pages 707–723, San Francisco, CA, 2019.
|
| 281 |
+
|
| 282 |
+
[57] Jiayu Wu, Qixiang Zhang, and Guoxi Xu. Tiny Imagenet challenge, 2017.
|
| 283 |
+
|
| 284 |
+
[58] Peng Yang, Yingjie Lao, and Ping Li. Robust watermarking for deep neural networks via bi-level optimization. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), 2021.
|
| 285 |
+
|
| 286 |
+
[59] Haoti Zhong, Cong Liao, Anna Cinzia Squicciarini, Sencun Zhu, and David J. Miller. Backdoor embedding in convolutional neural network models via invisible perturbation. In Proceedings of the tenth ACM Conference on Data and Application Security and Privacy (CODASPY), pages 97–108, New Orleans, LA, 2020.
|
| 287 |
+
|
| 288 |
+
[60] Chen Zhu, W. Ronny Huang, Hengduo Li, Gavin Taylor, Christoph Studer, and Tom Goldstein. Transferable clean-label poisoning attacks on deep neural nets. In Proceedings of the 36th International Conference on Machine Learning (ICML), pages 7614–7623, Long Beach, CA, 2019.
|
parse/train/2j_cut38wv/2j_cut38wv_content_list.json
ADDED
|
@@ -0,0 +1,1321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Backdoor Attack with Imperceptible Input and Latent Modification ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
214,
|
| 8 |
+
122,
|
| 9 |
+
785,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Khoa Doan, Yingjie Lao, Ping Li Cognitive Computing Lab Baidu Research 10900 NE 8th St. Bellevue, WA 98004, USA {khoadoan106, laoyingjie, pingli98}@gmail.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
305,
|
| 19 |
+
220,
|
| 20 |
+
692,
|
| 21 |
+
291
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
327,
|
| 32 |
+
535,
|
| 33 |
+
343
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Recent studies have shown that deep neural networks (DNN) are vulnerable to various adversarial attacks. In particular, an adversary can inject a stealthy backdoor into a model such that the compromised model will behave normally without the presence of the trigger. Techniques for generating backdoor images that are visually imperceptible from clean images have also been developed recently, which further enhance the stealthiness of the backdoor attacks from the input space. Along with the development of attacks, defense against backdoor attacks is also evolving. Many existing countermeasures found that backdoor tends to leave tangible footprints in the latent or feature space, which can be utilized to mitigate backdoor attacks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
358,
|
| 43 |
+
764,
|
| 44 |
+
482
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "In this paper, we extend the concept of imperceptible backdoor from the input space to the latent representation, which significantly improves the effectiveness against the existing defense mechanisms, especially those relying on the distinguishability between clean inputs and backdoor inputs in latent space. In the proposed framework, the trigger function will learn to manipulate the input by injecting imperceptible input noise while matching the latent representations of the clean and manipulated inputs via a Wasserstein-based regularization of the corresponding empirical distributions. We formulate such an objective as a non-convex and constrained optimization problem and solve the problem with an efficient stochastic alternating optimization procedure. We name the proposed backdoor attack as Wasserstein Backdoor (WB), which achieves a high attack success rate while being stealthy from both the input and latent spaces, as tested in several benchmark datasets, including MNIST, CIFAR10, GTSRB, and TinyImagenet. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
493,
|
| 54 |
+
766,
|
| 55 |
+
672
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
696,
|
| 66 |
+
310,
|
| 67 |
+
715
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In the past years, deep neural network (DNN) has successfully transformed many technological fields, such as object classification [26, 20], face recognition [31, 1], autonomous driving [53], security applications [19, 3], etc. Meanwhile, due to the underlying black-box nature, its security and privacy implications have also raised serious concerns recently. Efforts in the research community have exposed the vulnerability of DNN classifiers to various attacks [50, 41, 33]. For instance, adversarial examples leverage the difference between the classifier and human to misclassify specific inputs by adding imperceptible perturbations without altering the model [17]. Such attacks during the inference phase are categorized as evasion attacks [27, 5]. On the other hand, poisoning attacks attempt to inject malicious data points or manipulate the training process to either degrade the model accuracy [37, 45, 60] or cause misclassification for specific inputs (a.k.a. backdoor attacks) [8, 36, 34, 18]. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
729,
|
| 77 |
+
825,
|
| 78 |
+
867
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In general, backdoor attacks aim at injecting a malicious behavior into a DNN model so that the model would perform normally on clean inputs but yield misclassification in the presence of the backdoor trigger (e.g., a specific pattern such as a small square [18]). Later on, many works adopt the concepts and techniques in adversarial examples to improve the stealthiness of the trigger against human observers [34, 2, 35]. Recent works have demonstrated more powerful backdoor attacks that are capable of mounting attacks with visual indistinguishable backdoor images [29, 55, 59, 39, 13]. For instance, WaNet [39] generates backdoor images with warping transformation to minimize input difference while LIRA [13] generates backdoor images with imperceptible conditional noise addition, resulting in much stealthier triggers. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
873,
|
| 88 |
+
823,
|
| 89 |
+
901
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
92,
|
| 99 |
+
825,
|
| 100 |
+
189
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "To alleviate the threats originated from the ever-growing powerful backdoor attacks, several categories of countermeasures have been developed. One promising direction for backdoor detection entails identifying backdoor images by characterizing the distinguishable dissimilarity in the feature or latent representation between backdoor images and clean images [6, 54, 42, 47, 52]. These methods rely on the assumption that the injected backdoor would leave a noticeable fingerprint in the latent space. For example, activation clustering [6] and spectral signature [54] detect malicious samples by inspecting the clusters of the latent space and the spectrum of the covariance of latent representations, respectively. Thus, a stronger adaptive backdoor attack should also ensure its stealthiness from the latent space. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
194,
|
| 110 |
+
825,
|
| 111 |
+
319
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In this paper, we present a novel methodology for a backdoor attack that is imperceptible from both the input and latent spaces. We extend the concept of generating imperceptible backdoor triggers to the latent space by minimizing the Wasserstein distance between the latent representations of the clean and backdoor data, which significantly improves the effectiveness against the existing defense mechanisms, especially those aforementioned that rely on the distinguishability in latent space. We name the proposed method Wasserstein Backdoor, or WB. Our technical contributions are summarized below: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
325,
|
| 121 |
+
825,
|
| 122 |
+
422
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We propose a non-convex, constrained optimization problem, which learns to poison the classifier with a backdoor whose trigger is visually imperceptible in the input space and whose poisoned samples have indistinguishable latent distribution to the latent distribution of the clean samples. The latent constraint is formulated via a variant of Wasserstein distance, called sliced-Wasserstein distance [24], between the two sets of clean and backdoor data. • We then develop an efficient estimation of the sliced-Wasserstein distance by exploiting the discriminant directions of the trained classifier, instead of randomly sampling from the unit sphere. The proposed distance is a valid distance metric and requires significantly less computation, while yielding a better estimate than the existing calculations of the sliced-Wasserstein distance. • Finally, we demonstrate the superior attack performance of the proposed method and its robustness against several representative defense mechanisms. Specifically, we show that the proposed method outperforms the state-of-the-art attacks in terms of latent indistinguishability, while maintaining similar attack success rates and input indistinguishability. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
217,
|
| 131 |
+
434,
|
| 132 |
+
825,
|
| 133 |
+
640
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "The rest of the paper is organized as follows. We review the background and related work in Section 2. In Section 3, we define the threat model. Section 4 presents the details of the proposed methodology. We evaluate the performance and compare to prior works in Section 5. Finally, Section 6 presents remarks and concludes this paper. We present more details about experimental settings and results as well as supporting proofs in the supplementary material. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
652,
|
| 143 |
+
825,
|
| 144 |
+
722
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 Background and Related Work ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
742,
|
| 155 |
+
465,
|
| 156 |
+
760
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2.1 Backdoor Attack ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
773,
|
| 167 |
+
331,
|
| 168 |
+
789
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "The increasing popularity of training outsourcing and machine learning as a service (MLaaS) has created potential security risks in the supply chain [10, 58]. One important security threat is backdoor attacks against DNNs, which have recently attracted a lot of attention. Backdoor attacks inject a malicious behavior by leveraging the redundancies inside the model such that the model responds to inputs with triggers maliciously (e.g., classify as a target class that would normally be considered as a wrong class by manual annotation), while preserving the benign behavior for clean inputs without the triggers. Hence, a typical backdoor embedding process is to train the model by minimizing the loss of the clean inputs and the corresponding labels as well as backdoor inputs (with triggers) and the target class(es). A trigger is typically applied on a clean image by superimposing at a certain location (i.e., patch-based) [18, 34] or adding perturbations [44]. Various forms of the triggers have been investigated in the literature, including blended [8], sinusoidal strips (SIG) [2], reflection (ReFool) [35], and warping-based (WaNet) [39]. As we mentioned above, several techniques have been developed recently that can significantly reduce the visibility of the trigger in the input space to enhance the stealthiness of the backdoor attack [34, 2, 35]. In particular, WaNet uses a smooth warping field to generate backdoor images with unnoticeable modifications [39], while LIRA [13] alternates between the processes of trigger generation and backdoor injection to learn visually stealthy triggers. One prior work, Adversarial Embedding [51], also attempted to improve the latent indistinguishability of the backdoor attack by using adversarial regularization to minimize the distance between the latent distributions of the backdoor inputs and clean inputs. ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
800,
|
| 178 |
+
825,
|
| 179 |
+
911
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "",
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
90,
|
| 189 |
+
825,
|
| 190 |
+
243
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 2
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "2.2 Backdoor Defense ",
|
| 197 |
+
"text_level": 1,
|
| 198 |
+
"bbox": [
|
| 199 |
+
174,
|
| 200 |
+
265,
|
| 201 |
+
339,
|
| 202 |
+
280
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 2
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "By exploring specific characteristics of the injected backdoor, various countermeasures have been proposed [6, 54, 16, 47, 9, 7, 42], although they are often circumvented by subsequent adaptive attacks. For instance, based on the property that a backdoor attack usually targets redundant weights or neurons based on the clean images, model pruning can be used to eliminate the injected backdoor [32]. In contrast, Neural Cleanse assumes a known subset of clean inputs to reverse-engineer possible trigger patches [56]. It is also possible to filter the images to nullify the presence of triggers at the test phase to defend against backdoor attacks [36, 30]. ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
174,
|
| 211 |
+
292,
|
| 212 |
+
825,
|
| 213 |
+
390
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "In this paper, we focus on optimizing the characteristics of backdoor attacks in the latent space. As we discussed above, the rationale behind this is that prior works have demonstrated backdoor images cause distinctive activations in the latent space from those of clean inputs. Hence, this distinguishable dissimilarity between clean images and backdoor images can be utilized for defense in both training [6, 54] and test phases [49, 23, 22]. Most of these approaches compute an outlier score to detect abnormal inputs that will be filtered afterward. For example, spectral signature [54] computes the outlier score based on the singular value decomposition of the covariance matrix of the latent representations, while CleaNN [22] leverages a concentration inequality to detect anomalous reconstruction errors that are then suppressed before the input entering the victim DNN. ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
174,
|
| 222 |
+
396,
|
| 223 |
+
825,
|
| 224 |
+
521
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "This work proposes a method to minimize the difference between clean images and backdoor images in the latent space to improve the attack stealthiness. While doing this, we also optimize the visual imperceptibility in the input space, so that our proposed method can bypass visual inspection. ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
176,
|
| 233 |
+
526,
|
| 234 |
+
821,
|
| 235 |
+
569
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "3 Threat Model ",
|
| 242 |
+
"text_level": 1,
|
| 243 |
+
"bbox": [
|
| 244 |
+
174,
|
| 245 |
+
593,
|
| 246 |
+
320,
|
| 247 |
+
611
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "We consider the same threat model as in prior studies [44, 51, 39], which assumes the backdoor injection is performed at training and the adversary can access to the victim model including both structures and parameters. A successful backdoor attack over an image classification task should produce malicious behavior on images with the trigger, while otherwise working normally on clean images. However, in typical backdoor attacks, the poisoned images are visually inconsistent with natural images, which can be identified easily by human observers. Besides, these attacks usually leave a tangible trace in the latent space of the poisoned classifier; thus, some defense methods can easily detect and discard the poisoned models. To this end, we propose a stronger backdoor attack where the poisoned images are crafted with imperceptible perturbation in the input space to clean images as well as unnoticeable trace in the latent space. We advance the state-of-the-art by significantly enhancing the imperceptibility and robustness of the backdoor attack. ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
174,
|
| 256 |
+
631,
|
| 257 |
+
825,
|
| 258 |
+
782
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 2
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "4 Proposed Methodology: Wasserstein Backdoor (WB) ",
|
| 265 |
+
"text_level": 1,
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
808,
|
| 269 |
+
647,
|
| 270 |
+
825
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "4.1 Preliminaries ",
|
| 277 |
+
"text_level": 1,
|
| 278 |
+
"bbox": [
|
| 279 |
+
174,
|
| 280 |
+
842,
|
| 281 |
+
307,
|
| 282 |
+
856
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "Consider the standard supervised classification task where one seeks to learn a mapping function $f _ { \\theta } : \\mathcal { X } \\longrightarrow \\mathcal { C }$ where $\\mathcal { X }$ is the input domain and $\\mathcal { C }$ is the set of target classes. The task is to learn the parameters $\\theta$ by using the training dataset $\\mathcal { S } = \\{ ( x _ { i } , y _ { i } ) : x _ { i } \\in \\bar { \\mathcal { X } } , y _ { i } \\in \\mathcal { C } , i = 1 , . . , N \\}$ . ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
869,
|
| 292 |
+
823,
|
| 293 |
+
911
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Following the standard training scheme of backdoor attacks, the classifier is trained with the combination of the clean and poisoned subsets of $S$ . To create a poisoned sample, a clean training sample $( x , y )$ is transformed into a backdoor sample $( T ( x ) , \\eta ( y ) )$ , where $T$ is a backdoor injection function (also called the trigger function) and $\\eta$ is the target label function. When training $f$ with the clean and poison samples, we alter the behavior of $f$ so that: ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
173,
|
| 302 |
+
90,
|
| 303 |
+
825,
|
| 304 |
+
161
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 3
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "equation",
|
| 310 |
+
"img_path": "images/4b2c35522ecd149c5d1de18b3f731b65976fd366c18d5aafaf0b647895719537.jpg",
|
| 311 |
+
"text": "$$\nf ( x ) = y , \\quad f ( T ( x ) ) = \\eta ( y ) ,\n$$",
|
| 312 |
+
"text_format": "latex",
|
| 313 |
+
"bbox": [
|
| 314 |
+
397,
|
| 315 |
+
166,
|
| 316 |
+
599,
|
| 317 |
+
184
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "for any pair of clean data $x \\in \\mathcal { X }$ and its corresponding label $y \\in { \\mathcal { C } }$ . There are two commonly studied backdoor attack settings [18, 39, 51]: all-to-one and all-to-all. In the all-to-one attack, the label is changed to a constant target, i.e. $\\eta ( y ) = c$ ; while for the all-to-all attack, the true label is one-shifted, i.e. $\\bar { \\eta ( y ) } = ( y + 1 )$ mod $| { \\mathcal { C } } |$ . In the existing works, the trigger function $T$ is usually selected before training $f$ and fixed during the training process of $f$ . ",
|
| 324 |
+
"bbox": [
|
| 325 |
+
173,
|
| 326 |
+
189,
|
| 327 |
+
825,
|
| 328 |
+
260
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 3
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "4.2 Learning to Backdoor ",
|
| 335 |
+
"text_level": 1,
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
275,
|
| 339 |
+
367,
|
| 340 |
+
290
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "Given the training dataset $s$ and a loss function $\\mathcal { L }$ , e.g., cross entropy loss, empirical risk minimization can be used to learn the parameters $\\theta$ , as follows: ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
173,
|
| 349 |
+
299,
|
| 350 |
+
823,
|
| 351 |
+
329
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "equation",
|
| 357 |
+
"img_path": "images/b39e2afb8b2b1064709d23b9ad0db65e06a68bf99e370c75be1a95edbe28436c.jpg",
|
| 358 |
+
"text": "$$\n\\theta ^ { * } = \\arg \\operatorname* { m i n } _ { \\theta } \\sum _ { i = 1 } ^ { N } \\mathcal { L } ( f _ { \\theta } ( x _ { i } ) , y _ { i } ) .\n$$",
|
| 359 |
+
"text_format": "latex",
|
| 360 |
+
"bbox": [
|
| 361 |
+
392,
|
| 362 |
+
333,
|
| 363 |
+
606,
|
| 364 |
+
377
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "The goal of this work is to learn a trigger function $T _ { \\xi } : \\mathcal { X } \\longrightarrow \\mathcal { X }$ and a classification model $f _ { \\theta }$ in such a way that the clean image $x$ and its corresponding backdoor image $T ( x )$ are visually consistent in the input space while the backdoor attack does not leave a detectable trace in the latent space of the poisoned classifier. When $f$ is a neural network, $\\phi ( x )$ can be the output of an intermediate, hidden layer of $f$ , which captures some high-level abstractions of the input. Note that we require the classifier to perform normally on the clean sample, $x$ , compared to the classifier’s vanilla version, but change its prediction on the poisoned image, $T ( x )$ , to the target class $\\eta ( y )$ . ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
173,
|
| 373 |
+
388,
|
| 374 |
+
825,
|
| 375 |
+
488
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "To generate a trigger and poison the image, we follow the prior work [13] and formulate the trigger function as a conditional noise generator $g$ , as follows: ",
|
| 382 |
+
"bbox": [
|
| 383 |
+
173,
|
| 384 |
+
492,
|
| 385 |
+
823,
|
| 386 |
+
521
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "equation",
|
| 392 |
+
"img_path": "images/9b6e8cea74a7a51a1d7aa3bf947c76f002e4cca8de2f326160caaf7620d09c59.jpg",
|
| 393 |
+
"text": "$$\nT _ { \\xi } ( x ) = x + g _ { \\xi } ( x ) , \\quad | | g _ { \\xi } ( x ) | | _ { \\infty } \\leq \\epsilon \\forall x\n$$",
|
| 394 |
+
"text_format": "latex",
|
| 395 |
+
"bbox": [
|
| 396 |
+
356,
|
| 397 |
+
526,
|
| 398 |
+
642,
|
| 399 |
+
545
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "The generator function $g _ { \\xi }$ takes an input $x$ and generates an artificially imperceptible noise on the same input space, which guarantees the stealthiness of the backdoor attack. We can design such generator function as an autoencoder or the more complex U-Net architecture [43]. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
173,
|
| 408 |
+
550,
|
| 409 |
+
826,
|
| 410 |
+
592
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "With the above objectives and notations, similar to [13, 4], we can formulate the task into the following constrained optimization problem: ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
176,
|
| 419 |
+
597,
|
| 420 |
+
825,
|
| 421 |
+
626
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "equation",
|
| 427 |
+
"img_path": "images/be740e4a7f5610727ec4dbdf248fbe90803a7f323690f1bfdad390491e396985.jpg",
|
| 428 |
+
"text": "$$\n\\begin{array} { r l } { \\displaystyle } & { { } \\displaystyle \\operatorname* { m i n } _ { \\theta } \\sum _ { i = 1 } ^ { N } \\alpha \\mathcal { L } \\big ( f _ { \\theta } ( x _ { i } ) , y _ { i } \\big ) + \\beta \\mathcal { L } \\big ( f _ { \\theta } ( T _ { \\xi ^ { * } ( \\theta ) } ( x _ { i } ) \\big ) , \\eta ( y _ { i } ) \\big ) } \\\\ { \\displaystyle s . t . \\quad } & { { } \\xi ^ { * } = \\arg \\operatorname* { m i n } _ { \\xi } \\sum _ { i = 1 } ^ { N } \\mathcal { L } \\big ( f _ { \\theta } ( T _ { \\xi } ( x _ { i } ) ) , \\eta ( y _ { i } ) \\big ) + \\mathcal { R } _ { \\phi } ( \\mathcal { F } _ { c } , \\mathcal { F } _ { b } ) } \\end{array}\n$$",
|
| 429 |
+
"text_format": "latex",
|
| 430 |
+
"bbox": [
|
| 431 |
+
300,
|
| 432 |
+
632,
|
| 433 |
+
692,
|
| 434 |
+
720
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "where $\\mathcal { R } _ { \\phi }$ is the regularization constraint of the clean and poisoned representations, denoted as $\\mathcal { F } _ { c } = \\{ \\phi ( x _ { i } ) : i = 1 , . . , N \\}$ and $\\mathcal { F } _ { b } \\{ \\phi ( T ( x _ { i } ) ) : i = 1 , . . , N \\}$ , respectively. ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
173,
|
| 443 |
+
723,
|
| 444 |
+
825,
|
| 445 |
+
753
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "In this problem, a learned classification model with a specific parameter configuration $\\theta$ is associated with an optimal yet stealthy backdoor trigger function, which is trained to poison the model. The classifier is trained to minimize a linear combination of clean and targeted backdoor objectives. The parameters $\\alpha$ and $\\beta$ control the mixing strengths of the clean and backdoor loss signals. The trigger function is trained to perturb an image within its $\\ell _ { \\infty }$ ball in the input space, so that the loss towards the attack target class is minimized while regularizing the latent representations of the backdoor images. ",
|
| 452 |
+
"bbox": [
|
| 453 |
+
173,
|
| 454 |
+
757,
|
| 455 |
+
825,
|
| 456 |
+
843
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 3
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "4.3 Stealthy Latent Representation via Wasserstein Regularization ",
|
| 463 |
+
"text_level": 1,
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
857,
|
| 467 |
+
650,
|
| 468 |
+
872
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "In practical applications, latent-space defense methods investigate the abnormal trace of incoming data points with respect to the previous stream of data. These traces exist primarily because of the fact that the clean and backdoor latent representations are separated or distributed differently (e.g., the separated clusters of the clean and poison representations that can be seen in Figures 2 and 3). Thus, we aim to minimize such distributional difference through the regularization constraint $\\mathcal { R } _ { \\phi }$ . Since we cannot assume that the two latent distributions have common support or their density functions are known, commonly-used divergences, such as $f$ -divergences [40, 15] (which include KL and JSD), are difficult to minimize. Instead, we consider the Wasserstein-2 distance and formulate the regularization constraint as follows: ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
173,
|
| 477 |
+
882,
|
| 478 |
+
823,
|
| 479 |
+
911
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "",
|
| 486 |
+
"bbox": [
|
| 487 |
+
173,
|
| 488 |
+
90,
|
| 489 |
+
826,
|
| 490 |
+
189
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 4
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "equation",
|
| 496 |
+
"img_path": "images/f786c048fad701e2b4e438757cfcd5a82f31ec2a37143bf6fefb91067ca47a31.jpg",
|
| 497 |
+
"text": "$$\n\\mathcal { R } \\phi ( \\mu , \\nu ) = \\left( \\operatorname* { i n f } _ { \\gamma \\in \\Pi ( \\mu , \\nu ) } \\int _ { ( x , z ) \\sim \\gamma } p ( x , z ) | | x - z | | _ { 2 } d x d z \\right) ^ { 1 / 2 }\n$$",
|
| 498 |
+
"text_format": "latex",
|
| 499 |
+
"bbox": [
|
| 500 |
+
302,
|
| 501 |
+
195,
|
| 502 |
+
696,
|
| 503 |
+
241
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "where $\\mu$ and $\\nu$ are marginal probability measures defined by empirical samples $\\mathcal { F } _ { c }$ and $\\mathcal { F } _ { b }$ of the latent representations of the clean and poisoned data, respectively. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
174,
|
| 512 |
+
246,
|
| 513 |
+
821,
|
| 514 |
+
275
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "Estimating the Wasserstein distance also has some challenges. From the primal domain, computing the infimum in Equation (4) is particularly difficult since the data distributions are not fixed or known. On the other hand, employing the Kantorovich-Rubinstein duality requires a separate, parameterized Lipschitz function and a minimax solver, which increases the complexity of the proposed problem. Fortunately, for one-dimensional continuous measures, the Wasserstein distance has an elegant yet closed-form solution. Let $q _ { \\mu }$ and $q _ { \\nu }$ be the corresponding density functions of $\\mu$ and $\\nu$ , respectively. The Wasserstein-2 distance between one-dimensional measures $\\mu$ and $\\nu$ can be given by: ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
173,
|
| 523 |
+
280,
|
| 524 |
+
826,
|
| 525 |
+
378
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "equation",
|
| 531 |
+
"img_path": "images/44bf3de363d541a7f634e2ed30c73dfc27f2da7fb08e2952224f813cdce56bee.jpg",
|
| 532 |
+
"text": "$$\n\\mathcal { W } ( \\mu , \\nu ) = \\left( \\int _ { 0 } ^ { 1 } | | ( F _ { \\mu } ^ { - 1 } ( z ) - F _ { \\nu } ^ { - 1 } ( z ) | | _ { 2 } d z \\right) ^ { 1 / 2 }\n$$",
|
| 533 |
+
"text_format": "latex",
|
| 534 |
+
"bbox": [
|
| 535 |
+
336,
|
| 536 |
+
385,
|
| 537 |
+
661,
|
| 538 |
+
424
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "where $\\begin{array} { r } { F _ { \\mu } ( z ) = \\int _ { \\infty } ^ { z } q _ { \\mu } ( \\rho ) d \\rho } \\end{array}$ and $\\begin{array} { r } { F _ { \\nu } ( z ) = \\int _ { \\infty } ^ { z } q _ { \\nu } ( \\rho ) d \\rho } \\end{array}$ are the cumulative distribution functions. 1 1Inspired by the efficiency of this solution and its successful applications in a variety of tasks [12, 24, 14], we propose to first find a family of one-dimensional representations, e.g., through the linear projections, and approximate the Wasserstein distance as a function of these one-dimensional marginals, as follows: ",
|
| 545 |
+
"bbox": [
|
| 546 |
+
173,
|
| 547 |
+
430,
|
| 548 |
+
825,
|
| 549 |
+
502
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 4
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "equation",
|
| 555 |
+
"img_path": "images/f6c049c21118a2a0e26bea05eb3ccfb292f4c76bd5d9cefee7bee75c208518e8.jpg",
|
| 556 |
+
"text": "$$\n\\mathcal { R } _ { \\phi } ( \\mathcal { F } _ { c } , \\mathcal { F } _ { b } ) \\approx \\left( \\frac { 1 } { L } \\sum _ { l = 1 } ^ { L } [ \\mathcal { W } ( \\mathcal { F } _ { c } ^ { \\theta _ { l } } , \\mathcal { F } _ { b } ^ { \\theta _ { l } } ) ] ^ { 2 } \\right) ^ { 1 / 2 }\n$$",
|
| 557 |
+
"text_format": "latex",
|
| 558 |
+
"bbox": [
|
| 559 |
+
349,
|
| 560 |
+
508,
|
| 561 |
+
647,
|
| 562 |
+
556
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "where $\\mathcal { F } _ { c } ^ { \\theta _ { l } } = \\{ \\theta _ { l } ^ { T } \\phi ( x _ { i } ) : i = 1 , . . , N \\}$ and $\\mathcal { F } _ { b } ^ { \\theta _ { l } } = \\{ \\theta _ { l } ^ { T } \\phi ( T ( x _ { i } ) ) : i = 1 , . . , N \\}$ contains the projections of the clean and poisoned datasets into a one-dimensional direction defined by $\\theta _ { l }$ (a slice). Typically, $\\theta _ { l }$ is drawn from a uniform distribution on the unit sphere. This formulation is also known as the sliced-Wasserstein distance (SWD) [12, 24]. One particular problem with this approach is that the random nature of the slices could lead to several non-informative directions; i.e., the sliced distances are close to 0 in directions that do not lie on the manifolds of the data. Consequently, a large number $L$ of random directions are needed to approximate the sliced-Wasserstein distance, which increases the computational complexity of the estimation. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
173,
|
| 571 |
+
561,
|
| 572 |
+
825,
|
| 573 |
+
676
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 4
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "To remedy this issue, we avoid the uniform sampling of the unit sphere and select directions that contain discriminant information of the two data sources, by exploiting the following fact in the classification task. For backdoor samples of a target class $c _ { 1 } \\in { \\mathcal { C } }$ , created from clean samples of some other class $c _ { 2 } \\in { \\mathcal { C } }$ , the projections into an output dimension represent meaningful discriminant information that distinguishes the backdoor samples (from class $c _ { 2 }$ ) and the clean samples (from class $c _ { 1 }$ ). Thus, we propose to replace the uniform linear projections of SWD with the projections into the output layer. When the latent space is the penultimate layer of the classifier, such projections are equivalent to the following approximation: ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
173,
|
| 582 |
+
681,
|
| 583 |
+
825,
|
| 584 |
+
794
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "equation",
|
| 590 |
+
"img_path": "images/181d093b6bca4cfc07552c2697be6486e8a191895ffaf624f89d8825e7fa530b.jpg",
|
| 591 |
+
"text": "$$\n\\mathcal { R } _ { \\phi } ( \\mathcal { F } _ { c } , \\mathcal { F } _ { b } ) \\approx \\left( \\frac { 1 } { | \\mathcal { C } | } \\sum _ { c = 1 } ^ { | \\mathcal { C } | } \\left[ \\mathcal { W } ( \\mathcal { F } _ { c } ^ { W _ { c , : } } , \\mathcal { F } _ { c } ^ { W _ { c , : } } ) \\right] ^ { 2 } \\right) ^ { 1 / 2 } .\n$$",
|
| 592 |
+
"text_format": "latex",
|
| 593 |
+
"bbox": [
|
| 594 |
+
323,
|
| 595 |
+
799,
|
| 596 |
+
673,
|
| 597 |
+
853
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 4
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "where $W _ { c , : }$ is a row of the matrix $W \\in \\mathbb { R } ^ { | \\mathcal { C } | \\times d }$ ( $d$ is the dimension of the latent space), which is the normalized parameter matrix between the penultimate and the output layers. ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
173,
|
| 606 |
+
859,
|
| 607 |
+
826,
|
| 608 |
+
890
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 4
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "image",
|
| 614 |
+
"img_path": "images/c7af9caf5c809e25a62d365bbd85a4c2242c21166b3b94b61d1406b07a5c6433.jpg",
|
| 615 |
+
"image_caption": [
|
| 616 |
+
"Figure 1: Distance estimates (normalized) in the latent space for SWD with different number of sampled directions (between 10 to 10,000) and DSWD. "
|
| 617 |
+
],
|
| 618 |
+
"image_footnote": [],
|
| 619 |
+
"bbox": [
|
| 620 |
+
186,
|
| 621 |
+
89,
|
| 622 |
+
813,
|
| 623 |
+
263
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 5
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "text",
|
| 629 |
+
"text": "Empirically, Figure 1 shows the estimated SWD with different numbers of random directions and the proposed calculation, so called DSWD, when the latent space is defined at the penultimate layer of the classifier. The dimension of the latent space is 512 for both MNIST and CIFAR10 datasets. Each distance is computed on a random sample of 1000 clean and 1000 backdoor images, and each calculation is repeated 100 times. It can be seen that with only a fraction of slices, DSWD achieves a significantly smaller variance than that of the SWD estimates. Furthermore, in MNIST, the selected directions of DSWD leads to higher distance estimates than SWD, which means that DSWD selects more discriminant directions than SWD while SWD underestimates the distance between the two empirical samples. In addition, we show that DSWD is a valid distance metric of the latent distributions. The detailed proof is presented in the supplementary material. ",
|
| 630 |
+
"bbox": [
|
| 631 |
+
173,
|
| 632 |
+
328,
|
| 633 |
+
825,
|
| 634 |
+
467
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 5
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "Theorem 1. When the latent space is the penultimate layer of a neural network, the proposed DSWD distance is a valid distance function of probability measures in this space. ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
174,
|
| 643 |
+
472,
|
| 644 |
+
823,
|
| 645 |
+
500
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 5
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "Remark 1. Since existing defense methods choose the penultimate layer of a neural network. as the space to perform the defense analysis, in most cases, we can employ the proposed DSWD calculation. ",
|
| 652 |
+
"bbox": [
|
| 653 |
+
173,
|
| 654 |
+
503,
|
| 655 |
+
823,
|
| 656 |
+
532
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 5
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "Remark 2. To preserve the clean classification performance, the classifier seeks optimal parameters that lead to similar predictions of clean samples from the same class. The goal of the trigger function is to make the poisoned samples classified toward a different class. This leads to an adversarial game between the classifier and the trigger functions. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
174,
|
| 665 |
+
537,
|
| 666 |
+
825,
|
| 667 |
+
593
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "DSWD also has a significantly better computational efficiency than SWD. In most problems, SWD requires a large number of random directions, typically between 1000 to 10,000, in order to provide a reliable estimate of the distance [38, 14]. In DSWD, the number of random directions is fixed to the number of possible output labels, which is typically small for many classification problems. ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
174,
|
| 676 |
+
604,
|
| 677 |
+
825,
|
| 678 |
+
661
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 5
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "4.4 Optimization ",
|
| 685 |
+
"text_level": 1,
|
| 686 |
+
"bbox": [
|
| 687 |
+
174,
|
| 688 |
+
678,
|
| 689 |
+
305,
|
| 690 |
+
693
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 5
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "The non-convex, constrained optimization in Equation (3) is challenging because of its non-linear constraint. In general, we can alternately update one of $f$ and $T$ while keeping the other fixed, similar to training GANs. However, it is difficult and slow for the classifier to reach an acceptable performance on the clean data, i.e., similar accuracy to that of the vanilla classifier. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
704,
|
| 700 |
+
825,
|
| 701 |
+
760
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 5
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Under the alternating update scheme, we observe that on MNIST, the poisoned classifier can reach the acceptable clean-data performance after several epochs; while on other more complex datasets (i.e. CIFAR10, GTSRB, and TinyImagenet), this procedure results in sub-optimal clean-data performance. One possible explanation is that training the vanilla classifier with complex architecture and dataset to reach a decent accuracy is already a difficult and time-consuming task (e.g., 2 to 3 epochs to reach the optimal performance on MNIST but several hundreds of epochs on the other datasets). ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
765,
|
| 711 |
+
825,
|
| 712 |
+
849
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 5
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "Fortunately, we observe that after training the classifier and the trigger functions in an alternating update scheme for a certain number of epochs (denoted as Stage I), we can fix the trigger function and only train the classifier for the remaining epochs (denoted as Stage II). This two-stage training scheme is adopted in our experiments. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
176,
|
| 721 |
+
856,
|
| 722 |
+
823,
|
| 723 |
+
911
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "5 Experimental Results ",
|
| 730 |
+
"text_level": 1,
|
| 731 |
+
"bbox": [
|
| 732 |
+
174,
|
| 733 |
+
88,
|
| 734 |
+
385,
|
| 735 |
+
107
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 6
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "5.1 Experimental Setup ",
|
| 742 |
+
"text_level": 1,
|
| 743 |
+
"bbox": [
|
| 744 |
+
174,
|
| 745 |
+
125,
|
| 746 |
+
351,
|
| 747 |
+
140
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 6
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "We demonstrate the effectiveness of the proposed method through a range of experiments on four widely-used datasets for backdoor attack study: MNIST, CIFAR10, GTSRB and TinyImagenet. For these experiments, we follow the previous works [51, 54, 6, 39] and select the penultimate layers of the classifiers as the latent space for the defense experiments. The implementation of WB was based on the PaddlePaddle deep learning platform. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
173,
|
| 756 |
+
152,
|
| 757 |
+
825,
|
| 758 |
+
222
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 6
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Architectures: For the classifier $f$ , we consider several popular models: Pre-activation Resnet18 [20], VGG [46], DenseNet [21] for CIFAR10 and GTSRB datasets, and Resnet-18 for TinyImagenet. For the MNIST dataset, we employ a CNN model. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
228,
|
| 768 |
+
823,
|
| 769 |
+
270
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Hyperparameters: For the baselines, we train the classifiers using the SGD optimizer with an initial learning rate of 0.01 and a learning rate decay of 0.1 after every 100 epochs. For other hyperparameters, we follow the proposed setup in [39] for all datasets. We use the same configurations for WB. We train the classifier and trigger functions alternately (Stage I) for 10 and 50 epochs for MNIST and the other datasets, respectively, and fine-tune the classifier (Stage II) for another 40 epochs and 450 epochs for MNIST and the other datasets, respectively. To achieve a high-degree stealthiness of WB, we pick $\\epsilon$ as small as 0.01 for all datasets. In general, the larger the value of $\\epsilon$ the easier the trigger functions can be learned and the more successful the attacks are. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
276,
|
| 779 |
+
825,
|
| 780 |
+
387
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "5.2 Attack Performance ",
|
| 787 |
+
"text_level": 1,
|
| 788 |
+
"bbox": [
|
| 789 |
+
174,
|
| 790 |
+
411,
|
| 791 |
+
352,
|
| 792 |
+
425
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "We present the attack success rates of the proposed WB method, along with a comparison to two state-of-the-art methods, i.e., WaNet [39] and LIRA [13]. Both LIRA and Wanet’s attack performances are significantly better than other approaches, including BadNets [18], and are two of the strongest existing methods that generate very stealthy triggers on the images. We first poison the classifier using the backdoor attack methods in both all-to-one and all-to-all settings and record the performance of the classifier on both clean and backdoor test samples. For all-to-one, we randomly pick the target label $\\hat { c }$ (i.e., $\\eta ( y ) = \\hat { c } \\forall y )$ , while for all-to-all, the target label function is defined as $\\eta ( y ) = { \\bar { ( y + 1 ) } }$ mod $| { \\mathcal { C } } | \\ \\forall y$ , which is widely used to evaluate the backdoor-related works [39, 18, 6, 13]. Note that this all-to-all attack setting is more challenging than the all-to-one setting, especially on datasets with a large number of classes such as TinyImagenet. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
439,
|
| 802 |
+
825,
|
| 803 |
+
578
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "The classification accuracy on the clean test samples and the attack success rate for each method is represented in Table 1 and Table 2 for the all-to-one and all-to-all settings, respectively. As we can observe from these tables, all the methods can achieve high clean-data accuracies and attack success rates. While WB’s attack performance slightly drops compared to LIRA’s performance, WB is significantly more stealthy in the latent space, as being discussed next. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
176,
|
| 812 |
+
583,
|
| 813 |
+
825,
|
| 814 |
+
654
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 6
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "table",
|
| 820 |
+
"img_path": "images/4ba0b994c5f6d95f14d8c79dc1be6d42ee8f3da7a066f57e12a386f7b172a325.jpg",
|
| 821 |
+
"table_caption": [
|
| 822 |
+
"Table 1: Attack Performance: All-to-one Attack "
|
| 823 |
+
],
|
| 824 |
+
"table_footnote": [],
|
| 825 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"2\">WaNet</td><td colspan=\"2\">LIRA</td><td colspan=\"2\">WB</td></tr><tr><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td></tr><tr><td>MNIST</td><td>0.99</td><td>0.99</td><td>0.99</td><td>1.00</td><td>0.99</td><td>0.99</td></tr><tr><td>CIFAR10</td><td>0.94</td><td>0.99</td><td>0.94</td><td>1.00</td><td>0.94</td><td>0.99</td></tr><tr><td>GTSRB</td><td>0.99</td><td>0.98</td><td>0.99</td><td>1.00</td><td>0.99</td><td>0.99</td></tr><tr><td>TinyImagenet</td><td>0.57</td><td>0.99</td><td>0.58</td><td>1.00</td><td>0.57</td><td>0.99</td></tr></table>",
|
| 826 |
+
"bbox": [
|
| 827 |
+
259,
|
| 828 |
+
686,
|
| 829 |
+
735,
|
| 830 |
+
773
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 6
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "table",
|
| 836 |
+
"img_path": "images/d071ecb977eb62c2db625f066ac4dbb5a7844840fe39ef1ebdfa64859d4e1b12.jpg",
|
| 837 |
+
"table_caption": [
|
| 838 |
+
"Table 2: Attack Performance: All-to-all Attack "
|
| 839 |
+
],
|
| 840 |
+
"table_footnote": [],
|
| 841 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"2\">WaNet</td><td colspan=\"2\">LIRA</td><td colspan=\"2\">WB</td></tr><tr><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td><td>Clean</td><td>Attack</td></tr><tr><td>MNIST</td><td>0.99</td><td>0.95</td><td>0.99</td><td>0.99</td><td>0.99</td><td>0.96</td></tr><tr><td>CIFAR10</td><td>0.94</td><td>0.93</td><td>0.94</td><td>0.94</td><td>0.94</td><td>0.94</td></tr><tr><td>GTSRB</td><td>0.99</td><td>0.98</td><td>0.99</td><td>1.00</td><td>0.99</td><td>0.98</td></tr><tr><td>TinyImagenet</td><td>0.58</td><td>0.58</td><td>0.58</td><td>0.59</td><td>0.58</td><td>0.58</td></tr></table>",
|
| 842 |
+
"bbox": [
|
| 843 |
+
259,
|
| 844 |
+
821,
|
| 845 |
+
735,
|
| 846 |
+
909
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 6
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "5.3 Latent-Space Defense ",
|
| 853 |
+
"text_level": 1,
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
90,
|
| 857 |
+
362,
|
| 858 |
+
106
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 7
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "Recent works on backdoor defense have found that backdoor attacks tend to leave a tangible trace in the latent space of the poisoned classifier. Activation Clustering [6] and Spectral Signature [54] are two representative defenses used for analyzing the latent space in prior work [51]. In this section, we also examine the latent space of the backdoor-injected classifiers through the lens of these defense methods. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
173,
|
| 867 |
+
116,
|
| 868 |
+
826,
|
| 869 |
+
172
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "5.3.1 Learned Latent Representation and Activation Clustering ",
|
| 876 |
+
"text_level": 1,
|
| 877 |
+
"bbox": [
|
| 878 |
+
173,
|
| 879 |
+
186,
|
| 880 |
+
627,
|
| 881 |
+
202
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "It has been shown in [6] that in a poisoned classifier, the latent representations of the clean and backdoor samples form separate clusters, which can be easily detected using clustering methods such as K-means. The authors also recommend a process called exclusionary reclassification to determine which cluster is poisoned and re-train the poisoned classifier. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
174,
|
| 890 |
+
210,
|
| 891 |
+
825,
|
| 892 |
+
266
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 7
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "In Figure 2 and Figure 3, we can observe highly separated clusters (for samples with the sample predictions of $y = 0$ ) in the latent space when we omit the latent regularization term $\\mathcal { R } _ { \\phi }$ in WB (Baseline), which is similar to LIRA [13]. However, when $\\mathcal { R } _ { \\phi }$ is included, the latent representations of the clean and backdoor samples are distributed similarly. Without well-separated clusters of the clean and poisoned samples, the exclusionary reclassification process in the activation clustering is not effective against the attacks. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
173,
|
| 901 |
+
272,
|
| 902 |
+
825,
|
| 903 |
+
356
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 7
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "image",
|
| 909 |
+
"img_path": "images/06e6d3444d42a0f1ae4a52a74f76903477b0bdaf9bc0b3cb802283e00926243d.jpg",
|
| 910 |
+
"image_caption": [
|
| 911 |
+
"Figure 2: MNIST: t-SNE embedding in the latent space. Baseline is WB without $\\mathcal { R } _ { \\phi }$ . "
|
| 912 |
+
],
|
| 913 |
+
"image_footnote": [],
|
| 914 |
+
"bbox": [
|
| 915 |
+
179,
|
| 916 |
+
372,
|
| 917 |
+
816,
|
| 918 |
+
505
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 7
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "image",
|
| 924 |
+
"img_path": "images/b60bd196e6d6df38879720961f333230fa538a26c3db4859eca00fcaeef41932.jpg",
|
| 925 |
+
"image_caption": [
|
| 926 |
+
"Figure 3: CIFAR10: t-SNE embedding in the latent space. Baseline is WB without $\\mathcal { R } _ { \\phi }$ . "
|
| 927 |
+
],
|
| 928 |
+
"image_footnote": [],
|
| 929 |
+
"bbox": [
|
| 930 |
+
179,
|
| 931 |
+
551,
|
| 932 |
+
821,
|
| 933 |
+
684
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 7
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "Quantitatively, we present the quality scores (i.e., the adjusted Rand Index) of the clustering step in Table 3. The adjusted Rand Index is 1 when the samples form two distinct clusters and is close to 0 for a random separation. We compare WB with BadNets [18] and Adversarial Embedding [51], which is the state-of-the-art backdoor attack method with stealthy latent space. As we can observe in this table, the defense is most successful on BadNets since there exists a perfect clustering of the clean and poisoned samples (Rand Index $\\geq 0 . 9 5$ ). While Adversarial Embedding is more resistant against the defense, WB is significantly more stealthy against the defense since the values of Rand Index are all very close to 0. Note that, similar to BadNets, WaNet also does not pass this defense (please see the supplementary material). ",
|
| 940 |
+
"bbox": [
|
| 941 |
+
173,
|
| 942 |
+
719,
|
| 943 |
+
826,
|
| 944 |
+
790
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 7
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "table",
|
| 950 |
+
"img_path": "images/78450786e5a83397722dd5e283d8e50b8bba4ba34a91265598eda77c8aa5b2f9.jpg",
|
| 951 |
+
"table_caption": [
|
| 952 |
+
"Table 3: Adjusted Rand Index in All-to-one Attack "
|
| 953 |
+
],
|
| 954 |
+
"table_footnote": [],
|
| 955 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Dataset</td><td rowspan=\"2\">Rand Index (BadNets)</td><td colspan=\"2\">Adversarial Embedding</td><td colspan=\"2\">WB</td></tr><tr><td>Rand Index</td><td>Attack</td><td>Rand Index</td><td>Attack</td></tr><tr><td>DenseNet</td><td>CIFAR10</td><td>0.979</td><td>0.1820</td><td>0.764</td><td>0.0382</td><td>0.998</td></tr><tr><td>DenseNet</td><td>GTSRB</td><td>0.997</td><td>0.2710</td><td>0.914</td><td>0.0135</td><td>0.997</td></tr><tr><td>VGG</td><td>CIFAR10</td><td>0.998</td><td>0.0006</td><td>0.962</td><td>0.0002</td><td>0.999</td></tr><tr><td>VGG</td><td>GTSRB</td><td>0.997</td><td>0.6420</td><td>0.743</td><td>0.1010</td><td>0.999</td></tr></table>",
|
| 956 |
+
"bbox": [
|
| 957 |
+
199,
|
| 958 |
+
821,
|
| 959 |
+
795,
|
| 960 |
+
910
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 7
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "",
|
| 967 |
+
"bbox": [
|
| 968 |
+
174,
|
| 969 |
+
90,
|
| 970 |
+
825,
|
| 971 |
+
147
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 8
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "5.3.2 Spectral Signature Defense ",
|
| 978 |
+
"text_level": 1,
|
| 979 |
+
"bbox": [
|
| 980 |
+
176,
|
| 981 |
+
162,
|
| 982 |
+
413,
|
| 983 |
+
178
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "The work in [54] proposes a defense method that identifies and removes backdoor samples using the Spectral Signature. For data from each predicted class, Spectral Signature first finds the top singular value of the covariance matrix of the latent vectors of the data. Then it computes the correlation score to this singular value for each sample and those samples with the outlier scores are flagged as backdoor samples. While Spectral Signature is a sample filtering-based defense method, the inspection of the correlation scores can also be useful to verify whether there is a tangible trace in the latent space of the classifier. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
173,
|
| 992 |
+
188,
|
| 993 |
+
825,
|
| 994 |
+
284
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 8
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Following the same experiments in [54], we first pick 5,000 clean samples and 500 backdoor samples for each dataset. Then, we plot the histograms of the correlation scores for both sets of samples. As we can observe in Figure 4, there is no clear separation between the scores of the backdoor samples and those of the clean samples. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
173,
|
| 1003 |
+
290,
|
| 1004 |
+
825,
|
| 1005 |
+
347
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 8
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "image",
|
| 1011 |
+
"img_path": "images/92dceef2b089708025cd466c7e81445da9fe91338f47a7c368502aa6b41ae451.jpg",
|
| 1012 |
+
"image_caption": [
|
| 1013 |
+
"Figure 4: Defense experiments of the all-to-one attack against Spectral Signature. The correlations of the clean and backdoor samples with the top singular vector of the covariance matrix in the latent space are not separable. "
|
| 1014 |
+
],
|
| 1015 |
+
"image_footnote": [],
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
166,
|
| 1018 |
+
361,
|
| 1019 |
+
825,
|
| 1020 |
+
467
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 8
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "5.4 Model Mitigation Defense ",
|
| 1027 |
+
"text_level": 1,
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
174,
|
| 1030 |
+
545,
|
| 1031 |
+
392,
|
| 1032 |
+
559
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 8
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "In this section, we evaluate the robustness of WB against another popular defense, Neural Cleanse [56], which is model mitigation defense based on a pattern optimization approach. Specifically, Neural Cleanse searches for the optimal patch pattern for each possible target label that induces a misclassification to that label. It then quantifies whether any of the optimal backdoor trigger pattern is an outlier via a metric called Anomaly Index. The model has a backdoor if the Anomaly Index is greater than 2 for any class. The anomaly indices are presented in Figure 5. ",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
173,
|
| 1041 |
+
570,
|
| 1042 |
+
826,
|
| 1043 |
+
654
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 8
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "It can be seen that both WaNet and WB can pass the detection of Neural Cleanse, similar to that of the vanilla classifier (Clean). In MNIST and CIFAR10, WB even achieves smaller Anomaly Indices than those of the vanilla models. Note that popular backdoor attacks, such as BadNets, can be defended by Neural Cleanse in most of these datasets [56]. ",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
173,
|
| 1052 |
+
660,
|
| 1053 |
+
825,
|
| 1054 |
+
689
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 8
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "image",
|
| 1060 |
+
"img_path": "images/8cf52aada9604635bbac1b3e8db94e8deb55a98abd1bd801f6b427337a81fcbd.jpg",
|
| 1061 |
+
"image_caption": [
|
| 1062 |
+
"Figure 5: Backdoor attacks against Neural Cleanse defense. "
|
| 1063 |
+
],
|
| 1064 |
+
"image_footnote": [],
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
178,
|
| 1067 |
+
715,
|
| 1068 |
+
818,
|
| 1069 |
+
886
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 8
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
173,
|
| 1078 |
+
90,
|
| 1079 |
+
823,
|
| 1080 |
+
119
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 9
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "5.5 Input Perturbation Defense ",
|
| 1087 |
+
"text_level": 1,
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
136,
|
| 1091 |
+
405,
|
| 1092 |
+
151
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "In this section, we study the stealthiness of WB against STRIP [16], a representative detection based backdoor defense mechanism. Given the classifier and an input image, STRIP first perturbs the image and determines the presence of a backdoor in the model according to the entropy of the predictions of these perturbed images (i.e., if the predictions are consistent or not). ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
174,
|
| 1101 |
+
160,
|
| 1102 |
+
825,
|
| 1103 |
+
217
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "In Figure 6, we plot the entropy of clean and backdoor images, which are computed by STRIP. We can observe that the distribution of entropy of the backdoor samples is similar to that of the clean samples. In other words, STRIP fails to detect backdoor samples generated by WB, which further validates the advantage of the proposed method. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
173,
|
| 1112 |
+
223,
|
| 1113 |
+
825,
|
| 1114 |
+
280
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "image",
|
| 1120 |
+
"img_path": "images/0e55b555ba734983cb5aead631bac73c591a889d0922fbd0ca99fa3092065999.jpg",
|
| 1121 |
+
"image_caption": [
|
| 1122 |
+
"Figure 6: Performance against STRIP defense. "
|
| 1123 |
+
],
|
| 1124 |
+
"image_footnote": [],
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
173,
|
| 1127 |
+
292,
|
| 1128 |
+
823,
|
| 1129 |
+
585
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 9
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Additional experiments for demonstrating the stealthiness of WB against several other defense approaches can be found in the supplementary material. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
174,
|
| 1138 |
+
622,
|
| 1139 |
+
825,
|
| 1140 |
+
651
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 9
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "6 Conclusion ",
|
| 1147 |
+
"text_level": 1,
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
174,
|
| 1150 |
+
670,
|
| 1151 |
+
299,
|
| 1152 |
+
686
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 9
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "This paper presented a novel methodology for a backdoor attack that is imperceptible from both the input and latent spaces, i.e., Wasserstein Backdoor (WB). WB learns a trigger function that adds visually imperceptible noise to an input image and minimizes the distributional difference via a novel sliced Wasserstein distance formulation between representations of the clean and backdoor images in the latent space of the trained classifier. We comprehensively evaluated the performance of the proposed method on various image classification benchmark models over a wide range of datasets. Our experimental results demonstrated that the proposed method could significantly improve the effectiveness against the existing defense mechanisms, especially those relying on the distinguishability in latent space. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
173,
|
| 1161 |
+
700,
|
| 1162 |
+
825,
|
| 1163 |
+
827
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 9
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "References \n[1] Tadas Baltrusaitis, Amir Zadeh, Yao Chong Lim, and Louis-Philippe Morency. Openface 2.0: Facial behavior analysis toolkit. In Proceedings of the 13th IEEE International Conference on Automatic Face & Gesture Recognition (FG), pages 59–66, Xi’an, China, 2018. \n[2] Mauro Barni, Kassem Kallas, and Benedetta Tondi. A new backdoor attack in CNNS by training set corruption without label poisoning. In Proceedings of the 2019 IEEE International Conference on Image Processing (ICIP), pages 101–105, Taipei, 2019. \n[3] Daniel S Berman, Anna L Buczak, Jeffrey S Chavis, and Cherita L Corbett. A survey of deep learning methods for cyber security. Information, 10(4):122, 2019. \n[4] Avishek Joey Bose, Gauthier Gidel, Hugo Berard, Andre Cianflone, Pascal Vincent, Simon Lacoste-Julien, and William L. Hamilton. Adversarial example games. In Advances in Neural Information Processing Systems (NeurIPS), virtual, 2020. \n[5] Nicholas Carlini and David A. Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Bhavani M. Thuraisingham, Battista Biggio, David Mandell Freeman, Brad Miller, and Arunesh Sinha, editors, Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security (AISec@CCS), pages 3–14, Dallas, TX, 2017. \n[6] Bryant Chen, Wilka Carvalho, Nathalie Baracaldo, Heiko Ludwig, Benjamin Edwards, Taesung Lee, Ian M. Molloy, and Biplav Srivastava. Detecting backdoor attacks on deep neural networks by activation clustering. In Proceedings of the Workshop on Artificial Intelligence Safety, Honolulu, HI, 2019. \n[7] Huili Chen, Cheng Fu, Jishen Zhao, and Farinaz Koushanfar. Deepinspect: A black-box trojan detection and mitigation framework for deep neural networks. In Proceedings of the TwentyEighth International Joint Conference on Artificial Intelligence (IJCAI), pages 4658–4664, Macao, China, 2019. \n[8] Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017. \n[9] Hao Cheng, Kaidi Xu, Sijia Liu, Pin-Yu Chen, Pu Zhao, and Xue Lin. Defending against backdoor attack on deep neural networks. arXiv preprint arXiv:2002.12162, 2020. \n[10] Joseph Clements and Yingjie Lao. Hardware trojan design on neural networks. In 2019 IEEE International Symposium on Circuits and Systems (ISCAS), pages 1–5. IEEE, 2019. \n[11] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In Proceedings of the 2009 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), pages 248–255, Miami, FL, 2009. \n[12] Ishan Deshpande, Ziyu Zhang, and Alexander G. Schwing. Generative modeling using the sliced wasserstein distance. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3483–3491, Salt Lake City, UT, 2018. \n[13] Khoa Doan, Yingjie Lao, Weijie Zhao, and Ping Li. LIRA: Learnable, imperceptible and robust backdoor attacks. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 11966–11976, 2021. \n[14] Khoa D Doan, Amir Kimiyaie, Saurav Manchanda, and Chandan K Reddy. Image hashing by minimizing independent relaxed wasserstein distance. arXiv preprint arXiv:2003.00134, 2020. \n[15] Khoa D Doan, Saurav Manchanda, Fengjiao Wang, Sathiya Keerthi, Avradeep Bhowmik, and Chandan K Reddy. Image generation via minimizing fr\\’echet distance in discriminator feature space. arXiv preprint arXiv:2003.11774, 2020. \n[16] Yansong Gao, Change Xu, Derui Wang, Shiping Chen, Damith Chinthana Ranasinghe, and Surya Nepal. STRIP: a defence against trojan attacks on deep neural networks. In Proceedings of the 35th Annual Computer Security Applications Conference (ACSAC), pages 113–125, San Juan, PR, 2019. \n[17] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), San Diego, CA, 2015. \n[18] Tianyu Gu, Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. BadNets: Evaluating backdooring attacks on deep neural networks. IEEE Access, 7:47230–47244, 2019. \n[19] Wenbo Guo, Dongliang Mu, Jun Xu, Purui Su, Gang Wang, and Xinyu Xing. LEMNA: explaining deep learning based security applications. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security (CCS), pages 364–379, Toronto, Canada, 2018. \n[20] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, Las Vegas, NV, 2016. \n[21] Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPR Workshops), pages 1614–1619, Salt Lake City, UT, 2018. \n[22] Mojan Javaheripi, Mohammad Samragh, Gregory Fields, Tara Javidi, and Farinaz Koushanfar. Cleann: Accelerated trojan shield for embedded neural networks. In Proceedings of the IEEE/ACM International Conference On Computer Aided Design (ICCAD), pages 11:1–11:9, San Diego, CA, 2020. \n[23] Kaidi Jin, Tianwei Zhang, Chao Shen, Yufei Chen, Ming Fan, Chenhao Lin, and Ting Liu. A unified framework for analyzing and detecting malicious examples of dnn models. arXiv preprint arXiv:2006.14871, 2020. \n[24] Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo K. Rohde. Generalized sliced wasserstein distances. In Advances in Neural Information Processing Systems (NeurIPS), pages 261–272, Vancouver, Canada, 2019. \n[25] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. \n[26] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 1106–1114, Lake Tahoe, NV, 2012. \n[27] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016. \n[28] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. \n[29] Shaofeng Li, Minhui Xue, Benjamin Zi Hao Zhao, Haojin Zhu, and Xinpeng Zhang. Invisible backdoor attacks on deep neural networks via steganography and regularization. IEEE Trans. Dependable Secur. Comput., 18(5):2088–2105, 2021. \n[30] Yiming Li, Tongqing Zhai, Baoyuan Wu, Yong Jiang, Zhifeng Li, and Shutao Xia. Rethinking the trigger of backdoor attack. arXiv preprint arXiv:2004.04692, 2020. \n[31] Jingtuo Liu, Yafeng Deng, Tao Bai, Zhengping Wei, and Chang Huang. Targeting ultimate accuracy: Face recognition via deep embedding. arXiv preprint arXiv:1506.07310, 2015. \n[32] Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Fine-pruning: Defending against backdooring attacks on deep neural networks. In Proceedings of the 21st International Symposium on Research in Attacks, Intrusions, and Defenses (RAID), pages 273–294, Heraklion, Crete, Greece, 2018. \n[33] Qiang Liu, Pan Li, Wentao Zhao, Wei Cai, Shui Yu, and Victor C. M. Leung. A survey on security threats and defensive techniques of machine learning: A data driven view. IEEE Access, 6:12103–12117, 2018. \n[34] Yingqi Liu, Shiqing Ma, Yousra Aafer, Wen-Chuan Lee, Juan Zhai, Weihang Wang, and Xiangyu Zhang. Trojaning attack on neural networks. In Proceedings of the 25th Annual Network and Distributed System Security Symposium (NDSS), San Diego, CA, 2018. \n[35] Yunfei Liu, Xingjun Ma, James Bailey, and Feng Lu. Reflection backdoor: A natural backdoor attack on deep neural networks. In Proceedings of the 16th European Conference on Computer Vision (ECCV), Part X, pages 182–199, Glasgow, UK, 2020. \n[36] Yuntao Liu, Yang Xie, and Ankur Srivastava. Neural trojans. In Proceedings of the 2017 IEEE International Conference on Computer Design (ICCD), pages 45–48, Boston, MA, 2017. \n[37] Luis Muñoz-González, Battista Biggio, Ambra Demontis, Andrea Paudice, Vasin Wongrassamee, Emil C. Lupu, and Fabio Roli. Towards poisoning of deep learning algorithms with back-gradient optimization. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security (AISec@CCS), pages 27–38, Dallas, TX, 2017. \n[38] Khai Nguyen, Nhat Ho, Tung Pham, and Hung Bui. Distributional sliced-wasserstein and applications to generative modeling. In Proceedings of the 9th International Conference on Learning Representations (ICLR), Virtual Event, Austria, 2021. \n[39] Tuan Anh Nguyen and Anh Tuan Tran. Wanet - imperceptible warping-based backdoor attack. In Proceedings of the 9th International Conference on Learning Representations (ICLR), Virtual Event, Austria, 2021. \n[40] Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-gan: Training generative neural samplers using variational divergence minimization. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 271–279, 2016. \n[41] Nicolas Papernot, Patrick D. McDaniel, Somesh Jha, Matt Fredrikson, Z. Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In Proceedings of the IEEE European Symposium on Security and Privacy (EuroS&P), pages 372–387, Saarbrücken, Germany, 2016. \n[42] Ximing Qiao, Yukun Yang, and Hai Li. Defending neural backdoors via generative distribution modeling. In Advances in Neural Information Processing Systems (NeurIPS), pages 14004– 14013, Vancouver, Canada, 2019. \n[43] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of the 8th International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI), Part III, pages 234–241, Munich, Germany, 2015. \n[44] Aniruddha Saha, Akshayvarun Subramanya, and Hamed Pirsiavash. Hidden trigger backdoor attacks. In Proceedings of the Thirty-Fourth AAAI Conference on Artificial Intelligence (AAAI), pages 11957–11965, New York, NY, 2020. \n[45] Ali Shafahi, W. Ronny Huang, Mahyar Najibi, Octavian Suciu, Christoph Studer, Tudor Dumitras, and Tom Goldstein. Poison frogs! targeted clean-label poisoning attacks on neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 6106–6116, Montréal, Canada, 2018. \n[46] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. \n[47] Ezekiel Soremekun, Sakshi Udeshi, Sudipta Chattopadhyay, and Andreas Zeller. Exposing backdoors in robust machine learning models. arXiv preprint arXiv:2003.00865, 2020. \n[48] Johannes Stallkamp, Marc Schlipsing, Jan Salmen, and Christian Igel. Man vs. computer: Benchmarking machine learning algorithms for traffic sign recognition. Neural networks, 32:323–332, 2012. \n[49] Mahesh Subedar, Nilesh Ahuja, Ranganath Krishnan, Ibrahima J Ndiour, and Omesh Tickoo. Deep probabilistic models to detect data poisoning attacks. arXiv preprint arXiv:1912.01206, 2019. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
171,
|
| 1172 |
+
58,
|
| 1173 |
+
828,
|
| 1174 |
+
917
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 10
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
171,
|
| 1183 |
+
78,
|
| 1184 |
+
828,
|
| 1185 |
+
916
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 11
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
169,
|
| 1194 |
+
45,
|
| 1195 |
+
831,
|
| 1196 |
+
917
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 12
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "[50] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of the 2nd International Conference on Learning Representations (ICLR), Banff, Canada, 2014. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
171,
|
| 1205 |
+
90,
|
| 1206 |
+
825,
|
| 1207 |
+
133
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 13
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "[51] Te Juin Lester Tan and Reza Shokri. Bypassing backdoor detection algorithms in deep learning. In Proceedings of the IEEE European Symposium on Security and Privacy (EuroS&P), pages 175–183, Genoa, Italy, 2020. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
173,
|
| 1216 |
+
142,
|
| 1217 |
+
823,
|
| 1218 |
+
185
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 13
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "[52] Di Tang, XiaoFeng Wang, Haixu Tang, and Kehuan Zhang. Demon in the variant: Statistical analysis of dnns for robust backdoor contamination detection. In Proceedings of the 30th USENIX Security Symposium (USENIX Security), pages 1541–1558, 2021. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
173,
|
| 1227 |
+
193,
|
| 1228 |
+
823,
|
| 1229 |
+
237
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 13
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "[53] Yuchi Tian, Kexin Pei, Suman Jana, and Baishakhi Ray. Deeptest: automated testing of deepneural-network-driven autonomous cars. In Proceedings of the 40th International Conference on Software Engineering (ICSE), pages 303–314, Gothenburg, Sweden, 2018. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
173,
|
| 1238 |
+
244,
|
| 1239 |
+
823,
|
| 1240 |
+
287
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 13
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "[54] Brandon Tran, Jerry Li, and Aleksander Madry. Spectral signatures in backdoor attacks. In Advances in Neural Information Processing Systems (NeurIPS), pages 8011–8021, Montréal, Canada, 2018. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
173,
|
| 1249 |
+
296,
|
| 1250 |
+
823,
|
| 1251 |
+
339
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 13
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "[55] Alexander Turner, Dimitris Tsipras, and Aleksander Madry. Label-consistent backdoor attacks. arXiv preprint arXiv:1912.02771, 2019. ",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
171,
|
| 1260 |
+
348,
|
| 1261 |
+
823,
|
| 1262 |
+
377
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 13
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "[56] Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y. Zhao. Neural cleanse: Identifying and mitigating backdoor attacks in neural networks. In Proceedings of the 2019 IEEE Symposium on Security and Privacy $( S P )$ , pages 707–723, San Francisco, CA, 2019. ",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
173,
|
| 1271 |
+
386,
|
| 1272 |
+
828,
|
| 1273 |
+
441
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 13
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "[57] Jiayu Wu, Qixiang Zhang, and Guoxi Xu. Tiny Imagenet challenge, 2017. ",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
171,
|
| 1282 |
+
450,
|
| 1283 |
+
696,
|
| 1284 |
+
467
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 13
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "[58] Peng Yang, Yingjie Lao, and Ping Li. Robust watermarking for deep neural networks via bi-level optimization. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), 2021. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
173,
|
| 1293 |
+
474,
|
| 1294 |
+
823,
|
| 1295 |
+
517
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 13
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "[59] Haoti Zhong, Cong Liao, Anna Cinzia Squicciarini, Sencun Zhu, and David J. Miller. Backdoor embedding in convolutional neural network models via invisible perturbation. In Proceedings of the tenth ACM Conference on Data and Application Security and Privacy (CODASPY), pages 97–108, New Orleans, LA, 2020. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
176,
|
| 1304 |
+
526,
|
| 1305 |
+
825,
|
| 1306 |
+
582
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 13
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "[60] Chen Zhu, W. Ronny Huang, Hengduo Li, Gavin Taylor, Christoph Studer, and Tom Goldstein. Transferable clean-label poisoning attacks on deep neural nets. In Proceedings of the 36th International Conference on Machine Learning (ICML), pages 7614–7623, Long Beach, CA, 2019. ",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
174,
|
| 1315 |
+
590,
|
| 1316 |
+
826,
|
| 1317 |
+
646
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 13
|
| 1320 |
+
}
|
| 1321 |
+
]
|
parse/train/2j_cut38wv/2j_cut38wv_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/2j_cut38wv/2j_cut38wv_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H113pWZRb/H113pWZRb.md
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TOPOLOGY ADAPTIVE GRAPH CONVOLUTIONAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Convolution acts as a local feature extractor in convolutional neural networks (CNNs). However, the convolution operation is not applicable when the input data is supported on an irregular graph such as with social networks, citation networks, or knowledge graphs. This paper proposes the topology adaptive graph convolutional network (TAGCN), a novel graph convolutional network that generalizes CNN architectures to graph-structured data and provides a systematic way to design a set of fixed-size learnable filters to perform convolutions on graphs. The topologies of these filters are adaptive to the topology of the graph when they scan the graph to perform convolution, replacing the square filter for the grid-structured data in traditional CNNs. The outputs are the weighted sum of these filters’ outputs, extraction of both vertex features and strength of correlation between vertices. It can be used with both directed and undirected graphs. The proposed TAGCN not only inherits the properties of convolutions in CNN for grid-structured data, but it is also consistent with convolution as defined in graph signal processing. Further, as no approximation to the convolution is needed, TAGCN exhibits better performance than existing graph-convolution-approximation methods on a number of data sets. As only the polynomials of degree two of the adjacency matrix are used, TAGCN is also computationally simpler than other recent methods.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Convolutional neural network (CNN) architectures exhibit state-of-the-art performance on a variety of learning tasks dealing with 1D, 2D, and 3D grid-structured data such as acoustic signals, images, and videos, in which convolution serves as a feature extractor (LeCun et al., 2015). However, the (usual) convolution operation is not applicable when applying CNN to data that is supported on an arbitrary graph rather than on a regular grid structure, since the number of neighbors of each vertex on the graph varies, and it is difficult to design a fixed-size filter scanning over the graph-structured data for feature extraction.
|
| 12 |
+
|
| 13 |
+
Recently, there has been an increasing interest in graph CNNs (Bruna et al., 2014; Defferrard et al., 2016; Kipf & Welling, 2017; Monti et al., 2017; Levie et al., 2017), attempting to generalize deep learning methods to graph-structured data, specifically focusing on the design of graph CNN . In this paper, we propose the topology adaptive graph convolutional network (TAGCN), a unified convolutional neural network to learn nonlinear representations for the graph-structured data. It slides a set of fixed-size learnable filters on the graph simultaneously, and the output is the weighted sum of these filters’ outputs, which extract both vertex features and strength of correlation between vertices. Each filter is adaptive to the topology of the local region on the graph where it is applied. TAGCN unifies filtering in both the spectrum and vertex domains; and applies to both directed and undirected graphs.
|
| 14 |
+
|
| 15 |
+
In general, the existing graph CNNs can be grouped into two types: spectral domain techniques and vertex domain techniques. In Bruna et al. (2014), CNNs have been generalized to graph-structured data, where convolution is achieved by a pointwise product in the spectrum domain according to the convolution theorem. Later, Defferrard et al. (2016) and Levie et al. (2017) proposed spectrum filtering based methods that utilize Chebyshev polynomials and Cayley polynomials, respectively. The assumption of symmetric adjacency matrix in these spectrum based methods restrict the application to undirected graphs. Kipf & Welling (2017) simplified this spectrum method and obtained a filter in the vertex domain, which achieves state-of-the-art performance. Other researchers (Atwood & Towsley, 2016; Monti et al., 2017) worked on designing feature propagation models in the vertex domain for graph CNNs. Yang et al. (2016); Dai et al. (2016); Grover & Leskovec (2016); Du et al. (2016) study transforming graph-structured data to embedding vectors for learning problems. Nevertheless, it still remains open how to extend CNNs from grid-structured data to arbitrary graph-structured data with local feature extraction capability.
|
| 16 |
+
|
| 17 |
+
This paper proposes a modification to the graph convolution step in CNNs that is particularly relevant for graph structured data. Our proposed TAGCN is graph-based convolution and draws on techniques from graph signal processing. We define rigorously the graph convolution operation on the vertex domain as multiplication by polynomials of the graph adjacency matrix, which is consistent with the notion of convolution in graph signal processing. In graph signal processing, polynomials of the adjacency matrix are graph filters, extending to graph based data from the usual concept of filters in traditional time or image based signal processing. Thus, comparing ours with existing work on graph CNNs, our paper provides a solid theoretical foundation for our proposed convolution step instead of an ad-hoc approach to convolution in CNNs for graph structured data.
|
| 18 |
+
|
| 19 |
+
Further, our method avoids computing the spectrum of the graph Laplacian as in Bruna et al. (2014), or approximating the spectrum using high degree Chebyshev polynomials of the graph Laplacian matrix (in Defferrard et al. (2016), it is suggested that one needs a $2 5 ^ { \mathrm { t h } }$ degree Chebyshev polynomial to provide a good approximation to the graph Laplacian spectrum) or using high degree Cayley polynomials of the graph Laplacian matrix (in Levie et al. (2017), $1 2 ^ { \mathrm { t h } }$ degree Cayley polynomials are needed). We also clarify that the GCN method in Kipf & Welling (2017) is a first order approximation of the Chebyshev polynomials approximation in Defferrard et al. (2016), which is very different from our method. Our method has a much lower computational complexity than the complexity of the methods proposed in Bruna et al. (2014); Defferrard et al. (2016); Levie et al. (2017), since our method only uses polynomials of the adjacency matrix with maximum degree 2 as shown in our experiments. Finally, the method that we propose exhibits better performance than existing methods. Our contributions are summarized follows:
|
| 20 |
+
|
| 21 |
+
• We propose a general $K$ -localized filter for graph convolution in the vertex domain to extract local features on a set of size-1 up to size- $K$ receptive fields. The topologies of these filters are adaptive to the topology of the graph as they scan the graph to perform convolution. It replaces the fixed square filters in traditional CNNs for the input gridstructured data volumes in traditional CNNs. Thus, our convolution definition that we use in the convolution step for the vertex domain is consistent with convolution in traditional CNNs. TAGCN is based on the graph signal processing and it is consistent with the convolution in graph signal processing. It applies to both directed and undirected graphs. Moreover, it has a much lower computational complexity compared with recent methods since it only needs polynomials of the adjacency matrix with maximum degree 2 compared with the $2 5 ^ { \mathrm { { i } \tilde { h } } }$ and $1 \bar { 2 } ^ { \mathrm { t h } }$ degree Laplacian matrix polynomials in Defferrard et al. (2016) and Levie et al. (2017). As no approximation to the convolution is needed in TAGCN, it achieves better performance compared with existing methods. We contrast TAGCN with recently proposed graph CNN including both spectrum filtering methods (Bruna et al., 2014; Defferrard et al., 2016) and vertex domain propagation methods (Kipf & Welling, 2017; Monti et al., 2017; Atwood & Towsley, 2016), evaluating their performances on three commonly used data sets for graph vertices classification. Our experimental tests show that TAGCN outperforms consistently all other approaches for each of these data sets.
|
| 22 |
+
|
| 23 |
+
# 2 GRAPH POLYNOMIAL BASED CONVOLUTION ON GRAPHS
|
| 24 |
+
|
| 25 |
+
We use boldface uppercase and lowercase letters to represent matrices and vectors, respectively. The information and their relationship on a graph $\mathcal { G }$ can be represented by $\mathcal { G } = ( \nu , \mathcal { E } , \vec { \mathbf { A } } )$ , where $\nu$ is the set of vertices, $\mathcal { E }$ is the set of edges, and $\bar { \bf A }$ is the weighted adjacency matrix of the graph; the graph can be weighted or unweighted, directed or undirected. We assume there is no isolated vertex in $\mathcal { G }$ . If $\mathcal { G }$ is a directed weighted graph, the weight $\bar { \mathbf { A } } _ { n , m }$ is on the directed edge from vertex $m$ to $n$ . The entry $\bar { \mathbf { A } } _ { n , m }$ reveals the dependency between node $n$ and $m$ and can take arbitrary real or complex values. The graph convolution is general and can be adapted to graph CNNs for particular tasks. In this paper, we focus on the vertex semisupervised learning problem, where we have access to limited labeled vertices, and the task is to classify the remaining unlabeled vertices.
|
| 26 |
+
|
| 27 |
+
# 2.1 GRAPH CONVOLUTION
|
| 28 |
+
|
| 29 |
+
Without loss of generality, we demonstrate graph convolution on the $\ell \cdot$ -th hidden layer. The results apply to any other hidden layers. Suppose on the $\ell \cdot$ -th hidden layer, the input feature map for each vertex of the graph has $C _ { \ell }$ features. We collect the $\ell$ -th hidden layer input data on all vertices for the $c$ -th feature by the vector $\mathbf { x } _ { c } ^ { ( \ell ) } \in \mathbb { R } ^ { N _ { \ell } }$ , where $c = 1 , 2 , . . . C _ { \ell }$ and $N _ { \ell }$ is the number of vertices1. The components of $\mathbf { x } _ { c } ^ { ( \ell ) }$ are indexed by vertices of the data graph representation $\mathcal { G } = ( \gamma , \mathcal { E } , \bar { \mathbf { A } } ) ^ { 2 }$ . Let $\mathbf { G } _ { c , f } ^ { ( \ell ) } \in \mathbb { R } ^ { N _ { \ell } \times N _ { \ell } }$ denote the $f$ -th graph filter. The graph convolution is the matrix-vector product, i.e., $\mathbf { G } _ { c , f } ^ { ( \ell ) } \mathbf { x } _ { c } ^ { ( \ell ) }$ . Then the $f$ -th output feature map is
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\mathbf { y } _ { f } ^ { ( \ell ) } = \sum _ { c = 1 } ^ { C _ { \ell } } \mathbf { G } _ { c , f } ^ { ( \ell ) } \mathbf { x } _ { c } ^ { ( \ell ) } + b _ { f } \mathbf { 1 } _ { N _ { \ell } } ,
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
where $b _ { f } ^ { ( \ell ) }$ is a learnable bias, and ${ \bf 1 } _ { N _ { \ell } }$ is the $N _ { \ell }$ dimension vector of all ones. We design $\mathbf { G } _ { c , f } ^ { ( \ell ) }$ such that $\mathbf { G } _ { c , f } ^ { ( \ell ) } \mathbf { x } _ { c } ^ { ( \ell ) }$ is a meaningful convolution on a graph with arbitrary topology.
|
| 36 |
+
|
| 37 |
+
In the recent theory on graph signal processing (Sandryhaila & Moura, 2013), the graph shift is defined as a local operation that replaces a graph signal at a graph vertex by a linear weighted combination of the values of the graph signal at the neighboring vertices:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\tilde { \mathbf { x } } _ { c } ^ { ( \ell ) } = \bar { \mathbf { A } } \mathbf { x } _ { c } ^ { ( \ell ) } .
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
The graph shift $\bar { \bf A }$ extends the time shift in traditional signal processing to graph-structured data. Following Sandryhaila & Moura (2013), a graph filter $\mathbf { G } _ { c , f } ^ { \overline { { ( \ell ) } } }$ is shift-invariant, i.e., the shift $\bar { \bf A }$ and the filter $\mathbf { G } _ { c , f } ^ { ( \ell ) }$ commute, $\bar { \mathbf { A } } ( \mathbf { G } _ { c , f } ^ { ( \ell ) } \mathbf { x } _ { c } ^ { ( \ell ) } ) = \mathbf { G } _ { c , f } ^ { ( \ell ) } ( \bar { \mathbf { A } } \mathbf { x } _ { c } ^ { ( \ell ) } )$ , if under appropriate assumption $\mathbf { G } _ { c , f } ^ { ( \ell ) }$ is a polynomial in A,
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\mathbf { G } _ { c , f } ^ { ( \ell ) } = \sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \ell ) } \mathbf { A } ^ { k } .
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
In (2), the g(\`)c,f,k are the graph filter polynomial coefficients; the quantity $\mathbf { A } = \mathbf { D } ^ { - \frac { 1 } { 2 } } \bar { \mathbf { A } } \mathbf { D } ^ { - \frac { 1 } { 2 } }$ is the normalized adjacency matrix of the graph, and $\mathbf { D } = \mathrm { d i a g } [ \mathbf { d } ]$ with the $i$ th component being ${ \bf d } ( i ) =$ $\textstyle \sum _ { j } \mathbf { A } _ { i , j }$ .3 We adopt the normalized adjacency matrix to guarantee that all the eigenvalues of $\mathbf { A }$ are inside the unit circle, and therefore $\mathbf { G } _ { c , f } ^ { ( \ell ) }$ is computationally stable. The next subsection shows we , and $K \times C _ { \ell }$
|
| 50 |
+
coincides with GoogLeNet (Szegedy et al., 2015), in which a set of filters with different sizes are used in each convolutional layer.
|
| 51 |
+
|
| 52 |
+
Following the CNN architecture, an additional nonlinear operation, e.g, rectified linear unit (ReLU) is used after every graph convolution operation:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\begin{array} { r } { \mathbf { x } _ { f } ^ { ( \ell + 1 ) } = \sigma \left( \mathbf { y } _ { f } ^ { ( \ell ) } \right) , } \end{array}
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
where $\sigma ( \cdot )$ denotes the ReLU activation function applied to the vertex values.
|
| 59 |
+
|
| 60 |
+
In the following subsection, we demonstrate that convolution operator shown in (2) exhibits the nice properties of a square filter in traditional CNNs and generalize the convolution theorem from classical signal processing to signal processing on graphs (Sandryhaila & Moura, 2013).
|
| 61 |
+
|
| 62 |
+
# 2.2 FILTER DESIGN FOR TAGCN CONVOLUTIONAL LAYER
|
| 63 |
+
|
| 64 |
+
In this section, we would like to understand the proposed convolution as a feature extraction operator in traditional CNN rather than as propagating labeled data on the graph. Taking this point of view helps us to profit from the design knowledge/experience from traditional CNN and apply it to grid structured data. Our definition of weight of a path and the following filter size for graph convolution in this section make it possible to design a graph CNN architecture similar to GoogLeNet (Szegedy et al., 2015), in which a set of filters with different sizes are used in each convolutional layer. In fact, we found that a combination of size 1 and size 2 filters gives the best performance in all three data sets studied, which is a polynomial with maximum order 2.
|
| 65 |
+
|
| 66 |
+
In traditional CNN, a $K \times K \times C _ { \ell }$ filter scans over the input grid-structured data for feature extraction. For image classification problems, the value $K$ varies for different CNN architectures and tasks to achieve better performance. For example, in VGG-Verydeep-16 CNN model (Simonyan & Zisserman, 2015), only $3 \times 3 \times C _ { \ell }$ filters are used; in ImageNet CNN model (Krizhevsky et al., 2012), $1 1 \times 1 1 \times C _ { \ell }$ filters are adopted; and in GoogLeNet (Szegedy et al., 2015), rather than using the same size filter in each convolutional layer, different size filters, for example, $1 \times 1 \times C _ { \ell }$ , $3 \times 3 \times C _ { \ell }$ and $5 \times 5 \times C _ { \ell }$ filters, are concatenated in each convolution layer. Similarly, we propose a general $K$ -localized filter for graph CNN.
|
| 67 |
+
|
| 68 |
+
For a graph-structured data, we cannot use a square filter window since the graph topology is no longer a grid. In the following, we demonstrate that the convolution operation $\mathbf { G } _ { c , f } ^ { ( \ell ) } \mathbf { x } _ { c } ^ { ( \ell ) }$ with $\mathbf { G } _ { c , f } ^ { ( \ell ) }$ a polyn ial filt $\begin{array} { r } { \mathbf { G } _ { c , f } ^ { ( \ell ) } = \sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \ell ) } \mathbf { A } ^ { k } } \end{array}$ is equivalent to using a set of filters with filter size from 1 $K$ $k$ -size filter, which is used for local feature extraction on the graph, is $k$ -localized in the vertex domain.
|
| 69 |
+
|
| 70 |
+
Define a path of length $m$ on a graph $\mathcal { G }$ as a sequence $v = ( v _ { 0 } , v _ { 1 } , . . . , v _ { m } )$ of vertices $v _ { k } \in \mathcal V$ such that each step of the path $( v _ { k } , v _ { k + 1 } )$ corresponds to an (directed) edge of the graph, i.e., $( v _ { k } , v _ { k + 1 } ) \in$ $\mathcal { E }$ . Here one path may visit the same vertex or cross the same edge multiple times. The following adjacency matrix $\mathbf { A }$ is one such example:
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\mathbf { A } = { \left[ \begin{array} { l l l l l l l l l } { 0 } & { 1 } & { 0 } & { 2 } & { 3 } & { 0 } & { 0 } & { \cdots } \\ { 1 } & { 0 } & { 4 } & { 5 } & { 0 } & { 0 } & { 0 } & { \cdots } \\ { 0 } & { 1 } & { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { \cdots } \\ { 1 } & { 1 } & { 0 } & { 0 } & { 6 } & { 0 } & { 0 } & { \cdots } \\ { 1 } & { 0 } & { 0 } & { 1 } & { 0 } & { 1 } & { 0 } & { \cdots } \\ { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { \cdots } \\ { 0 } & { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { 0 } & { \cdots } \\ { \vdots } & { \vdots } & { \vdots } & { \vdots } & { \vdots } & { \vdots } & { \vdots } & { \cdots } \end{array} \right] } .
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
Since A is asymmetric, it represents a directed graph, given in Fig. 2. In this example, there are 6 different length 3-paths on the graph from vertex 2 to vertex 1, namely, $( 2 , 1 , 4 , 1 )$ , $( 2 , 1 , 2 , 1 )$ , $( 2 , 1 , 5 , 1 ) , ( 2 , \bar { 3 } , 2 , 1 \bar { ) } , ( 2 , 4 , 2 , 1 )$ , and $( 2 , 4 , 5 , 1 )$ .
|
| 77 |
+
|
| 78 |
+
We further define the weight of a path to be the product of the edge weights along the path, i.e., $\begin{array} { r } { \phi ( p _ { 0 , m } ) = \prod _ { k = 1 } ^ { m } \mathbf { A } _ { v _ { k - 1 } , v _ { k } } } \end{array}$ , where $p _ { 0 , m } = ( v _ { 0 } , v _ { 1 } , \dots v _ { m } )$ . For example, the weight of the path $( 2 , 1 , 4 , 1 )$ is $1 \times 1 \times 2 = 2$ . Then, the $( i , j )$ th entry of $\mathbf { A } ^ { k }$ in (2), denoted by $\omega ( p _ { j , i } ^ { k } )$ , can be interpreted as the sum of the weights of all the length- $k$ paths from $j$ to $i$ , which is
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\omega ( p _ { j , i } ^ { k } ) = \sum _ { j \in \{ \tilde { j } | \tilde { j } \mathrm { i s } k \mathrm { p a t h s t o } i \} } \phi ( p _ { j , i } ) .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
In the above example, it can be easily verified that $\mathbf { A } _ { 1 , 2 } ^ { 3 } = 1 8$ by summing up the weights of all the above six paths from vertex 2 to vertex 1 with length 3. Then, the $i$ th component of $\mathbf { A } ^ { k } \mathbf { x } _ { c } ^ { ( \ell ) }$ is the weighted sum of the input features of each vertex $\mathbf { x } _ { c } ^ { ( \ell ) }$ that are length- $k$ paths away to vertex $i$ . Here, $k$ is defined as the filter size. The output feature map is a vector with each component given by the size- $k$ filter sliding on the graph following a fixed order of the vertex indices.
|
| 85 |
+
|
| 86 |
+
The output at the $i$ -th component can be written explicitly as $\begin{array} { r l } { \sum _ { c = 1 } ^ { C _ { \ell } } \sum _ { j } g _ { c , f , k } ^ { ( \ell ) } \omega ( p _ { j , i } ^ { k } ) \mathbf { x } _ { c } ^ { ( \ell ) } ( j ) } & { { } } \end{array}$ . This weighted sum is similar to the dot product for convolution for a grid-structured data in traditional
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
Figure 1: Graph convolution operation at each neuron in the graph convolution layer.
|
| 90 |
+
|
| 91 |
+
CNNs. Finnaly, the output feature map is a weighted sum of convolution results from filters with different sizes, which is
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\mathbf { y } _ { f } ^ { ( \ell ) } ( i ) = \sum _ { k = 1 } ^ { K _ { \ell } } \sum _ { c = 1 } ^ { C _ { \ell } } \sum _ { \substack { j \in \{ \tilde { j } | \tilde { j } \mathrm { ~ i s ~ } k \mathrm { ~ p a t h s ~ t o ~ } i \} } } g _ { c , f , k } ^ { ( \ell ) } \omega ( p _ { j , i } ^ { k } ) \mathbf { x } _ { c } ^ { ( \ell ) } ( j ) + b _ { f } \mathbf { 1 } _ { N _ { \ell } } ,
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
The above equation shows that each neuron in the graph convolutional layer is connected only to a local region (local vertices and edges) in the vertex domain of the input data volume, which is adaptive to the graph topology. The strength of correlation is explicitly utilized in $\omega ( p _ { j , i } ^ { k } )$ . Fig. 1 summarizes the graph convolution operation at each neuron. We refer to this method as topology adaptive graph convolutional network (TAGCN).
|
| 98 |
+
|
| 99 |
+
In Fig. 2, we show TAGCN with an example of 2-size filter sliding from vertex 1 (figure on the lefthand-side) to vertex 2 (figure on the right-hand-side). The filter is first placed at vertex 1. Since paths $( 1 , 2 , 1 ) \ ( 5 , 4 , 1 )$ and so on (paths with red glow) are all 2-length paths to vertex 1, they are covered by this 2-size filter. Since paths $( 2 , 3 )$ and $( 7 , 3 )$ are not on any 2-length path to vertex 1, they are not covered by this filter. Further, when this 2-size filter moves to vertex 2, paths $( 1 , 5 )$ , $( 4 , 5 )$ and $( 6 , 5 )$ are no longer covered, but paths $( 2 , 3 )$ and $( 7 , 3 )$ are first time covered and contribute to the convolution with output at vertex 2.
|
| 100 |
+
|
| 101 |
+
Further, ${ \bf y } _ { f } ^ { ( \ell ) } ( i )$ is the weighted sum of the input features of vertices in $\mathbf { x } _ { c } ^ { ( \ell ) }$ that are within $k$ -paths away to vertex $i$ , for $k = 0 , 1 , \ldots K$ , with weights given by the products of components of $\mathbf { A } ^ { k }$ and $g _ { c , f , k } ^ { ( \ell ) ^ { \top } }$ . Thus the output is the weighted sum of the feature map given by the filtered results from 1-size up to $K$ -size filters. It is evident that the vertex convolution on the graph using $K$ th order polynomials is $K$ -paths localized. Moreover, different vertices on the graph share $g _ { c , f , k } ^ { ( \ell ) }$ . The above local convolution and weight sharing properties of the convolution (3) on a graph are very similar to those in traditional CNN.
|
| 102 |
+
|
| 103 |
+
Though the convolution operator defined in (2) is defined on the vertex domain, it can also be understood as a filter in the spectrum domain, and it is consistent with the definition of convolution in graph signal processing. We provide detailed discussion in the appendix.
|
| 104 |
+
|
| 105 |
+
# 2.3 COMPUTATION COMPLEXITY OF THE CONVOLUTION OPERATION
|
| 106 |
+
|
| 107 |
+
Equation (7) shows that TAGCN is equivalent to performing graph convolution either on the vertex domain or on the spectrum domain. We next show that it is preferred to implement TAGCN in the vertex domain.
|
| 108 |
+
|
| 109 |
+
To obtain F, $\mathbf { F } ^ { - 1 }$ and J, the eigendecomposition for a diagonalizable matrix is in general $\mathcal { O } ( N ^ { 3 } )$ . If the graph is directed, A may only be block diagonalizable, needing the Jordan decomposition, which is sensitive to round-off errors. Additional matrix and vector multiplications may be needed to project the filtered out results from the spectrum domain back to the vertex domain. In contrast, filtering directly in the vertex domain that involves powers of the graph adjacency matrix with $N$ vertices and $M$ edges can be computed in $\mathcal { O } ( M N )$ by performing a breadth-first search starting from each vertex to determine the distances to all other vertices Hammack et al. (2011). For a sparse graph, which is often the case in practical problems, $M \ll N$ . Since the motivation for performing graph convolution is to detect local features for graph-structured data, the optimal $K$ usually is very small. The experiments section shows that a filter size $K = 2$ leads to the best performance is selected for the data sets and specific tasks tested. In summary, using polynomial filters in the vertex domain rather than in the spectrum domain saves significantly computational costs.
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
Figure 2: An example of a directed graph with weights along directed edges corresponding to A. The parts with glow on left(right)-hand-side represent filters at different locations. The figure on the left-hand-side denotes the filtering/convolution starting from vertex 1, then the filter slides to vertex 2 as shown on the right-hand-side with filter topology adaptive to the new local region.
|
| 113 |
+
|
| 114 |
+
# 3 RELATION WITH OTHER EXISTING FORMULATIONS
|
| 115 |
+
|
| 116 |
+
In this section, we show the connections and differences between the proposed TAGCN and existing methods. In general, there are two types of graph convolution operators for the CNN architecture. One defines the convolution in the spectrum domain, whose output feature map is the multiplication of the inverse Fourier transform matrix with the filtered results in the spectrum domain (Bruna et al., 2014; Defferrard et al., 2016; Levie et al., 2017). By doing further approximations based on this spectrum domain operator, a simplified convolution was obtained in Kipf & Welling (2017). The other defines convolution by a feature propagation model in the vertex domain such as MoNet in Monti et al. (2017) and the diffusion CNN (DCNN) in Atwood & Towsley (2016). We investigate in detail each alternative.
|
| 117 |
+
|
| 118 |
+
In Bruna et al. (2014); Defferrard et al. (2016); Levie et al. (2017), the convolution operation was defined using the convolution theorem and filtering operation in the spectrum domain by computing the eigendecomposition of the normalized Laplacian matrix of the graph. The Laplacian matrix $\mathbf { L }$ is defined as $\mathbf { L } = \mathbf { D } - \mathbf { A }$ with the further assumption that $\mathbf { A }$ is symmetric to guarantee that $\mathbf { L }$ is positive semi-definite. The convolution defined by the multiplication in the spectrum domain is approximated by Defferrard et al. (2016) by
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\mathbf { U } g _ { \theta } \mathbf { U } ^ { T } \mathbf { x } \approx \sum _ { k = 0 } ^ { K } \theta _ { k } T _ { k } \left[ \frac { 2 } { \lambda _ { \operatorname* { m a x } } } \mathbf { L } - \mathbf { I } \right] \mathbf { x } _ { c } ^ { ( \ell ) } ,
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where $T _ { k } \left[ \cdot \right]$ is the $k$ th order matrix Chebyshev polynomial (Shuman et al., 2013) where
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
T _ { k } ( { \bf L } ) = 2 { \bf L } T _ { k - 1 } [ { \bf L } ] - T _ { k - 2 } [ { \bf L } ] ,
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
with the initial values defined as $T _ { 0 } [ \mathbf { L } ] = \mathbf { I }$ and $T _ { 1 } \left[ \mathbf { L } \right] = \mathbf { L }$ . We refer later to this method as ChebNet for performance comparison. Note that the Laplacian matrix can be seen as a differentiator operator. The assumption of symmetric $\mathbf { A }$ restricts the application to undirected graphs. Note that in Defferrard et al. (2016), Laplacian matrix polynomials with maximum order $K = 2 5$ is needed to approximate the convolution operation on the left-hand side in (4), which imposes the computational burden. While TAGCN only needs an adjacency matrix polynomials with maximum order 2 to achieve better performance as shown in the experiment part.
|
| 131 |
+
|
| 132 |
+
In Kipf & Welling (2017), a graph convolutional network (GCN) was obtained by a first order approximation of (4). In particular, let $K = 1$ and make the further assumptions that $\lambda _ { \operatorname* { m a x } } = 2$ and $\theta _ { 0 } = \theta _ { 1 } = \theta$ . Then a simpler convolution operator that does not depend on the spectrum knowledge is obtained as
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\mathbf { U } g _ { \theta } \mathbf { U } ^ { T } \mathbf { x } \approx \sum _ { k = 0 } ^ { 1 } \theta _ { k } T _ { k } \left[ \frac { 2 } { \lambda _ { \operatorname* { m a x } } } \mathbf { L } - \mathbf { I } \right] \mathbf { x } _ { c } ^ { ( \ell ) } \approx \theta ( \mathbf { I } + \mathbf { D } ^ { - \frac { 1 } { 2 } } \mathbf { A } \mathbf { D } ^ { - \frac { 1 } { 2 } } ) \mathbf { x } _ { c } ^ { ( \ell ) } .
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
Note that $\mathbf { I } + \mathbf { D } ^ { - \frac { 1 } { 2 } } \mathbf { A } \mathbf { D } ^ { - \frac { 1 } { 2 } }$ is a matrix with eigenvalues in $[ 0 , 2 ]$ . A renormalization trick is adopted here by letting $\widetilde { \mathbf { A } } = \mathbf { A } + \mathbf { I }$ and $\begin{array} { r } { \widetilde { \bf D } _ { i , i } = \sum _ { j } \widetilde { \bf A } _ { i , j } } \end{array}$ . Finally, the convolutional operator is approximated by
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\mathbf { U } g _ { \theta } \mathbf { U } ^ { T } \mathbf { x } \approx \theta \mathbf { \widetilde { D } } ^ { - \frac { 1 } { 2 } } \mathbf { \widetilde { A } } \mathbf { \widetilde { D } } ^ { - \frac { 1 } { 2 } } \mathbf { x } _ { c } ^ { ( \ell ) } = \theta \mathbf { \widehat { A } } ,
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
where $\widehat { \mathbf { A } } = \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } } \widetilde { \mathbf { A } } \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } }$ e e . It is interesting to observe that this method though obtained by simplifying the spectrum method has a better performance than the spectrum method (Defferrard et al., 2016). The reason may be because the simplified form is equivalent to propagating vertex features on the graph, which can be seen as a special case of our TAGCN method, though there are other important differences.
|
| 145 |
+
|
| 146 |
+
Though our TAGCN is able to leverage information at a farther distance, it is not a simple extension of GCN Kipf & Welling (2017). First, the graph convolution in GCN is defined as a first order Chebyshev polynomial of the graph Laplacian matrix, which is an approximation to the graph convolution defined in the spectrum domain in Defferrard et al. (2016). In contrast, our graph convolution is rigorously defined as multiplication by polynomials of the graph adjacency matrix; this is not an approximation, rather, it simply is filtering with graph filters as defined and as being consistent with graph signal processing.
|
| 147 |
+
|
| 148 |
+
Next, we show the difference between our work and the GCN method in Kipf & Welling (2017) when using 2nd order $\mathrm { K } { = } 2$ , 2 steps away from the central node) Chebyshev polynomials of Laplacian matrix. In the GCN paper Kipf & Welling (2017), it has been shown that $\begin{array} { r } { \sum _ { k = 0 } ^ { 1 } \theta _ { k } T _ { k } ( { \bf L } ) \approx \widehat { \bf A } } \end{array}$ as repeated in (6), and $T _ { 2 } [ \mathbf { L } ] = 2 \mathbf { L } ^ { 2 }$ by the definition of Chebyshev polynomial. Then, extending GCN to the second order Chebyshev polynomials (two steps away from a central node) can be obtained from the original definition in T. Kipfs GCN (Kipf & Welling, 2017, eqn (5)) as $\begin{array} { r } { \sum _ { k = 0 } ^ { 2 } \theta T _ { k } ( L ) = \widehat { \mathbf { A } } + 2 \bar { \mathbf { L } ^ { 2 } } - \mathbf { I } } \end{array}$ , which is different from our definition as in (2). Thus, it is evident that our method is not a simple extension of GCN. We apply graph convolution as proposed from basic principles in the graph signal processing, with no approximations involved, while both GCN in Kipf & Welling (2017) and Defferrard et al. (2016) Levie et al. (2017) are based on approximating the convolution defined in the spectrum domain. In our approach, the degree of freedom is the design of the graph filter-its degree and its coefficients. Ours is a principled approach and provides a generic methodology. The performance gains we obtain are the result of capturing the underlying graph structure with no approximation in the convolution operation.
|
| 149 |
+
|
| 150 |
+
Simonovsky & Komodakis (2017) proposed the edge convolution network (ECC) to extend the convolution operator from regular grids to arbitrary graphs. The convolution operator is defined similarly to (6) as
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\mathbf { y } _ { f } ^ { ( \ell ) } ( i ) = \sum _ { j \in \mathcal { N } ( i ) } \frac { 1 } { | \mathcal { N } ( i ) | } \Theta _ { j , i } ^ { ( \ell ) } \mathbf { x } _ { c } ^ { ( \ell ) } ( j ) + b _ { f } ^ { ( \ell ) } ,
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
$\Theta _ { j , i } ^ { ( \ell ) }$
|
| 157 |
+
|
| 158 |
+
A mixture model network (MoNet) was proposed in Monti et al. (2017), with convolution defined as
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\mathbf { y } _ { f } ^ { ( \ell ) } ( i ) = \sum _ { f = 1 } ^ { F } \sum _ { j \in \mathcal { N } ( i ) } g _ { f } \kappa _ { f } \mathbf { x } _ { c } ^ { ( \ell ) } ( j ) ,
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
where $\kappa _ { f }$ is a Gaussian kernel with $\begin{array} { r } { \kappa _ { f } = \exp \left\{ - \frac { 1 } { 2 } ( \mathbf { u } - \pmb { \mu } _ { f } ) ^ { T } \pmb { \Sigma } _ { f } ^ { - 1 } ( \mathbf { u } - \pmb { \mu } _ { f } ) \right\} } \end{array}$ and $g _ { f }$ is the weight coefficient for each Gaussian kernel $\kappa _ { f }$ . It is further assumed that $\Sigma _ { f }$ is a $2 \times 2$ diagonal matrix.
|
| 165 |
+
|
| 166 |
+
GCN, ECC, and MoNet all design a propagation model on the graph; their differences are on the weightings used by each model.
|
| 167 |
+
|
| 168 |
+
Table 1: Summary of number of weights need to be learned for the $\ell$ -th layer.
|
| 169 |
+
|
| 170 |
+
<table><tr><td>DCNN</td><td>ECC</td><td>ChebNet</td><td>GCN</td><td>MoNet</td><td>TAGCN</td></tr><tr><td>FeCe</td><td>FeCe</td><td>25FeCe</td><td>FeCe</td><td>4FeCe</td><td>2FeCe</td></tr></table>
|
| 171 |
+
|
| 172 |
+
Atwood & Towsley (2016) proposed a diffusion CNN (DCNN) method that considers a diffusion process over the graph. The transition probability of a random walk on a graph is given by $\mathbf { P } =$ $\mathbf { b } ^ { - 1 } \mathbf { A }$ , which is equivalent to the normalized adjacency matrix.
|
| 173 |
+
|
| 174 |
+
$$
|
| 175 |
+
\begin{array} { r } { \mathbf { y } _ { c , f } ^ { ( \ell ) } = \mathbf { g } _ { c , f } ^ { ( \ell ) } \mathbf { P } ^ { f } \mathbf { x } _ { c } ^ { ( \ell ) } . } \end{array}
|
| 176 |
+
$$
|
| 177 |
+
|
| 178 |
+
By comparing the above methods with TAGCN in (3), it can be concluded that GCN, ECC and MoNet can be seen as a special case of TAGCN because in (3) the item with $k = 1$ can be seen as an information propagation term. However, the strength of the correlation between vertices that are taken into account in $\omega ( p _ { j , i } ^ { k } )$ in (3) can not be utilized in the GCN, ECC and MoNet methods. Further, the TAGCN method is a systematic way to design a set of fixed size filters that is adaptive to the input graph topology when performing convolution on the graph. Compared with existing spectrum methods (Bruna et al., 2014; Defferrard et al., 2016; Levie et al., 2017), TAGCN satisfies the convolution theorem as shown in the previous subsection and implemented in the vertex domain, which avoids performing costly and practically numerical unstable eigendecompositions.
|
| 179 |
+
|
| 180 |
+
We further compare the number of weights that need to be learned in each hidden layer for these different methods in Table 1. As we show later, $K = 2$ is selected in our experiments using cross validation. However, for ChebNet in (Defferrard et al., 2016), it is suggested that one needs a $2 5 ^ { \mathrm { t h } }$ degree Chebyshev polynomial to provide a good approximation to the graph Laplacian spectrum. Thus we have a moderate number of weights to be learned. In the following, we show that our method achieves the best performance for each of those commonly used graph-structured data sets.
|
| 181 |
+
|
| 182 |
+
# 4 EXPERIMENTS
|
| 183 |
+
|
| 184 |
+
The proposed TAGCN is general and can be fit to the general graph CNN architectures for different tasks. In the experiments, we focus on the vertex semisupervised learning problem, where we have access to only a few labeled vertices, and the task is to classify the remaining unlabeled vertices. To compare the performance of TAGCN with that of existing methods, we extensively evaluate TAGCN on three graph-structured datasets, including the Cora, Citesser and Pubmed datasets. The datasets split and experiments setting closely follow the standard criteria in Yang et al. (2016).
|
| 185 |
+
|
| 186 |
+
# 4.1 DATASETS
|
| 187 |
+
|
| 188 |
+
TAGCN is evaluated on three data sets coming from citation networks: Citeseer, Cora, and Pubmed. We closely follow the data set split and experimental setup in Yang et al. (2016). Each data set consists of a certain classes of documents, yet only a few documents are labeled. The task is to classify the documents in the test set with these limited number of labels. In each data set, the vertices are the documents and the edges are the citation links. Each document is represented by sparse bagof-words feature vectors, and the citation links between documents are provided. Detailed statistics of these three data sets are summarized in Table 2. It shows the number of nodes and edges that corresponding to documents and citation links. Classes for the graph vertices shows the number of document classes in each data set. Also, the number of features at each vertex is given. Label rate denotes the number of labeled documents that are used for training divided by the total number of documents in each data set.
|
| 189 |
+
|
| 190 |
+
Table 2: Dataset statistics, following Yang et al. (2016); Kipf & Welling (2017)
|
| 191 |
+
|
| 192 |
+
<table><tr><td>Dataset Size</td><td>Nodes</td><td>Edges</td><td>Classes</td><td>Features</td><td>Label rate</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Citeseer</td><td>3,327</td><td>4,732</td><td>6</td><td>3,703</td><td>0.036</td></tr><tr><td>Cora</td><td>2,708</td><td>5,429</td><td>7</td><td>1,433</td><td>0.052</td></tr><tr><td>Pubmed</td><td>19,717</td><td>44,338</td><td>3</td><td>500</td><td>0.003</td></tr></table>
|
| 193 |
+
|
| 194 |
+
Table 3: Summary of results in terms of percentage classification accuracy with standard variance
|
| 195 |
+
|
| 196 |
+
<table><tr><td>Citeseer</td><td>Cora</td><td>Pubmed</td></tr><tr><td></td><td></td><td></td></tr><tr><td>Planetoid 64.7</td><td>75.7</td><td>77.2</td></tr><tr><td>DCNN</td><td>76.8±0.6</td><td>73.0±0.5</td></tr><tr><td>ChebNet (K=2) 69.6</td><td>81.2</td><td>73.8</td></tr><tr><td>ChebNet (K=3) 69.8</td><td>79.5</td><td>74.4</td></tr><tr><td>GCN 70.3</td><td>81.5</td><td>79.0</td></tr><tr><td>MoNet =</td><td>81.69±0.5</td><td>78.81±0.4</td></tr><tr><td>TAGCN (K=2)</td><td>70.9± 0.9 82.5±0.7</td><td>81.1±0.4</td></tr></table>
|
| 197 |
+
|
| 198 |
+
# 4.2 EXPERIMENTAL SETTINGS
|
| 199 |
+
|
| 200 |
+
We construct a graph for each data set with nodes representing documents and undirected edges4 linking two papers if there is a citation relationship. We obtain the adjacency matrix $\bar { \bf A }$ with 0 and 1 components and further obtain the normalized matrix A.
|
| 201 |
+
|
| 202 |
+
In the following experiments, we design a TAGCN with two hidden layers (obtained from cross validation) for the semi-supervised node classification. In each hidden layer, the proposed TAGCN is applied for convolution, followed by a ReLU activation. 16 hidden units (filters) are designed for each hidden layer, and dropout is applied after each hidden layer. The softmax activation function is applied to the output of the second hidden layer for the final classification. For ablation study, we evaluate the performance of TAGCN with different kernel size from 1 to 4. To investigate the performance for different number of parameters, we also design a TAGCN with 8 filters for each hidden layer and compare its classification accuracy with all the baselines and TAGCN with 16 filters. We train our model using Adam (Kinga & Ba, 2015) with a learning rate of 0.01 and early stopping with a window size of 20. Hyperparameters of the networks (filter size, dropout rate, and number of hidden layers) are selected by cross validation.
|
| 203 |
+
|
| 204 |
+
To make a fair comparison, we closely follow the same split of training, validation, and testing sets as in Kipf & Welling (2017); Yang et al. (2016), i.e., 500 labeled examples for hyperparameters (filter size, dropout rate, and number of hidden layers) optimization and cross-entropy error is used for classification accuracy evaluation. The performance results of the proposed TAGCN method are an average over 100 runs with random initializations (Glorot & Bengio, 2010).
|
| 205 |
+
|
| 206 |
+
# 4.3 QUANTITATIVE EVALUATIONS
|
| 207 |
+
|
| 208 |
+
We compare the classification accuracy with other recently proposed graph CNN methods as well as a graph embedding method known as Planetoid Yang et al. (2016). The quantitative results are summarized in Table 3. Reported numbers denote classification accuracy in percent. Results for Planetoid, GCN, and ChebNet are taken from Kipf & Welling (2017), and results for DCNN and MoNet are taken from Monti et al. (2017). All the experiments for different methods are based on the same data statistics shown in Table 2. The datasets split and experiments settings closely follow the standard criteria in Yang et al. (2016); Kipf & Welling (2017). Table 3 shows that our method
|
| 209 |
+
|
| 210 |
+
Table 4: TAGCN classification accuracy (ACC) with different parameters
|
| 211 |
+
|
| 212 |
+
<table><tr><td>Data Set</td><td>Filter Size</td><td>Filter Number</td><td>ACC</td></tr><tr><td rowspan="5">Citeseer</td><td>1</td><td>16</td><td>68.9</td></tr><tr><td>2</td><td>16</td><td>70.9</td></tr><tr><td>3</td><td>16</td><td>70.0</td></tr><tr><td>4</td><td>16</td><td>69.8</td></tr><tr><td>2</td><td>8</td><td>70.6</td></tr><tr><td rowspan="6">Cora</td><td>1</td><td>16</td><td>81.4</td></tr><tr><td>2</td><td>16</td><td>82.5</td></tr><tr><td>3</td><td>16</td><td>82.1</td></tr><tr><td>4</td><td>16</td><td>81.8</td></tr><tr><td>2</td><td>8</td><td>82.5</td></tr><tr><td>1</td><td>16</td><td>79.4</td></tr><tr><td rowspan="4">Pubmed</td><td>2</td><td>16</td><td>81.1</td></tr><tr><td>3</td><td>16</td><td>80.9</td></tr><tr><td>4</td><td>16</td><td>79.5</td></tr><tr><td>2</td><td>8</td><td>80.8</td></tr></table>
|
| 213 |
+
|
| 214 |
+
outperforms all the recent state-of-the-art methods by obvious margins for all the three datasets.
|
| 215 |
+
These results verify the efficacy of the proposed TAGCN.
|
| 216 |
+
|
| 217 |
+
For ablation study, we further compare the performance of different filter sizes from $K = 1$ to $K = 4$ in Table 4. It shows that the performances for filter size $K = 2$ are always better than that for other filter sizes. The value $K = 1$ gives the worst classification accuracy. This further validates that a local feature extraction is more important than just propagating features among neighbors on the graph. In Table 4, we also compare the performance of different number of filters, which reflects different number of network parameters. Note, we also choose filer size $K = 2$ and filter number $F _ { \ell } = 8$ that results in the same number of network parameters as that in GCN, MoNet, ECC and DCNN according to Table 1. It shows that the classification accuracy using 8 filters is comparable with that using 16 filters in each hidden layer for TAGCN. Moreover, TAGCN with 8 filters can still achieve higher accuracy than GCN, MoNet, ECC and DCNN methods. This proves that, even with a similar number of parameters or architecture, our method still exhibits superior performance than GCN.
|
| 218 |
+
|
| 219 |
+
As we explained in Section 3, TAGCN in our paper is not simply extending GCN Kipf & Welling (2017) to $k$ -th order. Nevertheless, we implement ${ \bf A } ^ { 2 }$ and compare its performance with ours. For the data sets Pubmed, Cora, and Citeseer, the classification accuracies are 79.1(81.1), 81.7(82.5) and 70.8(70.9), where the numbers in parentheses are the results obtained with our method. Our method still achieves a noticeable performance advantage over ${ \bf A } ^ { 2 }$ for the Pubmed and Cora data; in particular, we note the significant performance gain with the Pubmed database that has the largest number of nodes among these three data sets.
|
| 220 |
+
|
| 221 |
+
# 5 CONCLUSIONS
|
| 222 |
+
|
| 223 |
+
We have defined a novel graph convolutional network that rearchitects the CNN architecture for graph-structured data. The proposed method, known as TAGCN, is adaptive to the graph topology as the filter scans the graph. Further, TAGCN inherits properties of the convolutional layer in classical CNN, i.e., local feature extraction and weight sharing. It can further extract the strength of correlation between vertices in the filtering region. On the other hand, by the convolution theorem, TAGCN that implements in the vertex domain offers implement in the spectrum domain unifying graph CNN in both the spectrum domain and the vertex domain. TAGCN is consistent with convolution in graph signal processing. These nice properties lead to a noticeable performance advantage in classification accuracy on different graph-structured datasets for semi-supervised graph vertex classification problems with low computational complexity.
|
| 224 |
+
|
| 225 |
+
# 6 APPENDIX: SPECTRUM RESPONSE OF TAGCN
|
| 226 |
+
|
| 227 |
+
In classical signal processing (Oppenheim & Schafer, 2009), the convolution in the time domain is equivalent to multiplication in the spectrum domain. This relationship is known as the convolution theorem. Sandryhaila & Moura (2013) showed that the graph filtering defined in the vertex domain satisfies the generalized convolution theorem naturally and can also interpret spectrum filtering for both directed and undirected graphs. Recent work (Bruna et al., 2014; Defferrard et al., 2016) used the convolution theorem for undirected graph-structured data and designed a spectrum graph filtering.
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Figure 3: Graph topology of a 1-D cyclic graph.
|
| 231 |
+
|
| 232 |
+
Assume that the adjacency matrix A for a graph is diagonalizable, i.e., $\mathbf { A } = \mathbf { F } ^ { - 1 } \mathbf { J } \mathbf { F }$ with $\mathbf { J }$ a diagonal matrix. The components on the diagonal of $\mathbf { J }$ are eigenvalues of $\mathbf { A }$ , and the column vectors of $\mathbf { F } ^ { - 1 }$ are the right eigenvectors of $\mathbf { A }$ ; the row vectors of $\mathbf { F }$ are the left eigenvectors of A 5. By diagonalizing $\mathbf { A }$ in (2) for TAGCN, we obtain
|
| 233 |
+
|
| 234 |
+
$$
|
| 235 |
+
\mathbf { G } _ { c , f } ^ { ( \ell ) } \mathbf { x } _ { c } ^ { ( \ell ) } = \mathbf { F } ^ { - 1 } \left( \sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \ell ) } \mathbf { J } ^ { k } \right) \mathbf { F } \mathbf { x } _ { c } ^ { ( \ell ) } .
|
| 236 |
+
$$
|
| 237 |
+
|
| 238 |
+
The expression on the left-hand-side of the above equation represents the filtering/convolution on the vertex domain. Matrix $\mathbf { F }$ defines the graph Fourier transform (Sandryhaila $\&$ Moura, 2013; 2014), and $\mathbf { F } \mathbf { x } _ { c } ^ { ( \ell ) }$ is the input feature spectrum map, which is a linear mapping from the input feature on the vertex domain to the spectrum domain. The polynomial $\scriptstyle \sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \ell ) } \mathbf { J } ^ { k }$ is the spectrum of the graph filter. Relation (7), which is equation (27) in Sandryhaila & Moura (2013) generalizes the classical convolution theorem to graph-structured data: convolution/filtering on the vertex domain becomes multiplication in the spectrum domain. When the graph is in the 1D cyclic form, as shown in Fig. 3, the corresponding adjacency matrix is of the form
|
| 239 |
+
|
| 240 |
+
$$
|
| 241 |
+
\mathbf { A } = \left[ \begin{array} { c c c c } { \vrule } & { } & { } & { 1 } \\ { 1 } & { } & { } & { } \\ { \vrule } & { \ddots } & { } & { } \\ { } & { } & { 1 } & { } \end{array} \right] .
|
| 242 |
+
$$
|
| 243 |
+
|
| 244 |
+
The eigendecomposition of $\mathbf { A }$ is
|
| 245 |
+
|
| 246 |
+
$$
|
| 247 |
+
\mathbf { A } = \frac { 1 } { N } \mathrm { D F T } ^ { - 1 } \left[ \begin{array} { c c } { \begin{array} { c } { e ^ { - j \frac { 2 \pi 0 } { N } } } \\ { \ddots } \\ { \end{array} } } \\ \begin{array} { c } { \begin{array} { r l } { e ^ { - j \frac { 2 \pi ( N - 1 ) } { N } } } \end{array} } \end{array} \right] \mathrm { D F T } , \end{array}
|
| 248 |
+
$$
|
| 249 |
+
|
| 250 |
+
where DFT is the discrete Fourier transform matrix. The convolution operator defined in (2) is consistent with that in classical signal processing.
|
| 251 |
+
|
| 252 |
+
# REFERENCES
|
| 253 |
+
|
| 254 |
+
James Atwood and Don Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS). 2016.
|
| 255 |
+
|
| 256 |
+
Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. In Internatonal Conference on Learning Representations (ICLR). 2014.
|
| 257 |
+
|
| 258 |
+
Hanjun Dai, Bo Dai, and Le Song. Discriminative embeddings of latent variable models for structured data. In International Conference on Machine Learning (ICML). 2016.
|
| 259 |
+
|
| 260 |
+
Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, 2016.
|
| 261 |
+
|
| 262 |
+
Joya Deri and Jose M. F. Moura. Spectral projector-based graph Fourier transforms. ´ IEEE Journal of Selected Topics in Signal Processing, 11(6):785–795, 2017.
|
| 263 |
+
|
| 264 |
+
Jian Du, Shaodan Ma, Yik-Chung Wu, Soummya Kar, and Jose M. F. Moura. Convergence analysis ´ of distributed inference with vector-valued Gaussian belief propagation. arXiv:1611.02010, 2016.
|
| 265 |
+
|
| 266 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics. 2010.
|
| 267 |
+
|
| 268 |
+
Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM International Conference on Knowledge Discovery and Data Mining (KDD). 2016.
|
| 269 |
+
|
| 270 |
+
Richard Hammack, Wilfried Imrich, and Sandi Klavzar. ˇ Handbook of product graphs. CRC press, 2011.
|
| 271 |
+
|
| 272 |
+
Diederik P. Kinga and Jimmy Ba. A method for stochastic optimization. In International Conference on Learning Representations (ICLR). 2015.
|
| 273 |
+
|
| 274 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In Internatonal Conference on Learning Representations (ICLR). 2017.
|
| 275 |
+
|
| 276 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS). 2012.
|
| 277 |
+
|
| 278 |
+
Yann LeCun, Yoshua Bengio, and Geoffrey E. Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
|
| 279 |
+
|
| 280 |
+
Ron Levie, Federico Monti, Xavier Bresson, and Michael M Bronstein. Cayleynets: Graph convolutional neural networks with complex rational spectral filters. arXiv preprint arXiv:1705.07664, 2017.
|
| 281 |
+
|
| 282 |
+
Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M \` Bronstein. Geometric deep learning on graphs and manifolds using mixture model CNNs. In Conference on Computer Vision and Pattern Recognition (CVPR). 2017.
|
| 283 |
+
|
| 284 |
+
Alan V. Oppenheim and Ronald W. Schafer. Discrete-time signal processing (3rd Edition). Prentice Hall, 2009.
|
| 285 |
+
|
| 286 |
+
Aliaksei Sandryhaila and Jose M. F. Moura. Discrete signal processing on graphs. ´ IEEE Transactions on Signal Processing, 61(7), 2013.
|
| 287 |
+
|
| 288 |
+
Aliaksei Sandryhaila and Jose M. F. Moura. Big data analysis with signal processing on graphs: ´ Representation and processing of massive data sets with irregular structure. IEEE Signal Processing Magazine, 31(5), 2014.
|
| 289 |
+
|
| 290 |
+
David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30, 2013.
|
| 291 |
+
|
| 292 |
+
Martin Simonovsky and Nikos Komodakis. Dynamic edge-conditioned filters in convolutional neural networks on graphs. In Conference on Computer Vision and Pattern Recognition (CVPR). 2017.
|
| 293 |
+
|
| 294 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In Internatonal Conference on Learning Representations (ICLR). 2015.
|
| 295 |
+
|
| 296 |
+
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Conference on Computer Vision and Pattern Recognition (CVPR). 2015.
|
| 297 |
+
|
| 298 |
+
Zhilin Yang, William Cohen, and Ruslan Salakhutdinov. Revisiting semi-supervised learning with graph embeddings. In Internatonal Conference on Learning Representations (ICLR). 2016.
|
parse/train/H113pWZRb/H113pWZRb_content_list.json
ADDED
|
@@ -0,0 +1,1513 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "TOPOLOGY ADAPTIVE GRAPH CONVOLUTIONAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
759,
|
| 10 |
+
145
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 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 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Convolution acts as a local feature extractor in convolutional neural networks (CNNs). However, the convolution operation is not applicable when the input data is supported on an irregular graph such as with social networks, citation networks, or knowledge graphs. This paper proposes the topology adaptive graph convolutional network (TAGCN), a novel graph convolutional network that generalizes CNN architectures to graph-structured data and provides a systematic way to design a set of fixed-size learnable filters to perform convolutions on graphs. The topologies of these filters are adaptive to the topology of the graph when they scan the graph to perform convolution, replacing the square filter for the grid-structured data in traditional CNNs. The outputs are the weighted sum of these filters’ outputs, extraction of both vertex features and strength of correlation between vertices. It can be used with both directed and undirected graphs. The proposed TAGCN not only inherits the properties of convolutions in CNN for grid-structured data, but it is also consistent with convolution as defined in graph signal processing. Further, as no approximation to the convolution is needed, TAGCN exhibits better performance than existing graph-convolution-approximation methods on a number of data sets. As only the polynomials of degree two of the adjacency matrix are used, TAGCN is also computationally simpler than other recent methods. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
266,
|
| 43 |
+
764,
|
| 44 |
+
517
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
178,
|
| 54 |
+
544,
|
| 55 |
+
334,
|
| 56 |
+
560
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Convolutional neural network (CNN) architectures exhibit state-of-the-art performance on a variety of learning tasks dealing with 1D, 2D, and 3D grid-structured data such as acoustic signals, images, and videos, in which convolution serves as a feature extractor (LeCun et al., 2015). However, the (usual) convolution operation is not applicable when applying CNN to data that is supported on an arbitrary graph rather than on a regular grid structure, since the number of neighbors of each vertex on the graph varies, and it is difficult to design a fixed-size filter scanning over the graph-structured data for feature extraction. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
575,
|
| 66 |
+
825,
|
| 67 |
+
672
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently, there has been an increasing interest in graph CNNs (Bruna et al., 2014; Defferrard et al., 2016; Kipf & Welling, 2017; Monti et al., 2017; Levie et al., 2017), attempting to generalize deep learning methods to graph-structured data, specifically focusing on the design of graph CNN . In this paper, we propose the topology adaptive graph convolutional network (TAGCN), a unified convolutional neural network to learn nonlinear representations for the graph-structured data. It slides a set of fixed-size learnable filters on the graph simultaneously, and the output is the weighted sum of these filters’ outputs, which extract both vertex features and strength of correlation between vertices. Each filter is adaptive to the topology of the local region on the graph where it is applied. TAGCN unifies filtering in both the spectrum and vertex domains; and applies to both directed and undirected graphs. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
680,
|
| 77 |
+
825,
|
| 78 |
+
819
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In general, the existing graph CNNs can be grouped into two types: spectral domain techniques and vertex domain techniques. In Bruna et al. (2014), CNNs have been generalized to graph-structured data, where convolution is achieved by a pointwise product in the spectrum domain according to the convolution theorem. Later, Defferrard et al. (2016) and Levie et al. (2017) proposed spectrum filtering based methods that utilize Chebyshev polynomials and Cayley polynomials, respectively. The assumption of symmetric adjacency matrix in these spectrum based methods restrict the application to undirected graphs. Kipf & Welling (2017) simplified this spectrum method and obtained a filter in the vertex domain, which achieves state-of-the-art performance. Other researchers (Atwood & Towsley, 2016; Monti et al., 2017) worked on designing feature propagation models in the vertex domain for graph CNNs. Yang et al. (2016); Dai et al. (2016); Grover & Leskovec (2016); Du et al. (2016) study transforming graph-structured data to embedding vectors for learning problems. Nevertheless, it still remains open how to extend CNNs from grid-structured data to arbitrary graph-structured data with local feature extraction capability. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
827,
|
| 88 |
+
823,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
188
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "This paper proposes a modification to the graph convolution step in CNNs that is particularly relevant for graph structured data. Our proposed TAGCN is graph-based convolution and draws on techniques from graph signal processing. We define rigorously the graph convolution operation on the vertex domain as multiplication by polynomials of the graph adjacency matrix, which is consistent with the notion of convolution in graph signal processing. In graph signal processing, polynomials of the adjacency matrix are graph filters, extending to graph based data from the usual concept of filters in traditional time or image based signal processing. Thus, comparing ours with existing work on graph CNNs, our paper provides a solid theoretical foundation for our proposed convolution step instead of an ad-hoc approach to convolution in CNNs for graph structured data. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
194,
|
| 110 |
+
825,
|
| 111 |
+
319
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Further, our method avoids computing the spectrum of the graph Laplacian as in Bruna et al. (2014), or approximating the spectrum using high degree Chebyshev polynomials of the graph Laplacian matrix (in Defferrard et al. (2016), it is suggested that one needs a $2 5 ^ { \\mathrm { t h } }$ degree Chebyshev polynomial to provide a good approximation to the graph Laplacian spectrum) or using high degree Cayley polynomials of the graph Laplacian matrix (in Levie et al. (2017), $1 2 ^ { \\mathrm { t h } }$ degree Cayley polynomials are needed). We also clarify that the GCN method in Kipf & Welling (2017) is a first order approximation of the Chebyshev polynomials approximation in Defferrard et al. (2016), which is very different from our method. Our method has a much lower computational complexity than the complexity of the methods proposed in Bruna et al. (2014); Defferrard et al. (2016); Levie et al. (2017), since our method only uses polynomials of the adjacency matrix with maximum degree 2 as shown in our experiments. Finally, the method that we propose exhibits better performance than existing methods. Our contributions are summarized follows: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
327,
|
| 121 |
+
825,
|
| 122 |
+
492
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We propose a general $K$ -localized filter for graph convolution in the vertex domain to extract local features on a set of size-1 up to size- $K$ receptive fields. The topologies of these filters are adaptive to the topology of the graph as they scan the graph to perform convolution. It replaces the fixed square filters in traditional CNNs for the input gridstructured data volumes in traditional CNNs. Thus, our convolution definition that we use in the convolution step for the vertex domain is consistent with convolution in traditional CNNs. TAGCN is based on the graph signal processing and it is consistent with the convolution in graph signal processing. It applies to both directed and undirected graphs. Moreover, it has a much lower computational complexity compared with recent methods since it only needs polynomials of the adjacency matrix with maximum degree 2 compared with the $2 5 ^ { \\mathrm { { i } \\tilde { h } } }$ and $1 \\bar { 2 } ^ { \\mathrm { t h } }$ degree Laplacian matrix polynomials in Defferrard et al. (2016) and Levie et al. (2017). As no approximation to the convolution is needed in TAGCN, it achieves better performance compared with existing methods. We contrast TAGCN with recently proposed graph CNN including both spectrum filtering methods (Bruna et al., 2014; Defferrard et al., 2016) and vertex domain propagation methods (Kipf & Welling, 2017; Monti et al., 2017; Atwood & Towsley, 2016), evaluating their performances on three commonly used data sets for graph vertices classification. Our experimental tests show that TAGCN outperforms consistently all other approaches for each of these data sets. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
215,
|
| 131 |
+
505,
|
| 132 |
+
825,
|
| 133 |
+
787
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 GRAPH POLYNOMIAL BASED CONVOLUTION ON GRAPHS ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
176,
|
| 143 |
+
809,
|
| 144 |
+
673,
|
| 145 |
+
824
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "We use boldface uppercase and lowercase letters to represent matrices and vectors, respectively. The information and their relationship on a graph $\\mathcal { G }$ can be represented by $\\mathcal { G } = ( \\nu , \\mathcal { E } , \\vec { \\mathbf { A } } )$ , where $\\nu$ is the set of vertices, $\\mathcal { E }$ is the set of edges, and $\\bar { \\bf A }$ is the weighted adjacency matrix of the graph; the graph can be weighted or unweighted, directed or undirected. We assume there is no isolated vertex in $\\mathcal { G }$ . If $\\mathcal { G }$ is a directed weighted graph, the weight $\\bar { \\mathbf { A } } _ { n , m }$ is on the directed edge from vertex $m$ to $n$ . The entry $\\bar { \\mathbf { A } } _ { n , m }$ reveals the dependency between node $n$ and $m$ and can take arbitrary real or complex values. The graph convolution is general and can be adapted to graph CNNs for particular tasks. In this paper, we focus on the vertex semisupervised learning problem, where we have access to limited labeled vertices, and the task is to classify the remaining unlabeled vertices. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
838,
|
| 155 |
+
825,
|
| 156 |
+
924
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "",
|
| 163 |
+
"bbox": [
|
| 164 |
+
173,
|
| 165 |
+
103,
|
| 166 |
+
825,
|
| 167 |
+
146
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 2
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "2.1 GRAPH CONVOLUTION ",
|
| 174 |
+
"text_level": 1,
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
164,
|
| 178 |
+
372,
|
| 179 |
+
178
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 2
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "Without loss of generality, we demonstrate graph convolution on the $\\ell \\cdot$ -th hidden layer. The results apply to any other hidden layers. Suppose on the $\\ell \\cdot$ -th hidden layer, the input feature map for each vertex of the graph has $C _ { \\ell }$ features. We collect the $\\ell$ -th hidden layer input data on all vertices for the $c$ -th feature by the vector $\\mathbf { x } _ { c } ^ { ( \\ell ) } \\in \\mathbb { R } ^ { N _ { \\ell } }$ , where $c = 1 , 2 , . . . C _ { \\ell }$ and $N _ { \\ell }$ is the number of vertices1. The components of $\\mathbf { x } _ { c } ^ { ( \\ell ) }$ are indexed by vertices of the data graph representation $\\mathcal { G } = ( \\gamma , \\mathcal { E } , \\bar { \\mathbf { A } } ) ^ { 2 }$ . Let $\\mathbf { G } _ { c , f } ^ { ( \\ell ) } \\in \\mathbb { R } ^ { N _ { \\ell } \\times N _ { \\ell } }$ denote the $f$ -th graph filter. The graph convolution is the matrix-vector product, i.e., $\\mathbf { G } _ { c , f } ^ { ( \\ell ) } \\mathbf { x } _ { c } ^ { ( \\ell ) }$ . Then the $f$ -th output feature map is ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
173,
|
| 188 |
+
189,
|
| 189 |
+
826,
|
| 190 |
+
306
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 2
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "equation",
|
| 196 |
+
"img_path": "images/81da209ccec2cb6e4fb87531a42608dbe5ee936266397b9e2fcfec7696fe2ad4.jpg",
|
| 197 |
+
"text": "$$\n\\mathbf { y } _ { f } ^ { ( \\ell ) } = \\sum _ { c = 1 } ^ { C _ { \\ell } } \\mathbf { G } _ { c , f } ^ { ( \\ell ) } \\mathbf { x } _ { c } ^ { ( \\ell ) } + b _ { f } \\mathbf { 1 } _ { N _ { \\ell } } ,\n$$",
|
| 198 |
+
"text_format": "latex",
|
| 199 |
+
"bbox": [
|
| 200 |
+
398,
|
| 201 |
+
314,
|
| 202 |
+
596,
|
| 203 |
+
358
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 2
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "where $b _ { f } ^ { ( \\ell ) }$ is a learnable bias, and ${ \\bf 1 } _ { N _ { \\ell } }$ is the $N _ { \\ell }$ dimension vector of all ones. We design $\\mathbf { G } _ { c , f } ^ { ( \\ell ) }$ such that $\\mathbf { G } _ { c , f } ^ { ( \\ell ) } \\mathbf { x } _ { c } ^ { ( \\ell ) }$ is a meaningful convolution on a graph with arbitrary topology. ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
174,
|
| 212 |
+
367,
|
| 213 |
+
826,
|
| 214 |
+
406
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 2
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "In the recent theory on graph signal processing (Sandryhaila & Moura, 2013), the graph shift is defined as a local operation that replaces a graph signal at a graph vertex by a linear weighted combination of the values of the graph signal at the neighboring vertices: ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
173,
|
| 223 |
+
412,
|
| 224 |
+
825,
|
| 225 |
+
455
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 2
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "equation",
|
| 231 |
+
"img_path": "images/0e199b3da9ac080e4dbde035ce740cf6ef476525125fdb5895ec78f9fde2b890.jpg",
|
| 232 |
+
"text": "$$\n\\tilde { \\mathbf { x } } _ { c } ^ { ( \\ell ) } = \\bar { \\mathbf { A } } \\mathbf { x } _ { c } ^ { ( \\ell ) } .\n$$",
|
| 233 |
+
"text_format": "latex",
|
| 234 |
+
"bbox": [
|
| 235 |
+
452,
|
| 236 |
+
462,
|
| 237 |
+
544,
|
| 238 |
+
483
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "The graph shift $\\bar { \\bf A }$ extends the time shift in traditional signal processing to graph-structured data. Following Sandryhaila & Moura (2013), a graph filter $\\mathbf { G } _ { c , f } ^ { \\overline { { ( \\ell ) } } }$ is shift-invariant, i.e., the shift $\\bar { \\bf A }$ and the filter $\\mathbf { G } _ { c , f } ^ { ( \\ell ) }$ commute, $\\bar { \\mathbf { A } } ( \\mathbf { G } _ { c , f } ^ { ( \\ell ) } \\mathbf { x } _ { c } ^ { ( \\ell ) } ) = \\mathbf { G } _ { c , f } ^ { ( \\ell ) } ( \\bar { \\mathbf { A } } \\mathbf { x } _ { c } ^ { ( \\ell ) } )$ , if under appropriate assumption $\\mathbf { G } _ { c , f } ^ { ( \\ell ) }$ is a polynomial in A, ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
489,
|
| 248 |
+
825,
|
| 249 |
+
558
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "equation",
|
| 255 |
+
"img_path": "images/c6183aa49d889dfb4775ab70c480fbd66586b035892a1d6f1384300a082e003e.jpg",
|
| 256 |
+
"text": "$$\n\\mathbf { G } _ { c , f } ^ { ( \\ell ) } = \\sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \\ell ) } \\mathbf { A } ^ { k } .\n$$",
|
| 257 |
+
"text_format": "latex",
|
| 258 |
+
"bbox": [
|
| 259 |
+
426,
|
| 260 |
+
556,
|
| 261 |
+
570,
|
| 262 |
+
601
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "In (2), the g(\\`)c,f,k are the graph filter polynomial coefficients; the quantity $\\mathbf { A } = \\mathbf { D } ^ { - \\frac { 1 } { 2 } } \\bar { \\mathbf { A } } \\mathbf { D } ^ { - \\frac { 1 } { 2 } }$ is the normalized adjacency matrix of the graph, and $\\mathbf { D } = \\mathrm { d i a g } [ \\mathbf { d } ]$ with the $i$ th component being ${ \\bf d } ( i ) =$ $\\textstyle \\sum _ { j } \\mathbf { A } _ { i , j }$ .3 We adopt the normalized adjacency matrix to guarantee that all the eigenvalues of $\\mathbf { A }$ are inside the unit circle, and therefore $\\mathbf { G } _ { c , f } ^ { ( \\ell ) }$ is computationally stable. The next subsection shows we , and $K \\times C _ { \\ell }$ \ncoincides with GoogLeNet (Szegedy et al., 2015), in which a set of filters with different sizes are used in each convolutional layer. ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
173,
|
| 271 |
+
604,
|
| 272 |
+
825,
|
| 273 |
+
717
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Following the CNN architecture, an additional nonlinear operation, e.g, rectified linear unit (ReLU) is used after every graph convolution operation: ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
723,
|
| 283 |
+
821,
|
| 284 |
+
751
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "equation",
|
| 290 |
+
"img_path": "images/1b29eaedab74124c7e060dad256bab54bf8aadc122e73522d4f0beb82a37a4af.jpg",
|
| 291 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { x } _ { f } ^ { ( \\ell + 1 ) } = \\sigma \\left( \\mathbf { y } _ { f } ^ { ( \\ell ) } \\right) , } \\end{array}\n$$",
|
| 292 |
+
"text_format": "latex",
|
| 293 |
+
"bbox": [
|
| 294 |
+
433,
|
| 295 |
+
758,
|
| 296 |
+
562,
|
| 297 |
+
786
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "where $\\sigma ( \\cdot )$ denotes the ReLU activation function applied to the vertex values. ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
794,
|
| 307 |
+
681,
|
| 308 |
+
809
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "In the following subsection, we demonstrate that convolution operator shown in (2) exhibits the nice properties of a square filter in traditional CNNs and generalize the convolution theorem from classical signal processing to signal processing on graphs (Sandryhaila & Moura, 2013). ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
176,
|
| 317 |
+
815,
|
| 318 |
+
826,
|
| 319 |
+
858
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "2.2 FILTER DESIGN FOR TAGCN CONVOLUTIONAL LAYER ",
|
| 326 |
+
"text_level": 1,
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
103,
|
| 330 |
+
591,
|
| 331 |
+
117
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "In this section, we would like to understand the proposed convolution as a feature extraction operator in traditional CNN rather than as propagating labeled data on the graph. Taking this point of view helps us to profit from the design knowledge/experience from traditional CNN and apply it to grid structured data. Our definition of weight of a path and the following filter size for graph convolution in this section make it possible to design a graph CNN architecture similar to GoogLeNet (Szegedy et al., 2015), in which a set of filters with different sizes are used in each convolutional layer. In fact, we found that a combination of size 1 and size 2 filters gives the best performance in all three data sets studied, which is a polynomial with maximum order 2. ",
|
| 338 |
+
"bbox": [
|
| 339 |
+
173,
|
| 340 |
+
128,
|
| 341 |
+
825,
|
| 342 |
+
241
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "In traditional CNN, a $K \\times K \\times C _ { \\ell }$ filter scans over the input grid-structured data for feature extraction. For image classification problems, the value $K$ varies for different CNN architectures and tasks to achieve better performance. For example, in VGG-Verydeep-16 CNN model (Simonyan & Zisserman, 2015), only $3 \\times 3 \\times C _ { \\ell }$ filters are used; in ImageNet CNN model (Krizhevsky et al., 2012), $1 1 \\times 1 1 \\times C _ { \\ell }$ filters are adopted; and in GoogLeNet (Szegedy et al., 2015), rather than using the same size filter in each convolutional layer, different size filters, for example, $1 \\times 1 \\times C _ { \\ell }$ , $3 \\times 3 \\times C _ { \\ell }$ and $5 \\times 5 \\times C _ { \\ell }$ filters, are concatenated in each convolution layer. Similarly, we propose a general $K$ -localized filter for graph CNN. ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
247,
|
| 352 |
+
825,
|
| 353 |
+
359
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "For a graph-structured data, we cannot use a square filter window since the graph topology is no longer a grid. In the following, we demonstrate that the convolution operation $\\mathbf { G } _ { c , f } ^ { ( \\ell ) } \\mathbf { x } _ { c } ^ { ( \\ell ) }$ with $\\mathbf { G } _ { c , f } ^ { ( \\ell ) }$ a polyn ial filt $\\begin{array} { r } { \\mathbf { G } _ { c , f } ^ { ( \\ell ) } = \\sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \\ell ) } \\mathbf { A } ^ { k } } \\end{array}$ is equivalent to using a set of filters with filter size from 1 $K$ $k$ -size filter, which is used for local feature extraction on the graph, is $k$ -localized in the vertex domain. ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
173,
|
| 362 |
+
364,
|
| 363 |
+
825,
|
| 364 |
+
446
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "Define a path of length $m$ on a graph $\\mathcal { G }$ as a sequence $v = ( v _ { 0 } , v _ { 1 } , . . . , v _ { m } )$ of vertices $v _ { k } \\in \\mathcal V$ such that each step of the path $( v _ { k } , v _ { k + 1 } )$ corresponds to an (directed) edge of the graph, i.e., $( v _ { k } , v _ { k + 1 } ) \\in$ $\\mathcal { E }$ . Here one path may visit the same vertex or cross the same edge multiple times. The following adjacency matrix $\\mathbf { A }$ is one such example: ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
174,
|
| 373 |
+
453,
|
| 374 |
+
825,
|
| 375 |
+
511
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "equation",
|
| 381 |
+
"img_path": "images/edf52ae448502e9680c41505f0962b65d98deae6ce8b065bb209abaa8f5c9767.jpg",
|
| 382 |
+
"text": "$$\n\\mathbf { A } = { \\left[ \\begin{array} { l l l l l l l l l } { 0 } & { 1 } & { 0 } & { 2 } & { 3 } & { 0 } & { 0 } & { \\cdots } \\\\ { 1 } & { 0 } & { 4 } & { 5 } & { 0 } & { 0 } & { 0 } & { \\cdots } \\\\ { 0 } & { 1 } & { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { \\cdots } \\\\ { 1 } & { 1 } & { 0 } & { 0 } & { 6 } & { 0 } & { 0 } & { \\cdots } \\\\ { 1 } & { 0 } & { 0 } & { 1 } & { 0 } & { 1 } & { 0 } & { \\cdots } \\\\ { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { \\cdots } \\\\ { 0 } & { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { 0 } & { \\cdots } \\\\ { \\vdots } & { \\vdots } & { \\vdots } & { \\vdots } & { \\vdots } & { \\vdots } & { \\vdots } & { \\cdots } \\end{array} \\right] } .\n$$",
|
| 383 |
+
"text_format": "latex",
|
| 384 |
+
"bbox": [
|
| 385 |
+
369,
|
| 386 |
+
515,
|
| 387 |
+
625,
|
| 388 |
+
641
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Since A is asymmetric, it represents a directed graph, given in Fig. 2. In this example, there are 6 different length 3-paths on the graph from vertex 2 to vertex 1, namely, $( 2 , 1 , 4 , 1 )$ , $( 2 , 1 , 2 , 1 )$ , $( 2 , 1 , 5 , 1 ) , ( 2 , \\bar { 3 } , 2 , 1 \\bar { ) } , ( 2 , 4 , 2 , 1 )$ , and $( 2 , 4 , 5 , 1 )$ . ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
173,
|
| 397 |
+
645,
|
| 398 |
+
825,
|
| 399 |
+
688
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "We further define the weight of a path to be the product of the edge weights along the path, i.e., $\\begin{array} { r } { \\phi ( p _ { 0 , m } ) = \\prod _ { k = 1 } ^ { m } \\mathbf { A } _ { v _ { k - 1 } , v _ { k } } } \\end{array}$ , where $p _ { 0 , m } = ( v _ { 0 } , v _ { 1 } , \\dots v _ { m } )$ . For example, the weight of the path $( 2 , 1 , 4 , 1 )$ is $1 \\times 1 \\times 2 = 2$ . Then, the $( i , j )$ th entry of $\\mathbf { A } ^ { k }$ in (2), denoted by $\\omega ( p _ { j , i } ^ { k } )$ , can be interpreted as the sum of the weights of all the length- $k$ paths from $j$ to $i$ , which is ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
173,
|
| 408 |
+
693,
|
| 409 |
+
825,
|
| 410 |
+
753
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "equation",
|
| 416 |
+
"img_path": "images/8da05f1454eded1f0fe410c8c032d560e04a9a693421eea102ce88b304dd93fb.jpg",
|
| 417 |
+
"text": "$$\n\\omega ( p _ { j , i } ^ { k } ) = \\sum _ { j \\in \\{ \\tilde { j } | \\tilde { j } \\mathrm { i s } k \\mathrm { p a t h s t o } i \\} } \\phi ( p _ { j , i } ) .\n$$",
|
| 418 |
+
"text_format": "latex",
|
| 419 |
+
"bbox": [
|
| 420 |
+
379,
|
| 421 |
+
757,
|
| 422 |
+
619,
|
| 423 |
+
797
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "In the above example, it can be easily verified that $\\mathbf { A } _ { 1 , 2 } ^ { 3 } = 1 8$ by summing up the weights of all the above six paths from vertex 2 to vertex 1 with length 3. Then, the $i$ th component of $\\mathbf { A } ^ { k } \\mathbf { x } _ { c } ^ { ( \\ell ) }$ is the weighted sum of the input features of each vertex $\\mathbf { x } _ { c } ^ { ( \\ell ) }$ that are length- $k$ paths away to vertex $i$ . Here, $k$ is defined as the filter size. The output feature map is a vector with each component given by the size- $k$ filter sliding on the graph following a fixed order of the vertex indices. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
173,
|
| 432 |
+
803,
|
| 433 |
+
825,
|
| 434 |
+
885
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "The output at the $i$ -th component can be written explicitly as $\\begin{array} { r l } { \\sum _ { c = 1 } ^ { C _ { \\ell } } \\sum _ { j } g _ { c , f , k } ^ { ( \\ell ) } \\omega ( p _ { j , i } ^ { k } ) \\mathbf { x } _ { c } ^ { ( \\ell ) } ( j ) } & { { } } \\end{array}$ . This weighted sum is similar to the dot product for convolution for a grid-structured data in traditional ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
174,
|
| 443 |
+
891,
|
| 444 |
+
825,
|
| 445 |
+
924
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "image",
|
| 451 |
+
"img_path": "images/eb78b28841ad6e4469230c3a3d293d4e5717dd4c69b348648686bd534fceac2f.jpg",
|
| 452 |
+
"image_caption": [
|
| 453 |
+
"Figure 1: Graph convolution operation at each neuron in the graph convolution layer. "
|
| 454 |
+
],
|
| 455 |
+
"image_footnote": [],
|
| 456 |
+
"bbox": [
|
| 457 |
+
302,
|
| 458 |
+
99,
|
| 459 |
+
691,
|
| 460 |
+
196
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 4
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "CNNs. Finnaly, the output feature map is a weighted sum of convolution results from filters with different sizes, which is ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
171,
|
| 469 |
+
257,
|
| 470 |
+
825,
|
| 471 |
+
286
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 4
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "equation",
|
| 477 |
+
"img_path": "images/2fbceca0acaa750cb2fdcb56d29969aabab60d8cb68311377266be0033cba542.jpg",
|
| 478 |
+
"text": "$$\n\\mathbf { y } _ { f } ^ { ( \\ell ) } ( i ) = \\sum _ { k = 1 } ^ { K _ { \\ell } } \\sum _ { c = 1 } ^ { C _ { \\ell } } \\sum _ { \\substack { j \\in \\{ \\tilde { j } | \\tilde { j } \\mathrm { ~ i s ~ } k \\mathrm { ~ p a t h s ~ t o ~ } i \\} } } g _ { c , f , k } ^ { ( \\ell ) } \\omega ( p _ { j , i } ^ { k } ) \\mathbf { x } _ { c } ^ { ( \\ell ) } ( j ) + b _ { f } \\mathbf { 1 } _ { N _ { \\ell } } ,\n$$",
|
| 479 |
+
"text_format": "latex",
|
| 480 |
+
"bbox": [
|
| 481 |
+
284,
|
| 482 |
+
291,
|
| 483 |
+
712,
|
| 484 |
+
339
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 4
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "The above equation shows that each neuron in the graph convolutional layer is connected only to a local region (local vertices and edges) in the vertex domain of the input data volume, which is adaptive to the graph topology. The strength of correlation is explicitly utilized in $\\omega ( p _ { j , i } ^ { k } )$ . Fig. 1 summarizes the graph convolution operation at each neuron. We refer to this method as topology adaptive graph convolutional network (TAGCN). ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
174,
|
| 493 |
+
347,
|
| 494 |
+
825,
|
| 495 |
+
416
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "In Fig. 2, we show TAGCN with an example of 2-size filter sliding from vertex 1 (figure on the lefthand-side) to vertex 2 (figure on the right-hand-side). The filter is first placed at vertex 1. Since paths $( 1 , 2 , 1 ) \\ ( 5 , 4 , 1 )$ and so on (paths with red glow) are all 2-length paths to vertex 1, they are covered by this 2-size filter. Since paths $( 2 , 3 )$ and $( 7 , 3 )$ are not on any 2-length path to vertex 1, they are not covered by this filter. Further, when this 2-size filter moves to vertex 2, paths $( 1 , 5 )$ , $( 4 , 5 )$ and $( 6 , 5 )$ are no longer covered, but paths $( 2 , 3 )$ and $( 7 , 3 )$ are first time covered and contribute to the convolution with output at vertex 2. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
422,
|
| 505 |
+
825,
|
| 506 |
+
521
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "Further, ${ \\bf y } _ { f } ^ { ( \\ell ) } ( i )$ is the weighted sum of the input features of vertices in $\\mathbf { x } _ { c } ^ { ( \\ell ) }$ that are within $k$ -paths away to vertex $i$ , for $k = 0 , 1 , \\ldots K$ , with weights given by the products of components of $\\mathbf { A } ^ { k }$ and $g _ { c , f , k } ^ { ( \\ell ) ^ { \\top } }$ . Thus the output is the weighted sum of the feature map given by the filtered results from 1-size up to $K$ -size filters. It is evident that the vertex convolution on the graph using $K$ th order polynomials is $K$ -paths localized. Moreover, different vertices on the graph share $g _ { c , f , k } ^ { ( \\ell ) }$ . The above local convolution and weight sharing properties of the convolution (3) on a graph are very similar to those in traditional CNN. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
526,
|
| 516 |
+
825,
|
| 517 |
+
642
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Though the convolution operator defined in (2) is defined on the vertex domain, it can also be understood as a filter in the spectrum domain, and it is consistent with the definition of convolution in graph signal processing. We provide detailed discussion in the appendix. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
650,
|
| 527 |
+
825,
|
| 528 |
+
691
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "2.3 COMPUTATION COMPLEXITY OF THE CONVOLUTION OPERATION",
|
| 535 |
+
"text_level": 1,
|
| 536 |
+
"bbox": [
|
| 537 |
+
176,
|
| 538 |
+
710,
|
| 539 |
+
658,
|
| 540 |
+
723
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 4
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "Equation (7) shows that TAGCN is equivalent to performing graph convolution either on the vertex domain or on the spectrum domain. We next show that it is preferred to implement TAGCN in the vertex domain. ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
734,
|
| 550 |
+
825,
|
| 551 |
+
777
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 4
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "To obtain F, $\\mathbf { F } ^ { - 1 }$ and J, the eigendecomposition for a diagonalizable matrix is in general $\\mathcal { O } ( N ^ { 3 } )$ . If the graph is directed, A may only be block diagonalizable, needing the Jordan decomposition, which is sensitive to round-off errors. Additional matrix and vector multiplications may be needed to project the filtered out results from the spectrum domain back to the vertex domain. In contrast, filtering directly in the vertex domain that involves powers of the graph adjacency matrix with $N$ vertices and $M$ edges can be computed in $\\mathcal { O } ( M N )$ by performing a breadth-first search starting from each vertex to determine the distances to all other vertices Hammack et al. (2011). For a sparse graph, which is often the case in practical problems, $M \\ll N$ . Since the motivation for performing graph convolution is to detect local features for graph-structured data, the optimal $K$ usually is very small. The experiments section shows that a filter size $K = 2$ leads to the best performance is selected for the data sets and specific tasks tested. In summary, using polynomial filters in the vertex domain rather than in the spectrum domain saves significantly computational costs. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
784,
|
| 561 |
+
825,
|
| 562 |
+
924
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "image",
|
| 568 |
+
"img_path": "images/25af37966a6ee9d9d3d18b6528a58b0bb43ad5dd6fa24bee254ee0eacd8239b5.jpg",
|
| 569 |
+
"image_caption": [
|
| 570 |
+
"Figure 2: An example of a directed graph with weights along directed edges corresponding to A. The parts with glow on left(right)-hand-side represent filters at different locations. The figure on the left-hand-side denotes the filtering/convolution starting from vertex 1, then the filter slides to vertex 2 as shown on the right-hand-side with filter topology adaptive to the new local region. "
|
| 571 |
+
],
|
| 572 |
+
"image_footnote": [],
|
| 573 |
+
"bbox": [
|
| 574 |
+
245,
|
| 575 |
+
102,
|
| 576 |
+
758,
|
| 577 |
+
299
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 5
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "",
|
| 584 |
+
"bbox": [
|
| 585 |
+
173,
|
| 586 |
+
401,
|
| 587 |
+
823,
|
| 588 |
+
429
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 5
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "3 RELATION WITH OTHER EXISTING FORMULATIONS ",
|
| 595 |
+
"text_level": 1,
|
| 596 |
+
"bbox": [
|
| 597 |
+
174,
|
| 598 |
+
450,
|
| 599 |
+
625,
|
| 600 |
+
465
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "In this section, we show the connections and differences between the proposed TAGCN and existing methods. In general, there are two types of graph convolution operators for the CNN architecture. One defines the convolution in the spectrum domain, whose output feature map is the multiplication of the inverse Fourier transform matrix with the filtered results in the spectrum domain (Bruna et al., 2014; Defferrard et al., 2016; Levie et al., 2017). By doing further approximations based on this spectrum domain operator, a simplified convolution was obtained in Kipf & Welling (2017). The other defines convolution by a feature propagation model in the vertex domain such as MoNet in Monti et al. (2017) and the diffusion CNN (DCNN) in Atwood & Towsley (2016). We investigate in detail each alternative. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
479,
|
| 610 |
+
825,
|
| 611 |
+
606
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "In Bruna et al. (2014); Defferrard et al. (2016); Levie et al. (2017), the convolution operation was defined using the convolution theorem and filtering operation in the spectrum domain by computing the eigendecomposition of the normalized Laplacian matrix of the graph. The Laplacian matrix $\\mathbf { L }$ is defined as $\\mathbf { L } = \\mathbf { D } - \\mathbf { A }$ with the further assumption that $\\mathbf { A }$ is symmetric to guarantee that $\\mathbf { L }$ is positive semi-definite. The convolution defined by the multiplication in the spectrum domain is approximated by Defferrard et al. (2016) by ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
173,
|
| 620 |
+
612,
|
| 621 |
+
825,
|
| 622 |
+
696
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "equation",
|
| 628 |
+
"img_path": "images/02545a6e800f25022b99f167273700008a7eb0af8ff563e36de9a21930d22c27.jpg",
|
| 629 |
+
"text": "$$\n\\mathbf { U } g _ { \\theta } \\mathbf { U } ^ { T } \\mathbf { x } \\approx \\sum _ { k = 0 } ^ { K } \\theta _ { k } T _ { k } \\left[ \\frac { 2 } { \\lambda _ { \\operatorname* { m a x } } } \\mathbf { L } - \\mathbf { I } \\right] \\mathbf { x } _ { c } ^ { ( \\ell ) } ,\n$$",
|
| 630 |
+
"text_format": "latex",
|
| 631 |
+
"bbox": [
|
| 632 |
+
366,
|
| 633 |
+
700,
|
| 634 |
+
630,
|
| 635 |
+
744
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "where $T _ { k } \\left[ \\cdot \\right]$ is the $k$ th order matrix Chebyshev polynomial (Shuman et al., 2013) where ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
171,
|
| 644 |
+
750,
|
| 645 |
+
746,
|
| 646 |
+
763
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 5
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "equation",
|
| 652 |
+
"img_path": "images/3981517aa5f3d948cd16c6eab8c12453d09f201851f0732bb96327f4ccc7fabd.jpg",
|
| 653 |
+
"text": "$$\nT _ { k } ( { \\bf L } ) = 2 { \\bf L } T _ { k - 1 } [ { \\bf L } ] - T _ { k - 2 } [ { \\bf L } ] ,\n$$",
|
| 654 |
+
"text_format": "latex",
|
| 655 |
+
"bbox": [
|
| 656 |
+
388,
|
| 657 |
+
768,
|
| 658 |
+
607,
|
| 659 |
+
786
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 5
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "with the initial values defined as $T _ { 0 } [ \\mathbf { L } ] = \\mathbf { I }$ and $T _ { 1 } \\left[ \\mathbf { L } \\right] = \\mathbf { L }$ . We refer later to this method as ChebNet for performance comparison. Note that the Laplacian matrix can be seen as a differentiator operator. The assumption of symmetric $\\mathbf { A }$ restricts the application to undirected graphs. Note that in Defferrard et al. (2016), Laplacian matrix polynomials with maximum order $K = 2 5$ is needed to approximate the convolution operation on the left-hand side in (4), which imposes the computational burden. While TAGCN only needs an adjacency matrix polynomials with maximum order 2 to achieve better performance as shown in the experiment part. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
173,
|
| 668 |
+
790,
|
| 669 |
+
825,
|
| 670 |
+
888
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 5
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "In Kipf & Welling (2017), a graph convolutional network (GCN) was obtained by a first order approximation of (4). In particular, let $K = 1$ and make the further assumptions that $\\lambda _ { \\operatorname* { m a x } } = 2$ and $\\theta _ { 0 } = \\theta _ { 1 } = \\theta$ . Then a simpler convolution operator that does not depend on the spectrum knowledge is obtained as ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
173,
|
| 679 |
+
895,
|
| 680 |
+
823,
|
| 681 |
+
924
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 5
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "",
|
| 688 |
+
"bbox": [
|
| 689 |
+
169,
|
| 690 |
+
103,
|
| 691 |
+
825,
|
| 692 |
+
132
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 6
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "equation",
|
| 698 |
+
"img_path": "images/0b4859a4f7385e8c17807993b9d46f9c1c07b5e52f469f6e70f11590720b25ac.jpg",
|
| 699 |
+
"text": "$$\n\\mathbf { U } g _ { \\theta } \\mathbf { U } ^ { T } \\mathbf { x } \\approx \\sum _ { k = 0 } ^ { 1 } \\theta _ { k } T _ { k } \\left[ \\frac { 2 } { \\lambda _ { \\operatorname* { m a x } } } \\mathbf { L } - \\mathbf { I } \\right] \\mathbf { x } _ { c } ^ { ( \\ell ) } \\approx \\theta ( \\mathbf { I } + \\mathbf { D } ^ { - \\frac { 1 } { 2 } } \\mathbf { A } \\mathbf { D } ^ { - \\frac { 1 } { 2 } } ) \\mathbf { x } _ { c } ^ { ( \\ell ) } .\n$$",
|
| 700 |
+
"text_format": "latex",
|
| 701 |
+
"bbox": [
|
| 702 |
+
281,
|
| 703 |
+
137,
|
| 704 |
+
715,
|
| 705 |
+
181
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 6
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "Note that $\\mathbf { I } + \\mathbf { D } ^ { - \\frac { 1 } { 2 } } \\mathbf { A } \\mathbf { D } ^ { - \\frac { 1 } { 2 } }$ is a matrix with eigenvalues in $[ 0 , 2 ]$ . A renormalization trick is adopted here by letting $\\widetilde { \\mathbf { A } } = \\mathbf { A } + \\mathbf { I }$ and $\\begin{array} { r } { \\widetilde { \\bf D } _ { i , i } = \\sum _ { j } \\widetilde { \\bf A } _ { i , j } } \\end{array}$ . Finally, the convolutional operator is approximated by ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
173,
|
| 714 |
+
189,
|
| 715 |
+
826,
|
| 716 |
+
238
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 6
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "equation",
|
| 722 |
+
"img_path": "images/82a04b6d0355dc79cccd7f66e9e798cc4d5f0b5204bf28671172f0c1c7741140.jpg",
|
| 723 |
+
"text": "$$\n\\mathbf { U } g _ { \\theta } \\mathbf { U } ^ { T } \\mathbf { x } \\approx \\theta \\mathbf { \\widetilde { D } } ^ { - \\frac { 1 } { 2 } } \\mathbf { \\widetilde { A } } \\mathbf { \\widetilde { D } } ^ { - \\frac { 1 } { 2 } } \\mathbf { x } _ { c } ^ { ( \\ell ) } = \\theta \\mathbf { \\widehat { A } } ,\n$$",
|
| 724 |
+
"text_format": "latex",
|
| 725 |
+
"bbox": [
|
| 726 |
+
379,
|
| 727 |
+
238,
|
| 728 |
+
617,
|
| 729 |
+
262
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 6
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "where $\\widehat { \\mathbf { A } } = \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } } \\widetilde { \\mathbf { A } } \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } }$ e e . It is interesting to observe that this method though obtained by simplifying the spectrum method has a better performance than the spectrum method (Defferrard et al., 2016). The reason may be because the simplified form is equivalent to propagating vertex features on the graph, which can be seen as a special case of our TAGCN method, though there are other important differences. ",
|
| 736 |
+
"bbox": [
|
| 737 |
+
173,
|
| 738 |
+
266,
|
| 739 |
+
825,
|
| 740 |
+
343
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 6
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "text",
|
| 746 |
+
"text": "Though our TAGCN is able to leverage information at a farther distance, it is not a simple extension of GCN Kipf & Welling (2017). First, the graph convolution in GCN is defined as a first order Chebyshev polynomial of the graph Laplacian matrix, which is an approximation to the graph convolution defined in the spectrum domain in Defferrard et al. (2016). In contrast, our graph convolution is rigorously defined as multiplication by polynomials of the graph adjacency matrix; this is not an approximation, rather, it simply is filtering with graph filters as defined and as being consistent with graph signal processing. ",
|
| 747 |
+
"bbox": [
|
| 748 |
+
173,
|
| 749 |
+
349,
|
| 750 |
+
825,
|
| 751 |
+
449
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 6
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "Next, we show the difference between our work and the GCN method in Kipf & Welling (2017) when using 2nd order $\\mathrm { K } { = } 2$ , 2 steps away from the central node) Chebyshev polynomials of Laplacian matrix. In the GCN paper Kipf & Welling (2017), it has been shown that $\\begin{array} { r } { \\sum _ { k = 0 } ^ { 1 } \\theta _ { k } T _ { k } ( { \\bf L } ) \\approx \\widehat { \\bf A } } \\end{array}$ as repeated in (6), and $T _ { 2 } [ \\mathbf { L } ] = 2 \\mathbf { L } ^ { 2 }$ by the definition of Chebyshev polynomial. Then, extending GCN to the second order Chebyshev polynomials (two steps away from a central node) can be obtained from the original definition in T. Kipfs GCN (Kipf & Welling, 2017, eqn (5)) as $\\begin{array} { r } { \\sum _ { k = 0 } ^ { 2 } \\theta T _ { k } ( L ) = \\widehat { \\mathbf { A } } + 2 \\bar { \\mathbf { L } ^ { 2 } } - \\mathbf { I } } \\end{array}$ , which is different from our definition as in (2). Thus, it is evident that our method is not a simple extension of GCN. We apply graph convolution as proposed from basic principles in the graph signal processing, with no approximations involved, while both GCN in Kipf & Welling (2017) and Defferrard et al. (2016) Levie et al. (2017) are based on approximating the convolution defined in the spectrum domain. In our approach, the degree of freedom is the design of the graph filter-its degree and its coefficients. Ours is a principled approach and provides a generic methodology. The performance gains we obtain are the result of capturing the underlying graph structure with no approximation in the convolution operation. ",
|
| 758 |
+
"bbox": [
|
| 759 |
+
173,
|
| 760 |
+
454,
|
| 761 |
+
825,
|
| 762 |
+
656
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 6
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "Simonovsky & Komodakis (2017) proposed the edge convolution network (ECC) to extend the convolution operator from regular grids to arbitrary graphs. The convolution operator is defined similarly to (6) as ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
173,
|
| 771 |
+
662,
|
| 772 |
+
826,
|
| 773 |
+
705
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 6
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "equation",
|
| 779 |
+
"img_path": "images/35e8510a8c80a1e78b659b005da2f568f1f27139d90d8b0f2701bc26948d9eaa.jpg",
|
| 780 |
+
"text": "$$\n\\mathbf { y } _ { f } ^ { ( \\ell ) } ( i ) = \\sum _ { j \\in \\mathcal { N } ( i ) } \\frac { 1 } { | \\mathcal { N } ( i ) | } \\Theta _ { j , i } ^ { ( \\ell ) } \\mathbf { x } _ { c } ^ { ( \\ell ) } ( j ) + b _ { f } ^ { ( \\ell ) } ,\n$$",
|
| 781 |
+
"text_format": "latex",
|
| 782 |
+
"bbox": [
|
| 783 |
+
356,
|
| 784 |
+
704,
|
| 785 |
+
640,
|
| 786 |
+
744
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 6
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "$\\Theta _ { j , i } ^ { ( \\ell ) }$ ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
173,
|
| 795 |
+
751,
|
| 796 |
+
537,
|
| 797 |
+
768
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 6
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "A mixture model network (MoNet) was proposed in Monti et al. (2017), with convolution defined as ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
173,
|
| 806 |
+
773,
|
| 807 |
+
823,
|
| 808 |
+
801
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 6
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "equation",
|
| 814 |
+
"img_path": "images/14dfbb8896473a580c1c320db444beb9ec7b1172ff8dd717012718424b1930df.jpg",
|
| 815 |
+
"text": "$$\n\\mathbf { y } _ { f } ^ { ( \\ell ) } ( i ) = \\sum _ { f = 1 } ^ { F } \\sum _ { j \\in \\mathcal { N } ( i ) } g _ { f } \\kappa _ { f } \\mathbf { x } _ { c } ^ { ( \\ell ) } ( j ) ,\n$$",
|
| 816 |
+
"text_format": "latex",
|
| 817 |
+
"bbox": [
|
| 818 |
+
385,
|
| 819 |
+
799,
|
| 820 |
+
609,
|
| 821 |
+
845
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 6
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"text": "where $\\kappa _ { f }$ is a Gaussian kernel with $\\begin{array} { r } { \\kappa _ { f } = \\exp \\left\\{ - \\frac { 1 } { 2 } ( \\mathbf { u } - \\pmb { \\mu } _ { f } ) ^ { T } \\pmb { \\Sigma } _ { f } ^ { - 1 } ( \\mathbf { u } - \\pmb { \\mu } _ { f } ) \\right\\} } \\end{array}$ and $g _ { f }$ is the weight coefficient for each Gaussian kernel $\\kappa _ { f }$ . It is further assumed that $\\Sigma _ { f }$ is a $2 \\times 2$ diagonal matrix. ",
|
| 828 |
+
"bbox": [
|
| 829 |
+
173,
|
| 830 |
+
852,
|
| 831 |
+
823,
|
| 832 |
+
890
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 6
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "GCN, ECC, and MoNet all design a propagation model on the graph; their differences are on the weightings used by each model. ",
|
| 839 |
+
"bbox": [
|
| 840 |
+
174,
|
| 841 |
+
895,
|
| 842 |
+
823,
|
| 843 |
+
924
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 6
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "table",
|
| 849 |
+
"img_path": "images/c55f8aacae810073b1931d099addcfe28ac05dd83ad3d44eaf28d6e956871117.jpg",
|
| 850 |
+
"table_caption": [
|
| 851 |
+
"Table 1: Summary of number of weights need to be learned for the $\\ell$ -th layer. "
|
| 852 |
+
],
|
| 853 |
+
"table_footnote": [],
|
| 854 |
+
"table_body": "<table><tr><td>DCNN</td><td>ECC</td><td>ChebNet</td><td>GCN</td><td>MoNet</td><td>TAGCN</td></tr><tr><td>FeCe</td><td>FeCe</td><td>25FeCe</td><td>FeCe</td><td>4FeCe</td><td>2FeCe</td></tr></table>",
|
| 855 |
+
"bbox": [
|
| 856 |
+
295,
|
| 857 |
+
131,
|
| 858 |
+
699,
|
| 859 |
+
179
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 7
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "Atwood & Towsley (2016) proposed a diffusion CNN (DCNN) method that considers a diffusion process over the graph. The transition probability of a random walk on a graph is given by $\\mathbf { P } =$ $\\mathbf { b } ^ { - 1 } \\mathbf { A }$ , which is equivalent to the normalized adjacency matrix. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
176,
|
| 868 |
+
222,
|
| 869 |
+
823,
|
| 870 |
+
263
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 7
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "equation",
|
| 876 |
+
"img_path": "images/546c2bc4eb34a279e67876eb615c142441698a7699a5eaa2d6559c45dcfa3366.jpg",
|
| 877 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { y } _ { c , f } ^ { ( \\ell ) } = \\mathbf { g } _ { c , f } ^ { ( \\ell ) } \\mathbf { P } ^ { f } \\mathbf { x } _ { c } ^ { ( \\ell ) } . } \\end{array}\n$$",
|
| 878 |
+
"text_format": "latex",
|
| 879 |
+
"bbox": [
|
| 880 |
+
434,
|
| 881 |
+
284,
|
| 882 |
+
562,
|
| 883 |
+
306
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 7
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "By comparing the above methods with TAGCN in (3), it can be concluded that GCN, ECC and MoNet can be seen as a special case of TAGCN because in (3) the item with $k = 1$ can be seen as an information propagation term. However, the strength of the correlation between vertices that are taken into account in $\\omega ( p _ { j , i } ^ { k } )$ in (3) can not be utilized in the GCN, ECC and MoNet methods. Further, the TAGCN method is a systematic way to design a set of fixed size filters that is adaptive to the input graph topology when performing convolution on the graph. Compared with existing spectrum methods (Bruna et al., 2014; Defferrard et al., 2016; Levie et al., 2017), TAGCN satisfies the convolution theorem as shown in the previous subsection and implemented in the vertex domain, which avoids performing costly and practically numerical unstable eigendecompositions. ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
174,
|
| 892 |
+
332,
|
| 893 |
+
825,
|
| 894 |
+
458
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 7
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "We further compare the number of weights that need to be learned in each hidden layer for these different methods in Table 1. As we show later, $K = 2$ is selected in our experiments using cross validation. However, for ChebNet in (Defferrard et al., 2016), it is suggested that one needs a $2 5 ^ { \\mathrm { t h } }$ degree Chebyshev polynomial to provide a good approximation to the graph Laplacian spectrum. Thus we have a moderate number of weights to be learned. In the following, we show that our method achieves the best performance for each of those commonly used graph-structured data sets. ",
|
| 901 |
+
"bbox": [
|
| 902 |
+
174,
|
| 903 |
+
464,
|
| 904 |
+
825,
|
| 905 |
+
549
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 7
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "4 EXPERIMENTS ",
|
| 912 |
+
"text_level": 1,
|
| 913 |
+
"bbox": [
|
| 914 |
+
176,
|
| 915 |
+
583,
|
| 916 |
+
326,
|
| 917 |
+
599
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 7
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "The proposed TAGCN is general and can be fit to the general graph CNN architectures for different tasks. In the experiments, we focus on the vertex semisupervised learning problem, where we have access to only a few labeled vertices, and the task is to classify the remaining unlabeled vertices. To compare the performance of TAGCN with that of existing methods, we extensively evaluate TAGCN on three graph-structured datasets, including the Cora, Citesser and Pubmed datasets. The datasets split and experiments setting closely follow the standard criteria in Yang et al. (2016). ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
623,
|
| 927 |
+
825,
|
| 928 |
+
708
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 7
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "4.1 DATASETS ",
|
| 935 |
+
"text_level": 1,
|
| 936 |
+
"bbox": [
|
| 937 |
+
174,
|
| 938 |
+
739,
|
| 939 |
+
287,
|
| 940 |
+
753
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 7
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "TAGCN is evaluated on three data sets coming from citation networks: Citeseer, Cora, and Pubmed. We closely follow the data set split and experimental setup in Yang et al. (2016). Each data set consists of a certain classes of documents, yet only a few documents are labeled. The task is to classify the documents in the test set with these limited number of labels. In each data set, the vertices are the documents and the edges are the citation links. Each document is represented by sparse bagof-words feature vectors, and the citation links between documents are provided. Detailed statistics of these three data sets are summarized in Table 2. It shows the number of nodes and edges that corresponding to documents and citation links. Classes for the graph vertices shows the number of document classes in each data set. Also, the number of features at each vertex is given. Label rate denotes the number of labeled documents that are used for training divided by the total number of documents in each data set. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
174,
|
| 949 |
+
770,
|
| 950 |
+
825,
|
| 951 |
+
922
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 7
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "table",
|
| 957 |
+
"img_path": "images/4a6a9bf868f6485138e51d1fac70f174150b72a732ce9453adab350edcfc81da.jpg",
|
| 958 |
+
"table_caption": [
|
| 959 |
+
"Table 2: Dataset statistics, following Yang et al. (2016); Kipf & Welling (2017) "
|
| 960 |
+
],
|
| 961 |
+
"table_footnote": [],
|
| 962 |
+
"table_body": "<table><tr><td>Dataset Size</td><td>Nodes</td><td>Edges</td><td>Classes</td><td>Features</td><td>Label rate</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Citeseer</td><td>3,327</td><td>4,732</td><td>6</td><td>3,703</td><td>0.036</td></tr><tr><td>Cora</td><td>2,708</td><td>5,429</td><td>7</td><td>1,433</td><td>0.052</td></tr><tr><td>Pubmed</td><td>19,717</td><td>44,338</td><td>3</td><td>500</td><td>0.003</td></tr></table>",
|
| 963 |
+
"bbox": [
|
| 964 |
+
259,
|
| 965 |
+
131,
|
| 966 |
+
741,
|
| 967 |
+
205
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 8
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "table",
|
| 973 |
+
"img_path": "images/41eecc35ff7b73c43dbce9491df7314e348d7562b1c8995b6d00b118fe8eae8e.jpg",
|
| 974 |
+
"table_caption": [
|
| 975 |
+
"Table 3: Summary of results in terms of percentage classification accuracy with standard variance "
|
| 976 |
+
],
|
| 977 |
+
"table_footnote": [],
|
| 978 |
+
"table_body": "<table><tr><td>Citeseer</td><td>Cora</td><td>Pubmed</td></tr><tr><td></td><td></td><td></td></tr><tr><td>Planetoid 64.7</td><td>75.7</td><td>77.2</td></tr><tr><td>DCNN</td><td>76.8±0.6</td><td>73.0±0.5</td></tr><tr><td>ChebNet (K=2) 69.6</td><td>81.2</td><td>73.8</td></tr><tr><td>ChebNet (K=3) 69.8</td><td>79.5</td><td>74.4</td></tr><tr><td>GCN 70.3</td><td>81.5</td><td>79.0</td></tr><tr><td>MoNet =</td><td>81.69±0.5</td><td>78.81±0.4</td></tr><tr><td>TAGCN (K=2)</td><td>70.9± 0.9 82.5±0.7</td><td>81.1±0.4</td></tr></table>",
|
| 979 |
+
"bbox": [
|
| 980 |
+
305,
|
| 981 |
+
256,
|
| 982 |
+
692,
|
| 983 |
+
386
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "4.2 EXPERIMENTAL SETTINGS ",
|
| 990 |
+
"text_level": 1,
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
419,
|
| 994 |
+
398,
|
| 995 |
+
433
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 8
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "We construct a graph for each data set with nodes representing documents and undirected edges4 linking two papers if there is a citation relationship. We obtain the adjacency matrix $\\bar { \\bf A }$ with 0 and 1 components and further obtain the normalized matrix A. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
446,
|
| 1005 |
+
823,
|
| 1006 |
+
488
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 8
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "In the following experiments, we design a TAGCN with two hidden layers (obtained from cross validation) for the semi-supervised node classification. In each hidden layer, the proposed TAGCN is applied for convolution, followed by a ReLU activation. 16 hidden units (filters) are designed for each hidden layer, and dropout is applied after each hidden layer. The softmax activation function is applied to the output of the second hidden layer for the final classification. For ablation study, we evaluate the performance of TAGCN with different kernel size from 1 to 4. To investigate the performance for different number of parameters, we also design a TAGCN with 8 filters for each hidden layer and compare its classification accuracy with all the baselines and TAGCN with 16 filters. We train our model using Adam (Kinga & Ba, 2015) with a learning rate of 0.01 and early stopping with a window size of 20. Hyperparameters of the networks (filter size, dropout rate, and number of hidden layers) are selected by cross validation. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
173,
|
| 1015 |
+
496,
|
| 1016 |
+
825,
|
| 1017 |
+
648
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 8
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "To make a fair comparison, we closely follow the same split of training, validation, and testing sets as in Kipf & Welling (2017); Yang et al. (2016), i.e., 500 labeled examples for hyperparameters (filter size, dropout rate, and number of hidden layers) optimization and cross-entropy error is used for classification accuracy evaluation. The performance results of the proposed TAGCN method are an average over 100 runs with random initializations (Glorot & Bengio, 2010). ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
655,
|
| 1027 |
+
825,
|
| 1028 |
+
724
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 8
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "4.3 QUANTITATIVE EVALUATIONS ",
|
| 1035 |
+
"text_level": 1,
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
176,
|
| 1038 |
+
746,
|
| 1039 |
+
421,
|
| 1040 |
+
758
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 8
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "We compare the classification accuracy with other recently proposed graph CNN methods as well as a graph embedding method known as Planetoid Yang et al. (2016). The quantitative results are summarized in Table 3. Reported numbers denote classification accuracy in percent. Results for Planetoid, GCN, and ChebNet are taken from Kipf & Welling (2017), and results for DCNN and MoNet are taken from Monti et al. (2017). All the experiments for different methods are based on the same data statistics shown in Table 2. The datasets split and experiments settings closely follow the standard criteria in Yang et al. (2016); Kipf & Welling (2017). Table 3 shows that our method ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
174,
|
| 1049 |
+
772,
|
| 1050 |
+
825,
|
| 1051 |
+
869
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 8
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "table",
|
| 1057 |
+
"img_path": "images/ceaed514cb724ab1ef1f790c27055ec60658c1f25b8e53a947dffd7aa7e3d1ac.jpg",
|
| 1058 |
+
"table_caption": [
|
| 1059 |
+
"Table 4: TAGCN classification accuracy (ACC) with different parameters "
|
| 1060 |
+
],
|
| 1061 |
+
"table_footnote": [],
|
| 1062 |
+
"table_body": "<table><tr><td>Data Set</td><td>Filter Size</td><td>Filter Number</td><td>ACC</td></tr><tr><td rowspan=\"5\">Citeseer</td><td>1</td><td>16</td><td>68.9</td></tr><tr><td>2</td><td>16</td><td>70.9</td></tr><tr><td>3</td><td>16</td><td>70.0</td></tr><tr><td>4</td><td>16</td><td>69.8</td></tr><tr><td>2</td><td>8</td><td>70.6</td></tr><tr><td rowspan=\"6\">Cora</td><td>1</td><td>16</td><td>81.4</td></tr><tr><td>2</td><td>16</td><td>82.5</td></tr><tr><td>3</td><td>16</td><td>82.1</td></tr><tr><td>4</td><td>16</td><td>81.8</td></tr><tr><td>2</td><td>8</td><td>82.5</td></tr><tr><td>1</td><td>16</td><td>79.4</td></tr><tr><td rowspan=\"4\">Pubmed</td><td>2</td><td>16</td><td>81.1</td></tr><tr><td>3</td><td>16</td><td>80.9</td></tr><tr><td>4</td><td>16</td><td>79.5</td></tr><tr><td>2</td><td>8</td><td>80.8</td></tr></table>",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
325,
|
| 1065 |
+
131,
|
| 1066 |
+
673,
|
| 1067 |
+
375
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 9
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "outperforms all the recent state-of-the-art methods by obvious margins for all the three datasets. \nThese results verify the efficacy of the proposed TAGCN. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
174,
|
| 1076 |
+
411,
|
| 1077 |
+
821,
|
| 1078 |
+
440
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 9
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "For ablation study, we further compare the performance of different filter sizes from $K = 1$ to $K = 4$ in Table 4. It shows that the performances for filter size $K = 2$ are always better than that for other filter sizes. The value $K = 1$ gives the worst classification accuracy. This further validates that a local feature extraction is more important than just propagating features among neighbors on the graph. In Table 4, we also compare the performance of different number of filters, which reflects different number of network parameters. Note, we also choose filer size $K = 2$ and filter number $F _ { \\ell } = 8$ that results in the same number of network parameters as that in GCN, MoNet, ECC and DCNN according to Table 1. It shows that the classification accuracy using 8 filters is comparable with that using 16 filters in each hidden layer for TAGCN. Moreover, TAGCN with 8 filters can still achieve higher accuracy than GCN, MoNet, ECC and DCNN methods. This proves that, even with a similar number of parameters or architecture, our method still exhibits superior performance than GCN. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
174,
|
| 1087 |
+
446,
|
| 1088 |
+
825,
|
| 1089 |
+
613
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 9
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "As we explained in Section 3, TAGCN in our paper is not simply extending GCN Kipf & Welling (2017) to $k$ -th order. Nevertheless, we implement ${ \\bf A } ^ { 2 }$ and compare its performance with ours. For the data sets Pubmed, Cora, and Citeseer, the classification accuracies are 79.1(81.1), 81.7(82.5) and 70.8(70.9), where the numbers in parentheses are the results obtained with our method. Our method still achieves a noticeable performance advantage over ${ \\bf A } ^ { 2 }$ for the Pubmed and Cora data; in particular, we note the significant performance gain with the Pubmed database that has the largest number of nodes among these three data sets. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
621,
|
| 1099 |
+
825,
|
| 1100 |
+
722
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 9
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "5 CONCLUSIONS ",
|
| 1107 |
+
"text_level": 1,
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
176,
|
| 1110 |
+
748,
|
| 1111 |
+
328,
|
| 1112 |
+
765
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 9
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "We have defined a novel graph convolutional network that rearchitects the CNN architecture for graph-structured data. The proposed method, known as TAGCN, is adaptive to the graph topology as the filter scans the graph. Further, TAGCN inherits properties of the convolutional layer in classical CNN, i.e., local feature extraction and weight sharing. It can further extract the strength of correlation between vertices in the filtering region. On the other hand, by the convolution theorem, TAGCN that implements in the vertex domain offers implement in the spectrum domain unifying graph CNN in both the spectrum domain and the vertex domain. TAGCN is consistent with convolution in graph signal processing. These nice properties lead to a noticeable performance advantage in classification accuracy on different graph-structured datasets for semi-supervised graph vertex classification problems with low computational complexity. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
174,
|
| 1121 |
+
784,
|
| 1122 |
+
825,
|
| 1123 |
+
924
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 9
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "6 APPENDIX: SPECTRUM RESPONSE OF TAGCN ",
|
| 1130 |
+
"text_level": 1,
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
173,
|
| 1133 |
+
102,
|
| 1134 |
+
591,
|
| 1135 |
+
118
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 10
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "In classical signal processing (Oppenheim & Schafer, 2009), the convolution in the time domain is equivalent to multiplication in the spectrum domain. This relationship is known as the convolution theorem. Sandryhaila & Moura (2013) showed that the graph filtering defined in the vertex domain satisfies the generalized convolution theorem naturally and can also interpret spectrum filtering for both directed and undirected graphs. Recent work (Bruna et al., 2014; Defferrard et al., 2016) used the convolution theorem for undirected graph-structured data and designed a spectrum graph filtering. ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
173,
|
| 1144 |
+
132,
|
| 1145 |
+
825,
|
| 1146 |
+
231
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 10
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "image",
|
| 1152 |
+
"img_path": "images/1523d9fd4c75a2486b139f369d3766910ea55f641bd451f66d8d026e7b489b75.jpg",
|
| 1153 |
+
"image_caption": [
|
| 1154 |
+
"Figure 3: Graph topology of a 1-D cyclic graph. "
|
| 1155 |
+
],
|
| 1156 |
+
"image_footnote": [],
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
366,
|
| 1159 |
+
246,
|
| 1160 |
+
629,
|
| 1161 |
+
311
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 10
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Assume that the adjacency matrix A for a graph is diagonalizable, i.e., $\\mathbf { A } = \\mathbf { F } ^ { - 1 } \\mathbf { J } \\mathbf { F }$ with $\\mathbf { J }$ a diagonal matrix. The components on the diagonal of $\\mathbf { J }$ are eigenvalues of $\\mathbf { A }$ , and the column vectors of $\\mathbf { F } ^ { - 1 }$ are the right eigenvectors of $\\mathbf { A }$ ; the row vectors of $\\mathbf { F }$ are the left eigenvectors of A 5. By diagonalizing $\\mathbf { A }$ in (2) for TAGCN, we obtain ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
174,
|
| 1170 |
+
359,
|
| 1171 |
+
825,
|
| 1172 |
+
416
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 10
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "equation",
|
| 1178 |
+
"img_path": "images/cfa4df7ac0a0f548350db8439975b5665a5838f2f87a95596ed3e4c430cccb56.jpg",
|
| 1179 |
+
"text": "$$\n\\mathbf { G } _ { c , f } ^ { ( \\ell ) } \\mathbf { x } _ { c } ^ { ( \\ell ) } = \\mathbf { F } ^ { - 1 } \\left( \\sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \\ell ) } \\mathbf { J } ^ { k } \\right) \\mathbf { F } \\mathbf { x } _ { c } ^ { ( \\ell ) } .\n$$",
|
| 1180 |
+
"text_format": "latex",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
369,
|
| 1183 |
+
422,
|
| 1184 |
+
627,
|
| 1185 |
+
467
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 10
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "The expression on the left-hand-side of the above equation represents the filtering/convolution on the vertex domain. Matrix $\\mathbf { F }$ defines the graph Fourier transform (Sandryhaila $\\&$ Moura, 2013; 2014), and $\\mathbf { F } \\mathbf { x } _ { c } ^ { ( \\ell ) }$ is the input feature spectrum map, which is a linear mapping from the input feature on the vertex domain to the spectrum domain. The polynomial $\\scriptstyle \\sum _ { k = 0 } ^ { K } g _ { c , f , k } ^ { ( \\ell ) } \\mathbf { J } ^ { k }$ is the spectrum of the graph filter. Relation (7), which is equation (27) in Sandryhaila & Moura (2013) generalizes the classical convolution theorem to graph-structured data: convolution/filtering on the vertex domain becomes multiplication in the spectrum domain. When the graph is in the 1D cyclic form, as shown in Fig. 3, the corresponding adjacency matrix is of the form ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
173,
|
| 1194 |
+
472,
|
| 1195 |
+
826,
|
| 1196 |
+
592
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 10
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "equation",
|
| 1202 |
+
"img_path": "images/557483d73c2e1d3384739b6aa51e52dc476a62a17467da2607c57ef549ce2237.jpg",
|
| 1203 |
+
"text": "$$\n\\mathbf { A } = \\left[ \\begin{array} { c c c c } { \\vrule } & { } & { } & { 1 } \\\\ { 1 } & { } & { } & { } \\\\ { \\vrule } & { \\ddots } & { } & { } \\\\ { } & { } & { 1 } & { } \\end{array} \\right] .\n$$",
|
| 1204 |
+
"text_format": "latex",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
418,
|
| 1207 |
+
598,
|
| 1208 |
+
578,
|
| 1209 |
+
666
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 10
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "The eigendecomposition of $\\mathbf { A }$ is ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
174,
|
| 1218 |
+
672,
|
| 1219 |
+
387,
|
| 1220 |
+
688
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 10
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "equation",
|
| 1226 |
+
"img_path": "images/953773be0ddad78473c2e47e9d432971e9692776f20ad692061009bede95805e.jpg",
|
| 1227 |
+
"text": "$$\n\\mathbf { A } = \\frac { 1 } { N } \\mathrm { D F T } ^ { - 1 } \\left[ \\begin{array} { c c } { \\begin{array} { c } { e ^ { - j \\frac { 2 \\pi 0 } { N } } } \\\\ { \\ddots } \\\\ { \\end{array} } } \\\\ \\begin{array} { c } { \\begin{array} { r l } { e ^ { - j \\frac { 2 \\pi ( N - 1 ) } { N } } } \\end{array} } \\end{array} \\right] \\mathrm { D F T } , \\end{array}\n$$",
|
| 1228 |
+
"text_format": "latex",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
336,
|
| 1231 |
+
693,
|
| 1232 |
+
658,
|
| 1233 |
+
755
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 10
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "where DFT is the discrete Fourier transform matrix. The convolution operator defined in (2) is consistent with that in classical signal processing. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
174,
|
| 1242 |
+
761,
|
| 1243 |
+
826,
|
| 1244 |
+
790
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 10
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "REFERENCES ",
|
| 1251 |
+
"text_level": 1,
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
174,
|
| 1254 |
+
810,
|
| 1255 |
+
287,
|
| 1256 |
+
825
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 10
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "James Atwood and Don Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS). 2016. ",
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
178,
|
| 1265 |
+
833,
|
| 1266 |
+
823,
|
| 1267 |
+
863
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 10
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. In Internatonal Conference on Learning Representations (ICLR). 2014. ",
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
176,
|
| 1276 |
+
103,
|
| 1277 |
+
821,
|
| 1278 |
+
146
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 11
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "Hanjun Dai, Bo Dai, and Le Song. Discriminative embeddings of latent variable models for structured data. In International Conference on Machine Learning (ICML). 2016. ",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
171,
|
| 1287 |
+
154,
|
| 1288 |
+
823,
|
| 1289 |
+
184
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 11
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, 2016. ",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
173,
|
| 1298 |
+
190,
|
| 1299 |
+
823,
|
| 1300 |
+
233
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 11
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "Joya Deri and Jose M. F. Moura. Spectral projector-based graph Fourier transforms. ´ IEEE Journal of Selected Topics in Signal Processing, 11(6):785–795, 2017. ",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
171,
|
| 1309 |
+
242,
|
| 1310 |
+
825,
|
| 1311 |
+
271
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 11
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "Jian Du, Shaodan Ma, Yik-Chung Wu, Soummya Kar, and Jose M. F. Moura. Convergence analysis ´ of distributed inference with vector-valued Gaussian belief propagation. arXiv:1611.02010, 2016. ",
|
| 1318 |
+
"bbox": [
|
| 1319 |
+
173,
|
| 1320 |
+
279,
|
| 1321 |
+
823,
|
| 1322 |
+
309
|
| 1323 |
+
],
|
| 1324 |
+
"page_idx": 11
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"type": "text",
|
| 1328 |
+
"text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics. 2010. ",
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
176,
|
| 1331 |
+
315,
|
| 1332 |
+
825,
|
| 1333 |
+
359
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 11
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "text",
|
| 1339 |
+
"text": "Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM International Conference on Knowledge Discovery and Data Mining (KDD). 2016. ",
|
| 1340 |
+
"bbox": [
|
| 1341 |
+
176,
|
| 1342 |
+
367,
|
| 1343 |
+
823,
|
| 1344 |
+
410
|
| 1345 |
+
],
|
| 1346 |
+
"page_idx": 11
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"text": "Richard Hammack, Wilfried Imrich, and Sandi Klavzar. ˇ Handbook of product graphs. CRC press, 2011. ",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
173,
|
| 1353 |
+
417,
|
| 1354 |
+
823,
|
| 1355 |
+
446
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 11
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "Diederik P. Kinga and Jimmy Ba. A method for stochastic optimization. In International Conference on Learning Representations (ICLR). 2015. ",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
173,
|
| 1364 |
+
455,
|
| 1365 |
+
823,
|
| 1366 |
+
484
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 11
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In Internatonal Conference on Learning Representations (ICLR). 2017. ",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
173,
|
| 1375 |
+
492,
|
| 1376 |
+
823,
|
| 1377 |
+
522
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 11
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS). 2012. ",
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
174,
|
| 1386 |
+
529,
|
| 1387 |
+
821,
|
| 1388 |
+
559
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 11
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "Yann LeCun, Yoshua Bengio, and Geoffrey E. Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
173,
|
| 1397 |
+
565,
|
| 1398 |
+
823,
|
| 1399 |
+
595
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 11
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "text",
|
| 1405 |
+
"text": "Ron Levie, Federico Monti, Xavier Bresson, and Michael M Bronstein. Cayleynets: Graph convolutional neural networks with complex rational spectral filters. arXiv preprint arXiv:1705.07664, 2017. ",
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
174,
|
| 1408 |
+
603,
|
| 1409 |
+
823,
|
| 1410 |
+
646
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 11
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"text": "Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M \\` Bronstein. Geometric deep learning on graphs and manifolds using mixture model CNNs. In Conference on Computer Vision and Pattern Recognition (CVPR). 2017. ",
|
| 1417 |
+
"bbox": [
|
| 1418 |
+
176,
|
| 1419 |
+
654,
|
| 1420 |
+
821,
|
| 1421 |
+
696
|
| 1422 |
+
],
|
| 1423 |
+
"page_idx": 11
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "text",
|
| 1427 |
+
"text": "Alan V. Oppenheim and Ronald W. Schafer. Discrete-time signal processing (3rd Edition). Prentice Hall, 2009. ",
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
171,
|
| 1430 |
+
704,
|
| 1431 |
+
825,
|
| 1432 |
+
734
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 11
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "text",
|
| 1438 |
+
"text": "Aliaksei Sandryhaila and Jose M. F. Moura. Discrete signal processing on graphs. ´ IEEE Transactions on Signal Processing, 61(7), 2013. ",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
169,
|
| 1441 |
+
742,
|
| 1442 |
+
823,
|
| 1443 |
+
771
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 11
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "Aliaksei Sandryhaila and Jose M. F. Moura. Big data analysis with signal processing on graphs: ´ Representation and processing of massive data sets with irregular structure. IEEE Signal Processing Magazine, 31(5), 2014. ",
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
174,
|
| 1452 |
+
779,
|
| 1453 |
+
823,
|
| 1454 |
+
821
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 11
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "text",
|
| 1460 |
+
"text": "David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30, 2013. ",
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
174,
|
| 1463 |
+
830,
|
| 1464 |
+
821,
|
| 1465 |
+
873
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 11
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "text",
|
| 1471 |
+
"text": "Martin Simonovsky and Nikos Komodakis. Dynamic edge-conditioned filters in convolutional neural networks on graphs. In Conference on Computer Vision and Pattern Recognition (CVPR). 2017. ",
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
174,
|
| 1474 |
+
881,
|
| 1475 |
+
823,
|
| 1476 |
+
922
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 11
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In Internatonal Conference on Learning Representations (ICLR). 2015. ",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
173,
|
| 1485 |
+
103,
|
| 1486 |
+
823,
|
| 1487 |
+
132
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 12
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Conference on Computer Vision and Pattern Recognition (CVPR). 2015. ",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
178,
|
| 1496 |
+
140,
|
| 1497 |
+
823,
|
| 1498 |
+
184
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 12
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"text": "Zhilin Yang, William Cohen, and Ruslan Salakhutdinov. Revisiting semi-supervised learning with graph embeddings. In Internatonal Conference on Learning Representations (ICLR). 2016. ",
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
171,
|
| 1507 |
+
193,
|
| 1508 |
+
823,
|
| 1509 |
+
222
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 12
|
| 1512 |
+
}
|
| 1513 |
+
]
|
parse/train/HkfXMz-Ab/HkfXMz-Ab.md
ADDED
|
@@ -0,0 +1,388 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NEURAL SKETCH LEARNING FOR CONDITIONAL PROGRAM GENERATION
|
| 2 |
+
|
| 3 |
+
Vijayaraghavan Murali, Letao Qi, Swarat Chaudhuri, and Chris Jermaine Department of Computer Science
|
| 4 |
+
Rice University
|
| 5 |
+
Houston, TX 77005, USA.
|
| 6 |
+
{vijay, letao.qi, swarat, cmj4}@rice.edu
|
| 7 |
+
|
| 8 |
+
# ABSTRACT
|
| 9 |
+
|
| 10 |
+
We study the problem of generating source code in a strongly typed, Java-like programming language, given a label (for example a set of API calls or types) carrying a small amount of information about the code that is desired. The generated programs are expected to respect a “realistic” relationship between programs and labels, as exemplified by a corpus of labeled programs available during training.
|
| 11 |
+
|
| 12 |
+
Two challenges in such conditional program generation are that the generated programs must satisfy a rich set of syntactic and semantic constraints, and that source code contains many low-level features that impede learning. We address these problems by training a neural generator not on code but on program sketches, or models of program syntax that abstract out names and operations that do not generalize across programs. During generation, we infer a posterior distribution over sketches, then concretize samples from this distribution into type-safe programs using combinatorial techniques. We implement our ideas in a system for generating API-heavy Java code, and show that it can often predict the entire body of a method given just a few API calls or data types that appear in the method.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
Neural networks have been successfully applied to many generative modeling tasks in the recent past (Oord et al., 2016; Ha & Eck, 2017; Vinyals et al., 2015). However, the use of these models in generating highly structured text remains relatively understudied. In this paper, we present a method, combining neural and combinatorial techniques, for the condition generation of an important category of such text: the source code of programs in Java-like programming languages.
|
| 17 |
+
|
| 18 |
+
The specific problem we consider is one of supervised learning. During training, we are given a set of programs, each program annotated with a label, which may contain information such as the set of API calls or the types used in the code. Our goal is to learn a function $g$ such that for a test case of the form $( \mathsf { X } , \mathsf { P r o g } )$ (where Prog is a program and $\mathsf { X }$ is a label), $g ( { \sf X } )$ is a compilable, type-safe program that is equivalent to Prog.
|
| 19 |
+
|
| 20 |
+
This problem has immediate applications in helping humans solve programming tasks (Hindle et al., 2012; Raychev et al., 2014). In the usage scenario that we envision, a human programmer uses a label to specify a small amount of information about a program that they have in mind. Based on this information, our generator seeks to produce a program equivalent to the “target” program, thus performing a particularly powerful form of code completion.
|
| 21 |
+
|
| 22 |
+
Conditional program generation is a special case of program synthesis (Manna & Waldinger, 1971; Summers, 1977), the classic problem of generating a program given a constraint on its behavior. This problem has received significant interest in recent years (Alur et al., 2013; Gulwani et al., 2017). In particular, several neural approaches to program synthesis driven by input-output examples have emerged (Balog et al., 2017; Parisotto et al., 2016; Devlin et al., 2017). Fundamentally, these approaches are tasked with associating a program’s syntax with its semantics. As doing so in general is extremely hard, these methods choose to only generate programs in highly controlled domainspecific languages. For example, Balog et al. (2017) consider a functional language in which the only data types permitted are integers and integer arrays, control flow is linear, and there is a sum total of 15 library functions. Given a set of input-output examples, their method predicts a vector of binary attributes indicating the presence or absence of various tokens (library functions) in the target program, and uses this prediction to guide a combinatorial search for programs.
|
| 23 |
+
|
| 24 |
+
In contrast, in conditional program generation, we are already given a set of tokens (for example library functions or types) that appear in a program or its metadata. Thus, we sidestep the problem of learning the semantics of the programming language from data. We ask: does this simpler setting permit the generation of programs from a much richer, Java-like language, with one has thousands of data types and API methods, rich control flow and exception handling, and a strong type system?
|
| 25 |
+
|
| 26 |
+
While simpler than general program synthesis, this problem is still highly nontrivial. Perhaps the central issue is that to be acceptable to a compiler, a generated program must satisfy a rich set of structural and semantic constraints such as “do not use undeclared variables as arguments to a procedure call” or “only use API calls and variables in a type-safe way”. Learning such constraints automatically from data is hard. Moreover, as this is also a supervised learning problem, the generated programs also have to follow the patterns in the data while satisfying these constraints.
|
| 27 |
+
|
| 28 |
+
We approach this problem with a combination of neural learning and type-guided combinatorial search (Feser et al., 2015). Our central idea is to learn not over source code, but over tree-structured syntactic models, or sketches, of programs. A sketch abstracts out low-level names and operations from a program, but retains information about the program’s control structure, the orders in which it invokes API methods, and the types of arguments and return values of these methods. We propose a particular kind of probabilistic encoder-decoder, called a Gaussian Encoder-Decoder or GED, to learn a distribution over sketches conditioned on labels. During synthesis, we sample sketches from this distribution, then flesh out these samples into type-safe programs using a combinatorial method for program synthesis. Doing so effectively is possible because our sketches are designed to contain rich information about control flow and types.
|
| 29 |
+
|
| 30 |
+
We have implemented our approach in a system called BAYOU.1 We evaluate BAYOU in the generation of API-manipulating Android methods, using a corpus of about 150,000 methods drawn from an online repository. Our experiments show that BAYOU can often generate complex method bodies, including methods implementing tasks not encountered during training, given a few tokens as input.
|
| 31 |
+
|
| 32 |
+
# 2 PROBLEM STATEMENT
|
| 33 |
+
|
| 34 |
+
Now we define conditional program generation. Assume a universe $\mathbb { P }$ of programs and a universe $\mathbb { X }$ of labels. Also assume a set of training examples of the form $\{ ( \mathsf { X } _ { 1 } , \mathsf { P r o g } _ { 1 } ) , ( \mathsf { X } _ { 2 } , \mathsf { P r o g } _ { 2 } ) , . . . \}$ , where each ${ \sf X } _ { i }$ is a label and each $\mathsf { P r o g } _ { i }$ is a program. These examples are sampled from an unknown distribution $Q ( X , P r o g )$ , where $X$ and Prog range over labels and programs, respectively.2
|
| 35 |
+
|
| 36 |
+
We assume an equivalence relation $E q v \subseteq \mathbb { P } \times \mathbb { P }$ over programs. If $( \mathsf { P r o g } _ { 1 } , \mathsf { P r o g } _ { 2 } ) \in E q v$ , then $\mathsf { P r o g } _ { 1 }$ and $\mathsf { P r o g } _ { 2 }$ are functionally equivalent. The definition of functional equivalence differs across applications, but in general it asserts that two programs are “just as good as” one another.
|
| 37 |
+
|
| 38 |
+
The goal of conditional program generation is to use the training set to learn a function $g : \mathbb { X } \to \mathbb { P }$ such that the expected value $\mathbf { E } [ I ( ( g ( X ) , P r o g ) \in E q v ) ]$ is maximized. Here, $I$ is the indicator function, returning 1 if its boolean argument is true, and 0 otherwise. Informally, we are attempting to learn a function $g$ such that if we sample $( \mathsf { X } , \mathsf { P r o g } ) \sim Q ( \boldsymbol { X } , \boldsymbol { P r o g } ) ,$ , $g$ should be able to reconstitute a program that is functionally equivalent to Prog, using only the label $\mathsf { X }$ .
|
| 39 |
+
|
| 40 |
+
# 2.1 INSTANTIATION
|
| 41 |
+
|
| 42 |
+
In this paper, we consider a particular form of conditional program generation. We take the domain $\mathbb { P }$ to be the set of possible programs in a programming language called AML that captures the essence of API-heavy Java programs (see Appendix A for more details). AML includes complex control flow such as loops, if-then statements, and exceptions; access to Java API data types; and calls to Java API methods. AML is a strongly typed language, and by definition, $\mathbb { P }$ only includes programs that are type-safe.3 To define labels, we assume three finite sets: a set Calls of possible API calls in AML, a set Types of possible object types, and a set Keys of keywords, defined as words, such as “read” and “file”, that often appear in textual descriptions of what programs do. The space of possible labels is $\mathbb { X } = 2 ^ { C a l l s } \times 2 ^ { \dot { T } y p e s } \times 2 ^ { K e y s }$ (here $2 ^ { \hat { S } }$ is the power set of $S$ ).
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
Figure 1: Programs generated by BAYOU with the API method name readLine as a label. Names of variables of type $\mathrm { T }$ whose values are obtained from the environment are of the form $\$ 1$ .
|
| 46 |
+
|
| 47 |
+
Defining Eqv in practice is tricky. For example, a reasonable definition of Eqv is that $( \mathsf { P r o g _ { 1 } } , \mathsf { P r o g _ { 2 } } ) \in E q v$ iff $\mathsf { P r o g } _ { 1 }$ and $\mathsf { P r o g } _ { 2 }$ produce the same outputs on all inputs. But given the richness of AML, the problem of determining whether two AML programs always produce the same output is undecidable. As such, in practice we can only measure success indirectly, by checking whether the programs use the same control structures, and whether they can produce the same API call sequences. We will discuss this issue more in Section 6.
|
| 48 |
+
|
| 49 |
+
# 2.2 EXAMPLE
|
| 50 |
+
|
| 51 |
+
Consider the label ${ \sf X } = ( { \sf X } _ { C a l l s } , { \sf X } _ { T y p e s } , { \sf X } _ { K e y s } )$ where $\mathsf { X } _ { C a l l s } = \{ \tt r e a d L i n e \}$ and $\mathsf { X } _ { T y p e s }$ and $\mathsf { X } _ { K e y s }$ are empty. Figure 1(a) shows a program that our best learner stochastically returns given this input. As we see, this program indeed reads lines from a file, whose name is given by a special variable $\$ 5$ tring that the code takes as input. It also handles exceptions and closes the reader, even though these actions were not directly specified.
|
| 52 |
+
|
| 53 |
+
Although the program in Figure 1-(a) matches the label well, failures do occur. Sometimes, the system generates a program as in Figure 1-(b), which uses an InputStreamReader rather than a FileReader. It is possible to rule out this program by adding to the label. Suppose we amend $\mathsf { X } _ { T y p e s }$ so that $\mathsf { X } _ { T y p e s } = \mathsf { \{ F i l e R e a d e r \} }$ . BAYOU now tends to only generate programs that use FileReader. The variations then arise from different ways of handling exceptions and constructing FileReader objects (some programs use a String argument, while others use a File object). Figure 7 in the appendix shows two other top-five programs returned on this input.
|
| 54 |
+
|
| 55 |
+
# 3 TECHNICAL APPROACH
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 2: Bayes net for Prog , X, Y
|
| 59 |
+
|
| 60 |
+
Our approach is to learn $g$ via maximum conditional likelihood estimation (CLE). That is, given a distribution family $P ( P r o g | X , \theta )$ for a parameter set $\theta$ , we choose $\begin{array} { r } { \theta ^ { * } = \arg \operatorname* { m a x } _ { \theta } \sum _ { i } \log P ( \mathsf { P r o g } _ { i } \mid \mathsf { X } _ { i } , \theta ) } \end{array}$ . Then, $g ( \mathsf { X } ) = \arg \operatorname* { m a x } _ { \mathsf { P r o g } } P ( \mathsf { P r o g } | \mathsf { X } , \theta ^ { * } )$ .
|
| 61 |
+
|
| 62 |
+
The key innovation of our approach is that here, learning happens at a higher level of abstraction than $( \mathsf { X } _ { i } , \mathsf { P r o g } _ { i } )$ pairs. In practice, Java-like programs contain many low-level details (for example, variable names and intermediate results) that can obscure patterns in code. Further, they contain complicated semantic rules (for example, for type safety) that are difficult to learn from data. In contrast, these are relatively easy for a combinatorial, syntax-guided program synthesizer (Alur et al., 2013) to deal with. However, synthesizers have a notoriously difficult time figuring out the correct “shape” of a program (such as the placement of loops and conditionals), which we hypothesize should be relatively easy for a statistical learner.
|
| 63 |
+
|
| 64 |
+
Specifically, our approach learns over sketches: tree-structured data that capture key facets of program syntax. A sketch Y does not contain low-level variable names and operations, but carries information about broadly shared facets of programs such as the types and API calls. During generation, a program synthesizer is used to generate programs from sketches produced by the learner.
|
| 65 |
+
|
| 66 |
+
Let the universe of all sketches be denoted by Y. The sketch for a given program is computed by applying an abstraction function $\alpha : \mathbb { P } \mathbb { Y }$ . We call a sketch Y satisfiable, and write $s a t ( \mathsf { Y } )$ , if $\mathbf { \bar { \alpha } } \mathbf { \bar { \alpha } } ^ { - 1 } ( \mathbf { \bar { Y } } ) \mathbf { \beta } \neq \mathbf { \alpha } \varnothing$ . The process of generating (type-safe) programs given a satisfiable sketch $\textsf { Y }$ is probabilistic, and captured by a concretization distribution $\hat { P } ( \hat { P } r o g \mid \bar { \mathsf { Y } } , s a t ( \mathsf { Y } ) )$ . We require that for all programs Prog and sketches Y such that $s a t ( \mathsf { Y } )$ , we have $P ( \mathsf { P r o g } \mid \mathsf { Y } ) \neq 0$ only if $\mathsf { Y } = \alpha ( \mathsf { P r o g } )$ .
|
| 67 |
+
|
| 68 |
+
Importantly, the concretization distribution is fixed and chosen heuristically. The alternative of learning this distribution from source code poses difficulties: a single sketch can correspond to many programs that only differ in superficial details, and deciding which differences between programs are superficial and which are not requires knowledge about program semantics. In contrast, our heuristic approach utilizes known semantic properties of programming languages like ours — for example, that local variable names do not matter, and that some algebraic expressions are semantically equivalent. This knowledge allows us to limit the set of programs that we generate.
|
| 69 |
+
|
| 70 |
+
Y ${ \begin{array} { r l } { : : = } & { \mathbf { s k i p } \mid \mathbf { c a l l } \mathbf { C } \mathbf { e x p } \mid \mathsf { Y } _ { 1 } ; \mathsf { Y } _ { 2 } \mid } \\ & { \mathbf { i f } \mathbf { C s e q } \mathbf { t h e n } \textsf { Y } _ { 1 } \mathbf { e l s e } \mathsf { Y } _ { 2 } \mid } \\ & { { \mathrm { ~ w h i l e ~ } } \mathbf { C s e q } \mathbf { d o } \mathsf { Y } _ { 1 } \mid \mathbf { t r y } \mathsf { Y } _ { 1 } \mathbf { \textsf { C a t c t } } } \\ { : = } & { \tau _ { 0 } . a ( \tau _ { 1 } , \ldots , \tau _ { k } ) } \\ { : : = } & { \mathbf { L i s t } { \mathrm { ~ o f ~ } } \mathbf { C } \mathbf { e x p } } \\ { : : = } & { \mathbf { c a t c h } ( \tau _ { 1 } ) \textsf { Y } _ { 1 } \ \ldots \mathbf { c a t c h } ( \tau _ { k } ) \textsf { Y } _ { k } } \end{array} }$ h
|
| 71 |
+
Cexp
|
| 72 |
+
Cseq
|
| 73 |
+
Catch
|
| 74 |
+
|
| 75 |
+
Let us define a random variable $Y = \alpha ( { \cal P } { r o g } )$ . We assume that the variables $X$ , $Y$ and Prog are related as in the Bayes net in Figure 2. Specifically, given $Y$ , Prog is conditionally independent of $X$ . Further, let us assume a distribution family $P ( \boldsymbol { Y } | \boldsymbol { X } , \boldsymbol { \theta } )$ parameterized on $\theta$ .
|
| 76 |
+
|
| 77 |
+
Let $\mathsf { Y } _ { i } = \alpha ( \mathsf { P r o g } _ { i } )$ , and note that $P ( \mathsf { P r o g } _ { i } | \mathsf { Y } ) \neq$ 0 only if ${ \textsf { Y } } = { \textsf { Y } } _ { i }$ . Our problem now simplifies to learning over sketches, i.e., finding
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\begin{array} { r c l } { \theta ^ { * } } & { = } & { \underset { \theta } { \arg \operatorname* { m a x } } \sum _ { i } \log \underset { \Upsilon : s a t ( \Upsilon ) } { \sum } P ( \mathsf { P r o g } _ { i } | \mathsf { Y } ) P ( \mathsf { Y } | \mathsf { X } _ { i } , \theta ) } \\ & { = } & { \underset { \theta } { \arg \operatorname* { m a x } } \sum _ { i } \log P ( \mathsf { P r o g } _ { i } | \mathsf { Y } _ { i } ) P ( \mathsf { Y } _ { i } | \mathsf { X } _ { i } , \theta ) = \underset { \theta } { \arg \operatorname* { m a x } } \sum _ { i } \log P ( \mathsf { Y } _ { i } | \mathsf { X } _ { i } , \theta ) . } \end{array}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
# 3.1 INSTANTIATION
|
| 84 |
+
|
| 85 |
+
Figure 3 shows the full grammar for sketches in our implementation. Here, $\tau _ { 0 } , \tau _ { 1 } , \ldots$ range over a finite set of API data types that AML programs can use. A data type, akin to a Java class, is identified with a finite set of API method names (including constructors), and $a$ ranges over these names. Note that sketches do not contain constants or variable names.
|
| 86 |
+
|
| 87 |
+
A full definition of the abstraction function for AML appears in Appendix B. As an example, API calls in AML have the syntax “call $e . a ( e _ { 1 } , \ldots , e _ { k } ) ^ { \prime }$ , where $a$ is an API method, the expression $e$ evaluates to the object on which the method is called, and the expressions $e _ { 1 } , \ldots , e _ { k }$ evaluate to the arguments of the method call. We abstract this call into an abstract method call “call $\tau . a ( \tau _ { 1 } , \ldots , \tau _ { k } ) ^ { \ast }$ , where $\tau$ is the type of $e$ and $\tau _ { i }$ is the type of $e _ { i }$ . The keywords skip, while, if-then-else, and trycatch preserve information about control flow and exception handling. Boolean conditions Cseq are replaced by abstract expressions: lists whose elements abstract the API calls in Cseq.
|
| 88 |
+
|
| 89 |
+
# 4 LEARNING
|
| 90 |
+
|
| 91 |
+
Now we describe our learning approach. Equation 1 leaves us with the problem of computing arg $\begin{array} { r } { \operatorname* { m a x } _ { \theta } \sum _ { i } \log P ( \Upsilon _ { i } | \Upsilon _ { i } , \theta ) } \end{array}$ , when each $\mathsf { X } _ { i }$ is a label and $\mathsf { Y } _ { i }$ is a sketch. Our answer is to utilize an encoder-decoder and introduce a real vector-valued latent variable $Z$ to stochastically link labels and sketches: $\begin{array} { r } { P ( \Upsilon | \Upsilon , \theta ) = \int _ { \mathsf Z \in \mathbb R ^ { m } } P ( \boldsymbol { \mathrm Z } | \mathsf X , \theta ) P ( \Upsilon | \boldsymbol { \mathrm Z } , \theta ) d \boldsymbol { \mathrm Z } } \end{array}$ .
|
| 92 |
+
|
| 93 |
+
$P ( \boldsymbol { Y } | \boldsymbol { Z } , \boldsymbol { \theta } )$ is realized as a probabilistic decoder mapping a vector-valued variable to a distribution over trees. We describe this decoder in Appendix C. As for $P ( Z | \mathsf { X } , \theta )$ , this distribution can, in principle, be picked in any way we like. In practice, because both $P ( \boldsymbol { Y } | \boldsymbol { Z } , \boldsymbol { \theta } )$ and $P ( Z | \mathsf { X } , \theta )$ have neural components with numerous parameters, we wish this distribution to regularize the learner. To provide this regularization, we assume a Normal $( \vec { 0 } , \mathbf { I } )$ prior on $Z$ .
|
| 94 |
+
|
| 95 |
+
Recall that our labels are of the form $\mathsf { X } = ( \mathsf { X } _ { C a l l s } , \mathsf { X } _ { T y p e s } , \mathsf { X } _ { K e y s } )$ , where $\mathsf { X } _ { C a l l s }$ , $\mathsf { X } _ { \substack { T y p e s } }$ , and $\mathsf { X } _ { K e y s }$ are sets. Assuming that the $j$ -th elements $\mathsf { X } _ { C a l l s , j } , \mathsf { X } _ { T y p e s , j } ,$ and $\mathsf { X } _ { K e y s , j }$ of these sets are generated independently, and assuming a function $f$ for encoding these elements, let:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\begin{array} { r c l } { ^ { P } ( { \bf X } | { \bf Z } , \theta ) } & { = } & { \left( \prod _ { j } \mathrm { N o r m a l } ( f ( X _ { C a l l s , j } ) | Z , { \bf I } \sigma _ { C a l l s } ^ { 2 } ) \right) \left( \prod _ { j } \mathrm { N o r m a l } ( f ( X _ { T y p e s , j } ) | Z , { \bf I } \sigma _ { T y p e s } ^ { 2 } ) \right) } \\ & & { \left( \prod _ { j } \mathrm { N o r m a l } ( f ( X _ { K e y s , j } ) | Z , { \bf I } \sigma _ { K e y s } ^ { 2 } ) \right) . } \end{array}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
That is, the encoded value of each $\mathsf { X } _ { T y p e s , j }$ , $\mathsf { X } _ { C a l l s , j }$ or $\mathsf { X } _ { K e y s , j }$ is sampled from a high-dimensional Normal distribution conjugacy, we have: $f$ ith the set , where $\mathbb { R } ^ { m }$ then from Normal-Normal $\begin{array} { r } { P ( \boldsymbol { \mathsf { Z } } | \mathsf { X } ) = \operatorname { N o r m a l } \left( \boldsymbol { \mathsf { Z } } \mid \frac { \overline { { \mathsf { X } } } } { 1 + n } , \frac { 1 } { 1 + n } \mathbf { I } \right) } \end{array}$
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\overline { { \mathsf { X } } } = \left( \sigma _ { T y p e s } ^ { - 2 } \sum _ { j } f ( \mathsf { X } _ { T y p e s , j } ) \right) + \left( \sigma _ { C a l l s } ^ { - 2 } \sum _ { j } f ( \mathsf { X } _ { C a l l s , j } ) \right) + \left( \sigma _ { K e y s } ^ { - 2 } \sum _ { j } f ( \mathsf { X } _ { K e y s , j } ) \right)
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
$n = n _ { T y p e s } \sigma _ { T y p e s } ^ { - 2 } + n _ { C a l l s } \sigma _ { C a l l s } ^ { - 2 } + n _ { K e y s } \sigma _ { K e y s } ^ { - 2 }$ . Here, $n _ { T y p e s }$ is the number of types supplied, and $n _ { C a l l s }$ and $n _ { K e y s }$ are defined similarly.
|
| 108 |
+
|
| 109 |
+
Note that this particular $P ( Z | \mathsf { X } , \theta )$ only follows directly from the Normal $( \vec { 0 } , \mathbf { I } )$ prior on $Z$ and Normal likelihood $P ( X | Z , \dot { \theta } )$ if the encoding function $f$ is 1-1 and onto. However, even if $f$ is not 1-1 and onto (as will be the case if $f$ is implemented with a standard feed-forward neural network) we can still use this probabilistic encoder, and in practice we still tend to see the benefits of the regularizing prior on Z, with $P ( Z )$ distributed approximately according to a unit Normal. We call this type of encoder-decoder, with a single, Normally-distributed latent variable $Z$ linking the input and output, a Gaussian encoder-decoder, or GED for short.
|
| 110 |
+
|
| 111 |
+
Now that we have chosen $P ( X | Z , \theta )$ and $P ( \boldsymbol { Y } | \boldsymbol { Z } , \boldsymbol { \theta } )$ , we must choose $\theta$ to perform CLE. Note that:
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\begin{array} { r l } & { \displaystyle \sum _ { i } \log P ( \mathsf { Y } _ { i } | \mathsf { X } _ { i } , \theta ) = \sum _ { i } \log \int _ { \mathbb { Z } \in \mathbb { R } ^ { m } } P ( \mathbb { Z } | \mathsf { X } _ { i } , \theta ) P ( \mathsf { Y } _ { i } | \mathbb { Z } , \theta ) d \mathbb { Z } = \sum _ { i } \log \mathbf { E } _ { \mathbb { Z } \sim P ( \mathbb { Z } | \mathsf { X } _ { i } , \theta ) } [ P ( \mathsf { Y } _ { i } | \mathbb { Z } , \theta ) ] } \\ & { \qquad \ge \displaystyle \sum _ { i } \mathbf { E } _ { \mathbb { Z } \sim P ( \mathbb { Z } | \mathsf { X } _ { i } , \theta ) } [ \log P ( \mathsf { Y } _ { i } | \mathbb { Z } , \theta ) ] = \mathcal { L } ( \theta ) . } \end{array}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
where the $\geq$ holds due to Jensen’s inequality. Hence, $\mathcal { L } ( \boldsymbol { \theta } )$ serves as a lower bound on the loglikelihood, and so we can compute $\theta ^ { * } = \arg \operatorname* { m a x } _ { \theta } \mathcal { L } ( \theta )$ as a proxy for the CLE. We maximize this lower bound using stochastic gradient ascent; as $P ( Z | \mathsf { X } _ { i } , \theta )$ is Normal, we can use the reparameterization trick common in variational auto-encoders (Kingma & Welling, 2014) while doing so. The parameter set $\theta$ contains all of the parameters of the encoding function $f$ as well as $\sigma _ { T y p e s }$ , $\sigma _ { C a l l s }$ , and $\sigma _ { K e y s }$ , and the parameters used in the decoding distribution funciton $P ( \boldsymbol { Y } | \boldsymbol { Z } , \boldsymbol { \theta } )$ .
|
| 118 |
+
|
| 119 |
+
# 5 COMBINATORIAL CONCRETIZATION
|
| 120 |
+
|
| 121 |
+
The final step in our algorithm is to “concretize” sketches into programs, following the distribution $P ( P r o g | \mathsf { Y } )$ . Our method of doing so is a type-directed, stochastic search procedure that builds on combinatorial methods for program synthesis (Schkufza et al., 2016; Feser et al., 2015).
|
| 122 |
+
|
| 123 |
+
Given a sketch Y, our procedure performs a random walk in a space of partially concretized sketches (PCSs). A PCS is a term obtained by replacing some of the abstract method calls and expressions in a sketch by AML method calls and AML expressions. For example, the term $^ { } x _ { 1 } . a ( x _ { 2 } ) ; \tau _ { 1 } . b ( \tau _ { 2 } ) ^ { \prime }$ ,
|
| 124 |
+
|
| 125 |
+
which sequential composes an abstract method call to $b$ and a “concrete” method call to $a$ , is a PCS.
|
| 126 |
+
The state of the procedure at the $i$ -th point of the walk is a $\mathrm { P C S } \mathsf { H } _ { i }$ . The initial state is Y.
|
| 127 |
+
|
| 128 |
+
Each state H has a set of neighbors $N e x t ( \mathsf { H } )$ . This set consists of all $\mathsf { P C S - s H ^ { \prime } }$ that are obtained by concretizing a single abstract method call or expression in H, using variable names in a way that is consistent with the types of all API methods and declared variables in H.
|
| 129 |
+
|
| 130 |
+
The $( i + 1 )$ -th state in a walk is a sample from a predefined, heuristically chosen distribution $P ( \mathsf { H } _ { i + 1 } \mid \mathsf { H } _ { i } , )$ . The only requirement on this distribution is that it assigns nonzero probability to a state iff it belongs to ${ N e x t } ( \mathsf { H } _ { i } )$ . In practice, our implementation of this distribution prioritizes programs that are simpler. The random walk ends when it reaches a state $\mathsf { H } ^ { * }$ that has no neighbors. If $\mathsf { H } ^ { * }$ is fully concrete (that is, an AML program), then the walk is successful and $\mathsf { H } ^ { * }$ is returned as a sample. If not, the current walk is rejected, and a fresh walk is started from the initial state.
|
| 131 |
+
|
| 132 |
+
Recall that the concretization distribution $P ( P r o g | \mathsf { Y } )$ is only defined for sketches Y that are satisfiable. Our concretization procedure does not assume that its input Y is satisfiable. However, if $\textsf { Y }$ is not satisfiable, all random walks that it performs end with rejection, causing it to never terminate.
|
| 133 |
+
|
| 134 |
+
While the worst-case complexity of this procedure is exponential in the generated programs, it performs well in practice because of our chosen language of sketches. For instance, our search does not need to discover the high-level structure of programs. Also, sketches specify the types of method arguments and return values, and this significantly limits the search space.
|
| 135 |
+
|
| 136 |
+
# 6 EXPERIMENTS
|
| 137 |
+
|
| 138 |
+
Now we present an empirical evaluation of the effectiveness of our method. The experiments we describe utilize data from an online repository of about 1500 Android apps (and, 2017). We decompiled the APKs using JADX (Skylot, 2017) to generate their source code. Analyzing about 100 million lines of code that were generated, we extracted 150,000 methods that used Android APIs or the Java library. We then pre-processed all method bodies to translate the code from Java to AML, preserving names of relevant API calls and data types as well as the high-level control flow. Hereafter, when we say “program” we refer to an AML program.
|
| 139 |
+
|
| 140 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Min</td><td rowspan=1 colspan=1>Max</td><td rowspan=1 colspan=1>Median</td><td rowspan=1 colspan=1>Vocab</td></tr><tr><td rowspan=1 colspan=1>Xcalls</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>2584</td></tr><tr><td rowspan=1 colspan=1>XTypes</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>15</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>1521</td></tr><tr><td rowspan=1 colspan=1>XKeys</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>29</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>993</td></tr><tr><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>48</td><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>5098</td></tr></table>
|
| 141 |
+
|
| 142 |
+
From each program, we extracted the sets $\mathsf { X } _ { C a l l s }$ , $\mathsf { X } _ { \substack { T y p e s } }$ and $\mathsf { X } _ { K e y s }$ as well as a sketch Y. Lacking separate natural language dscriptions for programs, we defined keywords to be words obtained by splitting the names of the API types and calls that the program uses, based on camel case. For instance, the keywords obtained from the API call readLine are “read” and “line”. As API method and types in Java tend to be carefully named, these words often contain rich information about what programs do. Figure 4 gives some statistics on the sizes of the labels in the data. From the extracted data, we randomly selected 10,000 programs to be in the testing and validation data each.
|
| 143 |
+
|
| 144 |
+
# 6.1 IMPLEMENTATION AND TRAINING
|
| 145 |
+
|
| 146 |
+
We implemented our approach in our tool called BAYOU, using TensorFlow (Abadi et al., 2015) to implement the GED neural model, and the Eclipse IDE for the abstraction from Java to the language of sketches and the combinatorial concretization.
|
| 147 |
+
|
| 148 |
+
In all our experiments we performed cross-validation through grid search and picked the best performing model. Our hyper-parameters for training the model are as follows. We used 64, 32 and 64 units in the encoder for API calls, types and keywords, respectively, and 128 units in the decoder. The latent space was 32-dimensional. We used a mini-batch size of 50, a learning rate of 0.0006 for the Adam gradient-descent optimizer (Kingma & Ba, 2014), and ran the training for 50 epochs.
|
| 149 |
+
|
| 150 |
+
The training was performed on an AWS “p2.xlarge” machine with an NVIDIA K80 GPU with 12GB GPU memory. As each sketch was broken down into a set of production paths, the total number of data points fed to the model was around 700,000 per epoch. Training took 10 hours to complete.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
Figure 5: 2-dimensional projection of latent space
|
| 154 |
+
|
| 155 |
+
To visualize clustering in the 32-dimensional latent space, we provided labels $\mathsf { X }$ from the testing data and sampled Z from $P ( Z | \mathsf X )$ , and then used it to sample a sketch from $P ( \boldsymbol { Y } | \boldsymbol { Z } )$ . We then used t-SNE (Maaten & Hinton, 2008) to reduce the dimensionality of Z to 2-dimensions, and labeled each point with the API used in the sketch Y. Figure 5 shows this 2-dimensional space, where each label has been coded with a different color. It is immediately apparent from the plot that the model has learned to cluster the latent space neatly according to different APIs. Some APIs such as java.io have several modes, and we noticed separately that each mode corresponds to different usage scenarios of the API, such as reading versus writing in this case.
|
| 156 |
+
|
| 157 |
+
# 6.3 ACCURACY
|
| 158 |
+
|
| 159 |
+
To evaluate prediction accuracy, we provided labels from the testing data to our model, sampled sketches from the distribution $P ( \boldsymbol { Y } | \mathsf { X } )$ and concretized each sketch into an AML program using our combinatorial search. We then measured the number of test programs for which a program that is equivalent to the expected one appeared in the top-10 results from the model.
|
| 160 |
+
|
| 161 |
+
As there is no universal metric to measure program equivalence (in fact, it is an undecidable problem in general), we used several metrics to approximate the notion of equivalence. We defined the following metrics on the top-10 programs predicted by the model:
|
| 162 |
+
|
| 163 |
+
M1. This binary metric measures whether the expected program appeared in a syntactically equivalent form in the results. Of course, an impediment to measuring this is that the names of variables used in the expected and predicted programs may not match. It is neither reasonable nor useful for any model of code to learn the exact variable names in the training data. Therefore, in performing this equivalence check, we abstract away the variable names and compare the rest of the program’s Abstract Syntax Tree (AST) instead.
|
| 164 |
+
M2. This metric measures the minimum Jaccard distance between the sets of sequences of API calls made by the expected and predicted programs. It is a measure of how close to the original program were we able to get in terms of sequences of API calls.
|
| 165 |
+
M3. Similar to metric M2, this metric measures the minimum Jaccard distance between the sets of API calls in the expected and predicted programs.
|
| 166 |
+
M4. This metric computes the minimum absolute difference between the number of statements in the expected and sampled programs, as a ratio of that in the former.
|
| 167 |
+
M5. Similar to metric M4, this metric computes the minumum absolute difference between the number of control structures in the expected and sampled programs, as a ratio of that in the former. Examples of control structures are branches, loops, and try-catch statements.
|
| 168 |
+
|
| 169 |
+
# 6.4 PARTIAL OBSERVABILITY
|
| 170 |
+
|
| 171 |
+
To evaluate our model’s ability to predict programs given a small amount of information about its code, we varied the fraction of the set of API calls, types, and keywords provided as input from the testing data. We experimented with $7 5 \%$ , $50 \%$ and $2 5 \%$ observability in the testing data; the median number of items in a label in these cases were 9, 6, and 2, respectively.
|
| 172 |
+
|
| 173 |
+
<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=1 colspan=4>InputLabel Observability</td></tr><tr><td rowspan=1 colspan=1>100%</td><td rowspan=1 colspan=1>75%</td><td rowspan=1 colspan=1>50%</td><td rowspan=1 colspan=1>25%</td></tr><tr><td rowspan=2 colspan=1>GED-AMLGsNN-AMLGED-SkGsNN-Sk</td><td rowspan=1 colspan=1>0.13</td><td rowspan=1 colspan=1>0.09</td><td rowspan=1 colspan=1>0.07</td><td rowspan=2 colspan=1>0.020.010.210.18</td></tr><tr><td rowspan=1 colspan=1>0.070.590.57</td><td rowspan=1 colspan=1>0.040.510.48</td><td rowspan=1 colspan=1>0.030.440.41</td></tr></table>
|
| 174 |
+
|
| 175 |
+
(a) M1. Proportion of test programs for which the expected AST appeared in the top-10 results.
|
| 176 |
+
|
| 177 |
+
<table><tr><td rowspan="2">Model</td><td colspan="4">Input Label Observability</td></tr><tr><td>100%</td><td>75%</td><td>50%</td><td>25%</td></tr><tr><td>GED-AML</td><td>0.82</td><td>0.87</td><td>0.89</td><td>0.97</td></tr><tr><td>GsNN-AML</td><td>0.88</td><td>0.92</td><td>0.93</td><td>0.98</td></tr><tr><td>GED-Sk</td><td>0.34</td><td>0.43</td><td>0.50</td><td>0.76</td></tr><tr><td>GsNN-Sk</td><td>0.36</td><td>0.46</td><td>0.53</td><td>0.78</td></tr></table>
|
| 178 |
+
|
| 179 |
+
(b) M2. Average minimum Jaccard distance on the set of sequences of API methods called in the test program vs the top-10 results.
|
| 180 |
+
|
| 181 |
+
<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=1 colspan=4>Input Label Observability</td></tr><tr><td rowspan=1 colspan=1>100%</td><td rowspan=1 colspan=1>75%</td><td rowspan=1 colspan=1>50%</td><td rowspan=1 colspan=1>25%</td></tr><tr><td rowspan=4 colspan=1>GED-AMLGsNN-AMLGED-SkGsNN-Sk</td><td rowspan=1 colspan=1>0.52</td><td rowspan=1 colspan=1>0.58</td><td rowspan=1 colspan=1>0.61</td><td rowspan=2 colspan=1>0.770.83</td></tr><tr><td rowspan=1 colspan=1>0.59</td><td rowspan=1 colspan=1>0.64</td><td rowspan=1 colspan=1>0.68</td></tr><tr><td rowspan=1 colspan=1>0.11</td><td rowspan=1 colspan=1>0.17</td><td rowspan=1 colspan=1>0.22</td><td rowspan=2 colspan=1>0.500.52</td></tr><tr><td rowspan=1 colspan=1>0.13</td><td rowspan=1 colspan=1>0.19</td><td rowspan=1 colspan=1>0.25</td></tr></table>
|
| 182 |
+
|
| 183 |
+
(c) M3. Average minimum Jaccard distance on the set of API methods called in the test program vs the top-10 results.
|
| 184 |
+
|
| 185 |
+
<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=1 colspan=4>Input Label Observability</td></tr><tr><td rowspan=1 colspan=1>100%</td><td rowspan=1 colspan=1>75%</td><td rowspan=1 colspan=1>50%</td><td rowspan=1 colspan=1>25%</td></tr><tr><td rowspan=4 colspan=1>GED-AMLGsNN-AMLGED-SkGsNN-Sk</td><td rowspan=1 colspan=1>0.49</td><td rowspan=1 colspan=1>0.47</td><td rowspan=1 colspan=1>0.46</td><td rowspan=2 colspan=1>0.460.53</td></tr><tr><td rowspan=1 colspan=1>0.52</td><td rowspan=1 colspan=1>0.49</td><td rowspan=1 colspan=1>0.49</td></tr><tr><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>0.06</td><td rowspan=1 colspan=1>0.06</td><td rowspan=2 colspan=1>0.090.09</td></tr><tr><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>0.06</td><td rowspan=1 colspan=1>0.06</td></tr></table>
|
| 186 |
+
|
| 187 |
+
(d) M4. Average minimum difference between the number of statements in the test program vs the top-10 results.
|
| 188 |
+
|
| 189 |
+
(e) M5. Average minimum difference between the number of control structures in the test program vs the top-10 results.
|
| 190 |
+
|
| 191 |
+
Figure 6: Accuracy of different models on testing data. GED-AML and GSNN-AML are baseline models trained over AML ASTs, GED-Sk and GSNN-Sk are models trained over sketches.
|
| 192 |
+
|
| 193 |
+
<table><tr><td rowspan="3">Model</td><td colspan="3">Input Label Observability</td></tr><tr><td>100%</td><td>75%</td><td>50%</td><td>25%</td></tr><tr><td>GED-AML</td><td>0.31</td><td>0.30</td><td>0.30</td><td>0.34</td></tr><tr><td>GsNN-AML</td><td>0.32</td><td>0.31</td><td>0.32</td><td>0.39</td></tr><tr><td>GED-Sk</td><td>0.03</td><td>0.03</td><td>0.03</td><td>0.04</td></tr><tr><td>GsNN-Sk</td><td>0.03</td><td>0.03</td><td>0.03</td><td>0.03</td></tr></table>
|
| 194 |
+
|
| 195 |
+
<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=1 colspan=5>Metric</td></tr><tr><td rowspan=1 colspan=1>M1</td><td rowspan=1 colspan=1>M2</td><td rowspan=1 colspan=1>M3</td><td rowspan=1 colspan=1>M4</td><td rowspan=1 colspan=1>M5</td></tr><tr><td rowspan=3 colspan=1>GED-AMLGsNN-AMLGED-SkGsNN-Sk</td><td rowspan=1 colspan=1>0.02</td><td rowspan=1 colspan=1>0.97</td><td rowspan=1 colspan=1>0.71</td><td rowspan=1 colspan=1>0.50</td><td rowspan=2 colspan=1>0.370.370.04</td></tr><tr><td rowspan=2 colspan=1>0.010.230.20</td><td rowspan=1 colspan=1>0.980.70</td><td rowspan=1 colspan=1>0.740.30</td><td rowspan=1 colspan=1>0.510.08</td><td rowspan=1 colspan=1>0.370.04</td></tr><tr><td rowspan=1 colspan=1>0.74</td><td rowspan=1 colspan=1>0.33</td><td rowspan=1 colspan=1>0.08</td><td rowspan=1 colspan=1>0.04</td></tr></table>
|
| 196 |
+
|
| 197 |
+
(f) Metrics for $5 0 \%$ obsevability evaluated only on unseen data
|
| 198 |
+
|
| 199 |
+
# 6.5 COMPETING MODELS
|
| 200 |
+
|
| 201 |
+
In order to compare our model with state-of-the-art conditional generative models, we implemented the Gaussian Stochastic Neural Network (GSNN) presented by (Sohn et al., 2015), using the same tree-structured decoder as the GED. There are two main differences: (i) the GSNN’s decoder is also conditioned directly on the input label $\mathsf { X }$ in addition to Z, which we accomplish by concatenating its initial state with the encoding of $\mathsf { X } ,$ , (ii) the GSNN loss function has an additional KL-divergence term weighted by a hyper-parameter $\beta$ . We subjected the GSNN to the same training and crossvalidation process as our model. In the end, we selected a model that happened to have very similar hyper-parameters as ours, with $\beta = 0 . 0 0 1$ .
|
| 202 |
+
|
| 203 |
+
# 6.6 EVALUATING SKETCHES
|
| 204 |
+
|
| 205 |
+
In order to evaluate the effect of sketch learning for program generation, we implemented and compared with a model that learns directly over programs. Specifically, the neural network structure is exactly the same as ours, except that instead of being trained on production paths in the sketches, the model is trained on production paths in the ASTs of the AML programs. We selected a model that had more units in the decoder (256) compared to our model (128), as the AML grammar is more complex than the grammar of sketches. We also implemented a similar GSNN model to train over AML ASTs directly.
|
| 206 |
+
|
| 207 |
+
Figure 6 shows the collated results of this evaluation, where each entry computes the average of the corresponding metric over the 10000 test programs. It takes our model about 8 seconds, on average, to generate and rank 10 programs.
|
| 208 |
+
|
| 209 |
+
When testing models that were trained on AML ASTs, namely the GED-AML and GSNN-AML models, we observed that out of a total of 87,486 AML ASTs sampled from the two models, 2525 (or $3 \%$ ) ASTs were not even well-formed, i.e., they would not pass a parser, and hence had to be discarded from the metrics. This number is 0 for the GED-Sk and GSNN-Sk models, meaning that all AML ASTs that were obtained by concretizing sketches were well-formed.
|
| 210 |
+
|
| 211 |
+
In general, one can observe that the GED-Sk model performs best overall, with GSNN-Sk a reasonable alternative. We hypothesize that the reason GED-Sk performs slightly better is the regularizing prior on $Z$ ; since the GSNN has a direct link from $X$ to $Y$ , it can choose to ignore this regularization. We would classify both these models as suitable for conditional program generation. However, the other two models GED-AML and GSNN-AML perform quite worse, showing that sketch learning is key in addressing the problem of conditional program generation.
|
| 212 |
+
|
| 213 |
+
# 6.7 GENERALIZATION
|
| 214 |
+
|
| 215 |
+
To evaluate how well our model generalizes to unseen data, we gather a subset of the testing data whose data points, consisting of label-sketch pairs $( \mathsf { X } , \mathsf { Y } )$ , never occurred in the training data. We then evaluate the same metrics in Figure 6(a)-(e), but due to space reasons we focus on the $50 \%$ observability column. Figure 6(f) shows the results of this evaluation on the subset of 5126 (out of 10000) unseen test data points. The metrics exhibit a similar trend, showing that the models based on sketch learning are able to generalize much better than the baseline models, and that the GED-Sk model performs the best.
|
| 216 |
+
|
| 217 |
+
# 7 RELATED WORK
|
| 218 |
+
|
| 219 |
+
Unconditional, corpus-driven generation of programs has been studied before (Maddison & Tarlow, 2014; Allamanis & Sutton, 2014; Bielik et al., 2016), as has the generation of code snippets conditioned on a context into which the snippet is merged (Nguyen et al., 2013; Raychev et al., 2014; Nguyen & Nguyen, 2015). These prior efforts often use models like $n$ -grams (Nguyen et al., 2013) and recurrent neural networks (Raychev et al., 2014) that are primarily suited to the generation of straight-line programs; almost universally, they cannot guarantee semantic properties of generated programs. Among prominent exceptions, Maddison & Tarlow (2014) use log-bilinear tree-traversal models, a class of probabilistic pushdown automata, for program generation. Bielik et al. (2016) study a generalization of probabilistic grammars known as probabilistic higher-order grammars. Like our work, these papers address the generation of programs that satisfy rich constraints such as the type-safe use of names. In principle, one could replace our decoder and the combinatorial concretizer, which together form an unconditional program generator, with one of these models. However, given our experiments, doing so is unlikely to lead to good performance in the end-to-end problem of conditional program generation.
|
| 220 |
+
|
| 221 |
+
There is a line of existing work considering the generation of programs from text (Yin & Neubig, 2017; Ling et al., 2016; Rabinovich et al., 2017). These papers use decoders similar to the one used in BAYOU, and since they are solving the text-to-code problem, they utilize attention mechanisms not found in BAYOU. Those attention mechanisms could be particularly useful were BAYOU extended to handle natural language evidence. The fundamental difference between these works and BAYOU, however, is the level of abstraction at which learning takes place. These papers attempt to translate text directly into code, whereas BAYOU uses neural methods to produce higher-level sketches that are translated into program code using symbolic methods. This two-step code generation process is central to BAYOU. It ensures key semantic properties of the generated code (such as type safety) and by abstracting away from the learner many lower-level details, it may make learning easier. We have given experimental evidence that this approach can give better results than translating directly into code.
|
| 222 |
+
|
| 223 |
+
Kusner et al. (2017) propose a variational autoencoder for context-free grammars. As an autoencoder, this model is generative, but it is not a conditional model such as ours. In their application of synthesizing molecular structures, given a particular molecular structure, their model can be used to search the latent space for similar valid structures. In our setting, however, we are not given a sketch but only a label for the sketch, and our task is learn a conditional model that can predict a whole sketch given a label.
|
| 224 |
+
|
| 225 |
+
Conditional program generation is closely related to program synthesis (Gulwani et al., 2017), the problem of producing programs that satisfy a given semantic specification. The programming language community has studied this problem thoroughly using the tools of combinatorial search and symbolic reasoning (Alur et al., 2013; Solar-Lezama et al., 2006; Gulwani, 2011; Feser et al., 2015). A common tactic in this literature is to put syntactic limitations on the space of feasible programs (Alur et al., 2013). This is done either by adding a human-provided sketch to a problem instance (Solar-Lezama et al., 2006), or by restricting synthesis to a narrow DSL (Gulwani, 2011; Polozov & Gulwani, 2015).
|
| 226 |
+
|
| 227 |
+
A recent body of work has developed neural approaches to program synthesis. Terpret (Gaunt et al., 2016) and Neural Forth (Riedel et al., 2016) use neural learning over a set of user-provided examples to complete a user-provided sketch. In neuro-symbolic synthesis (Parisotto et al., 2016) and RobustFill (Devlin et al., 2017), a neural architecture is used to encode a set of input-output examples and decode the resulting representation into a Flashfill program. DeepCoder (Balog et al., 2017) uses neural techniques to speed up the synthesis of Flashfill (Gulwani et al., 2015) programs.
|
| 228 |
+
|
| 229 |
+
These efforts differ from ours in goals as well as methods. Our problem is simpler, as it is conditioned on syntactic, rather than semantic, facets of programs. This allows us to generate programs in a complex programming language over a large number of data types and API methods, without needing a human-provided sketch. The key methodological difference between our work and symbolic program synthesis lies in our use of data, which allows us to generalize from a very small amount of specification. Unlike our approach, most neural approaches to program synthesis do not combine learning and combinatorial techniques. The prominent exception is Deepcoder (Balog et al., 2017), whose relationship with our work was discussed in Section 1.
|
| 230 |
+
|
| 231 |
+
# 8 CONCLUSION
|
| 232 |
+
|
| 233 |
+
We have given a method for generating type-safe programs in a Java-like language, given a label containing a small amount of information about a program’s code or metadata. Our main idea is to learn a model that can predict sketches of programs relevant to a label. The predicted sketches are concretized into code using combinatorial techniques. We have implemented our ideas in BAYOU, a system for the generation of API-heavy code. Our experiments indicate that the system can often generate complex method bodies from just a few tokens, and that learning at the level of sketches is key to performing such generation effectively.
|
| 234 |
+
|
| 235 |
+
An important distinction between our work and classical program synthesis is that our generator is conditioned on uncertain, syntactic information about the target program, as opposed to hard constraints on the program’s semantics. Of course, the programs that we generate are type-safe, and therefore guaranteed to satisfy certain semantic constraints. However, these constraints are invariant across generation tasks; in contrast, traditional program synthesis permits instance-specific semantic constraints. Future work will seek to condition program generation on syntactic labels as well as semantic constraints. As mentioned earlier, learning correlations between the syntax and semantics of programs written in complex languages is difficult. However, the approach of first generating and then concretizing a sketch could reduce this difficulty: sketches could be generated using a limited amount of semantic information, and the concretizer could use logic-based techniques (Alur et al., 2013; Gulwani et al., 2017) to ensure that the programs synthesized from these sketches match the semantic constraints exactly. A key challenge here would be to calibrate the amount of semantic information on which sketch generation is conditioned.
|
| 236 |
+
|
| 237 |
+
Acknowledgements This research was supported by DARPA MUSE award #FA8750-14-2-0270 and a Google Research Award.
|
| 238 |
+
|
| 239 |
+
# REFERENCES
|
| 240 |
+
|
| 241 |
+
Androiddrawer. http://www.androiddrawer.com, 2017.
|
| 242 |
+
|
| 243 |
+
Martin Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. Tensorflow: Large-scale machine learning on heterogeneous distributed systems, 2015. URL http://download. tensorflow.org/paper/whitepaper2015.pdf.
|
| 244 |
+
|
| 245 |
+
Miltiadis Allamanis and Charles Sutton. Mining idioms from source code. In FSE, pp. 472–483, 2014.
|
| 246 |
+
|
| 247 |
+
Rajeev Alur, Rastislav Bod´ık, Garvit Juniwal, Milo M. K. Martin, Mukund Raghothaman, Sanjit A. Seshia, Rishabh Singh, Armando Solar-Lezama, Emina Torlak, and Abhishek Udupa. Syntax-guided synthesis. In FMCAD, pp. 1–17, 2013.
|
| 248 |
+
Matej Balog, Alexander L Gaunt, Marc Brockschmidt, Sebastian Nowozin, and Daniel Tarlow. Deepcoder: Learning to write programs. In ICLR, 2017.
|
| 249 |
+
Pavol Bielik, Veselin Raychev, and Martin T Vechev. PHOG: probabilistic model for code. In ICML, pp. 19–24, 2016.
|
| 250 |
+
Jacob Devlin, Jonathan Uesato, Surya Bhupatiraju, Rishabh Singh, Abdel-rahman Mohamed, and Pushmeet Kohli. Robustfill: Neural program learning under noisy I/O. In ICML, 2017.
|
| 251 |
+
John K. Feser, Swarat Chaudhuri, and Isil Dillig. Synthesizing data structure transformations from input-output examples. In PLDI, pp. 229–239. ACM, 2015.
|
| 252 |
+
Alexander L Gaunt, Marc Brockschmidt, Rishabh Singh, Nate Kushman, Pushmeet Kohli, Jonathan Taylor, and Daniel Tarlow. Terpret: A probabilistic programming language for program induction. arXiv preprint arXiv:1608.04428, 2016.
|
| 253 |
+
Sumit Gulwani. Automating string processing in spreadsheets using input-output examples. In POPL, pp. 317–330. ACM, 2011.
|
| 254 |
+
Sumit Gulwani, Jose Hern ´ andez-Orallo, Emanuel Kitzelmann, Stephen H. Muggleton, Ute Schmid, and Ben- ´ jamin Zorn. Inductive programming meets the real world. Communications of the ACM, 58(11):90–99, 2015.
|
| 255 |
+
Sumit Gulwani, Oleksandr Polozov, and Rishabh Singh. Program synthesis. Foundations and Trends in Programming Languages, 4(1-2):1–119, 2017.
|
| 256 |
+
David Ha and Douglas Eck. A neural representation of sketch drawings. arXiv preprint arXiv:1704.03477, 2017.
|
| 257 |
+
Abram Hindle, Earl T Barr, Zhendong Su, Mark Gabel, and Premkumar Devanbu. On the naturalness of software. In ICSE, pp. 837–847, 2012.
|
| 258 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 259 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014.
|
| 260 |
+
Matt J Kusner, Brooks Paige, and Jose Miguel Hern ´ andez-Lobato. Grammar variational autoencoder. ´ arXiv preprint arXiv:1703.01925, 2017.
|
| 261 |
+
Wang Ling, Edward Grefenstette, Karl Moritz Hermann, Toma´s Ko ˇ cisk ˇ y, Andrew Senior, Fumin Wang, and \` Phil Blunsom. Latent predictor networks for code generation. arXiv preprint arXiv:1603.06744, 2016.
|
| 262 |
+
Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008.
|
| 263 |
+
C.J. Maddison and D. Tarlow. Structured generative models of natural source code. In ICML, 2014.
|
| 264 |
+
Zohar Manna and Richard J. Waldinger. Toward automatic program synthesis. Communications of the ACM, 14(3):151–165, 1971.
|
| 265 |
+
Anh Tuan Nguyen and Tien N. Nguyen. Graph-based statistical language model for code. In ICSE, pp. 858– 868, 2015.
|
| 266 |
+
Tung Thanh Nguyen, Anh Tuan Nguyen, Hoan Anh Nguyen, and Tien N. Nguyen. A statistical semantic language model for source code. In ESEC/FSE, pp. 532–542, 2013.
|
| 267 |
+
Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016.
|
| 268 |
+
Emilio Parisotto, Abdel-rahman Mohamed, Rishabh Singh, Lihong Li, Dengyong Zhou, and Pushmeet Kohli. Neuro-symbolic program synthesis. arXiv preprint arXiv:1611.01855, 2016.
|
| 269 |
+
Oleksandr Polozov and Sumit Gulwani. Flashmeta: A framework for inductive program synthesis. In OOPSLA, volume 50, pp. 107–126, 2015.
|
| 270 |
+
Maxim Rabinovich, Mitchell Stern, and Dan Klein. Abstract syntax networks for code generation and semantic parsing. arXiv preprint arXiv:1704.07535, 2017.
|
| 271 |
+
Veselin Raychev, Martin Vechev, and Eran Yahav. Code completion with statistical language models. In PLDI, 2014.
|
| 272 |
+
Sebastian Riedel, Matko Bosnjak, and Tim Rocktaschel. Programming with a differentiable forth interpreter. ¨ CoRR, abs/1605.06640, 2016.
|
| 273 |
+
Eric Schkufza, Rahul Sharma, and Alex Aiken. Stochastic program optimization. Commun. ACM, 59(2): 114–122, 2016.
|
| 274 |
+
Skylot. JADX: Dex to Java decompiler. https://github.com/skylot/jadx, 2017.
|
| 275 |
+
Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. In NIPS, pp. 3483–3491, 2015.
|
| 276 |
+
Armando Solar-Lezama, Liviu Tancau, Rastislav Bod´ık, Sanjit A. Seshia, and Vijay A. Saraswat. Combinatorial sketching for finite programs. In ASPLOS, pp. 404–415, 2006.
|
| 277 |
+
Phillip D Summers. A methodology for LISP program construction from examples. Journal of the ACM (JACM), 24(1):161–175, 1977.
|
| 278 |
+
Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, pp. 3156–3164, 2015.
|
| 279 |
+
Pengcheng Yin and Graham Neubig. A syntactic neural model for general-purpose code generation. arXiv preprint arXiv:1704.01696, 2017.
|
| 280 |
+
Xingxing Zhang, Liang Lu, and Mirella Lapata. Top-down tree long short-term memory networks. In NAACLHLT, pp. 310–320, 2016.
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 7: Programs generated in a typical run of BAYOU, given the API method name readLine and the type FileReader.
|
| 284 |
+
Figure 8: Grammar for AML
|
| 285 |
+
|
| 286 |
+
# A THE AML LANGUAGE
|
| 287 |
+
|
| 288 |
+
Prog $: : =$ skip | Prog1; $\mathsf { P r o g } _ { 2 }$ | call Call | let $x = \mathsf { C a l l } \mid$ if $\mathsf { E x p }$ then $\mathsf { P r o g } _ { 1 }$ else $\mathsf { P r o g } _ { 2 }$ | while $\mathsf { E x p }$ do $\mathsf { P r o g } _ { 1 }$ | try $\mathsf { P r o g } _ { 1 }$ Catch
|
| 289 |
+
Exp $\begin{array} { r l } { \mathrm { : : } = } & { { } \mathsf { S e x p } \mid \mathsf { C a l l } \mid \mathsf { l e t } x = \mathsf { C a l l } : \mathsf { E x p } _ { 1 } } \\ { \mathrm { : } = } & { { } c \mid x } \\ { \mathrm { : } = } & { { } \mathsf { S e x p } _ { 0 } . a ( \mathsf { S e x p } _ { 1 } , \ldots , \mathsf { S e x p } _ { k } ) } \\ { \mathrm { \cdot } \mathrm { : } = } & { { } \mathbf { c a t c h } ( x _ { 1 } ) \mathsf { P r o g } _ { 1 } \mathrm { ~ . ~ . ~ . ~ } \mathbf { c a t c h } ( x _ { k } ) \mathsf { P r o g } _ { k } } \end{array}$
|
| 290 |
+
Sexp
|
| 291 |
+
Call
|
| 292 |
+
Catc
|
| 293 |
+
|
| 294 |
+
AML is a core language that is designed to capture the essence of API usage in Java-like languages. Now we present this language.
|
| 295 |
+
|
| 296 |
+
AML uses a finite set of API data types. A type is identified with a finite set of $A P I$ method names (including constructors); the type for which this set is empty is said to be void. Each method name $a$ is associated with a type signature $( \tau _ { 1 } , \dots , \tau _ { k } ) \ \to \ \tau _ { 0 }$ , where $\tau _ { 1 } , \ldots , \tau _ { k }$ are the method’s input types and $\tau _ { 0 }$ is its return type. A method for which $\tau _ { 0 }$ is void is interpreted to not return a value.
|
| 297 |
+
|
| 298 |
+
Finally, we assume predefined universes of constants and variable names.
|
| 299 |
+
|
| 300 |
+
The grammar for AML is as in Figure 8. Here, $x , x _ { 1 } , \ldots$ are variable names, $c$ is a constant, and $a$ is a method name. The syntax for programs Prog includes method calls, loops, branches, statement sequencing, and exception handling. We use variables to feed the output of one method into another, and the keyword let to store the return value of a call in a fresh variable. $\mathsf { E x p }$ stands for (objectvalued) expressions, which include constants, variables, method calls, and let-expressions such as “let $x = { \mathsf { C a l l } } : { \mathsf { E x p } } ^ { , , }$ , which stores the return value of a call in a fresh variable $x$ , then uses this binding to evaluate the expression $\mathsf { E x p }$ . (Arithmetic and relational operators are assumed to be encompassed by API methods.)
|
| 301 |
+
|
| 302 |
+
The operational semantics and type system for AML are standard, and consequently, we do not describe these in detail.
|
| 303 |
+
|
| 304 |
+
# B ABSTRACTING AML PROGRAMS INTO SKETCHES
|
| 305 |
+
|
| 306 |
+
We define the abstraction function $\alpha$ for the AML language in Figure 9.
|
| 307 |
+
|
| 308 |
+
# C NEURAL NETWORK DETAILS
|
| 309 |
+
|
| 310 |
+
In this section we present the details of the neural networks used by BAYOU.
|
| 311 |
+
|
| 312 |
+
# C.1 THE ENCODER
|
| 313 |
+
|
| 314 |
+
The task of the neural encoder is to implement the encoding function $f$ for labels, which accepts an element from a label, say $\mathsf { X } _ { C a l l s , i }$ as input and maps it into a vector in $d$ -dimensional space, where $d$ is the dimensionality of the latent space of $Z$ . To achieve this, we first convert each element $\mathsf { X } _ { C a l l s , i }$ into its one-hot vector representation, denoted $\mathsf { X } _ { C a l l s , i } ^ { \prime }$ . Then, let $h$ be the number of neural hidden
|
| 315 |
+
|
| 316 |
+
$$
|
| 317 |
+
\begin{array} { r l } { \alpha ( \mathrm { s i b p } ) } & { = \ \mathrm { s i b p } } \\ { \alpha ( \mathrm { c u l l ~ S e v } _ { 0 } , a ( \mathrm { S e v } _ { 1 } , \ldots , \ \mathrm { S e v } _ { b } ) ) } & { = \ \mathrm { e x i l p } _ { \eta , 0 } , a ( \tau _ { 1 } , \ldots , \tau _ { k } ) \mathrm { ~ w h e r e ~ } \tau _ { 1 } \mathrm { ~ i s ~ h e ~ t y p e ~ o f ~ S e p } } \\ { \alpha ( \mathrm { P o g } _ { 1 } , \ldots , \ \mathrm { S e v } _ { b } ) } & { = \ \alpha ( \mathrm { P o g } _ { 1 } ) ; \alpha ( \mathrm { P o g } _ { 2 } ) } & { = \ \alpha ( \mathrm { P o g } _ { 2 } ) } \\ { \alpha ( \mathrm { t e t } _ { x } = \mathrm { S e v } _ { 0 } , a ( \mathrm { S e v } _ { 0 } , \ldots , \ \mathrm { S e v } _ { b } ) ) } & { = \ \mathrm { c u l l ~ } _ { \eta , 0 } , a ( \tau _ { 1 } , \ldots , \ \tau _ { k } ) \mathrm { ~ w h e r e ~ } \tau _ { 1 } \mathrm { ~ i s ~ h e ~ t y p e ~ o f ~ S e p } } \\ { \alpha ( \mathrm { f i e t } _ { x } ) \mathrm { ~ t h e n ~ P o g ~ { F o g } _ { 2 } ~ { \alpha ~ l ~ } = ~ i f ~ } \alpha ( \mathrm { E v } _ { 0 } ) \mathrm { ~ t h e n ~ \alpha ( P o g _ { 1 } ) ~ e k e ~ } \alpha ( \mathrm { P r o g } _ { 2 } ) } \\ { \alpha ( \mathrm { P u l l ~ E e v } _ { 0 } ) \mathrm { ~ t h e ~ t h e ~ t y p e ~ o f ~ { \alpha ~ g } _ { 1 } ~ = ~ \mathrm { w h i l e ~ } \alpha ( \mathrm { C o n d } ) ~ } \mathrm { d o ~ } \alpha ( \mathrm { P r o g } _ { 1 } ) \mathrm { ~ e x i s ~ o f ~ } } \\ { \alpha ( \mathrm { P u l l ~ P o g ~ e a t e h } ( \tau _ { 1 } ) \mathrm { ~ P r o g } _ { 1 } , \ldots \ \mathrm { e a t e h } ( \tau _ { k } ) \mathrm { ~ P r o g } _ { k } ) } & { = \ \mathrm { t r y ~ c o s } ( \mathrm { P r o g } _ { 1 } ) } \\ & { \qquad \mathrm { c u c h } ( \mathrm { P r o g } _ { 1 } ) \ \alpha ( \mathrm { P o g } _ { 1 } ) \ldots \ \mathrm { c a t e h } ( \tau _ { k } ) \mathrm { ~ a n ~ } } \\ & \qquad \mathrm { w h e r e ~ } \tau _ { i } \ \end{array}
|
| 318 |
+
$$
|
| 319 |
+
|
| 320 |
+

|
| 321 |
+
Figure 9: The abstraction function $\alpha$ .
|
| 322 |
+
Figure 10: Tree representation of the sketch in Figure 7(a)
|
| 323 |
+
|
| 324 |
+
units in the encoder for API calls, and let $\mathbf { W } _ { h } \in \mathbb { R } ^ { | C a l l s | \times h }$ , $\mathbf { b } _ { h } \in \mathbb { R } ^ { h }$ , $\mathbf { W } _ { d } \in \mathbb { R } ^ { h \times d }$ , $\mathbf { b } _ { d } \in \mathbb { R } ^ { d }$ be real-valued weight and bias matrices of the neural network. The encoding function $f ( { \sf X } _ { C a l l s , i } )$ can be defined as follows:
|
| 325 |
+
|
| 326 |
+
$$
|
| 327 |
+
f ( \mathsf { X } _ { C a l l s , i } ) = \mathsf { t a n h } ( ( \boldsymbol { \mathbf { W } } _ { h } \boldsymbol { \mathbf { \ell } } _ { h } \boldsymbol { \mathbf { \ell } } _ { i } ^ { \prime } + \boldsymbol { \mathbf { \ell } } _ { h } ) \boldsymbol { \mathbf { \ell } } _ { \star } \boldsymbol { \mathbf { W } } _ { d } + b _ { d } )
|
| 328 |
+
$$
|
| 329 |
+
|
| 330 |
+
where tanh is a non-linearity defined as $\begin{array} { r } { \mathtt { t a n h } ( x ) = \frac { 1 - e ^ { - 2 x } } { 1 + e ^ { - 2 x } } } \end{array}$ 1−e−2x1+e−2x . This would map any given API call into a $d$ -dimensional real-valued vector. The values of entries in the matrices ${ \mathbf W } _ { h } , b _ { h } , { \mathbf W } _ { d }$ and $b _ { d }$ will be learned during training. The encoder for types can be defined analogously, with its own set of matrices and hidden state.
|
| 331 |
+
|
| 332 |
+
# C.2 THE DECODER
|
| 333 |
+
|
| 334 |
+
The task of the neural decoder is to implement the sampler for $\mathsf { Y } \sim P ( Y | Z )$ . This is implemented recursively via repeated samples of production rules $\mathsf { Y } _ { i }$ in the grammar of sketches, drawn as $\mathsf { Y } _ { i } \sim$ $P ( Y _ { i } | \mathbf { Y } _ { i - 1 } , Z )$ , where $\mathbf { Y } _ { i - 1 } = \mathsf { Y } _ { 1 } , \ldots , \mathsf { Y } _ { i - 1 }$ . The generation of each $\mathsf { Y } _ { i }$ requires the generation of a new “path” from a series of previous “paths”, where each path corresponds to a series of production rules fired in the grammar.
|
| 335 |
+
|
| 336 |
+
As a sketch is tree-structured, we use a top-down tree-structured recurrent neural network similar to Zhang et al. (2016), which we elaborate in this section. First, similar to the notion of a “dependency path” in Zhang et al. (2016), we define a production path as a sequence of pairs ${ \langle ( v _ { 1 } , \bar { e } _ { 1 } ) , ( v _ { 2 } , \bar { e } _ { 2 } ) , \ldots , ( v _ { k } , e _ { k } ) \rangle }$ where $v _ { i }$ is a node in the sketch (i.e., a term in the grammar) and $e _ { i }$ is the type of edge that connects $v _ { i }$ with $v _ { i + 1 }$ . Our representation has two types of edges: sibling and child. A sibling edge connects two nodes at the same level of the tree and under the same parent node (i.e., two terms in the RHS of the same rule). A child edge connects a node with another that is
|
| 337 |
+
|
| 338 |
+
$$
|
| 339 |
+
y _ { i } = \{ \begin{array} { l l } { \mathsf { s o f t m a x } ( \mathbf { W } _ { y } ^ { c } \cdot h _ { i } + \mathbf { b } _ { y } ^ { c } ) } & { \mathrm { ~ i f ~ } e _ { i } = c h i l d } \\ { \mathsf { s o f t m a x } ( \mathbf { W } _ { y } ^ { s } \cdot h _ { i } + \mathbf { b } _ { y } ^ { s } ) } & { \mathrm { ~ i f ~ } e _ { i } = s i b l i n g } \end{array}
|
| 340 |
+
$$
|
| 341 |
+
|
| 342 |
+
$$
|
| 343 |
+
\begin{array} { l l } { { \displaystyle h _ { i } ^ { c } = { \mathbf W } _ { h } ^ { c } \cdot h _ { i - 1 } + { \mathbf b } _ { h } ^ { c } + { \mathbf W } _ { v } ^ { c } \cdot v _ { i } ^ { \prime } + { \mathbf b } _ { v } ^ { c } } } & { { \mathrm { ~ w h e r e ~ } } } \\ { { \displaystyle h _ { i } ^ { s } = { \mathbf W } _ { h } ^ { s } \cdot h _ { i - 1 } + { \mathbf b } _ { h } ^ { s } + { \mathbf W } _ { v } ^ { s } \cdot v _ { i } ^ { \prime } + { \mathbf b } _ { v } ^ { s } } } & { { \mathrm { ~ t a n h } ( x ) = \frac { 1 - e ^ { - 2 x } } { 1 + e ^ { - 2 x } } \mathrm { a n d } } } \\ { { \displaystyle h _ { i } = \left\{ \begin{array} { l l } { { \displaystyle \mathrm { t a n h } ( h _ { i } ^ { c } ) } } & { { \mathrm { i f ~ } e _ { i } = c h i l d } } \\ { { \displaystyle \mathrm { t a n h } ( h _ { i } ^ { s } ) } } & { { \mathrm { i f ~ } e _ { i } = s i b l i n g } } \end{array} \right. } } & { { \displaystyle \mathrm { s o f t m a x } ( { \mathbf x } ) _ { j } = \frac { e ^ { x _ { j } } } { \sum _ { k = 1 } ^ { K } e ^ { x _ { k } } } \mathrm { f o r ~ } j \in 1 . . . K } } \end{array}
|
| 344 |
+
$$
|
| 345 |
+
|
| 346 |
+
one level deeper in the tree (i.e., the LHS with a term in the RHS of a rule). We consider a sequence of API calls connected by sequential composition as siblings. The root of the entire tree is a special node named root, and so the first pair in all production paths is (root, child). The last edge in a production path is irrelevant (·) as it does not connect the node to any subsequent nodes.
|
| 347 |
+
|
| 348 |
+
As an example, consider the sketch in Figure 7(a), whose representation as a tree for the decoder is shown in Figure 10. For brevity, we use $s$ and $c$ for sibling and child edges respectively, abbreviate some classnames with uppercase letters in their name, and omit the first pair (root, c) that occurs in all paths. There are four production paths in the tree of this sketch:
|
| 349 |
+
|
| 350 |
+
$$
|
| 351 |
+
\begin{array} { r l } & { 1 . \mathrm { ( } \operatorname { f r y } , c \big ) , \big ( \mathbb { F } \mathrm { R } . \mathrm { n e } \ ( \mathrm { S t r i n g } ) , s \big ) , \big ( \mathbb { B } \mathrm { R } . \mathrm { n e } \ ( \mathrm { F } \mathbb { R } ) , s \big ) , \big ( \mathrm { w h i l e } , c \big ) , \big ( \mathbb { B } \mathrm { R } . \mathrm { r e a d } \mathrm { L i n e } \ ( \mathrm { \Lambda } ) , c \big ) , \big ( \mathrm { s } \mathbf { k i p } , \cdot \big ) } \\ & { 2 . \mathrm { ( } \operatorname { f r y } , c \big ) , \big ( \mathbb { F } \mathrm { R } . \mathrm { n e } \ ( \mathrm { S t r i n g } ) , s \big ) , \big ( \mathbb { B } \mathrm { R } . \mathrm { n e } \ ( \mathrm { F } \mathbb { R } ) , s \big ) , \big ( \mathrm { w h i l e } , s \big ) , \big ( \mathbb { B } \mathrm { R } . \mathrm { c l o s e } \ ( \mathrm { \Lambda } ) , \cdot \big ) } \\ & { 3 . \mathrm { ( } \operatorname { f r y } , s \big ) , \big ( \mathrm { c a t c h } , c \big ) , \big ( \mathrm { F i r F E x c e p t i o n } , c \big ) , \big ( \mathrm { T } . \mathrm { p r i n t s t a c k T r a c e } \ ( \mathrm { \Lambda } ) , \cdot \big ) } \\ & { 4 . \mathrm { ( } \operatorname { f r y } , s \big ) , \big ( \mathrm { c a t c h } , s \big ) , \big ( \mathrm { c a t c h } , c \big ) , \big ( \mathrm { I o E x c e p t i o n } , c \big ) , \big ( \mathrm { T } . \mathrm { p r i n t s t a c k T r a c e } \ ( \mathrm { \Lambda } ) , \cdot \big ) } \end{array}
|
| 352 |
+
$$
|
| 353 |
+
|
| 354 |
+
Now, given a Z and a sequence of pairs $\mathbf Y _ { i } = \langle ( v _ { 1 } , e _ { 1 } ) , \dots , ( v _ { i } , e _ { i } ) \rangle$ along a production path, the next node in the path is assumed to be dependent solely on Z and $\mathbf { Y } _ { i }$ . Therefore, a single inference step of the decoder computes the probability $P ( v _ { i + 1 } | \mathbf { Y } _ { i } , Z )$ . To do this, the decoder uses two RNNs, one for each type of edge $c$ and $s$ , that act on the production pairs in $\mathbf { Y } _ { i }$ . First, all nodes $v _ { i }$ are converted into their one-hot vector encoding, denoted $\boldsymbol { v } _ { i } ^ { \prime }$ .
|
| 355 |
+
|
| 356 |
+
Let $h$ be the number of hidden units in the decoder, and $| G |$ be the size of the decoder’s output vocabulary, i.e., the total number of terminals and non-terminals in the grammar of sketches. Let $\mathbf { W } _ { h } ^ { e } \in \mathbb { R } ^ { \bar { h } \times h }$ and ${ \bf b } _ { h } ^ { e } \in \mathbb { R } ^ { d }$ be the decoder’s hidden state weight and bias matrices, $\mathbf { W } _ { v } ^ { e } \in \mathbb { R } ^ { | G | \times h }$ and $\mathbf { b } _ { v } ^ { e } \in \mathbb { R } ^ { h }$ be the input weight and bias matrices, and $\mathbf { W } _ { y } ^ { e } \in \mathbb { R } ^ { h \times | G | }$ and $\mathbf { b } _ { y } ^ { e } \in \mathbb { R } ^ { | G | }$ be the output weight and bias matrices, where $e$ is the type of edge: either $c$ (child) or $s$ (sibling). We also use “lifting” matrices $\mathbf { W } _ { l } \in \mathbb { R } ^ { d \times h }$ and $\mathbf { b } _ { l } \in \check { \mathbb { R } } ^ { \dot { h } }$ , to lift the $d$ -dimensional vector Z onto the (typically) higher-dimensional hidden state space $h$ of the decoder.
|
| 357 |
+
|
| 358 |
+
Let $h _ { i }$ and $y _ { i }$ be the hidden state and output of the network at time point $i$ . We compute these quantities as given in Figure 11, where tanh is a non-linear activation function that converts any given value to a value between -1 and 1, and softmax converts a given $K$ -sized vector of arbitrary values to another $K$ -sized vector of values in the range [0, 1] that sum to 1—essentially a probability distribution.
|
| 359 |
+
|
| 360 |
+
The type of edge at time $i$ decides which RNN to choose to update the (shared) hidden state $h _ { i }$ and the output $y _ { i }$ . Training consists of learning values for the entries in all the W and b matrices. During training, $\boldsymbol { v } _ { i } ^ { \prime }$ , $e _ { i }$ and the target output are known from the data point, and so we optimize a standard cross-entropy loss function (over all $i$ ) between the output $y _ { i }$ and the target output. During inference, $P ( v _ { i + 1 } | \mathbf { Y } _ { i } , Z )$ is simply the probability distribution $y _ { i }$ , the result of the softmax.
|
| 361 |
+
|
| 362 |
+
A sketch is obtained by starting with the root node pair $( v _ { 1 } , e _ { 1 } ) = ( \mathsf { r o o t } , c h i l d )$ , recursively applying Equation 2 to get the output distribution $y _ { i }$ , sampling a value for $v _ { i + 1 }$ from $y _ { i }$ , and growing the tree by adding the sampled node to it. The edge $e _ { i + 1 }$ is provided as $c$ or $s$ depending on the $v _ { i + 1 }$ that was sampled. If only one type of edge is feasible (for instance, if the node is a terminal in the grammar, only a sibling edge is possible with the next node), then only that edge is provided. If both edges are feasible, then both possibilities are recursively explored, growing the tree in both directions.
|
| 363 |
+
|
| 364 |
+

|
| 365 |
+
Figure 12: 2-dimensional projection of latent space of the GSNN-Sk model
|
| 366 |
+
|
| 367 |
+
Remarks. In our implementation, we generate trees in a depth-first fashion, by exploring a child edge before a sibling edge if both are possible. If a node has two children, a neural encoding of the nodes that were generated on the left is carried onto the right sub-tree so that the generation of this tree can leverage additional information about its previously generated sibling. We refer the reader to Section 2.4 of Zhang et al. (2016) for more details.
|
| 368 |
+
|
| 369 |
+
# D ADDITIONAL EVALUATION
|
| 370 |
+
|
| 371 |
+
In this section, we provide results of additional experimental evaluation.
|
| 372 |
+
|
| 373 |
+
# D.1 CLUSTERING
|
| 374 |
+
|
| 375 |
+
Similar to the visualization of the 2-dimensional latent space in Figure 5, we also plotted the latent space of the GSNN-Sk model trained on sketches. Figure 12 shows this plot. We observed that the latent space is clustered, relatively, more densely than that of our model (keep in mind that the plot colors are different when comparing them).
|
| 376 |
+
|
| 377 |
+
# D.2 QUALITATIVE EVALUATION
|
| 378 |
+
|
| 379 |
+
To give a sense of the quality of the end-to-end generation, we present and discuss a few usage scenarios for our system, BAYOU. In each scenario, we started with a set of API calls, types or keywords as labels that indicate what we (as the user) would like the generated code to perform. We then pick a single program in the top-5 results returned by BAYOU and discuss it. Figure 13 shows three such example usage scenarios.
|
| 380 |
+
|
| 381 |
+
In the first scenario, we would like the system to generate a program to write something to a file by calling write using the type FileWriter. With this label, we invoked BAYOU and it returned with a program that actually accomplishes the task. Note that even though we only specified FileWriter, the program uses it to feed a BufferedWriter to write to a file. This is an interesting pattern learned from data, that file reads and writes in Java often take place in a buffered manner. Also note that the program correctly flushes the buffer before closing it, even though none of this was explicitly specified in the input.
|
| 382 |
+
|
| 383 |
+
In the second scenario, we would like the generated program to set the title and message of an Android dialog. This time we provide no API calls or types but only keywords. With this, BAYOU generated a program that first builds an Android dialog box using the helper class AlertDialog.Builder, and does set its title and message. In addition, the program also adds a button to the dialog box – another interesting pattern learned from data that dialog boxes in Android often have a button, typically to close the dialog. Finally it shows the dialog with these items.
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 13: Qualitative usage scenarios of BAYOU.
|
| 387 |
+
|
| 388 |
+
In the final scenario, we would like BAYOU to generate code to start preview mode in the phone’s camera. We provided simply the API call startPreview as input. With this, the system was automatically able to recognize that we are interested in the camera API, and generate a program that accomplishes the task. Note that the program first obtains the camera parameters, and sets the preview display size (the int arguments are the width and height) before starting the preview. We confirmed from the Android Camera API documentation that this is recommended practice, and the model appears to have learned this automatically from data.
|
parse/train/HkfXMz-Ab/HkfXMz-Ab_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HkfXMz-Ab/HkfXMz-Ab_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HkfXMz-Ab/HkfXMz-Ab_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj.md
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# IMPROVING CALIBRATION FOR LONG-TAILED RECOG-NITION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Deep neural networks often perform poorly when training datasets are heavily classimbalanced. Recently, two-stage methods greatly improve the performances by decoupling representation learning and classifier learning. In this paper, we discover that networks trained on long-tailed datasets are more prone to miscalibrated and over-confident. The two-stage models suffer the same issue as well. We design two novel methods to improve calibration and performance in such scenarios. Motivated by the predicted probability distributions of classes are highly related to the numbers of class instances, we propose a label-aware smoothing to deal with the different degrees of over-confidence for different classes and improve classifier learning. Noting that there is a dataset bias between these two stages because of different samplers, we further propose a shifted batch normalization to solve the dataset bias in the decoupling framework. Through extensive experiments, we also observe that mixup can remedy over-confidence and improve representation learning but has a negative or negligible effect on classifier learning. Our proposed methods set new records on multiple popular long-tailed recognition benchmarks including LT CIFAR 10/100, ImageNet-LT, Places-LT, and iNaturalist 2018.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
With numerous available large-scale and high-quality datasets such as ImageNet (Russakovsky et al., 2015), COCO (Lin et al., 2014), and Places (Zhou et al., 2017), deep convolutional neural networks (CNNs) have made notable breakthroughs in various computer vision tasks such as image recognition (Krizhevsky et al., 2012; He et al., 2016), object detection (Ren et al., 2015) and semantic segmentation (Cordts et al., 2016). These delicate datasets are usually artificially balanced with respect to the number of instances for each object/class. However, in real-world applications, data often follows an unexpected long-tailed distribution, where the numbers of instances for different classes are seriously imbalanced. When training CNNs on such long-tailed datasets, the performances extremely degrade. Motivated by this phenomenon, a number of works have recently emerged that try to explore long-tailed recognition.
|
| 12 |
+
|
| 13 |
+
Recently, many two-stage approaches have achieved significant improvement comparing with onestage methods. Concretely, DRS and DRW (Cao et al., 2019) first train CNNs in a normal way in Stage-1. DRS finetunes CNNs on datasets with class-balanced resampling while DRW finetunes CNNs by assigning different weights to different classes in Stage-2. Zhou et al. (2020) proposed BBN with one-stage to simulate the process of DRS by dynamically combining the instance-balanced sampler and the reverse-balanced sampler. Kang et al. (2020) proposed two-stage decoupling models, cRT and LWS, to further boost the performance: Decoupling models freeze the backbone and just finetune the classifier with class-balanced resampling in Stage-2.
|
| 14 |
+
|
| 15 |
+
Confidence calibration (Niculescu-Mizil & Caruana, 2005; Guo et al., 2017) – the problem of predicting probability estimates representative of the true correctness likelihood – is important for recognition models in many applications (Bojarski et al., 2016; Jiang et al., 2012). In this study, we discover that networks trained on long-tailed datasets are more miscalibrated and over-confident: We draw the reliability diagrams with 15 bins in Fig. 1, which compares the plain model trained on the original CIFAR-100 dataset, the plain model, cRT, and LWS trained on long-tailed CIFAR-100 with imbalanced factor (IF) 100. We observe that networks trained on long-tailed datasets have higher expected calibration errors (ECEs). The two-stage models, cRT and LWS, suffer over-confidence as well. Moreover, Fig. 7 and Fig. 8 (the first two plots) in Appendix B depict that this phenomenon also commonly exists on other long-tailed datasets such as LT CIFAR-10 and ImageNet-LT.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Reliability diagrams of ResNet-32. From left to right: the plain model trained on the original CIFAR-100 dataset, the plain model, cRT, and LWS trained on long-tailed CIFAR-100 with $\mathrm { { I F } = 1 0 0 }$ .
|
| 19 |
+
|
| 20 |
+
Another issue is that two-stage decoupling methods ignore the dataset bias or domain shift (QuioneroCandela et al., 2009) between these two stages. Concretely, two-stage models are first trained on the instanced-balanced dataset $\mathcal { D } _ { \mathrm { I } }$ in Stage-1. Then, models are trained on the class-balanced dataset $\mathcal { D } _ { \mathrm { C } }$ in Stage-2. Obviously, $P _ { \mathcal { D } _ { \mathrm { I } } } ( { \pmb x } , y ) \neq P _ { \mathcal { D } _ { \mathrm { C } } } ( { \pmb x } , y )$ , the distributions of the dataset with different sampling manners are inconsistent. Motivated by the transfer learning methods (Li et al., 2018; Wang et al., 2019), we focus on the batch normalization (Ioffe & Szegedy, 2015) layer to deal with the dataset bias problem.
|
| 21 |
+
|
| 22 |
+
In this work, we propose a Mixup Shifted Label-Aware Smoothing model (MiSLAS) to effectively solve the above issues. Our key contributions are as follows: (i) We discover that models trained on long-tailed datasets are much more miscalibrated and over-confident than them trained on balanced datasets. The two-stage models suffer the same problem as well. (ii) We find that mixup can remedy over-confidence and have a positive effect on representation learning but a negative or negligible effect on classifier learning. To further enhance classifier learning and calibration, we propose a label-aware smoothing to handle the different degrees of over-confidence for different classes. (iii) We are the first to note the dataset bias or domain shift in two-stage resampling methods for long-tailed recognition. To deal with the dataset bias in the decoupling framework, we propose shift learning on the batch normalization layer, which can greatly improve the performance.
|
| 23 |
+
|
| 24 |
+
We extensively validate our MiSLAS on multiple long-tailed recognition benchmark datasets, i.e., LT CIFAR-10, LT CIFAR-100, ImageNet-LT, Places-LT, and iNaturalist 2018. Experimental results manifest that the effectiveness and our method yields new state-of-the-art.
|
| 25 |
+
|
| 26 |
+
# 2 RELATED WORKS
|
| 27 |
+
|
| 28 |
+
Re-sampling and re-weighting. There are two groups of re-sampling strategies: over-sampling the tail-class images (Shen et al., 2016; Buda et al., 2018; Byrd & Lipton, 2019) and under-sampling the head-class images (Japkowicz & Stephen, 2002; Buda et al., 2018). Over-sampling is regularly useful on large datasets and often suffers from heavy over-fitting to tail classes especially on small datasets. For under-sampling, it discards a large portion of data, which inevitably causes degradation of the generalization ability of deep models. Re-weighting (Huang et al., 2016; Wang et al., 2017) is another prominent strategy. It assigns different weights for classes and even instances. The vanilla re-weighting method gives class weights in reverse proportion to the number of samples of classes. However, with large-scale data, re-weighting makes the deep models difficult to optimize during training. Cui et al. (2019) relieved the problem using the effective numbers to calculate the class weights. Another line of work is to adaptively re-weight each instance, e.g., Focal loss (Lin et al., 2017) assigned smaller weights for well-classified samples.
|
| 29 |
+
|
| 30 |
+
Network calibration and regularization. Calibrated confidence is significant for classification models in many applications. The calibration of modern neural networks is first discussed in Guo et al. (2017). The authors discovered that model capacity, normalization, and regularization have strong effects on network calibration. mixup (Zhang et al., 2018) is a regularization technique that is proposed to train with interpolations of inputs and labels. mixup inspires several follow-ups like manifold mixup (Verma et al., 2019), CutMix (Yun et al., 2019), and Remix (Chou et al., 2020) that have shown significant improvement over mixup. Thulasidasan et al. (2019) found that CNNs trained with mixup are significantly better calibrated. Label smoothing (Szegedy et al., 2016) is another regularization technique that encourages the model to be less over-confident. Unlike cross-entropy computes loss upon the ground truth labels, label smoothing computes loss upon a soft version of the label, which can relieve the over-fitting and increase calibration and reliability (Müller et al., 2019).
|
| 31 |
+
|
| 32 |
+
Table 1: Top-1 accuracy of the decoupling models (cRT and LWS) for ResNet families trained on the ImageNetLT dataset. We vary the augmentation strategies (with or without mixup $\alpha = 0 . 2$ ) on both two stages.
|
| 33 |
+
|
| 34 |
+
<table><tr><td rowspan="2">Training setup for two stages</td><td colspan="2">ResNet-10</td><td colspan="2">ResNet-50</td><td colspan="2">ResNet-101</td><td colspan="2">ResNet-152</td></tr><tr><td>cRT LWS|</td><td></td><td>cRT LWS|</td><td></td><td>cRT</td><td>LWS</td><td>cRT1</td><td>LWS</td></tr><tr><td>Stage-1 (no mixup) Stage-1 (mixup)</td><td>36.8 35.7</td><td>36.8 35.7</td><td>45.8 45.6</td><td>45.8 45.6</td><td>47.3 47.7</td><td>47.3 47.7</td><td>48.7 48.4</td><td>48.7 48.4</td></tr><tr><td>Stage-1 (no mixup) + Stage-2 (no mixup) Stage-1 (no mixup) + Stage-2 (mixup)</td><td>43.3 43.0</td><td>43.5 43.3</td><td>50.3 50.2</td><td>51.2 51.1</td><td>51.4 51.4</td><td>52.3 52.2</td><td>52.7 52.8</td><td>53.8 53.6</td></tr><tr><td>Stage-1 (mixup) + Stage-2 (no mixup) Stage-1(mixup) + Stage-2 (mixup)</td><td>43.4 43.3</td><td>42.9 42.8</td><td>51.7 51.6</td><td>52.0 51.9</td><td>53.1 53.0</td><td>53.5 53.5</td><td>54.2 54.1</td><td>54.6 54.5</td></tr></table>
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
Figure 2: Classifier weight norms for the ImageNet-LT validation set when classes are sorted by descending values of $N _ { j }$ . Left: weight norms of cRT with or without mixup. Right: weight norms of LWS with or without mixup. (light shade: true norm, dark lines: smooth version)
|
| 38 |
+
|
| 39 |
+
Two-stage methods. Cao et al. (2019) first proposed deferred re-weighting (DRW) and deferred re-sampling (DRS) that are superior to conventional one-stage methods: Stage-2, starting from better features, adjusts the decision boundary and locally fine-tunes the features. Recently, Kang et al. (2020) and Zhou et al. (2020) concluded that although class re-balance strategies matter when jointly training representation and classifier, instance-balanced sampling gives more general representations. Based on this observation, Kang et al. (2020) achieved state-of-the-art results by decomposing representation and classifier learning, i.e., first train the deep models with instance-balanced sampling, then fine-tune the classifier with class-balanced sampling while keeping parameters of representation learning fixed. Similarly, Zhou et al. (2020) integrated mixup training into the proposed cumulative learning strategy with which they bridged the representation learning and classifier re-balancing. The cumulative learning strategy requires dual samplers: instance-balanced and reversed instance-balanced sampler.
|
| 40 |
+
|
| 41 |
+
# 3 MAIN APPROACH
|
| 42 |
+
|
| 43 |
+
# 3.1 IMPROVING CALIBRATION AND REPRESENTATION LEARNING BY MIXUP
|
| 44 |
+
|
| 45 |
+
For the two-stage learning framework, Kang et al. (2020) and Zhou et al. (2020) found that instancebalanced sampling gives the most generalizable representations among other sampling methods. Thulasidasan et al. (2019) found that networks trained with mixup are better calibrated. When using instance-balanced sampling, to further improve the representation generalization and relieve over-confidence, we explore the effect of mixup in the two-stage decoupling framework.
|
| 46 |
+
|
| 47 |
+
Here, we train two two-stage models, i.e. cRT and LWS, on ImageNet-LT for 180 epochs in Stage-1 and finetune for 10 epochs in Stage-2, respectively. We vary the training setup (with/without mixup $\alpha = 0 . 2$ ) for both two stages. Top-1 accuracy results of these variants are listed in Table 1. From it, we conclude that: (i) When applying mixup, the performance improvements of Stage-1 are ignorable but the performances of Stage-2 are greatly enhanced for both cRT and LWS. (ii) Applying additional mixup in Stage-2 has no obvious improvement or even damages the performance, which means that mixup encourages representation learning but has a negative or negligible effect on classifier learning.
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 3: Violin plot of predicted probability distributions for different parts of classes, head (more than 100 images), medium (20 to 100 images), and tail (less than 20 images) on LT CIFAR-100, $\mathrm { { I F } = 1 0 0 }$ . The upper half part in light blue: LWS (cross-entropy). The bottom half part in deep blue: LWS (label-aware smoothing).
|
| 51 |
+
|
| 52 |
+
We also draw the final classifier weight norms of these variants in Fig. 2. We show the $L _ { 2 }$ norms of the weight vectors for all classes, as well as the training data distribution sorted in a descending manner concerning the number of instances. We observe that when applying mixup (orange line), the weight norms of the tail classes uniformly tend to become larger and the weight norms of the head classes are decreased, which means mixup may be more friendly to the tail classes.
|
| 53 |
+
|
| 54 |
+
The analysis of calibration for networks whether adding mixup will be discussed in our experiment part (Sec. 4.2). Due to the poor and unsatisfied enhancement of mixup for classifier learning, we further propose a label-aware smoothing to improve both the calibration and classifier learning.
|
| 55 |
+
|
| 56 |
+
# 3.2 IMPROVING CALIBRATION AND CLASSIFIER LEARNING BY LABEL-AWARE SMOOTHING
|
| 57 |
+
|
| 58 |
+
As discussed in the introduction part and Sec. 3.1, two-stage models suffer serious over-confidence and there is no significant improvement for classifier learning when adding additional mixup. In this subsection, we try to analyze and deal with these two issues. Suppose that the weight of the classifier is $\pmb { W } \in \mathbb { R } ^ { M \times K }$ , where $M$ is the number of features and $K$ is the number of classes. The cross-entropy encourages the whole network to be over-confident on the head classes: Concretely, the cross-entropy loss after the softmax activation is $l ( y , p ) = - \log ( p _ { y } ) = - { \pmb w } _ { y } ^ { \top } { \pmb x } + \log ( \sum \exp ( { \pmb w } _ { i } ^ { \top } { \pmb x } ) )$ , where $y \in \{ 1 , 2 , . . . , K \}$ is the label, $\pmb { x } \in \mathbb { R } ^ { M }$ is the feature vector send to classifier and ${ \pmb w } _ { i }$ is the $i$ -th column vector of $W$ . The optimal solution is $\pmb { w } _ { y _ { . } } ^ { * } \top \pmb { x } = \operatorname { i n f }$ while keeping others ${ \pmb w } _ { i } ^ { \top } { \pmb x }$ , $i \neq y$ , small enough. Because the head classes contain much more training examples, the network makes the weight norm $\| \pmb { w } \|$ of the head classes become larger to near the optimal solution as much as possible, which results that their predicted probabilities mainly concentrate near 1.0 (see Fig. 3, the upper half part showing in light blue). Another fact we can get from Fig. 3 is that the distributions of predicted probability are severely related to the instance numbers. Unlike balanced recognition, we claim that applying different strategies for different classes is extremely necessary for the long-tailed problem.
|
| 59 |
+
|
| 60 |
+
Here, we propose a label-aware smoothing to solve the over-confidence in cross-entropy and the different distributions of predicted probability issue. The mathematical computation of label-aware smoothing is:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
l ( q , p ) = - \sum _ { i = 1 } ^ { K } q _ { i } \log p _ { i } , q _ { i } = \left\{ \begin{array} { l l } { 1 - \epsilon _ { y } = 1 - f ( N _ { y } ) , } & { i = y , } \\ { \frac { \epsilon _ { y } } { K - 1 } = \frac { f ( N _ { y } ) } { K - 1 } , } & { \mathrm { o t h e r w i s e } , } \end{array} \right.
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where $\epsilon _ { y }$ is a small label smoothing factor for Class- $_ y$ and relates to its class number $N _ { y }$ . Now the optimal solution becomes:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
{ \pmb w } _ { i } ^ { * } ^ { \top } { \pmb x } = \left\{ \begin{array} { l l } { \log \left( \frac { ( K - 1 ) ( 1 - \epsilon _ { y } ) } { \epsilon _ { y } } \right) + c , } & { i = y , } \\ { c , } & { \mathrm { o t h e r w } } \end{array} \right.
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
where $c$ can be an arbitrary real number. Comparing with the infinite optimal solution in cross-entropy, the label-aware smoothing encourages a finite output, which can get more generalized results and remedy over-fitting. We suppose the labels of the long-tailed dataset are assigned in a descending manner concerning the number of instances, i.e., $N _ { 1 } \geq N _ { 2 } \geq . . . \geq N _ { K }$ . Because the head classes contain more various and diverse examples, the predicted probabilities are more promising than them of tail classes. Thus, we suggest classes with larger instance numbers should be penalized larger label smoothing factors, that is, the related function $f ( N _ { y } )$ should be negatively correlated to $N _ { y }$ . We define three types of related function $f ( N _ { y } )$ :
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\epsilon _ { y } = f ( N _ { y } ) = \left\{ \begin{array} { l l } { { \mathrm { ( C o n c a v e ) } } } & { { \epsilon _ { K } + \left( \epsilon _ { 1 } - \epsilon _ { K } \right) \sin \left[ \frac { \pi ( N _ { y } - N _ { K } ) } { 2 ( N _ { 1 } - N _ { K } ) } \right] , \qquad y = 1 , 2 , . . . , K , } } \\ { { } } & { { } } \\ { { \mathrm { ( L i n e a r ) } } } & { { \epsilon _ { K } + \left( \epsilon _ { 1 } - \epsilon _ { K } \right) \frac { N _ { y } - N _ { K } } { N _ { 1 } - N _ { K } } , \qquad y = 1 , 2 , . . . , K , } } \\ { { } } & { { } } \\ { { \mathrm { ( C o n v e x ) } } } & { { \epsilon _ { 1 } + \left( \epsilon _ { 1 } - \epsilon _ { K } \right) \sin \left[ \frac { 3 \pi } { 2 } + \frac { \pi ( N _ { y } - N _ { K } ) } { 2 ( N _ { 1 } - N _ { K } ) } \right] , \quad y = 1 , 2 , . . . , K , } } \end{array} \right.
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $\epsilon _ { 1 }$ and $\epsilon _ { K }$ are two hyperparameters. If we set $\epsilon _ { 1 } \geq \epsilon _ { K }$ , then we can get $\epsilon _ { 1 } \geq \epsilon _ { 2 } \geq . . . \geq \epsilon _ { K }$ . It means that if the instance number $N _ { y }$ for Class- $y$ is larger, label-aware smoothing will allocate a larger smoothing factor and lower the fitting probability to relieve the over-confidence because the head and medium classes are more likely to be over-confident than the tail classes (see Fig. 3).
|
| 79 |
+
|
| 80 |
+
As the form of label-aware smoothing is more complicated than cross-entropy, we propose a more generalized classifier learning framework to fit it. Here we give a quick review about cRT and LWS: cRT tries to learn a new classifier weight, which contains $K M$ learnable parameters. LWS is restricted to learn the weight scaling vector $\bar { \mathbf { \boldsymbol { s } } } \in \mathbb { R } ^ { K }$ , which contains only $K$ learnable parameters. By contrast, cRT has more learnable parameters. It means cRT has a more powerful representation ability. LWS tends to obtain better validation losses and performances on large-scale datasets (refer to the experiment part in Kang et al. (2020)). It means LWS has a better generalization property. To combine the advantages of both cRT and LWS, we redesign the classifier framework in Stage-2:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
z = \mathrm { d i a g } ( s ) \left( a { \cal W } + \Delta { \cal W } \right) ^ { \top } x .
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
In Eqn. (3), we fix the original classifier weight $W$ in Stage-2. If we make the learnable scaling vector $\pmb { s }$ fixed, set $\mathbf { \delta } _ { \mathbf { { s } } } = \mathbf { 1 } \ \mathbf { \delta } _ { \mathbf { { l } } }$ , $a = 0$ , and just learn the new classifier weight $\Delta W \in \mathbb { R } ^ { M \times K }$ , Eqn. (4) will degrade to cRT. Because LWS fixes the original classifier weights $W$ and only learns the scaling $\pmb { s }$ , Eqn. (4) will degrade to LWS if we set $a = 1$ and $\Delta W = \mathbf { 0 }$ . In most cases, LWS generally achieves better results than cRT on large scale datasets. Thus, we let $\pmb { s }$ learnable and set $a = 1$ . We also make $\Delta \mathbf { W }$ learnable to improve the representation ability but optimize $\Delta \mathbf { W }$ by a different learning rate. $\Delta \mathbf { W }$ can be viewed as doing a shift transformation on $W$ . This transformation can change the direction of the original weight vector $\pmb { w }$ in $W$ , which is what LWS cannot do.
|
| 87 |
+
|
| 88 |
+
# 3.3 SHIFT LEARNING ON BATCH NORMALIZATION
|
| 89 |
+
|
| 90 |
+
In the two-stage training framework, models are first trained with instance-balanced sampling in Stage-1 and then trained with class-balanced sampling in Stage-2. Since the framework involves two samplers, or two datasets: the instance-balanced dataset $\mathcal { D } _ { \mathrm { I } }$ and the class-balanced dataset $\mathcal { D } _ { \mathrm { C } }$ , we can regard this two-stage training framework as a derivative of transfer learning approaches. However, if we view the two-stage decoupling training framework from the transfer learning perspective, fixing the backbone part and just fine-tuning the classifier in Stage-2 will be clearly unreasonable, especially for the batch normalization (BN) layers.
|
| 91 |
+
|
| 92 |
+
Concretely, we suppose that the input of the network is $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ , the input feature of some BN layer is $g ( \pmb { x } _ { i } )$ , and the mini-batch size is $m$ . The running mean and the running variance of Channel- $j$ for these two stages are:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r l } & { \pmb { \mu } _ { \mathrm { I } } ^ { ( j ) } = \displaystyle \frac { 1 } { m } \sum _ { i = 1 } ^ { m } g ( { \pmb x } _ { i } ) ^ { ( j ) } , \quad \pmb { \sigma } _ { \mathrm { I } } ^ { 2 ^ { ( j ) } } = \displaystyle \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \left[ g ( { \pmb x } _ { i } ) ^ { ( j ) } - \pmb { \mu } _ { \mathrm { I } } ^ { ( j ) } \right] ^ { 2 } , \quad \pmb { x } _ { i } \sim P _ { { \mathcal { D } } _ { \mathrm { I } } } ( { \pmb x } , y ) , } \\ & { \pmb { \mu } _ { \mathrm { C } } ^ { ( j ) } = \displaystyle \frac { 1 } { m } \sum _ { i = 1 } ^ { m } g ( { \pmb x } _ { i } ) ^ { ( j ) } , \quad \pmb { \sigma } _ { \mathrm { C } } ^ { 2 ^ { ( j ) } } = \displaystyle \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \left[ g ( { \pmb x } _ { i } ) ^ { ( j ) } - \pmb { \mu } _ { \mathrm { C } } ^ { ( j ) } \right] ^ { 2 } , \quad \pmb { x } _ { i } \sim P _ { { \mathcal { D } } _ { \mathrm { C } } } ( { \pmb x } , y ) . } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 4: Reliability diagrams of ResNet-32 trained on LT CIFAR-100, $\mathrm { { I F } = 1 0 0 }$ . From left to right: cRT with mixup, LWS with mixup, LWS with mixup and shifted BN, and MiSLAS. It is better to look together with Fig. 1.
|
| 100 |
+
|
| 101 |
+
Due to the different sampling strategies, the composition ratios of the head, medium, and tail classes are also totally different, which leads to $P _ { \mathcal { D } _ { \mathrm { I } } } ( \pmb { x } , y ) \neq P _ { \mathcal { D } _ { \mathrm { C } } } ( \pmb { x } , y )$ . Calculated by Eqn. (5) and (6), there exist some biases in $\pmb { \mu }$ and $\pmb { \sigma }$ under two sampling strategies, i.e., $\mu _ { \mathrm { I } } \neq \mu _ { \mathrm { C } }$ , and $\sigma _ { \mathrm { I } } ^ { 2 } \neq \sigma _ { \mathrm { C } } ^ { 2 }$ Thus, it is clearly infeasible for the decoupling framework that BN shares mean and variance across datasets with two sampling strategies. Motivated by AdaBN (Li et al., 2018) and TransNorm (Wang et al., 2019), we unfreeze the update procedures of the running mean $\pmb { \mu }$ and running variance $\sigma$ but fix the learnable linear transformation parameters $_ { \pmb { \alpha } }$ and $\beta$ for a better normalization in Stage-2.
|
| 102 |
+
|
| 103 |
+
# 4 EXPERIMENTS
|
| 104 |
+
|
| 105 |
+
# 4.1 EXPERIMENTAL SETUP
|
| 106 |
+
|
| 107 |
+
Our experimental setup including the implementation details and evaluation protocol mainly follows Cao et al. (2019) for LT CIFAR-10 and LT CIFAR-100, and Kang et al. (2020) for ImageNet-LT, Places-LT, and iNuturalist 2018. Please see Appendix A for further details.
|
| 108 |
+
|
| 109 |
+
# 4.2 ABLATION STUDY
|
| 110 |
+
|
| 111 |
+
Improving calibration. Here we show the reliability diagrams with 15 bins of our methods in Fig. 4. Comparing with Fig. 1 in the introduction part, both the mixup and label-aware smoothing can not only largely enhance the network calibration (even lower ECEs than them on balanced datasets) but also greatly improve the performance for long-tailed recognition. The similar trends can also be found on LT CIFAR-10, ImageNet-LT, and Places-LT (please see the figures in Appendix B for detail), which proves the powerful effects of the proposed method on calibration. According to all experiment results, training networks on imbalanced datasets leads to more severe over-confidence. Since the conventional mixup and label-smoothing both contain the operation of softening the ground truth labels, which may suggest that training with hard labels is likely to be another contributing factor leading to network over-confidence.
|
| 112 |
+
|
| 113 |
+
Further analysis of label-aware smoothing. In our label-aware smoothing, there are two hyperparameters in Eqn. (3), $\epsilon _ { 1 }$ and $\epsilon _ { K }$ , which control the penalties of classes. In recognition system, if the predicted probability of some Class- $y$ is larger than 0.5, the classifier will classify the input to Class- $y$ . Thus, to ensure reasonability, we limit $0 \le \epsilon _ { K } \le \epsilon _ { 1 } \le 0 . 5$ . Here we conduct a comparing experiment for varying $\epsilon _ { 1 }$ and $\epsilon _ { K }$ both from 0.0 to 0.5 on LT CIFAR-100 with imbalanced factor 100. We plot the performance matrix upon $\epsilon _ { 1 }$ and $\epsilon _ { k }$ in Fig. 5 for all possible variants. From it, the classification accuracy can be further improved by $0 . 9 \%$ comparing with the conventional cross-entropy $( \epsilon _ { 1 } = 0$ , $\epsilon _ { K } = 0$ , green square) when we pick $\epsilon _ { 1 } = 0 . 4$ , $\epsilon _ { K } = 0 . 1$ (orange square) for label-aware smoothing. A more surprising improvement (growing by $3 . 3 \%$ ) can be found on LT CIFAR-10 (see Appendix D.1 for detail). We also find that the concave related function $f ( \cdot )$ in Eqn. (3) achieves the best performance but the gain is quite limited (refer Appendix D.2 for detail).
|
| 114 |
+
|
| 115 |
+
To visualize the change in predicted probability distributions, we train two LWS models, one with cross-entropy and the other with label-aware smoothing on long-tailed CIFAR-100 with imbalanced factor 100. The cross-entropy-based distributions of the head, medium, and tail classes are showing in the upper half part of Fig. 3 in light blue. The label-aware smoothing-based distributions are showing in the bottom half part in deep blue. We observe that the over-confidence of head and medium classes relieve greatly, and the whole distribution of the tail classes slightly moves right (a larger mean) when using label-aware smoothing. This empirical visualization is consistent with our analysis mentioned in Sec. 3.2.
|
| 116 |
+
|
| 117 |
+
Table 2: Ablation study for all proposed modules on long-tailed CIFAR-100, $\scriptstyle { \mathrm { I F } = 1 0 0 }$ . MU: applying mixup just in Stage-1. SL: shift learning on batch normalization. LAS: label-aware smoothing.
|
| 118 |
+
|
| 119 |
+
<table><tr><td colspan="3">Module</td><td colspan="2">LT CIFAR-100</td></tr><tr><td>MU</td><td>SL</td><td>LAS</td><td>100 50</td><td>10</td></tr><tr><td>区</td><td>区</td><td>区</td><td>41.2</td><td>46.0 58.5</td></tr><tr><td>回</td><td>区</td><td>区</td><td>44.2 50.6</td><td>62.2</td></tr><tr><td>回</td><td>回</td><td>区</td><td>45.3 51.4</td><td>62.8</td></tr><tr><td>回</td><td>回</td><td>回</td><td>47.0</td><td>52.3 63.0</td></tr></table>
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 5: Ablation study of two hyperparameters $\epsilon _ { 1 }$ and $\epsilon _ { K }$ in label-aware smoothing.
|
| 125 |
+
Figure 6: Visualization of the changes in the running mean $\pmb { \mu }$ and variance $\sigma ^ { 2 }$ . The ResNet-32 based model is trained on LT CIFAR-100 with imbalanced factor 100. Left: $\pmb { \mu }$ and $\sigma ^ { 2 }$ in the first BN of ResNet-32, which contains 16 channels. Right: $\pmb { \mu }$ and $\sigma ^ { 2 }$ in the last BN of ResNet-32, which contains 64 channels.
|
| 126 |
+
|
| 127 |
+
Further analysis of shift learning. In this part, we conduct an empirical experiment to show the effectiveness and reasonability of shift learning on BN. We train the LWS model on long-tailed CIFAR-100 with imbalanced factor 100. After 10 epochs finetuning in Stage-2, the model trained with BN shifting achieves accuracy at $4 5 . 3 \%$ , which is $1 . 1 \%$ higher than it without BN shifting. We also draw a visualization of the change in BN. As shown in Fig. 6, we see that there indeed exist biases in $\pmb { \mu }$ and $\sigma ^ { 2 }$ between the dataset using different sampling strategies. Due to the composition ratios of the head classes, medium classes and tail classes are different in terms of different sampling strategies, the statistic running mean $\pmb { \mu }$ and running variance $\sigma ^ { 2 }$ are certainly different. We also find some interesting phenomenons need for future exploration: (i) The changes in the running variance $\sigma ^ { 2 }$ are larger than the changes in the running mean $\pmb { \mu }$ . (ii) The changes of $\pmb { \mu }$ and $\sigma ^ { 2 }$ in deep BN layers are quite smaller than them in shallow BN layers.
|
| 128 |
+
|
| 129 |
+
Overall, Table 2 shows the ablation investigation on the effects of mixup (adding mixup in Stage1, MU), shift learning on batch normalization (SL), and label-aware smoothing (LAS). From it, each proposed module can further improve the performances on long-tailed CIFAR-100 for all commonly-used imbalanced factors, which firmly demonstrates the effectiveness.
|
| 130 |
+
|
| 131 |
+
# 4.3 COMPARISON WITH THE STATE-OF-THE-ART
|
| 132 |
+
|
| 133 |
+
In this subsection, we compare the proposed method against previous one-stage methods, such as Range Loss (Zhang et al., 2017), LDAM Loss (Cao et al., 2019), FSLwF (Gidaris & Komodakis, 2018), and OLTR (Liu et al., 2019), and against previous two-stage methods, such as DRS-like, DRW-like (Cao et al., 2019), LFME (Xiang & Ding, 2020), cRT, and LWS (Kang et al., 2020). For fair comparisons, we also add mixup on the LWS and cRT models. Remix (Chou et al., 2020) is a recently proposed augmentation method for long-tail recognition. Because BBN (Zhou et al., 2020) has double samplers and is trained in a mixup-like manner, we directly compare our method with it.
|
| 134 |
+
|
| 135 |
+
Table 3: Top-1 accuracy $( \% )$ for ResNet-32 models trained on long tailed CIFAR-10 and CIFAR-100.
|
| 136 |
+
|
| 137 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">Long-tailed CIFAR-10</td><td colspan="3">Long-tailed CIFAR-100</td></tr><tr><td>100</td><td>50</td><td>10</td><td>100</td><td>50</td><td>10</td></tr><tr><td>CE</td><td>70.4</td><td>74.8</td><td>86.4</td><td>38.4</td><td>43.9</td><td>55.8</td></tr><tr><td>mixup</td><td>73.1</td><td>77.8</td><td>87.1</td><td>39.6</td><td>45.0</td><td>58.2</td></tr><tr><td>LDAM+DRW</td><td>77.1</td><td>81.1</td><td>88.4</td><td>42.1</td><td>46.7</td><td>58.8</td></tr><tr><td>BBN(include mixup)</td><td>79.9</td><td>82.2</td><td>88.4</td><td>42.6</td><td>47.1</td><td>59.2</td></tr><tr><td>Remix+DRW(30 epochs)</td><td>79.8</td><td>=</td><td>89.1</td><td>46.8</td><td>-</td><td>61.3</td></tr><tr><td>cRT+mixup</td><td>79.1</td><td>84.2</td><td>89.8</td><td>45.1</td><td>50.9</td><td>62.1</td></tr><tr><td>LWS+mixup</td><td>76.3</td><td>82.6</td><td>89.6</td><td>44.2</td><td>50.6</td><td>62.2</td></tr><tr><td>MiSLAS</td><td>82.1</td><td>85.8</td><td>89.9</td><td>47.0</td><td>52.3</td><td>63.0</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Table 4: Top-1 accuracy $( \% )$ on ImageNet-LT (left), iNaturalist 2018 (center) and Place-LT (right).
|
| 140 |
+
|
| 141 |
+
<table><tr><td>Method</td><td>ResNet-50</td></tr><tr><td>CE</td><td>44.6</td></tr><tr><td>CE+DRW</td><td>48.5</td></tr><tr><td>Focal+DRW</td><td>47.9</td></tr><tr><td>LDAM+DRW</td><td>48.8</td></tr><tr><td>CRT+mixup LWS+mixup MiSLAS</td><td>51.7 52.0 52.7</td></tr></table>
|
| 142 |
+
|
| 143 |
+
(a) ImageNet-LT (b) iNaturalist 2018 (c) Place-LT
|
| 144 |
+
|
| 145 |
+
<table><tr><td rowspan=1 colspan=4>Method</td><td rowspan=1 colspan=1>ResNet-50</td></tr><tr><td rowspan=1 colspan=4>CB-FocalLDAM+DRW</td><td rowspan=1 colspan=1>61.168.0</td></tr><tr><td rowspan=1 colspan=4>BBN(include mixup)</td><td rowspan=1 colspan=1>69.6</td></tr><tr><td rowspan=1 colspan=4>Remix+DRW</td><td rowspan=1 colspan=1>70.5</td></tr><tr><td rowspan=1 colspan=3>cRT+mixup</td><td rowspan=1 colspan=1>up</td><td rowspan=1 colspan=1>70.2</td></tr><tr><td rowspan=2 colspan=4>LWS+mixupMiSLAS</td><td rowspan=1 colspan=1>mixup</td></tr><tr><td rowspan=1 colspan=1>71.6</td></tr></table>
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Method</td><td>ResNet-152</td></tr><tr><td>Range Loss</td><td>35.1</td></tr><tr><td>FSLwF</td><td>34.9</td></tr><tr><td>OLTR OLTR+LFME</td><td>35.9 36.2</td></tr><tr><td></td><td>38.3</td></tr><tr><td>cRT+mixup LWS+mixup</td><td>39.7</td></tr><tr><td>MiSLAS</td><td>40.4</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Experimental results on CIFAR-LT. We conduct extensive experiments on long-tailed CIFAR-10 and CIFAR-100 with imbalanced factors of 10, 50, and 100, which is the same as the previous setting (Cao et al., 2019; Zhou et al., 2020). The experimental results are summarized in Table 3. Compared with previous methods ( $^ +$ mixup, one/two-stage), our MiSLAS outperforms all previous methods by a large margin. Moreover, this superiority of the proposed method holds for all imbalanced factors on both long-tailed CIFAR-10 and CIFAR-100.
|
| 150 |
+
|
| 151 |
+
Experimental results on ImageNet-LT, iNaturalist 2018, and Place-LT. We further verify the effectiveness of our method on three large-scale imbalanced datasets, i.e., ImageNet-LT, iNaturalist 2018, and Place-LT. Table 4 lists experimental results on ImageNet-LT (left), iNaturalist 2018 (center), and Places-LT (right). Notably, our MiSLAS still outperforms all competing approaches and sets new state-of-the-art records for all three large-scale long-tailed benchmarks. More detailed results about the split class accuracies and different backbones on these three datasets are listed in Appendix C.
|
| 152 |
+
|
| 153 |
+
# 5 CONCLUSION
|
| 154 |
+
|
| 155 |
+
In this paper, we discover that models trained on long-tailed datasets are more miscalibrated and over-confident than them trained on balanced datasets. The two-stage models suffer the same issue as well. To relieve over-confidence, we propose two solutions: (i) We find that mixup can remedy over-confidence and have a positive effect on representation learning but a negative or negligible effect on classifier learning. (ii) To further improve classifier learning and calibration, we propose label-aware smoothing to handle the different degrees of over-confidence for different classes. We are the first to note the dataset bias or domain shift in two-stage resampling methods for long-tailed recognition. To solve the dataset bias producing by different re-sampling in the decoupling framework, we propose shift learning on the batch normalization layer and this novel model can greatly improve the performance. Extensive quantitative and qualitative experiments on multiple benchmark datasets show that our MiSLAS achieves superior performances over the state-of-the-art methods.
|
| 156 |
+
|
| 157 |
+
REFERENCES
|
| 158 |
+
Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016.
|
| 159 |
+
Mateusz Buda, Atsuto Maki, and Maciej A Mazurowski. A systematic study of the class imbalance problem in convolutional neural networks. Neural Networks, 106:249–259, 2018.
|
| 160 |
+
Jonathon Byrd and Zachary Lipton. What is the effect of importance weighting in deep learning? In ICML, pp. 872–881, 2019.
|
| 161 |
+
Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Arechiga, and Tengyu Ma. Learning imbalanced datasets with label-distribution-aware margin loss. In NeurIPS, pp. 1567–1578, 2019.
|
| 162 |
+
Hsin-Ping Chou, Shih-Chieh Chang, Jia-Yu Pan, Wei Wei, and Da-Cheng Juan. Remix: Rebalanced mixup. In ECCVW, 2020.
|
| 163 |
+
Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The Cityscapes dataset for semantic urban scene understanding. In CVPR, pp. 3213–3223, 2016.
|
| 164 |
+
Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge Belongie. Class-balanced loss based on effective number of samples. In CVPR, pp. 9268–9277, 2019.
|
| 165 |
+
Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, pp. 4367–4375, 2018.
|
| 166 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, pp. 1321–1330, 2017.
|
| 167 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016.
|
| 168 |
+
Chen Huang, Yining Li, Chen Change Loy, and Xiaoou Tang. Learning deep representation for imbalanced classification. In CVPR, pp. 5375–5384, 2016.
|
| 169 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 170 |
+
Nathalie Japkowicz and Shaju Stephen. The class imbalance problem: A systematic study. Intelligent data analysis, 6(5):429–449, 2002.
|
| 171 |
+
Xiaoqian Jiang, Melanie Osl, Jihoon Kim, and Lucila Ohno-Machado. Calibrating predictive model estimates to support personalized medicine. Journal of the American Medical Informatics Association, 19(2):263–274, 2012.
|
| 172 |
+
Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classifier for long-tailed recognition. In ICLR, 2020.
|
| 173 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, pp. 1097–1105, 2012.
|
| 174 |
+
Yanghao Li, Naiyan Wang, Jianping Shi, Xiaodi Hou, and Jiaying Liu. Adaptive batch normalization for practical domain adaptation. Pattern Recognition, 80:109–117, 2018.
|
| 175 |
+
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 ECCV, pp. 740–755, 2014.
|
| 176 |
+
Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In ICCV, pp. 2980–2988, 2017.
|
| 177 |
+
Ziwei Liu, Zhongqi Miao, Xiaohang Zhan, Jiayun Wang, Boqing Gong, and Stella X Yu. Large-scale long-tailed recognition in an open world. In CVPR, pp. 2537–2546, 2019.
|
| 178 |
+
|
| 179 |
+
Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. ICLR, 2017.
|
| 180 |
+
|
| 181 |
+
Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? In NeurIPS, pp. 4694–4703, 2019.
|
| 182 |
+
|
| 183 |
+
Alexandru Niculescu-Mizil and Rich Caruana. Predicting good probabilities with supervised learning. In ICML, pp. 625–632, 2005.
|
| 184 |
+
|
| 185 |
+
Joaquin Quionero-Candela, Masashi Sugiyama, Anton Schwaighofer, and Neil D Lawrence. Dataset shift in machine learning. The MIT Press, 2009.
|
| 186 |
+
|
| 187 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NeurIPS, pp. 91–99, 2015.
|
| 188 |
+
|
| 189 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. ImageNet large scale visual recognition challenge. IJCV, 115(3):211–252, 2015.
|
| 190 |
+
|
| 191 |
+
Li Shen, Zhouchen Lin, and Qingming Huang. Relay backpropagation for effective learning of deep convolutional neural networks. In ECCV, pp. 467–482, 2016.
|
| 192 |
+
|
| 193 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, pp. 2818–2826, 2016.
|
| 194 |
+
|
| 195 |
+
Sunil Thulasidasan, Gopinath Chennupati, Jeff A Bilmes, Tanmoy Bhattacharya, and Sarah Michalak. On mixup training: Improved calibration and predictive uncertainty for deep neural networks. In NeurIPS, pp. 13888–13899, 2019.
|
| 196 |
+
|
| 197 |
+
Grant Van Horn, Oisin Mac Aodha, Yang Song, Yin Cui, Chen Sun, Alex Shepard, Hartwig Adam, Pietro Perona, and Serge Belongie. The iNaturalist species classification and detection dataset. In CVPR, pp. 8769–8778, 2018.
|
| 198 |
+
|
| 199 |
+
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, pp. 6438–6447, 2019.
|
| 200 |
+
|
| 201 |
+
Ximei Wang, Ying Jin, Mingsheng Long, Jianmin Wang, and Michael I Jordan. Transferable normalization: Towards improving transferability of deep neural networks. In NeurIPS, pp. 1953–1963, 2019.
|
| 202 |
+
|
| 203 |
+
Yu-Xiong Wang, Deva Ramanan, and Martial Hebert. Learning to model the tail. In NeurIPS, pp. 7029–7039, 2017.
|
| 204 |
+
|
| 205 |
+
Liuyu Xiang and Guiguang Ding. Learning from multiple experts: Self-paced knowledge distillation for long-tailed classification. In ECCV, 2020.
|
| 206 |
+
|
| 207 |
+
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, pp. 6023–6032, 2019.
|
| 208 |
+
|
| 209 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. ICLR, 2018.
|
| 210 |
+
|
| 211 |
+
Xiao Zhang, Zhiyuan Fang, Yandong Wen, Zhifeng Li, and Yu Qiao. Range loss for deep face recognition with long-tailed training data. In ICCV, pp. 5409–5418, 2017.
|
| 212 |
+
|
| 213 |
+
Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. IEEE TPAMI, 40(6):1452–1464, 2017.
|
| 214 |
+
|
| 215 |
+
Boyan Zhou, Quan Cui, Xiu-Shen Wei, and Zhao-Min Chen. BBN: Bilateral-branch network with cumulative learning for long-tailed visual recognition. In CVPR, pp. 9719–9728, 2020.
|
| 216 |
+
|
| 217 |
+
# A EXPERIMENT SETUP
|
| 218 |
+
|
| 219 |
+
# A.1 DATASETS EXPLANATION
|
| 220 |
+
|
| 221 |
+
CIFAR-10-LT and CIFAR-100-LT. CIFAR-10 and CIFAR-100 both have 60,000 images 50,000 for training and 10,000 for validation with 10 categories and 100 categories, respectively. For a fair comparison, we use the long-tailed versions of CIFAR datasets with the same setting as those used in Cao et al. (2019). They control the degrees of data imbalance with an imbalanced factor $\beta$ . $\begin{array} { r } { \beta = \frac { N _ { \mathrm { m a x } } } { N _ { \mathrm { m i n } } } } \end{array}$ , where $N _ { \mathrm { m a x } }$ and $N _ { \mathrm { m i n } }$ are the numbers of training samples for the most frequent class and the least frequent class. Following Cao et al. (2019) and Zhou et al. (2020), we conduct experiments with imbalanced factors 100, 50, and 10.
|
| 222 |
+
|
| 223 |
+
ImageNet-LT and Places-LT. ImageNet-LT and Places-LT were proposed by Liu et al. (2019). ImageNet-LT is a long-tailed version of the large-scale object classification dataset ImageNet (Russakovsky et al., 2015) by sampling a subset following the Pareto distribution with power value $\alpha = 6$ . It contains 115.8K images from 1,000 categories, with class cardinality ranging from 5 to 1,280. Places-LT is a long-tailed version of the large-scale scene classification dataset Places (Zhou et al., 2017). It consists of 184.5K images from 365 categories with class cardinality ranging from 5 to 4,980.
|
| 224 |
+
|
| 225 |
+
iNaturalist 2018. iNaturalist 2018 (Van Horn et al., 2018) is one species classification dataset, which is on a large scale and suffers from extremely imbalanced label distributions. It is composed of 437.5K images from 8,142 categories. In addition to the extreme imbalance, the iNaturalist 2018 dataset also confronts the fine-grained problem.
|
| 226 |
+
|
| 227 |
+
# A.2 EVALUATION PROTOCOL
|
| 228 |
+
|
| 229 |
+
Following Liu et al. (2019) and Kang et al. (2020), we report the commonly used top-1 accuracy over all classes on the balanced test/validation datasets, denoted as All. In more detail, further report accuracy on three splits of the set of classes: Head-Many (more than 100 images), Med.-Medium (20 to 100 images) and Tail-Few (less than 20 images).
|
| 230 |
+
|
| 231 |
+
# A.3 IMPLEMENTATION DETAILS
|
| 232 |
+
|
| 233 |
+
For all experiments, we use the SGD optimizer with momentum 0.9 to optimize networks.
|
| 234 |
+
|
| 235 |
+
For long-tailed CIFAR, we mainly follow Cao et al. (2019). We train all MiSLAS models with the ResNet-32 backbone on one GPU and use the multistep learning rate schedule, which decreases the learning rate by 0.1 at the $1 6 0 ^ { \mathrm { t h } }$ epoch and the $1 8 0 ^ { \mathrm { t h } }$ epochs in Stage-1.
|
| 236 |
+
|
| 237 |
+
For ImageNet-LT, Place-LT, and iNaturalist 2018, We mainly follow Kang et al. (2020) and use the cosine learning rate schedule (Loshchilov & Hutter, 2017) to train all MiSLAS models with the ResNet-10/50/101/152 backbones on 4 GPUs.
|
| 238 |
+
|
| 239 |
+
Table 5: Detailed experiment settings on five benchmark datasets. LR: learning rate, BS: batch size, WD: weight decay, and LRS: learning rate schedule, $\Delta \mathbf { W }$ : learning rate ratio of $\Delta \mathbf { W }$ .
|
| 240 |
+
|
| 241 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="3">Common</td><td colspan="2">Stage-1</td><td colspan="5">Stage-2</td></tr><tr><td>LR</td><td>BS</td><td>WD</td><td>Epochs</td><td>LRS</td><td>Epochs</td><td>LRS</td><td>@1</td><td>EK</td><td>△W</td></tr><tr><td>LT CIFAR-10</td><td>0.1</td><td>128</td><td>2e-4</td><td>200</td><td>multi.</td><td>10</td><td>cosine</td><td>0.3</td><td>0.0</td><td>0.5x</td></tr><tr><td>LT CIFAR-100</td><td>0.1</td><td>128</td><td>2e-4</td><td>200</td><td>multi.</td><td>10</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.2x</td></tr><tr><td>ImageNet-LT</td><td>0.1</td><td>256</td><td>5e-4</td><td>180</td><td>cosine</td><td>10</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.05x</td></tr><tr><td>Places-LT</td><td>0.1</td><td>256</td><td>5e-4</td><td>90</td><td>cosine</td><td>10</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.05x</td></tr><tr><td>iNaturalist'18</td><td>0.1</td><td>256</td><td>1e-4</td><td>200</td><td>cosine</td><td>30</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.05x</td></tr></table>
|
| 242 |
+
|
| 243 |
+
# B CALIBRATION
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
Figure 7: Reliability diagrams on CIFAR10 with 15 bins. From left to right: plain ResNet-32 model trained on the original CIFAR-10 dataset, plain model, cRT, LWS, and MiSLAS trained on long-tailed CIFAR-10 with imbalanced factor 100.
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 8: Reliability diagrams on ImageNet with 15 bins. From left to right: plain ResNet-50 model trained on the original ImageNet dataset, plain model, cRT, LWS, and MiSLAS trained on ImageNet-LT.
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
|
| 253 |
+
Figure 9: Reliability diagrams of ResNet-152 trained on Places-LT with 15 bins. From left to right: cRT, LWS, cRT with mixup, LWS with mixup, and MiSLAS.
|
| 254 |
+
|
| 255 |
+
# C MORE DETAILED RESULTS ON IMAGENET-LT, PLACES-LT AND INATURALIST 2018
|
| 256 |
+
|
| 257 |
+
Table 6: Comprehensive accuracy results on ImageNet-LT with different backbone networks (ResNet50, ResNet-101 & ResNet-152) and training 180 epochs.
|
| 258 |
+
|
| 259 |
+
<table><tr><td>Backbone</td><td>Method</td><td>Many</td><td>Medium</td><td>Few</td><td>All</td></tr><tr><td rowspan="4">ResNet-50</td><td>cRT</td><td>62.5</td><td>47.4</td><td>29.5</td><td>50.3</td></tr><tr><td>LWS</td><td>61.8</td><td>48.6</td><td>33.5</td><td>51.2</td></tr><tr><td>cRT+mixup</td><td>63.9</td><td>49.1</td><td>30.2</td><td>51.7</td></tr><tr><td>LWS+mixup MiSLAS</td><td>62.9 61.7</td><td>49.8 51.3</td><td>31.6 35.8</td><td>52.0 52.7</td></tr><tr><td rowspan="4">ResNet-101</td><td>cRT LWS</td><td>63.8 63.1</td><td>48.5</td><td>30.0</td><td>51.4</td></tr><tr><td>cRT+mixup</td><td>65.2</td><td>49.9</td><td>33.8</td><td>52.3</td></tr><tr><td>LWS+mixup</td><td>64.5</td><td>50.6</td><td>31.6</td><td>53.1</td></tr><tr><td>MiSLAS</td><td>64.3</td><td>51.2 52.1</td><td>34.1 35.8</td><td>53.5 54.1</td></tr><tr><td rowspan="4">ResNet-152</td><td>cRT LWS</td><td>64.9</td><td>50.4</td><td>30.6</td><td>52.7</td></tr><tr><td></td><td>64.1</td><td>51.8</td><td>35.5</td><td>53.8</td></tr><tr><td>cRT+mixup</td><td>66.5</td><td>51.6</td><td>32.8</td><td>54.2</td></tr><tr><td>LWS+mixup MiSLAS</td><td>66.1 65.4</td><td>52.2 53.2</td><td>34.5 37.1</td><td>54.6 55.2</td></tr></table>
|
| 260 |
+
|
| 261 |
+
Table 7: Comprehensive accuracy results on iNaturalist 2018 with ResNet-50 and training 200 epochs.
|
| 262 |
+
|
| 263 |
+
<table><tr><td>Backbone</td><td>Method</td><td>Many</td><td>Medium</td><td>Few</td><td>All</td></tr><tr><td rowspan="5">ResNet-50</td><td>cRT</td><td>73.2</td><td>68.8</td><td>66.1</td><td>68.2</td></tr><tr><td>T-normalized</td><td>71.1</td><td>68.9</td><td>69.3</td><td>69.3</td></tr><tr><td>LWS</td><td>71.0</td><td>69.8</td><td>68.8</td><td>69.5</td></tr><tr><td>cRT+mixup</td><td>74.2</td><td>71.1</td><td>68.2</td><td>70.2</td></tr><tr><td>LWS+mixup</td><td>72.8</td><td>71.6</td><td>69.8</td><td>70.9</td></tr><tr><td></td><td>MiSLAS</td><td>73.2</td><td>72.4</td><td>70.4</td><td>71.6</td></tr></table>
|
| 264 |
+
|
| 265 |
+
Table 8: Detailed accuracy results on Places-LT, starting from an ImageNet pre-trained ResNet-152.
|
| 266 |
+
|
| 267 |
+
<table><tr><td rowspan=1 colspan=1>Backbone</td><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Many Medium Few All</td></tr><tr><td rowspan=10 colspan=1>ResNet-152</td><td rowspan=1 colspan=1>Lifted Loss</td><td rowspan=1 colspan=1>41.1 35.4 24.0 35.2</td></tr><tr><td rowspan=1 colspan=1>Focal Loss</td><td rowspan=1 colspan=1>41.1 34.8 22.4 34.6</td></tr><tr><td rowspan=1 colspan=1>Range Loss</td><td rowspan=1 colspan=1>41.1 35.4 23.2 35.1</td></tr><tr><td rowspan=1 colspan=1>FSLwFOLTR</td><td rowspan=1 colspan=1>43.9 29.9 29.5 34.944.7 37.0 25.3 35.9</td></tr><tr><td rowspan=1 colspan=1>OLTR+LFME</td><td rowspan=1 colspan=1>39.3 39.6 24.2 36.2</td></tr><tr><td rowspan=2 colspan=1>cRTT-normalizedLWS</td><td rowspan=1 colspan=1>42.0 37.6 24.9 36.7</td></tr><tr><td rowspan=1 colspan=1>37.8 40.7 31.8 37.940.6 39.1 28.6 37.6</td></tr><tr><td rowspan=3 colspan=1>cRT+mixupLWS+mixupMiSLAS</td><td rowspan=1 colspan=1>44.1 38.5 27.1 38.1</td></tr><tr><td rowspan=1 colspan=1>41.7 41.3 33.1 39.7</td></tr><tr><td rowspan=1 colspan=1>39.6 43.3 36.1 40.4</td></tr></table>
|
| 268 |
+
|
| 269 |
+
# D ABLATION STUDY OF LABEL-AWARE SMOOTHING
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
D.1 MORE RESULTS ABOUT THE HYPERPARAMETERS $\epsilon _ { 1 }$ AND $\epsilon _ { K }$
|
| 273 |
+
Figure 10: Ablation study of two hyperparameters $\epsilon _ { 1 }$ and $\epsilon _ { K }$ in label-aware smoothing. Our labelaware smoothing (orange square) outperforms cross-entropy (green square) by a large margin on both long-tailed CIFAR-10 (left) and long-tailed CIFAR-100 (right).
|
| 274 |
+
|
| 275 |
+
# D.2 FORM OF THE RELATED FUNCTION $f ( \cdot )$
|
| 276 |
+
|
| 277 |
+
As discussed in Sec. 3.2 and Sec. 4.2, the form of the related function $f ( \cdot )$ may play a significant role for the final model performance. We draw the visualization of Eqn. (3) at the left part of Fig. 11. For the LT CIFAR-100 dataset with balanced factor 100, $N _ { 1 } = 5 0 0$ and $N _ { 1 0 0 } = 5$ . Based on the ablation study results of $\epsilon _ { 1 }$ and $\epsilon _ { K }$ mentioned in Sec. 4.2 and above, we set $\epsilon _ { 1 } = 0 . 4$ and $\epsilon _ { 1 0 0 } = 0 . 1 $ here. After fintuning for 10 epochs in Stage-2, the accuracy of the concave model is the best. We also design a power-like related function, which can be written as:
|
| 278 |
+
|
| 279 |
+
$$
|
| 280 |
+
\epsilon _ { y } = f ( N _ { y } ) = \epsilon _ { K } + ( \epsilon _ { 1 } - \epsilon _ { K } ) \bigg ( { \frac { N _ { y } - N _ { K } } { N _ { 1 } - N _ { K } } } \bigg ) ^ { p } , \qquad y = 1 , 2 , . . . , K ,
|
| 281 |
+
$$
|
| 282 |
+
|
| 283 |
+
where $p$ is a hyperparameter to control the shape of the related function. For example, we will get concave related function if we set $p < 1$ and we will get convex related function if we set $p > 1$ . The visualization of Eqn. (7) is shown at the right part of Fig. 11. However, comparing the accuracies of all variants, the influence of the related function form is quite limited for the final performance (just growing by $0 . 3 \%$ ). Because the concave related function in Eqn. (3) achieves the best performance among all variants, we choose it as the default setting of the related function $f ( \cdot )$ for other experiments.
|
| 284 |
+
|
| 285 |
+

|
| 286 |
+
Figure 11: Function visualization and accuracy of Eqn. (3) (left) and Eqn. (7) (right).
|
parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj_content_list.json
ADDED
|
@@ -0,0 +1,1412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "IMPROVING CALIBRATION FOR LONG-TAILED RECOG-NITION",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
826,
|
| 10 |
+
145
|
| 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 |
+
250
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Deep neural networks often perform poorly when training datasets are heavily classimbalanced. Recently, two-stage methods greatly improve the performances by decoupling representation learning and classifier learning. In this paper, we discover that networks trained on long-tailed datasets are more prone to miscalibrated and over-confident. The two-stage models suffer the same issue as well. We design two novel methods to improve calibration and performance in such scenarios. Motivated by the predicted probability distributions of classes are highly related to the numbers of class instances, we propose a label-aware smoothing to deal with the different degrees of over-confidence for different classes and improve classifier learning. Noting that there is a dataset bias between these two stages because of different samplers, we further propose a shifted batch normalization to solve the dataset bias in the decoupling framework. Through extensive experiments, we also observe that mixup can remedy over-confidence and improve representation learning but has a negative or negligible effect on classifier learning. Our proposed methods set new records on multiple popular long-tailed recognition benchmarks including LT CIFAR 10/100, ImageNet-LT, Places-LT, and iNaturalist 2018. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
766,
|
| 44 |
+
489
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
516,
|
| 55 |
+
334,
|
| 56 |
+
532
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "With numerous available large-scale and high-quality datasets such as ImageNet (Russakovsky et al., 2015), COCO (Lin et al., 2014), and Places (Zhou et al., 2017), deep convolutional neural networks (CNNs) have made notable breakthroughs in various computer vision tasks such as image recognition (Krizhevsky et al., 2012; He et al., 2016), object detection (Ren et al., 2015) and semantic segmentation (Cordts et al., 2016). These delicate datasets are usually artificially balanced with respect to the number of instances for each object/class. However, in real-world applications, data often follows an unexpected long-tailed distribution, where the numbers of instances for different classes are seriously imbalanced. When training CNNs on such long-tailed datasets, the performances extremely degrade. Motivated by this phenomenon, a number of works have recently emerged that try to explore long-tailed recognition. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
547,
|
| 66 |
+
825,
|
| 67 |
+
686
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently, many two-stage approaches have achieved significant improvement comparing with onestage methods. Concretely, DRS and DRW (Cao et al., 2019) first train CNNs in a normal way in Stage-1. DRS finetunes CNNs on datasets with class-balanced resampling while DRW finetunes CNNs by assigning different weights to different classes in Stage-2. Zhou et al. (2020) proposed BBN with one-stage to simulate the process of DRS by dynamically combining the instance-balanced sampler and the reverse-balanced sampler. Kang et al. (2020) proposed two-stage decoupling models, cRT and LWS, to further boost the performance: Decoupling models freeze the backbone and just finetune the classifier with class-balanced resampling in Stage-2. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
694,
|
| 77 |
+
825,
|
| 78 |
+
805
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Confidence calibration (Niculescu-Mizil & Caruana, 2005; Guo et al., 2017) – the problem of predicting probability estimates representative of the true correctness likelihood – is important for recognition models in many applications (Bojarski et al., 2016; Jiang et al., 2012). In this study, we discover that networks trained on long-tailed datasets are more miscalibrated and over-confident: We draw the reliability diagrams with 15 bins in Fig. 1, which compares the plain model trained on the original CIFAR-100 dataset, the plain model, cRT, and LWS trained on long-tailed CIFAR-100 with imbalanced factor (IF) 100. We observe that networks trained on long-tailed datasets have higher expected calibration errors (ECEs). The two-stage models, cRT and LWS, suffer over-confidence as well. Moreover, Fig. 7 and Fig. 8 (the first two plots) in Appendix B depict that this phenomenon also commonly exists on other long-tailed datasets such as LT CIFAR-10 and ImageNet-LT. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
811,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/5e44aa4f49a7033716a9652c8793a4caf195ce8a53f64c89a6c341469c58c17a.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Reliability diagrams of ResNet-32. From left to right: the plain model trained on the original CIFAR-100 dataset, the plain model, cRT, and LWS trained on long-tailed CIFAR-100 with $\\mathrm { { I F } = 1 0 0 }$ . "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
95,
|
| 103 |
+
818,
|
| 104 |
+
239
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
281,
|
| 114 |
+
821,
|
| 115 |
+
309
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Another issue is that two-stage decoupling methods ignore the dataset bias or domain shift (QuioneroCandela et al., 2009) between these two stages. Concretely, two-stage models are first trained on the instanced-balanced dataset $\\mathcal { D } _ { \\mathrm { I } }$ in Stage-1. Then, models are trained on the class-balanced dataset $\\mathcal { D } _ { \\mathrm { C } }$ in Stage-2. Obviously, $P _ { \\mathcal { D } _ { \\mathrm { I } } } ( { \\pmb x } , y ) \\neq P _ { \\mathcal { D } _ { \\mathrm { C } } } ( { \\pmb x } , y )$ , the distributions of the dataset with different sampling manners are inconsistent. Motivated by the transfer learning methods (Li et al., 2018; Wang et al., 2019), we focus on the batch normalization (Ioffe & Szegedy, 2015) layer to deal with the dataset bias problem. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
316,
|
| 125 |
+
825,
|
| 126 |
+
414
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "In this work, we propose a Mixup Shifted Label-Aware Smoothing model (MiSLAS) to effectively solve the above issues. Our key contributions are as follows: (i) We discover that models trained on long-tailed datasets are much more miscalibrated and over-confident than them trained on balanced datasets. The two-stage models suffer the same problem as well. (ii) We find that mixup can remedy over-confidence and have a positive effect on representation learning but a negative or negligible effect on classifier learning. To further enhance classifier learning and calibration, we propose a label-aware smoothing to handle the different degrees of over-confidence for different classes. (iii) We are the first to note the dataset bias or domain shift in two-stage resampling methods for long-tailed recognition. To deal with the dataset bias in the decoupling framework, we propose shift learning on the batch normalization layer, which can greatly improve the performance. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
420,
|
| 136 |
+
825,
|
| 137 |
+
560
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "We extensively validate our MiSLAS on multiple long-tailed recognition benchmark datasets, i.e., LT CIFAR-10, LT CIFAR-100, ImageNet-LT, Places-LT, and iNaturalist 2018. Experimental results manifest that the effectiveness and our method yields new state-of-the-art. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
566,
|
| 147 |
+
823,
|
| 148 |
+
609
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 RELATED WORKS ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
176,
|
| 158 |
+
630,
|
| 159 |
+
354,
|
| 160 |
+
646
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Re-sampling and re-weighting. There are two groups of re-sampling strategies: over-sampling the tail-class images (Shen et al., 2016; Buda et al., 2018; Byrd & Lipton, 2019) and under-sampling the head-class images (Japkowicz & Stephen, 2002; Buda et al., 2018). Over-sampling is regularly useful on large datasets and often suffers from heavy over-fitting to tail classes especially on small datasets. For under-sampling, it discards a large portion of data, which inevitably causes degradation of the generalization ability of deep models. Re-weighting (Huang et al., 2016; Wang et al., 2017) is another prominent strategy. It assigns different weights for classes and even instances. The vanilla re-weighting method gives class weights in reverse proportion to the number of samples of classes. However, with large-scale data, re-weighting makes the deep models difficult to optimize during training. Cui et al. (2019) relieved the problem using the effective numbers to calculate the class weights. Another line of work is to adaptively re-weight each instance, e.g., Focal loss (Lin et al., 2017) assigned smaller weights for well-classified samples. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
661,
|
| 170 |
+
825,
|
| 171 |
+
829
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Network calibration and regularization. Calibrated confidence is significant for classification models in many applications. The calibration of modern neural networks is first discussed in Guo et al. (2017). The authors discovered that model capacity, normalization, and regularization have strong effects on network calibration. mixup (Zhang et al., 2018) is a regularization technique that is proposed to train with interpolations of inputs and labels. mixup inspires several follow-ups like manifold mixup (Verma et al., 2019), CutMix (Yun et al., 2019), and Remix (Chou et al., 2020) that have shown significant improvement over mixup. Thulasidasan et al. (2019) found that CNNs trained with mixup are significantly better calibrated. Label smoothing (Szegedy et al., 2016) is another regularization technique that encourages the model to be less over-confident. Unlike cross-entropy computes loss upon the ground truth labels, label smoothing computes loss upon a soft version of the label, which can relieve the over-fitting and increase calibration and reliability (Müller et al., 2019). ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
840,
|
| 181 |
+
825,
|
| 182 |
+
924
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "table",
|
| 188 |
+
"img_path": "images/f963db073ee460c2b5c41f6812b7f887854d5166890b8d68e958900f6889d749.jpg",
|
| 189 |
+
"table_caption": [
|
| 190 |
+
"Table 1: Top-1 accuracy of the decoupling models (cRT and LWS) for ResNet families trained on the ImageNetLT dataset. We vary the augmentation strategies (with or without mixup $\\alpha = 0 . 2$ ) on both two stages. "
|
| 191 |
+
],
|
| 192 |
+
"table_footnote": [],
|
| 193 |
+
"table_body": "<table><tr><td rowspan=\"2\">Training setup for two stages</td><td colspan=\"2\">ResNet-10</td><td colspan=\"2\">ResNet-50</td><td colspan=\"2\">ResNet-101</td><td colspan=\"2\">ResNet-152</td></tr><tr><td>cRT LWS|</td><td></td><td>cRT LWS|</td><td></td><td>cRT</td><td>LWS</td><td>cRT1</td><td>LWS</td></tr><tr><td>Stage-1 (no mixup) Stage-1 (mixup)</td><td>36.8 35.7</td><td>36.8 35.7</td><td>45.8 45.6</td><td>45.8 45.6</td><td>47.3 47.7</td><td>47.3 47.7</td><td>48.7 48.4</td><td>48.7 48.4</td></tr><tr><td>Stage-1 (no mixup) + Stage-2 (no mixup) Stage-1 (no mixup) + Stage-2 (mixup)</td><td>43.3 43.0</td><td>43.5 43.3</td><td>50.3 50.2</td><td>51.2 51.1</td><td>51.4 51.4</td><td>52.3 52.2</td><td>52.7 52.8</td><td>53.8 53.6</td></tr><tr><td>Stage-1 (mixup) + Stage-2 (no mixup) Stage-1(mixup) + Stage-2 (mixup)</td><td>43.4 43.3</td><td>42.9 42.8</td><td>51.7 51.6</td><td>52.0 51.9</td><td>53.1 53.0</td><td>53.5 53.5</td><td>54.2 54.1</td><td>54.6 54.5</td></tr></table>",
|
| 194 |
+
"bbox": [
|
| 195 |
+
173,
|
| 196 |
+
133,
|
| 197 |
+
820,
|
| 198 |
+
281
|
| 199 |
+
],
|
| 200 |
+
"page_idx": 2
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"type": "image",
|
| 204 |
+
"img_path": "images/dfadadbac16edfdf51bd971589ab03899f3826ea4b154206dcc6bd81b814a482.jpg",
|
| 205 |
+
"image_caption": [
|
| 206 |
+
"Figure 2: Classifier weight norms for the ImageNet-LT validation set when classes are sorted by descending values of $N _ { j }$ . Left: weight norms of cRT with or without mixup. Right: weight norms of LWS with or without mixup. (light shade: true norm, dark lines: smooth version) "
|
| 207 |
+
],
|
| 208 |
+
"image_footnote": [],
|
| 209 |
+
"bbox": [
|
| 210 |
+
173,
|
| 211 |
+
297,
|
| 212 |
+
816,
|
| 213 |
+
440
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "",
|
| 220 |
+
"bbox": [
|
| 221 |
+
174,
|
| 222 |
+
503,
|
| 223 |
+
825,
|
| 224 |
+
574
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "Two-stage methods. Cao et al. (2019) first proposed deferred re-weighting (DRW) and deferred re-sampling (DRS) that are superior to conventional one-stage methods: Stage-2, starting from better features, adjusts the decision boundary and locally fine-tunes the features. Recently, Kang et al. (2020) and Zhou et al. (2020) concluded that although class re-balance strategies matter when jointly training representation and classifier, instance-balanced sampling gives more general representations. Based on this observation, Kang et al. (2020) achieved state-of-the-art results by decomposing representation and classifier learning, i.e., first train the deep models with instance-balanced sampling, then fine-tune the classifier with class-balanced sampling while keeping parameters of representation learning fixed. Similarly, Zhou et al. (2020) integrated mixup training into the proposed cumulative learning strategy with which they bridged the representation learning and classifier re-balancing. The cumulative learning strategy requires dual samplers: instance-balanced and reversed instance-balanced sampler. ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
174,
|
| 233 |
+
585,
|
| 234 |
+
825,
|
| 235 |
+
738
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "3 MAIN APPROACH",
|
| 242 |
+
"text_level": 1,
|
| 243 |
+
"bbox": [
|
| 244 |
+
176,
|
| 245 |
+
760,
|
| 246 |
+
352,
|
| 247 |
+
776
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "3.1 IMPROVING CALIBRATION AND REPRESENTATION LEARNING BY MIXUP ",
|
| 254 |
+
"text_level": 1,
|
| 255 |
+
"bbox": [
|
| 256 |
+
176,
|
| 257 |
+
792,
|
| 258 |
+
707,
|
| 259 |
+
806
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "For the two-stage learning framework, Kang et al. (2020) and Zhou et al. (2020) found that instancebalanced sampling gives the most generalizable representations among other sampling methods. Thulasidasan et al. (2019) found that networks trained with mixup are better calibrated. When using instance-balanced sampling, to further improve the representation generalization and relieve over-confidence, we explore the effect of mixup in the two-stage decoupling framework. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
818,
|
| 269 |
+
825,
|
| 270 |
+
888
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "Here, we train two two-stage models, i.e. cRT and LWS, on ImageNet-LT for 180 epochs in Stage-1 and finetune for 10 epochs in Stage-2, respectively. We vary the training setup (with/without mixup $\\alpha = 0 . 2$ ) for both two stages. Top-1 accuracy results of these variants are listed in Table 1. From it, we conclude that: (i) When applying mixup, the performance improvements of Stage-1 are ignorable but the performances of Stage-2 are greatly enhanced for both cRT and LWS. (ii) Applying additional mixup in Stage-2 has no obvious improvement or even damages the performance, which means that mixup encourages representation learning but has a negative or negligible effect on classifier learning. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
895,
|
| 280 |
+
823,
|
| 281 |
+
924
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "image",
|
| 287 |
+
"img_path": "images/dfc97570c161303a3e0406ec2a403b6e2fedf1e4397e7348a43db447fc2d713d.jpg",
|
| 288 |
+
"image_caption": [
|
| 289 |
+
"Figure 3: Violin plot of predicted probability distributions for different parts of classes, head (more than 100 images), medium (20 to 100 images), and tail (less than 20 images) on LT CIFAR-100, $\\mathrm { { I F } = 1 0 0 }$ . The upper half part in light blue: LWS (cross-entropy). The bottom half part in deep blue: LWS (label-aware smoothing). "
|
| 290 |
+
],
|
| 291 |
+
"image_footnote": [],
|
| 292 |
+
"bbox": [
|
| 293 |
+
189,
|
| 294 |
+
98,
|
| 295 |
+
805,
|
| 296 |
+
238
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 3
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "",
|
| 303 |
+
"bbox": [
|
| 304 |
+
173,
|
| 305 |
+
303,
|
| 306 |
+
825,
|
| 307 |
+
373
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 3
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "We also draw the final classifier weight norms of these variants in Fig. 2. We show the $L _ { 2 }$ norms of the weight vectors for all classes, as well as the training data distribution sorted in a descending manner concerning the number of instances. We observe that when applying mixup (orange line), the weight norms of the tail classes uniformly tend to become larger and the weight norms of the head classes are decreased, which means mixup may be more friendly to the tail classes. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
378,
|
| 317 |
+
825,
|
| 318 |
+
449
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 3
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "The analysis of calibration for networks whether adding mixup will be discussed in our experiment part (Sec. 4.2). Due to the poor and unsatisfied enhancement of mixup for classifier learning, we further propose a label-aware smoothing to improve both the calibration and classifier learning. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
455,
|
| 328 |
+
825,
|
| 329 |
+
498
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "3.2 IMPROVING CALIBRATION AND CLASSIFIER LEARNING BY LABEL-AWARE SMOOTHING ",
|
| 336 |
+
"text_level": 1,
|
| 337 |
+
"bbox": [
|
| 338 |
+
174,
|
| 339 |
+
516,
|
| 340 |
+
810,
|
| 341 |
+
530
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "As discussed in the introduction part and Sec. 3.1, two-stage models suffer serious over-confidence and there is no significant improvement for classifier learning when adding additional mixup. In this subsection, we try to analyze and deal with these two issues. Suppose that the weight of the classifier is $\\pmb { W } \\in \\mathbb { R } ^ { M \\times K }$ , where $M$ is the number of features and $K$ is the number of classes. The cross-entropy encourages the whole network to be over-confident on the head classes: Concretely, the cross-entropy loss after the softmax activation is $l ( y , p ) = - \\log ( p _ { y } ) = - { \\pmb w } _ { y } ^ { \\top } { \\pmb x } + \\log ( \\sum \\exp ( { \\pmb w } _ { i } ^ { \\top } { \\pmb x } ) )$ , where $y \\in \\{ 1 , 2 , . . . , K \\}$ is the label, $\\pmb { x } \\in \\mathbb { R } ^ { M }$ is the feature vector send to classifier and ${ \\pmb w } _ { i }$ is the $i$ -th column vector of $W$ . The optimal solution is $\\pmb { w } _ { y _ { . } } ^ { * } \\top \\pmb { x } = \\operatorname { i n f }$ while keeping others ${ \\pmb w } _ { i } ^ { \\top } { \\pmb x }$ , $i \\neq y$ , small enough. Because the head classes contain much more training examples, the network makes the weight norm $\\| \\pmb { w } \\|$ of the head classes become larger to near the optimal solution as much as possible, which results that their predicted probabilities mainly concentrate near 1.0 (see Fig. 3, the upper half part showing in light blue). Another fact we can get from Fig. 3 is that the distributions of predicted probability are severely related to the instance numbers. Unlike balanced recognition, we claim that applying different strategies for different classes is extremely necessary for the long-tailed problem. ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
173,
|
| 350 |
+
541,
|
| 351 |
+
826,
|
| 352 |
+
748
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "Here, we propose a label-aware smoothing to solve the over-confidence in cross-entropy and the different distributions of predicted probability issue. The mathematical computation of label-aware smoothing is: ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
176,
|
| 361 |
+
753,
|
| 362 |
+
823,
|
| 363 |
+
796
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "equation",
|
| 369 |
+
"img_path": "images/fed4b7254500dd06fecfb7e6a4488c1bd6ba32a39df179bee12c41dde7f0cf10.jpg",
|
| 370 |
+
"text": "$$\nl ( q , p ) = - \\sum _ { i = 1 } ^ { K } q _ { i } \\log p _ { i } , q _ { i } = \\left\\{ \\begin{array} { l l } { 1 - \\epsilon _ { y } = 1 - f ( N _ { y } ) , } & { i = y , } \\\\ { \\frac { \\epsilon _ { y } } { K - 1 } = \\frac { f ( N _ { y } ) } { K - 1 } , } & { \\mathrm { o t h e r w i s e } , } \\end{array} \\right.\n$$",
|
| 371 |
+
"text_format": "latex",
|
| 372 |
+
"bbox": [
|
| 373 |
+
258,
|
| 374 |
+
803,
|
| 375 |
+
732,
|
| 376 |
+
847
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "where $\\epsilon _ { y }$ is a small label smoothing factor for Class- $_ y$ and relates to its class number $N _ { y }$ . Now the optimal solution becomes: ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
173,
|
| 385 |
+
852,
|
| 386 |
+
823,
|
| 387 |
+
880
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 3
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "equation",
|
| 393 |
+
"img_path": "images/5dbc3c8aef54a66b0436d26bf2acce8b03309765efe3a8cd1eef2a630d984d21.jpg",
|
| 394 |
+
"text": "$$\n{ \\pmb w } _ { i } ^ { * } ^ { \\top } { \\pmb x } = \\left\\{ \\begin{array} { l l } { \\log \\left( \\frac { ( K - 1 ) ( 1 - \\epsilon _ { y } ) } { \\epsilon _ { y } } \\right) + c , } & { i = y , } \\\\ { c , } & { \\mathrm { o t h e r w } } \\end{array} \\right.\n$$",
|
| 395 |
+
"text_format": "latex",
|
| 396 |
+
"bbox": [
|
| 397 |
+
328,
|
| 398 |
+
886,
|
| 399 |
+
633,
|
| 400 |
+
929
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "where $c$ can be an arbitrary real number. Comparing with the infinite optimal solution in cross-entropy, the label-aware smoothing encourages a finite output, which can get more generalized results and remedy over-fitting. We suppose the labels of the long-tailed dataset are assigned in a descending manner concerning the number of instances, i.e., $N _ { 1 } \\geq N _ { 2 } \\geq . . . \\geq N _ { K }$ . Because the head classes contain more various and diverse examples, the predicted probabilities are more promising than them of tail classes. Thus, we suggest classes with larger instance numbers should be penalized larger label smoothing factors, that is, the related function $f ( N _ { y } )$ should be negatively correlated to $N _ { y }$ . We define three types of related function $f ( N _ { y } )$ : ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
173,
|
| 409 |
+
102,
|
| 410 |
+
826,
|
| 411 |
+
215
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 4
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "equation",
|
| 417 |
+
"img_path": "images/fb443d9dc3c047683891f75e4183473d2a96ace892f6ebb61bda7604c2bd3f5f.jpg",
|
| 418 |
+
"text": "$$\n\\epsilon _ { y } = f ( N _ { y } ) = \\left\\{ \\begin{array} { l l } { { \\mathrm { ( C o n c a v e ) } } } & { { \\epsilon _ { K } + \\left( \\epsilon _ { 1 } - \\epsilon _ { K } \\right) \\sin \\left[ \\frac { \\pi ( N _ { y } - N _ { K } ) } { 2 ( N _ { 1 } - N _ { K } ) } \\right] , \\qquad y = 1 , 2 , . . . , K , } } \\\\ { { } } & { { } } \\\\ { { \\mathrm { ( L i n e a r ) } } } & { { \\epsilon _ { K } + \\left( \\epsilon _ { 1 } - \\epsilon _ { K } \\right) \\frac { N _ { y } - N _ { K } } { N _ { 1 } - N _ { K } } , \\qquad y = 1 , 2 , . . . , K , } } \\\\ { { } } & { { } } \\\\ { { \\mathrm { ( C o n v e x ) } } } & { { \\epsilon _ { 1 } + \\left( \\epsilon _ { 1 } - \\epsilon _ { K } \\right) \\sin \\left[ \\frac { 3 \\pi } { 2 } + \\frac { \\pi ( N _ { y } - N _ { K } ) } { 2 ( N _ { 1 } - N _ { K } ) } \\right] , \\quad y = 1 , 2 , . . . , K , } } \\end{array} \\right.\n$$",
|
| 419 |
+
"text_format": "latex",
|
| 420 |
+
"bbox": [
|
| 421 |
+
191,
|
| 422 |
+
219,
|
| 423 |
+
779,
|
| 424 |
+
316
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 4
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "where $\\epsilon _ { 1 }$ and $\\epsilon _ { K }$ are two hyperparameters. If we set $\\epsilon _ { 1 } \\geq \\epsilon _ { K }$ , then we can get $\\epsilon _ { 1 } \\geq \\epsilon _ { 2 } \\geq . . . \\geq \\epsilon _ { K }$ . It means that if the instance number $N _ { y }$ for Class- $y$ is larger, label-aware smoothing will allocate a larger smoothing factor and lower the fitting probability to relieve the over-confidence because the head and medium classes are more likely to be over-confident than the tail classes (see Fig. 3). ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
174,
|
| 433 |
+
319,
|
| 434 |
+
826,
|
| 435 |
+
375
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 4
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "As the form of label-aware smoothing is more complicated than cross-entropy, we propose a more generalized classifier learning framework to fit it. Here we give a quick review about cRT and LWS: cRT tries to learn a new classifier weight, which contains $K M$ learnable parameters. LWS is restricted to learn the weight scaling vector $\\bar { \\mathbf { \\boldsymbol { s } } } \\in \\mathbb { R } ^ { K }$ , which contains only $K$ learnable parameters. By contrast, cRT has more learnable parameters. It means cRT has a more powerful representation ability. LWS tends to obtain better validation losses and performances on large-scale datasets (refer to the experiment part in Kang et al. (2020)). It means LWS has a better generalization property. To combine the advantages of both cRT and LWS, we redesign the classifier framework in Stage-2: ",
|
| 442 |
+
"bbox": [
|
| 443 |
+
173,
|
| 444 |
+
381,
|
| 445 |
+
825,
|
| 446 |
+
494
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 4
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "equation",
|
| 452 |
+
"img_path": "images/f136c6ba3826c8121d8101265d1a23ee85020522b605b893b1cd252494318458.jpg",
|
| 453 |
+
"text": "$$\nz = \\mathrm { d i a g } ( s ) \\left( a { \\cal W } + \\Delta { \\cal W } \\right) ^ { \\top } x .\n$$",
|
| 454 |
+
"text_format": "latex",
|
| 455 |
+
"bbox": [
|
| 456 |
+
392,
|
| 457 |
+
510,
|
| 458 |
+
606,
|
| 459 |
+
531
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "In Eqn. (3), we fix the original classifier weight $W$ in Stage-2. If we make the learnable scaling vector $\\pmb { s }$ fixed, set $\\mathbf { \\delta } _ { \\mathbf { { s } } } = \\mathbf { 1 } \\ \\mathbf { \\delta } _ { \\mathbf { { l } } }$ , $a = 0$ , and just learn the new classifier weight $\\Delta W \\in \\mathbb { R } ^ { M \\times K }$ , Eqn. (4) will degrade to cRT. Because LWS fixes the original classifier weights $W$ and only learns the scaling $\\pmb { s }$ , Eqn. (4) will degrade to LWS if we set $a = 1$ and $\\Delta W = \\mathbf { 0 }$ . In most cases, LWS generally achieves better results than cRT on large scale datasets. Thus, we let $\\pmb { s }$ learnable and set $a = 1$ . We also make $\\Delta \\mathbf { W }$ learnable to improve the representation ability but optimize $\\Delta \\mathbf { W }$ by a different learning rate. $\\Delta \\mathbf { W }$ can be viewed as doing a shift transformation on $W$ . This transformation can change the direction of the original weight vector $\\pmb { w }$ in $W$ , which is what LWS cannot do. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
173,
|
| 468 |
+
537,
|
| 469 |
+
825,
|
| 470 |
+
651
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 4
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "3.3 SHIFT LEARNING ON BATCH NORMALIZATION ",
|
| 477 |
+
"text_level": 1,
|
| 478 |
+
"bbox": [
|
| 479 |
+
178,
|
| 480 |
+
667,
|
| 481 |
+
529,
|
| 482 |
+
681
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 4
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "In the two-stage training framework, models are first trained with instance-balanced sampling in Stage-1 and then trained with class-balanced sampling in Stage-2. Since the framework involves two samplers, or two datasets: the instance-balanced dataset $\\mathcal { D } _ { \\mathrm { I } }$ and the class-balanced dataset $\\mathcal { D } _ { \\mathrm { C } }$ , we can regard this two-stage training framework as a derivative of transfer learning approaches. However, if we view the two-stage decoupling training framework from the transfer learning perspective, fixing the backbone part and just fine-tuning the classifier in Stage-2 will be clearly unreasonable, especially for the batch normalization (BN) layers. ",
|
| 489 |
+
"bbox": [
|
| 490 |
+
173,
|
| 491 |
+
693,
|
| 492 |
+
825,
|
| 493 |
+
791
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 4
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "Concretely, we suppose that the input of the network is $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ , the input feature of some BN layer is $g ( \\pmb { x } _ { i } )$ , and the mini-batch size is $m$ . The running mean and the running variance of Channel- $j$ for these two stages are: ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
176,
|
| 502 |
+
797,
|
| 503 |
+
825,
|
| 504 |
+
839
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 4
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "equation",
|
| 510 |
+
"img_path": "images/8f1fd625d24e763d26ffef803dce734957f46dac07e13876949e14b1a5ba13cb.jpg",
|
| 511 |
+
"text": "$$\n\\begin{array} { r l } & { \\pmb { \\mu } _ { \\mathrm { I } } ^ { ( j ) } = \\displaystyle \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } g ( { \\pmb x } _ { i } ) ^ { ( j ) } , \\quad \\pmb { \\sigma } _ { \\mathrm { I } } ^ { 2 ^ { ( j ) } } = \\displaystyle \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\left[ g ( { \\pmb x } _ { i } ) ^ { ( j ) } - \\pmb { \\mu } _ { \\mathrm { I } } ^ { ( j ) } \\right] ^ { 2 } , \\quad \\pmb { x } _ { i } \\sim P _ { { \\mathcal { D } } _ { \\mathrm { I } } } ( { \\pmb x } , y ) , } \\\\ & { \\pmb { \\mu } _ { \\mathrm { C } } ^ { ( j ) } = \\displaystyle \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } g ( { \\pmb x } _ { i } ) ^ { ( j ) } , \\quad \\pmb { \\sigma } _ { \\mathrm { C } } ^ { 2 ^ { ( j ) } } = \\displaystyle \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\left[ g ( { \\pmb x } _ { i } ) ^ { ( j ) } - \\pmb { \\mu } _ { \\mathrm { C } } ^ { ( j ) } \\right] ^ { 2 } , \\quad \\pmb { x } _ { i } \\sim P _ { { \\mathcal { D } } _ { \\mathrm { C } } } ( { \\pmb x } , y ) . } \\end{array}\n$$",
|
| 512 |
+
"text_format": "latex",
|
| 513 |
+
"bbox": [
|
| 514 |
+
223,
|
| 515 |
+
843,
|
| 516 |
+
772,
|
| 517 |
+
930
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "image",
|
| 523 |
+
"img_path": "images/19b86e3a88f558bf61a12c4d7e37ede85b460b9f37eb25257a310659fcc06882.jpg",
|
| 524 |
+
"image_caption": [
|
| 525 |
+
"Figure 4: Reliability diagrams of ResNet-32 trained on LT CIFAR-100, $\\mathrm { { I F } = 1 0 0 }$ . From left to right: cRT with mixup, LWS with mixup, LWS with mixup and shifted BN, and MiSLAS. It is better to look together with Fig. 1. "
|
| 526 |
+
],
|
| 527 |
+
"image_footnote": [],
|
| 528 |
+
"bbox": [
|
| 529 |
+
174,
|
| 530 |
+
97,
|
| 531 |
+
818,
|
| 532 |
+
239
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 5
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "Due to the different sampling strategies, the composition ratios of the head, medium, and tail classes are also totally different, which leads to $P _ { \\mathcal { D } _ { \\mathrm { I } } } ( \\pmb { x } , y ) \\neq P _ { \\mathcal { D } _ { \\mathrm { C } } } ( \\pmb { x } , y )$ . Calculated by Eqn. (5) and (6), there exist some biases in $\\pmb { \\mu }$ and $\\pmb { \\sigma }$ under two sampling strategies, i.e., $\\mu _ { \\mathrm { I } } \\neq \\mu _ { \\mathrm { C } }$ , and $\\sigma _ { \\mathrm { I } } ^ { 2 } \\neq \\sigma _ { \\mathrm { C } } ^ { 2 }$ Thus, it is clearly infeasible for the decoupling framework that BN shares mean and variance across datasets with two sampling strategies. Motivated by AdaBN (Li et al., 2018) and TransNorm (Wang et al., 2019), we unfreeze the update procedures of the running mean $\\pmb { \\mu }$ and running variance $\\sigma$ but fix the learnable linear transformation parameters $_ { \\pmb { \\alpha } }$ and $\\beta$ for a better normalization in Stage-2. ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
173,
|
| 541 |
+
275,
|
| 542 |
+
825,
|
| 543 |
+
372
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 5
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "4 EXPERIMENTS ",
|
| 550 |
+
"text_level": 1,
|
| 551 |
+
"bbox": [
|
| 552 |
+
176,
|
| 553 |
+
383,
|
| 554 |
+
326,
|
| 555 |
+
398
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 5
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "4.1 EXPERIMENTAL SETUP ",
|
| 562 |
+
"text_level": 1,
|
| 563 |
+
"bbox": [
|
| 564 |
+
176,
|
| 565 |
+
409,
|
| 566 |
+
374,
|
| 567 |
+
422
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 5
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "Our experimental setup including the implementation details and evaluation protocol mainly follows Cao et al. (2019) for LT CIFAR-10 and LT CIFAR-100, and Kang et al. (2020) for ImageNet-LT, Places-LT, and iNuturalist 2018. Please see Appendix A for further details. ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
176,
|
| 576 |
+
429,
|
| 577 |
+
825,
|
| 578 |
+
472
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 5
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "4.2 ABLATION STUDY ",
|
| 585 |
+
"text_level": 1,
|
| 586 |
+
"bbox": [
|
| 587 |
+
174,
|
| 588 |
+
483,
|
| 589 |
+
339,
|
| 590 |
+
497
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 5
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "Improving calibration. Here we show the reliability diagrams with 15 bins of our methods in Fig. 4. Comparing with Fig. 1 in the introduction part, both the mixup and label-aware smoothing can not only largely enhance the network calibration (even lower ECEs than them on balanced datasets) but also greatly improve the performance for long-tailed recognition. The similar trends can also be found on LT CIFAR-10, ImageNet-LT, and Places-LT (please see the figures in Appendix B for detail), which proves the powerful effects of the proposed method on calibration. According to all experiment results, training networks on imbalanced datasets leads to more severe over-confidence. Since the conventional mixup and label-smoothing both contain the operation of softening the ground truth labels, which may suggest that training with hard labels is likely to be another contributing factor leading to network over-confidence. ",
|
| 597 |
+
"bbox": [
|
| 598 |
+
173,
|
| 599 |
+
508,
|
| 600 |
+
825,
|
| 601 |
+
647
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 5
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "Further analysis of label-aware smoothing. In our label-aware smoothing, there are two hyperparameters in Eqn. (3), $\\epsilon _ { 1 }$ and $\\epsilon _ { K }$ , which control the penalties of classes. In recognition system, if the predicted probability of some Class- $y$ is larger than 0.5, the classifier will classify the input to Class- $y$ . Thus, to ensure reasonability, we limit $0 \\le \\epsilon _ { K } \\le \\epsilon _ { 1 } \\le 0 . 5$ . Here we conduct a comparing experiment for varying $\\epsilon _ { 1 }$ and $\\epsilon _ { K }$ both from 0.0 to 0.5 on LT CIFAR-100 with imbalanced factor 100. We plot the performance matrix upon $\\epsilon _ { 1 }$ and $\\epsilon _ { k }$ in Fig. 5 for all possible variants. From it, the classification accuracy can be further improved by $0 . 9 \\%$ comparing with the conventional cross-entropy $( \\epsilon _ { 1 } = 0$ , $\\epsilon _ { K } = 0$ , green square) when we pick $\\epsilon _ { 1 } = 0 . 4$ , $\\epsilon _ { K } = 0 . 1$ (orange square) for label-aware smoothing. A more surprising improvement (growing by $3 . 3 \\%$ ) can be found on LT CIFAR-10 (see Appendix D.1 for detail). We also find that the concave related function $f ( \\cdot )$ in Eqn. (3) achieves the best performance but the gain is quite limited (refer Appendix D.2 for detail). ",
|
| 608 |
+
"bbox": [
|
| 609 |
+
173,
|
| 610 |
+
654,
|
| 611 |
+
825,
|
| 612 |
+
805
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 5
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "To visualize the change in predicted probability distributions, we train two LWS models, one with cross-entropy and the other with label-aware smoothing on long-tailed CIFAR-100 with imbalanced factor 100. The cross-entropy-based distributions of the head, medium, and tail classes are showing in the upper half part of Fig. 3 in light blue. The label-aware smoothing-based distributions are showing in the bottom half part in deep blue. We observe that the over-confidence of head and medium classes relieve greatly, and the whole distribution of the tail classes slightly moves right (a larger mean) when using label-aware smoothing. This empirical visualization is consistent with our analysis mentioned in Sec. 3.2. ",
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
811,
|
| 622 |
+
825,
|
| 623 |
+
924
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 5
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "table",
|
| 629 |
+
"img_path": "images/6dc96683359d2a0766e2b5919b962e3b65f09af68760fc4492c3a437a0fa811a.jpg",
|
| 630 |
+
"table_caption": [
|
| 631 |
+
"Table 2: Ablation study for all proposed modules on long-tailed CIFAR-100, $\\scriptstyle { \\mathrm { I F } = 1 0 0 }$ . MU: applying mixup just in Stage-1. SL: shift learning on batch normalization. LAS: label-aware smoothing. "
|
| 632 |
+
],
|
| 633 |
+
"table_footnote": [],
|
| 634 |
+
"table_body": "<table><tr><td colspan=\"3\">Module</td><td colspan=\"2\">LT CIFAR-100</td></tr><tr><td>MU</td><td>SL</td><td>LAS</td><td>100 50</td><td>10</td></tr><tr><td>区</td><td>区</td><td>区</td><td>41.2</td><td>46.0 58.5</td></tr><tr><td>回</td><td>区</td><td>区</td><td>44.2 50.6</td><td>62.2</td></tr><tr><td>回</td><td>回</td><td>区</td><td>45.3 51.4</td><td>62.8</td></tr><tr><td>回</td><td>回</td><td>回</td><td>47.0</td><td>52.3 63.0</td></tr></table>",
|
| 635 |
+
"bbox": [
|
| 636 |
+
179,
|
| 637 |
+
185,
|
| 638 |
+
501,
|
| 639 |
+
296
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 6
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "image",
|
| 645 |
+
"img_path": "images/0315c7dbd655f6f6197a72a630ed74cf36e29310af7ed324d9922d4ddb62b979.jpg",
|
| 646 |
+
"image_caption": [],
|
| 647 |
+
"image_footnote": [],
|
| 648 |
+
"bbox": [
|
| 649 |
+
529,
|
| 650 |
+
101,
|
| 651 |
+
818,
|
| 652 |
+
277
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "image",
|
| 658 |
+
"img_path": "images/aa2933fd6bdf9f8326ec3fc973f8a1fb1eb3117c88fb6fbb3ecb56edd5a3dd36.jpg",
|
| 659 |
+
"image_caption": [
|
| 660 |
+
"Figure 5: Ablation study of two hyperparameters $\\epsilon _ { 1 }$ and $\\epsilon _ { K }$ in label-aware smoothing. ",
|
| 661 |
+
"Figure 6: Visualization of the changes in the running mean $\\pmb { \\mu }$ and variance $\\sigma ^ { 2 }$ . The ResNet-32 based model is trained on LT CIFAR-100 with imbalanced factor 100. Left: $\\pmb { \\mu }$ and $\\sigma ^ { 2 }$ in the first BN of ResNet-32, which contains 16 channels. Right: $\\pmb { \\mu }$ and $\\sigma ^ { 2 }$ in the last BN of ResNet-32, which contains 64 channels. "
|
| 662 |
+
],
|
| 663 |
+
"image_footnote": [],
|
| 664 |
+
"bbox": [
|
| 665 |
+
178,
|
| 666 |
+
320,
|
| 667 |
+
821,
|
| 668 |
+
536
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 6
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "Further analysis of shift learning. In this part, we conduct an empirical experiment to show the effectiveness and reasonability of shift learning on BN. We train the LWS model on long-tailed CIFAR-100 with imbalanced factor 100. After 10 epochs finetuning in Stage-2, the model trained with BN shifting achieves accuracy at $4 5 . 3 \\%$ , which is $1 . 1 \\%$ higher than it without BN shifting. We also draw a visualization of the change in BN. As shown in Fig. 6, we see that there indeed exist biases in $\\pmb { \\mu }$ and $\\sigma ^ { 2 }$ between the dataset using different sampling strategies. Due to the composition ratios of the head classes, medium classes and tail classes are different in terms of different sampling strategies, the statistic running mean $\\pmb { \\mu }$ and running variance $\\sigma ^ { 2 }$ are certainly different. We also find some interesting phenomenons need for future exploration: (i) The changes in the running variance $\\sigma ^ { 2 }$ are larger than the changes in the running mean $\\pmb { \\mu }$ . (ii) The changes of $\\pmb { \\mu }$ and $\\sigma ^ { 2 }$ in deep BN layers are quite smaller than them in shallow BN layers. ",
|
| 675 |
+
"bbox": [
|
| 676 |
+
173,
|
| 677 |
+
593,
|
| 678 |
+
825,
|
| 679 |
+
746
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 6
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "Overall, Table 2 shows the ablation investigation on the effects of mixup (adding mixup in Stage1, MU), shift learning on batch normalization (SL), and label-aware smoothing (LAS). From it, each proposed module can further improve the performances on long-tailed CIFAR-100 for all commonly-used imbalanced factors, which firmly demonstrates the effectiveness. ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
174,
|
| 688 |
+
753,
|
| 689 |
+
825,
|
| 690 |
+
809
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 6
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "4.3 COMPARISON WITH THE STATE-OF-THE-ART ",
|
| 697 |
+
"text_level": 1,
|
| 698 |
+
"bbox": [
|
| 699 |
+
178,
|
| 700 |
+
828,
|
| 701 |
+
519,
|
| 702 |
+
842
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 6
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "text",
|
| 708 |
+
"text": "In this subsection, we compare the proposed method against previous one-stage methods, such as Range Loss (Zhang et al., 2017), LDAM Loss (Cao et al., 2019), FSLwF (Gidaris & Komodakis, 2018), and OLTR (Liu et al., 2019), and against previous two-stage methods, such as DRS-like, DRW-like (Cao et al., 2019), LFME (Xiang & Ding, 2020), cRT, and LWS (Kang et al., 2020). For fair comparisons, we also add mixup on the LWS and cRT models. Remix (Chou et al., 2020) is a recently proposed augmentation method for long-tail recognition. Because BBN (Zhou et al., 2020) has double samplers and is trained in a mixup-like manner, we directly compare our method with it. ",
|
| 709 |
+
"bbox": [
|
| 710 |
+
174,
|
| 711 |
+
854,
|
| 712 |
+
825,
|
| 713 |
+
924
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 6
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "table",
|
| 719 |
+
"img_path": "images/1d789ad465fee4e94c8f8a1788f7c54b64b4379742a4eb0a15b71c218d8e8fe4.jpg",
|
| 720 |
+
"table_caption": [
|
| 721 |
+
"Table 3: Top-1 accuracy $( \\% )$ for ResNet-32 models trained on long tailed CIFAR-10 and CIFAR-100. "
|
| 722 |
+
],
|
| 723 |
+
"table_footnote": [],
|
| 724 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">Long-tailed CIFAR-10</td><td colspan=\"3\">Long-tailed CIFAR-100</td></tr><tr><td>100</td><td>50</td><td>10</td><td>100</td><td>50</td><td>10</td></tr><tr><td>CE</td><td>70.4</td><td>74.8</td><td>86.4</td><td>38.4</td><td>43.9</td><td>55.8</td></tr><tr><td>mixup</td><td>73.1</td><td>77.8</td><td>87.1</td><td>39.6</td><td>45.0</td><td>58.2</td></tr><tr><td>LDAM+DRW</td><td>77.1</td><td>81.1</td><td>88.4</td><td>42.1</td><td>46.7</td><td>58.8</td></tr><tr><td>BBN(include mixup)</td><td>79.9</td><td>82.2</td><td>88.4</td><td>42.6</td><td>47.1</td><td>59.2</td></tr><tr><td>Remix+DRW(30 epochs)</td><td>79.8</td><td>=</td><td>89.1</td><td>46.8</td><td>-</td><td>61.3</td></tr><tr><td>cRT+mixup</td><td>79.1</td><td>84.2</td><td>89.8</td><td>45.1</td><td>50.9</td><td>62.1</td></tr><tr><td>LWS+mixup</td><td>76.3</td><td>82.6</td><td>89.6</td><td>44.2</td><td>50.6</td><td>62.2</td></tr><tr><td>MiSLAS</td><td>82.1</td><td>85.8</td><td>89.9</td><td>47.0</td><td>52.3</td><td>63.0</td></tr></table>",
|
| 725 |
+
"bbox": [
|
| 726 |
+
200,
|
| 727 |
+
125,
|
| 728 |
+
794,
|
| 729 |
+
295
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 7
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "table",
|
| 735 |
+
"img_path": "images/5d2f79bf6ca111d09d6c502961866559a12125a071e65938e5e8d7b730b554d6.jpg",
|
| 736 |
+
"table_caption": [
|
| 737 |
+
"Table 4: Top-1 accuracy $( \\% )$ on ImageNet-LT (left), iNaturalist 2018 (center) and Place-LT (right). "
|
| 738 |
+
],
|
| 739 |
+
"table_footnote": [
|
| 740 |
+
"(a) ImageNet-LT (b) iNaturalist 2018 (c) Place-LT "
|
| 741 |
+
],
|
| 742 |
+
"table_body": "<table><tr><td>Method</td><td>ResNet-50</td></tr><tr><td>CE</td><td>44.6</td></tr><tr><td>CE+DRW</td><td>48.5</td></tr><tr><td>Focal+DRW</td><td>47.9</td></tr><tr><td>LDAM+DRW</td><td>48.8</td></tr><tr><td>CRT+mixup LWS+mixup MiSLAS</td><td>51.7 52.0 52.7</td></tr></table>",
|
| 743 |
+
"bbox": [
|
| 744 |
+
176,
|
| 745 |
+
333,
|
| 746 |
+
380,
|
| 747 |
+
468
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 7
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "table",
|
| 753 |
+
"img_path": "images/94d4e75dbd5c82d35e650a4e045b3ca7282a4422135d6d8aaebe27e109e72141.jpg",
|
| 754 |
+
"table_caption": [],
|
| 755 |
+
"table_footnote": [],
|
| 756 |
+
"table_body": "<table><tr><td rowspan=1 colspan=4>Method</td><td rowspan=1 colspan=1>ResNet-50</td></tr><tr><td rowspan=1 colspan=4>CB-FocalLDAM+DRW</td><td rowspan=1 colspan=1>61.168.0</td></tr><tr><td rowspan=1 colspan=4>BBN(include mixup)</td><td rowspan=1 colspan=1>69.6</td></tr><tr><td rowspan=1 colspan=4>Remix+DRW</td><td rowspan=1 colspan=1>70.5</td></tr><tr><td rowspan=1 colspan=3>cRT+mixup</td><td rowspan=1 colspan=1>up</td><td rowspan=1 colspan=1>70.2</td></tr><tr><td rowspan=2 colspan=4>LWS+mixupMiSLAS</td><td rowspan=1 colspan=1>mixup</td></tr><tr><td rowspan=1 colspan=1>71.6</td></tr></table>",
|
| 757 |
+
"bbox": [
|
| 758 |
+
397,
|
| 759 |
+
333,
|
| 760 |
+
598,
|
| 761 |
+
469
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 7
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "table",
|
| 767 |
+
"img_path": "images/2ef56a9d9d11140bfb7dc42855fed373ce1fe0fb2236ec968e13fcfe8a057414.jpg",
|
| 768 |
+
"table_caption": [],
|
| 769 |
+
"table_footnote": [],
|
| 770 |
+
"table_body": "<table><tr><td>Method</td><td>ResNet-152</td></tr><tr><td>Range Loss</td><td>35.1</td></tr><tr><td>FSLwF</td><td>34.9</td></tr><tr><td>OLTR OLTR+LFME</td><td>35.9 36.2</td></tr><tr><td></td><td>38.3</td></tr><tr><td>cRT+mixup LWS+mixup</td><td>39.7</td></tr><tr><td>MiSLAS</td><td>40.4</td></tr></table>",
|
| 771 |
+
"bbox": [
|
| 772 |
+
609,
|
| 773 |
+
333,
|
| 774 |
+
818,
|
| 775 |
+
469
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 7
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "",
|
| 782 |
+
"bbox": [
|
| 783 |
+
171,
|
| 784 |
+
502,
|
| 785 |
+
825,
|
| 786 |
+
531
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 7
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "Experimental results on CIFAR-LT. We conduct extensive experiments on long-tailed CIFAR-10 and CIFAR-100 with imbalanced factors of 10, 50, and 100, which is the same as the previous setting (Cao et al., 2019; Zhou et al., 2020). The experimental results are summarized in Table 3. Compared with previous methods ( $^ +$ mixup, one/two-stage), our MiSLAS outperforms all previous methods by a large margin. Moreover, this superiority of the proposed method holds for all imbalanced factors on both long-tailed CIFAR-10 and CIFAR-100. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
173,
|
| 795 |
+
539,
|
| 796 |
+
825,
|
| 797 |
+
622
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 7
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Experimental results on ImageNet-LT, iNaturalist 2018, and Place-LT. We further verify the effectiveness of our method on three large-scale imbalanced datasets, i.e., ImageNet-LT, iNaturalist 2018, and Place-LT. Table 4 lists experimental results on ImageNet-LT (left), iNaturalist 2018 (center), and Places-LT (right). Notably, our MiSLAS still outperforms all competing approaches and sets new state-of-the-art records for all three large-scale long-tailed benchmarks. More detailed results about the split class accuracies and different backbones on these three datasets are listed in Appendix C. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
630,
|
| 807 |
+
825,
|
| 808 |
+
714
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "5 CONCLUSION ",
|
| 815 |
+
"text_level": 1,
|
| 816 |
+
"bbox": [
|
| 817 |
+
176,
|
| 818 |
+
734,
|
| 819 |
+
318,
|
| 820 |
+
751
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 7
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "In this paper, we discover that models trained on long-tailed datasets are more miscalibrated and over-confident than them trained on balanced datasets. The two-stage models suffer the same issue as well. To relieve over-confidence, we propose two solutions: (i) We find that mixup can remedy over-confidence and have a positive effect on representation learning but a negative or negligible effect on classifier learning. (ii) To further improve classifier learning and calibration, we propose label-aware smoothing to handle the different degrees of over-confidence for different classes. We are the first to note the dataset bias or domain shift in two-stage resampling methods for long-tailed recognition. To solve the dataset bias producing by different re-sampling in the decoupling framework, we propose shift learning on the batch normalization layer and this novel model can greatly improve the performance. Extensive quantitative and qualitative experiments on multiple benchmark datasets show that our MiSLAS achieves superior performances over the state-of-the-art methods. ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
174,
|
| 829 |
+
765,
|
| 830 |
+
825,
|
| 831 |
+
919
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 7
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "REFERENCES \nMariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016. \nMateusz Buda, Atsuto Maki, and Maciej A Mazurowski. A systematic study of the class imbalance problem in convolutional neural networks. Neural Networks, 106:249–259, 2018. \nJonathon Byrd and Zachary Lipton. What is the effect of importance weighting in deep learning? In ICML, pp. 872–881, 2019. \nKaidi Cao, Colin Wei, Adrien Gaidon, Nikos Arechiga, and Tengyu Ma. Learning imbalanced datasets with label-distribution-aware margin loss. In NeurIPS, pp. 1567–1578, 2019. \nHsin-Ping Chou, Shih-Chieh Chang, Jia-Yu Pan, Wei Wei, and Da-Cheng Juan. Remix: Rebalanced mixup. In ECCVW, 2020. \nMarius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The Cityscapes dataset for semantic urban scene understanding. In CVPR, pp. 3213–3223, 2016. \nYin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge Belongie. Class-balanced loss based on effective number of samples. In CVPR, pp. 9268–9277, 2019. \nSpyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, pp. 4367–4375, 2018. \nChuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, pp. 1321–1330, 2017. \nKaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016. \nChen Huang, Yining Li, Chen Change Loy, and Xiaoou Tang. Learning deep representation for imbalanced classification. In CVPR, pp. 5375–5384, 2016. \nSergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. \nNathalie Japkowicz and Shaju Stephen. The class imbalance problem: A systematic study. Intelligent data analysis, 6(5):429–449, 2002. \nXiaoqian Jiang, Melanie Osl, Jihoon Kim, and Lucila Ohno-Machado. Calibrating predictive model estimates to support personalized medicine. Journal of the American Medical Informatics Association, 19(2):263–274, 2012. \nBingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classifier for long-tailed recognition. In ICLR, 2020. \nAlex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, pp. 1097–1105, 2012. \nYanghao Li, Naiyan Wang, Jianping Shi, Xiaodi Hou, and Jiaying Liu. Adaptive batch normalization for practical domain adaptation. Pattern Recognition, 80:109–117, 2018. \nTsung-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 ECCV, pp. 740–755, 2014. \nTsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In ICCV, pp. 2980–2988, 2017. \nZiwei Liu, Zhongqi Miao, Xiaohang Zhan, Jiayun Wang, Boqing Gong, and Stella X Yu. Large-scale long-tailed recognition in an open world. In CVPR, pp. 2537–2546, 2019. ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
171,
|
| 840 |
+
63,
|
| 841 |
+
828,
|
| 842 |
+
925
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 8
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "text",
|
| 848 |
+
"text": "Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. ICLR, 2017. ",
|
| 849 |
+
"bbox": [
|
| 850 |
+
171,
|
| 851 |
+
103,
|
| 852 |
+
826,
|
| 853 |
+
133
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 9
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? In NeurIPS, pp. 4694–4703, 2019. ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
174,
|
| 862 |
+
140,
|
| 863 |
+
823,
|
| 864 |
+
170
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 9
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Alexandru Niculescu-Mizil and Rich Caruana. Predicting good probabilities with supervised learning. In ICML, pp. 625–632, 2005. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
173,
|
| 873 |
+
178,
|
| 874 |
+
823,
|
| 875 |
+
208
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 9
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "Joaquin Quionero-Candela, Masashi Sugiyama, Anton Schwaighofer, and Neil D Lawrence. Dataset shift in machine learning. The MIT Press, 2009. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
173,
|
| 884 |
+
215,
|
| 885 |
+
825,
|
| 886 |
+
246
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 9
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NeurIPS, pp. 91–99, 2015. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
171,
|
| 895 |
+
253,
|
| 896 |
+
825,
|
| 897 |
+
284
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 9
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. ImageNet large scale visual recognition challenge. IJCV, 115(3):211–252, 2015. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
176,
|
| 906 |
+
291,
|
| 907 |
+
825,
|
| 908 |
+
335
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 9
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Li Shen, Zhouchen Lin, and Qingming Huang. Relay backpropagation for effective learning of deep convolutional neural networks. In ECCV, pp. 467–482, 2016. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
174,
|
| 917 |
+
343,
|
| 918 |
+
823,
|
| 919 |
+
373
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 9
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, pp. 2818–2826, 2016. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
173,
|
| 928 |
+
381,
|
| 929 |
+
821,
|
| 930 |
+
411
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 9
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Sunil Thulasidasan, Gopinath Chennupati, Jeff A Bilmes, Tanmoy Bhattacharya, and Sarah Michalak. On mixup training: Improved calibration and predictive uncertainty for deep neural networks. In NeurIPS, pp. 13888–13899, 2019. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
176,
|
| 939 |
+
419,
|
| 940 |
+
823,
|
| 941 |
+
462
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 9
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Grant Van Horn, Oisin Mac Aodha, Yang Song, Yin Cui, Chen Sun, Alex Shepard, Hartwig Adam, Pietro Perona, and Serge Belongie. The iNaturalist species classification and detection dataset. In CVPR, pp. 8769–8778, 2018. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
171,
|
| 950 |
+
469,
|
| 951 |
+
823,
|
| 952 |
+
513
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 9
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "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, pp. 6438–6447, 2019. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
173,
|
| 961 |
+
522,
|
| 962 |
+
823,
|
| 963 |
+
565
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 9
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Ximei Wang, Ying Jin, Mingsheng Long, Jianmin Wang, and Michael I Jordan. Transferable normalization: Towards improving transferability of deep neural networks. In NeurIPS, pp. 1953–1963, 2019. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
171,
|
| 972 |
+
573,
|
| 973 |
+
823,
|
| 974 |
+
616
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 9
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Yu-Xiong Wang, Deva Ramanan, and Martial Hebert. Learning to model the tail. In NeurIPS, pp. 7029–7039, 2017. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
173,
|
| 983 |
+
625,
|
| 984 |
+
823,
|
| 985 |
+
655
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 9
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Liuyu Xiang and Guiguang Ding. Learning from multiple experts: Self-paced knowledge distillation for long-tailed classification. In ECCV, 2020. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
662,
|
| 995 |
+
825,
|
| 996 |
+
693
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 9
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "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, pp. 6023–6032, 2019. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
176,
|
| 1005 |
+
700,
|
| 1006 |
+
825,
|
| 1007 |
+
743
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 9
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. ICLR, 2018. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
169,
|
| 1016 |
+
752,
|
| 1017 |
+
825,
|
| 1018 |
+
781
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 9
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Xiao Zhang, Zhiyuan Fang, Yandong Wen, Zhifeng Li, and Yu Qiao. Range loss for deep face recognition with long-tailed training data. In ICCV, pp. 5409–5418, 2017. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
171,
|
| 1027 |
+
790,
|
| 1028 |
+
823,
|
| 1029 |
+
820
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 9
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. IEEE TPAMI, 40(6):1452–1464, 2017. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
171,
|
| 1038 |
+
828,
|
| 1039 |
+
823,
|
| 1040 |
+
858
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 9
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Boyan Zhou, Quan Cui, Xiu-Shen Wei, and Zhao-Min Chen. BBN: Bilateral-branch network with cumulative learning for long-tailed visual recognition. In CVPR, pp. 9719–9728, 2020. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
173,
|
| 1049 |
+
866,
|
| 1050 |
+
825,
|
| 1051 |
+
895
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 9
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "A EXPERIMENT SETUP ",
|
| 1058 |
+
"text_level": 1,
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
176,
|
| 1061 |
+
102,
|
| 1062 |
+
382,
|
| 1063 |
+
118
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 10
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "A.1 DATASETS EXPLANATION ",
|
| 1070 |
+
"text_level": 1,
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
176,
|
| 1073 |
+
133,
|
| 1074 |
+
393,
|
| 1075 |
+
147
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 10
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "CIFAR-10-LT and CIFAR-100-LT. CIFAR-10 and CIFAR-100 both have 60,000 images 50,000 for training and 10,000 for validation with 10 categories and 100 categories, respectively. For a fair comparison, we use the long-tailed versions of CIFAR datasets with the same setting as those used in Cao et al. (2019). They control the degrees of data imbalance with an imbalanced factor $\\beta$ . $\\begin{array} { r } { \\beta = \\frac { N _ { \\mathrm { m a x } } } { N _ { \\mathrm { m i n } } } } \\end{array}$ , where $N _ { \\mathrm { m a x } }$ and $N _ { \\mathrm { m i n } }$ are the numbers of training samples for the most frequent class and the least frequent class. Following Cao et al. (2019) and Zhou et al. (2020), we conduct experiments with imbalanced factors 100, 50, and 10. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
159,
|
| 1085 |
+
825,
|
| 1086 |
+
260
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 10
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "ImageNet-LT and Places-LT. ImageNet-LT and Places-LT were proposed by Liu et al. (2019). ImageNet-LT is a long-tailed version of the large-scale object classification dataset ImageNet (Russakovsky et al., 2015) by sampling a subset following the Pareto distribution with power value $\\alpha = 6$ . It contains 115.8K images from 1,000 categories, with class cardinality ranging from 5 to 1,280. Places-LT is a long-tailed version of the large-scale scene classification dataset Places (Zhou et al., 2017). It consists of 184.5K images from 365 categories with class cardinality ranging from 5 to 4,980. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
173,
|
| 1095 |
+
275,
|
| 1096 |
+
826,
|
| 1097 |
+
372
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 10
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "iNaturalist 2018. iNaturalist 2018 (Van Horn et al., 2018) is one species classification dataset, which is on a large scale and suffers from extremely imbalanced label distributions. It is composed of 437.5K images from 8,142 categories. In addition to the extreme imbalance, the iNaturalist 2018 dataset also confronts the fine-grained problem. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
387,
|
| 1107 |
+
825,
|
| 1108 |
+
444
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 10
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "A.2 EVALUATION PROTOCOL ",
|
| 1115 |
+
"text_level": 1,
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
176,
|
| 1118 |
+
462,
|
| 1119 |
+
387,
|
| 1120 |
+
476
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 10
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "Following Liu et al. (2019) and Kang et al. (2020), we report the commonly used top-1 accuracy over all classes on the balanced test/validation datasets, denoted as All. In more detail, further report accuracy on three splits of the set of classes: Head-Many (more than 100 images), Med.-Medium (20 to 100 images) and Tail-Few (less than 20 images). ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
174,
|
| 1129 |
+
487,
|
| 1130 |
+
825,
|
| 1131 |
+
542
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 10
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "A.3 IMPLEMENTATION DETAILS ",
|
| 1138 |
+
"text_level": 1,
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
176,
|
| 1141 |
+
560,
|
| 1142 |
+
406,
|
| 1143 |
+
574
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 10
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "For all experiments, we use the SGD optimizer with momentum 0.9 to optimize networks. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
173,
|
| 1152 |
+
585,
|
| 1153 |
+
764,
|
| 1154 |
+
601
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 10
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "For long-tailed CIFAR, we mainly follow Cao et al. (2019). We train all MiSLAS models with the ResNet-32 backbone on one GPU and use the multistep learning rate schedule, which decreases the learning rate by 0.1 at the $1 6 0 ^ { \\mathrm { t h } }$ epoch and the $1 8 0 ^ { \\mathrm { t h } }$ epochs in Stage-1. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
174,
|
| 1163 |
+
607,
|
| 1164 |
+
825,
|
| 1165 |
+
650
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 10
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "For ImageNet-LT, Place-LT, and iNaturalist 2018, We mainly follow Kang et al. (2020) and use the cosine learning rate schedule (Loshchilov & Hutter, 2017) to train all MiSLAS models with the ResNet-10/50/101/152 backbones on 4 GPUs. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
174,
|
| 1174 |
+
656,
|
| 1175 |
+
825,
|
| 1176 |
+
698
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 10
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "table",
|
| 1182 |
+
"img_path": "images/c6aecb6b715c1e153f6b21fae9e822f806304864c94313aa78a8ea929bf18ec4.jpg",
|
| 1183 |
+
"table_caption": [
|
| 1184 |
+
"Table 5: Detailed experiment settings on five benchmark datasets. LR: learning rate, BS: batch size, WD: weight decay, and LRS: learning rate schedule, $\\Delta \\mathbf { W }$ : learning rate ratio of $\\Delta \\mathbf { W }$ . "
|
| 1185 |
+
],
|
| 1186 |
+
"table_footnote": [],
|
| 1187 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"3\">Common</td><td colspan=\"2\">Stage-1</td><td colspan=\"5\">Stage-2</td></tr><tr><td>LR</td><td>BS</td><td>WD</td><td>Epochs</td><td>LRS</td><td>Epochs</td><td>LRS</td><td>@1</td><td>EK</td><td>△W</td></tr><tr><td>LT CIFAR-10</td><td>0.1</td><td>128</td><td>2e-4</td><td>200</td><td>multi.</td><td>10</td><td>cosine</td><td>0.3</td><td>0.0</td><td>0.5x</td></tr><tr><td>LT CIFAR-100</td><td>0.1</td><td>128</td><td>2e-4</td><td>200</td><td>multi.</td><td>10</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.2x</td></tr><tr><td>ImageNet-LT</td><td>0.1</td><td>256</td><td>5e-4</td><td>180</td><td>cosine</td><td>10</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.05x</td></tr><tr><td>Places-LT</td><td>0.1</td><td>256</td><td>5e-4</td><td>90</td><td>cosine</td><td>10</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.05x</td></tr><tr><td>iNaturalist'18</td><td>0.1</td><td>256</td><td>1e-4</td><td>200</td><td>cosine</td><td>30</td><td>cosine</td><td>0.4</td><td>0.1</td><td>0.05x</td></tr></table>",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
173,
|
| 1190 |
+
750,
|
| 1191 |
+
825,
|
| 1192 |
+
877
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 10
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "B CALIBRATION ",
|
| 1199 |
+
"text_level": 1,
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
174,
|
| 1202 |
+
103,
|
| 1203 |
+
326,
|
| 1204 |
+
117
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 11
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "image",
|
| 1210 |
+
"img_path": "images/eacc92a146d5ac8a9a51356e182064f8bab077b1209b16054aeef90c0ea78cb2.jpg",
|
| 1211 |
+
"image_caption": [
|
| 1212 |
+
"Figure 7: Reliability diagrams on CIFAR10 with 15 bins. From left to right: plain ResNet-32 model trained on the original CIFAR-10 dataset, plain model, cRT, LWS, and MiSLAS trained on long-tailed CIFAR-10 with imbalanced factor 100. "
|
| 1213 |
+
],
|
| 1214 |
+
"image_footnote": [],
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
174,
|
| 1217 |
+
133,
|
| 1218 |
+
823,
|
| 1219 |
+
252
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 11
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "image",
|
| 1225 |
+
"img_path": "images/ec26f5f2647f296366c96bb51460bb73017ab9b16d3e9ad67012cc02bd8b43d6.jpg",
|
| 1226 |
+
"image_caption": [
|
| 1227 |
+
"Figure 8: Reliability diagrams on ImageNet with 15 bins. From left to right: plain ResNet-50 model trained on the original ImageNet dataset, plain model, cRT, LWS, and MiSLAS trained on ImageNet-LT. "
|
| 1228 |
+
],
|
| 1229 |
+
"image_footnote": [],
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
174,
|
| 1232 |
+
323,
|
| 1233 |
+
823,
|
| 1234 |
+
441
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 11
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "image",
|
| 1240 |
+
"img_path": "images/4b1d456880deb636b722c684adcb5b082238c3880ce0191066e72f548d599faf.jpg",
|
| 1241 |
+
"image_caption": [],
|
| 1242 |
+
"image_footnote": [],
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
174,
|
| 1245 |
+
512,
|
| 1246 |
+
823,
|
| 1247 |
+
631
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 11
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Figure 9: Reliability diagrams of ResNet-152 trained on Places-LT with 15 bins. From left to right: cRT, LWS, cRT with mixup, LWS with mixup, and MiSLAS. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
171,
|
| 1256 |
+
642,
|
| 1257 |
+
825,
|
| 1258 |
+
670
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 11
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "C MORE DETAILED RESULTS ON IMAGENET-LT, PLACES-LT AND INATURALIST 2018 ",
|
| 1265 |
+
"text_level": 1,
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
176,
|
| 1268 |
+
102,
|
| 1269 |
+
735,
|
| 1270 |
+
136
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 12
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "table",
|
| 1276 |
+
"img_path": "images/d4319799f64fa455e68b4371cb6dadf4c5aa23cf52c0c9a335e9cfced30f9854.jpg",
|
| 1277 |
+
"table_caption": [
|
| 1278 |
+
"Table 6: Comprehensive accuracy results on ImageNet-LT with different backbone networks (ResNet50, ResNet-101 & ResNet-152) and training 180 epochs. "
|
| 1279 |
+
],
|
| 1280 |
+
"table_footnote": [],
|
| 1281 |
+
"table_body": "<table><tr><td>Backbone</td><td>Method</td><td>Many</td><td>Medium</td><td>Few</td><td>All</td></tr><tr><td rowspan=\"4\">ResNet-50</td><td>cRT</td><td>62.5</td><td>47.4</td><td>29.5</td><td>50.3</td></tr><tr><td>LWS</td><td>61.8</td><td>48.6</td><td>33.5</td><td>51.2</td></tr><tr><td>cRT+mixup</td><td>63.9</td><td>49.1</td><td>30.2</td><td>51.7</td></tr><tr><td>LWS+mixup MiSLAS</td><td>62.9 61.7</td><td>49.8 51.3</td><td>31.6 35.8</td><td>52.0 52.7</td></tr><tr><td rowspan=\"4\">ResNet-101</td><td>cRT LWS</td><td>63.8 63.1</td><td>48.5</td><td>30.0</td><td>51.4</td></tr><tr><td>cRT+mixup</td><td>65.2</td><td>49.9</td><td>33.8</td><td>52.3</td></tr><tr><td>LWS+mixup</td><td>64.5</td><td>50.6</td><td>31.6</td><td>53.1</td></tr><tr><td>MiSLAS</td><td>64.3</td><td>51.2 52.1</td><td>34.1 35.8</td><td>53.5 54.1</td></tr><tr><td rowspan=\"4\">ResNet-152</td><td>cRT LWS</td><td>64.9</td><td>50.4</td><td>30.6</td><td>52.7</td></tr><tr><td></td><td>64.1</td><td>51.8</td><td>35.5</td><td>53.8</td></tr><tr><td>cRT+mixup</td><td>66.5</td><td>51.6</td><td>32.8</td><td>54.2</td></tr><tr><td>LWS+mixup MiSLAS</td><td>66.1 65.4</td><td>52.2 53.2</td><td>34.5 37.1</td><td>54.6 55.2</td></tr></table>",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
200,
|
| 1284 |
+
194,
|
| 1285 |
+
794,
|
| 1286 |
+
448
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 12
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "table",
|
| 1292 |
+
"img_path": "images/655893187ef592749ff42f5b43cd962fd9d584be055660a0d40acadb8a0c8a5f.jpg",
|
| 1293 |
+
"table_caption": [
|
| 1294 |
+
"Table 7: Comprehensive accuracy results on iNaturalist 2018 with ResNet-50 and training 200 epochs. "
|
| 1295 |
+
],
|
| 1296 |
+
"table_footnote": [],
|
| 1297 |
+
"table_body": "<table><tr><td>Backbone</td><td>Method</td><td>Many</td><td>Medium</td><td>Few</td><td>All</td></tr><tr><td rowspan=\"5\">ResNet-50</td><td>cRT</td><td>73.2</td><td>68.8</td><td>66.1</td><td>68.2</td></tr><tr><td>T-normalized</td><td>71.1</td><td>68.9</td><td>69.3</td><td>69.3</td></tr><tr><td>LWS</td><td>71.0</td><td>69.8</td><td>68.8</td><td>69.5</td></tr><tr><td>cRT+mixup</td><td>74.2</td><td>71.1</td><td>68.2</td><td>70.2</td></tr><tr><td>LWS+mixup</td><td>72.8</td><td>71.6</td><td>69.8</td><td>70.9</td></tr><tr><td></td><td>MiSLAS</td><td>73.2</td><td>72.4</td><td>70.4</td><td>71.6</td></tr></table>",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
204,
|
| 1300 |
+
494,
|
| 1301 |
+
789,
|
| 1302 |
+
617
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 12
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "table",
|
| 1308 |
+
"img_path": "images/d3c0b12be2a7d80ee85125745e390ca0fab5a9df6efd630a08ea43ce23504140.jpg",
|
| 1309 |
+
"table_caption": [
|
| 1310 |
+
"Table 8: Detailed accuracy results on Places-LT, starting from an ImageNet pre-trained ResNet-152. "
|
| 1311 |
+
],
|
| 1312 |
+
"table_footnote": [],
|
| 1313 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Backbone</td><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Many Medium Few All</td></tr><tr><td rowspan=10 colspan=1>ResNet-152</td><td rowspan=1 colspan=1>Lifted Loss</td><td rowspan=1 colspan=1>41.1 35.4 24.0 35.2</td></tr><tr><td rowspan=1 colspan=1>Focal Loss</td><td rowspan=1 colspan=1>41.1 34.8 22.4 34.6</td></tr><tr><td rowspan=1 colspan=1>Range Loss</td><td rowspan=1 colspan=1>41.1 35.4 23.2 35.1</td></tr><tr><td rowspan=1 colspan=1>FSLwFOLTR</td><td rowspan=1 colspan=1>43.9 29.9 29.5 34.944.7 37.0 25.3 35.9</td></tr><tr><td rowspan=1 colspan=1>OLTR+LFME</td><td rowspan=1 colspan=1>39.3 39.6 24.2 36.2</td></tr><tr><td rowspan=2 colspan=1>cRTT-normalizedLWS</td><td rowspan=1 colspan=1>42.0 37.6 24.9 36.7</td></tr><tr><td rowspan=1 colspan=1>37.8 40.7 31.8 37.940.6 39.1 28.6 37.6</td></tr><tr><td rowspan=3 colspan=1>cRT+mixupLWS+mixupMiSLAS</td><td rowspan=1 colspan=1>44.1 38.5 27.1 38.1</td></tr><tr><td rowspan=1 colspan=1>41.7 41.3 33.1 39.7</td></tr><tr><td rowspan=1 colspan=1>39.6 43.3 36.1 40.4</td></tr></table>",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
197,
|
| 1316 |
+
664,
|
| 1317 |
+
794,
|
| 1318 |
+
873
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 12
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "D ABLATION STUDY OF LABEL-AWARE SMOOTHING ",
|
| 1325 |
+
"text_level": 1,
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
173,
|
| 1328 |
+
102,
|
| 1329 |
+
630,
|
| 1330 |
+
118
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 13
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "image",
|
| 1336 |
+
"img_path": "images/16ab8345b0b49db5c1f6d862e06d90e6e500f84f1e06457336244442b23313d5.jpg",
|
| 1337 |
+
"image_caption": [
|
| 1338 |
+
"D.1 MORE RESULTS ABOUT THE HYPERPARAMETERS $\\epsilon _ { 1 }$ AND $\\epsilon _ { K }$ ",
|
| 1339 |
+
"Figure 10: Ablation study of two hyperparameters $\\epsilon _ { 1 }$ and $\\epsilon _ { K }$ in label-aware smoothing. Our labelaware smoothing (orange square) outperforms cross-entropy (green square) by a large margin on both long-tailed CIFAR-10 (left) and long-tailed CIFAR-100 (right). "
|
| 1340 |
+
],
|
| 1341 |
+
"image_footnote": [],
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
181,
|
| 1344 |
+
164,
|
| 1345 |
+
818,
|
| 1346 |
+
369
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 13
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "D.2 FORM OF THE RELATED FUNCTION $f ( \\cdot )$ ",
|
| 1353 |
+
"text_level": 1,
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
176,
|
| 1356 |
+
448,
|
| 1357 |
+
488,
|
| 1358 |
+
463
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 13
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "As discussed in Sec. 3.2 and Sec. 4.2, the form of the related function $f ( \\cdot )$ may play a significant role for the final model performance. We draw the visualization of Eqn. (3) at the left part of Fig. 11. For the LT CIFAR-100 dataset with balanced factor 100, $N _ { 1 } = 5 0 0$ and $N _ { 1 0 0 } = 5$ . Based on the ablation study results of $\\epsilon _ { 1 }$ and $\\epsilon _ { K }$ mentioned in Sec. 4.2 and above, we set $\\epsilon _ { 1 } = 0 . 4$ and $\\epsilon _ { 1 0 0 } = 0 . 1 $ here. After fintuning for 10 epochs in Stage-2, the accuracy of the concave model is the best. We also design a power-like related function, which can be written as: ",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
173,
|
| 1367 |
+
473,
|
| 1368 |
+
826,
|
| 1369 |
+
558
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 13
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "equation",
|
| 1375 |
+
"img_path": "images/373b8363d3a977a4ad1eaa32adf167d05ea82a082c743a680c614ef8b1aaef5f.jpg",
|
| 1376 |
+
"text": "$$\n\\epsilon _ { y } = f ( N _ { y } ) = \\epsilon _ { K } + ( \\epsilon _ { 1 } - \\epsilon _ { K } ) \\bigg ( { \\frac { N _ { y } - N _ { K } } { N _ { 1 } - N _ { K } } } \\bigg ) ^ { p } , \\qquad y = 1 , 2 , . . . , K ,\n$$",
|
| 1377 |
+
"text_format": "latex",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
272,
|
| 1380 |
+
564,
|
| 1381 |
+
723,
|
| 1382 |
+
599
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 13
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "where $p$ is a hyperparameter to control the shape of the related function. For example, we will get concave related function if we set $p < 1$ and we will get convex related function if we set $p > 1$ . The visualization of Eqn. (7) is shown at the right part of Fig. 11. However, comparing the accuracies of all variants, the influence of the related function form is quite limited for the final performance (just growing by $0 . 3 \\%$ ). Because the concave related function in Eqn. (3) achieves the best performance among all variants, we choose it as the default setting of the related function $f ( \\cdot )$ for other experiments. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
173,
|
| 1391 |
+
604,
|
| 1392 |
+
826,
|
| 1393 |
+
704
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 13
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "image",
|
| 1399 |
+
"img_path": "images/98f172c1a250bbc32349248542a822455a2e8cc42d80596499181b72ec7f5323.jpg",
|
| 1400 |
+
"image_caption": [
|
| 1401 |
+
"Figure 11: Function visualization and accuracy of Eqn. (3) (left) and Eqn. (7) (right). "
|
| 1402 |
+
],
|
| 1403 |
+
"image_footnote": [],
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
174,
|
| 1406 |
+
715,
|
| 1407 |
+
818,
|
| 1408 |
+
837
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 13
|
| 1411 |
+
}
|
| 1412 |
+
]
|
parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Sx-mvOvnmJj/Sx-mvOvnmJj_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eom0IUrF__F/eom0IUrF__F.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eom0IUrF__F/eom0IUrF__F_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|