ZHANGYUXUAN-zR commited on
Commit
658aab1
·
verified ·
1 Parent(s): 1a0a2ec

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/train/3SV-ZePhnZM/3SV-ZePhnZM.md +317 -0
  2. parse/train/3SV-ZePhnZM/3SV-ZePhnZM_content_list.json +0 -0
  3. parse/train/3SV-ZePhnZM/3SV-ZePhnZM_middle.json +0 -0
  4. parse/train/3SV-ZePhnZM/3SV-ZePhnZM_model.json +0 -0
  5. parse/train/3g5KdPD8LIL/images/03e0b4da2dd1716cbf0f48130a0e3e9d6b152fda36171fe2a70ef2ee68884792.jpg +3 -0
  6. parse/train/3g5KdPD8LIL/images/0cf2ca09adb19d88f99a939c9cae489ced9b2a5be9f1843f20a31b298dbe24b6.jpg +3 -0
  7. parse/train/3g5KdPD8LIL/images/0dd2b39a24bcc3ade8b7c1b5e7351c7f059bac8249985049f6a955060c23ea56.jpg +3 -0
  8. parse/train/3g5KdPD8LIL/images/112dfe3d49a6bf56b784a4733b751cf0a34de8798cb4de036bc65b74280c3606.jpg +3 -0
  9. parse/train/3g5KdPD8LIL/images/2145ab9b3bc8178553796fba897c230aa364a9743d0b54f31a575a34b3004279.jpg +3 -0
  10. parse/train/3g5KdPD8LIL/images/42432145446d15826e0912ad9a582adecc8b903cb263d306487137489724f86e.jpg +3 -0
  11. parse/train/3g5KdPD8LIL/images/4b789ddb2c78b08153055c11a351b43a49a73b9ef706ae3b51d1a596f2a2b26a.jpg +3 -0
  12. parse/train/3g5KdPD8LIL/images/54f033e20437b2470146b6ad167747c161c7dea49907ec6e1075a5ad9b5bc028.jpg +3 -0
  13. parse/train/3g5KdPD8LIL/images/689434e91b4dde1ece15a75047f8b53515cfedbab3ace44521bfc1117625af75.jpg +3 -0
  14. parse/train/3g5KdPD8LIL/images/6fe42bfba41420f38aecf4a17ab1e4d9b4816d2107844d698cd5beb3f6b072ab.jpg +3 -0
  15. parse/train/3g5KdPD8LIL/images/8e40a88186fe991a1f5b33f0d69f552be1b201d8e8b9ad49435e47363052c85c.jpg +3 -0
  16. parse/train/3g5KdPD8LIL/images/9a2ce8b4db1667e120d3e391edc4e605f10711786bdbd70de95e46dfcb47ad39.jpg +3 -0
  17. parse/train/3g5KdPD8LIL/images/9b2597f442abd0c904edd84c873c006247936ef70233e08802bcb5c81bd995f5.jpg +3 -0
  18. parse/train/3g5KdPD8LIL/images/ab9235c819339abb3bd3d756dfaf8257af88464cf4bb5c06397fd49952b333df.jpg +3 -0
  19. parse/train/3g5KdPD8LIL/images/b08f9cfa25e49147de6bd5c99c32e6d5058eeef27cd23f658d79d4db5b7758a1.jpg +3 -0
  20. parse/train/3g5KdPD8LIL/images/b5c3ae0112d4775e1d17c9295e5537664ae043d2a3d125584282c129b55680db.jpg +3 -0
  21. parse/train/3g5KdPD8LIL/images/c3a32688718fc2498034dc1d8c73a0871eedd77b075fe8697acaf10411eb48b5.jpg +3 -0
  22. parse/train/3g5KdPD8LIL/images/ee74ef15b1c4bf5acba45467aa3b157cb56fa3118986b351ff3cd98fe81ae34d.jpg +3 -0
  23. parse/train/6xHJ37MVxxp/6xHJ37MVxxp.md +331 -0
  24. parse/train/6xHJ37MVxxp/6xHJ37MVxxp_content_list.json +1667 -0
  25. parse/train/6xHJ37MVxxp/6xHJ37MVxxp_middle.json +0 -0
  26. parse/train/6xHJ37MVxxp/6xHJ37MVxxp_model.json +0 -0
  27. parse/train/B1xwcyHFDr/B1xwcyHFDr.md +0 -0
  28. parse/train/B1xwcyHFDr/B1xwcyHFDr_content_list.json +0 -0
  29. parse/train/B1xwcyHFDr/B1xwcyHFDr_middle.json +0 -0
  30. parse/train/B1xwcyHFDr/B1xwcyHFDr_model.json +0 -0
  31. parse/train/BkgzniCqY7/images/054d38529f162de9cc5fb7bf9a29dfeeb97413bd5d3c4b9bfc005f20fa05d6ac.jpg +3 -0
  32. parse/train/BkgzniCqY7/images/0a126a0aad6783af6e48e3885829c196c47738f3f3b64610d8416f89cbcc23f3.jpg +3 -0
  33. parse/train/BkgzniCqY7/images/0cb1cf3c28c53910486e66479a6adb7cbae84175167c7e2352e5cab34028c2e8.jpg +3 -0
  34. parse/train/BkgzniCqY7/images/0f399119a520de71796f2822a0a37f7697097e1b9b4fe7048cf1ca21bf9a6d0c.jpg +3 -0
  35. parse/train/BkgzniCqY7/images/15d595941aabb17714bf6c26af2c56e9be8e49e1875cbbb4eddda0989ac45fb8.jpg +3 -0
  36. parse/train/BkgzniCqY7/images/1706848d6f1386a1391bd4b9399902ab4cc902a171a2e87b26fbb53396e39c1d.jpg +3 -0
  37. parse/train/BkgzniCqY7/images/1709eb9cc90aba912103f361d377de750a609161f1d9a6fdd84a87d51c2bb3a3.jpg +3 -0
  38. parse/train/BkgzniCqY7/images/1848b54c1524097192cfc2fc07dc227bc336c14dee18e9df59415b4890b2d66d.jpg +3 -0
  39. parse/train/BkgzniCqY7/images/199c60650b86fb1b4d38eef62baed3cc0c3b6dfe2e169b6d7d2a077c1f2e0ad3.jpg +3 -0
  40. parse/train/BkgzniCqY7/images/1c2b2d75d8eccba9ae7c39168920877e988ce241f6e23adf98c8892218bdd23d.jpg +3 -0
  41. parse/train/BkgzniCqY7/images/22f1a58428dc848cf45705ee06a6356d7e3c9cd5d4e8b94f2297cecdc9c3cae6.jpg +3 -0
  42. parse/train/BkgzniCqY7/images/2bfc694c2b1d7b0f5f7a63ffa9e440f5e783c4f79dbd23ca3dbd412b2a2d7eba.jpg +3 -0
  43. parse/train/BkgzniCqY7/images/2dbe58cd75ce720c2686953b2f27deee4320c8c58210d7a84c600a68e6390b63.jpg +3 -0
  44. parse/train/BkgzniCqY7/images/2e9b247536296693c67d72dddf79880bc619b55f6c5c259b8ab163e49e8359b7.jpg +3 -0
  45. parse/train/BkgzniCqY7/images/3393f6036b821f0b87a3a525b325faaf5961019f8136b464db963135cff542d6.jpg +3 -0
  46. parse/train/BkgzniCqY7/images/34aba3430ebb010135d9dd791b741174dc13fc7bd877bb8138bf00197f142195.jpg +3 -0
  47. parse/train/BkgzniCqY7/images/38001ca6f9945be455ddeda3eb31d3cd6f8b1c19d3815bf0e2063fe67b8ea720.jpg +3 -0
  48. parse/train/BkgzniCqY7/images/39f973ae40ee9639c50e1d0c0d12ab51daabe2b3424b93e84b701ef9598822b7.jpg +3 -0
  49. parse/train/BkgzniCqY7/images/3c2491305a997ddb345a697e20fa6b799f40b6874a1a950b4ebfff728acb7172.jpg +3 -0
  50. parse/train/BkgzniCqY7/images/431370688dc1a2fede0cf6f2f1990809ce0cca61392fbe82fea2f296c2ee7fcb.jpg +3 -0
parse/train/3SV-ZePhnZM/3SV-ZePhnZM.md ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # INCREMENTAL FEW-SHOT LEARNING VIA VECTOR QUANTIZATION IN DEEP EMBEDDED SPACE
2
+
3
+ # Kuilin Chen
4
+
5
+ # Chi-Guhn Lee
6
+
7
+ Department of Mechanical and Industrial Engineering
8
+ University of Toronto
9
+ Toronto, Ontario, Canada
10
+ kuilin.chen@mail.utoronto.ca
11
+ Department of Mechanical and Industrial Engineering
12
+ University of Toronto
13
+ Toronto, Ontario, Canada
14
+ cglee@mie.utoronto.ca
15
+
16
+ # ABSTRACT
17
+
18
+ The capability of incrementally learning new tasks without forgetting old ones is a challenging problem due to catastrophic forgetting. This challenge becomes greater when novel tasks contain very few labelled training samples. Currently, most methods are dedicated to class-incremental learning and rely on sufficient training data to learn additional weights for newly added classes. Those methods cannot be easily extended to incremental regression tasks and could suffer from severe overfitting when learning few-shot novel tasks. In this study, we propose a nonparametric method in deep embedded space to tackle incremental few-shot learning problems. The knowledge about the learned tasks is compressed into a small number of quantized reference vectors. The proposed method learns new tasks sequentially by adding more reference vectors to the model using few-shot samples in each novel task. For classification problems, we employ the nearest neighbor scheme to make classification on sparsely available data and incorporate intra-class variation, less forgetting regularization and calibration of reference vectors to mitigate catastrophic forgetting. In addition, the proposed learning vector quantization (LVQ) in deep embedded space can be customized as a kernel smoother to handle incremental few-shot regression tasks. Experimental results demonstrate that the proposed method outperforms other state-of-the-art methods in incremental learning.
19
+
20
+ # 1 INTRODUCTION
21
+
22
+ Incremental learning is a learning paradigm that allows the model to continually learn new tasks on novel data, without forgetting how to perform previously learned tasks (Cauwenberghs & Poggio, 2001; Kuzborskij et al., 2013; Mensink et al., 2013). The capability of incremental learning becomes more important in real-world applications, in which the deployed models are exposed to possible out-of-sample data. Typically, hundreds of thousands of labelled samples in new tasks are required to re-train or fine-tune the model (Rebuffi et al., 2017). Unfortunately, it is impractical to gather sufficient samples of new tasks in real applications. In contrast, humans can learn new concepts from just one or a few examples, without losing old knowledge. Therefore, it is desirable to develop algorithms to support incremental learning from very few samples.
23
+
24
+ While a natural approach for incremental few-shot learning is to fine-tune part of the base model using novel training data (Donahue et al., 2014; Girshick et al., 2014), the model could suffer from severe over-fitting on new tasks due to a limited number of training samples. Moreover, simple fine-tuning also leads to significant performance drop on previously learned tasks, termed as catastrophic forgetting (Goodfellow et al., 2014). Recent attempts to mitigate the catastrophic forgetting are generally categorized into two streams: memory relay of old training samples (Rebuffi et al., 2017; Shin et al., 2017; Kemker & Kanan, 2018) and regularization on important model parameters (Kirkpatrick et al., 2017; Zenke et al., 2017). However, those incremental learning approaches are developed and tested on unrealistic scenarios where sufficient training samples are available in novel tasks. They may not work well when the training samples in novel tasks are few (Tao et al., 2020b).
25
+
26
+ To the best of our knowledge, the majority of incremental learning methodologies focus on classification problems and they cannot be extended to regression problems easily. In class-incremental learning, the model has to expand output dimensions to learn $N ^ { \prime }$ novel classes while keeping the knowledge of existing $N$ classes. Parametric models estimate additional classification weights for novel classes, while nonparametric methods compute the class centroids for novel classes. In comparison, output dimensions in regression problems do not change in incremental learning as neither additional weights nor class centroids are applicable to regression problems.
27
+
28
+ Besides, we find that catastrophic forgetting in incremental few-shot classification can be attributed to three reasons. First, the model is biased towards new classes and forgets old classes because the model is fine-tuned on new data only (Hou et al., 2019; Zhao et al., 2020). Meanwhile, the prediction accuracy on novel classes is not good due to over-fitting on few-shot training samples. Second, features of novel samples could overlap with those of old classes in the feature space, leading to ambiguity among classes in the feature space. Finally, features of old classes and classification weights are no longer compatible after the model is fine-tuned with new data.
29
+
30
+ In this paper, we investigate the problem of incremental few-shot learning, where only a few training samples are available in new tasks. A unified model is learned sequentially to jointly recognize all classes or regression targets that have been encountered in previous tasks (Rebuffi et al., 2017; Wu et al., 2019). To tackle aforementioned problems, we propose a nonparametric method to handle incremental few-shot learning based on learning vector quantization (LVQ) (Sato & Yamada, 1996) in deep embedded space. As such, the adverse effects of imbalanced weights in a parametric classifier can be completely avoided (Mensink et al., 2013; Snell et al., 2017; Yu et al., 2020). Our contributions are three fold. First, a unified framework is developed, termed as incremental deep learning vector quantization (IDLVQ), to handle both incremental classification (IDLVQ-C) and regression (IDLVQ-R) problems. Second, we develop intra-class variance regularization, less forgetting constraints and calibration factors to mitigate catastrophic forgetting in class-incremental learning. Finally, the proposed methods achieve state-of-the-art performance on incremental fewshot classification and regression datasets.
31
+
32
+ # 2 RELATED WORK
33
+
34
+ Incremental learning: Some incremental learning approaches rely on memory replay of old exemplars to prevent forgetting previously learned knowledge. Old exemplars can be saved in memory (Rebuffi et al., 2017; Castro et al., 2018; Prabhu et al., 2020) or sampled from generative models (Shin et al., 2017; Kemker & Kanan, 2018; van de Ven et al., 2020). However, explicit storage of training samples is not scalable if the number of classes is large. Furthermore, it is difficult to train a reliable generative model for all classes from very few training samples. In parallel, regularization approaches do not require old exemplars and impose regularization on network weights or outputs to minimize the change of parameters that are important to old tasks (Kirkpatrick et al., 2017; Zenke et al., 2017). To avoid quick performance deterioration after learning a sequence of novel tasks in regularization approaches, semantic drift compensation (SDC) is developed by learning an embedding network via triplet loss (Schroff et al., 2015) and compensates the drift of class centroids using novel data only (Yu et al., 2020). In comparison, IDLVQ-C saves only one exemplar per class and uses saved exemplars to regularize the change in feature extractor and calibrate the change in reference vectors.
35
+
36
+ Few-shot learning: Few-shot learning attempts to obtain models for classification or regression tasks with only a few labelled samples. Few-shot models are trained on widely-varying episodes of fake few-shot tasks with labelled samples drawn from a large-scale meta-training dataset (Vinyals et al., 2016; Finn et al., 2017; Ravi & Larochelle, 2017; Snell et al., 2017; Sung et al., 2018). Meanwhile, recent works attempt to handle novel few-shot tasks while retraining the knowledge of the base task. These methods are referred to as dynamic few-shot learning (Gidaris & Komodakis, 2018; Ren et al., 2019a; Gidaris & Komodakis, 2019). However, dynamic few-shot learning is different from incremental few-shot learning, because they rely on the entire base training dataset and an extra meta-training dataset during meta-training. In addition, dynamic few-shot learning does not accumulate knowledge for multiple novel tasks sequentially.
37
+
38
+ Incremental few-shot learning: Prior works on incremental few-shot learning focus on classification problems by computing the weights for novel classes in parametric classifiers, without iterative gradient descent. For instance, the weights of novel classes can be imprinted by normalized prototypes of novel classes, while keeping the feature extractor fixed (Qi et al., 2018). Since novel weights are computed only with the samples of novel classes, the fixed feature extractor may not be compatible with novel classification weights. More recently, neural gas network is employed to construct an undirected graph to represent knowledge of old classes (Tao et al., 2020b;a). The vertices in the graph are constructed in an unsupervised manner using competitive Hebbian learning (Fritzke, 1995), while the feature embedding is fixed. In contrast, IDLVQ learns both feature extractor and reference vectors concurrently in a supervised manner.
39
+
40
+ # 3 BACKGROUND
41
+
42
+ # 3.1 INCREMENTAL FEW-SHOT LEARNING
43
+
44
+ In this paper, incremental few-shot learning is studied for both classification and regression tasks. For classification tasks, we consider the standard class-incremental setup in literature. After the model is trained on a base task $\mathit { t } = 1$ ) with sufficient data, the model learns novel tasks sequentially. Each novel task contains a number of novel classes with only a few training samples per class. Learning a novel task $( t > 1 )$ ) is referred to as an incremental learning session. In task $t$ , we have access only to training data $\mathcal { D } ^ { t }$ in the current task and previously saved exemplars (one exemplar per class in this study). Each task has a set of classes $\hat { C } ^ { t } = \{ c _ { 1 } ^ { t } , . . . , c _ { n ^ { t } } ^ { t } \}$ , where $n _ { t }$ is the number of classes in task $t$ . In addition, it is assumed that there is no overlap between classes in different tasks $C ^ { t } \bigcap C ^ { s } = \emptyset$ for $t \neq s$ . After an incremental learning session, the performance of the model is evaluated on a test set that contains all previously seen classes $C = \cap _ { i } { \bar { C } } ^ { i }$ . Note that our focus is not multi-task scenario, where a task ID is exposed to the model during test phase and the model is only required to perform a given task one time (van de Ven & Tolias, 2019). Our model is evaluated in a task-agnostic setting, where task ID is not exposed to the model at test time.
45
+
46
+ For regression tasks, we follow a similar setting with a notable difference that the target is realvalued $y \in \mathbb { R }$ . In addition, the target values in different tasks do not have to be mutually exclusive, unlike the class-incremental setup.
47
+
48
+ # 3.2 LEARNING VECTOR QUANTIZATION
49
+
50
+ Traditional nonparametric methods, such as nearest neighbors, represent knowledge and make predictions by storing the entire training set. Despite the simplicity and effectiveness, they are not scalable to a large-scale base dataset. Typically, incremental learning methods are only allowed to store a small number of exemplars to preserve the knowledge of previously learned tasks. However, randomly selected exemplars may not well present the knowledge in old tasks. LVQ is a classical data compression method that represents the knowledge through a few learned reference vectors (Sato & Yamada, 1996; Seo & Obermayer, 2003; Biehl et al., 2007). A new sample is classified to the same label as the nearest reference vector in the input space. LVQ has been combined with deep feature extractors as an alternative to standard neural networks for better interpretability (De Vries et al., 2016; Villmann et al., 2017; Saralajew et al., 2018). The combinations of LVQ and deep feature extractors have been applied to natural language processing (NLP), facial recognition and biometrics (Variani et al., 2015; Wang et al., 2016; Ren et al., 2019b; Leng et al., 2015). We notice that LVQ is a nonparametric method which is well suited for incremental few-shot learning because the model capacity grows by incorporating more reference vectors to learn new knowledge. For example, incremental learning vector quantization (ILVQ) has been developed to learn classification models adaptively from raw features (Xu et al., 2012). In this study, we present the knowledge by learning reference vectors in the feature space through LVQ and adapt them in incremental few-shot learning. Compared with ILVQ by Xu et al. (2012), our method does not rely on predefined rules to update reference vectors and can be learned along with deep neural networks in an end-to-end fashion. Besides, our method uses a single reference vector for each class, while ILVQ automatically assigns different numbers of prototypes for different classes.
51
+
52
+ # 4 METHODOLOGY
53
+
54
+ # 4.1 INCREMENTAL DEEP LEARNING VECTOR QUANTIZATION
55
+
56
+ The general framework of IDLVQ for both classification and regression can be derived from a Gaussian mixture perspective (Ghahramani $\&$ Jordan, 1994), with a simplified covariance structure and supervised deep representation learning. In the base dataset $( t = 1 )$ ), a raw input $\mathbf { x }$ is projected into a feature space ${ \bar { \mathcal { F } } } ^ { 1 }$ by a deep neural network $f _ { \theta ^ { 1 } }$ , where $\theta ^ { 1 }$ denotes the parameters in neural networks. In addition, $N ^ { 1 }$ reference vectors $\mathbf { M } ^ { 1 } = \{ \mathbf { m } _ { 1 } ^ { 1 } , . . . , \mathbf { m } _ { N ^ { 1 } } ^ { 1 } \}$ are placed in the feature space ${ \mathcal { F } } ^ { 1 }$ , which can be learned to capture the representation of the base dataset. More reference vectors will be added incrementally while learning novel tasks. The marginal distribution $p ( f _ { \theta ^ { 1 } } ( \mathbf { x } ) )$ of feature vector can be described by a Gaussian mixture model $\begin{array} { r } { p ( f _ { \theta ^ { 1 } } ( \mathbf { x } ) ) = \sum _ { i = 1 } ^ { N ^ { 1 } } p ( i ) p ( f _ { \theta ^ { 1 } } ( \mathbf { x } ) | i ) } \end{array}$ of $N ^ { 1 }$ components, where the prior $p ( i ) = 1 / N ^ { 1 }$ and the component distribution $p ( f _ { \boldsymbol { \theta } ^ { 1 } } ( \mathbf { x } ) | i )$ is Gaussian. By assuming that each component distribution $p ( f _ { \boldsymbol { \theta } ^ { 1 } } ( \mathbf { x } ) | i )$ is isotropic Gaussian centered at $\mathbf { m } _ { i } ^ { 1 }$ with the same covariance, the posterior distribution of a component given the input is
57
+
58
+ $$
59
+ p ^ { 1 } ( i | \mathbf { x } ) = \frac { \kappa ( f _ { \theta ^ { 1 } } ( \mathbf { x } ) , \mathbf { m } _ { i } ^ { 1 } ) } { \sum _ { j = 1 } ^ { N ^ { 1 } } \kappa ( f _ { \theta ^ { 1 } } ( \mathbf { x } ) , \mathbf { m } _ { j } ^ { 1 } ) } ,
60
+ $$
61
+
62
+ where $\kappa ( f _ { \theta ^ { 1 } } ( \mathbf { x } ) , \mathbf { m } _ { i } ^ { 1 } ) = \exp ( - \| f _ { \theta ^ { 1 } } ( \mathbf { x } ) - \mathbf { m } _ { i } ^ { 1 } \| ^ { 2 } / \gamma )$ is a Gaussian kernel and $\gamma$ is a scale factor. The conditional expectation of the output from a Gaussian mixture is $\begin{array} { r } { \hat { y } = \sum _ { i = 1 } ^ { N ^ { 1 } } p ^ { 1 } ( i | \mathbf { x } ) q _ { i } ^ { 1 } } \end{array}$ , where $q _ { i } ^ { 1 }$ is the reference target associated with reference vector $\mathbf { m } _ { i } ^ { 1 }$ . In classification problems, $q _ { i } ^ { 1 }$ is either 0 or 1 indicating whether $\mathbf { m } _ { i } ^ { 1 }$ and $\mathbf { x }$ have the same label. Since each reference vector is assigned to a class at initialization, $q _ { i } ^ { 1 }$ is fixed and does not require learning. Meanwhile, $q _ { i } ^ { 1 }$ in regression problems is real-valued and has to be learned. The weights in neural networks $\theta ^ { \mathrm { { I } } }$ , reference vectors ${ \bf { M } } ^ { 1 }$ , reference targets $q _ { i } ^ { 1 }$ (in regression problems only) and the scale factor $\gamma$ are learned concurrently by minimizing a loss function between the true label $y$ and the predicted label $\hat { y }$ .
63
+
64
+ The proposed IDLVQ is a nonparametric method as it makes prediction based on similarity to reference vectors, instead of using any regression or classification weights. The capacity of the model grows naturally by adding more reference vectors to learn novel tasks, while the old knowledge is preserved in existing reference vectors.
65
+
66
+ # 4.2 INCREMENTAL DEEP LEARNING VECTOR QUANTIZATION FOR CLASSIFICATION
67
+
68
+ For classification problems, one reference vector is assigned to each class in our study. Thus, $\hat { y }$ represents the predicted probability that an input belongs to a class. The model can be trained to classify data correctly by minimizing the cross-entropy loss $\mathcal { L } _ { C E }$ between the predicted probability $\hat { y }$ and the true label $y$ . Although the cross-entropy loss encourages separability of features in base classes, it does not guarantee compact intra-class variation in the feature space. Specifically, in an incremental learning session, features of novel classes could overlap with those of previously learned classes. As a result, the overall classification accuracy could deteriorate after incremental learning sessions. A desirable feature embedding leaves large margin between classes to mitigate overlap in features across old and new classes. Inspired by center loss (Wen et al., 2016) to enhance discriminative capability in facial recognition, a regularization term on intra-class distance to reference vectors is added to get compact intra-class variation.
69
+
70
+ $$
71
+ \mathcal { L } _ { i n t r a } = \sum _ { \forall ( \mathbf { x } , y ) , y = i } \left\| f _ { \theta ^ { 1 } } ( \mathbf { x } ) - \mathbf { m } _ { i } ^ { 1 } \right\| ^ { 2 }
72
+ $$
73
+
74
+ As such, $f _ { \theta ^ { 1 } } ( \mathbf { x } )$ is forced to stay close to the reference vector with the same label and naturally moves away from other reference vectors. Consequently, features of new classes are more likely to lie in the margin between old classes to mitigate ambiguity in features across different classes. The total loss in training the base task is given by $\mathcal { L } = \mathcal { L } _ { C E } + \lambda _ { i n t r a } \mathcal { L } _ { i n t r a }$ , where $\lambda _ { i n t r a }$ is a hyper-parameter to control the weight for intra-class variation loss. The total loss is differentiable w.r.t. neural network parameters $\theta ^ { \mathrm { { i } } }$ , reference vectors $\mathbf { M } ^ { 1 } = \{ \mathbf { m } _ { 1 } ^ { 1 } , . . . , \mathbf { m } _ { n ^ { 1 } } ^ { 1 } \}$ and scaling factor $\gamma$ . All parameters in the model can be trained jointly in an end-to-end fashion.
75
+
76
+ In an incremental session $( t > 1 )$ ), a novel dataset $\mathcal { D } ^ { t }$ contains $n ^ { t }$ classes and $K ^ { t }$ samples per class ( $\cdot \boldsymbol { n } ^ { t }$ -way $K ^ { t }$ -shot). $n ^ { t }$ new reference vectors are added and each reference vector is initialized as the centroid of features in a class mti = 1Kt PKtk=1 fθt (xk). The new reference vectors along with the neural network parameters are fine-tuned on $\mathcal { D } ^ { t }$ to learn new knowledge in task $t$ . To preserve the knowledge from the old tasks during incremental learning, the model should be updated only when necessary. Therefore, cross-entropy loss is not used in incremental learning sessions because it always updates model parameters even if the sample is correctly classified. Let $\mathbf { m } _ { + } ^ { t }$ be the reference vector with the correct label and $\mathbf { m } _ { - } ^ { t }$ be the nearest reference vector with a wrong label. For a training sample $\left( \mathbf { x } , y \right)$ in $\mathcal { D } ^ { t }$ , the sample is classified correctly if $\left\| f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { + } ^ { t } \right\| ^ { 2 } <$ $\left\| f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { - } ^ { t } \right\| ^ { 2 }$ . In this case, the loss should be 0. When $\left\| f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { + } ^ { t } \right\| ^ { 2 } > \left\| f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { - } ^ { t } \right\| ^ { 2 }$ , the sample is misclassified. We adapt the margin based loss function ${ \mathcal { L } } _ { M }$ from De Vries et al. (2016) with a minor modification
77
+
78
+ $$
79
+ \mathcal { L } _ { M } = \mathrm { R e L U } \left( \frac { \left. f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { + } ^ { t } \right. ^ { 2 } - \left. f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { - } ^ { t } \right. ^ { 2 } } { \left. f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { + } ^ { t } \right. ^ { 2 } + \left. f _ { \theta ^ { t } } ( \mathbf { x } ) - \mathbf { m } _ { - } ^ { t } \right. ^ { 2 } } \right) ,
80
+ $$
81
+
82
+ where $\mathrm { R e L U } ( \cdot )$ stands for the rectified linear unit function. The margin based loss leads to slow training convergence because it only updates two reference vectors one time. However, the adapted margin based loss is well suited in learning from few-shot samples while avoids unnecessary parameter updates.
83
+
84
+ Features for an old class could deviate away from the corresponding reference vector due to changes in $\theta ^ { t }$ during incremental learning, leading to catastrophic forgetting. A forgetting loss $\mathcal { L } _ { F }$ is developed to regularize the drift in the feature space
85
+
86
+ $$
87
+ \mathcal { L } _ { F } = \sum _ { i = 1 } ^ { N ^ { t - 1 } } \| f _ { \theta ^ { t } } ( \mathbf { x } _ { i } ^ { ' } ) - f _ { \theta ^ { t - 1 } } ( \mathbf { x } _ { i } ^ { ' } ) \| ^ { 2 } ,
88
+ $$
89
+
90
+ where $\mathbf { x } _ { i } ^ { ' }$ is the selected exemplar for class $i$ and $N ^ { t - 1 }$ denotes the total number of classes in the base task and all previous novel tasks. Note that the exemplar $\mathbf { x } _ { i } ^ { ' }$ for class $i \in [ N ^ { t - 1 } , N ^ { t } ]$ is picked from $\mathcal { D } ^ { t }$ whose feature is nearest to $\mathbf { m } _ { i } ^ { t }$ at the end of each learning session. The total loss in the incremental learning session $t$ is $\mathcal { L } = \mathcal { L } _ { M } + \lambda _ { F } \mathcal { L } _ { F } + \lambda _ { i n t r a } \mathcal { L } _ { i n t r a }$ , where $\lambda _ { F }$ and $\lambda _ { i n t r a }$ are weights for forgetting loss and intra-class variation loss, respectively. The total loss is optimized w.r.t. neural network parameters $\theta ^ { t }$ and new reference vectors $\{ \mathbf { m } _ { N ^ { t - 1 } + 1 } ^ { t } , . . . , \mathbf { m } _ { N ^ { t } } ^ { t } \}$ .
91
+
92
+ The reference vectors for previously learned tasks are not updated by novel data to prevent catastrophic forgetting. However, they may not be well suited to represent knowledge and make classification in the new feature space $\mathcal { F } ^ { t }$ as feature embedding is changed with updated $\theta ^ { t }$ . Although the true optimal location of those reference vectors are difficult to estimate without using the entire data from all tasks, they can be calculated approximately using the shift in features of exemplars. Considering that features of an exemplar $\mathbf { x } _ { i } ^ { ' }$ are close to $\mathbf { m } _ { i }$ in the feature space, the shift of a reference vector $\delta _ { i } ^ { t }$ in the new feature space can be approximated by the shift of the exemplar’s features $\delta _ { i } ^ { t } = f _ { \theta ^ { t } } ( \mathbf { x } _ { i } ^ { ' } ) { - } f _ { \theta ^ { t - 1 } } ( \mathbf { x } _ { i } ^ { ' } )$ . Therefore, the reference vectors for previously learned tasks are calibrated $\mathbf { m } _ { i } ^ { t } = \mathbf { m } _ { i } ^ { t - 1 } + \delta _ { i } ^ { t }$ , where $\mathbf { m } _ { i } ^ { t - 1 }$ is the uncalibrated reference vector for class $i \in [ 1 , N ^ { t - 1 } ]$ . A test sample, which could be from any seen classes, is classified according to the distance to reference vectors $\{ \mathbf { m } _ { 1 } ^ { t } , . . . , \mathbf { m } _ { N ^ { t } } ^ { t } \}$ . The pseudo code for IDLVQ-C is presented in the appendix.
93
+
94
+ # 4.3 INCREMENTAL DEEP LEARNING VECTOR QUANTIZATION FOR REGRESSION
95
+
96
+ For regression problems, the model is trained to recognize regression targets by the minimizing mean squared error (MSE) loss $\mathcal { L } _ { M S E } = ( y - \hat { y } ) ^ { 2 }$ , where $y$ is the real-valued target in training dataset. The MSE loss function is differentiable w.r.t. neural network weights, reference vectors and targets, and scale factor. Therefore, all parameters can be trained jointly in an end-to-end manner. The proposed IDLVQ-R can also be interpreted as a kernel smoother in deep embedded space. Compared with traditional kernel smoother, such as Nadaraya-Watson estimator (Nadaraya, 1964), IDLVQ-R is sparse and hence more scalable as it only relies on a few reference vectors and targets.
97
+
98
+ In an incremental learning session $( t > 1 )$ ), we have access to data $\mathcal { D } ^ { t }$ that contains $K ^ { t }$ pairs of training samples $( \mathbf { x } _ { i } ^ { t } , y _ { i } ^ { t } )$ . ${ \bar { n } } ^ { t }$ new reference vectors $( n ^ { t } \leq K ^ { t } )$ along with corresponding targets are added to the model to learn new knowledge in the novel task $t$ . We randomly select $n ^ { t }$ samples from $\mathcal { D } ^ { t }$ to initialize reference vectors and targets as follows
99
+
100
+ $$
101
+ \begin{array} { c } { { { \bf m } _ { i + N ^ { t - 1 } } = f _ { \theta } ( { \bf x } _ { i } ^ { t } ) , } } \\ { { { \bf \ q } _ { i + N ^ { t - 1 } } = y _ { i } ^ { t } , } } \end{array}
102
+ $$
103
+
104
+ where $N ^ { t - 1 }$ is the total number of reference vectors in all previous tasks. The new reference vectors and targets are fine-tuned by minimizing MSE on $\mathcal { D } ^ { t }$ while keeping other parameters frozen. After new reference vectors and targets are fine-tuned with novel data $\mathcal { D } ^ { t }$ , the model makes prediction by smoothing targets of all reference vectors
105
+
106
+ $$
107
+ \hat { y } = \frac { \sum _ { i = 1 } ^ { N ^ { t } } \kappa ( f _ { \theta } ( \mathbf { x } ) , \mathbf { m } _ { i } ) q _ { i } } { \sum _ { i = 1 } ^ { N ^ { t } } \kappa ( f _ { \theta } ( \mathbf { x } ) , \mathbf { m } _ { i } ) } ,
108
+ $$
109
+
110
+ where $N ^ { t }$ is the current total number of reference vectors.
111
+
112
+ # 5 EXPERIMENTS
113
+
114
+ We first describe the overall protocols, then we present the results on incremental few-shot classification and regression problems.
115
+
116
+ # 5.1 INCREMENTAL FEW-SHOT CLASSIFICATION
117
+
118
+ We empirically evaluate the performance of IDLVQ-C on incremental few-shot classification on CUB200-2011 (Welinder et al., 2010) and miniImageNet datasets (Vinyals et al., 2016). The dataset is split into base classes and multiple groups of novel classes. We apply standard data augmentation, including random crop, horizontal flip and color jitter, on all training images. After each training session, the model performance is evaluated on a test set, which contains all classes that the model has been trained on.
119
+
120
+ CUB dataset is composed of 200 fine-grained bird species with 11,788 images. We split the dataset into 5894 training images, 2947 validation images and 2947 test images. All images are resized to $2 2 4 \times 2 2 4$ . In addition, the first 100 classes are chosen as base classes, where all training samples in base classes are used to train the base model. The remaining 100 classes are treated as novel categories and split into 10 incremental learning sessions. Each incremental learning session contains 10 novel classes and 5 randomly selected training samples per class (10-way 5-shot).
121
+
122
+ miniImageNet dataset is a 100-class subset of the original ImageNet dataset (Deng et al., 2009). Each class contains 500 training images, 50 validation images, and 50 test images. The images are in RGB format of the size $8 4 \times 8 4$ . We choose 60 and 40 classes for base and novel classes, respectfully. The 40 novel classes are divided into 8 sessions and each session contains 5 novel classes with 5 randomly selected training samples per class (5-way 5-shot).
123
+
124
+ ResNet18 (He et al., 2016) is used as the feature extractor for incremental classification problems. The learning process for each dataset is repeated 10 times and the average test accuracy is reported. The proposed method is compared with six methods for few-shot class-incremental learning: fineturning using $\mathcal { D } ^ { t }$ , joint training using the entire training set from all encountered classes, iCaRL (Rebuffi et al., 2017), Rebalancing (Hou et al., 2019), ProtoNet (Snell et al., 2017), incremental learning vector quantization (ILVQ) (Xu et al., 2012), SDC (Yu et al., 2020), and Imprint (Qi et al., 2018). Note that ILVQ is applied to the features extracted by neural networks in our experiment.
125
+
126
+ The incremental few-shot learning results on CUB and miniImageNet are shown in Table 1 and 2, respectively. Our method outperforms fine-tuning, iCaRL (Rebuffi et al., 2017), and ProtoNet (Snell et al., 2017) by a large margin. Simply fine-tuning the weights in classifier with few-shot training samples for novel classes significantly deteriorates the prediction accuracy. Although iCaRL alleviates catastrophic forgetting by tuning the model with a mix of old exemplars and novel few-shot data, the prediction accuracy still drops quickly because iCaRL requires sufficient samples per class to achieve satisfactory performance. The ProtoNet relies on distance to prototypes (the mean of features within a class) to make classification but the fixed feature extractor may not be able to well separate novel classes. ILVQ is slightly better than ProtoNet because prototypes can be learned adaptively when more classes are available in incremental learning sessions. Some prototypes in
127
+
128
+ ILVQ are close to the border of a class, which are more effective than class centroids in ProtoNet. However, ILVQ does not achieve the best performance because the feature extractor is fixed and cannot be learned along with the prototypes. IDLVQ-C has a small gain in the first couple of incremental few-shot learning sessions compared with SDC (Yu et al., 2020) and Imprint (Qi et al., 2018). Similar to ProtoNet, SDC also relies on prototypes to make classification. The performance of SDC is better than that of ProtoNet because SDC fine-tunes the feature extractor with novel dataset and compensates the drift in prototypes. However, the compensation for the drift of old-class prototypes can be less accurate in SDC because it is approximated by samples in novel classes. In parallel, the imprint method directly computes the normalized classification weights from the average of normalized features within a novel class. The imprint method avoids imbalanced classification weights and circumvents the overfitting in few-shot class-incremental learning through weight normalization. Nevertheless, the fixed feature extractor in the imprint method may not be well suited for novel classes. In contrast, IDLVQ-C updates the feature extractor only when necessary and compensates the shift of old reference vectors more accurately using exemplars from old classes. That is why the gain of IDLVQ-C increases with more incremental few-shot learning sessions. The performance of SDC, Imprint and IDLVQ-C is better than offline joint training in early sessions of incremental few-shot learning. Offline joint training may not result in oracle performance due to extremely imbalanced samples between base classes and novel classes.
129
+
130
+ Table 1: Prediction accuracy on CUB all classes using the 10-way 5-shot incremental setting.
131
+
132
+ <table><tr><td rowspan="2">Method</td><td colspan="10">sessions</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>Fine-tune</td><td>77.30</td><td>46.23</td><td>34.71</td><td>25.35</td><td>23.16</td><td>20.65</td><td>16.21</td><td>13.32</td><td>11.98</td><td>11.17</td><td>10.76</td></tr><tr><td>Joint train</td><td>77.30</td><td>73.28</td><td>68.80</td><td>65.34</td><td>63.75</td><td>62.00</td><td>60.81</td><td>59.71</td><td>59.06</td><td>58.69</td><td>58.23</td></tr><tr><td>iCaRL (Rebuffi et al.,2017)</td><td>77.30</td><td>57.18</td><td>54.67</td><td>48.11</td><td>40.76</td><td>36.85</td><td>33.12</td><td>30.42</td><td>28.22</td><td>26.84</td><td>25.23</td></tr><tr><td>Rebalancing (Hou et al., 2019)</td><td>77.30</td><td>64.53</td><td>56.14</td><td>47.29</td><td>38.92</td><td>34.39</td><td>31.04</td><td>27.93</td><td>27.12</td><td>24.46</td><td>23.61</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td>77.30</td><td>69.76</td><td>66.01</td><td>62.29</td><td>59.58</td><td>57.10</td><td>55.13</td><td>54.09</td><td>52.40</td><td>51.65</td><td>50.36</td></tr><tr><td>ILVQ (Xu et al., 2012)</td><td>77.30</td><td>71.50</td><td>66.79</td><td>62.71</td><td>60.20</td><td>57.84</td><td>55.27</td><td>55.06</td><td>52.42</td><td>51.72</td><td>50.47</td></tr><tr><td>SDC (Yu et al., 2020)</td><td>77.34</td><td>74.45</td><td>69.45</td><td>65.27</td><td>61.81</td><td>58.26</td><td>56.14</td><td>55.71</td><td>53.31</td><td>52.79</td><td>51.52</td></tr><tr><td>Imprint (Qi et al., 2018)</td><td>77.02</td><td>73.39</td><td>69.50</td><td>65.61</td><td>62.81</td><td>60.74</td><td>59.39</td><td>58.61</td><td>56.85</td><td>55.93</td><td>54.82</td></tr><tr><td>IDLVQ-C</td><td>77.37</td><td>74.72</td><td>70.28</td><td>67.13</td><td>65.34</td><td>63.52</td><td>62.10</td><td>61.54</td><td>59.04</td><td>58.68</td><td>57.81</td></tr></table>
133
+
134
+ Table 2: Prediction accuracy on miniImageNet all classes using the 5-way 5-shot incremental setting.
135
+
136
+ <table><tr><td rowspan="2">Method</td><td colspan="9">sessions</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>Fine-tune</td><td>64.25</td><td>30.11</td><td>18.53</td><td>6.31</td><td>2.86</td><td>2.68</td><td>1.87</td><td>1.56</td><td>1.42</td></tr><tr><td>Joint train</td><td>64.25</td><td>58.80</td><td>55.26</td><td>52.38</td><td>49.71</td><td>48.37</td><td>45.91</td><td>44.68</td><td>43.38</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>64.25</td><td>48.04</td><td>43.13</td><td>38.28</td><td>30.01</td><td>24.46</td><td>21.85</td><td>19.84</td><td>17.76</td></tr><tr><td>Rebalancing (Hou et al.,2019)</td><td>64.25</td><td>49.21</td><td>44.17</td><td>37.71</td><td>30.11</td><td>22.92</td><td>19.99</td><td>17.96</td><td>16.25</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td>64.25</td><td>55.12</td><td>51.67</td><td>48.91</td><td>46.52</td><td>44.25</td><td>41.91</td><td>40.07</td><td>38.42</td></tr><tr><td>ILVQ (Xu et al., 2012)</td><td>64.25</td><td>56.01</td><td>52.43</td><td>49.31</td><td>46.98</td><td>44.37</td><td>42.06</td><td>40.11</td><td>38.43</td></tr><tr><td>SDC (Yu et al., 2020)</td><td>64.62</td><td>59.63</td><td>55.39</td><td>50.92</td><td>48.30</td><td>45.28</td><td>42.97</td><td>42.51</td><td>41.24</td></tr><tr><td>Imprint (Qi et al., 2018)</td><td>64.71</td><td>59.85</td><td>55.71</td><td>52.47</td><td>49.90</td><td>47.31</td><td>44.57</td><td>42.57</td><td>41.26</td></tr><tr><td>IDLVQ-C</td><td>64.77</td><td>59.87</td><td>55.93</td><td>52.62</td><td>49.88</td><td>47.55</td><td>44.83</td><td>43.14</td><td>41.84</td></tr></table>
137
+
138
+ Ablation studies are conducted to analyze how individual components affect the performance of incremental few-shot learning. We study five variants of our methods: (a) new reference vectors are initialized as class centroids and no tuning is done for feature extractor or old reference vectors; (b) $\mathcal { L } _ { i n t r a }$ is not used in incremental learning sessions; (c) $\mathcal { L } _ { F }$ is not used in the incremental learning sessions; (d) shift in old reference vectors are not compensated; (e) replace the margin based loss ${ \mathcal { L } } _ { M }$ with the cross entropy loss $\mathcal { L } _ { C E }$ . Table 3 shows the results of our ablation studies on CUB dataset. Without any fine-tuning, the initial reference vectors for novel classes lead to descent accuracy in incremental few-shot classification. It demonstrates the robustness of nonparametric classifier. $\mathcal { L } _ { i n t r a }$ leads to $0 . 5 7 \%$ gain due to tight intra-class variation. The less forgetting regularization $\mathcal { L } _ { F }$ is proved to prevent forgetting old classes and achieves a performance boost by $2 . 3 5 \%$ . The shift compensation for reference vectors effectively adapts old reference vector in new embedding spaces with a gain round of $1 \%$ . The margin based loss is more effective in preventing forgetting in early sessions of incremental learning.
139
+
140
+ The effect of the number of training samples per class. The proposed method is evaluated under different few-shot settings on CUB dataset to investigate the effect of different numbers of training samples in novel classes, including 5-shot, 10-shot and 20-shot settings. One reference vector is assigned to each class in all few-shot settings. As shown in Fig. 2 in the appendix, the performance of incremental learning improves as the number of samples per class increases. When the training samples are scarce, the training samples may not well present the generative distribution of training data. Therefore, the learned reference vectors could be biased and classification accuracy is low. With more training samples, the learned reference vectors could well present the center of the distribution and classification accuracy is improved. The gap in performance becomes more obvious as the number of incremental learning sessions grows. The detailed results are reported in Table 7 and 8.
141
+
142
+ Table 3: Ablation study on CUB using the 10-way 5-shot incremental setting.
143
+
144
+ <table><tr><td rowspan="2">Method</td><td colspan="10">sessions</td></tr><tr><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>No tuning</td><td>71.93</td><td>67.14</td><td>64.21</td><td>62.61</td><td>60.13</td><td>59.04</td><td>58.47</td><td>55.64</td><td>54.25</td><td>53.66</td></tr><tr><td>W.o.Lintra</td><td>74.75</td><td>70.26</td><td>66.89</td><td>65.05</td><td>63.18</td><td>61.84</td><td>61.36</td><td>58.61</td><td>58.14</td><td>57.24</td></tr><tr><td>w.0. LF</td><td>73.85</td><td>69.54</td><td>66.21</td><td>64.02</td><td>62.74</td><td>60.28</td><td>59.49</td><td>56.97</td><td>56.38</td><td>55.46</td></tr><tr><td>w.o. δ</td><td>74.67</td><td>70.01</td><td>66.74</td><td>64.81</td><td>63.90</td><td>61.42</td><td>60.73</td><td>58.16</td><td>57.62</td><td>56.79</td></tr><tr><td>LM→LCE</td><td>73.22</td><td>69.41</td><td>66.03</td><td>63.93</td><td>63.07</td><td>61.14</td><td>60.98</td><td>58.67</td><td>58.11</td><td>57.32</td></tr><tr><td>IDLVQ-C</td><td>74.72</td><td>70.28</td><td>67.13</td><td>65.34</td><td>63.52</td><td>62.10</td><td>61.54</td><td>59.04</td><td>58.68</td><td>57.81</td></tr></table>
145
+
146
+ # 5.2 INCREMENTAL FEW-SHOT REGRESSION
147
+
148
+ IDLVQ-R is tested on two regression datasets: sinusoidal wave and 3D spatial data. Considering that there is no state-of-the-art method for incremental few-shot regression, we compare IDLVQ-R against three alternative methods: fine-tuning using novel task data only, fine-tuning using novel task data along with exemplars and offline training using the entire training dataset from all tasks.
149
+
150
+ Sinusoidal wave is defined by a function $y = \sin ( 3 \pi x ) + 0 . 3 \cos ( 9 \pi x ) + 0 . 5 \sin ( 7 \pi x ) + \epsilon ,$ , where $\epsilon$ is white noise with a standard deviation of 0.1. 1000 training samples in the first task (bas task) are generated by sampling $x \in [ - 1 . 0 , 1 . 0 ]$ uniformly. 5-shot training samples in two novel tasks are generated by sampling $x \in [ 1 . 0 , 1 . 5 ]$ and $x \in [ 1 . 5 , 2 . 0 ]$ , respectively.
151
+
152
+ As shown in Fig. 1(a), IDLVQ-R achieves comparable performance to offline neural networks in Fig. 1(d) which are trained using the entire training set from all tasks. In comparison, neural networks trained sequentially with few-shot training samples show catastrophic forgetting on old tasks in Fig. 1(b). With the addition of exemplars during training, the networks perform better but still suffer from catastrophic forgetting on the base task in Fig. 1(c). In conclusion, IDLVQ-R preserves old knowledge and adapts to new knowledge quickly using a few reference vectors and achieves satisfactory performance on incremental few-shot regression tasks. The experiment details can be found in the appendix.
153
+
154
+ ![](images/83a97f4c3e066abb502771d10b9d6938bf3934093e0891e51d8029367598a481.jpg)
155
+ Figure 1: Comparison of performance for incremental few-shot regression. Red dots denote test samples for base task, purple dots denotes test sample for novel tasks, grey lines denote model predictions, and black crosses denotes few-shot training samples in novel tasks. (a) IDLVQ-R; (b) neural networks incrementally fine-tuned with novel data only in each session; (c) neural networks incrementally fine-tuned with exemplars and novel training samples; (d) offline neural networks trained with training samples from all tasks.
156
+
157
+ 3D spatial data1 is collected in North Jutland, Denmark. The inputs are longitude $x _ { 1 }$ and latitude $x _ { 2 }$ , and the output is altitude y. 2482 training samples in the 1st task are collected in the area where $x _ { 1 } \in [ 9 . 9 8 , 9 . 9 9 5 ]$ and $x _ { 2 } \in [ 5 7 . 0 , 5 7 . 0 5 ] .$ 20 training samples in the 2nd task are collected in the area where $x _ { 1 } \ \in \ [ 9 . 9 9 5 , 1 0 . 0 ]$ and $x _ { 2 } ~ \in ~ [ 5 7 . 0 2$ , 57.03]. 20 training samples in the 3rd task are collected in the area where $x _ { 1 } \in [ 9 . 9 9 5 , 1 0 . 0 ]$ and $x _ { 2 } ~ \overset { \cdot } { \in } ~ [ 5 7 . 0 3 , 5 7 . 0 4 ]$ . Approximately 300 test samples are collected for each task.
158
+
159
+ Table 4: Normalized RMSE of incremental few-shot regression on 3D spatial data
160
+
161
+ <table><tr><td rowspan="2">Method</td><td colspan="3">sessions</td></tr><tr><td>1</td><td>2</td><td>3</td></tr><tr><td>Joint train offline</td><td>0.02174(2e-4)</td><td>0.02232(2e-4)</td><td>0.02296(2e-4)</td></tr><tr><td>Fine-tune w.novel data</td><td>0.02174(2e-4)</td><td>0.08462(4e-4)</td><td>0.11870(6e-4)</td></tr><tr><td>Fine-tune w. exemplars</td><td>0.02174(2e-4)</td><td>0.02988(2e-4)</td><td>0.03128(2e-4)</td></tr><tr><td>IDLVQ-R</td><td>0.02181(2e-4)</td><td>0.02641(2e-4)</td><td>0.02817(2e-4)</td></tr></table>
162
+
163
+ The normalized root mean squared errors (RMSE) between actual and predicted altitude in the test set are listed in Table 4. The prediction accuracy drops significantly when the model is finetuned with novel data only. Catastrophic forgetting can be alleviated using exemplars from previous tasks. IDLVQ-R achieves better results than fine tuning with exemplars. The good performance of IDLVQ-R can be attributed to two reasons. First, IDLVQ-R learns a number of reference vectors and targets to preserve the knowledge in encountered tasks. Compared with a linear layer on top of neural networks, a number of reference vectors represent richer information about the training data. Second, IDLVQ-R is nonparametric and can represent local and nonlinear relationship without learning any regression coefficient from few-shot data.
164
+
165
+ # 6 CONCLUSIONS
166
+
167
+ A new incremental few-shot learning approach is developed to harmonize old knowledge preserving and new knowledge adaptation through quantized vector in deep embedded space. Prediction is made in a nonparametric way using similarity to learned reference vectors, which circumvents biased weights in a parametric classification layer during incremental few-shot learning. For classification problems, additional mechanisms are developed to mitigate the forgetting in old classes and improve representation learning for few-shot novel classes. For regression problems, the proposed approach has been reinterpreted as a kernel smoother to predict real-valued target over novel domain.
168
+
169
+ # REFERENCES
170
+
171
+ Michael Biehl, Anarta Ghosh, and Barbara Hammer. Dynamics and generalization ability of lvq algorithms. Journal of Machine Learning Research, 8(Feb):323–360, 2007.
172
+ Francisco M Castro, Manuel J Mar´ın-Jimenez, Nicol ´ as Guil, Cordelia Schmid, and Karteek Alahari. ´ End-to-end incremental learning. In Proceedings of the European conference on computer vision (ECCV), pp. 233–248, 2018.
173
+ Gert Cauwenberghs and Tomaso Poggio. Incremental and decremental support vector machine learning. In Advances in neural information processing systems, pp. 409–415, 2001.
174
+ Harm De Vries, Roland Memisevic, and Aaron C Courville. Deep learning vector quantization. In ESANN, 2016.
175
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
176
+ Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In International conference on machine learning, pp. 647–655, 2014.
177
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 1126–1135. JMLR. org, 2017.
178
+
179
+ Bernd Fritzke. A growing neural gas network learns topologies. In Advances in neural information processing systems, pp. 625–632, 1995.
180
+
181
+ Zoubin Ghahramani and Michael I Jordan. Supervised learning from incomplete data via an em approach. In Advances in neural information processing systems, pp. 120–127, 1994.
182
+
183
+ Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4367– 4375, 2018.
184
+
185
+ Spyros Gidaris and Nikos Komodakis. Generating classification weights with gnn denoising autoencoders for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 21–30, 2019.
186
+
187
+ Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 580–587, 2014.
188
+
189
+ Ian J Goodfellow, Mehdi Mirza, Aaron Courville Da Xiao, and Yoshua Bengio. An empirical investigation of catastrophic forgeting in gradient based neural networks. In In Proceedings of International Conference on Learning Representations ICLR, 2014.
190
+
191
+ 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, pp. 770–778, 2016.
192
+
193
+ Saihui Hou, Xinyu Pan, Chen Change Loy, Zilei Wang, and Dahua Lin. Learning a unified classifier incrementally via rebalancing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 831–839, 2019.
194
+
195
+ Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
196
+
197
+ James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017.
198
+
199
+ Ilja Kuzborskij, Francesco Orabona, and Barbara Caputo. From n to $\mathrm { n + \ 1 }$ : Multiclass transfer incremental learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3358–3365, 2013.
200
+
201
+ Mengjun Leng, Panagiotis Moutafis, and Ioannis A Kakadiaris. Joint prototype and metric learning for set-to-set matching: Application to biometrics. In 2015 IEEE 7th International Conference on Biometrics Theory, Applications and Systems (BTAS), pp. 1–8. IEEE, 2015.
202
+
203
+ Thomas Mensink, Jakob Verbeek, Florent Perronnin, and Gabriela Csurka. Distance-based image classification: Generalizing to new classes at near-zero cost. IEEE transactions on pattern analysis and machine intelligence, 35(11):2624–2637, 2013.
204
+
205
+ Elizbar A Nadaraya. On estimating regression. Theory of Probability & Its Applications, 9(1): 141–142, 1964.
206
+
207
+ Ameya Prabhu, Philip HS Torr, and Puneet K Dokania. Gdumb: A simple approach that questions our progress in continual learning. In European Conference on Computer Vision, pp. 524–540. Springer, 2020.
208
+
209
+ Hang Qi, Matthew Brown, and David G Lowe. Low-shot learning with imprinted weights. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5822–5830, 2018.
210
+
211
+ Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In 5th International Conference on Learning Representations, ICLR 2017, 2017.
212
+
213
+ Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 2001–2010, 2017.
214
+
215
+ Mengye Ren, Renjie Liao, Ethan Fetaya, and Richard Zemel. Incremental few-shot learning with attention attractor networks. In Advances in Neural Information Processing Systems, pp. 5275– 5285, 2019a.
216
+
217
+ Zhenwen Ren, Bin Wu, Quansen Sun, and Mingna Wu. Simultaneous learning of reduced prototypes and local metric for image set classification. Expert Systems with Applications, 134:102–111, 2019b.
218
+
219
+ Sascha Saralajew, Lars Holdijk, Maike Rees, and Thomas Villmann. Prototype-based neural network layers: incorporating vector quantization. In Advances in neural information processing systems - workshop poster, 2018.
220
+
221
+ Atsushi Sato and Keiji Yamada. Generalized learning vector quantization. In Advances in neural information processing systems, pp. 423–429, 1996.
222
+
223
+ Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 815–823, 2015.
224
+
225
+ Sambu Seo and Klaus Obermayer. Soft learning vector quantization. Neural computation, 15(7): 1589–1604, 2003.
226
+
227
+ Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. In Advances in Neural Information Processing Systems, pp. 2990–2999, 2017.
228
+
229
+ Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pp. 4077–4087, 2017.
230
+
231
+ Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1199–1208, 2018.
232
+
233
+ Xiaoyu Tao, Xinyuan Chang, Xiaopeng Hong, Xing Wei, and Yihong Gong. Topology-preserving class-incremental learning. In European Conference on Computer Vision. Springer, 2020a.
234
+
235
+ Xiaoyu Tao, Xiaopeng Hong, Xinyuan Chang, Songlin Dong, Xing Wei, and Yihong Gong. Fewshot class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12183–12192, 2020b.
236
+
237
+ Gido M van de Ven and Andreas S Tolias. Three scenarios for continual learning. In Advances in Neural Information Processing Systems - Continual Learning workshop, 2019.
238
+
239
+ Gido M van de Ven, Hava T Siegelmann, and Andreas S Tolias. Brain-inspired replay for continual learning with artificial neural networks. Nature Communications, 11:4069, 2020.
240
+
241
+ Ehsan Variani, Erik McDermott, and Georg Heigold. A gaussian mixture model layer jointly optimized with discriminative features within a deep neural network architecture. In 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 4270–4274. IEEE, 2015.
242
+
243
+ Thomas Villmann, Michael Biehl, Andrea Villmann, and Sascha Saralajew. Fusion of deep learning architectures, multilayer feedforward networks and learning vector quantizers for deep classification learning. In 2017 12th international workshop on self-organizing maps and learning vector quantization, clustering and data visualization (WSOM), pp. 1–8. IEEE, 2017.
244
+
245
+ Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pp. 3630–3638, 2016.
246
+
247
+ Wen Wang, Ruiping Wang, Shiguang Shan, and Xilin Chen. Prototype discriminative learning for face image set classification. In Asian Conference on Computer Vision, pp. 344–360. Springer, 2016.
248
+
249
+ P. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, and P. Perona. Caltech-UCSD Birds 200. Technical Report CNS-TR-2010-001, California Institute of Technology, 2010.
250
+
251
+ Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In European conference on computer vision, pp. 499–515. Springer, 2016.
252
+
253
+ Yue Wu, Yinpeng Chen, Lijuan Wang, Yuancheng Ye, Zicheng Liu, Yandong Guo, and Yun Fu. Large scale incremental learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 374–382, 2019.
254
+
255
+ Ye Xu, Furao Shen, and Jinxi Zhao. An incremental learning vector quantization algorithm for pattern classification. Neural Computing and Applications, 21(6):1205–1215, 2012.
256
+
257
+ Lu Yu, Bartlomiej Twardowski, Xialei Liu, Luis Herranz, Kai Wang, Yongmei Cheng, Shangling Jui, and Joost van de Weijer. Semantic drift compensation for class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6982–6991, 2020.
258
+
259
+ Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 3987– 3995, 2017.
260
+
261
+ Bowen Zhao, Xi Xiao, Guojun Gan, Bin Zhang, and Shu-Tao Xia. Maintaining discrimination and fairness in class incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13208–13217, 2020.
262
+
263
+ # A APPENDIX
264
+
265
+ A.1 PSEUDO CODE FOR IDLVQ-C
266
+
267
+ # Algorithm 1 IDLVQ-C
268
+
269
+ <table><tr><td>In the base task(t = 1)</td><td></td></tr><tr><td>Initialize 01,{m𝑖,.,mN1} and γ</td><td></td></tr><tr><td>Minimize L = LcE + XintraLintra W.r.t. θ1,{ml,.,mN1} and γ</td><td></td></tr><tr><td>Pick exemplars from D1 for classes in the base task: xi = arg minxeD1 |lft-1(x) - m1|l²</td><td></td></tr><tr><td>for novel task t = 2,3,... do</td><td></td></tr><tr><td>Initialize {mt-1+1.*., mNt}</td><td></td></tr><tr><td>Minimize L=LM +XFLF + XintraLintra W.r.t. 0t and {mNt-1+1,.,mNt}</td><td></td></tr><tr><td></td><td>t-1 t-1 +</td></tr><tr><td></td><td></td></tr><tr><td></td><td>Pick exemplars from Dt for classes in the novel task t: x&#x27; = arg minx∈Dt |lfet-1(x) - m ll²</td></tr><tr><td>end for</td><td></td></tr></table>
270
+
271
+ # A.2 PSEUDO CODE FOR IDLVQ-R
272
+
273
+ # Algorithm 2 IDLVQ-R
274
+
275
+ <table><tr><td>In the base task (t =1) Initializeθ,{m1,..,mN1},{q],..,qN1} and γ</td></tr><tr><td>Minimize Lmse w.r.t. θ,{ml,..,mN1},{ql,.,qN1} and γ</td></tr><tr><td>for novel task t = 2,3,.. do</td></tr><tr><td></td></tr><tr><td>Initialize {mNt-1+1,, mNt} and {qNt-1+1.…,qNt}</td></tr><tr><td>Minimize LmsE w.r.t. {mNt-1+1..*,mNt} and {qNt-1+1,.,qNt}</td></tr><tr><td>end for</td></tr><tr><td></td></tr></table>
276
+
277
+ # A.3 EXPERIMENT DETAILS FOR INCREMENTAL FEW-SHOT CLASSIFICATIO
278
+
279
+ The base model is trained by the SGD optimizer (momentum of 0.9 and weight decay of 1e-4) with a mini-batch size of 64. For CUB dataset, the initial learning rate is 0.01 and is decayed by 0.1 after 60 and 120 epochs (200 epochs in total). For miniImageNet, the learning rate also starts from 0.01 and is decayed by 0.1 every 200 epochs (600 epochs in total). In an incremental learning session $( t > 1 )$ ), the model is fine-tuned with with $\mathcal { D } ^ { t }$ with a learning rate of 0.01 for 100 epochs. Since novel data $\mathcal { D } ^ { t }$ $t > 1$ ) contains very few training samples, all training samples in $\mathcal { D } ^ { t }$ are included in one mini-batch. In addition, we use $\lambda _ { i n t r a } = 1 . 0$ and $\lambda _ { F } = 0 . 5$ for both datasets. Empirically, larger $\lambda _ { i n t r a }$ leads to more compact intra-class variation. However, convergence could be slow if $\lambda _ { i n t r a }$ is too large. In addition, larger $\lambda _ { F }$ results in less forgetting in old classes but makes learning novel classes more difficult.
280
+
281
+ # A.4 ADDITIONAL RESULTS FOR INCREMENTAL FEW-SHOT CLASSIFICATION
282
+
283
+ The accuracies for base and novel classes are reported separately in Table 5 and 6 for CUB amd miniImageNet, respectively. The prediction accuracy of novel classes is calculated upon all novel classes the model has been trained on. Note that the accuracy in Table 1 and 2 is calculated upon all classes (including base and novel classes) that the model has been trained on. The proposed IDLVQC demonstrates strong capability of preserving old knowledge by achieving the best performance on old classes across all learning sessions. In parallel, Imprint method performs slightly better on novel classes than IDLVQ-C in early incremental learning sessions, while IDLVQ-C outperforms Imprint method in longer incremental learning sessions. The advantage of IDLVQ-C can be attributed to the adaptive feature extractor, which is tuned in each learning session.
284
+
285
+ Table 5: Prediction accuracy on CUB base and novel classes using the 10-way 5-shot incremental setting.
286
+
287
+ <table><tr><td rowspan="2">Base classes</td><td colspan="10">sessions</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>Fine-tune</td><td>77.30</td><td>44.23</td><td>36.28</td><td>27.52</td><td>25.96</td><td>23.05</td><td>17.68</td><td>13.07</td><td>11.78</td><td>10.99</td><td>10.71</td></tr><tr><td>Joint train</td><td>77.30</td><td>75.83</td><td>75.25</td><td>74.51</td><td>74.58</td><td>73.74</td><td>73.95</td><td>73.25</td><td>73.11</td><td>73.25</td><td>73.18</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>77.30</td><td>59.38</td><td>58.81</td><td>54.43</td><td>48.27</td><td>43.28</td><td>39.17</td><td>34.91</td><td>32.43</td><td>29.36</td><td>25.87</td></tr><tr><td>Rebalancing (Hou et al.,2019)</td><td>77.30</td><td>66.43</td><td>60.32</td><td>55.36</td><td>46.39</td><td>41.76</td><td>37.12</td><td>32.58</td><td>31.26</td><td>27.03</td><td>24.25</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td>77.30</td><td>72.55</td><td>72.21</td><td>72.06</td><td>71.64</td><td>71.29</td><td>71.02</td><td>70.94</td><td>70.67</td><td>70.60</td><td>70.53</td></tr><tr><td>ILVQ (Xu et al., 2012)</td><td>77.30</td><td>74.18</td><td>73.57</td><td>72.66</td><td>72.56</td><td>71.57</td><td>71.14</td><td>71.12</td><td>71.02</td><td>70.98</td><td>70.85</td></tr><tr><td>SDC (Yu et al., 2020)</td><td>77.34</td><td>76.05</td><td>75.21</td><td>74.12</td><td>72.36</td><td>71.81</td><td>71.68</td><td>71.43</td><td>71.25</td><td>71.27</td><td>70.96</td></tr><tr><td>Imprint (Qi et al., 2018)</td><td>77.02</td><td>74.76</td><td>74.57</td><td>73.69</td><td>72.69</td><td>70.88</td><td>70.34</td><td>70.12</td><td>70.07</td><td>69.84</td><td>69.27</td></tr><tr><td>IDLVQ-C</td><td>77.37</td><td>76.32</td><td>75.90</td><td>75.91</td><td>75.49</td><td>74.86</td><td>74.58</td><td>74.37</td><td>74.02</td><td>73.39</td><td>73.32</td></tr><tr><td rowspan="2">Novel classes</td><td></td><td></td><td></td><td></td><td></td><td>sessions</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>Fine-tune</td><td>=</td><td>66.23</td><td>26.86</td><td>18.12</td><td>16.16</td><td>15.85</td><td>13.76</td><td>13.68</td><td>12.23</td><td>11.37</td><td>10.81</td></tr><tr><td>Joint train</td><td>=</td><td>47.78</td><td>36.55</td><td>34.77</td><td>36.68</td><td>38.52</td><td>38.91</td><td>40.37</td><td>41.50</td><td>42.51</td><td>43.28</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>-</td><td>35.18</td><td>33.97</td><td>27.04</td><td>21.99</td><td>23.99</td><td>23.04</td><td>24.01</td><td>22.96</td><td>24.04</td><td>24.59</td></tr><tr><td>Rebalancing (Hou et al.,2019)</td><td>=</td><td>45.53</td><td>35.24</td><td>20.39</td><td>20.25</td><td>19.65</td><td>20.91</td><td>21.29</td><td>21.95</td><td>21.60</td><td>22.97</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td></td><td>41.86</td><td>35.01</td><td>29.72</td><td>29.43</td><td>28.72</td><td>28.65</td><td>30.02</td><td>29.56</td><td>30.59</td><td>30.19</td></tr><tr><td>ILVQ (Xu et al., 2012)</td><td></td><td>40.74</td><td>32.89</td><td>29.54</td><td>29.30</td><td>30.38</td><td>28.82</td><td>32.12</td><td>29.17</td><td>30.32</td><td>30.09</td></tr><tr><td>SDC (Yu et al., 2020)</td><td></td><td>58.45</td><td>40.65</td><td>35.77</td><td>33.23</td><td>31.16</td><td>30.24</td><td>33.25</td><td>30.89</td><td>32.26</td><td>32.08</td></tr><tr><td>Imprint (Qi et al.,2018)</td><td></td><td>59.69</td><td>44.15</td><td>38.68</td><td>38.11</td><td>40.46</td><td>41.14</td><td>42.17</td><td>40.33</td><td>40.47</td><td>40.37</td></tr><tr><td>IDLVQ-C</td><td>=</td><td>58.72</td><td>42.18</td><td>37.86</td><td>39.97</td><td>40.84</td><td>41.30</td><td>43.21</td><td>40.32</td><td>42.34</td><td>42.30</td></tr></table>
288
+
289
+ The test accuracy on CUB dataset using 10-way 10-shot and 10-way 20-shot incremental settings are reported in Table 7 and 8, respectively. The prediction accuracy improves in all methods with more training samples per class. The iCaRL and Rebalancing methods show the most significant improvement when the number of training samples increases. The proposed IDLVQ-C is effective in different incremental few-shot scenarios as it achieves the best performance on 5-shot, 10-shot and 20-shot settings.
290
+
291
+ # A.5 EXPERIMENT DETAILS FOR INCREMENTAL FEW-SHOT REGRESSION
292
+
293
+ Sinusoidal wave: A six-layer feedforward neural network with ReLU nonlinear activation is used as the feature extractor. IDLVQ-R learns 10 reference vectors and targets from the base task. In each incremental learning sessions, 5 pairs of reference vectors and targets are added. After new reference vectors and targets are fine-tuned, the model is capable of make prediction for all seen tasks. 10 exemplars are selected uniformly from the training set in the base task. In the incremental learning session of the 2nd task, the model is fine-tuned on 10 exemplars and 5 novel training samples. After the training converges, 5 novel training samples in the current task are added to the exemplar set. In the incremental learning session of the 3rd task, the model is fine-tuned with 15 exemplars from old tasks and 5 novel training samples.
294
+
295
+ Table 6: Prediction accuracy on miniImageNet base and novel classes using the 5-way 5-shot incremental setting.
296
+
297
+ <table><tr><td rowspan="2">Base classes</td><td colspan="9">sessions</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>Fine-tune</td><td>64.25</td><td>32.28</td><td>20.87</td><td>6.95</td><td>3.17</td><td>3.16</td><td>1.92</td><td>1.53</td><td>1.46</td></tr><tr><td>Joint train</td><td>64.25</td><td>63.30</td><td>62.83</td><td>62.16</td><td>62.18</td><td>62.68</td><td>61.86</td><td>61.87</td><td>61.89</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>64.25</td><td>51.66</td><td>48.97</td><td>45.62</td><td>37.39</td><td>30.86</td><td>28.68</td><td>26.83</td><td>24.47</td></tr><tr><td>Rebalancing (Hou et al., 2019)</td><td>64.25</td><td>52.87</td><td>50.16</td><td>44.78</td><td>37.48</td><td>28.75</td><td>25.58</td><td>22.97</td><td>21.57</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td>64.25</td><td>59.27</td><td>58.88</td><td>58.69</td><td>58.22</td><td>57.63</td><td>57.03</td><td>56.80</td><td>56.47</td></tr><tr><td>ILVQ (Xu et al.,2012)</td><td>64.25</td><td>60.24</td><td>59.62</td><td>59.02</td><td>58.61</td><td>57.71</td><td>57.16</td><td>56.83</td><td>56.49</td></tr><tr><td>SDC (Yu et al., 2020)</td><td>64.62</td><td>63.58</td><td>62.78</td><td>61.12</td><td>60.29</td><td>59.37</td><td>59.05</td><td>59.97</td><td>59.87</td></tr><tr><td>Imprint (Qi et al.,2018)</td><td>64.71</td><td>63.52</td><td>62.96</td><td>62.13</td><td>61.17</td><td>61.27</td><td>60.63</td><td>59.86</td><td>59.64</td></tr><tr><td>IDLVQ-C</td><td>64.77 63.77</td><td></td><td>63.22</td><td>62.44</td><td>61.22</td><td>61.47</td><td>60.97</td><td>60.66</td><td>60.44</td></tr><tr><td rowspan="2">Novel classes</td><td></td><td></td><td></td><td></td><td>sessions</td><td></td><td></td><td></td><td></td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>Fine-tune</td><td></td><td>4.07</td><td>4.49</td><td>3.75</td><td>1.93</td><td>1.53</td><td>1.77</td><td>1.61</td><td>1.36</td></tr><tr><td>Joint train</td><td>-</td><td>4.80</td><td>9.84</td><td>13.26</td><td>12.30</td><td>14.03</td><td>14.01</td><td>15.21</td><td>15.62</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>=</td><td>4.60</td><td>8.09</td><td>8.92</td><td>7.87</td><td>9.10</td><td>8.19</td><td>7.86</td><td>7.70</td></tr><tr><td>Rebalancing (Hou et al.,2019)</td><td></td><td>5.29</td><td>8.23</td><td>9.43</td><td>8.00</td><td>8.93</td><td>8.81</td><td>8.83</td><td>8.27</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td></td><td>5.32</td><td>8.41</td><td>9.79</td><td>11.42</td><td>12.14</td><td>11.67</td><td>11.39</td><td>11.35</td></tr><tr><td>ILVQ (Xu et al.,2012)</td><td></td><td>5.25</td><td>9.29</td><td>10.47</td><td>12.09</td><td>12.35</td><td>11.86</td><td>11.45</td><td>11.34</td></tr><tr><td>SDC (Yu et al., 2020)</td><td></td><td>12.23</td><td>11.05</td><td>10.12</td><td>12.33</td><td>11.46</td><td>10.81</td><td>12.58</td><td>13.30</td></tr><tr><td>Imprint (Qi et al., 2018)</td><td></td><td>15.81</td><td>12.21</td><td>13.83</td><td>16.09</td><td>13.81</td><td>12.45</td><td>12.93</td><td>13.69</td></tr><tr><td>IDLVQ-C</td><td>-</td><td>13.07</td><td>12.19</td><td>13.34</td><td>15.86</td><td>14.14</td><td>12.55</td><td>13.11</td><td>13.94</td></tr></table>
298
+
299
+ Table 7: Prediction accuracy on CUB using the 10-way 10-shot incremental setting.
300
+
301
+ <table><tr><td rowspan="2">Method</td><td colspan="10">sessions</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>Fine-tune</td><td>77.30</td><td>47.16</td><td>36.34</td><td>26.92</td><td>24.08</td><td>21.24</td><td>17.19</td><td>14.31</td><td>12.73</td><td>11.75</td><td>11.43</td></tr><tr><td>Joint train</td><td>77.30</td><td>73.29</td><td>71.54</td><td>68.72</td><td>66.38</td><td>65.42</td><td>64.98</td><td>65.74</td><td>64.82</td><td>64.47</td><td>64.16</td></tr><tr><td>iCaRL (Rebuffi et al., 2017)</td><td>77.30</td><td>59.66</td><td>56.24</td><td>52.26</td><td>48.77</td><td>46.37</td><td>44.54</td><td>43.17</td><td>42.35</td><td>41.19</td><td>40.92</td></tr><tr><td>Rebalancing (Hou et al., 2019)</td><td>77.30</td><td>64.53</td><td>58.35</td><td>53.82</td><td>49.27</td><td>47.12</td><td>45.16</td><td>43.05</td><td>42.37</td><td>41.02</td><td>40.86</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td>77.30</td><td>69.82</td><td>66.12</td><td>63.19</td><td>61.17</td><td>58.85</td><td>58.04</td><td>57.75</td><td>55.84</td><td>55.82</td><td>55.60</td></tr><tr><td>ILVQ (Xu et al., 2012)</td><td>77.30</td><td>71.26</td><td>66.84</td><td>63.82</td><td>62.66</td><td>59.71</td><td>58.92</td><td>58.11</td><td>56.31</td><td>56.14</td><td>56.03</td></tr><tr><td>SDC (Yu et al., 2020)</td><td>77.34</td><td>74.67</td><td>69.73</td><td>66.71</td><td>66.49</td><td>62.14</td><td>61.33</td><td>59.84</td><td>58.01</td><td>57.39</td><td>56.62</td></tr><tr><td>Imprint (Qi et al.,2018)</td><td>77.02</td><td>74.07</td><td>70.26</td><td>66.84</td><td>64.45</td><td>62.46</td><td>61.85</td><td>61.02</td><td>59.20</td><td>58.93</td><td>58.43</td></tr><tr><td>IDLVQ-C</td><td>77.37</td><td>74.79</td><td>70.96</td><td>68.08</td><td>65.94</td><td>64.12</td><td>63.58</td><td>62.98</td><td>60.85</td><td>60.54</td><td>59.72</td></tr></table>
302
+
303
+ Table 8: Prediction accuracy on CUB using the 10-way 20-shot incremental setting.
304
+
305
+ <table><tr><td rowspan="2">Method</td><td colspan="10">sessions</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>Fine-tune</td><td>77.30</td><td>47.68</td><td>36.75</td><td>27.01</td><td>24.56</td><td>21.72</td><td>17.88</td><td>15.24</td><td>12.84</td><td>11.89</td><td>11.52</td></tr><tr><td>Joint train</td><td>77.30</td><td>74.34</td><td>72.59</td><td>70.85</td><td>70.14</td><td>70.01</td><td>69.69</td><td>69.67</td><td>69.48</td><td>69.41</td><td>69.42</td></tr><tr><td>iCaRL (Rebuff et al.,2017)</td><td>77.30</td><td>68.85</td><td>63.56</td><td>60.34</td><td>57.71</td><td>56.28</td><td>55.97</td><td>55.02</td><td>54.62</td><td>52.21</td><td>52.23</td></tr><tr><td>Rebalancing (Hou et al.,2019)</td><td>77.30</td><td>69.36</td><td>65.49</td><td>61.32</td><td>59.30</td><td>58.68</td><td>58.77</td><td>57.42</td><td>56.25</td><td>55.33</td><td>54.17</td></tr><tr><td>ProtoNet (Snell et al., 2017)</td><td>77.30</td><td>70.84</td><td>67.82</td><td>64.81</td><td>62.95</td><td>61.71</td><td>60.98</td><td>60.73</td><td>59.51</td><td>59.30</td><td>58.95</td></tr><tr><td>ILVQ (Xu et al., 2012)</td><td>77.30</td><td>71.50</td><td>68.77</td><td>66.12</td><td>64.31</td><td>62.89</td><td>62.31</td><td>62.00</td><td>61.52</td><td>59.79</td><td>59.23</td></tr><tr><td>SDC (Yu et al.,2020)</td><td>77.34</td><td>74.62</td><td>71.63</td><td>68.66</td><td>66.75</td><td>65.24</td><td>64.21</td><td>63.62</td><td>61.97</td><td>61.54</td><td>61.11</td></tr><tr><td>Imprint (Qi et al., 2018)</td><td>77.02</td><td>74.14</td><td>70.72</td><td>67.75</td><td>65.88</td><td>64.63</td><td>64.28</td><td>63.82</td><td>62.00</td><td>61.84</td><td>61.40</td></tr><tr><td>IDLVQ-C</td><td>77.37</td><td>74.84</td><td>72.07</td><td>69.05</td><td>67.28</td><td>65.51</td><td>65.19</td><td>64.84</td><td>62.77</td><td>62.55</td><td>61.96</td></tr></table>
306
+
307
+ 3D spatial data: We follow the same training and test protocols as the sinusoidal wave dataset. We choose 40, 15 and 15 reference vectors and targets for 1st, 2nd and 3rd tasks, respectively. Adding more reference vectors does not result in obvious improvement in accuracy in our experiments.
308
+
309
+ ![](images/5e1419f899b33ff87b466bb8184b86bfa4ee63793fee7e949fdeb2a29f2e20af.jpg)
310
+ Figure 2: Comparison results of different few-shot settings, evaluated with ResNet18 on CUB dataset
311
+
312
+ # A.6 VISUALIZATION OF IDLVQ-C
313
+
314
+ We show the visualization of standard neural networks and IDLVQ-C with/without intra-class variation loss in Fig. 3. MNIST dataset is used as a toy example for visualization. Classes 0-7 are old classes with sufficient training samples, and classes 8 and 9 are novel classes with few-shot training samples. It can be observed in Fig. 3(a) and 3(b) that standard neural networks and IDLVQ-C (without intra-class variation loss) trained by cross-entropy loss do not have compact intra-class variation. Consequently, features of novel classes are more likely to overlap with old classes. In this case, the performance of class-incremental learning degrades very quickly because the classifier cannot distinguish between features from different classes. In comparison, the proposed IDLVQ-C makes intra-class variation compact and leaves large margin between classes in Fig 3(c). As a result, the features of novel classes are less likely to overlap existing classes. The compact intra-class variation and large margin between classes make features of novel classes distinguishable so that learning novel classes is easier. In addition, the margin based loss only updates the model parameters when necessary and avoids catastrophic forgetting of old classes.
315
+
316
+ ![](images/49e99100b8d6c5c5a8ae0c3a024f4b687cf490c746e6964ee89e2468e958123b.jpg)
317
+ Figure 3: Visualization of feature spaces in different methods. Dots represent features of samples and crosses denote references vectors of classes. (a) standard neural networks; (b) IDLVQ-C without $\mathcal { L } _ { i n t r a }$ ; (c) IDLVQ-C.
parse/train/3SV-ZePhnZM/3SV-ZePhnZM_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3SV-ZePhnZM/3SV-ZePhnZM_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3SV-ZePhnZM/3SV-ZePhnZM_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3g5KdPD8LIL/images/03e0b4da2dd1716cbf0f48130a0e3e9d6b152fda36171fe2a70ef2ee68884792.jpg ADDED

Git LFS Details

  • SHA256: 44c0fd3a076ae1ad8a98759dd2345bb6d6c103bfb1dcbc06fa7458050aee767a
  • Pointer size: 129 Bytes
  • Size of remote file: 6.25 kB
parse/train/3g5KdPD8LIL/images/0cf2ca09adb19d88f99a939c9cae489ced9b2a5be9f1843f20a31b298dbe24b6.jpg ADDED

Git LFS Details

  • SHA256: 21493f01dd80ed23bc05c18c36b81132db2c2e8a4a0a80cb8a31e42d7187364c
  • Pointer size: 129 Bytes
  • Size of remote file: 7.05 kB
parse/train/3g5KdPD8LIL/images/0dd2b39a24bcc3ade8b7c1b5e7351c7f059bac8249985049f6a955060c23ea56.jpg ADDED

Git LFS Details

  • SHA256: 5b2dceb708e10c123e879047d9e5cbb662ae271d8acae137c5a036384db31239
  • Pointer size: 129 Bytes
  • Size of remote file: 8.07 kB
parse/train/3g5KdPD8LIL/images/112dfe3d49a6bf56b784a4733b751cf0a34de8798cb4de036bc65b74280c3606.jpg ADDED

Git LFS Details

  • SHA256: 0097647b9ab3581001aad33af481fe0052ccc8a3dd8f520ab8410ca64864c8c1
  • Pointer size: 129 Bytes
  • Size of remote file: 4.13 kB
parse/train/3g5KdPD8LIL/images/2145ab9b3bc8178553796fba897c230aa364a9743d0b54f31a575a34b3004279.jpg ADDED

Git LFS Details

  • SHA256: 26973b0ec0643f7fbdce916a7477ac908579f0c51069b2d3d7194092541c7f4d
  • Pointer size: 129 Bytes
  • Size of remote file: 4.18 kB
parse/train/3g5KdPD8LIL/images/42432145446d15826e0912ad9a582adecc8b903cb263d306487137489724f86e.jpg ADDED

Git LFS Details

  • SHA256: 50e618b93d7b242510492832dd87be15bcd1395e36131c201cf78153e28fb857
  • Pointer size: 130 Bytes
  • Size of remote file: 11.2 kB
parse/train/3g5KdPD8LIL/images/4b789ddb2c78b08153055c11a351b43a49a73b9ef706ae3b51d1a596f2a2b26a.jpg ADDED

Git LFS Details

  • SHA256: 390d1a631aacec1c145518e716f835809736e42fdb59a15d7189e4889e6933c6
  • Pointer size: 129 Bytes
  • Size of remote file: 3.72 kB
parse/train/3g5KdPD8LIL/images/54f033e20437b2470146b6ad167747c161c7dea49907ec6e1075a5ad9b5bc028.jpg ADDED

Git LFS Details

  • SHA256: 677db45dc3708dc0e08ff34dd8a2c098edeff5213232c295ded31710492ecbdb
  • Pointer size: 130 Bytes
  • Size of remote file: 50.6 kB
parse/train/3g5KdPD8LIL/images/689434e91b4dde1ece15a75047f8b53515cfedbab3ace44521bfc1117625af75.jpg ADDED

Git LFS Details

  • SHA256: 213bbf66228b773c7b48da12b1163062e2cfc3a67c98b2577251c0d80532e2c9
  • Pointer size: 129 Bytes
  • Size of remote file: 9.05 kB
parse/train/3g5KdPD8LIL/images/6fe42bfba41420f38aecf4a17ab1e4d9b4816d2107844d698cd5beb3f6b072ab.jpg ADDED

Git LFS Details

  • SHA256: 78664c603c954bdcd10c4968b120eeb04ef17a521a727bf33ec3d8bee69ba629
  • Pointer size: 130 Bytes
  • Size of remote file: 54.2 kB
parse/train/3g5KdPD8LIL/images/8e40a88186fe991a1f5b33f0d69f552be1b201d8e8b9ad49435e47363052c85c.jpg ADDED

Git LFS Details

  • SHA256: 7c1bb1942a5b7d0f9f6bba30219e94a717b496fb03825424135123f0f2f78d07
  • Pointer size: 130 Bytes
  • Size of remote file: 28 kB
parse/train/3g5KdPD8LIL/images/9a2ce8b4db1667e120d3e391edc4e605f10711786bdbd70de95e46dfcb47ad39.jpg ADDED

Git LFS Details

  • SHA256: 67c040eee42c8a7367add5d88a9516fe9951b3883a68f648343cff4ed943453c
  • Pointer size: 130 Bytes
  • Size of remote file: 28.6 kB
parse/train/3g5KdPD8LIL/images/9b2597f442abd0c904edd84c873c006247936ef70233e08802bcb5c81bd995f5.jpg ADDED

Git LFS Details

  • SHA256: bc361b8afed67ea9e1007b0eddf649e11c161c0bc7ca618665bf10194bdd6fc6
  • Pointer size: 129 Bytes
  • Size of remote file: 3.21 kB
parse/train/3g5KdPD8LIL/images/ab9235c819339abb3bd3d756dfaf8257af88464cf4bb5c06397fd49952b333df.jpg ADDED

Git LFS Details

  • SHA256: e0602c46d30febd9c23fb77b88f707054bcb8d46785e41d7d84b112d4ebd28a1
  • Pointer size: 129 Bytes
  • Size of remote file: 9.28 kB
parse/train/3g5KdPD8LIL/images/b08f9cfa25e49147de6bd5c99c32e6d5058eeef27cd23f658d79d4db5b7758a1.jpg ADDED

Git LFS Details

  • SHA256: 8a04c8fad254df83cb9fb13718b89dcd2399dc40bed4314b4c9bf1347f36e4df
  • Pointer size: 130 Bytes
  • Size of remote file: 17.8 kB
parse/train/3g5KdPD8LIL/images/b5c3ae0112d4775e1d17c9295e5537664ae043d2a3d125584282c129b55680db.jpg ADDED

Git LFS Details

  • SHA256: 1ebd91224bb04d2328990b763c6c3fdcfb629d099974621e88e0802802232288
  • Pointer size: 129 Bytes
  • Size of remote file: 9.07 kB
parse/train/3g5KdPD8LIL/images/c3a32688718fc2498034dc1d8c73a0871eedd77b075fe8697acaf10411eb48b5.jpg ADDED

Git LFS Details

  • SHA256: 2c25751161fc9c827a5988c389410901ede89033d324e2a797bf5f0767046cab
  • Pointer size: 129 Bytes
  • Size of remote file: 5.77 kB
parse/train/3g5KdPD8LIL/images/ee74ef15b1c4bf5acba45467aa3b157cb56fa3118986b351ff3cd98fe81ae34d.jpg ADDED

Git LFS Details

  • SHA256: 2ca23c9f2d2b43d24c9f7cb607c343e0762a140ddc4c21f58ceec640f9dbffc8
  • Pointer size: 130 Bytes
  • Size of remote file: 91 kB
parse/train/6xHJ37MVxxp/6xHJ37MVxxp.md ADDED
@@ -0,0 +1,331 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DOMAIN GENERALIZATION WITH MIXSTYLE
2
+
3
+ Kaiyang Zhou1, Yongxin Yang1, Yu Qiao2, Tao Xiang1
4
+
5
+ 1University of Surrey, UK
6
+ 2Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences, Shenzhen, China
7
+ k.zhou.vision@gmail.com
8
+ {yongxin.yang, t.xiang}@surrey.ac.uk
9
+ yu.qiao@siat.ac.cn
10
+
11
+ # ABSTRACT
12
+
13
+ Though convolutional neural networks (CNNs) have demonstrated remarkable ability in learning discriminative features, they often generalize poorly to unseen domains. Domain generalization aims to address this problem by learning from a set of source domains a model that is generalizable to any unseen domain. In this paper, a novel approach is proposed based on probabilistically mixing instancelevel feature statistics of training samples across source domains. Our method, termed MixStyle, is motivated by the observation that visual domain is closely related to image style (e.g., photo vs. sketch images). Such style information is captured by the bottom layers of a CNN where our proposed style-mixing takes place. Mixing styles of training instances results in novel domains being synthesized implicitly, which increase the domain diversity of the source domains, and hence the generalizability of the trained model. MixStyle fits into mini-batch training perfectly and is extremely easy to implement. The effectiveness of MixStyle is demonstrated on a wide range of tasks including category classification, instance retrieval and reinforcement learning.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Key to automated understanding of digital images is to compute a compact and informative feature representation. Deep convolutional neural networks (CNNs) have demonstrated remarkable ability in representation learning, proven to be effective in many visual recognition tasks, such as classifying photo images into 1,000 categories from ImageNet (Krizhevsky et al., 2012) and playing Atari games with reinforcement learning (Mnih et al., 2013). However, it has long been discovered that the success of CNNs heavily relies on the i.i.d. assumption, i.e. training and test data should be drawn from the same distribution; when such an assumption is violated even just slightly, as in most realworld application scenarios, severe performance degradation is expected (Hendrycks & Dietterich, 2019; Recht et al., 2019).
18
+
19
+ Domain generalization (DG) aims to address such a problem (Zhou et al., 2021; Blanchard et al., 2011; Muandet et al., 2013; Li et al., 2018a; Zhou et al., 2020b; Balaji et al., 2018; Dou et al., 2019; Carlucci et al., 2019). In particular, assuming that multiple source domains containing the same visual classes are available for model training, the goal of DG is to learn models that are robust against data distribution changes across domains, known as domain shift, so that the trained model can generalize well to any unseen domains. Compared to the closely related and more widely studied domain adaptation (DA) problem, DG is much harder in that no target domain data is available for the model to analyze the distribution shift in order to overcome the negative effects. Instead, a DG model must rely on the source domains and focus on learning domain-invariant feature representation in the hope that it would remain discriminative given target domain data.
20
+
21
+ A straightforward solution to DG is to expose a model with a large variety of source domains. Specifically, the task of learning domain-invariant and thus generalizable feature representation becomes easier when data from more diverse source domains are available for the model. This would reduce the burden on designing special models or learning algorithms for DG. Indeed, model training with large-scale data of diverse domains is behind the success of existing commercial face recognition or vision-based autonomous driving systems. A recent work by $\mathrm { X u }$ et al. (2021) also emphasizes the importance of diverse training distributions for out-of-distribution generalization. However, collecting data of a large variety of domains is often costly or even impossible. It thus cannot be a general solution to DG.
22
+
23
+ ![](images/f1cd7469df889b614caa015810343d6c004d2bbf757f1fbaacd0388b9ffe208e.jpg)
24
+ Figure 1: 2-D t-SNE (Maaten & Hinton, 2008) visualization of the style statistics (concatenation of mean and standard deviation) computed from the first residual block’s feature maps of a ResNet-18 (He et al., 2016) trained on four distinct domains (Li et al., 2017). It is clear that different domains are well separated.
25
+
26
+ In this paper, a novel approach is proposed based on probabilistically mixing instance-level feature statistics of training samples across source domains. Our model, termed MixStyle, is motivated by the observation that visual domain is closely related to image style. An example is shown in Fig. 1: the four images from four different domains depict the same semantic concept, i.e. dog, but with distinctive styles (e.g., characteristics in color and texture). When these images are fed into a deep CNN, which maps the raw pixel values into category labels, such style information is removed at the output. However, recent style transfer studies (Huang & Belongie, 2017; Dumoulin et al., 2017) suggest that such style information is preserved at the bottom layers of the CNN through the instance-level feature statistics, as shown clearly in Fig. 4. Importantly, since replacing such statistics would lead to replaced style while preserving the semantic content of the image, it is reasonable to assume that mixing styles from images of different domains would result in images of (mixed) new styles. That is, more diverse domains/styles can be made available for training a more domain-generalizable model.
27
+
28
+ Concretely, our MixStyle randomly selects two instances of different domains and adopts a probabilistic convex combination between instance-level feature statistics of bottom CNN layers. In contrast to style transfer work (Huang & Belongie, 2017; Dumoulin et al., 2017), no explicit image synthesis is necessary meaning much simpler model design. Moreover, MixStyle perfectly fits into modern mini-batch training. Overall, it is very easy to implement with only few lines of code. To evaluate the effectiveness as well as the general applicability of MixStyle, we conduct extensive experiments on a wide spectrum of datasets covering category classification (Sec. 3.1), instance retrieval (Sec. 3.2), and reinforcement learning (Sec. 3.3). The results demonstrate that MixStyle can significantly improve CNNs’ cross-domain generalization performance.1
29
+
30
+ # 2 METHODOLOGY
31
+
32
+ # 2.1 BACKGROUND
33
+
34
+ Normalizing feature tensors with instance-specific mean and standard deviation has been found effective for removing image style in style transfer models (Ulyanov et al., 2016; Huang & Belongie, 2017; Dumoulin et al., 2017). Such an operation is widely known as instance normalization (IN, Ulyanov et al. (2016)). Let $\boldsymbol { x } ^ { \prime } \in \mathbb { R } ^ { B \times C \times \dot { H } \times W }$ be a batch of tensors, with $B , C , H$ and $W$ denoting the dimension of batch, channel, height and width, respectively, IN is formulated as
35
+
36
+ $$
37
+ \mathrm { I N } ( x ) = \gamma \frac { x - \mu ( x ) } { \sigma ( x ) } + \beta ,
38
+ $$
39
+
40
+ where $\gamma , \beta \in \mathbb { R } ^ { C }$ are learnable affine transformation parameters, and $\mu ( \boldsymbol { x } ) , \sigma ( \boldsymbol { x } ) \in \mathbb { R } ^ { B \times C }$ are mean and standard deviation computed across the spatial dimension within each channel of each instance (tensor), i.e.
41
+
42
+ $$
43
+ \mu ( x ) _ { b , c } = \frac { 1 } { H W } \sum _ { h = 1 } ^ { H } \sum _ { w = 1 } ^ { W } x _ { b , c , h , w } ,
44
+ $$
45
+
46
+ and
47
+
48
+ $$
49
+ \sigma ( x ) _ { b , c } = \sqrt { \frac { 1 } { H W } \sum _ { h = 1 } ^ { H } \sum _ { w = 1 } ^ { W } ( x _ { b , c , h , w } - \mu ( x ) _ { b , c } ) ^ { 2 } } .
50
+ $$
51
+
52
+ Huang & Belongie (2017) introduced adaptive instance normalization (AdaIN), which simply replaces the scale and shift parameters in Eq. (1) with the feature statistics of style input $y$ to achieve arbitrary style transfer:
53
+
54
+ $$
55
+ \mathrm { A d a I N } ( x ) = \sigma ( y ) \frac { x - \mu ( x ) } { \sigma ( x ) } + \mu ( y ) .
56
+ $$
57
+
58
+ # 2.2 MIXSTYLE
59
+
60
+ Our method, MixStyle, draws inspiration from AdaIN. However, rather than attaching a decoder for image generation, MixStyle is designed for the purpose of regularizing CNN training by perturbing the style information of source domain training instances. It can be implemented as a plug-andplay module inserted between CNN layers of, e.g., a supervised CNN classifier, without the need to explicitly generate an image of new style.
61
+
62
+ More specifically, MixStyle mixes the feature statistics of two instances with a random convex weight to simulate new styles. In terms of implementation, MixStyle can be easily integrated into mini-batch training. Given an input batch $x$ , MixStyle first generates a reference batch $\tilde { x }$ from $x$ . When domain labels are given, $x$ is sampled from two different domains $i$ and $j$ , e.g., $\bar { \boldsymbol { x } } = [ x ^ { i } , x ^ { j } ]$ $\bar { x ^ { i } }$ and $x ^ { j }$ have the same batch size). Then, $\tilde { x }$ is obtained by swapping the position of $x ^ { i }$ and $x ^ { j }$ , followed by a shuffling operation along the batch dimension applied to each batch, i.e. $\mathbf { \widetilde { \boldsymbol { x } } } = [ \mathrm { S h u f f e } ( \boldsymbol { x } ^ { j } ) , \mathrm { S h u f f e } ( \boldsymbol { x } ^ { i } ) ]$ . See Fig. 2(a) for an illustration. In cases where domain labels are unknown, $x$ is randomly sampled from the training data, and $\tilde { x }$ is simply obtained by $\tilde { x } = \mathrm { S h u f f e } ( x )$ (see Fig. 2(b)). Fig. 4 shows that sub-domains exist within each domain, so even if two instances of the same domain are sampled, new domain could be synthesized. After shuffling, MixStyle computes the mixed feature statistics by
63
+
64
+ ![](images/328a14b30cdf68b6ebf3e522fa5e10ef00672d004ed56b5521dcee7294f42db8.jpg)
65
+ Figure 2: A graphical illustration of how a reference batch is generated. Domain label is denoted by color.
66
+
67
+ $$
68
+ \begin{array} { r } { \gamma _ { m i x } = \lambda \sigma ( x ) + ( 1 - \lambda ) \sigma ( \tilde { x } ) , } \\ { \beta _ { m i x } = \lambda \mu ( x ) + ( 1 - \lambda ) \mu ( \tilde { x } ) , } \end{array}
69
+ $$
70
+
71
+ where $\lambda \in \mathbb { R } ^ { B }$ are instance-wise weights sampled from the Beta distribution, $\lambda \sim B e t a ( \alpha , \alpha )$ with $\alpha \in ( 0 , \infty )$ being a hyper-parameter. Unless specified otherwise, we set $\alpha$ to 0.1 throughout this paper. Finally, the mixed feature statistics are applied to the style-normalized $x$ ,
72
+
73
+ $$
74
+ { \mathrm { M i x S t y l e } } ( x ) = \gamma _ { m i x } { \frac { x - \mu ( x ) } { \sigma ( x ) } } + \beta _ { m i x } .
75
+ $$
76
+
77
+ In practice, we use a probability of 0.5 to decide if MixStyle is activated or not in the forward pass. At test time, no MixStyle is applied. Note that gradients are blocked in the computational graph of $\mu ( \cdot )$ and $\sigma ( \cdot )$ . MixStyle can be implemented with only few lines of code. See Algorithm 1 in Appendix A.1 for the PyTorch-like pseudo-code.
78
+
79
+ Table 1: Leave-one-domain-out generalization results on PACS.
80
+
81
+ <table><tr><td>Method</td><td>Art</td><td>Cartoon</td><td>Photo</td><td>Sketch</td><td>Avg</td></tr><tr><td>MMD-AAE CCSA JiGen</td><td>75.2 80.5 79.4 79.8 82.1</td><td>72.7 76.9 75.3 76.8</td><td>96.0 93.6 96.0 96.0</td><td>64.2 66.8 71.6 70.2</td><td>77.0 79.4 80.5 80.7</td></tr><tr><td>Epi-FCR Metareg L2A-OT ResNet-18</td><td>83.7 83.3 77.0±0.6</td><td>77.0 77.2 78.2 75.9±0.6</td><td>93.9 95.5 96.2 96.0±0.1</td><td>73.0 70.3 73.6 69.2±0.6</td><td>81.5 81.7 82.8 79.5</td></tr><tr><td>+ Manifold Mixup</td><td>75.6±0.7</td><td>70.1±0.9</td><td>93.5±0.7</td><td>65.4±0.6</td><td>76.2</td></tr><tr><td>+ Cutout</td><td>74.9±0.4</td><td>74.9±0.6</td><td>95.9±0.3</td><td>67.7±0.9</td><td>78.3</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>+ CutMix</td><td>74.6±0.7</td><td>71.8±0.6</td><td>95.6±0.4</td><td>65.3±0.8</td><td>76.8</td></tr><tr><td></td><td>74.7±1.0</td><td>72.3±0.9</td><td></td><td></td><td></td></tr><tr><td>+ Mixup (w/o label interpolation)</td><td></td><td></td><td>93.0±0.4</td><td>69.2±0.2</td><td>77.3</td></tr><tr><td>+ Mixup</td><td>76.8±0.7</td><td>74.9±0.7</td><td>95.8±0.3</td><td>66.6±0.7</td><td>78.5</td></tr><tr><td>+ DropBlock</td><td>76.4±0.7</td><td>75.4±0.7</td><td>95.9±0.3</td><td>69.0±0.3</td><td>79.2</td></tr><tr><td>+ MixStyle w/ random shuffle</td><td>82.3±0.2</td><td>79.0±0.3</td><td>96.3±0.3</td><td>73.8±0.9</td><td>82.8</td></tr><tr><td>+ MixStyle w/ domain label</td><td>84.1±0.4</td><td>78.8±0.4</td><td>96.1±0.3</td><td>75.9±0.9</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>83.7</td></tr></table>
82
+
83
+ # 3 EXPERIMENTS
84
+
85
+ # 3.1 GENERALIZATION IN CATEGORY CLASSIFICATION
86
+
87
+ Dataset and implementation details. We choose the PACS dataset (Li et al., 2017), a commonly used domain generalization (DG) benchmark concerned with domain shift in image classification. PACS consists of four domains, i.e. Art Painting, Cartoon, Photo and Sketch, with totally 9,991 images of 7 classes. As shown in Fig. 1, the domain shift mainly corresponds to image style changes. For evaluation, a model is trained on three domains and tested on the remaining one. Following prior work (Li et al., 2019; Zhou et al., 2020a), we use ResNet-18 (He et al., 2016) as the classifier where MixStyle is inserted after the 1st, 2nd and 3rd residual blocks. Our code is based on Dassl.pytorch (Zhou et al., 2020c).2
88
+
89
+ Baselines. Our main baselines are general-purpose regularization methods including Mixup (Zhang et al., 2018b), Manifold Mixup (Verma et al., 2019), DropBlock (Ghiasi et al., 2018), CutMix (Yun et al., 2019) and Cutout (DeVries & Taylor, 2017), which are trained using the same training parameters as MixStyle and the optimal hyper-parameter setup as reported in their papers. We also compare with the existing DG methods which reported state-of-the-art performance on PACS. These include domain alignment-based CCSA (Motiian et al., 2017) and MMD-AAE (Li et al., 2018b), Jigsaw puzzle-based JiGen (Carlucci et al., 2019), adversarial gradient-based CrossGrad (Shankar et al., 2018), meta-learning-based Metareg (Balaji et al., 2018) and Epi-FCR (Li et al., 2019), and data augmentation-based L2A-OT (Zhou et al., 2020a).
90
+
91
+ Comparison with general-purpose regularization methods. The results are shown in Table 1. Overall, we observe that the general-purpose regularization methods do not offer any clear advantage over the vanilla ResNet-18 in this DG task, while MixStyle improves upon the vanilla ResNet18 with a significant margin. Compared with Mixup, MixStyle is $5 . 2 \%$ better on average. Recall that Mixup also interpolates the output space, we further compare with a variant of Mixup in order to demonstrate the advantage of mixing style statistics at the feature level over mixing images at the pixel level for DG—following Sohn et al. (2020), we remove the label interpolation in Mixup and sample the mixing weights from a uniform distribution of $[ 0 , 1 ]$ . Still, MixStyle outperforms this new baseline with a large margin, which justifies our claim. MixStyle and DropBlock share some commonalities in that they are both applied to feature maps at multiple layers, but MixStyle significantly outperforms DropBlock in all test domains. The reason why DropBlock is ineffective here is because dropping out activations mainly encourages a network to mine discriminative patterns, but does not reinforce the ability to cope with unseen styles, which is exactly what MixStyle aims to achieve: by synthesizing “new” styles (domains) MixStyle regularizes the network to become more robust to domain shift. In addition, it is interesting to see that on Cartoon and Photo, MixStyle w/ random shuffle obtains slightly better results. The reason might be because there exist sub-domains in a source domain (see Fig. 4(a-c)), which allow random shuffling to produce more diverse “new” domains that lead to a more domain-generalizable model.
92
+
93
+ Comparison with state-of-the-art DG methods. Overall, MixStyle outperforms most DG methods by a clear margin, despite being a much simpler method. The performance of MixStyle w/ domain label is nearly $1 \%$ better on average than the recently introduced L2A-OT. From a data augmentation perspective, MixStyle and L2A-OT share a similar goal—to synthesize data from pseudo-novel domains. MixStyle accomplishes this goal through mixing style statistics at the feature level. Whereas L2A-OT works at the pixel level: it trains an image generator by maximizing the domain difference (measured by optimal transport) between the original and the generated images, which introduces much heavier computational overhead than MixStyle in terms of GPU memory and training time. It is worth noting that MixStyle’s domain label-free version is highly competitive: its $8 2 . 8 \%$ accuracy is on par with L2A-OT’s.
94
+
95
+ # 3.2 GENERALIZATION IN INSTANCE RETRIEVAL
96
+
97
+ Dataset and implementation details. We evaluate MixStyle on the person re-identification (re-ID) problem, which aims to match people across disjoint camera views. As each camera view is itself a distinct domain, person re-ID is essentially a cross-domain image matching problem. Instead of using the standard protocol where training and test data come from the same camera views, we adopt the cross-dataset setting so test camera views are never seen during training. Specifically, we train a model on one dataset and then test its performance on the other dataset. Two commonly used re-ID datasets are adopted: Market1501 (Zheng et al., 2015) and Duke (Ristani et al., 2016; Zheng et al., 2017). Ranking accuracy and mean average precision (mAP) are used as the performance measures (displayed in percentage). We test MixStyle on two CNN architectures: ResNet-50 (He et al., 2016) and OSNet (Zhou et al., 2019). The latter was designed specifically for re-ID. In both architectures, MixStyle is inserted after the 1st and 2nd residual blocks. Our code is based on Torchreid (Zhou & Xiang, 2019).3
98
+
99
+ Baselines. We compare with three baseline methods: 1) The vanilla model, which serves as a strong baseline; 2) DropBlock, which was the top-performing competitor in Table 1; 3) RandomErase (Zhong et al., 2020), a widely used regularization method in the re-ID literature (similar to Cutout).
100
+
101
+ Results. The results are reported in Table 2. It is clear that only MixStyle consistently outperforms the strong vanilla model under both settings with considerable margins, while DropBlock and RandomErase are unable to show any benefit. Notably, RandomErase, which simulates occlusion by erasing pixels in random rectangular regions with random values, has been used as a default trick when training re-ID CNNs. However, RandomErase shows a detrimental effect in the cross-dataset re-ID setting. Indeed, similar to DropBlock, randomly erasing pixels offers no guarantee to improve the robustness when it comes to domain shift.
102
+
103
+ # 3.3 GENERALIZATION IN REINFORCEMENT LEARNING
104
+
105
+ Though RL has been greatly advanced by using CNNs for feature learning in raw pixels (Mnih et al., 2013), it has been widely acknowledged that RL agents often overfit training environments while generalize poorly to unseen environments (Cobbe et al., 2019; Igl et al., 2019).
106
+
107
+ Dataset and implementation details. We conduct experiments on Coinrun (Cobbe et al., 2019), a recently introduced RL benchmark for evaluating the generalization performance of RL agents. As shown in Fig. 3(a), the goal in Coinrun is to control a character to collect golden coins while avoiding both stationary and non-stationary obstacles. We follow Igl et al. (2019) to construct and train our RL agent: the CNN architecture used in IMPALA (Espeholt et al., 2018) is adopted as the policy network, and is trained by the Proximal Policy Optimization (PPO) algorithm (Schulman et al., 2017). Please refer to Igl et al. (2019) for further implementation details. MixStyle is inserted after the 1st and 2nd convolutional sequences. Training data are sampled from 500 levels while test data are drawn from new levels of only the highest difficulty. As domain labels are difficult to define, we use the random shuffle version of MixStyle. Our code is built on top of Igl et al. (2019).4
108
+
109
+ Table 2: Generalization results on the cross-dataset person re-ID task.
110
+
111
+ <table><tr><td rowspan="2">Model</td><td colspan="4">Market1501-→Duke</td><td colspan="4">Duke-→Market1501</td></tr><tr><td>mAP</td><td>R1</td><td>R5</td><td>R10</td><td>mAP</td><td>R1</td><td>R5</td><td>R10</td></tr><tr><td>ResNet-50</td><td>19.3</td><td>35.4</td><td>50.3</td><td>56.4</td><td>20.4</td><td>45.2</td><td>63.6</td><td>70.9</td></tr><tr><td>+ RandomErase</td><td>14.3</td><td>27.8</td><td>42.6</td><td>49.1</td><td>16.1</td><td>38.5</td><td>56.8</td><td>64.5</td></tr><tr><td>+ DropBlock</td><td>18.2</td><td>33.2</td><td>49.1</td><td>56.3</td><td>19.7</td><td>45.3</td><td>62.1</td><td>69.1</td></tr><tr><td>+ MixStyle w/ random shuffle</td><td>23.8</td><td>42.2</td><td>58.8</td><td>64.8</td><td>24.1</td><td>51.5</td><td>69.4</td><td>76.2</td></tr><tr><td>+ MixStyle w/ domain label</td><td>23.4</td><td>43.3</td><td>58.9</td><td>64.7</td><td>24.7</td><td>53.0</td><td>70.9</td><td>77.8</td></tr><tr><td>OSNet</td><td>25.9</td><td>44.7</td><td>59.6</td><td>65.4</td><td>24.0</td><td>52.2</td><td>67.5</td><td>74.7</td></tr><tr><td>+ RandomErase</td><td>20.5</td><td>36.2</td><td>52.3</td><td>59.3</td><td>22.4</td><td>49.1</td><td>66.1</td><td>73.0</td></tr><tr><td>+ DropBlock</td><td>23.1</td><td>41.5</td><td>56.5</td><td>62.5</td><td>21.7</td><td>48.2</td><td>65.4</td><td>71.3</td></tr><tr><td>+ MixStyle w/ random shuffle</td><td>27.2</td><td>48.2</td><td>62.7</td><td>68.4</td><td>27.8</td><td>58.1</td><td>74.0</td><td>81.0</td></tr><tr><td>+ MixStyle w/ domain label</td><td>27.3</td><td>47.5</td><td>62.0</td><td>67.1</td><td>29.0</td><td>58.2</td><td>74.9</td><td>80.9</td></tr></table>
112
+
113
+ ![](images/83f0338beadfd5bc519830499778de6828846e5597dc084ac87299494b1148a1.jpg)
114
+ Figure 3: (a) Coinrun benchmark. (b) Test performance in unseen environments. (c) Difference between training and test performance.
115
+
116
+ Baselines. Following Igl et al. (2019), we train strong baseline models and add MixStyle on top of them to see whether MixStyle can bring further improvements. To this end, we train two baseline models: 1) Baseline, which combines weight decay and data augmentation;5 2) IBAC-SNI (the $\lambda = 0 . 5$ version), the best-performing model in Igl et al. (2019) which is based on selective noise injection.
117
+
118
+ Results. The test performance is shown in Fig. 3(b). Comparing Baseline (blue) with Baseline+MixStyle (orange), we can see that MixStyle brings a significant improvement. Interestingly, the variance is also significantly reduced by using MixStyle, as indicated by the smaller shaded areas (for both orange and red lines). These results strongly demonstrate the effectiveness of MixStyle in enhancing generalization for RL agents. When it comes to the stronger baseline IBAC-SNI (green), MixStyle (red) is able to bring further performance gain, suggesting that MixStyle is complementary to IBAC-SNI. This result also shows the potential of MixStyle as a plug-and-play component to be combined with other advanced RL methods. It is worth noting that Baseline+MixStyle itself is already highly competitive with IBAC-SNI. Fig. 3(c) shows the generalization gap from which it can been seen that the models trained with MixStyle (orange & red) clearly generalize faster and better than those without using MixStyle (blue & green).
119
+
120
+ ![](images/4d2d1d46181970a60036d74149364fc1b7c14abba9cfcdf85a1601e0d521acda.jpg)
121
+ Figure 4: 2-D visualization of flattened feature maps (top) and the corresponding style statistics (bottom). res1-4 denote the four residual blocks in order in a ResNet architecture. We observe that res1 to res3 contain domain-related information while res4 encodes label-related information.
122
+
123
+ Table 3: Ablation study on where to apply MixStyle in the ResNet architecture.
124
+ (a) Category classification on PACS.
125
+
126
+ <table><tr><td>Model</td><td>Accuracy</td></tr><tr><td>ResNet-18</td><td>79.5</td></tr><tr><td>+ MixStyle (res1)</td><td>80.1</td></tr><tr><td>+ MixStyle (res12)</td><td>81.6</td></tr><tr><td>+ MixStyle (res123)</td><td>82.8</td></tr><tr><td>+ MixStyle (res1234)</td><td>75.6</td></tr><tr><td>+ MixStyle (res14)</td><td>76.3</td></tr><tr><td>+ MixStyle (res23)</td><td>81.7</td></tr></table>
127
+
128
+ (b) Cross-dataset person re-ID.
129
+
130
+ <table><tr><td>Model</td><td>mAP</td></tr><tr><td>ResNet-50</td><td>19.3</td></tr><tr><td>+ MixStyle (res1)</td><td>22.6</td></tr><tr><td>+ MixStyle (res12) + MixStyle (res123)</td><td>23.8</td></tr><tr><td>+MixStyle (res1234)</td><td>22.0</td></tr><tr><td>+ MixStyle (res14)</td><td>10.2</td></tr><tr><td>+MixStyle (res23)</td><td>11.1 20.6</td></tr></table>
131
+
132
+ # 3.4 ANALYSIS
133
+
134
+ Where to apply MixStyle? We repeat the experiments on PACS (category classification) and the re-ID datasets (instance retrieval) using the ResNet architecture. Given that a standard ResNet model has four residual blocks denoted by $\mathtt { r e s l - 4 }$ , we train different models with MixStyle applied to different layers. For notation, res1 means MixStyle is applied after the first residual block; res12 means MixStyle is applied after both the first and second residual blocks; and so forth. The results are shown in Table 3. We have the following observations. 1) Applying MixStyle to multiple lowerlevel layers generally achieves a better performance—for instance, res12 is better than res1 on both tasks. 2) Different tasks favor different combinations—res123 achieves the best performance on PACS, while on the re-ID datasets $\mathtt { r e s 1 2 }$ is the best. 3) On both tasks, the performance plunges when applying MixStyle to the last residual block. This makes sense because res4 is the closest to the prediction layer and tends to capture semantic content (i.e. label-sensitive) information rather than style. In particular, res4 is followed by an average-pooling layer, which essentially forwards the mean vector to the prediction layer and thus forces the mean vector to capture label-related information. As a consequence, mixing the statistics at res4 breaks the inherent label space. This is clearer in Fig. 4: the features and style statistics in $\mathtt { r e s l - 3 }$ exhibit clustering patterns based on domains while those in res4 have a high correlation with class labels.
135
+
136
+ ![](images/c7e15cbb6312d6d6e57a51169db1f4a01f9832c478ec13254c9df6c7db06a565.jpg)
137
+ Figure 5: Evaluation on the hyper-parameter $\alpha$ on (a) PACS, (b) person re-ID datasets and (c) Coinrun. In (b), M and D denote Market1501 and Duke respectively.
138
+
139
+ Mixing vs. replacing. Unlike the AdaIN formulation, which completely replaces one style with the other, MixStyle mixes two styles via a convex combination. Table 4 shows that mixing is better than replacing. This is easy to understand: mixing diversifies the styles (imagine an interpolation between two data points).
140
+
141
+ Random vs. fixed shuffle at multiple layers. Applying MixStyle to multiple layers, which has been shown advantageous in Table 3, raises another question of whether to shuffle the mini-batch at different layers or use the same shuffled order for all layers. Table 5 suggests that using random shuffle at different layers gives a better performance, which may be attributed to the increased noise level that gives a better regularization effect.
142
+
143
+ Table 4: Mixing vs. replacing.
144
+
145
+ <table><tr><td></td><td>Accuracy (%)</td></tr><tr><td>Mixing</td><td>82.8±0.4</td></tr><tr><td>Replacing</td><td>82.1±0.5</td></tr></table>
146
+
147
+ Table 5: Random vs. fixed shuffle at multiple layers.
148
+
149
+ <table><tr><td colspan="2">Accuracy (%)</td></tr><tr><td>Random</td><td>82.8±0.4</td></tr><tr><td>Fixed</td><td>82.4±0.5</td></tr></table>
150
+
151
+ Sensitivity of hyper-parameter. Recall that $\alpha$ is used to control the shape of Beta distribution, which has a direct effect on how the convex weights $\lambda$ are sampled. The smaller $\alpha$ is, the more likely the value in $\lambda$ is close to the extreme value of 0 or 1. In other words, a smaller $\alpha$ favors the style statistics in Eqs. (5) & (6) to be dominated by one side. We first evaluate $\alpha$ on PACS. Fig. 5(a) shows that with $\alpha$ increasing from 0.1 to 0.4, the accuracy slides from $8 2 . 8 \%$ to $8 1 . 7 \%$ . However, further increasing $\alpha$ does not impact on the accuracy. Therefore, the results suggest that the performance is not too sensitive to $\alpha$ ; and selecting $\alpha$ from $\lbrace 0 . 1 , 0 . 2 , 0 . 3 \rbrace$ seems to be a good starting point. We further experiment with $\alpha \in \{ 0 . 1 , 0 . 2 , 0 . 3 \}$ on the re-ID datasets and the Coinrun benchmark. Figs. 5(b) & (c) show that in general the variance for the results of different values is small. Therefore, we suggest practitioners to choose $\alpha$ from $\lbrace 0 . 1 , 0 . 2 , 0 . 3 \rbrace$ , with $\alpha = 0 . 1$ being a good default setting.
152
+
153
+ For more analyses and discussions, please see Appendix A.2.
154
+
155
+ # 4 RELATED WORK
156
+
157
+ Domain generalization, or DG, studies out-of-distribution (OOD) generalization given only source data typically composed of multiple related but distinct domains. We refer readers to Zhou et al. (2021) for a comprehensive survey in this topic. Many DG methods are based on the idea of aligning features between different sources, with a hope that the model can be invariant to domain shift given unseen data. For instance, Li et al. (2018b) achieved distribution alignment in the hidden representation of an autoencoder using maximum mean discrepancy; Li et al. (2018c) resorted to adversarial learning with auxiliary domain classifiers to learn features that are domain-agnostic. Some works explored domain-specific parameterization, such as domain-specific weight matrices (Li et al., 2017) and domain-specific BN (Seo et al., 2020). Recently, meta-learning has drawn increasing attention from the DG community (Li et al., 2018a; Balaji et al., 2018; Dou et al., 2019). The main idea is to expose a model to domain shift during training by using pseudo-train and pseudo-test domains, both drawn from source domains. Data augmentation has also been investigated for learning domain-invariant models. Shankar et al. (2018) introduced a cross-gradient training method (CrossGrad) where source data are augmented by adversarial gradients obtained from a domain classifier.
158
+
159
+ Gong et al. (2019) proposed DLOW (for the DA problem), which models intermediate domains between source and target via a domainness factor and learns an image translation model to generate intermediate-domain images. Very recently, Zhou et al. (2020a) introduced L2A-OT to learn a neural network to map source data to pseudo-novel domains by maximizing an optimal transport-based distance measure. Our MixStyle is related to DLOW and L2A-OT in its efforts to synthesizing novel domains. However, MixStyle differs in the fact that it is done implicitly with a much simpler formulation leveraging the feature-level style statistics and only few lines of extra code on top of a standard supervised classifier while being more effective. Essentially, MixStyle can be seen as feature-level augmentation, which is clearly different from the image-level augmentation-based DLOW and L2A-OT.
160
+
161
+ Generalization in deep RL has been a challenging problem where RL agents often overfit training environments, and as a result, perform poorly in unseen environments with different visual patterns or levels (Zhang et al., 2018a). A natural way to improve generalization, which has been shown effective in (Cobbe et al., 2019; Farebrother et al., 2018), is to use regularization, e.g., weight decay. However, Igl et al. (2019) suggested that stochastic regularization methods like dropout and batch normalization (which uses estimated population statistics) have adverse effect as the training data in RL are essentially model-dependent. As such, they proposed selective noise injection (SNI), which basically combines a stochastic regularization technique with its deterministic counterpart. They further integrated SNI with information bottleneck actor critic (IBAC-SNI) to reduce the variance in gradients. Curriculum learning has been investigated in (Justesen et al., 2018) where the level of training episodes progresses from easy to difficult over the course of training. Gamrian & Goldberg (2019) leveraged the advances in GAN-based image-to-image translation (Liu et al., 2017) to map target data to the source domain which the agent was trained on. Tobin et al. (2017) introduced domain randomization, which diversifies training data by rendering images with different visual effects via a programmable simulator. With a similar goal of data augmentation, Lee et al. (2020) pre-processed input images with a randomly initialized network. Very recent studies (Laskin et al., 2020; Kostrikov et al., 2020) have shown that it is useful to combine a diverse set of label-preserving transformations, such as rotation, shifting and Cutout. Different from the aforementioned methods, our MixStyle works at the feature level and is orthogonal to most existing methods. For instance, we have shown in Sec. 3.3 that MixStyle significantly improves upon IBAC-SNI.
162
+
163
+ # 5 CONCLUSION
164
+
165
+ We presented a simple yet effective domain generalization method, termed MixStyle. MixStyle mixes the feature statistics of two instances to synthesize novel domains, which is inspired by the observation in style transfer work that the feature statistics encode style/domain-related information. Extensive experiments covering a wide range of tasks were conducted to demonstrate that MixStyle yields new state-of-the-art on three different tasks.
166
+
167
+ # ACKNOWLEDGMENTS
168
+
169
+ This work was supported in part by the Shanghai Committee of Science and Technology, China (Grant No. 20DZ1100800), in part by the National Natural Science Foundation of China under Grant (61876176, U1713208), the National Key Research and Development Program of China (No. 2020YFC2004800), and in part by the Guangzhou Research Program (201803010066).
170
+
171
+ # REFERENCES
172
+
173
+ Yogesh Balaji, Swami Sankaranarayanan, and Rama Chellappa. Metareg: Towards domain generalization using meta-regularization. In NeurIPS, 2018.
174
+
175
+ Gilles Blanchard, Gyemin Lee, and Clayton Scott. Generalizing from several related classification tasks to a new unlabeled sample. In NeurIPS, 2011.
176
+
177
+ Fabio M. Carlucci, Antonio D’Innocente, Silvia Bucci, Barbara Caputo, and Tatiana Tommasi. Domain generalization by solving jigsaw puzzles. In CVPR, 2019.
178
+
179
+ Karl Cobbe, Oleg Klimov, Chris Hesse, Taehoon Kim, and John Schulman. Quantifying generalization in reinforcement learning. In ICML, 2019.
180
+
181
+ Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017.
182
+
183
+ Qi Dou, Daniel C Castro, Konstantinos Kamnitsas, and Ben Glocker. Domain generalization via model-agnostic learning of semantic features. In NeurIPS, 2019.
184
+
185
+ Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudlur. A learned representation for artistic style. In ICLR, 2017.
186
+
187
+ Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymir Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In ICML, 2018.
188
+
189
+ Jesse Farebrother, Marlos C Machado, and Michael Bowling. Generalization and regularization in dqn. arXiv preprint arXiv:1810.00123, 2018.
190
+
191
+ Shani Gamrian and Yoav Goldberg. Transfer learning for related reinforcement learning tasks via image-to-image translation. In ICML, 2019.
192
+
193
+ Yaroslav Ganin and Victor S. Lempitsky. Unsupervised domain adaptation by backpropagation. In ICML, 2015.
194
+
195
+ Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In NeurIPS, 2018.
196
+
197
+ Rui Gong, Wen Li, Yuhua Chen, and Luc Van Gool. Dlow: Domain flow for adaptation and generalization. In CVPR, 2019.
198
+
199
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
200
+
201
+ Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2019.
202
+
203
+ Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017.
204
+
205
+ Maximilian Igl, Kamil Ciosek, Yingzhen Li, Sebastian Tschiatschek, Cheng Zhang, Sam Devlin, and Katja Hofmann. Generalization in reinforcement learning with selective noise injection and information bottleneck. In NeurIPS, 2019.
206
+
207
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
208
+
209
+ Niels Justesen, Ruben Rodriguez Torrado, Philip Bontrager, Ahmed Khalifa, Julian Togelius, and Sebastian Risi. Illuminating generalization in deep reinforcement learning through procedural level generation. arXiv preprint arXiv:1806.10729, 2018.
210
+
211
+ Ilya Kostrikov, Denis Yarats, and Rob Fergus. Image augmentation is all you need: Regularizing deep reinforcement learning from pixels. arXiv preprint arXiv:2004.13649, 2020.
212
+
213
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, 2012.
214
+
215
+ Michael Laskin, Kimin Lee, Adam Stooke, Lerrel Pinto, Pieter Abbeel, and Aravind Srinivas. Reinforcement learning with augmented data. arXiv preprint arXiv:2004.14990, 2020.
216
+
217
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. In IEEE, 1998.
218
+
219
+ Kimin Lee, Kibok Lee, Jinwoo Shin, and Honglak Lee. Network randomization: A simple technique for generalization in deep reinforcement learning. In ICLR, 2020.
220
+
221
+ Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Deeper, broader and artier domain generalization. In ICCV, 2017.
222
+
223
+ Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Learning to generalize: Metalearning for domain generalization. In AAAI, 2018a.
224
+
225
+ Da Li, Jianshu Zhang, Yongxin Yang, Cong Liu, Yi-Zhe Song, and Timothy M Hospedales. Episodic training for domain generalization. In ICCV, 2019.
226
+
227
+ Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C. Kot. Domain generalization with adversarial feature learning. In CVPR, 2018b.
228
+
229
+ Ya Li, Xinmei Tiana, Mingming Gong, Yajing Liu, Tongliang Liu, Kun Zhang, and Dacheng Tao. Deep domain generalization via conditional invariant adversarial networks. In ECCV, 2018c.
230
+
231
+ Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In NeurIPS, 2017.
232
+
233
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. JMLR, 2008.
234
+
235
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.
236
+
237
+ Saeid Motiian, Marco Piccirilli, Donald A. Adjeroh, and Gianfranco Doretto. Unified deep supervised domain adaptation and generalization. In ICCV, 2017.
238
+
239
+ Krikamol Muandet, David Balduzzi, and Bernhard Scholkopf. Domain generalization via invariant feature representation. In ICML, 2013.
240
+
241
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NeurIPS-W, 2011.
242
+
243
+ Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In ICML, 2019.
244
+
245
+ Ergys Ristani, Francesco Solera, Roger Zou, Rita Cucchiara, and Carlo Tomasi. Performance measures and a data set for multi-target, multi-camera tracking. In ECCV, 2016.
246
+
247
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
248
+
249
+ Seonguk Seo, Yumin Suh, Dongwan Kim, Jongwoo Han, and Bohyung Han. Learning to optimize domain specific normalization for domain generalization. In ECCV, 2020.
250
+
251
+ Shiv Shankar, Vihari Piratla, Soumen Chakrabarti, Siddhartha Chaudhuri, Preethi Jyothi, and Sunita Sarawagi. Generalizing across domains via cross-gradient training. In ICLR, 2018.
252
+
253
+ Kihyuk Sohn, David Berthelot, Chun-Liang Li, Zizhao Zhang, Nicholas Carlini, Ekin D Cubuk, Alex Kurakin, Han Zhang, and Colin Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence. In NeurIPS, 2020.
254
+
255
+ Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. JMLR, 2014.
256
+
257
+ Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In IROS, 2017.
258
+
259
+ Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv:1607.08022, 2016.
260
+
261
+ Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In CVPR, 2017.
262
+
263
+ Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In ICML, 2019.
264
+
265
+ Keyulu Xu, Mozhi Zhang, Jingling Li, Simon Shaolei Du, Ken-Ichi Kawarabayashi, and Stefanie Jegelka. How neural networks extrapolate: From feedforward to graph neural networks. In ICLR, 2021.
266
+ Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, 2019.
267
+ Chiyuan Zhang, Oriol Vinyals, Remi Munos, and Samy Bengio. A study on overfitting in deep reinforcement learning. arXiv preprint arXiv:1804.06893, 2018a.
268
+ Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR, 2018b.
269
+ Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015.
270
+ Zhedong Zheng, Liang Zheng, and Yi Yang. Unlabeled samples generated by gan improve the person re-identification baseline in vitro. In ICCV, 2017.
271
+ Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In AAAI, 2020.
272
+ Kaiyang Zhou and Tao Xiang. Torchreid: A library for deep learning person re-identification in pytorch. arXiv preprint arXiv:1910.10093, 2019.
273
+ Kaiyang Zhou, Yongxin Yang, Andrea Cavallaro, and Tao Xiang. Omni-scale feature learning for person re-identification. In ICCV, 2019.
274
+ Kaiyang Zhou, Yongxin Yang, Timothy Hospedales, and Tao Xiang. Learning to generate novel domains for domain generalization. In ECCV, 2020a.
275
+ Kaiyang Zhou, Yongxin Yang, Timothy M Hospedales, and Tao Xiang. Deep domain-adversarial image generation for domain generalisation. In AAAI, 2020b.
276
+ Kaiyang Zhou, Yongxin Yang, Yu Qiao, and Tao Xiang. Domain adaptive ensemble learning. arXiv preprint arXiv:2003.07325, 2020c.
277
+ Kaiyang Zhou, Ziwei Liu, Yu Qiao, Tao Xiang, and Chen Change Loy. Domain generalization: A survey. arXiv preprint arXiv:2103.02503, 2021.
278
+
279
+ # A APPENDIX
280
+
281
+ # A.1 PSEUDO-CODE OF MIXSTYLE
282
+
283
+ Algorithm 1 provides a PyTorch-like pseudo-code.
284
+
285
+ # Algorithm 1 PyTorch-like pseudo-code for MixStyle.
286
+
287
+ # x: input features of shape (B, C, H, W)
288
+ # p: probabillity to apply MixStyle (default: 0.5)
289
+ # alpha: hyper-parameter for the Beta distribution (default: 0.1)
290
+ # eps: a small value added before square root for numerical stability (default: 1e-6)
291
+
292
+ if not in training mode: return x
293
+
294
+ if random probability $>$ p: return x
295
+
296
+ $\mathrm { ~ \textit ~ { ~ B ~ } ~ } = \mathrm { ~ \textit ~ { ~ x ~ } ~ }$ .size(0) # batch size
297
+
298
+ mu $= \times$ .mean(dim=[2, 3], keepdim $\cdot ^ { = }$ True) # compute instance mean var $=$ x.var(dim=[2, 3], keepdim $\cdot ^ { = }$ True) # compute instance variance sig $=$ (var $^ +$ eps).sqrt() # compute instance standard deviation mu, sig $\qquad = \quad \mathtt { m u }$ .detach(), sig.detach() # block gradients x_normed $=$ (x - mu) / sig # normalize input
299
+
300
+ lmda $=$ Beta(alpha, alpha).sample((B, 1, 1, 1)) # sample instance-wise convex weights
301
+
302
+ if domain label is given: # in this case, input $\begin{array} { r } { \mathrm { ~ ~ \underline { ~ } { ~ \sf ~ } { ~ \sf ~ } { ~ \sf ~ } { ~ \sf ~ } = ~ \mathrm { ~ ~ \tau ~ } [ \times \hat { \mathrm { ~ ~ \underline { ~ } { ~ \bf ~ } { ~ \underline { ~ } { ~ \bf ~ } { ~ \tau ~ } ~ } } } } } \end{array}$ x perm $=$ torch.arange(B-1, -1, -1) # inverse index perm_j, perm_i $=$ perm.chunk(2) # separate indices perm_j $=$ perm_j[torch.randperm(B // 2)] # shuffling perm_i $=$ perm_i[torch.randperm(B // 2)] # shuffling perm $=$ torch.cat([perm_j, perm_i], 0) # concatenation
303
+ else: perm $=$ torch.randperm(B) # generate shuffling indices
304
+
305
+ mu2, sig2 $=$ mu[perm], sig[perm] # shuffling mu_mix $=$ mu $\star$ lmda $^ +$ mu2 $\star$ (1 - lmda) # generate mixed mean sig_mix $=$ sig $\star$ lmda $^ +$ sig2 $\star$ (1 - lmda) # generate mixed standard deviation return x_normed $\star$ sig_mix $^ +$ mu_mix # denormalize input using the mixed statistics
306
+
307
+ Table 7: Test results on the source domains on PACS. A: Art. C: Cartoon. P: Photo. S: Sketch.
308
+
309
+ <table><tr><td>Method</td><td>C,P,S</td><td>A,P,S</td><td>A,C,S</td><td>A,C,P</td><td>Avg</td></tr><tr><td>Vanilla</td><td>99.49±0.03</td><td>99.47±0.04</td><td>99.38±0.02</td><td>99.65±0.03</td><td>99.50</td></tr><tr><td>MixStyle</td><td>99.55±0.02</td><td>99.54±0.01</td><td>99.47±0.03</td><td>99.68±0.03</td><td>99.56</td></tr></table>
310
+
311
+ Table 8: Leave-one-domain-out generalization results on Digits-DG.
312
+
313
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>MNIST MNIST-M SVHN SYN</td><td rowspan=1 colspan=1>Avg</td></tr><tr><td rowspan=1 colspan=1>JiGen</td><td rowspan=1 colspan=1>96.5 61.4 63.7 74.0</td><td rowspan=1 colspan=1>73.9</td></tr><tr><td rowspan=1 colspan=1>CCSA</td><td rowspan=1 colspan=1>95.2 58.2 65.5 79.1</td><td rowspan=1 colspan=1>74.5</td></tr><tr><td rowspan=3 colspan=1>MMD-AAECrossGradL2A-OT</td><td rowspan=1 colspan=1>96.5 58.4 65.0 78.4</td><td rowspan=3 colspan=1>74.675.878.1</td></tr><tr><td rowspan=1 colspan=1>96.7 61.1 65.3 80.2</td></tr><tr><td rowspan=1 colspan=1>96.7 63.9 68.6 83.2</td></tr><tr><td rowspan=8 colspan=1>CNN+ Mixup w/o label interpolation+ Manifold Mixup+ CutMix+ Mixup+ Cutout+ DropBlock+ MixStyle (ours)</td><td rowspan=1 colspan=1>95.8±0.3 58.8±0.5 61.7±0.5 78.6±0.6</td><td rowspan=1 colspan=1>73.7</td></tr><tr><td rowspan=1 colspan=1>93.7±0.6 55.2±1.0 61.6±0.9 74.4±0.8</td><td rowspan=3 colspan=1>71.271.771.8</td></tr><tr><td rowspan=1 colspan=1>92.7±0.4 53.1±0.8 64.4±0.2 76.8±0.5</td></tr><tr><td rowspan=1 colspan=1>94.9±0.2 50.1±0.5 64.1±0.9 78.1±0.7</td></tr><tr><td rowspan=1 colspan=1>94.2±0.5 56.5±0.8 63.3±0.7 76.7±0.6</td><td rowspan=4 colspan=1>72.774.175.376.5</td></tr><tr><td rowspan=1 colspan=1>95.8±0.4 58.4±0.6 61.9±0.9 80.6±0.5</td></tr><tr><td rowspan=1 colspan=1>96.2±0.1 60.5±0.6 64.1±0.8 80.2±0.6</td></tr><tr><td rowspan=1 colspan=1>96.5±0.3 63.5±0.8 64.7±0.7 81.2±0.8</td></tr></table>
314
+
315
+ # A.2 FURTHER ANALYSIS
316
+
317
+ # MixStyle between same-domain instances.
318
+
319
+ We are interested in knowing if mixing styles between same-domain instances helps performance. To this end, we sample each mini-batch from a single domain during training when using MixStyle. The results are shown in Table 6 where we observe that mixing styles between same-domain instances is about $1 \%$ better than the baseline model. This suggests that instancespecific style exists. Nonetheless, the performance is clearly worse than mixing styles between instances of different domains.
320
+
321
+ Table 6: Investigation on the effect of mixing styles between same-domain instances.
322
+
323
+ <table><tr><td>Accuracy (%)</td></tr><tr><td>ResNet18 79.5</td></tr><tr><td>+MixStyle w/ same-domain 80.4</td></tr><tr><td>+MixStyle w/random shuffle 82.8</td></tr><tr><td>+MixStyle w/ domain label 83.7</td></tr></table>
324
+
325
+ Performance on source domains. To prove that MixStyle does not sacrifice the performance on seen domains in exchange for gains on unseen domains, we report the test accuracy on the held-out validation set of the source domains on PACS in Table 7.
326
+
327
+ Results on Digits-DG and Office-Home. In addition to the experiments on PACS (in Sec. 3.1), we further evaluate MixStyle’s effectiveness on two DG datasets, namely Digits-DG (Zhou et al., 2020a) and Office-Home (Venkateswara et al., 2017). Digits-DG contains four digit datasets (domains) including MNIST (LeCun et al., 1998), MNIST-M (Ganin & Lempitsky, 2015), SVHN (Netzer et al., 2011) and SYN (Ganin & Lempitsky, 2015). Images from different digit datasets differ drastically in font style, stroke color and background. Office-Home is composed of four domains (Artistic, Clipart, Product and Real World) with around 15,500 images of 65 classes for home and office object recognition. The results are shown in Tables 8 and 9 where no domain labels are used in MixStyle. Similar to the results on PACS, here we observe that MixStyle also brings clear improvements to the baseline CNN model and outperforms all general-purpose regularization methods on both Digits-DG and Office-Home. Compared with more sophisticated DG methods like L2A-OT, MixStyle’s performance is comparable, despite being much simpler to train and consuming much less computing resources.
328
+
329
+ Table 9: Leave-one-domain-out generalization results on Office-Home.
330
+
331
+ <table><tr><td>Method</td><td>Artistic</td><td>Clipart</td><td>Product</td><td>Real World</td><td>Avg</td></tr><tr><td>JiGen CCSA</td><td>53.0</td><td>47.5</td><td>71.5</td><td>72.8</td><td>61.2</td></tr><tr><td>MMD-AAE</td><td>59.9 56.5</td><td>49.9 47.3</td><td>74.1 72.1</td><td>75.7 74.8</td><td>64.9 62.7</td></tr><tr><td>CrossGrad</td><td></td><td></td><td></td><td>75.8</td><td>64.4</td></tr><tr><td>L2A-OT</td><td>58.4</td><td>49.4</td><td>73.9</td><td></td><td></td></tr><tr><td>ResNet18</td><td>60.6 58.9±0.3</td><td>50.1 49.4±0.1</td><td>74.8 74.3±0.1</td><td>77.0 76.2±0.2</td><td>65.6 64.7</td></tr><tr><td>+ Manifold Mixup</td><td>56.2±0.4</td><td>46.3±0.3</td><td>73.6±0.1</td><td>75.2±0.2</td><td>62.8</td></tr><tr><td>+ Mixup w/o label interpolation + Cutout</td><td>57.0±0.2 57.8±0.2</td><td>48.7±0.2</td><td>71.4±0.6</td><td>74.5±0.4</td><td>62.9</td></tr><tr><td></td><td></td><td>48.1±0.3</td><td>73.9±0.2</td><td>75.8±0.3</td><td>63.9</td></tr><tr><td>+ CutMix</td><td>57.9±0.1</td><td>48.3±0.3</td><td>74.5±0.1</td><td>75.6±0.4</td><td>64.1</td></tr><tr><td>+ DropBlock</td><td>58.0±0.1</td><td>48.1±0.1</td><td>74.3±0.3</td><td>75.9±0.4</td><td>64.1</td></tr><tr><td>+ Mixup + MixStyle (ours)</td><td>58.2±0.1 58.7±0.3</td><td>49.3±0.2 53.4±0.2</td><td>74.7±0.1 74.2±0.1</td><td>76.1±0.1 75.9±0.1</td><td>64.6 65.5</td></tr></table>
parse/train/6xHJ37MVxxp/6xHJ37MVxxp_content_list.json ADDED
@@ -0,0 +1,1667 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DOMAIN GENERALIZATION WITH MIXSTYLE",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 717,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Kaiyang Zhou1, Yongxin Yang1, Yu Qiao2, Tao Xiang1 ",
17
+ "bbox": [
18
+ 184,
19
+ 143,
20
+ 560,
21
+ 160
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1University of Surrey, UK \n2Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences, Shenzhen, China \nk.zhou.vision@gmail.com \n{yongxin.yang, t.xiang}@surrey.ac.uk \nyu.qiao@siat.ac.cn ",
28
+ "bbox": [
29
+ 184,
30
+ 161,
31
+ 812,
32
+ 229
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 267,
43
+ 544,
44
+ 282
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Though convolutional neural networks (CNNs) have demonstrated remarkable ability in learning discriminative features, they often generalize poorly to unseen domains. Domain generalization aims to address this problem by learning from a set of source domains a model that is generalizable to any unseen domain. In this paper, a novel approach is proposed based on probabilistically mixing instancelevel feature statistics of training samples across source domains. Our method, termed MixStyle, is motivated by the observation that visual domain is closely related to image style (e.g., photo vs. sketch images). Such style information is captured by the bottom layers of a CNN where our proposed style-mixing takes place. Mixing styles of training instances results in novel domains being synthesized implicitly, which increase the domain diversity of the source domains, and hence the generalizability of the trained model. MixStyle fits into mini-batch training perfectly and is extremely easy to implement. The effectiveness of MixStyle is demonstrated on a wide range of tasks including category classification, instance retrieval and reinforcement learning. ",
51
+ "bbox": [
52
+ 233,
53
+ 297,
54
+ 764,
55
+ 506
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 531,
66
+ 336,
67
+ 546
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Key to automated understanding of digital images is to compute a compact and informative feature representation. Deep convolutional neural networks (CNNs) have demonstrated remarkable ability in representation learning, proven to be effective in many visual recognition tasks, such as classifying photo images into 1,000 categories from ImageNet (Krizhevsky et al., 2012) and playing Atari games with reinforcement learning (Mnih et al., 2013). However, it has long been discovered that the success of CNNs heavily relies on the i.i.d. assumption, i.e. training and test data should be drawn from the same distribution; when such an assumption is violated even just slightly, as in most realworld application scenarios, severe performance degradation is expected (Hendrycks & Dietterich, 2019; Recht et al., 2019). ",
74
+ "bbox": [
75
+ 174,
76
+ 563,
77
+ 825,
78
+ 686
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Domain generalization (DG) aims to address such a problem (Zhou et al., 2021; Blanchard et al., 2011; Muandet et al., 2013; Li et al., 2018a; Zhou et al., 2020b; Balaji et al., 2018; Dou et al., 2019; Carlucci et al., 2019). In particular, assuming that multiple source domains containing the same visual classes are available for model training, the goal of DG is to learn models that are robust against data distribution changes across domains, known as domain shift, so that the trained model can generalize well to any unseen domains. Compared to the closely related and more widely studied domain adaptation (DA) problem, DG is much harder in that no target domain data is available for the model to analyze the distribution shift in order to overcome the negative effects. Instead, a DG model must rely on the source domains and focus on learning domain-invariant feature representation in the hope that it would remain discriminative given target domain data. ",
85
+ "bbox": [
86
+ 174,
87
+ 694,
88
+ 825,
89
+ 833
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "A straightforward solution to DG is to expose a model with a large variety of source domains. Specifically, the task of learning domain-invariant and thus generalizable feature representation becomes easier when data from more diverse source domains are available for the model. This would reduce the burden on designing special models or learning algorithms for DG. Indeed, model training with large-scale data of diverse domains is behind the success of existing commercial face recognition or vision-based autonomous driving systems. A recent work by $\\mathrm { X u }$ et al. (2021) also emphasizes the importance of diverse training distributions for out-of-distribution generalization. However, collecting data of a large variety of domains is often costly or even impossible. It thus cannot be a general solution to DG. ",
96
+ "bbox": [
97
+ 174,
98
+ 840,
99
+ 823,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/f1cd7469df889b614caa015810343d6c004d2bbf757f1fbaacd0388b9ffe208e.jpg",
107
+ "image_caption": [
108
+ "Figure 1: 2-D t-SNE (Maaten & Hinton, 2008) visualization of the style statistics (concatenation of mean and standard deviation) computed from the first residual block’s feature maps of a ResNet-18 (He et al., 2016) trained on four distinct domains (Li et al., 2017). It is clear that different domains are well separated. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 240,
113
+ 99,
114
+ 758,
115
+ 290
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 176,
124
+ 390,
125
+ 821,
126
+ 431
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this paper, a novel approach is proposed based on probabilistically mixing instance-level feature statistics of training samples across source domains. Our model, termed MixStyle, is motivated by the observation that visual domain is closely related to image style. An example is shown in Fig. 1: the four images from four different domains depict the same semantic concept, i.e. dog, but with distinctive styles (e.g., characteristics in color and texture). When these images are fed into a deep CNN, which maps the raw pixel values into category labels, such style information is removed at the output. However, recent style transfer studies (Huang & Belongie, 2017; Dumoulin et al., 2017) suggest that such style information is preserved at the bottom layers of the CNN through the instance-level feature statistics, as shown clearly in Fig. 4. Importantly, since replacing such statistics would lead to replaced style while preserving the semantic content of the image, it is reasonable to assume that mixing styles from images of different domains would result in images of (mixed) new styles. That is, more diverse domains/styles can be made available for training a more domain-generalizable model. ",
133
+ "bbox": [
134
+ 173,
135
+ 439,
136
+ 825,
137
+ 618
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Concretely, our MixStyle randomly selects two instances of different domains and adopts a probabilistic convex combination between instance-level feature statistics of bottom CNN layers. In contrast to style transfer work (Huang & Belongie, 2017; Dumoulin et al., 2017), no explicit image synthesis is necessary meaning much simpler model design. Moreover, MixStyle perfectly fits into modern mini-batch training. Overall, it is very easy to implement with only few lines of code. To evaluate the effectiveness as well as the general applicability of MixStyle, we conduct extensive experiments on a wide spectrum of datasets covering category classification (Sec. 3.1), instance retrieval (Sec. 3.2), and reinforcement learning (Sec. 3.3). The results demonstrate that MixStyle can significantly improve CNNs’ cross-domain generalization performance.1 ",
144
+ "bbox": [
145
+ 174,
146
+ 626,
147
+ 825,
148
+ 751
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 METHODOLOGY ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 775,
159
+ 339,
160
+ 791
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "2.1 BACKGROUND ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 176,
170
+ 809,
171
+ 315,
172
+ 824
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "Normalizing feature tensors with instance-specific mean and standard deviation has been found effective for removing image style in style transfer models (Ulyanov et al., 2016; Huang & Belongie, 2017; Dumoulin et al., 2017). Such an operation is widely known as instance normalization (IN, Ulyanov et al. (2016)). Let $\\boldsymbol { x } ^ { \\prime } \\in \\mathbb { R } ^ { B \\times C \\times \\dot { H } \\times W }$ be a batch of tensors, with $B , C , H$ and $W$ denoting the dimension of batch, channel, height and width, respectively, IN is formulated as ",
179
+ "bbox": [
180
+ 174,
181
+ 837,
182
+ 823,
183
+ 892
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "",
190
+ "bbox": [
191
+ 169,
192
+ 103,
193
+ 782,
194
+ 118
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "equation",
200
+ "img_path": "images/1bcca277c97bac87df3b5ecefb248adf385fad37c24b49b8108b0b8f4ebd2944.jpg",
201
+ "text": "$$\n\\mathrm { I N } ( x ) = \\gamma \\frac { x - \\mu ( x ) } { \\sigma ( x ) } + \\beta ,\n$$",
202
+ "text_format": "latex",
203
+ "bbox": [
204
+ 413,
205
+ 121,
206
+ 586,
207
+ 155
208
+ ],
209
+ "page_idx": 2
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "where $\\gamma , \\beta \\in \\mathbb { R } ^ { C }$ are learnable affine transformation parameters, and $\\mu ( \\boldsymbol { x } ) , \\sigma ( \\boldsymbol { x } ) \\in \\mathbb { R } ^ { B \\times C }$ are mean and standard deviation computed across the spatial dimension within each channel of each instance (tensor), i.e. ",
214
+ "bbox": [
215
+ 174,
216
+ 159,
217
+ 825,
218
+ 200
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "equation",
224
+ "img_path": "images/fb99b3cee5284125fb7c56d3850f8a40e8f4faade0a3f52d6d8fd4515140a5b9.jpg",
225
+ "text": "$$\n\\mu ( x ) _ { b , c } = \\frac { 1 } { H W } \\sum _ { h = 1 } ^ { H } \\sum _ { w = 1 } ^ { W } x _ { b , c , h , w } ,\n$$",
226
+ "text_format": "latex",
227
+ "bbox": [
228
+ 385,
229
+ 198,
230
+ 611,
231
+ 242
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "and ",
238
+ "bbox": [
239
+ 173,
240
+ 242,
241
+ 200,
242
+ 257
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "equation",
248
+ "img_path": "images/6a50bbe7d108fe07827ea98df07a10608e7e794826c7fb9b310dbc970c77a01f.jpg",
249
+ "text": "$$\n\\sigma ( x ) _ { b , c } = \\sqrt { \\frac { 1 } { H W } \\sum _ { h = 1 } ^ { H } \\sum _ { w = 1 } ^ { W } ( x _ { b , c , h , w } - \\mu ( x ) _ { b , c } ) ^ { 2 } } .\n$$",
250
+ "text_format": "latex",
251
+ "bbox": [
252
+ 334,
253
+ 251,
254
+ 663,
255
+ 303
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "Huang & Belongie (2017) introduced adaptive instance normalization (AdaIN), which simply replaces the scale and shift parameters in Eq. (1) with the feature statistics of style input $y$ to achieve arbitrary style transfer: ",
262
+ "bbox": [
263
+ 173,
264
+ 309,
265
+ 825,
266
+ 351
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "equation",
272
+ "img_path": "images/3c63f5f72c8d9ea81fce1ab32d869a82feeb503f7c48024c0506a4fc0b6157da.jpg",
273
+ "text": "$$\n\\mathrm { A d a I N } ( x ) = \\sigma ( y ) \\frac { x - \\mu ( x ) } { \\sigma ( x ) } + \\mu ( y ) .\n$$",
274
+ "text_format": "latex",
275
+ "bbox": [
276
+ 375,
277
+ 348,
278
+ 624,
279
+ 383
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "2.2 MIXSTYLE",
286
+ "text_level": 1,
287
+ "bbox": [
288
+ 174,
289
+ 397,
290
+ 294,
291
+ 411
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Our method, MixStyle, draws inspiration from AdaIN. However, rather than attaching a decoder for image generation, MixStyle is designed for the purpose of regularizing CNN training by perturbing the style information of source domain training instances. It can be implemented as a plug-andplay module inserted between CNN layers of, e.g., a supervised CNN classifier, without the need to explicitly generate an image of new style. ",
298
+ "bbox": [
299
+ 173,
300
+ 422,
301
+ 825,
302
+ 493
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "More specifically, MixStyle mixes the feature statistics of two instances with a random convex weight to simulate new styles. In terms of implementation, MixStyle can be easily integrated into mini-batch training. Given an input batch $x$ , MixStyle first generates a reference batch $\\tilde { x }$ from $x$ . When domain labels are given, $x$ is sampled from two different domains $i$ and $j$ , e.g., $\\bar { \\boldsymbol { x } } = [ x ^ { i } , x ^ { j } ]$ $\\bar { x ^ { i } }$ and $x ^ { j }$ have the same batch size). Then, $\\tilde { x }$ is obtained by swapping the position of $x ^ { i }$ and $x ^ { j }$ , followed by a shuffling operation along the batch dimension applied to each batch, i.e. $\\mathbf { \\widetilde { \\boldsymbol { x } } } = [ \\mathrm { S h u f f e } ( \\boldsymbol { x } ^ { j } ) , \\mathrm { S h u f f e } ( \\boldsymbol { x } ^ { i } ) ]$ . See Fig. 2(a) for an illustration. In cases where domain labels are unknown, $x$ is randomly sampled from the training data, and $\\tilde { x }$ is simply obtained by $\\tilde { x } = \\mathrm { S h u f f e } ( x )$ (see Fig. 2(b)). Fig. 4 shows that sub-domains exist within each domain, so even if two instances of the same domain are sampled, new domain could be synthesized. After shuffling, MixStyle computes the mixed feature statistics by ",
309
+ "bbox": [
310
+ 174,
311
+ 500,
312
+ 581,
313
+ 736
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "image",
319
+ "img_path": "images/328a14b30cdf68b6ebf3e522fa5e10ef00672d004ed56b5521dcee7294f42db8.jpg",
320
+ "image_caption": [
321
+ "Figure 2: A graphical illustration of how a reference batch is generated. Domain label is denoted by color. "
322
+ ],
323
+ "image_footnote": [],
324
+ "bbox": [
325
+ 599,
326
+ 505,
327
+ 810,
328
+ 643
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "equation",
334
+ "img_path": "images/dda5b24328e69e61232fce56170c65ac8f6d17d9ab0153ffcddaf7931cf59390.jpg",
335
+ "text": "$$\n\\begin{array} { r } { \\gamma _ { m i x } = \\lambda \\sigma ( x ) + ( 1 - \\lambda ) \\sigma ( \\tilde { x } ) , } \\\\ { \\beta _ { m i x } = \\lambda \\mu ( x ) + ( 1 - \\lambda ) \\mu ( \\tilde { x } ) , } \\end{array}\n$$",
336
+ "text_format": "latex",
337
+ "bbox": [
338
+ 393,
339
+ 738,
340
+ 602,
341
+ 777
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "where $\\lambda \\in \\mathbb { R } ^ { B }$ are instance-wise weights sampled from the Beta distribution, $\\lambda \\sim B e t a ( \\alpha , \\alpha )$ with $\\alpha \\in ( 0 , \\infty )$ being a hyper-parameter. Unless specified otherwise, we set $\\alpha$ to 0.1 throughout this paper. Finally, the mixed feature statistics are applied to the style-normalized $x$ , ",
348
+ "bbox": [
349
+ 176,
350
+ 779,
351
+ 823,
352
+ 821
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/c55e6d61c724a64df57068c18b04d585859171236745e7c0ae6fceb70291e356.jpg",
359
+ "text": "$$\n{ \\mathrm { M i x S t y l e } } ( x ) = \\gamma _ { m i x } { \\frac { x - \\mu ( x ) } { \\sigma ( x ) } } + \\beta _ { m i x } .\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 366,
363
+ 824,
364
+ 633,
365
+ 858
366
+ ],
367
+ "page_idx": 2
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "In practice, we use a probability of 0.5 to decide if MixStyle is activated or not in the forward pass. At test time, no MixStyle is applied. Note that gradients are blocked in the computational graph of $\\mu ( \\cdot )$ and $\\sigma ( \\cdot )$ . MixStyle can be implemented with only few lines of code. See Algorithm 1 in Appendix A.1 for the PyTorch-like pseudo-code. ",
372
+ "bbox": [
373
+ 174,
374
+ 867,
375
+ 825,
376
+ 924
377
+ ],
378
+ "page_idx": 2
379
+ },
380
+ {
381
+ "type": "table",
382
+ "img_path": "images/c5ebe274bb1893ac2346fb0d139387bcd5d7bf3e991b91a59bcca22de9df6956.jpg",
383
+ "table_caption": [
384
+ "Table 1: Leave-one-domain-out generalization results on PACS. "
385
+ ],
386
+ "table_footnote": [],
387
+ "table_body": "<table><tr><td>Method</td><td>Art</td><td>Cartoon</td><td>Photo</td><td>Sketch</td><td>Avg</td></tr><tr><td>MMD-AAE CCSA JiGen</td><td>75.2 80.5 79.4 79.8 82.1</td><td>72.7 76.9 75.3 76.8</td><td>96.0 93.6 96.0 96.0</td><td>64.2 66.8 71.6 70.2</td><td>77.0 79.4 80.5 80.7</td></tr><tr><td>Epi-FCR Metareg L2A-OT ResNet-18</td><td>83.7 83.3 77.0±0.6</td><td>77.0 77.2 78.2 75.9±0.6</td><td>93.9 95.5 96.2 96.0±0.1</td><td>73.0 70.3 73.6 69.2±0.6</td><td>81.5 81.7 82.8 79.5</td></tr><tr><td>+ Manifold Mixup</td><td>75.6±0.7</td><td>70.1±0.9</td><td>93.5±0.7</td><td>65.4±0.6</td><td>76.2</td></tr><tr><td>+ Cutout</td><td>74.9±0.4</td><td>74.9±0.6</td><td>95.9±0.3</td><td>67.7±0.9</td><td>78.3</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>+ CutMix</td><td>74.6±0.7</td><td>71.8±0.6</td><td>95.6±0.4</td><td>65.3±0.8</td><td>76.8</td></tr><tr><td></td><td>74.7±1.0</td><td>72.3±0.9</td><td></td><td></td><td></td></tr><tr><td>+ Mixup (w/o label interpolation)</td><td></td><td></td><td>93.0±0.4</td><td>69.2±0.2</td><td>77.3</td></tr><tr><td>+ Mixup</td><td>76.8±0.7</td><td>74.9±0.7</td><td>95.8±0.3</td><td>66.6±0.7</td><td>78.5</td></tr><tr><td>+ DropBlock</td><td>76.4±0.7</td><td>75.4±0.7</td><td>95.9±0.3</td><td>69.0±0.3</td><td>79.2</td></tr><tr><td>+ MixStyle w/ random shuffle</td><td>82.3±0.2</td><td>79.0±0.3</td><td>96.3±0.3</td><td>73.8±0.9</td><td>82.8</td></tr><tr><td>+ MixStyle w/ domain label</td><td>84.1±0.4</td><td>78.8±0.4</td><td>96.1±0.3</td><td>75.9±0.9</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>83.7</td></tr></table>",
388
+ "bbox": [
389
+ 192,
390
+ 127,
391
+ 807,
392
+ 368
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "3 EXPERIMENTS ",
399
+ "text_level": 1,
400
+ "bbox": [
401
+ 174,
402
+ 393,
403
+ 326,
404
+ 410
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "3.1 GENERALIZATION IN CATEGORY CLASSIFICATION ",
411
+ "text_level": 1,
412
+ "bbox": [
413
+ 174,
414
+ 424,
415
+ 562,
416
+ 439
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "Dataset and implementation details. We choose the PACS dataset (Li et al., 2017), a commonly used domain generalization (DG) benchmark concerned with domain shift in image classification. PACS consists of four domains, i.e. Art Painting, Cartoon, Photo and Sketch, with totally 9,991 images of 7 classes. As shown in Fig. 1, the domain shift mainly corresponds to image style changes. For evaluation, a model is trained on three domains and tested on the remaining one. Following prior work (Li et al., 2019; Zhou et al., 2020a), we use ResNet-18 (He et al., 2016) as the classifier where MixStyle is inserted after the 1st, 2nd and 3rd residual blocks. Our code is based on Dassl.pytorch (Zhou et al., 2020c).2 ",
423
+ "bbox": [
424
+ 173,
425
+ 450,
426
+ 825,
427
+ 563
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "Baselines. Our main baselines are general-purpose regularization methods including Mixup (Zhang et al., 2018b), Manifold Mixup (Verma et al., 2019), DropBlock (Ghiasi et al., 2018), CutMix (Yun et al., 2019) and Cutout (DeVries & Taylor, 2017), which are trained using the same training parameters as MixStyle and the optimal hyper-parameter setup as reported in their papers. We also compare with the existing DG methods which reported state-of-the-art performance on PACS. These include domain alignment-based CCSA (Motiian et al., 2017) and MMD-AAE (Li et al., 2018b), Jigsaw puzzle-based JiGen (Carlucci et al., 2019), adversarial gradient-based CrossGrad (Shankar et al., 2018), meta-learning-based Metareg (Balaji et al., 2018) and Epi-FCR (Li et al., 2019), and data augmentation-based L2A-OT (Zhou et al., 2020a). ",
434
+ "bbox": [
435
+ 173,
436
+ 571,
437
+ 825,
438
+ 696
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "Comparison with general-purpose regularization methods. The results are shown in Table 1. Overall, we observe that the general-purpose regularization methods do not offer any clear advantage over the vanilla ResNet-18 in this DG task, while MixStyle improves upon the vanilla ResNet18 with a significant margin. Compared with Mixup, MixStyle is $5 . 2 \\%$ better on average. Recall that Mixup also interpolates the output space, we further compare with a variant of Mixup in order to demonstrate the advantage of mixing style statistics at the feature level over mixing images at the pixel level for DG—following Sohn et al. (2020), we remove the label interpolation in Mixup and sample the mixing weights from a uniform distribution of $[ 0 , 1 ]$ . Still, MixStyle outperforms this new baseline with a large margin, which justifies our claim. MixStyle and DropBlock share some commonalities in that they are both applied to feature maps at multiple layers, but MixStyle significantly outperforms DropBlock in all test domains. The reason why DropBlock is ineffective here is because dropping out activations mainly encourages a network to mine discriminative patterns, but does not reinforce the ability to cope with unseen styles, which is exactly what MixStyle aims to achieve: by synthesizing “new” styles (domains) MixStyle regularizes the network to become more robust to domain shift. In addition, it is interesting to see that on Cartoon and Photo, MixStyle w/ random shuffle obtains slightly better results. The reason might be because there exist sub-domains in a source domain (see Fig. 4(a-c)), which allow random shuffling to produce more diverse “new” domains that lead to a more domain-generalizable model. ",
445
+ "bbox": [
446
+ 174,
447
+ 705,
448
+ 825,
449
+ 900
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "",
456
+ "bbox": [
457
+ 174,
458
+ 103,
459
+ 823,
460
+ 159
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Comparison with state-of-the-art DG methods. Overall, MixStyle outperforms most DG methods by a clear margin, despite being a much simpler method. The performance of MixStyle w/ domain label is nearly $1 \\%$ better on average than the recently introduced L2A-OT. From a data augmentation perspective, MixStyle and L2A-OT share a similar goal—to synthesize data from pseudo-novel domains. MixStyle accomplishes this goal through mixing style statistics at the feature level. Whereas L2A-OT works at the pixel level: it trains an image generator by maximizing the domain difference (measured by optimal transport) between the original and the generated images, which introduces much heavier computational overhead than MixStyle in terms of GPU memory and training time. It is worth noting that MixStyle’s domain label-free version is highly competitive: its $8 2 . 8 \\%$ accuracy is on par with L2A-OT’s. ",
467
+ "bbox": [
468
+ 174,
469
+ 169,
470
+ 825,
471
+ 308
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "3.2 GENERALIZATION IN INSTANCE RETRIEVAL",
478
+ "text_level": 1,
479
+ "bbox": [
480
+ 174,
481
+ 325,
482
+ 517,
483
+ 339
484
+ ],
485
+ "page_idx": 4
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Dataset and implementation details. We evaluate MixStyle on the person re-identification (re-ID) problem, which aims to match people across disjoint camera views. As each camera view is itself a distinct domain, person re-ID is essentially a cross-domain image matching problem. Instead of using the standard protocol where training and test data come from the same camera views, we adopt the cross-dataset setting so test camera views are never seen during training. Specifically, we train a model on one dataset and then test its performance on the other dataset. Two commonly used re-ID datasets are adopted: Market1501 (Zheng et al., 2015) and Duke (Ristani et al., 2016; Zheng et al., 2017). Ranking accuracy and mean average precision (mAP) are used as the performance measures (displayed in percentage). We test MixStyle on two CNN architectures: ResNet-50 (He et al., 2016) and OSNet (Zhou et al., 2019). The latter was designed specifically for re-ID. In both architectures, MixStyle is inserted after the 1st and 2nd residual blocks. Our code is based on Torchreid (Zhou & Xiang, 2019).3 ",
490
+ "bbox": [
491
+ 173,
492
+ 352,
493
+ 825,
494
+ 518
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "Baselines. We compare with three baseline methods: 1) The vanilla model, which serves as a strong baseline; 2) DropBlock, which was the top-performing competitor in Table 1; 3) RandomErase (Zhong et al., 2020), a widely used regularization method in the re-ID literature (similar to Cutout). ",
501
+ "bbox": [
502
+ 174,
503
+ 529,
504
+ 823,
505
+ 583
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "Results. The results are reported in Table 2. It is clear that only MixStyle consistently outperforms the strong vanilla model under both settings with considerable margins, while DropBlock and RandomErase are unable to show any benefit. Notably, RandomErase, which simulates occlusion by erasing pixels in random rectangular regions with random values, has been used as a default trick when training re-ID CNNs. However, RandomErase shows a detrimental effect in the cross-dataset re-ID setting. Indeed, similar to DropBlock, randomly erasing pixels offers no guarantee to improve the robustness when it comes to domain shift. ",
512
+ "bbox": [
513
+ 174,
514
+ 594,
515
+ 825,
516
+ 690
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "3.3 GENERALIZATION IN REINFORCEMENT LEARNING ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 174,
526
+ 709,
527
+ 565,
528
+ 723
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Though RL has been greatly advanced by using CNNs for feature learning in raw pixels (Mnih et al., 2013), it has been widely acknowledged that RL agents often overfit training environments while generalize poorly to unseen environments (Cobbe et al., 2019; Igl et al., 2019). ",
535
+ "bbox": [
536
+ 174,
537
+ 734,
538
+ 825,
539
+ 777
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "Dataset and implementation details. We conduct experiments on Coinrun (Cobbe et al., 2019), a recently introduced RL benchmark for evaluating the generalization performance of RL agents. As shown in Fig. 3(a), the goal in Coinrun is to control a character to collect golden coins while avoiding both stationary and non-stationary obstacles. We follow Igl et al. (2019) to construct and train our RL agent: the CNN architecture used in IMPALA (Espeholt et al., 2018) is adopted as the policy network, and is trained by the Proximal Policy Optimization (PPO) algorithm (Schulman et al., 2017). Please refer to Igl et al. (2019) for further implementation details. MixStyle is inserted after the 1st and 2nd convolutional sequences. Training data are sampled from 500 levels while test data are drawn from new levels of only the highest difficulty. As domain labels are difficult to define, we use the random shuffle version of MixStyle. Our code is built on top of Igl et al. (2019).4 ",
546
+ "bbox": [
547
+ 174,
548
+ 786,
549
+ 825,
550
+ 898
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "table",
556
+ "img_path": "images/8e248e2539fca822336240b7fe9d39fd45dacc2101f2bcb3a98c958918e50290.jpg",
557
+ "table_caption": [
558
+ "Table 2: Generalization results on the cross-dataset person re-ID task. "
559
+ ],
560
+ "table_footnote": [],
561
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"4\">Market1501-→Duke</td><td colspan=\"4\">Duke-→Market1501</td></tr><tr><td>mAP</td><td>R1</td><td>R5</td><td>R10</td><td>mAP</td><td>R1</td><td>R5</td><td>R10</td></tr><tr><td>ResNet-50</td><td>19.3</td><td>35.4</td><td>50.3</td><td>56.4</td><td>20.4</td><td>45.2</td><td>63.6</td><td>70.9</td></tr><tr><td>+ RandomErase</td><td>14.3</td><td>27.8</td><td>42.6</td><td>49.1</td><td>16.1</td><td>38.5</td><td>56.8</td><td>64.5</td></tr><tr><td>+ DropBlock</td><td>18.2</td><td>33.2</td><td>49.1</td><td>56.3</td><td>19.7</td><td>45.3</td><td>62.1</td><td>69.1</td></tr><tr><td>+ MixStyle w/ random shuffle</td><td>23.8</td><td>42.2</td><td>58.8</td><td>64.8</td><td>24.1</td><td>51.5</td><td>69.4</td><td>76.2</td></tr><tr><td>+ MixStyle w/ domain label</td><td>23.4</td><td>43.3</td><td>58.9</td><td>64.7</td><td>24.7</td><td>53.0</td><td>70.9</td><td>77.8</td></tr><tr><td>OSNet</td><td>25.9</td><td>44.7</td><td>59.6</td><td>65.4</td><td>24.0</td><td>52.2</td><td>67.5</td><td>74.7</td></tr><tr><td>+ RandomErase</td><td>20.5</td><td>36.2</td><td>52.3</td><td>59.3</td><td>22.4</td><td>49.1</td><td>66.1</td><td>73.0</td></tr><tr><td>+ DropBlock</td><td>23.1</td><td>41.5</td><td>56.5</td><td>62.5</td><td>21.7</td><td>48.2</td><td>65.4</td><td>71.3</td></tr><tr><td>+ MixStyle w/ random shuffle</td><td>27.2</td><td>48.2</td><td>62.7</td><td>68.4</td><td>27.8</td><td>58.1</td><td>74.0</td><td>81.0</td></tr><tr><td>+ MixStyle w/ domain label</td><td>27.3</td><td>47.5</td><td>62.0</td><td>67.1</td><td>29.0</td><td>58.2</td><td>74.9</td><td>80.9</td></tr></table>",
562
+ "bbox": [
563
+ 192,
564
+ 127,
565
+ 805,
566
+ 300
567
+ ],
568
+ "page_idx": 5
569
+ },
570
+ {
571
+ "type": "image",
572
+ "img_path": "images/83f0338beadfd5bc519830499778de6828846e5597dc084ac87299494b1148a1.jpg",
573
+ "image_caption": [
574
+ "Figure 3: (a) Coinrun benchmark. (b) Test performance in unseen environments. (c) Difference between training and test performance. "
575
+ ],
576
+ "image_footnote": [],
577
+ "bbox": [
578
+ 176,
579
+ 333,
580
+ 825,
581
+ 493
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "",
588
+ "bbox": [
589
+ 173,
590
+ 578,
591
+ 823,
592
+ 607
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Baselines. Following Igl et al. (2019), we train strong baseline models and add MixStyle on top of them to see whether MixStyle can bring further improvements. To this end, we train two baseline models: 1) Baseline, which combines weight decay and data augmentation;5 2) IBAC-SNI (the $\\lambda = 0 . 5$ version), the best-performing model in Igl et al. (2019) which is based on selective noise injection. ",
599
+ "bbox": [
600
+ 174,
601
+ 654,
602
+ 825,
603
+ 723
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Results. The test performance is shown in Fig. 3(b). Comparing Baseline (blue) with Baseline+MixStyle (orange), we can see that MixStyle brings a significant improvement. Interestingly, the variance is also significantly reduced by using MixStyle, as indicated by the smaller shaded areas (for both orange and red lines). These results strongly demonstrate the effectiveness of MixStyle in enhancing generalization for RL agents. When it comes to the stronger baseline IBAC-SNI (green), MixStyle (red) is able to bring further performance gain, suggesting that MixStyle is complementary to IBAC-SNI. This result also shows the potential of MixStyle as a plug-and-play component to be combined with other advanced RL methods. It is worth noting that Baseline+MixStyle itself is already highly competitive with IBAC-SNI. Fig. 3(c) shows the generalization gap from which it can been seen that the models trained with MixStyle (orange & red) clearly generalize faster and better than those without using MixStyle (blue & green). ",
610
+ "bbox": [
611
+ 173,
612
+ 770,
613
+ 825,
614
+ 924
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "image",
620
+ "img_path": "images/4d2d1d46181970a60036d74149364fc1b7c14abba9cfcdf85a1601e0d521acda.jpg",
621
+ "image_caption": [
622
+ "Figure 4: 2-D visualization of flattened feature maps (top) and the corresponding style statistics (bottom). res1-4 denote the four residual blocks in order in a ResNet architecture. We observe that res1 to res3 contain domain-related information while res4 encodes label-related information. "
623
+ ],
624
+ "image_footnote": [],
625
+ "bbox": [
626
+ 176,
627
+ 99,
628
+ 821,
629
+ 313
630
+ ],
631
+ "page_idx": 6
632
+ },
633
+ {
634
+ "type": "table",
635
+ "img_path": "images/2c49c123023d551ecc0a12856511415bafdfb941fca08cf592f728b54bf5742d.jpg",
636
+ "table_caption": [
637
+ "Table 3: Ablation study on where to apply MixStyle in the ResNet architecture. ",
638
+ "(a) Category classification on PACS. "
639
+ ],
640
+ "table_footnote": [],
641
+ "table_body": "<table><tr><td>Model</td><td>Accuracy</td></tr><tr><td>ResNet-18</td><td>79.5</td></tr><tr><td>+ MixStyle (res1)</td><td>80.1</td></tr><tr><td>+ MixStyle (res12)</td><td>81.6</td></tr><tr><td>+ MixStyle (res123)</td><td>82.8</td></tr><tr><td>+ MixStyle (res1234)</td><td>75.6</td></tr><tr><td>+ MixStyle (res14)</td><td>76.3</td></tr><tr><td>+ MixStyle (res23)</td><td>81.7</td></tr></table>",
642
+ "bbox": [
643
+ 251,
644
+ 428,
645
+ 506,
646
+ 546
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "table",
652
+ "img_path": "images/77ff508fa1e5b4b56a82c9108d2ab847baee3536e4d32e484735f7ac7a2f04a3.jpg",
653
+ "table_caption": [
654
+ "(b) Cross-dataset person re-ID. "
655
+ ],
656
+ "table_footnote": [],
657
+ "table_body": "<table><tr><td>Model</td><td>mAP</td></tr><tr><td>ResNet-50</td><td>19.3</td></tr><tr><td>+ MixStyle (res1)</td><td>22.6</td></tr><tr><td>+ MixStyle (res12) + MixStyle (res123)</td><td>23.8</td></tr><tr><td>+MixStyle (res1234)</td><td>22.0</td></tr><tr><td>+ MixStyle (res14)</td><td>10.2</td></tr><tr><td>+MixStyle (res23)</td><td>11.1 20.6</td></tr></table>",
658
+ "bbox": [
659
+ 519,
660
+ 429,
661
+ 746,
662
+ 546
663
+ ],
664
+ "page_idx": 6
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "3.4 ANALYSIS ",
669
+ "text_level": 1,
670
+ "bbox": [
671
+ 174,
672
+ 590,
673
+ 285,
674
+ 603
675
+ ],
676
+ "page_idx": 6
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "Where to apply MixStyle? We repeat the experiments on PACS (category classification) and the re-ID datasets (instance retrieval) using the ResNet architecture. Given that a standard ResNet model has four residual blocks denoted by $\\mathtt { r e s l - 4 }$ , we train different models with MixStyle applied to different layers. For notation, res1 means MixStyle is applied after the first residual block; res12 means MixStyle is applied after both the first and second residual blocks; and so forth. The results are shown in Table 3. We have the following observations. 1) Applying MixStyle to multiple lowerlevel layers generally achieves a better performance—for instance, res12 is better than res1 on both tasks. 2) Different tasks favor different combinations—res123 achieves the best performance on PACS, while on the re-ID datasets $\\mathtt { r e s 1 2 }$ is the best. 3) On both tasks, the performance plunges when applying MixStyle to the last residual block. This makes sense because res4 is the closest to the prediction layer and tends to capture semantic content (i.e. label-sensitive) information rather than style. In particular, res4 is followed by an average-pooling layer, which essentially forwards the mean vector to the prediction layer and thus forces the mean vector to capture label-related information. As a consequence, mixing the statistics at res4 breaks the inherent label space. This is clearer in Fig. 4: the features and style statistics in $\\mathtt { r e s l - 3 }$ exhibit clustering patterns based on domains while those in res4 have a high correlation with class labels. ",
681
+ "bbox": [
682
+ 174,
683
+ 617,
684
+ 825,
685
+ 840
686
+ ],
687
+ "page_idx": 6
688
+ },
689
+ {
690
+ "type": "image",
691
+ "img_path": "images/c7e15cbb6312d6d6e57a51169db1f4a01f9832c478ec13254c9df6c7db06a565.jpg",
692
+ "image_caption": [
693
+ "Figure 5: Evaluation on the hyper-parameter $\\alpha$ on (a) PACS, (b) person re-ID datasets and (c) Coinrun. In (b), M and D denote Market1501 and Duke respectively. "
694
+ ],
695
+ "image_footnote": [],
696
+ "bbox": [
697
+ 174,
698
+ 98,
699
+ 825,
700
+ 250
701
+ ],
702
+ "page_idx": 7
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "Mixing vs. replacing. Unlike the AdaIN formulation, which completely replaces one style with the other, MixStyle mixes two styles via a convex combination. Table 4 shows that mixing is better than replacing. This is easy to understand: mixing diversifies the styles (imagine an interpolation between two data points). ",
707
+ "bbox": [
708
+ 174,
709
+ 316,
710
+ 612,
711
+ 386
712
+ ],
713
+ "page_idx": 7
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "Random vs. fixed shuffle at multiple layers. Applying MixStyle to multiple layers, which has been shown advantageous in Table 3, raises another question of whether to shuffle the mini-batch at different layers or use the same shuffled order for all layers. Table 5 suggests that using random shuffle at different layers gives a better performance, which may be attributed to the increased noise level that gives a better regularization effect. ",
718
+ "bbox": [
719
+ 174,
720
+ 396,
721
+ 614,
722
+ 492
723
+ ],
724
+ "page_idx": 7
725
+ },
726
+ {
727
+ "type": "table",
728
+ "img_path": "images/2c381c18bb58b30c686683356c2292f71c205ce4d70504362b8537940ea26f02.jpg",
729
+ "table_caption": [
730
+ "Table 4: Mixing vs. replacing. "
731
+ ],
732
+ "table_footnote": [],
733
+ "table_body": "<table><tr><td></td><td>Accuracy (%)</td></tr><tr><td>Mixing</td><td>82.8±0.4</td></tr><tr><td>Replacing</td><td>82.1±0.5</td></tr></table>",
734
+ "bbox": [
735
+ 625,
736
+ 325,
737
+ 820,
738
+ 376
739
+ ],
740
+ "page_idx": 7
741
+ },
742
+ {
743
+ "type": "table",
744
+ "img_path": "images/76b7d4c0c12c5e282d56837e7a904e7f774b0d08c2aa3a6a179528e5aee67938.jpg",
745
+ "table_caption": [
746
+ "Table 5: Random vs. fixed shuffle at multiple layers. "
747
+ ],
748
+ "table_footnote": [],
749
+ "table_body": "<table><tr><td colspan=\"2\">Accuracy (%)</td></tr><tr><td>Random</td><td>82.8±0.4</td></tr><tr><td>Fixed</td><td>82.4±0.5</td></tr></table>",
750
+ "bbox": [
751
+ 630,
752
+ 434,
753
+ 815,
754
+ 483
755
+ ],
756
+ "page_idx": 7
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "Sensitivity of hyper-parameter. Recall that $\\alpha$ is used to control the shape of Beta distribution, which has a direct effect on how the convex weights $\\lambda$ are sampled. The smaller $\\alpha$ is, the more likely the value in $\\lambda$ is close to the extreme value of 0 or 1. In other words, a smaller $\\alpha$ favors the style statistics in Eqs. (5) & (6) to be dominated by one side. We first evaluate $\\alpha$ on PACS. Fig. 5(a) shows that with $\\alpha$ increasing from 0.1 to 0.4, the accuracy slides from $8 2 . 8 \\%$ to $8 1 . 7 \\%$ . However, further increasing $\\alpha$ does not impact on the accuracy. Therefore, the results suggest that the performance is not too sensitive to $\\alpha$ ; and selecting $\\alpha$ from $\\lbrace 0 . 1 , 0 . 2 , 0 . 3 \\rbrace$ seems to be a good starting point. We further experiment with $\\alpha \\in \\{ 0 . 1 , 0 . 2 , 0 . 3 \\}$ on the re-ID datasets and the Coinrun benchmark. Figs. 5(b) & (c) show that in general the variance for the results of different values is small. Therefore, we suggest practitioners to choose $\\alpha$ from $\\lbrace 0 . 1 , 0 . 2 , 0 . 3 \\rbrace$ , with $\\alpha = 0 . 1$ being a good default setting. ",
761
+ "bbox": [
762
+ 174,
763
+ 502,
764
+ 825,
765
+ 655
766
+ ],
767
+ "page_idx": 7
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "For more analyses and discussions, please see Appendix A.2. ",
772
+ "bbox": [
773
+ 173,
774
+ 662,
775
+ 575,
776
+ 676
777
+ ],
778
+ "page_idx": 7
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "4 RELATED WORK ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 176,
786
+ 696,
787
+ 344,
788
+ 713
789
+ ],
790
+ "page_idx": 7
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Domain generalization, or DG, studies out-of-distribution (OOD) generalization given only source data typically composed of multiple related but distinct domains. We refer readers to Zhou et al. (2021) for a comprehensive survey in this topic. Many DG methods are based on the idea of aligning features between different sources, with a hope that the model can be invariant to domain shift given unseen data. For instance, Li et al. (2018b) achieved distribution alignment in the hidden representation of an autoencoder using maximum mean discrepancy; Li et al. (2018c) resorted to adversarial learning with auxiliary domain classifiers to learn features that are domain-agnostic. Some works explored domain-specific parameterization, such as domain-specific weight matrices (Li et al., 2017) and domain-specific BN (Seo et al., 2020). Recently, meta-learning has drawn increasing attention from the DG community (Li et al., 2018a; Balaji et al., 2018; Dou et al., 2019). The main idea is to expose a model to domain shift during training by using pseudo-train and pseudo-test domains, both drawn from source domains. Data augmentation has also been investigated for learning domain-invariant models. Shankar et al. (2018) introduced a cross-gradient training method (CrossGrad) where source data are augmented by adversarial gradients obtained from a domain classifier. ",
795
+ "bbox": [
796
+ 174,
797
+ 729,
798
+ 825,
799
+ 924
800
+ ],
801
+ "page_idx": 7
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "Gong et al. (2019) proposed DLOW (for the DA problem), which models intermediate domains between source and target via a domainness factor and learns an image translation model to generate intermediate-domain images. Very recently, Zhou et al. (2020a) introduced L2A-OT to learn a neural network to map source data to pseudo-novel domains by maximizing an optimal transport-based distance measure. Our MixStyle is related to DLOW and L2A-OT in its efforts to synthesizing novel domains. However, MixStyle differs in the fact that it is done implicitly with a much simpler formulation leveraging the feature-level style statistics and only few lines of extra code on top of a standard supervised classifier while being more effective. Essentially, MixStyle can be seen as feature-level augmentation, which is clearly different from the image-level augmentation-based DLOW and L2A-OT. ",
806
+ "bbox": [
807
+ 174,
808
+ 103,
809
+ 825,
810
+ 242
811
+ ],
812
+ "page_idx": 8
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "Generalization in deep RL has been a challenging problem where RL agents often overfit training environments, and as a result, perform poorly in unseen environments with different visual patterns or levels (Zhang et al., 2018a). A natural way to improve generalization, which has been shown effective in (Cobbe et al., 2019; Farebrother et al., 2018), is to use regularization, e.g., weight decay. However, Igl et al. (2019) suggested that stochastic regularization methods like dropout and batch normalization (which uses estimated population statistics) have adverse effect as the training data in RL are essentially model-dependent. As such, they proposed selective noise injection (SNI), which basically combines a stochastic regularization technique with its deterministic counterpart. They further integrated SNI with information bottleneck actor critic (IBAC-SNI) to reduce the variance in gradients. Curriculum learning has been investigated in (Justesen et al., 2018) where the level of training episodes progresses from easy to difficult over the course of training. Gamrian & Goldberg (2019) leveraged the advances in GAN-based image-to-image translation (Liu et al., 2017) to map target data to the source domain which the agent was trained on. Tobin et al. (2017) introduced domain randomization, which diversifies training data by rendering images with different visual effects via a programmable simulator. With a similar goal of data augmentation, Lee et al. (2020) pre-processed input images with a randomly initialized network. Very recent studies (Laskin et al., 2020; Kostrikov et al., 2020) have shown that it is useful to combine a diverse set of label-preserving transformations, such as rotation, shifting and Cutout. Different from the aforementioned methods, our MixStyle works at the feature level and is orthogonal to most existing methods. For instance, we have shown in Sec. 3.3 that MixStyle significantly improves upon IBAC-SNI. ",
817
+ "bbox": [
818
+ 173,
819
+ 251,
820
+ 825,
821
+ 527
822
+ ],
823
+ "page_idx": 8
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "5 CONCLUSION ",
828
+ "text_level": 1,
829
+ "bbox": [
830
+ 176,
831
+ 547,
832
+ 318,
833
+ 563
834
+ ],
835
+ "page_idx": 8
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "We presented a simple yet effective domain generalization method, termed MixStyle. MixStyle mixes the feature statistics of two instances to synthesize novel domains, which is inspired by the observation in style transfer work that the feature statistics encode style/domain-related information. Extensive experiments covering a wide range of tasks were conducted to demonstrate that MixStyle yields new state-of-the-art on three different tasks. ",
840
+ "bbox": [
841
+ 174,
842
+ 578,
843
+ 825,
844
+ 647
845
+ ],
846
+ "page_idx": 8
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "ACKNOWLEDGMENTS ",
851
+ "text_level": 1,
852
+ "bbox": [
853
+ 176,
854
+ 664,
855
+ 326,
856
+ 676
857
+ ],
858
+ "page_idx": 8
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "This work was supported in part by the Shanghai Committee of Science and Technology, China (Grant No. 20DZ1100800), in part by the National Natural Science Foundation of China under Grant (61876176, U1713208), the National Key Research and Development Program of China (No. 2020YFC2004800), and in part by the Guangzhou Research Program (201803010066). ",
863
+ "bbox": [
864
+ 176,
865
+ 688,
866
+ 825,
867
+ 743
868
+ ],
869
+ "page_idx": 8
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "REFERENCES ",
874
+ "text_level": 1,
875
+ "bbox": [
876
+ 176,
877
+ 763,
878
+ 285,
879
+ 779
880
+ ],
881
+ "page_idx": 8
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Yogesh Balaji, Swami Sankaranarayanan, and Rama Chellappa. Metareg: Towards domain generalization using meta-regularization. In NeurIPS, 2018. ",
886
+ "bbox": [
887
+ 174,
888
+ 786,
889
+ 823,
890
+ 814
891
+ ],
892
+ "page_idx": 8
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Gilles Blanchard, Gyemin Lee, and Clayton Scott. Generalizing from several related classification tasks to a new unlabeled sample. In NeurIPS, 2011. ",
897
+ "bbox": [
898
+ 176,
899
+ 821,
900
+ 823,
901
+ 851
902
+ ],
903
+ "page_idx": 8
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "Fabio M. Carlucci, Antonio D’Innocente, Silvia Bucci, Barbara Caputo, and Tatiana Tommasi. Domain generalization by solving jigsaw puzzles. In CVPR, 2019. ",
908
+ "bbox": [
909
+ 174,
910
+ 858,
911
+ 821,
912
+ 887
913
+ ],
914
+ "page_idx": 8
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "Karl Cobbe, Oleg Klimov, Chris Hesse, Taehoon Kim, and John Schulman. Quantifying generalization in reinforcement learning. In ICML, 2019. ",
919
+ "bbox": [
920
+ 176,
921
+ 895,
922
+ 821,
923
+ 924
924
+ ],
925
+ "page_idx": 8
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. ",
930
+ "bbox": [
931
+ 173,
932
+ 103,
933
+ 823,
934
+ 132
935
+ ],
936
+ "page_idx": 9
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "Qi Dou, Daniel C Castro, Konstantinos Kamnitsas, and Ben Glocker. Domain generalization via model-agnostic learning of semantic features. In NeurIPS, 2019. ",
941
+ "bbox": [
942
+ 173,
943
+ 141,
944
+ 821,
945
+ 170
946
+ ],
947
+ "page_idx": 9
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudlur. A learned representation for artistic style. In ICLR, 2017. ",
952
+ "bbox": [
953
+ 173,
954
+ 178,
955
+ 823,
956
+ 207
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymir Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In ICML, 2018. ",
963
+ "bbox": [
964
+ 176,
965
+ 215,
966
+ 823,
967
+ 258
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Jesse Farebrother, Marlos C Machado, and Michael Bowling. Generalization and regularization in dqn. arXiv preprint arXiv:1810.00123, 2018. ",
974
+ "bbox": [
975
+ 171,
976
+ 267,
977
+ 825,
978
+ 296
979
+ ],
980
+ "page_idx": 9
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Shani Gamrian and Yoav Goldberg. Transfer learning for related reinforcement learning tasks via image-to-image translation. In ICML, 2019. ",
985
+ "bbox": [
986
+ 173,
987
+ 304,
988
+ 825,
989
+ 334
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Yaroslav Ganin and Victor S. Lempitsky. Unsupervised domain adaptation by backpropagation. In ICML, 2015. ",
996
+ "bbox": [
997
+ 174,
998
+ 342,
999
+ 823,
1000
+ 371
1001
+ ],
1002
+ "page_idx": 9
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In NeurIPS, 2018. ",
1007
+ "bbox": [
1008
+ 173,
1009
+ 378,
1010
+ 823,
1011
+ 409
1012
+ ],
1013
+ "page_idx": 9
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "Rui Gong, Wen Li, Yuhua Chen, and Luc Van Gool. Dlow: Domain flow for adaptation and generalization. In CVPR, 2019. ",
1018
+ "bbox": [
1019
+ 171,
1020
+ 416,
1021
+ 823,
1022
+ 446
1023
+ ],
1024
+ "page_idx": 9
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
1029
+ "bbox": [
1030
+ 174,
1031
+ 454,
1032
+ 823,
1033
+ 483
1034
+ ],
1035
+ "page_idx": 9
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2019. ",
1040
+ "bbox": [
1041
+ 173,
1042
+ 492,
1043
+ 823,
1044
+ 521
1045
+ ],
1046
+ "page_idx": 9
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017. ",
1051
+ "bbox": [
1052
+ 173,
1053
+ 529,
1054
+ 823,
1055
+ 559
1056
+ ],
1057
+ "page_idx": 9
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Maximilian Igl, Kamil Ciosek, Yingzhen Li, Sebastian Tschiatschek, Cheng Zhang, Sam Devlin, and Katja Hofmann. Generalization in reinforcement learning with selective noise injection and information bottleneck. In NeurIPS, 2019. ",
1062
+ "bbox": [
1063
+ 176,
1064
+ 566,
1065
+ 823,
1066
+ 611
1067
+ ],
1068
+ "page_idx": 9
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. ",
1073
+ "bbox": [
1074
+ 173,
1075
+ 618,
1076
+ 820,
1077
+ 648
1078
+ ],
1079
+ "page_idx": 9
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Niels Justesen, Ruben Rodriguez Torrado, Philip Bontrager, Ahmed Khalifa, Julian Togelius, and Sebastian Risi. Illuminating generalization in deep reinforcement learning through procedural level generation. arXiv preprint arXiv:1806.10729, 2018. ",
1084
+ "bbox": [
1085
+ 176,
1086
+ 655,
1087
+ 820,
1088
+ 699
1089
+ ],
1090
+ "page_idx": 9
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Ilya Kostrikov, Denis Yarats, and Rob Fergus. Image augmentation is all you need: Regularizing deep reinforcement learning from pixels. arXiv preprint arXiv:2004.13649, 2020. ",
1095
+ "bbox": [
1096
+ 173,
1097
+ 707,
1098
+ 820,
1099
+ 737
1100
+ ],
1101
+ "page_idx": 9
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, 2012. ",
1106
+ "bbox": [
1107
+ 173,
1108
+ 744,
1109
+ 820,
1110
+ 773
1111
+ ],
1112
+ "page_idx": 9
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Michael Laskin, Kimin Lee, Adam Stooke, Lerrel Pinto, Pieter Abbeel, and Aravind Srinivas. Reinforcement learning with augmented data. arXiv preprint arXiv:2004.14990, 2020. ",
1117
+ "bbox": [
1118
+ 173,
1119
+ 781,
1120
+ 820,
1121
+ 813
1122
+ ],
1123
+ "page_idx": 9
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. In IEEE, 1998. ",
1128
+ "bbox": [
1129
+ 174,
1130
+ 820,
1131
+ 821,
1132
+ 849
1133
+ ],
1134
+ "page_idx": 9
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Kimin Lee, Kibok Lee, Jinwoo Shin, and Honglak Lee. Network randomization: A simple technique for generalization in deep reinforcement learning. In ICLR, 2020. ",
1139
+ "bbox": [
1140
+ 174,
1141
+ 857,
1142
+ 821,
1143
+ 887
1144
+ ],
1145
+ "page_idx": 9
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Deeper, broader and artier domain generalization. In ICCV, 2017. ",
1150
+ "bbox": [
1151
+ 174,
1152
+ 895,
1153
+ 820,
1154
+ 924
1155
+ ],
1156
+ "page_idx": 9
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Learning to generalize: Metalearning for domain generalization. In AAAI, 2018a. ",
1161
+ "bbox": [
1162
+ 171,
1163
+ 103,
1164
+ 823,
1165
+ 132
1166
+ ],
1167
+ "page_idx": 10
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Da Li, Jianshu Zhang, Yongxin Yang, Cong Liu, Yi-Zhe Song, and Timothy M Hospedales. Episodic training for domain generalization. In ICCV, 2019. ",
1172
+ "bbox": [
1173
+ 173,
1174
+ 140,
1175
+ 823,
1176
+ 170
1177
+ ],
1178
+ "page_idx": 10
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C. Kot. Domain generalization with adversarial feature learning. In CVPR, 2018b. ",
1183
+ "bbox": [
1184
+ 173,
1185
+ 178,
1186
+ 823,
1187
+ 208
1188
+ ],
1189
+ "page_idx": 10
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "Ya Li, Xinmei Tiana, Mingming Gong, Yajing Liu, Tongliang Liu, Kun Zhang, and Dacheng Tao. Deep domain generalization via conditional invariant adversarial networks. In ECCV, 2018c. ",
1194
+ "bbox": [
1195
+ 171,
1196
+ 215,
1197
+ 823,
1198
+ 244
1199
+ ],
1200
+ "page_idx": 10
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In NeurIPS, 2017. ",
1205
+ "bbox": [
1206
+ 171,
1207
+ 253,
1208
+ 823,
1209
+ 282
1210
+ ],
1211
+ "page_idx": 10
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. JMLR, 2008. ",
1216
+ "bbox": [
1217
+ 169,
1218
+ 290,
1219
+ 761,
1220
+ 308
1221
+ ],
1222
+ "page_idx": 10
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013. ",
1227
+ "bbox": [
1228
+ 174,
1229
+ 314,
1230
+ 825,
1231
+ 358
1232
+ ],
1233
+ "page_idx": 10
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Saeid Motiian, Marco Piccirilli, Donald A. Adjeroh, and Gianfranco Doretto. Unified deep supervised domain adaptation and generalization. In ICCV, 2017. ",
1238
+ "bbox": [
1239
+ 171,
1240
+ 366,
1241
+ 823,
1242
+ 395
1243
+ ],
1244
+ "page_idx": 10
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Krikamol Muandet, David Balduzzi, and Bernhard Scholkopf. Domain generalization via invariant feature representation. In ICML, 2013. ",
1249
+ "bbox": [
1250
+ 173,
1251
+ 402,
1252
+ 823,
1253
+ 433
1254
+ ],
1255
+ "page_idx": 10
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NeurIPS-W, 2011. ",
1260
+ "bbox": [
1261
+ 171,
1262
+ 440,
1263
+ 823,
1264
+ 470
1265
+ ],
1266
+ "page_idx": 10
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In ICML, 2019. ",
1271
+ "bbox": [
1272
+ 173,
1273
+ 478,
1274
+ 823,
1275
+ 507
1276
+ ],
1277
+ "page_idx": 10
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "Ergys Ristani, Francesco Solera, Roger Zou, Rita Cucchiara, and Carlo Tomasi. Performance measures and a data set for multi-target, multi-camera tracking. In ECCV, 2016. ",
1282
+ "bbox": [
1283
+ 171,
1284
+ 515,
1285
+ 823,
1286
+ 545
1287
+ ],
1288
+ "page_idx": 10
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
1293
+ "bbox": [
1294
+ 173,
1295
+ 553,
1296
+ 823,
1297
+ 583
1298
+ ],
1299
+ "page_idx": 10
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "Seonguk Seo, Yumin Suh, Dongwan Kim, Jongwoo Han, and Bohyung Han. Learning to optimize domain specific normalization for domain generalization. In ECCV, 2020. ",
1304
+ "bbox": [
1305
+ 171,
1306
+ 590,
1307
+ 821,
1308
+ 621
1309
+ ],
1310
+ "page_idx": 10
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "Shiv Shankar, Vihari Piratla, Soumen Chakrabarti, Siddhartha Chaudhuri, Preethi Jyothi, and Sunita Sarawagi. Generalizing across domains via cross-gradient training. In ICLR, 2018. ",
1315
+ "bbox": [
1316
+ 171,
1317
+ 627,
1318
+ 823,
1319
+ 659
1320
+ ],
1321
+ "page_idx": 10
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "Kihyuk Sohn, David Berthelot, Chun-Liang Li, Zizhao Zhang, Nicholas Carlini, Ekin D Cubuk, Alex Kurakin, Han Zhang, and Colin Raffel. Fixmatch: Simplifying semi-supervised learning with consistency and confidence. In NeurIPS, 2020. ",
1326
+ "bbox": [
1327
+ 174,
1328
+ 665,
1329
+ 823,
1330
+ 709
1331
+ ],
1332
+ "page_idx": 10
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. JMLR, 2014. ",
1337
+ "bbox": [
1338
+ 169,
1339
+ 717,
1340
+ 821,
1341
+ 747
1342
+ ],
1343
+ "page_idx": 10
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In IROS, 2017. ",
1348
+ "bbox": [
1349
+ 174,
1350
+ 753,
1351
+ 823,
1352
+ 797
1353
+ ],
1354
+ "page_idx": 10
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv:1607.08022, 2016. ",
1359
+ "bbox": [
1360
+ 173,
1361
+ 806,
1362
+ 820,
1363
+ 835
1364
+ ],
1365
+ "page_idx": 10
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In CVPR, 2017. ",
1370
+ "bbox": [
1371
+ 173,
1372
+ 843,
1373
+ 823,
1374
+ 872
1375
+ ],
1376
+ "page_idx": 10
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In ICML, 2019. ",
1381
+ "bbox": [
1382
+ 176,
1383
+ 882,
1384
+ 823,
1385
+ 924
1386
+ ],
1387
+ "page_idx": 10
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "Keyulu Xu, Mozhi Zhang, Jingling Li, Simon Shaolei Du, Ken-Ichi Kawarabayashi, and Stefanie Jegelka. How neural networks extrapolate: From feedforward to graph neural networks. In ICLR, 2021. \nSangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, 2019. \nChiyuan Zhang, Oriol Vinyals, Remi Munos, and Samy Bengio. A study on overfitting in deep reinforcement learning. arXiv preprint arXiv:1804.06893, 2018a. \nHongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR, 2018b. \nLiang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015. \nZhedong Zheng, Liang Zheng, and Yi Yang. Unlabeled samples generated by gan improve the person re-identification baseline in vitro. In ICCV, 2017. \nZhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In AAAI, 2020. \nKaiyang Zhou and Tao Xiang. Torchreid: A library for deep learning person re-identification in pytorch. arXiv preprint arXiv:1910.10093, 2019. \nKaiyang Zhou, Yongxin Yang, Andrea Cavallaro, and Tao Xiang. Omni-scale feature learning for person re-identification. In ICCV, 2019. \nKaiyang Zhou, Yongxin Yang, Timothy Hospedales, and Tao Xiang. Learning to generate novel domains for domain generalization. In ECCV, 2020a. \nKaiyang Zhou, Yongxin Yang, Timothy M Hospedales, and Tao Xiang. Deep domain-adversarial image generation for domain generalisation. In AAAI, 2020b. \nKaiyang Zhou, Yongxin Yang, Yu Qiao, and Tao Xiang. Domain adaptive ensemble learning. arXiv preprint arXiv:2003.07325, 2020c. \nKaiyang Zhou, Ziwei Liu, Yu Qiao, Tao Xiang, and Chen Change Loy. Domain generalization: A survey. arXiv preprint arXiv:2103.02503, 2021. ",
1392
+ "bbox": [
1393
+ 169,
1394
+ 103,
1395
+ 826,
1396
+ 618
1397
+ ],
1398
+ "page_idx": 11
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "A APPENDIX ",
1403
+ "text_level": 1,
1404
+ "bbox": [
1405
+ 176,
1406
+ 102,
1407
+ 299,
1408
+ 117
1409
+ ],
1410
+ "page_idx": 12
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "A.1 PSEUDO-CODE OF MIXSTYLE",
1415
+ "text_level": 1,
1416
+ "bbox": [
1417
+ 176,
1418
+ 133,
1419
+ 426,
1420
+ 148
1421
+ ],
1422
+ "page_idx": 12
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Algorithm 1 provides a PyTorch-like pseudo-code. ",
1427
+ "bbox": [
1428
+ 174,
1429
+ 159,
1430
+ 506,
1431
+ 174
1432
+ ],
1433
+ "page_idx": 12
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "Algorithm 1 PyTorch-like pseudo-code for MixStyle. ",
1438
+ "text_level": 1,
1439
+ "bbox": [
1440
+ 174,
1441
+ 189,
1442
+ 527,
1443
+ 204
1444
+ ],
1445
+ "page_idx": 12
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "# x: input features of shape (B, C, H, W) \n# p: probabillity to apply MixStyle (default: 0.5) \n# alpha: hyper-parameter for the Beta distribution (default: 0.1) \n# eps: a small value added before square root for numerical stability (default: 1e-6) ",
1450
+ "bbox": [
1451
+ 171,
1452
+ 215,
1453
+ 776,
1454
+ 252
1455
+ ],
1456
+ "page_idx": 12
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "if not in training mode: return x ",
1461
+ "bbox": [
1462
+ 176,
1463
+ 261,
1464
+ 344,
1465
+ 279
1466
+ ],
1467
+ "page_idx": 12
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "if random probability $>$ p: return x ",
1472
+ "bbox": [
1473
+ 176,
1474
+ 287,
1475
+ 357,
1476
+ 306
1477
+ ],
1478
+ "page_idx": 12
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "$\\mathrm { ~ \\textit ~ { ~ B ~ } ~ } = \\mathrm { ~ \\textit ~ { ~ x ~ } ~ }$ .size(0) # batch size ",
1483
+ "bbox": [
1484
+ 174,
1485
+ 314,
1486
+ 359,
1487
+ 325
1488
+ ],
1489
+ "page_idx": 12
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "mu $= \\times$ .mean(dim=[2, 3], keepdim $\\cdot ^ { = }$ True) # compute instance mean var $=$ x.var(dim=[2, 3], keepdim $\\cdot ^ { = }$ True) # compute instance variance sig $=$ (var $^ +$ eps).sqrt() # compute instance standard deviation mu, sig $\\qquad = \\quad \\mathtt { m u }$ .detach(), sig.detach() # block gradients x_normed $=$ (x - mu) / sig # normalize input ",
1494
+ "bbox": [
1495
+ 171,
1496
+ 333,
1497
+ 633,
1498
+ 380
1499
+ ],
1500
+ "page_idx": 12
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "lmda $=$ Beta(alpha, alpha).sample((B, 1, 1, 1)) # sample instance-wise convex weights ",
1505
+ "bbox": [
1506
+ 166,
1507
+ 387,
1508
+ 766,
1509
+ 398
1510
+ ],
1511
+ "page_idx": 12
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "if domain label is given: # in this case, input $\\begin{array} { r } { \\mathrm { ~ ~ \\underline { ~ } { ~ \\sf ~ } { ~ \\sf ~ } { ~ \\sf ~ } { ~ \\sf ~ } = ~ \\mathrm { ~ ~ \\tau ~ } [ \\times \\hat { \\mathrm { ~ ~ \\underline { ~ } { ~ \\bf ~ } { ~ \\underline { ~ } { ~ \\bf ~ } { ~ \\tau ~ } ~ } } } } } \\end{array}$ x perm $=$ torch.arange(B-1, -1, -1) # inverse index perm_j, perm_i $=$ perm.chunk(2) # separate indices perm_j $=$ perm_j[torch.randperm(B // 2)] # shuffling perm_i $=$ perm_i[torch.randperm(B // 2)] # shuffling perm $=$ torch.cat([perm_j, perm_i], 0) # concatenation \nelse: perm $=$ torch.randperm(B) # generate shuffling indices ",
1516
+ "bbox": [
1517
+ 176,
1518
+ 405,
1519
+ 571,
1520
+ 487
1521
+ ],
1522
+ "page_idx": 12
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "mu2, sig2 $=$ mu[perm], sig[perm] # shuffling mu_mix $=$ mu $\\star$ lmda $^ +$ mu2 $\\star$ (1 - lmda) # generate mixed mean sig_mix $=$ sig $\\star$ lmda $^ +$ sig2 $\\star$ (1 - lmda) # generate mixed standard deviation return x_normed $\\star$ sig_mix $^ +$ mu_mix # denormalize input using the mixed statistics ",
1527
+ "bbox": [
1528
+ 174,
1529
+ 496,
1530
+ 710,
1531
+ 525
1532
+ ],
1533
+ "page_idx": 12
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "",
1538
+ "bbox": [
1539
+ 171,
1540
+ 531,
1541
+ 748,
1542
+ 544
1543
+ ],
1544
+ "page_idx": 12
1545
+ },
1546
+ {
1547
+ "type": "table",
1548
+ "img_path": "images/c5c91c980ca863ce754049c2ac48657fb6e478a83339d37cdd2bb99ba07e1b07.jpg",
1549
+ "table_caption": [
1550
+ "Table 7: Test results on the source domains on PACS. A: Art. C: Cartoon. P: Photo. S: Sketch. "
1551
+ ],
1552
+ "table_footnote": [],
1553
+ "table_body": "<table><tr><td>Method</td><td>C,P,S</td><td>A,P,S</td><td>A,C,S</td><td>A,C,P</td><td>Avg</td></tr><tr><td>Vanilla</td><td>99.49±0.03</td><td>99.47±0.04</td><td>99.38±0.02</td><td>99.65±0.03</td><td>99.50</td></tr><tr><td>MixStyle</td><td>99.55±0.02</td><td>99.54±0.01</td><td>99.47±0.03</td><td>99.68±0.03</td><td>99.56</td></tr></table>",
1554
+ "bbox": [
1555
+ 233,
1556
+ 127,
1557
+ 764,
1558
+ 175
1559
+ ],
1560
+ "page_idx": 13
1561
+ },
1562
+ {
1563
+ "type": "table",
1564
+ "img_path": "images/d706ed77580ec62fda2f7d6c0da59fdce21563a4ed5924d61fc6e2035f36f821.jpg",
1565
+ "table_caption": [
1566
+ "Table 8: Leave-one-domain-out generalization results on Digits-DG. "
1567
+ ],
1568
+ "table_footnote": [],
1569
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>MNIST MNIST-M SVHN SYN</td><td rowspan=1 colspan=1>Avg</td></tr><tr><td rowspan=1 colspan=1>JiGen</td><td rowspan=1 colspan=1>96.5 61.4 63.7 74.0</td><td rowspan=1 colspan=1>73.9</td></tr><tr><td rowspan=1 colspan=1>CCSA</td><td rowspan=1 colspan=1>95.2 58.2 65.5 79.1</td><td rowspan=1 colspan=1>74.5</td></tr><tr><td rowspan=3 colspan=1>MMD-AAECrossGradL2A-OT</td><td rowspan=1 colspan=1>96.5 58.4 65.0 78.4</td><td rowspan=3 colspan=1>74.675.878.1</td></tr><tr><td rowspan=1 colspan=1>96.7 61.1 65.3 80.2</td></tr><tr><td rowspan=1 colspan=1>96.7 63.9 68.6 83.2</td></tr><tr><td rowspan=8 colspan=1>CNN+ Mixup w/o label interpolation+ Manifold Mixup+ CutMix+ Mixup+ Cutout+ DropBlock+ MixStyle (ours)</td><td rowspan=1 colspan=1>95.8±0.3 58.8±0.5 61.7±0.5 78.6±0.6</td><td rowspan=1 colspan=1>73.7</td></tr><tr><td rowspan=1 colspan=1>93.7±0.6 55.2±1.0 61.6±0.9 74.4±0.8</td><td rowspan=3 colspan=1>71.271.771.8</td></tr><tr><td rowspan=1 colspan=1>92.7±0.4 53.1±0.8 64.4±0.2 76.8±0.5</td></tr><tr><td rowspan=1 colspan=1>94.9±0.2 50.1±0.5 64.1±0.9 78.1±0.7</td></tr><tr><td rowspan=1 colspan=1>94.2±0.5 56.5±0.8 63.3±0.7 76.7±0.6</td><td rowspan=4 colspan=1>72.774.175.376.5</td></tr><tr><td rowspan=1 colspan=1>95.8±0.4 58.4±0.6 61.9±0.9 80.6±0.5</td></tr><tr><td rowspan=1 colspan=1>96.2±0.1 60.5±0.6 64.1±0.8 80.2±0.6</td></tr><tr><td rowspan=1 colspan=1>96.5±0.3 63.5±0.8 64.7±0.7 81.2±0.8</td></tr></table>",
1570
+ "bbox": [
1571
+ 194,
1572
+ 213,
1573
+ 805,
1574
+ 415
1575
+ ],
1576
+ "page_idx": 13
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "A.2 FURTHER ANALYSIS ",
1581
+ "text_level": 1,
1582
+ "bbox": [
1583
+ 176,
1584
+ 440,
1585
+ 361,
1586
+ 454
1587
+ ],
1588
+ "page_idx": 13
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "MixStyle between same-domain instances. ",
1593
+ "text_level": 1,
1594
+ "bbox": [
1595
+ 176,
1596
+ 467,
1597
+ 482,
1598
+ 481
1599
+ ],
1600
+ "page_idx": 13
1601
+ },
1602
+ {
1603
+ "type": "text",
1604
+ "text": "We are interested in knowing if mixing styles between same-domain instances helps performance. To this end, we sample each mini-batch from a single domain during training when using MixStyle. The results are shown in Table 6 where we observe that mixing styles between same-domain instances is about $1 \\%$ better than the baseline model. This suggests that instancespecific style exists. Nonetheless, the performance is clearly worse than mixing styles between instances of different domains. ",
1605
+ "bbox": [
1606
+ 174,
1607
+ 481,
1608
+ 483,
1609
+ 632
1610
+ ],
1611
+ "page_idx": 13
1612
+ },
1613
+ {
1614
+ "type": "table",
1615
+ "img_path": "images/e22f37e78ca0e3a60266186cfd9536740f245c97d3f14479137e919c3f8c589e.jpg",
1616
+ "table_caption": [
1617
+ "Table 6: Investigation on the effect of mixing styles between same-domain instances. "
1618
+ ],
1619
+ "table_footnote": [],
1620
+ "table_body": "<table><tr><td>Accuracy (%)</td></tr><tr><td>ResNet18 79.5</td></tr><tr><td>+MixStyle w/ same-domain 80.4</td></tr><tr><td>+MixStyle w/random shuffle 82.8</td></tr><tr><td>+MixStyle w/ domain label 83.7</td></tr></table>",
1621
+ "bbox": [
1622
+ 504,
1623
+ 522,
1624
+ 816,
1625
+ 599
1626
+ ],
1627
+ "page_idx": 13
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "Performance on source domains. To prove that MixStyle does not sacrifice the performance on seen domains in exchange for gains on unseen domains, we report the test accuracy on the held-out validation set of the source domains on PACS in Table 7. ",
1632
+ "bbox": [
1633
+ 173,
1634
+ 641,
1635
+ 825,
1636
+ 683
1637
+ ],
1638
+ "page_idx": 13
1639
+ },
1640
+ {
1641
+ "type": "text",
1642
+ "text": "Results on Digits-DG and Office-Home. In addition to the experiments on PACS (in Sec. 3.1), we further evaluate MixStyle’s effectiveness on two DG datasets, namely Digits-DG (Zhou et al., 2020a) and Office-Home (Venkateswara et al., 2017). Digits-DG contains four digit datasets (domains) including MNIST (LeCun et al., 1998), MNIST-M (Ganin & Lempitsky, 2015), SVHN (Netzer et al., 2011) and SYN (Ganin & Lempitsky, 2015). Images from different digit datasets differ drastically in font style, stroke color and background. Office-Home is composed of four domains (Artistic, Clipart, Product and Real World) with around 15,500 images of 65 classes for home and office object recognition. The results are shown in Tables 8 and 9 where no domain labels are used in MixStyle. Similar to the results on PACS, here we observe that MixStyle also brings clear improvements to the baseline CNN model and outperforms all general-purpose regularization methods on both Digits-DG and Office-Home. Compared with more sophisticated DG methods like L2A-OT, MixStyle’s performance is comparable, despite being much simpler to train and consuming much less computing resources. ",
1643
+ "bbox": [
1644
+ 173,
1645
+ 691,
1646
+ 825,
1647
+ 872
1648
+ ],
1649
+ "page_idx": 13
1650
+ },
1651
+ {
1652
+ "type": "table",
1653
+ "img_path": "images/68a58d31208db3a9f4e6ac1e12e9d0e16e30afd9e38d48a9a578cbeecfbc00e1.jpg",
1654
+ "table_caption": [
1655
+ "Table 9: Leave-one-domain-out generalization results on Office-Home. "
1656
+ ],
1657
+ "table_footnote": [],
1658
+ "table_body": "<table><tr><td>Method</td><td>Artistic</td><td>Clipart</td><td>Product</td><td>Real World</td><td>Avg</td></tr><tr><td>JiGen CCSA</td><td>53.0</td><td>47.5</td><td>71.5</td><td>72.8</td><td>61.2</td></tr><tr><td>MMD-AAE</td><td>59.9 56.5</td><td>49.9 47.3</td><td>74.1 72.1</td><td>75.7 74.8</td><td>64.9 62.7</td></tr><tr><td>CrossGrad</td><td></td><td></td><td></td><td>75.8</td><td>64.4</td></tr><tr><td>L2A-OT</td><td>58.4</td><td>49.4</td><td>73.9</td><td></td><td></td></tr><tr><td>ResNet18</td><td>60.6 58.9±0.3</td><td>50.1 49.4±0.1</td><td>74.8 74.3±0.1</td><td>77.0 76.2±0.2</td><td>65.6 64.7</td></tr><tr><td>+ Manifold Mixup</td><td>56.2±0.4</td><td>46.3±0.3</td><td>73.6±0.1</td><td>75.2±0.2</td><td>62.8</td></tr><tr><td>+ Mixup w/o label interpolation + Cutout</td><td>57.0±0.2 57.8±0.2</td><td>48.7±0.2</td><td>71.4±0.6</td><td>74.5±0.4</td><td>62.9</td></tr><tr><td></td><td></td><td>48.1±0.3</td><td>73.9±0.2</td><td>75.8±0.3</td><td>63.9</td></tr><tr><td>+ CutMix</td><td>57.9±0.1</td><td>48.3±0.3</td><td>74.5±0.1</td><td>75.6±0.4</td><td>64.1</td></tr><tr><td>+ DropBlock</td><td>58.0±0.1</td><td>48.1±0.1</td><td>74.3±0.3</td><td>75.9±0.4</td><td>64.1</td></tr><tr><td>+ Mixup + MixStyle (ours)</td><td>58.2±0.1 58.7±0.3</td><td>49.3±0.2 53.4±0.2</td><td>74.7±0.1 74.2±0.1</td><td>76.1±0.1 75.9±0.1</td><td>64.6 65.5</td></tr></table>",
1659
+ "bbox": [
1660
+ 192,
1661
+ 424,
1662
+ 807,
1663
+ 625
1664
+ ],
1665
+ "page_idx": 14
1666
+ }
1667
+ ]
parse/train/6xHJ37MVxxp/6xHJ37MVxxp_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/6xHJ37MVxxp/6xHJ37MVxxp_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xwcyHFDr/B1xwcyHFDr.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xwcyHFDr/B1xwcyHFDr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xwcyHFDr/B1xwcyHFDr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xwcyHFDr/B1xwcyHFDr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkgzniCqY7/images/054d38529f162de9cc5fb7bf9a29dfeeb97413bd5d3c4b9bfc005f20fa05d6ac.jpg ADDED

Git LFS Details

  • SHA256: 9e97dfa0c00afb3c7e3726436cf7a858de56574a6a15653f8ab09459d9bb6c76
  • Pointer size: 131 Bytes
  • Size of remote file: 169 kB
parse/train/BkgzniCqY7/images/0a126a0aad6783af6e48e3885829c196c47738f3f3b64610d8416f89cbcc23f3.jpg ADDED

Git LFS Details

  • SHA256: 45c60b499f56a0391f18560b7f08c9b4a4cf4af7ca7d553b8012eaa692d5683f
  • Pointer size: 130 Bytes
  • Size of remote file: 38.6 kB
parse/train/BkgzniCqY7/images/0cb1cf3c28c53910486e66479a6adb7cbae84175167c7e2352e5cab34028c2e8.jpg ADDED

Git LFS Details

  • SHA256: c3ce3b0c280c0f7463c30c7eec23990a46c799a36d1ce4fbc19a5d61889bb78e
  • Pointer size: 129 Bytes
  • Size of remote file: 9.57 kB
parse/train/BkgzniCqY7/images/0f399119a520de71796f2822a0a37f7697097e1b9b4fe7048cf1ca21bf9a6d0c.jpg ADDED

Git LFS Details

  • SHA256: 3246fb900b95c27c1314728aa1b2d4aac6af0029b26ccfd47fe29f0545939f83
  • Pointer size: 130 Bytes
  • Size of remote file: 12 kB
parse/train/BkgzniCqY7/images/15d595941aabb17714bf6c26af2c56e9be8e49e1875cbbb4eddda0989ac45fb8.jpg ADDED

Git LFS Details

  • SHA256: 2ebb6d18d79cfe30f5a893a9341d9e1b5d33dea574e0682b0181063f359b80d0
  • Pointer size: 130 Bytes
  • Size of remote file: 10.3 kB
parse/train/BkgzniCqY7/images/1706848d6f1386a1391bd4b9399902ab4cc902a171a2e87b26fbb53396e39c1d.jpg ADDED

Git LFS Details

  • SHA256: 5be9805e8e64e73553146b82dc8d45b08b328e391fcddd0258f95330b374c2fc
  • Pointer size: 130 Bytes
  • Size of remote file: 28.7 kB
parse/train/BkgzniCqY7/images/1709eb9cc90aba912103f361d377de750a609161f1d9a6fdd84a87d51c2bb3a3.jpg ADDED

Git LFS Details

  • SHA256: a1568983dd38f96406693a477a36b5829527fea2a6a12e9823df61ed8ece4c5b
  • Pointer size: 131 Bytes
  • Size of remote file: 107 kB
parse/train/BkgzniCqY7/images/1848b54c1524097192cfc2fc07dc227bc336c14dee18e9df59415b4890b2d66d.jpg ADDED

Git LFS Details

  • SHA256: d9a863c5cbd56d3951e2dd7ff4a7d723c044d4d92e542b9b29fba5897d341afe
  • Pointer size: 130 Bytes
  • Size of remote file: 13.7 kB
parse/train/BkgzniCqY7/images/199c60650b86fb1b4d38eef62baed3cc0c3b6dfe2e169b6d7d2a077c1f2e0ad3.jpg ADDED

Git LFS Details

  • SHA256: 61aa6d7077f663830a785d3fe4a36cf2ecf30d14f14942af82da985d255a73a7
  • Pointer size: 130 Bytes
  • Size of remote file: 17.3 kB
parse/train/BkgzniCqY7/images/1c2b2d75d8eccba9ae7c39168920877e988ce241f6e23adf98c8892218bdd23d.jpg ADDED

Git LFS Details

  • SHA256: c7974b3a8139c5fa1cb50c124ab3ea1100946ba0d89024997ca78f4f8b48901c
  • Pointer size: 129 Bytes
  • Size of remote file: 6.54 kB
parse/train/BkgzniCqY7/images/22f1a58428dc848cf45705ee06a6356d7e3c9cd5d4e8b94f2297cecdc9c3cae6.jpg ADDED

Git LFS Details

  • SHA256: 35ce8e681d5028a100389027ef47584c22e9891b219e3478b4bb207d6f47a81a
  • Pointer size: 130 Bytes
  • Size of remote file: 17.7 kB
parse/train/BkgzniCqY7/images/2bfc694c2b1d7b0f5f7a63ffa9e440f5e783c4f79dbd23ca3dbd412b2a2d7eba.jpg ADDED

Git LFS Details

  • SHA256: 2aebdc183c7c279ac2395e4fb752a9c7bf70c8f2ee6826640f3fc5331febe887
  • Pointer size: 129 Bytes
  • Size of remote file: 6.26 kB
parse/train/BkgzniCqY7/images/2dbe58cd75ce720c2686953b2f27deee4320c8c58210d7a84c600a68e6390b63.jpg ADDED

Git LFS Details

  • SHA256: b610a0ca5bd3664569047bdc0f5065798138357cbabea2da98a4cba3ce1397e9
  • Pointer size: 129 Bytes
  • Size of remote file: 4.39 kB
parse/train/BkgzniCqY7/images/2e9b247536296693c67d72dddf79880bc619b55f6c5c259b8ab163e49e8359b7.jpg ADDED

Git LFS Details

  • SHA256: 829ec0ca6fe6edf27bf9bab15d9e5d0975ce69d43b34705e594b274c09d9f629
  • Pointer size: 129 Bytes
  • Size of remote file: 9.97 kB
parse/train/BkgzniCqY7/images/3393f6036b821f0b87a3a525b325faaf5961019f8136b464db963135cff542d6.jpg ADDED

Git LFS Details

  • SHA256: 2cf881be898a80cb71f9280065f961b5858f274b5926beb7bd8a9e708ad649b1
  • Pointer size: 129 Bytes
  • Size of remote file: 8.66 kB
parse/train/BkgzniCqY7/images/34aba3430ebb010135d9dd791b741174dc13fc7bd877bb8138bf00197f142195.jpg ADDED

Git LFS Details

  • SHA256: c467052b0eccf117c464d822d15ae20ea11986f362f122ac81d0b35fc607cfd8
  • Pointer size: 130 Bytes
  • Size of remote file: 10.4 kB
parse/train/BkgzniCqY7/images/38001ca6f9945be455ddeda3eb31d3cd6f8b1c19d3815bf0e2063fe67b8ea720.jpg ADDED

Git LFS Details

  • SHA256: 918c13650c01a9d5868bb04af7505ba2bc7d0d9a5b62f8c6a41716ec4863f0c2
  • Pointer size: 130 Bytes
  • Size of remote file: 11.2 kB
parse/train/BkgzniCqY7/images/39f973ae40ee9639c50e1d0c0d12ab51daabe2b3424b93e84b701ef9598822b7.jpg ADDED

Git LFS Details

  • SHA256: ebccbf3a10ed5ee0ac7ce4f5e1ea8e739799890e2429883bec63972d0eb6d9b8
  • Pointer size: 131 Bytes
  • Size of remote file: 165 kB
parse/train/BkgzniCqY7/images/3c2491305a997ddb345a697e20fa6b799f40b6874a1a950b4ebfff728acb7172.jpg ADDED

Git LFS Details

  • SHA256: b059e0c0ed76feca5261a4e49874eae204d45e1490252f73735fcdd920796de9
  • Pointer size: 129 Bytes
  • Size of remote file: 6.36 kB
parse/train/BkgzniCqY7/images/431370688dc1a2fede0cf6f2f1990809ce0cca61392fbe82fea2f296c2ee7fcb.jpg ADDED

Git LFS Details

  • SHA256: eb8351d78246c9c1a2c8319d8fb788ef056ae0b58880504c319f722602f6e0a5
  • Pointer size: 129 Bytes
  • Size of remote file: 7.2 kB